nonameffh / yii2-flags
This package is abandoned and no longer maintained.
No replacement package was suggested.
Flags widget for yii2 framework
0.1.2.4
2018-06-13 13:30 UTC
Requires
- yiisoft/yii2: 2.0.*
This package is not auto-updated.
Last update: 2023-03-24 13:49:55 UTC
README
All icons found in https://www.gosquared.com/resources/flag-icons/ Sprite generated by http://ru.spritegen.website-performance.org/
Example usage
<?= Flags::widget([ 'flag' => 'UA', 'type' => Flags::FLAT_24, 'useSprite' => false // use sprite image? default is false ]); ?>
this code generate html
<style> .flag-UA{background-image: url("/assets/bae1ba2a/flat/24/UA.png");display: inline-block;width:24px;height:24px;} </style> .... <span id="w4" class="flags flag-UA"></span> ....