@@ -18,7 +18,7 @@ |
||
| 18 | 18 | } |
| 19 | 19 | ?> |
| 20 | 20 | <div class="form-group row"> |
| 21 | - <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function () use ($label) { |
|
| 21 | + <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function() use ($label) { |
|
| 22 | 22 | return $label; |
| 23 | 23 | }, $labelProperties) ?> |
| 24 | 24 | <div class="col-md-9"> |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | $labelProperties['for'] = $field->getUniqueFieldId(); |
| 16 | 16 | ?> |
| 17 | 17 | <div class="form-group row"> |
| 18 | - <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function () use ($label) { |
|
| 18 | + <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function() use ($label) { |
|
| 19 | 19 | return $label; |
| 20 | 20 | }, $labelProperties) ?> |
| 21 | 21 | <div class="col-md-9"> |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | } |
| 19 | 19 | ?> |
| 20 | 20 | <div class="form-group row"> |
| 21 | - <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function () use ($label) { |
|
| 21 | + <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function() use ($label) { |
|
| 22 | 22 | return $label; |
| 23 | 23 | }, $labelProperties) ?> |
| 24 | 24 | <div class="col-md-9"> |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | } |
| 28 | 28 | ?> |
| 29 | 29 | <div class="form-group row"> |
| 30 | - <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function () use ($label) { |
|
| 30 | + <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function() use ($label) { |
|
| 31 | 31 | return $label; |
| 32 | 32 | }, $labelProperties) ?> |
| 33 | 33 | <div class="col-md-9"> |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | if (!is_string($input) || strlen($input) < 1) { |
| 37 | 37 | continue; |
| 38 | 38 | } |
| 39 | - echo (new Dom())->div(function () use ($input) { |
|
| 39 | + echo (new Dom())->div(function() use ($input) { |
|
| 40 | 40 | return $input; |
| 41 | 41 | }, ['class' => 'form-check form-check-inline']); |
| 42 | 42 | } |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | } |
| 28 | 28 | ?> |
| 29 | 29 | <div class="form-group row"> |
| 30 | - <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function () use ($label) { |
|
| 30 | + <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function() use ($label) { |
|
| 31 | 31 | return $label; |
| 32 | 32 | }, $labelProperties) ?> |
| 33 | 33 | <div class="col-md-9"> |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | if (!is_string($input) || strlen($input) < 1) { |
| 37 | 37 | continue; |
| 38 | 38 | } |
| 39 | - echo (new Dom())->div(function () use ($input) { |
|
| 39 | + echo (new Dom())->div(function() use ($input) { |
|
| 40 | 40 | return $input; |
| 41 | 41 | }, ['class' => 'form-check form-check-inline']); |
| 42 | 42 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | } |
| 19 | 19 | ?> |
| 20 | 20 | <div class="form-group row"> |
| 21 | - <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function () use ($label) { |
|
| 21 | + <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function() use ($label) { |
|
| 22 | 22 | return $label; |
| 23 | 23 | }, $labelProperties) ?> |
| 24 | 24 | <div class="col-md-9"> |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | <div class="form-group row"> |
| 14 | 14 | <div class="col-md-9 offset-md-3"> |
| 15 | 15 | <?= $field->html($properties) ?> |
| 16 | - <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function () use ($label) { |
|
| 16 | + <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function() use ($label) { |
|
| 17 | 17 | return $label; |
| 18 | 18 | }, $labelProperties) ?> |
| 19 | 19 | <?php if ($helper): ?> |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | <h1><?= __('Sitemap') ?></h1> |
| 21 | 21 | |
| 22 | 22 | <p><?= __('Sitemap its a special application to generate sitemap as xml file over sitemap standart for search engines.') ?></p> |
| 23 | -<p><?= __('Sitemap main index') ?>: <a href="<?= \App::$Alias->scriptUrl . '/sitemap' ?>" target="_blank">/sitemap</a></p> |
|
| 23 | +<p><?= __('Sitemap main index') ?>: <a href="<?= \App::$Alias->scriptUrl.'/sitemap' ?>" target="_blank">/sitemap</a></p> |
|
| 24 | 24 | <h3><?= __('Sitemap files') ?></h3> |
| 25 | 25 | <?php |
| 26 | 26 | $items = []; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $list = $this->listing('ul'); |
| 34 | 34 | |
| 35 | 35 | foreach ($model->files as $file) { |
| 36 | - $list->li(['type' => 'link', 'link' => \Ffcms\Core\App::$Alias->scriptUrl . $file, 'text' => $file, 'linkProperties' => ['target' => '_blank']]); |
|
| 36 | + $list->li(['type' => 'link', 'link' => \Ffcms\Core\App::$Alias->scriptUrl.$file, 'text' => $file, 'linkProperties' => ['target' => '_blank']]); |
|
| 37 | 37 | } |
| 38 | 38 | echo $list->display(); |
| 39 | 39 | ?> |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | <div class="media-left"> |
| 174 | 174 | <a href="#"> |
| 175 | 175 | <?php |
| 176 | - $commentAva = \App::$Alias->scriptUrl . '/upload/user/avatar/small/default.jpg'; |
|
| 176 | + $commentAva = \App::$Alias->scriptUrl.'/upload/user/avatar/small/default.jpg'; |
|
| 177 | 177 | if ($comment->user !== null && $comment->user->id > 0) { |
| 178 | 178 | $commentAva = $comment->user->profile->getAvatarUrl('small'); |
| 179 | 179 | } |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | <li class="nav-item<?= (\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? ' active' : null ?>"> |
| 252 | 252 | <?= Url::a( |
| 253 | 253 | ['#system-dropdown'], |
| 254 | - '<i class="fa fa-fire"></i> <span class="nav-text">' . __('System') . '</span>', |
|
| 254 | + '<i class="fa fa-fire"></i> <span class="nav-text">'.__('System').'</span>', |
|
| 255 | 255 | [ |
| 256 | 256 | 'class' => 'nav-container', |
| 257 | 257 | 'data-toggle' => 'collapse', |
@@ -260,13 +260,13 @@ discard block |
||
| 260 | 260 | ) |
| 261 | 261 | ?> |
| 262 | 262 | |
| 263 | - <?= $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? 'in show' : null), 'id' => 'system-dropdown']) |
|
| 264 | - ->menu(['link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true]) |
|
| 265 | - ->menu(['link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> ' . __('Files'), 'html' => true]) |
|
| 266 | - ->menu(['link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> ' . __('Antivirus'), 'html' => true]) |
|
| 267 | - ->menu(['link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> ' . __('Routing'), 'html' => true]) |
|
| 268 | - ->menu(['link' => ['main/backup'], 'text' => '<i class="fa fa-hdd-o"></i> ' . __('Backup'), 'html' => true]) |
|
| 269 | - ->menu(['link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> ' . __('Updates'), 'html' => true]) |
|
| 263 | + <?= $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? 'in show' : null), 'id' => 'system-dropdown']) |
|
| 264 | + ->menu(['link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true]) |
|
| 265 | + ->menu(['link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> '.__('Files'), 'html' => true]) |
|
| 266 | + ->menu(['link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> '.__('Antivirus'), 'html' => true]) |
|
| 267 | + ->menu(['link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> '.__('Routing'), 'html' => true]) |
|
| 268 | + ->menu(['link' => ['main/backup'], 'text' => '<i class="fa fa-hdd-o"></i> '.__('Backup'), 'html' => true]) |
|
| 269 | + ->menu(['link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> '.__('Updates'), 'html' => true]) |
|
| 270 | 270 | ->display(); |
| 271 | 271 | ?> |
| 272 | 272 | </li> |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | <li class="nav-item<?= (array_key_exists(\App::$Request->getController(), $apps) || \App::$Request->getController() === 'Application') ? ' active' : null ?>"> |
| 286 | 286 | <?= Url::a( |
| 287 | 287 | ['#apps-dropdown'], |
| 288 | - '<i class="fa fa-plug"></i> <span class="nav-text">' . __('Applications') . '</span>', |
|
| 288 | + '<i class="fa fa-plug"></i> <span class="nav-text">'.__('Applications').'</span>', |
|
| 289 | 289 | [ |
| 290 | 290 | 'class' => 'nav-container', |
| 291 | 291 | 'data-toggle' => 'collapse', |
@@ -295,19 +295,19 @@ discard block |
||
| 295 | 295 | ?> |
| 296 | 296 | |
| 297 | 297 | <?php |
| 298 | - $appMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((array_key_exists(\App::$Request->getController(), $apps) || \App::$Request->getController() === 'Application') ? 'in show' : null), 'id' => 'apps-dropdown']); |
|
| 298 | + $appMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((array_key_exists(\App::$Request->getController(), $apps) || \App::$Request->getController() === 'Application') ? 'in show' : null), 'id' => 'apps-dropdown']); |
|
| 299 | 299 | foreach ($apps as $app) { |
| 300 | 300 | /** @var \Apps\ActiveRecord\App $app */ |
| 301 | - $appMenu->menu(['link' => [Str::lowerCase($app->sys_name) . '/index'], 'text' => $app->getLocaleName()]); |
|
| 301 | + $appMenu->menu(['link' => [Str::lowerCase($app->sys_name).'/index'], 'text' => $app->getLocaleName()]); |
|
| 302 | 302 | } |
| 303 | - $appMenu->menu(['link' => 'application/index', 'text' => __('All apps') . '...']); |
|
| 303 | + $appMenu->menu(['link' => 'application/index', 'text' => __('All apps').'...']); |
|
| 304 | 304 | echo $appMenu->display(); |
| 305 | 305 | ?> |
| 306 | 306 | </li> |
| 307 | 307 | <li class="nav-item<?= (array_key_exists(\App::$Request->getController(), $widgets) || \App::$Request->getController() === 'Widget') ? ' active' : null ?>"> |
| 308 | 308 | <?= Url::a( |
| 309 | 309 | ['#widgets-dropdown'], |
| 310 | - '<i class="fa fa-puzzle-piece"></i> <span class="nav-text">' . __('Widgets') . '</span>', |
|
| 310 | + '<i class="fa fa-puzzle-piece"></i> <span class="nav-text">'.__('Widgets').'</span>', |
|
| 311 | 311 | [ |
| 312 | 312 | 'class' => 'nav-container', |
| 313 | 313 | 'data-toggle' => 'collapse', |
@@ -317,12 +317,12 @@ discard block |
||
| 317 | 317 | ?> |
| 318 | 318 | |
| 319 | 319 | <?php |
| 320 | - $widgetMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((array_key_exists(\App::$Request->getController(), $widgets) || \App::$Request->getController() === 'Widget') ? 'in show' : null), 'id' => 'widgets-dropdown']); |
|
| 320 | + $widgetMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((array_key_exists(\App::$Request->getController(), $widgets) || \App::$Request->getController() === 'Widget') ? 'in show' : null), 'id' => 'widgets-dropdown']); |
|
| 321 | 321 | foreach ($widgets as $widget) { |
| 322 | 322 | /** @var \Apps\ActiveRecord\App $widget */ |
| 323 | - $widgetMenu->menu(['link' => [Str::lowerCase($widget->sys_name) . '/index'], 'text' => $widget->getLocaleName()]); |
|
| 323 | + $widgetMenu->menu(['link' => [Str::lowerCase($widget->sys_name).'/index'], 'text' => $widget->getLocaleName()]); |
|
| 324 | 324 | } |
| 325 | - $widgetMenu->menu(['link' => 'widget/index', 'text' => __('All widgets') . '...']); |
|
| 325 | + $widgetMenu->menu(['link' => 'widget/index', 'text' => __('All widgets').'...']); |
|
| 326 | 326 | echo $widgetMenu->display(); |
| 327 | 327 | ?> |
| 328 | 328 | </li> |