Exemplo n.º 1
0
 public function render()
 {
     $this->prepareOptions();
     $this->value = $this->label;
     $this->options->label = '';
     $this->code = HTML::input($this->options);
     return parent::render();
 }
Exemplo n.º 2
0
 public function render()
 {
     $this->getAttributes();
     $this->attributes->value = $this->label;
     $this->attributes->label = '';
     $this->code = HTML::input($this->attributes);
     return parent::render();
 }
Exemplo n.º 3
0
 /**
  * Render
  */
 public function render()
 {
     $this->getAttributes();
     if ($this->value && ($this->value = Url::link(Url::toUri(UPLOADS . $this->value, ROOT, FALSE)))) {
         $tpl = new Template('Form.file');
         $tpl->assign($this->attributes);
         $tpl->value = $this->value;
         $this->code = $tpl->render();
     }
     return parent::render();
 }
Exemplo n.º 4
0
 /**
  * Render
  */
 public function render()
 {
     $this->getAttributes();
     $this->attributes->type = 'file';
     $this->attributes->class = 'ajaxed image';
     $tpl = new Template('Upload_Ajax.image');
     $tpl->assign($this->attributes);
     if ($this->value && ($this->value = Url::link(Url::toUri(UPLOADS . $this->value, ROOT, FALSE)))) {
         $tpl->value = $this->value;
         $tpl->image = $this->image;
     }
     $this->code = $tpl->render();
     return Form_Element_Abstract::render();
 }
Exemplo n.º 5
0
 /**
  * Render
  */
 public function render()
 {
     $this->prepareOptions();
     $this->code = HTML::paired_tag('span', $this->value);
     return parent::render();
 }
Exemplo n.º 6
0
 /**
  * Render
  */
 public function render()
 {
     $this->getAttributes();
     $this->code = HTML::paired_tag('span', $this->value);
     return parent::render();
 }