1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Issue #4489 - make sure breadcrumb only displays when 'default' or 'main' styles are rendered.

This commit is contained in:
Cameron
2021-04-21 16:51:40 -07:00
parent e5ff5f53c8
commit 7ff45abe36

View File

@@ -136,8 +136,8 @@ class theme implements e_theme_render
break; break;
case 'default':
default: case 'main':
if(!empty($caption)) if(!empty($caption))
{ {
@@ -150,7 +150,17 @@ class theme implements e_theme_render
} }
echo $text; echo $text;
// code to be executed if n is different from all labels; break;
default:
if(!empty($caption))
{
echo '<h2 class="caption">'.$caption.'</h2>';
}
echo $text;
} }
return null; return null;