@@ -21,12 +21,12 @@ |
||
21 | 21 | </nav> |
22 | 22 | </div> |
23 | 23 | <?php |
24 | - echo \humhub\modules\space\widgets\Sidebar::widget(['space' => $space, 'widgets' => [ |
|
25 | - [\humhub\modules\activity\widgets\Stream::className(), ['streamAction' => '/space/space/stream', 'contentContainer' => $space], ['sortOrder' => 10]], |
|
26 | - [\humhub\modules\space\modules\manage\widgets\PendingApprovals::className(), ['space' => $space], ['sortOrder' => 20]], |
|
27 | - [\humhub\modules\space\widgets\Members::className(), ['space' => $space], ['sortOrder' => 30]] |
|
28 | - ]]); |
|
29 | - ?> |
|
24 | + echo \humhub\modules\space\widgets\Sidebar::widget(['space' => $space, 'widgets' => [ |
|
25 | + [\humhub\modules\activity\widgets\Stream::className(), ['streamAction' => '/space/space/stream', 'contentContainer' => $space], ['sortOrder' => 10]], |
|
26 | + [\humhub\modules\space\modules\manage\widgets\PendingApprovals::className(), ['space' => $space], ['sortOrder' => 20]], |
|
27 | + [\humhub\modules\space\widgets\Members::className(), ['space' => $space], ['sortOrder' => 30]] |
|
28 | + ]]); |
|
29 | + ?> |
|
30 | 30 | </div> |
31 | 31 | </div> |
32 | 32 | <div class="col-sm-8"> |
@@ -23,12 +23,12 @@ |
||
23 | 23 | </div> |
24 | 24 | <div class="col-md-3 layout-sidebar-container"> |
25 | 25 | <?php |
26 | - echo \humhub\modules\space\widgets\Sidebar::widget(['space' => $space, 'widgets' => [ |
|
27 | - [\humhub\modules\activity\widgets\Stream::className(), ['streamAction' => '/space/space/stream', 'contentContainer' => $space], ['sortOrder' => 10]], |
|
28 | - [\humhub\modules\space\modules\manage\widgets\PendingApprovals::className(), ['space' => $space], ['sortOrder' => 20]], |
|
29 | - [\humhub\modules\space\widgets\Members::className(), ['space' => $space], ['sortOrder' => 30]] |
|
30 | - ]]); |
|
31 | - ?> |
|
26 | + echo \humhub\modules\space\widgets\Sidebar::widget(['space' => $space, 'widgets' => [ |
|
27 | + [\humhub\modules\activity\widgets\Stream::className(), ['streamAction' => '/space/space/stream', 'contentContainer' => $space], ['sortOrder' => 10]], |
|
28 | + [\humhub\modules\space\modules\manage\widgets\PendingApprovals::className(), ['space' => $space], ['sortOrder' => 20]], |
|
29 | + [\humhub\modules\space\widgets\Members::className(), ['space' => $space], ['sortOrder' => 30]] |
|
30 | + ]]); |
|
31 | + ?> |
|
32 | 32 | </div> |
33 | 33 | <?php endif; ?> |
34 | 34 | </div> |
@@ -17,9 +17,12 @@ |
||
17 | 17 | <div class="col-md-10 layout-content-container"> |
18 | 18 | <?php echo $content; ?> |
19 | 19 | </div> |
20 | - <?php else: ?> |
|
20 | + <?php else { |
|
21 | + : ?> |
|
21 | 22 | <div class="col-md-7 layout-content-container"> |
22 | - <?php echo $content; ?> |
|
23 | + <?php echo $content; |
|
24 | +} |
|
25 | +?> |
|
23 | 26 | </div> |
24 | 27 | <div class="col-md-3 layout-sidebar-container"> |
25 | 28 | <?php |
@@ -12,19 +12,19 @@ discard block |
||
12 | 12 | <!-- start: Show space image and name if chosen --> |
13 | 13 | <?php if ($currentSpace) { ?> |
14 | 14 | <?php echo \humhub\modules\space\widgets\Image::widget([ |
15 | - 'space' => $currentSpace, |
|
16 | - 'width' => 24, |
|
17 | - 'htmlOptions' => [ |
|
18 | - 'class' => 'current-space-image', |
|
19 | - ] |
|
20 | - ]); ?> |
|
15 | + 'space' => $currentSpace, |
|
16 | + 'width' => 24, |
|
17 | + 'htmlOptions' => [ |
|
18 | + 'class' => 'current-space-image', |
|
19 | + ] |
|
20 | + ]); ?> |
|
21 | 21 | <?php } ?> |
22 | 22 | |
23 | 23 | <?php |
24 | - if (!$currentSpace) { |
|
25 | - echo '<i class="material-icons">assignment_turned_in</i>'; |
|
26 | - } |
|
27 | - ?> |
|
24 | + if (!$currentSpace) { |
|
25 | + echo '<i class="material-icons">assignment_turned_in</i>'; |
|
26 | + } |
|
27 | + ?> |
|
28 | 28 | <!-- end: Show space image and name if chosen --> |
29 | 29 | </a> |
30 | 30 | <ul class="dropdown-menu" id="space-menu-dropdownXXX"> |
@@ -52,12 +52,12 @@ discard block |
||
52 | 52 | <div class="media"> |
53 | 53 | <!-- Show space image --> |
54 | 54 | <?php echo \humhub\modules\space\widgets\Image::widget([ |
55 | - 'space' => $membership->space, |
|
56 | - 'width' => 24, |
|
57 | - 'htmlOptions' => [ |
|
58 | - 'class' => 'pull-left', |
|
59 | - ] |
|
60 | - ]); ?> |
|
55 | + 'space' => $membership->space, |
|
56 | + 'width' => 24, |
|
57 | + 'htmlOptions' => [ |
|
58 | + 'class' => 'pull-left', |
|
59 | + ] |
|
60 | + ]); ?> |
|
61 | 61 | <div class="media-body"> |
62 | 62 | <strong><?php echo Html::encode($membership->space->name); ?></strong> |
63 | 63 | <?php if ($newItems != 0): ?> |
@@ -67,10 +67,10 @@ discard block |
||
67 | 67 | class="fa fa-cloud-upload"></i></a> |
68 | 68 | <a id="banner-image-upload-edit-button" |
69 | 69 | style="<?php |
70 | - if (!$space->getProfileBannerImage()->hasImage()) { |
|
71 | - echo 'display: none;'; |
|
72 | - } |
|
73 | - ?>" |
|
70 | + if (!$space->getProfileBannerImage()->hasImage()) { |
|
71 | + echo 'display: none;'; |
|
72 | + } |
|
73 | + ?>" |
|
74 | 74 | href="<?php echo $space->createUrl('/space/manage/image/crop-banner'); ?>" |
75 | 75 | class="btn btn-info btn-sm" data-target="#globalModal" data-backdrop="static"><i |
76 | 76 | class="fa fa-edit"></i></a> |
@@ -127,10 +127,10 @@ discard block |
||
127 | 127 | class="fa fa-cloud-upload"></i></a> |
128 | 128 | <a id="profile-image-upload-edit-button" |
129 | 129 | style="<?php |
130 | - if (!$space->getProfileImage()->hasImage()) { |
|
131 | - echo 'display: none;'; |
|
132 | - } |
|
133 | - ?>" |
|
130 | + if (!$space->getProfileImage()->hasImage()) { |
|
131 | + echo 'display: none;'; |
|
132 | + } |
|
133 | + ?>" |
|
134 | 134 | href="<?php echo $space->createUrl('/space/manage/image/crop'); ?>" |
135 | 135 | class="btn btn-info btn-sm" data-target="#globalModal" data-backdrop="static"><i |
136 | 136 | class="fa fa-edit"></i></a> |
@@ -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 --> |
@@ -38,7 +38,7 @@ |
||
38 | 38 | 'success' => 'function(html){ |
39 | 39 | jQuery("#lightbox_requestWorkspace").replaceWith(html); |
40 | 40 | }', |
41 | - ), array('class' => 'input_button', 'id' => 'requestSubmit'.uniqid())); |
|
41 | + ), array('class' => 'input_button', 'id' => 'requestSubmit' . uniqid())); |
|
42 | 42 | ?> |
43 | 43 | |
44 | 44 | <?php echo CHtml::link(Yii::t('SpaceModule.widgets_views_requestMembership', 'Cancel'), '#', array('onclick'=>'RequestWorkspacebox.close()', 'class' => 'button', 'style' => 'color: #fff;')); ?> |
@@ -5,11 +5,11 @@ discard block |
||
5 | 5 | $this->registerCssFile('@web/resources/space/colorpicker/css/bootstrap-colorpicker.min.css', ['position'=> yii\web\View::POS_BEGIN, 'depends' => [\yii\bootstrap\BootstrapPluginAsset::className()]]); |
6 | 6 | |
7 | 7 | $ts = time(); |
8 | - $inputId = $ts.'space-color-picker-edit'; |
|
9 | - $containerId = $ts.'space-color-chooser-edit'; |
|
10 | - $addonClass = $ts.'input-group-addon'; |
|
8 | + $inputId = $ts . 'space-color-picker-edit'; |
|
9 | + $containerId = $ts . 'space-color-chooser-edit'; |
|
10 | + $addonClass = $ts . 'input-group-addon'; |
|
11 | 11 | |
12 | - if($model->color == null) { |
|
12 | + if ($model->color == null) { |
|
13 | 13 | $model->color = '#d1d1d1'; |
14 | 14 | } |
15 | 15 | ?> |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | {input} |
26 | 26 | </div> |
27 | 27 | {error}{hint}' |
28 | - ])->textInput(['placeholder' => Yii::t('SpaceModule.views_create_create', 'Space name'), 'maxlength' => 45 ]) ?> |
|
28 | + ])->textInput(['placeholder' => Yii::t('SpaceModule.views_create_create', 'Space name'), 'maxlength' => 45]) ?> |
|
29 | 29 | </div> |
30 | 30 | <script type="text/javascript"> |
31 | 31 | // prevent enter key and simulate ajax button submit click |
@@ -4,9 +4,9 @@ discard block |
||
4 | 4 | use yii\helpers\Url; |
5 | 5 | use yii\helpers\Html; |
6 | 6 | if ($space->isAdmin()) { |
7 | - $this->registerJsFile('@web/resources/space/spaceHeaderImageUpload.js'); |
|
8 | - $this->registerJsVar('profileImageUploaderUrl', $space->createUrl('/space/manage/image/upload')); |
|
9 | - $this->registerJsVar('profileHeaderUploaderUrl', $space->createUrl('/space/manage/image/banner-upload')); |
|
7 | + $this->registerJsFile('@web/resources/space/spaceHeaderImageUpload.js'); |
|
8 | + $this->registerJsVar('profileImageUploaderUrl', $space->createUrl('/space/manage/image/upload')); |
|
9 | + $this->registerJsVar('profileHeaderUploaderUrl', $space->createUrl('/space/manage/image/banner-upload')); |
|
10 | 10 | } |
11 | 11 | ?> |
12 | 12 | |
@@ -47,28 +47,28 @@ discard block |
||
47 | 47 | class="fa fa-cloud-upload"></i></a> |
48 | 48 | <a id="profile-image-upload-edit-button" |
49 | 49 | style="<?php |
50 | - if (!$space->getProfileImage()->hasImage()) { |
|
51 | - echo 'display: none;'; |
|
52 | - } |
|
53 | - ?>" |
|
50 | + if (!$space->getProfileImage()->hasImage()) { |
|
51 | + echo 'display: none;'; |
|
52 | + } |
|
53 | + ?>" |
|
54 | 54 | href="<?php echo $space->createUrl('/space/manage/image/crop'); ?>" |
55 | 55 | class="btn btn-info btn-sm" data-target="#globalModal" data-backdrop="static"><i |
56 | 56 | class="fa fa-edit"></i></a> |
57 | 57 | <?php |
58 | - echo humhub\widgets\ModalConfirm::widget(array( |
|
59 | - 'uniqueID' => 'modal_profileimagedelete', |
|
60 | - 'linkOutput' => 'a', |
|
61 | - 'title' => Yii::t('SpaceModule.widgets_views_deleteImage', '<strong>Confirm</strong> image deleting'), |
|
62 | - 'message' => Yii::t('SpaceModule.widgets_views_deleteImage', 'Do you really want to delete your profile image?'), |
|
63 | - 'buttonTrue' => Yii::t('SpaceModule.widgets_views_deleteImage', 'Delete'), |
|
64 | - 'buttonFalse' => Yii::t('SpaceModule.widgets_views_deleteImage', 'Cancel'), |
|
65 | - 'linkContent' => '<i class="fa fa-times"></i>', |
|
66 | - 'cssClass' => 'btn btn-danger btn-sm', |
|
67 | - 'style' => $space->getProfileImage()->hasImage() ? '' : 'display: none;', |
|
68 | - 'linkHref' => $space->createUrl("/space/manage/image/delete", array('type' => 'profile')), |
|
69 | - 'confirmJS' => 'function(jsonResp) { resetProfileImage(jsonResp); }' |
|
70 | - )); |
|
71 | - ?> |
|
58 | + echo humhub\widgets\ModalConfirm::widget(array( |
|
59 | + 'uniqueID' => 'modal_profileimagedelete', |
|
60 | + 'linkOutput' => 'a', |
|
61 | + 'title' => Yii::t('SpaceModule.widgets_views_deleteImage', '<strong>Confirm</strong> image deleting'), |
|
62 | + 'message' => Yii::t('SpaceModule.widgets_views_deleteImage', 'Do you really want to delete your profile image?'), |
|
63 | + 'buttonTrue' => Yii::t('SpaceModule.widgets_views_deleteImage', 'Delete'), |
|
64 | + 'buttonFalse' => Yii::t('SpaceModule.widgets_views_deleteImage', 'Cancel'), |
|
65 | + 'linkContent' => '<i class="fa fa-times"></i>', |
|
66 | + 'cssClass' => 'btn btn-danger btn-sm', |
|
67 | + 'style' => $space->getProfileImage()->hasImage() ? '' : 'display: none;', |
|
68 | + 'linkHref' => $space->createUrl("/space/manage/image/delete", array('type' => 'profile')), |
|
69 | + 'confirmJS' => 'function(jsonResp) { resetProfileImage(jsonResp); }' |
|
70 | + )); |
|
71 | + ?> |
|
72 | 72 | </div> |
73 | 73 | <?php endif; ?> |
74 | 74 | |
@@ -97,22 +97,22 @@ discard block |
||
97 | 97 | </div> |
98 | 98 | <div class="row no-margin p-v-sm b-b"> |
99 | 99 | <?php |
100 | - echo humhub\modules\space\widgets\HeaderControls::widget(['widgets' => [ |
|
101 | - [\humhub\modules\space\widgets\InviteButton::className(), ['space' => $space], ['sortOrder' => 10]], |
|
102 | - [\humhub\modules\space\widgets\MembershipButton::className(), ['space' => $space], ['sortOrder' => 20]], |
|
103 | - [\humhub\modules\space\widgets\FollowButton::className(), [ |
|
104 | - 'space' => $space, |
|
105 | - 'followOptions' => ['class' => 'btn btn-primary'], |
|
106 | - 'unfollowOptions' => ['class' => 'btn btn-info']], |
|
107 | - ['sortOrder' => 30]] |
|
108 | - ]]); |
|
109 | - ?> |
|
100 | + echo humhub\modules\space\widgets\HeaderControls::widget(['widgets' => [ |
|
101 | + [\humhub\modules\space\widgets\InviteButton::className(), ['space' => $space], ['sortOrder' => 10]], |
|
102 | + [\humhub\modules\space\widgets\MembershipButton::className(), ['space' => $space], ['sortOrder' => 20]], |
|
103 | + [\humhub\modules\space\widgets\FollowButton::className(), [ |
|
104 | + 'space' => $space, |
|
105 | + 'followOptions' => ['class' => 'btn btn-primary'], |
|
106 | + 'unfollowOptions' => ['class' => 'btn btn-info']], |
|
107 | + ['sortOrder' => 30]] |
|
108 | + ]]); |
|
109 | + ?> |
|
110 | 110 | <?= |
111 | - humhub\modules\space\widgets\HeaderControlsMenu::widget([ |
|
112 | - 'space' => $space, |
|
113 | - 'template' => '@humhub/widgets/views/dropdownNavigation' |
|
114 | - ]); |
|
115 | - ?> |
|
111 | + humhub\modules\space\widgets\HeaderControlsMenu::widget([ |
|
112 | + 'space' => $space, |
|
113 | + 'template' => '@humhub/widgets/views/dropdownNavigation' |
|
114 | + ]); |
|
115 | + ?> |
|
116 | 116 | </div> |
117 | 117 | |
118 | 118 | |
@@ -129,15 +129,15 @@ discard block |
||
129 | 129 | </form> |
130 | 130 | |
131 | 131 | <?php |
132 | - // set standard padding for banner progressbar |
|
133 | - $padding = '90px 350px'; |
|
132 | + // set standard padding for banner progressbar |
|
133 | + $padding = '90px 350px'; |
|
134 | 134 | |
135 | - // if the default banner image is displaying |
|
136 | - if (!$space->getProfileBannerImage()->hasImage()) { |
|
137 | - // change padding to the lower image height |
|
138 | - $padding = '50px 350px'; |
|
139 | - } |
|
140 | - ?> |
|
135 | + // if the default banner image is displaying |
|
136 | + if (!$space->getProfileBannerImage()->hasImage()) { |
|
137 | + // change padding to the lower image height |
|
138 | + $padding = '50px 350px'; |
|
139 | + } |
|
140 | + ?> |
|
141 | 141 | |
142 | 142 | <div class="image-upload-loader" id="banner-image-upload-loader" style="padding: <?php echo $padding ?>;"> |
143 | 143 | <div class="progress image-upload-progess-bar" id="banner-image-upload-bar"> |
@@ -155,29 +155,29 @@ discard block |
||
155 | 155 | <i class="fa fa-cloud-upload"></i> |
156 | 156 | </a> |
157 | 157 | <a id="banner-image-upload-edit-button" style="<?php |
158 | - if (!$space->getProfileBannerImage()->hasImage()) { |
|
159 | - echo 'display: none;'; |
|
160 | - } |
|
161 | - ?>" |
|
158 | + if (!$space->getProfileBannerImage()->hasImage()) { |
|
159 | + echo 'display: none;'; |
|
160 | + } |
|
161 | + ?>" |
|
162 | 162 | href="<?php echo $space->createUrl('/space/manage/image/crop-banner'); ?>" |
163 | 163 | class="btn btn-info btn-sm" data-target="#globalModal" data-backdrop="static"> |
164 | 164 | <i class="fa fa-edit"></i> |
165 | 165 | </a> |
166 | 166 | <?php |
167 | - echo humhub\widgets\ModalConfirm::widget(array( |
|
168 | - 'uniqueID' => 'modal_bannerimagedelete', |
|
169 | - 'linkOutput' => 'a', |
|
170 | - 'title' => Yii::t('SpaceModule.widgets_views_deleteBanner', '<strong>Confirm</strong> image deleting'), |
|
171 | - 'message' => Yii::t('SpaceModule.widgets_views_deleteBanner', 'Do you really want to delete your title image?'), |
|
172 | - 'buttonTrue' => Yii::t('SpaceModule.widgets_views_deleteBanner', 'Delete'), |
|
173 | - 'buttonFalse' => Yii::t('SpaceModule.widgets_views_deleteBanner', 'Cancel'), |
|
174 | - 'linkContent' => '<i class="fa fa-times"></i>', |
|
175 | - 'cssClass' => 'btn btn-danger btn-sm', |
|
176 | - 'style' => $space->getProfileBannerImage()->hasImage() ? '' : 'display: none;', |
|
177 | - 'linkHref' => $space->createUrl("/space/manage/image/delete", ['type' => 'banner']), |
|
178 | - 'confirmJS' => 'function(jsonResp) { resetProfileImage(jsonResp); }' |
|
179 | - )); |
|
180 | - ?> |
|
167 | + echo humhub\widgets\ModalConfirm::widget(array( |
|
168 | + 'uniqueID' => 'modal_bannerimagedelete', |
|
169 | + 'linkOutput' => 'a', |
|
170 | + 'title' => Yii::t('SpaceModule.widgets_views_deleteBanner', '<strong>Confirm</strong> image deleting'), |
|
171 | + 'message' => Yii::t('SpaceModule.widgets_views_deleteBanner', 'Do you really want to delete your title image?'), |
|
172 | + 'buttonTrue' => Yii::t('SpaceModule.widgets_views_deleteBanner', 'Delete'), |
|
173 | + 'buttonFalse' => Yii::t('SpaceModule.widgets_views_deleteBanner', 'Cancel'), |
|
174 | + 'linkContent' => '<i class="fa fa-times"></i>', |
|
175 | + 'cssClass' => 'btn btn-danger btn-sm', |
|
176 | + 'style' => $space->getProfileBannerImage()->hasImage() ? '' : 'display: none;', |
|
177 | + 'linkHref' => $space->createUrl("/space/manage/image/delete", ['type' => 'banner']), |
|
178 | + 'confirmJS' => 'function(jsonResp) { resetProfileImage(jsonResp); }' |
|
179 | + )); |
|
180 | + ?> |
|
181 | 181 | </div> |
182 | 182 | |
183 | 183 | <?php } ?> |
@@ -201,22 +201,22 @@ discard block |
||
201 | 201 | |
202 | 202 | <div class="controls controls-header pull-right"> |
203 | 203 | <?php |
204 | - echo humhub\modules\space\widgets\HeaderControls::widget(['widgets' => [ |
|
205 | - [\humhub\modules\space\widgets\InviteButton::className(), ['space' => $space], ['sortOrder' => 10]], |
|
206 | - [\humhub\modules\space\widgets\MembershipButton::className(), ['space' => $space], ['sortOrder' => 20]], |
|
207 | - [\humhub\modules\space\widgets\FollowButton::className(), [ |
|
208 | - 'space' => $space, |
|
209 | - 'followOptions' => ['class' => 'btn btn-primary'], |
|
210 | - 'unfollowOptions' => ['class' => 'btn btn-info']], |
|
211 | - ['sortOrder' => 30]] |
|
212 | - ]]); |
|
213 | - ?> |
|
204 | + echo humhub\modules\space\widgets\HeaderControls::widget(['widgets' => [ |
|
205 | + [\humhub\modules\space\widgets\InviteButton::className(), ['space' => $space], ['sortOrder' => 10]], |
|
206 | + [\humhub\modules\space\widgets\MembershipButton::className(), ['space' => $space], ['sortOrder' => 20]], |
|
207 | + [\humhub\modules\space\widgets\FollowButton::className(), [ |
|
208 | + 'space' => $space, |
|
209 | + 'followOptions' => ['class' => 'btn btn-primary'], |
|
210 | + 'unfollowOptions' => ['class' => 'btn btn-info']], |
|
211 | + ['sortOrder' => 30]] |
|
212 | + ]]); |
|
213 | + ?> |
|
214 | 214 | <?= |
215 | - humhub\modules\space\widgets\HeaderControlsMenu::widget([ |
|
216 | - 'space' => $space, |
|
217 | - 'template' => '@humhub/widgets/views/dropdownNavigation' |
|
218 | - ]); |
|
219 | - ?> |
|
215 | + humhub\modules\space\widgets\HeaderControlsMenu::widget([ |
|
216 | + 'space' => $space, |
|
217 | + 'template' => '@humhub/widgets/views/dropdownNavigation' |
|
218 | + ]); |
|
219 | + ?> |
|
220 | 220 | </div> |
221 | 221 | </div> |
222 | 222 | </div> |
@@ -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 --> |
@@ -2,4 +2,4 @@ |
||
2 | 2 | |
3 | 3 | use yii\helpers\Html; |
4 | 4 | |
5 | -echo Html::a('<i class="fa fa-plus"></i> '. Yii::t('SpaceModule.widgets_views_inviteButton', 'Invite'), $space->createUrl('/space/membership/invite'), array('class' => 'btn btn-primary', 'data-target' => '#globalModal')); |
|
5 | +echo Html::a('<i class="fa fa-plus"></i> ' . Yii::t('SpaceModule.widgets_views_inviteButton', 'Invite'), $space->createUrl('/space/membership/invite'), array('class' => 'btn btn-primary', 'data-target' => '#globalModal')); |
@@ -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"> |