Completed
Branch BUG-10636-remove-unnecessary-b... (dfa227)
by
unknown
35:02 queued 23:26
created
libraries/messages/defaults/EE_Messages_Template_Pack_Default.class.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,9 @@
 block discarded – undo
5 5
  * @subpackage messages
6 6
  * @since           4.5.0
7 7
  */
8
-if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
8
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
9
+	exit('No direct script access allowed');
10
+}
9 11
 
10 12
 /**
11 13
  * This is the default messages template pack.
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
 		$this->label = __('Default', 'event_espresso');
22 22
 		$this->dbref = 'default';
23 23
 		$this->description = __('This is the default template pack included with Event Espresso core messages system.', 'event_espresso');
24
-		$this->_base_url = EE_PLUGIN_DIR_URL . 'core/libraries/messages/defaults/default/';
25
-		$this->_base_path = EE_LIBRARIES . 'messages/defaults/default/';
24
+		$this->_base_url = EE_PLUGIN_DIR_URL.'core/libraries/messages/defaults/default/';
25
+		$this->_base_path = EE_LIBRARIES.'messages/defaults/default/';
26 26
 		$this->_supports = array(
27 27
 			'email' => array(
28 28
 				'cancelled_registration', 'declined_registration', 'not_approved_registration', 'pending_approval', 'registration',
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
 				'receipt', 'invoice'
34 34
 				)
35 35
 			);
36
-		$this->_default_variation_labels= array(
37
-			'email' => __('Default', 'event_espresso' ),
38
-			'html' =>  __('Simple', 'event_espresso' )
36
+		$this->_default_variation_labels = array(
37
+			'email' => __('Default', 'event_espresso'),
38
+			'html' =>  __('Simple', 'event_espresso')
39 39
 			 );
40 40
 		$this->_variations = array(
41 41
 			'html' => array(
@@ -63,18 +63,18 @@  discard block
 block discarded – undo
63 63
 
64 64
 
65 65
 
66
-	public function get_default_variation( $messenger, $message_type, $type, $url, $file_extension ) {
66
+	public function get_default_variation($messenger, $message_type, $type, $url, $file_extension) {
67 67
 		$base = $url ? $this->_base_url : $this->_base_path;
68 68
 		$base_path = $this->_base_path;
69 69
 		//possible variation paths considering whether message type is present or not in the file name.
70
-		$path_string = 'variations/' . $messenger . '_' . $message_type . '_'  . $type . '_default' . $file_extension;
71
-		$default_path_string = 'variations/' . $messenger . '_' . $type . '_default' . $file_extension;
70
+		$path_string = 'variations/'.$messenger.'_'.$message_type.'_'.$type.'_default'.$file_extension;
71
+		$default_path_string = 'variations/'.$messenger.'_'.$type.'_default'.$file_extension;
72 72
 		//first see if fully validated file exists.
73
-		if ( is_readable( $base_path . $path_string ) ) {
74
-			$variation_path = $base . $path_string;
73
+		if (is_readable($base_path.$path_string)) {
74
+			$variation_path = $base.$path_string;
75 75
 		//otherwise see if default exists.
76
-		} elseif ( is_readable( $base_path . $default_path_string ) ) {
77
-			$variation_path = $base . $default_path_string;
76
+		} elseif (is_readable($base_path.$default_path_string)) {
77
+			$variation_path = $base.$default_path_string;
78 78
 		} else {
79 79
 			//no matches found so nothing is present.
80 80
 			$variation_path = '';
Please login to merge, or discard this patch.
messages/defaults/default/email_cancelled_registration_content.template.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 						<tbody>
32 32
 							<tr>
33 33
 								<td>
34
-									<h2><?php printf( __( 'Hello, %s', 'event_espresso' ), '[RECIPIENT_FNAME]' ); ?>:</h2>
34
+									<h2><?php printf(__('Hello, %s', 'event_espresso'), '[RECIPIENT_FNAME]'); ?>:</h2>
35 35
 
36
-									<p class="lead"><?php _e( 'Your registration was cancelled for the following tickets:', 'event_espresso' ); ?></p>
36
+									<p class="lead"><?php _e('Your registration was cancelled for the following tickets:', 'event_espresso'); ?></p>
37 37
 								</td>
38 38
 							</tr>
39 39
 						</tbody>
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
 									<tbody>
63 63
 										<tr>
64 64
 											<td>
65
-												<h5><?php _e( 'Connect with Us:', 'event_espresso' ); ?></h5>
66
-												<a class="soc-btn fb" href="[CO_FACEBOOK_URL]"><?php _e( 'Facebook', 'event_espresso' ); ?></a>
67
-												<a class="soc-btn tw" href="[CO_TWITTER_URL]"><?php _e( 'Twitter', 'event_espresso' ); ?></a>
68
-												<a class="soc-btn gp" href="[CO_GOOGLE_URL]"><?php _e( 'Google+', 'event_espresso' ); ?></a>
65
+												<h5><?php _e('Connect with Us:', 'event_espresso'); ?></h5>
66
+												<a class="soc-btn fb" href="[CO_FACEBOOK_URL]"><?php _e('Facebook', 'event_espresso'); ?></a>
67
+												<a class="soc-btn tw" href="[CO_TWITTER_URL]"><?php _e('Twitter', 'event_espresso'); ?></a>
68
+												<a class="soc-btn gp" href="[CO_GOOGLE_URL]"><?php _e('Google+', 'event_espresso'); ?></a>
69 69
 											</td>
70 70
 										</tr>
71 71
 									</tbody>
@@ -75,9 +75,9 @@  discard block
 block discarded – undo
75 75
 									<tbody>
76 76
 										<tr>
77 77
 											<td>
78
-												<h5><?php _e( 'Contact Info:', 'event_espresso' ); ?></h5>
79
-												<?php _e( 'Phone:', 'event_espresso' ); ?> <strong>[CO_PHONE]</strong>
80
-												<?php _e( 'Email:', 'event_espresso' ); ?>
78
+												<h5><?php _e('Contact Info:', 'event_espresso'); ?></h5>
79
+												<?php _e('Phone:', 'event_espresso'); ?> <strong>[CO_PHONE]</strong>
80
+												<?php _e('Email:', 'event_espresso'); ?>
81 81
 												<strong><a href="mailto:[CO_EMAIL]" target="_blank">[CO_EMAIL]</a></strong>
82 82
 											</td>
83 83
 										</tr>
Please login to merge, or discard this patch.
defaults/default/email_cancelled_registration_content_admin.template.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 						<tbody>
32 32
 							<tr>
33 33
 								<td>
34
-									<h2><?php printf( __( 'Hello, %s:', 'event_espresso' ), '[EVENT_AUTHOR_FNAME]' ); ?></h2>
34
+									<h2><?php printf(__('Hello, %s:', 'event_espresso'), '[EVENT_AUTHOR_FNAME]'); ?></h2>
35 35
 
36
-									<p class="lead"><?php _e( 'Registrations were cancelled for the following events.', 'event_espresso' ); ?></p>
36
+									<p class="lead"><?php _e('Registrations were cancelled for the following events.', 'event_espresso'); ?></p>
37 37
 								</td>
38 38
 							</tr>
39 39
 						</tbody>
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
 									<tbody>
60 60
 										<tr>
61 61
 											<td>
62
-												<h5><?php _e( 'Connect with Us:', 'event_espresso' ); ?></h5>
63
-												<a class="soc-btn fb" href="[CO_FACEBOOK_URL]"><?php _e( 'Facebook', 'event_espresso' ); ?></a>
64
-												<a class="soc-btn tw" href="[CO_TWITTER_URL]"><?php _e( 'Twitter', 'event_espresso' ); ?></a>
65
-												<a class="soc-btn gp" href="[CO_GOOGLE_URL]"><?php _e( 'Google+', 'event_espresso' ); ?></a>
62
+												<h5><?php _e('Connect with Us:', 'event_espresso'); ?></h5>
63
+												<a class="soc-btn fb" href="[CO_FACEBOOK_URL]"><?php _e('Facebook', 'event_espresso'); ?></a>
64
+												<a class="soc-btn tw" href="[CO_TWITTER_URL]"><?php _e('Twitter', 'event_espresso'); ?></a>
65
+												<a class="soc-btn gp" href="[CO_GOOGLE_URL]"><?php _e('Google+', 'event_espresso'); ?></a>
66 66
 											</td>
67 67
 										</tr>
68 68
 									</tbody>
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
 									<tbody>
73 73
 										<tr>
74 74
 											<td>
75
-												<h5><?php _e( 'Contact Info:', 'event_espresso' ); ?></h5>
76
-												<?php _e( 'Phone:', 'event_espresso' ); ?> <strong>[CO_PHONE]</strong>
77
-												<?php _e( 'Email:', 'event_espresso' ); ?>
75
+												<h5><?php _e('Contact Info:', 'event_espresso'); ?></h5>
76
+												<?php _e('Phone:', 'event_espresso'); ?> <strong>[CO_PHONE]</strong>
77
+												<?php _e('Email:', 'event_espresso'); ?>
78 78
 												<strong><a href="mailto:[CO_EMAIL]" target="_blank">[CO_EMAIL]</a></strong>
79 79
 											</td>
80 80
 										</tr>
Please login to merge, or discard this patch.
messages/defaults/default/email_declined_registration_content.template.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
 						<tbody>
32 32
 							<tr>
33 33
 								<td>
34
-									<h2><?php printf( __( 'Hello, %s:', 'event_espresso' ), '[RECIPIENT_FNAME]' ); ?></h2>
35
-									<p class="lead"><?php _e( 'Your registration was declined for the following tickets:', 'event_espresso' ); ?></p>
34
+									<h2><?php printf(__('Hello, %s:', 'event_espresso'), '[RECIPIENT_FNAME]'); ?></h2>
35
+									<p class="lead"><?php _e('Your registration was declined for the following tickets:', 'event_espresso'); ?></p>
36 36
 								</td>
37 37
 							</tr>
38 38
 						</tbody>
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
 									<tbody>
62 62
 										<tr>
63 63
 											<td>
64
-												<h5><?php _e( 'Connect with Us:', 'event_espresso' ); ?></h5>
65
-												<a class="soc-btn fb" href="[CO_FACEBOOK_URL]"><?php _e( 'Facebook', 'event_espresso' ); ?></a>
66
-												<a class="soc-btn tw" href="[CO_TWITTER_URL]"><?php _e( 'Twitter', 'event_espresso' ); ?></a>
67
-												<a class="soc-btn gp" href="[CO_GOOGLE_URL]"><?php _e( 'Google+', 'event_espresso' ); ?></a>
64
+												<h5><?php _e('Connect with Us:', 'event_espresso'); ?></h5>
65
+												<a class="soc-btn fb" href="[CO_FACEBOOK_URL]"><?php _e('Facebook', 'event_espresso'); ?></a>
66
+												<a class="soc-btn tw" href="[CO_TWITTER_URL]"><?php _e('Twitter', 'event_espresso'); ?></a>
67
+												<a class="soc-btn gp" href="[CO_GOOGLE_URL]"><?php _e('Google+', 'event_espresso'); ?></a>
68 68
 											</td>
69 69
 										</tr>
70 70
 									</tbody>
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
 									<tbody>
75 75
 										<tr>
76 76
 											<td>
77
-												<h5><?php _e( 'Contact Info:', 'event_espresso' ); ?></h5>
78
-												<?php _e( 'Phone:', 'event_espresso' ); ?> <strong>[CO_PHONE]</strong>
79
-												<?php _e( 'Email:', 'event_espresso' ); ?>
77
+												<h5><?php _e('Contact Info:', 'event_espresso'); ?></h5>
78
+												<?php _e('Phone:', 'event_espresso'); ?> <strong>[CO_PHONE]</strong>
79
+												<?php _e('Email:', 'event_espresso'); ?>
80 80
 												<strong><a href="mailto:[CO_EMAIL]" target="_blank">[CO_EMAIL]</a></strong>
81 81
 											</td>
82 82
 										</tr>
Please login to merge, or discard this patch.
defaults/default/email_declined_registration_content_admin.template.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
 						<tbody>
32 32
 							<tr>
33 33
 								<td>
34
-									<h2><?php printf( __( 'Hello, %s:', 'event_espresso' ), '[EVENT_AUTHOR_FNAME]' ); ?></h2>
35
-									<p class="lead"><?php _e( 'Registrations were declined for the following events:', 'event_espresso' ); ?></p>
34
+									<h2><?php printf(__('Hello, %s:', 'event_espresso'), '[EVENT_AUTHOR_FNAME]'); ?></h2>
35
+									<p class="lead"><?php _e('Registrations were declined for the following events:', 'event_espresso'); ?></p>
36 36
 								</td>
37 37
 							</tr>
38 38
 						</tbody>
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
 									<tbody>
59 59
 										<tr>
60 60
 											<td>
61
-												<h5><?php _e( 'Connect with Us:', 'event_espresso' ); ?></h5>
62
-												<a class="soc-btn fb" href="[CO_FACEBOOK_URL]"><?php _e( 'Facebook', 'event_espresso' ); ?></a>
63
-												<a class="soc-btn tw" href="[CO_TWITTER_URL]"><?php _e( 'Twitter', 'event_espresso' ); ?></a>
64
-												<a class="soc-btn gp" href="[CO_GOOGLE_URL]"><?php _e( 'Google+', 'event_espresso' ); ?></a>
61
+												<h5><?php _e('Connect with Us:', 'event_espresso'); ?></h5>
62
+												<a class="soc-btn fb" href="[CO_FACEBOOK_URL]"><?php _e('Facebook', 'event_espresso'); ?></a>
63
+												<a class="soc-btn tw" href="[CO_TWITTER_URL]"><?php _e('Twitter', 'event_espresso'); ?></a>
64
+												<a class="soc-btn gp" href="[CO_GOOGLE_URL]"><?php _e('Google+', 'event_espresso'); ?></a>
65 65
 											</td>
66 66
 										</tr>
67 67
 									</tbody>
@@ -71,9 +71,9 @@  discard block
 block discarded – undo
71 71
 									<tbody>
72 72
 										<tr>
73 73
 											<td>
74
-												<h5><?php _e( 'Contact Info:', 'event_espresso' ); ?></h5>
75
-												<?php _e( 'Phone:', 'event_espresso' ); ?> <strong>[CO_PHONE]</strong>
76
-												<?php _e( 'Email:', 'event_espresso' ); ?>
74
+												<h5><?php _e('Contact Info:', 'event_espresso'); ?></h5>
75
+												<?php _e('Phone:', 'event_espresso'); ?> <strong>[CO_PHONE]</strong>
76
+												<?php _e('Email:', 'event_espresso'); ?>
77 77
 												<strong><a href="mailto:[CO_EMAIL]" target="_blank">[CO_EMAIL]</a></strong>
78 78
 											</td>
79 79
 										</tr>
Please login to merge, or discard this patch.
messages/defaults/default/email_declined_registration_subject.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-<?php _e('Declined Registration Details', 'event_espresso');?>
2 1
\ No newline at end of file
2
+<?php _e('Declined Registration Details', 'event_espresso'); ?>
3 3
\ No newline at end of file
Please login to merge, or discard this patch.
defaults/default/email_not_approved_registration_attendee_list.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <h5>[FNAME] [LNAME]</h5>
2 2
 <ul>
3
-	<li><strong><?php _e( 'Registration Code:', 'event_espresso' ); ?></strong> [REGISTRATION_CODE]</li>
4
-	<li><strong><?php _e( 'Tickets:', 'event_espresso' ); ?></strong></li>
3
+	<li><strong><?php _e('Registration Code:', 'event_espresso'); ?></strong> [REGISTRATION_CODE]</li>
4
+	<li><strong><?php _e('Tickets:', 'event_espresso'); ?></strong></li>
5 5
 </ul>
6 6
 <ul>
7 7
 	<li>[TICKET_LIST]</li>
Please login to merge, or discard this patch.
default/email_not_approved_registration_attendee_list_admin.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <h5><a href="[EDIT_ATTENDEE_LINK]">[FNAME] [LNAME]</a></h5>
2 2
 <ul>
3 3
 	<li>
4
-		<strong><?php _e( 'Registration Code:', 'event_espresso' ); ?></strong>
4
+		<strong><?php _e('Registration Code:', 'event_espresso'); ?></strong>
5 5
 		<a href="[EDIT_ATTENDEE_LINK]">[REGISTRATION_CODE]</a>
6 6
 	</li>
7 7
 	<li>
8
-		<strong><?php _e( 'Tickets:', 'event_espresso' ); ?></strong>
8
+		<strong><?php _e('Tickets:', 'event_espresso'); ?></strong>
9 9
 		<ul>[TICKET_LIST]</ul>
10 10
 	</li>
11 11
 </ul>
Please login to merge, or discard this patch.
defaults/default/email_not_approved_registration_content.template.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 						<tbody>
32 32
 							<tr>
33 33
 								<td>
34
-									<h2><?php printf( __( 'Hello, %s:', 'event_espresso' ), '[PRIMARY_REGISTRANT_FNAME]' ); ?></h2>
34
+									<h2><?php printf(__('Hello, %s:', 'event_espresso'), '[PRIMARY_REGISTRANT_FNAME]'); ?></h2>
35 35
 
36
-									<p class="lead"><?php _e( 'Your registration(s) are awaiting approval by the event manager. You will be notified when the status of your registration changes.', 'event_espresso' ); ?></p>
36
+									<p class="lead"><?php _e('Your registration(s) are awaiting approval by the event manager. You will be notified when the status of your registration changes.', 'event_espresso'); ?></p>
37 37
 								</td>
38 38
 							</tr>
39 39
 						</tbody>
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
 									<tbody>
60 60
 										<tr>
61 61
 											<td>
62
-												<h5><?php _e( 'Connect with Us:', 'event_espresso' ); ?></h5>
63
-												<a class="soc-btn fb" href="[CO_FACEBOOK_URL]"><?php _e( 'Facebook', 'event_espresso' ); ?></a>
64
-												<a class="soc-btn tw" href="[CO_TWITTER_URL]"><?php _e( 'Twitter', 'event_espresso' ); ?></a>
65
-												<a class="soc-btn gp" href="[CO_GOOGLE_URL]"><?php _e( 'Google+', 'event_espresso' ); ?></a>
62
+												<h5><?php _e('Connect with Us:', 'event_espresso'); ?></h5>
63
+												<a class="soc-btn fb" href="[CO_FACEBOOK_URL]"><?php _e('Facebook', 'event_espresso'); ?></a>
64
+												<a class="soc-btn tw" href="[CO_TWITTER_URL]"><?php _e('Twitter', 'event_espresso'); ?></a>
65
+												<a class="soc-btn gp" href="[CO_GOOGLE_URL]"><?php _e('Google+', 'event_espresso'); ?></a>
66 66
 											</td>
67 67
 										</tr>
68 68
 									</tbody>
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
 									<tbody>
73 73
 										<tr>
74 74
 											<td>
75
-												<h5><?php _e( 'Contact Info:', 'event_espresso' ); ?></h5>
76
-												<?php _e( 'Phone:', 'event_espresso' ); ?> <strong>[CO_PHONE]</strong>
77
-												<?php _e( 'Email:', 'event_espresso' ); ?>
75
+												<h5><?php _e('Contact Info:', 'event_espresso'); ?></h5>
76
+												<?php _e('Phone:', 'event_espresso'); ?> <strong>[CO_PHONE]</strong>
77
+												<?php _e('Email:', 'event_espresso'); ?>
78 78
 												<strong><a href="mailto:[CO_EMAIL]" target="_blank">[CO_EMAIL]</a></strong>
79 79
 											</td>
80 80
 										</tr>
Please login to merge, or discard this patch.