/** * Constructor */ public function __construct(View $View, $settings = array()) { $themeConfig = CroogoTheme::config($View->theme); $themeSettings = $themeConfig['settings']; $settings = Hash::merge($themeSettings, $settings); parent::__construct($View, $settings); }
public function __construct(View $View, $settings = array()) { $themeConfig = CroogoTheme::config($View->theme); $this->_themeSettings = $themeConfig['settings']; $this->_iconMap = $this->_themeSettings['icons']; $prefix = $View->request->param('prefix'); if (isset($this->_themeSettings['prefixes'][$prefix]['helpers']['Html']['icons'])) { $this->_iconMap = Hash::merge($this->_iconMap, $this->_themeSettings['prefixes'][$prefix]['helpers']['Html']['icons']); } parent::__construct($View); $this->__setupDeprecatedViewVars(); }
/** * Constructor */ public function __construct(View $View, $settings = array()) { $themeConfig = CroogoTheme::config($View->theme); $themeSettings = $themeConfig['settings']; $settings = Hash::merge($themeSettings, $settings); parent::__construct($View, $settings); $themeCss = $themeSettings['css']; $boxIconClass = trim($settings['iconDefaults']['classDefault'] . ' ' . $settings['iconDefaults']['classPrefix'] . 'list'); $this->_tags['beginbox'] = "<div class='{$themeCss['row']}'>\n\t\t\t\t<div class='{$themeCss['columnFull']}'>\n\t\t\t\t\t<div class='box'>\n\t\t\t\t\t\t<div class='box-title'>\n\t\t\t\t\t\t\t<i class='{$boxIconClass}'></i>\n\t\t\t\t\t\t\t%s\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class='box-content %s'>"; $this->_tags['endbox'] = '</div> </div> </div> </div>'; $this->_tags['icon'] = '<i class="%s"%s></i>'; }