<?php echo implode(', ', $venue_details); ?> </div> <!-- .tribe-events-venue-details --> <?php } ?> </div> </div><!-- .tribe-events-event-meta --> <?php do_action('tribe_events_after_the_meta'); ?> <!-- Event Image --> <?php echo tribe_event_featured_image(null, 'medium'); ?> <!-- Event Content --> <?php do_action('tribe_events_before_the_content'); ?> <div class="tribe-events-list-event-description tribe-events-content"> <?php echo tribe_events_get_the_excerpt(); ?> </div><!-- .tribe-events-list-event-description --> <?php do_action('tribe_events_after_the_content');
* List View Single Event * This file contains one event in the list view * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/single-event.php * * @package TribeEventsCalendar * @since 3.0 * @author Modern Tribe Inc. * */ if (!defined('ABSPATH')) { die('-1'); } global $post; $postconfig = get_post_meta(get_the_ID(), 'wpo_postconfig', true); $featured_image = tribe_event_featured_image(null, 'thumbnails-medium'); $start = strtotime($post->EventStartDate); $image_url = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); $style = 'background-image: url(\'' . $image_url . '\')'; ?> <div class="wpo-event-inner"> <div class="height-group small-event-header clearfix <?php if (empty($featured_image)) { echo 'no-image'; } ?> " style="<?php echo trim($style); ?> ">
<?php echo implode(', ', $venue_details); ?> </div> <!-- .tribe-events-venue-details --> <?php } ?> </div><!-- .tribe-events-event-meta --> <?php do_action('tribe_events_after_the_meta'); ?> <!-- Event Image --> <?php echo tribe_event_featured_image(null, 'gallery-threecol'); ?> <!-- Event Content --> <?php do_action('tribe_events_before_the_content'); ?> <div class="tribe-events-list-event-description tribe-events-content description entry-summary"> <?php echo tribe_events_get_the_excerpt(); ?> <div class="dt-sc-hr-invisible-small"></div> <div class="dt-sc-clear"></div> <a href="<?php echo tribe_get_event_link(); ?>
setup_postdata($post); ?> <li class="tribe-events-list-widget-events <?php tribe_events_event_classes(); ?> box-cate"> <?php do_action('tribe_events_list_widget_before_the_event_title'); ?> <!-- Event Time --> <?php do_action('tribe_events_list_widget_before_the_meta'); ?> <?php echo tribe_event_featured_image(); ?> <div class="tribe-event-duration"> <?php echo tribe_events_event_schedule_details(); ?> </div> <?php do_action('tribe_events_list_widget_after_the_meta'); ?> <!-- Event Title --> <h4 class="tribe-event-title a-black"> <a href="<?php echo esc_url(tribe_get_event_link()); ?>
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/day/single-event.php * * @package TribeEventsCalendar * */ if (!defined('ABSPATH')) { die('-1'); } $venue_details = tribe_get_venue_details(); // Venue microformats $has_venue = $venue_details ? ' vcard' : ''; $has_venue_address = !empty($venue_details['address']) ? ' location' : ''; ?> <!-- Event Image --> <?php echo tribe_event_featured_image(null, 'list-thumb'); ?> <!-- Event Cost --> <?php if (tribe_get_cost()) { ?> <div class="tribe-events-event-cost"> <span><?php echo tribe_get_cost(null, true); ?> </span> </div> <?php } ?>
<?php $event_id = $event->ID; ?> <div class="single-event-popup <?php echo tribe_events_event_classes( $event_id ); ?>"> <div class="col-sm-4"> <?php echo tribe_event_featured_image( $event_id, 'event-popup', false ); ?> </div> <div class="col-sm-8"> <h2 class="event-title"><?php echo $event->post_title; ?></h2> <?php echo apply_filters( 'the_content', $event->post_content ); ?> <ul class="meta-info"> <li><label>What:</label> <?php echo $event->post_title; ?></li> <li><label>When:</label> <?php echo tribe_events_event_schedule_details( $event_id ); ?></li> <?php if ( tribe_address_exists( $event_id ) ) : ?> <li><label>Where:</label> <?php echo tribe_get_full_address( $event_id ); ?></li> <?php endif; ?> <li><label>Cost:</label> <?php echo get_post_meta( $event_id, '_ecp_custom_2', true ); ?></li> <?php if ( tribe_has_organizer( $event_id ) ): ?> <li><label>Info:</label> <a href="mailto:<?php echo tribe_get_organizer_email( $event_id ); ?>"><?php echo tribe_get_organizer_email( $event_id ); ?></a></li> <?php endif; ?> <li><label>Register:</label> <?php echo get_post_meta( $event_id, '_ecp_custom_5', true ); ?></li> </ul> <?php echo bones_get_edit_link( $event_id ); ?> </div> </div>
<div class="col-md-6 col-md-push-6"> <?php the_content(); ?> </div> <div class="col-md-6 col-md-pull-6 resume-to-apply"> <?php if ($eventos->have_posts()) { while ($eventos->have_posts()) { $eventos->the_post(); ?> <figure> <?php echo tribe_event_featured_image(null, 'thumbnail'); ?> <figcaption> <h2><a href="<?php echo tribe_get_event_link(); ?> " rel="bookmark"><?php the_title(); ?> </a></h2> <p><?php the_excerpt(); ?> </p> </figcaption> </figure>
<div id="grve-events-organizer-area"> <?php while (have_posts()) { the_post(); ?> <div id="post-<?php the_ID(); ?> " <?php post_class('grve-single-post'); ?> > <div id="grve-single-media"> <!-- Event featured image, but exclude link --> <?php echo tribe_event_featured_image($organizer_id, 'grve-image-fullscreen', false); ?> </div> <div id="grve-post-content"> <!-- Organizer Title --> <?php do_action('tribe_events_single_organizer_before_title'); ?> <?php grve_print_event_organizer_simple_title(); ?> <?php do_action('tribe_events_single_organizer_after_title'); ?> <!-- Organizer Content -->
<!-- #tribe-events-header --> <?php while (have_posts()) { the_post(); ?> <div id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <!-- Event featured image, but exclude link --> <?php echo tribe_event_featured_image($event_id, 'thumb', false); ?> <!-- Event content --> <?php do_action('tribe_events_single_event_before_the_content'); ?> <div class="tribe-events-single-event-description tribe-events-content entry-content description"> <?php the_content(); ?> </div> <!-- .tribe-events-single-event-description --> <?php //do_action( 'tribe_events_single_event_after_the_content' ) ?>
if (tribe_get_cost()) { ?> <div class="tribe-events-event-cost"> <span><?php echo tribe_get_cost(null, true); ?> </span> </div> <?php } ?> <!-- Event Image --> <?php if (has_post_thumbnail()) { echo tribe_event_featured_image(null, 'module-lowerx2'); } else { get_backup_images(); } ?> <!-- Event Title --> <?php do_action('tribe_events_before_the_event_title'); ?> <h2 class="tribe-events-list-event-title entry-title summary"> <a class="url" href="<?php echo esc_url(tribe_get_event_link()); ?> " title="<?php the_title_attribute();
?> ]</strong> <?php } ?> <?php echo tribe_events_event_schedule_details(); ?> </div> </div><!-- .tribe-events-event-meta --> <?php do_action('tribe_events_after_the_meta'); ?> <?php echo tribe_event_featured_image(null, 'photo-thumb'); ?> <!-- Event Content --> <?php do_action('tribe_events_before_the_content'); ?> <div class="tribe-events-list-photo-description tribe-events-content entry-summary description"> <?php echo tribe_events_get_the_excerpt(); ?> </div> <?php do_action('tribe_events_after_the_content'); ?>
<div id="grve-events-venue-area"> <?php while (have_posts()) { the_post(); ?> <div id="post-<?php the_ID(); ?> " <?php post_class('grve-single-post'); ?> > <div id="grve-single-media"> <!-- Event featured image, but exclude link --> <?php echo tribe_event_featured_image($venue_id, 'grve-image-fullscreen', false); ?> </div> <div id="grve-post-content"> <!-- Venue Title --> <?php do_action('tribe_events_single_venue_before_title'); ?> <?php grve_print_event_venue_simple_title(); ?> <?php do_action('tribe_events_single_venue_after_title'); ?> <!-- Organizer Content -->
if ($venue_details) { ?> <!-- Venue Display Info --> <div class="tribe-events-venue-details"> <?php ?> </div> <!-- .tribe-events-venue-details --> <?php } ?> </div><!-- .tribe-events-event-meta --> <?php do_action('tribe_events_after_the_meta'); ?> </div> <!-- .agenda-event-heading --> <!-- Event Content --> <?php do_action('tribe_events_before_the_content'); ?> <div class="tribe-agenda-event-description tribe-content"> <?php echo tribe_event_featured_image(null, 'large'); ?> <?php the_content(); ?> </div><!-- .tribe-agenda-event-description --> <?php do_action('tribe_events_after_the_content');
* Rectangular images are shown above the title while square images * are shown next to the content. * * @since 4.4.0 * @since 4.5.0 Added `$thumbnail_id` parameter. * * @param string $shape Thumbnail image shape. Either 'rectangular' or 'square'. * @param int $thumbnail_id Attachment ID. */ $shape = apply_filters('embed_thumbnail_image_shape', $shape, $thumbnail_id); if ('rectangular' === $shape) { ?> <div class="wp-embed-featured-image rectangular"> <?php echo tribe_event_featured_image($event_id, 'large'); ?> </div> <?php } ?> <?php if ('square' === $shape) { ?> <div class="wp-embed-featured-image square"> <?php echo tribe_event_featured_image($event_id, 'large'); ?> </div> <?php }
<?php // Setup the post data for each event. foreach ($posts as $post) { setup_postdata($post); ?> <li class="tribe-events-list-widget-events <?php tribe_events_event_classes(); ?> "> <?php do_action('tribe_events_list_widget_before_the_event_title'); ?> <!-- Event featured image --> <?php echo tribe_event_featured_image($post->ID, 'thumbnail'); ?> <!-- Event Title --> <h6 class="tribe-event-title"> <a href="<?php echo esc_url(tribe_get_event_link()); ?> " rel="bookmark"><?php the_title(); ?> </a> </h6> <section class="resume-event"> <?php
<?php if (tribe_get_cost()) { ?> <span class="tribe-events-divider">|</span> <span class="tribe-events-cost"><?php echo tribe_get_cost(null, true); ?> </span> <?php } ?> </div> <!-- Event featured image, but exclude link --> <?php echo tribe_event_featured_image($event_id, 'wh-big', false); ?> <!-- Event header --> <div id="tribe-events-header" <?php tribe_events_the_header_attributes(); ?> > <!-- Navigation --> <h3 class="tribe-events-visuallyhidden"><?php _e('Event Navigation', 'tribe-events-calendar'); ?> </h3> <ul class="tribe-events-sub-nav"> <li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link('<span>«</span> %title%');
while (have_posts()) { the_post(); ?> <div id="post-<?php the_ID(); ?> " <?php post_class('vevent'); ?> > <div class="row"> <div class="large-4 columns"> <?php echo tribe_event_featured_image($event_id, 'medium', false); ?> </div><!-- .large-4 --> <div class="large-8 columns"> <div class="tribe-events-schedule updated published tribe-clearfix"> <?php if (tribe_get_cost()) { ?> <span class="tribe-events-divider"> </span> <span class="tribe-events-cost"><?php echo tribe_get_cost(null, true); ?> </span> <?php
if (!empty($cost)) { echo "<span class='tribe-events-event-cost'> — {$cost}</span>"; } ?> <?php } ?> </a> </h2> <?php do_action('tribe_events_after_the_event_title'); ?> <!-- Event Image --> <?php $image = tribe_event_featured_image(); $r = preg_match("/<img.*src=\"([^\"]+)/", $image, $matches); $dims = cws_get_post_tmumbnail_dims("medium", null, null); $url = isset($matches[1]) ? $matches[1] : ""; $bfi_url = bfi_thumb($url, array('width' => $dims['width'], 'height' => $dims['height'])); echo str_replace($url, $bfi_url, $image); ?> <!-- Event Content --> <?php do_action('tribe_events_before_the_content'); ?> <div class="tribe-events-list-event-description tribe-events-content description entry-summary"> <?php the_excerpt(); ?>
/** * List View Single Event * This file contains one event in the list view * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/single-event.php * * @package TribeEventsCalendar * @since 3.0 * @author Modern Tribe Inc. * */ if (!defined('ABSPATH')) { die('-1'); } global $post; $featured_image = tribe_event_featured_image(null, 'post-small-2'); ?> <div class="small-event-header clearfix <?php if (empty($featured_image)) { echo 'no-image'; } ?> "> <div class="tribe-events-event-meta-wrapper"> <?php do_action('tribe_events_before_the_meta'); ?> <div class="tribe-events-event-meta"> <?php $start = strtotime($post->EventStartDate);
<span class="tribe-events-cost"><?php echo tribe_get_cost(null, true); ?> </span> <?php } ?> </div> <!-- Event content --> <?php do_action('tribe_events_single_event_before_the_content'); ?> <div class="tribe-events-single-event-description tribe-events-content entry-content description"> <?php echo tribe_event_featured_image($event_id, 'entry_with_sidebar', false); ?> <?php the_content(); ?> </div><!-- .tribe-events-single-event-description --> <?php do_action('tribe_events_single_event_after_the_content'); ?> <?php if (get_post_type() == Tribe__Events__Main::POSTTYPE && tribe_get_option('showComments', false)) { comments_template(); } ?>
/** * List View Single Event * This file contains one event in the list view * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/single-event.php * * @package TribeEventsCalendar * @since 3.0 * @author Modern Tribe Inc. * */ if (!defined('ABSPATH')) { die('-1'); } global $post; $featured_image = tribe_event_featured_image(null, ''); ?> <div class="wpo-event-inner style-2"> <div class="small-event-header clearfix <?php if (empty($featured_image)) { echo 'no-image'; } ?> "> <?php echo trim($featured_image); ?> <div class="tribe-events-event-meta-wrapper"> <?php do_action('tribe_events_before_the_meta');
<!-- Venue Description --> <?php if (get_the_content()) { ?> <div class="tribe-venue-description tribe-events-content entry-content"> <?php the_content(); ?> </div> <?php } ?> <!-- Venue Featured Image --> <?php echo tribe_event_featured_image(null, 'full'); ?> </div><!-- .tribe-events-event-meta --> <!-- Upcoming event list --> <?php do_action('tribe_events_single_venue_before_upcoming_events'); ?> <?php // Use the tribe_events_single_venuer_posts_per_page to filter the number of events to get here. echo tribe_venue_upcoming_events($venue_id); ?> <?php
function custom_widget_featured_image() { global $post; echo tribe_event_featured_image($post->ID, 'thumbnail'); }
* * @package TribeEventsCalendar * @since 3.0 * @author Modern Tribe Inc. * */ if (!defined('ABSPATH')) { die('-1'); } global $post; $room = ""; $postconfig = get_post_meta(get_the_ID(), 'wpo_postconfig', true); if (isset($postconfig['event_room']) && !empty($postconfig['event_room'])) { $room = $postconfig['event_room']; } $featured_image = tribe_event_featured_image(null, 'post-thumbnail'); $start = strtotime($post->EventStartDate); $day = date('d', $start); $month = date('M', $start); ?> <div class="wpo-event-inner"> <div class="small-event-header clearfix <?php if (empty($featured_image)) { echo 'no-image'; } ?> "> <div class="image"> <?php echo trim($featured_image); ?>
function tribe_upcoming_events($atts) { // Attributes extract(shortcode_atts(array('number' => 3, 'usecols' => true, 'cols' => 3), $atts)); // Code add_filter('excerpt_length', 'tekserve_studio_excerpt_length', 999); $html = '<div id="tribe-events-content" class="tekserve-studio-tribe-events tribe-events-list tribe-events-photo"> <div class="tribe-events-loop hfeed vcalendar tribe-clearfix" id="tribe-events-photo-events">'; $args = array('post_type' => 'tribe_events', 'post_status' => 'publish', 'posts_per_page' => $number); $the_query = new WP_Query($args); // The Loop if ($the_query->have_posts()) { if ($usecols) { if (intval($cols) > 12) { $cols = intval($cols / 12); } //end if( intval( $cols ) > 12 ) $colsize = intval(12 / $cols); $coltag = '[column size="' . $colsize . '" col_class="md"]'; $i = 0; while ($the_query->have_posts()) { $post = $the_query->the_post(); if ($i == 0) { $html .= '[row]'; } //end if( $i == 0 ) $html .= $coltag; $html .= '<div class="tribe-events-photo-event-wrap">'; $html .= tribe_event_featured_image(null, 'medium'); $html .= '<div class="tribe-events-event-details tribe-clearfix">'; $html .= print_r(do_action('tribe_events_before_the_event_title'), true); $html .= '<h3 class="tribe-events-list-event-title entry-title summary">'; $html .= '<a class="url" href="' . esc_url(tribe_get_event_link()) . '" title="' . the_title('', '', false) . '" rel="bookmark">'; $html .= the_title('', '', false); $html .= '</a></h3>'; $html .= print_r(do_action('tribe_events_after_the_event_title'), true); $html .= print_r(do_action('tribe_events_before_the_meta'), true); $html .= '<div class="tribe-events-event-meta"> <div class="updated published time-details">'; if (!empty($post->distance)) { $html .= '<strong>[' . tribe_get_distance_with_unit($post->distance) . ']</strong>'; } //end if( ! empty( $post->distance ) ) $html .= tribe_events_event_schedule_details(); $html .= '</div> </div>'; $html .= print_r(do_action('tribe_events_after_the_meta'), true); $html .= print_r(do_action('tribe_events_before_the_content'), true); $html .= '<div class="tribe-events-list-photo-description tribe-events-content entry-summary description">'; $html .= tribe_events_get_the_excerpt(); $html .= '</div>'; $html .= print_r(do_action('tribe_events_after_the_content'), true); $html .= ' </div> </div>'; $html .= '[/column]'; if ($i == intval($cols - 1)) { $html .= '[/row]'; } //end if( $i == intval( $cols-1 ) ) if ($i < $cols) { $i++; } else { $i = 0; } //end if( $i < $cols ) } //end while( $the_query->have_posts() ) } else { while ($the_query->have_posts()) { $post = $the_query->the_post(); $html .= '<div class="tribe-events-photo-event-wrap">'; $html .= tribe_event_featured_image(null, 'medium'); $html .= '<div class="tribe-events-event-details tribe-clearfix">'; $html .= print_r(do_action('tribe_events_before_the_event_title'), true); $html .= '<h3 class="tribe-events-list-event-title entry-title summary">'; $html .= '<a class="url" href="' . esc_url(tribe_get_event_link()) . '" title="' . the_title('', '', false) . '" rel="bookmark">'; $html .= the_title('', '', false); $html .= '</a></h3>'; $html .= print_r(do_action('tribe_events_after_the_event_title'), true); $html .= print_r(do_action('tribe_events_before_the_meta'), true); $html .= '<div class="tribe-events-event-meta"> <div class="updated published time-details">'; if (!empty($post->distance)) { $html .= '<strong>[' . tribe_get_distance_with_unit($post->distance) . ']</strong>'; } //end if( ! empty( $post->distance ) ) $html .= tribe_events_event_schedule_details(); $html .= '</div> </div>'; $html .= print_r(do_action('tribe_events_after_the_meta'), true); $html .= print_r(do_action('tribe_events_before_the_content'), true); $html .= '<div class="tribe-events-list-photo-description tribe-events-content entry-summary description">'; $html .= tribe_events_get_the_excerpt(); $html .= '</div>'; $html .= print_r(do_action('tribe_events_after_the_content'), true); $html .= ' </div> </div>'; } //end while( $the_query->have_posts() ) } //end if( $usecols ) } else { return '<h3 class="error">There are currently no upcoming events.</h3>'; } //end if( $the_query->have_posts() ) $html .= ' </div> </div>'; return do_shortcode($html); }
?> <ol class="hfeed vcalendar"> <?php // Setup the post data for each event. foreach ($posts as $post) { setup_postdata($post); ?> <li class="tribe-events-list-widget-events <?php tribe_events_event_classes(); ?> "> <?php if (has_post_thumbnail()) { echo tribe_event_featured_image(get_the_ID(), 'recent-works-thumbnail', false); } ?> <div class="fusion-tribe-events-list-content"> <?php do_action('tribe_events_list_widget_before_the_event_title'); ?> <!-- Event Title --> <h4 class="entry-title summary"> <a href="<?php echo esc_url(tribe_get_event_link()); ?> " rel="bookmark"><?php the_title();
?> <ol class="hfeed vcalendar"> <?php // Setup the post data for each event. foreach ($posts as $post) { setup_postdata($post); ?> <li class="tribe-events-list-widget-events <?php tribe_events_event_classes(); ?> "> <?php if (has_post_thumbnail()) { echo tribe_event_featured_image(get_the_ID(), 'tabs-img', false); } ?> <div class="fusion-tribe-events-list-content"> <?php do_action('tribe_events_list_widget_before_the_event_title'); ?> <!-- Event Title --> <h4 class="entry-title summary"> <a href="<?php echo esc_url(tribe_get_event_link()); ?> " rel="bookmark"><?php the_title();
echo tribe_get_events_link(); ?> "> <?php _e('« All Events', 'tribe-events-calendar'); ?> </a> </p> <!-- Notices --> <?php tribe_events_the_notices(); ?> <!-- Event featured image, but exclude link --> <?php echo tribe_event_featured_image($event_id, 'full', false); ?> <?php the_title('<h2 class="border-title"><span>', '</span></h2>'); ?> <div class="tribe-events-schedule updated published tribe-clearfix"> <?php echo tribe_events_event_schedule_details($event_id, '<h3>', '</h3>'); ?> <?php if (tribe_get_cost()) { ?> <span class="tribe-events-divider">|</span> <span class="tribe-events-cost"><?php
foreach ($posts as $post) { setup_postdata($post); ?> <li class="tribe-events-list-widget-events row <?php tribe_events_event_classes(); ?> "> <?php do_action('tribe_events_list_widget_before_the_event_title'); ?> <div class="cont-img-etv col col-lg-4 col-md-5"> <?php if (tribe_event_featured_image()) { echo tribe_event_featured_image(null, 'miniatura-eventos'); } else { echo "<div class='tribe-events-event-image'><a href='" . tribe_events_get_the_excerpt() . "'><img src='" . get_template_directory_uri() . "/images/evento-default-img.jpg' width='200' height='200' class='attachment-miniatura-eventos size-miniatura-eventos wp-post-image'/></a></div>"; } ?> </div> <div class="cont-txt-evt col col-lg-5 col-md-7" style="padding:0 10px 0 0"> <!-- Event Title --> <h4 class="tribe-event-title"> <a href="<?php echo esc_url(tribe_get_event_link()); ?> " rel="bookmark"><?php the_title(); ?> </a>