@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | return $item; |
| 140 | 140 | } |
| 141 | 141 | if (!isset ($item['label'])) { |
| 142 | - throw new InvalidConfigException ("The 'label' option is required."); |
|
| 142 | + throw new InvalidConfigException("The 'label' option is required."); |
|
| 143 | 143 | } |
| 144 | 144 | $encodeLabel = isset ($item['encode']) ? $item['encode'] : $this->encodeLabels; |
| 145 | 145 | |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | $subItems = $this->renderItems($subItems); |
| 171 | - if($subItems){ |
|
| 171 | + if ($subItems) { |
|
| 172 | 172 | $submenuTemplate = ArrayHelper::getValue($item, 'submenuTemplate', $this->submenuTemplate); |
| 173 | 173 | $subItems = strtr($submenuTemplate, [ |
| 174 | 174 | '{items}' => $this->renderItems($subItems), |
@@ -4,25 +4,25 @@ |
||
| 4 | 4 | * @copyright Copyright (c) 2012 TintSoft Technology Co. Ltd. |
| 5 | 5 | * @license http://www.tintsoft.com/license/ |
| 6 | 6 | */ |
| 7 | - namespace xutl\inspinia; |
|
| 7 | + namespace xutl\inspinia; |
|
| 8 | 8 | |
| 9 | - use yii\web\View; |
|
| 10 | - use yii\web\AssetBundle; |
|
| 9 | + use yii\web\View; |
|
| 10 | + use yii\web\AssetBundle; |
|
| 11 | 11 | |
| 12 | - class PaceAsset extends AssetBundle{ |
|
| 13 | - public $sourcePath = '@yuncms/admin/resources/assets'; |
|
| 12 | + class PaceAsset extends AssetBundle{ |
|
| 13 | + public $sourcePath = '@yuncms/admin/resources/assets'; |
|
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * 发布参数 |
|
| 17 | - * |
|
| 18 | - * @var array |
|
| 19 | - */ |
|
| 20 | - public $jsOptions = [ |
|
| 21 | - 'position' => View::POS_HEAD, |
|
| 22 | - 'data-pace-options' => ['restartOnRequestAfter' => true] |
|
| 23 | - ]; |
|
| 15 | + /** |
|
| 16 | + * 发布参数 |
|
| 17 | + * |
|
| 18 | + * @var array |
|
| 19 | + */ |
|
| 20 | + public $jsOptions = [ |
|
| 21 | + 'position' => View::POS_HEAD, |
|
| 22 | + 'data-pace-options' => ['restartOnRequestAfter' => true] |
|
| 23 | + ]; |
|
| 24 | 24 | |
| 25 | - public $js = [ |
|
| 26 | - 'js/plugins/pace/pace.min.js' |
|
| 27 | - ]; |
|
| 28 | - } |
|
| 29 | 25 | \ No newline at end of file |
| 26 | + public $js = [ |
|
| 27 | + 'js/plugins/pace/pace.min.js' |
|
| 28 | + ]; |
|
| 29 | + } |
|
| 30 | 30 | \ No newline at end of file |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | use yii\web\View; |
| 10 | 10 | use yii\web\AssetBundle; |
| 11 | 11 | |
| 12 | - class PaceAsset extends AssetBundle{ |
|
| 12 | + class PaceAsset extends AssetBundle { |
|
| 13 | 13 | public $sourcePath = '@yuncms/admin/resources/assets'; |
| 14 | 14 | |
| 15 | 15 | /** |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. |
| 39 | 39 | * @since 2.0.1 |
| 40 | 40 | */ |
| 41 | - public $footerOptions =[]; |
|
| 41 | + public $footerOptions = []; |
|
| 42 | 42 | |
| 43 | 43 | public $closeButton = true; |
| 44 | 44 | |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | protected function renderTools() |
| 135 | 135 | { |
| 136 | 136 | $tools = ''; |
| 137 | - if($this->collapseButton !== false){ |
|
| 137 | + if ($this->collapseButton !== false) { |
|
| 138 | 138 | $tools .= '<a class="collapse-link"><i class="fa fa-chevron-up"></i></a>'; |
| 139 | 139 | } |
| 140 | 140 | if ($this->closeButton !== false) { |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | |
| 61 | 61 | foreach ($flashes as $type => $data) { |
| 62 | 62 | if (isset($this->alertTypes[$type])) { |
| 63 | - $data = (array) $data; |
|
| 63 | + $data = (array)$data; |
|
| 64 | 64 | foreach ($data as $i => $message) { |
| 65 | 65 | /* initialize css class for each alert box */ |
| 66 | 66 | $this->options['class'] = $this->alertTypes[$type] . $appendCss; |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | } |
| 51 | 51 | $this->parts['{img}'] = Html::img($src, $options); |
| 52 | 52 | FilestyleAsset::register($this->form->view); |
| 53 | - return parent::fileInput($options).Plupload::widget(['url'=>'url']); |
|
| 53 | + return parent::fileInput($options) . Plupload::widget(['url'=>'url']); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | /** |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | use yii\helpers\Url; |
| 3 | 3 | use yii\helpers\Html; |
| 4 | - ?> |
|
| 4 | + ?> |
|
| 5 | 5 | <li class="nav-header"> |
| 6 | 6 | <div class="logo-element-main"> |
| 7 | 7 | YUNCMS |