Completed
Branch old/BUG-7514-7935-7936-price-o... (518ae6)
by
unknown
25:14 queued 22:51
created
shortcodes/espresso_checkout/EES_Espresso_Checkout.shortcode.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,17 +51,17 @@  discard block
 block discarded – undo
51 51
 	 * @param WP $WP
52 52
 	 * @return    void
53 53
 	 */
54
-	public function run( WP $WP ) {
55
-		if ( ! did_action( 'pre_get_posts' )) {
54
+	public function run(WP $WP) {
55
+		if ( ! did_action('pre_get_posts')) {
56 56
 			// hook into the top of pre_get_posts to set the reg step routing, which gives other modules or plugins a chance to modify the reg steps, but just before the routes get called
57
-			add_action( 'pre_get_posts', array( 'EED_Single_Page_Checkout', 'load_reg_steps' ), 1 );
57
+			add_action('pre_get_posts', array('EED_Single_Page_Checkout', 'load_reg_steps'), 1);
58 58
 			// this will trigger the EED_Single_Page_Checkout module's run() method during the pre_get_posts hook point,
59 59
 			// this allows us to initialize things, enqueue assets, etc,
60
-			add_action( 'pre_get_posts', array( 'EED_Single_Page_Checkout', 'init' ), 10, 1 );
60
+			add_action('pre_get_posts', array('EED_Single_Page_Checkout', 'init'), 10, 1);
61 61
 		} else {
62 62
 			global $wp_query;
63 63
 			EED_Single_Page_Checkout::load_reg_steps();
64
-			EED_Single_Page_Checkout::init( $wp_query );
64
+			EED_Single_Page_Checkout::init($wp_query);
65 65
 		}
66 66
 	}
67 67
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 *  @param		array 	$attributes
75 75
 	 *  @return 	string
76 76
 	 */
77
-	public function process_shortcode( $attributes = array() ) {
77
+	public function process_shortcode($attributes = array()) {
78 78
 		return EE_Registry::instance()->REQ->get_output();
79 79
 	}
80 80
 
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
  * Event Espresso
4 6
  *
Please login to merge, or discard this patch.
shortcodes/espresso_events/EES_Espresso_Events.shortcode.php 2 patches
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
 	 * @param WP $WP
51 51
 	 * @return    void
52 52
 	 */
53
-	public function run( WP $WP ) {
54
-		if ( ! did_action( 'pre_get_posts' )) {
53
+	public function run(WP $WP) {
54
+		if ( ! did_action('pre_get_posts')) {
55 55
 			// this will trigger the EED_Events_Archive module's event_list() method during the pre_get_posts hook point,
56 56
 			// this allows us to initialize things, enqueue assets, etc,
57 57
 			// as well, this saves an instantiation of the module in an array using 'espresso_events' as the key, so that we can retrieve it
58
-			add_action( 'pre_get_posts', array( EED_Events_Archive::instance(), 'event_list' ));
58
+			add_action('pre_get_posts', array(EED_Events_Archive::instance(), 'event_list'));
59 59
 		} else {
60 60
 			EED_Events_Archive::instance()->event_list();
61 61
 		}
@@ -79,13 +79,13 @@  discard block
 block discarded – undo
79 79
 	 *  @param 	array 	$attributes
80 80
 	 *  @return 	string
81 81
 	 */
82
-	public function process_shortcode( $attributes = array() ) {
82
+	public function process_shortcode($attributes = array()) {
83 83
 		// make sure EED_Events_Archive is setup properly
84
-		if ( apply_filters( 'FHEE__fallback_shortcode_processor__EES_Espresso_Events', FALSE )) {
84
+		if (apply_filters('FHEE__fallback_shortcode_processor__EES_Espresso_Events', FALSE)) {
85 85
 			EED_Events_Archive::instance()->event_list();
86 86
 		}
87 87
 		// merge in any attributes passed via fallback shortcode processor
88
-		$attributes = array_merge( (array)$attributes, (array)$this->_attributes );
88
+		$attributes = array_merge((array) $attributes, (array) $this->_attributes);
89 89
 		//set default attributes
90 90
 		$default_espresso_events_shortcode_atts = array(
91 91
 			'title' => NULL,
@@ -99,26 +99,26 @@  discard block
 block discarded – undo
99 99
 			'fallback_shortcode_processor' => FALSE
100 100
 		);
101 101
 		// allow the defaults to be filtered
102
-		$default_espresso_events_shortcode_atts = apply_filters( 'EES_Espresso_Events__process_shortcode__default_espresso_events_shortcode_atts', $default_espresso_events_shortcode_atts );
102
+		$default_espresso_events_shortcode_atts = apply_filters('EES_Espresso_Events__process_shortcode__default_espresso_events_shortcode_atts', $default_espresso_events_shortcode_atts);
103 103
 		// grab attributes and merge with defaults, then extract
104
-		$attributes = array_merge( $default_espresso_events_shortcode_atts, $attributes );
104
+		$attributes = array_merge($default_espresso_events_shortcode_atts, $attributes);
105 105
 		// make sure we use the_excerpt()
106
-		add_filter( 'FHEE__EES_Espresso_Events__process_shortcode__true', '__return_true' );
106
+		add_filter('FHEE__EES_Espresso_Events__process_shortcode__true', '__return_true');
107 107
 		// apply query filters
108
-		add_filter( 'FHEE__EEH_Event_Query__apply_query_filters', '__return_true' );
108
+		add_filter('FHEE__EEH_Event_Query__apply_query_filters', '__return_true');
109 109
 		// run the query
110 110
 		global $wp_query;
111
-		$wp_query = new EE_Event_List_Query( $attributes );
111
+		$wp_query = new EE_Event_List_Query($attributes);
112 112
 		// check what template is loaded and load filters accordingly
113
-		EED_Events_Archive::instance()->template_include( 'loop-espresso_events.php' );
113
+		EED_Events_Archive::instance()->template_include('loop-espresso_events.php');
114 114
 		// load our template
115
-		$event_list = EEH_Template::locate_template( 'loop-espresso_events.php', array(), TRUE, TRUE );
115
+		$event_list = EEH_Template::locate_template('loop-espresso_events.php', array(), TRUE, TRUE);
116 116
 		// now reset the query and postdata
117 117
 		wp_reset_query();
118 118
 		wp_reset_postdata();
119 119
 		EED_Events_Archive::remove_all_events_archive_filters();
120 120
 		// remove query filters
121
-		remove_filter( 'FHEE__EEH_Event_Query__apply_query_filters', '__return_true' );
121
+		remove_filter('FHEE__EEH_Event_Query__apply_query_filters', '__return_true');
122 122
 		// pull our content from the output buffer and return it
123 123
 		return $event_list;
124 124
 	}
@@ -163,46 +163,46 @@  discard block
 block discarded – undo
163 163
 	 * @param array $args
164 164
 	 * @return \EE_Event_List_Query
165 165
 	 */
166
-	function __construct( $args = array() ) {
166
+	function __construct($args = array()) {
167 167
 //		EEH_Debug_Tools::printr( $args, '$args  <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span>', 'auto' );
168 168
 		// incoming args could be a mix of WP query args + EE shortcode args
169
-		foreach ( $args as $key =>$value ) {
170
-			$property = '_' . $key;
169
+		foreach ($args as $key =>$value) {
170
+			$property = '_'.$key;
171 171
 			// if the arg is a property of this class, then it's an EE shortcode arg
172
-			if ( property_exists( $this, $property )) {
172
+			if (property_exists($this, $property)) {
173 173
 				// set the property value
174 174
 				$this->$property = $value;
175 175
 				// then remove it from the array of args that will later be passed to WP_Query()
176
-				unset( $args[ $key ] );
176
+				unset($args[$key]);
177 177
 			}
178 178
 		}
179 179
 		// setup the events list query
180
-		EE_Registry::instance()->load_helper( 'Event_Query' );
180
+		EE_Registry::instance()->load_helper('Event_Query');
181 181
 		//add query filters
182 182
 		EEH_Event_Query::add_query_filters();
183 183
 		// set params that will get used by the filters
184
-		EEH_Event_Query::set_query_params( $this->_month, $this->_category_slug, $this->_show_expired, $this->_order_by, $this->_sort );
184
+		EEH_Event_Query::set_query_params($this->_month, $this->_category_slug, $this->_show_expired, $this->_order_by, $this->_sort);
185 185
 		// first off, let's remove any filters from previous queries
186
-		remove_filter( 'FHEE__archive_espresso_events_template__upcoming_events_h1', array( $this, 'event_list_title' ));
187
-		remove_all_filters( 'FHEE__content_espresso_events__event_class' );
186
+		remove_filter('FHEE__archive_espresso_events_template__upcoming_events_h1', array($this, 'event_list_title'));
187
+		remove_all_filters('FHEE__content_espresso_events__event_class');
188 188
 		// Event List Title ?
189
-		add_filter( 'FHEE__archive_espresso_events_template__upcoming_events_h1', array( $this, 'event_list_title' ), 10, 1 );
189
+		add_filter('FHEE__archive_espresso_events_template__upcoming_events_h1', array($this, 'event_list_title'), 10, 1);
190 190
 		// add the css class
191
-		add_filter( 'FHEE__content_espresso_events__event_class', array( $this, 'event_list_css' ), 10, 1 );
191
+		add_filter('FHEE__content_espresso_events__event_class', array($this, 'event_list_css'), 10, 1);
192 192
 		// the current "page" we are viewing
193
-		$paged = max( 1, get_query_var( 'paged' ));
193
+		$paged = max(1, get_query_var('paged'));
194 194
 		// Force these args
195
-		$args = array_merge( $args, array(
195
+		$args = array_merge($args, array(
196 196
 			'post_type' => 'espresso_events',
197 197
 			'posts_per_page' => $this->_limit,
198 198
 			'update_post_term_cache' => FALSE,
199 199
 			'update_post_meta_cache' => FALSE,
200 200
 			'paged' => $paged,
201
-			'offset' => ( $paged - 1 ) * $this->_limit
201
+			'offset' => ($paged - 1) * $this->_limit
202 202
 		));
203 203
 
204 204
 		// run the query
205
-		parent::__construct( $args );
205
+		parent::__construct($args);
206 206
 	}
207 207
 
208 208
 
@@ -215,8 +215,8 @@  discard block
 block discarded – undo
215 215
 	 * @param string $event_list_title
216 216
 	 * @return    string
217 217
 	 */
218
-	public function event_list_title( $event_list_title = '' ) {
219
-		if ( ! empty( $this->_title )) {
218
+	public function event_list_title($event_list_title = '') {
219
+		if ( ! empty($this->_title)) {
220 220
 			return $this->_title;
221 221
 		}
222 222
 		return $event_list_title;
@@ -231,11 +231,11 @@  discard block
 block discarded – undo
231 231
 	 * @param string $event_list_css
232 232
 	 * @return    array
233 233
 	 */
234
-	public function event_list_css( $event_list_css = '' ) {
235
-		$event_list_css .=  ! empty( $event_list_css ) ? ' ' : '';
236
-		$event_list_css .=  ! empty( $this->_css_class ) ? $this->_css_class : '';
237
-		$event_list_css .=  ! empty( $event_list_css ) ? ' ' : '';
238
-		$event_list_css .=  ! empty( $this->_category_slug ) ? $this->_category_slug : '';
234
+	public function event_list_css($event_list_css = '') {
235
+		$event_list_css .= ! empty($event_list_css) ? ' ' : '';
236
+		$event_list_css .= ! empty($this->_css_class) ? $this->_css_class : '';
237
+		$event_list_css .= ! empty($event_list_css) ? ' ' : '';
238
+		$event_list_css .= ! empty($this->_category_slug) ? $this->_category_slug : '';
239 239
 		return $event_list_css;
240 240
 	}
241 241
 
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
  * Event Espresso
4 6
  *
Please login to merge, or discard this patch.
espresso_thank_you/templates/thank-you-page-overview.template.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1
-<?php  do_action( 'AHEE__thank_you_page_overview_template__top', $transaction ); ?>
1
+<?php  do_action('AHEE__thank_you_page_overview_template__top', $transaction); ?>
2 2
 
3 3
 <div id="espresso-thank-you-page-overview-dv" class="width-100" >
4 4
 
5
-	<?php if ( ! $revisit ) : ?>
5
+	<?php if ( ! $revisit) : ?>
6 6
 	<div class="ee-attention">
7 7
 		<div class="extra-padding-sides">
8 8
 			<p class="bigger-text">
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 			);
19 19
 			?>
20 20
 			</p>
21
-			<?php if ( ! empty( $TXN_receipt_url )) : ?>
21
+			<?php if ( ! empty($TXN_receipt_url)) : ?>
22 22
 			<div class="jst-rght">
23
-				<a class="ee-button ee-roundish indented-text big-text" href="<?php echo $TXN_receipt_url;?>"><span class="ee-icon ee-icon-PDF-file-type"></span><?php echo apply_filters( 'FHEE__thank_you_page_overview_template__order_conf_button_text', __( 'View Full Order Confirmation Receipt', 'event_espresso' )); ?></a>
23
+				<a class="ee-button ee-roundish indented-text big-text" href="<?php echo $TXN_receipt_url; ?>"><span class="ee-icon ee-icon-PDF-file-type"></span><?php echo apply_filters('FHEE__thank_you_page_overview_template__order_conf_button_text', __('View Full Order Confirmation Receipt', 'event_espresso')); ?></a>
24 24
 			</div>
25 25
 			<?php endif; ?>
26 26
 		</div>
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 	<?php endif; ?>
30 30
 	<br/>
31 31
 
32
-	<?php  do_action( 'AHEE__thank_you_page_overview_template__content', $transaction ); ?>
32
+	<?php  do_action('AHEE__thank_you_page_overview_template__content', $transaction); ?>
33 33
 
34 34
 </div>
35 35
 <!-- end of espresso-thank-you-page-overview-dv -->
36 36
 
37
-<?php  do_action( 'AHEE__thank_you_page_overview_template__bottom', $transaction ); ?>
37
+<?php  do_action('AHEE__thank_you_page_overview_template__bottom', $transaction); ?>
Please login to merge, or discard this patch.
espresso_thank_you/templates/thank-you-page-payment-details.template.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,30 +1,30 @@  discard block
 block discarded – undo
1 1
 <h2 class="section-heading display-box-heading">
2 2
 	<?php _e('Payment Overview', 'event_espresso'); ?>
3 3
 </h2>
4
-<?php  do_action( 'AHEE__thank_you_page_payment_details_template__after_heading' ); ?>
4
+<?php  do_action('AHEE__thank_you_page_payment_details_template__after_heading'); ?>
5 5
 
6 6
 <div id="espresso-thank-you-page-payment-details-dv">
7
-<?php if ( ! empty( $payments )){	 ?>
7
+<?php if ( ! empty($payments)) {	 ?>
8 8
 	<table class="ee-table">
9 9
 		<thead>
10 10
 			<tr>
11 11
 				<th width="35%" class="jst-left">
12
-					<?php _e('Payment Date','event_espresso')?>
12
+					<?php _e('Payment Date', 'event_espresso')?>
13 13
 				</th>
14 14
 				<th width="17.5%" class="jst-left">
15
-					<?php _e('Type','event_espresso');?>
15
+					<?php _e('Type', 'event_espresso'); ?>
16 16
 				</th>
17 17
 				<th width="17.5%" class="jst-rght">
18
-					<?php _e('Amount','event_espresso');?>
18
+					<?php _e('Amount', 'event_espresso'); ?>
19 19
 				</th>
20 20
 				<th width="30%" class="jst-rght">
21
-					<?php _e('Status','event_espresso');?>
21
+					<?php _e('Status', 'event_espresso'); ?>
22 22
 				</th>
23 23
 			</tr>
24 24
 		</thead>
25 25
 		<tbody>
26 26
 		<?php
27
-			foreach ( $payments as $payment ) {
27
+			foreach ($payments as $payment) {
28 28
 				echo $payment;
29 29
 			}
30 30
 		?>
@@ -33,38 +33,38 @@  discard block
 block discarded – undo
33 33
 <?php
34 34
 	} else {
35 35
 
36
-		if ( $transaction->total() ){
36
+		if ($transaction->total()) {
37 37
 
38 38
 			echo apply_filters(
39 39
 				'FHEE__payment_overview_template__no_payments_made',
40
-				sprintf (
41
-					__('%sNo payments towards this transaction have been received.%s', 'event_espresso' ),
40
+				sprintf(
41
+					__('%sNo payments towards this transaction have been received.%s', 'event_espresso'),
42 42
 					'<p class="important-notice">',
43 43
 					'</p>'
44 44
 				)
45 45
 			);
46
-			do_action( 'AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction );
46
+			do_action('AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction);
47 47
 
48 48
 		} else {
49 49
 
50 50
 			echo apply_filters(
51 51
 				'FHEE__payment_overview_template__no_payment_required',
52
-				sprintf (
53
-					__('%sNo payment is required for this transaction.%s', 'event_espresso' ),
52
+				sprintf(
53
+					__('%sNo payment is required for this transaction.%s', 'event_espresso'),
54 54
 					'<p>',
55 55
 					'</p>'
56 56
 				)
57 57
 			);
58
-			do_action( 'AHEE__thank_you_page_payment_details_template__no_payment_required' );
58
+			do_action('AHEE__thank_you_page_payment_details_template__no_payment_required');
59 59
 
60 60
 		 }
61 61
 
62 62
 	}
63 63
 	echo $gateway_content;
64
-	do_action( 'AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content );
64
+	do_action('AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content);
65 65
 
66 66
 ?>
67 67
 
68 68
 	<br/>
69
-	<?php  do_action( 'AHEE__thank_you_page_payment_details_template__after_payment_details' ); ?>
69
+	<?php  do_action('AHEE__thank_you_page_payment_details_template__after_payment_details'); ?>
70 70
 
Please login to merge, or discard this patch.
templates/thank-you-page-transaction-details.template.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <h3><?php _e('Transaction Details', 'event_espresso'); ?></h3>
2
-<?php  do_action( 'AHEE__thank_you_page_transaction_details_template__after_heading' ); ?>
2
+<?php  do_action('AHEE__thank_you_page_transaction_details_template__after_heading'); ?>
3 3
 
4 4
 <div id="espresso-thank-you-page-transaction-details-dv">
5 5
 	<table class='ee-table'>
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 					<label><?php _e('Total Cost: ', 'event_espresso'); ?></label>
10 10
 				</td>
11 11
 				<td>
12
-					<?php echo EEH_Template::format_currency( $transaction->total() ); ?>
12
+					<?php echo EEH_Template::format_currency($transaction->total()); ?>
13 13
 				</td>
14 14
 			</tr>
15 15
 			<tr>
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 					<label><?php _e('Amount Owing: ', 'event_espresso'); ?></label>
18 18
 				</td>
19 19
 				<td class="<?php echo ($transaction->paid() == $transaction->total()) ? 'ee-transaction-paid' : 'ee-transaction-unpaid' ?>">
20
-					<?php echo EEH_Template::format_currency( $transaction->remaining() ); ?>
20
+					<?php echo EEH_Template::format_currency($transaction->remaining()); ?>
21 21
 				</td>
22 22
 			</tr>
23 23
 			<tr>
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 					<label><?php _e('Transaction Status: ', 'event_espresso'); ?></label>
26 26
 				</td>
27 27
 				<td>
28
-					<?php $transaction->e_pretty_status( TRUE );
29
-					if ( $show_try_pay_again_link && ! $transaction->is_completed() ) { ?>
28
+					<?php $transaction->e_pretty_status(TRUE);
29
+					if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?>
30 30
 					 &nbsp; <span class="small-text"><a href='<?php echo $SPCO_payment_options_url?>'><?php _e('View Payment Options', 'event_espresso'); ?></a></span>
31 31
 					<?php } ?>
32 32
 				</td>
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
 					<?php  echo $primary_registrant_name; ?>
40 40
 				</td>
41 41
 			</tr>
42
-            <?php  do_action( 'AHEE__thank_you_page_transaction_details_template__after_transaction_table_row', $transaction ); ?>
42
+            <?php  do_action('AHEE__thank_you_page_transaction_details_template__after_transaction_table_row', $transaction); ?>
43 43
 		</tbody>
44 44
 	</table>
45 45
 
46
-<?php if ( $show_try_pay_again_link && ! $transaction->is_completed() ) { ?>
46
+<?php if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?>
47 47
 	<p class="small-text jst-rght">
48 48
 		<a href='<?php echo $SPCO_payment_options_url?>'><?php _e("Click here to view Payment Options", 'event_espresso'); ?></a>
49 49
 	</p>
@@ -52,6 +52,6 @@  discard block
 block discarded – undo
52 52
 
53 53
 <?php }?>
54 54
 
55
-    <?php  do_action( 'AHEE__thank_you_page_transaction_details_template__after_transaction_details' ); ?>
55
+    <?php  do_action('AHEE__thank_you_page_transaction_details_template__after_transaction_details'); ?>
56 56
 
57 57
 </div>
Please login to merge, or discard this patch.
espresso_ticket_selector/EES_Espresso_Ticket_Selector.shortcode.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	 *  @access 	public
49 49
 	 *  @return 	void
50 50
 	 */
51
-	public function run( WP $WP ) {
51
+	public function run(WP $WP) {
52 52
 	}
53 53
 
54 54
 	/**
@@ -58,13 +58,13 @@  discard block
 block discarded – undo
58 58
 	 *  @param		array 	$attributes
59 59
 	 *  @return 	void
60 60
 	 */
61
-	public function process_shortcode( $attributes = array() ) {
62
-		extract( $attributes );
63
-		$event = EE_Registry::instance()->load_model( 'Event' )->get_one_by_ID( $event_id );
61
+	public function process_shortcode($attributes = array()) {
62
+		extract($attributes);
63
+		$event = EE_Registry::instance()->load_model('Event')->get_one_by_ID($event_id);
64 64
 		ob_start();
65
-		do_action( 'AHEE_event_details_before_post', $event_id );
66
-		espresso_ticket_selector( $event );	
67
-		do_action( 'AHEE_event_details_after_post' );
65
+		do_action('AHEE_event_details_before_post', $event_id);
66
+		espresso_ticket_selector($event);	
67
+		do_action('AHEE_event_details_after_post');
68 68
 		return ob_get_clean();
69 69
 	}
70 70
 
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
  * Event Espresso
4 6
  *
Please login to merge, or discard this patch.
shortcodes/espresso_txn_page/EES_Espresso_Txn_Page.shortcode.php 2 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@  discard block
 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
  * Event Espresso
4 6
  *
@@ -89,7 +91,7 @@  discard block
 block discarded – undo
89 91
 			$payment_method_slug = EE_Registry::instance()->REQ->get( 'ee_payment_method', NULL );
90 92
 			if( $payment_method_slug ) {
91 93
 				$payment_method = EEM_Payment_Method::instance()->get_one_by_slug( $payment_method_slug );
92
-			}else{
94
+			} else{
93 95
 				$payment_method = null;
94 96
 			}
95 97
 			/** @type EE_Payment_Processor $payment_processor */
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	 *  @return 	void
43 43
 	 */
44 44
 	public static function set_hooks() {
45
-		add_action( 'wp_loaded', array( 'EES_Espresso_Txn_Page', 'set_definitions' ), 2 );
45
+		add_action('wp_loaded', array('EES_Espresso_Txn_Page', 'set_definitions'), 2);
46 46
 	}
47 47
 
48 48
 	/**
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
 	 *  @return 	void
64 64
 	 */
65 65
 	public static function set_definitions() {
66
-		define( 'TXN_PAGE_ASSETS_URL', plugin_dir_url( __FILE__ ) . 'assets' . DS );
67
-		define( 'TXN_PAGE_TEMPLATES_PATH', str_replace( '\\', DS, plugin_dir_path( __FILE__ )) . 'templates' . DS );
66
+		define('TXN_PAGE_ASSETS_URL', plugin_dir_url(__FILE__).'assets'.DS);
67
+		define('TXN_PAGE_TEMPLATES_PATH', str_replace('\\', DS, plugin_dir_path(__FILE__)).'templates'.DS);
68 68
 	}
69 69
 
70 70
 
@@ -77,24 +77,24 @@  discard block
 block discarded – undo
77 77
 	 *  @param 	 WP $WP
78 78
 	 *  @return 	void
79 79
 	 */
80
-	public function run( WP $WP ) {
81
-		if ( EE_Registry::instance()->REQ->is_set('e_reg_url_link' )){
82
-			$this->_current_txn = EE_Registry::instance()->load_model( 'Transaction' )->get_transaction_from_reg_url_link();
80
+	public function run(WP $WP) {
81
+		if (EE_Registry::instance()->REQ->is_set('e_reg_url_link')) {
82
+			$this->_current_txn = EE_Registry::instance()->load_model('Transaction')->get_transaction_from_reg_url_link();
83 83
 		} else {
84 84
 			$this->_current_txn = null;
85 85
 		}
86
-		if ( $this->_current_txn instanceof EE_Transaction ) {
87
-			$payment_method_slug = EE_Registry::instance()->REQ->get( 'ee_payment_method', NULL );
88
-			if( $payment_method_slug ) {
89
-				$payment_method = EEM_Payment_Method::instance()->get_one_by_slug( $payment_method_slug );
90
-			}else{
86
+		if ($this->_current_txn instanceof EE_Transaction) {
87
+			$payment_method_slug = EE_Registry::instance()->REQ->get('ee_payment_method', NULL);
88
+			if ($payment_method_slug) {
89
+				$payment_method = EEM_Payment_Method::instance()->get_one_by_slug($payment_method_slug);
90
+			} else {
91 91
 				$payment_method = null;
92 92
 			}
93 93
 			/** @type EE_Payment_Processor $payment_processor */
94 94
 			$payment_processor = EE_Registry::instance()->load_core('Payment_Processor');
95
-			$payment_processor->process_ipn( $_REQUEST, $this->_current_txn, $payment_method );
95
+			$payment_processor->process_ipn($_REQUEST, $this->_current_txn, $payment_method);
96 96
 			//allow gateways to add a filter to stop rendering the page
97
-			if( apply_filters( 'FHEE__EES_Espresso_Txn_Page__run__exit', FALSE ) ){
97
+			if (apply_filters('FHEE__EES_Espresso_Txn_Page__run__exit', FALSE)) {
98 98
 				exit;
99 99
 			}
100 100
 		}
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
 	 *  @param		array 	$attributes
112 112
 	 *  @return 	string
113 113
 	 */
114
-	public function process_shortcode( $attributes = array() ) {
115
-		return __( 'This is the Event Espresso Transactions page. This page receives instant payment notification (IPN) requests and should have a status of published, but should not be easily accessible by site visitors. Do not add it to your website\'s navigation menu or link to it from another page. Also, do not delete it or change its status to private.', 'event_espresso' );
114
+	public function process_shortcode($attributes = array()) {
115
+		return __('This is the Event Espresso Transactions page. This page receives instant payment notification (IPN) requests and should have a status of published, but should not be easily accessible by site visitors. Do not add it to your website\'s navigation menu or link to it from another page. Also, do not delete it or change its status to private.', 'event_espresso');
116 116
 	}
117 117
 
118 118
 
Please login to merge, or discard this patch.
widgets/upcoming_events/EEW_Upcoming_Events.widget.php 3 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -192,14 +192,14 @@  discard block
 block discarded – undo
192 192
 		        <?php _e('Show on all Pages:', 'event_espresso'); ?>
193 193
 			</label>
194 194
 	 	    <?php
195
-	 	    echo EEH_Form_Fields::select(
196
-	 	        __('Show on all Pages:', 'event_espresso'),
197
-	 	        $instance['show_everywhere'],
198
-	 	        $yes_no_values,
199
-	 	        $this->get_field_name('show_everywhere'),
200
-	 	        $this->get_field_id('show_everywhere')
201
-	 	    );
202
-	 	    ?>
195
+	 		echo EEH_Form_Fields::select(
196
+	 			__('Show on all Pages:', 'event_espresso'),
197
+	 			$instance['show_everywhere'],
198
+	 			$yes_no_values,
199
+	 			$this->get_field_name('show_everywhere'),
200
+	 			$this->get_field_id('show_everywhere')
201
+	 		);
202
+	 		?>
203 203
 	 	</p>
204 204
 		<p>
205 205
 			<label for="<?php echo $this->get_field_id('date_limit'); ?>">
@@ -282,13 +282,13 @@  discard block
 block discarded – undo
282 282
 				extract($args);
283 283
 
284 284
 				// add function to make the title a link
285
-	            add_filter('widget_title', array($this, 'make_the_title_a_link'), 15);
285
+				add_filter('widget_title', array($this, 'make_the_title_a_link'), 15);
286 286
 
287 287
 				// filter the title
288 288
 				$title = apply_filters('widget_title', $instance['title']);
289 289
 
290 290
 				// remove the function from the filter, so it does not affect other widgets
291
-	            remove_filter('widget_title', array($this, 'make_the_title_a_link'), 15);
291
+				remove_filter('widget_title', array($this, 'make_the_title_a_link'), 15);
292 292
 
293 293
 				// Before widget (defined by themes).
294 294
 				echo $before_widget;
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
 	 * @return string
386 386
 	 */
387 387
 	public function make_the_title_a_link($title) {
388
-	    return '<a href="' . EEH_Event_View::event_archive_url() . '">' . $title . '</a>';
388
+		return '<a href="' . EEH_Event_View::event_archive_url() . '">' . $title . '</a>';
389 389
 	}
390 390
 
391 391
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@  discard block
 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
  * Event Espresso
4 6
  *
@@ -357,7 +359,7 @@  discard block
 block discarded – undo
357 359
 								$single_time_format = apply_filters( 'FHEE__espresso_event_date_range__single_time_format', get_option( 'time_format' ));
358 360
 								if ( $date_range == TRUE ) {
359 361
 									echo espresso_event_date_range( $date_format, $time_format, $single_date_format, $single_time_format, $event->ID() );
360
-								}else{
362
+								} else{
361 363
 									echo espresso_list_of_event_dates( $event->ID(), $date_format, $time_format, FALSE, NULL, TRUE, TRUE, $date_limit );
362 364
 								}
363 365
 							}
Please login to merge, or discard this patch.
Spacing   +70 added lines, -70 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
 	function __construct() {
31 31
 		parent::__construct(
32 32
 			'ee-upcoming-events-widget',
33
-			__( 'Event Espresso Upcoming Events', 'event_espresso' ),
34
-			 array( 'description' => __( 'A widget to display your upcoming events.', 'event_espresso' )),
33
+			__('Event Espresso Upcoming Events', 'event_espresso'),
34
+			 array('description' => __('A widget to display your upcoming events.', 'event_espresso')),
35 35
 			array(
36 36
 				'width' => 300,
37 37
 				'height' => 350,
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
 	 * @param array $instance Previously saved values from database.
50 50
 	 * @return string|void
51 51
 	 */
52
-	public function form( $instance ) {
52
+	public function form($instance) {
53 53
 
54
-		EE_Registry::instance()->load_helper( 'Form_Fields' );
55
-		EE_Registry::instance()->load_class( 'Question_Option', array(), FALSE, FALSE, TRUE );
54
+		EE_Registry::instance()->load_helper('Form_Fields');
55
+		EE_Registry::instance()->load_class('Question_Option', array(), FALSE, FALSE, TRUE);
56 56
 		// Set up some default widget settings.
57 57
 		$defaults = array(
58 58
 			'title' => __('Upcoming Events', 'event_espresso'),
@@ -67,12 +67,12 @@  discard block
 block discarded – undo
67 67
 			'image_size' => 'medium'
68 68
 		);
69 69
 
70
-		$instance = wp_parse_args( (array) $instance, $defaults );
70
+		$instance = wp_parse_args((array) $instance, $defaults);
71 71
 		// don't add HTML labels for EE_Form_Fields generated inputs
72
-		add_filter( 'FHEE__EEH_Form_Fields__label_html', '__return_empty_string' );
72
+		add_filter('FHEE__EEH_Form_Fields__label_html', '__return_empty_string');
73 73
 		$yes_no_values = array(
74
-			EE_Question_Option::new_instance( array( 'QSO_value' => FALSE, 'QSO_desc' => __('No', 'event_espresso'))),
75
-			EE_Question_Option::new_instance( array( 'QSO_value' => TRUE, 'QSO_desc' => __('Yes', 'event_espresso')))
74
+			EE_Question_Option::new_instance(array('QSO_value' => FALSE, 'QSO_desc' => __('No', 'event_espresso'))),
75
+			EE_Question_Option::new_instance(array('QSO_value' => TRUE, 'QSO_desc' => __('Yes', 'event_espresso')))
76 76
 		);
77 77
 
78 78
 	?>
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 			<label for="<?php echo $this->get_field_id('title'); ?>">
84 84
 				<?php _e('Title:', 'event_espresso'); ?>
85 85
 			</label>
86
-			<input id="<?php echo $this->get_field_id('title'); ?>" class="widefat" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo esc_attr( $instance['title'] ); ?>" type="text" />
86
+			<input id="<?php echo $this->get_field_id('title'); ?>" class="widefat" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo esc_attr($instance['title']); ?>" type="text" />
87 87
 		</p>
88 88
 		<p>
89 89
 			<label for="<?php echo $this->get_field_id('category_name'); ?>">
@@ -92,16 +92,16 @@  discard block
 block discarded – undo
92 92
 			<?php
93 93
 			$event_categories = array();
94 94
 			/** @type EEM_Term $EEM_Term */
95
-			$EEM_Term = EE_Registry::instance()->load_model( 'Term' );
96
-			$categories = $EEM_Term->get_all_ee_categories( TRUE );
97
-			if ( $categories ) {
98
-				foreach ( $categories as $category ) {
99
-					if ( $category instanceof EE_Term ) {
100
-						$event_categories[] = EE_Question_Option::new_instance( array( 'QSO_value' => $category->get( 'slug' ), 'QSO_desc' => $category->get( 'name' )));
95
+			$EEM_Term = EE_Registry::instance()->load_model('Term');
96
+			$categories = $EEM_Term->get_all_ee_categories(TRUE);
97
+			if ($categories) {
98
+				foreach ($categories as $category) {
99
+					if ($category instanceof EE_Term) {
100
+						$event_categories[] = EE_Question_Option::new_instance(array('QSO_value' => $category->get('slug'), 'QSO_desc' => $category->get('name')));
101 101
 					}
102 102
 				}
103 103
 			}
104
-			array_unshift( $event_categories, EE_Question_Option::new_instance( array( 'QSO_value' => '', 'QSO_desc' => __(' - display all - ', 'event_espresso'))));
104
+			array_unshift($event_categories, EE_Question_Option::new_instance(array('QSO_value' => '', 'QSO_desc' => __(' - display all - ', 'event_espresso'))));
105 105
 			echo EEH_Form_Fields::select(
106 106
 				 __('Event Category:', 'event_espresso'),
107 107
 				$instance['category_name'],
@@ -138,16 +138,16 @@  discard block
 block discarded – undo
138 138
 			<?php
139 139
 			$image_sizes = array();
140 140
 			$sizes = get_intermediate_image_sizes();
141
-			if ( $sizes ) {
141
+			if ($sizes) {
142 142
 				// loop thru images and create option objects out of them
143
-				foreach ( $sizes as $image_size ) {
144
-					$image_size = trim( $image_size );
143
+				foreach ($sizes as $image_size) {
144
+					$image_size = trim($image_size);
145 145
 					// no big images plz
146
-					if ( ! in_array( $image_size, array( 'large', 'post-thumbnail' ))) {
147
-						$image_sizes[] = EE_Question_Option::new_instance( array( 'QSO_value' => $image_size, 'QSO_desc' => $image_size ));
146
+					if ( ! in_array($image_size, array('large', 'post-thumbnail'))) {
147
+						$image_sizes[] = EE_Question_Option::new_instance(array('QSO_value' => $image_size, 'QSO_desc' => $image_size));
148 148
 					}
149 149
 				}
150
-				$image_sizes[] = EE_Question_Option::new_instance( array( 'QSO_value' => 'none', 'QSO_desc' =>  __('don\'t show images', 'event_espresso') ));
150
+				$image_sizes[] = EE_Question_Option::new_instance(array('QSO_value' => 'none', 'QSO_desc' =>  __('don\'t show images', 'event_espresso')));
151 151
 			}
152 152
 			echo EEH_Form_Fields::select(
153 153
 				 __('Image Size:', 'event_espresso'),
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 			<label for="<?php echo $this->get_field_id('date_limit'); ?>">
206 206
 				<?php _e('Number of Dates to Display:', 'event_espresso'); ?>
207 207
 			</label>
208
-			<input id="<?php echo $this->get_field_id('date_limit'); ?>" name="<?php echo $this->get_field_name('date_limit'); ?>" value="<?php echo esc_attr( $instance['date_limit'] ); ?>" size="3" type="text" />
208
+			<input id="<?php echo $this->get_field_id('date_limit'); ?>" name="<?php echo $this->get_field_name('date_limit'); ?>" value="<?php echo esc_attr($instance['date_limit']); ?>" size="3" type="text" />
209 209
 		</p>
210 210
 		<p>
211 211
 			<label for="<?php echo $this->get_field_id('date_range'); ?>">
@@ -237,9 +237,9 @@  discard block
 block discarded – undo
237 237
 	 *
238 238
 	 * @return array Updated safe values to be saved.
239 239
 	 */
240
-	public function update( $new_instance, $old_instance ) {
240
+	public function update($new_instance, $old_instance) {
241 241
 		$instance = $old_instance;
242
-		$instance['title'] = ! empty( $new_instance['title'] ) ? strip_tags( $new_instance['title'] ) : '';
242
+		$instance['title'] = ! empty($new_instance['title']) ? strip_tags($new_instance['title']) : '';
243 243
 		$instance['category_name'] = $new_instance['category_name'];
244 244
 		$instance['show_expired'] = $new_instance['show_expired'];
245 245
 		$instance['limit'] = $new_instance['limit'];
@@ -262,20 +262,20 @@  discard block
 block discarded – undo
262 262
 	 * @param array $args     Widget arguments.
263 263
 	 * @param array $instance Saved values from database.
264 264
 	 */
265
-	public function widget( $args, $instance ) {
265
+	public function widget($args, $instance) {
266 266
 
267 267
 		global $post;
268 268
 		// make sure there is some kinda post object
269
-		if ( $post instanceof WP_Post ) {
269
+		if ($post instanceof WP_Post) {
270 270
 			$before_widget = '';
271 271
 			$before_title = '';
272 272
 			$after_title = '';
273 273
 			$after_widget = '';
274 274
 			// but NOT an events archives page, cuz that would be like two event lists on the same page
275
-			$show_everywhere = isset( $instance['show_everywhere'] ) ? (bool) absint( $instance['show_everywhere'] ) : TRUE;
276
-			if ( $show_everywhere || ! ( $post->post_type == 'espresso_events' && is_archive() )) {	
275
+			$show_everywhere = isset($instance['show_everywhere']) ? (bool) absint($instance['show_everywhere']) : TRUE;
276
+			if ($show_everywhere || ! ($post->post_type == 'espresso_events' && is_archive())) {	
277 277
 				// let's use some of the event helper functions'
278
-				EE_Registry::instance()->load_helper( 'Event_View' );
278
+				EE_Registry::instance()->load_helper('Event_View');
279 279
 				// make separate vars out of attributes
280 280
 
281 281
 
@@ -293,76 +293,76 @@  discard block
 block discarded – undo
293 293
 				// Before widget (defined by themes).
294 294
 				echo $before_widget;
295 295
 				// Display the widget title if one was input (before and after defined by themes).
296
-				if ( ! empty( $title )) {
297
-					echo $before_title . $title . $after_title;
296
+				if ( ! empty($title)) {
297
+					echo $before_title.$title.$after_title;
298 298
 				}
299 299
 				// grab widget settings
300
-				$category = isset( $instance['category_name'] ) && ! empty( $instance['category_name'] ) ? $instance['category_name'] : FALSE;
301
-				$show_expired = isset( $instance['show_expired'] ) ? (bool) absint( $instance['show_expired'] ) : FALSE;
302
-				$image_size = isset( $instance['image_size'] ) && ! empty( $instance['image_size'] ) ? $instance['image_size'] : 'medium';
303
-				$show_desc = isset( $instance['show_desc'] ) ? (bool) absint( $instance['show_desc'] ) : TRUE;
304
-				$show_dates = isset( $instance['show_dates'] ) ? (bool) absint( $instance['show_dates'] ) : TRUE;
305
-				$date_limit = isset( $instance['date_limit'] ) && ! empty( $instance['date_limit'] ) ? $instance['date_limit'] : NULL;
306
-				$date_range = isset( $instance['date_range'] ) && ! empty( $instance['date_range'] ) ? $instance['date_range'] : FALSE;
300
+				$category = isset($instance['category_name']) && ! empty($instance['category_name']) ? $instance['category_name'] : FALSE;
301
+				$show_expired = isset($instance['show_expired']) ? (bool) absint($instance['show_expired']) : FALSE;
302
+				$image_size = isset($instance['image_size']) && ! empty($instance['image_size']) ? $instance['image_size'] : 'medium';
303
+				$show_desc = isset($instance['show_desc']) ? (bool) absint($instance['show_desc']) : TRUE;
304
+				$show_dates = isset($instance['show_dates']) ? (bool) absint($instance['show_dates']) : TRUE;
305
+				$date_limit = isset($instance['date_limit']) && ! empty($instance['date_limit']) ? $instance['date_limit'] : NULL;
306
+				$date_range = isset($instance['date_range']) && ! empty($instance['date_range']) ? $instance['date_range'] : FALSE;
307 307
 				// start to build our where clause
308 308
 				$where = array(
309 309
 //					'Datetime.DTT_is_primary' => 1,
310 310
 					'status' => 'publish'
311 311
 				);
312 312
 				// add category
313
-				if ( $category ) {
313
+				if ($category) {
314 314
 					$where['Term_Taxonomy.taxonomy'] = 'espresso_event_categories';
315 315
 					$where['Term_Taxonomy.Term.slug'] = $category;
316 316
 				}
317 317
 				// if NOT expired then we want events that start today or in the future
318
-				if ( ! $show_expired ) {
319
-					$where['Datetime.DTT_EVT_end'] = array( '>=', current_time( 'mysql' ));
318
+				if ( ! $show_expired) {
319
+					$where['Datetime.DTT_EVT_end'] = array('>=', current_time('mysql'));
320 320
 				}
321 321
 				// run the query
322
-				$events = EE_Registry::instance()->load_model( 'Event' )->get_all( array(
322
+				$events = EE_Registry::instance()->load_model('Event')->get_all(array(
323 323
 					$where,
324
-					'limit' => $instance['limit'] > 0 ? '0,' . $instance['limit'] : '0,10',
324
+					'limit' => $instance['limit'] > 0 ? '0,'.$instance['limit'] : '0,10',
325 325
 					'order_by' => 'Datetime.DTT_EVT_start',
326 326
 					'order' => 'ASC',
327 327
 					'group_by' => 'EVT_ID'
328 328
 				));
329 329
 
330
-				if ( ! empty( $events )) {
330
+				if ( ! empty($events)) {
331 331
 					echo '<ul class="ee-upcoming-events-widget-ul">';
332
-					foreach ( $events as $event ) {
333
-						if ( $event instanceof EE_Event && ( !is_single() || $post->ID != $event->ID() ) ) {
332
+					foreach ($events as $event) {
333
+						if ($event instanceof EE_Event && ( ! is_single() || $post->ID != $event->ID())) {
334 334
 							//printr( $event, '$event  <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span>', 'auto' );
335
-							echo '<li id="ee-upcoming-events-widget-li-' . $event->ID() . '" class="ee-upcoming-events-widget-li">';
335
+							echo '<li id="ee-upcoming-events-widget-li-'.$event->ID().'" class="ee-upcoming-events-widget-li">';
336 336
 							// how big is the event name ?
337
-							$name_length = strlen( $event->name() );
338
-							switch( $name_length ) {
337
+							$name_length = strlen($event->name());
338
+							switch ($name_length) {
339 339
 								case $name_length > 70 :
340
-									$len_class =  ' three-line';
340
+									$len_class = ' three-line';
341 341
 									break;
342 342
 								case $name_length > 35 :
343
-									$len_class =  ' two-line';
343
+									$len_class = ' two-line';
344 344
 									break;
345 345
 								default :
346
-									$len_class =  ' one-line';
346
+									$len_class = ' one-line';
347 347
 							}
348
-							echo '<h5 class="ee-upcoming-events-widget-title-h5"><a class="ee-widget-event-name-a' . $len_class . '" href="' . get_permalink( $event->ID() ) . '">' . $event->name() . '</a></h5>';
349
-							if ( has_post_thumbnail( $event->ID() ) && $image_size != 'none' ) {
350
-								echo '<div class="ee-upcoming-events-widget-img-dv"><a class="ee-upcoming-events-widget-img" href="' . get_permalink( $event->ID() ) . '">' . get_the_post_thumbnail( $event->ID(), $image_size ) . '</a></div>';
348
+							echo '<h5 class="ee-upcoming-events-widget-title-h5"><a class="ee-widget-event-name-a'.$len_class.'" href="'.get_permalink($event->ID()).'">'.$event->name().'</a></h5>';
349
+							if (has_post_thumbnail($event->ID()) && $image_size != 'none') {
350
+								echo '<div class="ee-upcoming-events-widget-img-dv"><a class="ee-upcoming-events-widget-img" href="'.get_permalink($event->ID()).'">'.get_the_post_thumbnail($event->ID(), $image_size).'</a></div>';
351 351
 							}
352
-							$desc = $event->short_description( 25 );
353
-							if ( $show_dates ) {
354
-								$date_format = apply_filters( 'FHEE__espresso_event_date_range__date_format', get_option( 'date_format' ));
355
-								$time_format = apply_filters( 'FHEE__espresso_event_date_range__time_format', get_option( 'time_format' ));
356
-								$single_date_format = apply_filters( 'FHEE__espresso_event_date_range__single_date_format', get_option( 'date_format' ));
357
-								$single_time_format = apply_filters( 'FHEE__espresso_event_date_range__single_time_format', get_option( 'time_format' ));
358
-								if ( $date_range == TRUE ) {
359
-									echo espresso_event_date_range( $date_format, $time_format, $single_date_format, $single_time_format, $event->ID() );
360
-								}else{
361
-									echo espresso_list_of_event_dates( $event->ID(), $date_format, $time_format, FALSE, NULL, TRUE, TRUE, $date_limit );
352
+							$desc = $event->short_description(25);
353
+							if ($show_dates) {
354
+								$date_format = apply_filters('FHEE__espresso_event_date_range__date_format', get_option('date_format'));
355
+								$time_format = apply_filters('FHEE__espresso_event_date_range__time_format', get_option('time_format'));
356
+								$single_date_format = apply_filters('FHEE__espresso_event_date_range__single_date_format', get_option('date_format'));
357
+								$single_time_format = apply_filters('FHEE__espresso_event_date_range__single_time_format', get_option('time_format'));
358
+								if ($date_range == TRUE) {
359
+									echo espresso_event_date_range($date_format, $time_format, $single_date_format, $single_time_format, $event->ID());
360
+								} else {
361
+									echo espresso_list_of_event_dates($event->ID(), $date_format, $time_format, FALSE, NULL, TRUE, TRUE, $date_limit);
362 362
 								}
363 363
 							}
364
-							if ( $show_desc && $desc ) {
365
-								echo '<p style="margin-top: .5em">' . $desc . '</p>';
364
+							if ($show_desc && $desc) {
365
+								echo '<p style="margin-top: .5em">'.$desc.'</p>';
366 366
 							}
367 367
 							echo '</li>';
368 368
 						}
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
 	 * @return string
386 386
 	 */
387 387
 	public function make_the_title_a_link($title) {
388
-	    return '<a href="' . EEH_Event_View::event_archive_url() . '">' . $title . '</a>';
388
+	    return '<a href="'.EEH_Event_View::event_archive_url().'">'.$title.'</a>';
389 389
 	}
390 390
 
391 391
 }
Please login to merge, or discard this patch.
admin_pages/about/templates/credits.template.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 <ul class="wp-people-group" id="ee-people-group-owners">
4 4
 	<li class="wp-person" id="ee-person-sshoultes">
5 5
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
6
-			<?php echo esp_gravatar_image( '[email protected]', 'Seth Shoultes' ); ?>
6
+			<?php echo esp_gravatar_image('[email protected]', 'Seth Shoultes'); ?>
7 7
 		</a>
8 8
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
9 9
 			Seth Shoultes
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 	</li>
13 13
 	<li class="wp-person" id="ee-person-gkoyle">
14 14
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
15
-			<?php echo esp_gravatar_image( '[email protected]', 'Garth Koyle' ); ?>
15
+			<?php echo esp_gravatar_image('[email protected]', 'Garth Koyle'); ?>
16 16
 		</a>
17 17
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
18 18
 			Garth Koyle
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 <ul class="wp-people-group" id="ee-people-group-core-developers">
25 25
 	<li class="wp-person" id="ee-person-bchristensen">
26 26
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
27
-			<?php echo esp_gravatar_image( '[email protected]', 'Brent Christensen' ); ?>
27
+			<?php echo esp_gravatar_image('[email protected]', 'Brent Christensen'); ?>
28 28
 		</a>
29 29
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
30 30
 			Brent Christensen
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	</li>
34 34
 	<li class="wp-person" id="ee-person-dethier">
35 35
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
36
-			<?php echo esp_gravatar_image( '[email protected]', 'Darren Ethier' ); ?>
36
+			<?php echo esp_gravatar_image('[email protected]', 'Darren Ethier'); ?>
37 37
 		</a>
38 38
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
39 39
 			Darren Ethier
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	</li>
43 43
 	<li class="wp-person" id="ee-person-mnelson">
44 44
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
45
-			<?php echo esp_gravatar_image( '[email protected]', 'Michael Nelson' ); ?>
45
+			<?php echo esp_gravatar_image('[email protected]', 'Michael Nelson'); ?>
46 46
 		</a>
47 47
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
48 48
 			Michael Nelson
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 <ul class="wp-people-group" id="ee-people-group-support-staff">
55 55
 	<li class="wp-person" id="ee-person-jfeck">
56 56
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
57
-			<?php echo esp_gravatar_image( '[email protected]', 'Josh Feck' ); ?>
57
+			<?php echo esp_gravatar_image('[email protected]', 'Josh Feck'); ?>
58 58
 		</a>
59 59
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
60 60
 			Josh Feck
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	</li>
63 63
 	<li class="wp-person" id="ee-person-drobinson">
64 64
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
65
-			<?php echo esp_gravatar_image( '[email protected]', 'Dean Robinson' ); ?>
65
+			<?php echo esp_gravatar_image('[email protected]', 'Dean Robinson'); ?>
66 66
 		</a>
67 67
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
68 68
 			Dean Robinson
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	</li>
71 71
 	<li class="wp-person" id="ee-person-jwilson">
72 72
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
73
-			<?php echo esp_gravatar_image( '[email protected]', 'Jonathan Wilson' ); ?>
73
+			<?php echo esp_gravatar_image('[email protected]', 'Jonathan Wilson'); ?>
74 74
 		</a>
75 75
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
76 76
 			Jonathan Wilson
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	</li>
79 79
 	<li class="wp-person" id="ee-person-sharrel">
80 80
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
81
-			<?php echo esp_gravatar_image( '[email protected]', 'Sidney Harrell' ); ?>
81
+			<?php echo esp_gravatar_image('[email protected]', 'Sidney Harrell'); ?>
82 82
 		</a>
83 83
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
84 84
 			Sidney Harrel
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	</li>
87 87
 	<li class="wp-person" id="ee-person-twarwick">
88 88
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
89
-			<?php echo esp_gravatar_image( '[email protected]', 'Tony Warwick' ); ?>
89
+			<?php echo esp_gravatar_image('[email protected]', 'Tony Warwick'); ?>
90 90
 		</a>
91 91
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
92 92
 			Tony Warwick
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	</li>
95 95
 	<li class="wp-person" id="ee-person-lcaum">
96 96
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
97
-			<?php echo esp_gravatar_image( '[email protected]', 'Lorenzo Caum' ); ?>
97
+			<?php echo esp_gravatar_image('[email protected]', 'Lorenzo Caum'); ?>
98 98
 		</a>
99 99
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
100 100
 			Lorenzo Caum
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 </ul>
105 105
 <h4 class="wp-people-group"><?php _e('Contributor Recognition', 'event_espresso'); ?></h4>
106 106
 <p class="description">
107
-	<?php printf( __('For every major release we want to recognize the people who contributed to the release via a Github pull request. Want to see your name listed here? %sApply for access to our github repo.%s When you submit a pull request that gets included in a major release, we\'ll add your name here linked to your Github profile.', 'event_espresso'), '<a href="http://eventespresso.com/developers/request-repo-access/">', '</a>' ); ?>
107
+	<?php printf(__('For every major release we want to recognize the people who contributed to the release via a Github pull request. Want to see your name listed here? %sApply for access to our github repo.%s When you submit a pull request that gets included in a major release, we\'ll add your name here linked to your Github profile.', 'event_espresso'), '<a href="http://eventespresso.com/developers/request-repo-access/">', '</a>'); ?>
108 108
 </p>
109 109
 <p class="wp-credits-list">
110 110
 	<ul>
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 </p>
116 116
 <h4 class="wp-people-group"><?php _e('External Libraries', 'event_espresso'); ?></h4>
117 117
 <p class="description">
118
-	<?php printf( __('Along with the libraries %sincluded with WordPress%s, Event Espresso utilizes the following third party libraries:', 'event_espresso'), '<a href="credits.php">', '</a>' ); ?>
118
+	<?php printf(__('Along with the libraries %sincluded with WordPress%s, Event Espresso utilizes the following third party libraries:', 'event_espresso'), '<a href="credits.php">', '</a>'); ?>
119 119
 </p>
120 120
 <p class="wp-credits-list">
121 121
 	<a href="http://josscrowcroft.github.io/accounting.js/"><?php _e('accounting.js', 'event_espresso'); ?></a>,
@@ -131,10 +131,10 @@  discard block
 block discarded – undo
131 131
 
132 132
 <?php
133 133
 	function esp_gravatar_profile($email) {
134
-		echo 'http://www.gravatar.com/' . md5($email);
134
+		echo 'http://www.gravatar.com/'.md5($email);
135 135
 	}
136 136
 
137 137
 	function esp_gravatar_image($email, $name) {
138
-		echo '<img src="http://0.gravatar.com/avatar/' . md5($email) . '?s=60" class="gravatar" alt="' . $name . '"/>';
138
+		echo '<img src="http://0.gravatar.com/avatar/'.md5($email).'?s=60" class="gravatar" alt="'.$name.'"/>';
139 139
 	}
140 140
 ?>
Please login to merge, or discard this patch.