コード例 #1
0
ファイル: SaeAsset.php プロジェクト: chariothy/laravel4-sae
 public function style($url, $attributes = array(), $secure = null)
 {
     if ($this->url->isValidUrl($url) or !$this->app->environment('sae')) {
         return parent::style($url, $attributes, $secure);
     } else {
         $defaults = array('media' => 'all', 'type' => 'text/css', 'rel' => 'stylesheet');
         $attributes = $attributes + $defaults;
         $attributes['href'] = $this->patchUrl($url, $secure, 'style');
         return '<link' . $this->attributes($attributes) . '>' . PHP_EOL;
     }
 }
コード例 #2
0
ファイル: _ide_helper.php プロジェクト: nmkr/basic-starter
 /**
  * Generate a link to a CSS file.
  *
  * @param string $url
  * @param array $attributes
  * @param bool $secure
  * @return string 
  * @static 
  */
 public static function style($url, $attributes = array(), $secure = null)
 {
     return \Illuminate\Html\HtmlBuilder::style($url, $attributes, $secure);
 }
コード例 #3
0
 /**
  * Generate a link to a CSS file.
  *
  * @param  string  $url
  * @param  array   $attributes
  * @param  bool    $secure
  * @param  bool    $enablePrefix
  * @return string
  */
 public function style($url, $attributes = array(), $secure = null, $enablePrefix = true)
 {
     return parent::style(($enablePrefix ? $this->prefix : null) . $url, $attributes, $secure);
 }
コード例 #4
0
ファイル: HtmlBuilder.php プロジェクト: minors/html
 /**
  * Generate a link to a CSS file.
  *
  * @param  string  $url
  * @param  array   $attributes
  * @param  bool    $secure
  * @return \Illuminate\Support\HtmlString
  */
 public function style($url, $attributes = array(), $secure = null)
 {
     return new HtmlString(parent::style($url, $attributes, $secure));
 }
コード例 #5
0
ファイル: _ide_helper.php プロジェクト: jorzhikgit/MLM-Nexus
 /**
  * Generate a link to a CSS file.
  *
  * @param string $url
  * @param array $attributes
  * @return string 
  * @static 
  */
 public static function style($url, $attributes = array())
 {
     return \Illuminate\Html\HtmlBuilder::style($url, $attributes);
 }
コード例 #6
0
 /**
  * @param $url
  * @param array $attributes
  * @param null $secure
  * @param bool $force
  * @return string
  */
 public function styleBust($url, $attributes = array(), $secure = null, $overrideConfig = true)
 {
     return parent::style($this->tryBuildBustableUrl($url, $overrideConfig), $attributes, $secure);
 }