1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01: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;
default:
case 'default':
case 'main':
if(!empty($caption))
{
@ -150,7 +150,17 @@ class theme implements e_theme_render
}
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;