From ea631258e9c5f143d2001a3a9bb720df780698bd Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 4 Dec 2020 12:27:04 +0100 Subject: [PATCH] Adjusted handling of empty breadcrumbs --- com.woltlab.wcf/templates/ampFooter.tpl | 7 +++++-- com.woltlab.wcf/templates/pageMenuMobile.tpl | 21 +++++++++++--------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/com.woltlab.wcf/templates/ampFooter.tpl b/com.woltlab.wcf/templates/ampFooter.tpl index b94e36991c..c76cd1d636 100644 --- a/com.woltlab.wcf/templates/ampFooter.tpl +++ b/com.woltlab.wcf/templates/ampFooter.tpl @@ -42,8 +42,11 @@ diff --git a/com.woltlab.wcf/templates/pageMenuMobile.tpl b/com.woltlab.wcf/templates/pageMenuMobile.tpl index c43dd23c07..7dc604ebb5 100644 --- a/com.woltlab.wcf/templates/pageMenuMobile.tpl +++ b/com.woltlab.wcf/templates/pageMenuMobile.tpl @@ -63,15 +63,18 @@ {content} {assign var=__breadcrumbsDepth value=0} {foreach from=$__wcf->getBreadcrumbs() item=$breadcrumb} - - {assign var=__breadcrumbsDepth value=$__breadcrumbsDepth + 1} + {* skip breadcrumbs that do not expose a visible label *} + {if $breadcrumb->getLabel()} + + {assign var=__breadcrumbsDepth value=$__breadcrumbsDepth + 1} + {/if} {/foreach} {/content} {/hascontent} -- 2.20.1