protected $stylesheets = [];
protected $lessSource;
protected $cssfont = [];
- public $lessFiles = ['fluidbook','videojs/videojs'];
+ public $lessFiles = ['fluidbook', 'videojs/videojs'];
public function isMobileFirst()
{
$lessContents = '';
- $this->lessVariables['import-cart-styles']='none';
- $this->lessVariables['articles-title-color']='#000000';
+ $this->lessVariables['import-cart-styles'] = 'none';
+ $this->lessVariables['articles-title-color'] = '#000000';
$this->lessVariables['font'] = $this->_font($this->config->interfaceFont);
$this->lessVariables['text-transform'] = $this->_themeBoolean($this->config->interfaceFontUppercase) ? 'uppercase' : 'inherit';
protected function checkThemeImage($path)
{
return true;
-// $path = trim($path);
-// $path = trim($path, '/');
-// if (!$path) {
-// return false;
-// }
-// $p = $this->themeRoot . '/' . $path;
-// if (file_exists($p)) {
-// return $p;
-// }
-// $po = str_replace('.svg', '.o.svg', $p);
-// if (file_exists($po)) {
-// copy($po, $p);
-// return $p;
-// }
-// return false;
+ $path = trim($path);
+ $path = trim($path, '/');
+ if (!$path) {
+ return false;
+ }
+ $p = $this->stub . '/_theme/' . $path;
+ if (file_exists($p)) {
+ $this->vdir->copy($p, 'data/' . $path);
+ return $p;
+ }
+ $o=str_replace('.svg', '.o.svg', $p);
+ if (file_exists($po)) {
+ copy($po, $p);
+ $this->vdir->copy($p, 'data/' . $path);
+ return $p;
+ }
+ return false;
}
protected function _lessBoolean($val)