pashkinz92 / yii2-outdated-browser
A Yii2 widget for outdated-browser
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/outdated-browser: 1.1.0
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-12-29 04:59:04 UTC
README
Usage of this plugin is really simple, just include it in your composer.json
like so:
php composer.phar require --prefer-dist pashkinz92/yii2-outdated-browser "*"
<?= pashkinz92\outdatedBrowser\OutdatedBrowser::widget() ?>
Setting the parameters
The outdated browser plugin accepts four parameters which can be provied as class vars like so:
<?= pashkinz92\outdatedBrowser\OutdatedBrowser::widget(['language' => 'ar', 'bgColor' => '#f25648']) ?>
Using this only for IE7
Using this only for IE7 can be very useful especially since Bootstrap 3.x supports IE8+
Since Yii2, by default, only uses JQuery 2.2 you must actually add a line to your composer to make this work:
"bower-asset/jquery": "~1.11@stable",
And then when calling the plugin you simply put:
<?= pashkinz92\outdatedBrowser\OutdatedBrowser::widget(['onlyIe7' => true]) ?>