Skip to content

Commit

Permalink
Add notification
Browse files Browse the repository at this point in the history
  • Loading branch information
ElisDN committed Dec 25, 2023
1 parent 78a7592 commit 39a0ba7
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/modules/landing/views/default/git-composer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php declare(strict_types=1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<footer style="background: #e6e6e9">
<div class="container">
<p>
Expand Down
4 changes: 3 additions & 1 deletion src/views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
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 @@ -44,6 +45,8 @@
<body>
<?php $this->beginBody(); ?>

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

<div class="page-wrapper">

<header class="page-header">
Expand Down Expand Up @@ -156,4 +159,3 @@
</body>
</html>
<?php $this->endPage(); ?>

15 changes: 15 additions & 0 deletions src/widgets/NotificationBar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace app\widgets;

use yii\base\Widget;

final class NotificationBar extends Widget
{
public function run(): string
{
return $this->render('NotificationBar');
}
}
13 changes: 13 additions & 0 deletions src/widgets/views/NotificationBar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!--noindex-->
<div style="
padding: 10px;
text-align: center;
background: #ff2b00;
color: #fff;
font-family: arial, sans-serif;
font-size: 13px;
line-height: 1.5;
">
Производится смена системы оплаты. Оформление заказов временно недоступно.
</div>
<!--/noindex-->

0 comments on commit 39a0ba7

Please sign in to comment.