Skip to content

Commit

Permalink
feat: add support for rockblocks folder
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Oct 23, 2023
1 parent 0e4e042 commit bf91d6f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions classes/StylesArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ public function addDefaultFolders()
$this->addAll('/site/templates/less');
$this->addAll('/site/templates/sections');
$this->addAll('/site/templates/partials');
$this->addAll('/site/assets/RockMatrix');
$this->addAll('/site/modules/RockBlocks/blocks');

// load less files from rockblocks
$rpb = $this->wire->modules->get("RockPageBuilder");
if ($rpb && $rpb->useRockBlocks) {
$this->addAll('/site/modules/RockPageBuilder/blocks');
}

// add the webfonts.css file if it exists
$file = $this->rockfrontend()->getFile('/site/templates/webfonts/webfonts.css');
Expand Down

0 comments on commit bf91d6f

Please sign in to comment.