Skip to content

Commit

Permalink
feat: add $config->hideTopBar flag
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Oct 15, 2023
1 parent 27ded7a commit dd8e926
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RockFrontend.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ public function addTopBar(&$html)
if (!$page->editable()) return;
if ($page->template == 'admin') return;
if ($this->wire->input->get('rfpreview')) return;
if ($this->wire->config->hideTopBar) return;

/** @var RockMigrations $rm */
$less = __DIR__ . "/bar/bar.less";
Expand Down

0 comments on commit dd8e926

Please sign in to comment.