Skip to content

Commit

Permalink
Extract top bar
Browse files Browse the repository at this point in the history
  • Loading branch information
ElisDN committed Mar 26, 2024
1 parent f458e8c commit 5b5fd5a
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 46 deletions.
3 changes: 0 additions & 3 deletions src/modules/landing/views/default/git-composer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php declare(strict_types=1);

use app\widgets\NotificationBar;
use yii\helpers\Url;
use yii\web\View;

Expand Down Expand Up @@ -479,8 +478,6 @@
</div>
</section>

<?= NotificationBar::widget(); ?>

<footer style="background: #e6e6e9">
<div class="container">
<p style="font-size: 13px">
Expand Down
3 changes: 0 additions & 3 deletions src/modules/landing/views/default/laravel-board.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php declare(strict_types=1);

use app\widgets\NotificationBar;
use yii\helpers\Url;
use yii\web\View;

Expand Down Expand Up @@ -525,8 +524,6 @@
</div>
</section>

<?= NotificationBar::widget(); ?>

<footer style="background: #e6e6e9">
<div class="container">
<p>
Expand Down
3 changes: 0 additions & 3 deletions src/modules/landing/views/default/oop-week.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php declare(strict_types=1);

use app\widgets\NotificationBar;
use yii\helpers\Url;
use yii\web\View;

Expand Down Expand Up @@ -518,8 +517,6 @@
</div>
</section>

<?= NotificationBar::widget(); ?>

<footer style="background: #e6e6e9">
<div class="container">
<p>
Expand Down
3 changes: 0 additions & 3 deletions src/modules/landing/views/default/project-manager.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php declare(strict_types=1);

use app\widgets\NotificationBar;
use yii\helpers\Url;
use yii\web\View;

Expand Down Expand Up @@ -406,8 +405,6 @@
</div>
</section>

<?= NotificationBar::widget(); ?>

<footer style="background: #e6e6e9">
<div class="container">
<p>
Expand Down
3 changes: 0 additions & 3 deletions src/modules/landing/views/default/yii2-shop.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php declare(strict_types=1);

use app\widgets\NotificationBar;
use yii\helpers\Url;
use yii\web\View;

Expand Down Expand Up @@ -566,8 +565,6 @@
</div>
</section>

<?= NotificationBar::widget(); ?>

<footer style="background: #e6e6e9">
<div class="container">
<p>
Expand Down
3 changes: 1 addition & 2 deletions src/views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use app\widgets\AdminBar;
use app\widgets\Counters;
use app\widgets\MainMenu;
use app\widgets\NotificationBar;
use yii\caching\TagDependency;
use yii\helpers\Html;
use yii\helpers\Url;
Expand Down Expand Up @@ -40,7 +39,7 @@
<body>
<?php $this->beginBody(); ?>

<?= NotificationBar::widget(); ?>
<?= BlockWidget::widget(['id' => 'top-bar']); ?>

<div class="page-wrapper">

Expand Down
15 changes: 0 additions & 15 deletions src/widgets/NotificationBar.php

This file was deleted.

14 changes: 0 additions & 14 deletions src/widgets/views/NotificationBar.php

This file was deleted.

0 comments on commit 5b5fd5a

Please sign in to comment.