| Current Path : /var/www/iplanru/data/www/iplan.5018.vps.agava.net/modules/mod_wfitems/ |
| Current File : /var/www/iplanru/data/www/iplan.5018.vps.agava.net/modules/mod_wfitems/mod_wfitems.php |
<?php
// No direct access
defined( '_JEXEC' ) or die;
require_once( dirname( __FILE__ ) . '/helper.php' );
$type = htmlspecialchars( $params->get( 'type' ) );
$count = htmlspecialchars( $params->get( 'count' ) );
$limit = htmlspecialchars( $params->get( 'limit' ) );
$moduleclass_sfx = htmlspecialchars( $params->get( 'moduleclass_sfx' ) );
$db = JFactory::getDbo();
/*$document =& JFactory::getDocument();*/
$document = JFactory::getDocument();
$document->addStyleSheet('/modules/mod_wfitems/tmpl/style.css');
$jinput = JFactory::getApplication()->input;
$category_id=preg_replace('/[^0-9]/', '',$jinput->get( 'category_id'));
if ($category_id<>'')
{
$text= modWfitemsHelper::getRouter($type,$count,$limit);
}
if ($text=='')
{
/*$sfx=" hide";
$document->addScriptDeclaration("
jQuery(document).ready(function () {
jQuery('.hide' ).parent().hide();
jQuery('.wfitems' ).parent().removeClass('uk-width-medium-1-2');
jQuery('.wfitems' ).parent().addClass('uk-width-medium-1-1');
});
");*/
}
require( JModuleHelper::getLayoutPath( 'mod_wfitems', $params->get( 'layout', 'default' ) ) );