Completed
Branch FET-7988-evertec-needs (20e248)
by
unknown
1119:58 queued 1106:57
created
core/db_models/EEM_Event_Venue.model.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -5,22 +5,22 @@  discard block
 block discarded – undo
5 5
  * You'll need to use each's EE_Has_Many_Relation relation to this model. Eg, when querying for question groups which apply to primary attendees,
6 6
  * you'd do a query like EEM_Question_Group::instance()->get_all(array(array('Event_Question_Group.EQG_primary'=>1)));
7 7
  */
8
-class EEM_Event_Venue extends EEM_Base{
8
+class EEM_Event_Venue extends EEM_Base {
9 9
 	// private instance of the Attendee object
10 10
 	protected static $_instance = NULL;
11 11
 
12
-	protected function __construct( $timezone = NULL ) {
13
-		$this->singular_item = __('Event to Question Group Link','event_espresso');
14
-		$this->plural_item = __('Event to Question Group Links','event_espresso');
12
+	protected function __construct($timezone = NULL) {
13
+		$this->singular_item = __('Event to Question Group Link', 'event_espresso');
14
+		$this->plural_item = __('Event to Question Group Links', 'event_espresso');
15 15
 		$this->_tables = array(
16
-			'Event_Venue'=>new EE_Primary_Table('esp_event_venue','EVV_ID')
16
+			'Event_Venue'=>new EE_Primary_Table('esp_event_venue', 'EVV_ID')
17 17
 		);
18 18
 		$this->_fields = array(
19 19
 			'Event_Venue'=>array(
20
-				'EVV_ID'=>new EE_Primary_Key_Int_Field('EVV_ID', __('Event to Venue Link ID','event_espresso')),
21
-				'EVT_ID'=>new EE_Foreign_Key_Int_Field('EVT_ID', __('Event ID','event_espresso'), false, 0, 'Event'),
22
-				'VNU_ID'=>new EE_Foreign_Key_Int_Field('VNU_ID', __('Venue ID','event_espresso'), false, 0, 'Venue'),
23
-				'EVV_primary'=>new EE_Boolean_Field('EVV_primary', __("Flag indicating venue is primary one for event", "event_espresso"), false,true)
20
+				'EVV_ID'=>new EE_Primary_Key_Int_Field('EVV_ID', __('Event to Venue Link ID', 'event_espresso')),
21
+				'EVT_ID'=>new EE_Foreign_Key_Int_Field('EVT_ID', __('Event ID', 'event_espresso'), false, 0, 'Event'),
22
+				'VNU_ID'=>new EE_Foreign_Key_Int_Field('VNU_ID', __('Venue ID', 'event_espresso'), false, 0, 'Venue'),
23
+				'EVV_primary'=>new EE_Boolean_Field('EVV_primary', __("Flag indicating venue is primary one for event", "event_espresso"), false, true)
24 24
 
25 25
 			)
26 26
 		);
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 			'Event'=>new EE_Belongs_To_Relation(),
29 29
 			'Venue'=>new EE_Belongs_To_Relation()
30 30
 		);
31
-		parent::__construct( $timezone );
31
+		parent::__construct($timezone);
32 32
 	}
33 33
 
34 34
 
Please login to merge, or discard this patch.
core/db_models/strategies/EE_Default_Where_Conditions.strategy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Strategy to be used for getting default where conditions for EEM_Base children.
5 5
  * Should be initialized and set on construction of model
6 6
  */
7
-class EE_Default_Where_Conditions{
7
+class EE_Default_Where_Conditions {
8 8
 	/**
9 9
 	 * Model fo rwhich this strategy find default where conditions
10 10
 	 * @var EEM_Base
@@ -15,10 +15,10 @@  discard block
 block discarded – undo
15 15
 	 * for querying of the model.
16 16
 	 * @param EEM_Base $model
17 17
 	 */
18
-	function _finalize_construct(EEM_Base $model){
18
+	function _finalize_construct(EEM_Base $model) {
19 19
 		$this->_model = $model;
20 20
 	}
21
-	function get_default_where_conditions(){
21
+	function get_default_where_conditions() {
22 22
 		return array();
23 23
 	}
24 24
 }
Please login to merge, or discard this patch.
form_sections/strategies/layout/EE_Admin_Two_Column_Layout.strategy.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 	 *
14 14
 	 * @return string
15 15
 	 */
16
-	public function layout_form_begin( $additional_args = array() ) {
16
+	public function layout_form_begin($additional_args = array()) {
17 17
 		$this->_form_section->set_html_class('form-table');
18
-		return parent::layout_form_begin( $additional_args );
18
+		return parent::layout_form_begin($additional_args);
19 19
 	}
20 20
 
21 21
 
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
 	 * @param EE_Form_Section_Proper $form_section
26 26
 	 * @return string
27 27
 	 */
28
-	public function layout_subsection( $form_section ){
29
-		if ( $form_section instanceof EE_Form_Section_Proper ) {
30
-			return EEH_HTML::no_row( $form_section->get_html_and_js(), 2 );
31
-		} else if ( $form_section instanceof EE_Form_Section_HTML ) {
28
+	public function layout_subsection($form_section) {
29
+		if ($form_section instanceof EE_Form_Section_Proper) {
30
+			return EEH_HTML::no_row($form_section->get_html_and_js(), 2);
31
+		} else if ($form_section instanceof EE_Form_Section_HTML) {
32 32
 			return $form_section->get_html_and_js();
33 33
 		}
34 34
 		return '';
@@ -41,36 +41,36 @@  discard block
 block discarded – undo
41 41
 	 * @param EE_Form_Input_Base $input
42 42
 	 * @return string
43 43
 	 */
44
-	public function layout_input( $input ) {
44
+	public function layout_input($input) {
45 45
 
46 46
 		if (
47 47
 			$input->get_display_strategy() instanceof EE_Text_Area_Display_Strategy ||
48 48
 			$input->get_display_strategy() instanceof EE_Text_Input_Display_Strategy ||
49 49
 			$input->get_display_strategy() instanceof EE_Admin_File_Uploader_Display_Strategy
50 50
 		) {
51
-			$input->set_html_class( $input->html_class() . ' large-text' );
51
+			$input->set_html_class($input->html_class().' large-text');
52 52
 		}
53
-		if ( $input instanceof EE_Text_Area_Input ) {
54
-			$input->set_rows( 4 );
55
-			$input->set_cols( 60 );
53
+		if ($input instanceof EE_Text_Area_Input) {
54
+			$input->set_rows(4);
55
+			$input->set_cols(60);
56 56
 		}
57 57
 		// no need to repeat the label for checkboxes, radios, etc
58
-		if ( $input instanceof EE_Form_Input_With_Options_Base ) {
58
+		if ($input instanceof EE_Form_Input_With_Options_Base) {
59 59
 			// so if label is in the input html, let's remove that
60
-			$input_html = str_replace( $input->html_label_text(), '', $input->get_html_for_input() );
60
+			$input_html = str_replace($input->html_label_text(), '', $input->get_html_for_input());
61 61
 		} else {
62 62
 			$input_html = $input->get_html_for_input();
63 63
 		}
64 64
 		// maybe add errors and help text ?
65
-		$input_html .= $input->get_html_for_errors() != '' ? EEH_HTML::nl() . $input->get_html_for_errors() : '';
66
-		$input_html .= $input->get_html_for_help() != '' ? EEH_HTML::nl() . $input->get_html_for_help() : '';
65
+		$input_html .= $input->get_html_for_errors() != '' ? EEH_HTML::nl().$input->get_html_for_errors() : '';
66
+		$input_html .= $input->get_html_for_help() != '' ? EEH_HTML::nl().$input->get_html_for_help() : '';
67 67
 		//overriding parent to add wp admin specific things.
68 68
 		$html = '';
69
-		if ( $input instanceof EE_Hidden_Input ) {
70
-			$html .= EEH_HTML::no_row( $input->get_html_for_input(), 2 );
69
+		if ($input instanceof EE_Hidden_Input) {
70
+			$html .= EEH_HTML::no_row($input->get_html_for_input(), 2);
71 71
 		} else {
72 72
 			$html .= EEH_HTML::tr(
73
-				EEH_HTML::th( $input->get_html_for_label(), '', '',  '', 'scope="row"' ) . EEH_HTML::td( $input_html )
73
+				EEH_HTML::th($input->get_html_for_label(), '', '', '', 'scope="row"').EEH_HTML::td($input_html)
74 74
 			);
75 75
 		}
76 76
 		return $html;
Please login to merge, or discard this patch.
core/libraries/messages/data_class/EE_Messages_incoming_data.core.php 2 patches
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('NO direct script access allowed');
5 5
 
6 6
 /**
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 	 * constructor
234 234
 	 * @param mixed $data incoming data object|array.  Suggested that child classes use typehinting for expected data object.  But here parent will be generic because we don't know what's coming in.
235 235
 	 */
236
-	public function __construct( $data ) {
236
+	public function __construct($data) {
237 237
 		$this->_data = $data;
238 238
 		$this->_setup_data();
239 239
 
@@ -268,8 +268,8 @@  discard block
 block discarded – undo
268 268
 		$regchk = array_values($this->reg_objs);
269 269
 		$regchk = array_shift($regchk);
270 270
 		//verify that reg_objs is set
271
-		if ( !is_array( $this->reg_objs) && ! $regchk instanceof EE_Registration )
272
-			throw new EE_Error( __('In order to assemble the data correctly, the "reg_objs" property must be an array of EE_Registration objects', 'event_espresso') );
271
+		if ( ! is_array($this->reg_objs) && ! $regchk instanceof EE_Registration)
272
+			throw new EE_Error(__('In order to assemble the data correctly, the "reg_objs" property must be an array of EE_Registration objects', 'event_espresso'));
273 273
 
274 274
 		//get all attendee and events associated with the registrations in this transaction
275 275
 		$events = $event_setup = $evt_cache = $tickets = $datetimes = $answers = $questions = array();
@@ -277,15 +277,15 @@  discard block
 block discarded – undo
277 277
 		$total_ticket_count = 0;
278 278
 
279 279
 
280
-		if ( !empty( $this->reg_objs ) ) {
280
+		if ( ! empty($this->reg_objs)) {
281 281
 			$event_attendee_count = array();
282
-			foreach ( $this->reg_objs as $reg ) {
282
+			foreach ($this->reg_objs as $reg) {
283 283
 				$evt_id = $reg->event_ID();
284 284
 				$ticket = $reg->get_first_related('Ticket');
285 285
 				$relateddatetime = $ticket->datetimes();
286 286
 				$total_ticket_count++;
287 287
 				$tickets[$ticket->ID()]['ticket'] = $ticket;
288
-				$tickets[$ticket->ID()]['count'] = is_array($tickets[$ticket->ID()]) && isset( $tickets[$ticket->ID()]['count'] ) ? $tickets[$ticket->ID()]['count'] + 1 : 1;
288
+				$tickets[$ticket->ID()]['count'] = is_array($tickets[$ticket->ID()]) && isset($tickets[$ticket->ID()]['count']) ? $tickets[$ticket->ID()]['count'] + 1 : 1;
289 289
 				$tickets[$ticket->ID()]['att_objs'][$reg->attendee_ID()] = $reg->attendee();
290 290
 				$tickets[$ticket->ID()]['dtt_objs'] = $relateddatetime;
291 291
 				$tickets[$ticket->ID()]['reg_objs'][$reg->ID()] = $reg;
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 				$eventsetup[$evt_id]['reg_objs'][$reg->ID()] = $reg;
296 296
 				$eventsetup[$evt_id]['tkt_objs'][$ticket->ID()] = $ticket;
297 297
 				$eventsetup[$evt_id]['att_objs'][$reg->attendee_ID()] = $reg->attendee();
298
-				$event_attendee_count[$evt_id] = isset( $event_attendee_count[$evt_id] ) ? $event_attendee_count[$evt_id] + 1 : 0;
298
+				$event_attendee_count[$evt_id] = isset($event_attendee_count[$evt_id]) ? $event_attendee_count[$evt_id] + 1 : 0;
299 299
 				$attendees[$reg->attendee_ID()]['line_ref'][] = $evt_id;
300 300
 				$attendees[$reg->attendee_ID()]['att_obj'] = $reg->attendee();
301 301
 				$attendees[$reg->attendee_ID()]['reg_objs'][$reg->ID()] = $reg;
@@ -312,19 +312,19 @@  discard block
 block discarded – undo
312 312
 
313 313
 				//set up answer objects
314 314
 				$rel_ans = $reg->get_many_related('Answer');
315
-				foreach ( $rel_ans as $ansid => $answer ) {
316
-					if ( !isset( $questions[$ansid] ) ) {
315
+				foreach ($rel_ans as $ansid => $answer) {
316
+					if ( ! isset($questions[$ansid])) {
317 317
 						$questions[$ansid] = $answer->get_first_related('Question');
318 318
 					}
319 319
 					$answers[$ansid] = $answer;
320 320
 					$registrations[$reg->ID()]['ans_objs'][$ansid] = $answer;
321 321
 				}
322 322
 
323
-				foreach ( $relateddatetime as $dtt_id => $datetime ) {
323
+				foreach ($relateddatetime as $dtt_id => $datetime) {
324 324
 					$eventsetup[$evt_id]['dtt_objs'][$dtt_id] = $datetime;
325 325
 					$registrations[$reg->ID()]['dtt_objs'][$dtt_id] = $datetime;
326 326
 
327
-					if ( isset( $datetimes[$dtt_id] ) )
327
+					if (isset($datetimes[$dtt_id]))
328 328
 						continue; //already have this info in the datetimes array.
329 329
 
330 330
 					$datetimes[$dtt_id]['tkt_objs'][] = $ticket;
@@ -337,9 +337,9 @@  discard block
 block discarded – undo
337 337
 			//let's loop through the unique event=>reg items and setup data on them
338 338
 
339 339
 
340
-			if ( !empty( $eventsetup) ) {
341
-				foreach ( $eventsetup as $eid => $items ) {
342
-					$ticket_line_items_for_event = EEM_Line_Item::instance()->get_all(array(array('Ticket.Datetime.EVT_ID'=>$evt_id,'TXN_ID'=>$this->txn->ID()), 'default_where_conditions' => 'none'));
340
+			if ( ! empty($eventsetup)) {
341
+				foreach ($eventsetup as $eid => $items) {
342
+					$ticket_line_items_for_event = EEM_Line_Item::instance()->get_all(array(array('Ticket.Datetime.EVT_ID'=>$evt_id, 'TXN_ID'=>$this->txn->ID()), 'default_where_conditions' => 'none'));
343 343
 					$events[$eid] = array(
344 344
 						'ID' => $eid,
345 345
 						'event' => $evtcache[$eid],
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
 
355 355
 					//make sure the tickets have the line items setup for them.
356 356
 					$line_items = array();
357
-					foreach ( $ticket_line_items_for_event as $line_id => $line_item ) {
357
+					foreach ($ticket_line_items_for_event as $line_id => $line_item) {
358 358
 						$tickets[$line_item->ticket()->ID()]['line_item'] = $line_item;
359 359
 						$tickets[$line_item->ticket()->ID()]['sub_line_items'] = $line_item->children();
360 360
 						$line_items[$line_item->ID()]['children'] = $line_item->children();
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 		$this->total_ticket_count = $total_ticket_count;
379 379
 		$this->registrations = $registrations;
380 380
 
381
-		$this->tax_line_items =  $this->txn->tax_items();
381
+		$this->tax_line_items = $this->txn->tax_items();
382 382
 		$this->additional_line_items = $this->txn->non_ticket_line_items();
383 383
 		$this->payments = $this->txn->payments();
384 384
 
@@ -388,10 +388,10 @@  discard block
 block discarded – undo
388 388
 		//let's get just the primary_attendee_data!  First we get the primary registration object.
389 389
 		$primary_reg = $this->txn->primary_registration(TRUE);
390 390
 		// verify
391
-		if( $primary_reg instanceof EE_Registration ) {
391
+		if ($primary_reg instanceof EE_Registration) {
392 392
 
393 393
 			// get attendee object
394
-			if( $primary_reg->attendee() instanceof EE_Attendee ) {
394
+			if ($primary_reg->attendee() instanceof EE_Attendee) {
395 395
 
396 396
 				//now we can setup the primary_attendee_data array
397 397
 				$this->primary_attendee_data = array(
@@ -403,11 +403,11 @@  discard block
 block discarded – undo
403 403
 				);
404 404
 
405 405
 			} else {
406
-				EE_Error::add_error( __('Incoming data does not have a valid Attendee object for the primary registrant.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__ );
406
+				EE_Error::add_error(__('Incoming data does not have a valid Attendee object for the primary registrant.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
407 407
 			}
408 408
 
409 409
 		} else {
410
-			EE_Error::add_error( __('Incoming data does not have a valid Registration object for the primary registrant.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__ );
410
+			EE_Error::add_error(__('Incoming data does not have a valid Registration object for the primary registrant.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
411 411
 		}
412 412
 	}
413 413
 
Please login to merge, or discard this patch.
Braces   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
4 4
 	exit('NO direct script access allowed');
5
+}
5 6
 
6 7
 /**
7 8
  * Event Espresso
@@ -268,8 +269,9 @@  discard block
 block discarded – undo
268 269
 		$regchk = array_values($this->reg_objs);
269 270
 		$regchk = array_shift($regchk);
270 271
 		//verify that reg_objs is set
271
-		if ( !is_array( $this->reg_objs) && ! $regchk instanceof EE_Registration )
272
-			throw new EE_Error( __('In order to assemble the data correctly, the "reg_objs" property must be an array of EE_Registration objects', 'event_espresso') );
272
+		if ( !is_array( $this->reg_objs) && ! $regchk instanceof EE_Registration ) {
273
+					throw new EE_Error( __('In order to assemble the data correctly, the "reg_objs" property must be an array of EE_Registration objects', 'event_espresso') );
274
+		}
273 275
 
274 276
 		//get all attendee and events associated with the registrations in this transaction
275 277
 		$events = $event_setup = $evt_cache = $tickets = $datetimes = $answers = $questions = array();
@@ -324,8 +326,10 @@  discard block
 block discarded – undo
324 326
 					$eventsetup[$evt_id]['dtt_objs'][$dtt_id] = $datetime;
325 327
 					$registrations[$reg->ID()]['dtt_objs'][$dtt_id] = $datetime;
326 328
 
327
-					if ( isset( $datetimes[$dtt_id] ) )
328
-						continue; //already have this info in the datetimes array.
329
+					if ( isset( $datetimes[$dtt_id] ) ) {
330
+											continue;
331
+					}
332
+					//already have this info in the datetimes array.
329 333
 
330 334
 					$datetimes[$dtt_id]['tkt_objs'][] = $ticket;
331 335
 					$datetimes[$dtt_id]['datetime'] = $datetime;
Please login to merge, or discard this patch.
default/email_declined_registration_event_list_attendee.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1 1
 <p class="callout">
2
-	<strong><?php _e( 'Event Name:', 'event_espresso' ); ?></strong> <a href="[EVENT_URL]">[EVENT]</a>
2
+	<strong><?php _e('Event Name:', 'event_espresso'); ?></strong> <a href="[EVENT_URL]">[EVENT]</a>
3 3
 </p>
4 4
\ No newline at end of file
Please login to merge, or discard this patch.
templates/payment_options/events_requiring_pre_approval.template.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 
2
-	<h4 class="orange-text"><?php _e('Important Notice:', 'event_espresso');?></h4>
2
+	<h4 class="orange-text"><?php _e('Important Notice:', 'event_espresso'); ?></h4>
3 3
 	<p id="events-requiring-pre-approval-pg" class="small-text drk-grey-text">
4 4
 		<?php echo $events_requiring_pre_approval_msg; ?>
5 5
 	</p>
6
-	<h6><?php _e('Events Requiring Pre-Approval:', 'event_espresso');?></h6>
6
+	<h6><?php _e('Events Requiring Pre-Approval:', 'event_espresso'); ?></h6>
7 7
 	<ul id="spco-pre-approval-events-ul"><?php echo $events_requiring_pre_approval; ?></ul>
8 8
 
9
-	<?php echo $default_hidden_inputs;  ?>
10
-	<?php echo $extra_hidden_inputs;  ?>
9
+	<?php echo $default_hidden_inputs; ?>
10
+	<?php echo $extra_hidden_inputs; ?>
11 11
 
12 12
 	<!--	<input id="reg-page-selected-method-of-payment" type="hidden" value="payments_closed" name="selected_method_of_payment">-->
13 13
 <!--	<input type="hidden" id="reg-page-no-payment-required-payment_options" name="_reg-page-no-payment-required" value="1" />-->
Please login to merge, or discard this patch.
templates/payment_options/no_payment_required.template.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php
2
-if( is_array( $registrations_for_free_events ) && ! empty( $registrations_for_free_events ) ) {
2
+if (is_array($registrations_for_free_events) && ! empty($registrations_for_free_events)) {
3 3
 	echo apply_filters(
4 4
 		'FHEE__registration_page_payment_options__no_payment_required_hdr',
5 5
 		sprintf(
6
-			__( '%1$sNo Payment Required%2$s', 'event_espresso' ),
6
+			__('%1$sNo Payment Required%2$s', 'event_espresso'),
7 7
 			'<h6>',
8 8
 			'</h6>'
9 9
 		)
10 10
 	);
11
-	foreach ( $registrations_for_free_events as $registration_for_free_event ) {
12
-		if ( $registration_for_free_event instanceof EE_Registration && $registration_for_free_event->ticket()->is_free() ) {
13
-			if ( $registration_for_free_event->event() instanceof EE_Event ) {
11
+	foreach ($registrations_for_free_events as $registration_for_free_event) {
12
+		if ($registration_for_free_event instanceof EE_Registration && $registration_for_free_event->ticket()->is_free()) {
13
+			if ($registration_for_free_event->event() instanceof EE_Event) {
14 14
 				?>
15 15
 				<p>
16 16
 					<?php echo apply_filters(
17 17
 						'FHEE__registration_page_payment_options__no_payment_required_pg',
18 18
 						sprintf(
19
-							__( '%1$s is a free event, so no billing will occur.', 'event_espresso' ),
19
+							__('%1$s is a free event, so no billing will occur.', 'event_espresso'),
20 20
 							$registration_for_free_event->event()->name()
21 21
 						)
22 22
 					); ?>
Please login to merge, or discard this patch.
templates/payment_options/payment_options_main.template.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,30 +1,30 @@
 block discarded – undo
1 1
 
2 2
 	<h4 id="reg-page-totals-hdr" class="">
3
-		<span class="drk-grey-text"><?php _e('Billable Registrations:', 'event_espresso'); ?></span> <?php echo $reg_count;?>
3
+		<span class="drk-grey-text"><?php _e('Billable Registrations:', 'event_espresso'); ?></span> <?php echo $reg_count; ?>
4 4
 	</h4>
5 5
 
6 6
 	<div class="spco-payment-info-dv">
7 7
 		<table id="spco-payment-info-table">
8 8
 			<thead>
9 9
 				<tr>
10
-					<th scope="col" width=""><?php _e('Ticket Name and Description', 'event_espresso');?></th>
11
-					<th scope="col" width="5%" class="jst-cntr"><?php _e('Qty', 'event_espresso');?></th>
12
-					<th scope="col" width="15%" class="jst-cntr"><?php _e('Price', 'event_espresso');?></th>
13
-					<th scope="col" width="15%" class="jst-cntr"><?php _e('Total', 'event_espresso');?></th>
14
-					<?php	do_action( 'AHEE__registration_page_payment_options__payment_info_table_thead_row_end' ); ?>
10
+					<th scope="col" width=""><?php _e('Ticket Name and Description', 'event_espresso'); ?></th>
11
+					<th scope="col" width="5%" class="jst-cntr"><?php _e('Qty', 'event_espresso'); ?></th>
12
+					<th scope="col" width="15%" class="jst-cntr"><?php _e('Price', 'event_espresso'); ?></th>
13
+					<th scope="col" width="15%" class="jst-cntr"><?php _e('Total', 'event_espresso'); ?></th>
14
+					<?php	do_action('AHEE__registration_page_payment_options__payment_info_table_thead_row_end'); ?>
15 15
 				</tr>
16 16
 			</thead>
17 17
 			<tbody>
18
-			<?php echo $transaction_details;?>
19
-			<?php	do_action( 'AHEE__registration_page_payment_options__payment_info_table_tbody_end' ); ?>
18
+			<?php echo $transaction_details; ?>
19
+			<?php	do_action('AHEE__registration_page_payment_options__payment_info_table_tbody_end'); ?>
20 20
 			</tbody>
21 21
 		</table>
22 22
 	</div>
23 23
 
24
-	<?php  echo $default_hidden_inputs;  ?>
24
+	<?php  echo $default_hidden_inputs; ?>
25 25
 
26 26
 	<div id="methods-of-payment">
27 27
 		<?php echo $payment_options; ?>
28
-		<a id="reg-page-select-other-method-of-payment-lnk" class="hidden smaller-text right" rel=""><?php echo apply_filters( 'FHEE__registration_page_payment_options__select_other_method_of_payment_lnk', __( 'select a different method of payment:', 'event_espresso' )); ?></a>
28
+		<a id="reg-page-select-other-method-of-payment-lnk" class="hidden smaller-text right" rel=""><?php echo apply_filters('FHEE__registration_page_payment_options__select_other_method_of_payment_lnk', __('select a different method of payment:', 'event_espresso')); ?></a>
29 29
 	</div>
30 30
 	<!-- end #methods-of-payment -->
Please login to merge, or discard this patch.
modules/ticket_selector/templates/ticket_selector_chart.template.php 1 patch
Spacing   +131 added lines, -131 removed lines patch added patch discarded remove patch
@@ -3,43 +3,43 @@  discard block
 block discarded – undo
3 3
 /** @type int $max_atndz */
4 4
 /** @type boolean $event_is_expired */
5 5
 
6
-$template_settings =  isset ( EE_Registry::instance()->CFG->template_settings->EED_Ticket_Selector ) ? EE_Registry::instance()->CFG->template_settings->EED_Ticket_Selector : new EE_Ticket_Selector_Config();
6
+$template_settings = isset (EE_Registry::instance()->CFG->template_settings->EED_Ticket_Selector) ? EE_Registry::instance()->CFG->template_settings->EED_Ticket_Selector : new EE_Ticket_Selector_Config();
7 7
 ?>
8 8
 <div id="tkt-slctr-tbl-wrap-dv-<?php echo $EVT_ID; ?>" class="tkt-slctr-tbl-wrap-dv" >
9 9
 	<table id="tkt-slctr-tbl-<?php echo $EVT_ID; ?>" class="tkt-slctr-tbl" border="0" cellspacing="0" cellpadding="0">
10 10
 		<thead>
11 11
 			<tr>
12 12
 				<th scope="col" width="">
13
-					<span class="ee-icon ee-icon-tickets"></span><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__table_header_available_tickets', __( 'Available Tickets', 'event_espresso' )); ?>
13
+					<span class="ee-icon ee-icon-tickets"></span><?php echo apply_filters('FHEE__ticket_selector_chart_template__table_header_available_tickets', __('Available Tickets', 'event_espresso')); ?>
14 14
 				</th>
15
-				<?php if ( apply_filters( 'FHEE__ticket_selector_chart_template__display_ticket_price_details', TRUE )) { ?>
16
-				<th scope="col" width="22.5%"><?php _e( 'Price', 'event_espresso' ); ?> </th>
15
+				<?php if (apply_filters('FHEE__ticket_selector_chart_template__display_ticket_price_details', TRUE)) { ?>
16
+				<th scope="col" width="22.5%"><?php _e('Price', 'event_espresso'); ?> </th>
17 17
 				<?php } ?>
18
-				<th scope="col" width="17.5%" class="cntr"><?php _e( 'Qty*', 'event_espresso' ); ?></th>
18
+				<th scope="col" width="17.5%" class="cntr"><?php _e('Qty*', 'event_espresso'); ?></th>
19 19
 			</tr>
20 20
 		</thead>
21 21
 		<tbody>
22 22
 <?php
23 23
 
24 24
 $row = 1;
25
-$ticket_count = count( $tickets );
25
+$ticket_count = count($tickets);
26 26
 $required_ticket_sold_out = FALSE;
27
-foreach ( $tickets as $TKT_ID => $ticket ) {
28
-	if ( $ticket instanceof EE_Ticket ) {
27
+foreach ($tickets as $TKT_ID => $ticket) {
28
+	if ($ticket instanceof EE_Ticket) {
29 29
 		//	d( $ticket );
30
-		$max =$ticket->max();
30
+		$max = $ticket->max();
31 31
 		$min = 0;
32 32
 		$remaining = $ticket->remaining();
33
-		if ( $ticket->is_on_sale() && $ticket->is_remaining() ) {
33
+		if ($ticket->is_on_sale() && $ticket->is_remaining()) {
34 34
 			// offer the number of $tickets_remaining or $max_atndz, whichever is smaller
35
-			$max = min( $remaining, $max_atndz );
35
+			$max = min($remaining, $max_atndz);
36 36
 			// but... we also want to restrict the number of tickets by the ticket max setting,
37 37
 			// however, the max still can't be higher than what was just set above
38
-			$max = $ticket->max() > 0 ? min( $ticket->max(), $max ) : $max;
38
+			$max = $ticket->max() > 0 ? min($ticket->max(), $max) : $max;
39 39
 			// and we also want to restrict the minimum number of tickets by the ticket min setting
40 40
 			$min = $ticket->min() > 0 ? $ticket->min() : 0;
41 41
 			// and if the ticket is required, then make sure that min qty is at least 1
42
-			$min = $ticket->required() ? max( $min, 1 ) : $min;
42
+			$min = $ticket->required() ? max($min, 1) : $min;
43 43
 		} else {
44 44
 			// set flag if ticket is required (flag is set to start date so that future tickets are not blocked)
45 45
 			$required_ticket_sold_out = $ticket->required() && ! $remaining ? $ticket->start_date() : $required_ticket_sold_out;
@@ -48,39 +48,39 @@  discard block
 block discarded – undo
48 48
 		$ticket_price = $ticket->get_ticket_total_with_taxes();
49 49
 		$ticket_bundle = FALSE;
50 50
 		// for ticket bundles, set min and max qty the same
51
-		if ( $ticket->min() != 0 && $ticket->min() == $ticket->max() ) {
51
+		if ($ticket->min() != 0 && $ticket->min() == $ticket->max()) {
52 52
 			$ticket_price = $ticket_price * $ticket->min();
53 53
 			$ticket_bundle = TRUE;
54 54
 		}
55
-		$ticket_price = apply_filters( 'FHEE__ticket_selector_chart_template__ticket_price', $ticket_price, $ticket );
55
+		$ticket_price = apply_filters('FHEE__ticket_selector_chart_template__ticket_price', $ticket_price, $ticket);
56 56
 		// if a previous required ticket with the same sale start date is sold out, then mark this ticket as sold out as well.
57 57
 		// tickets that go on sale at a later date than the required ticket  will NOT be affected
58 58
 		$tkt_status = $required_ticket_sold_out !== FALSE && $required_ticket_sold_out === $ticket->start_date() ? EE_Ticket::sold_out : $ticket->ticket_status();
59 59
 		// check ticket status
60
-		switch ( $tkt_status ) {
60
+		switch ($tkt_status) {
61 61
 			// sold_out
62 62
 			case EE_Ticket::sold_out :
63
-				$ticket_status = '<span class="ticket-sales-sold-out">' . $ticket->ticket_status( TRUE ) . '</span>';
63
+				$ticket_status = '<span class="ticket-sales-sold-out">'.$ticket->ticket_status(TRUE).'</span>';
64 64
 				$status_class = 'ticket-sales-sold-out lt-grey-text';
65 65
 			break;
66 66
 			// expired
67 67
 			case EE_Ticket::expired :
68
-				$ticket_status = '<span class="ticket-sales-expired">' . $ticket->ticket_status( TRUE ) . '</span>';
68
+				$ticket_status = '<span class="ticket-sales-expired">'.$ticket->ticket_status(TRUE).'</span>';
69 69
 				$status_class = 'ticket-sales-expired lt-grey-text';
70 70
 			break;
71 71
 			// archived
72 72
 			case EE_Ticket::archived :
73
-				$ticket_status = '<span class="archived-ticket">' . $ticket->ticket_status( TRUE ) . '</span>';
73
+				$ticket_status = '<span class="archived-ticket">'.$ticket->ticket_status(TRUE).'</span>';
74 74
 				$status_class = 'archived-ticket hidden';
75 75
 			break;
76 76
 			// pending
77 77
 			case EE_Ticket::pending :
78
-				$ticket_status = '<span class="ticket-pending">' . $ticket->ticket_status( TRUE ) . '</span>';
78
+				$ticket_status = '<span class="ticket-pending">'.$ticket->ticket_status(TRUE).'</span>';
79 79
 				$status_class = 'ticket-pending';
80 80
 			break;
81 81
 			// onsale
82 82
 			case EE_Ticket::onsale :
83
-				$ticket_status = '<span class="ticket-on-sale">' . $ticket->ticket_status( TRUE ) . '</span>';
83
+				$ticket_status = '<span class="ticket-on-sale">'.$ticket->ticket_status(TRUE).'</span>';
84 84
 				$status_class = 'ticket-on-sale';
85 85
 			break;
86 86
 		}
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
 		 *
96 96
 		 * @var string|bool
97 97
 		 */
98
-		if ( false !== ( $new_row_content = apply_filters( 'FHEE__ticket_selector_chart_template__do_ticket_entire_row', false, $ticket, $max, $min, $required_ticket_sold_out, $ticket_price, $ticket_bundle, $ticket_status, $status_class ) ) ) {
98
+		if (false !== ($new_row_content = apply_filters('FHEE__ticket_selector_chart_template__do_ticket_entire_row', false, $ticket, $max, $min, $required_ticket_sold_out, $ticket_price, $ticket_bundle, $ticket_status, $status_class))) {
99 99
 			echo $new_row_content;
100 100
 			continue;
101 101
 		}
102 102
 	?>
103
-				<tr class="tckt-slctr-tbl-tr <?php echo $status_class . ' ' . espresso_get_object_css_class( $ticket ); ?>">
103
+				<tr class="tckt-slctr-tbl-tr <?php echo $status_class.' '.espresso_get_object_css_class($ticket); ?>">
104 104
 		<?php
105 105
 		/**
106 106
 		 * Allow plugins to hook in and abort the generation and display of the contents of this
@@ -112,24 +112,24 @@  discard block
 block discarded – undo
112 112
 		 *
113 113
 		 * @var string|bool
114 114
 		 */
115
-		if ( false !== ( $new_row_cells_content = apply_filters( 'FHEE__ticket_selector_chart_template__do_ticket_inside_row', false, $ticket, $max, $min, $required_ticket_sold_out, $ticket_price, $ticket_bundle, $ticket_status, $status_class ) ) ) {
115
+		if (false !== ($new_row_cells_content = apply_filters('FHEE__ticket_selector_chart_template__do_ticket_inside_row', false, $ticket, $max, $min, $required_ticket_sold_out, $ticket_price, $ticket_bundle, $ticket_status, $status_class))) {
116 116
 			echo $new_row_cells_content;
117 117
 			echo '</tr>';
118 118
 			continue;
119 119
 		}
120 120
 		?>
121 121
 					<td class="tckt-slctr-tbl-td-name">
122
-						<b><?php echo $ticket->get_pretty('TKT_name');?></b>
123
-						<?php if ( $template_settings->show_ticket_details ) : ?>
124
-							<a id="display-tckt-slctr-tkt-details-<?php echo $EVT_ID . '-' . $TKT_ID; ?>" class="display-tckt-slctr-tkt-details display-the-hidden lt-grey-text smaller-text hide-if-no-js" rel="tckt-slctr-tkt-details-<?php echo $EVT_ID . '-' . $TKT_ID; ?>" title="<?php echo esc_attr( apply_filters( 'FHEE__ticket_selector_chart_template__show_ticket_details_link_title', __( 'click to show additional ticket details', 'event_espresso' )) ); ?>">
125
-								<?php echo sprintf( __( 'show%1$sdetails%1$s+', 'event_espresso' ), '&nbsp;' ); ?>
122
+						<b><?php echo $ticket->get_pretty('TKT_name'); ?></b>
123
+						<?php if ($template_settings->show_ticket_details) : ?>
124
+							<a id="display-tckt-slctr-tkt-details-<?php echo $EVT_ID.'-'.$TKT_ID; ?>" class="display-tckt-slctr-tkt-details display-the-hidden lt-grey-text smaller-text hide-if-no-js" rel="tckt-slctr-tkt-details-<?php echo $EVT_ID.'-'.$TKT_ID; ?>" title="<?php echo esc_attr(apply_filters('FHEE__ticket_selector_chart_template__show_ticket_details_link_title', __('click to show additional ticket details', 'event_espresso'))); ?>">
125
+								<?php echo sprintf(__('show%1$sdetails%1$s+', 'event_espresso'), '&nbsp;'); ?>
126 126
 							</a>
127
-							<a id="hide-tckt-slctr-tkt-details-<?php echo $EVT_ID . '-' . $TKT_ID; ?>" class="hide-tckt-slctr-tkt-details hide-the-displayed lt-grey-text smaller-text hide-if-no-js" rel="tckt-slctr-tkt-details-<?php echo $EVT_ID . '-' . $TKT_ID; ?>" title="<?php echo esc_attr( apply_filters( 'FHEE__ticket_selector_chart_template__hide_ticket_details_link_title', __( 'click to hide additional ticket details', 'event_espresso' )) ); ?>" style="display:none;">
128
-								<?php echo sprintf( __( 'hide%1$sdetails%1$s-', 'event_espresso' ), '&nbsp;' ); ?>
127
+							<a id="hide-tckt-slctr-tkt-details-<?php echo $EVT_ID.'-'.$TKT_ID; ?>" class="hide-tckt-slctr-tkt-details hide-the-displayed lt-grey-text smaller-text hide-if-no-js" rel="tckt-slctr-tkt-details-<?php echo $EVT_ID.'-'.$TKT_ID; ?>" title="<?php echo esc_attr(apply_filters('FHEE__ticket_selector_chart_template__hide_ticket_details_link_title', __('click to hide additional ticket details', 'event_espresso'))); ?>" style="display:none;">
128
+								<?php echo sprintf(__('hide%1$sdetails%1$s-', 'event_espresso'), '&nbsp;'); ?>
129 129
 							</a>
130 130
 						<?php endif; //end show details check ?>
131
-					<?php if ( $ticket->required() ) { ?>
132
-						<p class="ticket-required-pg"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_required_message', __( 'This ticket is required and must be purchased.', 'event_espresso' )); ?></p>
131
+					<?php if ($ticket->required()) { ?>
132
+						<p class="ticket-required-pg"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_required_message', __('This ticket is required and must be purchased.', 'event_espresso')); ?></p>
133 133
 					<?php } ?>
134 134
 					<?php
135 135
 //	echo '<br/><b>$max_atndz : ' . $max_atndz . '</b>';
@@ -143,12 +143,12 @@  discard block
 block discarded – undo
143 143
 //	echo '<br/><b> $ticket->required() : ' .  $ticket->uses() . '</b>';
144 144
 					?>
145 145
 					</td>
146
-					<?php if ( apply_filters( 'FHEE__ticket_selector_chart_template__display_ticket_price_details', TRUE )) { ?>
147
-					<td class="tckt-slctr-tbl-td-price jst-rght"><?php echo EEH_Template::format_currency( $ticket_price ); ?>&nbsp;<span class="smaller-text no-bold"><?php
148
-						if ( $ticket_bundle ) {
149
-							echo apply_filters( 'FHEE__ticket_selector_chart_template__per_ticket_bundle_text', __( ' / bundle', 'event_espresso' ));
146
+					<?php if (apply_filters('FHEE__ticket_selector_chart_template__display_ticket_price_details', TRUE)) { ?>
147
+					<td class="tckt-slctr-tbl-td-price jst-rght"><?php echo EEH_Template::format_currency($ticket_price); ?>&nbsp;<span class="smaller-text no-bold"><?php
148
+						if ($ticket_bundle) {
149
+							echo apply_filters('FHEE__ticket_selector_chart_template__per_ticket_bundle_text', __(' / bundle', 'event_espresso'));
150 150
 						} else {
151
-							echo apply_filters( 'FHEE__ticket_selector_chart_template__per_ticket_text', __( ' / ticket', 'event_espresso' ));
151
+							echo apply_filters('FHEE__ticket_selector_chart_template__per_ticket_text', __(' / ticket', 'event_espresso'));
152 152
 						}?></span> &nbsp;
153 153
 					</td>
154 154
 					<?php } ?>
@@ -156,51 +156,51 @@  discard block
 block discarded – undo
156 156
 					<?php
157 157
 					$hidden_input_qty = $max_atndz > 1 ? TRUE : FALSE;
158 158
 					// sold out or other status ?
159
-					if ( $tkt_status == EE_Ticket::sold_out || $remaining == 0 ) {
159
+					if ($tkt_status == EE_Ticket::sold_out || $remaining == 0) {
160 160
 					?>
161
-						<span class="sold-out"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_sold_out_msg', __( 'Sold&nbsp;Out', 'event_espresso' ));?></span>
161
+						<span class="sold-out"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_sold_out_msg', __('Sold&nbsp;Out', 'event_espresso')); ?></span>
162 162
 					<?php
163
-					} else if ( $tkt_status == EE_Ticket::expired || $tkt_status == EE_Ticket::archived ) {
163
+					} else if ($tkt_status == EE_Ticket::expired || $tkt_status == EE_Ticket::archived) {
164 164
 						echo $ticket_status;
165
-					} else if ( $tkt_status == EE_Ticket::pending ) {
165
+					} else if ($tkt_status == EE_Ticket::pending) {
166 166
 					?>
167 167
 					<div class="ticket-pending-pg">
168
-						<span class="ticket-pending"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_goes_on_sale_msg', __( 'Goes&nbsp;On&nbsp;Sale', 'event_espresso' )); ?></span><br/>
169
-						<span class="small-text"><?php echo date_i18n( 'M d, Y', strtotime( $ticket->start_date() )); ?></span>
168
+						<span class="ticket-pending"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_goes_on_sale_msg', __('Goes&nbsp;On&nbsp;Sale', 'event_espresso')); ?></span><br/>
169
+						<span class="small-text"><?php echo date_i18n('M d, Y', strtotime($ticket->start_date())); ?></span>
170 170
 					</div>
171 171
 					<?php
172 172
 					// min qty purchasable is less than tickets available
173
-					} else if ( $ticket->min() > $remaining ) {
173
+					} else if ($ticket->min() > $remaining) {
174 174
 					?>
175 175
 					<div class="archived-ticket-pg">
176
-						<span class="archived-ticket small-text"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_not_available_msg', __( 'Not Available', 'event_espresso' )); ?></span><br/>
176
+						<span class="archived-ticket small-text"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_not_available_msg', __('Not Available', 'event_espresso')); ?></span><br/>
177 177
 					</div>
178 178
 					<?php
179 179
 					// if only one attendee is allowed to register at a time
180
-					} else if ( $max_atndz  == 1 ) {
180
+					} else if ($max_atndz == 1) {
181 181
 						// display submit button since we have tickets available
182
-						add_filter( 'FHEE__EE_Ticket_Selector__display_ticket_selector_submit', '__return_true' );
182
+						add_filter('FHEE__EE_Ticket_Selector__display_ticket_selector_submit', '__return_true');
183 183
 				?>
184
-					<input type="radio" name="tkt-slctr-qty-<?php echo $EVT_ID; ?>" id="ticket-selector-tbl-qty-slct-<?php echo $EVT_ID . '-' . $row; ?>" class="ticket-selector-tbl-qty-slct" value="<?php echo $row . '-'; ?>1" <?php echo $row == 1 ? ' checked="checked"' : ''; ?>  title=""/>
184
+					<input type="radio" name="tkt-slctr-qty-<?php echo $EVT_ID; ?>" id="ticket-selector-tbl-qty-slct-<?php echo $EVT_ID.'-'.$row; ?>" class="ticket-selector-tbl-qty-slct" value="<?php echo $row.'-'; ?>1" <?php echo $row == 1 ? ' checked="checked"' : ''; ?>  title=""/>
185 185
 			<?php
186 186
 						$hidden_input_qty = FALSE;
187 187
 
188
-					} else if ( $max_atndz  == 0 ) {
189
-						echo '<span class="sold-out">' . apply_filters( 'FHEE__ticket_selector_chart_template__ticket_closed_msg', __( 'Closed', 'event_espresso' )) . '</span>';
190
-					} elseif ( $max > 0 ) {
188
+					} else if ($max_atndz == 0) {
189
+						echo '<span class="sold-out">'.apply_filters('FHEE__ticket_selector_chart_template__ticket_closed_msg', __('Closed', 'event_espresso')).'</span>';
190
+					} elseif ($max > 0) {
191 191
 						// display submit button since we have tickets available
192
-						add_filter( 'FHEE__EE_Ticket_Selector__display_ticket_selector_submit', '__return_true' );
192
+						add_filter('FHEE__EE_Ticket_Selector__display_ticket_selector_submit', '__return_true');
193 193
 
194 194
 				?>
195
-					<select name="tkt-slctr-qty-<?php echo $EVT_ID; ?>[]" id="ticket-selector-tbl-qty-slct-<?php echo $EVT_ID . '-' . $row; ?>" class="ticket-selector-tbl-qty-slct" title="">
195
+					<select name="tkt-slctr-qty-<?php echo $EVT_ID; ?>[]" id="ticket-selector-tbl-qty-slct-<?php echo $EVT_ID.'-'.$row; ?>" class="ticket-selector-tbl-qty-slct" title="">
196 196
 					<?php
197 197
 						// this ensures that non-required tickets with non-zero MIN QTYs don't HAVE to be purchased
198
-						if ( ! $ticket->required() && $min !== 0 ) {
198
+						if ( ! $ticket->required() && $min !== 0) {
199 199
 					?>
200 200
 						<option value="0">&nbsp;0&nbsp;</option>
201 201
 					<?php }
202 202
 						// offer ticket quantities from the min to the max
203
-						for ( $i = $min; $i <= $max; $i++) {
203
+						for ($i = $min; $i <= $max; $i++) {
204 204
 					?>
205 205
 						<option value="<?php echo $i; ?>">&nbsp;<?php echo $i; ?>&nbsp;</option>
206 206
 					<?php } ?>
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 
211 211
 					}
212 212
 					// depending on group reg we need to change the format for qty
213
-					if ( $hidden_input_qty ) {
213
+					if ($hidden_input_qty) {
214 214
 					?>
215 215
 					<input type="hidden" name="tkt-slctr-qty-<?php echo $EVT_ID; ?>[]" value="0" />
216 216
 					<?php
@@ -220,33 +220,33 @@  discard block
 block discarded – undo
220 220
 
221 221
 					</td>
222 222
 				</tr>
223
-				<?php if ( $template_settings->show_ticket_details ) : ?>
224
-					<tr class="tckt-slctr-tkt-details-tr <?php echo espresso_get_object_css_class( $ticket, '', 'details' );?>">
223
+				<?php if ($template_settings->show_ticket_details) : ?>
224
+					<tr class="tckt-slctr-tkt-details-tr <?php echo espresso_get_object_css_class($ticket, '', 'details'); ?>">
225 225
 						<td class="tckt-slctr-tkt-details-td" colspan="4" style="padding: 0;border-top:none;">
226
-							<div id="tckt-slctr-tkt-details-<?php echo $EVT_ID . '-' . $TKT_ID; ?>-dv" class="tckt-slctr-tkt-details-dv" style="display: none;">
226
+							<div id="tckt-slctr-tkt-details-<?php echo $EVT_ID.'-'.$TKT_ID; ?>-dv" class="tckt-slctr-tkt-details-dv" style="display: none;">
227 227
 
228 228
 								<section class="tckt-slctr-tkt-details-sctn">
229
-									<h3><?php _e( 'Ticket Details', 'event_espresso' ); ?></h3>
229
+									<h3><?php _e('Ticket Details', 'event_espresso'); ?></h3>
230 230
 									<p><?php echo $ticket->description(); ?></p>
231 231
 
232
-									<?php if ( $ticket_price != 0 && apply_filters( 'FHEE__ticket_selector_chart_template__display_ticket_price_details', TRUE )) { ?>
232
+									<?php if ($ticket_price != 0 && apply_filters('FHEE__ticket_selector_chart_template__display_ticket_price_details', TRUE)) { ?>
233 233
 									<section class="tckt-slctr-tkt-price-sctn">
234
-										<h5><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_price_breakdown_heading', __( 'Ticket Price Breakdown', 'event_espresso' )); ?></h5>
234
+										<h5><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_price_breakdown_heading', __('Ticket Price Breakdown', 'event_espresso')); ?></h5>
235 235
 										<div class="tckt-slctr-tkt-details-tbl-wrap-dv">
236 236
 											<table class="tckt-slctr-tkt-details-tbl">
237 237
 												<thead>
238 238
 													<tr>
239
-														<th width="30%" class=""><span class="small-text"><?php _e( 'Name', 'event_espresso' ); ?></span></th>
240
-														<th width="" class="jst-cntr"><span class="small-text"><?php _e( 'Description', 'event_espresso' ); ?></span></th>
241
-														<th width="25%" class="jst-rght"><span class="small-text"><?php _e( 'Amount', 'event_espresso' ); ?></span></th>
239
+														<th width="30%" class=""><span class="small-text"><?php _e('Name', 'event_espresso'); ?></span></th>
240
+														<th width="" class="jst-cntr"><span class="small-text"><?php _e('Description', 'event_espresso'); ?></span></th>
241
+														<th width="25%" class="jst-rght"><span class="small-text"><?php _e('Amount', 'event_espresso'); ?></span></th>
242 242
 													</tr>
243 243
 												</thead>
244 244
 												<tbody>
245
-										<?php if ( $ticket->base_price() instanceof EE_Price ) { ?>
245
+										<?php if ($ticket->base_price() instanceof EE_Price) { ?>
246 246
 													<tr>
247
-														<td data-th="<?php _e( 'Name', 'event_espresso' ); ?>" class="small-text"><b><?php echo $ticket->base_price()->name(); ?></b></td>
248
-														<td data-th="<?php _e( 'Description', 'event_espresso' ); ?>" class="small-text"><?php echo $ticket->base_price()->desc(); ?></td>
249
-														<td data-th="<?php _e( 'Amount', 'event_espresso' ); ?>" class="jst-rght small-text"><?php echo $ticket->base_price()->pretty_price(); ?></td>
247
+														<td data-th="<?php _e('Name', 'event_espresso'); ?>" class="small-text"><b><?php echo $ticket->base_price()->name(); ?></b></td>
248
+														<td data-th="<?php _e('Description', 'event_espresso'); ?>" class="small-text"><?php echo $ticket->base_price()->desc(); ?></td>
249
+														<td data-th="<?php _e('Amount', 'event_espresso'); ?>" class="jst-rght small-text"><?php echo $ticket->base_price()->pretty_price(); ?></td>
250 250
 													</tr>
251 251
 													<?php
252 252
 															$running_total = $ticket->base_price()->amount();
@@ -254,44 +254,44 @@  discard block
 block discarded – undo
254 254
 															$running_total = 0;
255 255
 														}
256 256
 														// now add price modifiers
257
-														foreach ( $ticket->price_modifiers() as $price_mod ) { ?>
257
+														foreach ($ticket->price_modifiers() as $price_mod) { ?>
258 258
 													<tr>
259
-														<td data-th="<?php _e( 'Name', 'event_espresso' ); ?>" class="jst-rght small-text"><?php echo $price_mod->name(); ?></td>
260
-													<?php if ( $price_mod->is_percent() ) { ?>
261
-														<td data-th="<?php _e( 'Description', 'event_espresso' ); ?>" class="small-text"><?php echo $price_mod->desc(); ?> <?php echo $price_mod->amount(); ?>%</td>
259
+														<td data-th="<?php _e('Name', 'event_espresso'); ?>" class="jst-rght small-text"><?php echo $price_mod->name(); ?></td>
260
+													<?php if ($price_mod->is_percent()) { ?>
261
+														<td data-th="<?php _e('Description', 'event_espresso'); ?>" class="small-text"><?php echo $price_mod->desc(); ?> <?php echo $price_mod->amount(); ?>%</td>
262 262
 														<?php
263
-															$new_sub_total = $running_total * ( $price_mod->amount() / 100 );
263
+															$new_sub_total = $running_total * ($price_mod->amount() / 100);
264 264
 															$new_sub_total = $price_mod->is_discount() ? $new_sub_total * -1 : $new_sub_total;
265 265
 														?>
266 266
 													<?php } else { ?>
267 267
 														<?php $new_sub_total = $price_mod->is_discount() ? $price_mod->amount() * -1 : $price_mod->amount(); ?>
268
-														<td data-th="<?php _e( 'Description', 'event_espresso' ); ?>" class="small-text"><?php echo $price_mod->desc(); ?></td>
268
+														<td data-th="<?php _e('Description', 'event_espresso'); ?>" class="small-text"><?php echo $price_mod->desc(); ?></td>
269 269
 														<?php $new_sub_total = $price_mod->is_discount() ? $price_mod->amount() * -1 : $price_mod->amount(); ?>
270 270
 													<?php } ?>
271
-														<td data-th="<?php _e( 'Amount', 'event_espresso' ); ?>" class="jst-rght small-text"><?php echo EEH_Template::format_currency( $new_sub_total ); ?></td>
271
+														<td data-th="<?php _e('Amount', 'event_espresso'); ?>" class="jst-rght small-text"><?php echo EEH_Template::format_currency($new_sub_total); ?></td>
272 272
 														<?php $running_total += $new_sub_total; ?>
273 273
 													</tr>
274 274
 												<?php } ?>
275
-												<?php if ( $ticket->taxable() ) { ?>
275
+												<?php if ($ticket->taxable()) { ?>
276 276
 													<?php //$ticket_subtotal =$ticket->get_ticket_subtotal(); ?>
277 277
 													<tr>
278
-														<td colspan="2" class="jst-rght small-text sbttl"><b><?php _e( 'subtotal', 'event_espresso' ); ?></b></td>
279
-														<td data-th="<?php _e( 'subtotal', 'event_espresso' ); ?>" class="jst-rght small-text"><b><?php echo  EEH_Template::format_currency( $running_total ); ?></b></td>
278
+														<td colspan="2" class="jst-rght small-text sbttl"><b><?php _e('subtotal', 'event_espresso'); ?></b></td>
279
+														<td data-th="<?php _e('subtotal', 'event_espresso'); ?>" class="jst-rght small-text"><b><?php echo  EEH_Template::format_currency($running_total); ?></b></td>
280 280
 													</tr>
281 281
 
282
-													<?php foreach ( $ticket->get_ticket_taxes_for_admin() as $tax ) { ?>
282
+													<?php foreach ($ticket->get_ticket_taxes_for_admin() as $tax) { ?>
283 283
 													<tr>
284
-														<td data-th="<?php _e( 'Name', 'event_espresso' ); ?>" class="jst-rght small-text"><?php echo $tax->name(); ?></td>
285
-														<td data-th="<?php _e( 'Description', 'event_espresso' ); ?>" class="jst-rght small-text"><?php echo $tax->amount(); ?>%</td>
286
-														<?php $tax_amount = $running_total * ( $tax->amount() / 100 ); ?>
287
-														<td data-th="<?php _e( 'Amount', 'event_espresso' ); ?>" class="jst-rght small-text"><?php echo EEH_Template::format_currency( $tax_amount ); ?></td>
284
+														<td data-th="<?php _e('Name', 'event_espresso'); ?>" class="jst-rght small-text"><?php echo $tax->name(); ?></td>
285
+														<td data-th="<?php _e('Description', 'event_espresso'); ?>" class="jst-rght small-text"><?php echo $tax->amount(); ?>%</td>
286
+														<?php $tax_amount = $running_total * ($tax->amount() / 100); ?>
287
+														<td data-th="<?php _e('Amount', 'event_espresso'); ?>" class="jst-rght small-text"><?php echo EEH_Template::format_currency($tax_amount); ?></td>
288 288
 														<?php $running_total += $tax_amount; ?>
289 289
 													</tr>
290 290
 													<?php } ?>
291 291
 												<?php } ?>
292 292
 													<tr>
293
-														<td colspan="2" class="jst-rght small-text ttl-lbl-td"><b><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_total_price', __( 'Total Ticket Price', 'event_espresso' )); ?></b></td>
294
-														<td data-th="<?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_total_price', __( 'Total Ticket Price', 'event_espresso' )); ?>" class="jst-rght small-text"><b><?php echo EEH_Template::format_currency( $running_total ); ?></b></td>
293
+														<td colspan="2" class="jst-rght small-text ttl-lbl-td"><b><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_total_price', __('Total Ticket Price', 'event_espresso')); ?></b></td>
294
+														<td data-th="<?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_total_price', __('Total Ticket Price', 'event_espresso')); ?>" class="jst-rght small-text"><b><?php echo EEH_Template::format_currency($running_total); ?></b></td>
295 295
 													</tr>
296 296
 												</tbody>
297 297
 											</table>
@@ -301,106 +301,106 @@  discard block
 block discarded – undo
301 301
 									<?php } ?>
302 302
 
303 303
 									<section class="tckt-slctr-tkt-sale-dates-sctn">
304
-										<h5><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_sales_date_heading', __( 'Ticket Sale Dates', 'event_espresso' )); ?></h5>
305
-										<span class="drk-grey-text small-text no-bold"> - <?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_dates_available_message', __( 'The dates when this ticket is available for purchase.', 'event_espresso' )); ?></span><br/>
306
-										<span class="ticket-details-label-spn drk-grey-text"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_goes_on_sale', __( 'Goes On Sale:', 'event_espresso' )); ?></span><span class="dashicons dashicons-calendar"></span><?php echo date_i18n( $date_format, strtotime( $ticket->start_date() )) . ' &nbsp; '; ?><span class="dashicons dashicons-clock"></span><?php echo date_i18n( $time_format, strtotime( $ticket->start_date() )) ; ?><br/>
307
-										<span class="ticket-details-label-spn drk-grey-text"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_sales_end', __( 'Sales End:', 'event_espresso' )); ?></span><span class="dashicons dashicons-calendar"></span><?php echo date_i18n( $date_format, strtotime( $ticket->end_date() )) . ' &nbsp; '; ?><span class="dashicons dashicons-clock"></span><?php echo date_i18n( $time_format, strtotime( $ticket->end_date() )) ; ?><br/>
304
+										<h5><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_sales_date_heading', __('Ticket Sale Dates', 'event_espresso')); ?></h5>
305
+										<span class="drk-grey-text small-text no-bold"> - <?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_dates_available_message', __('The dates when this ticket is available for purchase.', 'event_espresso')); ?></span><br/>
306
+										<span class="ticket-details-label-spn drk-grey-text"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_goes_on_sale', __('Goes On Sale:', 'event_espresso')); ?></span><span class="dashicons dashicons-calendar"></span><?php echo date_i18n($date_format, strtotime($ticket->start_date())).' &nbsp; '; ?><span class="dashicons dashicons-clock"></span><?php echo date_i18n($time_format, strtotime($ticket->start_date())); ?><br/>
307
+										<span class="ticket-details-label-spn drk-grey-text"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_sales_end', __('Sales End:', 'event_espresso')); ?></span><span class="dashicons dashicons-calendar"></span><?php echo date_i18n($date_format, strtotime($ticket->end_date())).' &nbsp; '; ?><span class="dashicons dashicons-clock"></span><?php echo date_i18n($time_format, strtotime($ticket->end_date())); ?><br/>
308 308
 									</section>
309 309
 									<br/>
310 310
 
311
-									<?php do_action( 'AHEE__ticket_selector_chart_template__after_ticket_date', $ticket ); ?>
311
+									<?php do_action('AHEE__ticket_selector_chart_template__after_ticket_date', $ticket); ?>
312 312
 
313
-									<?php if ( $ticket->min() &&$ticket->max() ) { ?>
313
+									<?php if ($ticket->min() && $ticket->max()) { ?>
314 314
 									<section class="tckt-slctr-tkt-quantities-sctn">
315
-										<h5><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_heading', __( 'Purchasable Quantities', 'event_espresso' )); ?></h5>
316
-										<span class="drk-grey-text small-text no-bold"> - <?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_message', __( 'The number of tickets that can be purchased per transaction (if available).', 'event_espresso' )); ?></span><br/>
317
-										<span class="ticket-details-label-spn drk-grey-text"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty', __( 'Minimum Qty:', 'event_espresso' )); ?></span><?php echo $ticket->min() > 0 ? $ticket->min() : 0; ?>
318
-										<?php if ( $ticket->min() > $remaining ) { ?> &nbsp; <span class="important-notice small-text"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty_message', __( 'The Minimum Quantity purchasable for this ticket exceeds the number of spaces remaining', 'event_espresso' )); ?></span><?php } ?><br/>
315
+										<h5><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_heading', __('Purchasable Quantities', 'event_espresso')); ?></h5>
316
+										<span class="drk-grey-text small-text no-bold"> - <?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_message', __('The number of tickets that can be purchased per transaction (if available).', 'event_espresso')); ?></span><br/>
317
+										<span class="ticket-details-label-spn drk-grey-text"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty', __('Minimum Qty:', 'event_espresso')); ?></span><?php echo $ticket->min() > 0 ? $ticket->min() : 0; ?>
318
+										<?php if ($ticket->min() > $remaining) { ?> &nbsp; <span class="important-notice small-text"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty_message', __('The Minimum Quantity purchasable for this ticket exceeds the number of spaces remaining', 'event_espresso')); ?></span><?php } ?><br/>
319 319
 										<?php //$max = min( $max, $max_atndz );?>
320
-										<span class="ticket-details-label-spn drk-grey-text"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_max_qty', __( 'Maximum Qty:', 'event_espresso' )); ?></span><?php echo $ticket->max() === INF ? __( 'no limit', 'event_espresso' ) : max( $ticket->max(), 1 ); ?><br/>
320
+										<span class="ticket-details-label-spn drk-grey-text"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_max_qty', __('Maximum Qty:', 'event_espresso')); ?></span><?php echo $ticket->max() === INF ? __('no limit', 'event_espresso') : max($ticket->max(), 1); ?><br/>
321 321
 									</section>
322 322
 									<br/>
323 323
 									<?php } ?>
324 324
 
325
-									<?php if ( $ticket->uses() !== INF && ( ! defined( 'EE_DECAF' ) || EE_DECAF !== TRUE )) { ?>
325
+									<?php if ($ticket->uses() !== INF && ( ! defined('EE_DECAF') || EE_DECAF !== TRUE)) { ?>
326 326
 									<section class="tckt-slctr-tkt-uses-sctn">
327
-										<h5><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_heading', __( 'Event Date Ticket Uses', 'event_espresso' )); ?></h5>
327
+										<h5><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_heading', __('Event Date Ticket Uses', 'event_espresso')); ?></h5>
328 328
 										<span class="drk-grey-text small-text no-bold"> - <?php
329 329
 											echo apply_filters(
330 330
 												'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_message',
331 331
 												sprintf(
332
-													__( 'The number of separate event datetimes (see table below) that this ticket can be used to gain admittance to.%1$s%2$sAdmission is always one person per ticket.%3$s', 'event_espresso' ),
332
+													__('The number of separate event datetimes (see table below) that this ticket can be used to gain admittance to.%1$s%2$sAdmission is always one person per ticket.%3$s', 'event_espresso'),
333 333
 													'<br/>',
334 334
 													'<strong>',
335 335
 													'</strong>'
336 336
 												)
337 337
 											);
338 338
 											?></span><br/>
339
-										<span class="ticket-details-label-spn drk-grey-text"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_date_number_datetimes', __( '# Datetimes:', 'event_espresso' )); ?></span><?php  echo $ticket->uses();?><br/>
339
+										<span class="ticket-details-label-spn drk-grey-text"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_date_number_datetimes', __('# Datetimes:', 'event_espresso')); ?></span><?php  echo $ticket->uses(); ?><br/>
340 340
 									</section>
341 341
 									<?php } ?>
342 342
 
343 343
 									<?php
344
-									$datetimes = $ticket->datetimes_ordered( $event_is_expired, FALSE );
344
+									$datetimes = $ticket->datetimes_ordered($event_is_expired, FALSE);
345 345
 									$chart_column_width = $template_settings->show_ticket_sale_columns ? '12.5%' : '50%';
346
-									if ( ! empty( $datetimes )) { ?>
346
+									if ( ! empty($datetimes)) { ?>
347 347
 									<section class="tckt-slctr-tkt-datetimes-sctn">
348
-										<h5><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_heading', __( 'Event Access', 'event_espresso' )); ?></h5>
349
-										<span class="drk-grey-text small-text no-bold"> - <?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_message', __( 'This ticket allows access to the following event dates and times.', 'event_espresso' )); ?></span>
348
+										<h5><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_access_heading', __('Event Access', 'event_espresso')); ?></h5>
349
+										<span class="drk-grey-text small-text no-bold"> - <?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_access_message', __('This ticket allows access to the following event dates and times.', 'event_espresso')); ?></span>
350 350
 										<div class="tckt-slctr-tkt-details-tbl-wrap-dv">
351 351
 											<table class="tckt-slctr-tkt-details-tbl">
352 352
 												<thead>
353 353
 													<tr>
354 354
 														<th valign="middle">
355
-															<span class="dashicons dashicons-calendar"></span><span class="small-text"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', __( 'Event Date ', 'event_espresso' )); ?></span>
355
+															<span class="dashicons dashicons-calendar"></span><span class="small-text"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', __('Event Date ', 'event_espresso')); ?></span>
356 356
 														</th>
357 357
 														<th width="<?php echo $chart_column_width; ?>" valign="middle" class="">
358
-															<span class="dashicons dashicons-clock"></span><span class="small-text"><?php _e( 'Time ', 'event_espresso' ); ?></span>
358
+															<span class="dashicons dashicons-clock"></span><span class="small-text"><?php _e('Time ', 'event_espresso'); ?></span>
359 359
 														</th>
360
-														<?php if ( $template_settings->show_ticket_sale_columns ) : ?>
360
+														<?php if ($template_settings->show_ticket_sale_columns) : ?>
361 361
 															<th width="12.5%" valign="middle" class="cntr">
362
-																<span class="smaller-text"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', sprintf( __( 'This Ticket%sSold', 'event_espresso' ), '<br/>' )); ?></span>
362
+																<span class="smaller-text"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', sprintf(__('This Ticket%sSold', 'event_espresso'), '<br/>')); ?></span>
363 363
 															</th>
364 364
 															<th width="12.5%" valign="middle" class="cntr">
365
-																<span class="smaller-text"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', sprintf( __( 'This Ticket%sLeft', 'event_espresso' ), '<br/>' )); ?></span>
365
+																<span class="smaller-text"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', sprintf(__('This Ticket%sLeft', 'event_espresso'), '<br/>')); ?></span>
366 366
 															</th>
367 367
 															<th width="12.5%" valign="middle" class="cntr">
368
-																<span class="smaller-text"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', sprintf( __( 'Total Tickets%sSold', 'event_espresso' ), '<br/>' )); ?></span>
368
+																<span class="smaller-text"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', sprintf(__('Total Tickets%sSold', 'event_espresso'), '<br/>')); ?></span>
369 369
 															</th>
370 370
 															<th width="12.5%" valign="middle" class="cntr">
371
-																<span class="smaller-text"><?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', sprintf( __( 'Total Spaces%sLeft', 'event_espresso' ), '<br/>' )); ?></span>
371
+																<span class="smaller-text"><?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', sprintf(__('Total Spaces%sLeft', 'event_espresso'), '<br/>')); ?></span>
372 372
 															</th>
373 373
 														<?php endif; //end $template_settings->show_ticket_sale_columns conditional ?>
374 374
 													</tr>
375 375
 												</thead>
376 376
 												<tbody>
377 377
 											<?php
378
-												foreach ( $datetimes as $datetime ) {
379
-													if ( $datetime instanceof EE_Datetime ) {
378
+												foreach ($datetimes as $datetime) {
379
+													if ($datetime instanceof EE_Datetime) {
380 380
 											?>
381 381
 
382 382
 												<tr>
383
-													<td data-th="<?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', __( 'Event Date ', 'event_espresso' )); ?>" class="small-text">
383
+													<td data-th="<?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', __('Event Date ', 'event_espresso')); ?>" class="small-text">
384 384
 														<?php $datetime_name = $datetime->name(); ?>
385
-														<?php echo ! empty( $datetime_name ) ? '<b>' . $datetime_name . '</b><br/>' : ''; ?>
386
-														<?php echo $datetime->date_range( $date_format, __( ' to  ', 'event_espresso' )); ?>
385
+														<?php echo ! empty($datetime_name) ? '<b>'.$datetime_name.'</b><br/>' : ''; ?>
386
+														<?php echo $datetime->date_range($date_format, __(' to  ', 'event_espresso')); ?>
387 387
 													</td>
388
-													<td data-th="<?php _e( 'Time ', 'event_espresso' ); ?>" class="cntr small-text">
389
-														<?php echo $datetime->time_range( $time_format, __( ' to  ', 'event_espresso' )); ?>
388
+													<td data-th="<?php _e('Time ', 'event_espresso'); ?>" class="cntr small-text">
389
+														<?php echo $datetime->time_range($time_format, __(' to  ', 'event_espresso')); ?>
390 390
 													</td>
391
-													<?php if ( $template_settings->show_ticket_sale_columns ) : ?>
392
-														<td data-th="<?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', __( 'This Ticket Sold', 'event_espresso' )); ?>" class="cntr small-text">
391
+													<?php if ($template_settings->show_ticket_sale_columns) : ?>
392
+														<td data-th="<?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', __('This Ticket Sold', 'event_espresso')); ?>" class="cntr small-text">
393 393
 															<?php echo $ticket->sold(); ?>
394 394
 														</td>
395
-														<td data-th="<?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', __( 'This Ticket Left', 'event_espresso' )); ?>" class="cntr small-text">
396
-															<?php echo $ticket->qty() === INF ? '<span class="smaller-text">' .  __( 'unlimited ', 'event_espresso' ) . '</span>' : $ticket->qty() - $ticket->sold(); ?>
395
+														<td data-th="<?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', __('This Ticket Left', 'event_espresso')); ?>" class="cntr small-text">
396
+															<?php echo $ticket->qty() === INF ? '<span class="smaller-text">'.__('unlimited ', 'event_espresso').'</span>' : $ticket->qty() - $ticket->sold(); ?>
397 397
 														</td>
398
-														<td data-th="<?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', __( 'Total Tickets Sold', 'event_espresso' )); ?>" class="cntr small-text">
398
+														<td data-th="<?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', __('Total Tickets Sold', 'event_espresso')); ?>" class="cntr small-text">
399 399
 															<?php echo $datetime->sold(); ?>
400 400
 														</td>
401
-												<?php $tkts_left = $datetime->sold_out() ? '<span class="sold-out smaller-text">' . __( 'Sold&nbsp;Out', 'event_espresso' ) . '</span>' : $datetime->spaces_remaining(); ?>
402
-														<td data-th="<?php echo apply_filters( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', __( 'Total Spaces Left', 'event_espresso' )); ?>" class="cntr small-text">
403
-															<?php echo $tkts_left === INF ? '<span class="smaller-text">' .  __( 'unlimited ', 'event_espresso' ) . '</span>' : $tkts_left; ?>
401
+												<?php $tkts_left = $datetime->sold_out() ? '<span class="sold-out smaller-text">'.__('Sold&nbsp;Out', 'event_espresso').'</span>' : $datetime->spaces_remaining(); ?>
402
+														<td data-th="<?php echo apply_filters('FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', __('Total Spaces Left', 'event_espresso')); ?>" class="cntr small-text">
403
+															<?php echo $tkts_left === INF ? '<span class="smaller-text">'.__('unlimited ', 'event_espresso').'</span>' : $tkts_left; ?>
404 404
 														</td>
405 405
 													<?php endif; //end $template_settings->show_ticket_sale_columns conditional ?>
406 406
 												</tr>
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
 							</div>
419 419
 						</td>
420 420
 					</tr>
421
-				<?php endif;  //end template_settings->show_ticket_details check?>
421
+				<?php endif; //end template_settings->show_ticket_details check?>
422 422
 	<?php
423 423
 			$row++;
424 424
 		}
@@ -434,10 +434,10 @@  discard block
 block discarded – undo
434 434
 	<input type="hidden" name="tkt-slctr-max-atndz-<?php echo $EVT_ID; ?>" value="<?php echo $max_atndz; ?>" />
435 435
 	<input type="hidden" name="tkt-slctr-event-id" value="<?php echo $EVT_ID; ?>" />
436 436
 
437
-<?php if ( $max_atndz > 0 ) { ?>
438
-	<p class="smaller-text lt-grey-text">* <?php echo apply_filters( 'FHEE__ticket_selector_chart_template__maximum_tickets_purchased_footnote', sprintf( __( 'Please note that a maximum number of %d tickets can be purchased for this event per order.', 'event_espresso' ), $max_atndz ));?></p>
437
+<?php if ($max_atndz > 0) { ?>
438
+	<p class="smaller-text lt-grey-text">* <?php echo apply_filters('FHEE__ticket_selector_chart_template__maximum_tickets_purchased_footnote', sprintf(__('Please note that a maximum number of %d tickets can be purchased for this event per order.', 'event_espresso'), $max_atndz)); ?></p>
439 439
 <?php } ?>
440 440
 
441
-	<?php do_action( 'AHEE__ticket_selector_chart__template__after_ticket_selector', $EVT_ID ); ?>
441
+	<?php do_action('AHEE__ticket_selector_chart__template__after_ticket_selector', $EVT_ID); ?>
442 442
 
443 443
 </div>
Please login to merge, or discard this patch.