@@ -12,7 +12,10 @@ |
||
| 12 | 12 | <?php foreach ($this->context->getItemGroups() as $group) : ?> |
| 13 | 13 | |
| 14 | 14 | <?php $items = $this->context->getItems($group['id']); ?> |
| 15 | - <?php if (count($items) == 0) continue; ?> |
|
| 15 | + <?php if (count($items) == 0) { |
|
| 16 | + continue; |
|
| 17 | +} |
|
| 18 | +?> |
|
| 16 | 19 | |
| 17 | 20 | <?php if ($group['label'] != "") : ?> |
| 18 | 21 | <div class="panel-heading"><?php echo $group['label']; ?></div> |
@@ -9,7 +9,10 @@ |
||
| 9 | 9 | <?php foreach ($this->context->getItemGroups() as $group) : ?> |
| 10 | 10 | |
| 11 | 11 | <?php $items = $this->context->getItems($group['id']); ?> |
| 12 | - <?php if (count($items) == 0) continue; ?> |
|
| 12 | + <?php if (count($items) == 0) { |
|
| 13 | + continue; |
|
| 14 | +} |
|
| 15 | +?> |
|
| 13 | 16 | |
| 14 | 17 | <div class="btn-group dropdown-navigation"> |
| 15 | 18 | <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" |
@@ -12,8 +12,11 @@ |
||
| 12 | 12 | |
| 13 | 13 | <?php if (!$category->isNewRecord) : ?> |
| 14 | 14 | <h4><?= Yii::t('AdminModule.views_userprofile_editCategory', 'Edit profile category'); ?></h4> |
| 15 | - <?php else: ?> |
|
| 16 | - <h4><?= Yii::t('AdminModule.views_userprofile_editCategory', 'Create new profile category'); ?></h4> |
|
| 15 | + <?php else { |
|
| 16 | + : ?> |
|
| 17 | + <h4><?= Yii::t('AdminModule.views_userprofile_editCategory', 'Create new profile category'); |
|
| 18 | +} |
|
| 19 | +?></h4> |
|
| 17 | 20 | <?php endif; ?> |
| 18 | 21 | <br> |
| 19 | 22 | |
@@ -9,8 +9,11 @@ |
||
| 9 | 9 | |
| 10 | 10 | <?php if (!$group->isNewRecord) : ?> |
| 11 | 11 | <h4><?= Yii::t('AdminModule.user', 'Manage group: {groupName}', ['groupName' => $group->name]); ?></h4> |
| 12 | - <?php else: ?> |
|
| 13 | - <h4><?= Yii::t('AdminModule.user', 'Add new group'); ?></h4> |
|
| 12 | + <?php else { |
|
| 13 | + : ?> |
|
| 14 | + <h4><?= Yii::t('AdminModule.user', 'Add new group'); |
|
| 15 | +} |
|
| 16 | +?></h4> |
|
| 14 | 17 | <?php endif; ?> |
| 15 | 18 | </div> |
| 16 | 19 | |
@@ -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 | |
@@ -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 | |
@@ -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 | |
@@ -34,11 +34,14 @@ discard block |
||
| 34 | 34 | <br><br> |
| 35 | 35 | </div> |
| 36 | 36 | |
| 37 | - <?php else: ?> |
|
| 37 | + <?php else { |
|
| 38 | + : ?> |
|
| 38 | 39 | |
| 39 | 40 | <?php foreach ($modules as $module): ?> |
| 40 | 41 | <hr> |
| 41 | - <div class="media <?php if (Yii::$app->moduleManager->hasModule($module['id'])): ?>module-installed<?php endif; ?>"> |
|
| 42 | + <div class="media <?php if (Yii::$app->moduleManager->hasModule($module['id'])): ?>module-installed<?php endif; |
|
| 43 | +} |
|
| 44 | +?>"> |
|
| 42 | 45 | |
| 43 | 46 | <?php |
| 44 | 47 | $moduleImageUrl = Yii::getAlias('@web-static/img/default_module.jpg'); |
@@ -82,14 +85,20 @@ discard block |
||
| 82 | 85 | <?php if (isset($module['price_eur']) && $module['price_eur'] != 0 && !$module['purchased']) : ?> |
| 83 | 86 | <?php $checkoutUrl = str_replace('-returnToUrl-', Url::to(['/admin/module/list-purchases'], true), $module['checkoutUrl']); ?> |
| 84 | 87 | · <?= Html::a(Yii::t('AdminModule.views_module_listOnline', 'Buy (%price%)', ['%price%' => $module['price_eur'] . '€']), $checkoutUrl, ['style' => 'font-weight:bold', 'target' => '_blank']); ?> |
| 85 | - <?php else: ?> |
|
| 86 | - · <?= Html::a(Yii::t('AdminModule.views_module_listOnline', 'Install'), Url::to(['install', 'moduleId' => $module['id']]), ['style' => 'font-weight:bold', 'data-loader' => "modal", 'data-message' => Yii::t('AdminModule.views_module_listOnline', 'Installing module...'), 'data-method' => 'POST']); ?> |
|
| 88 | + <?php else { |
|
| 89 | + : ?> |
|
| 90 | + · <?= Html::a(Yii::t('AdminModule.views_module_listOnline', 'Install'), Url::to(['install', 'moduleId' => $module['id']]), ['style' => 'font-weight:bold', 'data-loader' => "modal", 'data-message' => Yii::t('AdminModule.views_module_listOnline', 'Installing module...'), 'data-method' => 'POST']); |
|
| 91 | +} |
|
| 92 | +?> |
|
| 87 | 93 | <?php endif; ?> |
| 88 | 94 | <?php endif; ?> |
| 89 | 95 | |
| 90 | - <?php else : ?> |
|
| 96 | + <?php else { |
|
| 97 | + : ?> |
|
| 91 | 98 | · <span |
| 92 | - style="color:red"><?= Yii::t('AdminModule.views_module_listOnline', 'No compatible module version found!'); ?></span> |
|
| 99 | + style="color:red"><?= Yii::t('AdminModule.views_module_listOnline', 'No compatible module version found!'); |
|
| 100 | +} |
|
| 101 | +?></span> |
|
| 93 | 102 | <?php endif; ?> |
| 94 | 103 | · <?= Html::a(Yii::t('AdminModule.views_module_listOnline', 'More info'), $module['marketplaceUrl'], ['target' => '_blank']); ?> |
| 95 | 104 | <?php if (isset($module['showDisclaimer']) && $module['showDisclaimer'] == 1): ?> |
@@ -42,8 +42,11 @@ |
||
| 42 | 42 | |
| 43 | 43 | · <?= Html::a(Yii::t('AdminModule.views_module_list', 'Disable'), Url::to(['/admin/module/disable', 'moduleId' => $moduleId]), ['data-method' => 'POST', 'data-confirm' => Yii::t('AdminModule.views_module_list', 'Are you sure? *ALL* module data will be lost!')]); ?> |
| 44 | 44 | |
| 45 | - <?php else: ?> |
|
| 46 | - · <?= Html::a(Yii::t('AdminModule.views_module_list', 'Enable'), Url::to(['/admin/module/enable', 'moduleId' => $moduleId]), ['data-method' => 'POST', 'style' => 'font-weight:bold', 'data-loader' => "modal", 'data-message' => Yii::t('AdminModule.views_module_list', 'Enable module...')]); ?> |
|
| 45 | + <?php else { |
|
| 46 | + : ?> |
|
| 47 | + · <?= Html::a(Yii::t('AdminModule.views_module_list', 'Enable'), Url::to(['/admin/module/enable', 'moduleId' => $moduleId]), ['data-method' => 'POST', 'style' => 'font-weight:bold', 'data-loader' => "modal", 'data-message' => Yii::t('AdminModule.views_module_list', 'Enable module...')]); |
|
| 48 | +} |
|
| 49 | +?> |
|
| 47 | 50 | <?php endif; ?> |
| 48 | 51 | |
| 49 | 52 | <?php if (Yii::$app->moduleManager->canRemoveModule($moduleId)): ?> |