@@ -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 |
@@ -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 | ?> |
@@ -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;')); ?> |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | <?php if ($linkOutput == 'button') { ?> |
| 31 | 31 | |
| 32 | 32 | <!-- create button element --> |
| 33 | - <button class="<?php echo $class; ?> <?php if ($tooltip != "") : ?>tt<?php endif;?>" style="<?php echo $style; ?>" |
|
| 33 | + <button class="<?php echo $class; ?> <?php if ($tooltip != "") : ?>tt<?php endif; ?>" style="<?php echo $style; ?>" |
|
| 34 | 34 | data-toggle="modal" data-target="#confirmModal_<?php echo $uniqueID; ?>" <?php echo $tooltip; ?>> |
| 35 | 35 | <?php echo $linkContent; ?> |
| 36 | 36 | </button> |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | <?php } else if ($linkOutput == 'a') { ?> |
| 39 | 39 | |
| 40 | 40 | <!-- create normal link element --> |
| 41 | - <a id="deleteLinkPost_<?php echo $uniqueID; ?>" class="<?php echo $class; ?> <?php if ($tooltip != "") : ?>tt<?php endif;?>" style="<?php echo $style; ?>" href="#" |
|
| 41 | + <a id="deleteLinkPost_<?php echo $uniqueID; ?>" class="<?php echo $class; ?> <?php if ($tooltip != "") : ?>tt<?php endif; ?>" style="<?php echo $style; ?>" href="#" |
|
| 42 | 42 | data-toggle="modal" data-target="#confirmModal_<?php echo $uniqueID; ?>" <?php echo $tooltip; ?>> |
| 43 | 43 | <?php echo $linkContent; ?> |
| 44 | 44 | </a> |
@@ -18,8 +18,8 @@ |
||
| 18 | 18 | var data = {}; |
| 19 | 19 | var sortable = ui.item.closest('.<?php echo $containerClassName; ?>'); |
| 20 | 20 | var items = sortable.find('.<?php echo $sortableItemClassName; ?>'); |
| 21 | - <?php foreach($additionalAjaxParams as $name => $value) { |
|
| 22 | - if($name != null && $name != '' && $value != null && $value != '') { ?> |
|
| 21 | + <?php foreach ($additionalAjaxParams as $name => $value) { |
|
| 22 | + if ($name != null && $name != '' && $value != null && $value != '') { ?> |
|
| 23 | 23 | data.<?php echo $name ?> = '<?php echo $value ?>'; |
| 24 | 24 | <?php } } ?> |
| 25 | 25 | data.items = []; |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | <div class="list-group"> |
| 21 | 21 | <?php foreach ($items as $item) : ?> |
| 22 | 22 | <?php $item['htmlOptions']['class'] .= " list-group-item"; ?> |
| 23 | - <?php echo \yii\helpers\Html::a($item['icon']."<span>".$item['label']."</span>", $item['url'], $item['htmlOptions']); ?> |
|
| 23 | + <?php echo \yii\helpers\Html::a($item['icon'] . "<span>" . $item['label'] . "</span>", $item['url'], $item['htmlOptions']); ?> |
|
| 24 | 24 | <?php endforeach; ?> |
| 25 | 25 | </div> |
| 26 | 26 | <?php endforeach; ?> |
@@ -21,10 +21,10 @@ |
||
| 21 | 21 | 'header' => 'Actions', |
| 22 | 22 | 'class' => 'yii\grid\ActionColumn', |
| 23 | 23 | 'buttons' => [ |
| 24 | - 'update' => function ($url, $model) { |
|
| 24 | + 'update' => function($url, $model) { |
|
| 25 | 25 | return Html::a('Accept', ['/friendship/request/add', 'userId' => $model->id], ['class' => 'btn btn-success btn-sm', 'data-method' => 'POST']); |
| 26 | 26 | }, |
| 27 | - 'view' => function () { |
|
| 27 | + 'view' => function() { |
|
| 28 | 28 | return; |
| 29 | 29 | }, |
| 30 | 30 | 'delete' => function($url, $model) { |
@@ -22,10 +22,10 @@ |
||
| 22 | 22 | 'header' => 'Actions', |
| 23 | 23 | 'class' => 'yii\grid\ActionColumn', |
| 24 | 24 | 'buttons' => [ |
| 25 | - 'update' => function () { |
|
| 25 | + 'update' => function() { |
|
| 26 | 26 | return; |
| 27 | 27 | }, |
| 28 | - 'view' => function () { |
|
| 28 | + 'view' => function() { |
|
| 29 | 29 | return; |
| 30 | 30 | }, |
| 31 | 31 | 'delete' => function($url, $model) { |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | use yii\helpers\Url; |
| 4 | 4 | |
| 5 | 5 | $this->registerJsConfig('notification', [ |
| 6 | - 'icon' => $this->theme->getBaseUrl().'/ico/notification-o.png', |
|
| 6 | + 'icon' => $this->theme->getBaseUrl() . '/ico/notification-o.png', |
|
| 7 | 7 | 'loadEntriesUrl' => Url::to(['/notification/list']), |
| 8 | 8 | 'sendDesktopNotifications' => boolval(Yii::$app->notification->getDesktopNoficationSettings(Yii::$app->user->getIdentity())), |
| 9 | 9 | 'text' => [ |