1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

LANS Clean Up #6 - Printer Friendly Page

LANS Clean Up #6 - Printer Friendly Page
This commit is contained in:
MikeyGMT 2017-01-14 17:58:41 +00:00
parent 3c81473ccc
commit a3f9d6bf39
2 changed files with 30 additions and 37 deletions

View File

@ -1,27 +1,26 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system - Language File.
|
| $Source: /cvs_backup/e107_0.8/e107_languages/English/lan_print.php,v $
| $Revision$
| $Date$
| $Author$
+----------------------------------------------------------------------------+
* e107 website system
*
* Copyright (C) 2008-2017 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* English language file - Printer Friendly Page
*
*/
if (!defined("PAGE_NAME")) { define("PAGE_NAME", "Printer Friendly"); }
define("LAN_PRINT_86", "Category:");
define("LAN_PRINT_87", "by ");
define("LAN_PRINT_94", "Posted by");
define("LAN_PRINT_135", "News Item: ");
//define("LAN_PRINT_86", "Category:");//LAN_CATEGORY // NOT USED
//efine("LAN_PRINT_87", "by ");//NOT USED
//define("LAN_PRINT_94", "Posted by");//LAN_POSTED_BY//NOT USED
//define("LAN_PRINT_135", "News Item: ");//NOT USED
define("LAN_PRINT_303", "This news item is from ");
//define("LAN_PRINT_304", "Title: ");//LAN_TITLE
define("LAN_PRINT_305", "Subheading: ");
define("LAN_PRINT_306", "This is from: ");
define("LAN_PRINT_307", "Print this page");
//define("LAN_PRINT_305", "Subheading: ");//NOT USED
//define("LAN_PRINT_306", "This is from: ");//NOT USED
define("LAN_PRINT_1", "printer friendly");
define("LAN_PRINT_307", "Print this page");//TODO LANS GENERIC CANDIDATE
define("LAN_PRINT_1", "printer friendly");//TODO LANS GENERIC CANDIDATE
?>

View File

@ -1,21 +1,15 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| Copyright (C) 2008-2009 e107 Inc
| http://e107.org
|
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/print.php,v $
| $Revision$
| $Date$
| $Author$
+----------------------------------------------------------------------------+
* e107 website system
*
* Copyright (C) 2008-2017 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Printer Friendly
*
*/
require_once("class2.php");
//include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
@ -69,7 +63,7 @@ if(strpos($source,'plugin:') !== FALSE)
}
else
{
echo "file missing.";
echo LAN_FILE_NOT_FOUND;
exit;
}
}
@ -108,9 +102,9 @@ else
$print_text = "<span style=\"font-size: 13px; color: black; font-family: tahoma, verdana, arial, helvetica; text-decoration: none\">
<h2>".LAN_PRINT_135.$news_title."</h2>
<br />
(".LAN_PRINT_86." ".$tp->toHTML($category_name,FALSE,"defs").")
(".LAN_CATEGORY." ".$tp->toHTML($category_name,FALSE,"defs").")
<br />
".LAN_PRINT_94." ".$a_name."<br />
".LAN_POSTED_BY." ".$a_name."<br />
".$news_datestamp."
<br /><br />".
$news_body;