Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Month View Nav Template
- * This file loads the month view navigation.
- *
- * Override this template in your own theme by creating a file at [your-theme]/tribe-events/month/nav.php
- *
- * @package TribeEventsCalendar
- * @version 4.6.19
- *
- */
- if ( ! defined( 'ABSPATH' ) ) {
- die( '-1' );
- } ?>
- <?php do_action( 'tribe_events_before_nav' ) ?>
- <nav class="tribe-events-nav-pagination" aria-label="<?php esc_html_e( 'Calendar Month Navigation', 'the-events-calendar' ) ?>">
- <ul class="tribe-events-sub-nav">
- <li class="tribe-events-nav-previous">
- <?php tribe_events_the_previous_month_link(); ?>
- </li>
- <li class="custom-current-month">
- <?php
- $date = date_create( tribe_get_month_view_date() );
- $converted_date = date_format($date,"Y-m-d H:i:s");
- $display_date = date_i18n("F Y", strtotime($converted_date) );
- echo ucwords($display_date);
- ?>
- </li>
- <!-- .tribe-events-nav-previous -->
- <li class="tribe-events-nav-next">
- <?php tribe_events_the_next_month_link(); ?>
- </li>
- <!-- .tribe-events-nav-next -->
- </ul><!-- .tribe-events-sub-nav -->
- </nav>
- <?php
- do_action( 'tribe_events_after_nav' );
Add Comment
Please, Sign In to add comment