Optional logo in printed pages
This commit is contained in:
parent
2ff42976cb
commit
54b05520a3
2 changed files with 8 additions and 2 deletions
|
@ -68,8 +68,8 @@ $conf = array(
|
||||||
# 'social_linkedin' => 'http://linkedin.com/in/username',
|
# 'social_linkedin' => 'http://linkedin.com/in/username',
|
||||||
# 'social_contact' => 'http://www.example.com/contact',
|
# 'social_contact' => 'http://www.example.com/contact',
|
||||||
|
|
||||||
// Use project or organization logo image for printing:
|
// Uncomment to show logo when printing pages:
|
||||||
# 'print_logo_aux' => 1,
|
# 'print_logo' => 1,
|
||||||
|
|
||||||
// Reverse proxy:
|
// Reverse proxy:
|
||||||
# 'reverse_proxy' => TRUE,
|
# 'reverse_proxy' => TRUE,
|
||||||
|
|
|
@ -28,6 +28,12 @@
|
||||||
print '<div class="print-message">'. $print['message'] .'</div>';
|
print '<div class="print-message">'. $print['message'] .'</div>';
|
||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
|
<?php global $conf;
|
||||||
|
if (!empty($conf['print_logo']) && $conf['print_logo']) {
|
||||||
|
print '<div class="print-logo">' . $print['logo'] . '</div>';
|
||||||
|
print '<hr class="print-hr" />';
|
||||||
|
} ?>
|
||||||
|
|
||||||
<h1 class="print-title"><?php print $print['title']; ?></h1>
|
<h1 class="print-title"><?php print $print['title']; ?></h1>
|
||||||
<div class="print-content">
|
<div class="print-content">
|
||||||
<?php print '<div class="node-type-' . $print['node']->type . '">' . $print['content'] . '</div>'; ?>
|
<?php print '<div class="node-type-' . $print['node']->type . '">' . $print['content'] . '</div>'; ?>
|
||||||
|
|
Reference in a new issue