Completed
Branch BUG-11137-domain-base (f3289e)
by
unknown
34:40 queued 23:11
created
admin_pages/venues/espresso_events_Venues_Hooks.class.php 2 patches
Braces   +9 added lines, -5 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
@@ -163,11 +164,14 @@  discard block
 block discarded – undo
163 164
 		$evt_venue = $evtobj->venues();
164 165
 		$evt_venue = !empty( $evt_venue ) ? array_shift( $evt_venue ) : NULL;
165 166
 
166
-		if ( !empty( $evt_venue ) && $evt_venue->ID() != $venue_id )
167
-			$evtobj->_remove_relation_to( $evt_venue->ID(), 'Venue' );
167
+		if ( !empty( $evt_venue ) && $evt_venue->ID() != $venue_id ) {
168
+					$evtobj->_remove_relation_to( $evt_venue->ID(), 'Venue' );
169
+		}
168 170
 
169
-		if ( empty( $venue_id ) )
170
-			return TRUE; //no venue to attach
171
+		if ( empty( $venue_id ) ) {
172
+					return TRUE;
173
+		}
174
+		//no venue to attach
171 175
 
172 176
 		// this should take care of adding to revisions as well as main post object
173 177
 		$success = $evtobj->_add_relation_to( $venue_id, 'Venue' );
Please login to merge, or discard this patch.
Spacing   +35 added lines, -35 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
 /**
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
 	protected $_event;
34 34
 
35 35
 
36
-	public function __construct( EE_Admin_Page $admin_page ) {
37
-		parent::__construct( $admin_page );
36
+	public function __construct(EE_Admin_Page $admin_page) {
37
+		parent::__construct($admin_page);
38 38
 	}
39 39
 
40 40
 
@@ -49,18 +49,18 @@  discard block
 block discarded – undo
49 49
 				'priority' => 'high',
50 50
 				'context' => 'normal'
51 51
 				)
52
-		);/**/
52
+		); /**/
53 53
 
54 54
 		$this->_scripts_styles = array(
55 55
 			'registers' => array(
56 56
 				'ee_event_venues' => array(
57 57
 					'type' => 'js',
58
-					'url' => EE_VENUES_ASSETS_URL . 'ee-event-venues-admin.js',
58
+					'url' => EE_VENUES_ASSETS_URL.'ee-event-venues-admin.js',
59 59
 					'depends' => array('jquery')
60 60
 					),
61 61
 				'ee_event_venues_css' => array(
62 62
 					'type' => 'css',
63
-					'url' => EE_VENUES_ASSETS_URL . 'ee-event-venues-admin.css',
63
+					'url' => EE_VENUES_ASSETS_URL.'ee-event-venues-admin.css',
64 64
 					)
65 65
 				),
66 66
 			'enqueues' => array(
@@ -70,24 +70,24 @@  discard block
 block discarded – undo
70 70
 			);
71 71
 
72 72
 		//hook into the handler for saving venue
73
-		add_filter( 'FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks', array( $this, 'modify_callbacks' ), 10 );
73
+		add_filter('FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks', array($this, 'modify_callbacks'), 10);
74 74
 
75 75
 		//remove default ee_autosave returns for DECAF venues (not needed for CAF venues cause we have a dropdown selector)
76
-		add_filter( 'FHEE__Events_Admin_Page__ee_autosave_edit_do_decaf_venue_save', '__return_false' );
76
+		add_filter('FHEE__Events_Admin_Page__ee_autosave_edit_do_decaf_venue_save', '__return_false');
77 77
 
78 78
 	}
79 79
 
80 80
 
81
-	public function modify_callbacks( $callbacks ) {
81
+	public function modify_callbacks($callbacks) {
82 82
 		// first remove default venue callback
83
-		foreach ( $callbacks as $key => $callback ) {
84
-			if ( $callback[1] == '_default_venue_update' ) {
85
-				unset( $callbacks[$key] );
83
+		foreach ($callbacks as $key => $callback) {
84
+			if ($callback[1] == '_default_venue_update') {
85
+				unset($callbacks[$key]);
86 86
 			}
87 87
 		}
88 88
 
89 89
 		//now let's add the caf version
90
-		$callbacks[] = array( $this, 'caf_venue_update' );
90
+		$callbacks[] = array($this, 'caf_venue_update');
91 91
 		return $callbacks;
92 92
 	}
93 93
 
@@ -103,69 +103,69 @@  discard block
 block discarded – undo
103 103
 		$evt_id = $evt_obj->ID();
104 104
 
105 105
 		//first let's see if we have a venue already
106
-		$evt_venues = !empty( $evt_id ) ? $evt_obj->venues() : array();
107
-		$evt_venue = $evt_venues && is_array( $evt_venues ) ? reset( $evt_venues ) : null;
106
+		$evt_venues = ! empty($evt_id) ? $evt_obj->venues() : array();
107
+		$evt_venue = $evt_venues && is_array($evt_venues) ? reset($evt_venues) : null;
108 108
 		$evt_venue_id = $evt_venue instanceof EE_Venue ? $evt_venue->ID() : null;
109 109
 
110 110
 		//possibly private venues.
111
-		if ( EE_Registry::instance()->CAP->current_user_can( 'ee_read_private_venues', 'get_venues' ) ) {
112
-			$vnu_where['status']= array( 'IN' , array( 'publish', 'private' ) );
111
+		if (EE_Registry::instance()->CAP->current_user_can('ee_read_private_venues', 'get_venues')) {
112
+			$vnu_where['status'] = array('IN', array('publish', 'private'));
113 113
 		} else {
114 114
 			$vnu_where['status'] = 'publish';
115 115
 		}
116 116
 
117 117
 		//cap checks
118
-		if ( ! EE_Registry::instance()->CAP->current_user_can( 'ee_read_others_venues', 'get_venues' ) ) {
118
+		if ( ! EE_Registry::instance()->CAP->current_user_can('ee_read_others_venues', 'get_venues')) {
119 119
 			$vnu_where['VNU_wp_user'] = get_current_user_id();
120 120
 		}
121 121
 
122
-		$vnumdl = EE_Registry::instance()->load_model( 'Venue' );
123
-		$venues = $vnumdl->get_all( array( $vnu_where, 'order_by' => array( 'VNU_name' => 'ASC' ) ) );
122
+		$vnumdl = EE_Registry::instance()->load_model('Venue');
123
+		$venues = $vnumdl->get_all(array($vnu_where, 'order_by' => array('VNU_name' => 'ASC')));
124 124
 
125 125
 		$ven_select = array();
126 126
 		$ven_select[0] = __('Select a Venue', 'event_espresso');
127 127
 		//setup venues for selector
128
-		foreach ( $venues as $venue ) {
128
+		foreach ($venues as $venue) {
129 129
 			$ven_select[$venue->ID()] = $venue->name();
130 130
 		}
131 131
 
132 132
 		//if $ven_select does not have the existing venue attached to event then let's add that because we'll always
133 133
 		//show existing attached venues even if it's trashed (or some other restricted status).
134 134
 
135
-		if ( $evt_venue_id && ! isset( $ven_select[$evt_venue_id] ) ) {
135
+		if ($evt_venue_id && ! isset($ven_select[$evt_venue_id])) {
136 136
 			$ven_select[$evt_venue_id] = $evt_venue->name();
137
-			$venues = array_merge( $venues, array( $evt_venue ) );
137
+			$venues = array_merge($venues, array($evt_venue));
138 138
 		}
139 139
 
140 140
 		$template_args['venues'] = $venues;
141 141
 		$template_args['evt_venue_id'] = $evt_venue_id;
142
-		$template_args['venue_selector'] = EEH_Form_Fields::select_input('venue_id', $ven_select, $evt_venue_id, 'id="venue_id"' );
143
-		$template_args['enable_for_gmap'] = EEH_Form_Fields::select_input('enable_for_gmap', $values, is_object( $evt_venue ) ? $evt_venue->enable_for_gmap() : NULL, 'id="enable_for_gmap"');
144
-		$template_path = empty( $venues ) ? EE_VENUES_TEMPLATE_PATH . 'event_venues_metabox_content.template.php' : EE_VENUES_TEMPLATE_PATH . 'event_venues_metabox_content_from_manager.template.php';
145
-		EEH_Template::display_template( $template_path, $template_args );
142
+		$template_args['venue_selector'] = EEH_Form_Fields::select_input('venue_id', $ven_select, $evt_venue_id, 'id="venue_id"');
143
+		$template_args['enable_for_gmap'] = EEH_Form_Fields::select_input('enable_for_gmap', $values, is_object($evt_venue) ? $evt_venue->enable_for_gmap() : NULL, 'id="enable_for_gmap"');
144
+		$template_path = empty($venues) ? EE_VENUES_TEMPLATE_PATH . 'event_venues_metabox_content.template.php' : EE_VENUES_TEMPLATE_PATH.'event_venues_metabox_content_from_manager.template.php';
145
+		EEH_Template::display_template($template_path, $template_args);
146 146
 	}
147 147
 
148 148
 
149 149
 
150 150
 
151
-	public function caf_venue_update( $evtobj, $data ) {
151
+	public function caf_venue_update($evtobj, $data) {
152 152
 		EE_Registry::instance()->load_model('Venue');
153
-		$venue_id = !empty( $data['venue_id'] ) ? $data['venue_id'] : NULL;
153
+		$venue_id = ! empty($data['venue_id']) ? $data['venue_id'] : NULL;
154 154
 
155 155
 
156 156
 		//first let's check if the selected venue matches any existing venue attached to the event
157 157
 		$evt_venue = $evtobj->venues();
158
-		$evt_venue = !empty( $evt_venue ) ? array_shift( $evt_venue ) : NULL;
158
+		$evt_venue = ! empty($evt_venue) ? array_shift($evt_venue) : NULL;
159 159
 
160
-		if ( !empty( $evt_venue ) && $evt_venue->ID() != $venue_id )
161
-			$evtobj->_remove_relation_to( $evt_venue->ID(), 'Venue' );
160
+		if ( ! empty($evt_venue) && $evt_venue->ID() != $venue_id)
161
+			$evtobj->_remove_relation_to($evt_venue->ID(), 'Venue');
162 162
 
163
-		if ( empty( $venue_id ) )
163
+		if (empty($venue_id))
164 164
 			return TRUE; //no venue to attach
165 165
 
166 166
 		// this should take care of adding to revisions as well as main post object
167
-		$success = $evtobj->_add_relation_to( $venue_id, 'Venue' );
168
-		return !empty($success) ? TRUE : FALSE;
167
+		$success = $evtobj->_add_relation_to($venue_id, 'Venue');
168
+		return ! empty($success) ? TRUE : FALSE;
169 169
 	}
170 170
 
171 171
 
Please login to merge, or discard this patch.
admin_pages/venues/help_tours/Google_Maps_Help_Tour.class.php 2 patches
Spacing   +6 added lines, -6 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
 /**
@@ -71,21 +71,21 @@  discard block
 block discarded – undo
71 71
 
72 72
 
73 73
 	protected function _start() {
74
-		$content = '<h3>' . __('Google Maps Settings', 'event_espresso') . '</h3>';
75
-		$content .= '<p>' . __('This tour of the Google Maps page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
74
+		$content = '<h3>'.__('Google Maps Settings', 'event_espresso').'</h3>';
75
+		$content .= '<p>'.__('This tour of the Google Maps page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
76 76
 		return $content;
77 77
 	}
78 78
 
79 79
 	protected function _use_google_maps_stop() {
80
-		return '<p>' . __('Turn Google maps on or off site wide for Event Espresso.', 'event_espresso') . '</p>';
80
+		return '<p>'.__('Turn Google maps on or off site wide for Event Espresso.', 'event_espresso').'</p>';
81 81
 	}
82 82
 
83 83
 	protected function _reg_page_map_settings_stop() {
84
-		return '<p>' . __('These settings affect the single registration page maps only.', 'event_espresso') . '</p>';
84
+		return '<p>'.__('These settings affect the single registration page maps only.', 'event_espresso').'</p>';
85 85
 	}
86 86
 
87 87
 	protected function _event_list_map_stop() {
88
-		return '<p>' . __('These setting affect the event list page maps.', 'event_espresso') . '</p>';
88
+		return '<p>'.__('These setting affect the event list page maps.', 'event_espresso').'</p>';
89 89
 	}
90 90
 
91 91
 }
92 92
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 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
Please login to merge, or discard this patch.
admin_pages/venues/help_tours/Venues_Add_Category_Help_Tour.class.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 		$this->_slug = 'venue-add-category-joyride';
35 35
 	}
36 36
     
37
-    protected function _set_tour_stops() {
37
+	protected function _set_tour_stops() {
38 38
 		$this->_stops = array(
39 39
 			10 => array(
40 40
 				'content' => $this->_stop_one(),
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 				'options' => array(
55 55
 					'tipLocation' => 'right',
56 56
 					'tipAdjustmentY' => -55,
57
-                    'tipAdjustmentX' => 5
57
+					'tipAdjustmentX' => 5
58 58
 					)
59 59
 				),
60 60
 			40 => array(
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 				'options' => array(
64 64
 					'tipLocation' => 'top',
65 65
 					'tipAdjustmentY' => -75,
66
-                    'tipAdjustmentX' => 250
66
+					'tipAdjustmentX' => 250
67 67
 					)
68 68
 				)
69 69
 			);
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 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
 /**
@@ -71,21 +71,21 @@  discard block
 block discarded – undo
71 71
 
72 72
 
73 73
 	protected function _stop_one() {
74
-		$content = '<h3>' . __('Add New Venue Category', 'event_espresso') . '</h3>';
75
-		$content .= '<p>' . __('This tour of the Add New Venue Category page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
74
+		$content = '<h3>'.__('Add New Venue Category', 'event_espresso').'</h3>';
75
+		$content .= '<p>'.__('This tour of the Add New Venue Category page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
76 76
 		return $content;
77 77
 	}
78 78
 
79 79
 	protected function _category_name_stop() {
80
-		return '<p>' . __('Enter a name for your new venue category.', 'event_espresso') . '</p>';
80
+		return '<p>'.__('Enter a name for your new venue category.', 'event_espresso').'</p>';
81 81
 	}
82 82
 
83 83
 	protected function _category_id_stop() {
84
-		return '<p>' . __('Enter a unique ID for your new venue category.', 'event_espresso') . '</p>';
84
+		return '<p>'.__('Enter a unique ID for your new venue category.', 'event_espresso').'</p>';
85 85
 	}
86 86
 
87 87
 	protected function _category_editor_stop() {
88
-		return '<p>' . __('The rich text editor can be used to add information about your venue category. Images and links can also be added along with your text.', 'event_espresso') . '</p>';
88
+		return '<p>'.__('The rich text editor can be used to add information about your venue category. Images and links can also be added along with your text.', 'event_espresso').'</p>';
89 89
 	}
90 90
 
91 91
 }
92 92
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 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
Please login to merge, or discard this patch.
admin_pages/venues/help_tours/Venues_Add_Venue_Help_Tour.class.php 2 patches
Spacing   +11 added lines, -11 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
 /**
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
 
110 110
 
111 111
 	protected function _stop_one() {
112
-		$content = '<h3>' . __('Add Venue', 'event_espresso') . '</h3>';
113
-		$content .= '<p>' . __('This tour of the Venue Editor page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
112
+		$content = '<h3>'.__('Add Venue', 'event_espresso').'</h3>';
113
+		$content .= '<p>'.__('This tour of the Venue Editor page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
114 114
 		return $content;
115 115
 	}
116 116
 
@@ -119,35 +119,35 @@  discard block
 block discarded – undo
119 119
 	}
120 120
 
121 121
 	protected function _venue_editor_stop() {
122
-		return '<p>' . __('The rich text editor can be used to add information about your venue. Images and links can also be added along with your text.', 'event_espresso') . '</p>';
122
+		return '<p>'.__('The rich text editor can be used to add information about your venue. Images and links can also be added along with your text.', 'event_espresso').'</p>';
123 123
 	}
124 124
 	
125 125
 	protected function _venue_tags_stop() {
126
-		return '<p>' . __('Quickly add tags to your venue.', 'event_espresso') . '</p>';
126
+		return '<p>'.__('Quickly add tags to your venue.', 'event_espresso').'</p>';
127 127
 	}
128 128
 
129 129
 	protected function _venue_categories_stop() {
130
-		return '<p>' . __('Venues can also be categorized if you wish.', 'event_espresso') . '</p>';
130
+		return '<p>'.__('Venues can also be categorized if you wish.', 'event_espresso').'</p>';
131 131
 	}
132 132
 
133 133
 	protected function _venue_physical_location_stop() {
134
-		return '<p>' . __('Add a physical address for your venue.', 'event_espresso') . '</p>';
134
+		return '<p>'.__('Add a physical address for your venue.', 'event_espresso').'</p>';
135 135
 	}
136 136
 
137 137
 	protected function _venue_gmap_stop() {
138
-		return '<p>' . __('Enable or disable a Google Map for your venue.', 'event_espresso') . '</p>';
138
+		return '<p>'.__('Enable or disable a Google Map for your venue.', 'event_espresso').'</p>';
139 139
 	}
140 140
 
141 141
 	protected function _venue_virtual_location_stop() {
142
-		return '<p>' . __('Setup a virtual location for your venue.', 'event_espresso') . '</p>';
142
+		return '<p>'.__('Setup a virtual location for your venue.', 'event_espresso').'</p>';
143 143
 	}
144 144
 	
145 145
 	protected function _stop_featured_image() {
146
-		return '<p>' . __('Set a feature image for your venue here.', 'event_espresso') . '</p>';
146
+		return '<p>'.__('Set a feature image for your venue here.', 'event_espresso').'</p>';
147 147
 	}
148 148
 
149 149
 	protected function _stop_publish_box() {
150
-		return '<p>' . __('Easily control the status of your venue. The main options are Published, Pending Review, and Draft.', 'event_espresso') . '</p>';
150
+		return '<p>'.__('Easily control the status of your venue. The main options are Published, Pending Review, and Draft.', 'event_espresso').'</p>';
151 151
 	}
152 152
 	
153 153
 }
154 154
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 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
Please login to merge, or discard this patch.
admin_pages/venues/help_tours/Venues_Categories_Help_Tour.class.php 2 patches
Spacing   +10 added lines, -10 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
 /**
@@ -107,36 +107,36 @@  discard block
 block discarded – undo
107 107
 
108 108
 
109 109
 	protected function _start() {
110
-		$content = '<h3>' . __('Venue Overview', 'event_espresso') . '</h3>';
111
-		$content .= '<p>' . __('This tour of the Venues Overview page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
110
+		$content = '<h3>'.__('Venue Overview', 'event_espresso').'</h3>';
111
+		$content .= '<p>'.__('This tour of the Venues Overview page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
112 112
 		return $content;
113 113
 	}
114 114
 	
115 115
 	protected function _id_stop() {
116
-		return '<p>' . __('View the venue category ID. Can be sorted by ascending or descending order.', 'event_espresso') . '</p>';
116
+		return '<p>'.__('View the venue category ID. Can be sorted by ascending or descending order.', 'event_espresso').'</p>';
117 117
 	}
118 118
 	
119 119
 	protected function _name_stop() {
120
-		return '<p>' . __('View the name of each venue category. Can be sorted by ascending or descending order.', 'event_espresso') . '</p>';
120
+		return '<p>'.__('View the name of each venue category. Can be sorted by ascending or descending order.', 'event_espresso').'</p>';
121 121
 	}
122 122
 
123 123
 	protected function _shortcode_stop() {
124
-		return '<p>' . __('View the shortcode for a venue category. This shortcode can be added to an event, WordPress post, or WordPress page. ', 'event_espresso') . '</p>';
124
+		return '<p>'.__('View the shortcode for a venue category. This shortcode can be added to an event, WordPress post, or WordPress page. ', 'event_espresso').'</p>';
125 125
 	}
126 126
 
127 127
 	protected function _count_stop() {
128
-		return '<p>' . __('View the number of venues that are associated with a category.', 'event_espresso') . '</p>';
128
+		return '<p>'.__('View the number of venues that are associated with a category.', 'event_espresso').'</p>';
129 129
 	}
130 130
 
131 131
 	protected function _bulk_actions_stop() {
132
-		return '<p>' . __('Perform bulk actions to multiple venue categories.', 'event_espresso') . '</p>';
132
+		return '<p>'.__('Perform bulk actions to multiple venue categories.', 'event_espresso').'</p>';
133 133
 	}
134 134
 
135 135
 	protected function _search_stop() {
136
-		return '<p>' . __('Search through venues categories. The following sources will be searched: Venue Category ID, Venue Category Name, Venue Shortcode, and Venue Count.', 'event_espresso') . '</p>';
136
+		return '<p>'.__('Search through venues categories. The following sources will be searched: Venue Category ID, Venue Category Name, Venue Shortcode, and Venue Count.', 'event_espresso').'</p>';
137 137
 	}
138 138
 	
139 139
 	protected function _new_category_stop() {
140
-		return '<p>' . __('Click here to add a new venue category.', 'event_espresso') . '</p>';
140
+		return '<p>'.__('Click here to add a new venue category.', 'event_espresso').'</p>';
141 141
 	}
142 142
 }
143 143
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 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
Please login to merge, or discard this patch.
admin_pages/venues/help_tours/Venues_Edit_Category_Help_Tour.class.php 3 patches
Spacing   +6 added lines, -6 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
 /**
@@ -71,21 +71,21 @@  discard block
 block discarded – undo
71 71
 
72 72
 
73 73
 	protected function _stop_one() {
74
-		$content = '<h3>' . __('Edit Venue Category', 'event_espresso') . '</h3>';
75
-		$content .= '<p>' . __('This tour of the Edit Venue Category page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
74
+		$content = '<h3>'.__('Edit Venue Category', 'event_espresso').'</h3>';
75
+		$content .= '<p>'.__('This tour of the Edit Venue Category page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
76 76
 		return $content;
77 77
 	}
78 78
 
79 79
 	protected function _category_name_stop() {
80
-		return '<p>' . __('Edit the name for your venue category.', 'event_espresso') . '</p>';
80
+		return '<p>'.__('Edit the name for your venue category.', 'event_espresso').'</p>';
81 81
 	}
82 82
 
83 83
 	protected function _category_id_stop() {
84
-		return '<p>' . __('View the unique ID for your category (cannot be changed).', 'event_espresso') . '</p>';
84
+		return '<p>'.__('View the unique ID for your category (cannot be changed).', 'event_espresso').'</p>';
85 85
 	}
86 86
 
87 87
 	protected function _category_editor_stop() {
88
-		return '<p>' . __('The rich text editor can be used to edit information about your venue category. Images and links can also be added or removed along with your text.', 'event_espresso') . '</p>';
88
+		return '<p>'.__('The rich text editor can be used to edit information about your venue category. Images and links can also be added or removed along with your text.', 'event_espresso').'</p>';
89 89
 	}
90 90
 
91 91
 }
92 92
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 				'options' => array(
56 56
 					'tipLocation' => 'right',
57 57
 					'tipAdjustmentY' => -55,
58
-                    'tipAdjustmentX' => 5
58
+					'tipAdjustmentX' => 5
59 59
 					)
60 60
 				),
61 61
 			40 => array(
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 				'options' => array(
65 65
 					'tipLocation' => 'top',
66 66
 					'tipAdjustmentY' => -75,
67
-                    'tipAdjustmentX' => 250
67
+					'tipAdjustmentX' => 250
68 68
 					)
69 69
 				)
70 70
 			);
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 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
Please login to merge, or discard this patch.
admin_pages/venues/help_tours/Venues_Edit_Venue_Help_Tour.class.php 2 patches
Spacing   +11 added lines, -11 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
 /**
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
 
110 110
 
111 111
 	protected function _stop_one() {
112
-		$content = '<h3>' . __('Edit Venue', 'event_espresso') . '</h3>';
113
-		$content .= '<p>' . __('This tour of the Venue Editor page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
112
+		$content = '<h3>'.__('Edit Venue', 'event_espresso').'</h3>';
113
+		$content .= '<p>'.__('This tour of the Venue Editor page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
114 114
 		return $content;
115 115
 	}
116 116
 
@@ -119,35 +119,35 @@  discard block
 block discarded – undo
119 119
 	}
120 120
 
121 121
 	protected function _venue_editor_stop() {
122
-		return '<p>' . __('The rich text editor can be used to edit information about your venue. Images and links can also be added or removed along with your text.', 'event_espresso') . '</p>';
122
+		return '<p>'.__('The rich text editor can be used to edit information about your venue. Images and links can also be added or removed along with your text.', 'event_espresso').'</p>';
123 123
 	}
124 124
 	
125 125
 	protected function _venue_tags_stop() {
126
-		return '<p>' . __('Quickly edit tags for your venue.', 'event_espresso') . '</p>';
126
+		return '<p>'.__('Quickly edit tags for your venue.', 'event_espresso').'</p>';
127 127
 	}
128 128
 
129 129
 	protected function _venue_categories_stop() {
130
-		return '<p>' . __('Venues can also be categorized if you wish.', 'event_espresso') . '</p>';
130
+		return '<p>'.__('Venues can also be categorized if you wish.', 'event_espresso').'</p>';
131 131
 	}
132 132
 
133 133
 	protected function _venue_physical_location_stop() {
134
-		return '<p>' . __('Edit the physical address for your venue.', 'event_espresso') . '</p>';
134
+		return '<p>'.__('Edit the physical address for your venue.', 'event_espresso').'</p>';
135 135
 	}
136 136
 
137 137
 	protected function _venue_gmap_stop() {
138
-		return '<p>' . __('Enable or disable a Google Map for your venue.', 'event_espresso') . '</p>';
138
+		return '<p>'.__('Enable or disable a Google Map for your venue.', 'event_espresso').'</p>';
139 139
 	}
140 140
 
141 141
 	protected function _venue_virtual_location_stop() {
142
-		return '<p>' . __('Setup a virtual location for your venue.', 'event_espresso') . '</p>';
142
+		return '<p>'.__('Setup a virtual location for your venue.', 'event_espresso').'</p>';
143 143
 	}
144 144
 	
145 145
 	protected function _stop_featured_image() {
146
-		return '<p>' . __('Set a feature image for your venue here.', 'event_espresso') . '</p>';
146
+		return '<p>'.__('Set a feature image for your venue here.', 'event_espresso').'</p>';
147 147
 	}
148 148
 
149 149
 	protected function _stop_publish_box() {
150
-		return '<p>' . __('Easily control the status of your venue. The main options are Published, Pending Review, and Draft.', 'event_espresso') . '</p>';
150
+		return '<p>'.__('Easily control the status of your venue. The main options are Published, Pending Review, and Draft.', 'event_espresso').'</p>';
151 151
 	}
152 152
 	
153 153
 }
154 154
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 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
Please login to merge, or discard this patch.
admin_pages/venues/help_tours/Venues_Overview_Help_Tour.class.php 2 patches
Spacing   +12 added lines, -12 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
 /**
@@ -125,44 +125,44 @@  discard block
 block discarded – undo
125 125
 
126 126
 
127 127
 	protected function _start() {
128
-		$content = '<h3>' . __('Venue Overview', 'event_espresso') . '</h3>';
129
-		$content .= '<p>' . __('This tour of the Venues Overview page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
128
+		$content = '<h3>'.__('Venue Overview', 'event_espresso').'</h3>';
129
+		$content .= '<p>'.__('This tour of the Venues Overview page will provide an overview of the different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
130 130
 		return $content;
131 131
 	}
132 132
 	
133 133
 	protected function _id_stop() {
134
-		return '<p>' . __('View the venue ID. Can be sorted by ascending or descending order.', 'event_espresso') . '</p>';
134
+		return '<p>'.__('View the venue ID. Can be sorted by ascending or descending order.', 'event_espresso').'</p>';
135 135
 	}
136 136
 	
137 137
 	protected function _name_stop() {
138
-		return '<p>' . __('View the name of each venue. Can be sorted by ascending or descending order.', 'event_espresso') . '</p>';
138
+		return '<p>'.__('View the name of each venue. Can be sorted by ascending or descending order.', 'event_espresso').'</p>';
139 139
 	}
140 140
 	
141 141
 	protected function _address_stop() {
142
-		return '<p>' . __('View the address for each venue.', 'event_espresso') . '</p>';
142
+		return '<p>'.__('View the address for each venue.', 'event_espresso').'</p>';
143 143
 	}
144 144
 	
145 145
 	protected function _city_stop() {
146
-		return '<p>' . __('View the city for each venue. Can be sorted by ascending or descending order.', 'event_espresso') . '</p>';
146
+		return '<p>'.__('View the city for each venue. Can be sorted by ascending or descending order.', 'event_espresso').'</p>';
147 147
 	}
148 148
 	
149 149
 	protected function _capacity_stop() {
150
-		return '<p>' . __('View the capacity for each venue. Can be sorted by ascending or descending order.', 'event_espresso') . '</p>';
150
+		return '<p>'.__('View the capacity for each venue. Can be sorted by ascending or descending order.', 'event_espresso').'</p>';
151 151
 	}
152 152
 
153 153
 	protected function _shortcode_stop() {
154
-		return '<p>' . __('View the shortcode for a venue. This shortcode can be added to an event, WordPress post, or WordPress page. ', 'event_espresso') . '</p>';
154
+		return '<p>'.__('View the shortcode for a venue. This shortcode can be added to an event, WordPress post, or WordPress page. ', 'event_espresso').'</p>';
155 155
 	}
156 156
 
157 157
 	protected function _bulk_actions_stop() {
158
-		return '<p>' . __('Perform bulk actions to multiple venues.', 'event_espresso') . '</p>';
158
+		return '<p>'.__('Perform bulk actions to multiple venues.', 'event_espresso').'</p>';
159 159
 	}
160 160
 
161 161
 	protected function _search_stop() {
162
-		return '<p>' . __('Search through venues. The following sources will be searched: Venue Name, Venue Description, Venue Short Description, Venue Address, Venue City, Venue Zip/Postal Code, Venue Phone, Venue URL, Venue Virtual Phone, Venue Google Map link, Event Name, Event Description, Event Phone, and Event External URL.', 'event_espresso') . '</p>';
162
+		return '<p>'.__('Search through venues. The following sources will be searched: Venue Name, Venue Description, Venue Short Description, Venue Address, Venue City, Venue Zip/Postal Code, Venue Phone, Venue URL, Venue Virtual Phone, Venue Google Map link, Event Name, Event Description, Event Phone, and Event External URL.', 'event_espresso').'</p>';
163 163
 	}
164 164
 	
165 165
 	protected function _new_venue_stop() {
166
-		return '<p>' . __('Click here to add a new venue.', 'event_espresso') . '</p>';
166
+		return '<p>'.__('Click here to add a new venue.', 'event_espresso').'</p>';
167 167
 	}
168 168
 }
169 169
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 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
Please login to merge, or discard this patch.
venues/templates/event_venues_metabox_content_from_manager.template.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@  discard block
 block discarded – undo
3 3
 		<td valign="top" class="use-ven-manager">
4 4
 		<label><?php _e('Select from Venue Manager List', 'event_espresso'); ?></label>
5 5
 		<?php echo $venue_selector; ?>
6
-		<?php foreach ( $venues as $venue ) :
6
+		<?php foreach ($venues as $venue) :
7 7
 			$selected = $evt_venue_id == $venue->ID() ? '' : ' style="display:none;"';
8
-			$edit_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action' => 'edit', 'post' => $venue->ID() ), EE_VENUES_ADMIN_URL );
9
-			$state_name = is_object( $venue->state_obj() ) ? $venue->state_obj()->name() : NULL;
10
-			$country_name = is_object( $venue->country_obj() ) ? $venue->country_obj()->name() : NULL;
8
+			$edit_url = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'edit', 'post' => $venue->ID()), EE_VENUES_ADMIN_URL);
9
+			$state_name = is_object($venue->state_obj()) ? $venue->state_obj()->name() : NULL;
10
+			$country_name = is_object($venue->country_obj()) ? $venue->country_obj()->name() : NULL;
11 11
 			?>
12 12
 			<fieldset id="eebox_<?php echo $venue->ID(); ?>" class="eebox"<?php echo $selected; ?>>
13 13
 				<ul class="address-view">
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 							<span><?php _e('State:', 'event_espresso'); ?></span> <?php echo $state_name; ?><br />
19 19
 							<span><?php _e('Country:', 'event_espresso'); ?></span> <?php echo $country_name; ?><br />
20 20
 							<span><?php _e('Venue ID:', 'event_espresso'); ?></span> <?php echo $venue->ID(); ?><br /></p>
21
-							<!-- <?php printf( __('This venue\'s shortcode: %s[ESPRESSO_VENUE id="%d"]%s', 'event_espresso'), '<strong class="highlight">', $venue->ID(), '</strong>' ); ?><br /> -->
21
+							<!-- <?php printf(__('This venue\'s shortcode: %s[ESPRESSO_VENUE id="%d"]%s', 'event_espresso'), '<strong class="highlight">', $venue->ID(), '</strong>'); ?><br /> -->
22 22
 							<a href="<?php echo $edit_url; ?>" target="_blank"><?php _e('Edit this Venue', 'event_espresso'); ?></a>
23 23
 					</li>	
24 24
 				</ul>
Please login to merge, or discard this patch.