1
0
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:
Cameron
2021-02-19 07:33:05 -08:00
parent a136e3771c
commit c03e0ab066
3 changed files with 18 additions and 7 deletions

View File

@@ -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;
}