Completed
Branch BUG-9804-double-click-spco-sub... (c2cac1)
by
unknown
51:40 queued 26:35
created
registration_form/espresso_events_Registration_Form_Hooks.class.php 2 patches
Spacing   +36 added lines, -36 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
 /**
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
 
37 37
 
38
-	public function __construct( EE_Admin_Page $admin_page ) {
38
+	public function __construct(EE_Admin_Page $admin_page) {
39 39
 		parent::__construct($admin_page);
40 40
 	}
41 41
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 		$this->_name = 'registration_form';
47 47
 		$this->_metaboxes = array(
48 48
 			0 => array(
49
-				'page_route' => array( 'edit', 'create_new' ),
49
+				'page_route' => array('edit', 'create_new'),
50 50
 				'func' => 'primary_questions',
51 51
 				'label' => __('Questions for Primary Registrant', 'event_espresso'),
52 52
 				'priority' => 'default',
@@ -55,28 +55,28 @@  discard block
 block discarded – undo
55 55
 		);
56 56
 
57 57
 		//hook into the handler for saving question groups
58
-		add_filter( 'FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks', array( $this, 'modify_callbacks'), 10 );
58
+		add_filter('FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks', array($this, 'modify_callbacks'), 10);
59 59
 
60 60
 		//hook into revision restores (we're hooking into the global action because EE_Admin_Hooks classes are already restricted by page)
61
-		add_action( 'AHEE_EE_Admin_Page_CPT__restore_revision', array($this, 'restore_revision' ), 10, 2 );
61
+		add_action('AHEE_EE_Admin_Page_CPT__restore_revision', array($this, 'restore_revision'), 10, 2);
62 62
 	}
63 63
 
64 64
 
65 65
 
66 66
 
67 67
 
68
-	public function modify_callbacks( $callbacks ) {
68
+	public function modify_callbacks($callbacks) {
69 69
 		//now let's add the question group callback
70
-		$callbacks[] = array( $this, 'primary_question_group_update' );
70
+		$callbacks[] = array($this, 'primary_question_group_update');
71 71
 		return $callbacks;
72 72
 	}
73 73
 
74 74
 
75
-	public function restore_revision( $post_id, $revision_id ) {
75
+	public function restore_revision($post_id, $revision_id) {
76 76
 		$EVT_MDL = EE_Registry::instance()->load_model('Event');
77
-		$post_evt = $EVT_MDL->get_one_by_ID( $post_id );
77
+		$post_evt = $EVT_MDL->get_one_by_ID($post_id);
78 78
 		//restore revision for primary questions
79
-		$post_evt->restore_revision($revision_id, array('Question_Group'), array('Question_Group' => array('Event_Question_Group.EQG_primary' => 1 ) ) );
79
+		$post_evt->restore_revision($revision_id, array('Question_Group'), array('Question_Group' => array('Event_Question_Group.EQG_primary' => 1)));
80 80
 		return $post_evt; //for any caffeinated functionality extending.
81 81
 	}
82 82
 
@@ -100,35 +100,35 @@  discard block
 block discarded – undo
100 100
 			<?php
101 101
 
102 102
 			$qsg_where['QSG_deleted'] = FALSE;
103
-			$query_params = array( $qsg_where, 'order_by' => array( 'QSG_order' => 'ASC' ) );
104
-			$QSGs = EEM_Question_Group::instance()->get_all( $query_params );
105
-			$EQGs = !empty( $event_id ) ? $this->_event->get_many_related('Question_Group', array(array('Event_Question_Group.EQG_primary' => 1 )) ) : array();
103
+			$query_params = array($qsg_where, 'order_by' => array('QSG_order' => 'ASC'));
104
+			$QSGs = EEM_Question_Group::instance()->get_all($query_params);
105
+			$EQGs = ! empty($event_id) ? $this->_event->get_many_related('Question_Group', array(array('Event_Question_Group.EQG_primary' => 1))) : array();
106 106
 			$EQGids = array_keys($EQGs);
107 107
 
108 108
 			//EEH_Debug_Tools::printr( $QSGs, '$QSGs  <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span>', 'auto' );
109 109
 
110
-			if ( ! empty( $QSGs )) {
111
- 				$html = count( $QSGs ) > 10 ? '<div style="height:250px;overflow:auto;">' : '';
112
-				foreach ( $QSGs as $QSG ) {
110
+			if ( ! empty($QSGs)) {
111
+ 				$html = count($QSGs) > 10 ? '<div style="height:250px;overflow:auto;">' : '';
112
+				foreach ($QSGs as $QSG) {
113 113
 
114
-					$checked = ( in_array( $QSG->ID(), $EQGids ) || $QSG->get('QSG_system') == 1 ) ? ' checked="checked"' : '';
114
+					$checked = (in_array($QSG->ID(), $EQGids) || $QSG->get('QSG_system') == 1) ? ' checked="checked"' : '';
115 115
 					$visibility = $QSG->get('QSG_system') == 1 ? ' style="visibility:hidden"' : '';
116
-					$edit_query_args = $this->_adminpage_obj->is_caf() ? array( 'action' => 'edit_question_group', 'QSG_ID' => $QSG->ID() ) : array( 'action' => 'question_groups' );
117
-					$edit_link = $this->_adminpage_obj->add_query_args_and_nonce( $edit_query_args, EE_FORMS_ADMIN_URL );
116
+					$edit_query_args = $this->_adminpage_obj->is_caf() ? array('action' => 'edit_question_group', 'QSG_ID' => $QSG->ID()) : array('action' => 'question_groups');
117
+					$edit_link = $this->_adminpage_obj->add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL);
118 118
 
119 119
 					$html .= '
120
-					<p id="event-question-group-' . $QSG->ID() . '">
121
-						<input value="' . $QSG->ID() . '" type="checkbox"' . $visibility . ' name="question_groups[' . $QSG->ID() . ']"' . $checked . ' />
122
-						<a href="' . $edit_link . '" title="' . sprintf( esc_attr__('Edit %s Group', 'event_espresso'),  $QSG->get('QSG_name') ) . '" target="_blank">' . $QSG->get('QSG_name') . '</a>
120
+					<p id="event-question-group-' . $QSG->ID().'">
121
+						<input value="' . $QSG->ID().'" type="checkbox"'.$visibility.' name="question_groups['.$QSG->ID().']"'.$checked.' />
122
+						<a href="' . $edit_link.'" title="'.sprintf(esc_attr__('Edit %s Group', 'event_espresso'), $QSG->get('QSG_name')).'" target="_blank">'.$QSG->get('QSG_name').'</a>
123 123
 					</p>';
124 124
 				}
125
-				$html .= count( $QSGs ) > 10 ? '</div>' : '';
125
+				$html .= count($QSGs) > 10 ? '</div>' : '';
126 126
 
127 127
 				echo $html;
128 128
 			} else {
129 129
 				echo __('There seems to be a problem with your questions. Please contact [email protected]', 'event_espresso');
130 130
 			}
131
-			do_action( 'AHEE_event_editor_questions_notice' );
131
+			do_action('AHEE_event_editor_questions_notice');
132 132
 			?>
133 133
 		</div>
134 134
 		<?php
@@ -138,31 +138,31 @@  discard block
 block discarded – undo
138 138
 
139 139
 
140 140
 
141
-	public function primary_question_group_update( $evtobj, $data ) {
142
-		$question_groups = !empty( $data['question_groups'] ) ? (array) $data['question_groups'] : array();
141
+	public function primary_question_group_update($evtobj, $data) {
142
+		$question_groups = ! empty($data['question_groups']) ? (array) $data['question_groups'] : array();
143 143
 		$added_qgs = array_keys($question_groups);
144 144
 		$success = array();
145 145
 
146 146
 		//let's get all current question groups associated with this event.
147
-		$current_qgs = $evtobj->get_many_related('Question_Group', array(array('Event_Question_Group.EQG_primary' => 1) ));
147
+		$current_qgs = $evtobj->get_many_related('Question_Group', array(array('Event_Question_Group.EQG_primary' => 1)));
148 148
 		$current_qgs = array_keys($current_qgs); //we just want the ids
149 149
 
150 150
 		//now let's get the groups selected in the editor and update (IF we have data)
151
-		if ( !empty( $question_groups ) ) {
152
-			foreach ( $question_groups as $id => $val ) {
151
+		if ( ! empty($question_groups)) {
152
+			foreach ($question_groups as $id => $val) {
153 153
 				//add to event
154
-				if ( $val )
155
-					$qg = $evtobj->_add_relation_to( $id, 'Question_Group', array('EQG_primary' => 1) );
156
-				$success[] = !empty($qg) ? 1 : 0;
154
+				if ($val)
155
+					$qg = $evtobj->_add_relation_to($id, 'Question_Group', array('EQG_primary' => 1));
156
+				$success[] = ! empty($qg) ? 1 : 0;
157 157
 			}
158 158
 		}
159 159
 
160 160
 		//wait a minute... are there question groups missing in the saved groups that ARE with the current event?
161
-		$removed_qgs = array_diff( $current_qgs, $added_qgs );
161
+		$removed_qgs = array_diff($current_qgs, $added_qgs);
162 162
 
163
-		foreach ( $removed_qgs as $qgid ) {
164
-			$qg = $evtobj->_remove_relation_to( $qgid, 'Question_Group', array('EQG_primary' => 1 ) );
165
-			$success[] = !empty($qg) ? 1 : 0;
163
+		foreach ($removed_qgs as $qgid) {
164
+			$qg = $evtobj->_remove_relation_to($qgid, 'Question_Group', array('EQG_primary' => 1));
165
+			$success[] = ! empty($qg) ? 1 : 0;
166 166
 		}
167 167
 
168 168
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 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
@@ -151,8 +152,9 @@  discard block
 block discarded – undo
151 152
 		if ( !empty( $question_groups ) ) {
152 153
 			foreach ( $question_groups as $id => $val ) {
153 154
 				//add to event
154
-				if ( $val )
155
-					$qg = $evtobj->_add_relation_to( $id, 'Question_Group', array('EQG_primary' => 1) );
155
+				if ( $val ) {
156
+									$qg = $evtobj->_add_relation_to( $id, 'Question_Group', array('EQG_primary' => 1) );
157
+				}
156 158
 				$success[] = !empty($qg) ? 1 : 0;
157 159
 			}
158 160
 		}
Please login to merge, or discard this patch.
registration_form/help_tabs/registration_form_add_question.help_tab.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
 <?php _e('This shows the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, and Date Picker.', 'event_espresso'); ?>
27 27
 </li>
28 28
 <li>
29
-<strong><?php _e('Answer Options (for applicable question types)', 'event_espresso');?></strong><br/>
30
-<?php _e('Values do not allow any HTML, however, descriptions do allow HTML.', 'event_espresso');?>
29
+<strong><?php _e('Answer Options (for applicable question types)', 'event_espresso'); ?></strong><br/>
30
+<?php _e('Values do not allow any HTML, however, descriptions do allow HTML.', 'event_espresso'); ?>
31 31
 </li>
32 32
 <li>
33 33
 <strong><?php _e('Required Question', 'event_espresso'); ?></strong><br />
Please login to merge, or discard this patch.
help_tours/Registration_Form_Add_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>' . __('Add Question Group', 'event_espresso') . '</h3>';
102
-		$content .= '<p>' . __('This tour of the Add 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>'.__('Add Question Group', 'event_espresso').'</h3>';
102
+		$content .= '<p>'.__('This tour of the Add 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
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
Please login to merge, or discard this patch.
help_tours/Registration_Form_Add_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>' . __('Add New Question', 'event_espresso') . '</h3>';
102
-		$content .= '<p>' . __('This tour of the Add New 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>'.__('Add New Question', 'event_espresso').'</h3>';
102
+		$content .= '<p>'.__('This tour of the Add New 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 admins.', 'event_espresso') . '</p>';
116
+		return '<p>'.__('Specify whether this question should be shown only to 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
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
Please login to merge, or discard this patch.
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
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
Please login to merge, or discard this patch.
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
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
Please login to merge, or discard this patch.
help_tours/Registration_Form_Question_Groups_Help_Tour.class.php 2 patches
Spacing   +14 added lines, -14 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
 /**
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 				)
43 43
 			);
44 44
 
45
-		if ( $this->_is_caf ) {
45
+		if ($this->_is_caf) {
46 46
 			$this->_stops[15] = array(
47 47
 				'id' => 'id',
48 48
 				'content' => $this->_id_stop(),
@@ -111,45 +111,45 @@  discard block
 block discarded – undo
111 111
 
112 112
 
113 113
 	protected function _start() {
114
-		$content = '<h3>' . __('Question Groups', 'event_espresso') . '</h3>';
115
-		if ( $this->_is_caf ) {
116
-			$content .= '<p>' . __('This tour of the Question Groups page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
114
+		$content = '<h3>'.__('Question Groups', 'event_espresso').'</h3>';
115
+		if ($this->_is_caf) {
116
+			$content .= '<p>'.__('This tour of the Question Groups page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
117 117
 		} else {
118
-			$content .= '<p>' . __('Sorry, Event Espresso Decaf does not have this feature. Please purchase a support license to get access to this feature.', 'event_espresso') . '</p>';
118
+			$content .= '<p>'.__('Sorry, Event Espresso Decaf does not have this feature. Please purchase a support license to get access to this feature.', 'event_espresso').'</p>';
119 119
 		}
120 120
 		
121 121
 		return $content;
122 122
 	}
123 123
 
124 124
 	protected function _id_stop() {
125
-		return '<p>' . __('View the ID of the question group. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
125
+		return '<p>'.__('View the ID of the question group. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
126 126
 	}
127 127
 
128 128
 	protected function _name_stop() {
129
-		return '<p>' . __('View available questions groups. You can reorder your questions by dragging and dropping them.', 'event_espresso') . '</p>';
129
+		return '<p>'.__('View available questions groups. You can reorder your questions by dragging and dropping them.', 'event_espresso').'</p>';
130 130
 	}
131 131
 
132 132
 	protected function _description_stop() {
133
-		return '<p>' . __('View the question group description.', 'event_espresso') . '</p>';
133
+		return '<p>'.__('View the question group description.', 'event_espresso').'</p>';
134 134
 	}
135 135
 
136 136
 	protected function _show_group_name_stop() {
137
-		return '<p>' . __('View if the name of the question group should be shown to customers.', 'event_espresso') . '</p>';
137
+		return '<p>'.__('View if the name of the question group should be shown to customers.', 'event_espresso').'</p>';
138 138
 	}
139 139
 
140 140
 	protected function _show_group_description_stop() {
141
-		return '<p>' . __('View if the description of the question group should be shown to customers.', 'event_espresso') . '</p>';
141
+		return '<p>'.__('View if the description of the question group should be shown to customers.', 'event_espresso').'</p>';
142 142
 	}
143 143
 
144 144
 	protected function _bulk_actions_stop() {
145
-		return '<p>' . __('Perform bulk actions to multiple question groups.', 'event_espresso') . '</p>';
145
+		return '<p>'.__('Perform bulk actions to multiple question groups.', 'event_espresso').'</p>';
146 146
 	}
147 147
 
148 148
 	protected function _search_stop() {
149
-		return '<p>' . __('Search through questions. The following sources will be searched: question group name and question group description.', 'event_espresso') . '</p>';
149
+		return '<p>'.__('Search through questions. The following sources will be searched: question group name and question group description.', 'event_espresso').'</p>';
150 150
 	}
151 151
 
152 152
 	protected function _add_new_question_group_stop() {
153
-		return '<p>' . __('Click here to create a new question group.', 'event_espresso') . '</p>';
153
+		return '<p>'.__('Click here to create a new question group.', 'event_espresso').'</p>';
154 154
 	}
155 155
 }
156 156
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
Please login to merge, or discard this patch.
help_tours/Registration_Form_Questions_Overview_Help_Tour.class.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
3 3
 	exit('NO direct script access allowed');
4 4
 
5 5
 /**
@@ -116,30 +116,30 @@  discard block
 block discarded – undo
116 116
 
117 117
 
118 118
 	protected function _start() {
119
-		$content = '<h3>' . __('Questions Overview', 'event_espresso') . '</h3>';
120
-		$content .= '<p>' . __('This tour of the Questions Overview page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
119
+		$content = '<h3>'.__('Questions Overview', 'event_espresso').'</h3>';
120
+		$content .= '<p>'.__('This tour of the Questions Overview page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
121 121
 
122 122
 		return $content;
123 123
 	}
124 124
 
125 125
 	protected function _display_text_stop() {
126
-		return '<p>' . __('View available questions. You can reorder your questions by dragging and dropping them.', 'event_espresso') . '</p>';
126
+		return '<p>'.__('View available questions. You can reorder your questions by dragging and dropping them.', 'event_espresso').'</p>';
127 127
 	}
128 128
 
129 129
 	protected function _admin_label_stop() {
130
-		return '<p>' . __('View the admin label for your questions.', 'event_espresso') . '</p>';
130
+		return '<p>'.__('View the admin label for your questions.', 'event_espresso').'</p>';
131 131
 	}
132 132
 
133 133
 	protected function _type_stop() {
134
-		return '<p>' . __('View the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, and Date Picker.', 'event_espresso') . '</p>';
134
+		return '<p>'.__('View the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, and Date Picker.', 'event_espresso').'</p>';
135 135
 	}
136 136
 
137 137
 	protected function _values_stop() {
138
-		return '<p>' . __('View stored values for checkboxes, radio buttons, and select boxes.', 'event_espresso') . '</p>';
138
+		return '<p>'.__('View stored values for checkboxes, radio buttons, and select boxes.', 'event_espresso').'</p>';
139 139
 	}
140 140
 
141 141
 	protected function _required_stop() {
142
-		return '<p>' . __('View if a question is required.', 'event_espresso') . '</p>';
142
+		return '<p>'.__('View if a question is required.', 'event_espresso').'</p>';
143 143
 	}
144 144
 
145 145
 	/* protected function _bulk_actions_stop() {
@@ -147,11 +147,11 @@  discard block
 block discarded – undo
147 147
 	} */
148 148
 
149 149
 	protected function _search_stop() {
150
-		return '<p>' . __('Search through questions. The following sources will be searched: Name of Question (display text).', 'event_espresso') . '</p>';
150
+		return '<p>'.__('Search through questions. The following sources will be searched: Name of Question (display text).', 'event_espresso').'</p>';
151 151
 	}
152 152
 
153 153
 	protected function _add_new_question_stop() {
154
-		return '<p>' . __('Click here to add a new question.', 'event_espresso') . '</p>';
154
+		return '<p>'.__('Click here to add a new question.', 'event_espresso').'</p>';
155 155
 	}
156 156
 
157 157
 }
158 158
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
Please login to merge, or discard this patch.
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
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
Please login to merge, or discard this patch.