Merge pull request #16715 from mattwire/cancelsubscriptiongeneratetext
[civicrm-core.git] / templates / CRM / common / print.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {* Print.tpl: wrapper for Print views. Provides complete HTML doc. Includes print media stylesheet.*}
11 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
12 <html xmlns="http://www.w3.org/1999/xhtml" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
13
14 <head>
15 <title>{if $pageTitle}{$pageTitle|strip_tags}{else}{ts}Printer-Friendly View{/ts} | {ts}CiviCRM{/ts}{/if}</title>
16 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
17 <meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
18 {crmRegion name='html-header' allowCmsOverride=0}{/crmRegion}
19 <style type="text/css" media="print">@import url({$config->resourceBase}css/print.css);</style>
20 </head>
21
22 <body>
23 {if $config->debug}
24 {include file="CRM/common/debug.tpl"}
25 {/if}
26 <div id="crm-container" class="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
27 {crmRegion name='page-header' allowCmsOverride=0}{/crmRegion}
28 {* Check for Status message for the page (stored in session->getStatus). Status is cleared on retrieval. *}
29 {include file="CRM/common/status.tpl"}
30
31 {crmRegion name='page-body' allowCmsOverride=0}
32 {if $isForm and isset($formTpl)}
33 {include file="CRM/Form/$formTpl.tpl"}
34 {else}
35 {include file=$tplFile}
36 {/if}
37 {/crmRegion}
38
39
40 {crmRegion name='page-footer' allowCmsOverride=0}
41 <script type="text/javascript">
42 window.print();
43 </script>
44 {/crmRegion}
45 </div> {* end crm-container div *}
46 </body>
47 </html>