Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * 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'); } ?>
- <?php
- // Setup an array of venue details for use later in the template
- $venue_details = array();
- if ($venue_name = tribe_get_meta( 'tribe_event_venue_name' ) ) {
- $venue_details[] = $venue_name;
- }
- if ($venue_address = tribe_get_meta( 'tribe_event_venue_address' ) ) {
- $venue_details[] = $venue_address;
- }
- // Venue microformats
- $has_venue_address = ( $venue_address ) ? ' location': '';
- // Organizer
- $organizer = tribe_get_organizer();
- ?>
- <!-- Event Title -->
- <?php do_action( 'tribe_events_before_the_event_title' ) ?>
- <div class="list-view">
- <div class="row">
- <div class="col-xs-12 col-sm-12 col-md-3 col-lg-4">
- <!-- Event Image -->
- <div class="thumbnail"> <?php echo tribe_event_featured_image( null, 'thumbnail', array('class' => 'img-responsive')) ?>
- <div class="clearfix"></div>
- <div class="caption text-center"> <a href="<?php echo tribe_get_event_link() ?>" class="tribe-events-read-more visible-xs" rel="bookmark">
- <button class="btn btn-primary btn-block">More Info / Tickets</button>
- </a>
- <h3 class="hidden-xs"><?php echo tribe_get_venue() ?></h3>
- <p class="hidden-xs"><?php echo tribe_get_full_address() ?></p>
- <p class="hidden-xs">This event is presented by:<br />
- <?php echo tribe_get_organizer_link (); ?></p>
- </div>
- </div>
- </div>
- <!-- Event Content -->
- <?php do_action( 'tribe_events_before_the_content' ) ?>
- <div class="hidden-xs col-sm-12 col-md-p col-lg-8">
- <div class="page-header"> <a class="url" href="<?php echo tribe_get_event_link() ?>" title="<?php the_title() ?>" rel="bookmark">
- <h3>
- <?php the_title() ?>
- </h3>
- </a> </div>
- <div class="panel panel-default">
- <div class="panel-heading"> <span class="btn-group">
- <h5> <?php echo tribe_events_event_schedule_details() ?> </h5>
- </span>
- <?php if ( tribe_get_cost() ) : ?>
- <span class="btn-group pull-right"> <a href="<?php echo esc_url( tribe_get_custom_field( 'Tickets' ) ) ?>" target="_blank">
- <button class="btn btn-default"> <?php echo tribe_get_cost( null, true ); ?> </button>
- </a> </span>
- <div class="clearfix"></div>
- <?php endif; ?>
- </div>
- <div class="panel-body">
- <?php the_excerpt() ?>
- </div>
- <div class="panel-footer"> <a href="<?php echo tribe_get_map_link(); ?>" target="_blank">
- <button class="btn btn-primary pull-left">Map It</button>
- </a>
- <?php if ( ! $event_passed ): ?>
- <a href="<?php echo esc_url( tribe_get_custom_field( 'Tickets' ) ) ?>" target="_blank">
- <button class="btn btn-primary pull-right buy-tickets">Buy Tickets</button>
- </a>
- <?php endif ?>
- <a href="<?php echo tribe_get_event_link() ?>" class="tribe-events-read-more" rel="bookmark">
- <button class="btn btn-primary pull-right">Find Out More</button>
- </a>
- <div class="clearfix"></div>
- </div>
- </div>
- </div>
- <!--/.col-->
- <!-- .tribe-events-list-event-description -->
- <?php do_action( 'tribe_events_after_the_content' ) ?>
- </div>
- </div>
- <hr class="hidden-xs" />
Advertisement
Add Comment
Please, Sign In to add comment