init
This commit is contained in:
23
vendor/dmstr/yii2-adminlte-asset/helpers/AdminLteHelper.php
vendored
Normal file
23
vendor/dmstr/yii2-adminlte-asset/helpers/AdminLteHelper.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace dmstr\helpers;
|
||||
|
||||
use Yii;
|
||||
|
||||
class AdminLteHelper
|
||||
{
|
||||
/**
|
||||
* It allows you to get the name of the css class.
|
||||
* You can add the appropriate class to the body tag for dynamic change the template's appearance.
|
||||
* Note: Use this fucntion only if you override the skin through configuration.
|
||||
* Otherwise you will not get the correct css class of body.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function skinClass()
|
||||
{
|
||||
/** @var \dmstr\web\AdminLteAsset $bundle */
|
||||
$bundle = Yii::$app->assetManager->getBundle('dmstr\web\AdminLteAsset');
|
||||
|
||||
return $bundle->skin;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user