Completed
Branch decaf-fixes/main (0c91cf)
by
unknown
07:32 queued 02:36
created
admin_pages/events/qtips/EE_Event_Editor_Decaf_Tips.lib.php 1 patch
Indentation   +357 added lines, -357 removed lines patch added patch discarded remove patch
@@ -13,386 +13,386 @@
 block discarded – undo
13 13
 {
14 14
 
15 15
 
16
-    /**
17
-     * Creates the array for the tips
18
-     */
19
-    protected function _set_tips_array()
20
-    {
21
-        $this->_qtipsa = array(
22
-            2   => array(
23
-                'content_id' => 'dtt-evt-name-label',
24
-                'target'     => '.DTT_name_label',
25
-                'content'    => $this->_get_event_name_label_info(),
26
-            ),
27
-            3   => array(
28
-                'content_id' => 'dtt-evt-start-label',
29
-                'target'     => '.DTT_EVT_start_label',
30
-                'content'    => $this->_get_event_start_label_info(),
31
-            ),
32
-            5   => array(
33
-                'content_id' => 'dtt-evt-end-label',
34
-                'target'     => '.DTT_EVT_end_label',
35
-                'content'    => $this->_get_event_end_label_info(),
36
-            ),
37
-            10  => array(
38
-                'content_id' => 'dtt-reg-limit-label',
39
-                'target'     => '.DTT_reg_limit_label',
40
-                'content'    => $this->_get_event_datetime_DTT_reg_limit_label_info(),
41
-            ),
42
-            15  => array(
43
-                'content_id' => 'dtt-sold-label',
44
-                'target'     => '.DTT_sold_label',
45
-                'content'    => $this->_get_event_datetime_DTT_sold_label_info(),
46
-            ),
47
-            17  => array(
48
-                'content_id' => 'dtt-reserved-label',
49
-                'target'     => '.DTT_reserved_label',
50
-                'content'    => $this->_get_event_datetime_DTT_reserved_label_info(),
51
-            ),
52
-            20  => array(
53
-                'content_id' => 'tkt-name-label',
54
-                'target'     => '.TKT_name_label',
55
-                'content'    => $this->_get_event_ticket_TKT_name_label_info(),
56
-            ),
57
-            25  => array(
58
-                'content_id' => 'tkt-goes-on-sale-label',
59
-                'target'     => '.TKT_goes_on_sale_label',
60
-                'content'    => $this->_get_event_ticket_TKT_goes_on_sale_label_info(),
61
-            ),
62
-            30  => array(
63
-                'content_id' => 'tkt-sell-until-label',
64
-                'target'     => '.TKT_sell_until_label',
65
-                'content'    => $this->_get_event_ticket_TKT_sell_until_label_info(),
66
-            ),
67
-            35  => array(
68
-                'content_id' => 'tkt-price-label',
69
-                'target'     => '.TKT_price_label',
70
-                'content'    => $this->_get_event_ticket_TKT_price_label_info(),
71
-            ),
72
-            40  => array(
73
-                'content_id' => 'tkt-qty-label',
74
-                'target'     => '.TKT_qty_label',
75
-                'content'    => $this->_get_event_ticket_TKT_qty_label_info(),
76
-            ),
77
-            45  => array(
78
-                'content_id' => 'tkt-sold-label',
79
-                'target'     => '.TKT_sold_label',
80
-                'content'    => $this->_get_event_ticket_TKT_sold_label_info(),
81
-            ),
82
-            47  => array(
83
-                'content_id' => 'tkt-reserved-label',
84
-                'target'     => '.TKT_reserved_label',
85
-                'content'    => $this->_get_event_ticket_TKT_reserved_label_info(),
86
-            ),
87
-            50  => array(
88
-                'content_id' => 'tkt-regs-label',
89
-                'target'     => '.TKT_regs_label',
90
-                'content'    => $this->_get_event_ticket_TKT_regs_label_info(),
91
-            ),
92
-            55  => array(
93
-                'content_id' => 'ant-tkt-name-label',
94
-                'target'     => '.ANT_TKT_name_label',
95
-                'content'    => $this->_get_event_ticket_ANT_TKT_name_label_info(),
96
-            ),
97
-            60  => array(
98
-                'content_id' => 'ant-tkt-goes-on-sale-label',
99
-                'target'     => '.ANT_TKT_goes_on_sale_label',
100
-                'content'    => $this->_get_event_ticket_ANT_TKT_goes_on_sale_label_info(),
101
-            ),
102
-            65  => array(
103
-                'content_id' => 'ant-tkt-sell-until-label',
104
-                'target'     => '.ANT_TKT_sell_until_label',
105
-                'content'    => $this->_get_event_ticket_ANT_TKT_sell_until_label_info(),
106
-            ),
107
-            70  => array(
108
-                'content_id' => 'ant-tkt-price-label',
109
-                'target'     => '.ANT_TKT_price_label',
110
-                'content'    => $this->_get_event_ticket_ANT_TKT_price_label_info(),
111
-            ),
112
-            75  => array(
113
-                'content_id' => 'ant-tkt-qty-label',
114
-                'target'     => '.ANT_TKT_qty_label',
115
-                'content'    => $this->_get_event_ticket_ANT_TKT_qty_label_info(),
116
-            ),
117
-            80  => array(
118
-                'content_id' => 'ane-dtt-evt-start-label',
119
-                'target'     => '.add-new-event-datetime-DTT_EVT_start_label',
120
-                'content'    => $this->_get_add_new_event_start_label_info(),
121
-            ),
122
-            85  => array(
123
-                'content_id' => 'ane-dtt-evt-end-label',
124
-                'target'     => '.add-new-event-datetime-DTT_EVT_end_label',
125
-                'content'    => $this->_get_add_new_event_end_label_info(),
126
-            ),
127
-            90  => array(
128
-                'content_id' => 'ane_dtt-reg-limit-label',
129
-                'target'     => '.add-new-event-datetime-DTT_reg_limit_label',
130
-                'content'    => $this->_get_add_new_event_datetime_DTT_reg_limit_label_info(),
131
-            ),
132
-            100 => array(
133
-                'content_id' => 'td-tkt-number-datetimes-label',
134
-                'target'     => '.TD_TKT_number_datetimes_label',
135
-                'content'    => $this->_get_event_ticket_TD_TKT_number_datetimes_label_info(),
136
-            ),
137
-            110 => array(
138
-                'content_id' => 'td-tkt-min-qty-label',
139
-                'target'     => '.TD_TKT_min_qty_label',
140
-                'content'    => $this->_get_event_ticket_TD_TKT_min_qty_label_info(),
141
-            ),
142
-            120 => array(
143
-                'content_id' => 'td-tkt-max-qty-label',
144
-                'target'     => '.TD_TKT_max_qty_label',
145
-                'content'    => $this->_get_event_ticket_TD_TKT_max_qty_label_info(),
146
-            ),
147
-            130 => array(
148
-                'content_id' => 'ticket-lock-icon',
149
-                'target'     => '.ticket-archived .ee-lock-icon',
150
-                'content'    => esc_html__(
151
-                    'This ticket was automatically locked and archived because it has a sold quantity and the price was modified. Existing ticket holders will still be verified using these ticket details. However, Event Espresso has automatically created a new active ticket with the modified price for new registrants. This lock is meant to prevent accidental trashing of this ticket. Certain details of this ticket can still be edited (non disabled inputs).',
152
-                    'event_espresso'
153
-                ),
154
-            ),
155
-            135 => array(
156
-                'content_id' => 'ticket-lock-icon-event-editor',
157
-                'target'     => '.ee-lock-icon',
158
-                'content'    => esc_html__(
159
-                    'This datetime can no longer be duplicated or deleted because tickets associated with this datetime have already been sold.',
160
-                    'event_espresso'
161
-                ),
162
-            ),
163
-        );
164
-    }
16
+	/**
17
+	 * Creates the array for the tips
18
+	 */
19
+	protected function _set_tips_array()
20
+	{
21
+		$this->_qtipsa = array(
22
+			2   => array(
23
+				'content_id' => 'dtt-evt-name-label',
24
+				'target'     => '.DTT_name_label',
25
+				'content'    => $this->_get_event_name_label_info(),
26
+			),
27
+			3   => array(
28
+				'content_id' => 'dtt-evt-start-label',
29
+				'target'     => '.DTT_EVT_start_label',
30
+				'content'    => $this->_get_event_start_label_info(),
31
+			),
32
+			5   => array(
33
+				'content_id' => 'dtt-evt-end-label',
34
+				'target'     => '.DTT_EVT_end_label',
35
+				'content'    => $this->_get_event_end_label_info(),
36
+			),
37
+			10  => array(
38
+				'content_id' => 'dtt-reg-limit-label',
39
+				'target'     => '.DTT_reg_limit_label',
40
+				'content'    => $this->_get_event_datetime_DTT_reg_limit_label_info(),
41
+			),
42
+			15  => array(
43
+				'content_id' => 'dtt-sold-label',
44
+				'target'     => '.DTT_sold_label',
45
+				'content'    => $this->_get_event_datetime_DTT_sold_label_info(),
46
+			),
47
+			17  => array(
48
+				'content_id' => 'dtt-reserved-label',
49
+				'target'     => '.DTT_reserved_label',
50
+				'content'    => $this->_get_event_datetime_DTT_reserved_label_info(),
51
+			),
52
+			20  => array(
53
+				'content_id' => 'tkt-name-label',
54
+				'target'     => '.TKT_name_label',
55
+				'content'    => $this->_get_event_ticket_TKT_name_label_info(),
56
+			),
57
+			25  => array(
58
+				'content_id' => 'tkt-goes-on-sale-label',
59
+				'target'     => '.TKT_goes_on_sale_label',
60
+				'content'    => $this->_get_event_ticket_TKT_goes_on_sale_label_info(),
61
+			),
62
+			30  => array(
63
+				'content_id' => 'tkt-sell-until-label',
64
+				'target'     => '.TKT_sell_until_label',
65
+				'content'    => $this->_get_event_ticket_TKT_sell_until_label_info(),
66
+			),
67
+			35  => array(
68
+				'content_id' => 'tkt-price-label',
69
+				'target'     => '.TKT_price_label',
70
+				'content'    => $this->_get_event_ticket_TKT_price_label_info(),
71
+			),
72
+			40  => array(
73
+				'content_id' => 'tkt-qty-label',
74
+				'target'     => '.TKT_qty_label',
75
+				'content'    => $this->_get_event_ticket_TKT_qty_label_info(),
76
+			),
77
+			45  => array(
78
+				'content_id' => 'tkt-sold-label',
79
+				'target'     => '.TKT_sold_label',
80
+				'content'    => $this->_get_event_ticket_TKT_sold_label_info(),
81
+			),
82
+			47  => array(
83
+				'content_id' => 'tkt-reserved-label',
84
+				'target'     => '.TKT_reserved_label',
85
+				'content'    => $this->_get_event_ticket_TKT_reserved_label_info(),
86
+			),
87
+			50  => array(
88
+				'content_id' => 'tkt-regs-label',
89
+				'target'     => '.TKT_regs_label',
90
+				'content'    => $this->_get_event_ticket_TKT_regs_label_info(),
91
+			),
92
+			55  => array(
93
+				'content_id' => 'ant-tkt-name-label',
94
+				'target'     => '.ANT_TKT_name_label',
95
+				'content'    => $this->_get_event_ticket_ANT_TKT_name_label_info(),
96
+			),
97
+			60  => array(
98
+				'content_id' => 'ant-tkt-goes-on-sale-label',
99
+				'target'     => '.ANT_TKT_goes_on_sale_label',
100
+				'content'    => $this->_get_event_ticket_ANT_TKT_goes_on_sale_label_info(),
101
+			),
102
+			65  => array(
103
+				'content_id' => 'ant-tkt-sell-until-label',
104
+				'target'     => '.ANT_TKT_sell_until_label',
105
+				'content'    => $this->_get_event_ticket_ANT_TKT_sell_until_label_info(),
106
+			),
107
+			70  => array(
108
+				'content_id' => 'ant-tkt-price-label',
109
+				'target'     => '.ANT_TKT_price_label',
110
+				'content'    => $this->_get_event_ticket_ANT_TKT_price_label_info(),
111
+			),
112
+			75  => array(
113
+				'content_id' => 'ant-tkt-qty-label',
114
+				'target'     => '.ANT_TKT_qty_label',
115
+				'content'    => $this->_get_event_ticket_ANT_TKT_qty_label_info(),
116
+			),
117
+			80  => array(
118
+				'content_id' => 'ane-dtt-evt-start-label',
119
+				'target'     => '.add-new-event-datetime-DTT_EVT_start_label',
120
+				'content'    => $this->_get_add_new_event_start_label_info(),
121
+			),
122
+			85  => array(
123
+				'content_id' => 'ane-dtt-evt-end-label',
124
+				'target'     => '.add-new-event-datetime-DTT_EVT_end_label',
125
+				'content'    => $this->_get_add_new_event_end_label_info(),
126
+			),
127
+			90  => array(
128
+				'content_id' => 'ane_dtt-reg-limit-label',
129
+				'target'     => '.add-new-event-datetime-DTT_reg_limit_label',
130
+				'content'    => $this->_get_add_new_event_datetime_DTT_reg_limit_label_info(),
131
+			),
132
+			100 => array(
133
+				'content_id' => 'td-tkt-number-datetimes-label',
134
+				'target'     => '.TD_TKT_number_datetimes_label',
135
+				'content'    => $this->_get_event_ticket_TD_TKT_number_datetimes_label_info(),
136
+			),
137
+			110 => array(
138
+				'content_id' => 'td-tkt-min-qty-label',
139
+				'target'     => '.TD_TKT_min_qty_label',
140
+				'content'    => $this->_get_event_ticket_TD_TKT_min_qty_label_info(),
141
+			),
142
+			120 => array(
143
+				'content_id' => 'td-tkt-max-qty-label',
144
+				'target'     => '.TD_TKT_max_qty_label',
145
+				'content'    => $this->_get_event_ticket_TD_TKT_max_qty_label_info(),
146
+			),
147
+			130 => array(
148
+				'content_id' => 'ticket-lock-icon',
149
+				'target'     => '.ticket-archived .ee-lock-icon',
150
+				'content'    => esc_html__(
151
+					'This ticket was automatically locked and archived because it has a sold quantity and the price was modified. Existing ticket holders will still be verified using these ticket details. However, Event Espresso has automatically created a new active ticket with the modified price for new registrants. This lock is meant to prevent accidental trashing of this ticket. Certain details of this ticket can still be edited (non disabled inputs).',
152
+					'event_espresso'
153
+				),
154
+			),
155
+			135 => array(
156
+				'content_id' => 'ticket-lock-icon-event-editor',
157
+				'target'     => '.ee-lock-icon',
158
+				'content'    => esc_html__(
159
+					'This datetime can no longer be duplicated or deleted because tickets associated with this datetime have already been sold.',
160
+					'event_espresso'
161
+				),
162
+			),
163
+		);
164
+	}
165 165
 
166
-    /**
167
-     * @return string
168
-     */
169
-    private function _get_event_name_label_info()
170
-    {
171
-        return esc_html__(
172
-            'This is the name or title for an event datetime.',
173
-            'event_espresso'
174
-        );
175
-    }
166
+	/**
167
+	 * @return string
168
+	 */
169
+	private function _get_event_name_label_info()
170
+	{
171
+		return esc_html__(
172
+			'This is the name or title for an event datetime.',
173
+			'event_espresso'
174
+		);
175
+	}
176 176
 
177
-    /**
178
-     * @return string
179
-     */
180
-    private function _get_event_start_label_info()
181
-    {
182
-        return esc_html__(
183
-            'This shows when this event datetime starts.',
184
-            'event_espresso'
185
-        );
186
-    }
177
+	/**
178
+	 * @return string
179
+	 */
180
+	private function _get_event_start_label_info()
181
+	{
182
+		return esc_html__(
183
+			'This shows when this event datetime starts.',
184
+			'event_espresso'
185
+		);
186
+	}
187 187
 
188
-    /**
189
-     * @return string
190
-     */
191
-    private function _get_event_end_label_info()
192
-    {
193
-        return esc_html__('This shows when this event datetime ends.', 'event_espresso');
194
-    }
188
+	/**
189
+	 * @return string
190
+	 */
191
+	private function _get_event_end_label_info()
192
+	{
193
+		return esc_html__('This shows when this event datetime ends.', 'event_espresso');
194
+	}
195 195
 
196
-    /**
197
-     * @return string
198
-     */
199
-    private function _get_event_datetime_DTT_reg_limit_label_info()
200
-    {
201
-        return esc_html__(
202
-            'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.',
203
-            'event_espresso'
204
-        );
205
-    }
196
+	/**
197
+	 * @return string
198
+	 */
199
+	private function _get_event_datetime_DTT_reg_limit_label_info()
200
+	{
201
+		return esc_html__(
202
+			'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.',
203
+			'event_espresso'
204
+		);
205
+	}
206 206
 
207
-    /**
208
-     * @return string
209
-     */
210
-    private function _get_event_datetime_DTT_sold_label_info()
211
-    {
212
-        return esc_html__(
213
-            'This shows the number of tickets that have been sold that have access to this event datetime.',
214
-            'event_espresso'
215
-        );
216
-    }
207
+	/**
208
+	 * @return string
209
+	 */
210
+	private function _get_event_datetime_DTT_sold_label_info()
211
+	{
212
+		return esc_html__(
213
+			'This shows the number of tickets that have been sold that have access to this event datetime.',
214
+			'event_espresso'
215
+		);
216
+	}
217 217
 
218
-    /**
219
-     * @return string
220
-     */
221
-    private function _get_event_datetime_DTT_reserved_label_info()
222
-    {
223
-        return esc_html__(
224
-            'This shows the number of reserved tickets that have access to this event datetime.',
225
-            'event_espresso'
226
-        );
227
-    }
218
+	/**
219
+	 * @return string
220
+	 */
221
+	private function _get_event_datetime_DTT_reserved_label_info()
222
+	{
223
+		return esc_html__(
224
+			'This shows the number of reserved tickets that have access to this event datetime.',
225
+			'event_espresso'
226
+		);
227
+	}
228 228
 
229
-    /**
230
-     * @return string
231
-     */
232
-    private function _get_event_ticket_TKT_name_label_info()
233
-    {
234
-        return esc_html__('This is the name of this ticket option.', 'event_espresso');
235
-    }
229
+	/**
230
+	 * @return string
231
+	 */
232
+	private function _get_event_ticket_TKT_name_label_info()
233
+	{
234
+		return esc_html__('This is the name of this ticket option.', 'event_espresso');
235
+	}
236 236
 
237
-    /**
238
-     * @return string
239
-     */
240
-    private function _get_event_ticket_TKT_goes_on_sale_label_info()
241
-    {
242
-        return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso');
243
-    }
237
+	/**
238
+	 * @return string
239
+	 */
240
+	private function _get_event_ticket_TKT_goes_on_sale_label_info()
241
+	{
242
+		return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso');
243
+	}
244 244
 
245
-    /**
246
-     * @return string
247
-     */
248
-    private function _get_event_ticket_TKT_sell_until_label_info()
249
-    {
250
-        return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso');
251
-    }
245
+	/**
246
+	 * @return string
247
+	 */
248
+	private function _get_event_ticket_TKT_sell_until_label_info()
249
+	{
250
+		return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso');
251
+	}
252 252
 
253
-    /**
254
-     * @return string
255
-     */
256
-    private function _get_event_ticket_TKT_price_label_info()
257
-    {
258
-        return esc_html__('This is the price for this ticket.', 'event_espresso');
259
-    }
253
+	/**
254
+	 * @return string
255
+	 */
256
+	private function _get_event_ticket_TKT_price_label_info()
257
+	{
258
+		return esc_html__('This is the price for this ticket.', 'event_espresso');
259
+	}
260 260
 
261
-    /**
262
-     * @return string
263
-     */
264
-    private function _get_event_ticket_TKT_qty_label_info()
265
-    {
266
-        return esc_html__(
267
-            'This field shows the quantity of tickets that are available for this type of ticket.',
268
-            'event_espresso'
269
-        );
270
-    }
261
+	/**
262
+	 * @return string
263
+	 */
264
+	private function _get_event_ticket_TKT_qty_label_info()
265
+	{
266
+		return esc_html__(
267
+			'This field shows the quantity of tickets that are available for this type of ticket.',
268
+			'event_espresso'
269
+		);
270
+	}
271 271
 
272
-    /**
273
-     * @return string
274
-     */
275
-    private function _get_event_ticket_TKT_sold_label_info()
276
-    {
277
-        return esc_html__('This shows the number of tickets that have been sold for this ticket.', 'event_espresso');
278
-    }
272
+	/**
273
+	 * @return string
274
+	 */
275
+	private function _get_event_ticket_TKT_sold_label_info()
276
+	{
277
+		return esc_html__('This shows the number of tickets that have been sold for this ticket.', 'event_espresso');
278
+	}
279 279
 
280
-    /**
281
-     * @return string
282
-     */
283
-    private function _get_event_ticket_TKT_reserved_label_info()
284
-    {
285
-        return esc_html__('This shows the number of tickets that are reserved for this ticket.', 'event_espresso');
286
-    }
280
+	/**
281
+	 * @return string
282
+	 */
283
+	private function _get_event_ticket_TKT_reserved_label_info()
284
+	{
285
+		return esc_html__('This shows the number of tickets that are reserved for this ticket.', 'event_espresso');
286
+	}
287 287
 
288
-    /**
289
-     * @return string
290
-     */
291
-    private function _get_event_ticket_TKT_regs_label_info()
292
-    {
293
-        return esc_html__(
294
-            'This shows the number of registrations that have occurred from ticket sales.',
295
-            'event_espresso'
296
-        );
297
-    }
288
+	/**
289
+	 * @return string
290
+	 */
291
+	private function _get_event_ticket_TKT_regs_label_info()
292
+	{
293
+		return esc_html__(
294
+			'This shows the number of registrations that have occurred from ticket sales.',
295
+			'event_espresso'
296
+		);
297
+	}
298 298
 
299
-    /**
300
-     * @return string
301
-     */
302
-    private function _get_event_ticket_ANT_TKT_name_label_info()
303
-    {
304
-        return esc_html__('This is the name of this ticket option.', 'event_espresso');
305
-    }
299
+	/**
300
+	 * @return string
301
+	 */
302
+	private function _get_event_ticket_ANT_TKT_name_label_info()
303
+	{
304
+		return esc_html__('This is the name of this ticket option.', 'event_espresso');
305
+	}
306 306
 
307
-    /**
308
-     * @return string
309
-     */
310
-    private function _get_event_ticket_ANT_TKT_goes_on_sale_label_info()
311
-    {
312
-        return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso');
313
-    }
307
+	/**
308
+	 * @return string
309
+	 */
310
+	private function _get_event_ticket_ANT_TKT_goes_on_sale_label_info()
311
+	{
312
+		return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso');
313
+	}
314 314
 
315
-    /**
316
-     * @return string
317
-     */
318
-    private function _get_event_ticket_ANT_TKT_sell_until_label_info()
319
-    {
320
-        return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso');
321
-    }
315
+	/**
316
+	 * @return string
317
+	 */
318
+	private function _get_event_ticket_ANT_TKT_sell_until_label_info()
319
+	{
320
+		return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso');
321
+	}
322 322
 
323
-    /**
324
-     * @return string
325
-     */
326
-    private function _get_event_ticket_ANT_TKT_price_label_info()
327
-    {
328
-        return esc_html__('This is the price for this ticket.', 'event_espresso');
329
-    }
323
+	/**
324
+	 * @return string
325
+	 */
326
+	private function _get_event_ticket_ANT_TKT_price_label_info()
327
+	{
328
+		return esc_html__('This is the price for this ticket.', 'event_espresso');
329
+	}
330 330
 
331
-    /**
332
-     * @return string
333
-     */
334
-    private function _get_event_ticket_ANT_TKT_qty_label_info()
335
-    {
336
-        return esc_html__(
337
-            'This field shows the quantity of tickets that are available for this type of ticket.',
338
-            'event_espresso'
339
-        );
340
-    }
331
+	/**
332
+	 * @return string
333
+	 */
334
+	private function _get_event_ticket_ANT_TKT_qty_label_info()
335
+	{
336
+		return esc_html__(
337
+			'This field shows the quantity of tickets that are available for this type of ticket.',
338
+			'event_espresso'
339
+		);
340
+	}
341 341
 
342
-    /**
343
-     * @return string
344
-     */
345
-    private function _get_add_new_event_start_label_info()
346
-    {
347
-        return esc_html__('This shows when this event datetime starts.', 'event_espresso');
348
-    }
342
+	/**
343
+	 * @return string
344
+	 */
345
+	private function _get_add_new_event_start_label_info()
346
+	{
347
+		return esc_html__('This shows when this event datetime starts.', 'event_espresso');
348
+	}
349 349
 
350
-    /**
351
-     * @return string
352
-     */
353
-    private function _get_add_new_event_end_label_info()
354
-    {
355
-        return esc_html__('This shows when this event datetime ends.', 'event_espresso');
356
-    }
350
+	/**
351
+	 * @return string
352
+	 */
353
+	private function _get_add_new_event_end_label_info()
354
+	{
355
+		return esc_html__('This shows when this event datetime ends.', 'event_espresso');
356
+	}
357 357
 
358
-    /**
359
-     * @return string
360
-     */
361
-    private function _get_add_new_event_datetime_DTT_reg_limit_label_info()
362
-    {
363
-        return esc_html__(
364
-            'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.',
365
-            'event_espresso'
366
-        );
367
-    }
358
+	/**
359
+	 * @return string
360
+	 */
361
+	private function _get_add_new_event_datetime_DTT_reg_limit_label_info()
362
+	{
363
+		return esc_html__(
364
+			'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.',
365
+			'event_espresso'
366
+		);
367
+	}
368 368
 
369
-    /**
370
-     * @return string
371
-     */
372
-    private function _get_event_ticket_TD_TKT_number_datetimes_label_info()
373
-    {
374
-        return esc_html__(
375
-            'This field allows you to set the number of datetimes that a ticket should have access to.',
376
-            'event_espresso'
377
-        );
378
-    }
369
+	/**
370
+	 * @return string
371
+	 */
372
+	private function _get_event_ticket_TD_TKT_number_datetimes_label_info()
373
+	{
374
+		return esc_html__(
375
+			'This field allows you to set the number of datetimes that a ticket should have access to.',
376
+			'event_espresso'
377
+		);
378
+	}
379 379
 
380
-    /**
381
-     * @return string
382
-     */
383
-    private function _get_event_ticket_TD_TKT_min_qty_label_info()
384
-    {
385
-        return esc_html__(
386
-            'This shows the minimum quantity that can be purchased for this ticket.',
387
-            'event_espresso'
388
-        );
389
-    }
380
+	/**
381
+	 * @return string
382
+	 */
383
+	private function _get_event_ticket_TD_TKT_min_qty_label_info()
384
+	{
385
+		return esc_html__(
386
+			'This shows the minimum quantity that can be purchased for this ticket.',
387
+			'event_espresso'
388
+		);
389
+	}
390 390
 
391
-    /**
392
-     * @return string
393
-     */
394
-    private function _get_event_ticket_TD_TKT_max_qty_label_info()
395
-    {
396
-        return esc_html__('This shows the maximum quantity that can be purchased for this ticket.', 'event_espresso');
397
-    }
391
+	/**
392
+	 * @return string
393
+	 */
394
+	private function _get_event_ticket_TD_TKT_max_qty_label_info()
395
+	{
396
+		return esc_html__('This shows the maximum quantity that can be purchased for this ticket.', 'event_espresso');
397
+	}
398 398
 }
Please login to merge, or discard this patch.
admin_pages/events/help_tabs/general_settings_templates.help_tab.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     ),
49 49
     '<br/>',
50 50
     htmlentities('<!--more-->')
51
-);?>
51
+); ?>
52 52
 </li>
53 53
 <li>
54 54
 <strong><?php _e('Display Ticket Selector', 'event_espresso'); ?></strong><br />
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@
 block discarded – undo
42 42
 <li>
43 43
 <strong><?php _e('Display Descriptions', 'event_espresso'); ?></strong><br />
44 44
 <?php printf(
45
-    esc_html__(
46
-        'Whether descriptions should be shown on the event list page.%1$sSelecting "none" will NOT display any of the text content you entered into the main text editor on the event admin page.%1$sSelecting "excerpt" will display the text you entered into the "Excerpt" textarea on the event admin page, OR, any text in the main text editor above the %2$s tag.%1$sSelecting "full description" will display ALL of the text content you entered into the main text editor on the event admin page.',
47
-        'event_espresso'
48
-    ),
49
-    '<br/>',
50
-    htmlentities('<!--more-->')
45
+	esc_html__(
46
+		'Whether descriptions should be shown on the event list page.%1$sSelecting "none" will NOT display any of the text content you entered into the main text editor on the event admin page.%1$sSelecting "excerpt" will display the text you entered into the "Excerpt" textarea on the event admin page, OR, any text in the main text editor above the %2$s tag.%1$sSelecting "full description" will display ALL of the text content you entered into the main text editor on the event admin page.',
47
+		'event_espresso'
48
+	),
49
+	'<br/>',
50
+	htmlentities('<!--more-->')
51 51
 );?>
52 52
 </li>
53 53
 <li>
Please login to merge, or discard this patch.
admin_pages/events/templates/event_settings.template.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@
 block discarded – undo
12 12
             <td>
13 13
                 <p>
14 14
                     <?php echo EEH_Form_Fields::select_input(
15
-                        'default_reg_status',
16
-                        $reg_status_array,
17
-                        $default_reg_status
18
-                    ) ?></p>
15
+						'default_reg_status',
16
+						$reg_status_array,
17
+						$default_reg_status
18
+					) ?></p>
19 19
                 <p class="description">
20 20
                     <?php _e(
21
-                        'This setting allows you to preselect what the default registration status setting is when creating an event.  Note that changing this setting does NOT retroactively apply it to existing events.',
22
-                        'event_espresso'
23
-                    ); ?>
21
+						'This setting allows you to preselect what the default registration status setting is when creating an event.  Note that changing this setting does NOT retroactively apply it to existing events.',
22
+						'event_espresso'
23
+					); ?>
24 24
                 </p>
25 25
             </td>
26 26
         </tr>
Please login to merge, or discard this patch.
admin_pages/events/templates/event_tickets_metabox_ticket_row.template.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,9 +32,12 @@  discard block
 block discarded – undo
32 32
         <?php if (empty($disabled)) : ?>
33 33
             <input type="text" size="1" class="edit-price-PRC_amount ee-small-text-inp ee-inp-right"
34 34
                    name="edit_prices[<?php echo $ticketrow; ?>][1][PRC_amount]" value="<?php echo $PRC_amount; ?>">
35
-        <?php else : ?>
35
+        <?php else {
36
+	: ?>
36 37
             <input type="text" size="1" class="edit-price-PRC_amount ee-small-text-inp ee-inp-right"
37
-                   name="disabled_price_amount" value="<?php echo $PRC_amount; ?>"<?php echo $disabled; ?>>
38
+                   name="disabled_price_amount" value="<?php echo $PRC_amount;
39
+}
40
+?>"<?php echo $disabled; ?>>
38 41
             <input type="hidden" size="1" class="edit-price-PRC_amount ee-small-text-inp ee-inp-right"
39 42
                    name="edit_prices[<?php echo $ticketrow; ?>][1][PRC_amount]" value="<?php echo $PRC_amount; ?>">
40 43
         <?php endif; ?>
@@ -51,9 +54,12 @@  discard block
 block discarded – undo
51 54
             <input type="text" class="edit-ticket-TKT_qty ee-small-text-inp ee-inp-right"
52 55
                    name="<?php echo $edit_ticketrow_name; ?>[<?php echo $ticketrow; ?>][TKT_qty]"
53 56
                    value="<?php echo $TKT_qty; ?>">
54
-        <?php else : ?>
57
+        <?php else {
58
+	: ?>
55 59
             <input type="text" class="edit-ticket-TKT_qty ee-small-text-inp ee-inp-right" name="disabled_tkt_qty"
56
-                   value="<?php echo $TKT_qty; ?>"<?php echo $disabled; ?>>
60
+                   value="<?php echo $TKT_qty;
61
+}
62
+?>"<?php echo $disabled; ?>>
57 63
             <input type="hidden" class="edit-ticket-TKT_qty ee-small-text-inp ee-inp-right"
58 64
                    name="<?php echo $edit_ticketrow_name; ?>[<?php echo $ticketrow; ?>][TKT_qty]"
59 65
                    value="<?php echo $TKT_qty; ?>">
Please login to merge, or discard this patch.
admin_pages/events/templates/event_category_details.template.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
                 <br/>
20 20
                 <p class="small-text">
21 21
                     <?php _e(
22
-                        'This is a default category so you can edit the label and the description but not the slug',
23
-                        'event_espresso'
24
-                    ); ?></p>
22
+						'This is a default category so you can edit the label and the description but not the slug',
23
+						'event_espresso'
24
+					); ?></p>
25 25
             <?php endif; ?>
26 26
         </td>
27 27
     </tr>
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
             <br/>
34 34
             <p class="description">
35 35
                 <?php _e(
36
-                    'Categories are hierarchical.  You can change the parent for this category here.',
37
-                    'event_espresso'
38
-                ); ?></p>
36
+					'Categories are hierarchical.  You can change the parent for this category here.',
37
+					'event_espresso'
38
+				); ?></p>
39 39
         </td>
40 40
     </tr>
41 41
     <tr>
Please login to merge, or discard this patch.
admin_pages/events/templates/event_registration_options.template.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 <p>
7 7
     <label for="max-registrants">
8 8
         <?php _e(
9
-            'Maximum number of tickets allowed per order for this event: ',
10
-            'event_espresso'
11
-        ); ?></label>
9
+			'Maximum number of tickets allowed per order for this event: ',
10
+			'event_espresso'
11
+		); ?></label>
12 12
     <input class="ee-numeric" type="text" id="max-registrants" name="additional_limit"
13 13
            value="<?php echo $additional_limit; ?>" size="4"/>
14 14
 </p>
Please login to merge, or discard this patch.
espresso_thank_you/templates/thank-you-page-overview.template.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 <div id="espresso-thank-you-page-overview-dv" class="width-100">
11 11
 
12
-    <?php if (! $revisit) : ?>
12
+    <?php if ( ! $revisit) : ?>
13 13
         <div class="ee-attention">
14 14
             <div class="extra-padding-sides">
15 15
                 <?php echo apply_filters(
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
                         '<br />'
22 22
                     )
23 23
                 );
24
-                if (! empty($TXN_receipt_url)) : ?>
24
+                if ( ! empty($TXN_receipt_url)) : ?>
25 25
                     <br/>
26 26
                     <div class="jst-rght">
27 27
                         <a class="ee-button ee-roundish indented-text big-text"
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -13,26 +13,26 @@
 block discarded – undo
13 13
         <div class="ee-attention">
14 14
             <div class="extra-padding-sides">
15 15
                 <?php echo apply_filters(
16
-                    'FHEE__thank_you_page_overview_template__order_conf_desc',
17
-                    sprintf(
18
-                        $order_conf_desc,
19
-                        '<h3 class="">',
20
-                        '</h3>',
21
-                        '<br />'
22
-                    )
23
-                );
24
-                if (! empty($TXN_receipt_url)) : ?>
16
+					'FHEE__thank_you_page_overview_template__order_conf_desc',
17
+					sprintf(
18
+						$order_conf_desc,
19
+						'<h3 class="">',
20
+						'</h3>',
21
+						'<br />'
22
+					)
23
+				);
24
+				if (! empty($TXN_receipt_url)) : ?>
25 25
                     <br/>
26 26
                     <div class="jst-rght">
27 27
                         <a class="ee-button ee-roundish indented-text big-text"
28 28
                            href="<?php echo $TXN_receipt_url; ?>"><span
29 29
                                 class="ee-icon ee-icon-PDF-file-type"></span>
30 30
                             <?php
31
-                            echo apply_filters(
32
-                                'FHEE__thank_you_page_overview_template__order_conf_button_text',
33
-                                esc_html__('View Full Order Confirmation Receipt', 'event_espresso')
34
-                            );
35
-                            ?></a>
31
+							echo apply_filters(
32
+								'FHEE__thank_you_page_overview_template__order_conf_button_text',
33
+								esc_html__('View Full Order Confirmation Receipt', 'event_espresso')
34
+							);
35
+							?></a>
36 36
                     </div>
37 37
                 <?php endif; ?>
38 38
             </div>
Please login to merge, or discard this patch.
templates/thank-you-page-registration-details.template.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 <tbody>
47 47
                 <?php
48 48
             }
49
-            if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?>
49
+            if ($is_primary || ( ! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?>
50 50
                 <tr>
51 51
                     <td width="40%">
52 52
                         <?php
Please login to merge, or discard this patch.
Indentation   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -11,22 +11,22 @@  discard block
 block discarded – undo
11 11
 
12 12
 <div class="ee-registration-details-dv">
13 13
     <?php
14
-    $registrations = $transaction->registrations();
15
-    $registrations = is_array($registrations) ? $registrations : array();
16
-    $reg_count = count($registrations);
17
-    $reg_cntr = 0;
18
-    $event_name = '';
19
-    $wait_list = false;
20
-    foreach ($registrations as $registration) {
21
-        if ($registration instanceof EE_Registration) {
22
-            if ($event_name != $registration->event_name() && ! empty($event_name)) { ?>
14
+	$registrations = $transaction->registrations();
15
+	$registrations = is_array($registrations) ? $registrations : array();
16
+	$reg_count = count($registrations);
17
+	$reg_cntr = 0;
18
+	$event_name = '';
19
+	$wait_list = false;
20
+	foreach ($registrations as $registration) {
21
+		if ($registration instanceof EE_Registration) {
22
+			if ($event_name != $registration->event_name() && ! empty($event_name)) { ?>
23 23
                 </tbody>
24 24
                 </table>
25 25
                 <?php
26
-            }
27
-            $reg_cntr++;
28
-            if ($event_name != $registration->event_name()) {
29
-                ?>
26
+			}
27
+			$reg_cntr++;
28
+			if ($event_name != $registration->event_name()) {
29
+				?>
30 30
                 <h5>
31 31
                     <span class="smaller-text grey-text"><?php _e('for', 'event_espresso'); ?>
32 32
                         : </span> <?php echo htmlentities($registration->event_name(), ENT_QUOTES, 'UTF-8'); ?>
@@ -47,48 +47,48 @@  discard block
 block discarded – undo
47 47
                 </thead>
48 48
                 <tbody>
49 49
                 <?php
50
-            }
51
-            if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?>
50
+			}
51
+			if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?>
52 52
                 <tr>
53 53
                     <td width="40%">
54 54
                         <?php
55
-                        if ($registration->attendee() instanceof EE_Attendee) {
56
-                            echo $registration->attendee()->full_name(true);
57
-                        }
58
-                        ?>
55
+						if ($registration->attendee() instanceof EE_Attendee) {
56
+							echo $registration->attendee()->full_name(true);
57
+						}
58
+						?>
59 59
                         <p class="tiny-text" style="margin: .75em 0 0;">
60 60
                             <?php
61
-                            if ($registration->count_question_groups()) {
62
-                                ?>
61
+							if ($registration->count_question_groups()) {
62
+								?>
63 63
                                 <a class="ee-icon-only-lnk"
64 64
                                    href="<?php echo $registration->edit_attendee_information_url(); ?>"
65 65
                                    title="<?php
66
-                                               esc_attr_e(
67
-                                                   'Click here to edit Attendee Information',
68
-                                                   'event_espresso'
69
-                                               ); ?>"><span class="ee-icon ee-icon-user-edit"></span>
66
+											   esc_attr_e(
67
+												   'Click here to edit Attendee Information',
68
+												   'event_espresso'
69
+											   ); ?>"><span class="ee-icon ee-icon-user-edit"></span>
70 70
                                     <?php
71
-                                    _e(
72
-                                        'edit info',
73
-                                        'event_espresso'
74
-                                    ); ?></a>
71
+									_e(
72
+										'edit info',
73
+										'event_espresso'
74
+									); ?></a>
75 75
                             <?php } ?>
76 76
                             <a class="ee-resend-reg-confirmation-email ee-icon-only-lnk"
77 77
                                href="<?php
78
-                                        echo add_query_arg(
79
-                                            array('token' => $registration->reg_url_link(), 'resend_reg_confirmation' => 'true'),
80
-                                            EE_Registry::instance()->CFG->core->thank_you_page_url()
81
-                                        ); ?>" title="<?php
82
-                                                        esc_attr_e(
83
-                                                            'Click here to resend the Registration Confirmation email',
84
-                                                            'event_espresso'
85
-                                                        ); ?>" rel="<?php echo $registration->reg_url_link(); ?>"><span
78
+										echo add_query_arg(
79
+											array('token' => $registration->reg_url_link(), 'resend_reg_confirmation' => 'true'),
80
+											EE_Registry::instance()->CFG->core->thank_you_page_url()
81
+										); ?>" title="<?php
82
+														esc_attr_e(
83
+															'Click here to resend the Registration Confirmation email',
84
+															'event_espresso'
85
+														); ?>" rel="<?php echo $registration->reg_url_link(); ?>"><span
86 86
                                                                 class="dashicons dashicons-email-alt"></span>
87 87
                                 <?php
88
-                                _e(
89
-                                    'resend email',
90
-                                    'event_espresso'
91
-                                ); ?></a>
88
+								_e(
89
+									'resend email',
90
+									'event_espresso'
91
+								); ?></a>
92 92
                         </p>
93 93
                     </td>
94 94
                     <td width="25%" class="jst-left">
@@ -97,53 +97,53 @@  discard block
 block discarded – undo
97 97
                     <td width="35%" class="jst-left">
98 98
                         <?php $registration->e_pretty_status(true) ?>
99 99
                         <?php
100
-                        if ($registration->status_ID() === EEM_Registration::status_id_wait_list) {
101
-                            $wait_list = true;
102
-                        }
103
-                        ?>
100
+						if ($registration->status_ID() === EEM_Registration::status_id_wait_list) {
101
+							$wait_list = true;
102
+						}
103
+						?>
104 104
                     </td>
105 105
                 </tr>
106 106
                 <?php do_action(
107
-                    'AHEE__thank_you_page_registration_details_template__after_registration_table_row',
108
-                    $registration
109
-                ); ?>
107
+					'AHEE__thank_you_page_registration_details_template__after_registration_table_row',
108
+					$registration
109
+				); ?>
110 110
                 <?php
111
-                $event_name = $registration->event_name();
112
-            }
113
-            if ($reg_cntr >= $reg_count) {
114
-                ?>
111
+				$event_name = $registration->event_name();
112
+			}
113
+			if ($reg_cntr >= $reg_count) {
114
+				?>
115 115
                 </tbody>
116 116
                 </table>
117 117
                 <?php
118
-            }
119
-        }
120
-    }
121
-    ?>
118
+			}
119
+		}
120
+	}
121
+	?>
122 122
     <?php if ($is_primary && $SPCO_attendee_information_url) { ?>
123 123
         <p class="small-text jst-rght">
124 124
             <a href='<?php echo $SPCO_attendee_information_url ?>'>
125 125
                 <?php
126
-                _e(
127
-                    "Click here to edit All Attendee Information",
128
-                    'event_espresso'
129
-                ); ?></a>
126
+				_e(
127
+					"Click here to edit All Attendee Information",
128
+					'event_espresso'
129
+				); ?></a>
130 130
         </p>
131 131
     <?php } ?>
132 132
     <?php if ($wait_list) { ?>
133 133
         <?php
134
-        echo apply_filters(
135
-            'AFEE__thank_you_page_registration_details_template__wait_list_notice',
136
-            sprintf(
137
-                esc_html__(
138
-                    '%1$sre: Wait List Registrations%2$sPlease note that the total cost listed below in the Transaction Details is for ALL registrations, including those that are on the wait list, even though they can not be currently paid for. If any spaces become available however, you may be notified by the Event admin and have the opportunity to secure the remaining tickets by making a payment for them.%3$s',
139
-                    'event_espresso'
140
-                ),
141
-                '<h6 class="" style="margin-bottom:.25em;"><span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>',
142
-                '</h6 ><p class="ee-wait-list-notice">',
143
-                '</p ><br />'
144
-            )
145
-        );
146
-        ?>
134
+		echo apply_filters(
135
+			'AFEE__thank_you_page_registration_details_template__wait_list_notice',
136
+			sprintf(
137
+				esc_html__(
138
+					'%1$sre: Wait List Registrations%2$sPlease note that the total cost listed below in the Transaction Details is for ALL registrations, including those that are on the wait list, even though they can not be currently paid for. If any spaces become available however, you may be notified by the Event admin and have the opportunity to secure the remaining tickets by making a payment for them.%3$s',
139
+					'event_espresso'
140
+				),
141
+				'<h6 class="" style="margin-bottom:.25em;"><span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>',
142
+				'</h6 ><p class="ee-wait-list-notice">',
143
+				'</p ><br />'
144
+			)
145
+		);
146
+		?>
147 147
     <?php } ?>
148 148
 
149 149
 
Please login to merge, or discard this patch.
espresso_thank_you/templates/thank-you-page-payment-details.template.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 <div id="espresso-thank-you-page-payment-details-dv">
7 7
     <?php
8
-    if (! empty($payments)) { ?>
8
+    if ( ! empty($payments)) { ?>
9 9
         <table class="ee-table">
10 10
             <thead>
11 11
             <tr>
Please login to merge, or discard this patch.
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 <div id="espresso-thank-you-page-payment-details-dv">
7 7
     <?php
8
-    if (! empty($payments)) { ?>
8
+	if (! empty($payments)) { ?>
9 9
         <table class="ee-table">
10 10
             <thead>
11 11
             <tr>
@@ -25,40 +25,40 @@  discard block
 block discarded – undo
25 25
             </thead>
26 26
             <tbody>
27 27
             <?php
28
-            foreach ($payments as $payment) {
29
-                echo $payment;
30
-            }
31
-            ?>
28
+			foreach ($payments as $payment) {
29
+				echo $payment;
30
+			}
31
+			?>
32 32
             </tbody>
33 33
         </table>
34 34
         <?php
35
-    } else {
36
-        if ($transaction->total()) {
37
-            echo apply_filters(
38
-                'FHEE__payment_overview_template__no_payments_made',
39
-                sprintf(
40
-                    esc_html__('%sNo payments towards this transaction have been received.%s', 'event_espresso'),
41
-                    '<p class="important-notice">',
42
-                    '</p>'
43
-                )
44
-            );
45
-            do_action('AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction);
46
-        } else {
47
-            echo apply_filters(
48
-                'FHEE__payment_overview_template__no_payment_required',
49
-                sprintf(
50
-                    esc_html__('%sNo payment is required for this transaction.%s', 'event_espresso'),
51
-                    '<p>',
52
-                    '</p>'
53
-                )
54
-            );
55
-            do_action('AHEE__thank_you_page_payment_details_template__no_payment_required');
56
-        }
57
-    }
58
-    echo $gateway_content;
59
-    do_action('AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content);
35
+	} else {
36
+		if ($transaction->total()) {
37
+			echo apply_filters(
38
+				'FHEE__payment_overview_template__no_payments_made',
39
+				sprintf(
40
+					esc_html__('%sNo payments towards this transaction have been received.%s', 'event_espresso'),
41
+					'<p class="important-notice">',
42
+					'</p>'
43
+				)
44
+			);
45
+			do_action('AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction);
46
+		} else {
47
+			echo apply_filters(
48
+				'FHEE__payment_overview_template__no_payment_required',
49
+				sprintf(
50
+					esc_html__('%sNo payment is required for this transaction.%s', 'event_espresso'),
51
+					'<p>',
52
+					'</p>'
53
+				)
54
+			);
55
+			do_action('AHEE__thank_you_page_payment_details_template__no_payment_required');
56
+		}
57
+	}
58
+	echo $gateway_content;
59
+	do_action('AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content);
60 60
 
61
-    ?>
61
+	?>
62 62
 
63 63
     <br/>
64 64
     <?php do_action('AHEE__thank_you_page_payment_details_template__after_payment_details'); ?>
Please login to merge, or discard this patch.