@@ -33,9 +33,12 @@ |
||
33 | 33 | <?php if ($model->cmsContent) : ?> |
34 | 34 | <?= $form->fieldSelectMulti($model, 'realatedProperties', |
35 | 35 | \yii\helpers\ArrayHelper::map($model->cmsContent->cmsContentProperties, 'code', 'name')); ?> |
36 | -<?php else: ?> |
|
36 | +<?php else { |
|
37 | + : ?> |
|
37 | 38 | Дополнительные свойства появятся после сохранения настроек |
38 | -<?php endif; ?> |
|
39 | +<?php endif; |
|
40 | +} |
|
41 | +?> |
|
39 | 42 | |
40 | 43 | |
41 | 44 |
@@ -96,12 +96,15 @@ |
||
96 | 96 | </div> |
97 | 97 | </div> |
98 | 98 | |
99 | - <?php else : ?> |
|
99 | + <?php else { |
|
100 | + : ?> |
|
100 | 101 | |
101 | 102 | <?php $propertiesValues = \skeeks\cms\models\CmsContentElementProperty::find()->select(['value'])->where([ |
102 | 103 | 'property_id' => $property->id, |
103 | 104 | 'element_id' => $widget->elementIds |
104 | - ])->all(); ?> |
|
105 | + ])->all(); |
|
106 | +} |
|
107 | +?> |
|
105 | 108 | |
106 | 109 | <?php if ($propertiesValues) : ?> |
107 | 110 | <div class="row"> |
@@ -11,7 +11,8 @@ 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 | <?= $form->fieldSelect($model, 'user_id', \yii\helpers\ArrayHelper::map( |
16 | 17 | \skeeks\cms\models\User::find()->active()->all(), |
17 | 18 | 'id', |
@@ -19,7 +20,9 @@ discard block |
||
19 | 20 | ), [ |
20 | 21 | 'allowDeselect' => true |
21 | 22 | ]) ?> |
22 | -<?php endif; ?> |
|
23 | +<?php endif; |
|
24 | +} |
|
25 | +?> |
|
23 | 26 | |
24 | 27 | |
25 | 28 | <?= $form->fieldRadioListBoolean($model, 'approved'); ?> |
@@ -11,7 +11,8 @@ discard block |
||
11 | 11 | |
12 | 12 | <p>Empty.</p> |
13 | 13 | |
14 | -<?php else: ?> |
|
14 | +<?php else { |
|
15 | + : ?> |
|
15 | 16 | |
16 | 17 | <table class="table table-condensed table-bordered table-striped table-hover sx-table" style="table-layout: fixed;"> |
17 | 18 | <thead> |
@@ -26,7 +27,9 @@ discard block |
||
26 | 27 | <th><?= Html::encode($name) ?></th> |
27 | 28 | <td style="overflow:auto"><?= $value ?></td> |
28 | 29 | </tr> |
29 | - <?php endforeach; ?> |
|
30 | + <?php endforeach; |
|
31 | +} |
|
32 | +?> |
|
30 | 33 | </tbody> |
31 | 34 | </table> |
32 | 35 |
@@ -23,9 +23,12 @@ |
||
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 | <small><?= \Yii::t('skeeks/cms', 'These settings not yet saved in the database') ?></small> |
28 | - <?php endif; ?> |
|
29 | + <?php endif; |
|
30 | +} |
|
31 | +?> |
|
29 | 32 | </div> |
30 | 33 | |
31 | 34 | <?php $form = \skeeks\cms\modules\admin\widgets\form\ActiveFormUseTab::begin(); ?> |
@@ -23,9 +23,12 @@ |
||
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 | <small><?= \Yii::t('skeeks/cms', 'The database no settings for this component.') ?></small> |
28 | - <?php endif; ?> |
|
29 | + <?php endif; |
|
30 | +} |
|
31 | +?> |
|
29 | 32 | </div> |
30 | 33 | |
31 | 34 |
@@ -31,9 +31,12 @@ |
||
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 | <small><?= \Yii::t('skeeks/cms', 'Neither site does not have personal settings for this component') ?></small> |
36 | - <?php endif; ?> |
|
37 | + <?php endif; |
|
38 | +} |
|
39 | +?> |
|
37 | 40 | </div> |
38 | 41 | |
39 | 42 | <? |
@@ -25,9 +25,12 @@ |
||
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 | <small><?= \Yii::t('skeeks/cms', 'These settings not yet saved in the database') ?></small> |
30 | - <?php endif; ?> |
|
31 | + <?php endif; |
|
32 | +} |
|
33 | +?> |
|
31 | 34 | </div> |
32 | 35 | |
33 | 36 |
@@ -30,9 +30,12 @@ |
||
30 | 30 | onclick="sx.ComponentSettings.Remove.removeUsers(); return false;"> |
31 | 31 | <i class="glyphicon glyphicon-remove"></i> <?= \Yii::t('skeeks/cms', 'Reset settings for all users') ?> |
32 | 32 | </button> |
33 | - <?php else: ?> |
|
33 | + <?php else { |
|
34 | + : ?> |
|
34 | 35 | <small><?= \Yii::t('skeeks/cms', 'Neither user does not have personal settings for this component') ?></small> |
35 | - <?php endif; ?> |
|
36 | + <?php endif; |
|
37 | +} |
|
38 | +?> |
|
36 | 39 | </div> |
37 | 40 | |
38 | 41 | <? |