From: Marcel Werk Date: Fri, 4 Dec 2020 11:27:04 +0000 (+0100) Subject: Adjusted handling of empty breadcrumbs X-Git-Tag: 5.4.0_Alpha_1~566 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea631258e9c5f143d2001a3a9bb720df780698bd;p=GitHub%2FWoltLab%2FWCF.git Adjusted handling of empty breadcrumbs --- 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}