Example #1
0
 public function script($url, $attributes = array(), $secure = null)
 {
     if ($this->url->isValidUrl($url) or !$this->app->environment('sae')) {
         return parent::script($url, $attributes, $secure);
     } else {
         $attributes['src'] = $this->patchUrl($url, $secure, 'script');
         return '<script' . $this->attributes($attributes) . '></script>' . PHP_EOL;
     }
 }
Example #2
0
 /**
  * Generate a link to a JavaScript file.
  *
  * @param string $url
  * @param array $attributes
  * @param bool $secure
  * @return string 
  * @static 
  */
 public static function script($url, $attributes = array(), $secure = null)
 {
     return \Illuminate\Html\HtmlBuilder::script($url, $attributes, $secure);
 }
Example #3
0
 /**
  * Generate a link to a JavaScript file.
  *
  * @param  string  $url
  * @param  array   $attributes
  * @param  bool    $secure
  * @param  bool    $enablePrefix
  * @return string
  */
 public function script($url, $attributes = array(), $secure = null, $enablePrefix = true)
 {
     return parent::script(($enablePrefix ? $this->prefix : null) . $url, $attributes, $secure);
 }
Example #4
0
 /**
  * Generate a link to a JavaScript file.
  *
  * @param  string  $url
  * @param  array   $attributes
  * @param  bool    $secure
  * @return \Illuminate\Support\HtmlString
  */
 public function script($url, $attributes = array(), $secure = null)
 {
     return new HtmlString(parent::script($url, $attributes, $secure));
 }
Example #5
0
 /**
  * Generate a link to a JavaScript file.
  *
  * @param string $url
  * @param array $attributes
  * @return string 
  * @static 
  */
 public static function script($url, $attributes = array())
 {
     return \Illuminate\Html\HtmlBuilder::script($url, $attributes);
 }
 /**
  * @param $url
  * @param array $attributes
  * @param null $secure
  * @param bool $force
  * @return string
  */
 public function scriptBust($url, $attributes = array(), $secure = null, $overrideConfig = true)
 {
     return parent::script($this->tryBuildBustableUrl($url, $overrideConfig), $attributes, $secure);
 }