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 = e107::getParser()->toText($row['news_title']); // define('e_PAGETITLE', '[print] '. $title); e107::title('[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); if(is_readable(THEME.'print_template.php')) // legacy location. { $PRINT_TEMPLATE = ''; include_once(THEME.'print_template.php'); echo e107::getParser()->parseTemplate($PRINT_TEMPLATE); } else // v2.3.1+ { $PRINT_TEMPLATE = e107::getCoreTemplate('print', 'default'); $vars = array( 'TEXT' => $print_text, 'ALIGN' => $align, 'BUTTON' => "" ); echo e107::getParser()->parseTemplate($PRINT_TEMPLATE, true, $vars); } require_once(FOOTERF);