Esempio n. 1
0
 function defaultTemplate()
 {
     if ($this->app_type != 'admin' && !is_null($this->template_path)) {
         return [$this->template_path];
     }
     return parent::defaultTemplate();
 }
Esempio n. 2
0
 function defaultTemplate()
 {
     if (file_exists($file = getcwd() . DS . 'epan-components' . DS . $this->namespace . DS . 'templates' . DS . 'view' . DS . $this->namespace . '-' . str_replace("View_Tools_", "", $this->component_type) . '.html')) {
         return array('view/' . $this->namespace . '-' . str_replace("View_Tools_", "", $this->component_type));
     } else {
         return parent::defaultTemplate();
     }
 }
Esempio n. 3
0
 function defaultTemplate()
 {
     // add add-on locations to pathfinder
     $l = $this->api->locate('addons', __NAMESPACE__, 'location');
     $addon_location = $this->api->locate('addons', __NAMESPACE__);
     $this->api->pathfinder->addLocation($addon_location, array())->setParent($l);
     //return array('view/lister/tags');
     return parent::defaultTemplate();
 }