Skip to content
Snippets Groups Projects
Commit 5b9bedc8 authored by Demian Katz's avatar Demian Katz
Browse files

Style fix; added default param values.

parent 98973245
Branches
Tags
No related merge requests found
...@@ -85,12 +85,15 @@ class HeadLink extends \Zend\View\Helper\HeadLink ...@@ -85,12 +85,15 @@ class HeadLink extends \Zend\View\Helper\HeadLink
/** /**
* Compile a less file to css and add to css folder * Compile a less file to css and add to css folder
* *
* @param string $file path to less file * @param string $file Path to less file
* @param string $media Media type
* @param string $conditionalStylesheet Load condition for file
* *
* @return void * @return void
*/ */
public function addLessStylesheet($file, $media, $conditionalStylesheet) public function addLessStylesheet($file, $media = 'all',
{ $conditionalStylesheet = false
) {
$relPath = 'less/' . $file; $relPath = 'less/' . $file;
$urlHelper = $this->getView()->plugin('url'); $urlHelper = $this->getView()->plugin('url');
$currentTheme = $this->themeInfo->findContainingTheme($relPath); $currentTheme = $this->themeInfo->findContainingTheme($relPath);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment