_addItem($item, $groupName); } public static function initAlert() { /** @var \Qs_Doc $doc */ $doc = Zend_Registry::get('doc'); if (!$doc->isPagePreviewMode()) { return false; } /** @var View $view */ $view = self::getInstance(); $item['tpl'] = $view->getTemplate('alert.tpl'); $doc->assign('CSM_PREVIEW_ALERT', $item); return true; } }