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

kovden created an issue. See original summary.

kovden’s picture

Status: Active » Needs review
StatusFileSize
new10.13 KB
kovden’s picture

Title: Add Region widget and Link settings for a block » Add Region widget, flags icons and Link settings for a block
Issue summary: View changes
StatusFileSize
new14.86 KB

Updated patch.

kovden’s picture

Title: Add Region widget, flags icons and Link settings for a block » Add Region widget, Languages widget and flags icons settings for a block
Issue summary: View changes
StatusFileSize
new14.77 KB

Makes settings' table draggable.

matsbla’s picture

kovden’s picture

Title: Add Region widget, Languages widget and flags icons settings for a block » Add more settings for a block + code style fix
Issue summary: View changes
StatusFileSize
new55.69 KB
kovden’s picture

The patch with updated dependency.

kovden’s picture

kovden’s picture

Fixed undefined indexes and block fields order.

kovden’s picture

Re-upload the patch.

kovden’s picture

Fix 'weight' notice and other warnings

kovden’s picture

Fix body class update & region code detection by session issues.

kovden’s picture

Make body CSS class (region-langcode) always lowercase.

kovden’s picture

Fixed a few warnings and add checks.

  • matsbla committed 8048558 on 8.x-1.x authored by kovden
    Issue #2978838 by kovden, matsbla: Add more settings for a block + code...
matsbla’s picture

Status: Needs review » Fixed

Thanks for this great work!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.