Exemplo n.º 1
0
    define('_MODE_JABULLETIN_ASSETS_', 1);
    JHTML::stylesheet('modules/' . $module->module . '/assets/style.css');
    if (is_file(JPATH_SITE . DS . 'templates' . DS . $mainframe->getTemplate() . DS . 'css' . DS . $module->module . ".css")) {
        JHTML::stylesheet('templates/' . $mainframe->getTemplate() . '/css/' . $module->module . ".css");
    }
}
// Include the syndicate functions only once
require_once dirname(__FILE__) . DS . 'helper.php';
require_once dirname(__FILE__) . DS . 'jaimage.php';
$helper = new modJABulletin();
$useCustomText = $params->get("use_custom_text", 0);
$customText = $params->get("custom_text", "");
$showcreater = $params->get('show_author', 0);
$showreadmore = $params->get('show_readmore', 0);
// if enable caching data
$list = $helper->getListArticles($params);
$app = JFactory::getApplication();
$template_name = $app->getTemplate();
require JModuleHelper::getLayoutPath('mod_jabulletin');
?>
<script type="text/javascript">
  var Ja_direction = '';
  var cookie_path = '/';
  var cur_template_name = '<?php 
echo $template_name;
?>
';
  window.addEvent('load', function(){

		   if(typeof(tmpl_name) =='undefined')
		   {