Skip to content

Commit

Permalink
Include theme specific css
Browse files Browse the repository at this point in the history
  • Loading branch information
getdatakick committed Nov 23, 2018
1 parent 7b9db7a commit 084ccd9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ gulp.task('copy-text-files', function(done) {
let sources = map(e => 'php/**/*.'+e, ext);
sources = append('php/**/back.css', sources);
sources = append('php/**/fallback.css', sources);
sources = append('php/**/css/themes/*.css', sources);
sources = append('!php/license-header.*', sources);
sources = append('!php/**/revws_bootstrap.js', sources);
return gulp
Expand Down
4 changes: 4 additions & 0 deletions php/revws.php
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,10 @@ public function includeCommonStyles($controller) {
$controller->addJquery();
$controller->addJqueryPlugin('fancybox');
$controller->addCSS($this->getCSSFile(), 'all', null, false);
$themeName = "views/css/themes/"._THEME_NAME_.".css";
if (file_exists(REVWS_MODULE_DIR . '/' . $themeName)) {
$controller->addCSS($this->getPath($themeName), 'all', null, false);
}
}

private function getProductReviewsLink($product) {
Expand Down
Empty file added php/views/css/themes/empty
Empty file.

0 comments on commit 084ccd9

Please sign in to comment.