Guest User

Event Cal Modifications

a guest
Mar 26th, 2012
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.83 KB | None | 0 0
  1.  
  2. <?php
  3.     function tribe_mini_display_day( $day, $monthView ) {
  4.     $return = "<div class='daynum tribe-events-event' id='daynum_$day'>";
  5.  
  6.  
  7.     $return .= ( count($monthView[$day]) ) ? "<a href=''" . tribe_get_day_link($date) . "'' class='tribe-events-mini-has-event'>$day</a>" : $day;
  8.  
  9. // The tribe_get_day doesn't pull anything at this point, so links are href=''
  10.  
  11.     $return  .= "<div style='display:none;'>";
  12.  
  13. // Simple way to kill all event pop-ups etc
  14.  
  15.     for( $i = 0; $i < count( $monthView[$day] ); $i++ ) {
  16.     $post = $monthView[$day][$i];
  17.     setup_postdata( $post );
  18.    
  19.     $return .= '<h5 class="tribe-events-event-title-mini"><a href="'. tribe_get_event_link($post) .'">' . $post->post_title . '</a></h5>';
  20.     }
  21.     $return .= '<span class="tribe-events-arrow"></span>';
  22.     $return .= '</div>';
  23.    
  24.     $return .= "</div>";
  25.     return $return;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment