@@ -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' |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?= humhub\widgets\RichtextField::widget([ |
2 | - 'id' => 'contentForm_message', |
|
3 | - 'placeholder' => Yii::t("PostModule.widgets_views_postForm", "What's on your mind?"), |
|
2 | + 'id' => 'contentForm_message', |
|
3 | + 'placeholder' => Yii::t("PostModule.widgets_views_postForm", "What's on your mind?"), |
|
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."), |
@@ -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 | +]); ?> |
@@ -109,16 +109,22 @@ |
||
109 | 109 | <?= humhub\modules\stream\actions\Stream::renderEntry($result) ?> |
110 | 110 | <?php elseif ($result instanceof ContentContainerActiveRecord) : ?> |
111 | 111 | <?= $result->getWallOut(); ?> |
112 | - <?php else: ?> |
|
113 | - No Output for Class <?= get_class($result); ?> |
|
112 | + <?php else { |
|
113 | + : ?> |
|
114 | + No Output for Class <?= get_class($result); |
|
115 | +} |
|
116 | +?> |
|
114 | 117 | <?php endif; ?> |
115 | 118 | <?php endforeach; ?> |
116 | - <?php else: ?> |
|
119 | + <?php else { |
|
120 | + : ?> |
|
117 | 121 | |
118 | 122 | |
119 | 123 | <div class="panel panel-default"> |
120 | 124 | <div class="panel-body"> |
121 | - <p><strong><?= Yii::t('SearchModule.views_search_index', 'Your search returned no matches.'); ?></strong></p> |
|
125 | + <p><strong><?= Yii::t('SearchModule.views_search_index', 'Your search returned no matches.'); |
|
126 | +} |
|
127 | +?></strong></p> |
|
122 | 128 | </div> |
123 | 129 | </div> |
124 | 130 | <?php endif; ?> |
@@ -3,7 +3,6 @@ |
||
3 | 3 | use yii\helpers\Url; |
4 | 4 | use yii\helpers\Html; |
5 | 5 | use yii\bootstrap\ActiveForm; |
6 | - |
|
7 | 6 | use humhub\modules\search\models\forms\SearchForm; |
8 | 7 | use humhub\modules\content\components\ContentActiveRecord; |
9 | 8 | use humhub\modules\content\components\ContentContainerActiveRecord; |
@@ -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> |
@@ -18,8 +18,11 @@ |
||
18 | 18 | <div class="panel-heading"> |
19 | 19 | <?php if ($group === null) : ?> |
20 | 20 | <?= Yii::t('DirectoryModule.base', '<strong>Member</strong> directory'); ?> |
21 | - <?php else: ?> |
|
22 | - <?= Yii::t('DirectoryModule.base', '<strong>Group</strong> members - {group}', ['{group}' => Html::encode($group->name)]); ?> |
|
21 | + <?php else { |
|
22 | + : ?> |
|
23 | + <?= Yii::t('DirectoryModule.base', '<strong>Group</strong> members - {group}', ['{group}' => Html::encode($group->name)]); |
|
24 | +} |
|
25 | +?> |
|
23 | 26 | <?php endif; ?> |
24 | 27 | </div> |
25 | 28 |
@@ -11,8 +11,11 @@ |
||
11 | 11 | |
12 | 12 | <?php if (!$field->isNewRecord) : ?> |
13 | 13 | <h4><?= Yii::t('AdminModule.views_userprofile_editField', 'Edit profile field'); ?></h4> |
14 | - <?php else: ?> |
|
15 | - <h4><?= Yii::t('AdminModule.views_userprofile_editField', 'Create new profile field'); ?></h4> |
|
14 | + <?php else { |
|
15 | + : ?> |
|
16 | + <h4><?= Yii::t('AdminModule.views_userprofile_editField', 'Create new profile field'); |
|
17 | +} |
|
18 | +?></h4> |
|
16 | 19 | <?php endif; ?> |
17 | 20 | |
18 | 21 | <br> |
@@ -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 |
@@ -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 | ], |