Пример #1
0
 /**
  * @param string $contentType
  * @param string $attributes
  * @return string
  */
 protected function addDefaultAttributes($contentType, $attributes)
 {
     switch ($contentType) {
         case 'css':
             return ' rel="stylesheet/less" type="text/css" ' . ($attributes ?: ' media="all"');
             break;
     }
     return parent::addDefaultAttributes($contentType, $attributes);
 }
Пример #2
0
 /**
  * @param string $contentType
  * @param string $attributes
  * @return string
  */
 protected function addDefaultAttributes($contentType, $attributes)
 {
     $taggedAttributes = parent::addDefaultAttributes($contentType, $attributes);
     if ($taggedAttributes !== $attributes) {
         return $taggedAttributes;
     }
     switch ($contentType) {
         case 'less':
             $taggedAttributes = ' rel="stylesheet/less" type="text/css" ' . ($attributes ?: ' media="all"');
             break;
     }
     return $taggedAttributes;
 }