* restricted stories */ if (nw_getmoduleoption('showprevnextlink', NW_MODULE_DIR_NAME)) { $xoopsTpl->assign('nav_links', true); $tmparticle = new nw_NewsStory(); $nextId = $previousId = -1; $next = $previous = array(); $previousTitle = $nextTitle = ''; $next = $tmparticle->getNextArticle($storyid, $xoopsModuleConfig['restrictindex']); if(count($next) > 0) { $nextId = $next['storyid']; $nextTitle = $next['title']; } $previous = $tmparticle->getPreviousArticle($storyid, $xoopsModuleConfig['restrictindex']); if(count($previous) > 0) { $previousId = $previous['storyid']; $previousTitle = $previous['title']; } $xoopsTpl->assign('previous_story_id',$previousId); $xoopsTpl->assign('next_story_id',$nextId); if($previousId > 0) { $xoopsTpl->assign('previous_story_title',$previousTitle); $hcontent.=sprintf("<link rel=\"Prev\" title=\"%s\" href=\"%s/\" />\n", $previousTitle,NW_MODULE_URL . '/article.php?storyid='.$previousId); } if($nextId > 0) { $xoopsTpl->assign('next_story_title',$nextTitle); $hcontent.=sprintf("<link rel=\"Next\" title=\"%s\" href=\"%s/\" />\n", $nextTitle,NW_MODULE_URL . '/article.php?storyid='.$nextId);