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