protected function _initIconColor() { $this->_icon_color = "#FFFFFF"; if (Installer_Model_Installer::hasModule("Whitelabel")) { $this->_icon_color = $this->getBlock("area")->getColor(); } return $this; }
public function getWhiteLabelEditor() { if (!$this->_white_label_editor) { if (Installer_Model_Installer::hasModule("whitelabel")) { $this->_white_label_editor = new Whitelabel_Model_Editor(); $this->_white_label_editor->find($this->getId(), "admin_id"); } else { $this->_white_label_editor = new Core_Model_Default(); } } return $this->_white_label_editor; }
public function preDispatch() { $this->_xml_files = array("android-app.xml" => array("is_translatable" => true, "name" => "android-app.xml", "base_path" => Core_Model_Directory::getBasePathTo("var" . DS . "apps" . DS . "android" . DS . "Siberian" . DS . "app" . DS . "src" . DS . "main" . DS . "res" . DS . "values" . DS), "user_path" => Core_Model_Directory::getBasePathTo("var" . DS . "apps" . DS . "android" . DS . "Siberian" . DS . "app" . DS . "src" . DS . "main" . DS . "res" . DS), "file_name" => "strings.xml", "info" => $this->_("Translate the 'e.g.' between parentheses only.")), "android-previewer.xml" => array("is_translatable" => Installer_Model_Installer::hasModule('Previewer'), "name" => "android-previewer.xml", "base_path" => Core_Model_Directory::getBasePathTo("var" . DS . "apps" . DS . "android" . DS . "previewer" . DS . "app" . DS . "src" . DS . "main" . DS . "res" . DS . "values" . DS), "user_path" => Core_Model_Directory::getBasePathTo("var" . DS . "apps" . DS . "android" . DS . "previewer" . DS . "app" . DS . "src" . DS . "main" . DS . "res" . DS), "file_name" => "strings.xml", "info" => $this->_("Translate the 'e.g.' between parentheses only."))); parent::preDispatch(); }
protected function _canAccessWhiteLabelEditor() { return Installer_Model_Installer::hasModule("Whitelabel") && !$this->getCurrentWhiteLabelEditor() && $this->_canAccess("white_label_editor"); }
protected function _initWhiteLabelEditor() { try { if (Installer_Model_Installer::hasModule("whitelabel")) { $this->_white_label_editor = new Whitelabel_Model_Editor(); $this->_white_label_editor->find($this->getHttpHost(), "host"); if (!$this->_white_label_editor->isActive()) { $this->_white_label_editor->unsData(); } } else { $this->_white_label_editor = new Core_Model_Default(array("is_active" => false)); } } catch (Exception $e) { } return $this; }
protected function _canAccessPreviewer() { return Installer_Model_Installer::hasModule("Previewer"); }