Guest User

Untitled

a guest
Jul 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. <?php
  2. /**
  3. * Month View Nav Template
  4. * This file loads the month view navigation.
  5. *
  6. * Override this template in your own theme by creating a file at [your-theme]/tribe-events/month/nav.php
  7. *
  8. * @package TribeEventsCalendar
  9. * @version 4.6.19
  10. *
  11. */
  12.  
  13. if ( ! defined( 'ABSPATH' ) ) {
  14. die( '-1' );
  15. } ?>
  16.  
  17. <?php do_action( 'tribe_events_before_nav' ) ?>
  18.  
  19. <nav class="tribe-events-nav-pagination" aria-label="<?php esc_html_e( 'Calendar Month Navigation', 'the-events-calendar' ) ?>">
  20. <ul class="tribe-events-sub-nav">
  21. <li class="tribe-events-nav-previous">
  22. <?php tribe_events_the_previous_month_link(); ?>
  23. </li>
  24. <li class="custom-current-month">
  25. <?php
  26. $date = date_create( tribe_get_month_view_date() );
  27. $converted_date = date_format($date,"Y-m-d H:i:s");
  28. $display_date = date_i18n("F Y", strtotime($converted_date) );
  29. echo ucwords($display_date);
  30. ?>
  31. </li>
  32. <!-- .tribe-events-nav-previous -->
  33. <li class="tribe-events-nav-next">
  34. <?php tribe_events_the_next_month_link(); ?>
  35. </li>
  36. <!-- .tribe-events-nav-next -->
  37. </ul><!-- .tribe-events-sub-nav -->
  38. </nav>
  39. <?php
  40. do_action( 'tribe_events_after_nav' );
Add Comment
Please, Sign In to add comment