Skip to content

Commit

Permalink
OffCanvas Error
Browse files Browse the repository at this point in the history
  • Loading branch information
rossaddison committed Oct 22, 2023
1 parent 87c2f54 commit 4cb7768
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions invoice/resources/views/layout/invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,17 @@
$this->beginBody();

$offcanvas = new Offcanvas();
$offcanvas->title($s->get_setting('custom_title') ?: 'Yii-Invoice');

echo NavBar::widget()
// public folder represented by first forward slash ie. root
->brandImage('/site/favicon.ico')
->brandImageAttributes(['width' => 40, 'height' => 20])
->brandUrl($urlGenerator->generate('invoice/index'))
->offCanvas(
->withWidget(
// If not full screen => 'burger icon ie. 3 horizontal lines' represents menu and
// navbar moves in from left
$offcanvas->title($s->get_setting('custom_title') ?: 'Yii-Invoice')
$offcanvas
)
->begin();

Expand Down

0 comments on commit 4cb7768

Please sign in to comment.