You are here

function theme_gallery_image_navigator in Node Gallery 6

Same name and namespace in other branches
  1. 6.2 theme/theme.inc \theme_gallery_image_navigator()
1 theme call to theme_gallery_image_navigator()
node_gallery_preprocess_node in ./node_gallery.module

File

./node_gallery.themes.inc, line 204
Node gallery themes.

Code

function theme_gallery_image_navigator($navigator, $image) {
  $col1 = array(
    'data' => t("Image %current/Total %total", array(
      '%current' => $navigator['current'],
      '%total' => $navigator['total'],
    )),
    'class' => 'image-navigator-left',
  );
  $col2 = array(
    'data' => l(t('Prev'), 'node/' . $navigator['prev_nid']) . '/' . l(t('Next'), 'node/' . $navigator['next_nid']),
    'class' => 'image-navigator-mid',
  );
  $col3 = array(
    'data' => node_gallery_operations('image', $image),
    'class' => 'image-navigator-right',
  );
  $rows[] = array(
    $col1,
    $col2,
    $col3,
  );
  return theme('table', NULL, $rows, array(
    'class' => 'image-navigator',
  ));
}