@@ -2,16 +2,16 @@ |
||
| 2 | 2 | if (!defined('EVENT_ESPRESSO_VERSION')) |
| 3 | 3 | exit('No direct script access allowed'); |
| 4 | 4 | /** |
| 5 | - * |
|
| 6 | - * EE_PMT_Admin_Only. |
|
| 7 | - * These payment methods really shouldn't be shown on frontend and contain nearly no functionality. |
|
| 8 | - * They should just be used admin-side for recording payments like Cash, Check, etc. |
|
| 9 | - * |
|
| 10 | - * @package Event Espresso |
|
| 11 | - * @subpackage |
|
| 12 | - * @author Mike Nelson |
|
| 13 | - * |
|
| 14 | - */ |
|
| 5 | + * |
|
| 6 | + * EE_PMT_Admin_Only. |
|
| 7 | + * These payment methods really shouldn't be shown on frontend and contain nearly no functionality. |
|
| 8 | + * They should just be used admin-side for recording payments like Cash, Check, etc. |
|
| 9 | + * |
|
| 10 | + * @package Event Espresso |
|
| 11 | + * @subpackage |
|
| 12 | + * @author Mike Nelson |
|
| 13 | + * |
|
| 14 | + */ |
|
| 15 | 15 | class EE_PMT_Admin_Only extends EE_PMT_Base{ |
| 16 | 16 | |
| 17 | 17 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if (!defined('EVENT_ESPRESSO_VERSION')) |
|
| 2 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
| 3 | 3 | exit('No direct script access allowed'); |
| 4 | 4 | /** |
| 5 | 5 | * |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @author Mike Nelson |
| 13 | 13 | * |
| 14 | 14 | */ |
| 15 | -class EE_PMT_Admin_Only extends EE_PMT_Base{ |
|
| 15 | +class EE_PMT_Admin_Only extends EE_PMT_Base { |
|
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * @param \EE_Transaction $transaction |
| 35 | 35 | * @return NULL |
| 36 | 36 | */ |
| 37 | - public function generate_new_billing_form( EE_Transaction $transaction = NULL ) { |
|
| 37 | + public function generate_new_billing_form(EE_Transaction $transaction = NULL) { |
|
| 38 | 38 | return NULL; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -1,6 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | -if (!defined('EVENT_ESPRESSO_VERSION')) |
|
| 2 | +if (!defined('EVENT_ESPRESSO_VERSION')) { |
|
| 3 | 3 | exit('No direct script access allowed'); |
| 4 | +} |
|
| 4 | 5 | /** |
| 5 | 6 | * |
| 6 | 7 | * EE_PMT_Admin_Only. |
@@ -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 | - * bank_payment_overview_content |
|
| 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 | + * bank_payment_overview_content |
|
| 20 | + * |
|
| 21 | + * @package Event Espresso |
|
| 22 | + * @subpackage |
|
| 23 | + * @author Mike Nelson |
|
| 24 | + * |
|
| 25 | + * ------------------------------------------------------------------------ |
|
| 26 | + */ |
|
| 27 | 27 | ?><div class="event-display-boxes"> |
| 28 | 28 | <h4 id="page_title" class="payment_type_title section-heading"><?php echo $page_title ?></h4> |
| 29 | 29 | <p class="instruct"><?php echo wpautop( $payment_instructions ) ?></p> |
@@ -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 |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | ?><div class="event-display-boxes"> |
| 28 | 28 | <h4 id="page_title" class="payment_type_title section-heading"><?php echo $page_title ?></h4> |
| 29 | - <p class="instruct"><?php echo wpautop( $payment_instructions ) ?></p> |
|
| 29 | + <p class="instruct"><?php echo wpautop($payment_instructions) ?></p> |
|
| 30 | 30 | </div> |
| 31 | 31 | <?php |
| 32 | 32 | // End of file bank_payment_overview_content.template.php |
| 33 | 33 | \ 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 | * |
@@ -1,7 +1,8 @@ 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 | 7 | /** |
| 7 | 8 | * Event Espresso |
@@ -69,7 +70,7 @@ discard block |
||
| 69 | 70 | $default_address .= $state ? $state->name() . '<br />' : ''; |
| 70 | 71 | $default_address .= $country ? $country->name(). '<br />' : ''; |
| 71 | 72 | $default_address .= $organization->zip != '' ? $organization->get_pretty( 'zip' ) : ''; |
| 72 | - }else{ |
|
| 73 | + } else{ |
|
| 73 | 74 | $default_address = 'unknown'; |
| 74 | 75 | $organization_name = 'unknown'; |
| 75 | 76 | } |
@@ -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 | /** |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * |
| 26 | 26 | * ------------------------------------------------------------------------ |
| 27 | 27 | */ |
| 28 | -class EE_PMT_Check extends EE_PMT_Base{ |
|
| 28 | +class EE_PMT_Check extends EE_PMT_Base { |
|
| 29 | 29 | |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function __construct($pm_instance = NULL) { |
| 36 | 36 | $this->_pretty_name = __("Check", 'event_espresso'); |
| 37 | - $this->_default_description = __( 'After clicking "Finalize Registration", you will be given instructions on how to complete your payment.', 'event_espresso' ); |
|
| 37 | + $this->_default_description = __('After clicking "Finalize Registration", you will be given instructions on how to complete your payment.', 'event_espresso'); |
|
| 38 | 38 | parent::__construct($pm_instance); |
| 39 | 39 | $this->_default_button_url = $this->file_url().'lib'.DS.'check-logo.png'; |
| 40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * @param \EE_Transaction $transaction |
| 47 | 47 | * @return NULL |
| 48 | 48 | */ |
| 49 | - public function generate_new_billing_form( EE_Transaction $transaction = NULL ) { |
|
| 49 | + public function generate_new_billing_form(EE_Transaction $transaction = NULL) { |
|
| 50 | 50 | return NULL; |
| 51 | 51 | } |
| 52 | 52 | |
@@ -57,38 +57,38 @@ discard block |
||
| 57 | 57 | * @return EE_Form_Section_Proper |
| 58 | 58 | */ |
| 59 | 59 | public function generate_new_settings_form() { |
| 60 | - if ( EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance){ |
|
| 60 | + if (EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance) { |
|
| 61 | 61 | $organization = EE_Registry::instance()->CFG->organization; |
| 62 | - $organization_name = $organization->get_pretty( 'name' ); |
|
| 63 | - $default_address = $organization->address_1 != '' ? $organization->get_pretty( 'address_1' ) . '<br />' : ''; |
|
| 64 | - $default_address .= $organization->address_2 != '' ? $organization->get_pretty( 'address_2' ) . '<br />' : ''; |
|
| 65 | - $default_address .= $organization->city != '' ? $organization->get_pretty( 'city' ) : ''; |
|
| 66 | - $default_address .= ( $organization->city != '' && $organization->STA_ID != '') ? ', ' : '<br />'; |
|
| 67 | - $state = EE_Registry::instance()->load_model( 'State' )->get_one_by_ID( $organization->STA_ID ); |
|
| 68 | - $country = EE_Registry::instance()->load_model( 'Country' )->get_one_by_ID( $organization->CNT_ISO ) ; |
|
| 69 | - $default_address .= $state ? $state->name() . '<br />' : ''; |
|
| 70 | - $default_address .= $country ? $country->name(). '<br />' : ''; |
|
| 71 | - $default_address .= $organization->zip != '' ? $organization->get_pretty( 'zip' ) : ''; |
|
| 72 | - }else{ |
|
| 62 | + $organization_name = $organization->get_pretty('name'); |
|
| 63 | + $default_address = $organization->address_1 != '' ? $organization->get_pretty('address_1').'<br />' : ''; |
|
| 64 | + $default_address .= $organization->address_2 != '' ? $organization->get_pretty('address_2').'<br />' : ''; |
|
| 65 | + $default_address .= $organization->city != '' ? $organization->get_pretty('city') : ''; |
|
| 66 | + $default_address .= ($organization->city != '' && $organization->STA_ID != '') ? ', ' : '<br />'; |
|
| 67 | + $state = EE_Registry::instance()->load_model('State')->get_one_by_ID($organization->STA_ID); |
|
| 68 | + $country = EE_Registry::instance()->load_model('Country')->get_one_by_ID($organization->CNT_ISO); |
|
| 69 | + $default_address .= $state ? $state->name().'<br />' : ''; |
|
| 70 | + $default_address .= $country ? $country->name().'<br />' : ''; |
|
| 71 | + $default_address .= $organization->zip != '' ? $organization->get_pretty('zip') : ''; |
|
| 72 | + } else { |
|
| 73 | 73 | $default_address = 'unknown'; |
| 74 | 74 | $organization_name = 'unknown'; |
| 75 | 75 | } |
| 76 | 76 | return new EE_Payment_Method_Form(array( |
| 77 | 77 | 'extra_meta_inputs'=>array( |
| 78 | 78 | 'check_title'=> new EE_Text_Input(array( |
| 79 | - 'html_label_text'=> sprintf(__("Title %s", "event_espresso"), $this->get_help_tab_link()), |
|
| 79 | + 'html_label_text'=> sprintf(__("Title %s", "event_espresso"), $this->get_help_tab_link()), |
|
| 80 | 80 | 'default'=> __("Check/Money Order Payments", 'event_espresso'), |
| 81 | 81 | )), |
| 82 | 82 | 'payment_instructions'=>new EE_Text_Area_Input(array( |
| 83 | - 'html_label_text'=> sprintf(__("Instructions %s", "event_espresso"), $this->get_help_tab_link()), |
|
| 83 | + 'html_label_text'=> sprintf(__("Instructions %s", "event_espresso"), $this->get_help_tab_link()), |
|
| 84 | 84 | 'default'=> __("Please send Check/Money Order to the address below. Payment must be received within 48 hours of event date.", 'event_espresso') |
| 85 | 85 | )), |
| 86 | 86 | 'payable_to'=>new EE_Text_Input(array( |
| 87 | - 'html_label_text'=> sprintf(__("Payable To %s", "event_espresso"), $this->get_help_tab_link()), |
|
| 87 | + 'html_label_text'=> sprintf(__("Payable To %s", "event_espresso"), $this->get_help_tab_link()), |
|
| 88 | 88 | 'default'=>$organization_name |
| 89 | 89 | )), |
| 90 | 90 | 'address_to_send_payment'=>new EE_Text_Area_Input(array( |
| 91 | - 'html_label_text'=> sprintf(__("Address Payable %s", "event_espresso"), $this->get_help_tab_link()), |
|
| 91 | + 'html_label_text'=> sprintf(__("Address Payable %s", "event_espresso"), $this->get_help_tab_link()), |
|
| 92 | 92 | 'default'=>$default_address |
| 93 | 93 | )), |
| 94 | 94 | ), |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * @see EE_PMT_Base::help_tabs_config() |
| 105 | 105 | * @return array |
| 106 | 106 | */ |
| 107 | - public function help_tabs_config(){ |
|
| 107 | + public function help_tabs_config() { |
|
| 108 | 108 | return array( |
| 109 | 109 | $this->get_help_tab_name() => array( |
| 110 | 110 | 'title' => __('Check Settings', 'event_espresso'), |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * Other gateways may want to override this, such as offline gateways. |
| 122 | 122 | * @return string |
| 123 | 123 | */ |
| 124 | - public function payment_overview_content(EE_Payment $payment){ |
|
| 124 | + public function payment_overview_content(EE_Payment $payment) { |
|
| 125 | 125 | EE_Registry::instance()->load_helper('Template'); |
| 126 | 126 | $extra_meta_for_payment_method = $this->_pm_instance->all_extra_meta_array(); |
| 127 | 127 | $template_vars = array_merge( |
@@ -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 | - * check_payment_details_content |
|
| 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 | + * check_payment_details_content |
|
| 20 | + * |
|
| 21 | + * @package Event Espresso |
|
| 22 | + * @subpackage |
|
| 23 | + * @author Mike Nelson |
|
| 24 | + * |
|
| 25 | + * ------------------------------------------------------------------------ |
|
| 26 | + */ |
|
| 27 | 27 | ?> |
| 28 | 28 | <div class="event-display-boxes"> |
| 29 | 29 | <h4 id="check_title" class="payment_type_title section-heading"><?php echo $check_title ?></h4> |
@@ -1,6 +1,6 @@ |
||
| 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 |
@@ -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 | * |
@@ -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 | - * invoice_payment_details_content |
|
| 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 | + * invoice_payment_details_content |
|
| 20 | + * |
|
| 21 | + * @package Event Espresso |
|
| 22 | + * @subpackage |
|
| 23 | + * @author Mike Nelson |
|
| 24 | + * |
|
| 25 | + * ------------------------------------------------------------------------ |
|
| 26 | + */ |
|
| 27 | 27 | ?> |
| 28 | 28 | <div class="event-display-boxes"> |
| 29 | 29 | <?php |
@@ -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 |
@@ -27,10 +27,10 @@ discard block |
||
| 27 | 27 | ?> |
| 28 | 28 | <div class="event-display-boxes"> |
| 29 | 29 | <?php |
| 30 | - if ( ! empty( $page_title )) { |
|
| 31 | - echo '<h4 id="invoice_title" class="payment_type_title section-heading">' . stripslashes_deep( $page_title ) . '</h4>'; |
|
| 30 | + if ( ! empty($page_title)) { |
|
| 31 | + echo '<h4 id="invoice_title" class="payment_type_title section-heading">'.stripslashes_deep($page_title).'</h4>'; |
|
| 32 | 32 | } |
| 33 | - if ( ! empty( $invoice_url )) { |
|
| 33 | + if ( ! empty($invoice_url)) { |
|
| 34 | 34 | ?> |
| 35 | 35 | <p> |
| 36 | 36 | <a href="<?php echo $invoice_url; ?>" class="ee-button-lnk inline-button" target="_blank"> |
@@ -40,10 +40,10 @@ discard block |
||
| 40 | 40 | <?php |
| 41 | 41 | |
| 42 | 42 | if (isset($page_confirmation_text)) { |
| 43 | - echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">' . stripslashes_deep($page_confirmation_text) . '</p></div>'; |
|
| 43 | + echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">'.stripslashes_deep($page_confirmation_text).'</p></div>'; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - if ( ! empty( $page_extra_info )) { |
|
| 46 | + if ( ! empty($page_extra_info)) { |
|
| 47 | 47 | ?> |
| 48 | 48 | <div class="address-block"> |
| 49 | 49 | <?php echo wpautop(stripslashes_deep($page_extra_info)); ?> |
@@ -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 | * |
@@ -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 | - * invoice_settings_header_display |
|
| 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 | + * invoice_settings_header_display |
|
| 20 | + * |
|
| 21 | + * @package Event Espresso |
|
| 22 | + * @subpackage |
|
| 23 | + * @author Mike Nelson |
|
| 24 | + * |
|
| 25 | + * ------------------------------------------------------------------------ |
|
| 26 | + */ |
|
| 27 | 27 | ?> |
| 28 | 28 | <tr> |
| 29 | 29 | <th><h4><?php _e("Invoice Display Settings", 'event_espresso');?></h4></th> |
@@ -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 |
@@ -26,9 +26,9 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | ?> |
| 28 | 28 | <tr> |
| 29 | - <th><h4><?php _e("Invoice Display Settings", 'event_espresso');?></h4></th> |
|
| 29 | + <th><h4><?php _e("Invoice Display Settings", 'event_espresso'); ?></h4></th> |
|
| 30 | 30 | <td> |
| 31 | - <span class="description"><?php _e("The following settings affect the content and/or appearance of the downloadable PDF invoice.", 'event_espresso');?></span> |
|
| 31 | + <span class="description"><?php _e("The following settings affect the content and/or appearance of the downloadable PDF invoice.", 'event_espresso'); ?></span> |
|
| 32 | 32 | </td> |
| 33 | 33 | </tr> |
| 34 | 34 | <?php |
@@ -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 | * |
@@ -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 | - * invoice_settings_header_gateway |
|
| 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 | + * invoice_settings_header_gateway |
|
| 20 | + * |
|
| 21 | + * @package Event Espresso |
|
| 22 | + * @subpackage |
|
| 23 | + * @author Mike Nelson |
|
| 24 | + * |
|
| 25 | + * ------------------------------------------------------------------------ |
|
| 26 | + */ |
|
| 27 | 27 | ?> |
| 28 | 28 | <tr> |
| 29 | 29 | <th><h4><?php _e("Invoice Gateway Settings", 'event_espresso');?></h4></th> |
@@ -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 |
@@ -26,9 +26,9 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | ?> |
| 28 | 28 | <tr> |
| 29 | - <th><h4><?php _e("Invoice Gateway Settings", 'event_espresso');?></h4></th> |
|
| 29 | + <th><h4><?php _e("Invoice Gateway Settings", 'event_espresso'); ?></h4></th> |
|
| 30 | 30 | <td> |
| 31 | - <span class="description"><?php _e("The following settings affect the functioning of the Invoice gateway.", 'event_espresso');?></span> |
|
| 31 | + <span class="description"><?php _e("The following settings affect the functioning of the Invoice gateway.", 'event_espresso'); ?></span> |
|
| 32 | 32 | </td> |
| 33 | 33 | </tr> |
| 34 | 34 | <?php |
@@ -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 | * |
@@ -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 | } |
@@ -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 | |