public function addSetting($settings) {
$this->settings = $this->mergeSettings($this->settings, $settings);
if (!$this->addedSettings) {
- $region = self::isAjaxMode() ? 'page-body' : 'html-header';
+ $region = self::isAjaxMode() ? 'ajax-snippet' : 'html-header';
$resources = $this;
CRM_Core_Region::instance($region)->add(array(
'callback' => function(&$snippet, &$html) use ($resources) {
{if $smarty.get.snippet eq 2}
{include file="CRM/common/print.tpl"}
{else}
+ {crmRegion name='ajax-snippet'}{/crmRegion}
+
{crmRegion name='page-header' allowCmsOverride=0}{/crmRegion}
-
+
{crmRegion name='page-body'}
{* Add status messages and container-snippet div unless we are outputting json. *}