summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-05 15:34:31 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-05 15:34:31 +0100
commitcbfe62da3bb81e1a3f34bb061352579c8913370e (patch)
tree5ea97ad34a5bbd77657eff1c466871711774aa53 /includes
parentb9c0eeeccd91fd360dd26f5368199cac8ec4cdeb (diff)
downloadusers-cbfe62da3bb81e1a3f34bb061352579c8913370e.tar.gz
users-cbfe62da3bb81e1a3f34bb061352579c8913370e.tar.bz2
users-cbfe62da3bb81e1a3f34bb061352579c8913370e.zip
Add CSS flag dropdown select with lipis flag-icons
- css/flag-icons.css: lipis 4x3 set, 1x1 stripped, paths → ../icons/flags/ - countries_inc.php: asort, Smarty assigns, loadCss (PKG_PATH not PKG_URL); PHP files reduce to single require() - flag_select_inc.tpl: custom dropdown with .fi CSS flags, search filter, jQuery open/close; fsName/fsValue/fsId/fsSize; min-width 300px; line-height:1.5em on flag spans - html_head_inc.tpl placeholder; display templates keep {biticon istyle=flag} Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'includes')
-rw-r--r--includes/countries_inc.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/countries_inc.php b/includes/countries_inc.php
index a59cb12..c711720 100644
--- a/includes/countries_inc.php
+++ b/includes/countries_inc.php
@@ -526,3 +526,14 @@ $bwIso3166 = [
// Territories without clean entry: cp (Clipperton), dg (Diego Garcia), ic (Canary Islands)
// Placeholder: xx (unknown flag)
];
+
+asort( $bwCountries );
+
+global $gBitSmarty, $gBitThemes;
+if (!empty($gBitSmarty)) {
+ $gBitSmarty->assign( 'countries', $bwCountries );
+ $gBitSmarty->assign( 'countryFlags', $bwIso3166 );
+ if (!empty($gBitThemes)) {
+ $gBitThemes->loadCss( USERS_PKG_PATH.'css/flag-icons.css' );
+ }
+}