Merge pull request #5790 from mallezie/crm-16471
[civicrm-core.git] / templates / CRM / common / joomla.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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
32 {* Joomla-only container to hold the civicrm menu *}
33 <div id="crm-nav-menu-container"></div>
34 {crmNavigationMenu is_default=1}
35
36 <table border="0" cellpadding="0" cellspacing="0" id="crm-content">
37 <tr>
38 {if $sidebarLeft}
39 <td id="sidebar-left" valign="top">
40 <div id="civi-sidebar-logo" style="margin: 0 0 .25em .25em"><img src="{$config->resourceBase}i/logo_words_small.png" title="{ts}CiviCRM{/ts}"/></div><div class="spacer"></div>
41 {$sidebarLeft}
42 </td>
43 {/if}
44 <td id="content-right" valign="top">
45 {if $breadcrumb}
46 <div class="breadcrumb">
47 {foreach from=$breadcrumb item=crumb key=key}
48 {if $key != 0}
49 &raquo;
50 {/if}
51 <a href="{$crumb.url}">{$crumb.title}</a>
52 {/foreach}
53 </div>
54 {/if}
55
56 {if $browserPrint}
57 {* Javascript window.print link. Used for public pages where we can't do printer-friendly view. *}
58 <div id="printer-friendly"><a href="#" onclick="window.print(); return false;" title="{ts}Print this page.{/ts}"><div class="ui-icon ui-icon-print"></div></a></div>
59 {else}
60 {* Printer friendly link/icon. *}
61 <div id="printer-friendly"><a href="{$printerFriendly}" target='_blank' title="{ts}Printer-friendly view of this page.{/ts}"><div class="ui-icon ui-icon-print"></div></a></div>
62 {/if}
63
64 {if $pageTitle}
65 <div class="crm-title">
66 <h1 class="title">{if $isDeleted}<del>{/if}{$pageTitle}{if $isDeleted}</del>{/if}</h1>
67 </div>
68 {/if}
69
70 {crmRegion name='page-header'}
71 {/crmRegion}
72
73 {*{include file="CRM/common/langSwitch.tpl"}*}
74
75 <div class="clear"></div>
76
77 {if $localTasks}
78 {include file="CRM/common/localNav.tpl"}
79 {/if}
80
81 <div id="crm-main-content-wrapper">
82 {include file="CRM/common/status.tpl"}
83 {crmRegion name='page-body'}
84 <!-- .tpl file invoked: {$tplFile}. Call via form.tpl if we have a form in the page. -->
85 {if isset($isForm) and $isForm and isset($formTpl)}
86 {include file="CRM/Form/$formTpl.tpl"}
87 {else}
88 {include file=$tplFile}
89 {/if}
90 {/crmRegion}
91 </div>
92
93 {crmRegion name='page-footer'}
94 {if $urlIsPublic}
95 {include file="CRM/common/publicFooter.tpl"}
96 {else}
97 {include file="CRM/common/footer.tpl"}
98 {/if}
99 {/crmRegion}
100
101 </td>
102
103 </tr>
104 </table>
105 </div> {* end crm-container div *}