Issues (1100)

neon/core/themes/neon/layouts/main.php (1 issue)

1
<?php
2
use yii\helpers\Html;
3
use yii\bootstrap\Nav;
4
use yii\bootstrap\NavBar;
5
6
/* @var $this \yii\web\View */
7
/* @var $content string */
8
9
$this->beginPage(); ?>
10
<!DOCTYPE html>
11
<html lang="<?= \Yii::$app->language ?>">
12
<head>
13
	<meta charset="<?= Yii::$app->charset ?>"/>
14
	<meta name="viewport" content="width=device-width, initial-scale=1">
15
	<?= Html::csrfMetaTags() ?>
16
	<title><?= Html::encode($this->title) ?></title>
17
	<?php $this->head() ?>
18
</head>
19
<body>
20
21
	<?php $this->beginBody() ?>
22
	<div class="wrapper">
23
		<?php
24
			NavBar::begin(['brandLabel'=>'app.name', 'options'=>['class'=>'navbar-inverse']]);
25
			Nav::widget(
26
				[
27
					'options' => [
28
					'class' => 'navbar-nav navbar-right ',
29
					],
30
					'items' =>  [
31
						['label'  => 'Home', 'url'  => ['/core/site/index']],
32
						['label'  => 'Login', 'url'  => ['/user/account/login']]
33
					]
34
				]
35
			);
36
			NavBar::end();
37
		?>
38
		<div class="container">
39
40
			<!-- flash messages -->
41
<!--			<div class='flash-messages'>-->
42
<!--				{{ use('/neon/admin/widgets') }}-->
43
<!--				--><?php // ?>
44
<!---->
45
<!--				{{ admin_flash_widget() }}-->
46
<!--			</div>-->
47
48
			<?= $content ?>
49
50
51
		</div>
52
	</div>
53
54
<!--	<footer class="footer">-->
55
<!--		<div class="container">-->
56
<!--			<p class="pull-left">-->
57
<!--				© Newicon Ltd --><?//= date('Y') ?>
0 ignored issues
show
Security Best Practice introduced by
It is not recommended to use PHP's short opening tag <?, better use <?php, or <?= in case of outputting.

Short opening tags are disabled in PHP?s default configuration. In such a case, all content of this file is output verbatim to the browser without being parsed, or executed.

As a precaution to avoid these problems better use the long opening tag <?php.

Loading history...
58
<!--			</p>-->
59
<!--		</div>-->
60
<!--	</footer>-->
61
	<?php $this->endBody() ?>
62
</body>
63
</html>
64
<?php $this->endPage() ?>
65