@@ -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; ?> |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | if ($item->type === 'app') { |
| 160 | 160 | $appControllers[] = $item->sys_name; |
| 161 | 161 | $appMenuItems[] = $menuItem; |
| 162 | - } elseif($item->type === 'widget') { |
|
| 162 | + } elseif ($item->type === 'widget') { |
|
| 163 | 163 | $widgetControllers[] = $item->sys_name; |
| 164 | 164 | $widgetMenuItems[] = $menuItem; |
| 165 | 165 | } |
@@ -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 | ]); |
@@ -66,6 +66,9 @@ |
||
| 66 | 66 | ] |
| 67 | 67 | ]); |
| 68 | 68 | ?> |
| 69 | -<?php else: ?> |
|
| 69 | +<?php else { |
|
| 70 | + : ?> |
|
| 70 | 71 | <p>No additional fields is added!</p> |
| 71 | -<?php endif; ?> |
|
| 72 | 72 | \ No newline at end of file |
| 73 | +<?php endif; |
|
| 74 | +} |
|
| 75 | +?> |
|
| 73 | 76 | \ No newline at end of file |
@@ -9,4 +9,4 @@ |
||
| 9 | 9 | ['type' => 'link', 'text' => __('Group management'), 'link' => ['user/grouplist']], |
| 10 | 10 | ['type' => 'link', 'text' => __('Settings'), 'link' => ['user/settings']] |
| 11 | 11 | ] |
| 12 | -]);?> |
|
| 13 | 12 | \ No newline at end of file |
| 13 | +]); ?> |
|
| 14 | 14 | \ No newline at end of file |
@@ -24,7 +24,7 @@ |
||
| 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) { |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | $catConfigs = []; |
| 17 | 17 | foreach ($model->categoryData['configs'] as $key=>$value) { |
| 18 | - $catConfigs[$key] = (int)$value === 1; |
|
| 18 | + $catConfigs[$key] = (int) $value === 1; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | $catMeta = [ |
@@ -59,7 +59,8 @@ discard block |
||
| 59 | 59 | </a> |
| 60 | 60 | </div> |
| 61 | 61 | </div> |
| 62 | - <?php else: ?> |
|
| 62 | + <?php else { |
|
| 63 | + : ?> |
|
| 63 | 64 | <div class="row"> |
| 64 | 65 | <div class="col-md-8" style="padding-right: 0;"> |
| 65 | 66 | <a href="javascript:void(0);" class="btn btn-block <?= $rateClass ?>"> |
@@ -76,7 +77,9 @@ discard block |
||
| 76 | 77 | <a href="javascript:void(0);" class="btn btn-block btn-danger" id="reduceRating">-</a> |
| 77 | 78 | </div> |
| 78 | 79 | </div> |
| 79 | - <?php endif; ?> |
|
| 80 | + <?php endif; |
|
| 81 | +} |
|
| 82 | +?> |
|
| 80 | 83 | <?php endif; ?> |
| 81 | 84 | <?php |
| 82 | 85 | $userMenu = null; |
@@ -43,13 +43,13 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | <?php |
| 45 | 45 | $properties = [ |
| 46 | - 'date' => (int)$model->getCategory()->getProperty('showDate') === 1, |
|
| 47 | - 'author' => (int)$model->getCategory()->getProperty('showAuthor') === 1, |
|
| 48 | - 'views' => (int)$model->getCategory()->getProperty('showViews') === 1, |
|
| 49 | - 'category' => (int)$model->getCategory()->getProperty('showCategory') === 1 |
|
| 46 | + 'date' => (int) $model->getCategory()->getProperty('showDate') === 1, |
|
| 47 | + 'author' => (int) $model->getCategory()->getProperty('showAuthor') === 1, |
|
| 48 | + 'views' => (int) $model->getCategory()->getProperty('showViews') === 1, |
|
| 49 | + 'category' => (int) $model->getCategory()->getProperty('showCategory') === 1 |
|
| 50 | 50 | ]; |
| 51 | -$showComments = (int)$model->getCategory()->getProperty('showComments') === 1; |
|
| 52 | -$showPoster = (int)$model->getCategory()->getProperty('showPoster') === 1; |
|
| 51 | +$showComments = (int) $model->getCategory()->getProperty('showComments') === 1; |
|
| 52 | +$showPoster = (int) $model->getCategory()->getProperty('showPoster') === 1; |
|
| 53 | 53 | |
| 54 | 54 | \App::$Cache->set('test.me.baby.1', ['key' => 'value']); |
| 55 | 55 | ?> |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | </div> |
| 97 | 97 | </div> |
| 98 | 98 | </div> |
| 99 | - <?php endif ;?> |
|
| 99 | + <?php endif; ?> |
|
| 100 | 100 | <?= $model->text ?> |
| 101 | 101 | </div> |
| 102 | 102 | <?php if ($model->galleryItems !== null && Obj::isArray($model->galleryItems)): ?> |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | </div> |
| 122 | 122 | </div> |
| 123 | 123 | <?php endif; ?> |
| 124 | - <?php if ((int)$configs['keywordsAsTags'] === 1): ?> |
|
| 124 | + <?php if ((int) $configs['keywordsAsTags'] === 1): ?> |
|
| 125 | 125 | <div id="content-tags"> |
| 126 | 126 | <?php |
| 127 | 127 | if (Obj::isArray($model->metaKeywords) && count($model->metaKeywords) > 0 && Str::length($model->metaKeywords[0]) > 0) { |
@@ -67,17 +67,23 @@ |
||
| 67 | 67 | <?php if ($properties['author'] === true): ?> |
| 68 | 68 | <?php if ($model->authorId !== null && $model->authorId > 0): ?> |
| 69 | 69 | <span><i class="fa fa-user"></i><?= Url::link(['profile/show', $model->authorId], $model->authorName, ['itemprop' => 'author']) ?></span> |
| 70 | - <?php else: ?> |
|
| 70 | + <?php else { |
|
| 71 | + : ?> |
|
| 71 | 72 | <span><i class="fa fa-user"></i><s><?= $model->authorName ?></s></span> |
| 72 | - <?php endif; ?> |
|
| 73 | + <?php endif; |
|
| 74 | +} |
|
| 75 | +?> |
|
| 73 | 76 | <?php endif; ?> |
| 74 | 77 | <?php if ($properties['views'] === true): ?> |
| 75 | 78 | <span><i class="fa fa-eye"></i><?= $model->views ?></span> |
| 76 | 79 | <?php endif ?> |
| 77 | 80 | </div> |
| 78 | - <?php else: ?> |
|
| 81 | + <?php else { |
|
| 82 | + : ?> |
|
| 79 | 83 | <hr /> |
| 80 | - <?php endif; ?> |
|
| 84 | + <?php endif; |
|
| 85 | +} |
|
| 86 | +?> |
|
| 81 | 87 | <?php if ($trash): ?> |
| 82 | 88 | <p class="alert alert-danger"><i class="fa fa-trash-o"></i> <?= __('This content is placed in trash') ?></p> |
| 83 | 89 | <?php endif; ?> |