Completed
Branch FET/rule-specific-exclusions-l... (334422)
by
unknown
17:10 queued 32s
created
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.
payments/help_tours/Payment_Methods_Selection_Help_Tour.class.php 2 patches
Indentation   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -15,84 +15,84 @@
 block discarded – undo
15 15
 class Payment_Methods_Selection_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Payment Methods Tour', 'event_espresso');
21
-        $this->_slug = 'payment-methods-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Payment Methods Tour', 'event_espresso');
21
+		$this->_slug = 'payment-methods-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
-                'class'   => 'gateway_links',
32
-                'content' => $this->_gateway_links_stop(),
33
-                'options' => array(
34
-                    'tipLocation'    => 'top',
35
-                    'tipAdjustmentY' => -40,
36
-                    'tipAdjustmentX' => 20,
37
-                ),
38
-            ),
39
-            30 => array(
40
-                'id'      => 'postbox-container-2',
41
-                'content' => $this->_gateway_settings_metabox_stop(),
42
-                'options' => array(
43
-                    'tipLocation'    => 'top',
44
-                    'tipAdjustmentY' => -25,
45
-                    'tipAdjustmentX' => 20,
46
-                ),
47
-            ),
48
-            40 => array(
49
-                'content' => $this->_end_tour_stop(),
50
-                'options' => array(
51
-                    'tipLocation' => 'top',
52
-                ),
53
-            ),
54
-        );
55
-    }
24
+	protected function _set_tour_stops()
25
+	{
26
+		$this->_stops = array(
27
+			10 => array(
28
+				'content' => $this->_start(),
29
+			),
30
+			20 => array(
31
+				'class'   => 'gateway_links',
32
+				'content' => $this->_gateway_links_stop(),
33
+				'options' => array(
34
+					'tipLocation'    => 'top',
35
+					'tipAdjustmentY' => -40,
36
+					'tipAdjustmentX' => 20,
37
+				),
38
+			),
39
+			30 => array(
40
+				'id'      => 'postbox-container-2',
41
+				'content' => $this->_gateway_settings_metabox_stop(),
42
+				'options' => array(
43
+					'tipLocation'    => 'top',
44
+					'tipAdjustmentY' => -25,
45
+					'tipAdjustmentX' => 20,
46
+				),
47
+			),
48
+			40 => array(
49
+				'content' => $this->_end_tour_stop(),
50
+				'options' => array(
51
+					'tipLocation' => 'top',
52
+				),
53
+			),
54
+		);
55
+	}
56 56
 
57 57
 
58
-    protected function _start()
59
-    {
60
-        $content = '<h3>' . __('Payment Methods', 'event_espresso') . '</h3>';
61
-        $content .= '<p>'
62
-                    . __(
63
-                        'This tour of the Payment Methods page will go over different areas of the screen to help you understand what they are used for.',
64
-                        'event_espresso'
65
-                    )
66
-                    . '</p>';
67
-        return $content;
68
-    }
58
+	protected function _start()
59
+	{
60
+		$content = '<h3>' . __('Payment Methods', 'event_espresso') . '</h3>';
61
+		$content .= '<p>'
62
+					. __(
63
+						'This tour of the Payment Methods page will go over different areas of the screen to help you understand what they are used for.',
64
+						'event_espresso'
65
+					)
66
+					. '</p>';
67
+		return $content;
68
+	}
69 69
 
70
-    protected function _gateway_links_stop()
71
-    {
72
-        return '<p>'
73
-               . __(
74
-                   'Available payment methods are shown here. Clicking on a payment method will provide you with an option to activate that payment gateway.',
75
-                   'event_espresso'
76
-               )
77
-               . '</p>';
78
-    }
70
+	protected function _gateway_links_stop()
71
+	{
72
+		return '<p>'
73
+			   . __(
74
+				   'Available payment methods are shown here. Clicking on a payment method will provide you with an option to activate that payment gateway.',
75
+				   'event_espresso'
76
+			   )
77
+			   . '</p>';
78
+	}
79 79
 
80
-    protected function _gateway_settings_metabox_stop()
81
-    {
82
-        return '<p>'
83
-               . __(
84
-                   'A payment gateway must first be enabled. You will then be able to configure the payment gateway. Be sure to save settings after configuring your payment gateway.',
85
-                   'event_espresso'
86
-               )
87
-               . '</p>';
88
-    }
80
+	protected function _gateway_settings_metabox_stop()
81
+	{
82
+		return '<p>'
83
+			   . __(
84
+				   'A payment gateway must first be enabled. You will then be able to configure the payment gateway. Be sure to save settings after configuring your payment gateway.',
85
+				   'event_espresso'
86
+			   )
87
+			   . '</p>';
88
+	}
89 89
 
90
-    protected function _end_tour_stop()
91
-    {
92
-        return '<p>'
93
-               . __(
94
-                   'After configuring your payment gateway, go to the Event Editor to create your first event with Event Espresso.',
95
-                   'event_espresso'
96
-               ) . '</p>';
97
-    }
90
+	protected function _end_tour_stop()
91
+	{
92
+		return '<p>'
93
+			   . __(
94
+				   'After configuring your payment gateway, go to the Event Editor to create your first event with Event Espresso.',
95
+				   'event_espresso'
96
+			   ) . '</p>';
97
+	}
98 98
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     protected function _start()
59 59
     {
60
-        $content = '<h3>' . __('Payment Methods', 'event_espresso') . '</h3>';
60
+        $content = '<h3>'.__('Payment Methods', 'event_espresso').'</h3>';
61 61
         $content .= '<p>'
62 62
                     . __(
63 63
                         'This tour of the Payment Methods page will go over different areas of the screen to help you understand what they are used for.',
@@ -93,6 +93,6 @@  discard block
 block discarded – undo
93 93
                . __(
94 94
                    'After configuring your payment gateway, go to the Event Editor to create your first event with Event Espresso.',
95 95
                    'event_espresso'
96
-               ) . '</p>';
96
+               ).'</p>';
97 97
     }
98 98
 }
Please login to merge, or discard this patch.
admin_pages/payments/Payment_Log_Admin_List_Table.class.php 2 patches
Indentation   +217 added lines, -217 removed lines patch added patch discarded remove patch
@@ -13,111 +13,111 @@  discard block
 block discarded – undo
13 13
 class Payment_Log_Admin_List_Table extends EE_Admin_List_Table
14 14
 {
15 15
 
16
-    /**
17
-     * @param \EE_Admin_Page $admin_page
18
-     * @return Payment_Log_Admin_List_Table
19
-     */
20
-    public function __construct($admin_page)
21
-    {
22
-        parent::__construct($admin_page);
23
-    }
24
-
25
-
26
-    /**
27
-     * _setup_data
28
-     *
29
-     * @return void
30
-     */
31
-    protected function _setup_data()
32
-    {
33
-        $this->_data = $this->_admin_page->get_payment_logs($this->_per_page, $this->_current_page);
34
-        // if (isset($this->_req_data['status']) && $this->_req_data['status'] == 'trash') {
35
-        //     $this->_data = $this->_admin_page->get_trashed_questions($this->_per_page, $this->_current_page, false);
36
-        // } else {
37
-        //     $this->_data = $this->_admin_page->get_questions($this->_per_page, $this->_current_page, false);
38
-        // }
39
-        $this->_all_data_count = $this->_admin_page->get_payment_logs($this->_per_page, $this->_current_page, true);
40
-        add_action(
41
-            'AHEE__EE_Admin_List_Table__extra_tablenav__after_bottom_buttons',
42
-            array($this, 'add_download_logs_checkbox')
43
-        );
44
-    }
45
-
46
-
47
-    /**
48
-     * add_download_logs_checkbox
49
-     * adds a checkbox to the bottom of the list table, instead of at the top with the rest of the filters
50
-     *
51
-     * @return void
52
-     */
53
-    public function add_download_logs_checkbox()
54
-    {
55
-        echo "<input type='submit' class='button-primary' id='download_results' name='download_results' value='"
56
-             . __(
57
-                 'Download Results',
58
-                 'event_espresso'
59
-             ) . "'>";
60
-    }
61
-
62
-
63
-    /**
64
-     * _set_properties
65
-     *
66
-     * @return void
67
-     */
68
-    protected function _set_properties()
69
-    {
70
-        $this->_wp_list_args = array(
71
-            'singular' => __('payment log', 'event_espresso'),
72
-            'plural'   => __('payment logs', 'event_espresso'),
73
-            'ajax'     => true, // for now,
74
-            'screen'   => $this->_admin_page->get_current_screen()->id,
75
-        );
76
-        $this->_columns = array(
77
-            'cb'       => '<input type="checkbox" />',
78
-            'id'       => __('ID', 'event_espresso'),
79
-            'LOG_time' => __('Time', 'event_espresso'),
80
-            'PMD_ID'   => __('Payment Method', 'event_espresso'),
81
-            'TXN_ID'   => __('Transaction ID', 'event_espresso'),
82
-        );
83
-        $this->_sortable_columns = array(
84
-            'LOG_time' => array('LOG_time' => true),
85
-        );
86
-        $this->_hidden_columns = array();
87
-    }
88
-
89
-
90
-    /**
91
-     * _get_table_filters
92
-     *
93
-     * @return array
94
-     */
95
-    protected function _get_table_filters()
96
-    {
97
-        $filters = array();
98
-        // todo we're currently using old functions here. We need to move things into the Events_Admin_Page() class as methods.
99
-        $payment_methods = EEM_Payment_Method::instance()->get_all();
100
-        $payment_method_names = array(
101
-            array('id' => 'all', 'text' => __("All", 'event_espresso')),
102
-            array('id' => '0', 'text' => __("Unknown Payment Method", 'event_espresso')),
103
-        );
104
-        foreach ($payment_methods as $payment_method) {
105
-            $payment_method_names[] = array('id' => $payment_method->ID(), 'text' => $payment_method->admin_name());
106
-        }
107
-        $filters[] = EEH_Form_Fields::select_input(
108
-            '_payment_method',
109
-            $payment_method_names,
110
-            isset($this->_req_data['_payment_method'])
111
-                ? $this->_req_data['_payment_method'] : 'all'
112
-        );
113
-        $start_date = isset($this->_req_data['payment-filter-start-date']) ? wp_strip_all_tags(
114
-            $this->_req_data['payment-filter-start-date']
115
-        ) : date('m/d/Y', strtotime('-6 months'));
116
-        $end_date = isset($this->_req_data['payment-filter-end-date']) ? wp_strip_all_tags(
117
-            $this->_req_data['payment-filter-end-date']
118
-        ) : date('m/d/Y');
119
-        ob_start();
120
-        ?>
16
+	/**
17
+	 * @param \EE_Admin_Page $admin_page
18
+	 * @return Payment_Log_Admin_List_Table
19
+	 */
20
+	public function __construct($admin_page)
21
+	{
22
+		parent::__construct($admin_page);
23
+	}
24
+
25
+
26
+	/**
27
+	 * _setup_data
28
+	 *
29
+	 * @return void
30
+	 */
31
+	protected function _setup_data()
32
+	{
33
+		$this->_data = $this->_admin_page->get_payment_logs($this->_per_page, $this->_current_page);
34
+		// if (isset($this->_req_data['status']) && $this->_req_data['status'] == 'trash') {
35
+		//     $this->_data = $this->_admin_page->get_trashed_questions($this->_per_page, $this->_current_page, false);
36
+		// } else {
37
+		//     $this->_data = $this->_admin_page->get_questions($this->_per_page, $this->_current_page, false);
38
+		// }
39
+		$this->_all_data_count = $this->_admin_page->get_payment_logs($this->_per_page, $this->_current_page, true);
40
+		add_action(
41
+			'AHEE__EE_Admin_List_Table__extra_tablenav__after_bottom_buttons',
42
+			array($this, 'add_download_logs_checkbox')
43
+		);
44
+	}
45
+
46
+
47
+	/**
48
+	 * add_download_logs_checkbox
49
+	 * adds a checkbox to the bottom of the list table, instead of at the top with the rest of the filters
50
+	 *
51
+	 * @return void
52
+	 */
53
+	public function add_download_logs_checkbox()
54
+	{
55
+		echo "<input type='submit' class='button-primary' id='download_results' name='download_results' value='"
56
+			 . __(
57
+				 'Download Results',
58
+				 'event_espresso'
59
+			 ) . "'>";
60
+	}
61
+
62
+
63
+	/**
64
+	 * _set_properties
65
+	 *
66
+	 * @return void
67
+	 */
68
+	protected function _set_properties()
69
+	{
70
+		$this->_wp_list_args = array(
71
+			'singular' => __('payment log', 'event_espresso'),
72
+			'plural'   => __('payment logs', 'event_espresso'),
73
+			'ajax'     => true, // for now,
74
+			'screen'   => $this->_admin_page->get_current_screen()->id,
75
+		);
76
+		$this->_columns = array(
77
+			'cb'       => '<input type="checkbox" />',
78
+			'id'       => __('ID', 'event_espresso'),
79
+			'LOG_time' => __('Time', 'event_espresso'),
80
+			'PMD_ID'   => __('Payment Method', 'event_espresso'),
81
+			'TXN_ID'   => __('Transaction ID', 'event_espresso'),
82
+		);
83
+		$this->_sortable_columns = array(
84
+			'LOG_time' => array('LOG_time' => true),
85
+		);
86
+		$this->_hidden_columns = array();
87
+	}
88
+
89
+
90
+	/**
91
+	 * _get_table_filters
92
+	 *
93
+	 * @return array
94
+	 */
95
+	protected function _get_table_filters()
96
+	{
97
+		$filters = array();
98
+		// todo we're currently using old functions here. We need to move things into the Events_Admin_Page() class as methods.
99
+		$payment_methods = EEM_Payment_Method::instance()->get_all();
100
+		$payment_method_names = array(
101
+			array('id' => 'all', 'text' => __("All", 'event_espresso')),
102
+			array('id' => '0', 'text' => __("Unknown Payment Method", 'event_espresso')),
103
+		);
104
+		foreach ($payment_methods as $payment_method) {
105
+			$payment_method_names[] = array('id' => $payment_method->ID(), 'text' => $payment_method->admin_name());
106
+		}
107
+		$filters[] = EEH_Form_Fields::select_input(
108
+			'_payment_method',
109
+			$payment_method_names,
110
+			isset($this->_req_data['_payment_method'])
111
+				? $this->_req_data['_payment_method'] : 'all'
112
+		);
113
+		$start_date = isset($this->_req_data['payment-filter-start-date']) ? wp_strip_all_tags(
114
+			$this->_req_data['payment-filter-start-date']
115
+		) : date('m/d/Y', strtotime('-6 months'));
116
+		$end_date = isset($this->_req_data['payment-filter-end-date']) ? wp_strip_all_tags(
117
+			$this->_req_data['payment-filter-end-date']
118
+		) : date('m/d/Y');
119
+		ob_start();
120
+		?>
121 121
         <label for="txn-filter-start-date"><?php _e('Display Transactions from ', 'event_espresso'); ?></label>
122 122
         <input id="payment-filter-start-date" class="datepicker" type="text" value="<?php echo $start_date; ?>"
123 123
                name="payment-filter-start-date" size="15"/>
@@ -125,116 +125,116 @@  discard block
 block discarded – undo
125 125
         <input id="payment-filter-end-date" class="datepicker" type="text" value="<?php echo $end_date; ?>"
126 126
                name="payment-filter-end-date" size="15"/>
127 127
         <?php
128
-        $filters[] = ob_get_clean();
129
-        return $filters;
130
-    }
131
-
132
-
133
-    /**
134
-     * _add_view_counts
135
-     *
136
-     * @return void
137
-     */
138
-    protected function _add_view_counts()
139
-    {
140
-        $this->_views['all']['count'] = $this->_admin_page->get_payment_logs(
141
-            $this->_per_page,
142
-            $this->_current_page,
143
-            true
144
-        );
145
-    }
146
-
147
-
148
-    /**
149
-     * column_cb
150
-     *
151
-     * @param \EE_Change_Log $item
152
-     * @return string
153
-     */
154
-    public function column_cb($item)
155
-    {
156
-        return sprintf('<input type="checkbox" class="option_id" name="checkbox[%1$d]" value="%1$d" />', $item->ID());
157
-    }
158
-
159
-
160
-    /**
161
-     * column_id
162
-     *
163
-     * @param \EE_Change_Log $item
164
-     * @return string
165
-     */
166
-    public function column_id(EE_Change_Log $item)
167
-    {
168
-        $details_query_args = array(
169
-            'action' => 'payment_log_details',
170
-            'ID'     => $item->ID(),
171
-        );
172
-        $url = EE_Admin_Page::add_query_args_and_nonce($details_query_args, EE_PAYMENTS_ADMIN_URL);
173
-        return "<a href='$url'>{$item->ID()}</a>";
174
-    }
175
-
176
-
177
-    /**
178
-     * column_LOG_time
179
-     *
180
-     * @param \EE_Change_Log $item
181
-     * @return string
182
-     */
183
-    public function column_LOG_time(EE_Change_Log $item)
184
-    {
185
-        return $item->get_datetime('LOG_time');
186
-    }
187
-
188
-
189
-    /**
190
-     * column_PMD_ID
191
-     *
192
-     * @param \EE_Change_Log $item
193
-     * @return string
194
-     */
195
-    public function column_PMD_ID(EE_Change_Log $item)
196
-    {
197
-        if ($item->object() instanceof EE_Payment_Method) {
198
-            return $item->object()->admin_name();
199
-        } elseif ($item->object() instanceof EE_Payment && $item->object()->payment_method()) {
200
-            return $item->object()->payment_method()->admin_name();
201
-        } else {
202
-            return __("No longer exists", 'event_espresso');
203
-        }
204
-    }
205
-
206
-
207
-    /**
208
-     * column_TXN_ID
209
-     *
210
-     * @param \EE_Change_Log $item
211
-     * @return string
212
-     */
213
-    public function column_TXN_ID(EE_Change_Log $item)
214
-    {
215
-        if ($item->object() instanceof EE_Payment) {
216
-            if (EE_Registry::instance()->CAP->current_user_can(
217
-                'ee_read_transaction',
218
-                'espresso_transactions_view_transaction',
219
-                $item->object()->TXN_ID()
220
-            )) {
221
-                $view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
222
-                    array('action' => 'view_transaction', 'TXN_ID' => $item->object()->TXN_ID()),
223
-                    TXN_ADMIN_URL
224
-                );
225
-                return '<a href="'
226
-                       . $view_txn_lnk_url
227
-                       . '"  title="'
228
-                       . sprintf(
229
-                           esc_attr__('click to view transaction #%s', 'event_espresso'),
230
-                           $item->object()->TXN_ID()
231
-                       )
232
-                       . '">'
233
-                       . sprintf(__('view txn %s', 'event_espresso'), $item->object()->TXN_ID())
234
-                       . '</a>';
235
-            }
236
-        } else {
237
-            return __("Unable to find transaction", 'event_espresso');
238
-        }
239
-    }
128
+		$filters[] = ob_get_clean();
129
+		return $filters;
130
+	}
131
+
132
+
133
+	/**
134
+	 * _add_view_counts
135
+	 *
136
+	 * @return void
137
+	 */
138
+	protected function _add_view_counts()
139
+	{
140
+		$this->_views['all']['count'] = $this->_admin_page->get_payment_logs(
141
+			$this->_per_page,
142
+			$this->_current_page,
143
+			true
144
+		);
145
+	}
146
+
147
+
148
+	/**
149
+	 * column_cb
150
+	 *
151
+	 * @param \EE_Change_Log $item
152
+	 * @return string
153
+	 */
154
+	public function column_cb($item)
155
+	{
156
+		return sprintf('<input type="checkbox" class="option_id" name="checkbox[%1$d]" value="%1$d" />', $item->ID());
157
+	}
158
+
159
+
160
+	/**
161
+	 * column_id
162
+	 *
163
+	 * @param \EE_Change_Log $item
164
+	 * @return string
165
+	 */
166
+	public function column_id(EE_Change_Log $item)
167
+	{
168
+		$details_query_args = array(
169
+			'action' => 'payment_log_details',
170
+			'ID'     => $item->ID(),
171
+		);
172
+		$url = EE_Admin_Page::add_query_args_and_nonce($details_query_args, EE_PAYMENTS_ADMIN_URL);
173
+		return "<a href='$url'>{$item->ID()}</a>";
174
+	}
175
+
176
+
177
+	/**
178
+	 * column_LOG_time
179
+	 *
180
+	 * @param \EE_Change_Log $item
181
+	 * @return string
182
+	 */
183
+	public function column_LOG_time(EE_Change_Log $item)
184
+	{
185
+		return $item->get_datetime('LOG_time');
186
+	}
187
+
188
+
189
+	/**
190
+	 * column_PMD_ID
191
+	 *
192
+	 * @param \EE_Change_Log $item
193
+	 * @return string
194
+	 */
195
+	public function column_PMD_ID(EE_Change_Log $item)
196
+	{
197
+		if ($item->object() instanceof EE_Payment_Method) {
198
+			return $item->object()->admin_name();
199
+		} elseif ($item->object() instanceof EE_Payment && $item->object()->payment_method()) {
200
+			return $item->object()->payment_method()->admin_name();
201
+		} else {
202
+			return __("No longer exists", 'event_espresso');
203
+		}
204
+	}
205
+
206
+
207
+	/**
208
+	 * column_TXN_ID
209
+	 *
210
+	 * @param \EE_Change_Log $item
211
+	 * @return string
212
+	 */
213
+	public function column_TXN_ID(EE_Change_Log $item)
214
+	{
215
+		if ($item->object() instanceof EE_Payment) {
216
+			if (EE_Registry::instance()->CAP->current_user_can(
217
+				'ee_read_transaction',
218
+				'espresso_transactions_view_transaction',
219
+				$item->object()->TXN_ID()
220
+			)) {
221
+				$view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
222
+					array('action' => 'view_transaction', 'TXN_ID' => $item->object()->TXN_ID()),
223
+					TXN_ADMIN_URL
224
+				);
225
+				return '<a href="'
226
+					   . $view_txn_lnk_url
227
+					   . '"  title="'
228
+					   . sprintf(
229
+						   esc_attr__('click to view transaction #%s', 'event_espresso'),
230
+						   $item->object()->TXN_ID()
231
+					   )
232
+					   . '">'
233
+					   . sprintf(__('view txn %s', 'event_espresso'), $item->object()->TXN_ID())
234
+					   . '</a>';
235
+			}
236
+		} else {
237
+			return __("Unable to find transaction", 'event_espresso');
238
+		}
239
+	}
240 240
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
              . __(
57 57
                  'Download Results',
58 58
                  'event_espresso'
59
-             ) . "'>";
59
+             )."'>";
60 60
     }
61 61
 
62 62
 
Please login to merge, or discard this patch.
admin_pages/transactions/EE_Admin_Transactions_List_Table.class.php 2 patches
Indentation   +659 added lines, -659 removed lines patch added patch discarded remove patch
@@ -15,121 +15,121 @@  discard block
 block discarded – undo
15 15
 class EE_Admin_Transactions_List_Table extends EE_Admin_List_Table
16 16
 {
17 17
 
18
-    /**
19
-     * @var SessionLifespan $session_lifespan
20
-     */
21
-    private $session_lifespan;
22
-
23
-    private $_status;
24
-
25
-
26
-    /**
27
-     * @param \Transactions_Admin_Page $admin_page
28
-     * @param SessionLifespan          $lifespan
29
-     */
30
-    public function __construct(\Transactions_Admin_Page $admin_page, SessionLifespan $lifespan)
31
-    {
32
-        parent::__construct($admin_page);
33
-        $this->session_lifespan = $lifespan;
34
-        $this->_status = $this->_admin_page->get_transaction_status_array();
35
-    }
36
-
37
-
38
-    /**
39
-     *_setup_data
40
-     */
41
-    protected function _setup_data()
42
-    {
43
-        $this->_data = $this->_admin_page->get_transactions($this->_per_page);
44
-        $status = ! empty($this->_req_data['status']) ? $this->_req_data['status'] : 'all';
45
-        $this->_all_data_count = $this->_admin_page->get_transactions($this->_per_page, true, $status);
46
-    }
47
-
48
-
49
-    /**
50
-     *_set_properties
51
-     */
52
-    protected function _set_properties()
53
-    {
54
-        $this->_wp_list_args = array(
55
-            'singular' => __('transaction', 'event_espresso'),
56
-            'plural'   => __('transactions', 'event_espresso'),
57
-            'ajax'     => true,
58
-            'screen'   => $this->_admin_page->get_current_screen()->id,
59
-        );
60
-        $ID_column_name = __('ID', 'event_espresso');
61
-        $ID_column_name .= ' : <span class="show-on-mobile-view-only" style="float:none">';
62
-        $ID_column_name .= __('Transaction Date', 'event_espresso');
63
-        $ID_column_name .= '</span> ';
64
-        $this->_columns = array(
65
-            'TXN_ID'        => $ID_column_name,
66
-            'TXN_timestamp' => __('Transaction Date', 'event_espresso'),
67
-            'TXN_total'     => __('Total', 'event_espresso'),
68
-            'TXN_paid'      => __('Paid', 'event_espresso'),
69
-            'ATT_fname'     => __('Primary Registrant', 'event_espresso'),
70
-            'event_name'    => __('Event', 'event_espresso'),
71
-            'actions'       => __('Actions', 'event_espresso'),
72
-        );
73
-
74
-        $this->_sortable_columns = array(
75
-            'TXN_ID'        => array('TXN_ID' => false),
76
-            'event_name'    => array('event_name' => false),
77
-            'ATT_fname'     => array('ATT_fname' => false),
78
-            'TXN_timestamp' => array('TXN_timestamp' => true) // true means its already sorted
79
-        );
80
-
81
-        $this->_primary_column = 'TXN_ID';
82
-
83
-        $this->_hidden_columns = array();
84
-    }
85
-
86
-
87
-    /**
88
-     * This simply sets up the row class for the table rows.
89
-     * Allows for easier overriding of child methods for setting up sorting.
90
-     *
91
-     * @param  EE_Transaction $transaction the current item
92
-     * @return string
93
-     * @throws \EE_Error
94
-     */
95
-    protected function _get_row_class($transaction)
96
-    {
97
-        $class = parent::_get_row_class($transaction);
98
-        // add status class
99
-        $class .= ' ee-status-strip txn-status-' . $transaction->status_ID();
100
-        if ($this->_has_checkbox_column) {
101
-            $class .= ' has-checkbox-column';
102
-        }
103
-        return $class;
104
-    }
105
-
106
-
107
-    /**
108
-     * _get_table_filters
109
-     * We use this to assemble and return any filters that are associated with this table that help further refine what
110
-     * get's shown in the table.
111
-     *
112
-     * @abstract
113
-     * @access protected
114
-     * @return array
115
-     */
116
-    protected function _get_table_filters()
117
-    {
118
-        $filters = array();
119
-        $start_date = isset($this->_req_data['txn-filter-start-date'])
120
-            ? wp_strip_all_tags($this->_req_data['txn-filter-start-date'])
121
-            : date(
122
-                'm/d/Y',
123
-                strtotime('-10 year')
124
-            );
125
-        $end_date = isset($this->_req_data['txn-filter-end-date'])
126
-            ? wp_strip_all_tags($this->_req_data['txn-filter-end-date'])
127
-            : date(
128
-                'm/d/Y',
129
-                current_time('timestamp')
130
-            );
131
-        ob_start();
132
-        ?>
18
+	/**
19
+	 * @var SessionLifespan $session_lifespan
20
+	 */
21
+	private $session_lifespan;
22
+
23
+	private $_status;
24
+
25
+
26
+	/**
27
+	 * @param \Transactions_Admin_Page $admin_page
28
+	 * @param SessionLifespan          $lifespan
29
+	 */
30
+	public function __construct(\Transactions_Admin_Page $admin_page, SessionLifespan $lifespan)
31
+	{
32
+		parent::__construct($admin_page);
33
+		$this->session_lifespan = $lifespan;
34
+		$this->_status = $this->_admin_page->get_transaction_status_array();
35
+	}
36
+
37
+
38
+	/**
39
+	 *_setup_data
40
+	 */
41
+	protected function _setup_data()
42
+	{
43
+		$this->_data = $this->_admin_page->get_transactions($this->_per_page);
44
+		$status = ! empty($this->_req_data['status']) ? $this->_req_data['status'] : 'all';
45
+		$this->_all_data_count = $this->_admin_page->get_transactions($this->_per_page, true, $status);
46
+	}
47
+
48
+
49
+	/**
50
+	 *_set_properties
51
+	 */
52
+	protected function _set_properties()
53
+	{
54
+		$this->_wp_list_args = array(
55
+			'singular' => __('transaction', 'event_espresso'),
56
+			'plural'   => __('transactions', 'event_espresso'),
57
+			'ajax'     => true,
58
+			'screen'   => $this->_admin_page->get_current_screen()->id,
59
+		);
60
+		$ID_column_name = __('ID', 'event_espresso');
61
+		$ID_column_name .= ' : <span class="show-on-mobile-view-only" style="float:none">';
62
+		$ID_column_name .= __('Transaction Date', 'event_espresso');
63
+		$ID_column_name .= '</span> ';
64
+		$this->_columns = array(
65
+			'TXN_ID'        => $ID_column_name,
66
+			'TXN_timestamp' => __('Transaction Date', 'event_espresso'),
67
+			'TXN_total'     => __('Total', 'event_espresso'),
68
+			'TXN_paid'      => __('Paid', 'event_espresso'),
69
+			'ATT_fname'     => __('Primary Registrant', 'event_espresso'),
70
+			'event_name'    => __('Event', 'event_espresso'),
71
+			'actions'       => __('Actions', 'event_espresso'),
72
+		);
73
+
74
+		$this->_sortable_columns = array(
75
+			'TXN_ID'        => array('TXN_ID' => false),
76
+			'event_name'    => array('event_name' => false),
77
+			'ATT_fname'     => array('ATT_fname' => false),
78
+			'TXN_timestamp' => array('TXN_timestamp' => true) // true means its already sorted
79
+		);
80
+
81
+		$this->_primary_column = 'TXN_ID';
82
+
83
+		$this->_hidden_columns = array();
84
+	}
85
+
86
+
87
+	/**
88
+	 * This simply sets up the row class for the table rows.
89
+	 * Allows for easier overriding of child methods for setting up sorting.
90
+	 *
91
+	 * @param  EE_Transaction $transaction the current item
92
+	 * @return string
93
+	 * @throws \EE_Error
94
+	 */
95
+	protected function _get_row_class($transaction)
96
+	{
97
+		$class = parent::_get_row_class($transaction);
98
+		// add status class
99
+		$class .= ' ee-status-strip txn-status-' . $transaction->status_ID();
100
+		if ($this->_has_checkbox_column) {
101
+			$class .= ' has-checkbox-column';
102
+		}
103
+		return $class;
104
+	}
105
+
106
+
107
+	/**
108
+	 * _get_table_filters
109
+	 * We use this to assemble and return any filters that are associated with this table that help further refine what
110
+	 * get's shown in the table.
111
+	 *
112
+	 * @abstract
113
+	 * @access protected
114
+	 * @return array
115
+	 */
116
+	protected function _get_table_filters()
117
+	{
118
+		$filters = array();
119
+		$start_date = isset($this->_req_data['txn-filter-start-date'])
120
+			? wp_strip_all_tags($this->_req_data['txn-filter-start-date'])
121
+			: date(
122
+				'm/d/Y',
123
+				strtotime('-10 year')
124
+			);
125
+		$end_date = isset($this->_req_data['txn-filter-end-date'])
126
+			? wp_strip_all_tags($this->_req_data['txn-filter-end-date'])
127
+			: date(
128
+				'm/d/Y',
129
+				current_time('timestamp')
130
+			);
131
+		ob_start();
132
+		?>
133 133
         <label for="txn-filter-start-date">Display Transactions from </label>
134 134
         <input id="txn-filter-start-date" class="datepicker" type="text" value="<?php echo $start_date; ?>"
135 135
                name="txn-filter-start-date" size="15"/>
@@ -137,579 +137,579 @@  discard block
 block discarded – undo
137 137
         <input id="txn-filter-end-date" class="datepicker" type="text" value="<?php echo $end_date; ?>"
138 138
                name="txn-filter-end-date" size="15"/>
139 139
         <?php
140
-        $filters[] = ob_get_contents();
141
-        ob_end_clean();
142
-        return $filters;
143
-    }
144
-
145
-
146
-    /**
147
-     *_add_view_counts
148
-     */
149
-    protected function _add_view_counts()
150
-    {
151
-        $this->_views['all']['count'] = $this->_admin_page->get_transactions($this->_per_page, true, 'all');
152
-        $this->_views['abandoned']['count'] = $this->_admin_page->get_transactions($this->_per_page, true, 'abandoned');
153
-        $this->_views['failed']['count'] = $this->_admin_page->get_transactions($this->_per_page, true, 'failed');
154
-    }
155
-
156
-
157
-    /**
158
-     *    column TXN_ID
159
-     *
160
-     * @param \EE_Transaction $transaction
161
-     * @return string
162
-     * @throws \EE_Error
163
-     */
164
-    public function column_TXN_ID(EE_Transaction $transaction)
165
-    {
166
-        $view_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
167
-            array(
168
-                'action' => 'view_transaction',
169
-                'TXN_ID' => $transaction->ID(),
170
-            ),
171
-            TXN_ADMIN_URL
172
-        );
173
-        $content = '<a href="' . $view_lnk_url . '"'
174
-                   . ' title="' . esc_attr__('Go to Transaction Details', 'event_espresso') . '">'
175
-                   . $transaction->ID()
176
-                   . '</a>';
177
-
178
-        // txn timestamp
179
-        $content .= '  <span class="show-on-mobile-view-only">' . $this->_get_txn_timestamp($transaction) . '</span>';
180
-        return $content;
181
-    }
182
-
183
-
184
-    /**
185
-     * @param \EE_Transaction $transaction
186
-     * @return string
187
-     * @throws EE_Error
188
-     * @throws InvalidArgumentException
189
-     * @throws InvalidDataTypeException
190
-     * @throws InvalidInterfaceException
191
-     */
192
-    protected function _get_txn_timestamp(EE_Transaction $transaction)
193
-    {
194
-        // is TXN less than 2 hours old ?
195
-        if (($transaction->failed() || $transaction->is_abandoned())
196
-            && $this->session_lifespan->expiration() < $transaction->datetime(false, true)
197
-        ) {
198
-            $timestamp = esc_html__('TXN in progress...', 'event_espresso');
199
-        } else {
200
-            $timestamp = $transaction->get_i18n_datetime('TXN_timestamp');
201
-        }
202
-        return $timestamp;
203
-    }
204
-
205
-
206
-    /**
207
-     *    column_cb
208
-     *
209
-     * @param \EE_Transaction $transaction
210
-     * @return string
211
-     * @throws \EE_Error
212
-     */
213
-    public function column_cb($transaction)
214
-    {
215
-        return sprintf(
216
-            '<input type="checkbox" name="%1$s[]" value="%2$s" />',
217
-            $this->_wp_list_args['singular'],
218
-            $transaction->ID()
219
-        );
220
-    }
221
-
222
-
223
-    /**
224
-     *    column_TXN_timestamp
225
-     *
226
-     * @param \EE_Transaction $transaction
227
-     * @return string
228
-     * @throws \EE_Error
229
-     */
230
-    public function column_TXN_timestamp(EE_Transaction $transaction)
231
-    {
232
-        $view_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
233
-            array(
234
-                'action' => 'view_transaction',
235
-                'TXN_ID' => $transaction->ID(),
236
-            ),
237
-            TXN_ADMIN_URL
238
-        );
239
-        $txn_date = '<a href="' . $view_lnk_url . '"'
240
-                    . ' title="'
241
-                    . esc_attr__('View Transaction Details for TXN #', 'event_espresso') . $transaction->ID() . '">'
242
-                    . $this->_get_txn_timestamp($transaction)
243
-                    . '</a>';
244
-        // status
245
-        $txn_date .= '<br><span class="ee-status-text-small">'
246
-                    . EEH_Template::pretty_status(
247
-                        $transaction->status_ID(),
248
-                        false,
249
-                        'sentence'
250
-                    )
251
-                     . '</span>';
252
-        return $txn_date;
253
-    }
254
-
255
-
256
-    /**
257
-     *    column_TXN_total
258
-     *
259
-     * @param \EE_Transaction $transaction
260
-     * @return string
261
-     * @throws \EE_Error
262
-     */
263
-    public function column_TXN_total(EE_Transaction $transaction)
264
-    {
265
-        if ($transaction->get('TXN_total') > 0) {
266
-            return '<span class="txn-pad-rght">'
267
-                   . apply_filters(
268
-                       'FHEE__EE_Admin_Transactions_List_Table__column_TXN_total__TXN_total',
269
-                       $transaction->get_pretty('TXN_total'),
270
-                       $transaction
271
-                   )
272
-                   . '</span>';
273
-        } else {
274
-            return '<span class="txn-overview-free-event-spn">' . esc_html__('free', 'event_espresso') . '</span>';
275
-        }
276
-    }
277
-
278
-
279
-    /**
280
-     *    column_TXN_paid
281
-     *
282
-     * @param \EE_Transaction $transaction
283
-     * @return mixed|string
284
-     * @throws \EE_Error
285
-     */
286
-    public function column_TXN_paid(EE_Transaction $transaction)
287
-    {
288
-        $transaction_total = $transaction->get('TXN_total');
289
-        $transaction_paid = $transaction->get('TXN_paid');
290
-
291
-        if (\EEH_Money::compare_floats($transaction_total, 0, '>')) {
292
-            // monies owing
293
-            $span_class = 'txn-overview-part-payment-spn';
294
-            if (\EEH_Money::compare_floats($transaction_paid, $transaction_total, '>=')) {
295
-                // paid in full
296
-                $span_class = 'txn-overview-full-payment-spn';
297
-            } elseif (\EEH_Money::compare_floats($transaction_paid, 0, '==')) {
298
-                // no payments made
299
-                $span_class = 'txn-overview-no-payment-spn';
300
-            }
301
-        } else {
302
-            $span_class = 'txn-overview-free-event-spn';
303
-            $transaction_paid = 0;
304
-        }
305
-
306
-        $payment_method = $transaction->payment_method();
307
-        $payment_method_name = $payment_method instanceof EE_Payment_Method
308
-            ? $payment_method->admin_name()
309
-            : esc_html__('Unknown', 'event_espresso');
310
-        $transaction_paid_content = $transaction_paid !== 0 ? $transaction->get_pretty('TXN_paid') : $transaction_paid;
311
-
312
-        $content = '<span class="' . $span_class . ' txn-pad-rght">'
313
-                   . $transaction_paid_content
314
-                   . '</span>';
315
-        if ($transaction_paid > 0) {
316
-            $content .= '<br><span class="ee-status-text-small">'
317
-                        . sprintf(
318
-                            esc_html__('...via %s', 'event_espresso'),
319
-                            $payment_method_name
320
-                        )
321
-                        . '</span>';
322
-        }
323
-        return $content;
324
-    }
325
-
326
-
327
-    /**
328
-     *    column_ATT_fname
329
-     *
330
-     * @param \EE_Transaction $transaction
331
-     * @return string
332
-     * @throws EE_Error
333
-     * @throws InvalidArgumentException
334
-     * @throws InvalidDataTypeException
335
-     * @throws InvalidInterfaceException
336
-     */
337
-    public function column_ATT_fname(EE_Transaction $transaction)
338
-    {
339
-        $primary_reg = $transaction->primary_registration();
340
-        $attendee = $primary_reg->get_first_related('Attendee');
341
-        if ($attendee instanceof EE_Attendee) {
342
-            $edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
343
-                array(
344
-                    'action'  => 'view_registration',
345
-                    '_REG_ID' => $primary_reg->ID(),
346
-                ),
347
-                REG_ADMIN_URL
348
-            );
349
-            $content = EE_Registry::instance()->CAP->current_user_can(
350
-                'ee_read_registration',
351
-                'espresso_registrations_view_registration',
352
-                $primary_reg->ID()
353
-            )
354
-                ? '<a href="' . $edit_lnk_url . '"'
355
-                  . ' title="' . esc_attr__('View Registration Details', 'event_espresso') . '">'
356
-                  . $attendee->full_name()
357
-                  . '</a>'
358
-                : $attendee->full_name();
359
-            $content .= '<br>' . $attendee->email();
360
-            return $content;
361
-        }
362
-        return $transaction->failed() || $transaction->is_abandoned()
363
-            ? esc_html__('no contact record.', 'event_espresso')
364
-            : esc_html__(
365
-                'No contact record, because the transaction was abandoned or the registration process failed.',
366
-                'event_espresso'
367
-            );
368
-    }
369
-
370
-
371
-    /**
372
-     *    column_ATT_email
373
-     *
374
-     * @param \EE_Transaction $transaction
375
-     * @return string
376
-     * @throws \EE_Error
377
-     */
378
-    public function column_ATT_email(EE_Transaction $transaction)
379
-    {
380
-        $attendee = $transaction->primary_registration()->get_first_related('Attendee');
381
-        if (! empty($attendee)) {
382
-            return '<a href="mailto:' . $attendee->get('ATT_email') . '">'
383
-                   . $attendee->get('ATT_email')
384
-                   . '</a>';
385
-        } else {
386
-            return $transaction->failed() || $transaction->is_abandoned()
387
-                ? esc_html__('no contact record.', 'event_espresso')
388
-                : esc_html__(
389
-                    'No contact record, because the transaction was abandoned or the registration process failed.',
390
-                    'event_espresso'
391
-                );
392
-        }
393
-    }
394
-
395
-
396
-    /**
397
-     *    column_event_name
398
-     *
399
-     * @param \EE_Transaction $transaction
400
-     * @return string
401
-     * @throws EE_Error
402
-     * @throws InvalidArgumentException
403
-     * @throws InvalidDataTypeException
404
-     * @throws InvalidInterfaceException
405
-     */
406
-    public function column_event_name(EE_Transaction $transaction)
407
-    {
408
-        $actions = array();
409
-        $event = $transaction->primary_registration()->get_first_related('Event');
410
-        if (! empty($event)) {
411
-            $edit_event_url = EE_Admin_Page::add_query_args_and_nonce(
412
-                array('action' => 'edit', 'post' => $event->ID()),
413
-                EVENTS_ADMIN_URL
414
-            );
415
-            $event_name = $event->get('EVT_name');
416
-
417
-            // filter this view by transactions for this event
418
-            $txn_by_event_lnk = EE_Admin_Page::add_query_args_and_nonce(
419
-                array(
420
-                    'action' => 'default',
421
-                    'EVT_ID' => $event->ID(),
422
-                )
423
-            );
424
-            if (empty($this->_req_data['EVT_ID'])
425
-                && EE_Registry::instance()->CAP->current_user_can(
426
-                    'ee_edit_event',
427
-                    'espresso_events_edit',
428
-                    $event->ID()
429
-                )
430
-            ) {
431
-                $actions['filter_by_event'] = '<a href="' . $txn_by_event_lnk . '"'
432
-                                              . ' title="' . esc_attr__(
433
-                                                  'Filter transactions by this event',
434
-                                                  'event_espresso'
435
-                                              ) . '">'
436
-                                              . esc_html__('View Transactions for this event', 'event_espresso')
437
-                                              . '</a>';
438
-            }
439
-
440
-            return sprintf(
441
-                '%1$s %2$s',
442
-                EE_Registry::instance()->CAP->current_user_can(
443
-                    'ee_edit_event',
444
-                    'espresso_events_edit',
445
-                    $event->ID()
446
-                )
447
-                    ? '<a href="' . $edit_event_url . '"'
448
-                      . ' title="'
449
-                      . sprintf(
450
-                          esc_attr__('Edit Event: %s', 'event_espresso'),
451
-                          $event->get('EVT_name')
452
-                      )
453
-                      . '">'
454
-                      . wp_trim_words(
455
-                          $event_name,
456
-                          30,
457
-                          '...'
458
-                      )
459
-                      . '</a>'
460
-                    : wp_trim_words($event_name, 30, '...'),
461
-                $this->row_actions($actions)
462
-            );
463
-        } else {
464
-            return esc_html__(
465
-                'The event associated with this transaction via the primary registration cannot be retrieved.',
466
-                'event_espresso'
467
-            );
468
-        }
469
-    }
470
-
471
-
472
-    /**
473
-     *    column_actions
474
-     *
475
-     * @param \EE_Transaction $transaction
476
-     * @return string
477
-     * @throws \EE_Error
478
-     */
479
-    public function column_actions(EE_Transaction $transaction)
480
-    {
481
-        return $this->_action_string(
482
-            $this->get_transaction_details_link($transaction)
483
-            . $this->get_invoice_link($transaction)
484
-            . $this->get_receipt_link($transaction)
485
-            . $this->get_primary_registration_details_link($transaction)
486
-            . $this->get_send_payment_reminder_trigger_link($transaction)
487
-            . $this->get_payment_overview_link($transaction)
488
-            . $this->get_related_messages_link($transaction),
489
-            $transaction,
490
-            'ul',
491
-            'txn-overview-actions-ul'
492
-        );
493
-    }
494
-
495
-
496
-    /**
497
-     * Get the transaction details link.
498
-     *
499
-     * @param EE_Transaction $transaction
500
-     * @return string
501
-     * @throws EE_Error
502
-     */
503
-    protected function get_transaction_details_link(EE_Transaction $transaction)
504
-    {
505
-        $url = EE_Admin_Page::add_query_args_and_nonce(
506
-            array(
507
-                'action' => 'view_transaction',
508
-                'TXN_ID' => $transaction->ID(),
509
-            ),
510
-            TXN_ADMIN_URL
511
-        );
512
-        return '
140
+		$filters[] = ob_get_contents();
141
+		ob_end_clean();
142
+		return $filters;
143
+	}
144
+
145
+
146
+	/**
147
+	 *_add_view_counts
148
+	 */
149
+	protected function _add_view_counts()
150
+	{
151
+		$this->_views['all']['count'] = $this->_admin_page->get_transactions($this->_per_page, true, 'all');
152
+		$this->_views['abandoned']['count'] = $this->_admin_page->get_transactions($this->_per_page, true, 'abandoned');
153
+		$this->_views['failed']['count'] = $this->_admin_page->get_transactions($this->_per_page, true, 'failed');
154
+	}
155
+
156
+
157
+	/**
158
+	 *    column TXN_ID
159
+	 *
160
+	 * @param \EE_Transaction $transaction
161
+	 * @return string
162
+	 * @throws \EE_Error
163
+	 */
164
+	public function column_TXN_ID(EE_Transaction $transaction)
165
+	{
166
+		$view_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
167
+			array(
168
+				'action' => 'view_transaction',
169
+				'TXN_ID' => $transaction->ID(),
170
+			),
171
+			TXN_ADMIN_URL
172
+		);
173
+		$content = '<a href="' . $view_lnk_url . '"'
174
+				   . ' title="' . esc_attr__('Go to Transaction Details', 'event_espresso') . '">'
175
+				   . $transaction->ID()
176
+				   . '</a>';
177
+
178
+		// txn timestamp
179
+		$content .= '  <span class="show-on-mobile-view-only">' . $this->_get_txn_timestamp($transaction) . '</span>';
180
+		return $content;
181
+	}
182
+
183
+
184
+	/**
185
+	 * @param \EE_Transaction $transaction
186
+	 * @return string
187
+	 * @throws EE_Error
188
+	 * @throws InvalidArgumentException
189
+	 * @throws InvalidDataTypeException
190
+	 * @throws InvalidInterfaceException
191
+	 */
192
+	protected function _get_txn_timestamp(EE_Transaction $transaction)
193
+	{
194
+		// is TXN less than 2 hours old ?
195
+		if (($transaction->failed() || $transaction->is_abandoned())
196
+			&& $this->session_lifespan->expiration() < $transaction->datetime(false, true)
197
+		) {
198
+			$timestamp = esc_html__('TXN in progress...', 'event_espresso');
199
+		} else {
200
+			$timestamp = $transaction->get_i18n_datetime('TXN_timestamp');
201
+		}
202
+		return $timestamp;
203
+	}
204
+
205
+
206
+	/**
207
+	 *    column_cb
208
+	 *
209
+	 * @param \EE_Transaction $transaction
210
+	 * @return string
211
+	 * @throws \EE_Error
212
+	 */
213
+	public function column_cb($transaction)
214
+	{
215
+		return sprintf(
216
+			'<input type="checkbox" name="%1$s[]" value="%2$s" />',
217
+			$this->_wp_list_args['singular'],
218
+			$transaction->ID()
219
+		);
220
+	}
221
+
222
+
223
+	/**
224
+	 *    column_TXN_timestamp
225
+	 *
226
+	 * @param \EE_Transaction $transaction
227
+	 * @return string
228
+	 * @throws \EE_Error
229
+	 */
230
+	public function column_TXN_timestamp(EE_Transaction $transaction)
231
+	{
232
+		$view_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
233
+			array(
234
+				'action' => 'view_transaction',
235
+				'TXN_ID' => $transaction->ID(),
236
+			),
237
+			TXN_ADMIN_URL
238
+		);
239
+		$txn_date = '<a href="' . $view_lnk_url . '"'
240
+					. ' title="'
241
+					. esc_attr__('View Transaction Details for TXN #', 'event_espresso') . $transaction->ID() . '">'
242
+					. $this->_get_txn_timestamp($transaction)
243
+					. '</a>';
244
+		// status
245
+		$txn_date .= '<br><span class="ee-status-text-small">'
246
+					. EEH_Template::pretty_status(
247
+						$transaction->status_ID(),
248
+						false,
249
+						'sentence'
250
+					)
251
+					 . '</span>';
252
+		return $txn_date;
253
+	}
254
+
255
+
256
+	/**
257
+	 *    column_TXN_total
258
+	 *
259
+	 * @param \EE_Transaction $transaction
260
+	 * @return string
261
+	 * @throws \EE_Error
262
+	 */
263
+	public function column_TXN_total(EE_Transaction $transaction)
264
+	{
265
+		if ($transaction->get('TXN_total') > 0) {
266
+			return '<span class="txn-pad-rght">'
267
+				   . apply_filters(
268
+					   'FHEE__EE_Admin_Transactions_List_Table__column_TXN_total__TXN_total',
269
+					   $transaction->get_pretty('TXN_total'),
270
+					   $transaction
271
+				   )
272
+				   . '</span>';
273
+		} else {
274
+			return '<span class="txn-overview-free-event-spn">' . esc_html__('free', 'event_espresso') . '</span>';
275
+		}
276
+	}
277
+
278
+
279
+	/**
280
+	 *    column_TXN_paid
281
+	 *
282
+	 * @param \EE_Transaction $transaction
283
+	 * @return mixed|string
284
+	 * @throws \EE_Error
285
+	 */
286
+	public function column_TXN_paid(EE_Transaction $transaction)
287
+	{
288
+		$transaction_total = $transaction->get('TXN_total');
289
+		$transaction_paid = $transaction->get('TXN_paid');
290
+
291
+		if (\EEH_Money::compare_floats($transaction_total, 0, '>')) {
292
+			// monies owing
293
+			$span_class = 'txn-overview-part-payment-spn';
294
+			if (\EEH_Money::compare_floats($transaction_paid, $transaction_total, '>=')) {
295
+				// paid in full
296
+				$span_class = 'txn-overview-full-payment-spn';
297
+			} elseif (\EEH_Money::compare_floats($transaction_paid, 0, '==')) {
298
+				// no payments made
299
+				$span_class = 'txn-overview-no-payment-spn';
300
+			}
301
+		} else {
302
+			$span_class = 'txn-overview-free-event-spn';
303
+			$transaction_paid = 0;
304
+		}
305
+
306
+		$payment_method = $transaction->payment_method();
307
+		$payment_method_name = $payment_method instanceof EE_Payment_Method
308
+			? $payment_method->admin_name()
309
+			: esc_html__('Unknown', 'event_espresso');
310
+		$transaction_paid_content = $transaction_paid !== 0 ? $transaction->get_pretty('TXN_paid') : $transaction_paid;
311
+
312
+		$content = '<span class="' . $span_class . ' txn-pad-rght">'
313
+				   . $transaction_paid_content
314
+				   . '</span>';
315
+		if ($transaction_paid > 0) {
316
+			$content .= '<br><span class="ee-status-text-small">'
317
+						. sprintf(
318
+							esc_html__('...via %s', 'event_espresso'),
319
+							$payment_method_name
320
+						)
321
+						. '</span>';
322
+		}
323
+		return $content;
324
+	}
325
+
326
+
327
+	/**
328
+	 *    column_ATT_fname
329
+	 *
330
+	 * @param \EE_Transaction $transaction
331
+	 * @return string
332
+	 * @throws EE_Error
333
+	 * @throws InvalidArgumentException
334
+	 * @throws InvalidDataTypeException
335
+	 * @throws InvalidInterfaceException
336
+	 */
337
+	public function column_ATT_fname(EE_Transaction $transaction)
338
+	{
339
+		$primary_reg = $transaction->primary_registration();
340
+		$attendee = $primary_reg->get_first_related('Attendee');
341
+		if ($attendee instanceof EE_Attendee) {
342
+			$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
343
+				array(
344
+					'action'  => 'view_registration',
345
+					'_REG_ID' => $primary_reg->ID(),
346
+				),
347
+				REG_ADMIN_URL
348
+			);
349
+			$content = EE_Registry::instance()->CAP->current_user_can(
350
+				'ee_read_registration',
351
+				'espresso_registrations_view_registration',
352
+				$primary_reg->ID()
353
+			)
354
+				? '<a href="' . $edit_lnk_url . '"'
355
+				  . ' title="' . esc_attr__('View Registration Details', 'event_espresso') . '">'
356
+				  . $attendee->full_name()
357
+				  . '</a>'
358
+				: $attendee->full_name();
359
+			$content .= '<br>' . $attendee->email();
360
+			return $content;
361
+		}
362
+		return $transaction->failed() || $transaction->is_abandoned()
363
+			? esc_html__('no contact record.', 'event_espresso')
364
+			: esc_html__(
365
+				'No contact record, because the transaction was abandoned or the registration process failed.',
366
+				'event_espresso'
367
+			);
368
+	}
369
+
370
+
371
+	/**
372
+	 *    column_ATT_email
373
+	 *
374
+	 * @param \EE_Transaction $transaction
375
+	 * @return string
376
+	 * @throws \EE_Error
377
+	 */
378
+	public function column_ATT_email(EE_Transaction $transaction)
379
+	{
380
+		$attendee = $transaction->primary_registration()->get_first_related('Attendee');
381
+		if (! empty($attendee)) {
382
+			return '<a href="mailto:' . $attendee->get('ATT_email') . '">'
383
+				   . $attendee->get('ATT_email')
384
+				   . '</a>';
385
+		} else {
386
+			return $transaction->failed() || $transaction->is_abandoned()
387
+				? esc_html__('no contact record.', 'event_espresso')
388
+				: esc_html__(
389
+					'No contact record, because the transaction was abandoned or the registration process failed.',
390
+					'event_espresso'
391
+				);
392
+		}
393
+	}
394
+
395
+
396
+	/**
397
+	 *    column_event_name
398
+	 *
399
+	 * @param \EE_Transaction $transaction
400
+	 * @return string
401
+	 * @throws EE_Error
402
+	 * @throws InvalidArgumentException
403
+	 * @throws InvalidDataTypeException
404
+	 * @throws InvalidInterfaceException
405
+	 */
406
+	public function column_event_name(EE_Transaction $transaction)
407
+	{
408
+		$actions = array();
409
+		$event = $transaction->primary_registration()->get_first_related('Event');
410
+		if (! empty($event)) {
411
+			$edit_event_url = EE_Admin_Page::add_query_args_and_nonce(
412
+				array('action' => 'edit', 'post' => $event->ID()),
413
+				EVENTS_ADMIN_URL
414
+			);
415
+			$event_name = $event->get('EVT_name');
416
+
417
+			// filter this view by transactions for this event
418
+			$txn_by_event_lnk = EE_Admin_Page::add_query_args_and_nonce(
419
+				array(
420
+					'action' => 'default',
421
+					'EVT_ID' => $event->ID(),
422
+				)
423
+			);
424
+			if (empty($this->_req_data['EVT_ID'])
425
+				&& EE_Registry::instance()->CAP->current_user_can(
426
+					'ee_edit_event',
427
+					'espresso_events_edit',
428
+					$event->ID()
429
+				)
430
+			) {
431
+				$actions['filter_by_event'] = '<a href="' . $txn_by_event_lnk . '"'
432
+											  . ' title="' . esc_attr__(
433
+												  'Filter transactions by this event',
434
+												  'event_espresso'
435
+											  ) . '">'
436
+											  . esc_html__('View Transactions for this event', 'event_espresso')
437
+											  . '</a>';
438
+			}
439
+
440
+			return sprintf(
441
+				'%1$s %2$s',
442
+				EE_Registry::instance()->CAP->current_user_can(
443
+					'ee_edit_event',
444
+					'espresso_events_edit',
445
+					$event->ID()
446
+				)
447
+					? '<a href="' . $edit_event_url . '"'
448
+					  . ' title="'
449
+					  . sprintf(
450
+						  esc_attr__('Edit Event: %s', 'event_espresso'),
451
+						  $event->get('EVT_name')
452
+					  )
453
+					  . '">'
454
+					  . wp_trim_words(
455
+						  $event_name,
456
+						  30,
457
+						  '...'
458
+					  )
459
+					  . '</a>'
460
+					: wp_trim_words($event_name, 30, '...'),
461
+				$this->row_actions($actions)
462
+			);
463
+		} else {
464
+			return esc_html__(
465
+				'The event associated with this transaction via the primary registration cannot be retrieved.',
466
+				'event_espresso'
467
+			);
468
+		}
469
+	}
470
+
471
+
472
+	/**
473
+	 *    column_actions
474
+	 *
475
+	 * @param \EE_Transaction $transaction
476
+	 * @return string
477
+	 * @throws \EE_Error
478
+	 */
479
+	public function column_actions(EE_Transaction $transaction)
480
+	{
481
+		return $this->_action_string(
482
+			$this->get_transaction_details_link($transaction)
483
+			. $this->get_invoice_link($transaction)
484
+			. $this->get_receipt_link($transaction)
485
+			. $this->get_primary_registration_details_link($transaction)
486
+			. $this->get_send_payment_reminder_trigger_link($transaction)
487
+			. $this->get_payment_overview_link($transaction)
488
+			. $this->get_related_messages_link($transaction),
489
+			$transaction,
490
+			'ul',
491
+			'txn-overview-actions-ul'
492
+		);
493
+	}
494
+
495
+
496
+	/**
497
+	 * Get the transaction details link.
498
+	 *
499
+	 * @param EE_Transaction $transaction
500
+	 * @return string
501
+	 * @throws EE_Error
502
+	 */
503
+	protected function get_transaction_details_link(EE_Transaction $transaction)
504
+	{
505
+		$url = EE_Admin_Page::add_query_args_and_nonce(
506
+			array(
507
+				'action' => 'view_transaction',
508
+				'TXN_ID' => $transaction->ID(),
509
+			),
510
+			TXN_ADMIN_URL
511
+		);
512
+		return '
513 513
 			<li>
514 514
 				<a href="' . $url . '"'
515
-               . ' title="' . esc_attr__('View Transaction Details', 'event_espresso') . '" class="tiny-text">
515
+			   . ' title="' . esc_attr__('View Transaction Details', 'event_espresso') . '" class="tiny-text">
516 516
 					<span class="dashicons dashicons-cart"></span>
517 517
 				</a>
518 518
 			</li>';
519
-    }
520
-
521
-
522
-    /**
523
-     * Get the invoice link for the given registration.
524
-     *
525
-     * @param EE_Transaction $transaction
526
-     * @return string
527
-     * @throws EE_Error
528
-     */
529
-    protected function get_invoice_link(EE_Transaction $transaction)
530
-    {
531
-        $registration = $transaction->primary_registration();
532
-        if ($registration instanceof EE_Registration) {
533
-            $url = $registration->invoice_url();
534
-            // only show invoice link if message type is active.
535
-            if ($registration->attendee() instanceof EE_Attendee
536
-                && EEH_MSG_Template::is_mt_active('invoice')
537
-            ) {
538
-                return '
519
+	}
520
+
521
+
522
+	/**
523
+	 * Get the invoice link for the given registration.
524
+	 *
525
+	 * @param EE_Transaction $transaction
526
+	 * @return string
527
+	 * @throws EE_Error
528
+	 */
529
+	protected function get_invoice_link(EE_Transaction $transaction)
530
+	{
531
+		$registration = $transaction->primary_registration();
532
+		if ($registration instanceof EE_Registration) {
533
+			$url = $registration->invoice_url();
534
+			// only show invoice link if message type is active.
535
+			if ($registration->attendee() instanceof EE_Attendee
536
+				&& EEH_MSG_Template::is_mt_active('invoice')
537
+			) {
538
+				return '
539 539
                 <li>
540 540
                     <a title="' . esc_attr__('View Transaction Invoice', 'event_espresso') . '"'
541
-                       . ' target="_blank" href="' . $url . '" class="tiny-text">
541
+					   . ' target="_blank" href="' . $url . '" class="tiny-text">
542 542
                         <span class="dashicons dashicons-media-spreadsheet ee-icon-size-18"></span>
543 543
                     </a>
544 544
                 </li>';
545
-            }
546
-        }
547
-        return '';
548
-    }
549
-
550
-
551
-    /**
552
-     * Get the receipt link for the transaction.
553
-     *
554
-     * @param EE_Transaction $transaction
555
-     * @return string
556
-     * @throws EE_Error
557
-     */
558
-    protected function get_receipt_link(EE_Transaction $transaction)
559
-    {
560
-        $registration = $transaction->primary_registration();
561
-        if ($registration instanceof EE_Registration) {
562
-            $url = $registration->receipt_url();
563
-            // only show receipt link if message type is active.
564
-            if ($registration->attendee() instanceof EE_Attendee
565
-                && EEH_MSG_Template::is_mt_active('receipt')) {
566
-                return '
545
+			}
546
+		}
547
+		return '';
548
+	}
549
+
550
+
551
+	/**
552
+	 * Get the receipt link for the transaction.
553
+	 *
554
+	 * @param EE_Transaction $transaction
555
+	 * @return string
556
+	 * @throws EE_Error
557
+	 */
558
+	protected function get_receipt_link(EE_Transaction $transaction)
559
+	{
560
+		$registration = $transaction->primary_registration();
561
+		if ($registration instanceof EE_Registration) {
562
+			$url = $registration->receipt_url();
563
+			// only show receipt link if message type is active.
564
+			if ($registration->attendee() instanceof EE_Attendee
565
+				&& EEH_MSG_Template::is_mt_active('receipt')) {
566
+				return '
567 567
 			<li>
568 568
 				<a title="' . esc_attr__('View Transaction Receipt', 'event_espresso') . '"'
569
-                       . ' target="_blank" href="' . $url . '" class="tiny-text">
569
+					   . ' target="_blank" href="' . $url . '" class="tiny-text">
570 570
 					<span class="dashicons dashicons-media-default ee-icon-size-18"></span>
571 571
 				</a>
572 572
 			</li>';
573
-            }
574
-        }
575
-        return '';
576
-    }
577
-
578
-
579
-    /**
580
-     * Get the link to view the details for the primary registration.
581
-     *
582
-     * @param EE_Transaction $transaction
583
-     * @return string
584
-     * @throws EE_Error
585
-     * @throws InvalidArgumentException
586
-     * @throws InvalidDataTypeException
587
-     * @throws InvalidInterfaceException
588
-     */
589
-    protected function get_primary_registration_details_link(EE_Transaction $transaction)
590
-    {
591
-        $registration = $transaction->primary_registration();
592
-        if ($registration instanceof EE_Registration) {
593
-            $url = EE_Admin_Page::add_query_args_and_nonce(
594
-                array(
595
-                    'action'  => 'view_registration',
596
-                    '_REG_ID' => $registration->ID(),
597
-                ),
598
-                REG_ADMIN_URL
599
-            );
600
-            return EE_Registry::instance()->CAP->current_user_can(
601
-                'ee_read_registration',
602
-                'espresso_registrations_view_registration',
603
-                $registration->ID()
604
-            )
605
-                ? '
573
+			}
574
+		}
575
+		return '';
576
+	}
577
+
578
+
579
+	/**
580
+	 * Get the link to view the details for the primary registration.
581
+	 *
582
+	 * @param EE_Transaction $transaction
583
+	 * @return string
584
+	 * @throws EE_Error
585
+	 * @throws InvalidArgumentException
586
+	 * @throws InvalidDataTypeException
587
+	 * @throws InvalidInterfaceException
588
+	 */
589
+	protected function get_primary_registration_details_link(EE_Transaction $transaction)
590
+	{
591
+		$registration = $transaction->primary_registration();
592
+		if ($registration instanceof EE_Registration) {
593
+			$url = EE_Admin_Page::add_query_args_and_nonce(
594
+				array(
595
+					'action'  => 'view_registration',
596
+					'_REG_ID' => $registration->ID(),
597
+				),
598
+				REG_ADMIN_URL
599
+			);
600
+			return EE_Registry::instance()->CAP->current_user_can(
601
+				'ee_read_registration',
602
+				'espresso_registrations_view_registration',
603
+				$registration->ID()
604
+			)
605
+				? '
606 606
 				<li>
607 607
 					<a href="' . $url . '"'
608
-                  . ' title="' . esc_attr__('View Registration Details', 'event_espresso') . '" class="tiny-text">
608
+				  . ' title="' . esc_attr__('View Registration Details', 'event_espresso') . '" class="tiny-text">
609 609
 						<span class="dashicons dashicons-clipboard"></span>
610 610
 					</a>
611 611
 				</li>'
612
-                : '';
613
-        }
614
-        return '';
615
-    }
616
-
617
-
618
-    /**
619
-     * Get send payment reminder trigger link
620
-     *
621
-     * @param EE_Transaction $transaction
622
-     * @return string
623
-     * @throws EE_Error
624
-     * @throws InvalidArgumentException
625
-     * @throws InvalidDataTypeException
626
-     * @throws InvalidInterfaceException
627
-     */
628
-    protected function get_send_payment_reminder_trigger_link(EE_Transaction $transaction)
629
-    {
630
-        $registration = $transaction->primary_registration();
631
-        if ($registration instanceof EE_Registration
632
-            && $registration->attendee() instanceof EE_Attendee
633
-            && EEH_MSG_Template::is_mt_active('payment_reminder')
634
-            && ! in_array(
635
-                $transaction->status_ID(),
636
-                array(EEM_Transaction::complete_status_code, EEM_Transaction::overpaid_status_code),
637
-                true
638
-            )
639
-            && EE_Registry::instance()->CAP->current_user_can(
640
-                'ee_send_message',
641
-                'espresso_transactions_send_payment_reminder'
642
-            )
643
-        ) {
644
-            $url = EE_Admin_Page::add_query_args_and_nonce(
645
-                array(
646
-                    'action' => 'send_payment_reminder',
647
-                    'TXN_ID' => $transaction->ID(),
648
-                ),
649
-                TXN_ADMIN_URL
650
-            );
651
-            return '
612
+				: '';
613
+		}
614
+		return '';
615
+	}
616
+
617
+
618
+	/**
619
+	 * Get send payment reminder trigger link
620
+	 *
621
+	 * @param EE_Transaction $transaction
622
+	 * @return string
623
+	 * @throws EE_Error
624
+	 * @throws InvalidArgumentException
625
+	 * @throws InvalidDataTypeException
626
+	 * @throws InvalidInterfaceException
627
+	 */
628
+	protected function get_send_payment_reminder_trigger_link(EE_Transaction $transaction)
629
+	{
630
+		$registration = $transaction->primary_registration();
631
+		if ($registration instanceof EE_Registration
632
+			&& $registration->attendee() instanceof EE_Attendee
633
+			&& EEH_MSG_Template::is_mt_active('payment_reminder')
634
+			&& ! in_array(
635
+				$transaction->status_ID(),
636
+				array(EEM_Transaction::complete_status_code, EEM_Transaction::overpaid_status_code),
637
+				true
638
+			)
639
+			&& EE_Registry::instance()->CAP->current_user_can(
640
+				'ee_send_message',
641
+				'espresso_transactions_send_payment_reminder'
642
+			)
643
+		) {
644
+			$url = EE_Admin_Page::add_query_args_and_nonce(
645
+				array(
646
+					'action' => 'send_payment_reminder',
647
+					'TXN_ID' => $transaction->ID(),
648
+				),
649
+				TXN_ADMIN_URL
650
+			);
651
+			return '
652 652
             <li>
653 653
                 <a href="' . $url . '"'
654
-                   . ' title="' . esc_attr__('Send Payment Reminder', 'event_espresso') . '" class="tiny-text">
654
+				   . ' title="' . esc_attr__('Send Payment Reminder', 'event_espresso') . '" class="tiny-text">
655 655
                     <span class="dashicons dashicons-email-alt"></span>
656 656
                 </a>
657 657
             </li>';
658
-        }
659
-        return '';
660
-    }
661
-
662
-
663
-    /**
664
-     * Get link to filtered view in the message activity list table of messages for this transaction.
665
-     *
666
-     * @param EE_Transaction $transaction
667
-     * @return string
668
-     * @throws EE_Error
669
-     * @throws InvalidArgumentException
670
-     * @throws InvalidDataTypeException
671
-     * @throws InvalidInterfaceException
672
-     */
673
-    protected function get_related_messages_link(EE_Transaction $transaction)
674
-    {
675
-        $url = EEH_MSG_Template::get_message_action_link(
676
-            'see_notifications_for',
677
-            null,
678
-            array('TXN_ID' => $transaction->ID())
679
-        );
680
-        return EE_Registry::instance()->CAP->current_user_can(
681
-            'ee_read_global_messages',
682
-            'view_filtered_messages'
683
-        )
684
-            ? '<li>' . $url . '</li>'
685
-            : '';
686
-    }
687
-
688
-
689
-    /**
690
-     * Return the link to make a payment on the frontend
691
-     *
692
-     * @param EE_Transaction $transaction
693
-     * @return string
694
-     * @throws EE_Error
695
-     */
696
-    protected function get_payment_overview_link(EE_Transaction $transaction)
697
-    {
698
-        $registration = $transaction->primary_registration();
699
-        if ($registration instanceof EE_Registration
700
-            && $transaction->status_ID() !== EEM_Transaction::complete_status_code
701
-            && $registration->owes_monies_and_can_pay()
702
-        ) {
703
-            return '
658
+		}
659
+		return '';
660
+	}
661
+
662
+
663
+	/**
664
+	 * Get link to filtered view in the message activity list table of messages for this transaction.
665
+	 *
666
+	 * @param EE_Transaction $transaction
667
+	 * @return string
668
+	 * @throws EE_Error
669
+	 * @throws InvalidArgumentException
670
+	 * @throws InvalidDataTypeException
671
+	 * @throws InvalidInterfaceException
672
+	 */
673
+	protected function get_related_messages_link(EE_Transaction $transaction)
674
+	{
675
+		$url = EEH_MSG_Template::get_message_action_link(
676
+			'see_notifications_for',
677
+			null,
678
+			array('TXN_ID' => $transaction->ID())
679
+		);
680
+		return EE_Registry::instance()->CAP->current_user_can(
681
+			'ee_read_global_messages',
682
+			'view_filtered_messages'
683
+		)
684
+			? '<li>' . $url . '</li>'
685
+			: '';
686
+	}
687
+
688
+
689
+	/**
690
+	 * Return the link to make a payment on the frontend
691
+	 *
692
+	 * @param EE_Transaction $transaction
693
+	 * @return string
694
+	 * @throws EE_Error
695
+	 */
696
+	protected function get_payment_overview_link(EE_Transaction $transaction)
697
+	{
698
+		$registration = $transaction->primary_registration();
699
+		if ($registration instanceof EE_Registration
700
+			&& $transaction->status_ID() !== EEM_Transaction::complete_status_code
701
+			&& $registration->owes_monies_and_can_pay()
702
+		) {
703
+			return '
704 704
             <li>
705 705
                 <a title="' . esc_attr__('Make Payment from the Frontend.', 'event_espresso') . '"'
706
-                   . ' target="_blank" href="' . $registration->payment_overview_url(true) . '"'
707
-                   . ' class="tiny-text">
706
+				   . ' target="_blank" href="' . $registration->payment_overview_url(true) . '"'
707
+				   . ' class="tiny-text">
708 708
                     <span class="dashicons dashicons-money ee-icon-size-18"></span>
709 709
                 </a>
710 710
             </li>
711 711
             ';
712
-        }
713
-        return '';
714
-    }
712
+		}
713
+		return '';
714
+	}
715 715
 }
Please login to merge, or discard this patch.
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     {
97 97
         $class = parent::_get_row_class($transaction);
98 98
         // add status class
99
-        $class .= ' ee-status-strip txn-status-' . $transaction->status_ID();
99
+        $class .= ' ee-status-strip txn-status-'.$transaction->status_ID();
100 100
         if ($this->_has_checkbox_column) {
101 101
             $class .= ' has-checkbox-column';
102 102
         }
@@ -170,13 +170,13 @@  discard block
 block discarded – undo
170 170
             ),
171 171
             TXN_ADMIN_URL
172 172
         );
173
-        $content = '<a href="' . $view_lnk_url . '"'
174
-                   . ' title="' . esc_attr__('Go to Transaction Details', 'event_espresso') . '">'
173
+        $content = '<a href="'.$view_lnk_url.'"'
174
+                   . ' title="'.esc_attr__('Go to Transaction Details', 'event_espresso').'">'
175 175
                    . $transaction->ID()
176 176
                    . '</a>';
177 177
 
178 178
         // txn timestamp
179
-        $content .= '  <span class="show-on-mobile-view-only">' . $this->_get_txn_timestamp($transaction) . '</span>';
179
+        $content .= '  <span class="show-on-mobile-view-only">'.$this->_get_txn_timestamp($transaction).'</span>';
180 180
         return $content;
181 181
     }
182 182
 
@@ -236,9 +236,9 @@  discard block
 block discarded – undo
236 236
             ),
237 237
             TXN_ADMIN_URL
238 238
         );
239
-        $txn_date = '<a href="' . $view_lnk_url . '"'
239
+        $txn_date = '<a href="'.$view_lnk_url.'"'
240 240
                     . ' title="'
241
-                    . esc_attr__('View Transaction Details for TXN #', 'event_espresso') . $transaction->ID() . '">'
241
+                    . esc_attr__('View Transaction Details for TXN #', 'event_espresso').$transaction->ID().'">'
242 242
                     . $this->_get_txn_timestamp($transaction)
243 243
                     . '</a>';
244 244
         // status
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
                    )
272 272
                    . '</span>';
273 273
         } else {
274
-            return '<span class="txn-overview-free-event-spn">' . esc_html__('free', 'event_espresso') . '</span>';
274
+            return '<span class="txn-overview-free-event-spn">'.esc_html__('free', 'event_espresso').'</span>';
275 275
         }
276 276
     }
277 277
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
             : esc_html__('Unknown', 'event_espresso');
310 310
         $transaction_paid_content = $transaction_paid !== 0 ? $transaction->get_pretty('TXN_paid') : $transaction_paid;
311 311
 
312
-        $content = '<span class="' . $span_class . ' txn-pad-rght">'
312
+        $content = '<span class="'.$span_class.' txn-pad-rght">'
313 313
                    . $transaction_paid_content
314 314
                    . '</span>';
315 315
         if ($transaction_paid > 0) {
@@ -351,12 +351,12 @@  discard block
 block discarded – undo
351 351
                 'espresso_registrations_view_registration',
352 352
                 $primary_reg->ID()
353 353
             )
354
-                ? '<a href="' . $edit_lnk_url . '"'
355
-                  . ' title="' . esc_attr__('View Registration Details', 'event_espresso') . '">'
354
+                ? '<a href="'.$edit_lnk_url.'"'
355
+                  . ' title="'.esc_attr__('View Registration Details', 'event_espresso').'">'
356 356
                   . $attendee->full_name()
357 357
                   . '</a>'
358 358
                 : $attendee->full_name();
359
-            $content .= '<br>' . $attendee->email();
359
+            $content .= '<br>'.$attendee->email();
360 360
             return $content;
361 361
         }
362 362
         return $transaction->failed() || $transaction->is_abandoned()
@@ -378,8 +378,8 @@  discard block
 block discarded – undo
378 378
     public function column_ATT_email(EE_Transaction $transaction)
379 379
     {
380 380
         $attendee = $transaction->primary_registration()->get_first_related('Attendee');
381
-        if (! empty($attendee)) {
382
-            return '<a href="mailto:' . $attendee->get('ATT_email') . '">'
381
+        if ( ! empty($attendee)) {
382
+            return '<a href="mailto:'.$attendee->get('ATT_email').'">'
383 383
                    . $attendee->get('ATT_email')
384 384
                    . '</a>';
385 385
         } else {
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
     {
408 408
         $actions = array();
409 409
         $event = $transaction->primary_registration()->get_first_related('Event');
410
-        if (! empty($event)) {
410
+        if ( ! empty($event)) {
411 411
             $edit_event_url = EE_Admin_Page::add_query_args_and_nonce(
412 412
                 array('action' => 'edit', 'post' => $event->ID()),
413 413
                 EVENTS_ADMIN_URL
@@ -428,11 +428,11 @@  discard block
 block discarded – undo
428 428
                     $event->ID()
429 429
                 )
430 430
             ) {
431
-                $actions['filter_by_event'] = '<a href="' . $txn_by_event_lnk . '"'
432
-                                              . ' title="' . esc_attr__(
431
+                $actions['filter_by_event'] = '<a href="'.$txn_by_event_lnk.'"'
432
+                                              . ' title="'.esc_attr__(
433 433
                                                   'Filter transactions by this event',
434 434
                                                   'event_espresso'
435
-                                              ) . '">'
435
+                                              ).'">'
436 436
                                               . esc_html__('View Transactions for this event', 'event_espresso')
437 437
                                               . '</a>';
438 438
             }
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
                     'espresso_events_edit',
445 445
                     $event->ID()
446 446
                 )
447
-                    ? '<a href="' . $edit_event_url . '"'
447
+                    ? '<a href="'.$edit_event_url.'"'
448 448
                       . ' title="'
449 449
                       . sprintf(
450 450
                           esc_attr__('Edit Event: %s', 'event_espresso'),
@@ -511,8 +511,8 @@  discard block
 block discarded – undo
511 511
         );
512 512
         return '
513 513
 			<li>
514
-				<a href="' . $url . '"'
515
-               . ' title="' . esc_attr__('View Transaction Details', 'event_espresso') . '" class="tiny-text">
514
+				<a href="' . $url.'"'
515
+               . ' title="'.esc_attr__('View Transaction Details', 'event_espresso').'" class="tiny-text">
516 516
 					<span class="dashicons dashicons-cart"></span>
517 517
 				</a>
518 518
 			</li>';
@@ -537,8 +537,8 @@  discard block
 block discarded – undo
537 537
             ) {
538 538
                 return '
539 539
                 <li>
540
-                    <a title="' . esc_attr__('View Transaction Invoice', 'event_espresso') . '"'
541
-                       . ' target="_blank" href="' . $url . '" class="tiny-text">
540
+                    <a title="' . esc_attr__('View Transaction Invoice', 'event_espresso').'"'
541
+                       . ' target="_blank" href="'.$url.'" class="tiny-text">
542 542
                         <span class="dashicons dashicons-media-spreadsheet ee-icon-size-18"></span>
543 543
                     </a>
544 544
                 </li>';
@@ -565,8 +565,8 @@  discard block
 block discarded – undo
565 565
                 && EEH_MSG_Template::is_mt_active('receipt')) {
566 566
                 return '
567 567
 			<li>
568
-				<a title="' . esc_attr__('View Transaction Receipt', 'event_espresso') . '"'
569
-                       . ' target="_blank" href="' . $url . '" class="tiny-text">
568
+				<a title="' . esc_attr__('View Transaction Receipt', 'event_espresso').'"'
569
+                       . ' target="_blank" href="'.$url.'" class="tiny-text">
570 570
 					<span class="dashicons dashicons-media-default ee-icon-size-18"></span>
571 571
 				</a>
572 572
 			</li>';
@@ -604,8 +604,8 @@  discard block
 block discarded – undo
604 604
             )
605 605
                 ? '
606 606
 				<li>
607
-					<a href="' . $url . '"'
608
-                  . ' title="' . esc_attr__('View Registration Details', 'event_espresso') . '" class="tiny-text">
607
+					<a href="' . $url.'"'
608
+                  . ' title="'.esc_attr__('View Registration Details', 'event_espresso').'" class="tiny-text">
609 609
 						<span class="dashicons dashicons-clipboard"></span>
610 610
 					</a>
611 611
 				</li>'
@@ -650,8 +650,8 @@  discard block
 block discarded – undo
650 650
             );
651 651
             return '
652 652
             <li>
653
-                <a href="' . $url . '"'
654
-                   . ' title="' . esc_attr__('Send Payment Reminder', 'event_espresso') . '" class="tiny-text">
653
+                <a href="' . $url.'"'
654
+                   . ' title="'.esc_attr__('Send Payment Reminder', 'event_espresso').'" class="tiny-text">
655 655
                     <span class="dashicons dashicons-email-alt"></span>
656 656
                 </a>
657 657
             </li>';
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
             'ee_read_global_messages',
682 682
             'view_filtered_messages'
683 683
         )
684
-            ? '<li>' . $url . '</li>'
684
+            ? '<li>'.$url.'</li>'
685 685
             : '';
686 686
     }
687 687
 
@@ -702,8 +702,8 @@  discard block
 block discarded – undo
702 702
         ) {
703 703
             return '
704 704
             <li>
705
-                <a title="' . esc_attr__('Make Payment from the Frontend.', 'event_espresso') . '"'
706
-                   . ' target="_blank" href="' . $registration->payment_overview_url(true) . '"'
705
+                <a title="' . esc_attr__('Make Payment from the Frontend.', 'event_espresso').'"'
706
+                   . ' target="_blank" href="'.$registration->payment_overview_url(true).'"'
707 707
                    . ' class="tiny-text">
708 708
                     <span class="dashicons dashicons-money ee-icon-size-18"></span>
709 709
                 </a>
Please login to merge, or discard this patch.
admin_pages/transactions/help_tours/Transaction_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 Transaction_Reports_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Transaction Reports Tour', 'event_espresso');
21
-        $this->_slug = 'transaction-reports-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Transaction Reports Tour', 'event_espresso');
21
+		$this->_slug = 'transaction-reports-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'      => 'txn-admin-revenue-per-day-report-dv',
32
-                'content' => $this->_txn_per_day_report(),
33
-                'options' => array(
34
-                    'tipLocation'    => 'top',
35
-                    'tipAdjustmentY' => -40,
36
-                ),
37
-            ),
38
-            30 => array(
39
-                'id'      => 'txn-admin-revenue-per-event-report-dv',
40
-                'content' => $this->_txn_per_event_report(),
41
-                'options' => array(
42
-                    'tipLocation'    => 'top',
43
-                    'tipAdjustmentY' => -40,
44
-                ),
45
-            ),
46
-        );
47
-    }
24
+	protected function _set_tour_stops()
25
+	{
26
+		$this->_stops = array(
27
+			10 => array(
28
+				'content' => $this->_start(),
29
+			),
30
+			20 => array(
31
+				'id'      => 'txn-admin-revenue-per-day-report-dv',
32
+				'content' => $this->_txn_per_day_report(),
33
+				'options' => array(
34
+					'tipLocation'    => 'top',
35
+					'tipAdjustmentY' => -40,
36
+				),
37
+			),
38
+			30 => array(
39
+				'id'      => 'txn-admin-revenue-per-event-report-dv',
40
+				'content' => $this->_txn_per_event_report(),
41
+				'options' => array(
42
+					'tipLocation'    => 'top',
43
+					'tipAdjustmentY' => -40,
44
+				),
45
+			),
46
+		);
47
+	}
48 48
 
49 49
 
50
-    protected function _start()
51
-    {
52
-        $content = '<h3>' . __('Transaction Reports', 'event_espresso') . '</h3>';
53
-        $content .= '<p>'
54
-                    . __(
55
-                        'This tour of the Transaction 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>' . __('Transaction Reports', 'event_espresso') . '</h3>';
53
+		$content .= '<p>'
54
+					. __(
55
+						'This tour of the Transaction 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 _txn_per_day_report()
62
-    {
63
-        return '<p>' . __('This graph shows revenue for each day.', 'event_espresso') . '</p>';
64
-    }
61
+	protected function _txn_per_day_report()
62
+	{
63
+		return '<p>' . __('This graph shows revenue for each day.', 'event_espresso') . '</p>';
64
+	}
65 65
 
66
-    protected function _txn_per_event_report()
67
-    {
68
-        return '<p>' . __('This graph shows revenue for each event.', 'event_espresso') . '</p>';
69
-    }
66
+	protected function _txn_per_event_report()
67
+	{
68
+		return '<p>' . __('This graph shows revenue 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>' . __('Transaction Reports', 'event_espresso') . '</h3>';
52
+        $content = '<h3>'.__('Transaction Reports', 'event_espresso').'</h3>';
53 53
         $content .= '<p>'
54 54
                     . __(
55 55
                         'This tour of the Transaction 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 _txn_per_day_report()
62 62
     {
63
-        return '<p>' . __('This graph shows revenue for each day.', 'event_espresso') . '</p>';
63
+        return '<p>'.__('This graph shows revenue for each day.', 'event_espresso').'</p>';
64 64
     }
65 65
 
66 66
     protected function _txn_per_event_report()
67 67
     {
68
-        return '<p>' . __('This graph shows revenue for each event.', 'event_espresso') . '</p>';
68
+        return '<p>'.__('This graph shows revenue for each event.', 'event_espresso').'</p>';
69 69
     }
70 70
 }
Please login to merge, or discard this patch.
admin_pages/transactions/help_tours/Transaction_Details_Help_Tour.class.php 2 patches
Indentation   +151 added lines, -151 removed lines patch added patch discarded remove patch
@@ -15,172 +15,172 @@
 block discarded – undo
15 15
 class Transaction_Details_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('View Transaction Tour', 'event_espresso');
21
-        $this->_slug = 'transaction-details-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('View Transaction Tour', 'event_espresso');
21
+		$this->_slug = 'transaction-details-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'      => 'txn-date-h2',
33
-                'content' => $this->_txn_date_h2_stop(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'top',
36
-                    'tipAdjustmentY' => -40,
37
-                    'tipAdjustmentX' => 200,
38
-                ),
39
-            ),
40
-            30 => array(
41
-                'id'      => 'txn-status-h2',
42
-                'content' => $this->_txn_status_h2_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'top',
45
-                    'tipAdjustmentY' => -40,
46
-                    'tipAdjustmentX' => 200,
47
-                ),
48
-            ),
49
-            40 => array(
50
-                /*'id' => 'txn-amount-due-h2',*/
51
-                'content' => $this->_txn_amount_due_h2_stop(),
52
-                /*'options' => array(
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			20 => array(
32
+				'id'      => 'txn-date-h2',
33
+				'content' => $this->_txn_date_h2_stop(),
34
+				'options' => array(
35
+					'tipLocation'    => 'top',
36
+					'tipAdjustmentY' => -40,
37
+					'tipAdjustmentX' => 200,
38
+				),
39
+			),
40
+			30 => array(
41
+				'id'      => 'txn-status-h2',
42
+				'content' => $this->_txn_status_h2_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'top',
45
+					'tipAdjustmentY' => -40,
46
+					'tipAdjustmentX' => 200,
47
+				),
48
+			),
49
+			40 => array(
50
+				/*'id' => 'txn-amount-due-h2',*/
51
+				'content' => $this->_txn_amount_due_h2_stop(),
52
+				/*'options' => array(
53 53
                     'tipLocation' => 'top',
54 54
                     'tipAdjustmentY' => -40,
55 55
                     'tipAdjustmentX' => 200
56 56
                     )*/
57
-            ),
58
-            50 => array(
59
-                'id'      => 'edit-txn-details-mbox',
60
-                'content' => $this->_txn_details_metabox_stop(),
61
-                'options' => array(
62
-                    'tipLocation'    => 'top',
63
-                    'tipAdjustmentY' => -30,
64
-                    'tipAdjustmentX' => 60,
65
-                ),
66
-            ),
67
-            55 => array(
68
-                'id'      => 'display-additional-transaction-session-info',
69
-                'content' => $this->_txn_session_info_stop(),
70
-                'options' => array(
71
-                    'tipLocation'    => 'top',
72
-                    'tipAdjustmentY' => -35,
73
-                    'tipAdjustmentX' => 60,
74
-                ),
75
-            ),
76
-            60 => array(
77
-                'id'      => 'edit-txn-attendees-mbox',
78
-                'content' => $this->_txn_attendees_metabox_stop(),
79
-                'options' => array(
80
-                    'tipLocation'    => 'top',
81
-                    'tipAdjustmentY' => -35,
82
-                    'tipAdjustmentX' => 60,
83
-                ),
84
-            ),
85
-            70 => array(
86
-                'id'      => 'edit-txn-registrant-mbox',
87
-                'content' => $this->_txn_primary_reg_metabox_stop(),
88
-                'options' => array(
89
-                    'tipLocation'    => 'left',
90
-                    'tipAdjustmentY' => -20,
91
-                    'tipAdjustmentX' => -10,
92
-                ),
93
-            ),
94
-            80 => array(
95
-                'id'      => 'edit-txn-billing-info-mbox',
96
-                'content' => $this->_txn_billing_metabox_stop(),
97
-                'options' => array(
98
-                    'tipLocation'    => 'left',
99
-                    'tipAdjustmentY' => -20,
100
-                    'tipAdjustmentX' => -10,
101
-                ),
102
-            ),
103
-        );
104
-    }
57
+			),
58
+			50 => array(
59
+				'id'      => 'edit-txn-details-mbox',
60
+				'content' => $this->_txn_details_metabox_stop(),
61
+				'options' => array(
62
+					'tipLocation'    => 'top',
63
+					'tipAdjustmentY' => -30,
64
+					'tipAdjustmentX' => 60,
65
+				),
66
+			),
67
+			55 => array(
68
+				'id'      => 'display-additional-transaction-session-info',
69
+				'content' => $this->_txn_session_info_stop(),
70
+				'options' => array(
71
+					'tipLocation'    => 'top',
72
+					'tipAdjustmentY' => -35,
73
+					'tipAdjustmentX' => 60,
74
+				),
75
+			),
76
+			60 => array(
77
+				'id'      => 'edit-txn-attendees-mbox',
78
+				'content' => $this->_txn_attendees_metabox_stop(),
79
+				'options' => array(
80
+					'tipLocation'    => 'top',
81
+					'tipAdjustmentY' => -35,
82
+					'tipAdjustmentX' => 60,
83
+				),
84
+			),
85
+			70 => array(
86
+				'id'      => 'edit-txn-registrant-mbox',
87
+				'content' => $this->_txn_primary_reg_metabox_stop(),
88
+				'options' => array(
89
+					'tipLocation'    => 'left',
90
+					'tipAdjustmentY' => -20,
91
+					'tipAdjustmentX' => -10,
92
+				),
93
+			),
94
+			80 => array(
95
+				'id'      => 'edit-txn-billing-info-mbox',
96
+				'content' => $this->_txn_billing_metabox_stop(),
97
+				'options' => array(
98
+					'tipLocation'    => 'left',
99
+					'tipAdjustmentY' => -20,
100
+					'tipAdjustmentX' => -10,
101
+				),
102
+			),
103
+		);
104
+	}
105 105
 
106 106
 
107
-    protected function _start()
108
-    {
109
-        $content = '<h3>' . __('View Transaction', 'event_espresso') . '</h3>';
110
-        $content .= '<p>'
111
-                    . __(
112
-                        'This tour of the View Transaction page will go over different areas of the screen to help you understand what they are used for.',
113
-                        'event_espresso'
114
-                    ) . '</p>';
115
-        return $content;
116
-    }
107
+	protected function _start()
108
+	{
109
+		$content = '<h3>' . __('View Transaction', 'event_espresso') . '</h3>';
110
+		$content .= '<p>'
111
+					. __(
112
+						'This tour of the View Transaction page will go over different areas of the screen to help you understand what they are used for.',
113
+						'event_espresso'
114
+					) . '</p>';
115
+		return $content;
116
+	}
117 117
 
118
-    protected function _txn_date_h2_stop()
119
-    {
120
-        return '<p>' . __('This is the date that the transaction occurred on.', 'event_espresso') . '</p>';
121
-    }
118
+	protected function _txn_date_h2_stop()
119
+	{
120
+		return '<p>' . __('This is the date that the transaction occurred on.', 'event_espresso') . '</p>';
121
+	}
122 122
 
123
-    protected function _txn_status_h2_stop()
124
-    {
125
-        return '<p>'
126
-               . __(
127
-                   'View current status of the transaction. Available statuses are Complete, Failed, Incomplete, and Overpaid.',
128
-                   'event_espresso'
129
-               ) . '</p>';
130
-    }
123
+	protected function _txn_status_h2_stop()
124
+	{
125
+		return '<p>'
126
+			   . __(
127
+				   'View current status of the transaction. Available statuses are Complete, Failed, Incomplete, and Overpaid.',
128
+				   'event_espresso'
129
+			   ) . '</p>';
130
+	}
131 131
 
132
-    protected function _txn_amount_due_h2_stop()
133
-    {
134
-        return '<p>'
135
-               . __(
136
-                   'View the amount due for a transaction (will not appear if the transaction has been paid in full).',
137
-                   'event_espresso'
138
-               ) . '</p>';
139
-    }
132
+	protected function _txn_amount_due_h2_stop()
133
+	{
134
+		return '<p>'
135
+			   . __(
136
+				   'View the amount due for a transaction (will not appear if the transaction has been paid in full).',
137
+				   'event_espresso'
138
+			   ) . '</p>';
139
+	}
140 140
 
141
-    protected function _txn_details_metabox_stop()
142
-    {
143
-        return '<p>'
144
-               . __(
145
-                   'The transaction details area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total. You can also view details about any payments made towards this transaction.',
146
-                   'event_espresso'
147
-               ) . '</p>';
148
-    }
141
+	protected function _txn_details_metabox_stop()
142
+	{
143
+		return '<p>'
144
+			   . __(
145
+				   'The transaction details area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total. You can also view details about any payments made towards this transaction.',
146
+				   'event_espresso'
147
+			   ) . '</p>';
148
+	}
149 149
 
150
-    protected function _txn_session_info_stop()
151
-    {
152
-        return '<p>'
153
-               . __(
154
-                   'You can view additional information about the transaction by clicking on the link below. Examples of available information includes IP Address and User Agent.',
155
-                   'event_espresso'
156
-               ) . '</p>';
157
-    }
150
+	protected function _txn_session_info_stop()
151
+	{
152
+		return '<p>'
153
+			   . __(
154
+				   'You can view additional information about the transaction by clicking on the link below. Examples of available information includes IP Address and User Agent.',
155
+				   'event_espresso'
156
+			   ) . '</p>';
157
+	}
158 158
 
159
-    protected function _txn_attendees_metabox_stop()
160
-    {
161
-        return '<p>'
162
-               . __(
163
-                   'View information about registrants that are linked to this transaction.',
164
-                   'event_espresso'
165
-               ) . '</p>';
166
-    }
159
+	protected function _txn_attendees_metabox_stop()
160
+	{
161
+		return '<p>'
162
+			   . __(
163
+				   'View information about registrants that are linked to this transaction.',
164
+				   'event_espresso'
165
+			   ) . '</p>';
166
+	}
167 167
 
168
-    protected function _txn_primary_reg_metabox_stop()
169
-    {
170
-        return '<p>'
171
-               . __(
172
-                   'View contact details on the primary registrant who is linked to this transaction.',
173
-                   'event_espresso'
174
-               ) . '</p>';
175
-    }
168
+	protected function _txn_primary_reg_metabox_stop()
169
+	{
170
+		return '<p>'
171
+			   . __(
172
+				   'View contact details on the primary registrant who is linked to this transaction.',
173
+				   'event_espresso'
174
+			   ) . '</p>';
175
+	}
176 176
 
177
-    protected function _txn_billing_metabox_stop()
178
-    {
179
-        return '<p>' . __('View billing information for this transaction.', 'event_espresso') . '</p>';
180
-    }
177
+	protected function _txn_billing_metabox_stop()
178
+	{
179
+		return '<p>' . __('View billing information for this transaction.', 'event_espresso') . '</p>';
180
+	}
181 181
 
182
-    protected function _event_name_stop()
183
-    {
184
-        return '<p>' . __('event name', 'event_espresso') . '</p>';
185
-    }
182
+	protected function _event_name_stop()
183
+	{
184
+		return '<p>' . __('event name', 'event_espresso') . '</p>';
185
+	}
186 186
 }
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -106,18 +106,18 @@  discard block
 block discarded – undo
106 106
 
107 107
     protected function _start()
108 108
     {
109
-        $content = '<h3>' . __('View Transaction', 'event_espresso') . '</h3>';
109
+        $content = '<h3>'.__('View Transaction', 'event_espresso').'</h3>';
110 110
         $content .= '<p>'
111 111
                     . __(
112 112
                         'This tour of the View Transaction page will go over different areas of the screen to help you understand what they are used for.',
113 113
                         'event_espresso'
114
-                    ) . '</p>';
114
+                    ).'</p>';
115 115
         return $content;
116 116
     }
117 117
 
118 118
     protected function _txn_date_h2_stop()
119 119
     {
120
-        return '<p>' . __('This is the date that the transaction occurred on.', 'event_espresso') . '</p>';
120
+        return '<p>'.__('This is the date that the transaction occurred on.', 'event_espresso').'</p>';
121 121
     }
122 122
 
123 123
     protected function _txn_status_h2_stop()
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                . __(
127 127
                    'View current status of the transaction. Available statuses are Complete, Failed, Incomplete, and Overpaid.',
128 128
                    'event_espresso'
129
-               ) . '</p>';
129
+               ).'</p>';
130 130
     }
131 131
 
132 132
     protected function _txn_amount_due_h2_stop()
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                . __(
136 136
                    'View the amount due for a transaction (will not appear if the transaction has been paid in full).',
137 137
                    'event_espresso'
138
-               ) . '</p>';
138
+               ).'</p>';
139 139
     }
140 140
 
141 141
     protected function _txn_details_metabox_stop()
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                . __(
145 145
                    'The transaction details area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total. You can also view details about any payments made towards this transaction.',
146 146
                    'event_espresso'
147
-               ) . '</p>';
147
+               ).'</p>';
148 148
     }
149 149
 
150 150
     protected function _txn_session_info_stop()
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                . __(
154 154
                    'You can view additional information about the transaction by clicking on the link below. Examples of available information includes IP Address and User Agent.',
155 155
                    'event_espresso'
156
-               ) . '</p>';
156
+               ).'</p>';
157 157
     }
158 158
 
159 159
     protected function _txn_attendees_metabox_stop()
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                . __(
163 163
                    'View information about registrants that are linked to this transaction.',
164 164
                    'event_espresso'
165
-               ) . '</p>';
165
+               ).'</p>';
166 166
     }
167 167
 
168 168
     protected function _txn_primary_reg_metabox_stop()
@@ -171,16 +171,16 @@  discard block
 block discarded – undo
171 171
                . __(
172 172
                    'View contact details on the primary registrant who is linked to this transaction.',
173 173
                    'event_espresso'
174
-               ) . '</p>';
174
+               ).'</p>';
175 175
     }
176 176
 
177 177
     protected function _txn_billing_metabox_stop()
178 178
     {
179
-        return '<p>' . __('View billing information for this transaction.', 'event_espresso') . '</p>';
179
+        return '<p>'.__('View billing information for this transaction.', 'event_espresso').'</p>';
180 180
     }
181 181
 
182 182
     protected function _event_name_stop()
183 183
     {
184
-        return '<p>' . __('event name', 'event_espresso') . '</p>';
184
+        return '<p>'.__('event name', 'event_espresso').'</p>';
185 185
     }
186 186
 }
Please login to merge, or discard this patch.
transactions/help_tours/Transactions_Overview_Help_Tour.class.php 2 patches
Indentation   +217 added lines, -217 removed lines patch added patch discarded remove patch
@@ -15,221 +15,221 @@
 block discarded – undo
15 15
 class Transactions_Overview_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Transactions Overview Tour', 'event_espresso');
21
-        $this->_slug = 'transaction-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
-            20  => array(
32
-                'id'      => 'TXN_ID',
33
-                'content' => $this->_txn_id_stop(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'top',
36
-                    'tipAdjustmentX' => -20,
37
-                    'tipAdjustmentY' => -30,
38
-                ),
39
-            ),
40
-            30  => array(
41
-                'id'      => 'TXN_timestamp',
42
-                'content' => $this->_txn_timestamp_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'top',
45
-                    'tipAdjustmentX' => 25,
46
-                    'tipAdjustmentY' => -30,
47
-                ),
48
-            ),
49
-            50  => array(
50
-                'id'      => 'TXN_total',
51
-                'content' => $this->_txn_total_stop(),
52
-                'options' => array(
53
-                    'tipLocation'    => 'top',
54
-                    'tipAdjustmentX' => 5,
55
-                    'tipAdjustmentY' => -30,
56
-                ),
57
-            ),
58
-            60  => array(
59
-                'id'      => 'TXN_paid',
60
-                'content' => $this->_txn_paid_stop(),
61
-                'options' => array(
62
-                    'tipLocation'    => 'top',
63
-                    'tipAdjustmentX' => 5,
64
-                    'tipAdjustmentY' => -30,
65
-                ),
66
-            ),
67
-            70  => array(
68
-                'id'      => 'ATT_fname',
69
-                'content' => $this->_attendee_name_stop(),
70
-                'options' => array(
71
-                    'tipLocation'    => 'top',
72
-                    'tipAdjustmentX' => 20,
73
-                    'tipAdjustmentY' => -30,
74
-                ),
75
-            ),
76
-            80  => array(
77
-                'id'      => 'ATT_email',
78
-                'content' => $this->_att_email_stop(),
79
-                'options' => array(
80
-                    'tipLocation'    => 'top',
81
-                    'tipAdjustmentX' => 15,
82
-                    'tipAdjustmentY' => -30,
83
-                ),
84
-            ),
85
-            90  => array(
86
-                'id'      => 'event_name',
87
-                'content' => $this->_event_name_stop(),
88
-                'options' => array(
89
-                    'tipLocation'    => 'top',
90
-                    'tipAdjustmentX' => 0,
91
-                    'tipAdjustmentY' => -30,
92
-                ),
93
-            ),
94
-            100 => array(
95
-                'id'      => 'actions',
96
-                'content' => $this->_actions_stop(),
97
-                'options' => array(
98
-                    'tipLocation'    => 'left',
99
-                    'tipAdjustmentX' => -5,
100
-                    'tipAdjustmentY' => -50,
101
-                ),
102
-            ),
103
-            110 => array(
104
-                'class'   => 'ee-list-table-legend-container',
105
-                'content' => $this->_legend_stop(),
106
-                'options' => array(
107
-                    'tipLocation'    => 'right',
108
-                    'tipAdjustmentX' => 15,
109
-                    'tipAdjustmentY' => -40,
110
-                ),
111
-            ),
112
-            120 => array(
113
-                'id'      => 'txn-filter-start-date',
114
-                'content' => $this->_stop_about_filters(),
115
-                'options' => array(
116
-                    'tipLocation'    => 'top',
117
-                    'tipAdjustmentX' => 105,
118
-                    'tipAdjustmentY' => -45,
119
-                ),
120
-            ),
121
-            130 => array(
122
-                'id'      => 'event-espresso_page_espresso_transactions-search-input',
123
-                'content' => $this->_search_stop(),
124
-                'options' => array(
125
-                    'tipLocation'    => 'left',
126
-                    'tipAdjustmentY' => -50,
127
-                    'tipAdjustmentX' => -15,
128
-                ),
129
-            ),
130
-        );
131
-    }
132
-
133
-
134
-    protected function _start()
135
-    {
136
-        $content = '<h3>' . __('Transactions Overview', 'event_espresso') . '</h3>';
137
-        $content .= '<p>'
138
-                    . __(
139
-                        'This tour of the Transactions Overview page will go over different areas of the screen to help you understand what they are used for.',
140
-                        'event_espresso'
141
-                    ) . '</p>';
142
-        return $content;
143
-    }
144
-
145
-    protected function _txn_id_stop()
146
-    {
147
-        return '<p>'
148
-               . __(
149
-                   'View transaction ID. Can be sorted in ascending or descending order.',
150
-                   'event_espresso'
151
-               ) . '</p>';
152
-    }
153
-
154
-    protected function _txn_timestamp_stop()
155
-    {
156
-        return '<p>'
157
-               . __(
158
-                   'View transaction date. Can be sorted in ascending or descending order.',
159
-                   'event_espresso'
160
-               ) . '</p>';
161
-    }
162
-
163
-    protected function _txn_total_stop()
164
-    {
165
-        return '<p>' . __('View total for transaction.', 'event_espresso') . '</p>';
166
-    }
167
-
168
-    protected function _txn_paid_stop()
169
-    {
170
-        return '<p>' . __('View amount paid for transaction.', 'event_espresso') . '</p>';
171
-    }
172
-
173
-    protected function _attendee_name_stop()
174
-    {
175
-        return '<p>'
176
-               . __(
177
-                   'View name for the primary registrant. Can be sorted in ascending or descending order.',
178
-                   'event_espresso'
179
-               ) . '</p>';
180
-    }
181
-
182
-    protected function _att_email_stop()
183
-    {
184
-        return '<p>'
185
-               . __(
186
-                   'View email address for primary registrant. Can be sorted in ascending or descending order.',
187
-                   'event_espresso'
188
-               ) . '</p>';
189
-    }
190
-
191
-    protected function _event_name_stop()
192
-    {
193
-        return '<p>'
194
-               . __(
195
-                   'View name of event. Can be sorted in ascending or descending order.',
196
-                   'event_espresso'
197
-               ) . '</p>';
198
-    }
199
-
200
-    protected function _actions_stop()
201
-    {
202
-        return '<p>'
203
-               . __(
204
-                   'Perform an action to a transaction. See legend in bottom left corner.',
205
-                   'event_espresso'
206
-               ) . '</p>';
207
-    }
208
-
209
-    protected function _legend_stop()
210
-    {
211
-        return '<p>'
212
-               . __(
213
-                   'This legend that describes the actions available in the actions column. Also shows available statuses for a transaction.',
214
-                   'event_espresso'
215
-               ) . '</p>';
216
-    }
217
-
218
-    protected function _stop_about_filters()
219
-    {
220
-        return '<p>'
221
-               . __(
222
-                   'Filter transactions by date by selecting two dates and clicking on the filter button. You can clear your current date selection by clicking on the reset filters button.',
223
-                   'event_espresso'
224
-               ) . '</p>';
225
-    }
226
-
227
-    protected function _search_stop()
228
-    {
229
-        return '<p>'
230
-               . __(
231
-                   'Search through transactions. 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, Ticket Description, Payment Method, Payment Gateway, Transaction Details, and Transaction Session.',
232
-                   'event_espresso'
233
-               ) . '</p>';
234
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Transactions Overview Tour', 'event_espresso');
21
+		$this->_slug = 'transaction-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
+			20  => array(
32
+				'id'      => 'TXN_ID',
33
+				'content' => $this->_txn_id_stop(),
34
+				'options' => array(
35
+					'tipLocation'    => 'top',
36
+					'tipAdjustmentX' => -20,
37
+					'tipAdjustmentY' => -30,
38
+				),
39
+			),
40
+			30  => array(
41
+				'id'      => 'TXN_timestamp',
42
+				'content' => $this->_txn_timestamp_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'top',
45
+					'tipAdjustmentX' => 25,
46
+					'tipAdjustmentY' => -30,
47
+				),
48
+			),
49
+			50  => array(
50
+				'id'      => 'TXN_total',
51
+				'content' => $this->_txn_total_stop(),
52
+				'options' => array(
53
+					'tipLocation'    => 'top',
54
+					'tipAdjustmentX' => 5,
55
+					'tipAdjustmentY' => -30,
56
+				),
57
+			),
58
+			60  => array(
59
+				'id'      => 'TXN_paid',
60
+				'content' => $this->_txn_paid_stop(),
61
+				'options' => array(
62
+					'tipLocation'    => 'top',
63
+					'tipAdjustmentX' => 5,
64
+					'tipAdjustmentY' => -30,
65
+				),
66
+			),
67
+			70  => array(
68
+				'id'      => 'ATT_fname',
69
+				'content' => $this->_attendee_name_stop(),
70
+				'options' => array(
71
+					'tipLocation'    => 'top',
72
+					'tipAdjustmentX' => 20,
73
+					'tipAdjustmentY' => -30,
74
+				),
75
+			),
76
+			80  => array(
77
+				'id'      => 'ATT_email',
78
+				'content' => $this->_att_email_stop(),
79
+				'options' => array(
80
+					'tipLocation'    => 'top',
81
+					'tipAdjustmentX' => 15,
82
+					'tipAdjustmentY' => -30,
83
+				),
84
+			),
85
+			90  => array(
86
+				'id'      => 'event_name',
87
+				'content' => $this->_event_name_stop(),
88
+				'options' => array(
89
+					'tipLocation'    => 'top',
90
+					'tipAdjustmentX' => 0,
91
+					'tipAdjustmentY' => -30,
92
+				),
93
+			),
94
+			100 => array(
95
+				'id'      => 'actions',
96
+				'content' => $this->_actions_stop(),
97
+				'options' => array(
98
+					'tipLocation'    => 'left',
99
+					'tipAdjustmentX' => -5,
100
+					'tipAdjustmentY' => -50,
101
+				),
102
+			),
103
+			110 => array(
104
+				'class'   => 'ee-list-table-legend-container',
105
+				'content' => $this->_legend_stop(),
106
+				'options' => array(
107
+					'tipLocation'    => 'right',
108
+					'tipAdjustmentX' => 15,
109
+					'tipAdjustmentY' => -40,
110
+				),
111
+			),
112
+			120 => array(
113
+				'id'      => 'txn-filter-start-date',
114
+				'content' => $this->_stop_about_filters(),
115
+				'options' => array(
116
+					'tipLocation'    => 'top',
117
+					'tipAdjustmentX' => 105,
118
+					'tipAdjustmentY' => -45,
119
+				),
120
+			),
121
+			130 => array(
122
+				'id'      => 'event-espresso_page_espresso_transactions-search-input',
123
+				'content' => $this->_search_stop(),
124
+				'options' => array(
125
+					'tipLocation'    => 'left',
126
+					'tipAdjustmentY' => -50,
127
+					'tipAdjustmentX' => -15,
128
+				),
129
+			),
130
+		);
131
+	}
132
+
133
+
134
+	protected function _start()
135
+	{
136
+		$content = '<h3>' . __('Transactions Overview', 'event_espresso') . '</h3>';
137
+		$content .= '<p>'
138
+					. __(
139
+						'This tour of the Transactions Overview page will go over different areas of the screen to help you understand what they are used for.',
140
+						'event_espresso'
141
+					) . '</p>';
142
+		return $content;
143
+	}
144
+
145
+	protected function _txn_id_stop()
146
+	{
147
+		return '<p>'
148
+			   . __(
149
+				   'View transaction ID. Can be sorted in ascending or descending order.',
150
+				   'event_espresso'
151
+			   ) . '</p>';
152
+	}
153
+
154
+	protected function _txn_timestamp_stop()
155
+	{
156
+		return '<p>'
157
+			   . __(
158
+				   'View transaction date. Can be sorted in ascending or descending order.',
159
+				   'event_espresso'
160
+			   ) . '</p>';
161
+	}
162
+
163
+	protected function _txn_total_stop()
164
+	{
165
+		return '<p>' . __('View total for transaction.', 'event_espresso') . '</p>';
166
+	}
167
+
168
+	protected function _txn_paid_stop()
169
+	{
170
+		return '<p>' . __('View amount paid for transaction.', 'event_espresso') . '</p>';
171
+	}
172
+
173
+	protected function _attendee_name_stop()
174
+	{
175
+		return '<p>'
176
+			   . __(
177
+				   'View name for the primary registrant. Can be sorted in ascending or descending order.',
178
+				   'event_espresso'
179
+			   ) . '</p>';
180
+	}
181
+
182
+	protected function _att_email_stop()
183
+	{
184
+		return '<p>'
185
+			   . __(
186
+				   'View email address for primary registrant. Can be sorted in ascending or descending order.',
187
+				   'event_espresso'
188
+			   ) . '</p>';
189
+	}
190
+
191
+	protected function _event_name_stop()
192
+	{
193
+		return '<p>'
194
+			   . __(
195
+				   'View name of event. Can be sorted in ascending or descending order.',
196
+				   'event_espresso'
197
+			   ) . '</p>';
198
+	}
199
+
200
+	protected function _actions_stop()
201
+	{
202
+		return '<p>'
203
+			   . __(
204
+				   'Perform an action to a transaction. See legend in bottom left corner.',
205
+				   'event_espresso'
206
+			   ) . '</p>';
207
+	}
208
+
209
+	protected function _legend_stop()
210
+	{
211
+		return '<p>'
212
+			   . __(
213
+				   'This legend that describes the actions available in the actions column. Also shows available statuses for a transaction.',
214
+				   'event_espresso'
215
+			   ) . '</p>';
216
+	}
217
+
218
+	protected function _stop_about_filters()
219
+	{
220
+		return '<p>'
221
+			   . __(
222
+				   'Filter transactions by date by selecting two dates and clicking on the filter button. You can clear your current date selection by clicking on the reset filters button.',
223
+				   'event_espresso'
224
+			   ) . '</p>';
225
+	}
226
+
227
+	protected function _search_stop()
228
+	{
229
+		return '<p>'
230
+			   . __(
231
+				   'Search through transactions. 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, Ticket Description, Payment Method, Payment Gateway, Transaction Details, and Transaction Session.',
232
+				   'event_espresso'
233
+			   ) . '</p>';
234
+	}
235 235
 }
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -133,12 +133,12 @@  discard block
 block discarded – undo
133 133
 
134 134
     protected function _start()
135 135
     {
136
-        $content = '<h3>' . __('Transactions Overview', 'event_espresso') . '</h3>';
136
+        $content = '<h3>'.__('Transactions Overview', 'event_espresso').'</h3>';
137 137
         $content .= '<p>'
138 138
                     . __(
139 139
                         'This tour of the Transactions Overview page will go over different areas of the screen to help you understand what they are used for.',
140 140
                         'event_espresso'
141
-                    ) . '</p>';
141
+                    ).'</p>';
142 142
         return $content;
143 143
     }
144 144
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                . __(
149 149
                    'View transaction ID. Can be sorted in ascending or descending order.',
150 150
                    'event_espresso'
151
-               ) . '</p>';
151
+               ).'</p>';
152 152
     }
153 153
 
154 154
     protected function _txn_timestamp_stop()
@@ -157,17 +157,17 @@  discard block
 block discarded – undo
157 157
                . __(
158 158
                    'View transaction date. Can be sorted in ascending or descending order.',
159 159
                    'event_espresso'
160
-               ) . '</p>';
160
+               ).'</p>';
161 161
     }
162 162
 
163 163
     protected function _txn_total_stop()
164 164
     {
165
-        return '<p>' . __('View total for transaction.', 'event_espresso') . '</p>';
165
+        return '<p>'.__('View total for transaction.', 'event_espresso').'</p>';
166 166
     }
167 167
 
168 168
     protected function _txn_paid_stop()
169 169
     {
170
-        return '<p>' . __('View amount paid for transaction.', 'event_espresso') . '</p>';
170
+        return '<p>'.__('View amount paid for transaction.', 'event_espresso').'</p>';
171 171
     }
172 172
 
173 173
     protected function _attendee_name_stop()
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
                . __(
177 177
                    'View name for the primary registrant. Can be sorted in ascending or descending order.',
178 178
                    'event_espresso'
179
-               ) . '</p>';
179
+               ).'</p>';
180 180
     }
181 181
 
182 182
     protected function _att_email_stop()
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
                . __(
186 186
                    'View email address for primary registrant. Can be sorted in ascending or descending order.',
187 187
                    'event_espresso'
188
-               ) . '</p>';
188
+               ).'</p>';
189 189
     }
190 190
 
191 191
     protected function _event_name_stop()
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
                . __(
195 195
                    'View name of event. Can be sorted in ascending or descending order.',
196 196
                    'event_espresso'
197
-               ) . '</p>';
197
+               ).'</p>';
198 198
     }
199 199
 
200 200
     protected function _actions_stop()
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
                . __(
204 204
                    'Perform an action to a transaction. See legend in bottom left corner.',
205 205
                    'event_espresso'
206
-               ) . '</p>';
206
+               ).'</p>';
207 207
     }
208 208
 
209 209
     protected function _legend_stop()
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                . __(
213 213
                    'This legend that describes the actions available in the actions column. Also shows available statuses for a transaction.',
214 214
                    'event_espresso'
215
-               ) . '</p>';
215
+               ).'</p>';
216 216
     }
217 217
 
218 218
     protected function _stop_about_filters()
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                . __(
222 222
                    'Filter transactions by date by selecting two dates and clicking on the filter button. You can clear your current date selection by clicking on the reset filters button.',
223 223
                    'event_espresso'
224
-               ) . '</p>';
224
+               ).'</p>';
225 225
     }
226 226
 
227 227
     protected function _search_stop()
@@ -230,6 +230,6 @@  discard block
 block discarded – undo
230 230
                . __(
231 231
                    'Search through transactions. 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, Ticket Description, Payment Method, Payment Gateway, Transaction Details, and Transaction Session.',
232 232
                    'event_espresso'
233
-               ) . '</p>';
233
+               ).'</p>';
234 234
     }
235 235
 }
Please login to merge, or discard this patch.