@@ -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' => [ |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | <!-- create contenteditable div for HEditorWidget to place the data --> |
11 | 11 | <?= humhub\widgets\RichtextField::widget([ |
12 | - 'id' => 'post_input_'. $post->id, |
|
12 | + 'id' => 'post_input_' . $post->id, |
|
13 | 13 | 'placeholder' => Yii::t('PostModule.views_edit', 'Edit your post...'), |
14 | 14 | 'model' => $post, |
15 | 15 | 'attribute' => 'message' |
@@ -4,4 +4,4 @@ |
||
4 | 4 | 'name' => 'message', |
5 | 5 | 'disabled' => (property_exists(Yii::$app->controller, 'contentContainer') && Yii::$app->controller->contentContainer->isArchived()), |
6 | 6 | 'disabledText' => Yii::t("PostModule.widgets_views_postForm", "This space is archived."), |
7 | -]);?> |
|
7 | +]); ?> |
@@ -6,7 +6,7 @@ |
||
6 | 6 | ?> |
7 | 7 | |
8 | 8 | <li> |
9 | - <?php if($mode === WallEntry::EDIT_MODE_INLINE) : ?> |
|
9 | + <?php if ($mode === WallEntry::EDIT_MODE_INLINE) : ?> |
|
10 | 10 | <a href="#" class="stream-entry-edit-link" data-action-click="edit" data-action-url="<?= $editUrl ?>"> |
11 | 11 | <i class="fa fa-pencil"></i> <?= Yii::t('ContentModule.widgets_views_editLink', 'Edit') ?> |
12 | 12 | </a> |
@@ -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 | ], |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | 'visible' => $isManagerApprovalSetting, |
54 | 54 | 'label' => Yii::t('AdminModule.views_user_index', 'Group Manager'), |
55 | 55 | 'format' => 'raw', |
56 | - 'value' => function ($data) use ($group, $actionUrl) { |
|
56 | + 'value' => function($data) use ($group, $actionUrl) { |
|
57 | 57 | $isManager = $group->isManager($data); |
58 | 58 | $yesSelected = ($isManager) ? 'selected' : ''; |
59 | 59 | $noSelected = ($isManager) ? '' : 'selected'; |
60 | - $result = '<select class="editableCell form-control" data-action-change="admin.group.setManagerRole" data-action-url="'.$actionUrl.'" data-userid="' . $data->id . '" data-groupid="' . $group->id . '">'; |
|
60 | + $result = '<select class="editableCell form-control" data-action-change="admin.group.setManagerRole" data-action-url="' . $actionUrl . '" data-userid="' . $data->id . '" data-groupid="' . $group->id . '">'; |
|
61 | 61 | $result .= '<option value="0" ' . $noSelected . '>' . Yii::t('AdminModule.views_group_manageGroupUser', 'No') . '</option>'; |
62 | 62 | $result .= '<option value="1" ' . $yesSelected . '>' . Yii::t('AdminModule.views_group_manageGroupUser', 'Yes') . '</option>'; |
63 | 63 | return $result; |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | ], |
86 | 86 | ], |
87 | 87 | ] |
88 | - );?> |
|
88 | + ); ?> |
|
89 | 89 | </div> |
90 | 90 | </div> |
91 | 91 | <?php $this->endContent(); ?> |
92 | 92 | \ No newline at end of file |
@@ -28,7 +28,7 @@ |
||
28 | 28 | <div class="form-group"> |
29 | 29 | <?= $form->labelEx($model, 'maxFileSize'); ?> |
30 | 30 | <?= $form->textField($model, 'maxFileSize', ['class' => 'form-control', 'readonly' => Setting::IsFixed('maxFileSize', 'file')]); ?> |
31 | - <p class="help-block" <?= ($model->maxFileSize > $maxUploadSize) ? 'style="color:'.$this->theme->variable('danger').' !important"' : ''?>> |
|
31 | + <p class="help-block" <?= ($model->maxFileSize > $maxUploadSize) ? 'style="color:' . $this->theme->variable('danger') . ' !important"' : ''?>> |
|
32 | 32 | <?= Yii::t('AdminModule.views_setting_file', 'PHP reported a maximum of {maxUploadSize} MB', ['{maxUploadSize}' => $maxUploadSizeText]); ?> |
33 | 33 | </p> |
34 | 34 | </div> |
@@ -41,7 +41,7 @@ |
||
41 | 41 | 'attribute' => 'last_login', |
42 | 42 | 'options' => ['style' => 'width:86px;', 'class' => 'form-control'], |
43 | 43 | ]), |
44 | - 'value' => function ($data) { |
|
44 | + 'value' => function($data) { |
|
45 | 45 | return ($data->last_login == NULL) ? Yii::t('AdminModule.views_user_index', 'never') : Yii::$app->formatter->asDate($data->last_login); |
46 | 46 | } |
47 | 47 | ], |
@@ -16,7 +16,7 @@ |
||
16 | 16 | <div class="col-md-6"> |
17 | 17 | <div class="form-group form-group-search"> |
18 | 18 | <?= Html::textInput("licenceKey", $licenceKey, ["class" => "form-control form-search", "placeholder" => Yii::t('AdminModule.base', 'Add purchased module by licence key')]); ?> |
19 | - <?= Html::submitButton(Yii::t('AdminModule.module_listOnline', 'Register'), ['class' => 'btn btn-default btn-sm form-button-search' , 'data-ui-loader' => ""]); ?> |
|
19 | + <?= Html::submitButton(Yii::t('AdminModule.module_listOnline', 'Register'), ['class' => 'btn btn-default btn-sm form-button-search', 'data-ui-loader' => ""]); ?> |
|
20 | 20 | </div> |
21 | 21 | <?php if ($message != ""): ?> |
22 | 22 | <div style="color:<?= ($hasError) ? 'red' : 'green'; ?>"><?= Html::encode($message); ?></div> |