$smarty = CRM_Core_Smarty::singleton();
$html = '';
foreach ($this->_snippets as $snippet) {
- $placement = empty($snippet['placement']) ? 'after' : $snippet['placement'];
if ($snippet['disabled']) {
continue;
}
switch ($snippet['type']) {
case 'markup':
- if ($placement == 'before') {
- $html = $snippet['markup'] . $html;
- }
- else {
- $html .= $snippet['markup'];
- }
+ $html .= $snippet['markup'];
break;
case 'template':
$tmp = $smarty->get_template_vars('snippet');
$smarty->assign('snippet', $snippet);
- if ($placement == 'before') {
- $html = $smarty->fetch($snippet['template']) . $html;
- }
- else {
- $html .= $smarty->fetch($snippet['template']);
- }
+ $html .= $smarty->fetch($snippet['template']);
$smarty->assign('snippet', $tmp);
break;
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
-{crmRegion name="price-set-1"}
<div id="priceset" class="crm-section price_set-section">
{if $priceSet.help_pre}
<div class="messages help">{$priceSet.help_pre}</div>
{include file="CRM/Price/Form/Calculate.tpl"}
{/if}
</div>
-{/crmRegion}