exit(); } $storypage = isset($_GET['page']) ? intval($_GET['page']) : 0; $dateformat = nw_getmoduleoption('dateformat', NW_MODULE_DIR_NAME); $hcontent=''; /** * update counter only when viewing top page and when you are not the author or an admin */ if (empty($_GET['com_id']) && $storypage == 0) { if(is_object($xoopsUser)) { if( ($xoopsUser->getVar('uid')==$article->uid()) || nw_is_admin_group()) { // nothing ! ;-) } else { $article->updateCounter(); } } else { $article->updateCounter(); } } $xoopsOption['template_main'] = 'nw_news_article.html'; include_once XOOPS_ROOT_PATH.'/header.php'; //DNPROSSI - ADDED nw_callJavascriptFile('noconflict.js'); $xoTheme->addStylesheet(NW_MODULE_URL.'/js/css/prettyPhoto.css'); nw_callJavascriptFile('prettyphoto/jquery.prettyPhoto.js'); $xoopsTpl->assign('newsmodule_url', NW_MODULE_URL);