function mixitup_views_get_rows_classes in MixItUp Views 7
Get classes string for node.
Parameters
int $nid: Node id.
Return value
string Classes string.
1 call to mixitup_views_get_rows_classes()
- template_preprocess_views_view_mixitup in ./
mixitup_views.module - Preprocess function for views_view_mixitup.tpl.php.
File
- ./
mixitup_views.module, line 266 - Provides a Views style plugin for displaying content with Mixitup filtering.
Code
function mixitup_views_get_rows_classes($nid) {
$tids = _mixitup_views_get_node_tids($nid);
$classes = array();
if (!empty($tids)) {
foreach ($tids as $tid) {
$classes[] = 'tid_' . $tid;
mixitup_views_populate_filters($tid, $nid);
}
}
$classes = implode(' ', $classes);
return $classes;
}