diff --git a/administrator/language/en-GB/com_tags.ini b/administrator/language/en-GB/com_tags.ini index c51f74edc5778..0bf8f9121c372 100644 --- a/administrator/language/en-GB/com_tags.ini +++ b/administrator/language/en-GB/com_tags.ini @@ -122,6 +122,9 @@ COM_TAGS_TAG_FIELD_MODE_NESTED="Nested" COM_TAGS_TAG_LIST_DESCRIPTION_DESC="Optional description to show at the top of the list. For example, this can be used when you have a layout that includes more than one tag." COM_TAGS_TAG_LIST_DESCRIPTION_LABEL="Layout Description" COM_TAGS_TAG_LIST_FIELD_ITEM_DESCRIPTION_LABEL="Item Body" +COM_TAGS_TAG_LIST_MEDIA_ALT_EMPTY_DESC="Decorative Image - no description required" +COM_TAGS_TAG_LIST_MEDIA_ALT_EMPTY_LABEL="No Description" +COM_TAGS_TAG_LIST_MEDIA_ALT_LABEL="Image Description (Alt Text)" COM_TAGS_TAG_LIST_MEDIA_LABEL="Image" COM_TAGS_TAG_LIST_SHOW_DATE_LABEL="Date" COM_TAGS_TAG_LIST_SHOW_HEADINGS_LABEL="Table Headings" diff --git a/components/com_tags/tmpl/tag/default.php b/components/com_tags/tmpl/tag/default.php index c701ffcfd9c7e..bc2d5dc92ce28 100644 --- a/components/com_tags/tmpl/tag/default.php +++ b/components/com_tags/tmpl/tag/default.php @@ -46,7 +46,10 @@ params->get('tag_list_show_tag_description', 1) || $this->params->get('show_description_image', 1)) : ?> params->get('show_description_image', 1) == 1 && $this->params->get('tag_list_image')) : ?> - + params->get('tag_list_image_alt')) && empty($this->params->get('tag_list_image_alt_empty')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('tag_list_image_alt'), ENT_COMPAT, 'UTF-8') . '"'; ?> + > params->get('tag_list_description', '') > '') : ?> params->get('tag_list_description'), '', 'com_tags.tag'); ?> diff --git a/components/com_tags/tmpl/tag/default.xml b/components/com_tags/tmpl/tag/default.xml index 0b093dc91def7..5cc15a3e2eea6 100644 --- a/components/com_tags/tmpl/tag/default.xml +++ b/components/com_tags/tmpl/tag/default.xml @@ -90,6 +90,20 @@ label="COM_TAGS_TAG_LIST_MEDIA_LABEL" /> + + + + params->get('tag_list_show_tag_description', 1) || $this->params->get('show_description_image', 1)) : ?> params->get('show_description_image', 1) == 1 && $this->params->get('tag_list_image')) : ?> - + params->get('tag_list_image_alt')) && empty($this->params->get('tag_list_image_alt_empty')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('tag_list_image_alt'), ENT_COMPAT, 'UTF-8') . '"'; ?> + > params->get('tag_list_description', '') > '') : ?> params->get('tag_list_description'), '', 'com_tags.tag'); ?> diff --git a/components/com_tags/tmpl/tag/list.xml b/components/com_tags/tmpl/tag/list.xml index 7f54c3d272a42..0bdf3ce316625 100644 --- a/components/com_tags/tmpl/tag/list.xml +++ b/components/com_tags/tmpl/tag/list.xml @@ -89,6 +89,20 @@ label="COM_TAGS_TAG_LIST_MEDIA_LABEL" /> + + + + params->get('all_tags_show_description_image') && !empty($descriptionImage)) : ?> + params->get('all_tags_description_image_alt')) && empty($this->params->get('all_tags_description_image_alt_empty')) + ? '' + : 'alt="' . htmlspecialchars($this->params->get('all_tags_description_image_alt'), ENT_COMPAT, 'UTF-8') . '"'; ?>
- + >
diff --git a/components/com_tags/tmpl/tags/default.xml b/components/com_tags/tmpl/tags/default.xml index 33e1ba09248be..baf3d9de557ef 100644 --- a/components/com_tags/tmpl/tags/default.xml +++ b/components/com_tags/tmpl/tags/default.xml @@ -74,6 +74,19 @@ label="COM_TAGS_ALL_TAGS_MEDIA_LABEL" /> + + +