load($parms)->toArray(); $newsUrl = e107::getUrl()->create('news/view/item', $row, 'full=1'); $tmp = e107::getTemplate('news', 'news', 'view'); if(empty($tmp)) { $newsViewTemplate = !empty($row['news_template']) ? $row['news_template'] : 'default'; $tmp = e107::getTemplate('news', 'news_view', $newsViewTemplate); } $title = $tp->toText($row['news_title']); define('e_PAGETITLE', '[print] '. $title); e107::meta('robots', 'noindex'); $template = $tmp['item']; unset($tmp); // ob_start(); require_once(e_HANDLER."news_class.php"); $ix = new news; $print_text = $ix->render_newsitem($row, 'return', '', $template, null); //$print_text = ob_get_flush(); $print_text .= "


". LAN_PRINT_303."".SITENAME."
".$newsUrl." "; } if(defined("TEXTDIRECTION") && TEXTDIRECTION == "rtl"){ $align = 'right'; }else{ $align = 'left'; } // Header down here to give us a chance to set a page title require_once(HEADERF); //temporary solution - object of future cahges if(is_readable(THEME.'print_template.php')) { $PRINT_TEMPLATE = ''; include_once(THEME.'print_template.php'); echo $tp->parseTemplate($PRINT_TEMPLATE); } else { echo "
".$tp->parseTemplate("{LOGO: h=100}", TRUE)."

".$print_text."


"; } require_once(FOOTERF); ?>