Completed
Branch FET/extra-logging-when-trashin... (b6e112)
by
unknown
36:04 queued 27:41
created
payment_methods/Paypal_Express/EE_PMT_Paypal_Express.pm.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,18 +20,18 @@
 block discarded – undo
20 20
      */
21 21
     public function __construct($pm_instance = null)
22 22
     {
23
-        require_once($this->file_folder() . 'EEG_Paypal_Express.gateway.php');
23
+        require_once($this->file_folder().'EEG_Paypal_Express.gateway.php');
24 24
         $this->_gateway = new EEG_Paypal_Express();
25 25
 
26 26
         $this->_pretty_name = esc_html__('PayPal Express', 'event_espresso');
27
-        $this->_template_path = $this->file_folder() . 'templates' . DS;
27
+        $this->_template_path = $this->file_folder().'templates'.DS;
28 28
         $this->_default_description = esc_html__(
29 29
             // @codingStandardsIgnoreStart
30 30
             'After clicking \'Finalize Registration\', you will be forwarded to PayPal website to Login and make your payment.',
31 31
             // @codingStandardsIgnoreEnd
32 32
             'event_espresso'
33 33
         );
34
-        $this->_default_button_url = $this->file_url() . 'lib' . DS . 'paypal-express-checkout-logo-gold-160.png';
34
+        $this->_default_button_url = $this->file_url().'lib'.DS.'paypal-express-checkout-logo-gold-160.png';
35 35
 
36 36
         parent::__construct($pm_instance);
37 37
     }
Please login to merge, or discard this patch.
Indentation   +76 added lines, -76 removed lines patch added patch discarded remove patch
@@ -15,89 +15,89 @@
 block discarded – undo
15 15
 class EE_PMT_Paypal_Express extends EE_PMT_Base
16 16
 {
17 17
 
18
-    /**
19
-     * EE_PMT_Paypal_Express constructor.
20
-     */
21
-    public function __construct($pm_instance = null)
22
-    {
23
-        require_once($this->file_folder() . 'EEG_Paypal_Express.gateway.php');
24
-        $this->_gateway = new EEG_Paypal_Express();
18
+	/**
19
+	 * EE_PMT_Paypal_Express constructor.
20
+	 */
21
+	public function __construct($pm_instance = null)
22
+	{
23
+		require_once($this->file_folder() . 'EEG_Paypal_Express.gateway.php');
24
+		$this->_gateway = new EEG_Paypal_Express();
25 25
 
26
-        $this->_pretty_name = esc_html__('PayPal Express', 'event_espresso');
27
-        $this->_template_path = $this->file_folder() . 'templates' . DS;
28
-        $this->_default_description = esc_html__(
29
-            // @codingStandardsIgnoreStart
30
-            'After clicking \'Finalize Registration\', you will be forwarded to PayPal website to Login and make your payment.',
31
-            // @codingStandardsIgnoreEnd
32
-            'event_espresso'
33
-        );
34
-        $this->_default_button_url = $this->file_url() . 'lib' . DS . 'paypal-express-checkout-logo-gold-160.png';
26
+		$this->_pretty_name = esc_html__('PayPal Express', 'event_espresso');
27
+		$this->_template_path = $this->file_folder() . 'templates' . DS;
28
+		$this->_default_description = esc_html__(
29
+			// @codingStandardsIgnoreStart
30
+			'After clicking \'Finalize Registration\', you will be forwarded to PayPal website to Login and make your payment.',
31
+			// @codingStandardsIgnoreEnd
32
+			'event_espresso'
33
+		);
34
+		$this->_default_button_url = $this->file_url() . 'lib' . DS . 'paypal-express-checkout-logo-gold-160.png';
35 35
 
36
-        parent::__construct($pm_instance);
37
-    }
36
+		parent::__construct($pm_instance);
37
+	}
38 38
 
39 39
 
40
-    /**
41
-     * Adds the help tab.
42
-     *
43
-     * @see EE_PMT_Base::help_tabs_config()
44
-     * @return array
45
-     */
46
-    public function help_tabs_config()
47
-    {
48
-        return array(
49
-            $this->get_help_tab_name() => array(
50
-                'title'    => esc_html__('PayPal Express Settings', 'event_espresso'),
51
-                'filename' => 'payment_methods_overview_paypal_express'
52
-            )
53
-        );
54
-    }
40
+	/**
41
+	 * Adds the help tab.
42
+	 *
43
+	 * @see EE_PMT_Base::help_tabs_config()
44
+	 * @return array
45
+	 */
46
+	public function help_tabs_config()
47
+	{
48
+		return array(
49
+			$this->get_help_tab_name() => array(
50
+				'title'    => esc_html__('PayPal Express Settings', 'event_espresso'),
51
+				'filename' => 'payment_methods_overview_paypal_express'
52
+			)
53
+		);
54
+	}
55 55
 
56 56
 
57
-    /**
58
-     * Gets the form for all the settings related to this payment method type.
59
-     *
60
-     * @return EE_Payment_Method_Form
61
-     */
62
-    public function generate_new_settings_form()
63
-    {
64
-        return new SettingsForm(array(), $this->get_help_tab_link());
65
-    }
57
+	/**
58
+	 * Gets the form for all the settings related to this payment method type.
59
+	 *
60
+	 * @return EE_Payment_Method_Form
61
+	 */
62
+	public function generate_new_settings_form()
63
+	{
64
+		return new SettingsForm(array(), $this->get_help_tab_link());
65
+	}
66 66
 
67 67
 
68
-    /**
69
-     * Creates a billing form for this payment method type.
70
-     *
71
-     * @param \EE_Transaction $transaction
72
-     * @return \EE_Billing_Info_Form
73
-     */
74
-    public function generate_new_billing_form(EE_Transaction $transaction = null)
75
-    {
76
-        if ($this->_pm_instance->debug_mode()) {
77
-            $form = new EE_Billing_Info_Form(
78
-                $this->_pm_instance,
79
-                array(
80
-                    'name' => 'paypal_express_Info_Form',
81
-                    'subsections' => array(
82
-                        'paypal_express_debug_info' => new EE_Form_Section_Proper(
83
-                            array(
84
-                                'layout_strategy' => new EE_Template_Layout(
85
-                                    array(
86
-                                        'layout_template_file' => $this->_template_path
87
-                                                                    . 'paypal_express_debug_info.template.php',
88
-                                        'template_args'        => array(
89
-                                            'debug_mode' => $this->_pm_instance->debug_mode()
90
-                                        )
91
-                                    )
92
-                                )
93
-                            )
94
-                        )
95
-                    )
96
-                )
97
-            );
98
-            return $form;
99
-        }
68
+	/**
69
+	 * Creates a billing form for this payment method type.
70
+	 *
71
+	 * @param \EE_Transaction $transaction
72
+	 * @return \EE_Billing_Info_Form
73
+	 */
74
+	public function generate_new_billing_form(EE_Transaction $transaction = null)
75
+	{
76
+		if ($this->_pm_instance->debug_mode()) {
77
+			$form = new EE_Billing_Info_Form(
78
+				$this->_pm_instance,
79
+				array(
80
+					'name' => 'paypal_express_Info_Form',
81
+					'subsections' => array(
82
+						'paypal_express_debug_info' => new EE_Form_Section_Proper(
83
+							array(
84
+								'layout_strategy' => new EE_Template_Layout(
85
+									array(
86
+										'layout_template_file' => $this->_template_path
87
+																	. 'paypal_express_debug_info.template.php',
88
+										'template_args'        => array(
89
+											'debug_mode' => $this->_pm_instance->debug_mode()
90
+										)
91
+									)
92
+								)
93
+							)
94
+						)
95
+					)
96
+				)
97
+			);
98
+			return $form;
99
+		}
100 100
 
101
-        return false;
102
-    }
101
+		return false;
102
+	}
103 103
 }
Please login to merge, or discard this patch.
payment_methods/Paypal_Express/templates/paypal_express_intro.template.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php printf(
2
-    __(
3
-        'PayPal Express (Express Checkout) is an off-site payment method for accepting payments via PayPal and is available to event organizers in many countries. A PayPal premier or business account is needed to accept payments. Need a PayPal account? Call 1-855-456-1338 or %1$sclick here to sign up for a merchant account%2$s.',
4
-        'event_espresso'
5
-    ),
6
-    '<a href="https://eventespresso.com/go/paypalexpress/" target="_blank">',
7
-    '</a>'
2
+	__(
3
+		'PayPal Express (Express Checkout) is an off-site payment method for accepting payments via PayPal and is available to event organizers in many countries. A PayPal premier or business account is needed to accept payments. Need a PayPal account? Call 1-855-456-1338 or %1$sclick here to sign up for a merchant account%2$s.',
4
+		'event_espresso'
5
+	),
6
+	'<a href="https://eventespresso.com/go/paypalexpress/" target="_blank">',
7
+	'</a>'
8 8
 );
Please login to merge, or discard this patch.
Paypal_Express/templates/paypal_express_debug_info.template.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -2,25 +2,25 @@
 block discarded – undo
2 2
 
3 3
     <h4 class="important-notice">
4 4
         <?php _e(
5
-            'Debug Mode is turned ON. You will be redirected to the PayPal Sandbox environment. Please use your Sandbox PayPal account for the checkout.',
6
-            'event_espresso'
7
-        ); ?></h4>
5
+			'Debug Mode is turned ON. You will be redirected to the PayPal Sandbox environment. Please use your Sandbox PayPal account for the checkout.',
6
+			'event_espresso'
7
+		); ?></h4>
8 8
 
9 9
     <h4><?php _e('How do I test specific error codes?', 'event_espresso'); ?></h4>
10 10
     <p>
11 11
         <?php _e(
12
-            'To trigger an error condition on an amount-related field, 
12
+			'To trigger an error condition on an amount-related field, 
13 13
 			specify a error code value as a number with two digits to the right of the decimal point. 
14 14
 			For example, specify a value of 107.55 to trigger the 10755 error.',
15
-            'event_espresso'
16
-        ); ?>
15
+			'event_espresso'
16
+		); ?>
17 17
     </p>
18 18
     <p>
19 19
         <?php printf(
20
-            __('More details can be found here: %1$s Testing Error Conditions %2$s.', 'event_espresso'),
21
-            '<a href="https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions">',
22
-            '</a>'
23
-        ); ?>
20
+			__('More details can be found here: %1$s Testing Error Conditions %2$s.', 'event_espresso'),
21
+			'<a href="https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions">',
22
+			'</a>'
23
+		); ?>
24 24
     </p>
25 25
 
26 26
 </div>
27 27
\ No newline at end of file
Please login to merge, or discard this patch.
Invoice/templates/invoice_settings_header_display.template.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
         <td>
16 16
             <span class="description">
17 17
                 <?php _e(
18
-                    "The following settings affect the content and/or appearance of the downloadable PDF invoice.",
19
-                    'event_espresso'
20
-                ); ?></span>
18
+					"The following settings affect the content and/or appearance of the downloadable PDF invoice.",
19
+					'event_espresso'
20
+				); ?></span>
21 21
         </td>
22 22
     </tr>
Please login to merge, or discard this patch.
payment_methods/Invoice/templates/invoice_intro.template.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php esc_html_e(
2
-    'Invoice is an offline payment method for accepting payments. Payments are processed manually by providing your registrants/attendees with information on how to pay their invoice.',
3
-    'event_espresso'
2
+	'Invoice is an offline payment method for accepting payments. Payments are processed manually by providing your registrants/attendees with information on how to pay their invoice.',
3
+	'event_espresso'
4 4
 );
Please login to merge, or discard this patch.
Invoice/templates/invoice_settings_header_gateway.template.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
         <td>
16 16
             <span class="description">
17 17
                 <?php _e(
18
-                    "The following settings affect the functioning of the Invoice gateway.",
19
-                    'event_espresso'
20
-                ); ?></span>
18
+					"The following settings affect the functioning of the Invoice gateway.",
19
+					'event_espresso'
20
+				); ?></span>
21 21
         </td>
22 22
     </tr>
Please login to merge, or discard this patch.
Invoice/templates/invoice_payment_details_content.template.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
     <div class="event-display-boxes">
14 14
 <?php
15 15
 if (! empty($page_title)) {
16
-    echo '<h4 id="invoice_title" class="payment_type_title section-heading">'
17
-         . stripslashes_deep(
18
-             $page_title
19
-         ) . '</h4>';
16
+	echo '<h4 id="invoice_title" class="payment_type_title section-heading">'
17
+		 . stripslashes_deep(
18
+			 $page_title
19
+		 ) . '</h4>';
20 20
 }
21 21
 if (! empty($invoice_url)) {
22
-    ?>
22
+	?>
23 23
     <p>
24 24
         <a href="<?php echo $invoice_url; ?>" class="ee-button-lnk inline-button ee-invoice-lnk" target="_blank">
25 25
             <?php _e('View Invoice', 'event_espresso'); ?>
@@ -27,21 +27,21 @@  discard block
 block discarded – undo
27 27
     </p>
28 28
     <?php
29 29
 
30
-    if (isset($page_confirmation_text)) {
31
-        echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">'
32
-             . stripslashes_deep(
33
-                 $page_confirmation_text
34
-             ) . '</p></div>';
35
-    }
30
+	if (isset($page_confirmation_text)) {
31
+		echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">'
32
+			 . stripslashes_deep(
33
+				 $page_confirmation_text
34
+			 ) . '</p></div>';
35
+	}
36 36
 
37
-    if (! empty($page_extra_info)) {
38
-        ?>
37
+	if (! empty($page_extra_info)) {
38
+		?>
39 39
         <div class="address-block">
40 40
             <?php echo wpautop(stripslashes_deep($page_extra_info)); ?>
41 41
         </div>
42 42
         <?php
43
-    }
44
-    ?>
43
+	}
44
+	?>
45 45
     </div>
46 46
     <?php
47 47
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,13 +12,13 @@  discard block
 block discarded – undo
12 12
 ?>
13 13
     <div class="event-display-boxes">
14 14
 <?php
15
-if (! empty($page_title)) {
15
+if ( ! empty($page_title)) {
16 16
     echo '<h4 id="invoice_title" class="payment_type_title section-heading">'
17 17
          . stripslashes_deep(
18 18
              $page_title
19
-         ) . '</h4>';
19
+         ).'</h4>';
20 20
 }
21
-if (! empty($invoice_url)) {
21
+if ( ! empty($invoice_url)) {
22 22
     ?>
23 23
     <p>
24 24
         <a href="<?php echo $invoice_url; ?>" class="ee-button-lnk inline-button ee-invoice-lnk" target="_blank">
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
         echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">'
32 32
              . stripslashes_deep(
33 33
                  $page_confirmation_text
34
-             ) . '</p></div>';
34
+             ).'</p></div>';
35 35
     }
36 36
 
37
-    if (! empty($page_extra_info)) {
37
+    if ( ! empty($page_extra_info)) {
38 38
         ?>
39 39
         <div class="address-block">
40 40
             <?php echo wpautop(stripslashes_deep($page_extra_info)); ?>
Please login to merge, or discard this patch.
payment_methods/Invoice/EE_PMT_Invoice.pm.php 2 patches
Indentation   +120 added lines, -120 removed lines patch added patch discarded remove patch
@@ -27,136 +27,136 @@
 block discarded – undo
27 27
 
28 28
 
29 29
 
30
-    /**
31
-     *
32
-     * @param EE_Payment_Method $pm_instance
33
-     * @return EE_PMT_Invoice
34
-     */
35
-    public function __construct($pm_instance = null)
36
-    {
37
-        $this->_pretty_name = esc_html__("Invoice", 'event_espresso');
38
-        $this->_default_description = sprintf(
39
-            esc_html__('After clicking "Finalize Registration", you will be given instructions on how to access your invoice and complete your payment.%sPlease note that event spaces will not be reserved until payment is received in full, and any remaining tickets could be sold to others in the meantime.', 'event_espresso'),
40
-            '<br />'
41
-        );
42
-        parent::__construct($pm_instance);
43
-        $this->_default_button_url = $this->file_url().'lib'.DS.'invoice-logo.png';
44
-    }
30
+	/**
31
+	 *
32
+	 * @param EE_Payment_Method $pm_instance
33
+	 * @return EE_PMT_Invoice
34
+	 */
35
+	public function __construct($pm_instance = null)
36
+	{
37
+		$this->_pretty_name = esc_html__("Invoice", 'event_espresso');
38
+		$this->_default_description = sprintf(
39
+			esc_html__('After clicking "Finalize Registration", you will be given instructions on how to access your invoice and complete your payment.%sPlease note that event spaces will not be reserved until payment is received in full, and any remaining tickets could be sold to others in the meantime.', 'event_espresso'),
40
+			'<br />'
41
+		);
42
+		parent::__construct($pm_instance);
43
+		$this->_default_button_url = $this->file_url().'lib'.DS.'invoice-logo.png';
44
+	}
45 45
 
46 46
 
47 47
 
48
-    /**
49
-     * Creates the billing form for this payment method type
50
-     * @param \EE_Transaction $transaction
51
-     * @return NULL
52
-     */
53
-    public function generate_new_billing_form(EE_Transaction $transaction = null)
54
-    {
55
-        return null;
56
-    }
48
+	/**
49
+	 * Creates the billing form for this payment method type
50
+	 * @param \EE_Transaction $transaction
51
+	 * @return NULL
52
+	 */
53
+	public function generate_new_billing_form(EE_Transaction $transaction = null)
54
+	{
55
+		return null;
56
+	}
57 57
 
58 58
 
59 59
 
60
-    /**
61
-     * Gets the form for all the settings related to this payment method type
62
-     * @return EE_Payment_Method_Form
63
-     */
64
-    public function generate_new_settings_form()
65
-    {
66
-        $pdf_payee_input_name = 'pdf_payee_name';
67
-        $confirmation_text_input_name = 'page_confirmation_text';
68
-        $form =  new EE_Payment_Method_Form(array(
60
+	/**
61
+	 * Gets the form for all the settings related to this payment method type
62
+	 * @return EE_Payment_Method_Form
63
+	 */
64
+	public function generate_new_settings_form()
65
+	{
66
+		$pdf_payee_input_name = 'pdf_payee_name';
67
+		$confirmation_text_input_name = 'page_confirmation_text';
68
+		$form =  new EE_Payment_Method_Form(array(
69 69
 //              'payment_method_type' => $this,
70
-                'extra_meta_inputs'=>array(
71
-                    $pdf_payee_input_name => new EE_Text_Input(array(
72
-                        'html_label_text' => sprintf(esc_html__('Payee Name %s', 'event_espresso'), $this->get_help_tab_link())
73
-                    )),
74
-                    'pdf_payee_email' => new EE_Email_Input(array(
75
-                        'html_label_text' => sprintf(esc_html__('Payee Email %s', 'event_espresso'), $this->get_help_tab_link()),
76
-                    )),
77
-                    'pdf_payee_tax_number' => new EE_Text_Input(array(
78
-                        'html_label_text' => sprintf(esc_html__('Payee Tax Number %s', 'event_espresso'), $this->get_help_tab_link()),
79
-                        )),
80
-                    'pdf_payee_address' => new EE_Text_Area_Input(array(
81
-                        'html_label_text' => sprintf(esc_html__('Payee Address %s', 'event_espresso'), $this->get_help_tab_link()),
82
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
83
-                    )),
84
-                    'pdf_instructions'=>new EE_Text_Area_Input(array(
85
-                        'html_label_text'=>  sprintf(esc_html__("Instructions %s", "event_espresso"), $this->get_help_tab_link()),
86
-                        'default'=>  esc_html__("Please send this invoice with payment attached to the address above, or use the payment link below. Payment must be received within 48 hours of event date.", 'event_espresso'),
87
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
88
-                    )),
89
-                    'pdf_logo_image'=>new EE_Admin_File_Uploader_Input(array(
90
-                        'html_label_text'=>  sprintf(esc_html__("Logo Image %s", "event_espresso"), $this->get_help_tab_link()),
91
-                        'default'=>  EE_Config::instance()->organization->logo_url,
92
-                        'html_help_text'=>  esc_html__("(Logo for the top left of the invoice)", 'event_espresso'),
93
-                    )),
94
-                    $confirmation_text_input_name =>new EE_Text_Area_Input(array(
95
-                        'html_label_text'=>  sprintf(esc_html__("Confirmation Text %s", "event_espresso"), $this->get_help_tab_link()),
96
-                        'default'=>  esc_html__("Payment must be received within 48 hours of event date. Details about where to send the payment are included on the invoice.", 'event_espresso'),
97
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
98
-                    )),
99
-                    'page_extra_info'=>new EE_Text_Area_Input(array(
100
-                        'html_label_text'=>  sprintf(esc_html__("Extra Info %s", "event_espresso"), $this->get_help_tab_link()),
101
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
102
-                    )),
103
-                ),
104
-                'include'=>array(
105
-                    'PMD_ID', 'PMD_name','PMD_desc','PMD_admin_name','PMD_admin_desc', 'PMD_type','PMD_slug', 'PMD_open_by_default','PMD_button_url','PMD_scope','Currency','PMD_order',
106
-                    $pdf_payee_input_name, 'pdf_payee_email', 'pdf_payee_tax_number', 'pdf_payee_address', 'pdf_instructions','pdf_logo_image',
107
-                    $confirmation_text_input_name, 'page_extra_info'),
108
-            ));
109
-        $form->add_subsections(
110
-            array( 'header1' => new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_display.template.php')),
111
-            $pdf_payee_input_name
112
-        );
113
-        $form->add_subsections(
114
-            array( 'header2'=>new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_gateway.template.php')),
115
-            $confirmation_text_input_name
116
-        );
117
-        return $form;
118
-    }
70
+				'extra_meta_inputs'=>array(
71
+					$pdf_payee_input_name => new EE_Text_Input(array(
72
+						'html_label_text' => sprintf(esc_html__('Payee Name %s', 'event_espresso'), $this->get_help_tab_link())
73
+					)),
74
+					'pdf_payee_email' => new EE_Email_Input(array(
75
+						'html_label_text' => sprintf(esc_html__('Payee Email %s', 'event_espresso'), $this->get_help_tab_link()),
76
+					)),
77
+					'pdf_payee_tax_number' => new EE_Text_Input(array(
78
+						'html_label_text' => sprintf(esc_html__('Payee Tax Number %s', 'event_espresso'), $this->get_help_tab_link()),
79
+						)),
80
+					'pdf_payee_address' => new EE_Text_Area_Input(array(
81
+						'html_label_text' => sprintf(esc_html__('Payee Address %s', 'event_espresso'), $this->get_help_tab_link()),
82
+						'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
83
+					)),
84
+					'pdf_instructions'=>new EE_Text_Area_Input(array(
85
+						'html_label_text'=>  sprintf(esc_html__("Instructions %s", "event_espresso"), $this->get_help_tab_link()),
86
+						'default'=>  esc_html__("Please send this invoice with payment attached to the address above, or use the payment link below. Payment must be received within 48 hours of event date.", 'event_espresso'),
87
+						'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
88
+					)),
89
+					'pdf_logo_image'=>new EE_Admin_File_Uploader_Input(array(
90
+						'html_label_text'=>  sprintf(esc_html__("Logo Image %s", "event_espresso"), $this->get_help_tab_link()),
91
+						'default'=>  EE_Config::instance()->organization->logo_url,
92
+						'html_help_text'=>  esc_html__("(Logo for the top left of the invoice)", 'event_espresso'),
93
+					)),
94
+					$confirmation_text_input_name =>new EE_Text_Area_Input(array(
95
+						'html_label_text'=>  sprintf(esc_html__("Confirmation Text %s", "event_espresso"), $this->get_help_tab_link()),
96
+						'default'=>  esc_html__("Payment must be received within 48 hours of event date. Details about where to send the payment are included on the invoice.", 'event_espresso'),
97
+						'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
98
+					)),
99
+					'page_extra_info'=>new EE_Text_Area_Input(array(
100
+						'html_label_text'=>  sprintf(esc_html__("Extra Info %s", "event_espresso"), $this->get_help_tab_link()),
101
+						'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
102
+					)),
103
+				),
104
+				'include'=>array(
105
+					'PMD_ID', 'PMD_name','PMD_desc','PMD_admin_name','PMD_admin_desc', 'PMD_type','PMD_slug', 'PMD_open_by_default','PMD_button_url','PMD_scope','Currency','PMD_order',
106
+					$pdf_payee_input_name, 'pdf_payee_email', 'pdf_payee_tax_number', 'pdf_payee_address', 'pdf_instructions','pdf_logo_image',
107
+					$confirmation_text_input_name, 'page_extra_info'),
108
+			));
109
+		$form->add_subsections(
110
+			array( 'header1' => new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_display.template.php')),
111
+			$pdf_payee_input_name
112
+		);
113
+		$form->add_subsections(
114
+			array( 'header2'=>new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_gateway.template.php')),
115
+			$confirmation_text_input_name
116
+		);
117
+		return $form;
118
+	}
119 119
 
120 120
 
121 121
 
122
-    /**
123
-     * Adds the help tab
124
-     * @see EE_PMT_Base::help_tabs_config()
125
-     * @return array
126
-     */
127
-    public function help_tabs_config()
128
-    {
129
-        return array(
130
-            $this->get_help_tab_name() => array(
131
-                'title' => esc_html__('Invoice Settings', 'event_espresso'),
132
-                'filename' => 'payment_methods_overview_invoice'
133
-            ),
134
-        );
135
-    }
122
+	/**
123
+	 * Adds the help tab
124
+	 * @see EE_PMT_Base::help_tabs_config()
125
+	 * @return array
126
+	 */
127
+	public function help_tabs_config()
128
+	{
129
+		return array(
130
+			$this->get_help_tab_name() => array(
131
+				'title' => esc_html__('Invoice Settings', 'event_espresso'),
132
+				'filename' => 'payment_methods_overview_invoice'
133
+			),
134
+		);
135
+	}
136 136
 
137 137
 
138
-    /**
139
-     * For adding any html output above the payment overview.
140
-     * Many gateways won't want ot display anything, so this function just returns an empty string.
141
-     * Other gateways may want to override this, such as offline gateways.
142
-     *
143
-     * @param \EE_Payment $payment
144
-     * @return string
145
-     */
146
-    public function payment_overview_content(EE_Payment $payment)
147
-    {
148
-        return EEH_Template::locate_template(
149
-            'payment_methods' . DS . 'Invoice'. DS . 'templates'.DS.'invoice_payment_details_content.template.php',
150
-            array_merge(
151
-                array(
152
-                    'payment_method'            => $this->_pm_instance,
153
-                    'payment'                       => $payment,
154
-                    'page_confirmation_text'                    => '',
155
-                    'page_extra_info'   => '',
156
-                    'invoice_url'                   => $payment->transaction()->primary_registration()->invoice_url('html')
157
-                ),
158
-                $this->_pm_instance->all_extra_meta_array()
159
-            )
160
-        );
161
-    }
138
+	/**
139
+	 * For adding any html output above the payment overview.
140
+	 * Many gateways won't want ot display anything, so this function just returns an empty string.
141
+	 * Other gateways may want to override this, such as offline gateways.
142
+	 *
143
+	 * @param \EE_Payment $payment
144
+	 * @return string
145
+	 */
146
+	public function payment_overview_content(EE_Payment $payment)
147
+	{
148
+		return EEH_Template::locate_template(
149
+			'payment_methods' . DS . 'Invoice'. DS . 'templates'.DS.'invoice_payment_details_content.template.php',
150
+			array_merge(
151
+				array(
152
+					'payment_method'            => $this->_pm_instance,
153
+					'payment'                       => $payment,
154
+					'page_confirmation_text'                    => '',
155
+					'page_extra_info'   => '',
156
+					'invoice_url'                   => $payment->transaction()->primary_registration()->invoice_url('html')
157
+				),
158
+				$this->_pm_instance->all_extra_meta_array()
159
+			)
160
+		);
161
+	}
162 162
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $pdf_payee_input_name = 'pdf_payee_name';
67 67
         $confirmation_text_input_name = 'page_confirmation_text';
68
-        $form =  new EE_Payment_Method_Form(array(
68
+        $form = new EE_Payment_Method_Form(array(
69 69
 //              'payment_method_type' => $this,
70 70
                 'extra_meta_inputs'=>array(
71 71
                     $pdf_payee_input_name => new EE_Text_Input(array(
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
                         )),
80 80
                     'pdf_payee_address' => new EE_Text_Area_Input(array(
81 81
                         'html_label_text' => sprintf(esc_html__('Payee Address %s', 'event_espresso'), $this->get_help_tab_link()),
82
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
82
+                        'validation_strategies' => array(new EE_Full_HTML_Validation_Strategy()),
83 83
                     )),
84 84
                     'pdf_instructions'=>new EE_Text_Area_Input(array(
85 85
                         'html_label_text'=>  sprintf(esc_html__("Instructions %s", "event_espresso"), $this->get_help_tab_link()),
86 86
                         'default'=>  esc_html__("Please send this invoice with payment attached to the address above, or use the payment link below. Payment must be received within 48 hours of event date.", 'event_espresso'),
87
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
87
+                        'validation_strategies' => array(new EE_Full_HTML_Validation_Strategy()),
88 88
                     )),
89 89
                     'pdf_logo_image'=>new EE_Admin_File_Uploader_Input(array(
90 90
                         'html_label_text'=>  sprintf(esc_html__("Logo Image %s", "event_espresso"), $this->get_help_tab_link()),
@@ -94,24 +94,24 @@  discard block
 block discarded – undo
94 94
                     $confirmation_text_input_name =>new EE_Text_Area_Input(array(
95 95
                         'html_label_text'=>  sprintf(esc_html__("Confirmation Text %s", "event_espresso"), $this->get_help_tab_link()),
96 96
                         'default'=>  esc_html__("Payment must be received within 48 hours of event date. Details about where to send the payment are included on the invoice.", 'event_espresso'),
97
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
97
+                        'validation_strategies' => array(new EE_Full_HTML_Validation_Strategy()),
98 98
                     )),
99 99
                     'page_extra_info'=>new EE_Text_Area_Input(array(
100 100
                         'html_label_text'=>  sprintf(esc_html__("Extra Info %s", "event_espresso"), $this->get_help_tab_link()),
101
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
101
+                        'validation_strategies' => array(new EE_Full_HTML_Validation_Strategy()),
102 102
                     )),
103 103
                 ),
104 104
                 'include'=>array(
105
-                    'PMD_ID', 'PMD_name','PMD_desc','PMD_admin_name','PMD_admin_desc', 'PMD_type','PMD_slug', 'PMD_open_by_default','PMD_button_url','PMD_scope','Currency','PMD_order',
106
-                    $pdf_payee_input_name, 'pdf_payee_email', 'pdf_payee_tax_number', 'pdf_payee_address', 'pdf_instructions','pdf_logo_image',
105
+                    'PMD_ID', 'PMD_name', 'PMD_desc', 'PMD_admin_name', 'PMD_admin_desc', 'PMD_type', 'PMD_slug', 'PMD_open_by_default', 'PMD_button_url', 'PMD_scope', 'Currency', 'PMD_order',
106
+                    $pdf_payee_input_name, 'pdf_payee_email', 'pdf_payee_tax_number', 'pdf_payee_address', 'pdf_instructions', 'pdf_logo_image',
107 107
                     $confirmation_text_input_name, 'page_extra_info'),
108 108
             ));
109 109
         $form->add_subsections(
110
-            array( 'header1' => new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_display.template.php')),
110
+            array('header1' => new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_display.template.php')),
111 111
             $pdf_payee_input_name
112 112
         );
113 113
         $form->add_subsections(
114
-            array( 'header2'=>new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_gateway.template.php')),
114
+            array('header2'=>new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_gateway.template.php')),
115 115
             $confirmation_text_input_name
116 116
         );
117 117
         return $form;
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     public function payment_overview_content(EE_Payment $payment)
147 147
     {
148 148
         return EEH_Template::locate_template(
149
-            'payment_methods' . DS . 'Invoice'. DS . 'templates'.DS.'invoice_payment_details_content.template.php',
149
+            'payment_methods'.DS.'Invoice'.DS.'templates'.DS.'invoice_payment_details_content.template.php',
150 150
             array_merge(
151 151
                 array(
152 152
                     'payment_method'            => $this->_pm_instance,
Please login to merge, or discard this patch.
help_tabs/payment_methods_overview_paypalstandard.help_tab.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,17 +23,17 @@
 block discarded – undo
23 23
 <li>
24 24
 <strong><?php _e('PayPal Calculates Taxes', 'event_espresso'); ?></strong><br />
25 25
 <?php printf(__('If set to "Yes", we will indicate to PayPal that it should 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/>
26
-<?php _e('Note: It may confuse users if Event Espresso initially calculates taxes on the order, and then they go to PayPal and it calculates taxes differently. So it is recommended that if PayPal is calculating taxes, that you do not set any taxes in Event Espresso.', 'event_espresso');?>
26
+<?php _e('Note: It may confuse users if Event Espresso initially calculates taxes on the order, and then they go to PayPal and it calculates taxes differently. So it is recommended that if PayPal is calculating taxes, that you do not set any taxes in Event Espresso.', 'event_espresso'); ?>
27 27
 </li>
28 28
 <li>
29 29
 <strong><?php _e('PayPal Calculates Shipping', 'event_espresso'); ?></strong><br />
30 30
 <?php _e('Similar to the "PayPal Calculates Taxes" setting, if this is set to "Yes", we will indicate to PayPal that it should calculate the shipping on each payment (if there are multiple payments for a single transaction, PayPal is permitted to add shipping charges to each payment.)', 'event_espresso'); ?><br/>
31
-<?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
+<?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'); ?>
32 32
 <li>
33
-<strong><?php _e('Notes Regarding Paypal Taxes and Shipping', 'event_espresso');?></strong><br/>
34
-<?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/>
35
-<?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');?><br/>
36
-<?php _e('Also Note: In order for PayPal to properly calculate taxes and shipping, they need to receive the entire order at the same time. So if a user goes to make a payment using PayPal, and their order somehow already has a payment on it, PayPal CANNOT calculate taxes or shipping on that order.', 'event_espresso');?>
33
+<strong><?php _e('Notes Regarding Paypal Taxes and Shipping', 'event_espresso'); ?></strong><br/>
34
+<?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/>
35
+<?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'); ?><br/>
36
+<?php _e('Also Note: In order for PayPal to properly calculate taxes and shipping, they need to receive the entire order at the same time. So if a user goes to make a payment using PayPal, and their order somehow already has a payment on it, PayPal CANNOT calculate taxes or shipping on that order.', 'event_espresso'); ?>
37 37
 </li>
38 38
 <li>
39 39
 <strong><?php _e('Shipping Address Options', 'event_espresso'); ?></strong><br />
Please login to merge, or discard this patch.