Ejemplo n.º 1
0
Archivo: Part.php Proyecto: atk4/atk4
 public function render()
 {
     $c = $this->content;
     if ($c instanceof SMlite) {
         $c->set($this->owner->args);
         $c = $c->render();
     }
     $this->template->setHTML($this->owner->args);
     $this->template->setHTML('Content', $c);
     $this->template->set('boundary', $this->owner->boundary);
     return $this->template->render();
 }
Ejemplo n.º 2
0
Archivo: Basic.php Proyecto: atk4/atk4
 public function render()
 {
     $this->template->set('body_parts', '');
     foreach ($this->elements as $el) {
         if ($el instanceof TMail_Part) {
             $this->template->appendHTML('body_parts', $el->render());
         }
     }
     $this->template->set('boundary', $this->boundary);
     $this->headers->set('boundary', $this->boundary)->setHTML($this->args);
 }