Example #1
0
 function initializeTemplate()
 {
     $l = $this->api->locate('addons', __NAMESPACE__, 'location');
     $addon_location = $this->api->locate('addons', __NAMESPACE__);
     $this->api->pathfinder->addLocation($addon_location, array('js' => 'js', 'css' => 'css', 'template' => 'templates'))->setParent($l);
     parent::initializeTemplate();
 }
Example #2
0
 function initializeTemplate()
 {
     $this_class = get_class($this);
     $namespace_class = explode("\\", $this_class);
     $this->namespace = $namespace_class[0];
     preg_match_all("/(.*)_(.*)\$/", $namespace_class[1], $matches);
     $this->component_type = $matches[2][0];
     // Add Location for templates in Class Extending / Inherited  Component Base
     $l = $this->api->locate('addons', $this->namespace, 'location');
     $this->api->pathfinder->addLocation($this->api->locate('addons', $this->namespace), array('template' => 'templates', 'css' => 'templates/css', 'js' => 'templates/js'))->setParent($l);
     parent::initializeTemplate();
 }
Example #3
0
File: Tool.php Project: xepan/cms
 function initializeTemplate($template_spot = null, $template_branch = null)
 {
     foreach ($this->_options as $attr => &$value) {
         if ($value === 'true') {
             $value = true;
         }
         if ($value === 'false') {
             $value = false;
         }
         if ($value === '1') {
             $value = 1;
         }
         if ($value === '0') {
             $value = 0;
         }
         if ($value === 'null') {
             $value = null;
         }
     }
     $this->options = $this->_options + $this->options;
     parent::initializeTemplate($template_spot, $template_branch);
 }
Example #4
0
 function initializeTemplate($tag, $template)
 {
     $template = $this->form_template ? $this->form_template : $template;
     $tag = $this->form_tag ? $this->form_tag : $tag;
     return parent::initializeTemplate($tag, $template);
 }