@@ -28,6 +28,6 @@ |
||
28 | 28 | |
29 | 29 | public static function powered() |
30 | 30 | { |
31 | - return html::label('Powered by ') . Html::a(' Yii Framework', 'http://www.yiiframework.com/', ['class' => 'a', 'target' => '_blank', 'rel' => 'external']); |
|
31 | + return html::label('Powered by ').Html::a(' Yii Framework', 'http://www.yiiframework.com/', ['class' => 'a', 'target' => '_blank', 'rel' => 'external']); |
|
32 | 32 | } |
33 | 33 | } |
34 | 34 | \ No newline at end of file |
@@ -23,13 +23,13 @@ |
||
23 | 23 | /* @var $model cjtterabytesoft\adminlte\basic\models\LoginForm */ |
24 | 24 | |
25 | 25 | $this->title = 'Login'; |
26 | -$this->params['breadcrumbs'][] = Yii::t('adminlte',$this->title); |
|
26 | +$this->params['breadcrumbs'][] = Yii::t('adminlte', $this->title); |
|
27 | 27 | |
28 | 28 | ?> |
29 | 29 | |
30 | 30 | <?= Html::beginTag('div', ['class' => 'form-box', 'id' => 'site-login-frontend']) ?> |
31 | 31 | <?= Html::beginTag('div', ['class' => 'header']) ?> |
32 | - <?= html::tag('h3', Html::encode(Yii::t('adminlte',$this->title)), ['class' => 'panel-title-custom']) ?> |
|
32 | + <?= html::tag('h3', Html::encode(Yii::t('adminlte', $this->title)), ['class' => 'panel-title-custom']) ?> |
|
33 | 33 | <?= Html::endTag('div') ?> |
34 | 34 | <?= Html::beginTag('div', ['class' => 'body bg-gray']) ?> |
35 | 35 | <?php $form = ActiveForm::begin([ |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /* @var $model cjtterabytesoft\adminlte\basic\models\ContactForm */ |
25 | 25 | |
26 | 26 | $this->title = 'Contact'; |
27 | -$this->params['breadcrumbs'][] = Yii::t('adminlte',$this->title); |
|
27 | +$this->params['breadcrumbs'][] = Yii::t('adminlte', $this->title); |
|
28 | 28 | |
29 | 29 | ?> |
30 | 30 |
@@ -20,19 +20,19 @@ |
||
20 | 20 | /* @var $this yii\web\View */ |
21 | 21 | |
22 | 22 | $this->title = 'About Us'; |
23 | -$this->params['breadcrumbs'][] = Yii::t('adminlte',$this->title); |
|
23 | +$this->params['breadcrumbs'][] = Yii::t('adminlte', $this->title); |
|
24 | 24 | |
25 | 25 | ?> |
26 | 26 | |
27 | 27 | <?= Html::beginTag('div', ['class' => 'box box-solid', 'id' => 'site-about']) ?> |
28 | 28 | <?= Html::beginTag('div', ['class' => 'box-header']) ?> |
29 | - <?= Html::encode(Yii::t('adminlte', Yii::t('adminlte',$this->title))) ?> |
|
29 | + <?= Html::encode(Yii::t('adminlte', Yii::t('adminlte', $this->title))) ?> |
|
30 | 30 | <?= Html::endTag('div') ?> |
31 | 31 | <?= Html::beginTag('div', ['class' => 'box-body']) ?> |
32 | 32 | <?= html::tag('p', '') ?> |
33 | 33 | <?= html::tag('p', Yii::t('adminlte', 'This is the About page. You may modify the following file to customize its content:'), ['style' => ' text-align: justify;']) ?> |
34 | 34 | <?= html::tag('p', '') ?> |
35 | - <?= html::tag('code', __FILE__) ?> |
|
35 | + <?= html::tag('code', __FILE__) ?> |
|
36 | 36 | <?= html::tag('p', '') ?> |
37 | 37 | <?= Html::endTag('div') ?> |
38 | 38 | <?= Html::endTag('div'); |
39 | 39 | \ No newline at end of file |
@@ -21,19 +21,19 @@ |
||
21 | 21 | $user = \yii::$app->user->identity; |
22 | 22 | |
23 | 23 | $menuItems = [ |
24 | - ['label' => html::tag('span', Html::tag('i', '', ['class' => 'fa fa-home fa-lg']) . ' ' . Yii::t('adminlte', 'Home')), 'url' => Yii::$app->homeUrl], |
|
25 | - ['label' => html::tag('span', Html::tag('i', '', ['class' => 'fa fa-spinner fa-lg fa-spin']) . ' ' . Yii::t('adminlte', 'About Us')), 'url' => ['/site/about']], |
|
26 | - ['label' => html::tag('span', Html::tag('i', '', ['class' => 'fa fa-envelope fa-lg']) . ' ' . Yii::t('adminlte', 'Contact')), 'url' => ['/site/contact']], |
|
24 | + ['label' => html::tag('span', Html::tag('i', '', ['class' => 'fa fa-home fa-lg']).' '.Yii::t('adminlte', 'Home')), 'url' => Yii::$app->homeUrl], |
|
25 | + ['label' => html::tag('span', Html::tag('i', '', ['class' => 'fa fa-spinner fa-lg fa-spin']).' '.Yii::t('adminlte', 'About Us')), 'url' => ['/site/about']], |
|
26 | + ['label' => html::tag('span', Html::tag('i', '', ['class' => 'fa fa-envelope fa-lg']).' '.Yii::t('adminlte', 'Contact')), 'url' => ['/site/contact']], |
|
27 | 27 | ]; |
28 | 28 | |
29 | 29 | if (Yii::$app->user->isGuest) { |
30 | - $menuItems[] = ['label' => html::tag('span', Html::tag('i', '', ['class' => 'fa fa-sign-in fa-lg']) . ' ' . Yii::t('adminlte', 'Login')), 'url' => ['/site/login']]; |
|
30 | + $menuItems[] = ['label' => html::tag('span', Html::tag('i', '', ['class' => 'fa fa-sign-in fa-lg']).' '.Yii::t('adminlte', 'Login')), 'url' => ['/site/login']]; |
|
31 | 31 | } else { |
32 | 32 | $baseimg = Yii::$app->session->get('user.avatar30'); |
33 | - $menuItems[] = ['label' => $user->username . ' ' . html::img($baseimg, $options = ['class'=>'img-rounded', 'aria-expanded'=>'false']), |
|
33 | + $menuItems[] = ['label' => $user->username.' '.html::img($baseimg, $options = ['class'=>'img-rounded', 'aria-expanded'=>'false']), |
|
34 | 34 | 'items' => [ |
35 | - ['label' => html::tag('span', Html::tag('i', '', ['class' => 'fa fa-user fa-lg']) . ' ' . Yii::t('adminlte', 'User Profile')), 'url' => ['/user/settings/profile']], |
|
36 | - ['label' => html::tag('span', Html::tag('i', '', ['class' => 'fa fa-sign-out fa-lg']) . ' ' . Yii::t('adminlte', 'Logout')), 'url' => ['/site/logout'],'linkOptions' => ['data-method' => 'post']], |
|
35 | + ['label' => html::tag('span', Html::tag('i', '', ['class' => 'fa fa-user fa-lg']).' '.Yii::t('adminlte', 'User Profile')), 'url' => ['/user/settings/profile']], |
|
36 | + ['label' => html::tag('span', Html::tag('i', '', ['class' => 'fa fa-sign-out fa-lg']).' '.Yii::t('adminlte', 'Logout')), 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']], |
|
37 | 37 | ], |
38 | 38 | ]; |
39 | 39 | } |
@@ -26,9 +26,9 @@ |
||
26 | 26 | <?= Html::beginTag('div', ['class' => 'box-body']) ?> |
27 | 27 | <?= Html::beginTag('div', ['class' => 'col-xs-4']) ?> |
28 | 28 | <?= Html::beginTag('p', ['class' => 'pull-left']) ?> |
29 | - <?= html::tag('span', 'Copyrigth: ' ) ?> |
|
29 | + <?= html::tag('span', 'Copyrigth: ') ?> |
|
30 | 30 | <?= html::tag('span', '', ['class' => 'fa fa-copyright fa-2x', 'style' => 'vertical-align:middle']) ?> |
31 | - <?= html::tag('span', ' ' . \yii::$app->params['Author'], ['style' => 'vertical-align:middle']) ?> |
|
31 | + <?= html::tag('span', ' '.\yii::$app->params['Author'], ['style' => 'vertical-align:middle']) ?> |
|
32 | 32 | <?= Html::endTag('p') ?> |
33 | 33 | <?= Html::endTag('div') ?> |
34 | 34 | <?= Html::beginTag('div', ['class' => 'col-xs-4']) ?> |
@@ -18,17 +18,17 @@ |
||
18 | 18 | use yii\helpers\Html; |
19 | 19 | use yii\bootstrap\Nav; |
20 | 20 | |
21 | -$menuUser[] = ['label' => html::tag('i', '', ['class' => 'glyphicon glyphicon-user']) . \yii::$app->user->identity->username, 'options'=> ['class'=>'dropdown user user-menu'], |
|
21 | +$menuUser[] = ['label' => html::tag('i', '', ['class' => 'glyphicon glyphicon-user']).\yii::$app->user->identity->username, 'options'=> ['class'=>'dropdown user user-menu'], |
|
22 | 22 | 'items' => [ |
23 | 23 | Html::tag('li', |
24 | - Html::img(\yii::$app->params['imagesurl_60'], $options = ['class' => 'img-rounded', 'aria-expanded' => 'false']) . |
|
24 | + Html::img(\yii::$app->params['imagesurl_60'], $options = ['class' => 'img-rounded', 'aria-expanded' => 'false']). |
|
25 | 25 | Html::tag('p', |
26 | - \yii::$app->user->identity->username . |
|
27 | - html::tag('small', ' ' . Yii::t('adminlte', 'Member Since:') . ' ' . Yii::t('adminlte', '{0, date, MMMM dd, YYYY HH:mm}', \yii::$app->user->identity->created_at)) |
|
28 | - ),['class' => 'user-header bg-light']), |
|
26 | + \yii::$app->user->identity->username. |
|
27 | + html::tag('small', ' '.Yii::t('adminlte', 'Member Since:').' '.Yii::t('adminlte', '{0, date, MMMM dd, YYYY HH:mm}', \yii::$app->user->identity->created_at)) |
|
28 | + ), ['class' => 'user-header bg-light']), |
|
29 | 29 | Html::tag('li', |
30 | 30 | Html::tag('div', |
31 | - Html::a(Yii::t('adminlte', 'Logout'),['/site/logout'], ['class' => 'btn bg-black', 'data-method'=>'post']) |
|
31 | + Html::a(Yii::t('adminlte', 'Logout'), ['/site/logout'], ['class' => 'btn bg-black', 'data-method'=>'post']) |
|
32 | 32 | ,['class' => 'pull-right']) |
33 | 33 | ,['class' => 'user-footer']) |
34 | 34 | ], |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | <?= Html::tag('meta', '', ['charset' => Yii::$app->charset]) ?> |
38 | 38 | <?= Html::tag('meta', '', ['content' => 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no', 'name' => 'viewport']) ?> |
39 | 39 | <?= Html::csrfMetaTags() ?> |
40 | - <?= Html::tag('title', Html::encode(Yii::t('adminlte',$this->title))) ?> |
|
40 | + <?= Html::tag('title', Html::encode(Yii::t('adminlte', $this->title))) ?> |
|
41 | 41 | <!-- Theme style --> |
42 | 42 | <?php $this->head() ?> |
43 | 43 | <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | <?= Html::endTag('head') ?> |
50 | 50 | <?php $this->beginBody() ?> |
51 | 51 | <?= Html::begintag('body', ['class' => (!Yii::$app->user->isGuest) ? \yii::$app->params['AdminLTESkin'] |
52 | - : \yii::$app->params['AdminLTESkin'] . ' sidebar-collapse sidebar-open']) ?> |
|
52 | + : \yii::$app->params['AdminLTESkin'].' sidebar-collapse sidebar-open']) ?> |
|
53 | 53 | <?= Html::beginTag('div', ['class' => 'wrapper']) ?> |
54 | 54 | <!-- header logo: style can be found in header.less --> |
55 | 55 | <?= $this->render('_header') ?> |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | <!-- /.content --> |
86 | 86 | <?= Html::endTag('div') ?> |
87 | 87 | <!-- /.right-side --> |
88 | - <?php else: ?> |
|
88 | + <?php else : ?> |
|
89 | 89 | <!-- ./Left side column. --> |
90 | 90 | <!-- Right side column. Contains the navbar and content of the page --> |
91 | 91 | <!-- Navigation --> |
@@ -85,7 +85,8 @@ discard block |
||
85 | 85 | <!-- /.content --> |
86 | 86 | <?= Html::endTag('div') ?> |
87 | 87 | <!-- /.right-side --> |
88 | - <?php else: ?> |
|
88 | + <?php else { |
|
89 | + : ?> |
|
89 | 90 | <!-- ./Left side column. --> |
90 | 91 | <!-- Right side column. Contains the navbar and content of the page --> |
91 | 92 | <!-- Navigation --> |
@@ -105,7 +106,9 @@ discard block |
||
105 | 106 | <?= Html::endTag('div') ?> |
106 | 107 | <?= Html::endTag('section') ?> |
107 | 108 | <?= Html::endTag('div') ?> |
108 | - <?php endif; ?> |
|
109 | + <?php endif; |
|
110 | +} |
|
111 | +?> |
|
109 | 112 | <!-- ./Right side column. --> |
110 | 113 | <?= $this->render('_footer') ?> |
111 | 114 | <?= Html::endTag('div') ?> |
@@ -26,9 +26,9 @@ |
||
26 | 26 | <?= Html::beginTag('nav', ['class' => 'navbar navbar-static-top', 'role' => 'navigation']) ?> |
27 | 27 | <?php if (!Yii::$app->user->isGuest): ?> |
28 | 28 | <!-- Sidebar toggle button--> |
29 | - <?= Html::a(html::tag('span', 'Toggle navigation', ['class' => 'sr-only']) . |
|
30 | - Html::tag('span', '', ['class' => 'icon-bar']) . Html::tag('span', '', ['class' => 'icon-bar']) |
|
31 | - ,'#', ['class' => 'sidebar-toggle', 'data-toggle'=>'offcanvas','role'=>'button']) |
|
29 | + <?= Html::a(html::tag('span', 'Toggle navigation', ['class' => 'sr-only']). |
|
30 | + Html::tag('span', '', ['class' => 'icon-bar']).Html::tag('span', '', ['class' => 'icon-bar']) |
|
31 | + ,'#', ['class' => 'sidebar-toggle', 'data-toggle'=>'offcanvas', 'role'=>'button']) |
|
32 | 32 | ?> |
33 | 33 | <?= Html::beginTag('div', ['class' => 'navbar-custom-menu']) ?> |
34 | 34 | <!-- User Account: style can be found in dropdown.less --> |
@@ -34,10 +34,13 @@ |
||
34 | 34 | <!-- User Account: style can be found in dropdown.less --> |
35 | 35 | <?= $this->render('_menuser') ?> |
36 | 36 | <?= Html::endTag('div') ?> |
37 | - <?php else: ?> |
|
37 | + <?php else { |
|
38 | + : ?> |
|
38 | 39 | <?= Html::beginTag('div', ['class' => 'navbar-custom-menu']) ?> |
39 | 40 | <?= $this->render('_menu') ?> |
40 | 41 | <?= Html::endTag('div') ?> |
41 | - <?php endif; ?> |
|
42 | + <?php endif; |
|
43 | +} |
|
44 | +?> |
|
42 | 45 | <?= Html::endTag('nav') ?> |
43 | 46 | <?= Html::endTag('header') ?> |
44 | 47 | \ No newline at end of file |