@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | public $captcha; |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * Labels |
|
| 21 | - */ |
|
| 20 | + * Labels |
|
| 21 | + */ |
|
| 22 | 22 | public function labels() |
| 23 | 23 | { |
| 24 | 24 | return [ |
@@ -28,8 +28,8 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * Validation rules |
|
| 32 | - */ |
|
| 31 | + * Validation rules |
|
| 32 | + */ |
|
| 33 | 33 | public function rules() |
| 34 | 34 | { |
| 35 | 35 | return [ |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | $route = $app->sys_name . '/index'; |
| 29 | 29 | $actions = \App::$View->render('macro/app_actions', ['controller' => $app->sys_name]); |
| 30 | 30 | $icoStatus = null; |
| 31 | - if ((int)$app->disabled === 0) { |
|
| 31 | + if ((int) $app->disabled === 0) { |
|
| 32 | 32 | $icoStatus = ' <spal class="label label-success"><i class="fa fa-play"></i></span>'; |
| 33 | 33 | } else { |
| 34 | 34 | $icoStatus = ' <span class="label label-danger"><i class="fa fa-pause"></i></span>'; |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | [['text' => __('Name')], ['text' => $app->getLocaleName()]], |
| 32 | 32 | [['text' => __('System name')], ['text' => $app->sys_name]], |
| 33 | 33 | [['text' => __('Last update')], ['text' => Date::convertToDatetime($app->updated_at, DATE::FORMAT_TO_SECONDS)]], |
| 34 | - [['text' => __('Status')], ['text' => ((int)$app->disabled === 0) ? 'On' : 'Off'], 'property' => ['class' => ((int)$app->disabled === 0) ? 'alert-success' : 'alert-danger']] |
|
| 34 | + [['text' => __('Status')], ['text' => ((int) $app->disabled === 0) ? 'On' : 'Off'], 'property' => ['class' => ((int) $app->disabled === 0) ? 'alert-success' : 'alert-danger']] |
|
| 35 | 35 | ] |
| 36 | 36 | ] |
| 37 | 37 | ]); ?> |
@@ -55,8 +55,8 @@ |
||
| 55 | 55 | <tr> |
| 56 | 56 | <td> |
| 57 | 57 | <div class="row"> |
| 58 | - <div class="col-md-<?= $offset ?> col-xs-<?= $offset+2 ?>" style="padding-top: 8px;border-bottom: 2px solid #8a8a8a"></div> |
|
| 59 | - <div class="col-md-<?= $set ?> col-xs-<?= $set-2 ?>"> |
|
| 58 | + <div class="col-md-<?= $offset ?> col-xs-<?= $offset + 2 ?>" style="padding-top: 8px;border-bottom: 2px solid #8a8a8a"></div> |
|
| 59 | + <div class="col-md-<?= $set ?> col-xs-<?= $set - 2 ?>"> |
|
| 60 | 60 | <?= Serialize::getDecodeLocale($row->title) ?> |
| 61 | 61 | <span class="label label-info">/<?= $row->path ?></span> |
| 62 | 62 | </div> |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $pathProperty = [ |
| 52 | 52 | 'class' => 'form-control' |
| 53 | 53 | ]; |
| 54 | -if ((int)$model->id == '1') { |
|
| 54 | +if ((int) $model->id == '1') { |
|
| 55 | 55 | $pathProperty['disabled'] = ''; |
| 56 | 56 | } else { |
| 57 | 57 | echo $form->field('dependId', 'select', ['class' => 'form-control', 'options' => $model->categoryList(), 'optionsKey' => true], __('Select owner category for this category')); |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | ['type' => 'tab', 'text' => __('Gallery'), 'content' => $galleryTab, 'html' => true, '!secure' => true], |
| 111 | 111 | ['type' => 'tab', 'text' => __('Other'), 'content' => $otherTab, 'html' => true, '!secure' => true] |
| 112 | 112 | ] |
| 113 | -]);?> |
|
| 113 | +]); ?> |
|
| 114 | 114 | |
| 115 | 115 | <?= $form->field('galleryFreeId', 'hidden') ?> |
| 116 | 116 | <?= $form->submitButton(__('Save'), ['class' => 'btn btn-primary']) ?> |
@@ -188,13 +188,16 @@ |
||
| 188 | 188 | <?php foreach ($this->breadcrumbs as $bUrl => $bText): ?> |
| 189 | 189 | <?php if (Obj::isLikeInt($bUrl)): // only text ?> |
| 190 | 190 | <li class="active"><?= \App::$Security->strip_tags($bText) ?></li> |
| 191 | - <?php else: ?> |
|
| 191 | + <?php else { |
|
| 192 | + : ?> |
|
| 192 | 193 | <li> |
| 193 | 194 | <a href="<?= \App::$Security->strip_tags($bUrl) ?>"> |
| 194 | 195 | <?= \App::$Security->strip_tags($bText) ?> |
| 195 | 196 | </a> |
| 196 | 197 | </li> |
| 197 | - <?php endif; ?> |
|
| 198 | + <?php endif; |
|
| 199 | +} |
|
| 200 | +?> |
|
| 198 | 201 | <?php endforeach; ?> |
| 199 | 202 | </ol> |
| 200 | 203 | <?php endif; ?> |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | <script> |
| 14 | 14 | window.jQ.push(function() { |
| 15 | 15 | $.fn.runscan = function (first) { |
| 16 | - $.getJSON("<?= \App::$Alias->scriptUrl . '/api/main/antivirus?lang=' . \App::$Request->getLanguage() ?> . ", function (data) { |
|
| 16 | + $.getJSON("<?= \App::$Alias->scriptUrl . '/api/main/antivirus?lang=' . \App::$Request->getLanguage() ?> . ", function (data) { |
|
| 17 | 17 | if (first) { |
| 18 | 18 | totalScan = data.left; |
| 19 | 19 | progress = 0; |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | 'items' => [ |
| 36 | 36 | [['text' => $model->getLabel('name')], ['text' => $model->name[\App::$Request->getLanguage()]]], |
| 37 | 37 | [['text' => $model->getLabel('type')], ['text' => $model->type]], |
| 38 | - [['text' => $model->getLabel('reg_exp')], ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("'.$model->reg_exp.'", $input)']], |
|
| 38 | + [['text' => $model->getLabel('reg_exp')], ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("' . $model->reg_exp . '", $input)']], |
|
| 39 | 39 | ] |
| 40 | 40 | ] |
| 41 | 41 | ]); |