/** * Calendar Grid (Display) * * Display the full size grid calendar table * * @deprecated * @uses load_template() */ function tribe_calendar_grid() { _deprecated_function(__FUNCTION__, '3.0', 'tribe_show_month()'); return tribe_show_month(); }
$content = the_content(); ?> <?php } } } ?> </section> <section class="calendar-month-view"> <h2 class="calendar-month-title">Outing Schedule</h2> <h3 class="month-year"><?php echo tribe_event_format_date($date, $displayTime = false, $dateFormat = 'F Y'); ?> </h3> <?php tribe_show_month(); ?> </section> <script src="<?php echo get_stylesheet_directory_uri(); ?> /js/header-slider.js"></script> <?php get_footer(); ?>
<?php endforeach; ?> <div class="tribe-bar-submit"> <input class="tribe-events-button tribe-no-param" type="submit" name="submit-bar" value="<?php echo esc_attr( sprintf( __( 'Find %s', 'tribe-events-calendar' ), tribe_get_event_label_plural() ) ); ?>" /> </div> <!-- .tribe-bar-submit --> </div> <!-- .tribe-bar-filters-inner --> </div><!-- .tribe-bar-filters --> <?php } // if ( !empty( $filters ) ) ?> </form> </div> <div class="events-content-wrap"> <?php tribe_show_month(); ?> </div> <?php wp_enqueue_script( 'fancybox' ); ?> <script type="text/javascript"> jQuery(document).ready(function($){ // events object with functions app.events = { load_month: function( eventDate, callback ){ var data = { "action": 'tribe_calendar',
?> <!-- Removing this wrapper class will break the calendar JavaScript, please avoid and extend as needed --> <div class="tribe-mini-calendar-wrapper"> <!-- Grid --> <?php $month_widget_args = array('tax_query' => $args['tax_query'], 'eventDate' => $args['eventDate'], 'suppress_nothing_found_notice' => true, 'tribe_render_context' => 'widget'); /** * Filter Mini Calendar Widget tribe_show_month args * * @param array $month_widget_args Arguments for the Mini Calendar Widget's call to tribe_show_month */ $month_widget_args = apply_filters('tribe_events_pro_min_calendar_widget_query_args', $month_widget_args); $event_ids = tribe_show_month($month_widget_args, 'pro/widgets/mini-calendar/grid'); $jsonld_enable = isset($args['jsonld_enable']) ? $args['jsonld_enable'] : true; /** * Filters whether JSON LD information should be printed to the page or not for this widget type. * * @param bool $jsonld_enable Whether JSON-LD should be printed to the page or not; default `true`. */ $jsonld_enable = apply_filters('tribe_events_' . $args['id_base'] . '_jsonld_enabled', $jsonld_enable); /** * Filters whether JSON LD information should be printed to the page for any widget type. * * @param bool $jsonld_enable Whether JSON-LD should be printed to the page or not; default `true`. */ $jsonld_enable = apply_filters('tribe_events_widget_jsonld_enabled', $jsonld_enable); if ($jsonld_enable && !empty($event_ids)) { // print JSON-LD data about events contained in the mini calendar widget
* This is the template for the output of the mini calendar widget. * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/widgets/mini-calendar-widget.php * * @package TribeEventsCalendarPro * */ if (!defined('ABSPATH')) { die('-1'); } $args = tribe_events_get_mini_calendar_args(); ?> <!-- Removing this wrapper class will break the claendar javascript, please avoid and extend as needed --> <div class="tribe-mini-calendar-wrapper"> <!-- Grid --> <?php tribe_show_month(array('tax_query' => $args['tax_query'], 'eventDate' => $args['eventDate'], 'suppress_nothing_found_notice' => true), 'pro/widgets/mini-calendar/grid'); ?> <!-- List --> <?php if (0 < $args['count']) { tribe_get_template_part('pro/widgets/mini-calendar/list', null, array('venue' => true)); } ?> </div>
* This is the template for the output of the mini calendar widget. * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/widgets/mini-calendar-widget.php * * @package TribeEventsCalendarPro * @since 3.0 * @author Modern Tribe Inc. * */ if (!defined('ABSPATH')) { die('-1'); } ?> <?php $args = tribe_events_get_mini_calendar_args(); ?> <div class="tribe-mini-calendar-wrapper"> <!-- Grid --> <?php tribe_show_month(array('tax_query' => $args['tax_query'], 'eventDate' => $args['eventDate']), 'widgets/mini-calendar/grid'); ?> <!-- List --> <?php tribe_get_view('widgets/mini-calendar/list'); ?> </div>