mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 21:02:09 +02:00
'styleCount' info added to all theme tablestyle() calls. 'styleCount' keeps count of the number of times the current style has been rendered. Usage example added to the bootstrap3 theme. Core news view template updated to use tablestyle caption correctly.
This commit is contained in:
@@ -144,6 +144,11 @@ class theme implements e_theme_render
|
||||
echo '<h2 class="caption">'.$caption.'</h2>';
|
||||
}
|
||||
|
||||
if($info['styleCount'] === 1) // add the breadcrumb the first time the 'default' style is rendered.
|
||||
{
|
||||
echo '{---BREADCRUMB---}';
|
||||
}
|
||||
|
||||
echo $text;
|
||||
// code to be executed if n is different from all labels;
|
||||
}
|
||||
|
Reference in New Issue
Block a user