expose smarty's compile_check to be overridden in civicrm.settings.php
[civicrm-core.git] / templates / CRM / common / CMSPrint.tpl
CommitLineData
8c902e9e 1{*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 5 |
4 +--------------------------------------------------------------------+
6b83d5bd 5 | Copyright CiviCRM LLC (c) 2004-2019 |
8c902e9e 6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25*}
26{if $config->debug}
27{include file="CRM/common/debug.tpl"}
28{/if}
29
30<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}">
31
8c902e9e 32{if $breadcrumb}
33 <div class="breadcrumb">
34 {foreach from=$breadcrumb item=crumb key=key}
35 {if $key != 0}
36 &raquo;
37 {/if}
38 {$crumb}
39 {/foreach}
40 </div>
41{/if}
42
43{if isset($browserPrint) and $browserPrint}
44{* Javascript window.print link. Used for public pages where we can't do printer-friendly view. *}
45<div id="printer-friendly">
46<a href="#" onclick="window.print(); return false;" title="{ts}Print this page.{/ts}">
47 <i class="crm-i fa-print"></i>
48</a>
49</div>
50{else}
51{* Printer friendly link/icon. *}
52<div id="printer-friendly">
53<a href="{$printerFriendly}" target='_blank' title="{ts}Printer-friendly view of this page.{/ts}">
54 <i class="crm-i fa-print"></i>
55</a>
56</div>
57{/if}
58
59{if $pageTitle}
60 <div class="crm-title">
61 <h1 class="title">{if $isDeleted}<del>{/if}{$pageTitle}{if $isDeleted}</del>{/if}</h1>
62 </div>
63{/if}
64
65{crmRegion name='page-header'}
66{/crmRegion}
67<div class="clear"></div>
68
69{if isset($localTasks) and $localTasks}
70 {include file="CRM/common/localNav.tpl"}
71{/if}
72<div id="crm-main-content-wrapper">
73 {include file="CRM/common/status.tpl"}
74 {crmRegion name='page-body'}
75 {if isset($isForm) and $isForm and isset($formTpl)}
76 {include file="CRM/Form/$formTpl.tpl"}
77 {else}
78 {include file=$tplFile}
79 {/if}
80 {/crmRegion}
81</div>
82
83{crmRegion name='page-footer'}
84{if $urlIsPublic}
85 {include file="CRM/common/publicFooter.tpl"}
86{else}
87 {include file="CRM/common/footer.tpl"}
88{/if}
89{/crmRegion}
90
91</div> {* end crm-container div *}