Merge pull request #15927 from eileenmcnaughton/event_form
[civicrm-core.git] / templates / CRM / common / snippet.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
8 +--------------------------------------------------------------------+
9 *}{strip}
10 {if $config->debug}
11 {include file="CRM/common/debug.tpl"}
12 {/if}
13
14 {if $smarty.get.snippet eq 4}
15 {if $isForm}
16 {include file="CRM/Form/default.tpl"}
17 {else}
18 {include file=$tplFile}
19 {/if}
20 {else}
21 {if $smarty.get.snippet eq 2}
22 {include file="CRM/common/print.tpl"}
23 {else}
24 {crmRegion name='ajax-snippet'}{/crmRegion}
25
26 {crmRegion name='page-header' allowCmsOverride=0}{/crmRegion}
27
28 {crmRegion name='page-body'}
29
30 {* Add status messages and container-snippet div unless we are outputting json. *}
31 {if $smarty.get.snippet neq 'json'}
32 {* this div is deprecated but included for older-style snippets for legacy support *}
33 <div class="crm-container-snippet">
34 {include file="CRM/common/status.tpl"}
35 {/if}
36
37 {if !empty($isForm)}
38 {include file="CRM/Form/default.tpl"}
39 {else}
40 {include file=$tplFile}
41 {/if}
42
43 {if $smarty.get.snippet neq 'json'}
44 </div>
45 {/if}
46
47 {/crmRegion}
48
49 {crmRegion name='page-footer' allowCmsOverride=0}{/crmRegion}
50 {/if}
51 {/if}
52 {/strip}