File: /var/www/samok164/data/www2/townsusa.ru/modules/mod_yj_newsflash2/mod_yj_newsflash2.php
<?php
/*======================================================================*\
|| #################################################################### ||
|| # Youjoomla LLC - YJ- Licence Number JFANS777
|| # Licensed to - joomfans.com
|| # ---------------------------------------------------------------- # ||
|| # Copyright (C) 2006-2009 Youjoomla LLC. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- THIS IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.youjoomla.com | http://www.youjoomla.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
/// no direct access
defined('_JEXEC') or die('Restricted access');
ini_set('error_reporting',E_ALL ^ E_NOTICE);
// Include the syndicate functions only once
require_once (dirname(__FILE__).DS.'helper.php');
require_once('modules/mod_yj_newsflash2/lib/slike.php');
require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php');
require_once (JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_search'.DS.'helpers'.DS.'search.php');
$get_items = $params->get('get_items',1);
$nitems = $params->get ('nitems',4);
$chars = $params->get ('chars',40);
$chars_title = $params->get ('chars_title',27);
$chars_title2 = $params->get ('chars_title2',27);
$imgwidth = $params->get('imgwidth',"40px");
$imgheight = $params->get('imgheight',"40px");
//$imgalign = $params->get('imgalign',"left");
$imgborder = $params->get('imgborder',"1px solid #e5e5e5");
$ordering = $params->get('ordering',3);// 1 = ordering | 2 = popular | 3 = random
$showimage = $params->get('showimage',1);
$show_cat_title = $params->get('show_cat_title',1);
$show_creation_date = $params->get('show_creation_date',1);
$showintro = $params->get('showintro',1);
$showfirst_title = $params->get('showfirst_title',1);
$load_items = modNewsFlash2Helper::getItems($params);
if (!count($load_items)) {
return;
}
require(JModuleHelper::getLayoutPath('mod_yj_newsflash2'));