@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php //echo '<h1>' . __FILE__ . '</h1>'; ?> |
| 2 | 2 | <?php global $post; ?> |
| 3 | -<?php do_action( 'AHEE__content_espresso_venues_template__before_featured_img', $post ); ?> |
|
| 3 | +<?php do_action('AHEE__content_espresso_venues_template__before_featured_img', $post); ?> |
|
| 4 | 4 | <?php |
| 5 | -if ( has_post_thumbnail( $post->ID )) : |
|
| 6 | - if ( $img_ID = get_post_thumbnail_id( $post->ID )) : |
|
| 7 | - if ( $featured_img = wp_get_attachment_image_src( $img_ID, 'large' )) : |
|
| 8 | - $caption = esc_attr( get_post( get_post( $img_ID ))->post_excerpt ); |
|
| 5 | +if (has_post_thumbnail($post->ID)) : |
|
| 6 | + if ($img_ID = get_post_thumbnail_id($post->ID)) : |
|
| 7 | + if ($featured_img = wp_get_attachment_image_src($img_ID, 'large')) : |
|
| 8 | + $caption = esc_attr(get_post(get_post($img_ID))->post_excerpt); |
|
| 9 | 9 | $wrap_class .= ' has-img'; |
| 10 | 10 | ?> |
| 11 | 11 | <div id="ee-venue-img-dv-<?php echo $post->ID; ?>" class="ee-venue-img-dv"> |
@@ -18,5 +18,5 @@ discard block |
||
| 18 | 18 | endif; |
| 19 | 19 | endif; |
| 20 | 20 | ?> |
| 21 | -<?php do_action( 'AHEE__content_espresso_venues_template__after_featured_img', $post );?> |
|
| 21 | +<?php do_action('AHEE__content_espresso_venues_template__after_featured_img', $post); ?> |
|
| 22 | 22 | <!-- .venue-content --> |
@@ -11,41 +11,41 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | 13 | global $post; |
| 14 | -$wrap_class = has_excerpt( $post->ID ) ? ' has-excerpt' : ''; |
|
| 14 | +$wrap_class = has_excerpt($post->ID) ? ' has-excerpt' : ''; |
|
| 15 | 15 | ?> |
| 16 | -<?php do_action( 'AHEE__content_espresso_venues_template__before_post', $post ); ?> |
|
| 17 | -<article id="post-<?php the_ID(); ?>" <?php post_class( 'espresso-venue-details entry-content ' . $wrap_class ); ?>> |
|
| 16 | +<?php do_action('AHEE__content_espresso_venues_template__before_post', $post); ?> |
|
| 17 | +<article id="post-<?php the_ID(); ?>" <?php post_class('espresso-venue-details entry-content '.$wrap_class); ?>> |
|
| 18 | 18 | |
| 19 | -<?php if ( is_single() ) : ?> |
|
| 19 | +<?php if (is_single()) : ?> |
|
| 20 | 20 | |
| 21 | - <div id="espresso-venue-header-dv-<?php echo $post->ID;?>" class="espresso-venue-header-dv"> |
|
| 22 | - <?php espresso_get_template_part( 'content', 'espresso_venues-thumbnail' ); ?> |
|
| 23 | - <?php espresso_get_template_part( 'content', 'espresso_venues-header' ); ?> |
|
| 21 | + <div id="espresso-venue-header-dv-<?php echo $post->ID; ?>" class="espresso-venue-header-dv"> |
|
| 22 | + <?php espresso_get_template_part('content', 'espresso_venues-thumbnail'); ?> |
|
| 23 | + <?php espresso_get_template_part('content', 'espresso_venues-header'); ?> |
|
| 24 | 24 | </div> |
| 25 | 25 | |
| 26 | 26 | <div class="espresso-venue-wrapper-dv"> |
| 27 | - <?php espresso_get_template_part( 'content', 'espresso_venues-details' ); ?> |
|
| 28 | - <?php espresso_get_template_part( 'content', 'espresso_venues-location' ); ?> |
|
| 27 | + <?php espresso_get_template_part('content', 'espresso_venues-details'); ?> |
|
| 28 | + <?php espresso_get_template_part('content', 'espresso_venues-location'); ?> |
|
| 29 | 29 | <footer class="venue-meta"> |
| 30 | - <?php do_action( 'AHEE__content_espresso_venues_template__footer_top', $post ); ?> |
|
| 31 | - <?php do_action( 'AHEE__content_espresso_venues_template__footer_bottom', $post ); ?> |
|
| 30 | + <?php do_action('AHEE__content_espresso_venues_template__footer_top', $post); ?> |
|
| 31 | + <?php do_action('AHEE__content_espresso_venues_template__footer_bottom', $post); ?> |
|
| 32 | 32 | </footer> |
| 33 | 33 | </div> |
| 34 | 34 | |
| 35 | -<?php elseif ( is_archive() ) : ?> |
|
| 35 | +<?php elseif (is_archive()) : ?> |
|
| 36 | 36 | |
| 37 | - <div id="espresso-venue-header-dv-<?php echo $post->ID;?>" class="espresso-venue-header-dv"> |
|
| 38 | - <?php espresso_get_template_part( 'content', 'espresso_venues-thumbnail' ); ?> |
|
| 39 | - <?php espresso_get_template_part( 'content', 'espresso_venues-header' ); ?> |
|
| 37 | + <div id="espresso-venue-header-dv-<?php echo $post->ID; ?>" class="espresso-venue-header-dv"> |
|
| 38 | + <?php espresso_get_template_part('content', 'espresso_venues-thumbnail'); ?> |
|
| 39 | + <?php espresso_get_template_part('content', 'espresso_venues-header'); ?> |
|
| 40 | 40 | </div> |
| 41 | 41 | |
| 42 | 42 | <div class="espresso-venue-wrapper-dv"> |
| 43 | - <?php espresso_get_template_part( 'content', 'espresso_venues-details' ); ?> |
|
| 43 | + <?php espresso_get_template_part('content', 'espresso_venues-details'); ?> |
|
| 44 | 44 | </div> |
| 45 | 45 | |
| 46 | 46 | <?php endif; ?> |
| 47 | 47 | |
| 48 | 48 | </article> |
| 49 | 49 | <!-- #post --> |
| 50 | -<?php do_action( 'AHEE__content_espresso_venues_template__after_post', $post ); |
|
| 50 | +<?php do_action('AHEE__content_espresso_venues_template__after_post', $post); |
|
| 51 | 51 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * @ link http://www.eventespresso.com |
| 10 | 10 | * @ version 4+ |
| 11 | 11 | */ |
| 12 | -define( 'EE_THEME_FUNCTIONS_LOADED', TRUE ); |
|
| 12 | +define('EE_THEME_FUNCTIONS_LOADED', TRUE); |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * espresso_pagination |
@@ -20,20 +20,20 @@ discard block |
||
| 20 | 20 | function espresso_pagination() { |
| 21 | 21 | global $wp_query; |
| 22 | 22 | $big = 999999999; // need an unlikely integer |
| 23 | - $pagination = paginate_links( array( |
|
| 24 | - 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), |
|
| 23 | + $pagination = paginate_links(array( |
|
| 24 | + 'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))), |
|
| 25 | 25 | 'format' => '?paged=%#%', |
| 26 | - 'current' => max( 1, get_query_var('paged') ), |
|
| 26 | + 'current' => max(1, get_query_var('paged')), |
|
| 27 | 27 | 'total' => $wp_query->max_num_pages, |
| 28 | 28 | 'show_all' => TRUE, |
| 29 | 29 | 'end_size' => 10, |
| 30 | 30 | 'mid_size' => 6, |
| 31 | 31 | 'prev_next' => TRUE, |
| 32 | - 'prev_text' => __( '‹ PREV', 'event_espresso' ), |
|
| 33 | - 'next_text' => __( 'NEXT ›', 'event_espresso' ), |
|
| 32 | + 'prev_text' => __('‹ PREV', 'event_espresso'), |
|
| 33 | + 'next_text' => __('NEXT ›', 'event_espresso'), |
|
| 34 | 34 | 'type' => 'plain', |
| 35 | 35 | 'add_args' => FALSE, |
| 36 | 36 | 'add_fragment' => '' |
| 37 | 37 | )); |
| 38 | - echo ! empty( $pagination ) ? '<div class="ee-pagination-dv clear">' . $pagination . '</div>' : ''; |
|
| 38 | + echo ! empty($pagination) ? '<div class="ee-pagination-dv clear">'.$pagination.'</div>' : ''; |
|
| 39 | 39 | } |
| 40 | 40 | \ No newline at end of file |
@@ -10,22 +10,22 @@ discard block |
||
| 10 | 10 | * @ version 4+ |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | - if ( have_posts() ) : ?> |
|
| 13 | + if (have_posts()) : ?> |
|
| 14 | 14 | |
| 15 | 15 | <header class="page-header"> |
| 16 | 16 | <h1 class="page-title"> |
| 17 | 17 | <?php |
| 18 | - if ( is_day() ) : |
|
| 19 | - printf( __( 'Today\'s Events: %s', 'event_espresso' ), get_the_date() ); |
|
| 18 | + if (is_day()) : |
|
| 19 | + printf(__('Today\'s Events: %s', 'event_espresso'), get_the_date()); |
|
| 20 | 20 | |
| 21 | - elseif ( is_month() ) : |
|
| 22 | - printf( __( 'Events This Month: %s', 'event_espresso' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'event_espresso' ) ) ); |
|
| 21 | + elseif (is_month()) : |
|
| 22 | + printf(__('Events This Month: %s', 'event_espresso'), get_the_date(_x('F Y', 'monthly archives date format', 'event_espresso'))); |
|
| 23 | 23 | |
| 24 | - elseif ( is_year() ) : |
|
| 25 | - printf( __( 'Events This Year: %s', 'event_espresso' ), get_the_date( _x( 'Y', 'yearly archives date format', 'event_espresso' ) ) ); |
|
| 24 | + elseif (is_year()) : |
|
| 25 | + printf(__('Events This Year: %s', 'event_espresso'), get_the_date(_x('Y', 'yearly archives date format', 'event_espresso'))); |
|
| 26 | 26 | |
| 27 | 27 | else : |
| 28 | - echo apply_filters( 'FHEE__archive_espresso_events_template__upcoming_events_h1', __( 'Upcoming Events', 'event_espresso' )); |
|
| 28 | + echo apply_filters('FHEE__archive_espresso_events_template__upcoming_events_h1', __('Upcoming Events', 'event_espresso')); |
|
| 29 | 29 | |
| 30 | 30 | endif; |
| 31 | 31 | ?> |
@@ -34,20 +34,20 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | <?php |
| 36 | 36 | // allow other stuff |
| 37 | - do_action( 'AHEE__archive_espresso_events_template__before_loop' ); |
|
| 37 | + do_action('AHEE__archive_espresso_events_template__before_loop'); |
|
| 38 | 38 | // Start the Loop. |
| 39 | - while ( have_posts() ) : the_post(); |
|
| 39 | + while (have_posts()) : the_post(); |
|
| 40 | 40 | // Include the post TYPE-specific template for the content. |
| 41 | - espresso_get_template_part( 'content', 'espresso_events' ); |
|
| 41 | + espresso_get_template_part('content', 'espresso_events'); |
|
| 42 | 42 | endwhile; |
| 43 | 43 | // Previous/next page navigation. |
| 44 | 44 | espresso_pagination(); |
| 45 | 45 | // allow moar other stuff |
| 46 | - do_action( 'AHEE__archive_espresso_events_template__after_loop' ); |
|
| 46 | + do_action('AHEE__archive_espresso_events_template__after_loop'); |
|
| 47 | 47 | |
| 48 | 48 | else : |
| 49 | 49 | // If no content, include the "No posts found" template. |
| 50 | - espresso_get_template_part( 'content', 'none' ); |
|
| 50 | + espresso_get_template_part('content', 'none'); |
|
| 51 | 51 | |
| 52 | 52 | endif; |
| 53 | 53 | |
@@ -24,8 +24,10 @@ discard block |
||
| 24 | 24 | elseif ( is_year() ) : |
| 25 | 25 | printf( __( 'Events This Year: %s', 'event_espresso' ), get_the_date( _x( 'Y', 'yearly archives date format', 'event_espresso' ) ) ); |
| 26 | 26 | |
| 27 | - else : |
|
| 27 | + else { |
|
| 28 | + : |
|
| 28 | 29 | echo apply_filters( 'FHEE__archive_espresso_events_template__upcoming_events_h1', __( 'Upcoming Events', 'event_espresso' )); |
| 30 | + } |
|
| 29 | 31 | |
| 30 | 32 | endif; |
| 31 | 33 | ?> |
@@ -45,9 +47,11 @@ discard block |
||
| 45 | 47 | // allow moar other stuff |
| 46 | 48 | do_action( 'AHEE__archive_espresso_events_template__after_loop' ); |
| 47 | 49 | |
| 48 | - else : |
|
| 50 | + else { |
|
| 51 | + : |
|
| 49 | 52 | // If no content, include the "No posts found" template. |
| 50 | 53 | espresso_get_template_part( 'content', 'none' ); |
| 54 | + } |
|
| 51 | 55 | |
| 52 | 56 | endif; |
| 53 | 57 | |
@@ -10,30 +10,30 @@ |
||
| 10 | 10 | * @ version 4+ |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | -if ( have_posts() ) : ?> |
|
| 13 | +if (have_posts()) : ?> |
|
| 14 | 14 | |
| 15 | 15 | <header class="page-header"> |
| 16 | 16 | <h1 class="page-title"> |
| 17 | - <?php echo __( 'Event Venues', 'event_espresso' ); ?> |
|
| 17 | + <?php echo __('Event Venues', 'event_espresso'); ?> |
|
| 18 | 18 | </h1> |
| 19 | 19 | </header><!-- .page-header --> |
| 20 | 20 | |
| 21 | 21 | <?php |
| 22 | 22 | // allow other stuff |
| 23 | - do_action( 'AHEE__archive_espresso_venues_template__before_loop' ); |
|
| 23 | + do_action('AHEE__archive_espresso_venues_template__before_loop'); |
|
| 24 | 24 | // Start the Loop. |
| 25 | - while ( have_posts() ) : the_post(); |
|
| 25 | + while (have_posts()) : the_post(); |
|
| 26 | 26 | // Include the post TYPE-specific template for the content. |
| 27 | - espresso_get_template_part( 'content', 'espresso_venues' ); |
|
| 27 | + espresso_get_template_part('content', 'espresso_venues'); |
|
| 28 | 28 | endwhile; |
| 29 | 29 | // Previous/next page navigation. |
| 30 | 30 | espresso_pagination(); |
| 31 | 31 | // allow moar other stuff |
| 32 | - do_action( 'AHEE__archive_espresso_venues_template__after_loop' ); |
|
| 32 | + do_action('AHEE__archive_espresso_venues_template__after_loop'); |
|
| 33 | 33 | |
| 34 | 34 | |
| 35 | 35 | else : |
| 36 | 36 | // If no content, include the "No posts found" template. |
| 37 | - espresso_get_template_part( 'content', 'none' ); |
|
| 37 | + espresso_get_template_part('content', 'none'); |
|
| 38 | 38 | |
| 39 | 39 | endif; |
@@ -32,8 +32,10 @@ |
||
| 32 | 32 | do_action( 'AHEE__archive_espresso_venues_template__after_loop' ); |
| 33 | 33 | |
| 34 | 34 | |
| 35 | -else : |
|
| 35 | +else { |
|
| 36 | + : |
|
| 36 | 37 | // If no content, include the "No posts found" template. |
| 37 | 38 | espresso_get_template_part( 'content', 'none' ); |
| 39 | +} |
|
| 38 | 40 | |
| 39 | 41 | endif; |
@@ -18,11 +18,11 @@ discard block |
||
| 18 | 18 | <div id="espresso-event-details-dv" class="" > |
| 19 | 19 | <?php |
| 20 | 20 | // Start the Loop. |
| 21 | - while ( have_posts() ) : the_post(); |
|
| 21 | + while (have_posts()) : the_post(); |
|
| 22 | 22 | // Include the post TYPE-specific template for the content. |
| 23 | - espresso_get_template_part( 'content', 'espresso_events' ); |
|
| 23 | + espresso_get_template_part('content', 'espresso_events'); |
|
| 24 | 24 | // If comments are open or we have at least one comment, load up the comment template. |
| 25 | - if ( comments_open() || get_comments_number() ) { |
|
| 25 | + if (comments_open() || get_comments_number()) { |
|
| 26 | 26 | comments_template(); |
| 27 | 27 | } |
| 28 | 28 | endwhile; |
@@ -34,6 +34,6 @@ discard block |
||
| 34 | 34 | </div><!-- #primary --> |
| 35 | 35 | |
| 36 | 36 | <?php |
| 37 | -get_sidebar( 'content' ); |
|
| 37 | +get_sidebar('content'); |
|
| 38 | 38 | get_sidebar(); |
| 39 | 39 | get_footer(); |
| 40 | 40 | \ No newline at end of file |
@@ -18,11 +18,11 @@ discard block |
||
| 18 | 18 | <div id="espresso-venue-details-dv" class="" > |
| 19 | 19 | <?php |
| 20 | 20 | // Start the Loop. |
| 21 | - while ( have_posts() ) : the_post(); |
|
| 21 | + while (have_posts()) : the_post(); |
|
| 22 | 22 | // Include the post TYPE-specific template for the content. |
| 23 | - espresso_get_template_part( 'content', 'espresso_venues' ); |
|
| 23 | + espresso_get_template_part('content', 'espresso_venues'); |
|
| 24 | 24 | // If comments are open or we have at least one comment, load up the comment template. |
| 25 | - if ( comments_open() || get_comments_number() ) { |
|
| 25 | + if (comments_open() || get_comments_number()) { |
|
| 26 | 26 | comments_template(); |
| 27 | 27 | } |
| 28 | 28 | endwhile; |
@@ -34,6 +34,6 @@ discard block |
||
| 34 | 34 | </div><!-- #primary --> |
| 35 | 35 | |
| 36 | 36 | <?php |
| 37 | -get_sidebar( 'content' ); |
|
| 37 | +get_sidebar('content'); |
|
| 38 | 38 | get_sidebar(); |
| 39 | 39 | get_footer(); |
| 40 | 40 | \ No newline at end of file |
@@ -51,17 +51,17 @@ discard block |
||
| 51 | 51 | * @param WP $WP |
| 52 | 52 | * @return void |
| 53 | 53 | */ |
| 54 | - public function run( WP $WP ) { |
|
| 55 | - if ( ! did_action( 'pre_get_posts' )) { |
|
| 54 | + public function run(WP $WP) { |
|
| 55 | + if ( ! did_action('pre_get_posts')) { |
|
| 56 | 56 | // hook into the top of pre_get_posts to set the reg step routing, which gives other modules or plugins a chance to modify the reg steps, but just before the routes get called |
| 57 | - add_action( 'pre_get_posts', array( 'EED_Single_Page_Checkout', 'load_reg_steps' ), 1 ); |
|
| 57 | + add_action('pre_get_posts', array('EED_Single_Page_Checkout', 'load_reg_steps'), 1); |
|
| 58 | 58 | // this will trigger the EED_Single_Page_Checkout module's run() method during the pre_get_posts hook point, |
| 59 | 59 | // this allows us to initialize things, enqueue assets, etc, |
| 60 | - add_action( 'pre_get_posts', array( 'EED_Single_Page_Checkout', 'init' ), 10, 1 ); |
|
| 60 | + add_action('pre_get_posts', array('EED_Single_Page_Checkout', 'init'), 10, 1); |
|
| 61 | 61 | } else { |
| 62 | 62 | global $wp_query; |
| 63 | 63 | EED_Single_Page_Checkout::load_reg_steps(); |
| 64 | - EED_Single_Page_Checkout::init( $wp_query ); |
|
| 64 | + EED_Single_Page_Checkout::init($wp_query); |
|
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | 67 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * @param array $attributes |
| 75 | 75 | * @return string |
| 76 | 76 | */ |
| 77 | - public function process_shortcode( $attributes = array() ) { |
|
| 77 | + public function process_shortcode($attributes = array()) { |
|
| 78 | 78 | return EE_Registry::instance()->REQ->get_output(); |
| 79 | 79 | } |
| 80 | 80 | |
@@ -1,4 +1,6 @@ |
||
| 1 | -<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed'); |
|
| 1 | +<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
| 2 | + exit('No direct script access allowed'); |
|
| 3 | +} |
|
| 2 | 4 | /** |
| 3 | 5 | * Event Espresso |
| 4 | 6 | * |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | -<?php do_action( 'AHEE__thank_you_page_overview_template__top', $transaction ); ?> |
|
| 1 | +<?php do_action('AHEE__thank_you_page_overview_template__top', $transaction); ?> |
|
| 2 | 2 | |
| 3 | 3 | <div id="espresso-thank-you-page-overview-dv" class="width-100" > |
| 4 | 4 | |
| 5 | - <?php if ( ! $revisit ) : ?> |
|
| 5 | + <?php if ( ! $revisit) : ?> |
|
| 6 | 6 | <div class="ee-attention"> |
| 7 | 7 | <div class="extra-padding-sides"> |
| 8 | 8 | <p class="bigger-text"> |
@@ -18,9 +18,9 @@ discard block |
||
| 18 | 18 | ); |
| 19 | 19 | ?> |
| 20 | 20 | </p> |
| 21 | - <?php if ( ! empty( $TXN_receipt_url )) : ?> |
|
| 21 | + <?php if ( ! empty($TXN_receipt_url)) : ?> |
|
| 22 | 22 | <div class="jst-rght"> |
| 23 | - <a class="ee-button ee-roundish indented-text big-text" href="<?php echo $TXN_receipt_url;?>"><span class="ee-icon ee-icon-PDF-file-type"></span><?php echo apply_filters( 'FHEE__thank_you_page_overview_template__order_conf_button_text', __( 'View Full Order Confirmation Receipt', 'event_espresso' )); ?></a> |
|
| 23 | + <a class="ee-button ee-roundish indented-text big-text" href="<?php echo $TXN_receipt_url; ?>"><span class="ee-icon ee-icon-PDF-file-type"></span><?php echo apply_filters('FHEE__thank_you_page_overview_template__order_conf_button_text', __('View Full Order Confirmation Receipt', 'event_espresso')); ?></a> |
|
| 24 | 24 | </div> |
| 25 | 25 | <?php endif; ?> |
| 26 | 26 | </div> |
@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | <?php endif; ?> |
| 30 | 30 | <br/> |
| 31 | 31 | |
| 32 | - <?php do_action( 'AHEE__thank_you_page_overview_template__content', $transaction ); ?> |
|
| 32 | + <?php do_action('AHEE__thank_you_page_overview_template__content', $transaction); ?> |
|
| 33 | 33 | |
| 34 | 34 | </div> |
| 35 | 35 | <!-- end of espresso-thank-you-page-overview-dv --> |
| 36 | 36 | |
| 37 | -<?php do_action( 'AHEE__thank_you_page_overview_template__bottom', $transaction ); ?> |
|
| 37 | +<?php do_action('AHEE__thank_you_page_overview_template__bottom', $transaction); ?> |
|