You are here

function theme_drupagram_likes_data in Drupagram 7

Same name and namespace in other branches
  1. 6 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 ./drupagram_views_field_handlers.inc
Render the field.
theme_drupagram_likes in ./drupagram.theme.inc
Theme the likes data

File

./drupagram.theme.inc, line 60
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;
}