You are here

function theme_drupagram_likes in Drupagram 7

Same name and namespace in other branches
  1. 6 drupagram.theme.inc \theme_drupagram_likes()

Theme the likes data

1 theme call to theme_drupagram_likes()
drupagram_views_handler_field_likes::render in ./drupagram_views_field_handlers.inc
Render the field.

File

./drupagram.theme.inc, line 10
Gathers all the theme functions

Code

function theme_drupagram_likes($variables) {
  $output = '';
  $count = $variables['count'];
  $items = theme('drupagram_likes_data', $variables);
  $output .= '<div class="drupagram-likes">';
  $output .= '  <div class="drupagram-likes-count">';
  $output .= '    <span class="drupagram-likes-count-label">' . t('Likes') . ': ' . '</span>';
  $output .= '    <span class="drupagram-likes-count-value">' . $count . '</span>';
  $output .= '  </div>';
  $output .= $items;
  $output .= '</div>';
  return $output;
}