Exemplo n.º 1
0
 /**
  * Shorthand function to include field template on the parent theme class.
  *
  * @author Jason Rey <*****@*****.**>
  * @since  1.1
  * @access public
  * @param  string    $file   The theme file
  * @param  array     $params Parameters to pass in to the theme class
  * @return string            The HTML content
  */
 public final function includeTemplate($file, $params = array())
 {
     $namespace = $this->resolve($file);
     if (empty($namespace)) {
         echo JText::_('COM_EASYSOCIAL_FIELDS_NO_THEME_FILE_FOUND') . ': ' . $file;
         return;
     }
     foreach ($params as $k => $v) {
         $this->theme->set($k, $v);
     }
     return $this->theme->output($namespace);
 }