filsh / yii2-flags
There is no license information available for the latest version (dev-master) of this package.
Flags widget for yii2 framework
dev-master
2015-01-05 23:37 UTC
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-11-29 03:42:26 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> ....