-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
152 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2016 | ||
* @package yii2-widgets | ||
* @subpackage yii2-widget-rating | ||
* @version 1.0.5 | ||
*/ | ||
|
||
namespace kartik\file; | ||
|
||
use kartik\base\AssetBundle; | ||
|
||
/** | ||
* DomPurify asset bundle for FileInput Widget | ||
* | ||
* @author Kartik Visweswaran <kartikv2@gmail.com> | ||
* @since 1.0 | ||
*/ | ||
class DomPurifyAsset extends AssetBundle | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public function init() | ||
{ | ||
$this->setSourcePath('@vendor/kartik-v/bootstrap-fileinput'); | ||
$this->setupAssets('js', ['js/plugins/purify']); | ||
parent::init(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2016 | ||
* @package yii2-widgets | ||
* @subpackage yii2-widget-rating | ||
* @version 1.0.5 | ||
*/ | ||
|
||
namespace kartik\file; | ||
|
||
use kartik\base\AssetBundle; | ||
|
||
/** | ||
* Theme Asset bundle for StarRating Widget | ||
* | ||
* @author Kartik Visweswaran <kartikv2@gmail.com> | ||
* @since 1.0 | ||
*/ | ||
class FileInputThemeAsset extends AssetBundle | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public $sourcePath = '@vendor/kartik-v/bootstrap-fileinput'; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function init() | ||
{ | ||
$this->depends = array_merge($this->depends, ['kartik\rating\FileInputAsset']); | ||
parent::init(); | ||
} | ||
|
||
/** | ||
* Add star rating theme file | ||
* | ||
* @param string $theme the theme file name | ||
*/ | ||
public function addTheme($theme) | ||
{ | ||
$this->css[] = "css/theme-{$theme}.css"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2016 | ||
* @package yii2-widgets | ||
* @subpackage yii2-widget-rating | ||
* @version 1.0.5 | ||
*/ | ||
|
||
namespace kartik\file; | ||
|
||
use kartik\base\AssetBundle; | ||
|
||
/** | ||
* Sortable asset bundle for FileInput Widget | ||
* | ||
* @author Kartik Visweswaran <kartikv2@gmail.com> | ||
* @since 1.0 | ||
*/ | ||
class SortableAsset extends AssetBundle | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public function init() | ||
{ | ||
$this->setSourcePath('@vendor/kartik-v/bootstrap-fileinput'); | ||
$this->setupAssets('js', ['js/plugins/sortable']); | ||
parent::init(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,10 @@ | |
"psr-4": { | ||
"kartik\\file\\": "" | ||
} | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0.x-dev" | ||
} | ||
} | ||
} |