You are here

function theme_views_slideshow_singleframe_image_count in Views Slideshow 6.2

Views Slideshow: image counter.

1 theme call to theme_views_slideshow_singleframe_image_count()
template_preprocess_views_slideshow_singleframe in contrib/views_slideshow_singleframe/views_slideshow_singleframe.theme.inc
Implements template_preprocess_hook_THEMENAME().

File

contrib/views_slideshow_singleframe/views_slideshow_singleframe.theme.inc, line 276
Theme & preprocess functions for the Views Slideshow: SingleFrame module.

Code

function theme_views_slideshow_singleframe_image_count($vss_id, $view, $options) {
  $attributes['class'] = 'views_slideshow_singleframe_image_count views_slideshow_image_count';
  $attributes['id'] = "views_slideshow_singleframe_image_count_" . $vss_id;
  $attributes = drupal_attributes($attributes);
  $counter = '<span class="num">1</span> ' . t('of') . ' <span class="total">1</span>';
  return "<div{$attributes}>{$counter}</div>";
}