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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user