@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | 'url' => $space->createUrl('/space/manage/module/enable', ['moduleId' => $moduleId]), |
| 57 | 57 | ], |
| 58 | 58 | 'htmlOptions' => [ |
| 59 | - 'class' => 'btn btn-sm btn-primary '. $enable, |
|
| 59 | + 'class' => 'btn btn-sm btn-primary ' . $enable, |
|
| 60 | 60 | 'id' => 'btn-enable-module-' . $moduleId |
| 61 | 61 | ] |
| 62 | 62 | ]); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | 'url' => $space->createUrl('/space/manage/module/disable', ['moduleId' => $moduleId]), |
| 77 | 77 | ], |
| 78 | 78 | 'htmlOptions' => [ |
| 79 | - 'class' => 'btn btn-sm btn-info '. $disable, |
|
| 79 | + 'class' => 'btn btn-sm btn-info ' . $disable, |
|
| 80 | 80 | 'id' => 'btn-disable-module-' . $moduleId |
| 81 | 81 | ] |
| 82 | 82 | ]); |
@@ -7,11 +7,9 @@ |
||
| 7 | 7 | echo humhub\modules\content\widgets\Stream::widget(array( |
| 8 | 8 | 'streamAction' => '//directory/directory/stream', |
| 9 | 9 | 'messageStreamEmpty' => (!Yii::$app->user->isGuest) ? |
| 10 | - Yii::t('DirectoryModule.views_directory_userPosts', '<b>Nobody wrote something yet.</b><br>Make the beginning and post something...') : |
|
| 11 | - Yii::t('DirectoryModule.views_directory_userPosts', '<b>There are no profile posts yet!</b>'), |
|
| 10 | + Yii::t('DirectoryModule.views_directory_userPosts', '<b>Nobody wrote something yet.</b><br>Make the beginning and post something...') : Yii::t('DirectoryModule.views_directory_userPosts', '<b>There are no profile posts yet!</b>'), |
|
| 12 | 11 | 'messageStreamEmptyCss' => (!Yii::$app->user->isGuest) ? |
| 13 | - 'placeholder-empty-stream' : |
|
| 14 | - '', |
|
| 12 | + 'placeholder-empty-stream' : '', |
|
| 15 | 13 | )); |
| 16 | 14 | ?> |
| 17 | 15 | |
@@ -156,11 +156,11 @@ |
||
| 156 | 156 | function setDefaultVisibility() { |
| 157 | 157 | <?php if ($defaultVisibility == humhub\modules\content\models\Content::VISIBILITY_PRIVATE) : ?> |
| 158 | 158 | setPrivateVisibility(); |
| 159 | - <?php endif ;?> |
|
| 159 | + <?php endif; ?> |
|
| 160 | 160 | |
| 161 | 161 | <?php if ($defaultVisibility == humhub\modules\content\models\Content::VISIBILITY_PUBLIC) : ?> |
| 162 | 162 | setPublicVisibility(); |
| 163 | - <?php endif ;?> |
|
| 163 | + <?php endif; ?> |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | function setPublicVisibility() { |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <!-- check if flash message exists --> |
| 2 | -<?php if(Yii::$app->getSession()->hasFlash('data-saved')): ?> |
|
| 2 | +<?php if (Yii::$app->getSession()->hasFlash('data-saved')): ?> |
|
| 3 | 3 | |
| 4 | 4 | <!-- <span> element to display the message --> |
| 5 | 5 | <span class="data-saved"><i class="fa fa-check-circle"></i> <?php echo Yii::$app->getSession()->getFlash('data-saved'); ?></span> |
@@ -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; ?> |
@@ -54,7 +54,7 @@ |
||
| 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) { |
|
| 57 | + 'value' => function($data) use ($group) { |
|
| 58 | 58 | $isManager = $group->isManager($data); |
| 59 | 59 | $yesSelected = ($isManager) ? 'selected' : ''; |
| 60 | 60 | $noSelected = ($isManager) ? '' : 'selected'; |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | 'label' => Yii::t('AdminModule.views_group_index', 'Members'), |
| 33 | 33 | 'format' => 'raw', |
| 34 | 34 | 'options' => ['style' => 'text-align:center;'], |
| 35 | - 'value' => function ($data) { |
|
| 35 | + 'value' => function($data) { |
|
| 36 | 36 | return $data->getGroupUsers()->count(); |
| 37 | 37 | } |
| 38 | 38 | ], |