* console.log('Event title is: ' + obj.title); * * }); * * }); * * })(window, document, jQuery); * */ ?> <div id="tribe-events-event-<?php echo esc_attr($event_id); ?> " class="<?php tribe_events_event_classes(); ?> " data-tribejson='<?php echo esc_attr(tribe_events_template_data($post)); ?> '> <h3 class="tribe-events-month-event-title"><a href="<?php echo esc_url($link); ?> " class="url"><?php echo $title; ?> </a></h3> </div><!-- #tribe-events-event-# -->
* * }); * * })(window, document, jQuery); * */ ?> <div id="tribe-events-event-<?php echo esc_attr($event_id); ?> " class="<?php tribe_events_event_classes(); ?> " data-tribejson='<?php echo tribe_events_template_data($post); ?> '> <?php if (has_post_thumbnail()) { ?> <div class="thumbnail"> <?php the_post_thumbnail('thumbnail'); ?> </div> <?php } ?> <h3 class="tribe-events-month-event-title entry-title summary"> <a href="<?php
<?php // Get data for this day within the loop. $daydata = tribe_events_get_current_month_day(); ?> <td class="<?php tribe_events_the_month_day_classes(); ?> " data-day="<?php echo esc_attr(isset($daydata['daynum']) ? $daydata['date'] : ''); ?> " data-tribejson='<?php echo tribe_events_template_data(null, array('date_name' => tribe_format_date($daydata['date'], false))); ?> ' > <?php tribe_get_template_part('month/single', 'day'); ?> </td> <?php } ?> </tr> </tbody> </table><!-- .tribe-events-calendar --> <?php do_action('tribe_events_after_the_grid');
die('-1'); } ?> <?php $event = tribe_events_week_get_event(); ?> <div id='tribe-events-event-<?php echo $event->ID; ?> ' <?php tribe_events_the_header_attributes('week-hourly'); ?> class='<?php tribe_events_event_classes($event->ID); ?> tribe-week-event' data-tribejson='<?php echo tribe_events_template_data($event); ?> '> <div class="hentry vevent"> <h3 class="entry-title summary"><a href="<?php tribe_event_link($event); ?> " class="url" rel="bookmark"><?php echo $event->post_title; ?> </a></h3> </div> </div>
* } * * })(window, document); * * Same thing in jQuery: * * (function (window, document, $) { * * $(document).ready(function () { * * $('.tribe_events') * .each(function () { * * var obj = $(this).data('tribejson'); * * console.log('Event title is: ' + obj.title); * * }); * * }); * * })(window, document, jQuery); * */ ?> <div id="tribe-events-event-<?php echo esc_attr( $event_id ); ?>" class="<?php tribe_events_event_classes() ?>" data-tribejson='<?php echo esc_attr( tribe_events_template_data( $post ) ); ?>'> <h3 class="tribe-events-month-event-title entry-title summary"><a href="<?php echo esc_url( $link ) ?>" class="url fancybox fancybox.ajax"><?php echo $title ?></a></h3> </div><!-- #tribe-events-event-# -->
* console.log('Event title is: ' + obj.title); * * }); * * }); * * })(window, document, jQuery); * */ $extra = array('startDateFormated' => date('j M', strtotime($post->EventStartDate)), 'startTimeFormated' => $start_time, 'endTimeFormated' => $end_time, 'timeRangeSeparator' => $time_range_separator, 'readMore' => get_permalink($post->ID), 'readMoreText' => __('Read more', 'vh')); ?> <div id="tribe-events-event-<?php echo $event_id; ?> " class="<?php tribe_events_event_classes(); ?> " data-tribejson='<?php echo tribe_events_template_data($post, $extra); ?> '> <h3 class="tribe-events-month-event-title entry-title summary"><a href="<?php tribe_event_link($post); ?> " class="url"><?php the_title(); ?> </a></h3> </div><!-- #tribe-events-event-# -->