Skip to content

Jimako-e107-plugins/e107-ulflags-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

User Language Flags (ulflags)

An e107 plugin that lets visitors switch the site language from a menu — either as a row of country flags or as a drop-down list.

ulflags is a renamed, standalone copy of the long-running Userlanguage Flags Menu plugin (folder userlanguage_flags_menu), with a much shorter folder name. Behaviour and admin options are identical.

Description

The plugin renders a language selector based on the languages installed on your e107 site. Visitors pick a language and the site switches to it (using e107's standard setlanguage mechanism, so the choice is validated against installed languages).

It can be used in three ways:

  • as an e107 menu (ulflags.php), placed in a menu area via the Menu Manager;
  • via the shortcode {ULFLAGS} in a theme or page;
  • via {ULF_LANGITEM} for full control over the markup from a theme template (templates/ulflags_template.php).

Requirements

  • PHP 7.4 – 8.4
  • e107 v2.4
  • Multi-language site (more than one language installed)

Configuration

Under Admin → User Language Flags:

Preference Description
Show menu title Show or hide the menu caption.
Drop-down instead of flags Render a <select> list instead of flag images.
Flag style Choose one of four bundled flag image sets (0–3).
Flag size Maximum flag width in pixels (1–99).
Align Left / center / right alignment of the flags.

Relationship to userlanguage_flags_menu

ulflags is a standalone plugin with its own folder, classes (ulflags_*), preference namespace, language-constant prefix (ULFLAGS_) and template id. It can be installed independently of the original userlanguage_flags_menu without clashing. Install only one of the two.

History

One of the oldest e107 community plugins, originally by JmoRava / Oxigen (e107.funsite.cz) and maintained since by several authors. See changelog.md.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages