@@ -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;')); ?> |
@@ -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" |
@@ -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 = []; |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | - humhub\assets\TabbedFormAsset::register($this); |
|
| 2 | + humhub\assets\TabbedFormAsset::register($this); |
|
| 3 | 3 | ?> |
| 4 | 4 | |
| 5 | 5 | <div class="panel-heading"> |
@@ -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' => [ |
@@ -12,8 +12,11 @@ |
||
| 12 | 12 | |
| 13 | 13 | <?php if (!$category->isNewRecord) : ?> |
| 14 | 14 | <h4><?= Yii::t('AdminModule.views_userprofile_editCategory', 'Edit profile category'); ?></h4> |
| 15 | - <?php else: ?> |
|
| 16 | - <h4><?= Yii::t('AdminModule.views_userprofile_editCategory', 'Create new profile category'); ?></h4> |
|
| 15 | + <?php else { |
|
| 16 | + : ?> |
|
| 17 | + <h4><?= Yii::t('AdminModule.views_userprofile_editCategory', 'Create new profile category'); |
|
| 18 | +} |
|
| 19 | +?></h4> |
|
| 17 | 20 | <?php endif; ?> |
| 18 | 21 | <br> |
| 19 | 22 | |
@@ -9,8 +9,11 @@ |
||
| 9 | 9 | |
| 10 | 10 | <?php if (!$group->isNewRecord) : ?> |
| 11 | 11 | <h4><?= Yii::t('AdminModule.user', 'Manage group: {groupName}', ['groupName' => $group->name]); ?></h4> |
| 12 | - <?php else: ?> |
|
| 13 | - <h4><?= Yii::t('AdminModule.user', 'Add new group'); ?></h4> |
|
| 12 | + <?php else { |
|
| 13 | + : ?> |
|
| 14 | + <h4><?= Yii::t('AdminModule.user', 'Add new group'); |
|
| 15 | +} |
|
| 16 | +?></h4> |
|
| 14 | 17 | <?php endif; ?> |
| 15 | 18 | </div> |
| 16 | 19 | |