function tagadelic_plugin_style::get_row_class in Views Tagadelic 7.2
Return the token replaced row class for the specified row.
Overrides views_plugin_style::get_row_class
File
- includes/
tagadelic_plugin_style.inc, line 20 - Contains the tagadelic style plugin.
Class
- tagadelic_plugin_style
- Style plugin to render a weighted set of taxonomy terms.
Code
function get_row_class($row_index) {
$classes_string = parent::get_row_class($row_index);
if ($this->cloud_tags) {
$weight = $this->cloud_tags[$row_index]
->get_weight();
$classes_string = implode(" ", array(
$classes_string,
' level' . $weight,
));
}
return $classes_string;
}