mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Hide useless elements from printing.
This commit is contained in:
@@ -368,7 +368,7 @@ class news_shortcodes extends e_shortcode
|
||||
|
||||
$class = varset($parm['class']);
|
||||
|
||||
return "<a class='e-tip ".$class."' rel='external' href='".e_ADMIN_ABS."newspost.php?action=edit&id=".$this->news_item['news_id']."' title=\"".LAN_EDIT."\">".$adop_icon."</a>\n";
|
||||
return "<a class='e-tip ".$class." hidden-print' rel='external' href='".e_ADMIN_ABS."newspost.php?action=edit&id=".$this->news_item['news_id']."' title=\"".LAN_EDIT."\">".$adop_icon."</a>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -76,13 +76,13 @@ class emailprint
|
||||
{
|
||||
$ico_mail = (defined("ICONMAIL") && file_exists(THEME."images/".ICONMAIL) ? "<img src='".THEME_ABS."images/".ICONMAIL."' alt='".LAN_EMAIL_7."' />" : $genericMail);
|
||||
//TDOD CSS class
|
||||
$text_emailprint .= "<a class='e-tip ".$class."' href='".e_HTTP."email.php?".$email.".".$id."' title='".LAN_EMAIL_7."'>".$ico_mail."</a> ";
|
||||
$text_emailprint .= "<a class='e-tip hidden-print".$class."' href='".e_HTTP."email.php?".$email.".".$id."' title='".LAN_EMAIL_7."'>".$ico_mail."</a> ";
|
||||
}
|
||||
if ($look == 0 || $look == 2)
|
||||
{
|
||||
$ico_print = (defined("ICONPRINT") && file_exists(THEME."images/".ICONPRINT) ? "<img src='".THEME_ABS."images/".ICONPRINT."' alt='".LAN_PRINT_1."' />" : $genericPrint);
|
||||
//TODO CSS class
|
||||
$text_emailprint .= "<a class='e-tip ".$class."' href='".e_HTTP."print.php?".$print.".".$id."' title='".LAN_PRINT_1."'>".$ico_print."</a>";
|
||||
$text_emailprint .= "<a class='e-tip ".$class." hidden-print' href='".e_HTTP."print.php?".$print.".".$id."' title='".LAN_PRINT_1."'>".$ico_print."</a>";
|
||||
}
|
||||
return $text_emailprint;
|
||||
}
|
||||
|
12
print.php
12
print.php
@@ -29,12 +29,18 @@ if ($qs[0] == "") {
|
||||
|
||||
$CSS = <<<CSS
|
||||
|
||||
body { background-color: #FFF; color: #000 }
|
||||
body { background: #fff; color: #000 }
|
||||
|
||||
@media print {
|
||||
|
||||
|
||||
|
||||
img {
|
||||
display: block;
|
||||
}
|
||||
img, table, ul, ol, .code-snippet {
|
||||
page-break-inside: avoid;
|
||||
page-break-before: auto;
|
||||
page-break-after: auto;
|
||||
}
|
||||
|
||||
a[href]:after {
|
||||
content: none;
|
||||
|
Reference in New Issue
Block a user