@@ -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): ?> |
@@ -45,6 +46,7 @@ discard block |
||
45 | 46 | <?php |
46 | 47 | $moduleImageUrl = Yii::getAlias('@web-static/img/default_module.jpg'); |
47 | 48 | } |
49 | +} |
|
48 | 50 | if (isset($module['moduleImageUrl']) && $module['moduleImageUrl'] != "") { |
49 | 51 | $moduleImageUrl = $module['moduleImageUrl']; |
50 | 52 | } |
@@ -20,6 +20,9 @@ |
||
20 | 20 | </a> |
21 | 21 | <?php elseif (Yii::$app->user->isGuest): ?> |
22 | 22 | <?= Html::a(Yii::t('CommentModule.widgets_views_link', "Comment") . $commentCountSpan, Yii::$app->user->loginUrl, ['data-target' => '#globalModal']) ?> |
23 | -<?php else : ?> |
|
24 | - <?= Html::a(Yii::t('CommentModule.widgets_views_link', "Comment") . $commentCountSpan, "#", ['onClick' => "$('#comment_" . $id . "').slideToggle('fast');$('#newCommentForm_" . $id . "').focus();return false;"]); ?> |
|
23 | +<?php else { |
|
24 | + : ?> |
|
25 | + <?= Html::a(Yii::t('CommentModule.widgets_views_link', "Comment") . $commentCountSpan, "#", ['onClick' => "$('#comment_" . $id . "').slideToggle('fast');$('#newCommentForm_" . $id . "').focus();return false;"]); |
|
26 | +} |
|
27 | +?> |
|
25 | 28 | <?php endif; ?> |
26 | 29 | \ No newline at end of file |
@@ -26,7 +26,8 @@ discard block |
||
26 | 26 | 'content' => $content |
27 | 27 | ]) ?> |
28 | 28 | </div> |
29 | - <?php else: ?> |
|
29 | + <?php else { |
|
30 | + : ?> |
|
30 | 31 | <div class="col-md-7 layout-content-container"> |
31 | 32 | <?= \humhub\modules\space\widgets\SpaceContent::widget([ |
32 | 33 | 'contentContainer' => $space, |
@@ -41,6 +42,7 @@ discard block |
||
41 | 42 | [\humhub\modules\space\widgets\Members::className(), ['space' => $space], ['sortOrder' => 30]] |
42 | 43 | ]]); |
43 | 44 | } |
45 | +} |
|
44 | 46 | ?> |
45 | 47 | </div> |
46 | 48 | <?php endif; ?> |
@@ -16,8 +16,11 @@ |
||
16 | 16 | <div class="panel-heading"> |
17 | 17 | <?php if ($group === null) : ?> |
18 | 18 | <?= Yii::t('DirectoryModule.base', '<strong>Member</strong> directory'); ?> |
19 | - <?php else: ?> |
|
20 | - - <?= Yii::t('DirectoryModule.base', '<strong>Group</strong> members - {group}', ['{group}' => Html::encode($group->name)]); ?> |
|
19 | + <?php else { |
|
20 | + : ?> |
|
21 | + - <?= Yii::t('DirectoryModule.base', '<strong>Group</strong> members - {group}', ['{group}' => Html::encode($group->name)]); |
|
22 | +} |
|
23 | +?> |
|
21 | 24 | <?php endif; ?> |
22 | 25 | </div> |
23 | 26 |
@@ -11,8 +11,11 @@ |
||
11 | 11 | |
12 | 12 | <?php if (!$field->isNewRecord) : ?> |
13 | 13 | <h4><?= Yii::t('AdminModule.views_userprofile_editField', 'Edit profile field'); ?></h4> |
14 | - <?php else: ?> |
|
15 | - - <h4><?= Yii::t('AdminModule.views_userprofile_editField', 'Create new profile field'); ?></h4> |
|
14 | + <?php else { |
|
15 | + : ?> |
|
16 | + - <h4><?= Yii::t('AdminModule.views_userprofile_editField', 'Create new profile field'); |
|
17 | +} |
|
18 | +?></h4> |
|
16 | 19 | <?php endif; ?> |
17 | 20 | |
18 | 21 | <br> |
@@ -3,6 +3,9 @@ |
||
3 | 3 | <?php foreach ($userMessages as $userMessage) : ?> |
4 | 4 | <?php echo $this->render('_messagePreview', array('userMessage' => $userMessage)); ?> |
5 | 5 | <?php endforeach; ?> |
6 | -<?php else: ?> |
|
7 | - - <li class="placeholder"> <?php echo Yii::t('MailModule.views_mail_list', 'There are no messages yet.'); ?></li> |
|
6 | +<?php else { |
|
7 | + : ?> |
|
8 | + - <li class="placeholder"> <?php echo Yii::t('MailModule.views_mail_list', 'There are no messages yet.'); |
|
9 | +} |
|
10 | +?></li> |
|
8 | 11 | <?php endif; ?> |