if ( $xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid()) ) { $story['adminlink'] = 1; } // Icon image if ( $articles[$i]->showTopicimg() ) { $story['topic_url'] = $articles[$i]->imglink($bulletin_topicon_path); $story['align'] = $articles[$i]->getTopicalign(); } $xoopsTpl->append('stories', $story); } // Page Navigation if( !empty($caldate) && preg_match('/([0-9]{4})-([0-9]{2})-([0-9]{2})/', $caldate, $datearr) ){ $totalcount = Bulletin::countPublishedByDate( $mydirname , $caldate , true); $query = 'caldate='.$caldate; }else{ $totalcount = Bulletin::countPublished( $mydirname , $storytopic , true ,true); $query = 'storytopic='.$storytopic; } if ( $totalcount > $scount ) { require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; $pagenav = new XoopsPageNav($totalcount, $storynum, $start, 'start', $query); $xoopsTpl->assign('pagenav', $pagenav->renderNav()); } else { $xoopsTpl->assign('pagenav', ''); } $xoopsTpl->assign($assing_array);