Пример #1
0
 public function output(\Pagemill_Data $data, \Pagemill_Stream $stream)
 {
     $template = $this->getAttribute('template') ? $this->getAttribute('template') : '/mailform/field/text.inc.html';
     $include = new Typeframe_Tag_Include('include', array('template' => $template), $this);
     $include->output($data, $stream);
     $include->detach();
 }
Пример #2
0
 public function output(Pagemill_Data $data, Pagemill_Stream $stream)
 {
     $include = null;
     if (!$this->children()) {
         if ($this->pluginTemplate) {
             $include = new Typeframe_Tag_Include('include', array('template' => $this->pluginTemplate), $this);
         }
     }
     $this->processInner($data, $stream);
     if ($include) {
         $include->detach();
     }
 }