@@ -5,10 +5,8 @@ |
||
5 | 5 | 'contentContainer' => $user, |
6 | 6 | 'streamAction' => '//user/profile/stream', |
7 | 7 | 'messageStreamEmpty' => ($user->permissionManager->can(new \humhub\modules\post\permissions\CreatePost())) ? |
8 | - Yii::t('UserModule.views_profile_index', '<b>Your profile stream is still empty</b><br>Get started and post something...') : |
|
9 | - Yii::t('UserModule.views_profile_index', '<b>This profile stream is still empty!</b>'), |
|
8 | + Yii::t('UserModule.views_profile_index', '<b>Your profile stream is still empty</b><br>Get started and post something...') : Yii::t('UserModule.views_profile_index', '<b>This profile stream is still empty!</b>'), |
|
10 | 9 | 'messageStreamEmptyCss' => ($user->permissionManager->can(new \humhub\modules\post\permissions\CreatePost())) ? |
11 | - 'placeholder-empty-stream' : |
|
12 | - '', |
|
10 | + 'placeholder-empty-stream' : '', |
|
13 | 11 | )); |
14 | 12 | ?> |
@@ -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" |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | - humhub\assets\TabbedFormAsset::register($this); |
|
2 | + humhub\assets\TabbedFormAsset::register($this); |
|
3 | 3 | ?> |
4 | 4 | |
5 | 5 | <div class="panel-heading"> |
@@ -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 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | </div> |
14 | 14 | |
15 | 15 | <?= |
16 | - GridView::widget([ |
|
16 | + GridView::widget([ |
|
17 | 17 | 'dataProvider' => $dataProvider, |
18 | 18 | 'filterModel' => $searchModel, |
19 | 19 | 'columns' => [ |
@@ -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 |