$story['posttime'] = formatTimestamp($article->published(),$dateformat); $story['news_title'] = $article->title(); $story['title'] = $article->textlink().' : '.$article->title(); $story['topic_title'] = $article->textlink(); $story['topic_separator'] = ( $article->textlink() != '' ) ? _MA_NW_SP : ''; $story['text'] = $article->hometext(); $bodytext = $article->bodytext(); if (xoops_trim($bodytext) != '') { $articletext = array(); if(nw_getmoduleoption('enhanced_pagenav', NW_MODULE_DIR_NAME)) { $articletext = preg_split('/(\[pagebreak:|\[pagebreak)(.*)(\])/iU', $bodytext); $arr_titles = array(); $auto_summary = $article->auto_summary($bodytext, $arr_titles); $bodytext = str_replace('[summary]', $auto_summary, $bodytext); $articletext[$storypage] = str_replace('[summary]', $auto_summary, $articletext[$storypage]); $story['text'] = str_replace('[summary]', $auto_summary, $story['text']); } else { $articletext = explode('[pagebreak]', $bodytext); } $story_pages = count($articletext); if ($story_pages > 1) { include_once NW_MODULE_PATH . '/include/pagenav.php'; $pagenav = new XoopsPageNav($story_pages, 1, $storypage, 'page', 'storyid='.$storyid); if(nw_isbot()) { // A bot is reading the articles, we are going to show him all the links to the pages $xoopsTpl->assign('pagenav', $pagenav->renderNav($story_pages)); } else {