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:
parent
e5ff5f53c8
commit
7ff45abe36
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user