// Less files must be copied to temporary directory so they'll
// have access to the variables generated in book-variables.less
copy($source_less, $destination_less);
- $less = new CubeIT_CommandLine('lessc');
- $less->setArg('plugin', 'less-plugin-clean-css');
+ $less = new CubeIT_CommandLine('/usr/local/bin/lessc');
$less->setArg(null, $destination_less);
$less->setArg(null, $destination_css);
$less->execute();
// Less files must be copied to temporary directory so they'll
// have access to the variables generated in book-variables.less
copy($source_less, $destination_less);
- $less = new CubeIT_CommandLine('lessc');
- $less->setArg('plugin', 'less-plugin-clean-css');
+ $less = new CubeIT_CommandLine('/usr/local/bin/lessc');
$less->setArg(null, $destination_less);
$less->setArg(null, $destination_css);
$less->execute();
$tmp = cubeFiles::tempnam();
file_put_contents($tmp, $js);
- $uglify = new CubeIT_CommandLine('uglifyjs');
- $uglify->setPath(CONVERTER_PATH);
+ $uglify = new CubeIT_CommandLine('/usr/local/bin/uglifyjs');
$uglify->setArg('o', $minimized);
- $uglify->setArg('no-copyright');
$uglify->setArg(null, $tmp);
$uglify->execute();
$uglify->debug();
// Less files must be copied to temporary directory so they'll
// have access to the variables generated in book-variables.less
copy($source_less, $destination_less);
- $less = new CubeIT_CommandLine('lessc');
- $less->setArg('plugin', 'less-plugin-clean-css');
+ $less = new CubeIT_CommandLine('/usr/local/bin/lessc');
+ //$less->setArg('clean-css', '--s1 --advanced --compatibility=ie10');
$less->setArg(null, $destination_less);
$less->setArg(null, $this->vdir . '/' . $destination_css);
$less->execute();
+ $less->debug();
if (!file_exists($this->vdir . '/' . $destination_css)) {
die($less->output);
}
$h = round($this->height * $this->getCssScale());
// Note: width and height for the video is normally measured from the
- // preview frame for local files or set to 1280 x 720 for web videos.
- // The $w and $h variables here seem to be null generally...
+ // preview frame for local files or set to 1280 x 720 for web videos.
+ // The $w and $h variables here seem to be null generally...
return $this->makeVideoTag($this, $w, $h, $this->compiler);
}
$attr['height'] = $h;
} else if (!is_null($compiler)) {
- // Get video dimensions from thumbnail if possible (locally uploaded files)
+ // Get video dimensions from thumbnail if possible (locally uploaded files)
$path = WS_BOOKS . '/working/' . $compiler->book_id . '/' . $basename . '.jpg';
$dim = getimagesize($path);
$attr['width'] = $dim[0];
if (in_array($this->to, $this->_share)) {
return parent::getAdditionnalContent() . ' data-service="' . $this->to . '" ';
} else {
- return parent::getClasses() . ' data-action="' . $this->to . '" ';
+ return /*parent::getClasses()*/
+ ' data-action="' . $this->to . '" ';
}
}
// Less files must be copied to temporary directory so they'll
// have access to the variables generated in book-variables.less
copy($source_less, $destination_less);
- $less = new CubeIT_CommandLine('lessc');
- $less->setArg('plugin', 'less-plugin-clean-css');
+ $less = new CubeIT_CommandLine('/usr/local/bin/lessc');
$less->setArg(null, $destination_less);
$less->setArg(null, $this->vdir . '/' . $destination_css);
$less->execute();