@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link http://www.writesdown.com/ |
|
4 | - * @author Agiel K. Saputra <[email protected]> |
|
5 | - * @copyright Copyright (c) 2015 WritesDown |
|
6 | - * @license http://www.writesdown.com/license/ |
|
7 | - */ |
|
3 | + * @link http://www.writesdown.com/ |
|
4 | + * @author Agiel K. Saputra <[email protected]> |
|
5 | + * @copyright Copyright (c) 2015 WritesDown |
|
6 | + * @license http://www.writesdown.com/license/ |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | use yii\grid\GridView; |
10 | 10 | use yii\helpers\Html; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | 'columns' => [ |
51 | 51 | [ |
52 | 52 | 'class' => 'yii\grid\CheckboxColumn', |
53 | - 'checkboxOptions' => function ($model) { |
|
53 | + 'checkboxOptions' => function($model) { |
|
54 | 54 | if (!Yii::$app->user->can('editor') && $model->author !== Yii::$app->user->id) { |
55 | 55 | return ['disabled' => 'disabled']; |
56 | 56 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | [ |
62 | 62 | 'attribute' => Yii::t('writesdown', 'Preview'), |
63 | 63 | 'format' => 'raw', |
64 | - 'value' => function ($model) { |
|
64 | + 'value' => function($model) { |
|
65 | 65 | /* @var $model common\models\Media */ |
66 | 66 | $metadata = $model->getMeta('metadata'); |
67 | 67 | if (preg_match('/^image\//', $model->mime_type)) { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | [ |
81 | 81 | 'label' => Yii::t('writesdown', 'File Name'), |
82 | 82 | 'format' => 'html', |
83 | - 'value' => function ($model) { |
|
83 | + 'value' => function($model) { |
|
84 | 84 | /* @var $model common\models\Media */ |
85 | 85 | $metadata = $model->getMeta('metadata'); |
86 | 86 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | ], |
90 | 90 | [ |
91 | 91 | 'attribute' => 'username', |
92 | - 'value' => function ($model) { |
|
92 | + 'value' => function($model) { |
|
93 | 93 | return $model->mediaAuthor->username; |
94 | 94 | }, |
95 | 95 | ], |
@@ -98,13 +98,13 @@ discard block |
||
98 | 98 | [ |
99 | 99 | 'class' => 'yii\grid\ActionColumn', |
100 | 100 | 'buttons' => [ |
101 | - 'view' => function ($url, $model) { |
|
101 | + 'view' => function($url, $model) { |
|
102 | 102 | return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', $model->url, [ |
103 | 103 | 'title' => Yii::t('yii', 'View'), |
104 | 104 | 'data-pjax' => '0', |
105 | 105 | ]); |
106 | 106 | }, |
107 | - 'update' => function ($url, $model) { |
|
107 | + 'update' => function($url, $model) { |
|
108 | 108 | if (!Yii::$app->user->can('editor') && $model->author !== Yii::$app->user->id) { |
109 | 109 | return ''; |
110 | 110 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | 'data-pjax' => '0', |
115 | 115 | ]); |
116 | 116 | }, |
117 | - 'delete' => function ($url, $model) { |
|
117 | + 'delete' => function($url, $model) { |
|
118 | 118 | if (!Yii::$app->user->can('editor') && $model->author !== Yii::$app->user->id) { |
119 | 119 | return ''; |
120 | 120 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link http://www.writesdown.com/ |
|
4 | - * @author Agiel K. Saputra <[email protected]> |
|
5 | - * @copyright Copyright (c) 2015 WritesDown |
|
6 | - * @license http://www.writesdown.com/license/ |
|
7 | - */ |
|
3 | + * @link http://www.writesdown.com/ |
|
4 | + * @author Agiel K. Saputra <[email protected]> |
|
5 | + * @copyright Copyright (c) 2015 WritesDown |
|
6 | + * @license http://www.writesdown.com/license/ |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | use dosamigos\datetimepicker\DateTimePicker; |
10 | 10 | use yii\bootstrap\Modal; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link http://www.writesdown.com/ |
|
4 | - * @author Agiel K. Saputra <[email protected]> |
|
5 | - * @copyright Copyright (c) 2015 WritesDown |
|
6 | - * @license http://www.writesdown.com/license/ |
|
7 | - */ |
|
3 | + * @link http://www.writesdown.com/ |
|
4 | + * @author Agiel K. Saputra <[email protected]> |
|
5 | + * @copyright Copyright (c) 2015 WritesDown |
|
6 | + * @license http://www.writesdown.com/license/ |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | use yii\helpers\Html; |
10 | 10 | use yii\helpers\Url; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link http://www.writesdown.com/ |
|
4 | - * @author Agiel K. Saputra <[email protected]> |
|
5 | - * @copyright Copyright (c) 2015 WritesDown |
|
6 | - * @license http://www.writesdown.com/license/ |
|
7 | - */ |
|
3 | + * @link http://www.writesdown.com/ |
|
4 | + * @author Agiel K. Saputra <[email protected]> |
|
5 | + * @copyright Copyright (c) 2015 WritesDown |
|
6 | + * @license http://www.writesdown.com/license/ |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | use yii\helpers\Html; |
10 | 10 | use yii\helpers\Url; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link http://www.writesdown.com/ |
|
4 | - * @author Agiel K. Saputra <[email protected]> |
|
5 | - * @copyright Copyright (c) 2015 WritesDown |
|
6 | - * @license http://www.writesdown.com/license/ |
|
7 | - */ |
|
3 | + * @link http://www.writesdown.com/ |
|
4 | + * @author Agiel K. Saputra <[email protected]> |
|
5 | + * @copyright Copyright (c) 2015 WritesDown |
|
6 | + * @license http://www.writesdown.com/license/ |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | use yii\helpers\ArrayHelper; |
10 | 10 | use yii\helpers\Html; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link http://www.writesdown.com/ |
|
4 | - * @author Agiel K. Saputra <[email protected]> |
|
5 | - * @copyright Copyright (c) 2015 WritesDown |
|
6 | - * @license http://www.writesdown.com/license/ |
|
7 | - */ |
|
3 | + * @link http://www.writesdown.com/ |
|
4 | + * @author Agiel K. Saputra <[email protected]> |
|
5 | + * @copyright Copyright (c) 2015 WritesDown |
|
6 | + * @license http://www.writesdown.com/license/ |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | use yii\helpers\Html; |
10 | 10 | use yii\helpers\Url; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link http://www.writesdown.com/ |
|
4 | - * @author Agiel K. Saputra <[email protected]> |
|
5 | - * @copyright Copyright (c) 2015 WritesDown |
|
6 | - * @license http://www.writesdown.com/license/ |
|
7 | - */ |
|
3 | + * @link http://www.writesdown.com/ |
|
4 | + * @author Agiel K. Saputra <[email protected]> |
|
5 | + * @copyright Copyright (c) 2015 WritesDown |
|
6 | + * @license http://www.writesdown.com/license/ |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | use backend\widgets\RenderMenu; |
10 | 10 | use yii\helpers\ArrayHelper; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link http://www.writesdown.com/ |
|
4 | - * @author Agiel K. Saputra <[email protected]> |
|
5 | - * @copyright Copyright (c) 2015 WritesDown |
|
6 | - * @license http://www.writesdown.com/license/ |
|
7 | - */ |
|
3 | + * @link http://www.writesdown.com/ |
|
4 | + * @author Agiel K. Saputra <[email protected]> |
|
5 | + * @copyright Copyright (c) 2015 WritesDown |
|
6 | + * @license http://www.writesdown.com/license/ |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | use yii\helpers\Html; |
10 | 10 | use yii\helpers\Url; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link http://www.writesdown.com/ |
|
4 | - * @author Agiel K. Saputra <[email protected]> |
|
5 | - * @copyright Copyright (c) 2015 WritesDown |
|
6 | - * @license http://www.writesdown.com/license/ |
|
7 | - */ |
|
3 | + * @link http://www.writesdown.com/ |
|
4 | + * @author Agiel K. Saputra <[email protected]> |
|
5 | + * @copyright Copyright (c) 2015 WritesDown |
|
6 | + * @license http://www.writesdown.com/license/ |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | use yii\helpers\ArrayHelper; |
10 | 10 | use yii\helpers\Html; |