* @since 1.0 */ class StarRatingThemeAsset extends AssetBundle { /** * @inheritdoc */ public $sourcePath = '@vendor/kartik-v/bootstrap-star-rating'; /** * @inheritdoc */ public function init() { $this->depends = array_merge($this->depends, ['kartik\rating\StarRatingAsset']); parent::init(); } /** * Add star rating theme file * * @param string $theme the theme file name */ public function addTheme($theme) { $this->js[] = "themes/{$theme}/theme." . (YII_DEBUG ? "js" : "min.js"); $this->css[] = "themes/{$theme}/theme." . (YII_DEBUG ? "css" : "min.css"); } }