Esempio n. 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();
 }
Esempio n. 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();
 }