@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | [ |
68 | 68 | 'attribute' => 'content', |
69 | 69 | 'format' => 'html', |
70 | - 'value' => function ($model) { |
|
71 | - return substr(strip_tags($model->content), 0, 150) . '...'; |
|
70 | + 'value' => function($model) { |
|
71 | + return substr(strip_tags($model->content), 0, 150).'...'; |
|
72 | 72 | }, |
73 | 73 | ], |
74 | 74 | [ |
@@ -80,14 +80,14 @@ discard block |
||
80 | 80 | 'class' => 'yii\grid\ActionColumn', |
81 | 81 | 'template' => Yii::$app->user->can('editor') ? '{view} {update} {delete} {reply}' : '{view}', |
82 | 82 | 'buttons' => [ |
83 | - 'view' => function ($url, $model) { |
|
83 | + 'view' => function($url, $model) { |
|
84 | 84 | return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', |
85 | - $model->commentMedia->url . '#comment' . $model->id, [ |
|
85 | + $model->commentMedia->url.'#comment'.$model->id, [ |
|
86 | 86 | 'title' => Yii::t('yii', 'View'), |
87 | 87 | 'data-pjax' => '0', |
88 | 88 | ]); |
89 | 89 | }, |
90 | - 'reply' => function ($url, $model) { |
|
90 | + 'reply' => function($url, $model) { |
|
91 | 91 | return Html::a('<span class="glyphicon glyphicon-share-alt"></span>', [ |
92 | 92 | 'reply', |
93 | 93 | 'id' => $model->id, |
@@ -106,11 +106,11 @@ discard block |
||
106 | 106 | </div> |
107 | 107 | <?php $this->registerJs(str_replace(["\r", "\n"], "", 'jQuery(".bulk-button").click(function(e){ |
108 | 108 | e.preventDefault(); |
109 | - if(confirm("' . Yii::t("app", "Are you sure?") . '")){ |
|
109 | + if(confirm("' . Yii::t("app", "Are you sure?").'")){ |
|
110 | 110 | var ids = $("#media-comment-grid-view").yiiGridView("getSelectedRows"); |
111 | 111 | var action = $(this).parents(".form-group").find(".bulk-action").val(); |
112 | 112 | $.ajax({ |
113 | - url: "' . Url::to(["bulk-action"]) . '", |
|
113 | + url: "' . Url::to(["bulk-action"]).'", |
|
114 | 114 | data: { ids: ids, action: action, _csrf: yii.getCsrfToken() }, |
115 | 115 | type:"POST", |
116 | 116 | success: function(data){ |
@@ -89,7 +89,7 @@ |
||
89 | 89 | 'Option[allow_signup][value]', |
90 | 90 | $model->allow_signup->value, |
91 | 91 | ['uncheck' => 0, 'id' => 'option-allow_signup'] |
92 | - ) . Yii::t('writesdown', ' Allow guest to register on this site') |
|
92 | + ).Yii::t('writesdown', ' Allow guest to register on this site') |
|
93 | 93 | ) ?> |
94 | 94 | |
95 | 95 | </div> |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | 'uncheck' => 'close', |
35 | 35 | 'value' => 'open', |
36 | 36 | ] |
37 | - ) . Yii::t('writesdown', 'Allow people to post comments on new articles') |
|
37 | + ).Yii::t('writesdown', 'Allow people to post comments on new articles') |
|
38 | 38 | ) ?> |
39 | 39 | |
40 | 40 | </div> |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | 'Option[require_name_email][value]', |
54 | 54 | $model->require_name_email->value, |
55 | 55 | ['uncheck' => 0] |
56 | - ) . Yii::t('writesdown', 'Comment author must fill out name and e-mail ') |
|
56 | + ).Yii::t('writesdown', 'Comment author must fill out name and e-mail ') |
|
57 | 57 | ) ?><br/> |
58 | 58 | |
59 | 59 | <?= Html::label( |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | 'Option[comment_registration][value]', |
62 | 62 | $model->comment_registration->value, |
63 | 63 | ['uncheck' => 0] |
64 | - ) . Yii::t('writesdown', 'Users must be registered and logged in to comment ') |
|
64 | + ).Yii::t('writesdown', 'Users must be registered and logged in to comment ') |
|
65 | 65 | ) ?><br/> |
66 | 66 | |
67 | 67 | <?= Html::label( |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | 'Option[close_comments_for_old_posts][value]', |
70 | 70 | $model->close_comments_for_old_posts->value, |
71 | 71 | ['uncheck' => 0] |
72 | - ) . Yii::t('writesdown', 'Automatically close comments on articles older than') |
|
72 | + ).Yii::t('writesdown', 'Automatically close comments on articles older than') |
|
73 | 73 | ) ?> |
74 | 74 | |
75 | 75 | <?= Html::input( |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | 'Option[thread_comments][value]', |
90 | 90 | $model->thread_comments->value, |
91 | 91 | ['uncheck' => 0] |
92 | - ) . Yii::t('writesdown', 'Enable threaded (nested) comments') |
|
92 | + ).Yii::t('writesdown', 'Enable threaded (nested) comments') |
|
93 | 93 | ) ?> |
94 | 94 | |
95 | 95 | <?= Html::input( |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | 'Option[page_comments][value]', |
107 | 107 | $model->page_comments->value, |
108 | 108 | ['uncheck' => 0] |
109 | - ) . Yii::t('writesdown', 'Break comments into pages with') |
|
109 | + ).Yii::t('writesdown', 'Break comments into pages with') |
|
110 | 110 | ) ?> |
111 | 111 | |
112 | 112 | <?= Html::input( |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | 'Option[comments_notify][value]', |
160 | 160 | $model->comments_notify->value, |
161 | 161 | ['uncheck' => 0] |
162 | - ) . Yii::t('writesdown', 'Anyone posts a comment ') |
|
162 | + ).Yii::t('writesdown', 'Anyone posts a comment ') |
|
163 | 163 | ) ?><br/> |
164 | 164 | |
165 | 165 | <?= Html::label( |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | 'Option[moderation_notify][value]', |
168 | 168 | $model->moderation_notify->value, |
169 | 169 | ['uncheck' => 0] |
170 | - ) . Yii::t('writesdown', 'A comment is held for moderation') |
|
170 | + ).Yii::t('writesdown', 'A comment is held for moderation') |
|
171 | 171 | ) ?> |
172 | 172 | |
173 | 173 | </div> |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | 'Option[comment_moderation][value]', |
188 | 188 | $model->comment_moderation->value, |
189 | 189 | ['uncheck' => 0] |
190 | - ) . Yii::t('writesdown', 'Comment must be manually approved') |
|
190 | + ).Yii::t('writesdown', 'Comment must be manually approved') |
|
191 | 191 | ) ?><br/> |
192 | 192 | |
193 | 193 | <?= Html::label( |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | 'Option[comment_whitelist][value]', |
196 | 196 | $model->comment_whitelist->value, |
197 | 197 | ['uncheck' => 0] |
198 | - ) . Yii::t('writesdown', 'Comment author must have a previously approved comment') |
|
198 | + ).Yii::t('writesdown', 'Comment author must have a previously approved comment') |
|
199 | 199 | ) ?> |
200 | 200 | </div> |
201 | 201 | </div> |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | 'Option[show_avatars][value]', |
221 | 221 | $model->show_avatars->value, |
222 | 222 | ['uncheck' => 0] |
223 | - ) . Yii::t('writesdown', 'Show avatars on comments') |
|
223 | + ).Yii::t('writesdown', 'Show avatars on comments') |
|
224 | 224 | ) ?> |
225 | 225 | |
226 | 226 | </div> |
@@ -253,49 +253,49 @@ discard block |
||
253 | 253 | 'width' => 32, |
254 | 254 | 'height' => 32, |
255 | 255 | 'alt' => '', |
256 | - ]) . ' Mystery Man', |
|
256 | + ]).' Mystery Man', |
|
257 | 257 | 'blank' => Html::img('http://0.gravatar.com/avatar/0e42823c22bc734de4c13fd569cf1010?s=32&d=blank&r=G&forcedefault=1', |
258 | 258 | [ |
259 | 259 | 'class' => 'avatar avatar-32 photo', |
260 | 260 | 'width' => 32, |
261 | 261 | 'height' => 32, |
262 | 262 | 'alt' => '', |
263 | - ]) . ' Blank', |
|
263 | + ]).' Blank', |
|
264 | 264 | 'gravatar_default' => Html::img('http://0.gravatar.com/avatar/0e42823c22bc734de4c13fd569cf1010?s=32&d=&r=G&forcedefault=1', |
265 | 265 | [ |
266 | 266 | 'class' => 'avatar avatar-32 photo', |
267 | 267 | 'width' => 32, |
268 | 268 | 'height' => 32, |
269 | 269 | 'alt' => '', |
270 | - ]) . ' Gravatar Logo', |
|
270 | + ]).' Gravatar Logo', |
|
271 | 271 | 'identicon' => Html::img('http://0.gravatar.com/avatar/0e42823c22bc734de4c13fd569cf1010?s=32&d=identicon&r=G&forcedefault=1', |
272 | 272 | [ |
273 | 273 | 'class' => 'avatar avatar-32 photo', |
274 | 274 | 'width' => 32, |
275 | 275 | 'height' => 32, |
276 | 276 | 'alt' => '', |
277 | - ]) . ' Identicon (Generated)', |
|
277 | + ]).' Identicon (Generated)', |
|
278 | 278 | 'wavatar' => Html::img('http://0.gravatar.com/avatar/0e42823c22bc734de4c13fd569cf1010?s=32&d=wavatar&r=G&forcedefault=1', |
279 | 279 | [ |
280 | 280 | 'class' => 'avatar avatar-32 photo', |
281 | 281 | 'width' => 32, |
282 | 282 | 'height' => 32, |
283 | 283 | 'alt' => '', |
284 | - ]) . ' Watavar (Generated)', |
|
284 | + ]).' Watavar (Generated)', |
|
285 | 285 | 'monsterid' => Html::img('http://0.gravatar.com/avatar/0e42823c22bc734de4c13fd569cf1010?s=32&d=monsterid&r=G&forcedefault=1', |
286 | 286 | [ |
287 | 287 | 'class' => 'avatar avatar-32 photo', |
288 | 288 | 'width' => 32, |
289 | 289 | 'height' => 32, |
290 | 290 | 'alt' => '', |
291 | - ]) . ' MonsterID (Generated)', |
|
291 | + ]).' MonsterID (Generated)', |
|
292 | 292 | 'retro' => Html::img('http://0.gravatar.com/avatar/0e42823c22bc734de4c13fd569cf1010?s=32&d=retro&r=G&forcedefault=1', |
293 | 293 | [ |
294 | 294 | 'class' => 'avatar avatar-32 photo', |
295 | 295 | 'width' => 32, |
296 | 296 | 'height' => 32, |
297 | 297 | 'alt' => '', |
298 | - ]) . ' Retro (Generated)', |
|
298 | + ]).' Retro (Generated)', |
|
299 | 299 | ], ['separator' => '<br />', 'encode' => false]) ?> |
300 | 300 | |
301 | 301 | </div> |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | 'Option[thumbnail_crop][value]', |
59 | 59 | $model->thumbnail_crop->value, |
60 | 60 | ['uncheck' => 0] |
61 | - ) . Yii::t('writesdown', 'Crop thumbnail to exact dimensions') |
|
61 | + ).Yii::t('writesdown', 'Crop thumbnail to exact dimensions') |
|
62 | 62 | ) ?> |
63 | 63 | |
64 | 64 | </div> |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | 'Option[uploads_yearmonth_based][value]', |
129 | 129 | $model->uploads_yearmonth_based->value, |
130 | 130 | ['uncheck' => 0] |
131 | - ) . Yii::t('writesdown', 'Organize my uploads into month- and year-based folders') |
|
131 | + ).Yii::t('writesdown', 'Organize my uploads into month- and year-based folders') |
|
132 | 132 | ) ?> |
133 | 133 | <br/> |
134 | 134 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | 'Option[uploads_username_based][value]', |
138 | 138 | $model->uploads_username_based->value, |
139 | 139 | ['uncheck' => 0] |
140 | - ) . Yii::t('writesdown', 'Organize my uploads into username-based folders') |
|
140 | + ).Yii::t('writesdown', 'Organize my uploads into username-based folders') |
|
141 | 141 | ) ?> |
142 | 142 | |
143 | 143 | </div> |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | 'Option[disable_site_indexing][value]', |
154 | 154 | $model->disable_site_indexing->value, |
155 | 155 | ['id' => 'option-site_indexing', 'uncheck' => 0] |
156 | - ) . Yii::t('writesdown', 'Do not allow search engines to index the site') |
|
156 | + ).Yii::t('writesdown', 'Do not allow search engines to index the site') |
|
157 | 157 | ) ?> |
158 | 158 | |
159 | 159 | </div> |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $(".search-post").selectize({"valueField":"id","labelField":"title","searchField":"title","load":function (query, callback) { |
178 | 178 | if (!query.length) return callback(); |
179 | 179 | $.ajax({ |
180 | - url: "' . Url::to(['post/ajax-search']) . '", |
|
180 | + url: "' . Url::to(['post/ajax-search']).'", |
|
181 | 181 | type: "POST", |
182 | 182 | dataType: "json", |
183 | 183 | data: { |
@@ -21,15 +21,15 @@ |
||
21 | 21 | * @param $type string |
22 | 22 | * @param $oldKey null|array |
23 | 23 | */ |
24 | -$renderConfig = function ($form, $model, $config, $type, $oldKey = null) use (&$renderConfig) { |
|
24 | +$renderConfig = function($form, $model, $config, $type, $oldKey = null) use (&$renderConfig) { |
|
25 | 25 | echo '<ul>'; |
26 | 26 | |
27 | 27 | foreach ($config as $key => $value) { |
28 | 28 | echo '<li>'; |
29 | 29 | if (is_array($value)) { |
30 | - $renderConfig($form, $model, $value, $type, $oldKey . "[$key]"); |
|
30 | + $renderConfig($form, $model, $value, $type, $oldKey."[$key]"); |
|
31 | 31 | } else { |
32 | - echo $form->field($model, "config" . "[$type]" . $oldKey . "[$key]")->textInput([ |
|
32 | + echo $form->field($model, "config"."[$type]".$oldKey."[$key]")->textInput([ |
|
33 | 33 | 'class' => 'form-control input-sm', |
34 | 34 | 'value' => $value, |
35 | 35 | 'readonly' => $key === 'class' ? 'readonly' : null, |
@@ -83,11 +83,11 @@ |
||
83 | 83 | </div> |
84 | 84 | <?php $this->registerJs('jQuery(document).on("click", ".bulk-button", function(e){ |
85 | 85 | e.preventDefault(); |
86 | - if(confirm("' . Yii::t('writesdown', 'Are you sure?') . '")){ |
|
86 | + if(confirm("' . Yii::t('writesdown', 'Are you sure?').'")){ |
|
87 | 87 | var ids = $("#module-grid-view").yiiGridView("getSelectedRows"); |
88 | 88 | var action = $(this).closest(".form-group").find(".bulk-action").val(); |
89 | 89 | $.ajax({ |
90 | - url: "' . Url::to(["bulk-action"]) . '", |
|
90 | + url: "' . Url::to(["bulk-action"]).'", |
|
91 | 91 | data: { ids: ids, action: action, _csrf: yii.getCsrfToken() }, |
92 | 92 | type: "POST", |
93 | 93 | success: function(data){ |
@@ -23,7 +23,7 @@ |
||
23 | 23 | <?= Nav::widget([ |
24 | 24 | 'items' => [ |
25 | 25 | [ |
26 | - 'label' => '<i class="fa fa-upload"></i> ' . Yii::t('writesdown', 'Upload New Module'), |
|
26 | + 'label' => '<i class="fa fa-upload"></i> '.Yii::t('writesdown', 'Upload New Module'), |
|
27 | 27 | 'options' => ['class' => 'active'], |
28 | 28 | ], |
29 | 29 | ], |
@@ -24,7 +24,7 @@ |
||
24 | 24 | <?= Breadcrumbs::widget([ |
25 | 25 | 'homeLink' => [ |
26 | 26 | 'label' => Html::a( |
27 | - '<i class="fa fa-dashboard"></i> ' . Yii::t('writesdown', 'Home'), |
|
27 | + '<i class="fa fa-dashboard"></i> '.Yii::t('writesdown', 'Home'), |
|
28 | 28 | Yii::$app->homeUrl |
29 | 29 | ), |
30 | 30 | ], |