Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
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 | | |
6a488035 TO |
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> | |
64193b3d | 15 | <title>{if $pageTitle}{$pageTitle|strip_tags}{else}{ts}Printer-Friendly View{/ts} | {ts}CiviCRM{/ts}{/if}</title> |
6a488035 | 16 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
46b8fa9d | 17 | <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> |
6a488035 TO |
18 | {crmRegion name='html-header' allowCmsOverride=0}{/crmRegion} |
19 | <style type="text/css" media="print">@import url({$config->resourceBase}css/print.css);</style> | |
6a488035 TO |
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}"> | |
64193b3d | 27 | {crmRegion name='page-header' allowCmsOverride=0}{/crmRegion} |
6a488035 | 28 | {* Check for Status message for the page (stored in session->getStatus). Status is cleared on retrieval. *} |
6c9f2174 | 29 | {include file="CRM/common/status.tpl"} |
6a488035 | 30 | |
64193b3d | 31 | {crmRegion name='page-body' allowCmsOverride=0} |
b1dd8421 | 32 | {if $isForm and isset($formTpl)} |
6a488035 | 33 | {include file="CRM/Form/$formTpl.tpl"} |
64193b3d | 34 | {else} |
6a488035 | 35 | {include file=$tplFile} |
64193b3d CW |
36 | {/if} |
37 | {/crmRegion} | |
6a488035 TO |
38 | |
39 | ||
907f5d22 CW |
40 | {crmRegion name='page-footer' allowCmsOverride=0} |
41 | <script type="text/javascript"> | |
42 | window.print(); | |
43 | </script> | |
44 | {/crmRegion} | |
6a488035 TO |
45 | </div> {* end crm-container div *} |
46 | </body> | |
47 | </html> |