Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.3 | | |
4 | +--------------------------------------------------------------------+ | |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
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 | {include file="CRM/common/scripts.tpl"} | |
27 | {if $config->debug} | |
28 | {include file="CRM/common/debug.tpl"} | |
29 | {/if} | |
30 | ||
31 | <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}"> | |
32 | ||
33 | {* we should uncomment below code only when we are experimenting with new css for specific pages and comment css inclusion in civicrm.module*} | |
34 | {*if $config->customCSSURL} | |
35 | <link rel="stylesheet" href="{$config->customCSSURL}" type="text/css" /> | |
36 | {else} | |
37 | {assign var="revamp" value=0} | |
38 | {foreach from=$config->revampPages item=page} | |
39 | {if $page eq $tplFile} | |
40 | {assign var="revamp" value=1} | |
41 | {/if} | |
42 | {/foreach} | |
43 | ||
44 | {if $revamp eq 0} | |
45 | <link rel="stylesheet" href="{$config->resourceBase}css/civicrm.css" type="text/css" /> | |
46 | {else} | |
47 | <link rel="stylesheet" href="{$config->resourceBase}css/civicrm-new.css" type="text/css" /> | |
48 | {/if} | |
49 | <link rel="stylesheet" href="{$config->resourceBase}css/extras.css" type="text/css" /> | |
50 | {/if*} | |
51 | ||
52 | ||
53 | {crmNavigationMenu is_default=1} | |
54 | ||
55 | {if $breadcrumb} | |
56 | <div class="breadcrumb"> | |
57 | {foreach from=$breadcrumb item=crumb key=key} | |
58 | {if $key != 0} | |
59 | » | |
60 | {/if} | |
61 | {$crumb} | |
62 | {/foreach} | |
63 | </div> | |
64 | {/if} | |
65 | ||
66 | {* include wysiwyg related files*} | |
67 | {include file="CRM/common/wysiwyg.tpl"} | |
68 | ||
69 | {if isset($browserPrint) and $browserPrint} | |
70 | {* Javascript window.print link. Used for public pages where we can't do printer-friendly view. *} | |
71 | <div id="printer-friendly"> | |
72 | <a href="javascript:window.print()" title="{ts}Print this page.{/ts}"> | |
73 | <div class="ui-icon ui-icon-print"></div> | |
74 | </a> | |
75 | </div> | |
76 | {else} | |
77 | {* Printer friendly link/icon. *} | |
78 | <div id="printer-friendly"> | |
79 | <a href="{$printerFriendly}" title="{ts}Printer-friendly view of this page.{/ts}"> | |
80 | <div class="ui-icon ui-icon-print"></div> | |
81 | </a> | |
82 | </div> | |
83 | {/if} | |
84 | ||
85 | {if $pageTitle} | |
86 | <div class="crm-title"> | |
87 | <h1 class="title">{if $isDeleted}<del>{/if}{$pageTitle}{if $isDeleted}</del>{/if}</h1> | |
88 | </div> | |
89 | {/if} | |
90 | ||
91 | {crmRegion name='page-header'} | |
92 | {/crmRegion} | |
93 | {*{include file="CRM/common/langSwitch.tpl"}*} | |
94 | ||
95 | <div class="clear"></div> | |
96 | ||
97 | {if isset($localTasks) and $localTasks} | |
98 | {include file="CRM/common/localNav.tpl"} | |
99 | {/if} | |
100 | ||
101 | {include file="CRM/common/status.tpl"} | |
102 | ||
103 | ||
104 | {crmRegion name='page-body'} | |
105 | <!-- .tpl file invoked: {$tplFile}. Call via form.tpl if we have a form in the page. --> | |
106 | {if isset($isForm) and $isForm} | |
107 | {include file="CRM/Form/$formTpl.tpl"} | |
108 | {else} | |
109 | {include file=$tplFile} | |
110 | {/if} | |
111 | {/crmRegion} | |
112 | ||
113 | ||
114 | {crmRegion name='page-footer'} | |
115 | {if ! $urlIsPublic} | |
116 | {include file="CRM/common/footer.tpl"} | |
117 | {/if} | |
118 | {/crmRegion} | |
119 | ||
120 | </div> {* end crm-container div *} | |
121 |