From f2a9ffd50fc8475c32bce8e80e9b85844273de38 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 20 Jun 2026 15:48:30 -0500 Subject: [PATCH] fix: show social style/URL fields only when a display position is enabled Added showon conditions to style options and platform URL section so they only appear when topbar, footer, or floating social is enabled. Updated note to indicate at least one URL is required. --- source/language/en-GB/tpl_mokoonyx.ini | 2 +- source/language/en-US/tpl_mokoonyx.ini | 2 +- source/templateDetails.xml | 18 ++++++++++++------ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/source/language/en-GB/tpl_mokoonyx.ini b/source/language/en-GB/tpl_mokoonyx.ini index 7676fa5..25e16e9 100644 --- a/source/language/en-GB/tpl_mokoonyx.ini +++ b/source/language/en-GB/tpl_mokoonyx.ini @@ -292,7 +292,7 @@ TPL_MOKOONYX_SOCIAL_COLOR_THEME="Theme (CSS variables)" TPL_MOKOONYX_SOCIAL_COLOR_BRAND="Brand colours" TPL_MOKOONYX_SOCIAL_COLOR_BLACK="Black" TPL_MOKOONYX_SOCIAL_COLOR_WHITE="White" -TPL_MOKOONYX_SOCIAL_URLS_NOTE="

Enter the full URL for each platform. Leave blank to hide that icon.

" +TPL_MOKOONYX_SOCIAL_URLS_NOTE="

At least one URL is required when a social display position is enabled. Leave unused platforms blank to hide their icons.

" TPL_MOKOONYX_SOCIAL_MAIL_DESC="Use a mailto: link (e.g. mailto:hello@example.com) or a contact page URL." TPL_MOKOONYX_SOCIAL_NAV_LABEL="Social media links" TPL_MOKOONYX_SOCIAL_FACEBOOK="Follow us on Facebook" diff --git a/source/language/en-US/tpl_mokoonyx.ini b/source/language/en-US/tpl_mokoonyx.ini index 86f586d..3e60211 100644 --- a/source/language/en-US/tpl_mokoonyx.ini +++ b/source/language/en-US/tpl_mokoonyx.ini @@ -292,7 +292,7 @@ TPL_MOKOONYX_SOCIAL_COLOR_THEME="Theme (CSS variables)" TPL_MOKOONYX_SOCIAL_COLOR_BRAND="Brand colors" TPL_MOKOONYX_SOCIAL_COLOR_BLACK="Black" TPL_MOKOONYX_SOCIAL_COLOR_WHITE="White" -TPL_MOKOONYX_SOCIAL_URLS_NOTE="

Enter the full URL for each platform. Leave blank to hide that icon.

" +TPL_MOKOONYX_SOCIAL_URLS_NOTE="

At least one URL is required when a social display position is enabled. Leave unused platforms blank to hide their icons.

" TPL_MOKOONYX_SOCIAL_MAIL_DESC="Use a mailto: link (e.g. mailto:hello@example.com) or a contact page URL." TPL_MOKOONYX_SOCIAL_NAV_LABEL="Social media links" TPL_MOKOONYX_SOCIAL_FACEBOOK="Follow us on Facebook" diff --git a/source/templateDetails.xml b/source/templateDetails.xml index 8a15b21..441f3c9 100644 --- a/source/templateDetails.xml +++ b/source/templateDetails.xml @@ -356,22 +356,26 @@ - + + label="TPL_MOKOONYX_SOCIAL_STYLE_LABEL" description="TPL_MOKOONYX_SOCIAL_STYLE_DESC" + showon="social_topbar:1[OR]social_footer:1[OR]social_floating:1"> + label="TPL_MOKOONYX_SOCIAL_SIZE_LABEL" description="TPL_MOKOONYX_SOCIAL_SIZE_DESC" + showon="social_topbar:1[OR]social_footer:1[OR]social_floating:1"> + label="TPL_MOKOONYX_SOCIAL_COLOR_LABEL" description="TPL_MOKOONYX_SOCIAL_COLOR_DESC" + showon="social_topbar:1[OR]social_footer:1[OR]social_floating:1"> @@ -379,8 +383,10 @@ - - + + -- 2.52.0