@@ -16,7 +16,7 @@ |
||
16 | 16 | /* @var $available [] */ |
17 | 17 | ?> |
18 | 18 | <?php $form = ActiveForm::begin([ |
19 | - 'id' => 'widget-active-form-' . $active->id, |
|
19 | + 'id' => 'widget-active-form-'.$active->id, |
|
20 | 20 | 'action' => Url::to(['/site/forbidden']), |
21 | 21 | 'options' => [ |
22 | 22 | 'class' => 'widget-active-form box box-solid box-default collapsed-box', |
@@ -18,15 +18,15 @@ |
||
18 | 18 | * @param $config array |
19 | 19 | * @param $oldKey null|array |
20 | 20 | */ |
21 | -$renderConfig = function ($form, $model, $config, $oldKey = null) use (&$renderConfig) { |
|
21 | +$renderConfig = function($form, $model, $config, $oldKey = null) use (&$renderConfig) { |
|
22 | 22 | echo '<ul>'; |
23 | 23 | |
24 | 24 | foreach ($config as $key => $value) { |
25 | 25 | echo '<li>'; |
26 | 26 | if (is_array($value)) { |
27 | - $renderConfig($form, $model, $value, $oldKey . "[$key]"); |
|
27 | + $renderConfig($form, $model, $value, $oldKey."[$key]"); |
|
28 | 28 | } else { |
29 | - echo $form->field($model, "config" . $oldKey . "[$key]")->textInput([ |
|
29 | + echo $form->field($model, "config".$oldKey."[$key]")->textInput([ |
|
30 | 30 | 'class' => 'form-control input-sm', |
31 | 31 | 'value' => $value, |
32 | 32 | 'readonly' => $key === 'class' ? 'readonly' : null, |
@@ -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 Widget'), |
|
26 | + 'label' => '<i class="fa fa-upload"></i> '.Yii::t('writesdown', 'Upload New Widget'), |
|
27 | 27 | 'options' => ['class' => 'active'], |
28 | 28 | ], |
29 | 29 | ], |
@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | <div class="dd-handle"><?= $item->label ?></div> |
19 | 19 | <div class="menu-header clearfix"> |
20 | 20 | <?= Html::button('<i class="fa fa-caret-down"></i>', [ |
21 | - 'aria-controls' => 'menu-item-' . $item->id, |
|
21 | + 'aria-controls' => 'menu-item-'.$item->id, |
|
22 | 22 | 'class' => 'btn btn-flat btn-default btn-detail-menu', |
23 | 23 | 'data-toggle' => 'collapse', |
24 | - 'data-target' => '#menu-item-' . $item->id, |
|
24 | + 'data-target' => '#menu-item-'.$item->id, |
|
25 | 25 | ]) ?> |
26 | 26 | |
27 | 27 | </div> |
@@ -29,12 +29,12 @@ discard block |
||
29 | 29 | <div class="row"> |
30 | 30 | <div class="col-sm-6"> |
31 | 31 | <div class="form-group"> |
32 | - <?= Html::label($item->getAttributeLabel('label'), 'menuitem-label-' . $item->id, [ |
|
32 | + <?= Html::label($item->getAttributeLabel('label'), 'menuitem-label-'.$item->id, [ |
|
33 | 33 | 'class' => 'form-label', |
34 | 34 | ]) ?> |
35 | 35 | |
36 | - <?= Html::textInput('MenuItem[' . $item->id . '][label]', $item->label, [ |
|
37 | - 'id' => 'menuitem-label-' . $item->id, |
|
36 | + <?= Html::textInput('MenuItem['.$item->id.'][label]', $item->label, [ |
|
37 | + 'id' => 'menuitem-label-'.$item->id, |
|
38 | 38 | 'class' => 'menu-input form-control input-sm', |
39 | 39 | ]) ?> |
40 | 40 | |
@@ -42,12 +42,12 @@ discard block |
||
42 | 42 | </div> |
43 | 43 | <div class="col-sm-6"> |
44 | 44 | <div class="form-group"> |
45 | - <?= Html::label($item->getAttributeLabel('url'), 'menuitem-url-' . $item->id, [ |
|
45 | + <?= Html::label($item->getAttributeLabel('url'), 'menuitem-url-'.$item->id, [ |
|
46 | 46 | 'class' => 'form-label', |
47 | 47 | ]) ?> |
48 | 48 | |
49 | - <?= Html::textInput('MenuItem[' . $item->id . '][url]', $item->url, [ |
|
50 | - 'id' => 'menuitem-url-' . $item->id, |
|
49 | + <?= Html::textInput('MenuItem['.$item->id.'][url]', $item->url, [ |
|
50 | + 'id' => 'menuitem-url-'.$item->id, |
|
51 | 51 | 'class' => 'menu-input form-control input-sm', |
52 | 52 | ]) ?> |
53 | 53 | |
@@ -57,19 +57,19 @@ discard block |
||
57 | 57 | <div class="form-group"> |
58 | 58 | <?= Html::label( |
59 | 59 | $item->getAttributeLabel('description'), |
60 | - 'menuitem-description-' . $item->id, |
|
60 | + 'menuitem-description-'.$item->id, |
|
61 | 61 | ['class' => 'form-label'] |
62 | 62 | ) ?> |
63 | 63 | |
64 | - <?= Html::textarea('MenuItem[' . $item->id . '][description]', $item->description, [ |
|
65 | - 'id' => 'menuitem-description-' . $item->id, |
|
64 | + <?= Html::textarea('MenuItem['.$item->id.'][description]', $item->description, [ |
|
65 | + 'id' => 'menuitem-description-'.$item->id, |
|
66 | 66 | 'class' => 'menu-input form-control input-sm', |
67 | 67 | ]) ?> |
68 | 68 | |
69 | 69 | </div> |
70 | 70 | </div> |
71 | 71 | <div class="col-sm-12"> |
72 | - <?= Html::button('<i class="fa fa-trash"></i> ' . Yii::t('writesdown', 'Remove Menu'), [ |
|
72 | + <?= Html::button('<i class="fa fa-trash"></i> '.Yii::t('writesdown', 'Remove Menu'), [ |
|
73 | 73 | 'data' => [ |
74 | 74 | 'url' => Url::to(['delete-menu-item']), |
75 | 75 | 'id' => $item->id, |
@@ -70,7 +70,7 @@ |
||
70 | 70 | </div> |
71 | 71 | <br/> |
72 | 72 | <?= Html::a( |
73 | - '<i class="fa fa-home"></i> ' . Yii::t( |
|
73 | + '<i class="fa fa-home"></i> '.Yii::t( |
|
74 | 74 | 'writesdown', 'Back to {sitetitle}', |
75 | 75 | ['sitetitle' => Option::get('sitetitle')] |
76 | 76 | ), |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | <?php foreach ($posts as $post): ?> |
93 | 93 | <tr> |
94 | 94 | <td><?= $post->postAuthor->display_name ?></td> |
95 | - <td><?= substr(strip_tags($post->excerpt), 0, 180) . '...' ?></td> |
|
95 | + <td><?= substr(strip_tags($post->excerpt), 0, 180).'...' ?></td> |
|
96 | 96 | <td><?= date('M d, Y H:i:s', strtotime($post->date)) ?></td> |
97 | 97 | <td><?= $post->comment_count ?></td> |
98 | 98 | <td> |
@@ -182,11 +182,11 @@ discard block |
||
182 | 182 | <?php foreach ($comments as $comment): ?> |
183 | 183 | <tr> |
184 | 184 | <td><?= $comment->author ?></td> |
185 | - <td><?= substr(strip_tags($comment->content), 0, 180) . '...' ?></td> |
|
185 | + <td><?= substr(strip_tags($comment->content), 0, 180).'...' ?></td> |
|
186 | 186 | <td> |
187 | 187 | <?= Html::a( |
188 | 188 | '<span class="glyphicon glyphicon-eye-open"></span>', |
189 | - $comment->commentPost->url . '#comment-' . $comment->id, |
|
189 | + $comment->commentPost->url.'#comment-'.$comment->id, |
|
190 | 190 | ['title' => Yii::t('writesdown', 'View Comment')] |
191 | 191 | ) ?> |
192 | 192 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | [ |
58 | 58 | 'attribute' => 'icon', |
59 | 59 | 'format' => 'raw', |
60 | - 'value' => function ($model) { |
|
60 | + 'value' => function($model) { |
|
61 | 61 | return Html::tag('i', '', ['class' => $model->icon]); |
62 | 62 | }, |
63 | 63 | 'filter' => false, |
@@ -79,11 +79,11 @@ discard block |
||
79 | 79 | </div> |
80 | 80 | <?php $this->registerJs('jQuery(".bulk-button").click(function(e){ |
81 | 81 | e.preventDefault(); |
82 | - if(confirm("' . Yii::t('writesdown', 'Are you sure?') . '")){ |
|
82 | + if(confirm("' . Yii::t('writesdown', 'Are you sure?').'")){ |
|
83 | 83 | var ids = $("#post-type-grid-view").yiiGridView("getSelectedRows"); |
84 | 84 | var action = $(this).parents(".form-group").find(".bulk-action").val(); |
85 | 85 | $.ajax({ |
86 | - url: "' . Url::to(["bulk-action"]) . '", |
|
86 | + url: "' . Url::to(["bulk-action"]).'", |
|
87 | 87 | data: { ids: ids, action: action, _csrf: yii.getCsrfToken() }, |
88 | 88 | type:"POST", |
89 | 89 | success: function(data){ |
@@ -173,5 +173,5 @@ |
||
173 | 173 | 'multiple' => (bool)Yii::$app->request->get('multiple', false), |
174 | 174 | 'callback' => Yii::$app->request->get('callback', false), |
175 | 175 | ]); |
176 | -$this->registerJs('jQuery("#media-browser").mediabrowser(' . $options . ')'); ?> |
|
176 | +$this->registerJs('jQuery("#media-browser").mediabrowser('.$options.')'); ?> |
|
177 | 177 |
@@ -67,11 +67,11 @@ |
||
67 | 67 | </div> |
68 | 68 | <?php $this->registerJs('jQuery(".bulk-button").click(function(e){ |
69 | 69 | e.preventDefault(); |
70 | - if(confirm("' . Yii::t("app", "Are you sure?") . '")){ |
|
70 | + if(confirm("' . Yii::t("app", "Are you sure?").'")){ |
|
71 | 71 | var ids = $("#taxonomy-grid-view").yiiGridView("getSelectedRows"); |
72 | 72 | var action = $(this).parents(".form-group").find(".bulk-action").val(); |
73 | 73 | $.ajax({ |
74 | - url: "' . Url::to(["bulk-action"]) . '", |
|
74 | + url: "' . Url::to(["bulk-action"]).'", |
|
75 | 75 | data: { ids: ids, action: action, _csrf: yii.getCsrfToken() }, |
76 | 76 | type:"POST", |
77 | 77 | success: function(response){ |