Skip to content

Commit

Permalink
remove print icon
Browse files Browse the repository at this point in the history
  • Loading branch information
alifrumin committed Sep 18, 2019
1 parent 167fbae commit 58b2cf1
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 46 deletions.
3 changes: 0 additions & 3 deletions CRM/Contribute/Form/ContributionBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,6 @@ public function preProcess() {

// we do not want to display recently viewed items, so turn off
$this->assign('displayRecent', FALSE);
// Contribution page values are cleared from session, so can't use normal Printer Friendly view.
// Use Browser Print instead.
$this->assign('browserPrint', TRUE);

// action
$this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'add');
Expand Down
6 changes: 0 additions & 6 deletions CRM/Core/Invoke.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,6 @@ public static function runItem($item) {
$template->assign('formTpl', 'default');

if ($item) {
// CRM-7656 - make sure we send a clean sanitized path to create printer friendly url
$printerFriendly = CRM_Utils_System::makeURL(
'snippet', FALSE, FALSE,
CRM_Utils_Array::value('path', $item)
) . '2';
$template->assign('printerFriendly', $printerFriendly);

if (!array_key_exists('page_callback', $item)) {
CRM_Core_Error::debug('Bad item', $item);
Expand Down
3 changes: 0 additions & 3 deletions CRM/Event/Form/Registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,6 @@ public function preProcess() {

// we do not want to display recently viewed items on Registration pages
$this->assign('displayRecent', FALSE);
// Registration page values are cleared from session, so can't use normal Printer Friendly view.
// Use Browser Print instead.
$this->assign('browserPrint', TRUE);

$isShowLocation = CRM_Utils_Array::value('is_show_location', $this->_values['event']);
$this->assign('isShowLocation', $isShowLocation);
Expand Down
10 changes: 0 additions & 10 deletions css/civicrm.css
Original file line number Diff line number Diff line change
Expand Up @@ -1812,16 +1812,6 @@ input.crm-form-entityref {

/* Set/alter ICONS */

#crm-container div#printer-friendly {
float: right;
position: relative;
margin: -2em 0.5em 0 0;
}
/* For Joomla, margin 0 works correctly */
#crm-container table#crm-content div#printer-friendly {
margin: 0;
}

#crm-container .order-icon {
height: 15px;
width: 10px;
Expand Down
16 changes: 0 additions & 16 deletions templates/CRM/common/CMSPrint.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,6 @@
</div>
{/if}

{if isset($browserPrint) and $browserPrint}
{* Javascript window.print link. Used for public pages where we can't do printer-friendly view. *}
<div id="printer-friendly">
<a href="#" onclick="window.print(); return false;" title="{ts}Print this page.{/ts}">
<i class="crm-i fa-print"></i>
</a>
</div>
{else}
{* Printer friendly link/icon. *}
<div id="printer-friendly">
<a href="{$printerFriendly}" target='_blank' title="{ts}Printer-friendly view of this page.{/ts}">
<i class="crm-i fa-print"></i>
</a>
</div>
{/if}

{if $pageTitle}
<div class="crm-title">
<h1 class="title">{if $isDeleted}<del>{/if}{$pageTitle}{if $isDeleted}</del>{/if}</h1>
Expand Down
8 changes: 0 additions & 8 deletions templates/CRM/common/joomla.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@
</div>
{/if}

{if $browserPrint}
{* Javascript window.print link. Used for public pages where we can't do printer-friendly view. *}
<div id="printer-friendly"><a href="#" onclick="window.print(); return false;" title="{ts}Print this page.{/ts}"><i class="crm-i fa-print"></i></a></div>
{else}
{* Printer friendly link/icon. *}
<div id="printer-friendly"><a href="{$printerFriendly}" target='_blank' title="{ts}Printer-friendly view of this page.{/ts}"><i class="crm-i fa-print"></i></a></div>
{/if}

{if $pageTitle}
<div class="crm-title">
<h1 class="title">{if $isDeleted}<del>{/if}{$pageTitle}{if $isDeleted}</del>{/if}</h1>
Expand Down

0 comments on commit 58b2cf1

Please sign in to comment.