Exemplo n.º 1
0
    ?>
			
			<?php 
    /**
     * em_before_events_loop hook
     */
    do_action('em_before_events_loop');
    ?>

			<?php 
    while (have_posts()) {
        the_post();
        ?>
				
				<?php 
        em_get_template_part('content', 'event');
        ?>

			<?php 
    }
    ?>
			
			<?php 
    /**
     * em_after_events_loop hook
     * 
     * @hooked em_paginate_links - 10
     */
    do_action('em_after_events_loop');
    ?>
	<?php 
    /**
     * em_before_event_locations_loop hook
     * 
     * @hooked em_display_loop_event_google_map - 10
     */
    do_action('em_before_event_locations_loop');
    ?>

	<?php 
    foreach ($locations as $location) {
        ?>

		<?php 
        em_get_template_part('content-taxonomy', 'event-location');
        ?>

	<?php 
    }
    ?>

	<?php 
    /**
     * em_after_event_locations_loop hook
     * 
     */
    do_action('em_after_event_locations_loop');
    ?>

<?php 
Exemplo n.º 3
0
 * em_before_main_content hook
 *
 * @hooked em_output_content_wrapper - 10 (outputs opening divs for the content)
 * @hooked em_breadcrumbs - 20
 */
do_action('em_before_main_content');
?>

<?php 
// start the loop
while (have_posts()) {
    the_post();
    ?>

	<?php 
    em_get_template_part('content', 'single-event');
    ?>

	<?php 
    // if comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
    ?>

<?php 
}
?>

<?php 
/**
Exemplo n.º 4
0
 /**
  * Event organizers list shortcode.
  */
 public function event_organizers_shortcode($args)
 {
     ob_start();
     em_get_template_part('archive-taxonomy', 'event-organizer');
     $html = ob_get_contents();
     ob_end_clean();
     return apply_filters('em_shortcode_event_organizers', $html);
 }
    global $organizer;
    ?>

	<?php 
    /**
     * em_before_event_organizers_loop hook
     */
    do_action('em_before_event_organizers_loop');
    ?>

	<?php 
    foreach ($organizers as $organizer) {
        ?>

		<?php 
        em_get_template_part('content-taxonomy', 'event-organizer');
        ?>

	<?php 
    }
    ?>

	<?php 
    /**
     * em_after_event_organizers_loop hook
     * 
     */
    do_action('em_after_event_organizers_loop');
    ?>

<?php