country() html()

The flag of a country code, or a link with the flag, the code and the country name.

html()->country()

Options

OptionMeaning
$code, $link, $classISO code; a link with %code; classes of the link.

Example

Code

return html()->country('UA') . html()->country('PL') . ' ' . html()->country('DE', '#country-%code');

Notes

  • Flags are the sprites of the bfh-select asset; names come from the geo_countries table.

See also: html/ip, form/country_box