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 | 8 | +--------------------------------------------------------------------+ |
83d943da CW |
9 | *}{strip} |
10 | {if $config->debug} | |
6a488035 | 11 | {include file="CRM/common/debug.tpl"} |
83d943da | 12 | {/if} |
6a488035 | 13 | |
83d943da | 14 | {if $smarty.get.snippet eq 4} |
6a488035 | 15 | {if $isForm} |
83d943da | 16 | {include file="CRM/Form/default.tpl"} |
6a488035 | 17 | {else} |
83d943da | 18 | {include file=$tplFile} |
6a488035 | 19 | {/if} |
83d943da | 20 | {else} |
6a488035 | 21 | {if $smarty.get.snippet eq 2} |
83d943da | 22 | {include file="CRM/common/print.tpl"} |
6a488035 | 23 | {else} |
88cd8875 CW |
24 | {crmRegion name='ajax-snippet'}{/crmRegion} |
25 | ||
6d586aad | 26 | {crmRegion name='page-header' allowCmsOverride=0}{/crmRegion} |
88cd8875 | 27 | |
10455c5f | 28 | {crmRegion name='page-body'} |
6a488035 | 29 | |
10455c5f | 30 | {* Add status messages and container-snippet div unless we are outputting json. *} |
83d943da | 31 | {if $smarty.get.snippet neq 'json'} |
10455c5f CW |
32 | {* this div is deprecated but included for older-style snippets for legacy support *} |
33 | <div class="crm-container-snippet"> | |
83d943da CW |
34 | {include file="CRM/common/status.tpl"} |
35 | {/if} | |
6a488035 | 36 | |
83d943da CW |
37 | {if !empty($isForm)} |
38 | {include file="CRM/Form/default.tpl"} | |
39 | {else} | |
40 | {include file=$tplFile} | |
41 | {/if} | |
6a488035 | 42 | |
10455c5f CW |
43 | {if $smarty.get.snippet neq 'json'} |
44 | </div> | |
45 | {/if} | |
46 | ||
47 | {/crmRegion} | |
6d586aad CW |
48 | |
49 | {crmRegion name='page-footer' allowCmsOverride=0}{/crmRegion} | |
6a488035 | 50 | {/if} |
83d943da CW |
51 | {/if} |
52 | {/strip} |