Example #1
0
 public function render()
 {
     if (isset($this->href) and (empty($this->href) or strpos($this->href, '://') === FALSE and $this->href[0] !== '/')) {
         // Add the base URL
         $this->href = URL::base() . $this->href;
     }
     return parent::render();
 }
Example #2
0
 public function render()
 {
     if (isset($this->src) and (empty($this->src) or strpos($this->src, '://') === FALSE and $this->src[0] !== '/')) {
         // Add the base URL
         $this->src = URL::base() . $this->src;
     }
     if (empty($this->type)) {
         $this->type = 'text/javascript';
     }
     return parent::render();
 }
Example #3
0
 public function __construct($content, array $attributes = NULL)
 {
     $attributes['content'] = $content;
     parent::__construct($attributes);
 }