From 4bfe104f0d555c60dceb101f8a57cb4f994d52ba Mon Sep 17 00:00:00 2001 From: Michael Koontz Date: Sat, 21 Oct 2023 22:41:51 +0300 Subject: [PATCH] Updating FontAwesome Icons in Admin area Some FontAwesome icons do not work properly when other extensions are added to Joomla. These changes are for compatability with newer versions of Joomla and FontAwesome 5. Some important icons get broken sometimes arrows for the spacer particle TM (trademark) for the branding particle For other particles that utilize the pencil, copy, trash FA icons For the Branding particle located in: engines\common\nucleus\particles branding.yaml branding.html.twig In the Gantry 5 it has the class "fa fa-fw fa-trademark" on the left side menu of particles but "fas fa-fw fa-trademark" is more compatible. When the branding particle is added to a layout, it again has the class "fa fa-trademark", and changing it to "fas fa-trademark" fixes the problem. However, I'm unable to figure out where to make these changes for this particle so it displays properly. I am uanble to pinpoint exactly what extensions trigger this issue but I do know making these changes fixes it and the changes are still compatible with a fresh install of Gantry 5. Just need to fix the Branding particle. --- .../forms/fields/collection/keyvalue.html.twig | 4 ++-- .../templates/forms/fields/collection/list.html.twig | 10 +++++----- platforms/common/templates/menu/list.html.twig | 2 +- platforms/common/templates/modals/particle.html.twig | 2 +- .../pages/configurations/layouts/create.html.twig | 2 +- .../configurations/layouts/particle-card.html.twig | 2 +- .../pages/configurations/settings/field.html.twig | 2 +- platforms/common/templates/pages/menu/edit.html.twig | 2 +- .../common/templates/pages/menu/menuitem.html.twig | 2 +- .../common/templates/pages/menu/particle.html.twig | 2 +- .../templates/pages/positions/particle.html.twig | 2 +- .../partials/configuration-selector.html.twig | 2 +- .../gantry5/admin/templates/modals/widget.html.twig | 2 +- .../pages/configurations/content/field.html.twig | 2 +- 14 files changed, 19 insertions(+), 19 deletions(-) diff --git a/platforms/common/templates/forms/fields/collection/keyvalue.html.twig b/platforms/common/templates/forms/fields/collection/keyvalue.html.twig index ce053a62f..734785381 100644 --- a/platforms/common/templates/forms/fields/collection/keyvalue.html.twig +++ b/platforms/common/templates/forms/fields/collection/keyvalue.html.twig @@ -13,7 +13,7 @@ - + {% endfor %} {% endfor %} @@ -30,7 +30,7 @@ - + diff --git a/platforms/common/templates/forms/fields/collection/list.html.twig b/platforms/common/templates/forms/fields/collection/list.html.twig index be8d9efba..03785d640 100644 --- a/platforms/common/templates/forms/fields/collection/list.html.twig +++ b/platforms/common/templates/forms/fields/collection/list.html.twig @@ -29,7 +29,7 @@ > {{ title }} - +
{{ block('collection_fields') }} @@ -70,9 +70,9 @@ {% set itemValue = field.value == field.key ? key : val[field.value] %} {% if can_reorder %}{% endif %} {{ itemValue }} - {% if can_remove %}{% endif %} + {% if can_remove %}{% endif %} {% if can_addnew %}{% endif %} - + {% else %} {% block collection_fields %} @@ -112,9 +112,9 @@
  • {% if can_reorder %}{% endif %} New item - {% if can_remove %}{% endif %} + {% if can_remove %}{% endif %} {% if can_addnew %}{% endif %} - +
  • {% if can_addnew %}{% endif %} diff --git a/platforms/common/templates/menu/list.html.twig b/platforms/common/templates/menu/list.html.twig index 956f36191..b7ba0325e 100644 --- a/platforms/common/templates/menu/list.html.twig +++ b/platforms/common/templates/menu/list.html.twig @@ -31,4 +31,4 @@ {% endfor -%} - + diff --git a/platforms/common/templates/modals/particle.html.twig b/platforms/common/templates/modals/particle.html.twig index 1e33290ec..d46721279 100644 --- a/platforms/common/templates/modals/particle.html.twig +++ b/platforms/common/templates/modals/particle.html.twig @@ -24,7 +24,7 @@

    {{ item.title }} - + {{ item.options.type }} {% if particle.form.fields.enabled %} {% include 'forms/fields/enable/enable.html.twig' with {'name': prefix ~ 'enabled', 'field': particle.form.fields.enabled, 'value': item.options.particle.enabled, 'default': 1} %} diff --git a/platforms/common/templates/pages/configurations/layouts/create.html.twig b/platforms/common/templates/pages/configurations/layouts/create.html.twig index ff1d2cfcd..edf7ee4d6 100644 --- a/platforms/common/templates/pages/configurations/layouts/create.html.twig +++ b/platforms/common/templates/pages/configurations/layouts/create.html.twig @@ -3,7 +3,7 @@ {% block gantry %}

    {{ 'GANTRY5_PLATFORM_NEW_LAYOUT'|trans }} - + {{ 'GANTRY5_PLATFORM_SAVE'|trans }} {{ 'GANTRY5_PLATFORM_IMPORT'|trans }} diff --git a/platforms/common/templates/pages/configurations/layouts/particle-card.html.twig b/platforms/common/templates/pages/configurations/layouts/particle-card.html.twig index 046360555..190281874 100644 --- a/platforms/common/templates/pages/configurations/layouts/particle-card.html.twig +++ b/platforms/common/templates/pages/configurations/layouts/particle-card.html.twig @@ -2,7 +2,7 @@

    {% if editable %} {{ item.title|trim }} - + {% else %} {{ title }} {% endif %} diff --git a/platforms/common/templates/pages/configurations/settings/field.html.twig b/platforms/common/templates/pages/configurations/settings/field.html.twig index 3e8d8e390..406a252ed 100644 --- a/platforms/common/templates/pages/configurations/settings/field.html.twig +++ b/platforms/common/templates/pages/configurations/settings/field.html.twig @@ -12,7 +12,7 @@ {{ data.data[title] }} - + {% else %} {{ 'GANTRY5_PLATFORM_EDIT'|trans }} {% endif %} diff --git a/platforms/common/templates/pages/menu/edit.html.twig b/platforms/common/templates/pages/menu/edit.html.twig index f3c210f71..11b1d68d3 100644 --- a/platforms/common/templates/pages/menu/edit.html.twig +++ b/platforms/common/templates/pages/menu/edit.html.twig @@ -7,7 +7,7 @@ {{ data.settings.title }} - + {% if blueprints.form.fields.enabled %} {% include 'forms/fields/enable/enable.html.twig' with {'default': true, 'name': 'enabled', 'field': blueprints.form.fields.enabled, 'value': data.enabled} %} {% endif %} diff --git a/platforms/common/templates/pages/menu/menuitem.html.twig b/platforms/common/templates/pages/menu/menuitem.html.twig index 9a9353d42..f18d53bf4 100644 --- a/platforms/common/templates/pages/menu/menuitem.html.twig +++ b/platforms/common/templates/pages/menu/menuitem.html.twig @@ -8,7 +8,7 @@ {{ item.getEscapedTitles(false)|join(' ')|raw }} {{ data.title }} - + {% if blueprints.fields['.enabled'] %} {% include 'forms/fields/enable/enable.html.twig' with {'default': true, 'name': 'enabled', 'field': blueprints.fields['.enabled'], 'value': data.enabled} %} {% endif %} diff --git a/platforms/common/templates/pages/menu/particle.html.twig b/platforms/common/templates/pages/menu/particle.html.twig index 39c0f1c11..415a96e32 100644 --- a/platforms/common/templates/pages/menu/particle.html.twig +++ b/platforms/common/templates/pages/menu/particle.html.twig @@ -23,7 +23,7 @@

    {{ item.title }} - + {{ item.options.type }} {% if particle.form.fields.enabled %} {% include 'forms/fields/enable/enable.html.twig' with {'name': prefix ~ 'enabled', 'field': particle.form.fields.enabled, 'value': item.options.particle.enabled, 'default': 1} %} diff --git a/platforms/common/templates/pages/positions/particle.html.twig b/platforms/common/templates/pages/positions/particle.html.twig index 4c425d86b..16834b5f3 100644 --- a/platforms/common/templates/pages/positions/particle.html.twig +++ b/platforms/common/templates/pages/positions/particle.html.twig @@ -27,7 +27,7 @@

    {{ item.title }} - + {{ item.options.type }} {% if particle.form.fields.enabled %} {% include 'forms/fields/enable/enable.html.twig' with {'name': prefix ~ 'enabled', 'field': particle.form.fields.enabled, 'value': item.options.particle.enabled, 'default': 1} %} diff --git a/platforms/common/templates/partials/configuration-selector.html.twig b/platforms/common/templates/partials/configuration-selector.html.twig index b4ea9ea8b..a972b8e0d 100644 --- a/platforms/common/templates/partials/configuration-selector.html.twig +++ b/platforms/common/templates/partials/configuration-selector.html.twig @@ -27,7 +27,7 @@ > {{ selected_title }} -