@@ -99,8 +99,11 @@ |
||
| 99 | 99 | <a data-ui-gallery="spaceHeader" href="<?= $space->profileImage->getUrl('_org'); ?>"> |
| 100 | 100 | <?= \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 140]); ?> |
| 101 | 101 | </a> |
| 102 | - <?php else : ?> |
|
| 103 | - <?= \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 140]); ?> |
|
| 102 | + <?php else { |
|
| 103 | + : ?> |
|
| 104 | + <?= \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 140]); |
|
| 105 | +} |
|
| 106 | +?> |
|
| 104 | 107 | <?php endif; ?> |
| 105 | 108 | |
| 106 | 109 | <!-- check if the current user is the profile owner and can change the images --> |
@@ -66,15 +66,15 @@ discard block |
||
| 66 | 66 | class="fa fa-cloud-upload"></i></a> |
| 67 | 67 | <a id="banner-image-upload-edit-button" |
| 68 | 68 | style="<?php |
| 69 | - if (!$space->getProfileBannerImage()->hasImage()) { |
|
| 70 | - echo 'display: none;'; |
|
| 71 | - } |
|
| 72 | - ?>" |
|
| 69 | + if (!$space->getProfileBannerImage()->hasImage()) { |
|
| 70 | + echo 'display: none;'; |
|
| 71 | + } |
|
| 72 | + ?>" |
|
| 73 | 73 | href="<?= $space->createUrl('/space/manage/image/crop-banner'); ?>" |
| 74 | 74 | class="btn btn-info btn-sm" data-target="#globalModal" data-backdrop="static"><i |
| 75 | 75 | class="fa fa-edit"></i></a> |
| 76 | 76 | <?= |
| 77 | - humhub\widgets\ModalConfirm::widget(array( |
|
| 77 | + humhub\widgets\ModalConfirm::widget(array( |
|
| 78 | 78 | 'uniqueID' => 'modal_bannerimagedelete', |
| 79 | 79 | 'linkOutput' => 'a', |
| 80 | 80 | 'title' => Yii::t('SpaceModule.widgets_views_deleteBanner', '<strong>Confirm</strong> image deleting'), |
@@ -125,15 +125,15 @@ discard block |
||
| 125 | 125 | class="fa fa-cloud-upload"></i></a> |
| 126 | 126 | <a id="profile-image-upload-edit-button" |
| 127 | 127 | style="<?php |
| 128 | - if (!$space->getProfileImage()->hasImage()) { |
|
| 129 | - echo 'display: none;'; |
|
| 130 | - } |
|
| 131 | - ?>" |
|
| 128 | + if (!$space->getProfileImage()->hasImage()) { |
|
| 129 | + echo 'display: none;'; |
|
| 130 | + } |
|
| 131 | + ?>" |
|
| 132 | 132 | href="<?= $space->createUrl('/space/manage/image/crop'); ?>" |
| 133 | 133 | class="btn btn-info btn-sm" data-target="#globalModal" data-backdrop="static"><i |
| 134 | 134 | class="fa fa-edit"></i></a> |
| 135 | 135 | <?= |
| 136 | - humhub\widgets\ModalConfirm::widget(array( |
|
| 136 | + humhub\widgets\ModalConfirm::widget(array( |
|
| 137 | 137 | 'uniqueID' => 'modal_profileimagedelete', |
| 138 | 138 | 'linkOutput' => 'a', |
| 139 | 139 | 'title' => Yii::t('SpaceModule.widgets_views_deleteImage', '<strong>Confirm</strong> image deleting'), |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | |
| 193 | 193 | <div class="controls controls-header pull-right"> |
| 194 | 194 | <?= |
| 195 | - humhub\modules\space\widgets\HeaderControls::widget(['widgets' => [ |
|
| 195 | + humhub\modules\space\widgets\HeaderControls::widget(['widgets' => [ |
|
| 196 | 196 | [\humhub\modules\space\widgets\InviteButton::className(), ['space' => $space], ['sortOrder' => 10]], |
| 197 | 197 | [\humhub\modules\space\widgets\MembershipButton::className(), ['space' => $space], ['sortOrder' => 20]], |
| 198 | 198 | [\humhub\modules\space\widgets\FollowButton::className(), [ |
@@ -54,11 +54,11 @@ discard block |
||
| 54 | 54 | 'visible' => $isManagerApprovalSetting, |
| 55 | 55 | 'label' => Yii::t('AdminModule.views_user_index', 'Group Manager'), |
| 56 | 56 | 'format' => 'raw', |
| 57 | - 'value' => function ($data) use ($group, $actionUrl) { |
|
| 57 | + 'value' => function($data) use ($group, $actionUrl) { |
|
| 58 | 58 | $isManager = $group->isManager($data); |
| 59 | 59 | $yesSelected = ($isManager) ? 'selected' : ''; |
| 60 | 60 | $noSelected = ($isManager) ? '' : 'selected'; |
| 61 | - $result = '<select class="editableCell form-control" data-action-change="admin.group.setManagerRole" data-action-url="'.$actionUrl.'" data-userid="' . $data->id . '" data-groupid="' . $group->id . '">'; |
|
| 61 | + $result = '<select class="editableCell form-control" data-action-change="admin.group.setManagerRole" data-action-url="' . $actionUrl . '" data-userid="' . $data->id . '" data-groupid="' . $group->id . '">'; |
|
| 62 | 62 | $result .= '<option value="0" ' . $noSelected . '>' . Yii::t('AdminModule.views_group_manageGroupUser', 'No') . '</option>'; |
| 63 | 63 | $result .= '<option value="1" ' . $yesSelected . '>' . Yii::t('AdminModule.views_group_manageGroupUser', 'Yes') . '</option>'; |
| 64 | 64 | return $result; |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | ], |
| 87 | 87 | ], |
| 88 | 88 | ] |
| 89 | - );?> |
|
| 89 | + ); ?> |
|
| 90 | 90 | </div> |
| 91 | 91 | </div> |
| 92 | 92 | <?php $this->endContent(); ?> |
@@ -4,4 +4,4 @@ |
||
| 4 | 4 | 'name' => 'message', |
| 5 | 5 | 'disabled' => (property_exists(Yii::$app->controller, 'contentContainer') && Yii::$app->controller->contentContainer->isArchived()), |
| 6 | 6 | 'disabledText' => Yii::t("PostModule.widgets_views_postForm", "This space is archived."), |
| 7 | -]);?> |
|
| 7 | +]); ?> |
|
@@ -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="<?php echo $likeUrl ?>" class="like likeAnchor" style="<?php echo (!$currentUserLiked) ? '' : 'display:none'?>"> |
| 15 | 16 | <?php echo Yii::t('LikeModule.widgets_views_likeLink', 'Like') ?> |
| 16 | 17 | </a> |
| 17 | 18 | <a href="#" data-action-click="like.toggleLike" data-action-url="<?php echo $unlikeUrl ?>" class="unlike likeAnchor" style="<?php echo ($currentUserLiked) ? '' : 'display:none'?>"> |
| 18 | 19 | <?php echo 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 --> |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | class="btn btn-info btn-sm" data-target="#globalModal" data-backdrop="static"><i |
| 137 | 137 | class="fa fa-edit"></i></a> |
| 138 | 138 | <?= |
| 139 | - \humhub\widgets\ModalConfirm::widget(array( |
|
| 139 | + \humhub\widgets\ModalConfirm::widget(array( |
|
| 140 | 140 | 'uniqueID' => 'modal_profileimagedelete', |
| 141 | 141 | 'linkOutput' => 'a', |
| 142 | 142 | 'title' => Yii::t('UserModule.widgets_views_deleteImage', '<strong>Confirm</strong> image deleting'), |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | <div class="controls controls-header pull-right"> |
| 203 | 203 | <?= |
| 204 | - \humhub\modules\user\widgets\ProfileHeaderControls::widget( |
|
| 204 | + \humhub\modules\user\widgets\ProfileHeaderControls::widget( |
|
| 205 | 205 | array( |
| 206 | 206 | 'user' => $user, |
| 207 | 207 | 'widgets' => array( |
@@ -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; ?> |