@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | <div class="notifications pull-right"> |
| 69 | 69 | <?= |
| 70 | - \humhub\widgets\NotificationArea::widget(['widgets' => [ |
|
| 70 | + \humhub\widgets\NotificationArea::widget(['widgets' => [ |
|
| 71 | 71 | [\humhub\modules\notification\widgets\Overview::className(), [], ['sortOrder' => 10]], |
| 72 | 72 | ]]); |
| 73 | 73 | ?> |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | <body> |
| 43 | 43 | |
| 44 | - <script src="<?= $this->theme->getBaseUrl() . '/js/lightbox-plus-jquery.min.js'; ?>"></script> |
|
| 44 | + <script src="<?= $this->theme->getBaseUrl().'/js/lightbox-plus-jquery.min.js'; ?>"></script> |
|
| 45 | 45 | |
| 46 | 46 | <?php $this->beginBody() ?> |
| 47 | 47 | |
@@ -97,8 +97,11 @@ |
||
| 97 | 97 | <!-- start: show content (and check, if exists a sublayout --> |
| 98 | 98 | <?php if (isset($this->context->subLayout) && $this->context->subLayout != "") : ?> |
| 99 | 99 | <?= $this->render($this->context->subLayout, array('content' => $content)); ?> |
| 100 | - <?php else: ?> |
|
| 101 | - <?= $content; ?> |
|
| 100 | + <?php else { |
|
| 101 | + : ?> |
|
| 102 | + <?= $content; |
|
| 103 | +} |
|
| 104 | +?> |
|
| 102 | 105 | <?php endif; ?> |
| 103 | 106 | <!-- end: show content --> |
| 104 | 107 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | echo $item['id']; |
| 9 | 9 | } |
| 10 | 10 | ?>"> |
| 11 | - <?= Html::a($item['icon'] . "<br />" . $item['label'], $item['url'], $item['htmlOptions']); ?> |
|
| 11 | + <?= Html::a($item['icon']."<br />".$item['label'], $item['url'], $item['htmlOptions']); ?> |
|
| 12 | 12 | </li> |
| 13 | 13 | <?php endforeach; ?> |
| 14 | 14 | |
@@ -23,7 +23,10 @@ |
||
| 23 | 23 | id="img-logo"/> |
| 24 | 24 | </a> |
| 25 | 25 | <br> |
| 26 | - <?php else: ?> |
|
| 27 | - <h1 id="app-title" class="animated fadeIn"><?= Html::encode(Yii::$app->name); ?></h1> |
|
| 26 | + <?php else { |
|
| 27 | + : ?> |
|
| 28 | + <h1 id="app-title" class="animated fadeIn"><?= Html::encode(Yii::$app->name); |
|
| 29 | +} |
|
| 30 | +?></h1> |
|
| 28 | 31 | <?php endif; ?> |
| 29 | 32 | <?php endif; ?> |
@@ -10,14 +10,17 @@ |
||
| 10 | 10 | <?php if (Yii::$app->user->isGuest): ?> |
| 11 | 11 | |
| 12 | 12 | <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', 'Like'), Yii::$app->user->loginUrl, ['data-target' => '#globalModal']); ?> |
| 13 | - <?php else: ?> |
|
| 13 | + <?php else { |
|
| 14 | + : ?> |
|
| 14 | 15 | <a href="#" data-action-click="like.toggleLike" data-action-url="<?= $likeUrl ?>" class="like likeAnchor" style="<?= (!$currentUserLiked) ? '' : 'display:none'?>"> |
| 15 | 16 | <?= Yii::t('LikeModule.widgets_views_likeLink', 'Like') ?> |
| 16 | 17 | </a> |
| 17 | 18 | <a href="#" data-action-click="like.toggleLike" data-action-url="<?= $unlikeUrl ?>" class="unlike likeAnchor" style="<?= ($currentUserLiked) ? '' : 'display:none'?>"> |
| 18 | 19 | <?= Yii::t('LikeModule.widgets_views_likeLink', 'Unlike') ?> |
| 19 | 20 | </a> |
| 20 | - <?php endif; ?> |
|
| 21 | + <?php endif; |
|
| 22 | +} |
|
| 23 | +?> |
|
| 21 | 24 | |
| 22 | 25 | <?php if (count($likes) > 0) { ?> |
| 23 | 26 | <!-- Create link to show all users, who liked this --> |
@@ -18,8 +18,8 @@ |
||
| 18 | 18 | <a href="#" data-action-click="ui.modal.load" data-action-url="<?= $url ?>"> |
| 19 | 19 | <?= Yii::t('CommentModule.widgets_views_link', "Comment").'('.$this->context->getCommentsCount().')' ?> |
| 20 | 20 | </a> |
| 21 | -<?php elseif(Yii::$app->user->isGuest): ?> |
|
| 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 | 23 | <?php else : ?> |
| 24 | - <?= Html::a(Yii::t('CommentModule.widgets_views_link', "Comment").$commentCountSpan, "#",['onClick' => "$('#comment_" . $id . "').slideToggle('fast');$('#newCommentForm_" . $id . "').focus();return false;"]); ?> |
|
| 24 | + <?= Html::a(Yii::t('CommentModule.widgets_views_link', "Comment").$commentCountSpan, "#", ['onClick' => "$('#comment_".$id."').slideToggle('fast');$('#newCommentForm_".$id."').focus();return false;"]); ?> |
|
| 25 | 25 | <?php endif; ?> |
@@ -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; ?> |