Completed
Branch BUG-10375-migrations-not-repor... (316a48)
by
unknown
157:38 queued 144:46
created
help_tours/Registration_Form_Edit_Question_Group_Help_Tour.class.php 2 patches
Spacing   +9 added lines, -9 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
 /**
@@ -98,34 +98,34 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 	protected function _start() {
101
-		$content = '<h3>' . __('Edit Question Group', 'event_espresso') . '</h3>';
102
-		$content .= '<p>' . __('This tour of the Edit Question Group page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
101
+		$content = '<h3>'.__('Edit Question Group', 'event_espresso').'</h3>';
102
+		$content .= '<p>'.__('This tour of the Edit Question Group page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
103 103
 		
104 104
 		return $content;
105 105
 	}
106 106
 
107 107
 	protected function _qsg_name_stop() {
108
-		return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>';
108
+		return '<p>'.__('The name of the question group.', 'event_espresso').'</p>';
109 109
 	}
110 110
 
111 111
 	protected function _qsg_identifier_stop() {
112
-		return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>';
112
+		return '<p>'.__('A unique name for your question group.', 'event_espresso').'</p>';
113 113
 	}
114 114
 
115 115
 	protected function _qsg_desc_stop() {
116
-		return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>';
116
+		return '<p>'.__('A description of the question group.', 'event_espresso').'</p>';
117 117
 	}
118 118
 
119 119
 	protected function _qsg_order_stop() {
120
-		return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>';
120
+		return '<p>'.__('Set the order that you want your question group to appear in.', 'event_espresso').'</p>';
121 121
 	}
122 122
 
123 123
 	protected function _qsg_show_group_name_stop() {
124
-		return '<p>' . __('Specify whether the group name should be shown on the registration page.', 'event_espresso') . '</p>';
124
+		return '<p>'.__('Specify whether the group name should be shown on the registration page.', 'event_espresso').'</p>';
125 125
 	}
126 126
 
127 127
 	protected function _qsg_show_group_desc_stop() {
128
-		return '<p>' . __('Specify whether the group description should be shown on the registration page.', 'event_espresso') . '</p>';
128
+		return '<p>'.__('Specify whether the group description should be shown on the registration page.', 'event_espresso').'</p>';
129 129
 	}
130 130
 
131 131
 }
132 132
\ 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
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
help_tours/Registration_Form_Edit_Question_Help_Tour.class.php 2 patches
Spacing   +9 added lines, -9 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
 /**
@@ -98,34 +98,34 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 	protected function _start() {
101
-		$content = '<h3>' . __('Edit Question', 'event_espresso') . '</h3>';
102
-		$content .= '<p>' . __('This tour of the Edit Question page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
101
+		$content = '<h3>'.__('Edit Question', 'event_espresso').'</h3>';
102
+		$content .= '<p>'.__('This tour of the Edit Question page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
103 103
 		
104 104
 		return $content;
105 105
 	}
106 106
 
107 107
 	protected function _qst_display_text_stop() {
108
-		return '<p>' . __('This is the question that is displayed to registrants who are signing up for events.', 'event_espresso') . '</p>';
108
+		return '<p>'.__('This is the question that is displayed to registrants who are signing up for events.', 'event_espresso').'</p>';
109 109
 	}
110 110
 
111 111
 	protected function _qst_admin_label_stop() {
112
-		return '<p>' . __('Helps you understand the difference between questions that may appear similar but are actually different.', 'event_espresso') . '</p>';
112
+		return '<p>'.__('Helps you understand the difference between questions that may appear similar but are actually different.', 'event_espresso').'</p>';
113 113
 	}
114 114
 
115 115
 	protected function _qst_admin_only_stop() {
116
-		return '<p>' . __('Specify whether this question should be shown only to the admins.', 'event_espresso') . '</p>';
116
+		return '<p>'.__('Specify whether this question should be shown only to the admins.', 'event_espresso').'</p>';
117 117
 	}
118 118
 
119 119
 	protected function _qst_type_stop() {
120
-		return '<p>' . __('Select the type of question. Available options are text, textarea, single, multiple, dropdown, and date.', 'event_espresso') . '</p>';
120
+		return '<p>'.__('Select the type of question. Available options are text, textarea, single, multiple, dropdown, and date.', 'event_espresso').'</p>';
121 121
 	}
122 122
 
123 123
 	protected function _qst_required_stop() {
124
-		return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>';
124
+		return '<p>'.__('Specify whether this question should be required.', 'event_espresso').'</p>';
125 125
 	}
126 126
 
127 127
 	protected function _qst_required_text_stop() {
128
-		return '<p>' . __('Text to display when registrant does not answer question but is required to.', 'event_espresso') . '</p>';
128
+		return '<p>'.__('Text to display when registrant does not answer question but is required to.', 'event_espresso').'</p>';
129 129
 	}
130 130
 
131 131
 }
132 132
\ 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
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
registration_form/help_tours/Registration_Form_Settings_Help_Tour.class.php 2 patches
Spacing   +9 added lines, -9 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
 /**
@@ -98,34 +98,34 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 	protected function _start() {
101
-		$content = '<h3>' . __('Registration Form Settings', 'event_espresso') . '</h3>';
102
-		$content .= '<p>' . __('This tour of the Registration Form Settings page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
101
+		$content = '<h3>'.__('Registration Form Settings', 'event_espresso').'</h3>';
102
+		$content .= '<p>'.__('This tour of the Registration Form Settings page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
103 103
 		
104 104
 		return $content;
105 105
 	}
106 106
 
107 107
 	protected function _use_recaptcha_stop() {
108
-		return '<p>' . __('Specify whether reCAPTCHA should be enabled.', 'event_espresso') . '</p>';
108
+		return '<p>'.__('Specify whether reCAPTCHA should be enabled.', 'event_espresso').'</p>';
109 109
 	}
110 110
 
111 111
 	protected function _recaptcha_public_key_stop() {
112
-		return '<p>' . __('Enter your public key for reCAPTCHA.', 'event_espresso') . '</p>';
112
+		return '<p>'.__('Enter your public key for reCAPTCHA.', 'event_espresso').'</p>';
113 113
 	}
114 114
 
115 115
 	protected function _recaptcha_private_key_stop() {
116
-		return '<p>' . __('Enter your private key for reCAPTCHA.', 'event_espresso') . '</p>';
116
+		return '<p>'.__('Enter your private key for reCAPTCHA.', 'event_espresso').'</p>';
117 117
 	}
118 118
 
119 119
 	protected function _recaptcha_theme_stop() {
120
-		return '<p>' . __('Select a theme (style) for your reCAPTCHA.', 'event_espresso') . '</p>';
120
+		return '<p>'.__('Select a theme (style) for your reCAPTCHA.', 'event_espresso').'</p>';
121 121
 	}
122 122
 
123 123
 	protected function _recaptcha_language_stop() {
124
-		return '<p>' . __('Specify the language that should be used for reCAPTCHA.', 'event_espresso') . '</p>';
124
+		return '<p>'.__('Specify the language that should be used for reCAPTCHA.', 'event_espresso').'</p>';
125 125
 	}
126 126
 
127 127
 	protected function _recaptcha_width_stop() {
128
-		return '<p>' . __('Specify how wide (in pixels) the reCAPTCHA form should be.', 'event_espresso') . '</p>';
128
+		return '<p>'.__('Specify how wide (in pixels) the reCAPTCHA form should be.', 'event_espresso').'</p>';
129 129
 	}
130 130
 
131 131
 }
132 132
\ 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
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
registration_form/templates/questions_main_meta_box.template.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 							<input type="hidden"  id="QST_type" name="QST_type" value="<?php echo $question->type()?>"/>
93 93
 						<?php
94 94
 							$explanatory_text = __('System question! This field cannot be changed.','event_espresso');
95
-						}else{
95
+						} else{
96 96
 							$explanatory_text = __('Because there are currently answers for this question in the database, your options to change the question type have been limited to similar question-types.','event_espresso');
97 97
 						}
98 98
 						if ( ! empty( $QST_system ) || $has_answers ) { ?>
Please login to merge, or discard this patch.
Spacing   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
 //does question have any answers? cause if it does then we have to disable type
16 16
 $has_answers = $question->has_answers();
17 17
 
18
-if ( $QST_system === 'country' ) {
18
+if ($QST_system === 'country') {
19 19
 	echo EEH_HTML::div(
20
-		EEH_HTML::h4( '<span class="dashicons dashicons-info"></span>' . esc_html__( 'Did you know...', 'event_espresso' ) ) .
20
+		EEH_HTML::h4('<span class="dashicons dashicons-info"></span>'.esc_html__('Did you know...', 'event_espresso')).
21 21
 		EEH_HTML::p(
22 22
 			esc_html__(
23 23
 				'If you add a State/Province Select input immediately after this Country Select input when building your registration form, then the State/Province Select input options will change to correspond with the choice made in this input. So for example, choosing "United States" in this Country Select input will populate the State/Province Select input with just the state options for the United States.',
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 		<tbody>
35 35
 			<tr>
36 36
 				<th>
37
-					<label for="QST_display_text"><?php echo $fields['QST_display_text']->get_nicename();?></label> <?php echo EEH_Template::get_help_tab_link('question_text_info');?>
37
+					<label for="QST_display_text"><?php echo $fields['QST_display_text']->get_nicename(); ?></label> <?php echo EEH_Template::get_help_tab_link('question_text_info'); ?>
38 38
 				</th>
39 39
 				<td>
40 40
 					<input type="text" class="regular-text" id="QST_display_text" name="QST_display_text" value="<?php $question->f('QST_display_text')?>"/>
@@ -44,23 +44,23 @@  discard block
 block discarded – undo
44 44
 
45 45
 			<tr>
46 46
 				<th>
47
-					<label for="QST_admin_label"><?php echo $fields['QST_admin_label']->get_nicename();?></label> <?php echo EEH_Template::get_help_tab_link('question_label_info');?>
47
+					<label for="QST_admin_label"><?php echo $fields['QST_admin_label']->get_nicename(); ?></label> <?php echo EEH_Template::get_help_tab_link('question_label_info'); ?>
48 48
 				</th>
49 49
 				<td>
50 50
 					<?php
51
-						$disabled = ! empty( $QST_system ) ? ' disabled="disabled"' : '';
52
-						$id =  ! empty( $QST_system ) ? '_disabled' : '';
51
+						$disabled = ! empty($QST_system) ? ' disabled="disabled"' : '';
52
+						$id = ! empty($QST_system) ? '_disabled' : '';
53 53
 					?>
54 54
 					<input type="text" class="regular-text" id="QST_admin_label<?php echo $id?>" name="QST_admin_label<?php echo $id?>" value="<?php $question->f('QST_admin_label')?>"<?php echo $disabled?>/>
55 55
 					<input class="QST_order" type="hidden" id="QST_order<?php echo $id; ?>" name = "QST_order<?php echo $id; ?>" value="<?php echo $question->get('QST_order'); ?>" />
56
-					<?php if ( ! empty( $QST_system )) { ?>
56
+					<?php if ( ! empty($QST_system)) { ?>
57 57
 						<input type="hidden"  id="QST_admin_label" name="QST_admin_label" value="<?php echo $question->admin_label()?>"/>
58 58
 					<?php } ?>
59 59
 					<br/>
60 60
 					<p class="description">
61
-					<?php if ( ! empty( $QST_system )) { ?>
61
+					<?php if ( ! empty($QST_system)) { ?>
62 62
 					<span class="description" style="color:#D54E21;">
63
-						<?php esc_html_e('System question! This field cannot be changed.','event_espresso')?>
63
+						<?php esc_html_e('System question! This field cannot be changed.', 'event_espresso')?>
64 64
 					</span>
65 65
 					<?php } ?>
66 66
 
@@ -70,21 +70,21 @@  discard block
 block discarded – undo
70 70
 
71 71
 			<tr>
72 72
 				<th>
73
-					<label for="QST_admin_only"><?php echo $fields['QST_admin_only']->get_nicename();?></label> <?php echo EEH_Template::get_help_tab_link('question_admin_only_info');?>
73
+					<label for="QST_admin_only"><?php echo $fields['QST_admin_only']->get_nicename(); ?></label> <?php echo EEH_Template::get_help_tab_link('question_admin_only_info'); ?>
74 74
 				</th>
75 75
 				<td>
76 76
 					<?php
77
-						$disabled = ! empty( $QST_system ) ? ' disabled="disabled"' : '';
78
-						$id =  ! empty( $QST_system ) ? '_disabled' : '';
77
+						$disabled = ! empty($QST_system) ? ' disabled="disabled"' : '';
78
+						$id = ! empty($QST_system) ? '_disabled' : '';
79 79
 						$admin_only = $question->get('QST_admin_only');
80
-						$checked = !empty( $admin_only ) ? ' checked="checked"' : '';
80
+						$checked = ! empty($admin_only) ? ' checked="checked"' : '';
81 81
 					?>
82 82
 					<input class="QST_admin_only" type="checkbox" id="QST_admin_only<?php echo $id; ?>" name = "QST_admin_only<?php echo $id; ?>" value="1"<?php echo $disabled; echo $checked; ?>/>
83 83
 					<br/>
84 84
 					<p class="description">
85
-					<?php if ( ! empty( $QST_system )) { ?>
85
+					<?php if ( ! empty($QST_system)) { ?>
86 86
 					<span class="description" style="color:#D54E21;">
87
-						<?php esc_html_e('System question! This field cannot be changed.','event_espresso')?>
87
+						<?php esc_html_e('System question! This field cannot be changed.', 'event_espresso')?>
88 88
 					</span>
89 89
 					<?php } ?>
90 90
 
@@ -94,21 +94,21 @@  discard block
 block discarded – undo
94 94
 
95 95
 			<tr>
96 96
 				<th>
97
-					<label for="QST_type"><?php echo $fields['QST_type']->get_nicename();?></label> <?php echo EEH_Template::get_help_tab_link('question_type_info');?>
97
+					<label for="QST_type"><?php echo $fields['QST_type']->get_nicename(); ?></label> <?php echo EEH_Template::get_help_tab_link('question_type_info'); ?>
98 98
 				</th>
99 99
 				<td>
100 100
 					<?php
101
-						$disabled = ! empty( $QST_system ) ? ' disabled="disabled"' : '';
102
-						$id =  ! empty( $QST_system ) ? '_disabled' : '';
103
-						echo EEH_Form_Fields::select_input( 'QST_type' . $id, $question_types, $question->type(), 'id="QST_type' . $id . '"' . $disabled );
104
-						if( ! empty( $QST_system ) ) { ?>
101
+						$disabled = ! empty($QST_system) ? ' disabled="disabled"' : '';
102
+						$id = ! empty($QST_system) ? '_disabled' : '';
103
+						echo EEH_Form_Fields::select_input('QST_type'.$id, $question_types, $question->type(), 'id="QST_type'.$id.'"'.$disabled);
104
+						if ( ! empty($QST_system)) { ?>
105 105
 							<input type="hidden"  id="QST_type" name="QST_type" value="<?php echo $question->type()?>"/>
106 106
 						<?php
107
-							$explanatory_text = esc_html__('System question! This field cannot be changed.','event_espresso');
108
-						}else{
109
-							$explanatory_text = esc_html__('Because there are currently answers for this question in the database, your options to change the question type have been limited to similar question-types.','event_espresso');
107
+							$explanatory_text = esc_html__('System question! This field cannot be changed.', 'event_espresso');
108
+						} else {
109
+							$explanatory_text = esc_html__('Because there are currently answers for this question in the database, your options to change the question type have been limited to similar question-types.', 'event_espresso');
110 110
 						}
111
-						if ( ! empty( $QST_system ) || $has_answers ) { ?>
111
+						if ( ! empty($QST_system) || $has_answers) { ?>
112 112
 							<p><span class="description" style="color:#D54E21;">
113 113
 								<?php echo $explanatory_text; ?>
114 114
 							</span></p>
@@ -121,22 +121,22 @@  discard block
 block discarded – undo
121 121
 			<tr id="text_input_question_options">
122 122
 				<th>
123 123
 					<label>
124
-						<?php esc_html_e( 'Maximum Allowed Response Size', 'event_espresso' );?>
124
+						<?php esc_html_e('Maximum Allowed Response Size', 'event_espresso'); ?>
125 125
 					</label>
126 126
 				</th>
127 127
 				<td>
128
-					<input id="QST_max" name="QST_max" type="number" <?php echo $max_max === EE_INF ? '' : "max='$max_max'";?> value="<?php $question->f( 'QST_max' );?>" min="1">
128
+					<input id="QST_max" name="QST_max" type="number" <?php echo $max_max === EE_INF ? '' : "max='$max_max'"; ?> value="<?php $question->f('QST_max'); ?>" min="1">
129 129
 					<p>
130 130
 						<span class="description">
131
-							<?php esc_html_e( 'Maximum number of characters allowed when answering this question', 'event_espresso' );?>
131
+							<?php esc_html_e('Maximum number of characters allowed when answering this question', 'event_espresso'); ?>
132 132
 						</span>
133 133
 					</p>
134
-					<?php if ( $QST_system ) { ?>
134
+					<?php if ($QST_system) { ?>
135 135
 					<p>
136 136
 						<span class="description" style="color:#D54E21;">
137 137
 							<?php printf(
138
-									esc_html__( 'System question! The maximum number of characters that can be used for this question is %1$s', 'event_espresso' ),
139
-									$max_max );?>
138
+									esc_html__('System question! The maximum number of characters that can be used for this question is %1$s', 'event_espresso'),
139
+									$max_max ); ?>
140 140
 						</span>
141 141
 					</p>
142 142
 					<?php } ?>
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 			<tr id="question_options">
146 146
 				<th>
147 147
 					<label>
148
-						<?php esc_html_e('Answer Options','event_espresso')?>
148
+						<?php esc_html_e('Answer Options', 'event_espresso')?>
149 149
 					</label>
150 150
 				</th>
151 151
 				<td>
@@ -154,10 +154,10 @@  discard block
 block discarded – undo
154 154
 						<thead>
155 155
 							<tr>
156 156
 								<th class="option-value-header">
157
-									<?php esc_html_e('Value','event_espresso')?>
157
+									<?php esc_html_e('Value', 'event_espresso')?>
158 158
 								</th>
159 159
 								<th class="option-desc-header">
160
-									<?php esc_html_e('Description (optional, only shown on registration form)','event_espresso')?>
160
+									<?php esc_html_e('Description (optional, only shown on registration form)', 'event_espresso')?>
161 161
 								</th>
162 162
 								<th>
163 163
 								</th>
@@ -180,17 +180,17 @@  discard block
 block discarded – undo
180 180
 							</tr>
181 181
 
182 182
 							<?php
183
-							$count=0;
183
+							$count = 0;
184 184
 							$question_options = $question->options();
185
-							if ( ! empty( $question_options )) {
186
-								foreach( $question_options as $option_id => $option ) {
187
-									$disabled =  $has_answers || $option->get('QSO_system') ? ' disabled="disabled"'  : '';
185
+							if ( ! empty($question_options)) {
186
+								foreach ($question_options as $option_id => $option) {
187
+									$disabled = $has_answers || $option->get('QSO_system') ? ' disabled="disabled"' : '';
188 188
 							?>
189 189
 								<tr class="question-option ee-options-sortable">
190 190
 									<td class="option-value-cell">
191 191
 										<input type="hidden" class="QSO_order" name="question_options[<?php echo $count; ?>][QSO_order]" value="<?php echo $count; ?>">
192 192
 										<input type="text" class="option-value regular-text" name="question_options[<?php echo $count?>][QSO_value]" value="<?php  $option->f('QSO_value')?>"<?php echo $disabled; ?>>
193
-										<?php if ( $has_answers ) : ?>
193
+										<?php if ($has_answers) : ?>
194 194
 											<input type="hidden" name="question_options[<?php echo $count; ?>][QSO_value]" value="<?php echo $option->f('QSO_value'); ?>" >
195 195
 										<?php endif; ?>
196 196
 									</td>
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 										<input type="text" class="option-desc regular-text" name="question_options[<?php echo $count?>][QSO_desc]" value="<?php $option->f('QSO_desc')?>">
199 199
 									</td>
200 200
 									<td>
201
-										<?php if ( ! $option->system() ) { ?>
201
+										<?php if ( ! $option->system()) { ?>
202 202
 											<span class="dashicons clickable dashicons-post-trash ee-icon-size-18 remove-option remove-item"></span>
203 203
 										<?php } ?>
204 204
 										<span class="dashicons dashicons-image-flip-vertical sortable-drag-handle ee-icon-size-18"></span>
@@ -237,13 +237,13 @@  discard block
 block discarded – undo
237 237
 					</table>
238 238
 
239 239
 					<a id="new-question-option" class="button" style="margin:0 0 1em 3px;">
240
-						<?php esc_html_e('Add Another Answer Option','event_espresso')?>
240
+						<?php esc_html_e('Add Another Answer Option', 'event_espresso')?>
241 241
 					</a><br/>
242 242
 
243 243
 					<p class="description">
244
-						<?php esc_html_e('Answer Options are the choices that you give people to select from for RADIO_BTN, CHECKBOX or DROPDOWN questions. The Value is a simple key that will be saved to the database and the description is optional. Note that values CANNOT contain any HTML, but descriptions can.','event_espresso')?>
244
+						<?php esc_html_e('Answer Options are the choices that you give people to select from for RADIO_BTN, CHECKBOX or DROPDOWN questions. The Value is a simple key that will be saved to the database and the description is optional. Note that values CANNOT contain any HTML, but descriptions can.', 'event_espresso')?>
245 245
 					</p>
246
-					<?php if ( $has_answers ) : ?>
246
+					<?php if ($has_answers) : ?>
247 247
 					<p class="description" style="color:#D54E21;">
248 248
 							<?php esc_html_e('Answer values that are uneditable are this way because there are registrations in the database that have answers for this question.  If you need to correct a mistake, or edit an existing option value, then trash the existing one and create a new option with the changes.  This will ensure that the existing registrations that chose the original answer will preserve that answer.', 'event_espresso'); ?>
249 249
 					</p>
@@ -254,32 +254,32 @@  discard block
 block discarded – undo
254 254
 
255 255
 			<tr>
256 256
 				<th>
257
-					<label for="QST_required"><?php echo $fields['QST_required']->get_nicename();?></label> <?php echo EEH_Template::get_help_tab_link('required_question_info');?>
257
+					<label for="QST_required"><?php echo $fields['QST_required']->get_nicename(); ?></label> <?php echo EEH_Template::get_help_tab_link('required_question_info'); ?>
258 258
 				</th>
259 259
 				<td>
260 260
 					<?php
261
-					$system_required = array( 'fname', 'email' );
262
-					$disabled = in_array( $QST_system, $system_required ) ? ' disabled="disabled"' : '';
261
+					$system_required = array('fname', 'email');
262
+					$disabled = in_array($QST_system, $system_required) ? ' disabled="disabled"' : '';
263 263
 					$required_on = $question->get('QST_admin_only');
264 264
 					$show_required_msg = $required_on ? '' : ' display:none;';
265
-					$disabled = $required_on || ! empty( $disabled ) ? ' disabled="disabled"' : '';
266
-					$id =  ! empty( $disabled ) && in_array( $QST_system, $system_required) ? '_disabled' : '';
267
-					$requiredOptions=array(
268
-						array( 'text'=> esc_html__( 'Optional', 'event_espresso' ), 'id'=>0 ),
269
-						array( 'text'=> esc_html__( 'Required', 'event_espresso' ), 'id'=>1 )
265
+					$disabled = $required_on || ! empty($disabled) ? ' disabled="disabled"' : '';
266
+					$id = ! empty($disabled) && in_array($QST_system, $system_required) ? '_disabled' : '';
267
+					$requiredOptions = array(
268
+						array('text'=> esc_html__('Optional', 'event_espresso'), 'id'=>0),
269
+						array('text'=> esc_html__('Required', 'event_espresso'), 'id'=>1)
270 270
 					);
271
-					echo EEH_Form_Fields::select_input('QST_required' . $id, $requiredOptions, $question->required(), 'id="QST_required' . $id . '"' . $disabled );
271
+					echo EEH_Form_Fields::select_input('QST_required'.$id, $requiredOptions, $question->required(), 'id="QST_required'.$id.'"'.$disabled);
272 272
 					?>
273 273
 						<p><span id="required_toggled_on" class="description" style="color:#D54E21;<?php echo $show_required_msg; ?>">
274
-						<?php esc_html_e('Required is set to optional, and this field is disabled, because the question is Admin-Only.','event_espresso')?>
274
+						<?php esc_html_e('Required is set to optional, and this field is disabled, because the question is Admin-Only.', 'event_espresso')?>
275 275
 						</span></p>
276 276
 						<p><span id="required_toggled_off" class="description" style="color:#D54E21; display: none;">
277
-							<?php esc_html_e('Required option field is no longer disabled because the question is not Admin-Only','event_espresso')?>
277
+							<?php esc_html_e('Required option field is no longer disabled because the question is not Admin-Only', 'event_espresso')?>
278 278
 						</span></p>
279
-					<?php if ( ! empty( $disabled ) && in_array( $QST_system, $system_required ) ) { ?>
279
+					<?php if ( ! empty($disabled) && in_array($QST_system, $system_required)) { ?>
280 280
 						<input type="hidden"  id="QST_required" name="QST_required" value="1"/>
281 281
 						<p><span class="description" style="color:#D54E21;">
282
-						<?php esc_html_e('System question! This field cannot be changed.','event_espresso')?>
282
+						<?php esc_html_e('System question! This field cannot be changed.', 'event_espresso')?>
283 283
 					</span></p>
284 284
 					<?php } ?>
285 285
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 
289 289
 			<tr>
290 290
 				<th>
291
-					<label for="QST_required_text"><?php esc_html_e('Required Text', 'event_espresso'); ?></label> <?php echo EEH_Template::get_help_tab_link('required_text_info');?>
291
+					<label for="QST_required_text"><?php esc_html_e('Required Text', 'event_espresso'); ?></label> <?php echo EEH_Template::get_help_tab_link('required_text_info'); ?>
292 292
 				</th>
293 293
 				<td>
294 294
 					<input type="text" maxlength="100" class="regular-text" id="QST_required_text" name="QST_required_text" value="<?php  $question->f('QST_required_text')?>"/>
Please login to merge, or discard this patch.
admin_pages/registrations/Registrations_Admin_Page_Init.core.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  *
22 22
  * ------------------------------------------------------------------------
23 23
  */
24
-class Registrations_Admin_Page_Init extends EE_Admin_Page_CPT_Init  {
24
+class Registrations_Admin_Page_Init extends EE_Admin_Page_CPT_Init {
25 25
 
26 26
 
27 27
 
@@ -34,16 +34,16 @@  discard block
 block discarded – undo
34 34
 	 * 		@return void
35 35
 	 */
36 36
 	public function __construct() {
37
-		do_action( 'AHEE_log', __FILE__, __FUNCTION__, '' );
38
-		if ( ! defined( 'REG_PG_SLUG' ) ) {
39
-			define( 'REG_PG_SLUG', 'espresso_registrations' );
40
-			define( 'REG_PG_NAME', ucwords( str_replace( '_', '', REG_PG_SLUG )));
41
-			define( 'REG_ADMIN', EE_ADMIN_PAGES . 'registrations' . DS );
42
-			define( 'REG_ADMIN_URL', admin_url( 'admin.php?page=' . REG_PG_SLUG ));
43
-			define( 'REG_ASSETS_PATH', REG_ADMIN . 'assets' . DS );
44
-			define( 'REG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'registrations/assets/' );
45
-			define( 'REG_TEMPLATE_PATH', REG_ADMIN . 'templates' . DS );
46
-			define( 'REG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'registrations/templates/' );
37
+		do_action('AHEE_log', __FILE__, __FUNCTION__, '');
38
+		if ( ! defined('REG_PG_SLUG')) {
39
+			define('REG_PG_SLUG', 'espresso_registrations');
40
+			define('REG_PG_NAME', ucwords(str_replace('_', '', REG_PG_SLUG)));
41
+			define('REG_ADMIN', EE_ADMIN_PAGES.'registrations'.DS);
42
+			define('REG_ADMIN_URL', admin_url('admin.php?page='.REG_PG_SLUG));
43
+			define('REG_ASSETS_PATH', REG_ADMIN.'assets'.DS);
44
+			define('REG_ASSETS_URL', EE_ADMIN_PAGES_URL.'registrations/assets/');
45
+			define('REG_TEMPLATE_PATH', REG_ADMIN.'templates'.DS);
46
+			define('REG_TEMPLATE_URL', EE_ADMIN_PAGES_URL.'registrations/templates/');
47 47
 		}
48 48
 
49 49
 		parent::__construct();
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
 
61 61
 	protected function _set_menu_map() {
62
-		$this->_menu_map = new EE_Admin_Page_Sub_Menu( array(
62
+		$this->_menu_map = new EE_Admin_Page_Sub_Menu(array(
63 63
 			'menu_group' => 'main',
64 64
 			'menu_order' => 40,
65 65
 			'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
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.
admin_pages/registrations/help_tours/Contact_List_Help_Tour.class.php 2 patches
Spacing   +15 added lines, -15 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
 /**
@@ -153,57 +153,57 @@  discard block
 block discarded – undo
153 153
 
154 154
 
155 155
 	protected function _start() {
156
-		$content = '<h3>' . __('Contact List', 'event_espresso') . '</h3>';
157
-		$content .= '<p>' . __('This tour of the Contact List page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
156
+		$content = '<h3>'.__('Contact List', 'event_espresso').'</h3>';
157
+		$content .= '<p>'.__('This tour of the Contact List page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
158 158
 		return $content;
159 159
 	}
160 160
 
161 161
 	protected function _attendee_id_stop() {
162
-		return '<p>' . __('View ID for registrants. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
162
+		return '<p>'.__('View ID for registrants. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
163 163
 	}
164 164
 
165 165
 	protected function _attendee_name_stop() {
166
-		return '<p>' . __('View first name for registrants. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
166
+		return '<p>'.__('View first name for registrants. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
167 167
 	}
168 168
 
169 169
 	protected function _att_lname_stop() {
170
-		return '<p>' . __('View last name for registrants. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
170
+		return '<p>'.__('View last name for registrants. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
171 171
 	}
172 172
 
173 173
 	protected function _att_email_stop() {
174
-		return '<p>' . __('View email address for registrants. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
174
+		return '<p>'.__('View email address for registrants. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
175 175
 	}
176 176
 
177 177
 	protected function _att_phone_stop() {
178
-		return '<p>' . __('View phone number for registrants.', 'event_espresso') . '</p>';
178
+		return '<p>'.__('View phone number for registrants.', 'event_espresso').'</p>';
179 179
 	}
180 180
 
181 181
 	protected function _att_address_stop() {
182
-		return '<p>' . __('View address for registrants.', 'event_espresso') . '</p>';
182
+		return '<p>'.__('View address for registrants.', 'event_espresso').'</p>';
183 183
 	}
184 184
 
185 185
 	protected function _att_city_stop() {
186
-		return '<p>' . __('View city for registrants.', 'event_espresso') . '</p>';
186
+		return '<p>'.__('View city for registrants.', 'event_espresso').'</p>';
187 187
 	}
188 188
 
189 189
 	protected function _sta_id_stop() {
190
-		return '<p>' . __('View state/province for registrants. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
190
+		return '<p>'.__('View state/province for registrants. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
191 191
 	}
192 192
 
193 193
 	protected function _cnt_iso_stop() {
194
-		return '<p>' . __('View country for registrants. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
194
+		return '<p>'.__('View country for registrants. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
195 195
 	}
196 196
 
197 197
 	protected function _bulkactions_stop() {
198
-		return '<p>' . __('Perform a bulk action to multiple registrants.', 'event_espresso') . '</p>';
198
+		return '<p>'.__('Perform a bulk action to multiple registrants.', 'event_espresso').'</p>';
199 199
 	}
200 200
 
201 201
 	protected function _search_stop() {
202
-		return '<p>' . __('Search through contacts. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, and Registration Code.', 'event_espresso') . '</p>';
202
+		return '<p>'.__('Search through contacts. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, and Registration Code.', 'event_espresso').'</p>';
203 203
 	}
204 204
 
205 205
 	protected function _contact_list_csv_export_stop() {
206
-		return '<p>' . __('Export your contact list to a CSV file.', 'event_espresso') . '</p>';
206
+		return '<p>'.__('Export your contact list to a CSV file.', 'event_espresso').'</p>';
207 207
 	}
208 208
 
209 209
 }
210 210
\ 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
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
admin_pages/registrations/help_tours/Event_Checkin_Help_Tour.class.php 2 patches
Spacing   +21 added lines, -21 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
 /**
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 	protected function _set_tour_properties() {
33 33
 		$this->_label = __('Event Check-in Tour', 'event_espresso');
34
-		if ( isset( $this->_req_data['event_id'] ) )
34
+		if (isset($this->_req_data['event_id']))
35 35
 			$this->_slug = 'event-checkin-overview-joyride';
36 36
 		else
37 37
 			$this->_slug = 'all-event-checkin-overview-joyride';
@@ -183,73 +183,73 @@  discard block
 block discarded – undo
183 183
 
184 184
 
185 185
 	protected function _start() {
186
-		$content = '<h3>' . __('Event Check-in', 'event_espresso') . '</h3>';
187
-		if ( isset( $this->_req_data['event_id'] ) ) {
188
-			$content .= '<p>' . __('This tour of the Event Check-in page will go over different areas of the screen to help you understand what they are used for.<br /><br /> Note: You are currently viewing the check-in for a specific event so you can toggle the check-in status for attendees.', 'event_espresso') . '</p>';
186
+		$content = '<h3>'.__('Event Check-in', 'event_espresso').'</h3>';
187
+		if (isset($this->_req_data['event_id'])) {
188
+			$content .= '<p>'.__('This tour of the Event Check-in page will go over different areas of the screen to help you understand what they are used for.<br /><br /> Note: You are currently viewing the check-in for a specific event so you can toggle the check-in status for attendees.', 'event_espresso').'</p>';
189 189
 		} else {
190
-			$content .= '<p>' . __('This tour of the event check-in page will go over different areas of the screen to help you understand what they are used for. <br /><br /> Note: You must select an event from the dropdown menu before you can toggle the check-in status for an attendee.', 'event_espresso') . '</p>';
190
+			$content .= '<p>'.__('This tour of the event check-in page will go over different areas of the screen to help you understand what they are used for. <br /><br /> Note: You must select an event from the dropdown menu before you can toggle the check-in status for an attendee.', 'event_espresso').'</p>';
191 191
 		}
192 192
 		return $content;
193 193
 	}
194 194
 
195 195
 	protected function _reg_count_stop() {
196
-		return '<p>' . __('View registration number.', 'event_espresso') . '</p>';
196
+		return '<p>'.__('View registration number.', 'event_espresso').'</p>';
197 197
 	}
198 198
 
199 199
 	protected function _attendee_name_stop() {
200
-		return '<p>' . __('View name of registrant. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
200
+		return '<p>'.__('View name of registrant. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
201 201
 	}
202 202
 
203 203
 	protected function _attendee_email_stop() {
204
-		return '<p>' . __('View email address for a registrant.', 'event_espresso') . '</p>';
204
+		return '<p>'.__('View email address for a registrant.', 'event_espresso').'</p>';
205 205
 	}
206 206
 
207 207
 	protected function _reg_date_stop() {
208
-		return '<p>' . __('View registration date. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
208
+		return '<p>'.__('View registration date. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
209 209
 	}
210 210
 
211 211
 	protected function _reg_code_stop() {
212
-		return '<p>' . __('View registration code. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
212
+		return '<p>'.__('View registration code. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
213 213
 	}
214 214
 
215 215
 	protected function _reg_final_price_stop() {
216
-		return '<p>' . __('View price for ticket.', 'event_espresso') . '</p>';
216
+		return '<p>'.__('View price for ticket.', 'event_espresso').'</p>';
217 217
 	}
218 218
 
219 219
 	protected function _txn_paid_stop() {
220
-		return '<p>' . __('View if registrant has paid for ticket.', 'event_espresso') . '</p>';
220
+		return '<p>'.__('View if registrant has paid for ticket.', 'event_espresso').'</p>';
221 221
 	}
222 222
 
223 223
 	protected function _txn_total_stop() {
224
-		return '<p>' . __('View total amount paid.', 'event_espresso') . '</p>';
224
+		return '<p>'.__('View total amount paid.', 'event_espresso').'</p>';
225 225
 	}
226 226
 
227 227
 	protected function _prc_name_stop() {
228
-		return '<p>' . __('View type of ticket.', 'event_espresso') . '</p>';
228
+		return '<p>'.__('View type of ticket.', 'event_espresso').'</p>';
229 229
 	}
230 230
 
231 231
 	protected function _actions_stop() {
232
-		return '<p>' . __('Perform an action to a registration. See legend in bottom left corner.', 'event_espresso') . '</p>';
232
+		return '<p>'.__('Perform an action to a registration. See legend in bottom left corner.', 'event_espresso').'</p>';
233 233
 	}
234 234
 
235 235
 	protected function _legend_stop() {
236
-		return '<p>' . __('This is the legend that describes the different check-in statuses. Also shows available status for registrations.', 'event_espresso') . '</p>';
236
+		return '<p>'.__('This is the legend that describes the different check-in statuses. Also shows available status for registrations.', 'event_espresso').'</p>';
237 237
 	}
238 238
 	
239 239
 	protected function _bulkactions_stop() {
240
-		return '<p>' . __('Perform a bulk action to multiple registrations (only available when viewing check-in for a specific event).', 'event_espresso') . '</p>';
240
+		return '<p>'.__('Perform a bulk action to multiple registrations (only available when viewing check-in for a specific event).', 'event_espresso').'</p>';
241 241
 	}
242 242
 
243 243
 	protected function _event_selector_stop() {
244
-		return '<p>' . __('Select an event from this dropdown and click the filter button to see the check-in registration list for a specific event. You will then be able to toggle the check-in status for a registration.', 'event_espresso') . '</p>';
244
+		return '<p>'.__('Select an event from this dropdown and click the filter button to see the check-in registration list for a specific event. You will then be able to toggle the check-in status for a registration.', 'event_espresso').'</p>';
245 245
 	}
246 246
 
247 247
 	protected function _dtt_selector_stop() {
248
-		return '<p>' . __('This dropdown shows you the date and time that a displayed registration is attached to. You can switch to a different event by selecting another date and clicking on the filter button. You can also switch out of this view by clicking on the reset filters button.', 'event_espresso') . '</p>';
248
+		return '<p>'.__('This dropdown shows you the date and time that a displayed registration is attached to. You can switch to a different event by selecting another date and clicking on the filter button. You can also switch out of this view by clicking on the reset filters button.', 'event_espresso').'</p>';
249 249
 	}
250 250
 
251 251
 	protected function _search_stop() {
252
-		return '<p>' . __('Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.', 'event_espresso') . '</p>';
252
+		return '<p>'.__('Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.', 'event_espresso').'</p>';
253 253
 	}
254 254
 
255 255
 }
256 256
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +7 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
@@ -31,10 +32,11 @@  discard block
 block discarded – undo
31 32
 
32 33
 	protected function _set_tour_properties() {
33 34
 		$this->_label = __('Event Check-in Tour', 'event_espresso');
34
-		if ( isset( $this->_req_data['event_id'] ) )
35
-			$this->_slug = 'event-checkin-overview-joyride';
36
-		else
37
-			$this->_slug = 'all-event-checkin-overview-joyride';
35
+		if ( isset( $this->_req_data['event_id'] ) ) {
36
+					$this->_slug = 'event-checkin-overview-joyride';
37
+		} else {
38
+					$this->_slug = 'all-event-checkin-overview-joyride';
39
+		}
38 40
 	}
39 41
 
40 42
 
Please login to merge, or discard this patch.
registrations/help_tours/Registration_Details_Help_Tour.class.php 2 patches
Spacing   +9 added lines, -9 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
 /**
@@ -99,32 +99,32 @@  discard block
 block discarded – undo
99 99
 
100 100
 
101 101
 	protected function _start() {
102
-		$content = '<h3>' . __('Registration Details', 'event_espresso') . '</h3>';
103
-		$content .= '<p>' . __('This tour of the Registration Details page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
102
+		$content = '<h3>'.__('Registration Details', 'event_espresso').'</h3>';
103
+		$content .= '<p>'.__('This tour of the Registration Details page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
104 104
 		return $content;
105 105
 	}
106 106
 
107 107
 	protected function _reg_date_title() {
108
-		return '<p>' . __('This is the date that the registration occurred on.') . '</p>';
108
+		return '<p>'.__('This is the date that the registration occurred on.').'</p>';
109 109
 	}
110 110
 	
111 111
 	protected function _reg_details_stop() {
112
-		return '<p>' . __('The buttons below allow you to perform an action with a registration. The options are Approved, Not Approved, Declined, and Cancelled.', 'event_espresso') . '</p>';
112
+		return '<p>'.__('The buttons below allow you to perform an action with a registration. The options are Approved, Not Approved, Declined, and Cancelled.', 'event_espresso').'</p>';
113 113
 	}
114 114
 
115 115
 	protected function _reg_details_table() {
116
-		return '<p>' . __('The registration items area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total.', 'event_espresso') . '</p>';
116
+		return '<p>'.__('The registration items area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total.', 'event_espresso').'</p>';
117 117
 	}
118 118
 
119 119
 	protected function _display_additional_info_stop() {
120
-		return '<p>' . __('You can view additional information about the registration by clicking on the link below. Examples of available information includes Registration ID, IP Address, and User Agent.', 'event_espresso') . '</p>';
120
+		return '<p>'.__('You can view additional information about the registration by clicking on the link below. Examples of available information includes Registration ID, IP Address, and User Agent.', 'event_espresso').'</p>';
121 121
 	}
122 122
 
123 123
 	protected function _edit_reg_question_stop() {
124
-		return '<p>' . __('View the answers to your custom questions below.', 'event_espresso') . '</p>';
124
+		return '<p>'.__('View the answers to your custom questions below.', 'event_espresso').'</p>';
125 125
 	}
126 126
 
127 127
 	protected function _attendee_details_stop() {
128
-		return '<p>' . __('View details on the registrant attached to this registration.', 'event_espresso') . '</p>';
128
+		return '<p>'.__('View details on the registrant attached to this registration.', 'event_espresso').'</p>';
129 129
 	}
130 130
 }
131 131
\ 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
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
registrations/help_tours/Registration_Overview_Help_Tour.class.php 2 patches
Spacing   +20 added lines, -20 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
 /**
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 	protected function _set_tour_properties() {
33 33
 		$this->_label = __('Registrations Overview Tour', 'event_espresso');
34
-		if ( isset( $this->_req_data['event_id'] ) )
34
+		if (isset($this->_req_data['event_id']))
35 35
 			$this->_slug = 'registration-per-event-overview-joyride';
36 36
 		else
37 37
 			$this->_slug = 'registration-overview-joyride';
@@ -174,69 +174,69 @@  discard block
 block discarded – undo
174 174
 
175 175
 
176 176
 	protected function _start() {
177
-		$content = '<h3>' . __('Registration Overview', 'event_espresso') . '</h3>';
178
-		if ( isset( $this->_req_data['event_id'] ) ) {
179
-			$content .= '<p>' . __('An introduction to the Registration Overview page for a single event. This view is pretty much the same as the default overview registration page except you are only seeing registrations for a specific event.  There are also some changes to the available columns in this view.', 'event_espresso') . '</p>';
177
+		$content = '<h3>'.__('Registration Overview', 'event_espresso').'</h3>';
178
+		if (isset($this->_req_data['event_id'])) {
179
+			$content .= '<p>'.__('An introduction to the Registration Overview page for a single event. This view is pretty much the same as the default overview registration page except you are only seeing registrations for a specific event.  There are also some changes to the available columns in this view.', 'event_espresso').'</p>';
180 180
 		} else {
181
-			$content .= '<p>' . __('This tour of the Registration Overview page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
181
+			$content .= '<p>'.__('This tour of the Registration Overview page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
182 182
 		}
183 183
 		return $content;
184 184
 	}
185 185
 
186 186
 	protected function _reg_id_stop() {
187
-		return '<p>' . __('View the registration ID. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
187
+		return '<p>'.__('View the registration ID. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
188 188
 	}
189 189
 
190 190
 	protected function _reg_count_stop() {
191
-		return '<p>' . __('View registration number.', 'event_espresso') . '</p>';
191
+		return '<p>'.__('View registration number.', 'event_espresso').'</p>';
192 192
 	}
193 193
 
194 194
 	protected function _attendee_name_stop() {
195
-		return '<p>' . __('View the name of the registrant. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
195
+		return '<p>'.__('View the name of the registrant. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
196 196
 	}
197 197
 
198 198
 	protected function _reg_date_stop() {
199
-		return '<p>' . __('View registration date. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
199
+		return '<p>'.__('View registration date. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
200 200
 	}
201 201
 
202 202
 	protected function _event_name_stop() {
203
-		return '<p>' . __('View the name of the event. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
203
+		return '<p>'.__('View the name of the event. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
204 204
 	}
205 205
 
206 206
 	protected function _dtt_evt_start_stop() {
207
-		return '<p>' . __('View the date of the event. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
207
+		return '<p>'.__('View the date of the event. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
208 208
 	}
209 209
 
210 210
 	protected function _reg_code_stop() {
211
-		return '<p>' . __('View registration code for a registrant.', 'event_espresso') . '</p>';
211
+		return '<p>'.__('View registration code for a registrant.', 'event_espresso').'</p>';
212 212
 	}
213 213
 
214 214
 	protected function _txn_total_stop() {
215
-		return '<p>' . __('View price of registration.', 'event_espresso') . '</p>';
215
+		return '<p>'.__('View price of registration.', 'event_espresso').'</p>';
216 216
 	}
217 217
 
218 218
 	protected function _actions_stop() {
219
-		return '<p>' . __('Perform an action to a registration. See legend in bottom left corner.', 'event_espresso') . '</p>';
219
+		return '<p>'.__('Perform an action to a registration. See legend in bottom left corner.', 'event_espresso').'</p>';
220 220
 	}
221 221
 
222 222
 	protected function _legend_stop() {
223
-		return '<p>' . __('This is the legend that describes the actions available in the actions column. Also shows available statuses for a registration.', 'event_espresso') . '</p>';
223
+		return '<p>'.__('This is the legend that describes the actions available in the actions column. Also shows available statuses for a registration.', 'event_espresso').'</p>';
224 224
 	}
225 225
 
226 226
 	protected function _views_stop() {
227
-		return '<p>' . __('You can select different views by time period or look at registrations which have been moved to the trash.') . '</p>';
227
+		return '<p>'.__('You can select different views by time period or look at registrations which have been moved to the trash.').'</p>';
228 228
 	}
229 229
 
230 230
 	protected function _bulkactions_stop() {
231
-		return '<p>' . __('Perform a bulk action to multiple registrations.', 'event_espresso') . '</p>';
231
+		return '<p>'.__('Perform a bulk action to multiple registrations.', 'event_espresso').'</p>';
232 232
 	}
233 233
 
234 234
 	protected function _stop_about_filters() {
235
-		return '<p>' . __('Registrations can be filtered by date, categories, or status.', 'event_espresso') . '</p>';
235
+		return '<p>'.__('Registrations can be filtered by date, categories, or status.', 'event_espresso').'</p>';
236 236
 	}
237 237
 	
238 238
 	protected function _search_stop() {
239
-		return '<p>' . __('Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.', 'event_espresso') . '</p>';
239
+		return '<p>'.__('Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.', 'event_espresso').'</p>';
240 240
 	}
241 241
 
242 242
 }
243 243
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +7 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
@@ -31,10 +32,11 @@  discard block
 block discarded – undo
31 32
 
32 33
 	protected function _set_tour_properties() {
33 34
 		$this->_label = __('Registrations Overview Tour', 'event_espresso');
34
-		if ( isset( $this->_req_data['event_id'] ) )
35
-			$this->_slug = 'registration-per-event-overview-joyride';
36
-		else
37
-			$this->_slug = 'registration-overview-joyride';
35
+		if ( isset( $this->_req_data['event_id'] ) ) {
36
+					$this->_slug = 'registration-per-event-overview-joyride';
37
+		} else {
38
+					$this->_slug = 'registration-overview-joyride';
39
+		}
38 40
 	}
39 41
 
40 42
 
Please login to merge, or discard this patch.