public function addVideoJs()
{
-
+ $this->addLess('videojs/videojs');
}
public function addSlideshowLibrary($inline = true)
$l = ($inline ? $this->config->inlineSlideshowLibrary : $this->config->popupSlideshowLibrary);
$this->addLess('slideshow/' . $l);
}
+
+
}
protected $stylesheets = [];
protected $lessSource;
protected $cssfont = [];
- public $lessFiles = ['fluidbook', 'videojs/videojs'];
+ public $lessFiles = ['fluidbook'];
public function isMobileFirst()
{
return $this->config->mobileNavigationType === 'mobilefirst';
}
+ /**
+ * Helper function to add a unique stylesheet entry to the LESS stack for compilation
+ * Duplicate paths are ignored.
+ * @param $path string The path of the file relative to the /style folder, without any extension
+ */
+ public function addLess($path)
+ {
+ if (!in_array($path, $this->lessFiles)) {
+ $this->lessFiles[] = $path;
+ }
+ }
+
public function addFontKit($font)
{
if ($font === 'sans-serif') {