From 8e538eebc56d4d3d32cf62aca9030478bd60d548 Mon Sep 17 00:00:00 2001
From: 3D-I <480857+3D-I@users.noreply.github.com>
Date: Tue, 21 Jan 2020 22:48:18 +0100
Subject: [ticket/16316] Fix breadcrumbs markup validation
PHPBB3-16316
---
phpBB/styles/prosilver/template/navbar_header.html | 49 +++++++++++++---------
1 file changed, 29 insertions(+), 20 deletions(-)
diff --git a/phpBB/styles/prosilver/template/navbar_header.html b/phpBB/styles/prosilver/template/navbar_header.html
index 77f5dae0c0..fa750cd49a 100644
--- a/phpBB/styles/prosilver/template/navbar_header.html
+++ b/phpBB/styles/prosilver/template/navbar_header.html
@@ -178,32 +178,41 @@
-
+ {% set MICRODATA = 'itemtype="https://schema.org/ListItem" itemprop="itemListElement" itemscope' %}
{% set navlink_position = 1 %}
-
- -
-
- {L_SITE_HOME}
-
-
- {L_INDEX}
-
-
-
- {navlinks.MICRODATA}>{navlinks.FORUM_NAME}
-
-
-
+
+ {% EVENT overall_header_breadcrumbs_before %}
+
+
-
+
+ {% if U_SITE_HOME %}
+ {{ L_SITE_HOME }}
+ {% endif %}
+
+ {% EVENT overall_header_breadcrumb_prepend %}
+ {% if not U_SITE_HOME %}{% endif %}{{ L_INDEX }}
+
+ {% for navlinks in navlinks %}
+ {% set NAVLINK_NAME = navlinks.BREADCRUMB_NAME | default(navlinks.FORUM_NAME) %}
+ {% set NAVLINK_LINK = navlinks.U_BREADCRUMB | default(navlinks.U_VIEW_FORUM) %}
+
+ {% EVENT overall_header_navlink_prepend %}
+ {{ NAVLINK_NAME }}
+ {% EVENT overall_header_navlink_append %}
+ {% endfor %}
+
+ {% EVENT overall_header_breadcrumb_append %}
-
-
+ {% EVENT overall_header_breadcrumbs_after %}
+
+ {% if S_DISPLAY_SEARCH and not S_IN_SEARCH %}
-
-
- {L_SEARCH}
+
+ {{ lang('SEARCH') }}
-
+ {% endif %}
--
cgit v1.2.3-65-gdbad
From 3d9845ebed5b306c1d96496c7f5d400c2b973135 Mon Sep 17 00:00:00 2001
From: 3D-I <480857+3D-I@users.noreply.github.com>
Date: Fri, 24 Jan 2020 00:19:34 +0100
Subject: [ticket/16316] Fix breadcrumbs markup validation
PHPBB3-16316
---
phpBB/styles/prosilver/template/navbar_header.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/phpBB/styles/prosilver/template/navbar_header.html b/phpBB/styles/prosilver/template/navbar_header.html
index fa750cd49a..bd54f71d41 100644
--- a/phpBB/styles/prosilver/template/navbar_header.html
+++ b/phpBB/styles/prosilver/template/navbar_header.html
@@ -186,18 +186,18 @@
{% if U_SITE_HOME %}
- {{ L_SITE_HOME }}
+ {{ L_SITE_HOME }}
{% endif %}
{% EVENT overall_header_breadcrumb_prepend %}
- {% if not U_SITE_HOME %}{% endif %}{{ L_INDEX }}
+ {% if not U_SITE_HOME %}{% endif %}{{ L_INDEX }}
{% for navlinks in navlinks %}
{% set NAVLINK_NAME = navlinks.BREADCRUMB_NAME | default(navlinks.FORUM_NAME) %}
{% set NAVLINK_LINK = navlinks.U_BREADCRUMB | default(navlinks.U_VIEW_FORUM) %}
{% EVENT overall_header_navlink_prepend %}
- {{ NAVLINK_NAME }}
+ {{ NAVLINK_NAME }}
{% EVENT overall_header_navlink_append %}
{% endfor %}
--
cgit v1.2.3-65-gdbad