filsh/yii2-flags

There is no license information available for the latest version (dev-master) of this package.

Flags widget for yii2 framework

Installs: 7 077

Dependents: 0

Suggesters: 0

Security: 0

Stars: 16

Watchers: 4

Forks: 6

Language:CSS

dev-master 2015-01-05 23:37 UTC

This package is auto-updated.

Last update: 2024-03-29 02:21:02 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>
....