Exemplo n.º 1
0
 /**
  * Loop through all template slots and fill them in with the results of
  * presentation data.
  *
  * @param string A chunk of decorator content.
  *
  * @return string A decorated template.
  *
  * @author Alexander Kuznetsov (akuznetsov@selectosa.com)
  * @since  3.0.0
  */
 protected function &decorate(&$content)
 {
     // call our parent decorate() method
     parent::decorate($content);
     $retval = $this->smarty->fetch($this->getDecoratorDirectory() . "/" . $this->getDecoratorTemplate());
     return $retval;
 }
Exemplo n.º 2
0
 /**
  * Loop through all template slots and fill them in with the results of
  * presentation data.
  *
  * @param string A chunk of decorator content.
  *
  * @return string A decorated template.
  *
  * @author Sean Kerr (skerr@mojavi.org)
  * @since  3.0.0
  */
 protected function &decorate(&$content)
 {
     // call our parent decorate() method
     parent::decorate($content);
     // alias the attributes array so it's directly accessible to the
     // template
     $template =& $this->attributes;
     // render the decorator template and return the result
     $decoratorTemplate = $this->getDecoratorDirectory() . '/' . $this->getDecoratorTemplate();
     ob_start();
     require $decoratorTemplate;
     $retval = ob_get_contents();
     ob_end_clean();
     return $retval;
 }