@@ -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; ?> |