@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <div class="dashboard-widgets"> |
2 | - <h4 class ='dashboard-widgets-welcome'>Добро Пожаловать в панель управления<?= class_exists('\Users\User') ? ', ' . \Users\User::$cur->name() : ''; ?></h4> |
|
2 | + <h4 class ='dashboard-widgets-welcome'>Добро Пожаловать в панель управления<?= class_exists('\Users\User') ? ', '.\Users\User::$cur->name() : ''; ?></h4> |
|
3 | 3 | <div class = "row"> |
4 | 4 | <?php |
5 | 5 | $rowSum = 0; |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | } |
10 | 10 | |
11 | 11 | $widgetSize = !empty($section['size']) ? $section['size'] : 1; |
12 | - $rowSum+=$widgetSize; |
|
12 | + $rowSum += $widgetSize; |
|
13 | 13 | ?> |
14 | 14 | <div class="col-sm-<?= $widgetSize * 4; ?>" style="margin-bottom: 10px;"><?= $section['widget'](); ?></div> |
15 | 15 | <?php |
@@ -15,8 +15,8 @@ |
||
15 | 15 | foreach ($templates['app']['installed'] as $template => $name) { |
16 | 16 | $table->addRow([ |
17 | 17 | $name, |
18 | - (empty($templates['app']['current']) || $templates['app']['current'] != $template) ? '<a href = "/admin/view/setDefault/' . $template . '">Установить по умолчанию</a>' : 'Тема по умолчанию', |
|
19 | - '<a href = "/admin/view/template/editFile/' . $template . '">Файлы</a> <a href = "/admin/view/editTemplate/' . $template . '">Редактировать</a>' |
|
18 | + (empty($templates['app']['current']) || $templates['app']['current'] != $template) ? '<a href = "/admin/view/setDefault/'.$template.'">Установить по умолчанию</a>' : 'Тема по умолчанию', |
|
19 | + '<a href = "/admin/view/template/editFile/'.$template.'">Файлы</a> <a href = "/admin/view/editTemplate/'.$template.'">Редактировать</a>' |
|
20 | 20 | ]); |
21 | 21 | } |
22 | 22 | $table->draw(); |
23 | 23 | \ No newline at end of file |
@@ -3,9 +3,9 @@ |
||
3 | 3 | <hr/> |
4 | 4 | <?php |
5 | 5 | foreach ($template->config['css'] as $file) { |
6 | - if (file_exists($template->path . '/css/' . $file)) { |
|
6 | + if (file_exists($template->path.'/css/'.$file)) { |
|
7 | 7 | ?> |
8 | - <a href ='/admin/view/template/editFile/<?= $template->name; ?>?path=<?= 'css/' . $file; ?>'><?= $file; ?></a> |
|
8 | + <a href ='/admin/view/template/editFile/<?= $template->name; ?>?path=<?= 'css/'.$file; ?>'><?= $file; ?></a> |
|
9 | 9 | <?php |
10 | 10 | } |
11 | 11 | } |
@@ -22,15 +22,15 @@ |
||
22 | 22 | function editFileAction($templateName) |
23 | 23 | { |
24 | 24 | $template = \View\Template::get($templateName, \App::$primary); |
25 | - if (!empty($_GET['path']) && file_exists($template->path . '/' . Tools::parsePath($_GET['path']))) { |
|
25 | + if (!empty($_GET['path']) && file_exists($template->path.'/'.Tools::parsePath($_GET['path']))) { |
|
26 | 26 | $code = file_get_contents("php://input"); |
27 | 27 | if (!empty($code)) { |
28 | 28 | $result = new Server\Result(); |
29 | 29 | $result->successMsg = 'Файл сохранен'; |
30 | - $content = file_put_contents($template->path . '/' . Tools::parsePath($_GET['path']), $code); |
|
30 | + $content = file_put_contents($template->path.'/'.Tools::parsePath($_GET['path']), $code); |
|
31 | 31 | $result->send(); |
32 | 32 | } |
33 | - $content = file_get_contents($template->path . '/' . Tools::parsePath($_GET['path'])); |
|
33 | + $content = file_get_contents($template->path.'/'.Tools::parsePath($_GET['path'])); |
|
34 | 34 | $this->libs->loadLib('Ace'); |
35 | 35 | $this->view->page(['content' => 'template/edit', 'data' => compact('template', 'content')]); |
36 | 36 | } else { |