Exemplo n.º 1
0
 /**
  * Get the renderer
  *
  * @param   string  $layout   Layout to load.
  * @param   array   $options  Optional array with layout options
  *
  * @return  JLayoutFile       Renderer instance
  */
 protected function getRenderer($layout, $options = array())
 {
     $template = JFactory::getApplication()->getTemplate();
     $renderer = new JLayoutFile($layout, null, $options);
     $renderer->setIncludePaths(array(JPATH_THEMES . "/" . $template . '/html/layouts/plugins/' . $this->_type . '/' . $this->_name, JPATH_SITE . '/layouts/plugins/' . $this->_type . '/' . $this->_name));
     return $renderer;
 }
Exemplo n.º 2
0
 /**
  * Get the renderer
  *
  * @param   string  $layoutId  Id to load
  *
  * @return  JLayout
  *
  * @since   3.5
  */
 protected function getRenderer($layoutId = 'default')
 {
     $renderer = new JLayoutFile($layoutId);
     $renderer->setDebug($this->isDebugEnabled());
     $layoutPaths = $this->getLayoutPaths();
     if ($layoutPaths) {
         $renderer->setIncludePaths($layoutPaths);
     }
     return $renderer;
 }
Exemplo n.º 3
0
 /**
  * Get the plugin renderer
  *
  * @param   string  $layoutId  Layout identifier
  *
  * @return  JLayout
  *
  * @since   3.5
  */
 protected function getRenderer($layoutId = 'default')
 {
     $renderer = new JLayoutFile($layoutId);
     $renderer->setIncludePaths($this->getLayoutsPaths());
     return $renderer;
 }