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; } }
/** * 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); }
/** * 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); }
/** * 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)); }
/** * 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); }
/** * @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); }