@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( !defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
3 | - exit( 'No direct script access allowed' ); |
|
2 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
3 | + exit('No direct script access allowed'); |
|
4 | 4 | } |
5 | 5 | |
6 | 6 | /** |
@@ -15,15 +15,15 @@ discard block |
||
15 | 15 | * |
16 | 16 | */ |
17 | 17 | class EE_Paypal_Standard_Form extends EE_Payment_Method_Form { |
18 | - protected function _normalize( $req_data ) { |
|
19 | - parent::_normalize( $req_data ); |
|
18 | + protected function _normalize($req_data) { |
|
19 | + parent::_normalize($req_data); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
23 | 23 | * |
24 | 24 | * @param EE_PMT_Paypal_Standard $payment_method_type |
25 | 25 | */ |
26 | - public function __construct( $payment_method_type ){ |
|
26 | + public function __construct($payment_method_type) { |
|
27 | 27 | $options_array = array( |
28 | 28 | 'payment_method_type' => $payment_method_type, |
29 | 29 | 'extra_meta_inputs'=>array( |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | )), |
35 | 35 | 'image_url'=>new EE_Admin_File_Uploader_Input(array( |
36 | 36 | 'html_help_text'=> __("Used for your business/personal logo on the PayPal page", 'event_espresso'), |
37 | - 'html_label_text' => __( 'Image URL', 'event_espresso' ) |
|
37 | + 'html_label_text' => __('Image URL', 'event_espresso') |
|
38 | 38 | )), |
39 | 39 | 'shipping_details'=>new EE_Select_Input(array( |
40 | 40 | EE_PMT_Paypal_Standard::shipping_info_none => __("Do not prompt for an address", 'event_espresso'), |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | 'before_form_content_template'=>$payment_method_type->file_folder().DS.'templates'.DS.'paypal_standard_settings_before_form.template.php', |
46 | 46 | ); |
47 | 47 | |
48 | - parent::__construct( $options_array ); |
|
48 | + parent::__construct($options_array); |
|
49 | 49 | } |
50 | 50 | } |
51 | 51 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | <?php _e('Adjust the settings for the PayPal Standard payment gateway.', 'event_espresso'); ?> |
4 | 4 | </p> |
5 | 5 | <p> |
6 | -<?php printf( __( 'See %1$shere%2$s for list of currencies supported by Paypal Standard.', 'event_espresso' ), "<a href='https://www.paypal.com/multicurrency' target='_blank'>","</a>" ); ?> |
|
6 | +<?php printf(__('See %1$shere%2$s for list of currencies supported by Paypal Standard.', 'event_espresso'), "<a href='https://www.paypal.com/multicurrency' target='_blank'>", "</a>"); ?> |
|
7 | 7 | </p> |
8 | 8 | <h3><?php _e('PayPal Standard Settings', 'event_espresso'); ?></h3> |
9 | 9 | <ul> |
@@ -21,17 +21,17 @@ discard block |
||
21 | 21 | </li> |
22 | 22 | <li> |
23 | 23 | <strong><?php _e('PayPal Calculates Taxes', 'event_espresso'); ?></strong><br /> |
24 | -<?php printf( __('If set to "Yes", we will indicate to PayPal that it ought to calculate the taxes on the order and add it. This means PayPal\'s tax calculations will be used on the order instead of Event Espresso\'s. %1$sRead here for more information.%2$s', 'event_espresso'), "<a href='https://www.paypal.com/ca/cgi-bin/webscr?cmd=xpt/Marketing/shipping/EasyCalculateShipAndTax-outside' target='_blank'>", '</a>' ); ?><br/> |
|
25 | -<?php _e( 'Important Note: PayPal calculates its taxes ONLY ON TAXABLE tickets. So if you mark an Event Espresso ticket as being non-taxable, PayPal will also respect that setting and those items will NOT be taxed.', 'event_espresso' );?> |
|
24 | +<?php printf(__('If set to "Yes", we will indicate to PayPal that it ought to calculate the taxes on the order and add it. This means PayPal\'s tax calculations will be used on the order instead of Event Espresso\'s. %1$sRead here for more information.%2$s', 'event_espresso'), "<a href='https://www.paypal.com/ca/cgi-bin/webscr?cmd=xpt/Marketing/shipping/EasyCalculateShipAndTax-outside' target='_blank'>", '</a>'); ?><br/> |
|
25 | +<?php _e('Important Note: PayPal calculates its taxes ONLY ON TAXABLE tickets. So if you mark an Event Espresso ticket as being non-taxable, PayPal will also respect that setting and those items will NOT be taxed.', 'event_espresso'); ?> |
|
26 | 26 | </li> |
27 | 27 | <li> |
28 | 28 | <strong><?php _e('PayPal Calculates Shipping', 'event_espresso'); ?></strong><br /> |
29 | 29 | <?php _e('Similar to the "PayPal Calculates Taxes" setting, if this is set to "Yes", we will indicate to PayPal that it ought to calculate the shipping on the order and it.', 'event_espresso'); ?><br/> |
30 | -<?php _e( 'Important Note: PayPal will ONLY calculate shipping on an order if "Shipping Address Options" is set to "Prompt for an Address" (otherwise how will PayPal know how much to charge for shipping if it doesn\'t know where it\'s shipping to?)', 'event_espresso' );?> |
|
30 | +<?php _e('Important Note: PayPal will ONLY calculate shipping on an order if "Shipping Address Options" is set to "Prompt for an Address" (otherwise how will PayPal know how much to charge for shipping if it doesn\'t know where it\'s shipping to?)', 'event_espresso'); ?> |
|
31 | 31 | <li> |
32 | -<strong><?php _e( 'Notes Regarding Paypal Taxes and Shipping', 'event_espresso' );?></strong><br/> |
|
33 | -<?php _e( 'If you want PayPal to calculate taxes and shipping on an order, those changes will NOT appear during the initial registration process until the user is redirected to PayPal for payment.', 'event_espresso' );?><br/> |
|
34 | -<?php _e( 'However, after the user has returned from PayPal, their order in Event Espresso will be updated with the new taxes and added shipping charges (e.g. it will appear on their receipt.)', 'event_espresso' );?> |
|
32 | +<strong><?php _e('Notes Regarding Paypal Taxes and Shipping', 'event_espresso'); ?></strong><br/> |
|
33 | +<?php _e('If you want PayPal to calculate taxes and shipping on an order, those changes will NOT appear during the initial registration process until the user is redirected to PayPal for payment.', 'event_espresso'); ?><br/> |
|
34 | +<?php _e('However, after the user has returned from PayPal, their order in Event Espresso will be updated with the new taxes and added shipping charges (e.g. it will appear on their receipt.)', 'event_espresso'); ?> |
|
35 | 35 | </li> |
36 | 36 | <li> |
37 | 37 | <strong><?php _e('Shipping Address Options', 'event_espresso'); ?></strong><br /> |
@@ -3,27 +3,27 @@ |
||
3 | 3 | if (!defined('EVENT_ESPRESSO_VERSION')) |
4 | 4 | exit('No direct script access allowed'); |
5 | 5 | /** |
6 | - * Event Espresso |
|
7 | - * |
|
8 | - * Event Registration and Management Plugin for WordPress |
|
9 | - * |
|
10 | - * @ package Event Espresso |
|
11 | - * @ author Seth Shoultes |
|
12 | - * @ copyright (c) 2008-2011 Event Espresso All Rights Reserved. |
|
13 | - * @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing * |
|
14 | - * @ link http://www.eventespresso.com |
|
15 | - * @ version 4.3 |
|
16 | - * |
|
17 | - * ------------------------------------------------------------------------ |
|
18 | - * |
|
19 | - * paypal_standard_settings_before_form |
|
20 | - * |
|
21 | - * @package Event Espresso |
|
22 | - * @subpackage |
|
23 | - * @author Mike Nelson |
|
24 | - * |
|
25 | - * ------------------------------------------------------------------------ |
|
26 | - */ |
|
6 | + * Event Espresso |
|
7 | + * |
|
8 | + * Event Registration and Management Plugin for WordPress |
|
9 | + * |
|
10 | + * @ package Event Espresso |
|
11 | + * @ author Seth Shoultes |
|
12 | + * @ copyright (c) 2008-2011 Event Espresso All Rights Reserved. |
|
13 | + * @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing * |
|
14 | + * @ link http://www.eventespresso.com |
|
15 | + * @ version 4.3 |
|
16 | + * |
|
17 | + * ------------------------------------------------------------------------ |
|
18 | + * |
|
19 | + * paypal_standard_settings_before_form |
|
20 | + * |
|
21 | + * @package Event Espresso |
|
22 | + * @subpackage |
|
23 | + * @author Mike Nelson |
|
24 | + * |
|
25 | + * ------------------------------------------------------------------------ |
|
26 | + */ |
|
27 | 27 | ?> |
28 | 28 | <strong style="color:#F00"><?php _e('Please Note:','event_espresso')?></strong> <?php _e("You will need a PayPal Premier or Business account for the PayPal IPN to work correctly. ", 'event_espresso'); |
29 | 29 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (!defined('EVENT_ESPRESSO_VERSION')) |
|
3 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
4 | 4 | exit('No direct script access allowed'); |
5 | 5 | /** |
6 | 6 | * Event Espresso |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * ------------------------------------------------------------------------ |
26 | 26 | */ |
27 | 27 | ?> |
28 | -<strong style="color:#F00"><?php _e('Please Note:','event_espresso')?></strong> <?php _e("You will need a PayPal Premier or Business account for the PayPal IPN to work correctly. ", 'event_espresso'); |
|
28 | +<strong style="color:#F00"><?php _e('Please Note:', 'event_espresso')?></strong> <?php _e("You will need a PayPal Premier or Business account for the PayPal IPN to work correctly. ", 'event_espresso'); |
|
29 | 29 | |
30 | 30 | |
31 | 31 | // End of file paypal_standard_settings_before_form.template.php |
32 | 32 | \ No newline at end of file |
@@ -1,7 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (!defined('EVENT_ESPRESSO_VERSION')) |
|
3 | +if (!defined('EVENT_ESPRESSO_VERSION')) { |
|
4 | 4 | exit('No direct script access allowed'); |
5 | +} |
|
5 | 6 | /** |
6 | 7 | * Event Espresso |
7 | 8 | * |
@@ -16,11 +16,11 @@ |
||
16 | 16 | |
17 | 17 | <section id="primary" class="content-area"> |
18 | 18 | <div id="content" class="site-content" role="main"> |
19 | - <?php espresso_get_template_part( 'loop', 'espresso_events' ); ?> |
|
19 | + <?php espresso_get_template_part('loop', 'espresso_events'); ?> |
|
20 | 20 | </div><!-- #content --> |
21 | 21 | </section><!-- #primary --> |
22 | 22 | |
23 | 23 | <?php |
24 | -get_sidebar( 'content' ); |
|
24 | +get_sidebar('content'); |
|
25 | 25 | get_sidebar(); |
26 | 26 | get_footer(); |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template Name: Event List |
|
4 | - * |
|
5 | - * This template will display a list of your events |
|
6 | - * |
|
7 | - * @ package Event Espresso |
|
8 | - * @ author Seth Shoultes |
|
9 | - * @ copyright (c) 2008-2014 Event Espresso All Rights Reserved. |
|
10 | - * @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing * |
|
11 | - * @ link http://www.eventespresso.com |
|
12 | - * @ version EE4+ |
|
13 | - */ |
|
3 | + * Template Name: Event List |
|
4 | + * |
|
5 | + * This template will display a list of your events |
|
6 | + * |
|
7 | + * @ package Event Espresso |
|
8 | + * @ author Seth Shoultes |
|
9 | + * @ copyright (c) 2008-2014 Event Espresso All Rights Reserved. |
|
10 | + * @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing * |
|
11 | + * @ link http://www.eventespresso.com |
|
12 | + * @ version EE4+ |
|
13 | + */ |
|
14 | 14 | get_header(); |
15 | 15 | ?> |
16 | 16 |
@@ -18,11 +18,11 @@ |
||
18 | 18 | |
19 | 19 | <section id="primary" class="content-area"> |
20 | 20 | <div id="content" class="site-content" role="main"> |
21 | - <?php espresso_get_template_part( 'loop', 'espresso_venues' ); ?> |
|
21 | + <?php espresso_get_template_part('loop', 'espresso_venues'); ?> |
|
22 | 22 | </div><!-- #content --> |
23 | 23 | </section><!-- #primary --> |
24 | 24 | |
25 | 25 | <?php |
26 | -get_sidebar( 'content' ); |
|
26 | +get_sidebar('content'); |
|
27 | 27 | get_sidebar(); |
28 | 28 | get_footer(); |
29 | 29 | \ No newline at end of file |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template Name: Venue List |
|
4 | - * |
|
5 | - * This is template will display a list of your event venues |
|
6 | - * |
|
7 | - * Event Registration and Management Plugin for WordPress |
|
8 | - * |
|
9 | - * @ package Event Espresso |
|
10 | - * @ author Seth Shoultes |
|
11 | - * @ copyright (c) 2008-2014 Event Espresso All Rights Reserved. |
|
12 | - * @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing * |
|
13 | - * @ link http://www.eventespresso.com |
|
14 | - * @ version EE4+ |
|
15 | - */ |
|
3 | + * Template Name: Venue List |
|
4 | + * |
|
5 | + * This is template will display a list of your event venues |
|
6 | + * |
|
7 | + * Event Registration and Management Plugin for WordPress |
|
8 | + * |
|
9 | + * @ package Event Espresso |
|
10 | + * @ author Seth Shoultes |
|
11 | + * @ copyright (c) 2008-2014 Event Espresso All Rights Reserved. |
|
12 | + * @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing * |
|
13 | + * @ link http://www.eventespresso.com |
|
14 | + * @ version EE4+ |
|
15 | + */ |
|
16 | 16 | get_header(); |
17 | 17 | ?> |
18 | 18 |
@@ -11,14 +11,14 @@ |
||
11 | 11 | * @type EE_Attendee $contact |
12 | 12 | * @type bool $show_gravatar whether to show gravatar or not. |
13 | 13 | */ |
14 | -if ( $show_gravatar ) { |
|
15 | - $gravatar = get_avatar( $contact->email(), |
|
16 | - (int) apply_filters( 'FHEE__loop-espresso_attendees-shortcode__template__avatar_size', 32 ) |
|
14 | +if ($show_gravatar) { |
|
15 | + $gravatar = get_avatar($contact->email(), |
|
16 | + (int) apply_filters('FHEE__loop-espresso_attendees-shortcode__template__avatar_size', 32) |
|
17 | 17 | ); |
18 | 18 | } else { |
19 | 19 | $gravatar = ''; |
20 | 20 | } |
21 | 21 | ?> |
22 | -<?php do_action( 'AHEE__content-espresso_event_attendees__before', $contact, $show_gravatar ); ?> |
|
23 | -<li><?php echo $gravatar . ' ' . $contact->full_name(); ?></li> |
|
24 | -<?php do_action( 'AHEE__content-espresso_event_attendees__after', $contact, $show_gravatar ); ?> |
|
25 | 22 | \ No newline at end of file |
23 | +<?php do_action('AHEE__content-espresso_event_attendees__before', $contact, $show_gravatar); ?> |
|
24 | +<li><?php echo $gravatar.' '.$contact->full_name(); ?></li> |
|
25 | +<?php do_action('AHEE__content-espresso_event_attendees__after', $contact, $show_gravatar); ?> |
|
26 | 26 | \ No newline at end of file |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Content Template for the [ESPRESSO_EVENT_ATTENDEES] shortcode |
|
4 | - * |
|
5 | - * @package Event Espresso |
|
6 | - * @subpackage templates |
|
7 | - * @since 4.6.29 |
|
8 | - * @author Darren Ethier |
|
9 | - * |
|
10 | - * Template Args that are available in this template |
|
11 | - * @type EE_Attendee $contact |
|
12 | - * @type bool $show_gravatar whether to show gravatar or not. |
|
13 | - */ |
|
3 | + * Content Template for the [ESPRESSO_EVENT_ATTENDEES] shortcode |
|
4 | + * |
|
5 | + * @package Event Espresso |
|
6 | + * @subpackage templates |
|
7 | + * @since 4.6.29 |
|
8 | + * @author Darren Ethier |
|
9 | + * |
|
10 | + * Template Args that are available in this template |
|
11 | + * @type EE_Attendee $contact |
|
12 | + * @type bool $show_gravatar whether to show gravatar or not. |
|
13 | + */ |
|
14 | 14 | if ( $show_gravatar ) { |
15 | 15 | $gravatar = get_avatar( $contact->email(), |
16 | 16 | (int) apply_filters( 'FHEE__loop-espresso_attendees-shortcode__template__avatar_size', 32 ) |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>'; |
3 | 3 | |
4 | -if ( is_single() || is_archive() && espresso_display_datetimes_in_event_list() ) : |
|
4 | +if (is_single() || is_archive() && espresso_display_datetimes_in_event_list()) : |
|
5 | 5 | global $post; |
6 | -do_action( 'AHEE_event_details_before_event_date', $post ); |
|
6 | +do_action('AHEE_event_details_before_event_date', $post); |
|
7 | 7 | ?> |
8 | 8 | <div class="event-datetimes"> |
9 | - <?php espresso_list_of_event_dates( $post->ID );?> |
|
9 | + <?php espresso_list_of_event_dates($post->ID); ?> |
|
10 | 10 | </div> |
11 | 11 | <!-- .event-datetimes --> |
12 | 12 | <?php |
13 | -do_action( 'AHEE_event_details_after_event_date', $post ); |
|
13 | +do_action('AHEE_event_details_after_event_date', $post); |
|
14 | 14 | endif; |
15 | 15 | ?> |
16 | 16 | \ No newline at end of file |
@@ -3,12 +3,12 @@ |
||
3 | 3 | global $post; |
4 | 4 | ?> |
5 | 5 | <header class="event-header"> |
6 | - <?php if ( is_single() ) : ?> |
|
6 | + <?php if (is_single()) : ?> |
|
7 | 7 | <h1 id="event-details-h1-<?php echo $post->ID; ?>" class="entry-title"> |
8 | 8 | <?php else : ?> |
9 | 9 | <h2 id="event-details-h2-<?php echo $post->ID; ?>" class="entry-title"> |
10 | 10 | <?php endif; ?> |
11 | 11 | <a class="" href="<?php the_permalink(); ?>"><?php the_title(); ?></a> |
12 | - <?php if ( is_single() ) : ?></h1><?php else : ?></h2><?php endif; ?> |
|
13 | - <?php if ( ! is_archive() && has_excerpt( $post->ID )): the_excerpt(); endif;?> |
|
12 | + <?php if (is_single()) : ?></h1><?php else : ?></h2><?php endif; ?> |
|
13 | + <?php if ( ! is_archive() && has_excerpt($post->ID)): the_excerpt(); endif; ?> |
|
14 | 14 | </header> |
@@ -5,10 +5,16 @@ |
||
5 | 5 | <header class="event-header"> |
6 | 6 | <?php if ( is_single() ) : ?> |
7 | 7 | <h1 id="event-details-h1-<?php echo $post->ID; ?>" class="entry-title"> |
8 | - <?php else : ?> |
|
9 | - <h2 id="event-details-h2-<?php echo $post->ID; ?>" class="entry-title"> |
|
8 | + <?php else { |
|
9 | + : ?> |
|
10 | + <h2 id="event-details-h2-<?php echo $post->ID; |
|
11 | +} |
|
12 | +?>" class="entry-title"> |
|
10 | 13 | <?php endif; ?> |
11 | 14 | <a class="" href="<?php the_permalink(); ?>"><?php the_title(); ?></a> |
12 | - <?php if ( is_single() ) : ?></h1><?php else : ?></h2><?php endif; ?> |
|
15 | + <?php if ( is_single() ) : ?></h1><?php else { |
|
16 | + : ?></h2><?php endif; |
|
17 | +} |
|
18 | +?> |
|
13 | 19 | <?php if ( ! is_archive() && has_excerpt( $post->ID )): the_excerpt(); endif;?> |
14 | 20 | </header> |
@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>'; |
3 | 3 | global $post; |
4 | -do_action( 'AHEE_event_details_before_featured_img', $post ); |
|
4 | +do_action('AHEE_event_details_before_featured_img', $post); |
|
5 | 5 | |
6 | -if ( has_post_thumbnail( $post->ID )) : |
|
7 | - if ( $img_ID = get_post_thumbnail_id( $post->ID )) : |
|
8 | - if ( $featured_img = wp_get_attachment_image_src( $img_ID, 'large' )) : |
|
9 | - $caption = esc_attr( get_post( get_post( $img_ID ))->post_excerpt ); |
|
6 | +if (has_post_thumbnail($post->ID)) : |
|
7 | + if ($img_ID = get_post_thumbnail_id($post->ID)) : |
|
8 | + if ($featured_img = wp_get_attachment_image_src($img_ID, 'large')) : |
|
9 | + $caption = esc_attr(get_post(get_post($img_ID))->post_excerpt); |
|
10 | 10 | ?> |
11 | 11 | <div id="ee-event-img-dv-<?php echo $post->ID; ?>" class="ee-event-img-dv"> |
12 | 12 | <a class="" href="<?php the_permalink(); ?>"> |
@@ -18,4 +18,4 @@ discard block |
||
18 | 18 | endif; |
19 | 19 | endif; |
20 | 20 | ?> |
21 | -<?php do_action( 'AHEE_event_details_after_featured_img', $post );?> |
|
21 | +<?php do_action('AHEE_event_details_after_featured_img', $post); ?> |