= $version) { return true; } } return false; } /** * @return bool */ protected static function _showAlert() { if (array_key_exists(self::COOKIE_NAME, $_COOKIE)) { return false; } return true; } /** * @return bool */ public static function initAlert() { if (!constant('BROWSER_CHECK')) { return false; } if (static::_showAlert() && static::_isOldIe()) { /** @var View $view */ $view = self::getInstance(); /** @var \Qs_Doc $doc */ $doc = Zend_Registry::get('doc'); $item = []; $item['cookieName'] = self::COOKIE_NAME; $item['containerClass'] = self::CONTAINER_CLASS; $item['tpl'] = $view->getTemplate('alert.tpl'); $doc->assign(self::TEMPLATE_VARIABLE, $item); } return true; } }