public function __construct(Library\ObjectConfig $config) { parent::__construct($config); $path = $this->getObject('request')->getBaseUrl()->getPath(); $path .= '/theme/' . $this->getObject('application')->getTheme() . '/'; $this->getTemplate()->getFilter('alias')->addAlias(array($this->_mediaurl . '/application/' => $path), Library\TemplateFilter::MODE_COMPILE | Library\TemplateFilter::MODE_RENDER); }
public function __construct(Library\ObjectConfig $config) { parent::__construct($config); $path = $this->getObject('request')->getBaseUrl()->getPath(); $path .= '/theme/' . $this->getObject('application')->getTheme() . '/'; $this->getTemplate()->getFilter('url')->addAlias('/assets/application/', $path); }
public function __construct(Library\ObjectConfig $config) { parent::__construct($config); if ($config->editor_settings) { $this->_editor_settings = $config->editor_settings; } if (isset($config->codemirror)) { $this->codemirror = $config->codemirror; } if (isset($config->codemirrorOptions)) { $this->codemirrorOptions = $config->codemirrorOptions; } }