Ejemplo n.º 1
0
	}
}
$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);

$story['id'] = $storyid;
$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]);