|
@@ -22,7 +22,7 @@ discard block |
|
|
block discarded – undo |
|
22
|
22
|
<?php |
|
23
|
23
|
$customCssCode = \App::$View->showPlainCode('css'); |
|
24
|
24
|
if ($customCssCode !== null) { |
|
25
|
|
- echo '<style>' . $customCssCode . '</style>'; |
|
|
25
|
+ echo '<style>'.$customCssCode.'</style>'; |
|
26
|
26
|
} ?> |
|
27
|
27
|
<script> |
|
28
|
28
|
window.jQ = []; |
|
@@ -38,18 +38,18 @@ discard block |
|
|
block discarded – undo |
|
38
|
38
|
|
|
39
|
39
|
if (\App::$User->isAuth()) { |
|
40
|
40
|
$userId = \App::$User->identity()->getId(); |
|
41
|
|
- $items[] = ['type' => 'dropdown', 'text' => '<i class="fa fa-user"></i> ' . __('Account') . ' <span class="badge pm-count-block">0</span>', 'html' => true, 'position' => 'right', 'items' => [ |
|
|
41
|
+ $items[] = ['type' => 'dropdown', 'text' => '<i class="fa fa-user"></i> '.__('Account').' <span class="badge pm-count-block">0</span>', 'html' => true, 'position' => 'right', 'items' => [ |
|
42
|
42
|
['link' => ['profile/show', $userId], 'text' => __('My profile')], |
|
43
|
|
- ['link' => ['profile/messages'], 'text' => __('Messages') . ' <span class="badge pm-count-block">0</span>', 'html' => true], |
|
|
43
|
+ ['link' => ['profile/messages'], 'text' => __('Messages').' <span class="badge pm-count-block">0</span>', 'html' => true], |
|
44
|
44
|
['link' => ['profile/settings'], 'text' => __('Settings')] |
|
45
|
45
|
]]; |
|
46
|
46
|
if (\App::$User->identity()->getRole()->can('Admin/Main/Index')) { |
|
47
|
|
- $items[] = ['type' => 'link', 'link' => \App::$Alias->scriptUrl . '/admin/', 'text' => '<i class="fa fa-cogs"></i> Admin', 'position' => 'right', 'html' => true]; |
|
|
47
|
+ $items[] = ['type' => 'link', 'link' => \App::$Alias->scriptUrl.'/admin/', 'text' => '<i class="fa fa-cogs"></i> Admin', 'position' => 'right', 'html' => true]; |
|
48
|
48
|
} |
|
49
|
|
- $items[] = ['type' => 'link', 'link' => ['user/logout'], 'text' => '<i class="fa fa-user-times"></i> ' . __('Logout'), 'html' => true, 'position' => 'right']; |
|
|
49
|
+ $items[] = ['type' => 'link', 'link' => ['user/logout'], 'text' => '<i class="fa fa-user-times"></i> '.__('Logout'), 'html' => true, 'position' => 'right']; |
|
50
|
50
|
} else { |
|
51
|
|
- $items[] = ['type' => 'link', 'link' => ['user/login'], 'text' => '<i class="fa fa-sign-in"></i> ' . __('Sign in'), 'position' => 'right', 'html' => true]; |
|
52
|
|
- $items[] = ['type' => 'link', 'link' => ['user/signup'], 'text' => '<i class="fa fa-check-square-o"></i> ' . __('Sign up'), 'position' => 'right', 'html' => true]; |
|
|
51
|
+ $items[] = ['type' => 'link', 'link' => ['user/login'], 'text' => '<i class="fa fa-sign-in"></i> '.__('Sign in'), 'position' => 'right', 'html' => true]; |
|
|
52
|
+ $items[] = ['type' => 'link', 'link' => ['user/signup'], 'text' => '<i class="fa fa-check-square-o"></i> '.__('Sign up'), 'position' => 'right', 'html' => true]; |
|
53
|
53
|
} |
|
54
|
54
|
|
|
55
|
55
|
echo Navbar::display([ |
|
@@ -58,7 +58,7 @@ discard block |
|
|
block discarded – undo |
|
58
|
58
|
'container' => 'container', |
|
59
|
59
|
'collapseId' => 'collapse-object', |
|
60
|
60
|
'items' => $items |
|
61
|
|
-]);?> |
|
|
61
|
+]); ?> |
|
62
|
62
|
</header> |
|
63
|
63
|
|
|
64
|
64
|
<div class="container body-container"> |
|
@@ -133,7 +133,7 @@ discard block |
|
|
block discarded – undo |
|
133
|
133
|
echo $body; |
|
134
|
134
|
} else { |
|
135
|
135
|
\App::$Response->setStatusCode(404); |
|
136
|
|
- echo '<p>' . __('Page is not founded!') . '</p>'; |
|
|
136
|
+ echo '<p>'.__('Page is not founded!').'</p>'; |
|
137
|
137
|
} |
|
138
|
138
|
?> |
|
139
|
139
|
</div> |
|
@@ -209,7 +209,7 @@ discard block |
|
|
block discarded – undo |
|
209
|
209
|
<?php |
|
210
|
210
|
$customJsCode = \App::$View->showPlainCode('js'); |
|
211
|
211
|
if ($customJsCode !== null) { |
|
212
|
|
- echo '<script>' . $customJsCode . '</script>'; |
|
|
212
|
+ echo '<script>'.$customJsCode.'</script>'; |
|
213
|
213
|
} |
|
214
|
214
|
// render google analytics code here |
|
215
|
215
|
echo \App::$View->render('blocks/googleanalytics'); |