@@ -31,10 +31,11 @@ |
||
31 | 31 | <i class="glyphicon glyphicon-remove"></i> <?= \Yii::t('skeeks/cms', 'reset settings for all sites"') ?> |
32 | 32 | </button> |
33 | 33 | <small>.</small> |
34 | - <?php else |
|
34 | + <?php else { |
|
35 | 35 | : ?> |
36 | 36 | <small><?= \Yii::t('skeeks/cms', 'Neither site does not have personal settings for this component') ?></small> |
37 | 37 | <?php endif; |
38 | +} |
|
38 | 39 | ?> |
39 | 40 | </div> |
40 | 41 |
@@ -23,10 +23,11 @@ |
||
23 | 23 | onclick="sx.ComponentSettings.Remove.removeAll(); return false;"> |
24 | 24 | <i class="glyphicon glyphicon-remove"></i> <?= \Yii::t('skeeks/cms', 'reset all settings') ?> |
25 | 25 | </button> |
26 | - <?php else |
|
26 | + <?php else { |
|
27 | 27 | : ?> |
28 | 28 | <small><?= \Yii::t('skeeks/cms', 'The database no settings for this component.') ?></small> |
29 | 29 | <?php endif; |
30 | +} |
|
30 | 31 | ?> |
31 | 32 | </div> |
32 | 33 |
@@ -25,10 +25,11 @@ |
||
25 | 25 | </button> |
26 | 26 | <small><?= \Yii::t('skeeks/cms', |
27 | 27 | 'The settings for this component are stored in the database. This option will erase them from the database, but the component, restore the default values. As they have in the code the developer.') ?></small> |
28 | - <?php else |
|
28 | + <?php else { |
|
29 | 29 | : ?> |
30 | 30 | <small><?= \Yii::t('skeeks/cms', 'These settings not yet saved in the database') ?></small> |
31 | 31 | <?php endif; |
32 | +} |
|
32 | 33 | ?> |
33 | 34 | </div> |
34 | 35 |
@@ -23,10 +23,11 @@ |
||
23 | 23 | </button> |
24 | 24 | <small><?= \Yii::t('skeeks/cms', |
25 | 25 | 'The settings for this component are stored in the database. This option will erase them from the database, but the component, restore the default values. As they have in the code the developer.') ?></small> |
26 | - <?php else |
|
26 | + <?php else { |
|
27 | 27 | : ?> |
28 | 28 | <small><?= \Yii::t('skeeks/cms', 'These settings not yet saved in the database') ?></small> |
29 | 29 | <?php endif; |
30 | +} |
|
30 | 31 | ?> |
31 | 32 | </div> |
32 | 33 |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | <?php if (\Yii::$app->request->get('user_id')) : ?> |
13 | 13 | <?= $form->field($model, 'user_id')->hiddenInput(['value' => \Yii::$app->request->get('user_id')])->label(false) ?> |
14 | -<?php else |
|
14 | +<?php else { |
|
15 | 15 | : ?> |
16 | 16 | <?= $form->fieldSelect($model, 'user_id', \yii\helpers\ArrayHelper::map( |
17 | 17 | \skeeks\cms\models\User::find()->active()->all(), |
@@ -21,6 +21,7 @@ discard block |
||
21 | 21 | 'allowDeselect' => true |
22 | 22 | ]) ?> |
23 | 23 | <?php endif; |
24 | +} |
|
24 | 25 | ?> |
25 | 26 | |
26 | 27 |
@@ -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 |
@@ -177,10 +177,11 @@ |
||
177 | 177 | <?= $property->renderActiveForm($form); ?> |
178 | 178 | <?php endforeach; ?> |
179 | 179 | |
180 | -<?php else |
|
180 | +<?php else { |
|
181 | 181 | : ?> |
182 | 182 | <?php /*= \Yii::t('skeeks/cms','Additional properties are not set')*/ ?> |
183 | 183 | <?php endif; |
184 | +} |
|
184 | 185 | ?> |
185 | 186 | |
186 | 187 | <?= $form->fieldSetEnd() ?> |
@@ -57,10 +57,11 @@ |
||
57 | 57 | $names[] = $model->redirectTree->name; |
58 | 58 | echo implode(" / ", $names); |
59 | 59 | ?> |
60 | - <?php else |
|
60 | + <?php else { |
|
61 | 61 | : ?> |
62 | 62 | <? |
63 | 63 | $names[] = $model->redirectTree->site->name; |
64 | +} |
|
64 | 65 | |
65 | 66 | echo implode(" / ", $names); |
66 | 67 | ?> |
@@ -22,10 +22,12 @@ |
||
22 | 22 | |
23 | 23 | <?php if ($content_type = \Yii::$app->request->get('content_type')) : ?> |
24 | 24 | <?= $form->field($model, 'content_type')->hiddenInput(['value' => $content_type])->label(false); ?> |
25 | -<?php else : ?> |
|
25 | +<?php else { |
|
26 | + : ?> |
|
26 | 27 | <div style="display: none;"> |
27 | 28 | <?= $form->fieldSelect($model, 'content_type', |
28 | 29 | \yii\helpers\ArrayHelper::map(\skeeks\cms\models\CmsContentType::find()->all(), 'code', 'name')); |
30 | +} |
|
29 | 31 | ?> |
30 | 32 | </div> |
31 | 33 | <?php endif; ?> |