Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Grid view template. This file loads the TEC month view, specifically the
- * month view navigation. The actual rendering if the calendar happens in the
- * table.php template.
- *
- * You can customize this view by putting a replacement file of the same name (gridview.php) in the events/ directory of your theme.
- */
- // Don't load directly
- if ( !defined('ABSPATH') ) { die('-1'); }
- $tribe_ecp = TribeEvents::instance();
- ?>
- <div id="tribe-events-content" class="grid">
- <!-- This title is here for ajax loading - do not remove if you wish to use ajax switching between month views -->
- <title><?php wp_title() ?></title>
- <p><a class="bnbtn" href="/events/">List View</a></p>
- <!--custom top of calendar-->
- <div id="dans-custom-topper" class="upcoming" style="height:0px;padding:1px 0px 20px 0;">
- <div style="float:right; width: 180px; margin-top:-75px; margin-left:15px; margin-right:0;display:block;">
- <?php advertisement_unit("tier1_small"); ?>
- </div>
- <div style="margin-top:15px;width:725px;">
- <p>Bay Nature's events calendar has events from nature organizations all over the Bay Area. Find guided Bay Area hiking, learn about Bay Area wildlife, and more. <a href="../inthefield">Learn about our In the Field outings</a>, or <a href="/events/community/add">submit your own event!</a></p>
- <div class="event-info" style="background:none;width:725px;margin:0;">
- <ul>
- <li><a href="/events/month">All</a></li>
- <?php
- $terms = get_terms("tribe_events_cat");
- $count = count($terms);
- if ( $count > 0 ){
- foreach ( $terms as $term ) {
- echo "<li><a href='" . "/events/category/" . $term->slug . "/month'>" . $term->name . "</a></li>";
- }
- }
- ?>
- </ul>
- </div>
- </div>
- <div class="cl"> </div>
- </div>
- <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(); ?>'>
- ← <?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(); ?>'>
- <?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