// Collection of LESS files to be compiled
// Filename with no extension, relative to the /style directory in the player build folder
public $lessFiles = ['fluidbook'];
- public $lessFilesExtras = [
- // Extra files that will be copied when compiling LESS (eg. used to allow video-js-core.css to be copied)
- 'mmenu/mmenu.less',
- 'mmenu/jquery.mmenu.all.css',
-// 'mmenu/jquery.mmenu.css',
-// 'mmenu/jquery.mmenu.offcanvas.css',
-// 'mmenu/jquery.mmenu.positioning.css',
-// 'mmenu/jquery.mmenu.effects.css',
- ];
public $specialCSS = array();
public $phonegapStandardPlugins = array('ios' => array('ExternalFileUtil'),
* @param $path The path of the file relative to the /style folder, without any extension
* @param $extra_files Optional array of extra files that should be copied across for use during LESS compilation
*/
- public function addLess($path, $extra_files = []) {
+ public function addLess($path) {
if (!in_array($path, $this->lessFiles)) {
$this->lessFiles[] = $path;
}
-
- // Make sure no duplicates are added here either
- $this->lessFilesExtras = array_unique(array_merge($this->lessFilesExtras, $extra_files));
}
protected function writeIndex() {
}
file_put_contents($tmp . '/book-variables.less', implode("\n", $bookVariables));
- // Also copy any "extra" files that might be needed by LESS compilation
- // (eg. video-js-core.css is needed by videojs.less)
- foreach ($this->lessFilesExtras as $extra) {
- $destination_extra = $tmp . '/' . $extra;
- if (!is_dir(dirname($destination_extra))) {
- mkdir(dirname($destination_extra), 0777, true);
- }
- copy($this->assets . '/style/' . $extra, $destination_extra);
- }
-
foreach ($this->lessFiles as $f) {
$source_less = $this->assets . '/style/' . $f . '.less';