Hello!
I've added a few new settings to Global Gateway block:
1) Region
- None
- Select list (by default)
- select2boxes (if module is enabled)
1.1) Flags icons checkbox (if region widget set to select2boxes, and both select2boxes and flags modules are enabled)
Adds flags icons to countries.
2) Languages
- None
- Language switcher link (by default)
2.1) Behavior for untranslated content
2.2) Limit languages to region
2.3) Use native names
These settings are separate for each block. Older Global Gateway blocks will work well.
Also, I've made the small refactoring.
Comments
Comment #2
kovden commentedComment #3
kovden commentedUpdated patch.
Comment #4
kovden commentedMakes settings' table draggable.
Comment #5
matsbla commentedI just made some small changes in labels
Comment #6
kovden commentedComment #7
kovden commentedThe patch with updated dependency.
Comment #8
kovden commentedBug fix.
Comment #9
kovden commentedFixed undefined indexes and block fields order.
Comment #10
kovden commentedRe-upload the patch.
Comment #11
kovden commentedFix 'weight' notice and other warnings
Comment #12
kovden commentedFix body class update & region code detection by session issues.
Comment #13
kovden commentedMake body CSS class (region-langcode) always lowercase.
Comment #14
kovden commentedFixed a few warnings and add checks.
Comment #16
matsbla commentedThanks for this great work!