@@ -19,7 +19,7 @@ |
||
| 19 | 19 | </div> |
| 20 | 20 | |
| 21 | 21 | <?php |
| 22 | - if(version_compare(Yii::$app->version, '1.0.0-beta.5', 'lt')) {
|
|
| 22 | + if (version_compare(Yii::$app->version, '1.0.0-beta.5', 'lt')) {
|
|
| 23 | 23 | echo humhub\modules\user\widgets\UserPicker::widget(array( |
| 24 | 24 | 'inputId' => 'addUserFrom_mail', |
| 25 | 25 | 'model' => $inviteForm, // CForm Instanz |
@@ -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> |
@@ -27,8 +27,11 @@ |
||
| 27 | 27 | <?php echo Html::a(Yii::t('UserModule.base', 'Currently in use'), '#', ['class' => 'btn btn-default btn-sm', 'data-method' => 'POST', 'disabled' => 'disabled']); ?> |
| 28 | 28 | <?php elseif (in_array($client->getId(), $activeAuthClientIds)) : ?> |
| 29 | 29 | <?php echo Html::a(Yii::t('UserModule.base', 'Disconnect account'), ['connected-accounts', 'disconnect' => $client->getId()], ['class' => 'btn btn-danger btn-sm', 'data-method' => 'POST']); ?> |
| 30 | - <?php else: ?> |
|
| 31 | - <?php echo Html::a(Yii::t('UserModule.base', 'Connect account'), Url::to(['/user/auth/external', 'authclient' => $client->getId()]), ['class' => 'btn btn-success btn-sm']); ?> |
|
| 30 | + <?php else { |
|
| 31 | + : ?> |
|
| 32 | + <?php echo Html::a(Yii::t('UserModule.base', 'Connect account'), Url::to(['/user/auth/external', 'authclient' => $client->getId()]), ['class' => 'btn btn-success btn-sm']); |
|
| 33 | +} |
|
| 34 | +?> |
|
| 32 | 35 | <?php endif; ?> |
| 33 | 36 | </td> |
| 34 | 37 | </tr> |
@@ -7,8 +7,11 @@ discard block |
||
| 7 | 7 | <?php $this->beginContent('@user/views/account/_userProfileLayout.php') ?> |
| 8 | 8 | <?php if ($isSpaceOwner) : ?> |
| 9 | 9 | <?php echo Yii::t('UserModule.views_account_delete', 'Sorry, as an owner of a workspace you are not able to delete your account!<br />Please assign another owner or delete them.'); ?> |
| 10 | -<?php else: ?> |
|
| 11 | - <?php echo Yii::t('UserModule.views_account_delete', 'Are you sure, that you want to delete your account?<br />All your published content will be removed! '); ?> |
|
| 10 | +<?php else { |
|
| 11 | + : ?> |
|
| 12 | + <?php echo Yii::t('UserModule.views_account_delete', 'Are you sure, that you want to delete your account?<br />All your published content will be removed! '); |
|
| 13 | +} |
|
| 14 | +?> |
|
| 12 | 15 | <br /> |
| 13 | 16 | <br /> |
| 14 | 17 | |
@@ -16,8 +19,11 @@ discard block |
||
| 16 | 19 | |
| 17 | 20 | <?php if ($model->isAttributeRequired('currentPassword')): ?> |
| 18 | 21 | <?php echo $form->field($model, 'currentPassword')->passwordInput(['maxlength' => 45, 'placeholder' => Yii::t('UserModule.views_account_delete', 'Enter your password to continue')])->label(false); ?> |
| 19 | - <?php else: ?> |
|
| 20 | - <?php echo $form->field($model, 'currentPassword')->hiddenInput()->label(false); ?> |
|
| 22 | + <?php else { |
|
| 23 | + : ?> |
|
| 24 | + <?php echo $form->field($model, 'currentPassword')->hiddenInput()->label(false); |
|
| 25 | +} |
|
| 26 | +?> |
|
| 21 | 27 | <?php endif; ?> |
| 22 | 28 | |
| 23 | 29 | <?php echo Html::submitButton(Yii::t('UserModule.views_account_delete', 'Delete account'), array('class' => 'btn btn-danger', 'data-ui-loader' => '')); ?> |
@@ -5,10 +5,8 @@ |
||
| 5 | 5 | 'contentContainer' => $user, |
| 6 | 6 | 'streamAction' => '//user/profile/stream', |
| 7 | 7 | 'messageStreamEmpty' => ($user->permissionManager->can(new \humhub\modules\post\permissions\CreatePost())) ? |
| 8 | - Yii::t('UserModule.views_profile_index', '<b>Your profile stream is still empty</b><br>Get started and post something...') : |
|
| 9 | - Yii::t('UserModule.views_profile_index', '<b>This profile stream is still empty!</b>'), |
|
| 8 | + Yii::t('UserModule.views_profile_index', '<b>Your profile stream is still empty</b><br>Get started and post something...') : Yii::t('UserModule.views_profile_index', '<b>This profile stream is still empty!</b>'), |
|
| 10 | 9 | 'messageStreamEmptyCss' => ($user->permissionManager->can(new \humhub\modules\post\permissions\CreatePost())) ? |
| 11 | - 'placeholder-empty-stream' : |
|
| 12 | - '', |
|
| 10 | + 'placeholder-empty-stream' : '', |
|
| 13 | 11 | )); |
| 14 | 12 | ?> |
@@ -101,9 +101,12 @@ |
||
| 101 | 101 | src="<?php echo $user->getProfileImage()->getUrl(); ?>" |
| 102 | 102 | data-src="holder.js/140x140" alt="140x140" style="width: 140px; height: 140px;"/> |
| 103 | 103 | </a> |
| 104 | - <?php else : ?> |
|
| 104 | + <?php else { |
|
| 105 | + : ?> |
|
| 105 | 106 | <img class="img-rounded profile-user-photo" id="user-profile-image" |
| 106 | - src="<?php echo $user->getProfileImage()->getUrl(); ?>" |
|
| 107 | + src="<?php echo $user->getProfileImage()->getUrl(); |
|
| 108 | +} |
|
| 109 | +?>" |
|
| 107 | 110 | data-src="holder.js/140x140" alt="140x140" style="width: 140px; height: 140px;"/> |
| 108 | 111 | <?php endif; ?> |
| 109 | 112 | |
@@ -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;')); ?> |
@@ -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 --> |