@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | use yii\web\AssetBundle; |
13 | 13 | |
14 | -class ImageAsset extends AssetBundle{ |
|
14 | +class ImageAsset extends AssetBundle { |
|
15 | 15 | public $sourcePath = '@inblank/image/assets'; |
16 | 16 | public $css = [ |
17 | 17 | 'styles.css', |
@@ -39,22 +39,22 @@ |
||
39 | 39 | if (!isset($form->options['enctype'])) { |
40 | 40 | $form->options['enctype'] = 'multipart/form-data'; |
41 | 41 | } |
42 | - $str = '<div class="upload-image-preview" style="background-image: url(' . $this->model->imageUrl . ')"></div>' . |
|
42 | + $str = '<div class="upload-image-preview" style="background-image: url('.$this->model->imageUrl.')"></div>'. |
|
43 | 43 | |
44 | - '<div class="upload-image-control">' . |
|
44 | + '<div class="upload-image-control">'. |
|
45 | 45 | |
46 | - '<a class="btn btn-primary upload-image-change" title="' . $this->messages['change'] . '">' . |
|
47 | - Html::activeFileInput($this->model, $this->attribute, $this->options) . |
|
48 | - '<span class="glyphicon glyphicon-save"></span>' . |
|
49 | - '</a>' . |
|
46 | + '<a class="btn btn-primary upload-image-change" title="'.$this->messages['change'].'">'. |
|
47 | + Html::activeFileInput($this->model, $this->attribute, $this->options). |
|
48 | + '<span class="glyphicon glyphicon-save"></span>'. |
|
49 | + '</a>'. |
|
50 | 50 | |
51 | - '<a class="btn btn-danger upload-image-clear" title="' . $this->messages['clear'] . '">' . |
|
52 | - '<span class="glyphicon glyphicon-trash"></span>' . |
|
53 | - '</a>' . |
|
51 | + '<a class="btn btn-danger upload-image-clear" title="'.$this->messages['clear'].'">'. |
|
52 | + '<span class="glyphicon glyphicon-trash"></span>'. |
|
53 | + '</a>'. |
|
54 | 54 | |
55 | - '<a class="btn btn-success upload-image-reset" title="' . $this->messages['reset'] . '">' . |
|
56 | - '<span class="glyphicon glyphicon-repeat"></span>' . |
|
57 | - '</a>' . |
|
55 | + '<a class="btn btn-success upload-image-reset" title="'.$this->messages['reset'].'">'. |
|
56 | + '<span class="glyphicon glyphicon-repeat"></span>'. |
|
57 | + '</a>'. |
|
58 | 58 | |
59 | 59 | '</div>'; |
60 | 60 |