@@ -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; ?> |
| 9 | 12 | \ No newline at end of file |
@@ -18,8 +18,11 @@ |
||
| 18 | 18 | <?php foreach ($userMessages as $userMessage) : ?> |
| 19 | 19 | <?php echo $this->render('_messagePreview', array('userMessage' => $userMessage)); ?>
|
| 20 | 20 | <?php endforeach; ?> |
| 21 | - <?php else: ?> |
|
| 22 | - <li class="placeholder"><?php echo Yii::t('MailModule.views_mail_index', 'There are no messages yet.'); ?></li>
|
|
| 21 | + <?php else { |
|
| 22 | + : ?> |
|
| 23 | + <li class="placeholder"><?php echo Yii::t('MailModule.views_mail_index', 'There are no messages yet.'); |
|
| 24 | +} |
|
| 25 | +?></li> |
|
| 23 | 26 | <?php endif; ?> |
| 24 | 27 | </ul> |
| 25 | 28 | </div> |
@@ -102,8 +102,11 @@ |
||
| 102 | 102 | data-footer='<button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo Yii::t('SpaceModule.widgets_views_profileHeader', 'Close'); ?></button>'> |
| 103 | 103 | <?php echo \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 140]); ?> |
| 104 | 104 | </a> |
| 105 | - <?php else : ?> |
|
| 106 | - <?php echo \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 140]); ?> |
|
| 105 | + <?php else { |
|
| 106 | + : ?> |
|
| 107 | + <?php echo \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 140]); |
|
| 108 | +} |
|
| 109 | +?> |
|
| 107 | 110 | <?php endif; ?> |
| 108 | 111 | |
| 109 | 112 | <!-- check if the current user is the profile owner and can change the images --> |
@@ -22,8 +22,11 @@ |
||
| 22 | 22 | data-footer='<button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo Yii::t('SpaceModule.widgets_views_profileHeader', 'Close'); ?></button>'> |
| 23 | 23 | <?php echo \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 64]); ?> |
| 24 | 24 | </a> |
| 25 | - <?php else : ?> |
|
| 26 | - <?php echo \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 64]); ?> |
|
| 25 | + <?php else { |
|
| 26 | + : ?> |
|
| 27 | + <?php echo \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 64]); |
|
| 28 | +} |
|
| 29 | +?> |
|
| 27 | 30 | <?php endif; ?> |
| 28 | 31 | |
| 29 | 32 | <!-- check if the current user is the profile owner and can change the images --> |
@@ -7,12 +7,15 @@ |
||
| 7 | 7 | <div class="modal-header"> |
| 8 | 8 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
| 9 | 9 | <h4 class="modal-title" id="myModalLabel"><?php |
| 10 | - if ($status == Membership::STATUS_INVITED) |
|
| 11 | - echo Yii::t('SpaceModule.views_space_statusInvite', 'User has been invited.'); |
|
| 12 | - if ($status == Membership::STATUS_MEMBER) |
|
| 13 | - echo Yii::t('SpaceModule.views_space_statusInvite', 'User has become a member.'); |
|
| 14 | - if (!$status) |
|
| 15 | - echo Yii::t('SpaceModule.views_space_statusInvite', 'User has not been invited.'); |
|
| 10 | + if ($status == Membership::STATUS_INVITED) { |
|
| 11 | + echo Yii::t('SpaceModule.views_space_statusInvite', 'User has been invited.'); |
|
| 12 | + } |
|
| 13 | + if ($status == Membership::STATUS_MEMBER) { |
|
| 14 | + echo Yii::t('SpaceModule.views_space_statusInvite', 'User has become a member.'); |
|
| 15 | + } |
|
| 16 | + if (!$status) { |
|
| 17 | + echo Yii::t('SpaceModule.views_space_statusInvite', 'User has not been invited.'); |
|
| 18 | + } |
|
| 16 | 19 | ?></h4> |
| 17 | 20 | </div> |
| 18 | 21 | <div class="modal-body text-center"> |
@@ -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" |
@@ -109,16 +109,22 @@ |
||
| 109 | 109 | <?= humhub\modules\stream\actions\Stream::renderEntry($result) ?> |
| 110 | 110 | <?php elseif ($result instanceof ContentContainerActiveRecord) : ?> |
| 111 | 111 | <?= $result->getWallOut(); ?> |
| 112 | - <?php else: ?> |
|
| 113 | - No Output for Class <?= get_class($result); ?> |
|
| 112 | + <?php else { |
|
| 113 | + : ?> |
|
| 114 | + No Output for Class <?= get_class($result); |
|
| 115 | +} |
|
| 116 | +?> |
|
| 114 | 117 | <?php endif; ?> |
| 115 | 118 | <?php endforeach; ?> |
| 116 | - <?php else: ?> |
|
| 119 | + <?php else { |
|
| 120 | + : ?> |
|
| 117 | 121 | |
| 118 | 122 | |
| 119 | 123 | <div class="panel panel-default"> |
| 120 | 124 | <div class="panel-body"> |
| 121 | - <p><strong><?= Yii::t('SearchModule.views_search_index', 'Your search returned no matches.'); ?></strong></p> |
|
| 125 | + <p><strong><?= Yii::t('SearchModule.views_search_index', 'Your search returned no matches.'); |
|
| 126 | +} |
|
| 127 | +?></strong></p> |
|
| 122 | 128 | </div> |
| 123 | 129 | </div> |
| 124 | 130 | <?php endif; ?> |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | use yii\helpers\Url; |
| 4 | 4 | use yii\helpers\Html; |
| 5 | 5 | use yii\bootstrap\ActiveForm; |
| 6 | - |
|
| 7 | 6 | use humhub\modules\search\models\forms\SearchForm; |
| 8 | 7 | use humhub\modules\content\components\ContentActiveRecord; |
| 9 | 8 | use humhub\modules\content\components\ContentContainerActiveRecord; |
@@ -18,8 +18,11 @@ |
||
| 18 | 18 | <div class="panel-heading"> |
| 19 | 19 | <?php if ($group === null) : ?> |
| 20 | 20 | <?= Yii::t('DirectoryModule.base', '<strong>Member</strong> directory'); ?> |
| 21 | - <?php else: ?> |
|
| 22 | - <?= Yii::t('DirectoryModule.base', '<strong>Group</strong> members - {group}', ['{group}' => Html::encode($group->name)]); ?> |
|
| 21 | + <?php else { |
|
| 22 | + : ?> |
|
| 23 | + <?= Yii::t('DirectoryModule.base', '<strong>Group</strong> members - {group}', ['{group}' => Html::encode($group->name)]); |
|
| 24 | +} |
|
| 25 | +?> |
|
| 23 | 26 | <?php endif; ?> |
| 24 | 27 | </div> |
| 25 | 28 | |