Completed
Push — master ( 3b924e...fb7a26 )
by Agiel Kurniawan
07:58
created
backend/views/media-comment/_form-reply.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
             'compressorRoute' => 'editor/compressor',
23 23
             'settings' => [
24 24
                 'menubar' => false,
25
-                'skin_url' => Url::base(true) . '/editor/skins/writesdown',
25
+                'skin_url' => Url::base(true).'/editor/skins/writesdown',
26 26
                 'toolbar_items_size' => 'medium',
27 27
                 'toolbar' => 'bold | italic | strikethrough | underline | link | image | bullist | numlist',
28 28
             ],
Please login to merge, or discard this patch.
backend/views/media-comment/_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             'compressorRoute' => 'editor/compressor',
37 37
             'settings' => [
38 38
                 'menubar' => false,
39
-                'skin_url' => Url::base(true) . '/editor/skins/writesdown',
39
+                'skin_url' => Url::base(true).'/editor/skins/writesdown',
40 40
                 'toolbar_items_size' => 'medium',
41 41
                 'toolbar' => 'bold | italic | strikethrough | underline | link | image | bullist | numlist',
42 42
             ],
Please login to merge, or discard this patch.
backend/views/media-comment/reply.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
                     'attribute' => 'ip',
64 64
                     'value' => Html::a(
65 65
                         $commentParent->ip,
66
-                        'http://whois.arin.net/rest/ip/' . $commentParent->ip,
66
+                        'http://whois.arin.net/rest/ip/'.$commentParent->ip,
67 67
                         ['target' => '_blank']
68 68
                     ),
69 69
                     'format' => 'raw',
Please login to merge, or discard this patch.
backend/views/media-comment/update.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                     'attribute' => 'ip',
55 55
                     'value' => Html::a(
56 56
                         $model->ip,
57
-                        'http://whois.arin.net/rest/ip/' . $model->ip,
57
+                        'http://whois.arin.net/rest/ip/'.$model->ip,
58 58
                         ['target' => '_blank']
59 59
                     ),
60 60
                     'format' => 'raw',
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                 [
63 63
                     'attribute' => 'date',
64 64
                     'value' => Html::a(
65
-                        date('M d, Y H:i:s', strtotime($model->date)) . ' <i class="fa fa-pencil"></i>',
65
+                        date('M d, Y H:i:s', strtotime($model->date)).' <i class="fa fa-pencil"></i>',
66 66
                         '#', [
67 67
                             'data-toggle' => 'modal',
68 68
                             'id' => 'date-link',
@@ -84,13 +84,13 @@  discard block
 block discarded – undo
84 84
         ]) ?>
85 85
 
86 86
         <?= Html::a(
87
-            '<span class="glyphicon glyphicon-share-alt"></span> ' . Yii::t('writesdown', 'Reply'),
87
+            '<span class="glyphicon glyphicon-share-alt"></span> '.Yii::t('writesdown', 'Reply'),
88 88
             ['reply', 'id' => $model->id],
89 89
             ['class' => 'btn btn-sm btn-flat btn-success']
90 90
         ) ?>
91 91
 
92 92
         <?= Html::a(
93
-            '<span class="glyphicon glyphicon-trash"></span> ' . Yii::t('writesdown', 'Delete'),
93
+            '<span class="glyphicon glyphicon-trash"></span> '.Yii::t('writesdown', 'Delete'),
94 94
             ['delete', 'id' => $model->id],
95 95
             [
96 96
                 'class' => 'btn btn-wd-post btn-sm btn-flat btn-danger pull-right',
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     </div>
102 102
 </div>
103 103
 <?php Modal::begin([
104
-    'header' => '<i class="glyphicon glyphicon-time"></i> ' . Yii::t('writesdown', 'Change Comment Date'),
104
+    'header' => '<i class="glyphicon glyphicon-time"></i> '.Yii::t('writesdown', 'Change Comment Date'),
105 105
     'id' => 'modal-for-date',
106 106
 ]) ?>
107 107
 
Please login to merge, or discard this patch.
backend/views/media-comment/index.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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){
Please login to merge, or discard this patch.
backend/views/setting/general.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
backend/views/setting/discussion.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.
backend/views/setting/media.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.
backend/views/setting/reading.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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: {
Please login to merge, or discard this patch.