diff --git a/src/templates/_components/fields/SeoField_input.twig b/src/templates/_components/fields/SeoField_input.twig index 709d555..08e313b 100644 --- a/src/templates/_components/fields/SeoField_input.twig +++ b/src/templates/_components/fields/SeoField_input.twig @@ -22,12 +22,9 @@ {% endif %} {% if field.tabs.facebook %} {% set tabSelected = false %} - {% include 'seo-fields/_components/fields/_tabs/_facebook.twig' with { tabSelected : tabSelected} %} - {% endif %} - {% if field.tabs.twitter %} - {% set tabSelected = false %} - {% include 'seo-fields/_components/fields/_tabs/_twitter.twig' with { tabSelected : tabSelected} %} + {% include 'seo-fields/_components/fields/_tabs/_social.twig' with { tabSelected : tabSelected} %} {% endif %} + {% if (field.tabs.advanced is defined and field.tabs.advanced) %} {% set tabSelected = false %} {% include 'seo-fields/_components/fields/_tabs/_advanced.twig' with { tabSelected : tabSelected} %} diff --git a/src/templates/_components/fields/SeoField_settings.twig b/src/templates/_components/fields/SeoField_settings.twig index d1e7369..8135249 100644 --- a/src/templates/_components/fields/SeoField_settings.twig +++ b/src/templates/_components/fields/SeoField_settings.twig @@ -29,19 +29,12 @@ }) }} {{ forms.lightswitchField({ - label: "Show Facebook Tab"|t("seo-fields"), + label: "Show Social Media Tab"|t("seo-fields"), id: "showFacebookTab", name: "tabs[facebook]", on: field.tabs|length ? field.tabs.facebook : 1, }) }} - {{ forms.lightswitchField({ - label: "Show Twitter Tab"|t("seo-fields"), - id: "showTwitterTab", - name: "tabs[twitter]", - on: field.tabs|length ? field.tabs.twitter : 1, - }) }} - {{ forms.lightswitchField({ label: "Show advanced tab"|t("seo-fields"), id: "showAdvancedTab", diff --git a/src/templates/_components/fields/_tabs/_facebook.twig b/src/templates/_components/fields/_tabs/_social.twig similarity index 91% rename from src/templates/_components/fields/_tabs/_facebook.twig rename to src/templates/_components/fields/_tabs/_social.twig index 7294c35..e858d55 100644 --- a/src/templates/_components/fields/_tabs/_facebook.twig +++ b/src/templates/_components/fields/_tabs/_social.twig @@ -1,7 +1,7 @@ {% import "_includes/forms" as forms %} - +
{{ "No asset volumes defined"|t("seo-fields") }}.
-