Completed
Branch Gutenberg/event-attendees-bloc... (dcb43c)
by
unknown
21:24 queued 19:24
created
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.
admin_pages/registrations/EE_Registrations_List_Table.class.php 2 patches
Indentation   +964 added lines, -964 removed lines patch added patch discarded remove patch
@@ -24,1045 +24,1045 @@
 block discarded – undo
24 24
 {
25 25
 
26 26
 
27
-    /**
28
-     * @var array
29
-     */
30
-    private $_status;
27
+	/**
28
+	 * @var array
29
+	 */
30
+	private $_status;
31 31
 
32 32
 
33
-    /**
34
-     * An array of transaction details for the related transaction to the registration being processed.
35
-     * This is set via the _set_related_details method.
36
-     *
37
-     * @var array
38
-     */
39
-    protected $_transaction_details = array();
33
+	/**
34
+	 * An array of transaction details for the related transaction to the registration being processed.
35
+	 * This is set via the _set_related_details method.
36
+	 *
37
+	 * @var array
38
+	 */
39
+	protected $_transaction_details = array();
40 40
 
41 41
 
42
-    /**
43
-     * An array of event details for the related event to the registration being processed.
44
-     * This is set via the _set_related_details method.
45
-     *
46
-     * @var array
47
-     */
48
-    protected $_event_details = array();
42
+	/**
43
+	 * An array of event details for the related event to the registration being processed.
44
+	 * This is set via the _set_related_details method.
45
+	 *
46
+	 * @var array
47
+	 */
48
+	protected $_event_details = array();
49 49
 
50 50
 
51
-    /**
52
-     * @param \Registrations_Admin_Page $admin_page
53
-     */
54
-    public function __construct(Registrations_Admin_Page $admin_page)
55
-    {
56
-        if (! empty($_GET['event_id'])) {
57
-            $extra_query_args = array();
58
-            foreach ($admin_page->get_views() as $key => $view_details) {
59
-                $extra_query_args[ $view_details['slug'] ] = array('event_id' => $_GET['event_id']);
60
-            }
61
-            $this->_views = $admin_page->get_list_table_view_RLs($extra_query_args);
62
-        }
63
-        parent::__construct($admin_page);
64
-        $this->_status = $this->_admin_page->get_registration_status_array();
65
-    }
51
+	/**
52
+	 * @param \Registrations_Admin_Page $admin_page
53
+	 */
54
+	public function __construct(Registrations_Admin_Page $admin_page)
55
+	{
56
+		if (! empty($_GET['event_id'])) {
57
+			$extra_query_args = array();
58
+			foreach ($admin_page->get_views() as $key => $view_details) {
59
+				$extra_query_args[ $view_details['slug'] ] = array('event_id' => $_GET['event_id']);
60
+			}
61
+			$this->_views = $admin_page->get_list_table_view_RLs($extra_query_args);
62
+		}
63
+		parent::__construct($admin_page);
64
+		$this->_status = $this->_admin_page->get_registration_status_array();
65
+	}
66 66
 
67 67
 
68
-    /**
69
-     *    _setup_data
70
-     *
71
-     * @access protected
72
-     * @return void
73
-     */
74
-    protected function _setup_data()
75
-    {
76
-        $this->_data = $this->_admin_page->get_registrations($this->_per_page);
77
-        $this->_all_data_count = $this->_admin_page->get_registrations($this->_per_page, true, false, false);
78
-    }
68
+	/**
69
+	 *    _setup_data
70
+	 *
71
+	 * @access protected
72
+	 * @return void
73
+	 */
74
+	protected function _setup_data()
75
+	{
76
+		$this->_data = $this->_admin_page->get_registrations($this->_per_page);
77
+		$this->_all_data_count = $this->_admin_page->get_registrations($this->_per_page, true, false, false);
78
+	}
79 79
 
80 80
 
81
-    /**
82
-     *    _set_properties
83
-     *
84
-     * @access protected
85
-     * @return void
86
-     */
87
-    protected function _set_properties()
88
-    {
89
-        $this->_wp_list_args = array(
90
-            'singular' => __('registration', 'event_espresso'),
91
-            'plural'   => __('registrations', 'event_espresso'),
92
-            'ajax'     => true,
93
-            'screen'   => $this->_admin_page->get_current_screen()->id,
94
-        );
95
-        $ID_column_name = __('ID', 'event_espresso');
96
-        $ID_column_name .= ' : <span class="show-on-mobile-view-only" style="float:none">';
97
-        $ID_column_name .= __('Registrant Name', 'event_espresso');
98
-        $ID_column_name .= '</span> ';
99
-        if (isset($_GET['event_id'])) {
100
-            $this->_columns = array(
101
-                'cb'               => '<input type="checkbox" />', // Render a checkbox instead of text
102
-                '_REG_ID'          => $ID_column_name,
103
-                'ATT_fname'        => __('Name', 'event_espresso'),
104
-                'ATT_email'        => __('Email', 'event_espresso'),
105
-                '_REG_date'        => __('Reg Date', 'event_espresso'),
106
-                'PRC_amount'       => __('TKT Price', 'event_espresso'),
107
-                '_REG_final_price' => __('Final Price', 'event_espresso'),
108
-                'TXN_total'        => __('Total Txn', 'event_espresso'),
109
-                'TXN_paid'         => __('Paid', 'event_espresso'),
110
-                'actions'          => __('Actions', 'event_espresso'),
111
-            );
112
-            $this->_bottom_buttons = array(
113
-                'report' => array(
114
-                    'route'         => 'registrations_report',
115
-                    'extra_request' => array(
116
-                        'EVT_ID'     => isset($this->_req_data['event_id']) ? $this->_req_data['event_id'] : null,
117
-                        'return_url' => urlencode("//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"),
118
-                    ),
119
-                ),
120
-            );
121
-        } else {
122
-            $this->_columns = array(
123
-                'cb'               => '<input type="checkbox" />', // Render a checkbox instead of text
124
-                '_REG_ID'          => $ID_column_name,
125
-                'ATT_fname'        => __('Name', 'event_espresso'),
126
-                '_REG_date'        => __('TXN Date', 'event_espresso'),
127
-                'event_name'       => __('Event', 'event_espresso'),
128
-                'DTT_EVT_start'    => __('Event Date', 'event_espresso'),
129
-                '_REG_final_price' => __('Price', 'event_espresso'),
130
-                '_REG_paid'        => __('Paid', 'event_espresso'),
131
-                'actions'          => __('Actions', 'event_espresso'),
132
-            );
133
-            $this->_bottom_buttons = array(
134
-                'report_all' => array(
135
-                    'route'         => 'registrations_report',
136
-                    'extra_request' => array(
137
-                        'return_url' => urlencode("//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"),
138
-                    ),
139
-                ),
140
-            );
141
-        }
142
-        $this->_bottom_buttons['report_filtered'] = array(
143
-            'route'         => 'registrations_report',
144
-            'extra_request' => array(
145
-                'use_filters' => true,
146
-                'filters'     => array_diff_key(
147
-                    $this->_req_data,
148
-                    array_flip(
149
-                        array(
150
-                            'page',
151
-                            'action',
152
-                            'default_nonce',
153
-                        )
154
-                    )
155
-                ),
156
-                'return_url'  => urlencode("//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"),
157
-            ),
158
-        );
159
-        $this->_primary_column = '_REG_ID';
160
-        $this->_sortable_columns = array(
161
-            '_REG_date'     => array('_REG_date' => true),   // true means its already sorted
162
-            /**
163
-             * Allows users to change the default sort if they wish.
164
-             * Returning a falsey on this filter will result in the default sort to be by firstname rather than last
165
-             * name.
166
-             */
167
-            'ATT_fname'     => array(
168
-                'FHEE__EE_Registrations_List_Table___set_properties__default_sort_by_registration_last_name',
169
-                true,
170
-                $this,
171
-            )
172
-                ? array('ATT_lname' => false)
173
-                : array('ATT_fname' => false),
174
-            'event_name'    => array('event_name' => false),
175
-            'DTT_EVT_start' => array('DTT_EVT_start' => false),
176
-            '_REG_ID'       => array('_REG_ID' => false),
177
-        );
178
-        $this->_hidden_columns = array();
179
-    }
81
+	/**
82
+	 *    _set_properties
83
+	 *
84
+	 * @access protected
85
+	 * @return void
86
+	 */
87
+	protected function _set_properties()
88
+	{
89
+		$this->_wp_list_args = array(
90
+			'singular' => __('registration', 'event_espresso'),
91
+			'plural'   => __('registrations', 'event_espresso'),
92
+			'ajax'     => true,
93
+			'screen'   => $this->_admin_page->get_current_screen()->id,
94
+		);
95
+		$ID_column_name = __('ID', 'event_espresso');
96
+		$ID_column_name .= ' : <span class="show-on-mobile-view-only" style="float:none">';
97
+		$ID_column_name .= __('Registrant Name', 'event_espresso');
98
+		$ID_column_name .= '</span> ';
99
+		if (isset($_GET['event_id'])) {
100
+			$this->_columns = array(
101
+				'cb'               => '<input type="checkbox" />', // Render a checkbox instead of text
102
+				'_REG_ID'          => $ID_column_name,
103
+				'ATT_fname'        => __('Name', 'event_espresso'),
104
+				'ATT_email'        => __('Email', 'event_espresso'),
105
+				'_REG_date'        => __('Reg Date', 'event_espresso'),
106
+				'PRC_amount'       => __('TKT Price', 'event_espresso'),
107
+				'_REG_final_price' => __('Final Price', 'event_espresso'),
108
+				'TXN_total'        => __('Total Txn', 'event_espresso'),
109
+				'TXN_paid'         => __('Paid', 'event_espresso'),
110
+				'actions'          => __('Actions', 'event_espresso'),
111
+			);
112
+			$this->_bottom_buttons = array(
113
+				'report' => array(
114
+					'route'         => 'registrations_report',
115
+					'extra_request' => array(
116
+						'EVT_ID'     => isset($this->_req_data['event_id']) ? $this->_req_data['event_id'] : null,
117
+						'return_url' => urlencode("//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"),
118
+					),
119
+				),
120
+			);
121
+		} else {
122
+			$this->_columns = array(
123
+				'cb'               => '<input type="checkbox" />', // Render a checkbox instead of text
124
+				'_REG_ID'          => $ID_column_name,
125
+				'ATT_fname'        => __('Name', 'event_espresso'),
126
+				'_REG_date'        => __('TXN Date', 'event_espresso'),
127
+				'event_name'       => __('Event', 'event_espresso'),
128
+				'DTT_EVT_start'    => __('Event Date', 'event_espresso'),
129
+				'_REG_final_price' => __('Price', 'event_espresso'),
130
+				'_REG_paid'        => __('Paid', 'event_espresso'),
131
+				'actions'          => __('Actions', 'event_espresso'),
132
+			);
133
+			$this->_bottom_buttons = array(
134
+				'report_all' => array(
135
+					'route'         => 'registrations_report',
136
+					'extra_request' => array(
137
+						'return_url' => urlencode("//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"),
138
+					),
139
+				),
140
+			);
141
+		}
142
+		$this->_bottom_buttons['report_filtered'] = array(
143
+			'route'         => 'registrations_report',
144
+			'extra_request' => array(
145
+				'use_filters' => true,
146
+				'filters'     => array_diff_key(
147
+					$this->_req_data,
148
+					array_flip(
149
+						array(
150
+							'page',
151
+							'action',
152
+							'default_nonce',
153
+						)
154
+					)
155
+				),
156
+				'return_url'  => urlencode("//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"),
157
+			),
158
+		);
159
+		$this->_primary_column = '_REG_ID';
160
+		$this->_sortable_columns = array(
161
+			'_REG_date'     => array('_REG_date' => true),   // true means its already sorted
162
+			/**
163
+			 * Allows users to change the default sort if they wish.
164
+			 * Returning a falsey on this filter will result in the default sort to be by firstname rather than last
165
+			 * name.
166
+			 */
167
+			'ATT_fname'     => array(
168
+				'FHEE__EE_Registrations_List_Table___set_properties__default_sort_by_registration_last_name',
169
+				true,
170
+				$this,
171
+			)
172
+				? array('ATT_lname' => false)
173
+				: array('ATT_fname' => false),
174
+			'event_name'    => array('event_name' => false),
175
+			'DTT_EVT_start' => array('DTT_EVT_start' => false),
176
+			'_REG_ID'       => array('_REG_ID' => false),
177
+		);
178
+		$this->_hidden_columns = array();
179
+	}
180 180
 
181 181
 
182
-    /**
183
-     * This simply sets up the row class for the table rows.
184
-     * Allows for easier overriding of child methods for setting up sorting.
185
-     *
186
-     * @param  EE_Registration $item the current item
187
-     * @return string
188
-     */
189
-    protected function _get_row_class($item)
190
-    {
191
-        $class = parent::_get_row_class($item);
192
-        // add status class
193
-        $class .= ' ee-status-strip reg-status-' . $item->status_ID();
194
-        if ($this->_has_checkbox_column) {
195
-            $class .= ' has-checkbox-column';
196
-        }
197
-        return $class;
198
-    }
182
+	/**
183
+	 * This simply sets up the row class for the table rows.
184
+	 * Allows for easier overriding of child methods for setting up sorting.
185
+	 *
186
+	 * @param  EE_Registration $item the current item
187
+	 * @return string
188
+	 */
189
+	protected function _get_row_class($item)
190
+	{
191
+		$class = parent::_get_row_class($item);
192
+		// add status class
193
+		$class .= ' ee-status-strip reg-status-' . $item->status_ID();
194
+		if ($this->_has_checkbox_column) {
195
+			$class .= ' has-checkbox-column';
196
+		}
197
+		return $class;
198
+	}
199 199
 
200 200
 
201
-    /**
202
-     * Set the $_transaction_details property if not set yet.
203
-     *
204
-     * @param EE_Registration $registration
205
-     * @throws EE_Error
206
-     * @throws InvalidArgumentException
207
-     * @throws ReflectionException
208
-     * @throws InvalidDataTypeException
209
-     * @throws InvalidInterfaceException
210
-     */
211
-    protected function _set_related_details(EE_Registration $registration)
212
-    {
213
-        $transaction = $registration->get_first_related('Transaction');
214
-        $status = $transaction instanceof EE_Transaction ? $transaction->status_ID()
215
-            : EEM_Transaction::failed_status_code;
216
-        $this->_transaction_details = array(
217
-            'transaction' => $transaction,
218
-            'status'      => $status,
219
-            'id'          => $transaction instanceof EE_Transaction ? $transaction->ID() : 0,
220
-            'title_attr'  => sprintf(
221
-                __('View Transaction Details (%s)', 'event_espresso'),
222
-                EEH_Template::pretty_status($status, false, 'sentence')
223
-            ),
224
-        );
225
-        try {
226
-            $event = $registration->event();
227
-        } catch (EntityNotFoundException $e) {
228
-            $event = null;
229
-        }
230
-        $status = $event instanceof EE_Event ? $event->get_active_status() : EE_Datetime::inactive;
231
-        $this->_event_details = array(
232
-            'event'      => $event,
233
-            'status'     => $status,
234
-            'id'         => $event instanceof EE_Event ? $event->ID() : 0,
235
-            'title_attr' => sprintf(
236
-                __('Edit Event (%s)', 'event_espresso'),
237
-                EEH_Template::pretty_status($status, false, 'sentence')
238
-            ),
239
-        );
240
-    }
201
+	/**
202
+	 * Set the $_transaction_details property if not set yet.
203
+	 *
204
+	 * @param EE_Registration $registration
205
+	 * @throws EE_Error
206
+	 * @throws InvalidArgumentException
207
+	 * @throws ReflectionException
208
+	 * @throws InvalidDataTypeException
209
+	 * @throws InvalidInterfaceException
210
+	 */
211
+	protected function _set_related_details(EE_Registration $registration)
212
+	{
213
+		$transaction = $registration->get_first_related('Transaction');
214
+		$status = $transaction instanceof EE_Transaction ? $transaction->status_ID()
215
+			: EEM_Transaction::failed_status_code;
216
+		$this->_transaction_details = array(
217
+			'transaction' => $transaction,
218
+			'status'      => $status,
219
+			'id'          => $transaction instanceof EE_Transaction ? $transaction->ID() : 0,
220
+			'title_attr'  => sprintf(
221
+				__('View Transaction Details (%s)', 'event_espresso'),
222
+				EEH_Template::pretty_status($status, false, 'sentence')
223
+			),
224
+		);
225
+		try {
226
+			$event = $registration->event();
227
+		} catch (EntityNotFoundException $e) {
228
+			$event = null;
229
+		}
230
+		$status = $event instanceof EE_Event ? $event->get_active_status() : EE_Datetime::inactive;
231
+		$this->_event_details = array(
232
+			'event'      => $event,
233
+			'status'     => $status,
234
+			'id'         => $event instanceof EE_Event ? $event->ID() : 0,
235
+			'title_attr' => sprintf(
236
+				__('Edit Event (%s)', 'event_espresso'),
237
+				EEH_Template::pretty_status($status, false, 'sentence')
238
+			),
239
+		);
240
+	}
241 241
 
242 242
 
243
-    /**
244
-     *    _get_table_filters
245
-     *
246
-     * @access protected
247
-     * @return array
248
-     */
249
-    protected function _get_table_filters()
250
-    {
251
-        $filters = array();
252
-        // todo we're currently using old functions here. We need to move things into the Events_Admin_Page() class as
253
-        // methods.
254
-        $cur_date = isset($this->_req_data['month_range']) ? $this->_req_data['month_range'] : '';
255
-        $cur_category = isset($this->_req_data['EVT_CAT']) ? $this->_req_data['EVT_CAT'] : -1;
256
-        $reg_status = isset($this->_req_data['_reg_status']) ? $this->_req_data['_reg_status'] : '';
257
-        $filters[] = EEH_Form_Fields::generate_registration_months_dropdown($cur_date, $reg_status, $cur_category);
258
-        $filters[] = EEH_Form_Fields::generate_event_category_dropdown($cur_category);
259
-        $status = array();
260
-        $status[] = array('id' => 0, 'text' => __('Select Status', 'event_espresso'));
261
-        foreach ($this->_status as $key => $value) {
262
-            $status[] = array('id' => $key, 'text' => $value);
263
-        }
264
-        if ($this->_view !== 'incomplete') {
265
-            $filters[] = EEH_Form_Fields::select_input(
266
-                '_reg_status',
267
-                $status,
268
-                isset($this->_req_data['_reg_status']) ? strtoupper(sanitize_key($this->_req_data['_reg_status']))
269
-                    : ''
270
-            );
271
-        }
272
-        if (isset($this->_req_data['event_id'])) {
273
-            $filters[] = EEH_Form_Fields::hidden_input('event_id', $this->_req_data['event_id'], 'reg_event_id');
274
-        }
275
-        return $filters;
276
-    }
243
+	/**
244
+	 *    _get_table_filters
245
+	 *
246
+	 * @access protected
247
+	 * @return array
248
+	 */
249
+	protected function _get_table_filters()
250
+	{
251
+		$filters = array();
252
+		// todo we're currently using old functions here. We need to move things into the Events_Admin_Page() class as
253
+		// methods.
254
+		$cur_date = isset($this->_req_data['month_range']) ? $this->_req_data['month_range'] : '';
255
+		$cur_category = isset($this->_req_data['EVT_CAT']) ? $this->_req_data['EVT_CAT'] : -1;
256
+		$reg_status = isset($this->_req_data['_reg_status']) ? $this->_req_data['_reg_status'] : '';
257
+		$filters[] = EEH_Form_Fields::generate_registration_months_dropdown($cur_date, $reg_status, $cur_category);
258
+		$filters[] = EEH_Form_Fields::generate_event_category_dropdown($cur_category);
259
+		$status = array();
260
+		$status[] = array('id' => 0, 'text' => __('Select Status', 'event_espresso'));
261
+		foreach ($this->_status as $key => $value) {
262
+			$status[] = array('id' => $key, 'text' => $value);
263
+		}
264
+		if ($this->_view !== 'incomplete') {
265
+			$filters[] = EEH_Form_Fields::select_input(
266
+				'_reg_status',
267
+				$status,
268
+				isset($this->_req_data['_reg_status']) ? strtoupper(sanitize_key($this->_req_data['_reg_status']))
269
+					: ''
270
+			);
271
+		}
272
+		if (isset($this->_req_data['event_id'])) {
273
+			$filters[] = EEH_Form_Fields::hidden_input('event_id', $this->_req_data['event_id'], 'reg_event_id');
274
+		}
275
+		return $filters;
276
+	}
277 277
 
278 278
 
279
-    /**
280
-     *    _add_view_counts
281
-     *
282
-     * @access protected
283
-     * @return void
284
-     * @throws EE_Error
285
-     * @throws InvalidArgumentException
286
-     * @throws InvalidDataTypeException
287
-     * @throws InvalidInterfaceException
288
-     */
289
-    protected function _add_view_counts()
290
-    {
291
-        $this->_views['all']['count'] = $this->_total_registrations();
292
-        $this->_views['month']['count'] = $this->_total_registrations_this_month();
293
-        $this->_views['today']['count'] = $this->_total_registrations_today();
294
-        if (EE_Registry::instance()->CAP->current_user_can(
295
-            'ee_delete_registrations',
296
-            'espresso_registrations_trash_registrations'
297
-        )) {
298
-            $this->_views['incomplete']['count'] = $this->_total_registrations('incomplete');
299
-            $this->_views['trash']['count'] = $this->_total_registrations('trash');
300
-        }
301
-    }
279
+	/**
280
+	 *    _add_view_counts
281
+	 *
282
+	 * @access protected
283
+	 * @return void
284
+	 * @throws EE_Error
285
+	 * @throws InvalidArgumentException
286
+	 * @throws InvalidDataTypeException
287
+	 * @throws InvalidInterfaceException
288
+	 */
289
+	protected function _add_view_counts()
290
+	{
291
+		$this->_views['all']['count'] = $this->_total_registrations();
292
+		$this->_views['month']['count'] = $this->_total_registrations_this_month();
293
+		$this->_views['today']['count'] = $this->_total_registrations_today();
294
+		if (EE_Registry::instance()->CAP->current_user_can(
295
+			'ee_delete_registrations',
296
+			'espresso_registrations_trash_registrations'
297
+		)) {
298
+			$this->_views['incomplete']['count'] = $this->_total_registrations('incomplete');
299
+			$this->_views['trash']['count'] = $this->_total_registrations('trash');
300
+		}
301
+	}
302 302
 
303 303
 
304
-    /**
305
-     * _total_registrations
306
-     *
307
-     * @access protected
308
-     * @param string $view
309
-     * @return int
310
-     * @throws EE_Error
311
-     * @throws InvalidArgumentException
312
-     * @throws InvalidDataTypeException
313
-     * @throws InvalidInterfaceException
314
-     */
315
-    protected function _total_registrations($view = '')
316
-    {
317
-        $_where = array();
318
-        $EVT_ID = isset($this->_req_data['event_id']) ? absint($this->_req_data['event_id']) : false;
319
-        if ($EVT_ID) {
320
-            $_where['EVT_ID'] = $EVT_ID;
321
-        }
322
-        switch ($view) {
323
-            case 'trash':
324
-                return EEM_Registration::instance()->count_deleted(array($_where));
325
-                break;
326
-            case 'incomplete':
327
-                $_where['STS_ID'] = EEM_Registration::status_id_incomplete;
328
-                break;
329
-            default:
330
-                $_where['STS_ID'] = array('!=', EEM_Registration::status_id_incomplete);
331
-        }
332
-        return EEM_Registration::instance()->count(array($_where));
333
-    }
304
+	/**
305
+	 * _total_registrations
306
+	 *
307
+	 * @access protected
308
+	 * @param string $view
309
+	 * @return int
310
+	 * @throws EE_Error
311
+	 * @throws InvalidArgumentException
312
+	 * @throws InvalidDataTypeException
313
+	 * @throws InvalidInterfaceException
314
+	 */
315
+	protected function _total_registrations($view = '')
316
+	{
317
+		$_where = array();
318
+		$EVT_ID = isset($this->_req_data['event_id']) ? absint($this->_req_data['event_id']) : false;
319
+		if ($EVT_ID) {
320
+			$_where['EVT_ID'] = $EVT_ID;
321
+		}
322
+		switch ($view) {
323
+			case 'trash':
324
+				return EEM_Registration::instance()->count_deleted(array($_where));
325
+				break;
326
+			case 'incomplete':
327
+				$_where['STS_ID'] = EEM_Registration::status_id_incomplete;
328
+				break;
329
+			default:
330
+				$_where['STS_ID'] = array('!=', EEM_Registration::status_id_incomplete);
331
+		}
332
+		return EEM_Registration::instance()->count(array($_where));
333
+	}
334 334
 
335 335
 
336
-    /**
337
-     * _total_registrations_this_month
338
-     *
339
-     * @access protected
340
-     * @return int
341
-     * @throws EE_Error
342
-     * @throws InvalidArgumentException
343
-     * @throws InvalidDataTypeException
344
-     * @throws InvalidInterfaceException
345
-     */
346
-    protected function _total_registrations_this_month()
347
-    {
348
-        $EVT_ID = isset($this->_req_data['event_id']) ? absint($this->_req_data['event_id']) : false;
349
-        $_where = $EVT_ID ? array('EVT_ID' => $EVT_ID) : array();
350
-        $this_year_r = date('Y', current_time('timestamp'));
351
-        $time_start = ' 00:00:00';
352
-        $time_end = ' 23:59:59';
353
-        $this_month_r = date('m', current_time('timestamp'));
354
-        $days_this_month = date('t', current_time('timestamp'));
355
-        // setup date query.
356
-        $beginning_string = EEM_Registration::instance()->convert_datetime_for_query(
357
-            'REG_date',
358
-            $this_year_r . '-' . $this_month_r . '-01' . ' ' . $time_start,
359
-            'Y-m-d H:i:s'
360
-        );
361
-        $end_string = EEM_Registration::instance()->convert_datetime_for_query(
362
-            'REG_date',
363
-            $this_year_r . '-' . $this_month_r . '-' . $days_this_month . ' ' . $time_end,
364
-            'Y-m-d H:i:s'
365
-        );
366
-        $_where['REG_date'] = array(
367
-            'BETWEEN',
368
-            array(
369
-                $beginning_string,
370
-                $end_string,
371
-            ),
372
-        );
373
-        $_where['STS_ID'] = array('!=', EEM_Registration::status_id_incomplete);
374
-        return EEM_Registration::instance()->count(array($_where));
375
-    }
336
+	/**
337
+	 * _total_registrations_this_month
338
+	 *
339
+	 * @access protected
340
+	 * @return int
341
+	 * @throws EE_Error
342
+	 * @throws InvalidArgumentException
343
+	 * @throws InvalidDataTypeException
344
+	 * @throws InvalidInterfaceException
345
+	 */
346
+	protected function _total_registrations_this_month()
347
+	{
348
+		$EVT_ID = isset($this->_req_data['event_id']) ? absint($this->_req_data['event_id']) : false;
349
+		$_where = $EVT_ID ? array('EVT_ID' => $EVT_ID) : array();
350
+		$this_year_r = date('Y', current_time('timestamp'));
351
+		$time_start = ' 00:00:00';
352
+		$time_end = ' 23:59:59';
353
+		$this_month_r = date('m', current_time('timestamp'));
354
+		$days_this_month = date('t', current_time('timestamp'));
355
+		// setup date query.
356
+		$beginning_string = EEM_Registration::instance()->convert_datetime_for_query(
357
+			'REG_date',
358
+			$this_year_r . '-' . $this_month_r . '-01' . ' ' . $time_start,
359
+			'Y-m-d H:i:s'
360
+		);
361
+		$end_string = EEM_Registration::instance()->convert_datetime_for_query(
362
+			'REG_date',
363
+			$this_year_r . '-' . $this_month_r . '-' . $days_this_month . ' ' . $time_end,
364
+			'Y-m-d H:i:s'
365
+		);
366
+		$_where['REG_date'] = array(
367
+			'BETWEEN',
368
+			array(
369
+				$beginning_string,
370
+				$end_string,
371
+			),
372
+		);
373
+		$_where['STS_ID'] = array('!=', EEM_Registration::status_id_incomplete);
374
+		return EEM_Registration::instance()->count(array($_where));
375
+	}
376 376
 
377 377
 
378
-    /**
379
-     * _total_registrations_today
380
-     *
381
-     * @access protected
382
-     * @return int
383
-     * @throws EE_Error
384
-     * @throws InvalidArgumentException
385
-     * @throws InvalidDataTypeException
386
-     * @throws InvalidInterfaceException
387
-     */
388
-    protected function _total_registrations_today()
389
-    {
390
-        $EVT_ID = isset($this->_req_data['event_id']) ? absint($this->_req_data['event_id']) : false;
391
-        $_where = $EVT_ID ? array('EVT_ID' => $EVT_ID) : array();
392
-        $current_date = date('Y-m-d', current_time('timestamp'));
393
-        $time_start = ' 00:00:00';
394
-        $time_end = ' 23:59:59';
395
-        $_where['REG_date'] = array(
396
-            'BETWEEN',
397
-            array(
398
-                EEM_Registration::instance()->convert_datetime_for_query(
399
-                    'REG_date',
400
-                    $current_date . $time_start,
401
-                    'Y-m-d H:i:s'
402
-                ),
403
-                EEM_Registration::instance()->convert_datetime_for_query(
404
-                    'REG_date',
405
-                    $current_date . $time_end,
406
-                    'Y-m-d H:i:s'
407
-                ),
408
-            ),
409
-        );
410
-        $_where['STS_ID'] = array('!=', EEM_Registration::status_id_incomplete);
411
-        return EEM_Registration::instance()->count(array($_where));
412
-    }
378
+	/**
379
+	 * _total_registrations_today
380
+	 *
381
+	 * @access protected
382
+	 * @return int
383
+	 * @throws EE_Error
384
+	 * @throws InvalidArgumentException
385
+	 * @throws InvalidDataTypeException
386
+	 * @throws InvalidInterfaceException
387
+	 */
388
+	protected function _total_registrations_today()
389
+	{
390
+		$EVT_ID = isset($this->_req_data['event_id']) ? absint($this->_req_data['event_id']) : false;
391
+		$_where = $EVT_ID ? array('EVT_ID' => $EVT_ID) : array();
392
+		$current_date = date('Y-m-d', current_time('timestamp'));
393
+		$time_start = ' 00:00:00';
394
+		$time_end = ' 23:59:59';
395
+		$_where['REG_date'] = array(
396
+			'BETWEEN',
397
+			array(
398
+				EEM_Registration::instance()->convert_datetime_for_query(
399
+					'REG_date',
400
+					$current_date . $time_start,
401
+					'Y-m-d H:i:s'
402
+				),
403
+				EEM_Registration::instance()->convert_datetime_for_query(
404
+					'REG_date',
405
+					$current_date . $time_end,
406
+					'Y-m-d H:i:s'
407
+				),
408
+			),
409
+		);
410
+		$_where['STS_ID'] = array('!=', EEM_Registration::status_id_incomplete);
411
+		return EEM_Registration::instance()->count(array($_where));
412
+	}
413 413
 
414 414
 
415
-    /**
416
-     * column_cb
417
-     *
418
-     * @access public
419
-     * @param \EE_Registration $item
420
-     * @return string
421
-     * @throws EE_Error
422
-     * @throws InvalidArgumentException
423
-     * @throws InvalidDataTypeException
424
-     * @throws InvalidInterfaceException
425
-     * @throws ReflectionException
426
-     */
427
-    public function column_cb($item)
428
-    {
429
-        /** checkbox/lock **/
430
-        $transaction = $item->get_first_related('Transaction');
431
-        $payment_count = $transaction instanceof EE_Transaction
432
-            ? $transaction->count_related('Payment')
433
-            : 0;
434
-        return $payment_count > 0
435
-               || ! EE_Registry::instance()->CAP->current_user_can(
436
-                   'ee_edit_registration',
437
-                   'registration_list_table_checkbox_input',
438
-                   $item->ID()
439
-               )
440
-            ? sprintf('<input type="checkbox" name="_REG_ID[]" value="%1$d" />', $item->ID())
441
-              . '<span class="ee-lock-icon"></span>'
442
-            : sprintf('<input type="checkbox" name="_REG_ID[]" value="%1$d" />', $item->ID());
443
-    }
415
+	/**
416
+	 * column_cb
417
+	 *
418
+	 * @access public
419
+	 * @param \EE_Registration $item
420
+	 * @return string
421
+	 * @throws EE_Error
422
+	 * @throws InvalidArgumentException
423
+	 * @throws InvalidDataTypeException
424
+	 * @throws InvalidInterfaceException
425
+	 * @throws ReflectionException
426
+	 */
427
+	public function column_cb($item)
428
+	{
429
+		/** checkbox/lock **/
430
+		$transaction = $item->get_first_related('Transaction');
431
+		$payment_count = $transaction instanceof EE_Transaction
432
+			? $transaction->count_related('Payment')
433
+			: 0;
434
+		return $payment_count > 0
435
+			   || ! EE_Registry::instance()->CAP->current_user_can(
436
+				   'ee_edit_registration',
437
+				   'registration_list_table_checkbox_input',
438
+				   $item->ID()
439
+			   )
440
+			? sprintf('<input type="checkbox" name="_REG_ID[]" value="%1$d" />', $item->ID())
441
+			  . '<span class="ee-lock-icon"></span>'
442
+			: sprintf('<input type="checkbox" name="_REG_ID[]" value="%1$d" />', $item->ID());
443
+	}
444 444
 
445 445
 
446
-    /**
447
-     * column__REG_ID
448
-     *
449
-     * @access public
450
-     * @param \EE_Registration $item
451
-     * @return string
452
-     * @throws EE_Error
453
-     * @throws InvalidArgumentException
454
-     * @throws InvalidDataTypeException
455
-     * @throws InvalidInterfaceException
456
-     * @throws ReflectionException
457
-     */
458
-    public function column__REG_ID(EE_Registration $item)
459
-    {
460
-        $attendee = $item->attendee();
461
-        $content = $item->ID();
462
-        $content .= '<div class="show-on-mobile-view-only">';
463
-        $content .= '<br>';
464
-        $content .= $attendee instanceof EE_Attendee ? $attendee->full_name() : '';
465
-        $content .= '&nbsp;' . sprintf(__('(%1$s / %2$s)', 'event_espresso'), $item->count(), $item->group_size());
466
-        $content .= '<br>' . sprintf(__('Reg Code: %s', 'event_espresso'), $item->get('REG_code'));
467
-        $content .= '</div>';
468
-        return $content;
469
-    }
446
+	/**
447
+	 * column__REG_ID
448
+	 *
449
+	 * @access public
450
+	 * @param \EE_Registration $item
451
+	 * @return string
452
+	 * @throws EE_Error
453
+	 * @throws InvalidArgumentException
454
+	 * @throws InvalidDataTypeException
455
+	 * @throws InvalidInterfaceException
456
+	 * @throws ReflectionException
457
+	 */
458
+	public function column__REG_ID(EE_Registration $item)
459
+	{
460
+		$attendee = $item->attendee();
461
+		$content = $item->ID();
462
+		$content .= '<div class="show-on-mobile-view-only">';
463
+		$content .= '<br>';
464
+		$content .= $attendee instanceof EE_Attendee ? $attendee->full_name() : '';
465
+		$content .= '&nbsp;' . sprintf(__('(%1$s / %2$s)', 'event_espresso'), $item->count(), $item->group_size());
466
+		$content .= '<br>' . sprintf(__('Reg Code: %s', 'event_espresso'), $item->get('REG_code'));
467
+		$content .= '</div>';
468
+		return $content;
469
+	}
470 470
 
471 471
 
472
-    /**
473
-     * column__REG_date
474
-     *
475
-     * @access public
476
-     * @param \EE_Registration $item
477
-     * @return string
478
-     * @throws EE_Error
479
-     * @throws InvalidArgumentException
480
-     * @throws InvalidDataTypeException
481
-     * @throws InvalidInterfaceException
482
-     * @throws ReflectionException
483
-     */
484
-    public function column__REG_date(EE_Registration $item)
485
-    {
486
-        $this->_set_related_details($item);
487
-        // Build row actions
488
-        $view_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
489
-            array(
490
-                'action' => 'view_transaction',
491
-                'TXN_ID' => $this->_transaction_details['id'],
492
-            ),
493
-            TXN_ADMIN_URL
494
-        );
495
-        $view_link = EE_Registry::instance()->CAP->current_user_can(
496
-            'ee_read_transaction',
497
-            'espresso_transactions_view_transaction'
498
-        )
499
-            ? '<a class="ee-status-color-'
500
-              . $this->_transaction_details['status']
501
-              . '" href="'
502
-              . $view_lnk_url
503
-              . '" title="'
504
-              . esc_attr($this->_transaction_details['title_attr'])
505
-              . '">'
506
-              . $item->get_i18n_datetime('REG_date')
507
-              . '</a>' : $item->get_i18n_datetime('REG_date');
508
-        $view_link .= '<br><span class="ee-status-text-small">'
509
-                      . EEH_Template::pretty_status($this->_transaction_details['status'], false, 'sentence')
510
-                      . '</span>';
511
-        return $view_link;
512
-    }
472
+	/**
473
+	 * column__REG_date
474
+	 *
475
+	 * @access public
476
+	 * @param \EE_Registration $item
477
+	 * @return string
478
+	 * @throws EE_Error
479
+	 * @throws InvalidArgumentException
480
+	 * @throws InvalidDataTypeException
481
+	 * @throws InvalidInterfaceException
482
+	 * @throws ReflectionException
483
+	 */
484
+	public function column__REG_date(EE_Registration $item)
485
+	{
486
+		$this->_set_related_details($item);
487
+		// Build row actions
488
+		$view_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
489
+			array(
490
+				'action' => 'view_transaction',
491
+				'TXN_ID' => $this->_transaction_details['id'],
492
+			),
493
+			TXN_ADMIN_URL
494
+		);
495
+		$view_link = EE_Registry::instance()->CAP->current_user_can(
496
+			'ee_read_transaction',
497
+			'espresso_transactions_view_transaction'
498
+		)
499
+			? '<a class="ee-status-color-'
500
+			  . $this->_transaction_details['status']
501
+			  . '" href="'
502
+			  . $view_lnk_url
503
+			  . '" title="'
504
+			  . esc_attr($this->_transaction_details['title_attr'])
505
+			  . '">'
506
+			  . $item->get_i18n_datetime('REG_date')
507
+			  . '</a>' : $item->get_i18n_datetime('REG_date');
508
+		$view_link .= '<br><span class="ee-status-text-small">'
509
+					  . EEH_Template::pretty_status($this->_transaction_details['status'], false, 'sentence')
510
+					  . '</span>';
511
+		return $view_link;
512
+	}
513 513
 
514 514
 
515
-    /**
516
-     * column_event_name
517
-     *
518
-     * @access public
519
-     * @param \EE_Registration $item
520
-     * @return string
521
-     * @throws EE_Error
522
-     * @throws InvalidArgumentException
523
-     * @throws InvalidDataTypeException
524
-     * @throws InvalidInterfaceException
525
-     * @throws ReflectionException
526
-     */
527
-    public function column_event_name(EE_Registration $item)
528
-    {
529
-        $this->_set_related_details($item);
530
-        // page=espresso_events&action=edit_event&EVT_ID=2&edit_event_nonce=cf3a7e5b62
531
-        $EVT_ID = $item->event_ID();
532
-        $event_name = $item->event_name();
533
-        $event_name = $event_name ? $event_name : __("No Associated Event", 'event_espresso');
534
-        $event_name = wp_trim_words($event_name, 30, '...');
535
-        if ($EVT_ID) {
536
-            $edit_event_url = EE_Admin_Page::add_query_args_and_nonce(
537
-                array('action' => 'edit', 'post' => $EVT_ID),
538
-                EVENTS_ADMIN_URL
539
-            );
540
-            $edit_event = EE_Registry::instance()->CAP->current_user_can('ee_edit_event', 'edit_event', $EVT_ID)
541
-                ? '<a class="ee-status-color-'
542
-                  . $this->_event_details['status']
543
-                  . '" href="'
544
-                  . $edit_event_url
545
-                  . '" title="'
546
-                  . esc_attr($this->_event_details['title_attr'])
547
-                  . '">'
548
-                  . $event_name
549
-                  . '</a>' : $event_name;
550
-            $edit_event_url = EE_Admin_Page::add_query_args_and_nonce(array('event_id' => $EVT_ID), REG_ADMIN_URL);
551
-            $actions['event_filter'] = '<a href="' . $edit_event_url . '" title="';
552
-            $actions['event_filter'] .= sprintf(
553
-                esc_attr__('Filter this list to only show registrations for %s', 'event_espresso'),
554
-                $event_name
555
-            );
556
-            $actions['event_filter'] .= '">' . __('View Registrations', 'event_espresso') . '</a>';
557
-        } else {
558
-            $edit_event = $event_name;
559
-            $actions['event_filter'] = '';
560
-        }
561
-        return sprintf('%1$s %2$s', $edit_event, $this->row_actions($actions));
562
-    }
515
+	/**
516
+	 * column_event_name
517
+	 *
518
+	 * @access public
519
+	 * @param \EE_Registration $item
520
+	 * @return string
521
+	 * @throws EE_Error
522
+	 * @throws InvalidArgumentException
523
+	 * @throws InvalidDataTypeException
524
+	 * @throws InvalidInterfaceException
525
+	 * @throws ReflectionException
526
+	 */
527
+	public function column_event_name(EE_Registration $item)
528
+	{
529
+		$this->_set_related_details($item);
530
+		// page=espresso_events&action=edit_event&EVT_ID=2&edit_event_nonce=cf3a7e5b62
531
+		$EVT_ID = $item->event_ID();
532
+		$event_name = $item->event_name();
533
+		$event_name = $event_name ? $event_name : __("No Associated Event", 'event_espresso');
534
+		$event_name = wp_trim_words($event_name, 30, '...');
535
+		if ($EVT_ID) {
536
+			$edit_event_url = EE_Admin_Page::add_query_args_and_nonce(
537
+				array('action' => 'edit', 'post' => $EVT_ID),
538
+				EVENTS_ADMIN_URL
539
+			);
540
+			$edit_event = EE_Registry::instance()->CAP->current_user_can('ee_edit_event', 'edit_event', $EVT_ID)
541
+				? '<a class="ee-status-color-'
542
+				  . $this->_event_details['status']
543
+				  . '" href="'
544
+				  . $edit_event_url
545
+				  . '" title="'
546
+				  . esc_attr($this->_event_details['title_attr'])
547
+				  . '">'
548
+				  . $event_name
549
+				  . '</a>' : $event_name;
550
+			$edit_event_url = EE_Admin_Page::add_query_args_and_nonce(array('event_id' => $EVT_ID), REG_ADMIN_URL);
551
+			$actions['event_filter'] = '<a href="' . $edit_event_url . '" title="';
552
+			$actions['event_filter'] .= sprintf(
553
+				esc_attr__('Filter this list to only show registrations for %s', 'event_espresso'),
554
+				$event_name
555
+			);
556
+			$actions['event_filter'] .= '">' . __('View Registrations', 'event_espresso') . '</a>';
557
+		} else {
558
+			$edit_event = $event_name;
559
+			$actions['event_filter'] = '';
560
+		}
561
+		return sprintf('%1$s %2$s', $edit_event, $this->row_actions($actions));
562
+	}
563 563
 
564 564
 
565
-    /**
566
-     * column_DTT_EVT_start
567
-     *
568
-     * @access public
569
-     * @param \EE_Registration $item
570
-     * @return string
571
-     * @throws EE_Error
572
-     * @throws InvalidArgumentException
573
-     * @throws InvalidDataTypeException
574
-     * @throws InvalidInterfaceException
575
-     * @throws ReflectionException
576
-     */
577
-    public function column_DTT_EVT_start(EE_Registration $item)
578
-    {
579
-        $datetime_strings = array();
580
-        $ticket = $item->ticket(true);
581
-        if ($ticket instanceof EE_Ticket) {
582
-            $remove_defaults = array('default_where_conditions' => 'none');
583
-            $datetimes = $ticket->datetimes($remove_defaults);
584
-            foreach ($datetimes as $datetime) {
585
-                $datetime_strings[] = $datetime->get_i18n_datetime('DTT_EVT_start');
586
-            }
587
-            return $this->generateDisplayForDatetimes($datetime_strings);
588
-        }
589
-        return __('There is no ticket on this registration', 'event_espresso');
590
-    }
565
+	/**
566
+	 * column_DTT_EVT_start
567
+	 *
568
+	 * @access public
569
+	 * @param \EE_Registration $item
570
+	 * @return string
571
+	 * @throws EE_Error
572
+	 * @throws InvalidArgumentException
573
+	 * @throws InvalidDataTypeException
574
+	 * @throws InvalidInterfaceException
575
+	 * @throws ReflectionException
576
+	 */
577
+	public function column_DTT_EVT_start(EE_Registration $item)
578
+	{
579
+		$datetime_strings = array();
580
+		$ticket = $item->ticket(true);
581
+		if ($ticket instanceof EE_Ticket) {
582
+			$remove_defaults = array('default_where_conditions' => 'none');
583
+			$datetimes = $ticket->datetimes($remove_defaults);
584
+			foreach ($datetimes as $datetime) {
585
+				$datetime_strings[] = $datetime->get_i18n_datetime('DTT_EVT_start');
586
+			}
587
+			return $this->generateDisplayForDatetimes($datetime_strings);
588
+		}
589
+		return __('There is no ticket on this registration', 'event_espresso');
590
+	}
591 591
 
592 592
 
593
-    /**
594
-     * Receives an array of datetime strings to display and converts them to the html container for the column.
595
-     *
596
-     * @param array $datetime_strings
597
-     * @return string
598
-     */
599
-    public function generateDisplayForDateTimes(array $datetime_strings)
600
-    {
601
-        $content = '<div class="ee-registration-event-datetimes-container">';
602
-        $expand_toggle = count($datetime_strings) > 1
603
-            ? ' <span title="' . esc_attr__('Click to view all dates', 'event_espresso')
604
-              . '" class="ee-js ee-more-datetimes-toggle dashicons dashicons-plus"></span>'
605
-            : '';
606
-        // get first item for initial visibility
607
-        $content .= '<div class="left">' . array_shift($datetime_strings) . '</div>';
608
-        $content .= $expand_toggle;
609
-        if ($datetime_strings) {
610
-            $content .= '<div style="clear:both"></div>';
611
-            $content .= '<div class="ee-registration-event-datetimes-container more-items hidden">';
612
-            $content .= implode("<br />", $datetime_strings);
613
-            $content .= '</div>';
614
-        }
615
-        $content .= '</div>';
616
-        return $content;
617
-    }
593
+	/**
594
+	 * Receives an array of datetime strings to display and converts them to the html container for the column.
595
+	 *
596
+	 * @param array $datetime_strings
597
+	 * @return string
598
+	 */
599
+	public function generateDisplayForDateTimes(array $datetime_strings)
600
+	{
601
+		$content = '<div class="ee-registration-event-datetimes-container">';
602
+		$expand_toggle = count($datetime_strings) > 1
603
+			? ' <span title="' . esc_attr__('Click to view all dates', 'event_espresso')
604
+			  . '" class="ee-js ee-more-datetimes-toggle dashicons dashicons-plus"></span>'
605
+			: '';
606
+		// get first item for initial visibility
607
+		$content .= '<div class="left">' . array_shift($datetime_strings) . '</div>';
608
+		$content .= $expand_toggle;
609
+		if ($datetime_strings) {
610
+			$content .= '<div style="clear:both"></div>';
611
+			$content .= '<div class="ee-registration-event-datetimes-container more-items hidden">';
612
+			$content .= implode("<br />", $datetime_strings);
613
+			$content .= '</div>';
614
+		}
615
+		$content .= '</div>';
616
+		return $content;
617
+	}
618 618
 
619 619
 
620
-    /**
621
-     * column_ATT_fname
622
-     *
623
-     * @access public
624
-     * @param \EE_Registration $item
625
-     * @return string
626
-     * @throws EE_Error
627
-     * @throws InvalidArgumentException
628
-     * @throws InvalidDataTypeException
629
-     * @throws InvalidInterfaceException
630
-     * @throws ReflectionException
631
-     */
632
-    public function column_ATT_fname(EE_Registration $item)
633
-    {
634
-        $attendee = $item->attendee();
635
-        $edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
636
-            array(
637
-                'action'  => 'view_registration',
638
-                '_REG_ID' => $item->ID(),
639
-            ),
640
-            REG_ADMIN_URL
641
-        );
642
-        $attendee_name = $attendee instanceof EE_Attendee ? $attendee->full_name() : '';
643
-        $link = EE_Registry::instance()->CAP->current_user_can(
644
-            'ee_read_registration',
645
-            'espresso_registrations_view_registration',
646
-            $item->ID()
647
-        )
648
-            ? '<a href="'
649
-              . $edit_lnk_url
650
-              . '" title="'
651
-              . esc_attr__('View Registration Details', 'event_espresso')
652
-              . '">'
653
-              . $attendee_name
654
-              . '</a>' : $attendee_name;
655
-        $link .= $item->count() === 1
656
-            ? '&nbsp;<sup><div class="dashicons dashicons-star-filled lt-blue-icon ee-icon-size-8"></div></sup>' : '';
657
-        $t = $item->get_first_related('Transaction');
658
-        $payment_count = $t instanceof EE_Transaction ? $t->count_related('Payment') : 0;
659
-        // append group count to name
660
-        $link .= '&nbsp;' . sprintf(__('(%1$s / %2$s)', 'event_espresso'), $item->count(), $item->group_size());
661
-        // append reg_code
662
-        $link .= '<br>' . sprintf(__('Reg Code: %s', 'event_espresso'), $item->get('REG_code'));
663
-        // reg status text for accessibility
664
-        $link .= '<br><span class="ee-status-text-small">'
665
-                 . EEH_Template::pretty_status($item->status_ID(), false, 'sentence')
666
-                 . '</span>';
667
-        // trash/restore/delete actions
668
-        $actions = array();
669
-        if ($this->_view !== 'trash'
670
-            && $payment_count === 0
671
-            && EE_Registry::instance()->CAP->current_user_can(
672
-                'ee_delete_registration',
673
-                'espresso_registrations_trash_registrations',
674
-                $item->ID()
675
-            )) {
676
-            $trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
677
-                array(
678
-                    'action'  => 'trash_registrations',
679
-                    '_REG_ID' => $item->ID(),
680
-                ),
681
-                REG_ADMIN_URL
682
-            );
683
-            $actions['trash'] = '<a href="'
684
-                                . $trash_lnk_url
685
-                                . '" title="'
686
-                                . esc_attr__('Trash Registration', 'event_espresso')
687
-                                . '">' . __('Trash', 'event_espresso') . '</a>';
688
-        } elseif ($this->_view === 'trash') {
689
-            // restore registration link
690
-            if (EE_Registry::instance()->CAP->current_user_can(
691
-                'ee_delete_registration',
692
-                'espresso_registrations_restore_registrations',
693
-                $item->ID()
694
-            )) {
695
-                $restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
696
-                    array(
697
-                        'action'  => 'restore_registrations',
698
-                        '_REG_ID' => $item->ID(),
699
-                    ),
700
-                    REG_ADMIN_URL
701
-                );
702
-                $actions['restore'] = '<a href="'
703
-                                      . $restore_lnk_url
704
-                                      . '" title="'
705
-                                      . esc_attr__('Restore Registration', 'event_espresso') . '">'
706
-                                      . __('Restore', 'event_espresso') . '</a>';
707
-            }
708
-            if (EE_Registry::instance()->CAP->current_user_can(
709
-                'ee_delete_registration',
710
-                'espresso_registrations_ee_delete_registrations',
711
-                $item->ID()
712
-            )) {
713
-                $delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
714
-                    array(
715
-                        'action'  => 'delete_registrations',
716
-                        '_REG_ID' => $item->ID(),
717
-                    ),
718
-                    REG_ADMIN_URL
719
-                );
720
-                $actions['delete'] = '<a href="'
721
-                                     . $delete_lnk_url
722
-                                     . '" title="'
723
-                                     . esc_attr__('Delete Registration Permanently', 'event_espresso')
724
-                                     . '">'
725
-                                     . __('Delete', 'event_espresso')
726
-                                     . '</a>';
727
-            }
728
-        }
729
-        return sprintf('%1$s %2$s', $link, $this->row_actions($actions));
730
-    }
620
+	/**
621
+	 * column_ATT_fname
622
+	 *
623
+	 * @access public
624
+	 * @param \EE_Registration $item
625
+	 * @return string
626
+	 * @throws EE_Error
627
+	 * @throws InvalidArgumentException
628
+	 * @throws InvalidDataTypeException
629
+	 * @throws InvalidInterfaceException
630
+	 * @throws ReflectionException
631
+	 */
632
+	public function column_ATT_fname(EE_Registration $item)
633
+	{
634
+		$attendee = $item->attendee();
635
+		$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
636
+			array(
637
+				'action'  => 'view_registration',
638
+				'_REG_ID' => $item->ID(),
639
+			),
640
+			REG_ADMIN_URL
641
+		);
642
+		$attendee_name = $attendee instanceof EE_Attendee ? $attendee->full_name() : '';
643
+		$link = EE_Registry::instance()->CAP->current_user_can(
644
+			'ee_read_registration',
645
+			'espresso_registrations_view_registration',
646
+			$item->ID()
647
+		)
648
+			? '<a href="'
649
+			  . $edit_lnk_url
650
+			  . '" title="'
651
+			  . esc_attr__('View Registration Details', 'event_espresso')
652
+			  . '">'
653
+			  . $attendee_name
654
+			  . '</a>' : $attendee_name;
655
+		$link .= $item->count() === 1
656
+			? '&nbsp;<sup><div class="dashicons dashicons-star-filled lt-blue-icon ee-icon-size-8"></div></sup>' : '';
657
+		$t = $item->get_first_related('Transaction');
658
+		$payment_count = $t instanceof EE_Transaction ? $t->count_related('Payment') : 0;
659
+		// append group count to name
660
+		$link .= '&nbsp;' . sprintf(__('(%1$s / %2$s)', 'event_espresso'), $item->count(), $item->group_size());
661
+		// append reg_code
662
+		$link .= '<br>' . sprintf(__('Reg Code: %s', 'event_espresso'), $item->get('REG_code'));
663
+		// reg status text for accessibility
664
+		$link .= '<br><span class="ee-status-text-small">'
665
+				 . EEH_Template::pretty_status($item->status_ID(), false, 'sentence')
666
+				 . '</span>';
667
+		// trash/restore/delete actions
668
+		$actions = array();
669
+		if ($this->_view !== 'trash'
670
+			&& $payment_count === 0
671
+			&& EE_Registry::instance()->CAP->current_user_can(
672
+				'ee_delete_registration',
673
+				'espresso_registrations_trash_registrations',
674
+				$item->ID()
675
+			)) {
676
+			$trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
677
+				array(
678
+					'action'  => 'trash_registrations',
679
+					'_REG_ID' => $item->ID(),
680
+				),
681
+				REG_ADMIN_URL
682
+			);
683
+			$actions['trash'] = '<a href="'
684
+								. $trash_lnk_url
685
+								. '" title="'
686
+								. esc_attr__('Trash Registration', 'event_espresso')
687
+								. '">' . __('Trash', 'event_espresso') . '</a>';
688
+		} elseif ($this->_view === 'trash') {
689
+			// restore registration link
690
+			if (EE_Registry::instance()->CAP->current_user_can(
691
+				'ee_delete_registration',
692
+				'espresso_registrations_restore_registrations',
693
+				$item->ID()
694
+			)) {
695
+				$restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
696
+					array(
697
+						'action'  => 'restore_registrations',
698
+						'_REG_ID' => $item->ID(),
699
+					),
700
+					REG_ADMIN_URL
701
+				);
702
+				$actions['restore'] = '<a href="'
703
+									  . $restore_lnk_url
704
+									  . '" title="'
705
+									  . esc_attr__('Restore Registration', 'event_espresso') . '">'
706
+									  . __('Restore', 'event_espresso') . '</a>';
707
+			}
708
+			if (EE_Registry::instance()->CAP->current_user_can(
709
+				'ee_delete_registration',
710
+				'espresso_registrations_ee_delete_registrations',
711
+				$item->ID()
712
+			)) {
713
+				$delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
714
+					array(
715
+						'action'  => 'delete_registrations',
716
+						'_REG_ID' => $item->ID(),
717
+					),
718
+					REG_ADMIN_URL
719
+				);
720
+				$actions['delete'] = '<a href="'
721
+									 . $delete_lnk_url
722
+									 . '" title="'
723
+									 . esc_attr__('Delete Registration Permanently', 'event_espresso')
724
+									 . '">'
725
+									 . __('Delete', 'event_espresso')
726
+									 . '</a>';
727
+			}
728
+		}
729
+		return sprintf('%1$s %2$s', $link, $this->row_actions($actions));
730
+	}
731 731
 
732 732
 
733
-    /**
734
-     * column_ATT_email
735
-     *
736
-     * @access public
737
-     * @param \EE_Registration $item
738
-     * @return string
739
-     * @throws EE_Error
740
-     * @throws InvalidArgumentException
741
-     * @throws InvalidDataTypeException
742
-     * @throws InvalidInterfaceException
743
-     * @throws ReflectionException
744
-     */
745
-    public function column_ATT_email(EE_Registration $item)
746
-    {
747
-        $attendee = $item->get_first_related('Attendee');
748
-        return ! $attendee instanceof EE_Attendee ? __('No attached contact record.', 'event_espresso')
749
-            : $attendee->email();
750
-    }
733
+	/**
734
+	 * column_ATT_email
735
+	 *
736
+	 * @access public
737
+	 * @param \EE_Registration $item
738
+	 * @return string
739
+	 * @throws EE_Error
740
+	 * @throws InvalidArgumentException
741
+	 * @throws InvalidDataTypeException
742
+	 * @throws InvalidInterfaceException
743
+	 * @throws ReflectionException
744
+	 */
745
+	public function column_ATT_email(EE_Registration $item)
746
+	{
747
+		$attendee = $item->get_first_related('Attendee');
748
+		return ! $attendee instanceof EE_Attendee ? __('No attached contact record.', 'event_espresso')
749
+			: $attendee->email();
750
+	}
751 751
 
752 752
 
753
-    /**
754
-     * column__REG_count
755
-     *
756
-     * @access public
757
-     * @param \EE_Registration $item
758
-     * @return string
759
-     */
760
-    public function column__REG_count(EE_Registration $item)
761
-    {
762
-        return sprintf(__('%1$s / %2$s', 'event_espresso'), $item->count(), $item->group_size());
763
-    }
753
+	/**
754
+	 * column__REG_count
755
+	 *
756
+	 * @access public
757
+	 * @param \EE_Registration $item
758
+	 * @return string
759
+	 */
760
+	public function column__REG_count(EE_Registration $item)
761
+	{
762
+		return sprintf(__('%1$s / %2$s', 'event_espresso'), $item->count(), $item->group_size());
763
+	}
764 764
 
765 765
 
766
-    /**
767
-     * column_PRC_amount
768
-     *
769
-     * @access public
770
-     * @param \EE_Registration $item
771
-     * @return string
772
-     * @throws EE_Error
773
-     */
774
-    public function column_PRC_amount(EE_Registration $item)
775
-    {
776
-        $ticket = $item->ticket();
777
-        $content = isset($_GET['event_id']) && $ticket instanceof EE_Ticket ? '<span class="TKT_name">'
778
-                                                                              . $ticket->name()
779
-                                                                              . '</span><br />' : '';
780
-        if ($item->final_price() > 0) {
781
-            $content .= '<span class="reg-pad-rght">' . $item->pretty_final_price() . '</span>';
782
-        } else {
783
-            // free event
784
-            $content .= '<span class="reg-overview-free-event-spn reg-pad-rght">'
785
-                        . __('free', 'event_espresso')
786
-                        . '</span>';
787
-        }
788
-        return $content;
789
-    }
766
+	/**
767
+	 * column_PRC_amount
768
+	 *
769
+	 * @access public
770
+	 * @param \EE_Registration $item
771
+	 * @return string
772
+	 * @throws EE_Error
773
+	 */
774
+	public function column_PRC_amount(EE_Registration $item)
775
+	{
776
+		$ticket = $item->ticket();
777
+		$content = isset($_GET['event_id']) && $ticket instanceof EE_Ticket ? '<span class="TKT_name">'
778
+																			  . $ticket->name()
779
+																			  . '</span><br />' : '';
780
+		if ($item->final_price() > 0) {
781
+			$content .= '<span class="reg-pad-rght">' . $item->pretty_final_price() . '</span>';
782
+		} else {
783
+			// free event
784
+			$content .= '<span class="reg-overview-free-event-spn reg-pad-rght">'
785
+						. __('free', 'event_espresso')
786
+						. '</span>';
787
+		}
788
+		return $content;
789
+	}
790 790
 
791 791
 
792
-    /**
793
-     * column__REG_final_price
794
-     *
795
-     * @access public
796
-     * @param \EE_Registration $item
797
-     * @return string
798
-     * @throws EE_Error
799
-     */
800
-    public function column__REG_final_price(EE_Registration $item)
801
-    {
802
-        $ticket = $item->ticket();
803
-        $content = isset($_GET['event_id']) || ! $ticket instanceof EE_Ticket
804
-            ? ''
805
-            : '<span class="TKT_name">'
806
-              . $ticket->name()
807
-              . '</span><br />';
808
-        $content .= '<span class="reg-pad-rght">' . $item->pretty_final_price() . '</span>';
809
-        return $content;
810
-    }
792
+	/**
793
+	 * column__REG_final_price
794
+	 *
795
+	 * @access public
796
+	 * @param \EE_Registration $item
797
+	 * @return string
798
+	 * @throws EE_Error
799
+	 */
800
+	public function column__REG_final_price(EE_Registration $item)
801
+	{
802
+		$ticket = $item->ticket();
803
+		$content = isset($_GET['event_id']) || ! $ticket instanceof EE_Ticket
804
+			? ''
805
+			: '<span class="TKT_name">'
806
+			  . $ticket->name()
807
+			  . '</span><br />';
808
+		$content .= '<span class="reg-pad-rght">' . $item->pretty_final_price() . '</span>';
809
+		return $content;
810
+	}
811 811
 
812 812
 
813
-    /**
814
-     * column__REG_paid
815
-     *
816
-     * @access public
817
-     * @param \EE_Registration $item
818
-     * @return string
819
-     * @throws EE_Error
820
-     */
821
-    public function column__REG_paid(EE_Registration $item)
822
-    {
823
-        $payment_method = $item->payment_method();
824
-        $payment_method_name = $payment_method instanceof EE_Payment_Method ? $payment_method->admin_name()
825
-            : __('Unknown', 'event_espresso');
826
-        $content = '<span class="reg-pad-rght">' . $item->pretty_paid() . '</span>';
827
-        if ($item->paid() > 0) {
828
-            $content .= '<br><span class="ee-status-text-small">'
829
-                        . sprintf(
830
-                            __('...via %s', 'event_espresso'),
831
-                            $payment_method_name
832
-                        )
833
-                        . '</span>';
834
-        }
835
-        return $content;
836
-    }
813
+	/**
814
+	 * column__REG_paid
815
+	 *
816
+	 * @access public
817
+	 * @param \EE_Registration $item
818
+	 * @return string
819
+	 * @throws EE_Error
820
+	 */
821
+	public function column__REG_paid(EE_Registration $item)
822
+	{
823
+		$payment_method = $item->payment_method();
824
+		$payment_method_name = $payment_method instanceof EE_Payment_Method ? $payment_method->admin_name()
825
+			: __('Unknown', 'event_espresso');
826
+		$content = '<span class="reg-pad-rght">' . $item->pretty_paid() . '</span>';
827
+		if ($item->paid() > 0) {
828
+			$content .= '<br><span class="ee-status-text-small">'
829
+						. sprintf(
830
+							__('...via %s', 'event_espresso'),
831
+							$payment_method_name
832
+						)
833
+						. '</span>';
834
+		}
835
+		return $content;
836
+	}
837 837
 
838 838
 
839
-    /**
840
-     * column_TXN_total
841
-     *
842
-     * @access public
843
-     * @param \EE_Registration $item
844
-     * @return string
845
-     * @throws EE_Error
846
-     * @throws EntityNotFoundException
847
-     * @throws InvalidArgumentException
848
-     * @throws InvalidDataTypeException
849
-     * @throws InvalidInterfaceException
850
-     */
851
-    public function column_TXN_total(EE_Registration $item)
852
-    {
853
-        if ($item->transaction()) {
854
-            $view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
855
-                array(
856
-                    'action' => 'view_transaction',
857
-                    'TXN_ID' => $item->transaction_ID(),
858
-                ),
859
-                TXN_ADMIN_URL
860
-            );
861
-            return EE_Registry::instance()->CAP->current_user_can(
862
-                'ee_read_transaction',
863
-                'espresso_transactions_view_transaction',
864
-                $item->transaction_ID()
865
-            )
866
-                ? '<span class="reg-pad-rght"><a class="status-'
867
-                  . $item->transaction()->status_ID()
868
-                  . '" href="'
869
-                  . $view_txn_lnk_url
870
-                  . '"  title="'
871
-                  . esc_attr__('View Transaction', 'event_espresso')
872
-                  . '">'
873
-                  . $item->transaction()->pretty_total()
874
-                  . '</a></span>' : '<span class="reg-pad-rght">' . $item->transaction()->pretty_total() . '</span>';
875
-        } else {
876
-            return __("None", "event_espresso");
877
-        }
878
-    }
839
+	/**
840
+	 * column_TXN_total
841
+	 *
842
+	 * @access public
843
+	 * @param \EE_Registration $item
844
+	 * @return string
845
+	 * @throws EE_Error
846
+	 * @throws EntityNotFoundException
847
+	 * @throws InvalidArgumentException
848
+	 * @throws InvalidDataTypeException
849
+	 * @throws InvalidInterfaceException
850
+	 */
851
+	public function column_TXN_total(EE_Registration $item)
852
+	{
853
+		if ($item->transaction()) {
854
+			$view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
855
+				array(
856
+					'action' => 'view_transaction',
857
+					'TXN_ID' => $item->transaction_ID(),
858
+				),
859
+				TXN_ADMIN_URL
860
+			);
861
+			return EE_Registry::instance()->CAP->current_user_can(
862
+				'ee_read_transaction',
863
+				'espresso_transactions_view_transaction',
864
+				$item->transaction_ID()
865
+			)
866
+				? '<span class="reg-pad-rght"><a class="status-'
867
+				  . $item->transaction()->status_ID()
868
+				  . '" href="'
869
+				  . $view_txn_lnk_url
870
+				  . '"  title="'
871
+				  . esc_attr__('View Transaction', 'event_espresso')
872
+				  . '">'
873
+				  . $item->transaction()->pretty_total()
874
+				  . '</a></span>' : '<span class="reg-pad-rght">' . $item->transaction()->pretty_total() . '</span>';
875
+		} else {
876
+			return __("None", "event_espresso");
877
+		}
878
+	}
879 879
 
880 880
 
881
-    /**
882
-     * column_TXN_paid
883
-     *
884
-     * @access public
885
-     * @param \EE_Registration $item
886
-     * @return string
887
-     * @throws EE_Error
888
-     * @throws EntityNotFoundException
889
-     * @throws InvalidArgumentException
890
-     * @throws InvalidDataTypeException
891
-     * @throws InvalidInterfaceException
892
-     */
893
-    public function column_TXN_paid(EE_Registration $item)
894
-    {
895
-        if ($item->count() === 1) {
896
-            $transaction = $item->transaction() ? $item->transaction() : EE_Transaction::new_instance();
897
-            if ($transaction->paid() >= $transaction->total()) {
898
-                return '<span class="reg-pad-rght"><div class="dashicons dashicons-yes green-icon"></div></span>';
899
-            } else {
900
-                $view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
901
-                    array(
902
-                        'action' => 'view_transaction',
903
-                        'TXN_ID' => $item->transaction_ID(),
904
-                    ),
905
-                    TXN_ADMIN_URL
906
-                );
907
-                return EE_Registry::instance()->CAP->current_user_can(
908
-                    'ee_read_transaction',
909
-                    'espresso_transactions_view_transaction',
910
-                    $item->transaction_ID()
911
-                )
912
-                    ? '<span class="reg-pad-rght"><a class="status-'
913
-                      . $transaction->status_ID()
914
-                      . '" href="'
915
-                      . $view_txn_lnk_url
916
-                      . '"  title="'
917
-                      . esc_attr__('View Transaction', 'event_espresso')
918
-                      . '">'
919
-                      . $item->transaction()->pretty_paid()
920
-                      . '</a><span>' : '<span class="reg-pad-rght">' . $item->transaction()->pretty_paid() . '</span>';
921
-            }
922
-        }
923
-        return '&nbsp;';
924
-    }
881
+	/**
882
+	 * column_TXN_paid
883
+	 *
884
+	 * @access public
885
+	 * @param \EE_Registration $item
886
+	 * @return string
887
+	 * @throws EE_Error
888
+	 * @throws EntityNotFoundException
889
+	 * @throws InvalidArgumentException
890
+	 * @throws InvalidDataTypeException
891
+	 * @throws InvalidInterfaceException
892
+	 */
893
+	public function column_TXN_paid(EE_Registration $item)
894
+	{
895
+		if ($item->count() === 1) {
896
+			$transaction = $item->transaction() ? $item->transaction() : EE_Transaction::new_instance();
897
+			if ($transaction->paid() >= $transaction->total()) {
898
+				return '<span class="reg-pad-rght"><div class="dashicons dashicons-yes green-icon"></div></span>';
899
+			} else {
900
+				$view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
901
+					array(
902
+						'action' => 'view_transaction',
903
+						'TXN_ID' => $item->transaction_ID(),
904
+					),
905
+					TXN_ADMIN_URL
906
+				);
907
+				return EE_Registry::instance()->CAP->current_user_can(
908
+					'ee_read_transaction',
909
+					'espresso_transactions_view_transaction',
910
+					$item->transaction_ID()
911
+				)
912
+					? '<span class="reg-pad-rght"><a class="status-'
913
+					  . $transaction->status_ID()
914
+					  . '" href="'
915
+					  . $view_txn_lnk_url
916
+					  . '"  title="'
917
+					  . esc_attr__('View Transaction', 'event_espresso')
918
+					  . '">'
919
+					  . $item->transaction()->pretty_paid()
920
+					  . '</a><span>' : '<span class="reg-pad-rght">' . $item->transaction()->pretty_paid() . '</span>';
921
+			}
922
+		}
923
+		return '&nbsp;';
924
+	}
925 925
 
926 926
 
927
-    /**
928
-     * column_actions
929
-     *
930
-     * @access public
931
-     * @param \EE_Registration $item
932
-     * @return string
933
-     * @throws EE_Error
934
-     * @throws InvalidArgumentException
935
-     * @throws InvalidDataTypeException
936
-     * @throws InvalidInterfaceException
937
-     * @throws ReflectionException
938
-     */
939
-    public function column_actions(EE_Registration $item)
940
-    {
941
-        $actions = array();
942
-        $attendee = $item->attendee();
943
-        $this->_set_related_details($item);
944
-        // Build row actions
945
-        $view_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
946
-            array(
947
-                'action'  => 'view_registration',
948
-                '_REG_ID' => $item->ID(),
949
-            ),
950
-            REG_ADMIN_URL
951
-        );
952
-        $edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
953
-            array(
954
-                'action' => 'edit_attendee',
955
-                'post'   => $item->attendee_ID(),
956
-            ),
957
-            REG_ADMIN_URL
958
-        );
959
-        // page=attendees&event_admin_reports=resend_email&registration_id=43653465634&event_id=2&form_action=resend_email
960
-        // $resend_reg_lnk_url_params = array( 'action'=>'resend_registration', '_REG_ID'=>$item->REG_ID );
961
-        $resend_reg_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
962
-            array(
963
-                'action'  => 'resend_registration',
964
-                '_REG_ID' => $item->ID(),
965
-            ),
966
-            REG_ADMIN_URL,
967
-            true
968
-        );
969
-        // Build row actions
970
-        $actions['view_lnk'] = EE_Registry::instance()->CAP->current_user_can(
971
-            'ee_read_registration',
972
-            'espresso_registrations_view_registration',
973
-            $item->ID()
974
-        ) ? '<li><a href="'
975
-            . $view_lnk_url
976
-            . '" title="'
977
-            . esc_attr__('View Registration Details', 'event_espresso')
978
-            . '" class="tiny-text">
927
+	/**
928
+	 * column_actions
929
+	 *
930
+	 * @access public
931
+	 * @param \EE_Registration $item
932
+	 * @return string
933
+	 * @throws EE_Error
934
+	 * @throws InvalidArgumentException
935
+	 * @throws InvalidDataTypeException
936
+	 * @throws InvalidInterfaceException
937
+	 * @throws ReflectionException
938
+	 */
939
+	public function column_actions(EE_Registration $item)
940
+	{
941
+		$actions = array();
942
+		$attendee = $item->attendee();
943
+		$this->_set_related_details($item);
944
+		// Build row actions
945
+		$view_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
946
+			array(
947
+				'action'  => 'view_registration',
948
+				'_REG_ID' => $item->ID(),
949
+			),
950
+			REG_ADMIN_URL
951
+		);
952
+		$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
953
+			array(
954
+				'action' => 'edit_attendee',
955
+				'post'   => $item->attendee_ID(),
956
+			),
957
+			REG_ADMIN_URL
958
+		);
959
+		// page=attendees&event_admin_reports=resend_email&registration_id=43653465634&event_id=2&form_action=resend_email
960
+		// $resend_reg_lnk_url_params = array( 'action'=>'resend_registration', '_REG_ID'=>$item->REG_ID );
961
+		$resend_reg_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
962
+			array(
963
+				'action'  => 'resend_registration',
964
+				'_REG_ID' => $item->ID(),
965
+			),
966
+			REG_ADMIN_URL,
967
+			true
968
+		);
969
+		// Build row actions
970
+		$actions['view_lnk'] = EE_Registry::instance()->CAP->current_user_can(
971
+			'ee_read_registration',
972
+			'espresso_registrations_view_registration',
973
+			$item->ID()
974
+		) ? '<li><a href="'
975
+			. $view_lnk_url
976
+			. '" title="'
977
+			. esc_attr__('View Registration Details', 'event_espresso')
978
+			. '" class="tiny-text">
979 979
 				<div class="dashicons dashicons-clipboard"></div>
980 980
 			</a>
981 981
 			</li>'
982
-            : '';
983
-        $actions['edit_lnk'] = EE_Registry::instance()->CAP->current_user_can(
984
-            'ee_edit_contacts',
985
-            'espresso_registrations_edit_attendee'
986
-        )
987
-                               && $attendee instanceof EE_Attendee
988
-            ? '
982
+			: '';
983
+		$actions['edit_lnk'] = EE_Registry::instance()->CAP->current_user_can(
984
+			'ee_edit_contacts',
985
+			'espresso_registrations_edit_attendee'
986
+		)
987
+							   && $attendee instanceof EE_Attendee
988
+			? '
989 989
 			<li>
990 990
 			<a href="' . $edit_lnk_url . '" title="'
991
-              . esc_attr__('Edit Contact Details', 'event_espresso') . '" class="tiny-text">
991
+			  . esc_attr__('Edit Contact Details', 'event_espresso') . '" class="tiny-text">
992 992
 				<div class="ee-icon ee-icon-user-edit ee-icon-size-16"></div>
993 993
 			</a>
994 994
 			</li>' : '';
995
-        $actions['resend_reg_lnk'] = $attendee instanceof EE_Attendee
996
-                                     && EE_Registry::instance()->CAP->current_user_can(
997
-                                         'ee_send_message',
998
-                                         'espresso_registrations_resend_registration',
999
-                                         $item->ID()
1000
-                                     )
1001
-            ? '
995
+		$actions['resend_reg_lnk'] = $attendee instanceof EE_Attendee
996
+									 && EE_Registry::instance()->CAP->current_user_can(
997
+										 'ee_send_message',
998
+										 'espresso_registrations_resend_registration',
999
+										 $item->ID()
1000
+									 )
1001
+			? '
1002 1002
 			<li>
1003 1003
 			<a href="'
1004
-              . $resend_reg_lnk_url
1005
-              . '" title="'
1006
-              . esc_attr__('Resend Registration Details', 'event_espresso')
1007
-              . '" class="tiny-text">
1004
+			  . $resend_reg_lnk_url
1005
+			  . '" title="'
1006
+			  . esc_attr__('Resend Registration Details', 'event_espresso')
1007
+			  . '" class="tiny-text">
1008 1008
 				<div class="dashicons dashicons-email-alt"></div>
1009 1009
 			</a>
1010 1010
 			</li>' : '';
1011
-        // page=transactions&action=view_transaction&txn=256&_wpnonce=6414da4dbb
1012
-        $view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
1013
-            array(
1014
-                'action' => 'view_transaction',
1015
-                'TXN_ID' => $this->_transaction_details['id'],
1016
-            ),
1017
-            TXN_ADMIN_URL
1018
-        );
1019
-        $actions['view_txn_lnk'] = EE_Registry::instance()->CAP->current_user_can(
1020
-            'ee_read_transaction',
1021
-            'espresso_transactions_view_transaction',
1022
-            $this->_transaction_details['id']
1023
-        )
1024
-            ? '
1011
+		// page=transactions&action=view_transaction&txn=256&_wpnonce=6414da4dbb
1012
+		$view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
1013
+			array(
1014
+				'action' => 'view_transaction',
1015
+				'TXN_ID' => $this->_transaction_details['id'],
1016
+			),
1017
+			TXN_ADMIN_URL
1018
+		);
1019
+		$actions['view_txn_lnk'] = EE_Registry::instance()->CAP->current_user_can(
1020
+			'ee_read_transaction',
1021
+			'espresso_transactions_view_transaction',
1022
+			$this->_transaction_details['id']
1023
+		)
1024
+			? '
1025 1025
 			<li>
1026 1026
 			<a class="ee-status-color-'
1027
-              . $this->_transaction_details['status']
1028
-              . ' tiny-text" href="'
1029
-              . $view_txn_lnk_url
1030
-              . '"  title="'
1031
-              . $this->_transaction_details['title_attr']
1032
-              . '">
1027
+			  . $this->_transaction_details['status']
1028
+			  . ' tiny-text" href="'
1029
+			  . $view_txn_lnk_url
1030
+			  . '"  title="'
1031
+			  . $this->_transaction_details['title_attr']
1032
+			  . '">
1033 1033
 				<div class="dashicons dashicons-cart"></div>
1034 1034
 			</a>
1035 1035
 			</li>' : '';
1036
-        // invoice link
1037
-        $actions['dl_invoice_lnk'] = '';
1038
-        $dl_invoice_lnk_url = $item->invoice_url();
1039
-        // only show invoice link if message type is active.
1040
-        if ($attendee instanceof EE_Attendee
1041
-            && $item->is_primary_registrant()
1042
-            && EEH_MSG_Template::is_mt_active('invoice')
1043
-        ) {
1044
-            $actions['dl_invoice_lnk'] = '
1036
+		// invoice link
1037
+		$actions['dl_invoice_lnk'] = '';
1038
+		$dl_invoice_lnk_url = $item->invoice_url();
1039
+		// only show invoice link if message type is active.
1040
+		if ($attendee instanceof EE_Attendee
1041
+			&& $item->is_primary_registrant()
1042
+			&& EEH_MSG_Template::is_mt_active('invoice')
1043
+		) {
1044
+			$actions['dl_invoice_lnk'] = '
1045 1045
 		<li>
1046 1046
 			<a title="'
1047
-                                         . esc_attr__('View Transaction Invoice', 'event_espresso')
1048
-                                         . '" target="_blank" href="'
1049
-                                         . $dl_invoice_lnk_url
1050
-                                         . '" class="tiny-text">
1047
+										 . esc_attr__('View Transaction Invoice', 'event_espresso')
1048
+										 . '" target="_blank" href="'
1049
+										 . $dl_invoice_lnk_url
1050
+										 . '" class="tiny-text">
1051 1051
 				<span class="dashicons dashicons-media-spreadsheet ee-icon-size-18"></span>
1052 1052
 			</a>
1053 1053
 		</li>';
1054
-        }
1055
-        $actions['filtered_messages_link'] = '';
1056
-        // message list table link (filtered by REG_ID
1057
-        if (EE_Registry::instance()->CAP->current_user_can('ee_read_global_messages', 'view_filtered_messages')) {
1058
-            $actions['filtered_messages_link'] = '<li>'
1059
-                                                 . EEH_MSG_Template::get_message_action_link(
1060
-                                                     'see_notifications_for',
1061
-                                                     null,
1062
-                                                     array('_REG_ID' => $item->ID())
1063
-                                                 ) . '</li>';
1064
-        }
1065
-        $actions = apply_filters('FHEE__EE_Registrations_List_Table__column_actions__actions', $actions, $item, $this);
1066
-        return $this->_action_string(implode('', $actions), $item, 'ul', 'reg-overview-actions-ul');
1067
-    }
1054
+		}
1055
+		$actions['filtered_messages_link'] = '';
1056
+		// message list table link (filtered by REG_ID
1057
+		if (EE_Registry::instance()->CAP->current_user_can('ee_read_global_messages', 'view_filtered_messages')) {
1058
+			$actions['filtered_messages_link'] = '<li>'
1059
+												 . EEH_MSG_Template::get_message_action_link(
1060
+													 'see_notifications_for',
1061
+													 null,
1062
+													 array('_REG_ID' => $item->ID())
1063
+												 ) . '</li>';
1064
+		}
1065
+		$actions = apply_filters('FHEE__EE_Registrations_List_Table__column_actions__actions', $actions, $item, $this);
1066
+		return $this->_action_string(implode('', $actions), $item, 'ul', 'reg-overview-actions-ul');
1067
+	}
1068 1068
 }
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function __construct(Registrations_Admin_Page $admin_page)
55 55
     {
56
-        if (! empty($_GET['event_id'])) {
56
+        if ( ! empty($_GET['event_id'])) {
57 57
             $extra_query_args = array();
58 58
             foreach ($admin_page->get_views() as $key => $view_details) {
59
-                $extra_query_args[ $view_details['slug'] ] = array('event_id' => $_GET['event_id']);
59
+                $extra_query_args[$view_details['slug']] = array('event_id' => $_GET['event_id']);
60 60
             }
61 61
             $this->_views = $admin_page->get_list_table_view_RLs($extra_query_args);
62 62
         }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         );
159 159
         $this->_primary_column = '_REG_ID';
160 160
         $this->_sortable_columns = array(
161
-            '_REG_date'     => array('_REG_date' => true),   // true means its already sorted
161
+            '_REG_date'     => array('_REG_date' => true), // true means its already sorted
162 162
             /**
163 163
              * Allows users to change the default sort if they wish.
164 164
              * Returning a falsey on this filter will result in the default sort to be by firstname rather than last
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     {
191 191
         $class = parent::_get_row_class($item);
192 192
         // add status class
193
-        $class .= ' ee-status-strip reg-status-' . $item->status_ID();
193
+        $class .= ' ee-status-strip reg-status-'.$item->status_ID();
194 194
         if ($this->_has_checkbox_column) {
195 195
             $class .= ' has-checkbox-column';
196 196
         }
@@ -355,12 +355,12 @@  discard block
 block discarded – undo
355 355
         // setup date query.
356 356
         $beginning_string = EEM_Registration::instance()->convert_datetime_for_query(
357 357
             'REG_date',
358
-            $this_year_r . '-' . $this_month_r . '-01' . ' ' . $time_start,
358
+            $this_year_r.'-'.$this_month_r.'-01'.' '.$time_start,
359 359
             'Y-m-d H:i:s'
360 360
         );
361 361
         $end_string = EEM_Registration::instance()->convert_datetime_for_query(
362 362
             'REG_date',
363
-            $this_year_r . '-' . $this_month_r . '-' . $days_this_month . ' ' . $time_end,
363
+            $this_year_r.'-'.$this_month_r.'-'.$days_this_month.' '.$time_end,
364 364
             'Y-m-d H:i:s'
365 365
         );
366 366
         $_where['REG_date'] = array(
@@ -397,12 +397,12 @@  discard block
 block discarded – undo
397 397
             array(
398 398
                 EEM_Registration::instance()->convert_datetime_for_query(
399 399
                     'REG_date',
400
-                    $current_date . $time_start,
400
+                    $current_date.$time_start,
401 401
                     'Y-m-d H:i:s'
402 402
                 ),
403 403
                 EEM_Registration::instance()->convert_datetime_for_query(
404 404
                     'REG_date',
405
-                    $current_date . $time_end,
405
+                    $current_date.$time_end,
406 406
                     'Y-m-d H:i:s'
407 407
                 ),
408 408
             ),
@@ -462,8 +462,8 @@  discard block
 block discarded – undo
462 462
         $content .= '<div class="show-on-mobile-view-only">';
463 463
         $content .= '<br>';
464 464
         $content .= $attendee instanceof EE_Attendee ? $attendee->full_name() : '';
465
-        $content .= '&nbsp;' . sprintf(__('(%1$s / %2$s)', 'event_espresso'), $item->count(), $item->group_size());
466
-        $content .= '<br>' . sprintf(__('Reg Code: %s', 'event_espresso'), $item->get('REG_code'));
465
+        $content .= '&nbsp;'.sprintf(__('(%1$s / %2$s)', 'event_espresso'), $item->count(), $item->group_size());
466
+        $content .= '<br>'.sprintf(__('Reg Code: %s', 'event_espresso'), $item->get('REG_code'));
467 467
         $content .= '</div>';
468 468
         return $content;
469 469
     }
@@ -548,12 +548,12 @@  discard block
 block discarded – undo
548 548
                   . $event_name
549 549
                   . '</a>' : $event_name;
550 550
             $edit_event_url = EE_Admin_Page::add_query_args_and_nonce(array('event_id' => $EVT_ID), REG_ADMIN_URL);
551
-            $actions['event_filter'] = '<a href="' . $edit_event_url . '" title="';
551
+            $actions['event_filter'] = '<a href="'.$edit_event_url.'" title="';
552 552
             $actions['event_filter'] .= sprintf(
553 553
                 esc_attr__('Filter this list to only show registrations for %s', 'event_espresso'),
554 554
                 $event_name
555 555
             );
556
-            $actions['event_filter'] .= '">' . __('View Registrations', 'event_espresso') . '</a>';
556
+            $actions['event_filter'] .= '">'.__('View Registrations', 'event_espresso').'</a>';
557 557
         } else {
558 558
             $edit_event = $event_name;
559 559
             $actions['event_filter'] = '';
@@ -600,11 +600,11 @@  discard block
 block discarded – undo
600 600
     {
601 601
         $content = '<div class="ee-registration-event-datetimes-container">';
602 602
         $expand_toggle = count($datetime_strings) > 1
603
-            ? ' <span title="' . esc_attr__('Click to view all dates', 'event_espresso')
603
+            ? ' <span title="'.esc_attr__('Click to view all dates', 'event_espresso')
604 604
               . '" class="ee-js ee-more-datetimes-toggle dashicons dashicons-plus"></span>'
605 605
             : '';
606 606
         // get first item for initial visibility
607
-        $content .= '<div class="left">' . array_shift($datetime_strings) . '</div>';
607
+        $content .= '<div class="left">'.array_shift($datetime_strings).'</div>';
608 608
         $content .= $expand_toggle;
609 609
         if ($datetime_strings) {
610 610
             $content .= '<div style="clear:both"></div>';
@@ -657,9 +657,9 @@  discard block
 block discarded – undo
657 657
         $t = $item->get_first_related('Transaction');
658 658
         $payment_count = $t instanceof EE_Transaction ? $t->count_related('Payment') : 0;
659 659
         // append group count to name
660
-        $link .= '&nbsp;' . sprintf(__('(%1$s / %2$s)', 'event_espresso'), $item->count(), $item->group_size());
660
+        $link .= '&nbsp;'.sprintf(__('(%1$s / %2$s)', 'event_espresso'), $item->count(), $item->group_size());
661 661
         // append reg_code
662
-        $link .= '<br>' . sprintf(__('Reg Code: %s', 'event_espresso'), $item->get('REG_code'));
662
+        $link .= '<br>'.sprintf(__('Reg Code: %s', 'event_espresso'), $item->get('REG_code'));
663 663
         // reg status text for accessibility
664 664
         $link .= '<br><span class="ee-status-text-small">'
665 665
                  . EEH_Template::pretty_status($item->status_ID(), false, 'sentence')
@@ -684,7 +684,7 @@  discard block
 block discarded – undo
684 684
                                 . $trash_lnk_url
685 685
                                 . '" title="'
686 686
                                 . esc_attr__('Trash Registration', 'event_espresso')
687
-                                . '">' . __('Trash', 'event_espresso') . '</a>';
687
+                                . '">'.__('Trash', 'event_espresso').'</a>';
688 688
         } elseif ($this->_view === 'trash') {
689 689
             // restore registration link
690 690
             if (EE_Registry::instance()->CAP->current_user_can(
@@ -702,8 +702,8 @@  discard block
 block discarded – undo
702 702
                 $actions['restore'] = '<a href="'
703 703
                                       . $restore_lnk_url
704 704
                                       . '" title="'
705
-                                      . esc_attr__('Restore Registration', 'event_espresso') . '">'
706
-                                      . __('Restore', 'event_espresso') . '</a>';
705
+                                      . esc_attr__('Restore Registration', 'event_espresso').'">'
706
+                                      . __('Restore', 'event_espresso').'</a>';
707 707
             }
708 708
             if (EE_Registry::instance()->CAP->current_user_can(
709 709
                 'ee_delete_registration',
@@ -778,7 +778,7 @@  discard block
 block discarded – undo
778 778
                                                                               . $ticket->name()
779 779
                                                                               . '</span><br />' : '';
780 780
         if ($item->final_price() > 0) {
781
-            $content .= '<span class="reg-pad-rght">' . $item->pretty_final_price() . '</span>';
781
+            $content .= '<span class="reg-pad-rght">'.$item->pretty_final_price().'</span>';
782 782
         } else {
783 783
             // free event
784 784
             $content .= '<span class="reg-overview-free-event-spn reg-pad-rght">'
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
             : '<span class="TKT_name">'
806 806
               . $ticket->name()
807 807
               . '</span><br />';
808
-        $content .= '<span class="reg-pad-rght">' . $item->pretty_final_price() . '</span>';
808
+        $content .= '<span class="reg-pad-rght">'.$item->pretty_final_price().'</span>';
809 809
         return $content;
810 810
     }
811 811
 
@@ -823,7 +823,7 @@  discard block
 block discarded – undo
823 823
         $payment_method = $item->payment_method();
824 824
         $payment_method_name = $payment_method instanceof EE_Payment_Method ? $payment_method->admin_name()
825 825
             : __('Unknown', 'event_espresso');
826
-        $content = '<span class="reg-pad-rght">' . $item->pretty_paid() . '</span>';
826
+        $content = '<span class="reg-pad-rght">'.$item->pretty_paid().'</span>';
827 827
         if ($item->paid() > 0) {
828 828
             $content .= '<br><span class="ee-status-text-small">'
829 829
                         . sprintf(
@@ -871,7 +871,7 @@  discard block
 block discarded – undo
871 871
                   . esc_attr__('View Transaction', 'event_espresso')
872 872
                   . '">'
873 873
                   . $item->transaction()->pretty_total()
874
-                  . '</a></span>' : '<span class="reg-pad-rght">' . $item->transaction()->pretty_total() . '</span>';
874
+                  . '</a></span>' : '<span class="reg-pad-rght">'.$item->transaction()->pretty_total().'</span>';
875 875
         } else {
876 876
             return __("None", "event_espresso");
877 877
         }
@@ -917,7 +917,7 @@  discard block
 block discarded – undo
917 917
                       . esc_attr__('View Transaction', 'event_espresso')
918 918
                       . '">'
919 919
                       . $item->transaction()->pretty_paid()
920
-                      . '</a><span>' : '<span class="reg-pad-rght">' . $item->transaction()->pretty_paid() . '</span>';
920
+                      . '</a><span>' : '<span class="reg-pad-rght">'.$item->transaction()->pretty_paid().'</span>';
921 921
             }
922 922
         }
923 923
         return '&nbsp;';
@@ -987,8 +987,8 @@  discard block
 block discarded – undo
987 987
                                && $attendee instanceof EE_Attendee
988 988
             ? '
989 989
 			<li>
990
-			<a href="' . $edit_lnk_url . '" title="'
991
-              . esc_attr__('Edit Contact Details', 'event_espresso') . '" class="tiny-text">
990
+			<a href="' . $edit_lnk_url.'" title="'
991
+              . esc_attr__('Edit Contact Details', 'event_espresso').'" class="tiny-text">
992 992
 				<div class="ee-icon ee-icon-user-edit ee-icon-size-16"></div>
993 993
 			</a>
994 994
 			</li>' : '';
@@ -1060,7 +1060,7 @@  discard block
 block discarded – undo
1060 1060
                                                      'see_notifications_for',
1061 1061
                                                      null,
1062 1062
                                                      array('_REG_ID' => $item->ID())
1063
-                                                 ) . '</li>';
1063
+                                                 ).'</li>';
1064 1064
         }
1065 1065
         $actions = apply_filters('FHEE__EE_Registrations_List_Table__column_actions__actions', $actions, $item, $this);
1066 1066
         return $this->_action_string(implode('', $actions), $item, 'ul', 'reg-overview-actions-ul');
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
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.
Indentation   +225 added lines, -225 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,124 +125,124 @@  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
-        } elseif ($item->object() instanceof EE_Transaction) {
202
-            return esc_html__('Unknown', 'event_espresso');
203
-        } else {
204
-            return esc_html__("No longer exists", 'event_espresso');
205
-        }
206
-    }
207
-
208
-
209
-    /**
210
-     * column_TXN_ID
211
-     *
212
-     * @param \EE_Change_Log $item
213
-     * @return string
214
-     */
215
-    public function column_TXN_ID(EE_Change_Log $item)
216
-    {
217
-        if ($item->object() instanceof EE_Payment) {
218
-            $transaction_id = $item->object()->TXN_ID();
219
-        } elseif ($item->object() instanceof EE_Transaction) {
220
-            $transaction_id = $item->object()->ID();
221
-        } else {
222
-            $transaction_id = null;
223
-        }
224
-        if ($transaction_id
225
-            && EE_Registry::instance()->CAP->current_user_can(
226
-                'ee_read_transaction',
227
-                'espresso_transactions_view_transaction',
228
-                $transaction_id
229
-            )) {
230
-            $view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
231
-                array('action' => 'view_transaction', 'TXN_ID' => $transaction_id),
232
-                TXN_ADMIN_URL
233
-            );
234
-            return '<a href="'
235
-                   . $view_txn_lnk_url
236
-                   . '"  title="'
237
-                   . sprintf(
238
-                       esc_attr__('click to view transaction #%s', 'event_espresso'),
239
-                       $transaction_id
240
-                   )
241
-                   . '">'
242
-                   . sprintf(esc_html__('view txn %s', 'event_espresso'), $transaction_id)
243
-                   . '</a>';
244
-        }
245
-        // No transaction id or use can not view the transaction.
246
-        return __("Unable to find transaction", 'event_espresso');
247
-    }
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
+		} elseif ($item->object() instanceof EE_Transaction) {
202
+			return esc_html__('Unknown', 'event_espresso');
203
+		} else {
204
+			return esc_html__("No longer exists", 'event_espresso');
205
+		}
206
+	}
207
+
208
+
209
+	/**
210
+	 * column_TXN_ID
211
+	 *
212
+	 * @param \EE_Change_Log $item
213
+	 * @return string
214
+	 */
215
+	public function column_TXN_ID(EE_Change_Log $item)
216
+	{
217
+		if ($item->object() instanceof EE_Payment) {
218
+			$transaction_id = $item->object()->TXN_ID();
219
+		} elseif ($item->object() instanceof EE_Transaction) {
220
+			$transaction_id = $item->object()->ID();
221
+		} else {
222
+			$transaction_id = null;
223
+		}
224
+		if ($transaction_id
225
+			&& EE_Registry::instance()->CAP->current_user_can(
226
+				'ee_read_transaction',
227
+				'espresso_transactions_view_transaction',
228
+				$transaction_id
229
+			)) {
230
+			$view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(
231
+				array('action' => 'view_transaction', 'TXN_ID' => $transaction_id),
232
+				TXN_ADMIN_URL
233
+			);
234
+			return '<a href="'
235
+				   . $view_txn_lnk_url
236
+				   . '"  title="'
237
+				   . sprintf(
238
+					   esc_attr__('click to view transaction #%s', 'event_espresso'),
239
+					   $transaction_id
240
+				   )
241
+				   . '">'
242
+				   . sprintf(esc_html__('view txn %s', 'event_espresso'), $transaction_id)
243
+				   . '</a>';
244
+		}
245
+		// No transaction id or use can not view the transaction.
246
+		return __("Unable to find transaction", 'event_espresso');
247
+	}
248 248
 }
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.
admin_pages/venues/help_tours/Venues_Add_Category_Help_Tour.class.php 2 patches
Indentation   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -15,76 +15,76 @@
 block discarded – undo
15 15
 class Venues_Add_Category_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Add Venue Category Tour', 'event_espresso');
21
-        $this->_slug = 'venue-add-category-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Add Venue Category Tour', 'event_espresso');
21
+		$this->_slug = 'venue-add-category-joyride';
22
+	}
23 23
 
24
-    protected function _set_tour_stops()
25
-    {
26
-        $this->_stops = array(
27
-            10 => array(
28
-                'content' => $this->_stop_one(),
29
-            ),
30
-            20 => array(
31
-                'id'      => 'category_name',
32
-                'content' => $this->_category_name_stop(),
33
-                'options' => array(
34
-                    'tipLocation'    => 'right',
35
-                    'tipAdjustmentY' => -55,
36
-                    'tipAdjustmentX' => 5,
37
-                ),
38
-            ),
39
-            30 => array(
40
-                'id'      => 'cat_id',
41
-                'content' => $this->_category_id_stop(),
42
-                'options' => array(
43
-                    'tipLocation'    => 'right',
44
-                    'tipAdjustmentY' => -55,
45
-                    'tipAdjustmentX' => 5,
46
-                ),
47
-            ),
48
-            40 => array(
49
-                'id'      => 'category_desc',
50
-                'content' => $this->_category_editor_stop(),
51
-                'options' => array(
52
-                    'tipLocation'    => 'top',
53
-                    'tipAdjustmentY' => -75,
54
-                    'tipAdjustmentX' => 250,
55
-                ),
56
-            ),
57
-        );
58
-    }
24
+	protected function _set_tour_stops()
25
+	{
26
+		$this->_stops = array(
27
+			10 => array(
28
+				'content' => $this->_stop_one(),
29
+			),
30
+			20 => array(
31
+				'id'      => 'category_name',
32
+				'content' => $this->_category_name_stop(),
33
+				'options' => array(
34
+					'tipLocation'    => 'right',
35
+					'tipAdjustmentY' => -55,
36
+					'tipAdjustmentX' => 5,
37
+				),
38
+			),
39
+			30 => array(
40
+				'id'      => 'cat_id',
41
+				'content' => $this->_category_id_stop(),
42
+				'options' => array(
43
+					'tipLocation'    => 'right',
44
+					'tipAdjustmentY' => -55,
45
+					'tipAdjustmentX' => 5,
46
+				),
47
+			),
48
+			40 => array(
49
+				'id'      => 'category_desc',
50
+				'content' => $this->_category_editor_stop(),
51
+				'options' => array(
52
+					'tipLocation'    => 'top',
53
+					'tipAdjustmentY' => -75,
54
+					'tipAdjustmentX' => 250,
55
+				),
56
+			),
57
+		);
58
+	}
59 59
 
60 60
 
61
-    protected function _stop_one()
62
-    {
63
-        $content = '<h3>' . __('Add New Venue Category', 'event_espresso') . '</h3>';
64
-        $content .= '<p>'
65
-                    . __(
66
-                        'This tour of the Add New Venue Category page will provide an overview of the different areas of the screen to help you understand what they are used for.',
67
-                        'event_espresso'
68
-                    ) . '</p>';
69
-        return $content;
70
-    }
61
+	protected function _stop_one()
62
+	{
63
+		$content = '<h3>' . __('Add New Venue Category', 'event_espresso') . '</h3>';
64
+		$content .= '<p>'
65
+					. __(
66
+						'This tour of the Add New Venue Category page will provide an overview of the different areas of the screen to help you understand what they are used for.',
67
+						'event_espresso'
68
+					) . '</p>';
69
+		return $content;
70
+	}
71 71
 
72
-    protected function _category_name_stop()
73
-    {
74
-        return '<p>' . __('Enter a name for your new venue category.', 'event_espresso') . '</p>';
75
-    }
72
+	protected function _category_name_stop()
73
+	{
74
+		return '<p>' . __('Enter a name for your new venue category.', 'event_espresso') . '</p>';
75
+	}
76 76
 
77
-    protected function _category_id_stop()
78
-    {
79
-        return '<p>' . __('Enter a unique ID for your new venue category.', 'event_espresso') . '</p>';
80
-    }
77
+	protected function _category_id_stop()
78
+	{
79
+		return '<p>' . __('Enter a unique ID for your new venue category.', 'event_espresso') . '</p>';
80
+	}
81 81
 
82
-    protected function _category_editor_stop()
83
-    {
84
-        return '<p>'
85
-               . __(
86
-                   'The rich text editor can be used to add information about your venue category. Images and links can also be added along with your text.',
87
-                   'event_espresso'
88
-               ) . '</p>';
89
-    }
82
+	protected function _category_editor_stop()
83
+	{
84
+		return '<p>'
85
+			   . __(
86
+				   'The rich text editor can be used to add information about your venue category. Images and links can also be added along with your text.',
87
+				   'event_espresso'
88
+			   ) . '</p>';
89
+	}
90 90
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,23 +60,23 @@  discard block
 block discarded – undo
60 60
 
61 61
     protected function _stop_one()
62 62
     {
63
-        $content = '<h3>' . __('Add New Venue Category', 'event_espresso') . '</h3>';
63
+        $content = '<h3>'.__('Add New Venue Category', 'event_espresso').'</h3>';
64 64
         $content .= '<p>'
65 65
                     . __(
66 66
                         'This tour of the Add New Venue Category page will provide an overview of the different areas of the screen to help you understand what they are used for.',
67 67
                         'event_espresso'
68
-                    ) . '</p>';
68
+                    ).'</p>';
69 69
         return $content;
70 70
     }
71 71
 
72 72
     protected function _category_name_stop()
73 73
     {
74
-        return '<p>' . __('Enter a name for your new venue category.', 'event_espresso') . '</p>';
74
+        return '<p>'.__('Enter a name for your new venue category.', 'event_espresso').'</p>';
75 75
     }
76 76
 
77 77
     protected function _category_id_stop()
78 78
     {
79
-        return '<p>' . __('Enter a unique ID for your new venue category.', 'event_espresso') . '</p>';
79
+        return '<p>'.__('Enter a unique ID for your new venue category.', 'event_espresso').'</p>';
80 80
     }
81 81
 
82 82
     protected function _category_editor_stop()
@@ -85,6 +85,6 @@  discard block
 block discarded – undo
85 85
                . __(
86 86
                    'The rich text editor can be used to add information about your venue category. Images and links can also be added along with your text.',
87 87
                    'event_espresso'
88
-               ) . '</p>';
88
+               ).'</p>';
89 89
     }
90 90
 }
Please login to merge, or discard this patch.