From 83d943dab5f791ae44bc1d1ec5d5a4290603c1ff Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 18 Dec 2013 14:16:49 -0800 Subject: [PATCH] Cleanup snippet.tpl --- templates/CRM/common/snippet.tpl | 43 ++++++++++++++++---------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/templates/CRM/common/snippet.tpl b/templates/CRM/common/snippet.tpl index 657b845d3c..05f1ec5bda 100644 --- a/templates/CRM/common/snippet.tpl +++ b/templates/CRM/common/snippet.tpl @@ -22,35 +22,36 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*} -{if $config->debug} +*}{strip} + {if $config->debug} {include file="CRM/common/debug.tpl"} -{/if} + {/if} -{if $smarty.get.snippet eq 4} + {if $smarty.get.snippet eq 4} {if $isForm} - {include file="CRM/Form/default.tpl"} + {include file="CRM/Form/default.tpl"} {else} - {include file=$tplFile} + {include file=$tplFile} {/if} -{else} + {else} {if $smarty.get.snippet eq 2} - {include file="CRM/common/print.tpl"} + {include file="CRM/common/print.tpl"} {else} -
+
- {* Display Status messages unless we are outputting json. *} - {if $smarty.get.snippet neq 'json'} - {include file="CRM/common/status.tpl"} - {/if} + {* Display Status messages unless we are outputting json. *} + {if $smarty.get.snippet neq 'json'} + {include file="CRM/common/status.tpl"} + {/if} - - {if !empty($isForm)} - {include file="CRM/Form/default.tpl"} - {else} - {include file=$tplFile} - {/if} + + {if !empty($isForm)} + {include file="CRM/Form/default.tpl"} + {else} + {include file=$tplFile} + {/if} -
{* end crm-container-snippet div *} +
{* end crm-container-snippet div *} {/if} -{/if} + {/if} +{/strip} -- 2.25.1