Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Grid view template with a list of terms at the top (per Jonah Coyote's snippet)
- */
- // Don't load directly
- if ( !defined('ABSPATH') ) { die('-1'); }
- $tribe_ecp = TribeEvents::instance();
- $terms = get_terms("tribe_events_cat");
- $count = count($terms);
- if ( $count > 0 ){
- echo '<ul class="events-cat-menu">';
- foreach ( $terms as $term ) {
- echo '<li class="cat_'. $term->slug .'"><a href="'. get_term_link($term->slug, 'tribe_events_cat') .'">' . $term->name . '</a></li>';
- }
- echo '</ul>';
- }
- ?>
- <div id="tribe-events-content" class="grid" data-title="<?php wp_title(); ?>">
- <div id='tribe-events-calendar-header' class="clearfix">
- <span class='tribe-events-month-nav'>
- <span class='tribe-events-prev-month'>
- <a href='<?php echo tribe_get_previous_month_link(); ?>' class="tribe-pjax">
- ← <?php echo tribe_get_previous_month_text(); ?>
- </a>
- </span>
- <?php tribe_month_year_dropdowns( "tribe-events-" ); ?>
- <span class='tribe-events-next-month'>
- <a href='<?php echo tribe_get_next_month_link(); ?>' class="tribe-pjax">
- <?php echo tribe_get_next_month_text(); ?> →
- </a>
- <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading" id="ajax-loading" alt="" style='display: none'/>
- </span>
- </span>
- <span class='tribe-events-calendar-buttons'>
- <a class='tribe-events-button-off' href='<?php echo tribe_get_listview_link(); ?>'><?php _e('Event List', 'tribe-events-calendar'); ?></a>
- <a class='tribe-events-button-on' href='<?php echo tribe_get_gridview_link(); ?>'><?php _e('Calendar', 'tribe-events-calendar'); ?></a>
- </span>
- </div><!-- tribe-events-calendar-header -->
- <?php tribe_calendar_grid(); // See the views/table.php template for customization ?>
- <?php if( function_exists( 'tribe_get_ical_link' ) ): ?>
- <a title="<?php esc_attr_e('iCal Import', 'tribe-events-calendar'); ?>" class="ical" href="<?php echo tribe_get_ical_link(); ?>"><?php _e('iCal Import', 'tribe-events-calendar'); ?></a>
- <?php endif; ?>
- <?php if (tribe_get_option('donate-link', false) == true) { ?>
- <p class="tribe-promo-banner"><?php echo apply_filters('tribe_promo_banner', sprintf( __('Calendar powered by %sThe Events Calendar%s', 'tribe-events-calendar'), '<a href="http://tri.be/wordpress-events-calendar/">', '</a>' ) ); ?></p>
- <?php } ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement