@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | <?php |
| 26 | 26 | $items = []; |
| 27 | -foreach($records as $role) { |
|
| 27 | +foreach ($records as $role) { |
|
| 28 | 28 | $permissions = explode(';', $role->permissions); |
| 29 | 29 | $permissionsLabel = null; |
| 30 | 30 | foreach ($permissions as $perm) { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } else { |
| 37 | 37 | $labelMark = 'label-default'; |
| 38 | 38 | } |
| 39 | - $permissionsLabel .= '<span class="label ' . $labelMark . '">' . $perm . '</span> '; |
|
| 39 | + $permissionsLabel .= '<span class="label '.$labelMark.'">'.$perm.'</span> '; |
|
| 40 | 40 | } |
| 41 | 41 | $items[] = [ |
| 42 | 42 | ['text' => $role->id], |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php use Ffcms\Core\Helper\Url; |
| 2 | 2 | |
| 3 | 3 | if ($controller !== null): ?> |
| 4 | -<a href="<?= Url::to($controller . '/index') ?>"><i class="fa fa-cogs"></i></a> |
|
| 4 | +<a href="<?= Url::to($controller.'/index') ?>"><i class="fa fa-cogs"></i></a> |
|
| 5 | 5 | <a href="<?= Url::to('application/turn', $controller) ?>"><i class="fa fa-power-off"></i></a> |
| 6 | 6 | <?php endif; ?> |
| 7 | 7 | \ No newline at end of file |
@@ -2,6 +2,6 @@ |
||
| 2 | 2 | use Ffcms\Core\Helper\Url; |
| 3 | 3 | |
| 4 | 4 | if (isset($controller)): ?> |
| 5 | -<a href="<?= Url::to($controller . '/index') ?>"><i class="fa fa-cogs"></i></a> |
|
| 5 | +<a href="<?= Url::to($controller.'/index') ?>"><i class="fa fa-cogs"></i></a> |
|
| 6 | 6 | <a href="<?= Url::to('widget/turn', $controller) ?>"><i class="fa fa-power-off"></i></a> |
| 7 | 7 | <?php endif; ?> |
| 8 | 8 | \ No newline at end of file |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | foreach (\App::$Properties->get('languages') as $lang) { |
| 34 | 34 | $nameTab[] = [ |
| 35 | 35 | 'type' => 'tab', |
| 36 | - 'text' => __('Lang') . ': ' . Str::upperCase($lang), |
|
| 37 | - 'content' => $form->field('name.' . $lang, 'text', ['class' => 'form-control'], __('Define field name, which be displayed for user for current language locale')), |
|
| 36 | + 'text' => __('Lang').': '.Str::upperCase($lang), |
|
| 37 | + 'content' => $form->field('name.'.$lang, 'text', ['class' => 'form-control'], __('Define field name, which be displayed for user for current language locale')), |
|
| 38 | 38 | 'active' => $lang === \App::$Request->getLanguage(), |
| 39 | 39 | 'html' => true, |
| 40 | 40 | '!secure' => true |
@@ -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 | ]); |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | </script> |
| 98 | 98 | <h1><?= __('Antivirus scan'); ?></h1> |
| 99 | 99 | <hr /> |
| 100 | -<p><?= __('FFCMS 3 provide a simple signature-based antivirus software') . '. ' . __('Remember! This is just an advisory algorithm!') ?></p> |
|
| 100 | +<p><?= __('FFCMS 3 provide a simple signature-based antivirus software').'. '.__('Remember! This is just an advisory algorithm!') ?></p> |
|
| 101 | 101 | |
| 102 | 102 | <div class="row"> |
| 103 | 103 | <div class="col-md-4"> |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | <tbody> |
| 34 | 34 | <tr> |
| 35 | 35 | <td align="left" style="font-family:Helvetica Neue,Arial,Helvetica,sans-serif;padding-left:9px;font-size:14px;"> |
| 36 | - <a href="<?= \App::$Alias->scriptUrl ?>/feedback/read/<?= $record->id . '/' . $record->hash ?>"> |
|
| 36 | + <a href="<?= \App::$Alias->scriptUrl ?>/feedback/read/<?= $record->id.'/'.$record->hash ?>"> |
|
| 37 | 37 | <?= __('View request') ?> |
| 38 | 38 | </a> |
| 39 | 39 | </td> |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | 'table' => ['class' => 'table table-bordered'], |
| 26 | 26 | 'tbody' => [ |
| 27 | 27 | 'items' => [ |
| 28 | - [['text' => __('Sender')], ['text' => $record->name . ' (' . $record->email . ')']], |
|
| 28 | + [['text' => __('Sender')], ['text' => $record->name.' ('.$record->email.')']], |
|
| 29 | 29 | [['text' => __('Date')], ['text' => Date::convertToDatetime($record->created_at, Date::FORMAT_TO_HOUR)]], |
| 30 | 30 | [['text' => __('Message')], ['text' => $record->message]] |
| 31 | 31 | ] |
@@ -32,9 +32,9 @@ discard block |
||
| 32 | 32 | foreach (\App::$Properties->get('languages') as $lang) { |
| 33 | 33 | $items[] = [ |
| 34 | 34 | 'type' => 'tab', |
| 35 | - 'text' => __('Lang') . ': ' . Str::upperCase($lang), |
|
| 36 | - 'content' => $form->field('title.' . $lang, 'text', ['class' => 'form-control'], __('Enter category title, visible for users')) . |
|
| 37 | - $form->field('description.' . $lang, 'text', ['class' => 'form-control'], __('Enter category description')), |
|
| 35 | + 'text' => __('Lang').': '.Str::upperCase($lang), |
|
| 36 | + 'content' => $form->field('title.'.$lang, 'text', ['class' => 'form-control'], __('Enter category title, visible for users')). |
|
| 37 | + $form->field('description.'.$lang, 'text', ['class' => 'form-control'], __('Enter category description')), |
|
| 38 | 38 | 'html' => true, |
| 39 | 39 | 'active' => $lang === \App::$Request->getLanguage(), |
| 40 | 40 | '!secure' => true |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $pathProperty = [ |
| 54 | 54 | 'class' => 'form-control' |
| 55 | 55 | ]; |
| 56 | -if ((int)$model->id == '1') { |
|
| 56 | +if ((int) $model->id == '1') { |
|
| 57 | 57 | $pathProperty['disabled'] = ''; |
| 58 | 58 | } else { |
| 59 | 59 | echo $form->field('dependId', 'select', ['class' => 'form-control', 'options' => $model->categoryList(), 'optionsKey' => true], __('Select owner category for this category')); |