Ejemplo n.º 1
0
if ($venue_description = eo_get_venue_description($venue_id)) {
    echo '<div class="venue-archive-meta">' . $venue_description . '</div>';
}
?>
        
                <!-- Display the venue map. If you specify a class, ensure that class has height/width dimensions-->
                <?php 
if (eo_venue_has_latlng($venue_id)) {
    echo eo_get_venue_map($venue_id, array('width' => '100%'));
}
?>
                
                <hr>
                             
            <?php 
eo_get_template_part('eo-loop-events');
//Lists the events
?>
            </div>
        
        </div><!-- #primary -->
        
        <!-- Call template sidebar and footer -->
        <div class="col-md-4"><?php 
get_sidebar();
?>
</div>
        </div>
        </div>
<?php 
get_footer();
function _eventorganiser_single_event_content($content)
{
    //Sanity check!
    if (!is_singular('event')) {
        return $content;
    }
    //Check we are an event!
    if (get_post_type(get_the_ID()) !== 'event') {
        return $content;
    }
    /*
    	 * This was introduced to fix an obscure bug with including pages
    	 * in another page via shortcodes.
    	 * But it breaks yoast SEO.
    	global $eo_event_parsed;
    	if( !empty( $eo_event_parsed[get_the_ID()] ) ){
    		return $content;
    	}else{
    		$eo_event_parsed[get_the_ID()] = 1;
    	}*/
    //Object buffering
    ob_start();
    eo_get_template_part('event-meta', 'event-single');
    //include(EVENT_ORGANISER_DIR.'templates/event-meta-event-single.php');
    $event_details = ob_get_contents();
    ob_end_clean();
    /**
     * Filters the event details automatically appended to the event's content
     * when single-event.php is not present in the theme.
     * 
     * If template handling is enabled and the theme does not have `single-event.php` 
     * template, Event Organiser uses `the_content` filter to add prepend the content
     * with event details. This filter allows you to change the prepended details.
     * 
     * Unless you have a good reason, it's strongly recommended to change the templates 
     * rather than use this filter.
     * 
     * @param string $event_details The event details to be added.
     * @param string $content       The original event content
     */
    $event_details = apply_filters('eventorganiser_pre_event_content', $event_details, $content);
    return $event_details . $content;
}
Ejemplo n.º 3
0
    ?>
" <?php 
    post_class();
    ?>
>

				<!-- Display event title -->
				<h2 class="chesterRed entry"><?php 
    the_title();
    ?>
</h2>
	
			<div class="entry-content">
				<!-- Get event information, see template: event-meta-event-single.php -->
				<?php 
    eo_get_template_part('event-meta', 'event-single');
    ?>

				<!-- The content or the description of the event-->
				<?php 
    the_content();
    ?>
			</div><!-- .entry-content -->

			<footer class="entry-meta">

			<?php 
    edit_post_link(__('Edit'), '<span class="edit-link">', '</span>');
    ?>
			</footer><!-- .entry-meta -->
function _eventorganiser_single_event_content($content)
{
    //Sanity check!
    if (!is_singular('event')) {
        return $content;
    }
    /*
    	 * This was introduced to fix an obscure bug with including pages
    	 * in another page via shortcodes.
    	 * But it breaks yoast SEO.
    	global $eo_event_parsed;
    	if( !empty( $eo_event_parsed[get_the_ID()] ) ){
    		return $content;
    	}else{
    		$eo_event_parsed[get_the_ID()] = 1;
    	}*/
    //Object buffering
    ob_start();
    eo_get_template_part('event-meta', 'event-single');
    //include(EVENT_ORGANISER_DIR.'templates/event-meta-event-single.php');
    $event_content = ob_get_contents();
    ob_end_clean();
    $event_content = apply_filters('eventorganiser_pre_event_content', $event_content, $content);
    return $event_content . $content;
}