Completed
Branch BUG/duplicate-event-categories (935838)
by
unknown
64:31 queued 46:29
created
finalize_registration/EE_SPCO_Reg_Step_Finalize_Registration.class.php 2 patches
Indentation   +232 added lines, -232 removed lines patch added patch discarded remove patch
@@ -12,236 +12,236 @@
 block discarded – undo
12 12
 class EE_SPCO_Reg_Step_Finalize_Registration extends EE_SPCO_Reg_Step
13 13
 {
14 14
 
15
-    /**
16
-     *    class constructor
17
-     *
18
-     * @access    public
19
-     * @param    EE_Checkout $checkout
20
-     */
21
-    public function __construct(EE_Checkout $checkout)
22
-    {
23
-        $this->_slug = 'finalize_registration';
24
-        $this->_name = __('Finalize Registration', 'event_espresso');
25
-        $this->_submit_button_text = $this->_name;
26
-        $this->_template = '';
27
-        $this->checkout = $checkout;
28
-    }
29
-
30
-
31
-    public function translate_js_strings()
32
-    {
33
-    }
34
-
35
-
36
-    public function enqueue_styles_and_scripts()
37
-    {
38
-    }
39
-
40
-
41
-    /**
42
-     * @return boolean
43
-     */
44
-    public function initialize_reg_step()
45
-    {
46
-        // there's actually no reg form to process if this is the final step
47
-        if ($this->is_current_step()) {
48
-            $this->checkout->step = $_REQUEST['step'] = $this->slug();
49
-            $this->checkout->action = $_REQUEST['action'] = 'process_reg_step';
50
-            $this->checkout->generate_reg_form = false;
51
-        }
52
-        return true;
53
-    }
54
-
55
-
56
-    /**
57
-     * @return string
58
-     * @throws \EE_Error
59
-     */
60
-    public function generate_reg_form()
61
-    {
62
-        // create empty form so that things don't break
63
-        $this->reg_form = new EE_Form_Section_Proper();
64
-        return '';
65
-    }
66
-
67
-
68
-    /**
69
-     * @return boolean
70
-     * @throws \RuntimeException
71
-     * @throws \EE_Error
72
-     */
73
-    public function process_reg_step()
74
-    {
75
-        // ensure all data gets refreshed from the db
76
-        $this->checkout->refresh_all_entities(true);
77
-        // ensures that all details and statuses for transaction, registration, and payments are updated
78
-        $txn_update_params = $this->_finalize_transaction();
79
-        // maybe send messages
80
-        $this->_set_notification_triggers();
81
-        // send messages
82
-        /** @type EE_Registration_Processor $registration_processor */
83
-        $registration_processor = EE_Registry::instance()->load_class('Registration_Processor');
84
-        $registration_processor->trigger_registration_update_notifications(
85
-            $this->checkout->transaction->primary_registration(),
86
-            $txn_update_params
87
-        );
88
-        // set a hook point
89
-        do_action(
90
-            'AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed',
91
-            $this->checkout,
92
-            $txn_update_params
93
-        );
94
-        // check if transaction has a primary registrant and that it has a related Attendee object
95
-        if (! $this->_validate_primary_registrant()) {
96
-            return false;
97
-        }
98
-        // you don't have to go home but you can't stay here !
99
-        $this->checkout->redirect = true;
100
-        $this->checkout->continue_reg = true;
101
-        $this->checkout->json_response->set_redirect_url($this->checkout->redirect_url);
102
-        if (! (
103
-            $this->checkout->payment_method instanceof EE_Payment_Method
104
-            && $this->checkout->payment_method->is_off_site()
105
-        )) {
106
-            // mark this reg step as completed
107
-            $this->set_completed();
108
-        }
109
-        $this->checkout->set_exit_spco();
110
-        return true;
111
-    }
112
-
113
-
114
-    /**
115
-     * _finalize_transaction
116
-     * ensures that all details and statuses for transaction, registration, and payments are updated
117
-     *
118
-     * @return array
119
-     * @throws \RuntimeException
120
-     * @throws \EE_Error
121
-     */
122
-    protected function _finalize_transaction()
123
-    {
124
-        /** @type EE_Transaction_Processor $transaction_processor */
125
-        $transaction_processor = EE_Registry::instance()->load_class('Transaction_Processor');
126
-        // set revisit flag in txn processor
127
-        $transaction_processor->set_revisit($this->checkout->revisit);
128
-        // at this point we'll consider a TXN to not have been abandoned
129
-        $this->checkout->transaction->toggle_abandoned_transaction_status();
130
-        if ($this->checkout->cart instanceof EE_Cart) {
131
-            // save TXN data to the cart
132
-            $this->checkout->cart->get_grand_total()->save_this_and_descendants_to_txn(
133
-                $this->checkout->transaction->ID()
134
-            );
135
-        }
136
-        // maybe update status, but don't save transaction just yet
137
-        $this->checkout->transaction->update_status_based_on_total_paid(false);
138
-        // this will result in the base session properties getting saved to the TXN_Session_data field
139
-        $this->checkout->transaction->set_txn_session_data(
140
-            EE_Registry::instance()->SSN->get_session_data(null, true)
141
-        );
142
-        // update the TXN if payment conditions have changed, but do NOT trigger notifications,
143
-        // because we will do that in process_reg_step() after setting some more triggers
144
-        return $transaction_processor->update_transaction_and_registrations_after_checkout_or_payment(
145
-            $this->checkout->transaction,
146
-            $this->checkout->payment,
147
-            $this->checkout->reg_cache_where_params,
148
-            false
149
-        );
150
-    }
151
-
152
-
153
-    /**
154
-     * If request is not a revisit, and an Off-Site gateway using IPNs has NOT been selected...
155
-     * OR
156
-     * if it IS a revisit and the TXN and/or one or more REG statuses have changed...
157
-     * then trigger notifications
158
-     *
159
-     * @return void
160
-     * @throws \EE_Error
161
-     */
162
-    protected function _set_notification_triggers()
163
-    {
164
-
165
-        if ($this->checkout->payment_method instanceof EE_Payment_Method) {
166
-            // let's start with the assumption that we need to trigger notifications
167
-            // then toggle this to false for conditions where we know we don't need to
168
-            $deliver_notifications = true;
169
-            if (// if SPCO revisit
170
-                filter_var($this->checkout->revisit, FILTER_VALIDATE_BOOLEAN)
171
-                // and TXN or REG statuses have NOT changed due to a payment
172
-                && ! (
173
-                    $this->checkout->transaction->txn_status_updated()
174
-                    || $this->checkout->any_reg_status_updated()
175
-                )
176
-            ) {
177
-                $deliver_notifications = false;
178
-            }
179
-            if ($this->checkout->payment_method->is_off_site()) {
180
-                /** @var EE_Gateway $gateway */
181
-                $gateway = $this->checkout->payment_method->type_obj()->get_gateway();
182
-                // and the gateway uses a separate request to process the IPN
183
-                if ($gateway instanceof EE_Offsite_Gateway
184
-                    && $gateway->handle_IPN_in_this_request(\EE_Registry::instance()->REQ->params(), true)
185
-                ) {
186
-                    // IPN request will handle triggering notifications
187
-                    $deliver_notifications = false;
188
-                    // no really... don't send any notices in this request
189
-                    remove_all_filters('FHEE__EED_Messages___maybe_registration__deliver_notifications');
190
-                    add_filter(
191
-                        'FHEE__EED_Messages___maybe_registration__deliver_notifications',
192
-                        '__return_false',
193
-                        15
194
-                    );
195
-                }
196
-            }
197
-            if ($deliver_notifications) {
198
-                // send out notifications
199
-                add_filter('FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true', 10);
200
-            }
201
-        }
202
-    }
203
-
204
-
205
-    /**
206
-     * check if transaction has a primary registrant and that it has a related Attendee object
207
-     *
208
-     * @return boolean
209
-     * @throws \EE_Error
210
-     */
211
-    protected function _validate_primary_registrant()
212
-    {
213
-        if (! $this->checkout->transaction_has_primary_registrant()) {
214
-            EE_Error::add_error(
215
-                __('A valid Primary Registration for this Transaction could not be found.', 'event_espresso'),
216
-                __FILE__,
217
-                __FUNCTION__,
218
-                __LINE__
219
-            );
220
-            $this->checkout->redirect = false;
221
-            $this->checkout->continue_reg = false;
222
-            return false;
223
-        }
224
-        // setup URL for redirect
225
-        $this->checkout->redirect_url = add_query_arg(
226
-            array('e_reg_url_link' => $this->checkout->transaction->primary_registration()->reg_url_link()),
227
-            $this->checkout->thank_you_page_url
228
-        );
229
-        return true;
230
-    }
231
-
232
-
233
-    /**
234
-     * @return void
235
-     */
236
-    public function update_reg_step()
237
-    {
238
-        EE_Error::doing_it_wrong(
239
-            __CLASS__ . '::' . __FILE__,
240
-            __(
241
-                'Can not call update_reg_step() on the Finalize Registration reg step.',
242
-                'event_espresso'
243
-            ),
244
-            '4.6.0'
245
-        );
246
-    }
15
+	/**
16
+	 *    class constructor
17
+	 *
18
+	 * @access    public
19
+	 * @param    EE_Checkout $checkout
20
+	 */
21
+	public function __construct(EE_Checkout $checkout)
22
+	{
23
+		$this->_slug = 'finalize_registration';
24
+		$this->_name = __('Finalize Registration', 'event_espresso');
25
+		$this->_submit_button_text = $this->_name;
26
+		$this->_template = '';
27
+		$this->checkout = $checkout;
28
+	}
29
+
30
+
31
+	public function translate_js_strings()
32
+	{
33
+	}
34
+
35
+
36
+	public function enqueue_styles_and_scripts()
37
+	{
38
+	}
39
+
40
+
41
+	/**
42
+	 * @return boolean
43
+	 */
44
+	public function initialize_reg_step()
45
+	{
46
+		// there's actually no reg form to process if this is the final step
47
+		if ($this->is_current_step()) {
48
+			$this->checkout->step = $_REQUEST['step'] = $this->slug();
49
+			$this->checkout->action = $_REQUEST['action'] = 'process_reg_step';
50
+			$this->checkout->generate_reg_form = false;
51
+		}
52
+		return true;
53
+	}
54
+
55
+
56
+	/**
57
+	 * @return string
58
+	 * @throws \EE_Error
59
+	 */
60
+	public function generate_reg_form()
61
+	{
62
+		// create empty form so that things don't break
63
+		$this->reg_form = new EE_Form_Section_Proper();
64
+		return '';
65
+	}
66
+
67
+
68
+	/**
69
+	 * @return boolean
70
+	 * @throws \RuntimeException
71
+	 * @throws \EE_Error
72
+	 */
73
+	public function process_reg_step()
74
+	{
75
+		// ensure all data gets refreshed from the db
76
+		$this->checkout->refresh_all_entities(true);
77
+		// ensures that all details and statuses for transaction, registration, and payments are updated
78
+		$txn_update_params = $this->_finalize_transaction();
79
+		// maybe send messages
80
+		$this->_set_notification_triggers();
81
+		// send messages
82
+		/** @type EE_Registration_Processor $registration_processor */
83
+		$registration_processor = EE_Registry::instance()->load_class('Registration_Processor');
84
+		$registration_processor->trigger_registration_update_notifications(
85
+			$this->checkout->transaction->primary_registration(),
86
+			$txn_update_params
87
+		);
88
+		// set a hook point
89
+		do_action(
90
+			'AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed',
91
+			$this->checkout,
92
+			$txn_update_params
93
+		);
94
+		// check if transaction has a primary registrant and that it has a related Attendee object
95
+		if (! $this->_validate_primary_registrant()) {
96
+			return false;
97
+		}
98
+		// you don't have to go home but you can't stay here !
99
+		$this->checkout->redirect = true;
100
+		$this->checkout->continue_reg = true;
101
+		$this->checkout->json_response->set_redirect_url($this->checkout->redirect_url);
102
+		if (! (
103
+			$this->checkout->payment_method instanceof EE_Payment_Method
104
+			&& $this->checkout->payment_method->is_off_site()
105
+		)) {
106
+			// mark this reg step as completed
107
+			$this->set_completed();
108
+		}
109
+		$this->checkout->set_exit_spco();
110
+		return true;
111
+	}
112
+
113
+
114
+	/**
115
+	 * _finalize_transaction
116
+	 * ensures that all details and statuses for transaction, registration, and payments are updated
117
+	 *
118
+	 * @return array
119
+	 * @throws \RuntimeException
120
+	 * @throws \EE_Error
121
+	 */
122
+	protected function _finalize_transaction()
123
+	{
124
+		/** @type EE_Transaction_Processor $transaction_processor */
125
+		$transaction_processor = EE_Registry::instance()->load_class('Transaction_Processor');
126
+		// set revisit flag in txn processor
127
+		$transaction_processor->set_revisit($this->checkout->revisit);
128
+		// at this point we'll consider a TXN to not have been abandoned
129
+		$this->checkout->transaction->toggle_abandoned_transaction_status();
130
+		if ($this->checkout->cart instanceof EE_Cart) {
131
+			// save TXN data to the cart
132
+			$this->checkout->cart->get_grand_total()->save_this_and_descendants_to_txn(
133
+				$this->checkout->transaction->ID()
134
+			);
135
+		}
136
+		// maybe update status, but don't save transaction just yet
137
+		$this->checkout->transaction->update_status_based_on_total_paid(false);
138
+		// this will result in the base session properties getting saved to the TXN_Session_data field
139
+		$this->checkout->transaction->set_txn_session_data(
140
+			EE_Registry::instance()->SSN->get_session_data(null, true)
141
+		);
142
+		// update the TXN if payment conditions have changed, but do NOT trigger notifications,
143
+		// because we will do that in process_reg_step() after setting some more triggers
144
+		return $transaction_processor->update_transaction_and_registrations_after_checkout_or_payment(
145
+			$this->checkout->transaction,
146
+			$this->checkout->payment,
147
+			$this->checkout->reg_cache_where_params,
148
+			false
149
+		);
150
+	}
151
+
152
+
153
+	/**
154
+	 * If request is not a revisit, and an Off-Site gateway using IPNs has NOT been selected...
155
+	 * OR
156
+	 * if it IS a revisit and the TXN and/or one or more REG statuses have changed...
157
+	 * then trigger notifications
158
+	 *
159
+	 * @return void
160
+	 * @throws \EE_Error
161
+	 */
162
+	protected function _set_notification_triggers()
163
+	{
164
+
165
+		if ($this->checkout->payment_method instanceof EE_Payment_Method) {
166
+			// let's start with the assumption that we need to trigger notifications
167
+			// then toggle this to false for conditions where we know we don't need to
168
+			$deliver_notifications = true;
169
+			if (// if SPCO revisit
170
+				filter_var($this->checkout->revisit, FILTER_VALIDATE_BOOLEAN)
171
+				// and TXN or REG statuses have NOT changed due to a payment
172
+				&& ! (
173
+					$this->checkout->transaction->txn_status_updated()
174
+					|| $this->checkout->any_reg_status_updated()
175
+				)
176
+			) {
177
+				$deliver_notifications = false;
178
+			}
179
+			if ($this->checkout->payment_method->is_off_site()) {
180
+				/** @var EE_Gateway $gateway */
181
+				$gateway = $this->checkout->payment_method->type_obj()->get_gateway();
182
+				// and the gateway uses a separate request to process the IPN
183
+				if ($gateway instanceof EE_Offsite_Gateway
184
+					&& $gateway->handle_IPN_in_this_request(\EE_Registry::instance()->REQ->params(), true)
185
+				) {
186
+					// IPN request will handle triggering notifications
187
+					$deliver_notifications = false;
188
+					// no really... don't send any notices in this request
189
+					remove_all_filters('FHEE__EED_Messages___maybe_registration__deliver_notifications');
190
+					add_filter(
191
+						'FHEE__EED_Messages___maybe_registration__deliver_notifications',
192
+						'__return_false',
193
+						15
194
+					);
195
+				}
196
+			}
197
+			if ($deliver_notifications) {
198
+				// send out notifications
199
+				add_filter('FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true', 10);
200
+			}
201
+		}
202
+	}
203
+
204
+
205
+	/**
206
+	 * check if transaction has a primary registrant and that it has a related Attendee object
207
+	 *
208
+	 * @return boolean
209
+	 * @throws \EE_Error
210
+	 */
211
+	protected function _validate_primary_registrant()
212
+	{
213
+		if (! $this->checkout->transaction_has_primary_registrant()) {
214
+			EE_Error::add_error(
215
+				__('A valid Primary Registration for this Transaction could not be found.', 'event_espresso'),
216
+				__FILE__,
217
+				__FUNCTION__,
218
+				__LINE__
219
+			);
220
+			$this->checkout->redirect = false;
221
+			$this->checkout->continue_reg = false;
222
+			return false;
223
+		}
224
+		// setup URL for redirect
225
+		$this->checkout->redirect_url = add_query_arg(
226
+			array('e_reg_url_link' => $this->checkout->transaction->primary_registration()->reg_url_link()),
227
+			$this->checkout->thank_you_page_url
228
+		);
229
+		return true;
230
+	}
231
+
232
+
233
+	/**
234
+	 * @return void
235
+	 */
236
+	public function update_reg_step()
237
+	{
238
+		EE_Error::doing_it_wrong(
239
+			__CLASS__ . '::' . __FILE__,
240
+			__(
241
+				'Can not call update_reg_step() on the Finalize Registration reg step.',
242
+				'event_espresso'
243
+			),
244
+			'4.6.0'
245
+		);
246
+	}
247 247
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,14 +92,14 @@  discard block
 block discarded – undo
92 92
             $txn_update_params
93 93
         );
94 94
         // check if transaction has a primary registrant and that it has a related Attendee object
95
-        if (! $this->_validate_primary_registrant()) {
95
+        if ( ! $this->_validate_primary_registrant()) {
96 96
             return false;
97 97
         }
98 98
         // you don't have to go home but you can't stay here !
99 99
         $this->checkout->redirect = true;
100 100
         $this->checkout->continue_reg = true;
101 101
         $this->checkout->json_response->set_redirect_url($this->checkout->redirect_url);
102
-        if (! (
102
+        if ( ! (
103 103
             $this->checkout->payment_method instanceof EE_Payment_Method
104 104
             && $this->checkout->payment_method->is_off_site()
105 105
         )) {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     protected function _validate_primary_registrant()
212 212
     {
213
-        if (! $this->checkout->transaction_has_primary_registrant()) {
213
+        if ( ! $this->checkout->transaction_has_primary_registrant()) {
214 214
             EE_Error::add_error(
215 215
                 __('A valid Primary Registration for this Transaction could not be found.', 'event_espresso'),
216 216
                 __FILE__,
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     public function update_reg_step()
237 237
     {
238 238
         EE_Error::doing_it_wrong(
239
-            __CLASS__ . '::' . __FILE__,
239
+            __CLASS__.'::'.__FILE__,
240 240
             __(
241 241
                 'Can not call update_reg_step() on the Finalize Registration reg step.',
242 242
                 'event_espresso'
Please login to merge, or discard this patch.
modules/gateways/Invoice/lib/Invoice.class.php 2 patches
Indentation   +365 added lines, -365 removed lines patch added patch discarded remove patch
@@ -9,398 +9,398 @@
 block discarded – undo
9 9
 class Invoice
10 10
 {
11 11
 
12
-    /**
13
-     *
14
-     * @var EE_Registration
15
-     */
16
-    private $registration;
17
-    /**
18
-     *
19
-     * @var EE_Transaction
20
-     */
21
-    private $transaction;
22
-    /**
23
-     *
24
-     * @var EE_Payment_Method
25
-     */
26
-    private $invoice_payment_method;
27
-    private $EE;
12
+	/**
13
+	 *
14
+	 * @var EE_Registration
15
+	 */
16
+	private $registration;
17
+	/**
18
+	 *
19
+	 * @var EE_Transaction
20
+	 */
21
+	private $transaction;
22
+	/**
23
+	 *
24
+	 * @var EE_Payment_Method
25
+	 */
26
+	private $invoice_payment_method;
27
+	private $EE;
28 28
 
29 29
 
30
-    /**
31
-     * Invoice constructor.
32
-     *
33
-     * @deprecated 4.9.13
34
-     * @param int $url_link
35
-     */
36
-    public function __construct($url_link = 0)
37
-    {
38
-        EE_Error::doing_it_wrong(
39
-            __CLASS__,
40
-            esc_html__(
41
-                'This class has been deprecated and replaced by the new Messages library.',
42
-                'event_espresso'
43
-            ),
44
-            '4.9.12',
45
-            '5.0.0'
46
-        );
47
-        if ($this->registration = EE_Registry::instance()->load_model(
48
-            'Registration'
49
-        )->get_registration_for_reg_url_link($url_link)) {
50
-            $this->transaction = $this->registration->transaction();
51
-            // get_user_meta(EE_Registry::instance()->CFG->wp_user, 'payment_settings', TRUE);
52
-            $payment_settings = EE_Config::instance()->gateway->payment_settings;
53
-            $this->invoice_payment_method = EEM_Payment_Method::instance()->get_one_of_type('Invoice');
54
-        } else {
55
-            EE_Error::add_error(
56
-                __(
57
-                    'Your request appears to be missing some required data, and no information for your transaction could be retrieved.',
58
-                    'event_espresso'
59
-                ),
60
-                __FILE__,
61
-                __FUNCTION__,
62
-                __LINE__
63
-            );
64
-        }
65
-    }
30
+	/**
31
+	 * Invoice constructor.
32
+	 *
33
+	 * @deprecated 4.9.13
34
+	 * @param int $url_link
35
+	 */
36
+	public function __construct($url_link = 0)
37
+	{
38
+		EE_Error::doing_it_wrong(
39
+			__CLASS__,
40
+			esc_html__(
41
+				'This class has been deprecated and replaced by the new Messages library.',
42
+				'event_espresso'
43
+			),
44
+			'4.9.12',
45
+			'5.0.0'
46
+		);
47
+		if ($this->registration = EE_Registry::instance()->load_model(
48
+			'Registration'
49
+		)->get_registration_for_reg_url_link($url_link)) {
50
+			$this->transaction = $this->registration->transaction();
51
+			// get_user_meta(EE_Registry::instance()->CFG->wp_user, 'payment_settings', TRUE);
52
+			$payment_settings = EE_Config::instance()->gateway->payment_settings;
53
+			$this->invoice_payment_method = EEM_Payment_Method::instance()->get_one_of_type('Invoice');
54
+		} else {
55
+			EE_Error::add_error(
56
+				__(
57
+					'Your request appears to be missing some required data, and no information for your transaction could be retrieved.',
58
+					'event_espresso'
59
+				),
60
+				__FILE__,
61
+				__FUNCTION__,
62
+				__LINE__
63
+			);
64
+		}
65
+	}
66 66
 
67
-    public function send_invoice($download = false)
68
-    {
69
-        $template_args = array();
70
-        $EE = EE_Registry::instance();
67
+	public function send_invoice($download = false)
68
+	{
69
+		$template_args = array();
70
+		$EE = EE_Registry::instance();
71 71
 
72
-        // allow the request to override the default theme defined in the invoice settings
73
-        $theme_requested = (isset($_REQUEST['theme']) && $_REQUEST['theme'] > 0 && $_REQUEST['theme'] < 8) ? absint(
74
-            $_REQUEST['theme']
75
-        ) : null;
76
-        $themes = array(
77
-            1 => "simple.css",
78
-            2 => "bauhaus.css",
79
-            3 => "ejs.css",
80
-            4 => "horizon.css",
81
-            5 => "lola.css",
82
-            6 => "tranquility.css",
83
-            7 => "union.css",
84
-        );
85
-        // Get the CSS file
86
-        if (isset($themes[ $theme_requested ])) {
87
-            $template_args['invoice_css'] = $themes[ $theme_requested ];
88
-        } else {
89
-            $template_args['invoice_css'] = $this->invoice_payment_method->get_extra_meta(
90
-                'legacy_invoice_css',
91
-                true,
92
-                'simple.css'
93
-            );
94
-        }
72
+		// allow the request to override the default theme defined in the invoice settings
73
+		$theme_requested = (isset($_REQUEST['theme']) && $_REQUEST['theme'] > 0 && $_REQUEST['theme'] < 8) ? absint(
74
+			$_REQUEST['theme']
75
+		) : null;
76
+		$themes = array(
77
+			1 => "simple.css",
78
+			2 => "bauhaus.css",
79
+			3 => "ejs.css",
80
+			4 => "horizon.css",
81
+			5 => "lola.css",
82
+			6 => "tranquility.css",
83
+			7 => "union.css",
84
+		);
85
+		// Get the CSS file
86
+		if (isset($themes[ $theme_requested ])) {
87
+			$template_args['invoice_css'] = $themes[ $theme_requested ];
88
+		} else {
89
+			$template_args['invoice_css'] = $this->invoice_payment_method->get_extra_meta(
90
+				'legacy_invoice_css',
91
+				true,
92
+				'simple.css'
93
+			);
94
+		}
95 95
 
96
-        if (is_dir(EVENT_ESPRESSO_GATEWAY_DIR . '/invoice')) {
97
-            $template_args['base_url'] = EVENT_ESPRESSO_GATEWAY_URL . 'Invoice/lib/templates/';
98
-        } else {
99
-            $template_args['base_url'] = EE_GATEWAYS . '/Invoice/lib/templates/';
100
-        }
101
-        $primary_attendee = $this->transaction->primary_registration()->attendee();
96
+		if (is_dir(EVENT_ESPRESSO_GATEWAY_DIR . '/invoice')) {
97
+			$template_args['base_url'] = EVENT_ESPRESSO_GATEWAY_URL . 'Invoice/lib/templates/';
98
+		} else {
99
+			$template_args['base_url'] = EE_GATEWAYS . '/Invoice/lib/templates/';
100
+		}
101
+		$primary_attendee = $this->transaction->primary_registration()->attendee();
102 102
 
103
-        $template_args['organization'] = $EE->CFG->organization->get_pretty('name');
104
-        $template_args['street'] = empty($EE->CFG->organization->address_2) ? $EE->CFG->organization->get_pretty(
105
-            'address_1'
106
-        ) : $EE->CFG->organization->get_pretty('address_1') . '<br>' . $EE->CFG->organization->get_pretty('address_2');
107
-        $template_args['city'] = $EE->CFG->organization->get_pretty('city');
108
-        $template_args['state'] = EE_Registry::instance()->load_model('State')->get_one_by_ID(
109
-            $EE->CFG->organization->STA_ID
110
-        );
111
-        $template_args['country'] = EE_Registry::instance()->load_model('Country')->get_one_by_ID(
112
-            $EE->CFG->organization->CNT_ISO
113
-        );
114
-        $template_args['zip'] = $EE->CFG->organization->get_pretty('zip');
115
-        $template_args['email'] = $EE->CFG->organization->get_pretty('email');
103
+		$template_args['organization'] = $EE->CFG->organization->get_pretty('name');
104
+		$template_args['street'] = empty($EE->CFG->organization->address_2) ? $EE->CFG->organization->get_pretty(
105
+			'address_1'
106
+		) : $EE->CFG->organization->get_pretty('address_1') . '<br>' . $EE->CFG->organization->get_pretty('address_2');
107
+		$template_args['city'] = $EE->CFG->organization->get_pretty('city');
108
+		$template_args['state'] = EE_Registry::instance()->load_model('State')->get_one_by_ID(
109
+			$EE->CFG->organization->STA_ID
110
+		);
111
+		$template_args['country'] = EE_Registry::instance()->load_model('Country')->get_one_by_ID(
112
+			$EE->CFG->organization->CNT_ISO
113
+		);
114
+		$template_args['zip'] = $EE->CFG->organization->get_pretty('zip');
115
+		$template_args['email'] = $EE->CFG->organization->get_pretty('email');
116 116
 
117
-        $template_args['registration_code'] = $this->registration->reg_code();
118
-        $template_args['registration_date'] = $this->registration->date();
119
-        $template_args['name'] = $primary_attendee->full_name();
120
-        $template_args['attendee_address'] = $primary_attendee->address();
121
-        $template_args['attendee_address2'] = $primary_attendee->address2();
122
-        $template_args['attendee_city'] = $primary_attendee->city();
123
-        $attendee_state = $primary_attendee->state_obj();
124
-        if ($attendee_state) {
125
-            $attendee_state_name = $attendee_state->name();
126
-        } else {
127
-            $attendee_state_name = '';
128
-        }
129
-        $template_args['attendee_state'] = $attendee_state_name;
130
-        $template_args['attendee_zip'] = $primary_attendee->zip();
117
+		$template_args['registration_code'] = $this->registration->reg_code();
118
+		$template_args['registration_date'] = $this->registration->date();
119
+		$template_args['name'] = $primary_attendee->full_name();
120
+		$template_args['attendee_address'] = $primary_attendee->address();
121
+		$template_args['attendee_address2'] = $primary_attendee->address2();
122
+		$template_args['attendee_city'] = $primary_attendee->city();
123
+		$attendee_state = $primary_attendee->state_obj();
124
+		if ($attendee_state) {
125
+			$attendee_state_name = $attendee_state->name();
126
+		} else {
127
+			$attendee_state_name = '';
128
+		}
129
+		$template_args['attendee_state'] = $attendee_state_name;
130
+		$template_args['attendee_zip'] = $primary_attendee->zip();
131 131
 
132
-        $template_args['ship_name'] = $template_args['name'];
133
-        $template_args['ship_address'] = $template_args['attendee_address'];
134
-        $template_args['ship_city'] = $template_args['attendee_city'];
135
-        $template_args['ship_state'] = $template_args['attendee_state'];
136
-        $template_args['ship_zip'] = $template_args['attendee_zip'];
132
+		$template_args['ship_name'] = $template_args['name'];
133
+		$template_args['ship_address'] = $template_args['attendee_address'];
134
+		$template_args['ship_city'] = $template_args['attendee_city'];
135
+		$template_args['ship_state'] = $template_args['attendee_state'];
136
+		$template_args['ship_zip'] = $template_args['attendee_zip'];
137 137
 
138
-        $template_args['total_cost'] = number_format($this->transaction->total(), 2, '.', '');
139
-        $template_args['transaction'] = $this->transaction;
140
-        $template_args['amount_pd'] = $this->transaction->paid();
141
-        $template_args['amount_owed'] = $this->transaction->total() - $this->transaction->paid();
142
-        $template_args['payments'] = $this->transaction->approved_payments();
143
-        $template_args['net_total'] = '';
144
-        $template_args['edit_reg_info_url'] = $this->registration->edit_attendee_information_url();
145
-        $template_args['retry_payment_url'] = $this->registration->payment_overview_url();
146
-        $template_args['show_line_item_description'] = $this->check_if_any_line_items_have_a_description(
147
-            $this->transaction->total_line_item()
148
-        );
149
-        if ($template_args['amount_pd'] != $template_args['total_cost']) {
150
-            // $template_args['net_total'] = $this->espressoInvoiceTotals( __('SubTotal', 'event_espresso'), $this->transaction->total());//$this->session_data['cart']['REG']['sub_total']);
151
-            $tax_items = $this->transaction->tax_items();
152
-            if (! empty($tax_items)) {
153
-                foreach ($tax_items as $tax) {
154
-                    $template_args['net_total'] .= $this->espressoInvoiceTotals($tax->name(), $tax->total());
155
-                }
156
-            }
138
+		$template_args['total_cost'] = number_format($this->transaction->total(), 2, '.', '');
139
+		$template_args['transaction'] = $this->transaction;
140
+		$template_args['amount_pd'] = $this->transaction->paid();
141
+		$template_args['amount_owed'] = $this->transaction->total() - $this->transaction->paid();
142
+		$template_args['payments'] = $this->transaction->approved_payments();
143
+		$template_args['net_total'] = '';
144
+		$template_args['edit_reg_info_url'] = $this->registration->edit_attendee_information_url();
145
+		$template_args['retry_payment_url'] = $this->registration->payment_overview_url();
146
+		$template_args['show_line_item_description'] = $this->check_if_any_line_items_have_a_description(
147
+			$this->transaction->total_line_item()
148
+		);
149
+		if ($template_args['amount_pd'] != $template_args['total_cost']) {
150
+			// $template_args['net_total'] = $this->espressoInvoiceTotals( __('SubTotal', 'event_espresso'), $this->transaction->total());//$this->session_data['cart']['REG']['sub_total']);
151
+			$tax_items = $this->transaction->tax_items();
152
+			if (! empty($tax_items)) {
153
+				foreach ($tax_items as $tax) {
154
+					$template_args['net_total'] .= $this->espressoInvoiceTotals($tax->name(), $tax->total());
155
+				}
156
+			}
157 157
 
158
-            $difference = $template_args['amount_pd'] - $template_args['total_cost'];
159
-            if ($difference < 0) {
160
-                $text = __('Discount', 'event_espresso');
161
-            } else {
162
-                $text = __('Extra', 'event_espresso');
163
-            }
164
-            $template_args['discount'] = $this->espressoInvoiceTotals($text, $difference);
165
-        }
158
+			$difference = $template_args['amount_pd'] - $template_args['total_cost'];
159
+			if ($difference < 0) {
160
+				$text = __('Discount', 'event_espresso');
161
+			} else {
162
+				$text = __('Extra', 'event_espresso');
163
+			}
164
+			$template_args['discount'] = $this->espressoInvoiceTotals($text, $difference);
165
+		}
166 166
 
167
-        $template_args['currency_symbol'] = $EE->CFG->currency->sign;
168
-        $template_args['template_payment_instructions'] = wpautop(
169
-            stripslashes_deep(
170
-                html_entity_decode($this->invoice_payment_method->get_extra_meta('pdf_instructions', true), ENT_QUOTES)
171
-            )
172
-        );
173
-        $template_args['shameless_plug'] = apply_filters('FHEE_Invoice__send_invoice__shameless_plug', true);
174
-        if (isset($_GET['receipt'])) {
175
-            // receipt-specific stuff
176
-            $events_for_txn = EEM_Event::instance()->get_all(
177
-                array(array('Registration.TXN_ID' => $this->transaction->ID()))
178
-            );
179
-            $ticket_line_items_per_event = array();
180
-            $registrations_per_line_item = array();
181
-            $venues_for_events = array();
182
-            foreach ($events_for_txn as $event_id => $event) {
183
-                $line_items_for_this_event = EEM_Line_Item::instance()->get_all(
184
-                    array(array('Ticket.Datetime.EVT_ID' => $event_id, 'TXN_ID' => $this->transaction->ID()))
185
-                );
186
-                $ticket_line_items_per_event[ $event_id ] = $line_items_for_this_event;
187
-                foreach ($line_items_for_this_event as $line_item_id => $line_item) {
188
-                    $ticket = $line_item->ticket();
189
-                    $registrations_for_this_ticket = EEM_Registration::instance()->get_all(
190
-                        array(array('TKT_ID' => $ticket->ID(), 'TXN_ID' => $this->transaction->ID()))
191
-                    );
192
-                    $registrations_per_line_item[ $line_item_id ] = $registrations_for_this_ticket;
193
-                }
194
-                $venues_for_events = array_merge($venues_for_events, $event->venues());
195
-            }
196
-            $tax_total_line_item = EEM_Line_Item::instance()->get_one(
197
-                array(array('TXN_ID' => $this->transaction->ID(), 'LIN_type' => EEM_Line_Item::type_tax_sub_total))
198
-            );
199
-            $questions_to_skip = array(
200
-                EEM_Attendee::system_question_fname,
201
-                EEM_Attendee::system_question_lname,
202
-                EEM_Attendee::system_question_email,
203
-            );
167
+		$template_args['currency_symbol'] = $EE->CFG->currency->sign;
168
+		$template_args['template_payment_instructions'] = wpautop(
169
+			stripslashes_deep(
170
+				html_entity_decode($this->invoice_payment_method->get_extra_meta('pdf_instructions', true), ENT_QUOTES)
171
+			)
172
+		);
173
+		$template_args['shameless_plug'] = apply_filters('FHEE_Invoice__send_invoice__shameless_plug', true);
174
+		if (isset($_GET['receipt'])) {
175
+			// receipt-specific stuff
176
+			$events_for_txn = EEM_Event::instance()->get_all(
177
+				array(array('Registration.TXN_ID' => $this->transaction->ID()))
178
+			);
179
+			$ticket_line_items_per_event = array();
180
+			$registrations_per_line_item = array();
181
+			$venues_for_events = array();
182
+			foreach ($events_for_txn as $event_id => $event) {
183
+				$line_items_for_this_event = EEM_Line_Item::instance()->get_all(
184
+					array(array('Ticket.Datetime.EVT_ID' => $event_id, 'TXN_ID' => $this->transaction->ID()))
185
+				);
186
+				$ticket_line_items_per_event[ $event_id ] = $line_items_for_this_event;
187
+				foreach ($line_items_for_this_event as $line_item_id => $line_item) {
188
+					$ticket = $line_item->ticket();
189
+					$registrations_for_this_ticket = EEM_Registration::instance()->get_all(
190
+						array(array('TKT_ID' => $ticket->ID(), 'TXN_ID' => $this->transaction->ID()))
191
+					);
192
+					$registrations_per_line_item[ $line_item_id ] = $registrations_for_this_ticket;
193
+				}
194
+				$venues_for_events = array_merge($venues_for_events, $event->venues());
195
+			}
196
+			$tax_total_line_item = EEM_Line_Item::instance()->get_one(
197
+				array(array('TXN_ID' => $this->transaction->ID(), 'LIN_type' => EEM_Line_Item::type_tax_sub_total))
198
+			);
199
+			$questions_to_skip = array(
200
+				EEM_Attendee::system_question_fname,
201
+				EEM_Attendee::system_question_lname,
202
+				EEM_Attendee::system_question_email,
203
+			);
204 204
 
205 205
 
206
-            $template_args['events_for_txn'] = $events_for_txn;
207
-            $template_args['ticket_line_items_per_event'] = $ticket_line_items_per_event;
208
-            $template_args['registrations_per_line_item'] = $registrations_per_line_item;
209
-            $template_args['venues_for_events'] = $venues_for_events;
210
-            $template_args['tax_total_line_item'] = $tax_total_line_item;
211
-            $template_args['questions_to_skip'] = $questions_to_skip;
212
-            // d($template_args);
213
-            $template_args['download_link'] = $this->registration->receipt_url('download');
214
-        } else {
215
-            // it's just an invoice we're accessing
216
-            $template_args['download_link'] = $this->registration->invoice_url('download');
217
-        }
206
+			$template_args['events_for_txn'] = $events_for_txn;
207
+			$template_args['ticket_line_items_per_event'] = $ticket_line_items_per_event;
208
+			$template_args['registrations_per_line_item'] = $registrations_per_line_item;
209
+			$template_args['venues_for_events'] = $venues_for_events;
210
+			$template_args['tax_total_line_item'] = $tax_total_line_item;
211
+			$template_args['questions_to_skip'] = $questions_to_skip;
212
+			// d($template_args);
213
+			$template_args['download_link'] = $this->registration->receipt_url('download');
214
+		} else {
215
+			// it's just an invoice we're accessing
216
+			$template_args['download_link'] = $this->registration->invoice_url('download');
217
+		}
218 218
 
219
-        // Get the HTML as an object
220
-        $templates_relative_path = 'modules/gateways/Invoice/lib/templates/';
221
-        $template_header = EEH_Template::locate_template(
222
-            $templates_relative_path . 'invoice_header.template.php',
223
-            $template_args,
224
-            true,
225
-            true
226
-        );
227
-        if (isset($_GET['receipt'])) {
228
-            $template_body = EEH_Template::locate_template(
229
-                $templates_relative_path . 'receipt_body.template.php',
230
-                $template_args,
231
-                true,
232
-                true
233
-            );
234
-        } else {
235
-            $template_body = EEH_Template::locate_template(
236
-                $templates_relative_path . 'invoice_body.template.php',
237
-                $template_args,
238
-                true,
239
-                true
240
-            );
241
-        }
219
+		// Get the HTML as an object
220
+		$templates_relative_path = 'modules/gateways/Invoice/lib/templates/';
221
+		$template_header = EEH_Template::locate_template(
222
+			$templates_relative_path . 'invoice_header.template.php',
223
+			$template_args,
224
+			true,
225
+			true
226
+		);
227
+		if (isset($_GET['receipt'])) {
228
+			$template_body = EEH_Template::locate_template(
229
+				$templates_relative_path . 'receipt_body.template.php',
230
+				$template_args,
231
+				true,
232
+				true
233
+			);
234
+		} else {
235
+			$template_body = EEH_Template::locate_template(
236
+				$templates_relative_path . 'invoice_body.template.php',
237
+				$template_args,
238
+				true,
239
+				true
240
+			);
241
+		}
242 242
 
243 243
 
244
-        $template_footer = EEH_Template::locate_template(
245
-            $templates_relative_path . 'invoice_footer.template.php',
246
-            $template_args,
247
-            true,
248
-            true
249
-        );
244
+		$template_footer = EEH_Template::locate_template(
245
+			$templates_relative_path . 'invoice_footer.template.php',
246
+			$template_args,
247
+			true,
248
+			true
249
+		);
250 250
 
251
-        $copies = ! empty($_REQUEST['copies']) ? $_REQUEST['copies'] : 1;
251
+		$copies = ! empty($_REQUEST['copies']) ? $_REQUEST['copies'] : 1;
252 252
 
253
-        $content = $this->espresso_replace_invoice_shortcodes($template_header);
254
-        for ($x = 1; $x <= $copies; $x++) {
255
-            $content .= $this->espresso_replace_invoice_shortcodes($template_body);
256
-        }
257
-        $content .= $this->espresso_replace_invoice_shortcodes($template_footer);
253
+		$content = $this->espresso_replace_invoice_shortcodes($template_header);
254
+		for ($x = 1; $x <= $copies; $x++) {
255
+			$content .= $this->espresso_replace_invoice_shortcodes($template_body);
256
+		}
257
+		$content .= $this->espresso_replace_invoice_shortcodes($template_footer);
258 258
 
259
-        // Check if debugging or mobile is set
260
-        if (! empty($_REQUEST['html'])) {
261
-            echo $content;
262
-            exit(0);
263
-        }
264
-        $invoice_name = $template_args['organization'] . ' ' . __(
265
-            'Invoice #',
266
-            'event_espresso'
267
-        ) . $template_args['registration_code'] . __(' for ', 'event_espresso') . $template_args['name'];
268
-        $invoice_name = str_replace(' ', '_', $invoice_name);
269
-        // Create the PDF
270
-        if (array_key_exists('html', $_GET)) {
271
-            echo $content;
272
-        } else {
273
-            // only load dompdf if nobody else has yet...
274
-            if (! defined('DOMPDF_DIR')) {
275
-                define('DOMPDF_ENABLE_REMOTE', true);
276
-                define('DOMPDF_ENABLE_JAVASCRIPT', false);
277
-                define('DOMPDF_ENABLE_CSS_FLOAT', true);
278
-                require_once(EE_THIRD_PARTY . 'dompdf/dompdf_config.inc.php');
279
-            }
280
-            $dompdf = new DOMPDF();
281
-            $dompdf->load_html($content);
282
-            $dompdf->render();
283
-            $dompdf->stream($invoice_name . ".pdf", array('Attachment' => $download));
284
-        }
285
-        exit(0);
286
-    }
259
+		// Check if debugging or mobile is set
260
+		if (! empty($_REQUEST['html'])) {
261
+			echo $content;
262
+			exit(0);
263
+		}
264
+		$invoice_name = $template_args['organization'] . ' ' . __(
265
+			'Invoice #',
266
+			'event_espresso'
267
+		) . $template_args['registration_code'] . __(' for ', 'event_espresso') . $template_args['name'];
268
+		$invoice_name = str_replace(' ', '_', $invoice_name);
269
+		// Create the PDF
270
+		if (array_key_exists('html', $_GET)) {
271
+			echo $content;
272
+		} else {
273
+			// only load dompdf if nobody else has yet...
274
+			if (! defined('DOMPDF_DIR')) {
275
+				define('DOMPDF_ENABLE_REMOTE', true);
276
+				define('DOMPDF_ENABLE_JAVASCRIPT', false);
277
+				define('DOMPDF_ENABLE_CSS_FLOAT', true);
278
+				require_once(EE_THIRD_PARTY . 'dompdf/dompdf_config.inc.php');
279
+			}
280
+			$dompdf = new DOMPDF();
281
+			$dompdf->load_html($content);
282
+			$dompdf->render();
283
+			$dompdf->stream($invoice_name . ".pdf", array('Attachment' => $download));
284
+		}
285
+		exit(0);
286
+	}
287 287
 
288
-    /**
289
-     * Checks if this line item, or any of its children, actually has a description.
290
-     * If none do, then the template can decide to not show any description column
291
-     *
292
-     * @param EE_Line_Item $line_item
293
-     * @return boolean
294
-     */
295
-    public function check_if_any_line_items_have_a_description(EE_Line_Item $line_item)
296
-    {
297
-        if ($line_item->desc()) {
298
-            return true;
299
-        } else {
300
-            foreach ($line_item->children() as $child_line_item) {
301
-                if ($this->check_if_any_line_items_have_a_description($child_line_item)) {
302
-                    return true;
303
-                }
304
-            }
305
-            // well, if I and my children don't have descriptions, I guess not
306
-            return false;
307
-        }
308
-    }
288
+	/**
289
+	 * Checks if this line item, or any of its children, actually has a description.
290
+	 * If none do, then the template can decide to not show any description column
291
+	 *
292
+	 * @param EE_Line_Item $line_item
293
+	 * @return boolean
294
+	 */
295
+	public function check_if_any_line_items_have_a_description(EE_Line_Item $line_item)
296
+	{
297
+		if ($line_item->desc()) {
298
+			return true;
299
+		} else {
300
+			foreach ($line_item->children() as $child_line_item) {
301
+				if ($this->check_if_any_line_items_have_a_description($child_line_item)) {
302
+					return true;
303
+				}
304
+			}
305
+			// well, if I and my children don't have descriptions, I guess not
306
+			return false;
307
+		}
308
+	}
309 309
 
310 310
 // Perform the shortcode replacement
311
-    public function espresso_replace_invoice_shortcodes($content)
312
-    {
311
+	public function espresso_replace_invoice_shortcodes($content)
312
+	{
313 313
 
314
-        $EE = EE_Registry::instance();
315
-        // Create the logo
316
-        $invoice_logo_url = $this->invoice_payment_method->get_extra_meta(
317
-            'pdf_logo_image',
318
-            true,
319
-            $EE->CFG->organization->logo_url
320
-        );
321
-        if (! empty($invoice_logo_url)) {
322
-            $image_size = getimagesize($invoice_logo_url);
323
-            $invoice_logo_image = '<img class="logo screen" src="' . $invoice_logo_url . '" ' . $image_size[3] . ' alt="logo" /> ';
324
-        } else {
325
-            $invoice_logo_image = '';
326
-        }
327
-        $SearchValues = array(
328
-            "[organization]",
329
-            "[registration_code]",
330
-            "[transaction_id]",
331
-            "[name]",
332
-            "[base_url]",
333
-            "[download_link]",
334
-            "[invoice_logo_image]",
335
-            "[street]",
336
-            "[city]",
337
-            "[state]",
338
-            "[zip]",
339
-            "[email]",
340
-            "[vat]",
341
-            "[registration_date]",
342
-            "[instructions]",
343
-        );
344
-        $primary_attendee = $this->transaction->primary_registration()->attendee();
345
-        $org_state = EE_Registry::instance()->load_model('State')->get_one_by_ID($EE->CFG->organization->STA_ID);
346
-        if ($org_state) {
347
-            $org_state_name = $org_state->name();
348
-        } else {
349
-            $org_state_name = '';
350
-        }
351
-        $ReplaceValues = array(
352
-            $EE->CFG->organization->get_pretty('name'),
353
-            $this->registration->reg_code(),
354
-            $this->transaction->ID(),
355
-            $primary_attendee->full_name(),
356
-            (is_dir(EVENT_ESPRESSO_GATEWAY_DIR . '/invoice')) ? EVENT_ESPRESSO_GATEWAY_URL . 'Invoice/lib/templates/'
357
-                : EE_GATEWAYS_URL . 'Invoice/lib/templates/',
358
-            $this->registration->invoice_url(),
359
-            // home_url() . '/?download_invoice=true&amp;id=' . $this->registration->reg_url_link(),
360
-            $invoice_logo_image,
361
-            empty($EE->CFG->organization->address_2)
362
-                ? $EE->CFG->organization->get_pretty('address_1')
363
-                : $EE->CFG->organization->get_pretty('address_1') . '<br>' . $EE->CFG->organization->get_pretty(
364
-                    'address_2'
365
-                ),
366
-            $EE->CFG->organization->get_pretty('city'),
367
-            $org_state_name,
368
-            $EE->CFG->organization->get_pretty('zip'),
369
-            $EE->CFG->organization->get_pretty('email'),
370
-            $EE->CFG->organization->vat,
371
-            $this->registration->get_i18n_datetime('REG_date', get_option('date_format')),
372
-            $this->invoice_payment_method->get_extra_meta('pdf_instructions', true),
373
-        );
314
+		$EE = EE_Registry::instance();
315
+		// Create the logo
316
+		$invoice_logo_url = $this->invoice_payment_method->get_extra_meta(
317
+			'pdf_logo_image',
318
+			true,
319
+			$EE->CFG->organization->logo_url
320
+		);
321
+		if (! empty($invoice_logo_url)) {
322
+			$image_size = getimagesize($invoice_logo_url);
323
+			$invoice_logo_image = '<img class="logo screen" src="' . $invoice_logo_url . '" ' . $image_size[3] . ' alt="logo" /> ';
324
+		} else {
325
+			$invoice_logo_image = '';
326
+		}
327
+		$SearchValues = array(
328
+			"[organization]",
329
+			"[registration_code]",
330
+			"[transaction_id]",
331
+			"[name]",
332
+			"[base_url]",
333
+			"[download_link]",
334
+			"[invoice_logo_image]",
335
+			"[street]",
336
+			"[city]",
337
+			"[state]",
338
+			"[zip]",
339
+			"[email]",
340
+			"[vat]",
341
+			"[registration_date]",
342
+			"[instructions]",
343
+		);
344
+		$primary_attendee = $this->transaction->primary_registration()->attendee();
345
+		$org_state = EE_Registry::instance()->load_model('State')->get_one_by_ID($EE->CFG->organization->STA_ID);
346
+		if ($org_state) {
347
+			$org_state_name = $org_state->name();
348
+		} else {
349
+			$org_state_name = '';
350
+		}
351
+		$ReplaceValues = array(
352
+			$EE->CFG->organization->get_pretty('name'),
353
+			$this->registration->reg_code(),
354
+			$this->transaction->ID(),
355
+			$primary_attendee->full_name(),
356
+			(is_dir(EVENT_ESPRESSO_GATEWAY_DIR . '/invoice')) ? EVENT_ESPRESSO_GATEWAY_URL . 'Invoice/lib/templates/'
357
+				: EE_GATEWAYS_URL . 'Invoice/lib/templates/',
358
+			$this->registration->invoice_url(),
359
+			// home_url() . '/?download_invoice=true&amp;id=' . $this->registration->reg_url_link(),
360
+			$invoice_logo_image,
361
+			empty($EE->CFG->organization->address_2)
362
+				? $EE->CFG->organization->get_pretty('address_1')
363
+				: $EE->CFG->organization->get_pretty('address_1') . '<br>' . $EE->CFG->organization->get_pretty(
364
+					'address_2'
365
+				),
366
+			$EE->CFG->organization->get_pretty('city'),
367
+			$org_state_name,
368
+			$EE->CFG->organization->get_pretty('zip'),
369
+			$EE->CFG->organization->get_pretty('email'),
370
+			$EE->CFG->organization->vat,
371
+			$this->registration->get_i18n_datetime('REG_date', get_option('date_format')),
372
+			$this->invoice_payment_method->get_extra_meta('pdf_instructions', true),
373
+		);
374 374
 
375
-        return str_replace($SearchValues, $ReplaceValues, $content);
376
-    }
375
+		return str_replace($SearchValues, $ReplaceValues, $content);
376
+	}
377 377
 
378
-    public function espressoLoadData($items)
379
-    {
380
-        $lines = $items;
381
-        $data = array();
382
-        foreach ($lines as $line) {
383
-            $data[] = explode(';', chop($line));
384
-        }
378
+	public function espressoLoadData($items)
379
+	{
380
+		$lines = $items;
381
+		$data = array();
382
+		foreach ($lines as $line) {
383
+			$data[] = explode(';', chop($line));
384
+		}
385 385
 
386
-        return $data;
387
-    }
386
+		return $data;
387
+	}
388 388
 
389 389
 
390
-    public function espressoInvoiceTotals($text, $total_cost)
391
-    {
390
+	public function espressoInvoiceTotals($text, $total_cost)
391
+	{
392 392
 
393
-        $html = '';
394
-        if ($total_cost < 0) {
395
-            $total_cost = (-1) * $total_cost;
396
-        }
397
-        $find = array(' ');
398
-        $replace = array('-');
399
-        $row_id = strtolower(str_replace($find, $replace, $text));
400
-        $html .= '<tr id="' . $row_id . '-tr"><td colspan="4">&nbsp;</td>';
401
-        $html .= '<td class="item_r">' . $text . '</td>';
402
-        $html .= '<td class="item_r">' . $total_cost . '</td>';
403
-        $html .= '</tr>';
404
-        return $html;
405
-    }
393
+		$html = '';
394
+		if ($total_cost < 0) {
395
+			$total_cost = (-1) * $total_cost;
396
+		}
397
+		$find = array(' ');
398
+		$replace = array('-');
399
+		$row_id = strtolower(str_replace($find, $replace, $text));
400
+		$html .= '<tr id="' . $row_id . '-tr"><td colspan="4">&nbsp;</td>';
401
+		$html .= '<td class="item_r">' . $text . '</td>';
402
+		$html .= '<td class="item_r">' . $total_cost . '</td>';
403
+		$html .= '</tr>';
404
+		return $html;
405
+	}
406 406
 }
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
             7 => "union.css",
84 84
         );
85 85
         // Get the CSS file
86
-        if (isset($themes[ $theme_requested ])) {
87
-            $template_args['invoice_css'] = $themes[ $theme_requested ];
86
+        if (isset($themes[$theme_requested])) {
87
+            $template_args['invoice_css'] = $themes[$theme_requested];
88 88
         } else {
89 89
             $template_args['invoice_css'] = $this->invoice_payment_method->get_extra_meta(
90 90
                 'legacy_invoice_css',
@@ -93,17 +93,17 @@  discard block
 block discarded – undo
93 93
             );
94 94
         }
95 95
 
96
-        if (is_dir(EVENT_ESPRESSO_GATEWAY_DIR . '/invoice')) {
97
-            $template_args['base_url'] = EVENT_ESPRESSO_GATEWAY_URL . 'Invoice/lib/templates/';
96
+        if (is_dir(EVENT_ESPRESSO_GATEWAY_DIR.'/invoice')) {
97
+            $template_args['base_url'] = EVENT_ESPRESSO_GATEWAY_URL.'Invoice/lib/templates/';
98 98
         } else {
99
-            $template_args['base_url'] = EE_GATEWAYS . '/Invoice/lib/templates/';
99
+            $template_args['base_url'] = EE_GATEWAYS.'/Invoice/lib/templates/';
100 100
         }
101 101
         $primary_attendee = $this->transaction->primary_registration()->attendee();
102 102
 
103 103
         $template_args['organization'] = $EE->CFG->organization->get_pretty('name');
104 104
         $template_args['street'] = empty($EE->CFG->organization->address_2) ? $EE->CFG->organization->get_pretty(
105 105
             'address_1'
106
-        ) : $EE->CFG->organization->get_pretty('address_1') . '<br>' . $EE->CFG->organization->get_pretty('address_2');
106
+        ) : $EE->CFG->organization->get_pretty('address_1').'<br>'.$EE->CFG->organization->get_pretty('address_2');
107 107
         $template_args['city'] = $EE->CFG->organization->get_pretty('city');
108 108
         $template_args['state'] = EE_Registry::instance()->load_model('State')->get_one_by_ID(
109 109
             $EE->CFG->organization->STA_ID
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         if ($template_args['amount_pd'] != $template_args['total_cost']) {
150 150
             // $template_args['net_total'] = $this->espressoInvoiceTotals( __('SubTotal', 'event_espresso'), $this->transaction->total());//$this->session_data['cart']['REG']['sub_total']);
151 151
             $tax_items = $this->transaction->tax_items();
152
-            if (! empty($tax_items)) {
152
+            if ( ! empty($tax_items)) {
153 153
                 foreach ($tax_items as $tax) {
154 154
                     $template_args['net_total'] .= $this->espressoInvoiceTotals($tax->name(), $tax->total());
155 155
                 }
@@ -183,13 +183,13 @@  discard block
 block discarded – undo
183 183
                 $line_items_for_this_event = EEM_Line_Item::instance()->get_all(
184 184
                     array(array('Ticket.Datetime.EVT_ID' => $event_id, 'TXN_ID' => $this->transaction->ID()))
185 185
                 );
186
-                $ticket_line_items_per_event[ $event_id ] = $line_items_for_this_event;
186
+                $ticket_line_items_per_event[$event_id] = $line_items_for_this_event;
187 187
                 foreach ($line_items_for_this_event as $line_item_id => $line_item) {
188 188
                     $ticket = $line_item->ticket();
189 189
                     $registrations_for_this_ticket = EEM_Registration::instance()->get_all(
190 190
                         array(array('TKT_ID' => $ticket->ID(), 'TXN_ID' => $this->transaction->ID()))
191 191
                     );
192
-                    $registrations_per_line_item[ $line_item_id ] = $registrations_for_this_ticket;
192
+                    $registrations_per_line_item[$line_item_id] = $registrations_for_this_ticket;
193 193
                 }
194 194
                 $venues_for_events = array_merge($venues_for_events, $event->venues());
195 195
             }
@@ -219,21 +219,21 @@  discard block
 block discarded – undo
219 219
         // Get the HTML as an object
220 220
         $templates_relative_path = 'modules/gateways/Invoice/lib/templates/';
221 221
         $template_header = EEH_Template::locate_template(
222
-            $templates_relative_path . 'invoice_header.template.php',
222
+            $templates_relative_path.'invoice_header.template.php',
223 223
             $template_args,
224 224
             true,
225 225
             true
226 226
         );
227 227
         if (isset($_GET['receipt'])) {
228 228
             $template_body = EEH_Template::locate_template(
229
-                $templates_relative_path . 'receipt_body.template.php',
229
+                $templates_relative_path.'receipt_body.template.php',
230 230
                 $template_args,
231 231
                 true,
232 232
                 true
233 233
             );
234 234
         } else {
235 235
             $template_body = EEH_Template::locate_template(
236
-                $templates_relative_path . 'invoice_body.template.php',
236
+                $templates_relative_path.'invoice_body.template.php',
237 237
                 $template_args,
238 238
                 true,
239 239
                 true
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 
243 243
 
244 244
         $template_footer = EEH_Template::locate_template(
245
-            $templates_relative_path . 'invoice_footer.template.php',
245
+            $templates_relative_path.'invoice_footer.template.php',
246 246
             $template_args,
247 247
             true,
248 248
             true
@@ -257,30 +257,30 @@  discard block
 block discarded – undo
257 257
         $content .= $this->espresso_replace_invoice_shortcodes($template_footer);
258 258
 
259 259
         // Check if debugging or mobile is set
260
-        if (! empty($_REQUEST['html'])) {
260
+        if ( ! empty($_REQUEST['html'])) {
261 261
             echo $content;
262 262
             exit(0);
263 263
         }
264
-        $invoice_name = $template_args['organization'] . ' ' . __(
264
+        $invoice_name = $template_args['organization'].' '.__(
265 265
             'Invoice #',
266 266
             'event_espresso'
267
-        ) . $template_args['registration_code'] . __(' for ', 'event_espresso') . $template_args['name'];
267
+        ).$template_args['registration_code'].__(' for ', 'event_espresso').$template_args['name'];
268 268
         $invoice_name = str_replace(' ', '_', $invoice_name);
269 269
         // Create the PDF
270 270
         if (array_key_exists('html', $_GET)) {
271 271
             echo $content;
272 272
         } else {
273 273
             // only load dompdf if nobody else has yet...
274
-            if (! defined('DOMPDF_DIR')) {
274
+            if ( ! defined('DOMPDF_DIR')) {
275 275
                 define('DOMPDF_ENABLE_REMOTE', true);
276 276
                 define('DOMPDF_ENABLE_JAVASCRIPT', false);
277 277
                 define('DOMPDF_ENABLE_CSS_FLOAT', true);
278
-                require_once(EE_THIRD_PARTY . 'dompdf/dompdf_config.inc.php');
278
+                require_once(EE_THIRD_PARTY.'dompdf/dompdf_config.inc.php');
279 279
             }
280 280
             $dompdf = new DOMPDF();
281 281
             $dompdf->load_html($content);
282 282
             $dompdf->render();
283
-            $dompdf->stream($invoice_name . ".pdf", array('Attachment' => $download));
283
+            $dompdf->stream($invoice_name.".pdf", array('Attachment' => $download));
284 284
         }
285 285
         exit(0);
286 286
     }
@@ -318,9 +318,9 @@  discard block
 block discarded – undo
318 318
             true,
319 319
             $EE->CFG->organization->logo_url
320 320
         );
321
-        if (! empty($invoice_logo_url)) {
321
+        if ( ! empty($invoice_logo_url)) {
322 322
             $image_size = getimagesize($invoice_logo_url);
323
-            $invoice_logo_image = '<img class="logo screen" src="' . $invoice_logo_url . '" ' . $image_size[3] . ' alt="logo" /> ';
323
+            $invoice_logo_image = '<img class="logo screen" src="'.$invoice_logo_url.'" '.$image_size[3].' alt="logo" /> ';
324 324
         } else {
325 325
             $invoice_logo_image = '';
326 326
         }
@@ -353,14 +353,14 @@  discard block
 block discarded – undo
353 353
             $this->registration->reg_code(),
354 354
             $this->transaction->ID(),
355 355
             $primary_attendee->full_name(),
356
-            (is_dir(EVENT_ESPRESSO_GATEWAY_DIR . '/invoice')) ? EVENT_ESPRESSO_GATEWAY_URL . 'Invoice/lib/templates/'
357
-                : EE_GATEWAYS_URL . 'Invoice/lib/templates/',
356
+            (is_dir(EVENT_ESPRESSO_GATEWAY_DIR.'/invoice')) ? EVENT_ESPRESSO_GATEWAY_URL . 'Invoice/lib/templates/'
357
+                : EE_GATEWAYS_URL.'Invoice/lib/templates/',
358 358
             $this->registration->invoice_url(),
359 359
             // home_url() . '/?download_invoice=true&amp;id=' . $this->registration->reg_url_link(),
360 360
             $invoice_logo_image,
361 361
             empty($EE->CFG->organization->address_2)
362 362
                 ? $EE->CFG->organization->get_pretty('address_1')
363
-                : $EE->CFG->organization->get_pretty('address_1') . '<br>' . $EE->CFG->organization->get_pretty(
363
+                : $EE->CFG->organization->get_pretty('address_1').'<br>'.$EE->CFG->organization->get_pretty(
364 364
                     'address_2'
365 365
                 ),
366 366
             $EE->CFG->organization->get_pretty('city'),
@@ -397,9 +397,9 @@  discard block
 block discarded – undo
397 397
         $find = array(' ');
398 398
         $replace = array('-');
399 399
         $row_id = strtolower(str_replace($find, $replace, $text));
400
-        $html .= '<tr id="' . $row_id . '-tr"><td colspan="4">&nbsp;</td>';
401
-        $html .= '<td class="item_r">' . $text . '</td>';
402
-        $html .= '<td class="item_r">' . $total_cost . '</td>';
400
+        $html .= '<tr id="'.$row_id.'-tr"><td colspan="4">&nbsp;</td>';
401
+        $html .= '<td class="item_r">'.$text.'</td>';
402
+        $html .= '<td class="item_r">'.$total_cost.'</td>';
403 403
         $html .= '</tr>';
404 404
         return $html;
405 405
     }
Please login to merge, or discard this patch.
admin_pages/registrations/help_tours/Event_Checkin_Help_Tour.class.php 2 patches
Indentation   +266 added lines, -266 removed lines patch added patch discarded remove patch
@@ -15,289 +15,289 @@
 block discarded – undo
15 15
 class Event_Checkin_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Event Check-in Tour', 'event_espresso');
21
-        if (isset($this->_req_data['event_id'])) {
22
-            $this->_slug = 'event-checkin-overview-joyride';
23
-        } else {
24
-            $this->_slug = 'all-event-checkin-overview-joyride';
25
-        }
26
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Event Check-in Tour', 'event_espresso');
21
+		if (isset($this->_req_data['event_id'])) {
22
+			$this->_slug = 'event-checkin-overview-joyride';
23
+		} else {
24
+			$this->_slug = 'all-event-checkin-overview-joyride';
25
+		}
26
+	}
27 27
 
28 28
 
29
-    protected function _set_tour_stops()
30
-    {
31
-        $this->_stops = array(
32
-            10  => array(
33
-                'content' => $this->_start(),
34
-            ),
35
-            20  => array(
36
-                'id'      => '_REG_count',
37
-                'content' => $this->_reg_count_stop(),
38
-                'options' => array(
39
-                    'tipLocation'    => 'top',
40
-                    'tipAdjustmentX' => -5,
41
-                    'tipAdjustmentY' => -20,
42
-                ),
43
-            ),
44
-            30  => array(
45
-                'id'      => 'ATT_name',
46
-                'content' => $this->_attendee_name_stop(),
47
-                'options' => array(
48
-                    'tipLocation'    => 'top',
49
-                    'tipAdjustmentX' => -5,
50
-                    'tipAdjustmentY' => -20,
51
-                ),
52
-            ),
53
-            40  => array(
54
-                'id'      => 'ATT_email',
55
-                'content' => $this->_attendee_email_stop(),
56
-                'options' => array(
57
-                    'tipLocation'    => 'top',
58
-                    'tipAdjustmentX' => -5,
59
-                    'tipAdjustmentY' => -20,
60
-                ),
61
-            ),
62
-            50  => array(
63
-                'id'      => '_REG_date',
64
-                'content' => $this->_reg_date_stop(),
65
-                'options' => array(
66
-                    'tipLocation'    => 'top',
67
-                    'tipAdjustmentX' => -5,
68
-                    'tipAdjustmentY' => -20,
69
-                ),
70
-            ),
71
-            60  => array(
72
-                'id'      => '_REG_code',
73
-                'content' => $this->_reg_code_stop(),
74
-                'options' => array(
75
-                    'tipLocation'    => 'top',
76
-                    'tipAdjustmentX' => -5,
77
-                    'tipAdjustmentY' => -20,
78
-                ),
79
-            ),
80
-            80  => array(
81
-                'id'      => '_REG_final_price',
82
-                'content' => $this->_reg_final_price_stop(),
83
-                'options' => array(
84
-                    'tipLocation'    => 'top',
85
-                    'tipAdjustmentX' => -5,
86
-                    'tipAdjustmentY' => -20,
87
-                ),
88
-            ),
89
-            90  => array(
90
-                'id'      => 'TXN_paid',
91
-                'content' => $this->_txn_paid_stop(),
92
-                'options' => array(
93
-                    'tipLocation'    => 'left',
94
-                    'tipAdjustmentX' => 0,
95
-                    'tipAdjustmentY' => -50,
96
-                ),
97
-            ),
98
-            100 => array(
99
-                'id'      => 'TXN_total',
100
-                'content' => $this->_txn_total_stop(),
101
-                'options' => array(
102
-                    'tipLocation'    => 'left',
103
-                    'tipAdjustmentX' => 0,
104
-                    'tipAdjustmentY' => -50,
105
-                ),
106
-            ),
107
-            110 => array(
108
-                'id'      => 'PRC_name',
109
-                'content' => $this->_prc_name_stop(),
110
-                'options' => array(
111
-                    'tipLocation'    => 'left',
112
-                    'tipAdjustmentX' => 0,
113
-                    'tipAdjustmentY' => -50,
114
-                ),
115
-            ),
116
-            115 => array(
117
-                'id'      => 'actions',
118
-                'content' => $this->_actions_stop(),
119
-                'options' => array(
120
-                    'tipLocation'    => 'left',
121
-                    'tipAdjustmentX' => 0,
122
-                    'tipAdjustmentY' => -30,
123
-                ),
124
-            ),
125
-            120 => array(
126
-                'class'   => 'ee-list-table-legend-container',
127
-                'content' => $this->_legend_stop(),
128
-                'options' => array(
129
-                    'tipLocation'    => 'top',
130
-                    'tipAdjustmentX' => 15,
131
-                    'tipAdjustmentY' => -40,
132
-                ),
133
-            ),
134
-            125 => array(
135
-                'class'   => 'bulkactions',
136
-                'content' => $this->_bulkactions_stop(),
137
-                'options' => array(
138
-                    'tipLocation'    => 'bottom',
139
-                    'tipAdjustmentY' => -30,
140
-                    'tipAdjustmentX' => 15,
141
-                ),
142
-            ),
143
-            130 => array(
144
-                'id'      => 'event_id',
145
-                'content' => $this->_event_selector_stop(),
146
-                'options' => array(
147
-                    'tipLocation'    => 'right',
148
-                    'tipAdjustmentY' => -50,
149
-                    'tipAdjustmentX' => 25,
150
-                ),
151
-            ),
152
-            135 => array(
153
-                'id'      => 'DTT_ID',
154
-                'content' => $this->_dtt_selector_stop(),
155
-                'options' => array(
156
-                    'tipLocation'    => 'bottom',
157
-                    'tipAdjustmentY' => -30,
158
-                    'tipAdjustmentX' => 15,
159
-                ),
160
-            ),
161
-            140 => array(
162
-                'id'      => 'event-espresso_page_espresso_registrations-search-input',
163
-                'content' => $this->_search_stop(),
164
-                'options' => array(
165
-                    'tipLocation'    => 'left',
166
-                    'tipAdjustmentY' => -50,
167
-                    'tipAdjustmentX' => -15,
168
-                ),
169
-            ),
170
-        );
171
-    }
29
+	protected function _set_tour_stops()
30
+	{
31
+		$this->_stops = array(
32
+			10  => array(
33
+				'content' => $this->_start(),
34
+			),
35
+			20  => array(
36
+				'id'      => '_REG_count',
37
+				'content' => $this->_reg_count_stop(),
38
+				'options' => array(
39
+					'tipLocation'    => 'top',
40
+					'tipAdjustmentX' => -5,
41
+					'tipAdjustmentY' => -20,
42
+				),
43
+			),
44
+			30  => array(
45
+				'id'      => 'ATT_name',
46
+				'content' => $this->_attendee_name_stop(),
47
+				'options' => array(
48
+					'tipLocation'    => 'top',
49
+					'tipAdjustmentX' => -5,
50
+					'tipAdjustmentY' => -20,
51
+				),
52
+			),
53
+			40  => array(
54
+				'id'      => 'ATT_email',
55
+				'content' => $this->_attendee_email_stop(),
56
+				'options' => array(
57
+					'tipLocation'    => 'top',
58
+					'tipAdjustmentX' => -5,
59
+					'tipAdjustmentY' => -20,
60
+				),
61
+			),
62
+			50  => array(
63
+				'id'      => '_REG_date',
64
+				'content' => $this->_reg_date_stop(),
65
+				'options' => array(
66
+					'tipLocation'    => 'top',
67
+					'tipAdjustmentX' => -5,
68
+					'tipAdjustmentY' => -20,
69
+				),
70
+			),
71
+			60  => array(
72
+				'id'      => '_REG_code',
73
+				'content' => $this->_reg_code_stop(),
74
+				'options' => array(
75
+					'tipLocation'    => 'top',
76
+					'tipAdjustmentX' => -5,
77
+					'tipAdjustmentY' => -20,
78
+				),
79
+			),
80
+			80  => array(
81
+				'id'      => '_REG_final_price',
82
+				'content' => $this->_reg_final_price_stop(),
83
+				'options' => array(
84
+					'tipLocation'    => 'top',
85
+					'tipAdjustmentX' => -5,
86
+					'tipAdjustmentY' => -20,
87
+				),
88
+			),
89
+			90  => array(
90
+				'id'      => 'TXN_paid',
91
+				'content' => $this->_txn_paid_stop(),
92
+				'options' => array(
93
+					'tipLocation'    => 'left',
94
+					'tipAdjustmentX' => 0,
95
+					'tipAdjustmentY' => -50,
96
+				),
97
+			),
98
+			100 => array(
99
+				'id'      => 'TXN_total',
100
+				'content' => $this->_txn_total_stop(),
101
+				'options' => array(
102
+					'tipLocation'    => 'left',
103
+					'tipAdjustmentX' => 0,
104
+					'tipAdjustmentY' => -50,
105
+				),
106
+			),
107
+			110 => array(
108
+				'id'      => 'PRC_name',
109
+				'content' => $this->_prc_name_stop(),
110
+				'options' => array(
111
+					'tipLocation'    => 'left',
112
+					'tipAdjustmentX' => 0,
113
+					'tipAdjustmentY' => -50,
114
+				),
115
+			),
116
+			115 => array(
117
+				'id'      => 'actions',
118
+				'content' => $this->_actions_stop(),
119
+				'options' => array(
120
+					'tipLocation'    => 'left',
121
+					'tipAdjustmentX' => 0,
122
+					'tipAdjustmentY' => -30,
123
+				),
124
+			),
125
+			120 => array(
126
+				'class'   => 'ee-list-table-legend-container',
127
+				'content' => $this->_legend_stop(),
128
+				'options' => array(
129
+					'tipLocation'    => 'top',
130
+					'tipAdjustmentX' => 15,
131
+					'tipAdjustmentY' => -40,
132
+				),
133
+			),
134
+			125 => array(
135
+				'class'   => 'bulkactions',
136
+				'content' => $this->_bulkactions_stop(),
137
+				'options' => array(
138
+					'tipLocation'    => 'bottom',
139
+					'tipAdjustmentY' => -30,
140
+					'tipAdjustmentX' => 15,
141
+				),
142
+			),
143
+			130 => array(
144
+				'id'      => 'event_id',
145
+				'content' => $this->_event_selector_stop(),
146
+				'options' => array(
147
+					'tipLocation'    => 'right',
148
+					'tipAdjustmentY' => -50,
149
+					'tipAdjustmentX' => 25,
150
+				),
151
+			),
152
+			135 => array(
153
+				'id'      => 'DTT_ID',
154
+				'content' => $this->_dtt_selector_stop(),
155
+				'options' => array(
156
+					'tipLocation'    => 'bottom',
157
+					'tipAdjustmentY' => -30,
158
+					'tipAdjustmentX' => 15,
159
+				),
160
+			),
161
+			140 => array(
162
+				'id'      => 'event-espresso_page_espresso_registrations-search-input',
163
+				'content' => $this->_search_stop(),
164
+				'options' => array(
165
+					'tipLocation'    => 'left',
166
+					'tipAdjustmentY' => -50,
167
+					'tipAdjustmentX' => -15,
168
+				),
169
+			),
170
+		);
171
+	}
172 172
 
173 173
 
174
-    protected function _start()
175
-    {
176
-        $content = '<h3>' . __('Event Check-in', 'event_espresso') . '</h3>';
177
-        if (isset($this->_req_data['event_id'])) {
178
-            $content .= '<p>'
179
-                        . __(
180
-                            'This tour of the Event Check-in page will go over different areas of the screen to help you understand what they are used for.<br /><br /> Note: You are currently viewing the check-in for a specific event so you can toggle the check-in status for attendees.',
181
-                            'event_espresso'
182
-                        ) . '</p>';
183
-        } else {
184
-            $content .= '<p>'
185
-                        . __(
186
-                            'This tour of the event check-in page will go over different areas of the screen to help you understand what they are used for. <br /><br /> Note: You must select an event from the dropdown menu before you can toggle the check-in status for an attendee.',
187
-                            'event_espresso'
188
-                        ) . '</p>';
189
-        }
190
-        return $content;
191
-    }
174
+	protected function _start()
175
+	{
176
+		$content = '<h3>' . __('Event Check-in', 'event_espresso') . '</h3>';
177
+		if (isset($this->_req_data['event_id'])) {
178
+			$content .= '<p>'
179
+						. __(
180
+							'This tour of the Event Check-in page will go over different areas of the screen to help you understand what they are used for.<br /><br /> Note: You are currently viewing the check-in for a specific event so you can toggle the check-in status for attendees.',
181
+							'event_espresso'
182
+						) . '</p>';
183
+		} else {
184
+			$content .= '<p>'
185
+						. __(
186
+							'This tour of the event check-in page will go over different areas of the screen to help you understand what they are used for. <br /><br /> Note: You must select an event from the dropdown menu before you can toggle the check-in status for an attendee.',
187
+							'event_espresso'
188
+						) . '</p>';
189
+		}
190
+		return $content;
191
+	}
192 192
 
193
-    protected function _reg_count_stop()
194
-    {
195
-        return '<p>' . __('View registration number.', 'event_espresso') . '</p>';
196
-    }
193
+	protected function _reg_count_stop()
194
+	{
195
+		return '<p>' . __('View registration number.', 'event_espresso') . '</p>';
196
+	}
197 197
 
198
-    protected function _attendee_name_stop()
199
-    {
200
-        return '<p>'
201
-               . __(
202
-                   'View name of registrant. Can be sorted in ascending or descending order.',
203
-                   'event_espresso'
204
-               ) . '</p>';
205
-    }
198
+	protected function _attendee_name_stop()
199
+	{
200
+		return '<p>'
201
+			   . __(
202
+				   'View name of registrant. Can be sorted in ascending or descending order.',
203
+				   'event_espresso'
204
+			   ) . '</p>';
205
+	}
206 206
 
207
-    protected function _attendee_email_stop()
208
-    {
209
-        return '<p>' . __('View email address for a registrant.', 'event_espresso') . '</p>';
210
-    }
207
+	protected function _attendee_email_stop()
208
+	{
209
+		return '<p>' . __('View email address for a registrant.', 'event_espresso') . '</p>';
210
+	}
211 211
 
212
-    protected function _reg_date_stop()
213
-    {
214
-        return '<p>'
215
-               . __(
216
-                   'View registration date. Can be sorted in ascending or descending order.',
217
-                   'event_espresso'
218
-               ) . '</p>';
219
-    }
212
+	protected function _reg_date_stop()
213
+	{
214
+		return '<p>'
215
+			   . __(
216
+				   'View registration date. Can be sorted in ascending or descending order.',
217
+				   'event_espresso'
218
+			   ) . '</p>';
219
+	}
220 220
 
221
-    protected function _reg_code_stop()
222
-    {
223
-        return '<p>'
224
-               . __(
225
-                   'View registration code. Can be sorted in ascending or descending order.',
226
-                   'event_espresso'
227
-               ) . '</p>';
228
-    }
221
+	protected function _reg_code_stop()
222
+	{
223
+		return '<p>'
224
+			   . __(
225
+				   'View registration code. Can be sorted in ascending or descending order.',
226
+				   'event_espresso'
227
+			   ) . '</p>';
228
+	}
229 229
 
230
-    protected function _reg_final_price_stop()
231
-    {
232
-        return '<p>' . __('View price for ticket.', 'event_espresso') . '</p>';
233
-    }
230
+	protected function _reg_final_price_stop()
231
+	{
232
+		return '<p>' . __('View price for ticket.', 'event_espresso') . '</p>';
233
+	}
234 234
 
235
-    protected function _txn_paid_stop()
236
-    {
237
-        return '<p>' . __('View if registrant has paid for ticket.', 'event_espresso') . '</p>';
238
-    }
235
+	protected function _txn_paid_stop()
236
+	{
237
+		return '<p>' . __('View if registrant has paid for ticket.', 'event_espresso') . '</p>';
238
+	}
239 239
 
240
-    protected function _txn_total_stop()
241
-    {
242
-        return '<p>' . __('View total amount paid.', 'event_espresso') . '</p>';
243
-    }
240
+	protected function _txn_total_stop()
241
+	{
242
+		return '<p>' . __('View total amount paid.', 'event_espresso') . '</p>';
243
+	}
244 244
 
245
-    protected function _prc_name_stop()
246
-    {
247
-        return '<p>' . __('View type of ticket.', 'event_espresso') . '</p>';
248
-    }
245
+	protected function _prc_name_stop()
246
+	{
247
+		return '<p>' . __('View type of ticket.', 'event_espresso') . '</p>';
248
+	}
249 249
 
250
-    protected function _actions_stop()
251
-    {
252
-        return '<p>'
253
-               . __(
254
-                   'Perform an action to a registration. See legend in bottom left corner.',
255
-                   'event_espresso'
256
-               ) . '</p>';
257
-    }
250
+	protected function _actions_stop()
251
+	{
252
+		return '<p>'
253
+			   . __(
254
+				   'Perform an action to a registration. See legend in bottom left corner.',
255
+				   'event_espresso'
256
+			   ) . '</p>';
257
+	}
258 258
 
259
-    protected function _legend_stop()
260
-    {
261
-        return '<p>'
262
-               . __(
263
-                   'This is the legend that describes the different check-in statuses. Also shows available status for registrations.',
264
-                   'event_espresso'
265
-               ) . '</p>';
266
-    }
259
+	protected function _legend_stop()
260
+	{
261
+		return '<p>'
262
+			   . __(
263
+				   'This is the legend that describes the different check-in statuses. Also shows available status for registrations.',
264
+				   'event_espresso'
265
+			   ) . '</p>';
266
+	}
267 267
 
268
-    protected function _bulkactions_stop()
269
-    {
270
-        return '<p>'
271
-               . __(
272
-                   'Perform a bulk action to multiple registrations (only available when viewing check-in for a specific event).',
273
-                   'event_espresso'
274
-               ) . '</p>';
275
-    }
268
+	protected function _bulkactions_stop()
269
+	{
270
+		return '<p>'
271
+			   . __(
272
+				   'Perform a bulk action to multiple registrations (only available when viewing check-in for a specific event).',
273
+				   'event_espresso'
274
+			   ) . '</p>';
275
+	}
276 276
 
277
-    protected function _event_selector_stop()
278
-    {
279
-        return '<p>'
280
-               . __(
281
-                   'Select an event from this dropdown and click the filter button to see the check-in registration list for a specific event. You will then be able to toggle the check-in status for a registration.',
282
-                   'event_espresso'
283
-               ) . '</p>';
284
-    }
277
+	protected function _event_selector_stop()
278
+	{
279
+		return '<p>'
280
+			   . __(
281
+				   'Select an event from this dropdown and click the filter button to see the check-in registration list for a specific event. You will then be able to toggle the check-in status for a registration.',
282
+				   'event_espresso'
283
+			   ) . '</p>';
284
+	}
285 285
 
286
-    protected function _dtt_selector_stop()
287
-    {
288
-        return '<p>'
289
-               . __(
290
-                   'This dropdown shows you the date and time that a displayed registration is attached to. You can switch to a different event by selecting another date and clicking on the filter button. You can also switch out of this view by clicking on the reset filters button.',
291
-                   'event_espresso'
292
-               ) . '</p>';
293
-    }
286
+	protected function _dtt_selector_stop()
287
+	{
288
+		return '<p>'
289
+			   . __(
290
+				   'This dropdown shows you the date and time that a displayed registration is attached to. You can switch to a different event by selecting another date and clicking on the filter button. You can also switch out of this view by clicking on the reset filters button.',
291
+				   'event_espresso'
292
+			   ) . '</p>';
293
+	}
294 294
 
295
-    protected function _search_stop()
296
-    {
297
-        return '<p>'
298
-               . __(
299
-                   'Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.',
300
-                   'event_espresso'
301
-               ) . '</p>';
302
-    }
295
+	protected function _search_stop()
296
+	{
297
+		return '<p>'
298
+			   . __(
299
+				   'Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.',
300
+				   'event_espresso'
301
+			   ) . '</p>';
302
+	}
303 303
 }
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -173,26 +173,26 @@  discard block
 block discarded – undo
173 173
 
174 174
     protected function _start()
175 175
     {
176
-        $content = '<h3>' . __('Event Check-in', 'event_espresso') . '</h3>';
176
+        $content = '<h3>'.__('Event Check-in', 'event_espresso').'</h3>';
177 177
         if (isset($this->_req_data['event_id'])) {
178 178
             $content .= '<p>'
179 179
                         . __(
180 180
                             'This tour of the Event Check-in page will go over different areas of the screen to help you understand what they are used for.<br /><br /> Note: You are currently viewing the check-in for a specific event so you can toggle the check-in status for attendees.',
181 181
                             'event_espresso'
182
-                        ) . '</p>';
182
+                        ).'</p>';
183 183
         } else {
184 184
             $content .= '<p>'
185 185
                         . __(
186 186
                             'This tour of the event check-in page will go over different areas of the screen to help you understand what they are used for. <br /><br /> Note: You must select an event from the dropdown menu before you can toggle the check-in status for an attendee.',
187 187
                             'event_espresso'
188
-                        ) . '</p>';
188
+                        ).'</p>';
189 189
         }
190 190
         return $content;
191 191
     }
192 192
 
193 193
     protected function _reg_count_stop()
194 194
     {
195
-        return '<p>' . __('View registration number.', 'event_espresso') . '</p>';
195
+        return '<p>'.__('View registration number.', 'event_espresso').'</p>';
196 196
     }
197 197
 
198 198
     protected function _attendee_name_stop()
@@ -201,12 +201,12 @@  discard block
 block discarded – undo
201 201
                . __(
202 202
                    'View name of registrant. Can be sorted in ascending or descending order.',
203 203
                    'event_espresso'
204
-               ) . '</p>';
204
+               ).'</p>';
205 205
     }
206 206
 
207 207
     protected function _attendee_email_stop()
208 208
     {
209
-        return '<p>' . __('View email address for a registrant.', 'event_espresso') . '</p>';
209
+        return '<p>'.__('View email address for a registrant.', 'event_espresso').'</p>';
210 210
     }
211 211
 
212 212
     protected function _reg_date_stop()
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
                . __(
216 216
                    'View registration date. Can be sorted in ascending or descending order.',
217 217
                    'event_espresso'
218
-               ) . '</p>';
218
+               ).'</p>';
219 219
     }
220 220
 
221 221
     protected function _reg_code_stop()
@@ -224,27 +224,27 @@  discard block
 block discarded – undo
224 224
                . __(
225 225
                    'View registration code. Can be sorted in ascending or descending order.',
226 226
                    'event_espresso'
227
-               ) . '</p>';
227
+               ).'</p>';
228 228
     }
229 229
 
230 230
     protected function _reg_final_price_stop()
231 231
     {
232
-        return '<p>' . __('View price for ticket.', 'event_espresso') . '</p>';
232
+        return '<p>'.__('View price for ticket.', 'event_espresso').'</p>';
233 233
     }
234 234
 
235 235
     protected function _txn_paid_stop()
236 236
     {
237
-        return '<p>' . __('View if registrant has paid for ticket.', 'event_espresso') . '</p>';
237
+        return '<p>'.__('View if registrant has paid for ticket.', 'event_espresso').'</p>';
238 238
     }
239 239
 
240 240
     protected function _txn_total_stop()
241 241
     {
242
-        return '<p>' . __('View total amount paid.', 'event_espresso') . '</p>';
242
+        return '<p>'.__('View total amount paid.', 'event_espresso').'</p>';
243 243
     }
244 244
 
245 245
     protected function _prc_name_stop()
246 246
     {
247
-        return '<p>' . __('View type of ticket.', 'event_espresso') . '</p>';
247
+        return '<p>'.__('View type of ticket.', 'event_espresso').'</p>';
248 248
     }
249 249
 
250 250
     protected function _actions_stop()
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
                . __(
254 254
                    'Perform an action to a registration. See legend in bottom left corner.',
255 255
                    'event_espresso'
256
-               ) . '</p>';
256
+               ).'</p>';
257 257
     }
258 258
 
259 259
     protected function _legend_stop()
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
                . __(
263 263
                    'This is the legend that describes the different check-in statuses. Also shows available status for registrations.',
264 264
                    'event_espresso'
265
-               ) . '</p>';
265
+               ).'</p>';
266 266
     }
267 267
 
268 268
     protected function _bulkactions_stop()
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
                . __(
272 272
                    'Perform a bulk action to multiple registrations (only available when viewing check-in for a specific event).',
273 273
                    'event_espresso'
274
-               ) . '</p>';
274
+               ).'</p>';
275 275
     }
276 276
 
277 277
     protected function _event_selector_stop()
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
                . __(
281 281
                    'Select an event from this dropdown and click the filter button to see the check-in registration list for a specific event. You will then be able to toggle the check-in status for a registration.',
282 282
                    'event_espresso'
283
-               ) . '</p>';
283
+               ).'</p>';
284 284
     }
285 285
 
286 286
     protected function _dtt_selector_stop()
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
                . __(
290 290
                    'This dropdown shows you the date and time that a displayed registration is attached to. You can switch to a different event by selecting another date and clicking on the filter button. You can also switch out of this view by clicking on the reset filters button.',
291 291
                    'event_espresso'
292
-               ) . '</p>';
292
+               ).'</p>';
293 293
     }
294 294
 
295 295
     protected function _search_stop()
@@ -298,6 +298,6 @@  discard block
 block discarded – undo
298 298
                . __(
299 299
                    'Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.',
300 300
                    'event_espresso'
301
-               ) . '</p>';
301
+               ).'</p>';
302 302
     }
303 303
 }
Please login to merge, or discard this patch.
admin_pages/registrations/help_tours/Contact_List_Help_Tour.class.php 2 patches
Indentation   +223 added lines, -223 removed lines patch added patch discarded remove patch
@@ -15,227 +15,227 @@
 block discarded – undo
15 15
 class Contact_List_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Contact List Tour', 'event_espresso');
21
-        $this->_slug = 'contact-list-overview-joyride';
22
-    }
23
-
24
-
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10  => array(
29
-                'content' => $this->_start(),
30
-            ),
31
-            15  => array(
32
-                'id'      => 'ATT_ID',
33
-                'content' => $this->_attendee_id_stop(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'top',
36
-                    'tipAdjustmentX' => -20,
37
-                    'tipAdjustmentY' => -30,
38
-                ),
39
-            ),
40
-            20  => array(
41
-                'id'      => 'ATT_fname',
42
-                'content' => $this->_attendee_name_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'top',
45
-                    'tipAdjustmentX' => 5,
46
-                    'tipAdjustmentY' => -30,
47
-                ),
48
-            ),
49
-            30  => array(
50
-                'id'      => 'ATT_lname',
51
-                'content' => $this->_att_lname_stop(),
52
-                'options' => array(
53
-                    'tipLocation'    => 'top',
54
-                    'tipAdjustmentX' => 5,
55
-                    'tipAdjustmentY' => -30,
56
-                ),
57
-            ),
58
-            40  => array(
59
-                'id'      => 'ATT_email',
60
-                'content' => $this->_att_email_stop(),
61
-                'options' => array(
62
-                    'tipLocation'    => 'top',
63
-                    'tipAdjustmentX' => 10,
64
-                    'tipAdjustmentY' => -30,
65
-                ),
66
-            ),
67
-            50  => array(
68
-                'id'      => 'ATT_phone',
69
-                'content' => $this->_att_phone_stop(),
70
-                'options' => array(
71
-                    'tipLocation'    => 'top',
72
-                    'tipAdjustmentX' => -5,
73
-                    'tipAdjustmentY' => -30,
74
-                ),
75
-            ),
76
-            60  => array(
77
-                'id'      => 'ATT_address',
78
-                'content' => $this->_att_address_stop(),
79
-                'options' => array(
80
-                    'tipLocation'    => 'top',
81
-                    'tipAdjustmentX' => 0,
82
-                    'tipAdjustmentY' => -30,
83
-                ),
84
-            ),
85
-            70  => array(
86
-                'id'      => 'ATT_city',
87
-                'content' => $this->_att_city_stop(),
88
-                'options' => array(
89
-                    'tipLocation'    => 'left',
90
-                    'tipAdjustmentX' => 0,
91
-                    'tipAdjustmentY' => -50,
92
-                ),
93
-            ),
94
-            80  => array(
95
-                'id'      => 'STA_ID',
96
-                'content' => $this->_sta_id_stop(),
97
-                'options' => array(
98
-                    'tipLocation'    => 'left',
99
-                    'tipAdjustmentX' => 0,
100
-                    'tipAdjustmentY' => -50,
101
-                ),
102
-            ),
103
-            90  => array(
104
-                'id'      => 'CNT_ISO',
105
-                'content' => $this->_cnt_iso_stop(),
106
-                'options' => array(
107
-                    'tipLocation'    => 'left',
108
-                    'tipAdjustmentX' => 0,
109
-                    'tipAdjustmentY' => -50,
110
-                ),
111
-            ),
112
-            100 => array(
113
-                'class'   => 'bulkactions',
114
-                'content' => $this->_bulkactions_stop(),
115
-                'options' => array(
116
-                    'tipLocation'    => 'bottom',
117
-                    'tipAdjustmentY' => -30,
118
-                    'tipAdjustmentX' => 15,
119
-                ),
120
-            ),
121
-            110 => array(
122
-                'id'      => 'event-espresso_page_espresso_registrations-search-input',
123
-                'content' => $this->_search_stop(),
124
-                'options' => array(
125
-                    'tipLocation'    => 'left',
126
-                    'tipAdjustmentY' => -50,
127
-                    'tipAdjustmentX' => -15,
128
-                ),
129
-            ),
130
-            120 => array(
131
-                'id'      => 'contact-list-csv-export',
132
-                'content' => $this->_contact_list_csv_export_stop(),
133
-                'options' => array(
134
-                    'tipLocation'    => 'right',
135
-                    'tipAdjustmentY' => -50,
136
-                    'tipAdjustmentX' => 25,
137
-                ),
138
-            ),
139
-        );
140
-    }
141
-
142
-
143
-    protected function _start()
144
-    {
145
-        $content = '<h3>' . __('Contact List', 'event_espresso') . '</h3>';
146
-        $content .= '<p>'
147
-                    . __(
148
-                        'This tour of the Contact List page will go over different areas of the screen to help you understand what they are used for.',
149
-                        'event_espresso'
150
-                    ) . '</p>';
151
-        return $content;
152
-    }
153
-
154
-    protected function _attendee_id_stop()
155
-    {
156
-        return '<p>'
157
-               . __(
158
-                   'View ID for registrants. Can be sorted in ascending or descending order.',
159
-                   'event_espresso'
160
-               ) . '</p>';
161
-    }
162
-
163
-    protected function _attendee_name_stop()
164
-    {
165
-        return '<p>'
166
-               . __(
167
-                   'View first name for registrants. Can be sorted in ascending or descending order.',
168
-                   'event_espresso'
169
-               ) . '</p>';
170
-    }
171
-
172
-    protected function _att_lname_stop()
173
-    {
174
-        return '<p>'
175
-               . __(
176
-                   'View last name for registrants. Can be sorted in ascending or descending order.',
177
-                   'event_espresso'
178
-               ) . '</p>';
179
-    }
180
-
181
-    protected function _att_email_stop()
182
-    {
183
-        return '<p>'
184
-               . __(
185
-                   'View email address for registrants. Can be sorted in ascending or descending order.',
186
-                   'event_espresso'
187
-               ) . '</p>';
188
-    }
189
-
190
-    protected function _att_phone_stop()
191
-    {
192
-        return '<p>' . __('View phone number for registrants.', 'event_espresso') . '</p>';
193
-    }
194
-
195
-    protected function _att_address_stop()
196
-    {
197
-        return '<p>' . __('View address for registrants.', 'event_espresso') . '</p>';
198
-    }
199
-
200
-    protected function _att_city_stop()
201
-    {
202
-        return '<p>' . __('View city for registrants.', 'event_espresso') . '</p>';
203
-    }
204
-
205
-    protected function _sta_id_stop()
206
-    {
207
-        return '<p>'
208
-               . __(
209
-                   'View state/province for registrants. Can be sorted in ascending or descending order.',
210
-                   'event_espresso'
211
-               ) . '</p>';
212
-    }
213
-
214
-    protected function _cnt_iso_stop()
215
-    {
216
-        return '<p>'
217
-               . __(
218
-                   'View country for registrants. Can be sorted in ascending or descending order.',
219
-                   'event_espresso'
220
-               ) . '</p>';
221
-    }
222
-
223
-    protected function _bulkactions_stop()
224
-    {
225
-        return '<p>' . __('Perform a bulk action to multiple registrants.', 'event_espresso') . '</p>';
226
-    }
227
-
228
-    protected function _search_stop()
229
-    {
230
-        return '<p>'
231
-               . __(
232
-                   'Search through contacts. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, and Registration Code.',
233
-                   'event_espresso'
234
-               ) . '</p>';
235
-    }
236
-
237
-    protected function _contact_list_csv_export_stop()
238
-    {
239
-        return '<p>' . __('Export your contact list to a CSV file.', 'event_espresso') . '</p>';
240
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Contact List Tour', 'event_espresso');
21
+		$this->_slug = 'contact-list-overview-joyride';
22
+	}
23
+
24
+
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10  => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			15  => array(
32
+				'id'      => 'ATT_ID',
33
+				'content' => $this->_attendee_id_stop(),
34
+				'options' => array(
35
+					'tipLocation'    => 'top',
36
+					'tipAdjustmentX' => -20,
37
+					'tipAdjustmentY' => -30,
38
+				),
39
+			),
40
+			20  => array(
41
+				'id'      => 'ATT_fname',
42
+				'content' => $this->_attendee_name_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'top',
45
+					'tipAdjustmentX' => 5,
46
+					'tipAdjustmentY' => -30,
47
+				),
48
+			),
49
+			30  => array(
50
+				'id'      => 'ATT_lname',
51
+				'content' => $this->_att_lname_stop(),
52
+				'options' => array(
53
+					'tipLocation'    => 'top',
54
+					'tipAdjustmentX' => 5,
55
+					'tipAdjustmentY' => -30,
56
+				),
57
+			),
58
+			40  => array(
59
+				'id'      => 'ATT_email',
60
+				'content' => $this->_att_email_stop(),
61
+				'options' => array(
62
+					'tipLocation'    => 'top',
63
+					'tipAdjustmentX' => 10,
64
+					'tipAdjustmentY' => -30,
65
+				),
66
+			),
67
+			50  => array(
68
+				'id'      => 'ATT_phone',
69
+				'content' => $this->_att_phone_stop(),
70
+				'options' => array(
71
+					'tipLocation'    => 'top',
72
+					'tipAdjustmentX' => -5,
73
+					'tipAdjustmentY' => -30,
74
+				),
75
+			),
76
+			60  => array(
77
+				'id'      => 'ATT_address',
78
+				'content' => $this->_att_address_stop(),
79
+				'options' => array(
80
+					'tipLocation'    => 'top',
81
+					'tipAdjustmentX' => 0,
82
+					'tipAdjustmentY' => -30,
83
+				),
84
+			),
85
+			70  => array(
86
+				'id'      => 'ATT_city',
87
+				'content' => $this->_att_city_stop(),
88
+				'options' => array(
89
+					'tipLocation'    => 'left',
90
+					'tipAdjustmentX' => 0,
91
+					'tipAdjustmentY' => -50,
92
+				),
93
+			),
94
+			80  => array(
95
+				'id'      => 'STA_ID',
96
+				'content' => $this->_sta_id_stop(),
97
+				'options' => array(
98
+					'tipLocation'    => 'left',
99
+					'tipAdjustmentX' => 0,
100
+					'tipAdjustmentY' => -50,
101
+				),
102
+			),
103
+			90  => array(
104
+				'id'      => 'CNT_ISO',
105
+				'content' => $this->_cnt_iso_stop(),
106
+				'options' => array(
107
+					'tipLocation'    => 'left',
108
+					'tipAdjustmentX' => 0,
109
+					'tipAdjustmentY' => -50,
110
+				),
111
+			),
112
+			100 => array(
113
+				'class'   => 'bulkactions',
114
+				'content' => $this->_bulkactions_stop(),
115
+				'options' => array(
116
+					'tipLocation'    => 'bottom',
117
+					'tipAdjustmentY' => -30,
118
+					'tipAdjustmentX' => 15,
119
+				),
120
+			),
121
+			110 => array(
122
+				'id'      => 'event-espresso_page_espresso_registrations-search-input',
123
+				'content' => $this->_search_stop(),
124
+				'options' => array(
125
+					'tipLocation'    => 'left',
126
+					'tipAdjustmentY' => -50,
127
+					'tipAdjustmentX' => -15,
128
+				),
129
+			),
130
+			120 => array(
131
+				'id'      => 'contact-list-csv-export',
132
+				'content' => $this->_contact_list_csv_export_stop(),
133
+				'options' => array(
134
+					'tipLocation'    => 'right',
135
+					'tipAdjustmentY' => -50,
136
+					'tipAdjustmentX' => 25,
137
+				),
138
+			),
139
+		);
140
+	}
141
+
142
+
143
+	protected function _start()
144
+	{
145
+		$content = '<h3>' . __('Contact List', 'event_espresso') . '</h3>';
146
+		$content .= '<p>'
147
+					. __(
148
+						'This tour of the Contact List page will go over different areas of the screen to help you understand what they are used for.',
149
+						'event_espresso'
150
+					) . '</p>';
151
+		return $content;
152
+	}
153
+
154
+	protected function _attendee_id_stop()
155
+	{
156
+		return '<p>'
157
+			   . __(
158
+				   'View ID for registrants. Can be sorted in ascending or descending order.',
159
+				   'event_espresso'
160
+			   ) . '</p>';
161
+	}
162
+
163
+	protected function _attendee_name_stop()
164
+	{
165
+		return '<p>'
166
+			   . __(
167
+				   'View first name for registrants. Can be sorted in ascending or descending order.',
168
+				   'event_espresso'
169
+			   ) . '</p>';
170
+	}
171
+
172
+	protected function _att_lname_stop()
173
+	{
174
+		return '<p>'
175
+			   . __(
176
+				   'View last name for registrants. Can be sorted in ascending or descending order.',
177
+				   'event_espresso'
178
+			   ) . '</p>';
179
+	}
180
+
181
+	protected function _att_email_stop()
182
+	{
183
+		return '<p>'
184
+			   . __(
185
+				   'View email address for registrants. Can be sorted in ascending or descending order.',
186
+				   'event_espresso'
187
+			   ) . '</p>';
188
+	}
189
+
190
+	protected function _att_phone_stop()
191
+	{
192
+		return '<p>' . __('View phone number for registrants.', 'event_espresso') . '</p>';
193
+	}
194
+
195
+	protected function _att_address_stop()
196
+	{
197
+		return '<p>' . __('View address for registrants.', 'event_espresso') . '</p>';
198
+	}
199
+
200
+	protected function _att_city_stop()
201
+	{
202
+		return '<p>' . __('View city for registrants.', 'event_espresso') . '</p>';
203
+	}
204
+
205
+	protected function _sta_id_stop()
206
+	{
207
+		return '<p>'
208
+			   . __(
209
+				   'View state/province for registrants. Can be sorted in ascending or descending order.',
210
+				   'event_espresso'
211
+			   ) . '</p>';
212
+	}
213
+
214
+	protected function _cnt_iso_stop()
215
+	{
216
+		return '<p>'
217
+			   . __(
218
+				   'View country for registrants. Can be sorted in ascending or descending order.',
219
+				   'event_espresso'
220
+			   ) . '</p>';
221
+	}
222
+
223
+	protected function _bulkactions_stop()
224
+	{
225
+		return '<p>' . __('Perform a bulk action to multiple registrants.', 'event_espresso') . '</p>';
226
+	}
227
+
228
+	protected function _search_stop()
229
+	{
230
+		return '<p>'
231
+			   . __(
232
+				   'Search through contacts. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, and Registration Code.',
233
+				   'event_espresso'
234
+			   ) . '</p>';
235
+	}
236
+
237
+	protected function _contact_list_csv_export_stop()
238
+	{
239
+		return '<p>' . __('Export your contact list to a CSV file.', 'event_espresso') . '</p>';
240
+	}
241 241
 }
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -142,12 +142,12 @@  discard block
 block discarded – undo
142 142
 
143 143
     protected function _start()
144 144
     {
145
-        $content = '<h3>' . __('Contact List', 'event_espresso') . '</h3>';
145
+        $content = '<h3>'.__('Contact List', 'event_espresso').'</h3>';
146 146
         $content .= '<p>'
147 147
                     . __(
148 148
                         'This tour of the Contact List page will go over different areas of the screen to help you understand what they are used for.',
149 149
                         'event_espresso'
150
-                    ) . '</p>';
150
+                    ).'</p>';
151 151
         return $content;
152 152
     }
153 153
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                . __(
158 158
                    'View ID for registrants. Can be sorted in ascending or descending order.',
159 159
                    'event_espresso'
160
-               ) . '</p>';
160
+               ).'</p>';
161 161
     }
162 162
 
163 163
     protected function _attendee_name_stop()
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                . __(
167 167
                    'View first name for registrants. Can be sorted in ascending or descending order.',
168 168
                    'event_espresso'
169
-               ) . '</p>';
169
+               ).'</p>';
170 170
     }
171 171
 
172 172
     protected function _att_lname_stop()
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
                . __(
176 176
                    'View last name for registrants. Can be sorted in ascending or descending order.',
177 177
                    'event_espresso'
178
-               ) . '</p>';
178
+               ).'</p>';
179 179
     }
180 180
 
181 181
     protected function _att_email_stop()
@@ -184,22 +184,22 @@  discard block
 block discarded – undo
184 184
                . __(
185 185
                    'View email address for registrants. Can be sorted in ascending or descending order.',
186 186
                    'event_espresso'
187
-               ) . '</p>';
187
+               ).'</p>';
188 188
     }
189 189
 
190 190
     protected function _att_phone_stop()
191 191
     {
192
-        return '<p>' . __('View phone number for registrants.', 'event_espresso') . '</p>';
192
+        return '<p>'.__('View phone number for registrants.', 'event_espresso').'</p>';
193 193
     }
194 194
 
195 195
     protected function _att_address_stop()
196 196
     {
197
-        return '<p>' . __('View address for registrants.', 'event_espresso') . '</p>';
197
+        return '<p>'.__('View address for registrants.', 'event_espresso').'</p>';
198 198
     }
199 199
 
200 200
     protected function _att_city_stop()
201 201
     {
202
-        return '<p>' . __('View city for registrants.', 'event_espresso') . '</p>';
202
+        return '<p>'.__('View city for registrants.', 'event_espresso').'</p>';
203 203
     }
204 204
 
205 205
     protected function _sta_id_stop()
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                . __(
209 209
                    'View state/province for registrants. Can be sorted in ascending or descending order.',
210 210
                    'event_espresso'
211
-               ) . '</p>';
211
+               ).'</p>';
212 212
     }
213 213
 
214 214
     protected function _cnt_iso_stop()
@@ -217,12 +217,12 @@  discard block
 block discarded – undo
217 217
                . __(
218 218
                    'View country for registrants. Can be sorted in ascending or descending order.',
219 219
                    'event_espresso'
220
-               ) . '</p>';
220
+               ).'</p>';
221 221
     }
222 222
 
223 223
     protected function _bulkactions_stop()
224 224
     {
225
-        return '<p>' . __('Perform a bulk action to multiple registrants.', 'event_espresso') . '</p>';
225
+        return '<p>'.__('Perform a bulk action to multiple registrants.', 'event_espresso').'</p>';
226 226
     }
227 227
 
228 228
     protected function _search_stop()
@@ -231,11 +231,11 @@  discard block
 block discarded – undo
231 231
                . __(
232 232
                    'Search through contacts. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, and Registration Code.',
233 233
                    'event_espresso'
234
-               ) . '</p>';
234
+               ).'</p>';
235 235
     }
236 236
 
237 237
     protected function _contact_list_csv_export_stop()
238 238
     {
239
-        return '<p>' . __('Export your contact list to a CSV file.', 'event_espresso') . '</p>';
239
+        return '<p>'.__('Export your contact list to a CSV file.', 'event_espresso').'</p>';
240 240
     }
241 241
 }
Please login to merge, or discard this patch.
registrations/help_tours/Registration_Overview_Help_Tour.class.php 2 patches
Indentation   +253 added lines, -253 removed lines patch added patch discarded remove patch
@@ -15,275 +15,275 @@
 block discarded – undo
15 15
 class Registration_Overview_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Registrations Overview Tour', 'event_espresso');
21
-        if (isset($this->_req_data['event_id'])) {
22
-            $this->_slug = 'registration-per-event-overview-joyride';
23
-        } else {
24
-            $this->_slug = 'registration-overview-joyride';
25
-        }
26
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Registrations Overview Tour', 'event_espresso');
21
+		if (isset($this->_req_data['event_id'])) {
22
+			$this->_slug = 'registration-per-event-overview-joyride';
23
+		} else {
24
+			$this->_slug = 'registration-overview-joyride';
25
+		}
26
+	}
27 27
 
28 28
 
29
-    protected function _set_tour_stops()
30
-    {
31
-        $this->_stops = array(
32
-            10  => array(
33
-                'content' => $this->_start(),
34
-            ),
35
-            20  => array(
36
-                'id'      => '_REG_ID',
37
-                'content' => $this->_reg_id_stop(),
38
-                'options' => array(
39
-                    'tipLocation'    => 'top',
40
-                    'tipAdjustmentX' => -20,
41
-                    'tipAdjustmentY' => -30,
42
-                ),
43
-            ),
44
-            30  => array(
45
-                'id'      => '_REG_count',
46
-                'content' => $this->_reg_count_stop(),
47
-                'options' => array(
48
-                    'tipLocation'    => 'top',
49
-                    'tipAdjustmentX' => -5,
50
-                    'tipAdjustmentY' => -30,
51
-                ),
52
-            ),
53
-            40  => array(
54
-                'id'      => 'ATT_fname',
55
-                'content' => $this->_attendee_name_stop(),
56
-                'options' => array(
57
-                    'tipLocation'    => 'top',
58
-                    'tipAdjustmentX' => -5,
59
-                    'tipAdjustmentY' => -30,
60
-                ),
61
-            ),
62
-            50  => array(
63
-                'id'      => '_REG_date',
64
-                'content' => $this->_reg_date_stop(),
65
-                'options' => array(
66
-                    'tipLocation'    => 'top',
67
-                    'tipAdjustmentX' => 5,
68
-                    'tipAdjustmentY' => -30,
69
-                ),
70
-            ),
71
-            60  => array(
72
-                'id'      => 'event_name',
73
-                'content' => $this->_event_name_stop(),
74
-                'options' => array(
75
-                    'tipLocation'    => 'top',
76
-                    'tipAdjustmentX' => -5,
77
-                    'tipAdjustmentY' => -30,
78
-                ),
79
-            ),
80
-            70  => array(
81
-                'id'      => 'DTT_EVT_start',
82
-                'content' => $this->_dtt_evt_start_stop(),
83
-                'options' => array(
84
-                    'tipLocation'    => 'top',
85
-                    'tipAdjustmentX' => 5,
86
-                    'tipAdjustmentY' => -30,
87
-                ),
88
-            ),
89
-            80  => array(
90
-                'id'      => '_REG_code',
91
-                'content' => $this->_reg_code_stop(),
92
-                'options' => array(
93
-                    'tipLocation'    => 'top',
94
-                    'tipAdjustmentX' => 0,
95
-                    'tipAdjustmentY' => -30,
96
-                ),
97
-            ),
98
-            90  => array(
99
-                'id'      => '_REG_final_price',
100
-                'content' => $this->_txn_total_stop(),
101
-                'options' => array(
102
-                    'tipLocation'    => 'left',
103
-                    'tipAdjustmentX' => 5,
104
-                    'tipAdjustmentY' => -50,
105
-                ),
106
-            ),
107
-            100 => array(
108
-                'id'      => 'actions',
109
-                'content' => $this->_actions_stop(),
110
-                'options' => array(
111
-                    'tipLocation'    => 'left',
112
-                    'tipAdjustmentX' => 0,
113
-                    'tipAdjustmentY' => -50,
114
-                ),
115
-            ),
116
-            110 => array(
117
-                'class'   => 'ee-list-table-legend-container',
118
-                'content' => $this->_legend_stop(),
119
-                'options' => array(
120
-                    'tipLocation'    => 'right',
121
-                    'tipAdjustmentX' => 15,
122
-                    'tipAdjustmentY' => -40,
123
-                ),
124
-            ),
125
-            120 => array(
126
-                'class'   => 'subsubsub',
127
-                'content' => $this->_views_stop(),
128
-                'options' => array(
129
-                    'tipLocation'    => 'right',
130
-                    'tipAdjustmentY' => -50,
131
-                    'tipAdjustmentX' => 15,
132
-                ),
133
-            ),
134
-            130 => array(
135
-                'class'   => 'bulkactions',
136
-                'content' => $this->_bulkactions_stop(),
137
-                'options' => array(
138
-                    'tipLocation'    => 'bottom',
139
-                    'tipAdjustmentY' => -30,
140
-                    'tipAdjustmentX' => 15,
141
-                ),
142
-            ),
143
-            140 => array(
144
-                'id'      => 'EVT_CAT',
145
-                'content' => $this->_stop_about_filters(),
146
-                'options' => array(
147
-                    'tipLocation'    => 'top',
148
-                    'tipAdjustmentY' => -40,
149
-                    'tipAdjustmentX' => 25,
150
-                ),
151
-            ),
152
-            150 => array(
153
-                'id'      => 'event-espresso_page_espresso_registrations-search-input',
154
-                'content' => $this->_search_stop(),
155
-                'options' => array(
156
-                    'tipLocation'    => 'left',
157
-                    'tipAdjustmentY' => -50,
158
-                    'tipAdjustmentX' => -15,
159
-                ),
160
-            ),
161
-        );
162
-    }
29
+	protected function _set_tour_stops()
30
+	{
31
+		$this->_stops = array(
32
+			10  => array(
33
+				'content' => $this->_start(),
34
+			),
35
+			20  => array(
36
+				'id'      => '_REG_ID',
37
+				'content' => $this->_reg_id_stop(),
38
+				'options' => array(
39
+					'tipLocation'    => 'top',
40
+					'tipAdjustmentX' => -20,
41
+					'tipAdjustmentY' => -30,
42
+				),
43
+			),
44
+			30  => array(
45
+				'id'      => '_REG_count',
46
+				'content' => $this->_reg_count_stop(),
47
+				'options' => array(
48
+					'tipLocation'    => 'top',
49
+					'tipAdjustmentX' => -5,
50
+					'tipAdjustmentY' => -30,
51
+				),
52
+			),
53
+			40  => array(
54
+				'id'      => 'ATT_fname',
55
+				'content' => $this->_attendee_name_stop(),
56
+				'options' => array(
57
+					'tipLocation'    => 'top',
58
+					'tipAdjustmentX' => -5,
59
+					'tipAdjustmentY' => -30,
60
+				),
61
+			),
62
+			50  => array(
63
+				'id'      => '_REG_date',
64
+				'content' => $this->_reg_date_stop(),
65
+				'options' => array(
66
+					'tipLocation'    => 'top',
67
+					'tipAdjustmentX' => 5,
68
+					'tipAdjustmentY' => -30,
69
+				),
70
+			),
71
+			60  => array(
72
+				'id'      => 'event_name',
73
+				'content' => $this->_event_name_stop(),
74
+				'options' => array(
75
+					'tipLocation'    => 'top',
76
+					'tipAdjustmentX' => -5,
77
+					'tipAdjustmentY' => -30,
78
+				),
79
+			),
80
+			70  => array(
81
+				'id'      => 'DTT_EVT_start',
82
+				'content' => $this->_dtt_evt_start_stop(),
83
+				'options' => array(
84
+					'tipLocation'    => 'top',
85
+					'tipAdjustmentX' => 5,
86
+					'tipAdjustmentY' => -30,
87
+				),
88
+			),
89
+			80  => array(
90
+				'id'      => '_REG_code',
91
+				'content' => $this->_reg_code_stop(),
92
+				'options' => array(
93
+					'tipLocation'    => 'top',
94
+					'tipAdjustmentX' => 0,
95
+					'tipAdjustmentY' => -30,
96
+				),
97
+			),
98
+			90  => array(
99
+				'id'      => '_REG_final_price',
100
+				'content' => $this->_txn_total_stop(),
101
+				'options' => array(
102
+					'tipLocation'    => 'left',
103
+					'tipAdjustmentX' => 5,
104
+					'tipAdjustmentY' => -50,
105
+				),
106
+			),
107
+			100 => array(
108
+				'id'      => 'actions',
109
+				'content' => $this->_actions_stop(),
110
+				'options' => array(
111
+					'tipLocation'    => 'left',
112
+					'tipAdjustmentX' => 0,
113
+					'tipAdjustmentY' => -50,
114
+				),
115
+			),
116
+			110 => array(
117
+				'class'   => 'ee-list-table-legend-container',
118
+				'content' => $this->_legend_stop(),
119
+				'options' => array(
120
+					'tipLocation'    => 'right',
121
+					'tipAdjustmentX' => 15,
122
+					'tipAdjustmentY' => -40,
123
+				),
124
+			),
125
+			120 => array(
126
+				'class'   => 'subsubsub',
127
+				'content' => $this->_views_stop(),
128
+				'options' => array(
129
+					'tipLocation'    => 'right',
130
+					'tipAdjustmentY' => -50,
131
+					'tipAdjustmentX' => 15,
132
+				),
133
+			),
134
+			130 => array(
135
+				'class'   => 'bulkactions',
136
+				'content' => $this->_bulkactions_stop(),
137
+				'options' => array(
138
+					'tipLocation'    => 'bottom',
139
+					'tipAdjustmentY' => -30,
140
+					'tipAdjustmentX' => 15,
141
+				),
142
+			),
143
+			140 => array(
144
+				'id'      => 'EVT_CAT',
145
+				'content' => $this->_stop_about_filters(),
146
+				'options' => array(
147
+					'tipLocation'    => 'top',
148
+					'tipAdjustmentY' => -40,
149
+					'tipAdjustmentX' => 25,
150
+				),
151
+			),
152
+			150 => array(
153
+				'id'      => 'event-espresso_page_espresso_registrations-search-input',
154
+				'content' => $this->_search_stop(),
155
+				'options' => array(
156
+					'tipLocation'    => 'left',
157
+					'tipAdjustmentY' => -50,
158
+					'tipAdjustmentX' => -15,
159
+				),
160
+			),
161
+		);
162
+	}
163 163
 
164 164
 
165
-    protected function _start()
166
-    {
167
-        $content = '<h3>' . __('Registration Overview', 'event_espresso') . '</h3>';
168
-        if (isset($this->_req_data['event_id'])) {
169
-            $content .= '<p>'
170
-                        . __(
171
-                            'An introduction to the Registration Overview page for a single event. This view is pretty much the same as the default overview registration page except you are only seeing registrations for a specific event.  There are also some changes to the available columns in this view.',
172
-                            'event_espresso'
173
-                        ) . '</p>';
174
-        } else {
175
-            $content .= '<p>'
176
-                        . __(
177
-                            'This tour of the Registration Overview page will go over different areas of the screen to help you understand what they are used for.',
178
-                            'event_espresso'
179
-                        ) . '</p>';
180
-        }
181
-        return $content;
182
-    }
165
+	protected function _start()
166
+	{
167
+		$content = '<h3>' . __('Registration Overview', 'event_espresso') . '</h3>';
168
+		if (isset($this->_req_data['event_id'])) {
169
+			$content .= '<p>'
170
+						. __(
171
+							'An introduction to the Registration Overview page for a single event. This view is pretty much the same as the default overview registration page except you are only seeing registrations for a specific event.  There are also some changes to the available columns in this view.',
172
+							'event_espresso'
173
+						) . '</p>';
174
+		} else {
175
+			$content .= '<p>'
176
+						. __(
177
+							'This tour of the Registration Overview page will go over different areas of the screen to help you understand what they are used for.',
178
+							'event_espresso'
179
+						) . '</p>';
180
+		}
181
+		return $content;
182
+	}
183 183
 
184
-    protected function _reg_id_stop()
185
-    {
186
-        return '<p>'
187
-               . __(
188
-                   'View the registration ID. Can be sorted in ascending or descending order.',
189
-                   'event_espresso'
190
-               ) . '</p>';
191
-    }
184
+	protected function _reg_id_stop()
185
+	{
186
+		return '<p>'
187
+			   . __(
188
+				   'View the registration ID. Can be sorted in ascending or descending order.',
189
+				   'event_espresso'
190
+			   ) . '</p>';
191
+	}
192 192
 
193
-    protected function _reg_count_stop()
194
-    {
195
-        return '<p>' . __('View registration number.', 'event_espresso') . '</p>';
196
-    }
193
+	protected function _reg_count_stop()
194
+	{
195
+		return '<p>' . __('View registration number.', 'event_espresso') . '</p>';
196
+	}
197 197
 
198
-    protected function _attendee_name_stop()
199
-    {
200
-        return '<p>'
201
-               . __(
202
-                   'View the name of the registrant. Can be sorted in ascending or descending order.',
203
-                   'event_espresso'
204
-               ) . '</p>';
205
-    }
198
+	protected function _attendee_name_stop()
199
+	{
200
+		return '<p>'
201
+			   . __(
202
+				   'View the name of the registrant. Can be sorted in ascending or descending order.',
203
+				   'event_espresso'
204
+			   ) . '</p>';
205
+	}
206 206
 
207
-    protected function _reg_date_stop()
208
-    {
209
-        return '<p>'
210
-               . __(
211
-                   'View registration date. Can be sorted in ascending or descending order.',
212
-                   'event_espresso'
213
-               ) . '</p>';
214
-    }
207
+	protected function _reg_date_stop()
208
+	{
209
+		return '<p>'
210
+			   . __(
211
+				   'View registration date. Can be sorted in ascending or descending order.',
212
+				   'event_espresso'
213
+			   ) . '</p>';
214
+	}
215 215
 
216
-    protected function _event_name_stop()
217
-    {
218
-        return '<p>'
219
-               . __(
220
-                   'View the name of the event. Can be sorted in ascending or descending order.',
221
-                   'event_espresso'
222
-               ) . '</p>';
223
-    }
216
+	protected function _event_name_stop()
217
+	{
218
+		return '<p>'
219
+			   . __(
220
+				   'View the name of the event. Can be sorted in ascending or descending order.',
221
+				   'event_espresso'
222
+			   ) . '</p>';
223
+	}
224 224
 
225
-    protected function _dtt_evt_start_stop()
226
-    {
227
-        return '<p>'
228
-               . __(
229
-                   'View the date of the event. Can be sorted in ascending or descending order.',
230
-                   'event_espresso'
231
-               ) . '</p>';
232
-    }
225
+	protected function _dtt_evt_start_stop()
226
+	{
227
+		return '<p>'
228
+			   . __(
229
+				   'View the date of the event. Can be sorted in ascending or descending order.',
230
+				   'event_espresso'
231
+			   ) . '</p>';
232
+	}
233 233
 
234
-    protected function _reg_code_stop()
235
-    {
236
-        return '<p>' . __('View registration code for a registrant.', 'event_espresso') . '</p>';
237
-    }
234
+	protected function _reg_code_stop()
235
+	{
236
+		return '<p>' . __('View registration code for a registrant.', 'event_espresso') . '</p>';
237
+	}
238 238
 
239
-    protected function _txn_total_stop()
240
-    {
241
-        return '<p>' . __('View price of registration.', 'event_espresso') . '</p>';
242
-    }
239
+	protected function _txn_total_stop()
240
+	{
241
+		return '<p>' . __('View price of registration.', 'event_espresso') . '</p>';
242
+	}
243 243
 
244
-    protected function _actions_stop()
245
-    {
246
-        return '<p>'
247
-               . __(
248
-                   'Perform an action to a registration. See legend in bottom left corner.',
249
-                   'event_espresso'
250
-               ) . '</p>';
251
-    }
244
+	protected function _actions_stop()
245
+	{
246
+		return '<p>'
247
+			   . __(
248
+				   'Perform an action to a registration. See legend in bottom left corner.',
249
+				   'event_espresso'
250
+			   ) . '</p>';
251
+	}
252 252
 
253
-    protected function _legend_stop()
254
-    {
255
-        return '<p>'
256
-               . __(
257
-                   'This is the legend that describes the actions available in the actions column. Also shows available statuses for a registration.',
258
-                   'event_espresso'
259
-               ) . '</p>';
260
-    }
253
+	protected function _legend_stop()
254
+	{
255
+		return '<p>'
256
+			   . __(
257
+				   'This is the legend that describes the actions available in the actions column. Also shows available statuses for a registration.',
258
+				   'event_espresso'
259
+			   ) . '</p>';
260
+	}
261 261
 
262
-    protected function _views_stop()
263
-    {
264
-        return '<p>'
265
-               . __(
266
-                   'You can select different views by time period or look at registrations which have been moved to the trash.',
267
-                   'event_espresso'
268
-               ) . '</p>';
269
-    }
262
+	protected function _views_stop()
263
+	{
264
+		return '<p>'
265
+			   . __(
266
+				   'You can select different views by time period or look at registrations which have been moved to the trash.',
267
+				   'event_espresso'
268
+			   ) . '</p>';
269
+	}
270 270
 
271
-    protected function _bulkactions_stop()
272
-    {
273
-        return '<p>' . __('Perform a bulk action to multiple registrations.', 'event_espresso') . '</p>';
274
-    }
271
+	protected function _bulkactions_stop()
272
+	{
273
+		return '<p>' . __('Perform a bulk action to multiple registrations.', 'event_espresso') . '</p>';
274
+	}
275 275
 
276
-    protected function _stop_about_filters()
277
-    {
278
-        return '<p>' . __('Registrations can be filtered by date, categories, or status.', 'event_espresso') . '</p>';
279
-    }
276
+	protected function _stop_about_filters()
277
+	{
278
+		return '<p>' . __('Registrations can be filtered by date, categories, or status.', 'event_espresso') . '</p>';
279
+	}
280 280
 
281
-    protected function _search_stop()
282
-    {
283
-        return '<p>'
284
-               . __(
285
-                   'Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.',
286
-                   'event_espresso'
287
-               ) . '</p>';
288
-    }
281
+	protected function _search_stop()
282
+	{
283
+		return '<p>'
284
+			   . __(
285
+				   'Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.',
286
+				   'event_espresso'
287
+			   ) . '</p>';
288
+	}
289 289
 }
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -164,19 +164,19 @@  discard block
 block discarded – undo
164 164
 
165 165
     protected function _start()
166 166
     {
167
-        $content = '<h3>' . __('Registration Overview', 'event_espresso') . '</h3>';
167
+        $content = '<h3>'.__('Registration Overview', 'event_espresso').'</h3>';
168 168
         if (isset($this->_req_data['event_id'])) {
169 169
             $content .= '<p>'
170 170
                         . __(
171 171
                             'An introduction to the Registration Overview page for a single event. This view is pretty much the same as the default overview registration page except you are only seeing registrations for a specific event.  There are also some changes to the available columns in this view.',
172 172
                             'event_espresso'
173
-                        ) . '</p>';
173
+                        ).'</p>';
174 174
         } else {
175 175
             $content .= '<p>'
176 176
                         . __(
177 177
                             'This tour of the Registration Overview page will go over different areas of the screen to help you understand what they are used for.',
178 178
                             'event_espresso'
179
-                        ) . '</p>';
179
+                        ).'</p>';
180 180
         }
181 181
         return $content;
182 182
     }
@@ -187,12 +187,12 @@  discard block
 block discarded – undo
187 187
                . __(
188 188
                    'View the registration ID. Can be sorted in ascending or descending order.',
189 189
                    'event_espresso'
190
-               ) . '</p>';
190
+               ).'</p>';
191 191
     }
192 192
 
193 193
     protected function _reg_count_stop()
194 194
     {
195
-        return '<p>' . __('View registration number.', 'event_espresso') . '</p>';
195
+        return '<p>'.__('View registration number.', 'event_espresso').'</p>';
196 196
     }
197 197
 
198 198
     protected function _attendee_name_stop()
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
                . __(
202 202
                    'View the name of the registrant. Can be sorted in ascending or descending order.',
203 203
                    'event_espresso'
204
-               ) . '</p>';
204
+               ).'</p>';
205 205
     }
206 206
 
207 207
     protected function _reg_date_stop()
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                . __(
211 211
                    'View registration date. Can be sorted in ascending or descending order.',
212 212
                    'event_espresso'
213
-               ) . '</p>';
213
+               ).'</p>';
214 214
     }
215 215
 
216 216
     protected function _event_name_stop()
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                . __(
220 220
                    'View the name of the event. Can be sorted in ascending or descending order.',
221 221
                    'event_espresso'
222
-               ) . '</p>';
222
+               ).'</p>';
223 223
     }
224 224
 
225 225
     protected function _dtt_evt_start_stop()
@@ -228,17 +228,17 @@  discard block
 block discarded – undo
228 228
                . __(
229 229
                    'View the date of the event. Can be sorted in ascending or descending order.',
230 230
                    'event_espresso'
231
-               ) . '</p>';
231
+               ).'</p>';
232 232
     }
233 233
 
234 234
     protected function _reg_code_stop()
235 235
     {
236
-        return '<p>' . __('View registration code for a registrant.', 'event_espresso') . '</p>';
236
+        return '<p>'.__('View registration code for a registrant.', 'event_espresso').'</p>';
237 237
     }
238 238
 
239 239
     protected function _txn_total_stop()
240 240
     {
241
-        return '<p>' . __('View price of registration.', 'event_espresso') . '</p>';
241
+        return '<p>'.__('View price of registration.', 'event_espresso').'</p>';
242 242
     }
243 243
 
244 244
     protected function _actions_stop()
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
                . __(
248 248
                    'Perform an action to a registration. See legend in bottom left corner.',
249 249
                    'event_espresso'
250
-               ) . '</p>';
250
+               ).'</p>';
251 251
     }
252 252
 
253 253
     protected function _legend_stop()
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
                . __(
257 257
                    'This is the legend that describes the actions available in the actions column. Also shows available statuses for a registration.',
258 258
                    'event_espresso'
259
-               ) . '</p>';
259
+               ).'</p>';
260 260
     }
261 261
 
262 262
     protected function _views_stop()
@@ -265,17 +265,17 @@  discard block
 block discarded – undo
265 265
                . __(
266 266
                    'You can select different views by time period or look at registrations which have been moved to the trash.',
267 267
                    'event_espresso'
268
-               ) . '</p>';
268
+               ).'</p>';
269 269
     }
270 270
 
271 271
     protected function _bulkactions_stop()
272 272
     {
273
-        return '<p>' . __('Perform a bulk action to multiple registrations.', 'event_espresso') . '</p>';
273
+        return '<p>'.__('Perform a bulk action to multiple registrations.', 'event_espresso').'</p>';
274 274
     }
275 275
 
276 276
     protected function _stop_about_filters()
277 277
     {
278
-        return '<p>' . __('Registrations can be filtered by date, categories, or status.', 'event_espresso') . '</p>';
278
+        return '<p>'.__('Registrations can be filtered by date, categories, or status.', 'event_espresso').'</p>';
279 279
     }
280 280
 
281 281
     protected function _search_stop()
@@ -284,6 +284,6 @@  discard block
 block discarded – undo
284 284
                . __(
285 285
                    'Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.',
286 286
                    'event_espresso'
287
-               ) . '</p>';
287
+               ).'</p>';
288 288
     }
289 289
 }
Please login to merge, or discard this patch.
registrations/help_tours/Registration_Details_Help_Tour.class.php 2 patches
Indentation   +113 added lines, -113 removed lines patch added patch discarded remove patch
@@ -15,127 +15,127 @@
 block discarded – undo
15 15
 class Registration_Details_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Registration Details Tour', 'event_espresso');
21
-        $this->_slug = 'registration-view-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Registration Details Tour', 'event_espresso');
21
+		$this->_slug = 'registration-view-joyride';
22
+	}
23 23
 
24 24
 
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10 => array(
29
-                'content' => $this->_start(),
30
-            ),
31
-            20 => array(
32
-                'id'      => 'reg-admin-reg-details-reg-date-hdr',
33
-                'content' => $this->_reg_date_title(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'top',
36
-                    'tipAdjustmentY' => -40,
37
-                    'tipAdjustmentX' => 200,
38
-                ),
39
-            ),
40
-            30 => array(
41
-                'id'      => 'reg-admin-reg-details-reg-status-hdr',
42
-                'content' => $this->_reg_details_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'top',
45
-                    'tipAdjustmentY' => -40,
46
-                    'tipAdjustmentX' => 200,
47
-                ),
48
-            ),
49
-            40 => array(
50
-                'id'      => 'display-additional-registration-session-info',
51
-                'content' => $this->_reg_details_table(),
52
-                'options' => array(
53
-                    'tipLocation'    => 'top',
54
-                    'tipAdjustmentY' => -225,
55
-                    'tipAdjustmentX' => 50,
56
-                ),
57
-            ),
58
-            50 => array(
59
-                'id'      => 'display-additional-registration-session-info',
60
-                'content' => $this->_display_additional_info_stop(),
61
-                'options' => array(
62
-                    'tipLocation'    => 'top',
63
-                    'tipAdjustmentY' => -35,
64
-                    'tipAdjustmentX' => 45,
65
-                ),
66
-            ),
67
-            60 => array(
68
-                'id'      => 'edit-reg-questions-mbox',
69
-                'content' => $this->_edit_reg_question_stop(),
70
-                'options' => array(
71
-                    'tipLocation'    => 'top',
72
-                    'tipAdjustmentY' => -30,
73
-                    'tipAdjustmentX' => 75,
74
-                ),
75
-            ),
76
-            70 => array(
77
-                'id'      => 'edit-reg-registrant-mbox',
78
-                'content' => $this->_attendee_details_stop(),
79
-                'options' => array(
80
-                    'tipLocation'    => 'left',
81
-                    'tipAdjustmentY' => 0,
82
-                    'tipAdjustmentX' => 0,
83
-                ),
84
-            ),
85
-        );
86
-    }
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			20 => array(
32
+				'id'      => 'reg-admin-reg-details-reg-date-hdr',
33
+				'content' => $this->_reg_date_title(),
34
+				'options' => array(
35
+					'tipLocation'    => 'top',
36
+					'tipAdjustmentY' => -40,
37
+					'tipAdjustmentX' => 200,
38
+				),
39
+			),
40
+			30 => array(
41
+				'id'      => 'reg-admin-reg-details-reg-status-hdr',
42
+				'content' => $this->_reg_details_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'top',
45
+					'tipAdjustmentY' => -40,
46
+					'tipAdjustmentX' => 200,
47
+				),
48
+			),
49
+			40 => array(
50
+				'id'      => 'display-additional-registration-session-info',
51
+				'content' => $this->_reg_details_table(),
52
+				'options' => array(
53
+					'tipLocation'    => 'top',
54
+					'tipAdjustmentY' => -225,
55
+					'tipAdjustmentX' => 50,
56
+				),
57
+			),
58
+			50 => array(
59
+				'id'      => 'display-additional-registration-session-info',
60
+				'content' => $this->_display_additional_info_stop(),
61
+				'options' => array(
62
+					'tipLocation'    => 'top',
63
+					'tipAdjustmentY' => -35,
64
+					'tipAdjustmentX' => 45,
65
+				),
66
+			),
67
+			60 => array(
68
+				'id'      => 'edit-reg-questions-mbox',
69
+				'content' => $this->_edit_reg_question_stop(),
70
+				'options' => array(
71
+					'tipLocation'    => 'top',
72
+					'tipAdjustmentY' => -30,
73
+					'tipAdjustmentX' => 75,
74
+				),
75
+			),
76
+			70 => array(
77
+				'id'      => 'edit-reg-registrant-mbox',
78
+				'content' => $this->_attendee_details_stop(),
79
+				'options' => array(
80
+					'tipLocation'    => 'left',
81
+					'tipAdjustmentY' => 0,
82
+					'tipAdjustmentX' => 0,
83
+				),
84
+			),
85
+		);
86
+	}
87 87
 
88 88
 
89
-    protected function _start()
90
-    {
91
-        $content = '<h3>' . __('Registration Details', 'event_espresso') . '</h3>';
92
-        $content .= '<p>'
93
-                    . __(
94
-                        'This tour of the Registration Details page will go over different areas of the screen to help you understand what they are used for.',
95
-                        'event_espresso'
96
-                    ) . '</p>';
97
-        return $content;
98
-    }
89
+	protected function _start()
90
+	{
91
+		$content = '<h3>' . __('Registration Details', 'event_espresso') . '</h3>';
92
+		$content .= '<p>'
93
+					. __(
94
+						'This tour of the Registration Details page will go over different areas of the screen to help you understand what they are used for.',
95
+						'event_espresso'
96
+					) . '</p>';
97
+		return $content;
98
+	}
99 99
 
100
-    protected function _reg_date_title()
101
-    {
102
-        return '<p>' . __('This is the date that the registration occurred on.', 'event_espresso') . '</p>';
103
-    }
100
+	protected function _reg_date_title()
101
+	{
102
+		return '<p>' . __('This is the date that the registration occurred on.', 'event_espresso') . '</p>';
103
+	}
104 104
 
105
-    protected function _reg_details_stop()
106
-    {
107
-        return '<p>'
108
-               . __(
109
-                   'The buttons below allow you to perform an action with a registration. The options are Approved, Not Approved, Declined, and Cancelled.',
110
-                   'event_espresso'
111
-               ) . '</p>';
112
-    }
105
+	protected function _reg_details_stop()
106
+	{
107
+		return '<p>'
108
+			   . __(
109
+				   'The buttons below allow you to perform an action with a registration. The options are Approved, Not Approved, Declined, and Cancelled.',
110
+				   'event_espresso'
111
+			   ) . '</p>';
112
+	}
113 113
 
114
-    protected function _reg_details_table()
115
-    {
116
-        return '<p>'
117
-               . __(
118
-                   'The registration items area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total.',
119
-                   'event_espresso'
120
-               ) . '</p>';
121
-    }
114
+	protected function _reg_details_table()
115
+	{
116
+		return '<p>'
117
+			   . __(
118
+				   'The registration items area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total.',
119
+				   'event_espresso'
120
+			   ) . '</p>';
121
+	}
122 122
 
123
-    protected function _display_additional_info_stop()
124
-    {
125
-        return '<p>'
126
-               . __(
127
-                   'You can view additional information about the registration by clicking on the link below. Examples of available information includes Registration ID, IP Address, and User Agent.',
128
-                   'event_espresso'
129
-               ) . '</p>';
130
-    }
123
+	protected function _display_additional_info_stop()
124
+	{
125
+		return '<p>'
126
+			   . __(
127
+				   'You can view additional information about the registration by clicking on the link below. Examples of available information includes Registration ID, IP Address, and User Agent.',
128
+				   'event_espresso'
129
+			   ) . '</p>';
130
+	}
131 131
 
132
-    protected function _edit_reg_question_stop()
133
-    {
134
-        return '<p>' . __('View the answers to your custom questions below.', 'event_espresso') . '</p>';
135
-    }
132
+	protected function _edit_reg_question_stop()
133
+	{
134
+		return '<p>' . __('View the answers to your custom questions below.', 'event_espresso') . '</p>';
135
+	}
136 136
 
137
-    protected function _attendee_details_stop()
138
-    {
139
-        return '<p>' . __('View details on the registrant attached to this registration.', 'event_espresso') . '</p>';
140
-    }
137
+	protected function _attendee_details_stop()
138
+	{
139
+		return '<p>' . __('View details on the registrant attached to this registration.', 'event_espresso') . '</p>';
140
+	}
141 141
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -88,18 +88,18 @@  discard block
 block discarded – undo
88 88
 
89 89
     protected function _start()
90 90
     {
91
-        $content = '<h3>' . __('Registration Details', 'event_espresso') . '</h3>';
91
+        $content = '<h3>'.__('Registration Details', 'event_espresso').'</h3>';
92 92
         $content .= '<p>'
93 93
                     . __(
94 94
                         'This tour of the Registration Details page will go over different areas of the screen to help you understand what they are used for.',
95 95
                         'event_espresso'
96
-                    ) . '</p>';
96
+                    ).'</p>';
97 97
         return $content;
98 98
     }
99 99
 
100 100
     protected function _reg_date_title()
101 101
     {
102
-        return '<p>' . __('This is the date that the registration occurred on.', 'event_espresso') . '</p>';
102
+        return '<p>'.__('This is the date that the registration occurred on.', 'event_espresso').'</p>';
103 103
     }
104 104
 
105 105
     protected function _reg_details_stop()
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                . __(
109 109
                    'The buttons below allow you to perform an action with a registration. The options are Approved, Not Approved, Declined, and Cancelled.',
110 110
                    'event_espresso'
111
-               ) . '</p>';
111
+               ).'</p>';
112 112
     }
113 113
 
114 114
     protected function _reg_details_table()
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                . __(
118 118
                    'The registration items area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total.',
119 119
                    'event_espresso'
120
-               ) . '</p>';
120
+               ).'</p>';
121 121
     }
122 122
 
123 123
     protected function _display_additional_info_stop()
@@ -126,16 +126,16 @@  discard block
 block discarded – undo
126 126
                . __(
127 127
                    'You can view additional information about the registration by clicking on the link below. Examples of available information includes Registration ID, IP Address, and User Agent.',
128 128
                    'event_espresso'
129
-               ) . '</p>';
129
+               ).'</p>';
130 130
     }
131 131
 
132 132
     protected function _edit_reg_question_stop()
133 133
     {
134
-        return '<p>' . __('View the answers to your custom questions below.', 'event_espresso') . '</p>';
134
+        return '<p>'.__('View the answers to your custom questions below.', 'event_espresso').'</p>';
135 135
     }
136 136
 
137 137
     protected function _attendee_details_stop()
138 138
     {
139
-        return '<p>' . __('View details on the registrant attached to this registration.', 'event_espresso') . '</p>';
139
+        return '<p>'.__('View details on the registrant attached to this registration.', 'event_espresso').'</p>';
140 140
     }
141 141
 }
Please login to merge, or discard this patch.
registrations/help_tours/Registration_Reports_Help_Tour.class.php 2 patches
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -15,56 +15,56 @@
 block discarded – undo
15 15
 class Registration_Reports_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Registration Reports Tour', 'event_espresso');
21
-        $this->_slug = 'registration-reports-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Registration Reports Tour', 'event_espresso');
21
+		$this->_slug = 'registration-reports-joyride';
22
+	}
23 23
 
24 24
 
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10 => array(
29
-                'content' => $this->_start(),
30
-            ),
31
-            20 => array(
32
-                'id'      => 'reg-admin-registrations-per-day-report-dv',
33
-                'content' => $this->_reg_per_day_report_stop(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'top',
36
-                    'tipAdjustmentY' => -40,
37
-                ),
38
-            ),
39
-            30 => array(
40
-                'id'      => 'reg-admin-registrations-per-event-report-dv',
41
-                'content' => $this->_reg_per_event_report_stop(),
42
-                'options' => array(
43
-                    'tipLocation'    => 'top',
44
-                    'tipAdjustmentY' => -40,
45
-                ),
46
-            ),
47
-        );
48
-    }
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			20 => array(
32
+				'id'      => 'reg-admin-registrations-per-day-report-dv',
33
+				'content' => $this->_reg_per_day_report_stop(),
34
+				'options' => array(
35
+					'tipLocation'    => 'top',
36
+					'tipAdjustmentY' => -40,
37
+				),
38
+			),
39
+			30 => array(
40
+				'id'      => 'reg-admin-registrations-per-event-report-dv',
41
+				'content' => $this->_reg_per_event_report_stop(),
42
+				'options' => array(
43
+					'tipLocation'    => 'top',
44
+					'tipAdjustmentY' => -40,
45
+				),
46
+			),
47
+		);
48
+	}
49 49
 
50
-    protected function _start()
51
-    {
52
-        $content = '<h3>' . __('Registration Reports', 'event_espresso') . '</h3>';
53
-        $content .= '<p>'
54
-                    . __(
55
-                        'This tour of the Registration Reports page will go over different areas of the screen to help you understand what they are used for.',
56
-                        'event_espresso'
57
-                    ) . '</p>';
58
-        return $content;
59
-    }
50
+	protected function _start()
51
+	{
52
+		$content = '<h3>' . __('Registration Reports', 'event_espresso') . '</h3>';
53
+		$content .= '<p>'
54
+					. __(
55
+						'This tour of the Registration Reports page will go over different areas of the screen to help you understand what they are used for.',
56
+						'event_espresso'
57
+					) . '</p>';
58
+		return $content;
59
+	}
60 60
 
61
-    protected function _reg_per_day_report_stop()
62
-    {
63
-        return '<p>' . __('This graph shows registrations for each day.', 'event_espresso') . '</p>';
64
-    }
61
+	protected function _reg_per_day_report_stop()
62
+	{
63
+		return '<p>' . __('This graph shows registrations for each day.', 'event_espresso') . '</p>';
64
+	}
65 65
 
66
-    protected function _reg_per_event_report_stop()
67
-    {
68
-        return '<p>' . __('This graph shows registrations for each event.', 'event_espresso') . '</p>';
69
-    }
66
+	protected function _reg_per_event_report_stop()
67
+	{
68
+		return '<p>' . __('This graph shows registrations for each event.', 'event_espresso') . '</p>';
69
+	}
70 70
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,22 +49,22 @@
 block discarded – undo
49 49
 
50 50
     protected function _start()
51 51
     {
52
-        $content = '<h3>' . __('Registration Reports', 'event_espresso') . '</h3>';
52
+        $content = '<h3>'.__('Registration Reports', 'event_espresso').'</h3>';
53 53
         $content .= '<p>'
54 54
                     . __(
55 55
                         'This tour of the Registration Reports page will go over different areas of the screen to help you understand what they are used for.',
56 56
                         'event_espresso'
57
-                    ) . '</p>';
57
+                    ).'</p>';
58 58
         return $content;
59 59
     }
60 60
 
61 61
     protected function _reg_per_day_report_stop()
62 62
     {
63
-        return '<p>' . __('This graph shows registrations for each day.', 'event_espresso') . '</p>';
63
+        return '<p>'.__('This graph shows registrations for each day.', 'event_espresso').'</p>';
64 64
     }
65 65
 
66 66
     protected function _reg_per_event_report_stop()
67 67
     {
68
-        return '<p>' . __('This graph shows registrations for each event.', 'event_espresso') . '</p>';
68
+        return '<p>'.__('This graph shows registrations for each event.', 'event_espresso').'</p>';
69 69
     }
70 70
 }
Please login to merge, or discard this patch.
admin_pages/registrations/help_tours/Registration_View_Help_Tour.class.php 2 patches
Indentation   +119 added lines, -119 removed lines patch added patch discarded remove patch
@@ -15,123 +15,123 @@
 block discarded – undo
15 15
 class Registration_View_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    public function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Registration View Tour', 'event_espresso');
21
-        $this->_slug = 'registration-view-joyride';
22
-    }
23
-
24
-
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10 => array(
29
-                'content' => $this->_start(),
30
-            ),
31
-            20 => array(
32
-                'id'      => 'reg-admin-reg-details-reg-date-hdr',
33
-                'content' => $this->_reg_date_title(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'top',
36
-                    'tipAdjustmentY' => -40,
37
-                    'tipAdjustmentX' => 200,
38
-                ),
39
-            ),
40
-            30 => array(
41
-                'id'      => 'reg-admin-reg-details-reg-status-hdr',
42
-                'content' => $this->_reg_details_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'top',
45
-                    'tipAdjustmentY' => -50,
46
-                    'tipAdjustmentX' => 300,
47
-                ),
48
-            ),
49
-            40 => array(
50
-                'id'      => 'admin-primary-mbox-reg-session-info-tbl',
51
-                'content' => $this->_reg_details_table(),
52
-                'options' => array(
53
-                    'tipLocation'    => 'top',
54
-                    'tipAdjustmentY' => 50,
55
-                    'tipAdjustmentX' => 300,
56
-                ),
57
-            ),
58
-            50 => array(
59
-                'id'      => 'display-additional-registration-session-info',
60
-                'content' => $this->_display_additional_info_stop(),
61
-                'options' => array(
62
-                    'tipLocation'    => 'top',
63
-                    'tipAdjustmentY' => -30,
64
-                    'tipAdjustmentX' => 0,
65
-                ),
66
-            ),
67
-            60 => array(
68
-                'id'      => 'edit-reg-registrant-mbox',
69
-                'content' => $this->_attendee_details_stop(),
70
-                'options' => array(
71
-                    'tipLocation'    => 'left',
72
-                    'tipAdjustmentY' => 0,
73
-                ),
74
-            ),
75
-            70 => array(
76
-                'id'      => 'edit-reg-questions-mbox',
77
-                'content' => $this->_edit_reg_question_stop(),
78
-                'options' => array(
79
-                    'tipLocation'    => 'top',
80
-                    'tipAdjustmentY' => 0,
81
-                ),
82
-            ),
83
-        );
84
-    }
85
-
86
-
87
-    protected function _start()
88
-    {
89
-        $content = '<h3>' . __('Welcome to the Registration Details page!', 'event_espresso') . '</h3>';
90
-        $content .= '<p>' . __('An introduction to the registration details page', 'event_espresso') . '</p>';
91
-        return $content;
92
-    }
93
-
94
-
95
-    protected function _reg_date_title()
96
-    {
97
-        return '<p>' . __('About the reg date', 'event_espresso') . '</p>';
98
-    }
99
-
100
-
101
-    protected function _reg_details_stop()
102
-    {
103
-        return '<p>'
104
-               . __(
105
-                   'About the reg details area (pending, buttons they can push and what happens)',
106
-                   'event_espresso'
107
-               ) . '</p>';
108
-    }
109
-
110
-
111
-    protected function _reg_details_table()
112
-    {
113
-        return '<p>' . __('about the registration details metabox', 'event_espresso') . '</p>';
114
-    }
115
-
116
-
117
-    protected function _display_additional_info_stop()
118
-    {
119
-        return '<p>' . __('what happens when they click this link?  What\'s it here for', 'event_espresso') . '</p>';
120
-    }
121
-
122
-
123
-    protected function _attendee_details_stop()
124
-    {
125
-        return '<p>' . __('details on the registrant attached to this registration', 'event_espresso') . '</p>';
126
-    }
127
-
128
-
129
-    protected function _edit_reg_question_stop()
130
-    {
131
-        return '<p>'
132
-               . __(
133
-                   'info about how they can edit the questions related to this registration here',
134
-                   'event_espresso'
135
-               ) . '</p>';
136
-    }
18
+	public function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Registration View Tour', 'event_espresso');
21
+		$this->_slug = 'registration-view-joyride';
22
+	}
23
+
24
+
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			20 => array(
32
+				'id'      => 'reg-admin-reg-details-reg-date-hdr',
33
+				'content' => $this->_reg_date_title(),
34
+				'options' => array(
35
+					'tipLocation'    => 'top',
36
+					'tipAdjustmentY' => -40,
37
+					'tipAdjustmentX' => 200,
38
+				),
39
+			),
40
+			30 => array(
41
+				'id'      => 'reg-admin-reg-details-reg-status-hdr',
42
+				'content' => $this->_reg_details_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'top',
45
+					'tipAdjustmentY' => -50,
46
+					'tipAdjustmentX' => 300,
47
+				),
48
+			),
49
+			40 => array(
50
+				'id'      => 'admin-primary-mbox-reg-session-info-tbl',
51
+				'content' => $this->_reg_details_table(),
52
+				'options' => array(
53
+					'tipLocation'    => 'top',
54
+					'tipAdjustmentY' => 50,
55
+					'tipAdjustmentX' => 300,
56
+				),
57
+			),
58
+			50 => array(
59
+				'id'      => 'display-additional-registration-session-info',
60
+				'content' => $this->_display_additional_info_stop(),
61
+				'options' => array(
62
+					'tipLocation'    => 'top',
63
+					'tipAdjustmentY' => -30,
64
+					'tipAdjustmentX' => 0,
65
+				),
66
+			),
67
+			60 => array(
68
+				'id'      => 'edit-reg-registrant-mbox',
69
+				'content' => $this->_attendee_details_stop(),
70
+				'options' => array(
71
+					'tipLocation'    => 'left',
72
+					'tipAdjustmentY' => 0,
73
+				),
74
+			),
75
+			70 => array(
76
+				'id'      => 'edit-reg-questions-mbox',
77
+				'content' => $this->_edit_reg_question_stop(),
78
+				'options' => array(
79
+					'tipLocation'    => 'top',
80
+					'tipAdjustmentY' => 0,
81
+				),
82
+			),
83
+		);
84
+	}
85
+
86
+
87
+	protected function _start()
88
+	{
89
+		$content = '<h3>' . __('Welcome to the Registration Details page!', 'event_espresso') . '</h3>';
90
+		$content .= '<p>' . __('An introduction to the registration details page', 'event_espresso') . '</p>';
91
+		return $content;
92
+	}
93
+
94
+
95
+	protected function _reg_date_title()
96
+	{
97
+		return '<p>' . __('About the reg date', 'event_espresso') . '</p>';
98
+	}
99
+
100
+
101
+	protected function _reg_details_stop()
102
+	{
103
+		return '<p>'
104
+			   . __(
105
+				   'About the reg details area (pending, buttons they can push and what happens)',
106
+				   'event_espresso'
107
+			   ) . '</p>';
108
+	}
109
+
110
+
111
+	protected function _reg_details_table()
112
+	{
113
+		return '<p>' . __('about the registration details metabox', 'event_espresso') . '</p>';
114
+	}
115
+
116
+
117
+	protected function _display_additional_info_stop()
118
+	{
119
+		return '<p>' . __('what happens when they click this link?  What\'s it here for', 'event_espresso') . '</p>';
120
+	}
121
+
122
+
123
+	protected function _attendee_details_stop()
124
+	{
125
+		return '<p>' . __('details on the registrant attached to this registration', 'event_espresso') . '</p>';
126
+	}
127
+
128
+
129
+	protected function _edit_reg_question_stop()
130
+	{
131
+		return '<p>'
132
+			   . __(
133
+				   'info about how they can edit the questions related to this registration here',
134
+				   'event_espresso'
135
+			   ) . '</p>';
136
+	}
137 137
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -86,15 +86,15 @@  discard block
 block discarded – undo
86 86
 
87 87
     protected function _start()
88 88
     {
89
-        $content = '<h3>' . __('Welcome to the Registration Details page!', 'event_espresso') . '</h3>';
90
-        $content .= '<p>' . __('An introduction to the registration details page', 'event_espresso') . '</p>';
89
+        $content = '<h3>'.__('Welcome to the Registration Details page!', 'event_espresso').'</h3>';
90
+        $content .= '<p>'.__('An introduction to the registration details page', 'event_espresso').'</p>';
91 91
         return $content;
92 92
     }
93 93
 
94 94
 
95 95
     protected function _reg_date_title()
96 96
     {
97
-        return '<p>' . __('About the reg date', 'event_espresso') . '</p>';
97
+        return '<p>'.__('About the reg date', 'event_espresso').'</p>';
98 98
     }
99 99
 
100 100
 
@@ -104,25 +104,25 @@  discard block
 block discarded – undo
104 104
                . __(
105 105
                    'About the reg details area (pending, buttons they can push and what happens)',
106 106
                    'event_espresso'
107
-               ) . '</p>';
107
+               ).'</p>';
108 108
     }
109 109
 
110 110
 
111 111
     protected function _reg_details_table()
112 112
     {
113
-        return '<p>' . __('about the registration details metabox', 'event_espresso') . '</p>';
113
+        return '<p>'.__('about the registration details metabox', 'event_espresso').'</p>';
114 114
     }
115 115
 
116 116
 
117 117
     protected function _display_additional_info_stop()
118 118
     {
119
-        return '<p>' . __('what happens when they click this link?  What\'s it here for', 'event_espresso') . '</p>';
119
+        return '<p>'.__('what happens when they click this link?  What\'s it here for', 'event_espresso').'</p>';
120 120
     }
121 121
 
122 122
 
123 123
     protected function _attendee_details_stop()
124 124
     {
125
-        return '<p>' . __('details on the registrant attached to this registration', 'event_espresso') . '</p>';
125
+        return '<p>'.__('details on the registrant attached to this registration', 'event_espresso').'</p>';
126 126
     }
127 127
 
128 128
 
@@ -132,6 +132,6 @@  discard block
 block discarded – undo
132 132
                . __(
133 133
                    'info about how they can edit the questions related to this registration here',
134 134
                    'event_espresso'
135
-               ) . '</p>';
135
+               ).'</p>';
136 136
     }
137 137
 }
Please login to merge, or discard this patch.
payments/help_tours/Payment_Methods_Settings_Help_Tour.class.php 2 patches
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -15,48 +15,48 @@
 block discarded – undo
15 15
 class Payment_Methods_Settings_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Payment Settings Tour', 'event_espresso');
21
-        $this->_slug = 'payment-settings-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Payment Settings Tour', 'event_espresso');
21
+		$this->_slug = 'payment-settings-joyride';
22
+	}
23 23
 
24
-    protected function _set_tour_stops()
25
-    {
26
-        $this->_stops = array(
27
-            10 => array(
28
-                'content' => $this->_start(),
29
-            ),
30
-            20 => array(
31
-                'id'      => 'show_pending_payment_options',
32
-                'content' => $this->_show_pending_options_stop(),
33
-                'options' => array(
34
-                    'tipLocation'    => 'right',
35
-                    'tipAdjustmentY' => -50,
36
-                    'tipAdjustmentX' => 15,
37
-                ),
38
-            ),
39
-        );
40
-    }
24
+	protected function _set_tour_stops()
25
+	{
26
+		$this->_stops = array(
27
+			10 => array(
28
+				'content' => $this->_start(),
29
+			),
30
+			20 => array(
31
+				'id'      => 'show_pending_payment_options',
32
+				'content' => $this->_show_pending_options_stop(),
33
+				'options' => array(
34
+					'tipLocation'    => 'right',
35
+					'tipAdjustmentY' => -50,
36
+					'tipAdjustmentX' => 15,
37
+				),
38
+			),
39
+		);
40
+	}
41 41
 
42 42
 
43
-    protected function _start()
44
-    {
45
-        $content = '<h3>' . __('Payment Settings', 'event_espresso') . '</h3>';
46
-        $content .= '<p>'
47
-                    . __(
48
-                        'This tour of the Payment Settings page will go over different areas of the screen to help you understand what they are used for.',
49
-                        'event_espresso'
50
-                    ) . '</p>';
51
-        return $content;
52
-    }
43
+	protected function _start()
44
+	{
45
+		$content = '<h3>' . __('Payment Settings', 'event_espresso') . '</h3>';
46
+		$content .= '<p>'
47
+					. __(
48
+						'This tour of the Payment Settings page will go over different areas of the screen to help you understand what they are used for.',
49
+						'event_espresso'
50
+					) . '</p>';
51
+		return $content;
52
+	}
53 53
 
54
-    protected function _show_pending_options_stop()
55
-    {
56
-        return '<p>'
57
-               . __(
58
-                   'Specify whether to provide your registrants with the option to retry payments.',
59
-                   'event_espresso'
60
-               ) . '</p>';
61
-    }
54
+	protected function _show_pending_options_stop()
55
+	{
56
+		return '<p>'
57
+			   . __(
58
+				   'Specify whether to provide your registrants with the option to retry payments.',
59
+				   'event_espresso'
60
+			   ) . '</p>';
61
+	}
62 62
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@  discard block
 block discarded – undo
42 42
 
43 43
     protected function _start()
44 44
     {
45
-        $content = '<h3>' . __('Payment Settings', 'event_espresso') . '</h3>';
45
+        $content = '<h3>'.__('Payment Settings', 'event_espresso').'</h3>';
46 46
         $content .= '<p>'
47 47
                     . __(
48 48
                         'This tour of the Payment Settings page will go over different areas of the screen to help you understand what they are used for.',
49 49
                         'event_espresso'
50
-                    ) . '</p>';
50
+                    ).'</p>';
51 51
         return $content;
52 52
     }
53 53
 
@@ -57,6 +57,6 @@  discard block
 block discarded – undo
57 57
                . __(
58 58
                    'Specify whether to provide your registrants with the option to retry payments.',
59 59
                    'event_espresso'
60
-               ) . '</p>';
60
+               ).'</p>';
61 61
     }
62 62
 }
Please login to merge, or discard this patch.