Advertisement
BakerMan

cal widget fix

Dec 6th, 2013
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2. if ( !defined('ABSPATH') ) die('-1');
  3.  
  4. $args = tribe_events_get_mini_calendar_args();
  5. ?>
  6.  
  7. <div class="tribe-mini-calendar-wrapper">
  8.  
  9.     <!-- Grid -->
  10.     <?php
  11.         tribe_show_month( array(
  12.             'tax_query' => $args['tax_query'],
  13.             'eventDate' => $args['eventDate'],
  14.         ), 'pro/widgets/mini-calendar/grid' ); ?>
  15.  
  16.     <!-- List -->
  17.     <?php if ( 0 < $args['count'] ) tribe_get_template_part( 'pro/widgets/mini-calendar/list' ) ?>
  18.  
  19. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement