//Cache
$modversion['onCache']['file'] = "include/functions.php";
$modversion['onCache']['func'] = "publisher_onCache";
function publisher_onCache()
{
$GLOBALS['xoTheme']->addStylesheet(PUBLISHER_URL . '/css/publisher.css');
$GLOBALS['xoTheme']->addStylesheet(PUBLISHER_URL . '/css/jquery.popeye.style.css');
$GLOBALS['xoTheme']->addStylesheet(PUBLISHER_URL . '/css/jquery-ui-1.7.1.custom.css');
$GLOBALS['xoTheme']->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
$GLOBALS['xoTheme']->addScript(PUBLISHER_URL . '/js/jquery.popeye-2.0.4.js');
$GLOBALS['xoTheme']->addScript(PUBLISHER_URL . '/js/behavior.js');
$GLOBALS['xoTheme']->addScript(PUBLISHER_URL . '/js/rating.js');
$GLOBALS['xoTheme']->addScript(PUBLISHER_URL . '/js/ui.core.js');
$GLOBALS['xoTheme']->addScript(PUBLISHER_URL . '/js/ui.tabs.js');
$GLOBALS['xoTheme']->addScript(PUBLISHER_URL . '/js/ajaxupload.3.9.js');
$GLOBALS['xoTheme']->addScript(PUBLISHER_URL . '/js/jquery.easing.js');
$GLOBALS['xoTheme']->addScript(PUBLISHER_URL . '/js/script.easing.js');
$GLOBALS['xoTheme']->addScript(PUBLISHER_URL . '/js/publisher.js');
}
$modversion['onCache']['file'] = "include/functions.php";
$modversion['onCache']['func'] = "publisher_onCache";
include_once XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
$GLOBALS['xoopsOption']['xoops_module_header'][] = array('script', 'browse.php?Frameworks/jquery/jquery.js');
include_once XOOPS_ROOT_PATH . '/header.php';
<?php
//bootstraping Xoops and module constants
include_once dirname(dirname(dirname(__FILE__))) . '/mainfile.php';
include_once dirname(__FILE__) . '/include/common.php';
//setting template for this page
xoopsOption['template_main'] = 'publisher_display_item.html';
//setting stylesheets, scripts and feed
$GLOBALS['xoopsOption']['xoops_module_header'][] = array('stylesheet',PUBLISHER_URL . '/css/publisher.css');
$GLOBALS['xoopsOption']['xoops_module_header'][] = array('script', 'browse.php?Frameworks/jquery/jquery.js');
$GLOBALS['xoopsOption']['xoops_module_header'][] = array('script', PUBLISHER_URL . '/js/publisher.js');
$GLOBALS['xoopsOption']['xoops_module_header'][] = array('script', PUBLISHER_URL . '/js/ui.core.js');
$GLOBALS['xoopsOption']['xoops_module_header'][] = array('script', PUBLISHER_URL . '/js/ui.tabs.js');
$GLOBALS['xoopsOption']['xoops_module_header'][] = array('script', PUBLISHER_URL . '/js/ajaxupload.3.9.js');
$GLOBALS['xoopsOption']['xoops_module_header'][] = array('stylesheet', PUBLISHER_URL . '/css/jquery-ui-1.7.1.custom.css');
$GLOBALS['xoopsOption']['xoops_module_header'][] = array('link','alternate', PUBLISHER_URL . '/backend.php',array(
'href' => PUBLISHER_URL . '/backend.php','type'=>'application/rss+xml',
'title'=> 'My feed'
));
//starting template engine, render blocks and check cache
include_once XOOPS_ROOT_PATH . '/header.php';
//logic code that is not executed when using cache;
//theme and template rendering
include_once XOOPS_ROOT_PATH . '/footer.php';
?>
playsome wrote:
Could a xoops developer provide the absolute definate way to include an external css file in a modules php code?
chefry wrote:
Trabis, how can I stop the date from appearing beside each article in that New Items Block?