@@ -8,9 +8,12 @@ |
||
8 | 8 | <i class="fa fa-check-circle check-ok animated bounceIn"></i> |
9 | 9 | <?php elseif ($check['state'] == 'WARNING') : ?> |
10 | 10 | <i class="fa fa-exclamation-triangle check-warning animated swing"></i> |
11 | - <?php else : ?> |
|
11 | + <?php else { |
|
12 | + : ?> |
|
12 | 13 | <i class="fa fa-minus-circle check-error animated wobble"></i> |
13 | - <?php endif; ?> |
|
14 | + <?php endif; |
|
15 | +} |
|
16 | +?> |
|
14 | 17 | |
15 | 18 | <strong><?= $check['title']; ?></strong> |
16 | 19 |
@@ -7,11 +7,11 @@ |
||
7 | 7 | <?php $this->beginContent('@admin/views/setting/_advancedLayout.php') ?> |
8 | 8 | |
9 | 9 | <p><?= Yii::t('AdminModule.views_setting_logs', |
10 | - 'Old logs can significantly increase the size of your database while providing little information.') ?> |
|
10 | + 'Old logs can significantly increase the size of your database while providing little information.') ?> |
|
11 | 11 | </p> |
12 | 12 | <p><?= Yii::t('AdminModule.views_setting_logs', |
13 | - 'Currently there are {count} records in the database dating from {dating}.', |
|
14 | - ['count' => $logsCount, 'dating' => $dating])?> |
|
13 | + 'Currently there are {count} records in the database dating from {dating}.', |
|
14 | + ['count' => $logsCount, 'dating' => $dating])?> |
|
15 | 15 | </p> |
16 | 16 | <br> |
17 | 17 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | <div class="form-group"> |
29 | 29 | <?= $form->labelEx($model, 'maxFileSize'); ?> |
30 | 30 | <?= $form->textField($model, 'maxFileSize', ['class' => 'form-control', 'readonly' => Setting::IsFixed('maxFileSize', 'file')]); ?> |
31 | - <p class="help-block" <?= ($model->maxFileSize > $maxUploadSize) ? 'style="color:'.$this->theme->variable('danger').' !important"' : ''?>> |
|
31 | + <p class="help-block" <?= ($model->maxFileSize > $maxUploadSize) ? 'style="color:' . $this->theme->variable('danger') . ' !important"' : ''?>> |
|
32 | 32 | <?= Yii::t('AdminModule.views_setting_file', 'PHP reported a maximum of {maxUploadSize} MB', ['{maxUploadSize}' => $maxUploadSizeText]); ?> |
33 | 33 | </p> |
34 | 34 | </div> |
@@ -23,8 +23,11 @@ |
||
23 | 23 | <?php if ($enabled): ?> |
24 | 24 | <?php if ($errorMessage != ""): ?> |
25 | 25 | <div class="alert alert-danger"><?= Yii::t('AdminModule.views_setting_authentication_ldap', 'Status: Error! (Message: {message})', ['{message}' => $errorMessage]); ?></div> |
26 | - <?php else: ?> |
|
27 | - <div class="alert alert-success"><?= Yii::t('AdminModule.views_setting_authentication_ldap', 'Status: OK! ({userCount} Users)', ['{userCount}' => $userCount]); ?></div> |
|
26 | + <?php else { |
|
27 | + : ?> |
|
28 | + <div class="alert alert-success"><?= Yii::t('AdminModule.views_setting_authentication_ldap', 'Status: OK! ({userCount} Users)', ['{userCount}' => $userCount]); |
|
29 | +} |
|
30 | +?></div> |
|
28 | 31 | <?php endif; ?> |
29 | 32 | <?php endif; ?> |
30 | 33 |
@@ -42,8 +42,9 @@ discard block |
||
42 | 42 | 'options' => ['width' => '40px'], |
43 | 43 | 'format' => 'raw', |
44 | 44 | 'value' => function($data) use ($visibilities) { |
45 | - if (isset($visibilities[$data->visibility])) |
|
46 | - return $visibilities[$data->visibility]; |
|
45 | + if (isset($visibilities[$data->visibility])) { |
|
46 | + return $visibilities[$data->visibility]; |
|
47 | + } |
|
47 | 48 | return Html::encode($data->visibility); |
48 | 49 | }, |
49 | 50 | ], |
@@ -53,8 +54,9 @@ discard block |
||
53 | 54 | 'filter' => \yii\helpers\Html::activeDropDownList($searchModel, 'join_policy', array_merge(['' => ''], $joinPolicies)), |
54 | 55 | 'format' => 'raw', |
55 | 56 | 'value' => function($data) use ($joinPolicies) { |
56 | - if (isset($joinPolicies[$data->join_policy])) |
|
57 | - return $joinPolicies[$data->join_policy]; |
|
57 | + if (isset($joinPolicies[$data->join_policy])) { |
|
58 | + return $joinPolicies[$data->join_policy]; |
|
59 | + } |
|
58 | 60 | return Html::encode($data->join_policy); |
59 | 61 | }, |
60 | 62 | ], |
@@ -41,7 +41,7 @@ |
||
41 | 41 | 'attribute' => 'last_login', |
42 | 42 | 'options' => ['style' => 'width:86px;', 'class' => 'form-control'], |
43 | 43 | ]), |
44 | - 'value' => function ($data) { |
|
44 | + 'value' => function($data) { |
|
45 | 45 | return ($data->last_login == NULL) ? Yii::t('AdminModule.views_user_index', 'never') : Yii::$app->formatter->asDate($data->last_login); |
46 | 46 | } |
47 | 47 | ], |
@@ -18,8 +18,11 @@ |
||
18 | 18 | |
19 | 19 | <?= \yii\helpers\Markdown::process($content); ?> |
20 | 20 | |
21 | - <?php else: ?> |
|
22 | - <?= $description; ?> |
|
21 | + <?php else { |
|
22 | + : ?> |
|
23 | + <?= $description; |
|
24 | +} |
|
25 | +?> |
|
23 | 26 | <br> |
24 | 27 | <br> |
25 | 28 |
@@ -23,11 +23,23 @@ |
||
23 | 23 | </div> |
24 | 24 | <div class="tab-menu"> |
25 | 25 | <ul class="nav nav-tabs" id="moduleTabs"> |
26 | - <li <?php if ($this->context->action->id == 'list') echo 'class="active"'; ?>><?= Html::a(Yii::t('AdminModule.views_module_header', 'Installed'), Url::to(['list'])); ?></li> |
|
26 | + <li <?php if ($this->context->action->id == 'list') { |
|
27 | + echo 'class="active"'; |
|
28 | +} |
|
29 | +?>><?= Html::a(Yii::t('AdminModule.views_module_header', 'Installed'), Url::to(['list'])); ?></li> |
|
27 | 30 | <?php if (Yii::$app->getModule('admin')->marketplaceEnabled) : ?> |
28 | - <li <?php if ($this->context->action->id == 'list-online') echo 'class="active"'; ?>><?= Html::a(Yii::t('AdminModule.views_module_header', 'Browse online'), Url::to(['list-online'])); ?></li> |
|
29 | - <li <?php if ($this->context->action->id == 'list-purchases') echo 'class="active"'; ?>><?= Html::a(Yii::t('AdminModule.views_module_header', 'Purchases'), Url::to(['list-purchases'])); ?></li> |
|
30 | - <li <?php if ($this->context->action->id == 'list-updates') echo 'class="active"'; ?>><?= Html::a(Yii::t('AdminModule.views_module_header', 'Available updates') . $updatesBadge, Url::to(['list-updates'])); ?></li> |
|
31 | + <li <?php if ($this->context->action->id == 'list-online') { |
|
32 | + echo 'class="active"'; |
|
33 | +} |
|
34 | +?>><?= Html::a(Yii::t('AdminModule.views_module_header', 'Browse online'), Url::to(['list-online'])); ?></li> |
|
35 | + <li <?php if ($this->context->action->id == 'list-purchases') { |
|
36 | + echo 'class="active"'; |
|
37 | +} |
|
38 | +?>><?= Html::a(Yii::t('AdminModule.views_module_header', 'Purchases'), Url::to(['list-purchases'])); ?></li> |
|
39 | + <li <?php if ($this->context->action->id == 'list-updates') { |
|
40 | + echo 'class="active"'; |
|
41 | +} |
|
42 | +?>><?= Html::a(Yii::t('AdminModule.views_module_header', 'Available updates') . $updatesBadge, Url::to(['list-updates'])); ?></li> |
|
31 | 43 | <?php endif; ?> |
32 | 44 | </ul> |
33 | 45 | </div> |
@@ -16,7 +16,7 @@ |
||
16 | 16 | <div class="col-md-6"> |
17 | 17 | <div class="form-group form-group-search"> |
18 | 18 | <?= Html::textInput("licenceKey", $licenceKey, ["class" => "form-control form-search", "placeholder" => Yii::t('AdminModule.base', 'Add purchased module by licence key')]); ?> |
19 | - <?= Html::submitButton(Yii::t('AdminModule.module_listOnline', 'Register'), ['class' => 'btn btn-default btn-sm form-button-search' , 'data-ui-loader' => ""]); ?> |
|
19 | + <?= Html::submitButton(Yii::t('AdminModule.module_listOnline', 'Register'), ['class' => 'btn btn-default btn-sm form-button-search', 'data-ui-loader' => ""]); ?> |
|
20 | 20 | </div> |
21 | 21 | <?php if ($message != ""): ?> |
22 | 22 | <div style="color:<?= ($hasError) ? 'red' : 'green'; ?>"><?= Html::encode($message); ?></div> |
@@ -35,7 +35,8 @@ discard block |
||
35 | 35 | <br><br> |
36 | 36 | </div> |
37 | 37 | |
38 | - <?php else: ?> |
|
38 | + <?php else { |
|
39 | + : ?> |
|
39 | 40 | |
40 | 41 | |
41 | 42 | <?php foreach ($modules as $module): ?> |
@@ -44,6 +45,7 @@ discard block |
||
44 | 45 | |
45 | 46 | <?php |
46 | 47 | $moduleImageUrl = Yii::getAlias('@web-static/img/default_module.jpg'); |
48 | +} |
|
47 | 49 | if (isset($module['moduleImageUrl']) && $module['moduleImageUrl'] != "") { |
48 | 50 | $moduleImageUrl = $module['moduleImageUrl']; |
49 | 51 | } |