Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Feb 2, 2017
1 parent a9126d6 commit fd4b427
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Asset.php
Expand Up @@ -28,7 +28,6 @@ class Asset extends AssetBundle
* {@inheritdoc}
*/
public $js = [
'js/custom.js',
];

/**
Expand Down
17 changes: 17 additions & 0 deletions src/widgets/Featured.php
Expand Up @@ -2,12 +2,29 @@

namespace hiqdev\themes\sailor\widgets;

use hiqdev\themes\sailor\FlexSliderAsset;
use yii\base\Widget;

class Featured extends Widget
{

public function init()
{
parent::init();
$this->registerJS();
}

public function run()
{
return $this->render('Featured');
}

protected function registerJS()
{
$view = $this->getView();
FlexSliderAsset::register($view);
$view->registerJs("
");
}
}

0 comments on commit fd4b427

Please sign in to comment.