diff --git a/DatepickerBlueThemeAsset.php b/DatepickerBlueThemeAsset.php index 99fe01f..2538595 100644 --- a/DatepickerBlueThemeAsset.php +++ b/DatepickerBlueThemeAsset.php @@ -16,6 +16,7 @@ */ class DatepickerBlueThemeAsset extends AssetBundle { + public $sourcePath = "@bower/persian-datepicker/dist"; public $css = [ 'css/theme/persian-datepicker-blue.css', ]; @@ -25,10 +26,4 @@ class DatepickerBlueThemeAsset extends AssetBundle public $depends = [ 'mrlco\datepicker\DateAsset', ]; - public function init() - { - $s = DIRECTORY_SEPARATOR; - $this->sourcePath = "@bower{$s}persian-datepicker{$s}dist"; - parent::init(); - } } diff --git a/DatepickerCheerupThemeAsset.php b/DatepickerCheerupThemeAsset.php index ee0ad9f..1f4bb9e 100644 --- a/DatepickerCheerupThemeAsset.php +++ b/DatepickerCheerupThemeAsset.php @@ -16,6 +16,7 @@ */ class DatepickerCheerupThemeAsset extends AssetBundle { + public $sourcePath = "@bower/persian-datepicker/dist"; public $css = [ 'css/theme/persian-datepicker-cheerup.css', ]; @@ -25,10 +26,4 @@ class DatepickerCheerupThemeAsset extends AssetBundle public $depends = [ 'mrlco\datepicker\DateAsset', ]; - public function init() - { - $s = DIRECTORY_SEPARATOR; - $this->sourcePath = "@bower{$s}persian-datepicker{$s}dist"; - parent::init(); - } } diff --git a/DatepickerDarkThemeAsset.php b/DatepickerDarkThemeAsset.php index 21256f4..20109d5 100644 --- a/DatepickerDarkThemeAsset.php +++ b/DatepickerDarkThemeAsset.php @@ -16,6 +16,7 @@ */ class DatepickerDarkThemeAsset extends AssetBundle { + public $sourcePath = "@bower/persian-datepicker/dist"; public $css = [ 'css/theme/persian-datepicker-dark.css', ]; @@ -25,10 +26,4 @@ class DatepickerDarkThemeAsset extends AssetBundle public $depends = [ 'mrlco\datepicker\DateAsset', ]; - public function init() - { - $s = DIRECTORY_SEPARATOR; - $this->sourcePath = "@bower{$s}persian-datepicker{$s}dist"; - parent::init(); - } } diff --git a/DatepickerRedblackThemeAsset.php b/DatepickerRedblackThemeAsset.php index 4f838f2..0c32406 100644 --- a/DatepickerRedblackThemeAsset.php +++ b/DatepickerRedblackThemeAsset.php @@ -16,6 +16,7 @@ */ class DatepickerRedblackThemeAsset extends AssetBundle { + public $sourcePath = "@bower/persian-datepicker/dist"; public $css = [ 'css/theme/persian-datepicker-redblack.css', ]; @@ -25,10 +26,4 @@ class DatepickerRedblackThemeAsset extends AssetBundle public $depends = [ 'mrlco\datepicker\DateAsset', ]; - public function init() - { - $s = DIRECTORY_SEPARATOR; - $this->sourcePath = "@bower{$s}persian-datepicker{$s}dist"; - parent::init(); - } }