mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Theme print template option added
This commit is contained in:
parent
7059b152d8
commit
8d7efb3654
27
print.php
27
print.php
@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/print.php,v $
|
||||
| $Revision: 1.8 $
|
||||
| $Date: 2009-01-22 01:58:29 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.9 $
|
||||
| $Date: 2009-04-16 10:02:03 $
|
||||
| $Author: secretr $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
require_once("class2.php");
|
||||
@ -32,7 +32,6 @@ $source = $qs[0];
|
||||
$parms = varset($qs[1],'');
|
||||
unset($qs);
|
||||
|
||||
|
||||
if(strpos($source,'plugin:') !== FALSE)
|
||||
{
|
||||
$plugin = substr($source,7);
|
||||
@ -101,12 +100,20 @@ if(defined("TEXTDIRECTION") && TEXTDIRECTION == "rtl"){
|
||||
// Header down here to give us a chance to set a page title
|
||||
require_once(HEADERF);
|
||||
|
||||
echo "
|
||||
<div style='background-color:white'>
|
||||
<div style='text-align:".$align."'>".$tp->parseTemplate("{LOGO}", TRUE)."</div><hr /><br />
|
||||
<div style='text-align:".$align."'>".$print_text."</div><br /><br />
|
||||
<form action=''><div style='text-align:center'><input type='button' value='".LAN_PRINT_307."' onclick='window.print()' /></div></form></div>";
|
||||
|
||||
//temporary solution - object of future cahges
|
||||
if(is_readable(THEME.'print_template.php'))
|
||||
{
|
||||
include_once(THEME.'print_template.php');
|
||||
echo $tp->parseTemplate($PRINT_TEMPLATE);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "
|
||||
<div style='background-color:white'>
|
||||
<div style='text-align:".$align."'>".$tp->parseTemplate("{LOGO}", TRUE)."</div><hr /><br />
|
||||
<div style='text-align:".$align."'>".$print_text."</div><br /><br />
|
||||
<form action=''><div style='text-align:center'><input type='button' value='".LAN_PRINT_307."' onclick='window.print()' /></div></form></div>";
|
||||
}
|
||||
require_once(FOOTERF);
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user