@@ -45,7 +45,7 @@ |
||
45 | 45 | BlameableBehavior::className() => |
46 | 46 | [ |
47 | 47 | 'class' => BlameableBehavior::className(), |
48 | - 'value' => function ($event) { |
|
48 | + 'value' => function($event) { |
|
49 | 49 | if (\Yii::$app instanceof \yii\console\Application) { |
50 | 50 | return null; |
51 | 51 | } else { |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | <p>Empty.</p> |
13 | 13 | |
14 | -<?php else |
|
14 | +<?php else { |
|
15 | 15 | : ?> |
16 | 16 | |
17 | 17 | <table class="table table-condensed table-bordered table-striped table-hover sx-table" style="table-layout: fixed;"> |
@@ -28,6 +28,7 @@ discard block |
||
28 | 28 | <td style="overflow:auto"><?= $value ?></td> |
29 | 29 | </tr> |
30 | 30 | <?php endforeach; |
31 | +} |
|
31 | 32 | ?> |
32 | 33 | </tbody> |
33 | 34 | </table> |
@@ -23,9 +23,10 @@ |
||
23 | 23 | <a href="<?= $widget->getOpenCloseLink($model); ?>" class="btn btn-sm btn-default"> |
24 | 24 | <span class="glyphicon glyphicon-minus" title="<?= \Yii::t('skeeks/cms', "Minimize"); ?>"></span> |
25 | 25 | </a> |
26 | - <?php else |
|
26 | + <?php else { |
|
27 | 27 | : ?> |
28 | 28 | <a href="<?= $widget->getOpenCloseLink($model); |
29 | +} |
|
29 | 30 | ?>" class="btn btn-sm btn-default"> |
30 | 31 | <span class="glyphicon glyphicon-plus" title="<?= \Yii::t('skeeks/cms', "Restore"); ?>"></span> |
31 | 32 | </a> |
@@ -107,9 +107,10 @@ |
||
107 | 107 | ]); |
108 | 108 | ?> |
109 | 109 | </div> |
110 | - <?php else |
|
110 | + <?php else { |
|
111 | 111 | : ?> |
112 | 112 | <?= $widget->renderItem($imageFile); |
113 | +} |
|
113 | 114 | ?> |
114 | 115 | <?php endif; ?> |
115 | 116 |
@@ -99,9 +99,10 @@ discard block |
||
99 | 99 | <img src="<?= \Yii::$app->imaging->getImagingUrl($imageFile->src, |
100 | 100 | new \skeeks\cms\components\imaging\filters\Thumbnail()); ?>"/> |
101 | 101 | </a> |
102 | - <?php else |
|
102 | + <?php else { |
|
103 | 103 | : ?> |
104 | 104 | <?= $imageFile->name ? $imageFile->name : $imageFile->original_name; |
105 | +} |
|
105 | 106 | ?> |
106 | 107 | <?php endif; ?> |
107 | 108 | |
@@ -124,9 +125,10 @@ discard block |
||
124 | 125 | } |
125 | 126 | ?> |
126 | 127 | </div> |
127 | - <?php else |
|
128 | + <?php else { |
|
128 | 129 | : ?> |
129 | 130 | <?= $widget->renderItem($imageFile); |
131 | +} |
|
130 | 132 | ?> |
131 | 133 | <?php endif; ?> |
132 | 134 | </div> |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | <?php if ($widget->modelAttributeSaveType) : ?> |
17 | 17 | <?= \yii\helpers\Html::activeRadioList($widget->model, $widget->modelAttributeSaveType, |
18 | 18 | \skeeks\cms\widgets\formInputs\comboText\ComboTextInputWidget::editors()) ?> |
19 | - <?php else |
|
19 | + <?php else { |
|
20 | 20 | : ?> |
21 | 21 | <?= \yii\helpers\Html::radioList( |
22 | 22 | $widget->id . '-radio', |
@@ -24,6 +24,7 @@ discard block |
||
24 | 24 | \skeeks\cms\widgets\formInputs\comboText\ComboTextInputWidget::editors() |
25 | 25 | ) ?> |
26 | 26 | <?php endif; |
27 | +} |
|
27 | 28 | ?> |
28 | 29 | </div> |
29 | 30 | <div class="sx-controll"> |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | <?php if (\Yii::$app->request->get('user_id')) : ?> |
25 | 25 | <?= $form->field($model, 'user_id')->hiddenInput(['value' => \Yii::$app->request->get('user_id')])->label(false) ?> |
26 | -<?php else |
|
26 | +<?php else { |
|
27 | 27 | : ?> |
28 | 28 | <?= $form->fieldSelect($model, 'user_id', \yii\helpers\ArrayHelper::map( |
29 | 29 | \skeeks\cms\models\User::find()->active()->all(), |
@@ -33,6 +33,7 @@ discard block |
||
33 | 33 | 'allowDeselect' => true |
34 | 34 | ]) ?> |
35 | 35 | <?php endif; |
36 | +} |
|
36 | 37 | ?> |
37 | 38 | |
38 | 39 |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | <?php if ($form_id = \Yii::$app->request->get('property_id')) : ?> |
12 | 12 | <?= $form->field($model, 'property_id')->hiddenInput(['value' => $form_id])->label(false); ?> |
13 | -<?php else |
|
13 | +<?php else { |
|
14 | 14 | : ?> |
15 | 15 | <?= $form->field($model, 'property_id')->widget( |
16 | 16 | \skeeks\widget\chosen\Chosen::className(), [ |
@@ -20,6 +20,7 @@ discard block |
||
20 | 20 | "name" |
21 | 21 | ), |
22 | 22 | ]); |
23 | +} |
|
23 | 24 | ?> |
24 | 25 | <?php endif; ?> |
25 | 26 |
@@ -36,9 +36,10 @@ |
||
36 | 36 | 'Site selected by default always active')); ?> |
37 | 37 | <?= $form->field($model, 'def')->hiddenInput()->hint(\Yii::t('skeeks/cms', |
38 | 38 | 'This site is the site selected by default. If you want to change it, you need to choose a different site, the default site.')); ?> |
39 | -<?php else |
|
39 | +<?php else { |
|
40 | 40 | : ?> |
41 | 41 | <?= $form->fieldRadioListBoolean($model, 'active'); |
42 | +} |
|
42 | 43 | ?> |
43 | 44 | <?= $form->fieldRadioListBoolean($model, 'def'); ?> |
44 | 45 | <?php endif; ?> |