@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | * @since $VID:$ |
11 | 11 | * |
12 | 12 | */ |
13 | -class EE_PMT_Paypal_Standard extends EE_PMT_Base{ |
|
13 | +class EE_PMT_Paypal_Standard extends EE_PMT_Base { |
|
14 | 14 | |
15 | 15 | const shipping_info_none = 1; |
16 | 16 | const shipping_info_optional = 0; |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | require_once($this->file_folder().'EEG_Paypal_Standard.gateway.php'); |
27 | 27 | $this->_gateway = new EEG_Paypal_Standard(); |
28 | 28 | $this->_pretty_name = __("Paypal Standard", 'event_espresso'); |
29 | - $this->_default_description = sprintf( __( 'Upon submitting this form, you will be forwarded to PayPal to make your payment. %1$sMake sure you return to this site in order to properly finalize your registration.%2$s', 'event_espresso' ), '<strong>', '</strong>' ); |
|
29 | + $this->_default_description = sprintf(__('Upon submitting this form, you will be forwarded to PayPal to make your payment. %1$sMake sure you return to this site in order to properly finalize your registration.%2$s', 'event_espresso'), '<strong>', '</strong>'); |
|
30 | 30 | parent::__construct($pm_instance); |
31 | 31 | $this->_default_button_url = $this->file_url().'lib'.DS.'paypal-logo.png'; |
32 | 32 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @param \EE_Transaction $transaction |
39 | 39 | * @return NULL |
40 | 40 | */ |
41 | - public function generate_new_billing_form( EE_Transaction $transaction = NULL ) { |
|
41 | + public function generate_new_billing_form(EE_Transaction $transaction = NULL) { |
|
42 | 42 | return NULL; |
43 | 43 | } |
44 | 44 | |
@@ -49,10 +49,10 @@ discard block |
||
49 | 49 | * @return EE_Payment_Method_Form |
50 | 50 | */ |
51 | 51 | public function generate_new_settings_form() { |
52 | - require_once( $this->file_folder() . 'EE_Paypal_Standard_Form.form.php' ); |
|
53 | - $form = new EE_Paypal_Standard_Form( $this ); |
|
54 | - $form->get_input('PMD_debug_mode')->set_html_label_text(sprintf(__("Use Paypal Sandbox %s", 'event_espresso'), $this->get_help_tab_link())); |
|
55 | - $form->get_input('shipping_details')->set_html_label_text(sprintf(__("Shipping Address Options %s", "event_espresso"), $this->get_help_tab_link())); |
|
52 | + require_once($this->file_folder().'EE_Paypal_Standard_Form.form.php'); |
|
53 | + $form = new EE_Paypal_Standard_Form($this); |
|
54 | + $form->get_input('PMD_debug_mode')->set_html_label_text(sprintf(__("Use Paypal Sandbox %s", 'event_espresso'), $this->get_help_tab_link())); |
|
55 | + $form->get_input('shipping_details')->set_html_label_text(sprintf(__("Shipping Address Options %s", "event_espresso"), $this->get_help_tab_link())); |
|
56 | 56 | return $form; |
57 | 57 | } |
58 | 58 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * @see EE_PMT_Base::help_tabs_config() |
64 | 64 | * @return array |
65 | 65 | */ |
66 | - public function help_tabs_config(){ |
|
66 | + public function help_tabs_config() { |
|
67 | 67 | return array( |
68 | 68 | $this->get_help_tab_name() => array( |
69 | 69 | 'title'=> __("Paypal Standard Settings", 'event_espresso'), |
@@ -84,14 +84,14 @@ discard block |
||
84 | 84 | * @param EE_Transaction $transaction |
85 | 85 | * @return EE_Payment |
86 | 86 | */ |
87 | - public function finalize_payment_for($transaction){ |
|
87 | + public function finalize_payment_for($transaction) { |
|
88 | 88 | //paypal standard actually sends teh IPN info along with the user |
89 | 89 | //when they return to our site |
90 | 90 | //so in case teh IPN is arriving later, let's try to process an IPN! |
91 | - if($_SERVER['REQUEST_METHOD'] == 'POST'){ |
|
92 | - return $this->handle_ipn($_POST, $transaction ); |
|
93 | - }else{ |
|
94 | - return parent::finalize_payment_for( $transaction ); |
|
91 | + if ($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
92 | + return $this->handle_ipn($_POST, $transaction); |
|
93 | + } else { |
|
94 | + return parent::finalize_payment_for($transaction); |
|
95 | 95 | } |
96 | 96 | } |
97 | 97 |
@@ -90,7 +90,7 @@ |
||
90 | 90 | //so in case teh IPN is arriving later, let's try to process an IPN! |
91 | 91 | if($_SERVER['REQUEST_METHOD'] == 'POST'){ |
92 | 92 | return $this->handle_ipn($_POST, $transaction ); |
93 | - }else{ |
|
93 | + } else{ |
|
94 | 94 | return parent::finalize_payment_for( $transaction ); |
95 | 95 | } |
96 | 96 | } |
@@ -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(); |
@@ -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,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); ?> |
@@ -1,12 +1,12 @@ |
||
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 | -if ( espresso_display_ticket_selector( $post->ID ) && ( is_single() || ( is_archive() && espresso_display_ticket_selector_in_event_list() ))) : |
|
4 | +if (espresso_display_ticket_selector($post->ID) && (is_single() || (is_archive() && espresso_display_ticket_selector_in_event_list()))) : |
|
5 | 5 | ?> |
6 | 6 | <div class="event-tickets" style="clear: both;"> |
7 | - <?php espresso_ticket_selector( $post ); ?> |
|
7 | + <?php espresso_ticket_selector($post); ?> |
|
8 | 8 | </div> |
9 | 9 | <!-- .event-tickets --> |
10 | -<?php elseif ( ! is_single() ) : ?> |
|
11 | -<?php espresso_view_details_btn( $post ); ?> |
|
10 | +<?php elseif ( ! is_single()) : ?> |
|
11 | +<?php espresso_view_details_btn($post); ?> |
|
12 | 12 | <?php endif; ?> |
13 | 13 | \ No newline at end of file |