function views_plugin_style_lineage_nested::header in Taxonomy Lineage 7
Same name and namespace in other branches
- 6 views_plugin_style_lineage_nested.inc \views_plugin_style_lineage_nested::header()
1 call to views_plugin_style_lineage_nested::header()
File
- plugins/
views_plugin_style_lineage_nested.inc, line 228 - Views style plugin that allows a view to be rendered as a nested list, based on Lineage's term hierarchy.
Class
- views_plugin_style_lineage_nested
- Implements views_plugin_style.
Code
function header($header, $depth) {
// Use a header tag if possible; else use a class indicating header depth.
if ($depth <= 6) {
return "<h{$depth}>" . stripslashes($header) . "</h{$depth}>\n";
}
else {
return "<span class=\"h{$depth}\">{$header}</span>\n";
}
}