date-views-pager.tpl.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * @file
  4. * Template file for the example display.
  5. *
  6. * Variables available:
  7. *
  8. * $plugin: The pager plugin object. This contains the view.
  9. *
  10. * $plugin->view
  11. * The view object for this navigation.
  12. *
  13. * $nav_title
  14. * The formatted title for this view. In the case of block
  15. * views, it will be a link to the full view, otherwise it will
  16. * be the formatted name of the year, month, day, or week.
  17. *
  18. * $prev_url
  19. * $next_url
  20. * Urls for the previous and next calendar pages. The links are
  21. * composed in the template to make it easier to change the text,
  22. * add images, etc.
  23. *
  24. * $prev_options
  25. * $next_options
  26. * Query strings and other options for the links that need to
  27. * be used in the l() function, including rel=nofollow.
  28. */
  29. ?>
  30. <?php if (!empty($pager_prefix)) print $pager_prefix; ?>
  31. <div class="date-nav-wrapper clearfix<?php if (!empty($extra_classes)) print $extra_classes; ?>">
  32. <div class="date-nav item-list">
  33. <div class="date-heading">
  34. <h3><?php print $nav_title ?></h3>
  35. </div>
  36. <ul class="pager">
  37. <?php if (!empty($prev_url)) : ?>
  38. <li class="date-prev">
  39. <?php print l('&laquo;' . ($mini ? '' : ' ' . t('Prev', array(), array('context' => 'date_nav'))), $prev_url, $prev_options); ?>
  40. </li>
  41. <?php endif; ?>
  42. <?php if (!empty($next_url)) : ?>
  43. <li class="date-next">
  44. <?php print l(($mini ? '' : t('Next', array(), array('context' => 'date_nav')) . ' ') . '&raquo;', $next_url, $next_options); ?>
  45. </li>
  46. <?php endif; ?>
  47. </ul>
  48. </div>
  49. </div>