function nw_b_news_bigstory_show() { include_once NW_MODULE_PATH . '/include/functions.php'; include_once NW_MODULE_PATH . '/class/class.newsstory.php'; $myts =& MyTextSanitizer::getInstance(); $restricted=nw_getmoduleoption('restrictindex', NW_MODULE_DIR_NAME); $dateformat=nw_getmoduleoption('dateformat', NW_MODULE_DIR_NAME); $infotips=nw_getmoduleoption('infotips', NW_MODULE_DIR_NAME); $block = array(); $onestory = new nw_NewsStory(); $stories = $onestory->getBigStory(1,0,$restricted,0,1, true, 'counter'); if(count($stories)==0) { $block['message'] = _MB_NW_NOTYET; } else { foreach ( $stories as $key => $story ) { $htmltitle=''; if($infotips>0) { $block['infotips'] = nw_make_infotips($story->hometext()); $htmltitle=' title="'.$block['infotips'].'"'; } //DNPROSSI ADDED $block['newsmodule_url']= NW_MODULE_URL; $block['htmltitle']=$htmltitle; $block['message'] = _MB_NW_TMRSI; $block['story_title'] = $story->title('Show'); $block['story_id'] = $story->storyid(); $block['story_date'] = formatTimestamp($story->published(), $dateformat); $block['story_hits'] = $story->counter(); $block['story_rating'] = $story->rating(); $block['story_votes'] = $story->votes(); $block['story_author']= $story->uname(); $block['story_text']= $story->hometext(); $block['story_topic_title']= $story->topic_title(); $block['story_topic_color']= '#'.$myts->displayTarea($story->topic_color); } } // DNPROSSI SEO $seo_enabled = nw_getmoduleoption('nw_seo_enable', NW_MODULE_DIR_NAME); if ( $seo_enabled == 1 ) { $block['urlrewrite']= "true"; } else { $block['urlrewrite']= "false"; } return $block; }