예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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;
     }
 }