function theme_drupagram_likes_data in Drupagram 6
Same name and namespace in other branches
- 7 drupagram.theme.inc \theme_drupagram_likes_data()
Theme the likes items only
2 theme calls to theme_drupagram_likes_data()
- drupagram_views_handler_field_likes::render in views/
drupagram_views_handler_field_likes.inc - theme_drupagram_likes in ./
drupagram.theme.inc - Theme the likes data
File
- ./
drupagram.theme.inc, line 28 - Gathers all the theme functions
Code
function theme_drupagram_likes_data($variables) {
$output = '';
$items = $variables['data'];
if (is_array($items) && !empty($items)) {
$output .= '<div class="drupagram-likes-data">';
foreach ($items as $key => $item) {
$output .= theme('drupagram_likes_data_item', $item);
}
$output .= '</div>';
}
return $output;
}