(accessibility/misc-core-fixes/issues/3) Remove CMS specific print header templates...
authordeb.monish <monish.deb@jmaconsulting.biz>
Fri, 6 Apr 2018 13:25:01 +0000 (18:55 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Mon, 21 May 2018 06:50:51 +0000 (12:20 +0530)
templates/CRM/common/CMSPrint.tpl [new file with mode: 0644]
templates/CRM/common/backdrop.tpl
templates/CRM/common/drupal.tpl
templates/CRM/common/drupal6.tpl
templates/CRM/common/drupal8.tpl
templates/CRM/common/unittests.tpl
templates/CRM/common/wordpress.tpl

diff --git a/templates/CRM/common/CMSPrint.tpl b/templates/CRM/common/CMSPrint.tpl
new file mode 100644 (file)
index 0000000..2c5a879
--- /dev/null
@@ -0,0 +1,93 @@
+{*
+ +--------------------------------------------------------------------+
+ | CiviCRM version 5                                                  |
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC (c) 2004-2018                                |
+ +--------------------------------------------------------------------+
+ | This file is a part of CiviCRM.                                    |
+ |                                                                    |
+ | CiviCRM is free software; you can copy, modify, and distribute it  |
+ | under the terms of the GNU Affero General Public License           |
+ | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
+ |                                                                    |
+ | CiviCRM is distributed in the hope that it will be useful, but     |
+ | WITHOUT ANY WARRANTY; without even the implied warranty of         |
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
+ | See the GNU Affero General Public License for more details.        |
+ |                                                                    |
+ | You should have received a copy of the GNU Affero General Public   |
+ | License and the CiviCRM Licensing Exception along                  |
+ | with this program; if not, contact CiviCRM LLC                     |
+ | at info[AT]civicrm[DOT]org. If you have questions about the        |
+ | GNU Affero General Public License or the licensing of CiviCRM,     |
+ | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
+ +--------------------------------------------------------------------+
+*}
+{if $config->debug}
+{include file="CRM/common/debug.tpl"}
+{/if}
+
+<div id="crm-container" class="crm-container{if $urlIsPublic} crm-public{/if}" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
+
+{crmNavigationMenu is_default=1}
+
+{if $breadcrumb}
+  <div class="breadcrumb">
+    {foreach from=$breadcrumb item=crumb key=key}
+      {if $key != 0}
+        &raquo;
+      {/if}
+      {$crumb}
+    {/foreach}
+  </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>
+  </div>
+{/if}
+
+{crmRegion name='page-header'}
+{/crmRegion}
+<div class="clear"></div>
+
+{if isset($localTasks) and $localTasks}
+    {include file="CRM/common/localNav.tpl"}
+{/if}
+<div id="crm-main-content-wrapper">
+  {include file="CRM/common/status.tpl"}
+  {crmRegion name='page-body'}
+    {if isset($isForm) and $isForm and isset($formTpl)}
+      {include file="CRM/Form/$formTpl.tpl"}
+    {else}
+      {include file=$tplFile}
+    {/if}
+  {/crmRegion}
+</div>
+
+{crmRegion name='page-footer'}
+{if $urlIsPublic}
+  {include file="CRM/common/publicFooter.tpl"}
+{else}
+  {include file="CRM/common/footer.tpl"}
+{/if}
+{/crmRegion}
+
+</div> {* end crm-container div *}
index ecb2906e0ff3497a0b98250cc964cbf452d06c1f..9c9369d1bd4e18bb4f6323262b5ff84c1275eb84 100644 (file)
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
-{if $config->debug}
-{include file="CRM/common/debug.tpl"}
-{/if}
-
-<div id="crm-container" class="crm-container{if $urlIsPublic} crm-public{/if}" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
-
-
-{crmNavigationMenu is_default=1}
-
-{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}
-
-{crmRegion name='page-header'}
-{/crmRegion}
-<div class="clear"></div>
-
-{if isset($localTasks) and $localTasks}
-    {include file="CRM/common/localNav.tpl"}
-{/if}
-<div id="crm-main-content-wrapper">
-  {include file="CRM/common/status.tpl"}
-  {crmRegion name='page-body'}
-    {if isset($isForm) and $isForm and isset($formTpl)}
-      {include file="CRM/Form/$formTpl.tpl"}
-    {else}
-      {include file=$tplFile}
-    {/if}
-  {/crmRegion}
-</div>
-
-{crmRegion name='page-footer'}
-{if $urlIsPublic}
-  {include file="CRM/common/publicFooter.tpl"}
-{else}
-  {include file="CRM/common/footer.tpl"}
-{/if}
-{/crmRegion}
-
-
-</div> {* end crm-container div *}
+{include file="CRM/common/CMSPrint.tpl"}
index ecb2906e0ff3497a0b98250cc964cbf452d06c1f..9c9369d1bd4e18bb4f6323262b5ff84c1275eb84 100644 (file)
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
-{if $config->debug}
-{include file="CRM/common/debug.tpl"}
-{/if}
-
-<div id="crm-container" class="crm-container{if $urlIsPublic} crm-public{/if}" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
-
-
-{crmNavigationMenu is_default=1}
-
-{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}
-
-{crmRegion name='page-header'}
-{/crmRegion}
-<div class="clear"></div>
-
-{if isset($localTasks) and $localTasks}
-    {include file="CRM/common/localNav.tpl"}
-{/if}
-<div id="crm-main-content-wrapper">
-  {include file="CRM/common/status.tpl"}
-  {crmRegion name='page-body'}
-    {if isset($isForm) and $isForm and isset($formTpl)}
-      {include file="CRM/Form/$formTpl.tpl"}
-    {else}
-      {include file=$tplFile}
-    {/if}
-  {/crmRegion}
-</div>
-
-{crmRegion name='page-footer'}
-{if $urlIsPublic}
-  {include file="CRM/common/publicFooter.tpl"}
-{else}
-  {include file="CRM/common/footer.tpl"}
-{/if}
-{/crmRegion}
-
-
-</div> {* end crm-container div *}
+{include file="CRM/common/CMSPrint.tpl"}
index 2a424882e55cad743ae6ff7986db76ccc233c55f..9c9369d1bd4e18bb4f6323262b5ff84c1275eb84 100644 (file)
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
-{if $config->debug}
-{include file="CRM/common/debug.tpl"}
-{/if}
-
-<div id="crm-container" class="crm-container{if $urlIsPublic} crm-public{/if}" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
-
-{crmNavigationMenu is_default=1}
-
-{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}
-
-{*{include file="CRM/common/langSwitch.tpl"}*}
-
-{crmRegion name='page-header'}
-{/crmRegion}
-<div class="clear"></div>
-
-{if isset($localTasks) and $localTasks}
-    {include file="CRM/common/localNav.tpl"}
-{/if}
-
-<div id="crm-main-content-wrapper">
-  {include file="CRM/common/status.tpl"}
-  {crmRegion name='page-body'}
-    {if isset($isForm) and $isForm and isset($formTpl)}
-      {include file="CRM/Form/$formTpl.tpl"}
-    {else}
-      {include file=$tplFile}
-    {/if}
-  {/crmRegion}
-</div>
-
-{crmRegion name='page-footer'}
-{if $urlIsPublic}
-  {include file="CRM/common/publicFooter.tpl"}
-{else}
-  {include file="CRM/common/footer.tpl"}
-{/if}
-{/crmRegion}
-
-</div> {* end crm-container div *}
+{include file="CRM/common/CMSPrint.tpl"}
index ecb2906e0ff3497a0b98250cc964cbf452d06c1f..9c9369d1bd4e18bb4f6323262b5ff84c1275eb84 100644 (file)
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
-{if $config->debug}
-{include file="CRM/common/debug.tpl"}
-{/if}
-
-<div id="crm-container" class="crm-container{if $urlIsPublic} crm-public{/if}" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
-
-
-{crmNavigationMenu is_default=1}
-
-{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}
-
-{crmRegion name='page-header'}
-{/crmRegion}
-<div class="clear"></div>
-
-{if isset($localTasks) and $localTasks}
-    {include file="CRM/common/localNav.tpl"}
-{/if}
-<div id="crm-main-content-wrapper">
-  {include file="CRM/common/status.tpl"}
-  {crmRegion name='page-body'}
-    {if isset($isForm) and $isForm and isset($formTpl)}
-      {include file="CRM/Form/$formTpl.tpl"}
-    {else}
-      {include file=$tplFile}
-    {/if}
-  {/crmRegion}
-</div>
-
-{crmRegion name='page-footer'}
-{if $urlIsPublic}
-  {include file="CRM/common/publicFooter.tpl"}
-{else}
-  {include file="CRM/common/footer.tpl"}
-{/if}
-{/crmRegion}
-
-
-</div> {* end crm-container div *}
+{include file="CRM/common/CMSPrint.tpl"}
index ecb2906e0ff3497a0b98250cc964cbf452d06c1f..9c9369d1bd4e18bb4f6323262b5ff84c1275eb84 100644 (file)
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
-{if $config->debug}
-{include file="CRM/common/debug.tpl"}
-{/if}
-
-<div id="crm-container" class="crm-container{if $urlIsPublic} crm-public{/if}" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
-
-
-{crmNavigationMenu is_default=1}
-
-{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}
-
-{crmRegion name='page-header'}
-{/crmRegion}
-<div class="clear"></div>
-
-{if isset($localTasks) and $localTasks}
-    {include file="CRM/common/localNav.tpl"}
-{/if}
-<div id="crm-main-content-wrapper">
-  {include file="CRM/common/status.tpl"}
-  {crmRegion name='page-body'}
-    {if isset($isForm) and $isForm and isset($formTpl)}
-      {include file="CRM/Form/$formTpl.tpl"}
-    {else}
-      {include file=$tplFile}
-    {/if}
-  {/crmRegion}
-</div>
-
-{crmRegion name='page-footer'}
-{if $urlIsPublic}
-  {include file="CRM/common/publicFooter.tpl"}
-{else}
-  {include file="CRM/common/footer.tpl"}
-{/if}
-{/crmRegion}
-
-
-</div> {* end crm-container div *}
+{include file="CRM/common/CMSPrint.tpl"}
index c63582df97d547f3b5e5f2f8900edd830c3b2fa0..9c9369d1bd4e18bb4f6323262b5ff84c1275eb84 100644 (file)
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
-{if $config->debug}
-{include file="CRM/common/debug.tpl"}
-{/if}
-
-<div id="crm-container" class="crm-container{if $urlIsPublic} crm-public{/if}" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
-
-{crmNavigationMenu is_default=1}
-
-{if $breadcrumb}
-    <div class="breadcrumb">
-      {foreach from=$breadcrumb item=crumb key=key}
-        {if $key != 0}
-           &raquo;
-        {/if}
-      {$crumb}
-      {/foreach}
-    </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>
-  </div>
-{/if}
-
-{crmRegion name='page-header'}
-{/crmRegion}
-{*{include file="CRM/common/langSwitch.tpl"}*}
-
-<div class="clear"></div>
-
-{if isset($localTasks) and $localTasks}
-    {include file="CRM/common/localNav.tpl"}
-{/if}
-
-<div id="crm-main-content-wrapper">
-  {include file="CRM/common/status.tpl"}
-  {crmRegion name='page-body'}
-    {if isset($isForm) and $isForm and isset($formTpl)}
-      {include file="CRM/Form/$formTpl.tpl"}
-    {else}
-      {include file=$tplFile}
-    {/if}
-  {/crmRegion}
-</div>
-
-
-{crmRegion name='page-footer'}
-{if $urlIsPublic}
-  {include file="CRM/common/publicFooter.tpl"}
-{else}
-  {include file="CRM/common/footer.tpl"}
-{/if}
-{/crmRegion}
-
-</div> {* end crm-container div *}
+{include file="CRM/common/CMSPrint.tpl"}