Completed
Branch FET-8347-separate-logging (f2247f)
by
unknown
39:36 queued 30:33
created
admin_pages/transactions/templates/txn_admin_overview.template.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 
2 2
 		<ul class="subsubsub">
3
-			<li class="all"><a class="current" href="<?php echo $view_all_url;?>">View All <span class="count">(<?php echo $table_rows; ?>)</span></a></li>
3
+			<li class="all"><a class="current" href="<?php echo $view_all_url; ?>">View All <span class="count">(<?php echo $table_rows; ?>)</span></a></li>
4 4
 		</ul>
5 5
 
6 6
 		<div id="txn-filters-dv">
7
-			<form id="txn-filters-frm" action="<?php echo $txn_overview_url;?>" method="post" name="txn-filters-frm">
8
-				<label for="txn-filter-start-date"><?php _e( 'Display Transactions from ', 'event_espresso' ); ?></label>
7
+			<form id="txn-filters-frm" action="<?php echo $txn_overview_url; ?>" method="post" name="txn-filters-frm">
8
+				<label for="txn-filter-start-date"><?php _e('Display Transactions from ', 'event_espresso'); ?></label>
9 9
 				<input id="txn-filter-start-date" class="datepicker" type="text" value="<?php echo $start_date; ?>" name="txn-filter-start-date" size="15"/>	
10
-				<label for="txn-filter-end-date"> <?php _e( 'until', 'event_espresso' ); ?> </label>
10
+				<label for="txn-filter-end-date"> <?php _e('until', 'event_espresso'); ?> </label>
11 11
 				<input id="txn-filter-end-date" class="datepicker" type="text" value="<?php echo $end_date; ?>" name="txn-filter-end-date" size="15"/>	
12 12
 				<input id="submit-txn-filters-sbmt" class="button-secondary" type="submit" value="Filter Months">
13 13
 			</form>
14 14
 		</div>
15 15
 
16
-        <form id="transactions-overview-frm" action="<?php echo $txn_overview_url;?>" method="get">
16
+        <form id="transactions-overview-frm" action="<?php echo $txn_overview_url; ?>" method="get">
17 17
             <input type="hidden" name="page" value="<?php echo $_REQUEST['page'] ?>" />
18 18
             <input type="hidden" id="per_page" name="per_page" value="" />
19 19
             <?php echo $list_table->display(); ?>
Please login to merge, or discard this patch.
admin_pages/transactions/templates/txn_admin_wrapper.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <div class="wrap">
2 2
 
3
-	<h2><?php esc_attr_e( 'Event Espresso', 'event_espresso' ); ?>&nbsp;-&nbsp;<?php esc_attr_e( $admin_page_title, 'event_espresso' ); ?></h2>
3
+	<h2><?php esc_attr_e('Event Espresso', 'event_espresso'); ?>&nbsp;-&nbsp;<?php esc_attr_e($admin_page_title, 'event_espresso'); ?></h2>
4 4
 
5 5
 	<h2 class="nav-tab-wrapper">
6 6
 		<a class="nav-tab<?php echo $tab_active_overview; ?>" href="<?php echo $tab_url_overview; ?>"><?php echo $tab_lnk_overview; ?></a>
7
-		<?php if ( $tab_details ) : ?>
7
+		<?php if ($tab_details) : ?>
8 8
 			<a class="nav-tab<?php echo $tab_active_details; ?>" href="<?php echo $tab_url_details; ?>"><?php echo $tab_lnk_details; ?></a>
9 9
 		<?php endif; ?>
10 10
 		<a class="nav-tab<?php echo $tab_active_reports; ?>" href="<?php echo $tab_url_reports; ?>"><?php echo $tab_lnk_reports; ?></a>
Please login to merge, or discard this patch.
caffeinated/admin/extend/about/templates/whats_new.template.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,25 +1,25 @@
 block discarded – undo
1 1
 <div class="changelog point-releases">
2
-	<!-- <h3><?php echo _n( 'Minor Release Information', 'Minor Releases', 1 ); ?></h3> -->
3
-	<h3><?php echo _n( 'Major Release Information', 'Major Releases', 1 ); ?></h3>
2
+	<!-- <h3><?php echo _n('Minor Release Information', 'Minor Releases', 1); ?></h3> -->
3
+	<h3><?php echo _n('Major Release Information', 'Major Releases', 1); ?></h3>
4 4
 	<?php //$type = 'minor'; ?>
5 5
 	<?php $type = 'major'; ?>
6
-	<p><?php printf( __( '<strong>Version %1$s</strong> is a %2$s release.', 'event_espresso'), EVENT_ESPRESSO_VERSION, $type ); ?>
6
+	<p><?php printf(__('<strong>Version %1$s</strong> is a %2$s release.', 'event_espresso'), EVENT_ESPRESSO_VERSION, $type); ?>
7 7
 		<?php
8
-			$ver = explode( '.', EVENT_ESPRESSO_VERSION );
9
-			array_pop( $ver );
10
-			$ver = implode( '.', $ver );
8
+			$ver = explode('.', EVENT_ESPRESSO_VERSION);
9
+			array_pop($ver);
10
+			$ver = implode('.', $ver);
11 11
 		?>
12
-		<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://eventespresso.com/wiki/ee4-changelog/#' . $ver ); ?>
12
+		<?php printf(__('For more information, see <a href="%s">the release notes</a>.'), 'http://eventespresso.com/wiki/ee4-changelog/#'.$ver); ?>
13 13
  	</p>
14 14
 </div>
15 15
 
16 16
 <div class="changelog">
17 17
 	<?php
18 18
 	//maintenance mode on?
19
-	if ( EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance ) {
19
+	if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) {
20 20
 		?>
21 21
 		<div class="ee-attention">
22
-			<h2 class="ee-maintenance-mode-callout"><?php  _e('Event Espresso is in full maintenance mode.' , 'event_espresso'); ?></h2>
22
+			<h2 class="ee-maintenance-mode-callout"><?php  _e('Event Espresso is in full maintenance mode.', 'event_espresso'); ?></h2>
23 23
 			<p>
24 24
 			<?php
25 25
 				printf(
Please login to merge, or discard this patch.
caffeinated/admin/extend/events/Extend_Events_Admin_List_Table.class.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
  */
18 18
 class Extend_Events_Admin_List_Table extends Events_Admin_List_Table {
19 19
 
20
-	protected function _column_name_action_setup( EE_Event $item ) {
20
+	protected function _column_name_action_setup(EE_Event $item) {
21 21
 		$export_query_args = array(
22 22
 				'action' => 'export_events',
23 23
 				'EVT_ID' => $item->ID()
24 24
 			);
25
-		$export_event_link = EE_Admin_Page::add_query_args_and_nonce( $export_query_args, EVENTS_ADMIN_URL );
25
+		$export_event_link = EE_Admin_Page::add_query_args_and_nonce($export_query_args, EVENTS_ADMIN_URL);
26 26
 
27
-		$actions = parent::_column_name_action_setup( $item );
27
+		$actions = parent::_column_name_action_setup($item);
28 28
 //		$actions['export'] = '<a href="' . $export_event_link . '" title="' . __('Export Event', 'event_espresso') . '">' . __('Export', 'event_espresso') . '</a>';
29 29
 		return $actions;
30 30
 	}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,9 @@
 block discarded – undo
5 5
  * @subpackage admin
6 6
  * @since           4.4.9
7 7
  */
8
-if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
8
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
9
+	exit('No direct script access allowed');
10
+}
9 11
 
10 12
 /**
11 13
  * This is the caffeinated class for the event list table.  It is only loaded in caffeinated versions of Event
Please login to merge, or discard this patch.
caffeinated/admin/extend/events/Extend_Events_Admin_Page.core.php 2 patches
Braces   +52 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
@@ -435,8 +436,9 @@  discard block
 block discarded – undo
435 436
 		//k we've got EVT_ID so let's use that to get the event we'll duplicate
436 437
 		$orig_event = EEM_Event::instance()->get_one_by_ID( $this->_req_data['EVT_ID'] );
437 438
 
438
-		if ( ! $orig_event instanceof EE_Event )
439
-			throw new EE_Error( sprintf( __('An EE_Event object could not be retrieved for the given ID (%s)', 'event_espresso '), $this->_req_data['EVT_ID'] ) );
439
+		if ( ! $orig_event instanceof EE_Event ) {
440
+					throw new EE_Error( sprintf( __('An EE_Event object could not be retrieved for the given ID (%s)', 'event_espresso '), $this->_req_data['EVT_ID'] ) );
441
+		}
440 442
 
441 443
 		//k now let's clone the $orig_event before getting relations
442 444
 		$new_event = clone $orig_event;
@@ -510,8 +512,9 @@  discard block
 block discarded – undo
510 512
 			//now let's get the ticket relations setup.
511 513
 			foreach ( (array) $orig_tkts as $orig_tkt ) {
512 514
 				//it's possible a datetime will have no tickets so let's verify we HAVE a ticket first.
513
-				if ( ! $orig_tkt instanceof EE_Ticket )
514
-					continue;
515
+				if ( ! $orig_tkt instanceof EE_Ticket ) {
516
+									continue;
517
+				}
515 518
 
516 519
 				//is this ticket archived?  If it is then let's skip
517 520
 				if ( $orig_tkt->get( 'TKT_deleted' ) ) {
@@ -620,9 +623,9 @@  discard block
 block discarded – undo
620 623
 	protected function _events_export() {
621 624
 		if(isset($this->_req_data['EVT_ID'])){
622 625
 			$event_ids = $this->_req_data['EVT_ID'];
623
-		}elseif(isset($this->_req_data['EVT_IDs'])){
626
+		} elseif(isset($this->_req_data['EVT_IDs'])){
624 627
 			$event_ids = $this->_req_data['EVT_IDs'];
625
-		}else{
628
+		} else{
626 629
 			$event_ids = NULL;
627 630
 		}
628 631
 		//todo: I don't like doing this but it'll do until we modify EE_Export Class.
@@ -811,8 +814,9 @@  discard block
 block discarded – undo
811 814
 
812 815
 		extract( wp_parse_args($args, $defaults), EXTR_SKIP );
813 816
 
814
-		if ( empty($walker) || !is_a($walker, 'Walker') )
815
-			$walker = new Walker_Radio_Checklist;
817
+		if ( empty($walker) || !is_a($walker, 'Walker') ) {
818
+					$walker = new Walker_Radio_Checklist;
819
+		}
816 820
 
817 821
 		$descendants_and_self = (int) $descendants_and_self;
818 822
 
@@ -821,17 +825,19 @@  discard block
 block discarded – undo
821 825
 		$tax = get_taxonomy($taxonomy);
822 826
 		$args['disabled'] = !current_user_can($tax->cap->assign_terms);
823 827
 
824
-		if ( is_array( $selected_cats ) )
825
-			$args['selected_cats'] = $selected_cats;
826
-		elseif ( $post_id )
827
-			$args['selected_cats'] = wp_get_object_terms($post_id, $taxonomy, array_merge($args, array('fields' => 'ids')));
828
-		else
829
-			$args['selected_cats'] = array();
828
+		if ( is_array( $selected_cats ) ) {
829
+					$args['selected_cats'] = $selected_cats;
830
+		} elseif ( $post_id ) {
831
+					$args['selected_cats'] = wp_get_object_terms($post_id, $taxonomy, array_merge($args, array('fields' => 'ids')));
832
+		} else {
833
+					$args['selected_cats'] = array();
834
+		}
830 835
 
831
-		if ( is_array( $popular_cats ) )
832
-			$args['popular_cats'] = $popular_cats;
833
-		else
834
-			$args['popular_cats'] = get_terms( $taxonomy, array( 'fields' => 'ids', 'orderby' => 'count', 'order' => 'DESC', 'number' => 10, 'hierarchical' => false ) );
836
+		if ( is_array( $popular_cats ) ) {
837
+					$args['popular_cats'] = $popular_cats;
838
+		} else {
839
+					$args['popular_cats'] = get_terms( $taxonomy, array( 'fields' => 'ids', 'orderby' => 'count', 'order' => 'DESC', 'number' => 10, 'hierarchical' => false ) );
840
+		}
835 841
 
836 842
 		if ( $descendants_and_self ) {
837 843
 			$categories = (array) get_terms($taxonomy, array( 'child_of' => $descendants_and_self, 'hierarchical' => 0, 'hide_empty' => 0 ) );
@@ -884,8 +890,9 @@  discard block
 block discarded – undo
884 890
 		$status = isset( $this->_req_data['status'] ) ? $this->_req_data['status'] : NULL;
885 891
 
886 892
 		//active status dropdown
887
-		if ( $status !== 'draft' )
888
-			$filter[] = $this->active_status_dropdown( isset( $this->_req_data['active_status'] ) ? $this->_req_data['active_status'] : '' );
893
+		if ( $status !== 'draft' ) {
894
+					$filter[] = $this->active_status_dropdown( isset( $this->_req_data['active_status'] ) ? $this->_req_data['active_status'] : '' );
895
+		}
889 896
 
890 897
 		//category filter
891 898
 		$filters[] = $this->category_dropdown();
@@ -1064,7 +1071,7 @@  discard block
 block discarded – undo
1064 1071
 
1065 1072
 		if($count){
1066 1073
 			return EEM_Ticket::instance()->count_deleted_and_undeleted(array($_where));
1067
-		}else{
1074
+		} else{
1068 1075
 			return EEM_Ticket::instance()->get_all_deleted_and_undeleted($query_params);
1069 1076
 		}
1070 1077
 
@@ -1087,11 +1094,13 @@  discard block
 block discarded – undo
1087 1094
 			//cycle thru the boxes
1088 1095
 			while ( list( $TKT_ID, $value ) = each( $this->_req_data['checkbox'] ) ) {
1089 1096
 				if ( $trash ) {
1090
-					if ( ! $TKT->delete_by_ID( $TKT_ID ) )
1091
-						$success = 0;
1097
+					if ( ! $TKT->delete_by_ID( $TKT_ID ) ) {
1098
+											$success = 0;
1099
+					}
1092 1100
 				} else {
1093
-					if ( ! $TKT->restore_by_ID( $TKT_ID ) )
1094
-						$success = 0;
1101
+					if ( ! $TKT->restore_by_ID( $TKT_ID ) ) {
1102
+											$success = 0;
1103
+					}
1095 1104
 				}
1096 1105
 			}
1097 1106
 		} else {
@@ -1099,11 +1108,13 @@  discard block
 block discarded – undo
1099 1108
 			$TKT_ID = absint( $this->_req_data['TKT_ID'] );
1100 1109
 
1101 1110
 			if ( $trash ) {
1102
-				if ( ! $TKT->delete_by_ID( $TKT_ID ) )
1103
-					$success = 0;
1111
+				if ( ! $TKT->delete_by_ID( $TKT_ID ) ) {
1112
+									$success = 0;
1113
+				}
1104 1114
 			} else {
1105
-				if ( ! $TKT->restore_by_ID( $TKT_ID ) )
1106
-					$success = 0;
1115
+				if ( ! $TKT->restore_by_ID( $TKT_ID ) ) {
1116
+									$success = 0;
1117
+				}
1107 1118
 			}
1108 1119
 		}
1109 1120
 
@@ -1151,8 +1162,9 @@  discard block
 block discarded – undo
1151 1162
 			);
1152 1163
 
1153 1164
 		//failsafe.  If the default ticket count === 1 then we need to redirect to event overview.
1154
-		if ( EEM_Ticket::instance()->count_deleted_and_undeleted( array( array( 'TKT_is_default' => 1 ) ), 'TKT_ID', TRUE ) )
1155
-			$query_args = array();
1165
+		if ( EEM_Ticket::instance()->count_deleted_and_undeleted( array( array( 'TKT_is_default' => 1 ) ), 'TKT_ID', TRUE ) ) {
1166
+					$query_args = array();
1167
+		}
1156 1168
 		$this->_redirect_after_action( $success, 'Tickets', $action_desc, $query_args );
1157 1169
 	}
1158 1170
 
@@ -1176,13 +1188,15 @@  discard block
 block discarded – undo
1176 1188
 
1177 1189
 	function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
1178 1190
 		extract($args);
1179
-		if ( empty($taxonomy) )
1180
-			$taxonomy = 'category';
1191
+		if ( empty($taxonomy) ) {
1192
+					$taxonomy = 'category';
1193
+		}
1181 1194
 
1182
-		if ( $taxonomy == 'category' )
1183
-			$name = 'post_category';
1184
-		else
1185
-			$name = 'tax_input['.$taxonomy.']';
1195
+		if ( $taxonomy == 'category' ) {
1196
+					$name = 'post_category';
1197
+		} else {
1198
+					$name = 'tax_input['.$taxonomy.']';
1199
+		}
1186 1200
 
1187 1201
 		$class = '';
1188 1202
 		$output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" . '<label class="selectit"><input value="' . $category->term_id . '" type="radio" name="'.$name.'[]" id="in-'.$taxonomy.'-' . $category->term_id . '"' . checked( in_array( $category->term_id, $selected_cats ), true, false ) . disabled( empty( $args['disabled'] ), false, false ) . ' /> ' . esc_html( apply_filters('the_category', $category->name )) . '</label>';
Please login to merge, or discard this patch.
Spacing   +206 added lines, -206 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
3 3
 	exit('NO direct script access allowed');
4 4
 
5 5
 /**
@@ -30,25 +30,25 @@  discard block
 block discarded – undo
30 30
 class Extend_Events_Admin_Page extends Events_Admin_Page {
31 31
 
32 32
 
33
-	public function __construct( $routing = TRUE ) {
34
-		parent::__construct( $routing );
35
-		define( 'EVENTS_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'events/templates/');
36
-		define( 'EVENTS_CAF_ASSETS', EE_CORE_CAF_ADMIN_EXTEND . 'events/assets/');
37
-		define( 'EVENTS_CAF_ASSETS_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'events/assets/');
33
+	public function __construct($routing = TRUE) {
34
+		parent::__construct($routing);
35
+		define('EVENTS_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND.'events/templates/');
36
+		define('EVENTS_CAF_ASSETS', EE_CORE_CAF_ADMIN_EXTEND.'events/assets/');
37
+		define('EVENTS_CAF_ASSETS_URL', EE_CORE_CAF_ADMIN_EXTEND_URL.'events/assets/');
38 38
 	}
39 39
 
40 40
 
41 41
 	protected function _extend_page_config() {
42 42
 
43
-		$this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'events';
43
+		$this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND.'events';
44 44
 		$default_espresso_boxes = $this->_default_espresso_metaboxes;
45 45
 
46 46
 		//is there a evt_id in the request?
47
-		$evt_id = ! empty( $this->_req_data['EVT_ID'] ) && ! is_array( $this->_req_data['EVT_ID'] ) ? $this->_req_data['EVT_ID'] : 0;
48
-		$evt_id = ! empty( $this->_req_data['post'] ) ? $this->_req_data['post'] : $evt_id;
47
+		$evt_id = ! empty($this->_req_data['EVT_ID']) && ! is_array($this->_req_data['EVT_ID']) ? $this->_req_data['EVT_ID'] : 0;
48
+		$evt_id = ! empty($this->_req_data['post']) ? $this->_req_data['post'] : $evt_id;
49 49
 
50 50
 		//tkt_id?
51
-		$tkt_id = !empty( $this->_req_data['TKT_ID'] ) && ! is_array( $this->_req_data['TKT_ID'] ) ? $this->_req_data['TKT_ID'] : 0;
51
+		$tkt_id = ! empty($this->_req_data['TKT_ID']) && ! is_array($this->_req_data['TKT_ID']) ? $this->_req_data['TKT_ID'] : 0;
52 52
 
53 53
 		$new_page_routes = array(
54 54
 			'duplicate_event' => array(
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
 				'capability' => 'ee_delete_default_ticket',
67 67
 				'obj_id' => $tkt_id,
68 68
 				'noheader' => TRUE,
69
-				'args' => array( 'trash' => TRUE )
69
+				'args' => array('trash' => TRUE)
70 70
 				),
71 71
 			'trash_tickets' => array(
72 72
 				'func' => '_trash_or_restore_ticket',
73 73
 				'capability' => 'ee_delete_default_tickets',
74 74
 				'noheader' => TRUE,
75
-				'args' => array( 'trash' => TRUE )
75
+				'args' => array('trash' => TRUE)
76 76
 				),
77 77
 			'restore_ticket' => array(
78 78
 				'func' => '_trash_or_restore_ticket',
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 				)
133 133
 			);
134 134
 
135
-		$this->_page_routes = array_merge( $this->_page_routes, $new_page_routes );
135
+		$this->_page_routes = array_merge($this->_page_routes, $new_page_routes);
136 136
 
137 137
 
138 138
 		//partial route/config override
@@ -144,8 +144,8 @@  discard block
 block discarded – undo
144 144
 		$this->_page_config['default']['list_table'] = 'Extend_Events_Admin_List_Table';
145 145
 
146 146
 		//add tickets tab but only if there are more than one default ticket!
147
-		$tkt_count = EEM_Ticket::instance()->count_deleted_and_undeleted(array( array('TKT_is_default' => 1 ) ), 'TKT_ID', TRUE );
148
-		if ( $tkt_count > 1 ) {
147
+		$tkt_count = EEM_Ticket::instance()->count_deleted_and_undeleted(array(array('TKT_is_default' => 1)), 'TKT_ID', TRUE);
148
+		if ($tkt_count > 1) {
149 149
 			$new_page_config = array(
150 150
 				'ticket_list_table' => array(
151 151
 					'nav' => array(
@@ -164,14 +164,14 @@  discard block
 block discarded – undo
164 164
 				'label' => __('Templates'),
165 165
 				'order' => 30
166 166
 			),
167
-			'metaboxes' => array_merge( $this->_default_espresso_metaboxes, array( '_publish_post_box' ) ),
167
+			'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_publish_post_box')),
168 168
 			'help_tabs' => array(
169 169
 				'general_settings_templates_help_tab' => array(
170 170
 					'title' => __('Templates', 'event_espresso'),
171 171
 					'filename' => 'general_settings_templates'
172 172
 				)
173 173
 			),
174
-			'help_tour' => array( 'Templates_Help_Tour' ),
174
+			'help_tour' => array('Templates_Help_Tour'),
175 175
 			'require_nonce' => FALSE
176 176
 		);
177 177
 
@@ -190,24 +190,24 @@  discard block
 block discarded – undo
190 190
 				'metaboxes' => $default_espresso_boxes,
191 191
 				'require_nonce' => FALSE
192 192
 		);
193
-		$this->_page_config = array_merge( $this->_page_config, $new_page_config );
193
+		$this->_page_config = array_merge($this->_page_config, $new_page_config);
194 194
 
195 195
 		//add filters and actions
196 196
 		//modifying _views
197
-		add_filter('FHEE_event_datetime_metabox_add_additional_date_time_template', array( $this, 'add_additional_datetime_button' ), 10, 2 );
198
-		add_filter('FHEE_event_datetime_metabox_clone_button_template', array( $this, 'add_datetime_clone_button' ), 10, 2 );
199
-		add_filter('FHEE_event_datetime_metabox_timezones_template', array( $this, 'datetime_timezones_template'), 10, 2 );
197
+		add_filter('FHEE_event_datetime_metabox_add_additional_date_time_template', array($this, 'add_additional_datetime_button'), 10, 2);
198
+		add_filter('FHEE_event_datetime_metabox_clone_button_template', array($this, 'add_datetime_clone_button'), 10, 2);
199
+		add_filter('FHEE_event_datetime_metabox_timezones_template', array($this, 'datetime_timezones_template'), 10, 2);
200 200
 
201 201
 
202 202
 		//filters for event list table
203
-		add_filter('FHEE__Extend_Events_Admin_List_Table__filters', array( $this, 'list_table_filters'), 10, 2);
204
-		add_filter('FHEE__Extend_Events_Admin_List_Table__column_actions__action_links', array( $this, 'extra_list_table_actions'), 10, 2 );
203
+		add_filter('FHEE__Extend_Events_Admin_List_Table__filters', array($this, 'list_table_filters'), 10, 2);
204
+		add_filter('FHEE__Extend_Events_Admin_List_Table__column_actions__action_links', array($this, 'extra_list_table_actions'), 10, 2);
205 205
 
206 206
 		//legend item
207
-		add_filter('FHEE__Events_Admin_Page___event_legend_items__items', array( $this, 'additional_legend_items') );
207
+		add_filter('FHEE__Events_Admin_Page___event_legend_items__items', array($this, 'additional_legend_items'));
208 208
 
209 209
 		//heartbeat stuff
210
-		add_filter( 'heartbeat_received', array( $this, 'heartbeat_response' ), 10, 2 );
210
+		add_filter('heartbeat_received', array($this, 'heartbeat_response'), 10, 2);
211 211
 
212 212
 	}
213 213
 
@@ -221,12 +221,12 @@  discard block
 block discarded – undo
221 221
 	 *
222 222
 	 * @return array  possibly appended response.
223 223
 	 */
224
-	public function heartbeat_response( $response, $data ) {
224
+	public function heartbeat_response($response, $data) {
225 225
 		/**
226 226
 		 * check whether count of tickets is approaching the potential
227 227
 		 * limits for the server.
228 228
 		 */
229
-		if ( ! empty( $data['input_count'] ) ) {
229
+		if ( ! empty($data['input_count'])) {
230 230
 			$response['max_input_vars_check'] = EE_Registry::instance()->CFG->environment->max_input_vars_limit_check($data['input_count']);
231 231
 		}
232 232
 
@@ -241,13 +241,13 @@  discard block
 block discarded – undo
241 241
 
242 242
 
243 243
 
244
-	public function extra_permalink_field_buttons( $return, $id, $new_title, $new_slug ) {
245
-		$return = parent::extra_permalink_field_buttons( $return, $id, $new_title, $new_slug );
244
+	public function extra_permalink_field_buttons($return, $id, $new_title, $new_slug) {
245
+		$return = parent::extra_permalink_field_buttons($return, $id, $new_title, $new_slug);
246 246
 		//make sure this is only when editing
247
-		if ( !empty( $id ) ) {
248
-			$href = EE_Admin_Page::add_query_args_and_nonce( array('action' => 'duplicate_event', 'EVT_ID' => $id), $this->_admin_base_url );
247
+		if ( ! empty($id)) {
248
+			$href = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'duplicate_event', 'EVT_ID' => $id), $this->_admin_base_url);
249 249
 			$title = esc_attr__('Duplicate Event', 'event_espresso');
250
-			$return .= '<a href="' . $href . '" title="' . $title . '" id="ee-duplicate-event-button" class="button button-small"  value="duplicate_event">' . $title  . '</button>';
250
+			$return .= '<a href="'.$href.'" title="'.$title.'" id="ee-duplicate-event-button" class="button button-small"  value="duplicate_event">'.$title.'</button>';
251 251
 		}
252 252
 		return $return;
253 253
 	}
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 				'label' => __('Trash', 'event_espresso'),
271 271
 				'count' => 0,
272 272
 				'bulk_action' => array(
273
-					'restore_tickets' => __('Restore from Trash' , 'event_espresso'),
273
+					'restore_tickets' => __('Restore from Trash', 'event_espresso'),
274 274
 					'delete_tickets' => __('Delete Permanently', 'event_espresso')
275 275
 					)
276 276
 				)
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 
281 281
 
282 282
 	public function load_scripts_styles_edit() {
283
-		wp_register_script( 'ee-event-editor-heartbeat', EVENTS_CAF_ASSETS_URL . 'event-editor-heartbeat.js', array( 'ee_admin_js', 'heartbeat' ), EVENT_ESPRESSO_VERSION, TRUE );
283
+		wp_register_script('ee-event-editor-heartbeat', EVENTS_CAF_ASSETS_URL.'event-editor-heartbeat.js', array('ee_admin_js', 'heartbeat'), EVENT_ESPRESSO_VERSION, TRUE);
284 284
 
285 285
 		/**
286 286
 		 * load accounting js.
@@ -300,8 +300,8 @@  discard block
 block discarded – undo
300 300
 			'event_clone_dt_msg' => __('Clone this Event Date and Time', 'event_espresso'),
301 301
 			'remove_event_dt_msg' => __('Remove this Event Time', 'event_espresso')
302 302
 		);
303
-		EE_Registry::$i18n_js_strings = array_merge( EE_Registry::$i18n_js_strings, $new_strings);
304
-		wp_localize_script( 'event_editor_js', 'eei18n', EE_Registry::$i18n_js_strings );
303
+		EE_Registry::$i18n_js_strings = array_merge(EE_Registry::$i18n_js_strings, $new_strings);
304
+		wp_localize_script('event_editor_js', 'eei18n', EE_Registry::$i18n_js_strings);
305 305
 
306 306
 	}
307 307
 
@@ -310,20 +310,20 @@  discard block
 block discarded – undo
310 310
 
311 311
 
312 312
 
313
-	public function add_additional_datetime_button( $template, $template_args ) {
314
-		return EEH_Template::display_template( EVENTS_CAF_TEMPLATE_PATH . 'event_datetime_add_additional_time.template.php', $template_args, TRUE);
313
+	public function add_additional_datetime_button($template, $template_args) {
314
+		return EEH_Template::display_template(EVENTS_CAF_TEMPLATE_PATH.'event_datetime_add_additional_time.template.php', $template_args, TRUE);
315 315
 	}
316 316
 
317 317
 
318 318
 
319
-	public function add_datetime_clone_button( $template, $template_args ) {
320
-		return EEH_Template::display_template( EVENTS_CAF_TEMPLATE_PATH . 'event_datetime_metabox_clone_button.template.php', $template_args, TRUE );
319
+	public function add_datetime_clone_button($template, $template_args) {
320
+		return EEH_Template::display_template(EVENTS_CAF_TEMPLATE_PATH.'event_datetime_metabox_clone_button.template.php', $template_args, TRUE);
321 321
 	}
322 322
 
323 323
 
324 324
 
325
-	public function datetime_timezones_template( $template, $template_args ) {
326
-		return EEH_Template::display_template( EVENTS_CAF_TEMPLATE_PATH . 'event_datetime_timezones.template.php', $template_args, TRUE );
325
+	public function datetime_timezones_template($template, $template_args) {
326
+		return EEH_Template::display_template(EVENTS_CAF_TEMPLATE_PATH.'event_datetime_timezones.template.php', $template_args, TRUE);
327 327
 	}
328 328
 
329 329
 
@@ -332,11 +332,11 @@  discard block
 block discarded – undo
332 332
 	protected function _set_list_table_views_default() {
333 333
 		parent::_set_list_table_views_default();
334 334
 		$export_label = __('Export Events', 'event_espresso');
335
-		if ( EE_Registry::instance()->CAP->current_user_can( 'export', 'espresso_events_export' ) ) {
335
+		if (EE_Registry::instance()->CAP->current_user_can('export', 'espresso_events_export')) {
336 336
 //			$this->_views['all']['bulk_action']['export_events'] = $export_label;
337 337
 //			$this->_views['draft']['bulk_action']['export_events'] = $export_label;
338 338
 
339
-			if ( EE_Registry::instance()->CAP->current_user_can( 'ee_delete_events', 'espresso_events_trash_events' ) ) {
339
+			if (EE_Registry::instance()->CAP->current_user_can('ee_delete_events', 'espresso_events_trash_events')) {
340 340
 //				$this->_views['trash']['bulk_action']['export_events'] = $export_label;
341 341
 			}
342 342
 		}
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 			)
363 363
 		);
364 364
 
365
-		$this->_views = array_merge( $this->_views, $new_views);
365
+		$this->_views = array_merge($this->_views, $new_views);
366 366
 	}
367 367
 
368 368
 
@@ -376,14 +376,14 @@  discard block
 block discarded – undo
376 376
 
377 377
 
378 378
 
379
-	public function extra_list_table_actions( $actionlinks, $event ) {
380
-		if ( EE_Registry::instance()->CAP->current_user_can( 'ee_read_registrations', 'espresso_registrations_reports', $event->ID() ) ) {
379
+	public function extra_list_table_actions($actionlinks, $event) {
380
+		if (EE_Registry::instance()->CAP->current_user_can('ee_read_registrations', 'espresso_registrations_reports', $event->ID())) {
381 381
 			$reports_query_args = array(
382 382
 					'action' => 'reports',
383 383
 					'EVT_ID' => $event->ID()
384 384
 				);
385
-			$reports_link = EE_Admin_Page::add_query_args_and_nonce( $reports_query_args, REG_ADMIN_URL );
386
-			$actionlinks[] = '<a href="' . $reports_link . '" title="' .  esc_attr__('View Report', 'event_espresso') . '"><div class="dashicons dashicons-chart-bar"></div></a>' . "\n\t";
385
+			$reports_link = EE_Admin_Page::add_query_args_and_nonce($reports_query_args, REG_ADMIN_URL);
386
+			$actionlinks[] = '<a href="'.$reports_link.'" title="'.esc_attr__('View Report', 'event_espresso').'"><div class="dashicons dashicons-chart-bar"></div></a>'."\n\t";
387 387
 		}
388 388
 		return $actionlinks;
389 389
 	}
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 
392 392
 
393 393
 	public function additional_legend_items($items) {
394
-		if ( EE_Registry::instance()->CAP->current_user_can( 'ee_read_registrations', 'espresso_registrations_reports' ) ) {
394
+		if (EE_Registry::instance()->CAP->current_user_can('ee_read_registrations', 'espresso_registrations_reports')) {
395 395
 			$items['reports'] = array(
396 396
 					'class' => 'dashicons dashicons-chart-bar',
397 397
 					'desc' => __('Event Reports', 'event_espresso')
@@ -416,17 +416,17 @@  discard block
 block discarded – undo
416 416
 	 */
417 417
 	protected function _duplicate_event() {
418 418
 		//first make sure the ID for the event is in the request.  If it isnt' then we need to bail and redirect back to overview list table (cause how did we get here?)
419
-		if ( !isset( $this->_req_data['EVT_ID'] ) ) {
420
-			EE_Error::add_error( __('In order to duplicate an event an Event ID is required.  None was given.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__ );
421
-			$this->_redirect_after_action( FALSE, '', '', array(), TRUE );
419
+		if ( ! isset($this->_req_data['EVT_ID'])) {
420
+			EE_Error::add_error(__('In order to duplicate an event an Event ID is required.  None was given.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
421
+			$this->_redirect_after_action(FALSE, '', '', array(), TRUE);
422 422
 			return;
423 423
 		}
424 424
 
425 425
 		//k we've got EVT_ID so let's use that to get the event we'll duplicate
426
-		$orig_event = EEM_Event::instance()->get_one_by_ID( $this->_req_data['EVT_ID'] );
426
+		$orig_event = EEM_Event::instance()->get_one_by_ID($this->_req_data['EVT_ID']);
427 427
 
428
-		if ( ! $orig_event instanceof EE_Event )
429
-			throw new EE_Error( sprintf( __('An EE_Event object could not be retrieved for the given ID (%s)', 'event_espresso '), $this->_req_data['EVT_ID'] ) );
428
+		if ( ! $orig_event instanceof EE_Event)
429
+			throw new EE_Error(sprintf(__('An EE_Event object could not be retrieved for the given ID (%s)', 'event_espresso '), $this->_req_data['EVT_ID']));
430 430
 
431 431
 		//k now let's clone the $orig_event before getting relations
432 432
 		$new_event = clone $orig_event;
@@ -439,43 +439,43 @@  discard block
 block discarded – undo
439 439
 
440 440
 
441 441
 		//reset the ID and modify other details to make it clear this is a dupe
442
-		$new_event->set( 'EVT_ID', 0 );
443
-		$new_name = $new_event->name() . ' ' . __('**DUPLICATE**', 'event_espresso');
444
-		$new_event->set( 'EVT_name',  $new_name );
445
-		$new_event->set( 'EVT_slug',  sanitize_title_with_dashes( $new_name ) );
446
-		$new_event->set( 'status', 'draft' );
442
+		$new_event->set('EVT_ID', 0);
443
+		$new_name = $new_event->name().' '.__('**DUPLICATE**', 'event_espresso');
444
+		$new_event->set('EVT_name', $new_name);
445
+		$new_event->set('EVT_slug', sanitize_title_with_dashes($new_name));
446
+		$new_event->set('status', 'draft');
447 447
 
448 448
 		//duplicate discussion settings
449
-		$new_event->set( 'comment_status', $orig_event->get('comment_status') );
450
-		$new_event->set( 'ping_status', $orig_event->get( 'ping_status' ) );
449
+		$new_event->set('comment_status', $orig_event->get('comment_status'));
450
+		$new_event->set('ping_status', $orig_event->get('ping_status'));
451 451
 
452 452
 		//save the new event
453 453
 		$new_event->save();
454 454
 
455 455
 		//venues
456
-		foreach( $orig_ven as $ven ) {
457
-			$new_event->_add_relation_to( $ven, 'Venue' );
456
+		foreach ($orig_ven as $ven) {
457
+			$new_event->_add_relation_to($ven, 'Venue');
458 458
 		}
459 459
 		$new_event->save();
460 460
 
461 461
 
462 462
 		//now we need to get the question group relations and handle that
463 463
 		//first primary question groups
464
-		$orig_primary_qgs = $orig_event->get_many_related('Question_Group', array( array('Event_Question_Group.EQG_primary' => 1 ) ) );
465
-		if ( !empty( $orig_primary_qgs ) ) {
466
-			foreach ( $orig_primary_qgs as $id => $obj ) {
467
-				if ( $obj instanceof EE_Question_Group ) {
468
-					$new_event->_add_relation_to( $obj, 'Question_Group', array( 'EQG_primary' => 1 ) );
464
+		$orig_primary_qgs = $orig_event->get_many_related('Question_Group', array(array('Event_Question_Group.EQG_primary' => 1)));
465
+		if ( ! empty($orig_primary_qgs)) {
466
+			foreach ($orig_primary_qgs as $id => $obj) {
467
+				if ($obj instanceof EE_Question_Group) {
468
+					$new_event->_add_relation_to($obj, 'Question_Group', array('EQG_primary' => 1));
469 469
 				}
470 470
 			}
471 471
 		}
472 472
 
473 473
 		//next additional attendee question groups
474
-		$orig_additional_qgs = $orig_event->get_many_related('Question_Group', array( array('Event_Question_Group.EQG_primary' => 0 ) ) );
475
-		if ( !empty( $orig_additional_qgs ) ) {
476
-			foreach ( $orig_additional_qgs as $id => $obj ) {
477
-				if ( $obj instanceof EE_Question_Group ) {
478
-					$new_event->_add_relation_to( $obj, 'Question_Group', array( 'EQG_primary' => 0 ) );
474
+		$orig_additional_qgs = $orig_event->get_many_related('Question_Group', array(array('Event_Question_Group.EQG_primary' => 0)));
475
+		if ( ! empty($orig_additional_qgs)) {
476
+			foreach ($orig_additional_qgs as $id => $obj) {
477
+				if ($obj instanceof EE_Question_Group) {
478
+					$new_event->_add_relation_to($obj, 'Question_Group', array('EQG_primary' => 0));
479 479
 				}
480 480
 			}
481 481
 		}
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
 
487 487
 		//k now that we have the new event saved we can loop through the datetimes and start adding relations.
488 488
 		$cloned_tickets = array();
489
-		foreach ( $orig_datetimes as $orig_dtt ) {
489
+		foreach ($orig_datetimes as $orig_dtt) {
490 490
 			$new_dtt = clone $orig_dtt;
491 491
 			$orig_tkts = $orig_dtt->tickets();
492 492
 
@@ -494,22 +494,22 @@  discard block
 block discarded – undo
494 494
 			$new_dtt->set('DTT_ID', 0);
495 495
 			$new_dtt->set('DTT_sold', 0);
496 496
 			$new_dtt->save();
497
-			$new_event->_add_relation_to( $new_dtt, 'Datetime');
497
+			$new_event->_add_relation_to($new_dtt, 'Datetime');
498 498
 			$new_event->save();
499 499
 
500 500
 			//now let's get the ticket relations setup.
501
-			foreach ( (array) $orig_tkts as $orig_tkt ) {
501
+			foreach ((array) $orig_tkts as $orig_tkt) {
502 502
 				//it's possible a datetime will have no tickets so let's verify we HAVE a ticket first.
503
-				if ( ! $orig_tkt instanceof EE_Ticket )
503
+				if ( ! $orig_tkt instanceof EE_Ticket)
504 504
 					continue;
505 505
 
506 506
 				//is this ticket archived?  If it is then let's skip
507
-				if ( $orig_tkt->get( 'TKT_deleted' ) ) {
507
+				if ($orig_tkt->get('TKT_deleted')) {
508 508
 					continue;
509 509
 				}
510 510
 
511 511
 				//does this original ticket already exist in the clone_tickets cache?  If so we'll just use the new ticket from it.
512
-				if ( isset( $cloned_tickets[$orig_tkt->ID()] ) ) {
512
+				if (isset($cloned_tickets[$orig_tkt->ID()])) {
513 513
 					$new_tkt = $cloned_tickets[$orig_tkt->ID()];
514 514
 				} else {
515 515
 					$new_tkt = clone $orig_tkt;
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
 					$new_tkt->save(); //make sure new ticket has ID.
522 522
 
523 523
 					//price relations on new ticket need to be setup.
524
-					foreach ( $orig_prices as $orig_price ) {
524
+					foreach ($orig_prices as $orig_price) {
525 525
 						$new_price = clone $orig_price;
526 526
 						$new_price->set('PRC_ID', 0);
527 527
 						$new_price->save();
@@ -538,39 +538,39 @@  discard block
 block discarded – undo
538 538
 		}
539 539
 
540 540
 		//clone taxonomy information
541
-		$taxonomies_to_clone_with = apply_filters( 'FHEE__Extend_Events_Admin_Page___duplicate_event__taxonomies_to_clone', array( 'espresso_event_categories', 'espresso_event_type', 'post_tag' ) );
541
+		$taxonomies_to_clone_with = apply_filters('FHEE__Extend_Events_Admin_Page___duplicate_event__taxonomies_to_clone', array('espresso_event_categories', 'espresso_event_type', 'post_tag'));
542 542
 
543 543
 		//get terms for original event (notice)
544
-		$orig_terms = wp_get_object_terms( $orig_event->ID(), $taxonomies_to_clone_with );
544
+		$orig_terms = wp_get_object_terms($orig_event->ID(), $taxonomies_to_clone_with);
545 545
 
546 546
 		//loop through terms and add them to new event.
547
-		foreach ( $orig_terms as $term ) {
548
-			wp_set_object_terms( $new_event->ID(), $term->term_id, $term->taxonomy, true );
547
+		foreach ($orig_terms as $term) {
548
+			wp_set_object_terms($new_event->ID(), $term->term_id, $term->taxonomy, true);
549 549
 		}
550 550
 
551 551
 
552
-		do_action( 'AHEE__Extend_Events_Admin_Page___duplicate_event__after', $new_event, $orig_event );
552
+		do_action('AHEE__Extend_Events_Admin_Page___duplicate_event__after', $new_event, $orig_event);
553 553
 
554 554
 		//now let's redirect to the edit page for this duplicated event if we have a new event id.
555
-		if ( $new_event->ID() ) {
555
+		if ($new_event->ID()) {
556 556
 			$redirect_args = array(
557 557
 				'post' => $new_event->ID(),
558 558
 				'action' => 'edit'
559 559
 			);
560
-			EE_Error::add_success( __('Event successfully duplicated.  Please review the details below and make any necessary edits', 'event_espresso') );
560
+			EE_Error::add_success(__('Event successfully duplicated.  Please review the details below and make any necessary edits', 'event_espresso'));
561 561
 		} else {
562 562
 			$redirect_args = array(
563 563
 				'action' => 'default'
564 564
 				);
565
-			EE_Error::add_error( __('Not able to duplicate event.  Something went wrong.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__ );
565
+			EE_Error::add_error(__('Not able to duplicate event.  Something went wrong.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
566 566
 		}
567 567
 
568
-		$this->_redirect_after_action(FALSE, '', '', $redirect_args, TRUE );
568
+		$this->_redirect_after_action(FALSE, '', '', $redirect_args, TRUE);
569 569
 	}
570 570
 
571 571
 
572 572
 
573
-	protected function _import_page(){
573
+	protected function _import_page() {
574 574
 
575 575
 		$title = __('Import', 'event_espresso');
576 576
 		$intro = __('If you have a previously exported Event Espresso 4 information in a Comma Separated Value (CSV) file format, you can upload the file here: ', 'event_espresso');
@@ -578,8 +578,8 @@  discard block
 block discarded – undo
578 578
 		$action = 'import_events';
579 579
 		$type = 'csv';
580 580
 		$this->_template_args['form'] = EE_Import::instance()->upload_form($title, $intro, $form_url, $action, $type);
581
-		$this->_template_args['sample_file_link'] = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'sample_export_file'),$this->_admin_base_url);
582
-		$content = EEH_Template::display_template(EVENTS_CAF_TEMPLATE_PATH . 'import_page.template.php',$this->_template_args,true);
581
+		$this->_template_args['sample_file_link'] = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'sample_export_file'), $this->_admin_base_url);
582
+		$content = EEH_Template::display_template(EVENTS_CAF_TEMPLATE_PATH.'import_page.template.php', $this->_template_args, true);
583 583
 
584 584
 
585 585
 		$this->_template_args['admin_page_content'] = $content;
@@ -592,9 +592,9 @@  discard block
 block discarded – undo
592 592
 	 * @return string html
593 593
 	 */
594 594
 	protected function _import_events() {
595
-		require_once(EE_CLASSES . 'EE_Import.class.php');
595
+		require_once(EE_CLASSES.'EE_Import.class.php');
596 596
 		$success = EE_Import::instance()->import();
597
-		$this->_redirect_after_action($success, 'Import File', 'ran', array('action' => 'import_page'),true);
597
+		$this->_redirect_after_action($success, 'Import File', 'ran', array('action' => 'import_page'), true);
598 598
 
599 599
 	}
600 600
 
@@ -608,24 +608,24 @@  discard block
 block discarded – undo
608 608
 	 * @return file
609 609
 	 */
610 610
 	protected function _events_export() {
611
-		if(isset($this->_req_data['EVT_ID'])){
611
+		if (isset($this->_req_data['EVT_ID'])) {
612 612
 			$event_ids = $this->_req_data['EVT_ID'];
613
-		}elseif(isset($this->_req_data['EVT_IDs'])){
613
+		}elseif (isset($this->_req_data['EVT_IDs'])) {
614 614
 			$event_ids = $this->_req_data['EVT_IDs'];
615
-		}else{
615
+		} else {
616 616
 			$event_ids = NULL;
617 617
 		}
618 618
 		//todo: I don't like doing this but it'll do until we modify EE_Export Class.
619 619
 		$new_request_args = array(
620 620
 			'export' => 'report',
621 621
 			'action' => 'all_event_data',
622
-			'EVT_ID' => $event_ids ,
622
+			'EVT_ID' => $event_ids,
623 623
 		);
624 624
 		$this->_req_data = array_merge($this->_req_data, $new_request_args);
625 625
 
626
-		EE_Registry::instance()->load_helper( 'File' );
627
-		if ( is_readable(EE_CLASSES . 'EE_Export.class.php')) {
628
-			require_once(EE_CLASSES . 'EE_Export.class.php');
626
+		EE_Registry::instance()->load_helper('File');
627
+		if (is_readable(EE_CLASSES.'EE_Export.class.php')) {
628
+			require_once(EE_CLASSES.'EE_Export.class.php');
629 629
 			$EE_Export = EE_Export::instance($this->_req_data);
630 630
 			$EE_Export->export();
631 631
 		}
@@ -647,12 +647,12 @@  discard block
 block discarded – undo
647 647
 			'category_ids' => $this->_req_data['EVT_CAT_ID']
648 648
 			);
649 649
 
650
-		$this->_req_data = array_merge( $this->_req_data, $new_request_args );
650
+		$this->_req_data = array_merge($this->_req_data, $new_request_args);
651 651
 
652
-		EE_Registry::instance()->load_helper( 'File' );
653
-		if ( is_readable( EE_CLASSES . 'EE_Export.class.php') ) {
654
-			require_once( EE_CLASSES . 'EE_Export.class.php');
655
-			$EE_Export = EE_Export::instance( $this->_req_data );
652
+		EE_Registry::instance()->load_helper('File');
653
+		if (is_readable(EE_CLASSES.'EE_Export.class.php')) {
654
+			require_once(EE_CLASSES.'EE_Export.class.php');
655
+			$EE_Export = EE_Export::instance($this->_req_data);
656 656
 			$EE_Export->export();
657 657
 		}
658 658
 
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
 	/**
664 664
 	 * Creates a sample CSV file for importing
665 665
 	 */
666
-	protected function _sample_export_file(){
666
+	protected function _sample_export_file() {
667 667
 //		require_once(EE_CLASSES . 'EE_Export.class.php');
668 668
 		EE_Export::instance()->export_sample();
669 669
 	}
@@ -680,10 +680,10 @@  discard block
 block discarded – undo
680 680
 		 * Note leaving this filter in for backward compatibility this was moved in 4.6.x
681 681
 		 * from General_Settings_Admin_Page to here.
682 682
 		 */
683
-		$this->_template_args = apply_filters( 'FHEE__General_Settings_Admin_Page__template_settings__template_args', $this->_template_args );
684
-		$this->_set_add_edit_form_tags( 'update_template_settings' );
685
-		$this->_set_publish_post_box_vars( NULL, FALSE, FALSE, NULL, FALSE );
686
-		$this->_template_args['admin_page_content'] = EEH_Template::display_template( EVENTS_CAF_TEMPLATE_PATH . 'template_settings.template.php', $this->_template_args, TRUE );
683
+		$this->_template_args = apply_filters('FHEE__General_Settings_Admin_Page__template_settings__template_args', $this->_template_args);
684
+		$this->_set_add_edit_form_tags('update_template_settings');
685
+		$this->_set_publish_post_box_vars(NULL, FALSE, FALSE, NULL, FALSE);
686
+		$this->_template_args['admin_page_content'] = EEH_Template::display_template(EVENTS_CAF_TEMPLATE_PATH.'template_settings.template.php', $this->_template_args, TRUE);
687 687
 		$this->display_admin_page_with_sidebar();
688 688
 	}
689 689
 
@@ -695,11 +695,11 @@  discard block
 block discarded – undo
695 695
 		 * Note leaving this filter in for backward compatibility this was moved in 4.6.x
696 696
 		 * from General_Settings_Admin_Page to here.
697 697
 		 */
698
-		EE_Registry::instance()->CFG->template_settings = apply_filters( 'FHEE__General_Settings_Admin_Page__update_template_settings__data', EE_Registry::instance()->CFG->template_settings, $this->_req_data );
698
+		EE_Registry::instance()->CFG->template_settings = apply_filters('FHEE__General_Settings_Admin_Page__update_template_settings__data', EE_Registry::instance()->CFG->template_settings, $this->_req_data);
699 699
 
700 700
 		$what = 'Template Settings';
701
-		$success = $this->_update_espresso_configuration( $what, EE_Registry::instance()->CFG->template_settings, __FILE__, __FUNCTION__, __LINE__ );
702
-		$this->_redirect_after_action( $success, $what, 'updated', array( 'action' => 'template_settings' ) );
701
+		$success = $this->_update_espresso_configuration($what, EE_Registry::instance()->CFG->template_settings, __FILE__, __FUNCTION__, __LINE__);
702
+		$this->_redirect_after_action($success, $what, 'updated', array('action' => 'template_settings'));
703 703
 
704 704
 	}
705 705
 
@@ -717,7 +717,7 @@  discard block
 block discarded – undo
717 717
 
718 718
 		$this->verify_cpt_object();
719 719
 
720
-		add_meta_box('espresso_event_editor_event_options', __('Event Registration Options', 'event_espresso'), array( $this, 'registration_options_meta_box' ), $this->page_slug, 'side', 'core');
720
+		add_meta_box('espresso_event_editor_event_options', __('Event Registration Options', 'event_espresso'), array($this, 'registration_options_meta_box'), $this->page_slug, 'side', 'core');
721 721
 		//add_meta_box('espresso_event_types', __('Event Type', 'event_espresso'), array( $this, 'event_type_meta_box' ), $this->page_slug, 'side', 'default' ); //add this back in when the feature is ready.
722 722
 
723 723
 		//todo feature in progress
@@ -741,16 +741,16 @@  discard block
 block discarded – undo
741 741
 			array('id' => true, 'text' => __('Yes', 'event_espresso')),
742 742
 			array('id' => false, 'text' => __('No', 'event_espresso'))
743 743
 		);
744
-		$default_reg_status_values = EEM_Registration::reg_status_array(array(EEM_Registration::status_id_cancelled, EEM_Registration::status_id_declined, EEM_Registration::status_id_incomplete ), TRUE);
744
+		$default_reg_status_values = EEM_Registration::reg_status_array(array(EEM_Registration::status_id_cancelled, EEM_Registration::status_id_declined, EEM_Registration::status_id_incomplete), TRUE);
745 745
 		$template_args['active_status'] = $this->_cpt_model_obj->pretty_active_status(FALSE);
746 746
 		$template_args['_event'] = $this->_cpt_model_obj;
747 747
 		$template_args['additional_limit'] = $this->_cpt_model_obj->additional_limit();
748 748
 		$template_args['default_registration_status'] = EEH_Form_Fields::select_input('default_reg_status', $default_reg_status_values, $this->_cpt_model_obj->default_registration_status());
749 749
 		$template_args['display_description'] = EEH_Form_Fields::select_input('display_desc', $yes_no_values, $this->_cpt_model_obj->display_description());
750 750
 		$template_args['display_ticket_selector'] = EEH_Form_Fields::select_input('display_ticket_selector', $yes_no_values, $this->_cpt_model_obj->display_ticket_selector(), '', '', false);
751
-		$template_args['EVT_default_registration_status'] = EEH_Form_Fields::select_input('EVT_default_registration_status', $default_reg_status_values, $this->_cpt_model_obj->default_registration_status() );
752
-		$template_args['additional_registration_options'] = apply_filters( 'FHEE__Events_Admin_Page__registration_options_meta_box__additional_registration_options', '', $template_args, $yes_no_values, $default_reg_status_values );
753
-		$templatepath = EVENTS_CAF_TEMPLATE_PATH . 'event_registration_options.template.php';
751
+		$template_args['EVT_default_registration_status'] = EEH_Form_Fields::select_input('EVT_default_registration_status', $default_reg_status_values, $this->_cpt_model_obj->default_registration_status());
752
+		$template_args['additional_registration_options'] = apply_filters('FHEE__Events_Admin_Page__registration_options_meta_box__additional_registration_options', '', $template_args, $yes_no_values, $default_reg_status_values);
753
+		$templatepath = EVENTS_CAF_TEMPLATE_PATH.'event_registration_options.template.php';
754 754
 		EEH_Template::display_template($templatepath, $template_args);
755 755
 	}
756 756
 
@@ -763,9 +763,9 @@  discard block
 block discarded – undo
763 763
 	 * @param  array  $box  metabox args
764 764
 	 * @return string       metabox contents
765 765
 	 */
766
-	public function event_type_meta_box( $post, $box ) {
767
-		$template_args['radio_list'] = $this->wp_terms_radio($post->ID, array( 'taxonomy' => 'espresso_event_type' ) );
768
-		$template = EVENTS_CAF_TEMPLATE_PATH . 'event_type_metabox_contents.template.php';
766
+	public function event_type_meta_box($post, $box) {
767
+		$template_args['radio_list'] = $this->wp_terms_radio($post->ID, array('taxonomy' => 'espresso_event_type'));
768
+		$template = EVENTS_CAF_TEMPLATE_PATH.'event_type_metabox_contents.template.php';
769 769
 		EEH_Template::display_template($template, $template_args);
770 770
 	}
771 771
 
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
 
776 776
 
777 777
 
778
-	public function wp_terms_radio( $post_id = 0, $args = array() ) {
778
+	public function wp_terms_radio($post_id = 0, $args = array()) {
779 779
 		$defaults = array(
780 780
 			'descendants_and_self' => 0,
781 781
 			'selected_cats' => false,
@@ -784,11 +784,11 @@  discard block
 block discarded – undo
784 784
 			'taxonomy' => 'category',
785 785
 			'checked_ontop' => true
786 786
 		);
787
-		$args = apply_filters( 'wp_terms_checklist_args', $args, $post_id );
787
+		$args = apply_filters('wp_terms_checklist_args', $args, $post_id);
788 788
 
789
-		extract( wp_parse_args($args, $defaults), EXTR_SKIP );
789
+		extract(wp_parse_args($args, $defaults), EXTR_SKIP);
790 790
 
791
-		if ( empty($walker) || !is_a($walker, 'Walker') )
791
+		if (empty($walker) || ! is_a($walker, 'Walker'))
792 792
 			$walker = new Walker_Radio_Checklist;
793 793
 
794 794
 		$descendants_and_self = (int) $descendants_and_self;
@@ -796,37 +796,37 @@  discard block
 block discarded – undo
796 796
 		$args = array('taxonomy' => $taxonomy);
797 797
 
798 798
 		$tax = get_taxonomy($taxonomy);
799
-		$args['disabled'] = !current_user_can($tax->cap->assign_terms);
799
+		$args['disabled'] = ! current_user_can($tax->cap->assign_terms);
800 800
 
801
-		if ( is_array( $selected_cats ) )
801
+		if (is_array($selected_cats))
802 802
 			$args['selected_cats'] = $selected_cats;
803
-		elseif ( $post_id )
803
+		elseif ($post_id)
804 804
 			$args['selected_cats'] = wp_get_object_terms($post_id, $taxonomy, array_merge($args, array('fields' => 'ids')));
805 805
 		else
806 806
 			$args['selected_cats'] = array();
807 807
 
808
-		if ( is_array( $popular_cats ) )
808
+		if (is_array($popular_cats))
809 809
 			$args['popular_cats'] = $popular_cats;
810 810
 		else
811
-			$args['popular_cats'] = get_terms( $taxonomy, array( 'fields' => 'ids', 'orderby' => 'count', 'order' => 'DESC', 'number' => 10, 'hierarchical' => false ) );
811
+			$args['popular_cats'] = get_terms($taxonomy, array('fields' => 'ids', 'orderby' => 'count', 'order' => 'DESC', 'number' => 10, 'hierarchical' => false));
812 812
 
813
-		if ( $descendants_and_self ) {
814
-			$categories = (array) get_terms($taxonomy, array( 'child_of' => $descendants_and_self, 'hierarchical' => 0, 'hide_empty' => 0 ) );
815
-			$self = get_term( $descendants_and_self, $taxonomy );
816
-			array_unshift( $categories, $self );
813
+		if ($descendants_and_self) {
814
+			$categories = (array) get_terms($taxonomy, array('child_of' => $descendants_and_self, 'hierarchical' => 0, 'hide_empty' => 0));
815
+			$self = get_term($descendants_and_self, $taxonomy);
816
+			array_unshift($categories, $self);
817 817
 		} else {
818 818
 			$categories = (array) get_terms($taxonomy, array('get' => 'all'));
819 819
 		}
820 820
 
821
-		if ( $checked_ontop ) {
821
+		if ($checked_ontop) {
822 822
 			// Post process $categories rather than adding an exclude to the get_terms() query to keep the query the same across all posts (for any query cache)
823 823
 			$checked_categories = array();
824
-			$keys = array_keys( $categories );
824
+			$keys = array_keys($categories);
825 825
 
826
-			foreach( $keys as $k ) {
827
-				if ( in_array( $categories[$k]->term_id, $args['selected_cats'] ) ) {
826
+			foreach ($keys as $k) {
827
+				if (in_array($categories[$k]->term_id, $args['selected_cats'])) {
828 828
 					$checked_categories[] = $categories[$k];
829
-					unset( $categories[$k] );
829
+					unset($categories[$k]);
830 830
 				}
831 831
 			}
832 832
 
@@ -851,18 +851,18 @@  discard block
 block discarded – undo
851 851
 	 * @param  array  $list_table_obj the list table object
852 852
 	 * @return array                  new filters
853 853
 	 */
854
-	public function list_table_filters( $oldfilters, $list_table_obj ) {
854
+	public function list_table_filters($oldfilters, $list_table_obj) {
855 855
 		$filters = array();
856 856
 
857 857
 		//first month/year filters
858 858
 		$filters[] = $this->espresso_event_months_dropdown();
859 859
 
860 860
 
861
-		$status = isset( $this->_req_data['status'] ) ? $this->_req_data['status'] : NULL;
861
+		$status = isset($this->_req_data['status']) ? $this->_req_data['status'] : NULL;
862 862
 
863 863
 		//active status dropdown
864
-		if ( $status !== 'draft' )
865
-			$filter[] = $this->active_status_dropdown( isset( $this->_req_data['active_status'] ) ? $this->_req_data['active_status'] : '' );
864
+		if ($status !== 'draft')
865
+			$filter[] = $this->active_status_dropdown(isset($this->_req_data['active_status']) ? $this->_req_data['active_status'] : '');
866 866
 
867 867
 		//category filter
868 868
 		$filters[] = $this->category_dropdown();
@@ -884,17 +884,17 @@  discard block
 block discarded – undo
884 884
 	 */
885 885
 	public function espresso_event_months_dropdown() {
886 886
 		//what we need to do is get all PRIMARY datetimes for all events to filter on. Note we need to include any other filters that are set!
887
-		$status = isset( $this->_req_data['status'] ) ? $this->_req_data['status'] : NULL;
887
+		$status = isset($this->_req_data['status']) ? $this->_req_data['status'] : NULL;
888 888
 
889 889
 		//categories?
890
-		$category = isset( $this->_req_data['EVT_CAT'] ) && $this->_req_data['EVT_CAT'] > 0 ? $this->_req_data['EVT_CAT'] : NULL;
890
+		$category = isset($this->_req_data['EVT_CAT']) && $this->_req_data['EVT_CAT'] > 0 ? $this->_req_data['EVT_CAT'] : NULL;
891 891
 
892 892
 		//active status?
893
-		$active_status = isset( $this->_req_data['active_status'] ) ? $this->_req_data['active_status'] : NULL;
893
+		$active_status = isset($this->_req_data['active_status']) ? $this->_req_data['active_status'] : NULL;
894 894
 
895 895
 		$cur_date = isset($this->_req_data['month_range']) ? $this->_req_data['month_range'] : '';
896 896
 
897
-		return EEH_Form_Fields::generate_event_months_dropdown( $cur_date, $status, $category, $active_status );
897
+		return EEH_Form_Fields::generate_event_months_dropdown($cur_date, $status, $category, $active_status);
898 898
 	}
899 899
 
900 900
 
@@ -905,12 +905,12 @@  discard block
 block discarded – undo
905 905
 	 * @param  string $current_value whatever the ucrrent active status is
906 906
 	 * @return string                html dropdown.
907 907
 	 */
908
-	public function  active_status_dropdown( $current_value = '' ) {
908
+	public function  active_status_dropdown($current_value = '') {
909 909
 		$select_name = 'active_status';
910
-		$values = array('none' => __('Show Active/Inactive', 'event_espresso'), 'active' => __('Active', 'event_espresso'), 'upcoming' => __('Upcoming', 'event_espresso'), 'expired' => __('Expired', 'event_espresso'), 'inactive' => __('Inactive', 'event_espresso') );
910
+		$values = array('none' => __('Show Active/Inactive', 'event_espresso'), 'active' => __('Active', 'event_espresso'), 'upcoming' => __('Upcoming', 'event_espresso'), 'expired' => __('Expired', 'event_espresso'), 'inactive' => __('Inactive', 'event_espresso'));
911 911
 		$id = 'id="espresso-active-status-dropdown-filter"';
912 912
 		$class = 'wide';
913
-		echo EEH_Form_Fields::select_input( $select_name, $values, $current_value, $id, $class );
913
+		echo EEH_Form_Fields::select_input($select_name, $values, $current_value, $id, $class);
914 914
 	}
915 915
 
916 916
 
@@ -922,9 +922,9 @@  discard block
 block discarded – undo
922 922
 	 * @return string html
923 923
 	 */
924 924
 	public function category_dropdown() {
925
-		$cur_cat = isset( $this->_req_data['EVT_CAT'] ) ? $this->_req_data['EVT_CAT'] : -1;
925
+		$cur_cat = isset($this->_req_data['EVT_CAT']) ? $this->_req_data['EVT_CAT'] : -1;
926 926
 
927
-		return EEH_Form_Fields::generate_event_category_dropdown( $cur_cat );
927
+		return EEH_Form_Fields::generate_event_category_dropdown($cur_cat);
928 928
 	}
929 929
 
930 930
 
@@ -940,10 +940,10 @@  discard block
 block discarded – undo
940 940
 		$end = ' 23:59:59';
941 941
 
942 942
 		$where = array(
943
-			'Datetime.DTT_EVT_start' => array( 'BETWEEN', array(strtotime(date('Y-m-d') . $start), strtotime(date('Y-m-d') . $end) ) )
943
+			'Datetime.DTT_EVT_start' => array('BETWEEN', array(strtotime(date('Y-m-d').$start), strtotime(date('Y-m-d').$end)))
944 944
 			);
945 945
 
946
-		$count = EEM_Event::instance()->count( array( $where ), 'EVT_ID' );
946
+		$count = EEM_Event::instance()->count(array($where), 'EVT_ID');
947 947
 		return $count;
948 948
 	}
949 949
 
@@ -962,10 +962,10 @@  discard block
 block discarded – undo
962 962
 		$end = ' 23:59:59';
963 963
 
964 964
 		$where = array(
965
-			'Datetime.DTT_EVT_start' => array( 'BETWEEN', array(strtotime($this_year_r . '-' . $this_month_r . '-01' . $start), strtotime($this_year_r . '-' . $this_month_r . '-' . $days_this_month . $end) ) )
965
+			'Datetime.DTT_EVT_start' => array('BETWEEN', array(strtotime($this_year_r.'-'.$this_month_r.'-01'.$start), strtotime($this_year_r.'-'.$this_month_r.'-'.$days_this_month.$end)))
966 966
 			);
967 967
 
968
-		$count = EEM_Event::instance()->count( array( $where ), 'EVT_ID', TRUE );
968
+		$count = EEM_Event::instance()->count(array($where), 'EVT_ID', TRUE);
969 969
 		return $count;
970 970
 	}
971 971
 
@@ -982,53 +982,53 @@  discard block
 block discarded – undo
982 982
 
983 983
 
984 984
 
985
-	public function get_default_tickets( $per_page = 10, $count = FALSE, $trashed = FALSE ) {
985
+	public function get_default_tickets($per_page = 10, $count = FALSE, $trashed = FALSE) {
986 986
 
987
-		$orderby= empty( $this->_req_data['orderby'] ) ? 'TKT_name' : $this->_req_data['orderby'];
988
-		$order = empty( $this->_req_data['order'] ) ? 'ASC' : $this->_req_data['order'];
987
+		$orderby = empty($this->_req_data['orderby']) ? 'TKT_name' : $this->_req_data['orderby'];
988
+		$order = empty($this->_req_data['order']) ? 'ASC' : $this->_req_data['order'];
989 989
 
990
-		switch ( $orderby ) {
990
+		switch ($orderby) {
991 991
 			case 'TKT_name' :
992
-				$orderby = array( 'TKT_name' => $order );
992
+				$orderby = array('TKT_name' => $order);
993 993
 				break;
994 994
 
995 995
 			case 'TKT_price' :
996
-				$orderby = array( 'TKT_price' => $order );
996
+				$orderby = array('TKT_price' => $order);
997 997
 				break;
998 998
 
999 999
 			case 'TKT_uses' :
1000
-				$orderby = array( 'TKT_uses' => $order );
1000
+				$orderby = array('TKT_uses' => $order);
1001 1001
 				break;
1002 1002
 
1003 1003
 			case 'TKT_min' :
1004
-				$orderby = array( 'TKT_min' => $order );
1004
+				$orderby = array('TKT_min' => $order);
1005 1005
 				break;
1006 1006
 
1007 1007
 			case 'TKT_max' :
1008
-				$orderby = array( 'TKT_max' => $order );
1008
+				$orderby = array('TKT_max' => $order);
1009 1009
 				break;
1010 1010
 
1011 1011
 			case 'TKT_qty' :
1012
-				$orderby = array( 'TKT_qty' => $order );
1012
+				$orderby = array('TKT_qty' => $order);
1013 1013
 				break;
1014 1014
 		}
1015 1015
 
1016
-		$current_page = isset( $this->_req_data['paged'] ) && !empty( $this->_req_data['paged'] ) ? $this->_req_data['paged'] : 1;
1017
-		$per_page = isset( $this->_req_data['perpage'] ) && !empty( $this->_req_data['perpage'] ) ? $this->_req_data['perpage'] : $per_page;
1016
+		$current_page = isset($this->_req_data['paged']) && ! empty($this->_req_data['paged']) ? $this->_req_data['paged'] : 1;
1017
+		$per_page = isset($this->_req_data['perpage']) && ! empty($this->_req_data['perpage']) ? $this->_req_data['perpage'] : $per_page;
1018 1018
 
1019 1019
 		$_where = array(
1020 1020
 			'TKT_is_default' => 1,
1021 1021
 			'TKT_deleted' => $trashed
1022 1022
 			);
1023 1023
 
1024
-		$offset = ($current_page-1)*$per_page;
1025
-		$limit = array( $offset, $per_page );
1024
+		$offset = ($current_page - 1) * $per_page;
1025
+		$limit = array($offset, $per_page);
1026 1026
 
1027
-		if ( isset( $this->_req_data['s'] ) ) {
1028
-			$sstr = '%' . $this->_req_data['s'] . '%';
1027
+		if (isset($this->_req_data['s'])) {
1028
+			$sstr = '%'.$this->_req_data['s'].'%';
1029 1029
 			$_where['OR'] = array(
1030
-				'TKT_name' => array('LIKE',$sstr ),
1031
-				'TKT_description' => array('LIKE',$sstr )
1030
+				'TKT_name' => array('LIKE', $sstr),
1031
+				'TKT_description' => array('LIKE', $sstr)
1032 1032
 				);
1033 1033
 		}
1034 1034
 
@@ -1039,9 +1039,9 @@  discard block
 block discarded – undo
1039 1039
 			'group_by'=>'TKT_ID'
1040 1040
 			);
1041 1041
 
1042
-		if($count){
1042
+		if ($count) {
1043 1043
 			return EEM_Ticket::instance()->count_deleted_and_undeleted(array($_where));
1044
-		}else{
1044
+		} else {
1045 1045
 			return EEM_Ticket::instance()->get_all_deleted_and_undeleted($query_params);
1046 1046
 		}
1047 1047
 
@@ -1051,35 +1051,35 @@  discard block
 block discarded – undo
1051 1051
 
1052 1052
 
1053 1053
 
1054
-	protected function _trash_or_restore_ticket(  $trash = FALSE ) {
1054
+	protected function _trash_or_restore_ticket($trash = FALSE) {
1055 1055
 		$success = 1;
1056 1056
 
1057 1057
 		$TKT = EEM_Ticket::instance();
1058 1058
 
1059 1059
 		//checkboxes?
1060
-		if ( !empty( $this->_req_data['checkbox'] ) && is_array( $this->_req_data['checkbox'] ) ) {
1060
+		if ( ! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) {
1061 1061
 			//if array has more than one element then success message should be plural
1062
-			$success = count( $this->_req_data['checkbox'] ) > 1 ? 2 : 1;
1062
+			$success = count($this->_req_data['checkbox']) > 1 ? 2 : 1;
1063 1063
 
1064 1064
 			//cycle thru the boxes
1065
-			while ( list( $TKT_ID, $value ) = each( $this->_req_data['checkbox'] ) ) {
1066
-				if ( $trash ) {
1067
-					if ( ! $TKT->delete_by_ID( $TKT_ID ) )
1065
+			while (list($TKT_ID, $value) = each($this->_req_data['checkbox'])) {
1066
+				if ($trash) {
1067
+					if ( ! $TKT->delete_by_ID($TKT_ID))
1068 1068
 						$success = 0;
1069 1069
 				} else {
1070
-					if ( ! $TKT->restore_by_ID( $TKT_ID ) )
1070
+					if ( ! $TKT->restore_by_ID($TKT_ID))
1071 1071
 						$success = 0;
1072 1072
 				}
1073 1073
 			}
1074 1074
 		} else {
1075 1075
 			//grab single id and trash
1076
-			$TKT_ID = absint( $this->_req_data['TKT_ID'] );
1076
+			$TKT_ID = absint($this->_req_data['TKT_ID']);
1077 1077
 
1078
-			if ( $trash ) {
1079
-				if ( ! $TKT->delete_by_ID( $TKT_ID ) )
1078
+			if ($trash) {
1079
+				if ( ! $TKT->delete_by_ID($TKT_ID))
1080 1080
 					$success = 0;
1081 1081
 			} else {
1082
-				if ( ! $TKT->restore_by_ID( $TKT_ID ) )
1082
+				if ( ! $TKT->restore_by_ID($TKT_ID))
1083 1083
 					$success = 0;
1084 1084
 			}
1085 1085
 		}
@@ -1089,7 +1089,7 @@  discard block
 block discarded – undo
1089 1089
 			'action' => 'ticket_list_table',
1090 1090
 			'status' => $trash ? '' : 'trashed'
1091 1091
 			);
1092
-		$this->_redirect_after_action( $success, 'Tickets', $action_desc, $query_args );
1092
+		$this->_redirect_after_action($success, 'Tickets', $action_desc, $query_args);
1093 1093
 	}
1094 1094
 
1095 1095
 
@@ -1102,21 +1102,21 @@  discard block
 block discarded – undo
1102 1102
 		$TKT = EEM_Ticket::instance();
1103 1103
 
1104 1104
 		//checkboxes?
1105
-		if ( !empty( $this->_req_data['checkbox'] ) && is_array( $this->_req_data['checkbox'] ) ) {
1105
+		if ( ! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) {
1106 1106
 			//if array has more than one element then success message should be plural
1107
-			$success = count( $this->_req_data['checkbox'] ) > 1 ? 2 : 1;
1107
+			$success = count($this->_req_data['checkbox']) > 1 ? 2 : 1;
1108 1108
 
1109 1109
 			//cycle thru the boxes
1110
-			while ( list( $TKT_ID, $value ) = each( $this->_req_data['checkbox'] ) ) {
1110
+			while (list($TKT_ID, $value) = each($this->_req_data['checkbox'])) {
1111 1111
 				//delete
1112
-				if ( ! $this->_delete_the_ticket( $TKT_ID ) ) {
1112
+				if ( ! $this->_delete_the_ticket($TKT_ID)) {
1113 1113
 					$success = 0;
1114 1114
 				}
1115 1115
 			}
1116 1116
 		} else {
1117 1117
 			//grab single id and trash
1118
-			$TKT_ID = absint( $this->_req_data['TKT_ID'] );
1119
-			if ( ! $this->_delete_the_ticket( $TKT_ID ) ) {
1118
+			$TKT_ID = absint($this->_req_data['TKT_ID']);
1119
+			if ( ! $this->_delete_the_ticket($TKT_ID)) {
1120 1120
 					$success = 0;
1121 1121
 				}
1122 1122
 		}
@@ -1128,16 +1128,16 @@  discard block
 block discarded – undo
1128 1128
 			);
1129 1129
 
1130 1130
 		//failsafe.  If the default ticket count === 1 then we need to redirect to event overview.
1131
-		if ( EEM_Ticket::instance()->count_deleted_and_undeleted( array( array( 'TKT_is_default' => 1 ) ), 'TKT_ID', TRUE ) )
1131
+		if (EEM_Ticket::instance()->count_deleted_and_undeleted(array(array('TKT_is_default' => 1)), 'TKT_ID', TRUE))
1132 1132
 			$query_args = array();
1133
-		$this->_redirect_after_action( $success, 'Tickets', $action_desc, $query_args );
1133
+		$this->_redirect_after_action($success, 'Tickets', $action_desc, $query_args);
1134 1134
 	}
1135 1135
 
1136 1136
 
1137 1137
 
1138 1138
 
1139
-	protected function _delete_the_ticket( $TKT_ID ) {
1140
-		$tkt = EEM_Ticket::instance()->get_one_by_ID( $TKT_ID );
1139
+	protected function _delete_the_ticket($TKT_ID) {
1140
+		$tkt = EEM_Ticket::instance()->get_one_by_ID($TKT_ID);
1141 1141
 		$tkt->_remove_relations('Datetime');
1142 1142
 		//delete all related prices first
1143 1143
 		$tkt->delete_related_permanently('Price');
@@ -1148,20 +1148,20 @@  discard block
 block discarded – undo
1148 1148
 
1149 1149
 } //end class Events_Admin_Page
1150 1150
 
1151
-require_once ABSPATH . 'wp-admin/includes/template.php';
1151
+require_once ABSPATH.'wp-admin/includes/template.php';
1152 1152
 class Walker_Radio_Checklist extends Walker_Category_Checklist {
1153 1153
 
1154
-	function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
1154
+	function start_el(&$output, $category, $depth = 0, $args = array(), $id = 0) {
1155 1155
 		extract($args);
1156
-		if ( empty($taxonomy) )
1156
+		if (empty($taxonomy))
1157 1157
 			$taxonomy = 'category';
1158 1158
 
1159
-		if ( $taxonomy == 'category' )
1159
+		if ($taxonomy == 'category')
1160 1160
 			$name = 'post_category';
1161 1161
 		else
1162 1162
 			$name = 'tax_input['.$taxonomy.']';
1163 1163
 
1164 1164
 		$class = '';
1165
-		$output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" . '<label class="selectit"><input value="' . $category->term_id . '" type="radio" name="'.$name.'[]" id="in-'.$taxonomy.'-' . $category->term_id . '"' . checked( in_array( $category->term_id, $selected_cats ), true, false ) . disabled( empty( $args['disabled'] ), false, false ) . ' /> ' . esc_html( apply_filters('the_category', $category->name )) . '</label>';
1165
+		$output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>".'<label class="selectit"><input value="'.$category->term_id.'" type="radio" name="'.$name.'[]" id="in-'.$taxonomy.'-'.$category->term_id.'"'.checked(in_array($category->term_id, $selected_cats), true, false).disabled(empty($args['disabled']), false, false).' /> '.esc_html(apply_filters('the_category', $category->name)).'</label>';
1166 1166
 	}
1167 1167
 }
Please login to merge, or discard this patch.
caffeinated/admin/extend/events/Tickets_List_Table.class.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 				'TKT_taxable' => __('Taxable', 'event_espresso')
60 60
 			);
61 61
 
62
-        $this->_sortable_columns = array(
62
+		$this->_sortable_columns = array(
63 63
 				// TRUE means its already sorted
64 64
 				'TKT_name' => array( 'TKT_name' => TRUE ),
65 65
 				'TKT_description' => array( 'TKT_description' => FALSE ),
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
 				'TKT_min' => array( 'TKT_min' => FALSE ),
69 69
 				'TKT_max' => array( 'TKT_max' => FALSE ),
70 70
 				'TKT_price' => array( 'TKT_price' => FALSE )
71
-	        	);
71
+				);
72 72
 
73
-        $this->_hidden_columns = array(
73
+		$this->_hidden_columns = array(
74 74
 			);
75 75
 
76 76
 	}
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 
32 32
 	protected function _setup_data() {
33 33
 		$trashed = $this->_admin_page->get_view() == 'trashed' ? TRUE : FALSE;
34
-		$this->_data = $this->_admin_page->get_default_tickets( $this->_per_page, FALSE, $trashed );
35
-		$this->_all_data_count = $this->_admin_page->get_default_tickets( $this->_per_page, TRUE, FALSE );
36
-		$this->_trashed_count = $this->_admin_page->get_default_tickets( $this->_per_page, TRUE, TRUE );
34
+		$this->_data = $this->_admin_page->get_default_tickets($this->_per_page, FALSE, $trashed);
35
+		$this->_all_data_count = $this->_admin_page->get_default_tickets($this->_per_page, TRUE, FALSE);
36
+		$this->_trashed_count = $this->_admin_page->get_default_tickets($this->_per_page, TRUE, TRUE);
37 37
 	}
38 38
 
39 39
 
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
 
62 62
         $this->_sortable_columns = array(
63 63
 				// TRUE means its already sorted
64
-				'TKT_name' => array( 'TKT_name' => TRUE ),
65
-				'TKT_description' => array( 'TKT_description' => FALSE ),
66
-				'TKT_qty' => array( 'TKT_qty' => FALSE ),
67
-				'TKT_uses' => array( 'TKT_uses' => FALSE ),
68
-				'TKT_min' => array( 'TKT_min' => FALSE ),
69
-				'TKT_max' => array( 'TKT_max' => FALSE ),
70
-				'TKT_price' => array( 'TKT_price' => FALSE )
64
+				'TKT_name' => array('TKT_name' => TRUE),
65
+				'TKT_description' => array('TKT_description' => FALSE),
66
+				'TKT_qty' => array('TKT_qty' => FALSE),
67
+				'TKT_uses' => array('TKT_uses' => FALSE),
68
+				'TKT_min' => array('TKT_min' => FALSE),
69
+				'TKT_max' => array('TKT_max' => FALSE),
70
+				'TKT_price' => array('TKT_price' => FALSE)
71 71
 	        	);
72 72
 
73 73
         $this->_hidden_columns = array(
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
 
95 95
 	function column_cb($item) {
96
-		return $item->ID() === 1 ? '<span class="ee-lock-icon"></span>' : sprintf( '<input type="checkbox" name="checkbox[%1$s]" value="%1$s" />', /* $1%s */ $item->ID() );
96
+		return $item->ID() === 1 ? '<span class="ee-lock-icon"></span>' : sprintf('<input type="checkbox" name="checkbox[%1$s]" value="%1$s" />', /* $1%s */ $item->ID());
97 97
 
98 98
 	}
99 99
 
@@ -104,21 +104,21 @@  discard block
 block discarded – undo
104 104
 		$actions = array();
105 105
 
106 106
 		//trash links
107
-		if ( $item->ID() !== 1 ) {
108
-			if ( $this->_view == 'all' ) {
109
-				$trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action' => 'trash_ticket', 'TKT_ID' => $item->ID() ), EVENTS_ADMIN_URL );
110
-				$actions['trash'] = '<a href="' . $trash_lnk_url . '" title="' . esc_attr__('Move Ticket to trash', 'event_espresso') . '">' . __('Trash', 'event_espresso') . '</a>';
107
+		if ($item->ID() !== 1) {
108
+			if ($this->_view == 'all') {
109
+				$trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'trash_ticket', 'TKT_ID' => $item->ID()), EVENTS_ADMIN_URL);
110
+				$actions['trash'] = '<a href="'.$trash_lnk_url.'" title="'.esc_attr__('Move Ticket to trash', 'event_espresso').'">'.__('Trash', 'event_espresso').'</a>';
111 111
 			} else {
112 112
 				// restore price link
113
-				$restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'restore_ticket', 'TKT_ID'=>$item->ID() ), EVENTS_ADMIN_URL );
114
-				$actions['restore'] = '<a href="'.$restore_lnk_url.'" title="' . esc_attr__( 'Restore Ticket', 'event_espresso' ) . '">' . __( 'Restore', 'event_espresso' ) . '</a>';
113
+				$restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'restore_ticket', 'TKT_ID'=>$item->ID()), EVENTS_ADMIN_URL);
114
+				$actions['restore'] = '<a href="'.$restore_lnk_url.'" title="'.esc_attr__('Restore Ticket', 'event_espresso').'">'.__('Restore', 'event_espresso').'</a>';
115 115
 				// delete price link
116
-				$delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'delete_ticket', 'TKT_ID'=>$item->ID() ), EVENTS_ADMIN_URL );
117
-				$actions['delete'] = '<a href="'.$delete_lnk_url.'" title="' . esc_attr__( 'Delete Ticket Permanently', 'event_espresso' ) . '">' . __( 'Delete Permanently', 'event_espresso' ) . '</a>';
116
+				$delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'delete_ticket', 'TKT_ID'=>$item->ID()), EVENTS_ADMIN_URL);
117
+				$actions['delete'] = '<a href="'.$delete_lnk_url.'" title="'.esc_attr__('Delete Ticket Permanently', 'event_espresso').'">'.__('Delete Permanently', 'event_espresso').'</a>';
118 118
 			}
119 119
 		}
120 120
 
121
-		return $item->get('TKT_name') . $this->row_actions( $actions );
121
+		return $item->get('TKT_name').$this->row_actions($actions);
122 122
 	}
123 123
 
124 124
 
@@ -131,13 +131,13 @@  discard block
 block discarded – undo
131 131
 
132 132
 
133 133
 	function column_TKT_qty($item) {
134
-		return $item->get_pretty('TKT_qty','text');
134
+		return $item->get_pretty('TKT_qty', 'text');
135 135
 	}
136 136
 
137 137
 
138 138
 
139 139
 	function column_TKT_uses($item) {
140
-		return $item->get_pretty('TKT_uses','text');
140
+		return $item->get_pretty('TKT_uses', 'text');
141 141
 	}
142 142
 
143 143
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
 
150 150
 	function column_TKT_max($item) {
151
-		return $item->get_pretty('TKT_max','text');
151
+		return $item->get_pretty('TKT_max', 'text');
152 152
 	}
153 153
 
154 154
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 
3 5
 /**
4 6
  * Event Espresso
Please login to merge, or discard this patch.
caffeinated/admin/extend/events/help_tabs/import_page.help_tab.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,19 +2,19 @@
 block discarded – undo
2 2
 <p>
3 3
 <?php _e('The importer can be used to import event information into Event Espresso using a CSV file.', 'event_espresso'); ?>
4 4
 </p>
5
-<h3><?php _e("Importing from other Event Espresso 4 Sites", 'event_espresso');?></h3>
5
+<h3><?php _e("Importing from other Event Espresso 4 Sites", 'event_espresso'); ?></h3>
6 6
 <p>
7 7
 <?php _e('To import Event Espresso data from another Event Espresso 4 install, export a CSV file from the admin Events overview page, or anywhere you can generate a CSV export file from. Then upload that file here (regardless of what type of information was exported).', 'event_espresso'); ?>
8 8
 </p>
9 9
 <p>
10 10
 <?php _e('Note: its possible that data from the other site have the same IDs as data in this site. The importer recognizes that this data is from a different database and inserts new items for each item in the CSV file, regardless of whether its ID matches that of an item in this site\'s database or not. However, the importer also remembers the mapping from the old site\'s database to this site\'s database, and on subsequent CSV importers from that site, the data in this database will be updated instead of re-inserting new items.', 'event_espresso'); ?>
11 11
 </p>
12
-<h3><?php _e("Importing from this Site", 'event_espresso');?></h3>
13
-<p><?php _e("You may want to export data from this site, modify it (or modify the database), and re-import it. When this is done, the importer recognizes that the data is from this site\'s database and updates the records (instead of inserting new items like it would have, had the CSV data been from a different site).", 'event_espresso');?></p>
12
+<h3><?php _e("Importing from this Site", 'event_espresso'); ?></h3>
13
+<p><?php _e("You may want to export data from this site, modify it (or modify the database), and re-import it. When this is done, the importer recognizes that the data is from this site\'s database and updates the records (instead of inserting new items like it would have, had the CSV data been from a different site).", 'event_espresso'); ?></p>
14 14
 
15
-	<h3><?php _e("Notes about Generating your own CSV Import Files", "event_espresso");?></h3>
16
-	<p><?php _e("If you think you could save time entering data into a CSV file, you can use the sample import file below. Note that creating your own CSV file is more complicated than in Event Espresso 3.1 because of the more advanced data structure, and so we recommend creating/editing your events using the normal web-interface.", "event_espresso");?></p>
17
-	<p><?php _e("The export file is just an export of an event, or if you do not have any events in your system, it will only contain column headers. Do not change those column headers. Add as many rows as you like. ", "event_espresso");?></p>
15
+	<h3><?php _e("Notes about Generating your own CSV Import Files", "event_espresso"); ?></h3>
16
+	<p><?php _e("If you think you could save time entering data into a CSV file, you can use the sample import file below. Note that creating your own CSV file is more complicated than in Event Espresso 3.1 because of the more advanced data structure, and so we recommend creating/editing your events using the normal web-interface.", "event_espresso"); ?></p>
17
+	<p><?php _e("The export file is just an export of an event, or if you do not have any events in your system, it will only contain column headers. Do not change those column headers. Add as many rows as you like. ", "event_espresso"); ?></p>
18 18
 	<p><?php _e("In the ID columns (columns ending in '_ID'), you should enter 'temporary IDs', which are unique numbers/words that identify that item, which can be used later when you want to refer to that item. (For example,
19
-		if you assign an event's EVT_ID to be a temporary id of 'my-event-1', then use that same phrase 'my-event-1' to refer to that event in the Datetime model's EVT_ID column)", "event_espresso");?></p>
20
-	<p><?php _e("Also note, you do NOT have to enter info in for each model. (You can, for example, only enter in Term_Taxonomies and Term model data)", "event_espresso");?></p>
21 19
\ No newline at end of file
20
+		if you assign an event's EVT_ID to be a temporary id of 'my-event-1', then use that same phrase 'my-event-1' to refer to that event in the Datetime model's EVT_ID column)", "event_espresso"); ?></p>
21
+	<p><?php _e("Also note, you do NOT have to enter info in for each model. (You can, for example, only enter in Term_Taxonomies and Term model data)", "event_espresso"); ?></p>
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
caffeinated/admin/extend/events/qtips/EE_Event_Editor_Tips.lib.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 				),
84 84
 			7 => array(
85 85
 				'content_id' => 'tkt-status-archived',
86
-				'target' => '.ticket-row .tkt-status-' . EE_Ticket::archived,
86
+				'target' => '.ticket-row .tkt-status-'.EE_Ticket::archived,
87 87
 				'content' => $this->_ticket_status_legend(EE_Ticket::archived),
88 88
 				'options' => array(
89 89
 					'position' => array(
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 				),
97 97
 			8 => array(
98 98
 				'content_id' => 'tkt-status-expired',
99
-				'target' => '.ticket-row .tkt-status-' . EE_Ticket::expired,
99
+				'target' => '.ticket-row .tkt-status-'.EE_Ticket::expired,
100 100
 				'content' => $this->_ticket_status_legend(EE_Ticket::expired),
101 101
 				'options' => array(
102 102
 					'position' => array(
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 				),
110 110
 			9 => array(
111 111
 				'content_id' => 'tkt-status-sold_out',
112
-				'target' => '.ticket-row .tkt-status-' . EE_Ticket::sold_out,
112
+				'target' => '.ticket-row .tkt-status-'.EE_Ticket::sold_out,
113 113
 				'content' => $this->_ticket_status_legend(EE_Ticket::sold_out),
114 114
 				'options' => array(
115 115
 					'position' => array(
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 				),
123 123
 			10 => array(
124 124
 				'content_id' => 'tkt-status-pending',
125
-				'target' => '.ticket-row .tkt-status-' . EE_Ticket::pending,
125
+				'target' => '.ticket-row .tkt-status-'.EE_Ticket::pending,
126 126
 				'content' => $this->_ticket_status_legend(EE_Ticket::pending),
127 127
 				'options' => array(
128 128
 					'position' => array(
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 				),
136 136
 			11 => array(
137 137
 				'content_id' => 'tkt-status-onsale',
138
-				'target' => '.ticket-row .tkt-status-' . EE_Ticket::onsale,
138
+				'target' => '.ticket-row .tkt-status-'.EE_Ticket::onsale,
139 139
 				'content' => $this->_ticket_status_legend(EE_Ticket::onsale),
140 140
 				'options' => array(
141 141
 					'position' => array(
@@ -178,8 +178,8 @@  discard block
 block discarded – undo
178 178
 
179 179
 
180 180
 	private function _get_taxable_info_content() {
181
-		$price_admin_link = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'default'), PRICING_ADMIN_URL );
182
-		return '<p>' . sprintf( __('Clicking the taxable ticket toggle checkbox has enabled taxes for this ticket. What this means is that when a person purchases this ticket, the tax will be applied to all prices on this ticket. You can edit the existing tax price modifier that was setup in Event Espresso by going to  %sDefault Pricing Admin Page%s (labelled "Pricing" in the Event Espresso Menu)', 'event_espresso'), '<a href="' . $price_admin_link . '" title="' . esc_attr__('Pricing Admin Page', 'event_espresso') . '">', '</a>' ) . '</p>';
181
+		$price_admin_link = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'default'), PRICING_ADMIN_URL);
182
+		return '<p>'.sprintf(__('Clicking the taxable ticket toggle checkbox has enabled taxes for this ticket. What this means is that when a person purchases this ticket, the tax will be applied to all prices on this ticket. You can edit the existing tax price modifier that was setup in Event Espresso by going to  %sDefault Pricing Admin Page%s (labelled "Pricing" in the Event Espresso Menu)', 'event_espresso'), '<a href="'.$price_admin_link.'" title="'.esc_attr__('Pricing Admin Page', 'event_espresso').'">', '</a>').'</p>';
183 183
 	}
184 184
 
185 185
 	/**
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 	 * @param  EE_Ticket constant $status What status is set (by class)
188 188
 	 * @return string         The status legend with the related status highlighted
189 189
 	 */
190
-	private function _ticket_status_legend( $status ) {
190
+	private function _ticket_status_legend($status) {
191 191
 
192 192
 		$status_array = array(
193 193
 			'archived' => EE_Ticket::archived,
@@ -197,6 +197,6 @@  discard block
 block discarded – undo
197 197
 			'onsale' => EE_Ticket::onsale
198 198
 			);
199 199
 
200
-		return EEH_Template::status_legend( $status_array, $status );
200
+		return EEH_Template::status_legend($status_array, $status);
201 201
 	}
202 202
 }
Please login to merge, or discard this patch.
extend/events/templates/event_datetime_metabox_clone_button.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
 <a class='clone-date-time dtm-inp-btn' rel='<?php echo $row; ?>' title='<?php esc_attr_e('Clone this Event Date and Time', 'event_espresso'); ?>' style='position:relative; top:5px; margin:0 0 0 10px; font-size:.9em; cursor:pointer;'>
2
-	<img src='<?php echo EE_IMAGES_URL;?>clone-trooper-16x16.png' width='16' height='16' alt='<?php esc_attr_e('clone', 'event_espresso'); ?>'/>
2
+	<img src='<?php echo EE_IMAGES_URL; ?>clone-trooper-16x16.png' width='16' height='16' alt='<?php esc_attr_e('clone', 'event_espresso'); ?>'/>
3 3
 </a>
Please login to merge, or discard this patch.