mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Issue #4489 - make sure breadcrumb only displays when 'default' or 'main' styles are rendered.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user