@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if (!defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } |
|
1 | +<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } |
|
2 | 2 | /** |
3 | 3 | * |
4 | 4 | * Class EE_Radio_Button_Display_Strategy |
@@ -11,59 +11,59 @@ discard block |
||
11 | 11 | * @since $VID:$ |
12 | 12 | * |
13 | 13 | */ |
14 | -class EE_Radio_Button_Display_Strategy extends EE_Display_Strategy_Base{ |
|
14 | +class EE_Radio_Button_Display_Strategy extends EE_Display_Strategy_Base { |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * |
18 | 18 | * @throws EE_Error |
19 | 19 | * @return string of html to display the field |
20 | 20 | */ |
21 | - function display(){ |
|
22 | - if ( ! $this->_input instanceof EE_Form_Input_With_Options_Base ){ |
|
23 | - throw new EE_Error(sprintf(__('Can not use Radio Button Display Strategy with an input that doesn\'t have options', 'event_espresso' ))); |
|
21 | + function display() { |
|
22 | + if ( ! $this->_input instanceof EE_Form_Input_With_Options_Base) { |
|
23 | + throw new EE_Error(sprintf(__('Can not use Radio Button Display Strategy with an input that doesn\'t have options', 'event_espresso'))); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | $this->_input->set_label_sizes(); |
27 | 27 | $label_size_class = $this->_input->get_label_size_class(); |
28 | 28 | |
29 | - switch( $this->_input->label_position() ) { |
|
29 | + switch ($this->_input->label_position()) { |
|
30 | 30 | |
31 | 31 | case EE_Form_Input_With_Options_Base::label_before_input : |
32 | - $html = $this->_label_before_input( $this->_input->options(), $label_size_class ); |
|
32 | + $html = $this->_label_before_input($this->_input->options(), $label_size_class); |
|
33 | 33 | break; |
34 | 34 | |
35 | 35 | case EE_Form_Input_With_Options_Base::label_after_input : |
36 | - $html = $this->_label_after_input( $this->_input->options(), $label_size_class ); |
|
36 | + $html = $this->_label_after_input($this->_input->options(), $label_size_class); |
|
37 | 37 | break; |
38 | 38 | |
39 | 39 | case EE_Form_Input_With_Options_Base::label_wraps_input : |
40 | 40 | default : |
41 | - $html = $this->_label_wraps_input( $this->_input->options(), $label_size_class ); |
|
41 | + $html = $this->_label_wraps_input($this->_input->options(), $label_size_class); |
|
42 | 42 | |
43 | 43 | } |
44 | - $html .= EEH_HTML::div( '', '', 'clear-float' ); |
|
44 | + $html .= EEH_HTML::div('', '', 'clear-float'); |
|
45 | 45 | $html .= EEH_HTML::divx(); |
46 | 46 | return $html; |
47 | 47 | } |
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | - protected function _label_before_input( $options = array(), $label_size_class = '' ) { |
|
51 | + protected function _label_before_input($options = array(), $label_size_class = '') { |
|
52 | 52 | $html = ''; |
53 | - foreach ( $options as $value => $display_text ) { |
|
54 | - $value = $this->_input->get_normalization_strategy()->unnormalize( $value ); |
|
55 | - $html_id = $this->_append_chars( $this->_input->html_id(), '-' ) . sanitize_key( $value ); |
|
56 | - $html .= '<label for="' . $html_id . '"'; |
|
57 | - $html .= ' id="' . $html_id . '-lbl"'; |
|
58 | - $html .= ' class="ee-radio-label-after' . $label_size_class . '">'; |
|
53 | + foreach ($options as $value => $display_text) { |
|
54 | + $value = $this->_input->get_normalization_strategy()->unnormalize($value); |
|
55 | + $html_id = $this->_append_chars($this->_input->html_id(), '-').sanitize_key($value); |
|
56 | + $html .= '<label for="'.$html_id.'"'; |
|
57 | + $html .= ' id="'.$html_id.'-lbl"'; |
|
58 | + $html .= ' class="ee-radio-label-after'.$label_size_class.'">'; |
|
59 | 59 | $html .= $display_text; |
60 | 60 | $html .= '</label> '; |
61 | - $html .= '<input id="' . $html_id . '"'; |
|
62 | - $html .= ' name="' . $this->_input->html_name() . '"'; |
|
63 | - $html .= ' class="' . $this->_input->html_class() . '"'; |
|
64 | - $html .= ' style="' . $this->_input->html_style() . '"'; |
|
61 | + $html .= '<input id="'.$html_id.'"'; |
|
62 | + $html .= ' name="'.$this->_input->html_name().'"'; |
|
63 | + $html .= ' class="'.$this->_input->html_class().'"'; |
|
64 | + $html .= ' style="'.$this->_input->html_style().'"'; |
|
65 | 65 | $html .= ' type="radio"'; |
66 | - $html .= ' value="' . esc_attr( $value ) . '"'; |
|
66 | + $html .= ' value="'.esc_attr($value).'"'; |
|
67 | 67 | $html .= $this->_input->raw_value() === $value ? ' checked="checked"' : ''; |
68 | 68 | $html .= '/>'; |
69 | 69 | } |
@@ -73,22 +73,22 @@ discard block |
||
73 | 73 | |
74 | 74 | |
75 | 75 | |
76 | - protected function _label_wraps_input( $options = array(), $label_size_class = '' ) { |
|
76 | + protected function _label_wraps_input($options = array(), $label_size_class = '') { |
|
77 | 77 | $html = ''; |
78 | - foreach ( $options as $value => $display_text ) { |
|
79 | - $value = $this->_input->get_normalization_strategy()->unnormalize( $value ); |
|
80 | - $html_id = $this->_append_chars( $this->_input->html_id(), '-' ) . sanitize_key( $value ); |
|
81 | - $html .= EEH_HTML::nl( 0, 'radio' ); |
|
82 | - $html .= '<label for="' . $html_id . '"'; |
|
83 | - $html .= ' id="' . $html_id . '-lbl"'; |
|
84 | - $html .= ' class="ee-radio-label-after' . $label_size_class . '">'; |
|
85 | - $html .= EEH_HTML::nl( 1, 'radio' ); |
|
86 | - $html .= '<input id="' . $html_id . '"'; |
|
87 | - $html .= ' name="' . $this->_input->html_name() . '"'; |
|
88 | - $html .= ' class="' . $this->_input->html_class() . '"'; |
|
89 | - $html .= ' style="' . $this->_input->html_style() . '"'; |
|
78 | + foreach ($options as $value => $display_text) { |
|
79 | + $value = $this->_input->get_normalization_strategy()->unnormalize($value); |
|
80 | + $html_id = $this->_append_chars($this->_input->html_id(), '-').sanitize_key($value); |
|
81 | + $html .= EEH_HTML::nl(0, 'radio'); |
|
82 | + $html .= '<label for="'.$html_id.'"'; |
|
83 | + $html .= ' id="'.$html_id.'-lbl"'; |
|
84 | + $html .= ' class="ee-radio-label-after'.$label_size_class.'">'; |
|
85 | + $html .= EEH_HTML::nl(1, 'radio'); |
|
86 | + $html .= '<input id="'.$html_id.'"'; |
|
87 | + $html .= ' name="'.$this->_input->html_name().'"'; |
|
88 | + $html .= ' class="'.$this->_input->html_class().'"'; |
|
89 | + $html .= ' style="'.$this->_input->html_style().'"'; |
|
90 | 90 | $html .= ' type="radio"'; |
91 | - $html .= ' value="' . esc_attr( $value ) . '"'; |
|
91 | + $html .= ' value="'.esc_attr($value).'"'; |
|
92 | 92 | $html .= $this->_input->raw_value() === $value ? ' checked="checked"' : ''; |
93 | 93 | $html .= '/> '; |
94 | 94 | $html .= $display_text; |
@@ -101,22 +101,22 @@ discard block |
||
101 | 101 | |
102 | 102 | |
103 | 103 | |
104 | - protected function _label_after_input( $options = array(), $label_size_class = '' ) { |
|
104 | + protected function _label_after_input($options = array(), $label_size_class = '') { |
|
105 | 105 | $html = ''; |
106 | - foreach ( $options as $value => $display_text ) { |
|
107 | - $value = $this->_input->get_normalization_strategy()->unnormalize( $value ); |
|
108 | - $html_id = $this->_append_chars( $this->_input->html_id(), '-' ) . sanitize_key( $value ); |
|
109 | - $html .= '<input id="' . $html_id . '"'; |
|
110 | - $html .= ' name="' . $this->_input->html_name() . '"'; |
|
111 | - $html .= ' class="' . $this->_input->html_class() . '"'; |
|
112 | - $html .= ' style="' . $this->_input->html_style() . '"'; |
|
106 | + foreach ($options as $value => $display_text) { |
|
107 | + $value = $this->_input->get_normalization_strategy()->unnormalize($value); |
|
108 | + $html_id = $this->_append_chars($this->_input->html_id(), '-').sanitize_key($value); |
|
109 | + $html .= '<input id="'.$html_id.'"'; |
|
110 | + $html .= ' name="'.$this->_input->html_name().'"'; |
|
111 | + $html .= ' class="'.$this->_input->html_class().'"'; |
|
112 | + $html .= ' style="'.$this->_input->html_style().'"'; |
|
113 | 113 | $html .= ' type="radio"'; |
114 | - $html .= ' value="' . esc_attr( $value ) . '"'; |
|
114 | + $html .= ' value="'.esc_attr($value).'"'; |
|
115 | 115 | $html .= $this->_input->raw_value() === $value ? ' checked="checked"' : ''; |
116 | 116 | $html .= '/> '; |
117 | - $html .= '<label for="' . $html_id . '"'; |
|
118 | - $html .= ' id="' . $html_id . '-lbl"'; |
|
119 | - $html .= ' class="ee-radio-label-after' . $label_size_class . '">'; |
|
117 | + $html .= '<label for="'.$html_id.'"'; |
|
118 | + $html .= ' id="'.$html_id.'-lbl"'; |
|
119 | + $html .= ' class="ee-radio-label-after'.$label_size_class.'">'; |
|
120 | 120 | $html .= $display_text; |
121 | 121 | $html .= '</label>'; |
122 | 122 | } |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\services\activation; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -42,11 +42,11 @@ discard block |
||
42 | 42 | * @param int $wp_user_id |
43 | 43 | * @throws \Exception |
44 | 44 | */ |
45 | - public function __construct( $wp_user_id ) { |
|
46 | - $this->setWpUserId( $wp_user_id ); |
|
47 | - if ( empty( $this->wp_user_id ) ) { |
|
45 | + public function __construct($wp_user_id) { |
|
46 | + $this->setWpUserId($wp_user_id); |
|
47 | + if (empty($this->wp_user_id)) { |
|
48 | 48 | throw new \Exception( |
49 | - __( 'A valid WP User ID is required in order to generate tables and default data', 'event_espresso' ) |
|
49 | + __('A valid WP User ID is required in order to generate tables and default data', 'event_espresso') |
|
50 | 50 | ); |
51 | 51 | } |
52 | 52 | } |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * @param int $wp_user_id |
67 | 67 | */ |
68 | - public function setWpUserId( $wp_user_id ) { |
|
69 | - $this->wp_user_id = absint( $wp_user_id ); |
|
68 | + public function setWpUserId($wp_user_id) { |
|
69 | + $this->wp_user_id = absint($wp_user_id); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * @param array $table_data_generators |
85 | 85 | */ |
86 | - public function setTableDataGenerators( $table_data_generators ) { |
|
86 | + public function setTableDataGenerators($table_data_generators) { |
|
87 | 87 | $this->table_data_generators = $table_data_generators; |
88 | 88 | } |
89 | 89 | |
@@ -108,20 +108,20 @@ discard block |
||
108 | 108 | $exclude = array() |
109 | 109 | ) { |
110 | 110 | $table_data_generators = array(); |
111 | - if ( empty( $filepaths ) ) { |
|
111 | + if (empty($filepaths)) { |
|
112 | 112 | return $table_data_generators; |
113 | 113 | } |
114 | - foreach ( $filepaths as $filepath ) { |
|
115 | - if ( is_readable( $filepath ) ) { |
|
116 | - require_once( $filepath ); |
|
117 | - $classname = str_replace( '.php', '', basename( $filepath ) ); |
|
118 | - $FQCN = $namespace . $classname; |
|
114 | + foreach ($filepaths as $filepath) { |
|
115 | + if (is_readable($filepath)) { |
|
116 | + require_once($filepath); |
|
117 | + $classname = str_replace('.php', '', basename($filepath)); |
|
118 | + $FQCN = $namespace.$classname; |
|
119 | 119 | if ( |
120 | - ! in_array( $classname, $exclude ) |
|
121 | - && class_exists( $FQCN ) |
|
122 | - && is_subclass_of( $FQCN, $subclass_of ) |
|
120 | + ! in_array($classname, $exclude) |
|
121 | + && class_exists($FQCN) |
|
122 | + && is_subclass_of($FQCN, $subclass_of) |
|
123 | 123 | ) { |
124 | - $table_data_generators[ $classname ] = new $FQCN( $arguments ); |
|
124 | + $table_data_generators[$classname] = new $FQCN($arguments); |
|
125 | 125 | } |
126 | 126 | } |
127 | 127 | } |
@@ -136,16 +136,16 @@ discard block |
||
136 | 136 | * @return int The number of rows inserted |
137 | 137 | * @throws \Exception |
138 | 138 | */ |
139 | - protected function insertData( \EEM_Base $model, $data ) { |
|
140 | - if ( ! $model instanceof \EEM_Base ) { |
|
139 | + protected function insertData(\EEM_Base $model, $data) { |
|
140 | + if ( ! $model instanceof \EEM_Base) { |
|
141 | 141 | throw new \Exception( |
142 | 142 | sprintf( |
143 | - __( '"%1$s" is not a valid table model. Could not perform an insert query.', 'event_espresso' ), |
|
144 | - is_object( $model ) ? get_class( $model ) : print_r( $model, true ) |
|
143 | + __('"%1$s" is not a valid table model. Could not perform an insert query.', 'event_espresso'), |
|
144 | + is_object($model) ? get_class($model) : print_r($model, true) |
|
145 | 145 | ) |
146 | 146 | ); |
147 | 147 | } |
148 | - if ( empty( $data ) || ! is_array( $data ) ) { |
|
148 | + if (empty($data) || ! is_array($data)) { |
|
149 | 149 | throw new \Exception( |
150 | 150 | sprintf( |
151 | 151 | __( |
@@ -157,8 +157,8 @@ discard block |
||
157 | 157 | ); |
158 | 158 | } |
159 | 159 | // insert table data |
160 | - $insert_id = $model->insert( $data ); |
|
161 | - if ( $insert_id === false ) { |
|
160 | + $insert_id = $model->insert($data); |
|
161 | + if ($insert_id === false) { |
|
162 | 162 | throw new \Exception( |
163 | 163 | sprintf( |
164 | 164 | __( |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | 'event_espresso' |
167 | 167 | ), |
168 | 168 | $model->table(), |
169 | - print_r( $data, true ), |
|
169 | + print_r($data, true), |
|
170 | 170 | '<br />' |
171 | 171 | ) |
172 | 172 | ); |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | use EventEspresso\core\services\activation\TableDataGenerator; |
5 | 5 | |
6 | 6 | |
7 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
8 | - exit( 'No direct script access allowed' ); |
|
7 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
8 | + exit('No direct script access allowed'); |
|
9 | 9 | } |
10 | 10 | |
11 | 11 | |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | * |
30 | 30 | * @param int $wp_user_id |
31 | 31 | */ |
32 | - public function __construct( $wp_user_id ) { |
|
33 | - parent::__construct( $wp_user_id ); |
|
32 | + public function __construct($wp_user_id) { |
|
33 | + parent::__construct($wp_user_id); |
|
34 | 34 | $this->loadSystemQuestionTableDataGenerators(); |
35 | 35 | } |
36 | 36 | |
@@ -44,14 +44,14 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function loadSystemQuestionTableDataGenerators() { |
46 | 46 | $table_data_generators = $this->loadTableDataGenerators( |
47 | - glob( plugin_dir_path( __FILE__ ) . 'SystemQuestions*.php' ), |
|
47 | + glob(plugin_dir_path(__FILE__).'SystemQuestions*.php'), |
|
48 | 48 | 'EventEspresso\\core\\services\\activation\\system_questions\\', |
49 | 49 | 'EventEspresso\\core\\services\\activation\\system_questions\\SystemQuestionsBase', |
50 | 50 | $this->wpUserId(), |
51 | - array( 'SystemQuestionsBase' ) |
|
51 | + array('SystemQuestionsBase') |
|
52 | 52 | ); |
53 | - uasort( $table_data_generators, array( $this, 'sortSystemQuestionTables' ) ); |
|
54 | - $this->setTableDataGenerators( $table_data_generators ); |
|
53 | + uasort($table_data_generators, array($this, 'sortSystemQuestionTables')); |
|
54 | + $this->setTableDataGenerators($table_data_generators); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | |
@@ -63,11 +63,11 @@ discard block |
||
63 | 63 | * @param SystemQuestionsBase $b |
64 | 64 | * @return int |
65 | 65 | */ |
66 | - private function sortSystemQuestionTables( SystemQuestionsBase $a, SystemQuestionsBase $b ) { |
|
67 | - if ( $a->tableInsertOrder() == $b->tableInsertOrder() ) { |
|
66 | + private function sortSystemQuestionTables(SystemQuestionsBase $a, SystemQuestionsBase $b) { |
|
67 | + if ($a->tableInsertOrder() == $b->tableInsertOrder()) { |
|
68 | 68 | return 0; |
69 | 69 | } |
70 | - return ( $a->tableInsertOrder() < $b->tableInsertOrder() ) ? -1 : 1; |
|
70 | + return ($a->tableInsertOrder() < $b->tableInsertOrder()) ? -1 : 1; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | |
@@ -80,11 +80,11 @@ discard block |
||
80 | 80 | * @param \EEM_Base $model |
81 | 81 | * @return array |
82 | 82 | */ |
83 | - protected function getExistingData( $field_name, \EEM_Base $model ) { |
|
83 | + protected function getExistingData($field_name, \EEM_Base $model) { |
|
84 | 84 | // what we have |
85 | - $existing_data = $model->get_col( array( array( $field_name => array( '!=', 0 ) ) ), $field_name ); |
|
85 | + $existing_data = $model->get_col(array(array($field_name => array('!=', 0))), $field_name); |
|
86 | 86 | // check the response |
87 | - return is_array( $existing_data ) ? $existing_data : array(); |
|
87 | + return is_array($existing_data) ? $existing_data : array(); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | |
@@ -97,18 +97,18 @@ discard block |
||
97 | 97 | */ |
98 | 98 | public function initializeSystemQuestionGroups() { |
99 | 99 | /** @var \EEM_Question_Group $EEM_Question_Group */ |
100 | - $EEM_Question_Group = \EE_Registry::instance()->load_model( 'EEM_Question_Group' ); |
|
100 | + $EEM_Question_Group = \EE_Registry::instance()->load_model('EEM_Question_Group'); |
|
101 | 101 | // get existing system question groups |
102 | - $existing_question_groups = $this->getExistingData( 'QSG_system', $EEM_Question_Group ); |
|
103 | - foreach ( $this->tableDataGenerators() as $classname => $table_data_generator ) { |
|
104 | - if ( $table_data_generator instanceof SystemQuestionsBase ) { |
|
102 | + $existing_question_groups = $this->getExistingData('QSG_system', $EEM_Question_Group); |
|
103 | + foreach ($this->tableDataGenerators() as $classname => $table_data_generator) { |
|
104 | + if ($table_data_generator instanceof SystemQuestionsBase) { |
|
105 | 105 | $QSG_system = $table_data_generator->getQSGConstant(); |
106 | 106 | // record already exists, skip to next item |
107 | - if ( in_array( (string)$QSG_system, $existing_question_groups ) ) { |
|
107 | + if (in_array((string) $QSG_system, $existing_question_groups)) { |
|
108 | 108 | continue; |
109 | 109 | } |
110 | - $QSG_ID = $this->insertData( $EEM_Question_Group, $table_data_generator->getQuestionGroupData() ); |
|
111 | - $table_data_generator->setQsgID( $QSG_ID ); |
|
110 | + $QSG_ID = $this->insertData($EEM_Question_Group, $table_data_generator->getQuestionGroupData()); |
|
111 | + $table_data_generator->setQsgID($QSG_ID); |
|
112 | 112 | } |
113 | 113 | } |
114 | 114 | } |
@@ -123,28 +123,28 @@ discard block |
||
123 | 123 | */ |
124 | 124 | public function initializeSystemQuestions() { |
125 | 125 | /** @var \EEM_Question $EEM_Question */ |
126 | - $EEM_Question = \EE_Registry::instance()->load_model( 'EEM_Question' ); |
|
126 | + $EEM_Question = \EE_Registry::instance()->load_model('EEM_Question'); |
|
127 | 127 | /** @var \EEM_Question_Group_Question $EEM_Question_Group_Question */ |
128 | - $EEM_Question_Group_Question = \EE_Registry::instance()->load_model( 'EEM_Question_Group_Question' ); |
|
128 | + $EEM_Question_Group_Question = \EE_Registry::instance()->load_model('EEM_Question_Group_Question'); |
|
129 | 129 | // get existing system questions |
130 | - $existing_questions = $this->getExistingData( 'QST_system', $EEM_Question ); |
|
131 | - foreach ( $this->tableDataGenerators() as $classname => $table_data_generator ) { |
|
130 | + $existing_questions = $this->getExistingData('QST_system', $EEM_Question); |
|
131 | + foreach ($this->tableDataGenerators() as $classname => $table_data_generator) { |
|
132 | 132 | $QSG_order = 0; |
133 | - if ( $table_data_generator instanceof SystemQuestionsBase ) { |
|
133 | + if ($table_data_generator instanceof SystemQuestionsBase) { |
|
134 | 134 | $allowed_system_questions = $EEM_Question->allowed_system_questions_in_system_question_group( |
135 | 135 | $table_data_generator->getQSGConstant() |
136 | 136 | ); |
137 | 137 | $system_questions = $table_data_generator->getSystemQuestions(); |
138 | - foreach ( $system_questions as $system_question => $system_question_data ) { |
|
138 | + foreach ($system_questions as $system_question => $system_question_data) { |
|
139 | 139 | $QSG_order++; |
140 | 140 | // record already exists OR question not allowed for this question group, so skip to next item |
141 | 141 | if ( |
142 | - in_array( $system_question, $existing_questions ) |
|
143 | - || ! in_array( $system_question, $allowed_system_questions ) |
|
142 | + in_array($system_question, $existing_questions) |
|
143 | + || ! in_array($system_question, $allowed_system_questions) |
|
144 | 144 | ) { |
145 | 145 | continue; |
146 | 146 | } |
147 | - $QST_ID = $this->insertData( $EEM_Question, $system_question_data ); |
|
147 | + $QST_ID = $this->insertData($EEM_Question, $system_question_data); |
|
148 | 148 | // now set a relation to it's question group |
149 | 149 | $this->insertData( |
150 | 150 | $EEM_Question_Group_Question, |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\services\activation\system_questions; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function getQuestionGroupData() { |
51 | 51 | return array( |
52 | - 'QSG_name' => __( 'Address Information', 'event_espresso' ), |
|
53 | - 'QSG_identifier' => 'address-information-' . time(), |
|
52 | + 'QSG_name' => __('Address Information', 'event_espresso'), |
|
53 | + 'QSG_identifier' => 'address-information-'.time(), |
|
54 | 54 | 'QSG_desc' => '', |
55 | 55 | 'QSG_order' => \EEM_Question_Group::system_address, |
56 | 56 | 'QSG_show_group_name' => 1, |
@@ -73,84 +73,84 @@ discard block |
||
73 | 73 | public function getSystemQuestions() { |
74 | 74 | return array( |
75 | 75 | 'address' => array( |
76 | - 'QST_display_text' => __( 'Address', 'event_espresso' ), |
|
77 | - 'QST_admin_label' => __( 'Address - System Question', 'event_espresso' ), |
|
76 | + 'QST_display_text' => __('Address', 'event_espresso'), |
|
77 | + 'QST_admin_label' => __('Address - System Question', 'event_espresso'), |
|
78 | 78 | 'QST_system' => 'address', |
79 | 79 | 'QST_type' => 'TEXT', |
80 | 80 | 'QST_required' => 0, |
81 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
81 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
82 | 82 | 'QST_order' => 4, |
83 | 83 | 'QST_admin_only' => 0, |
84 | 84 | 'QST_wp_user' => $this->wpUserId(), |
85 | 85 | 'QST_deleted' => 0 |
86 | 86 | ), |
87 | 87 | 'address2' => array( |
88 | - 'QST_display_text' => __( 'Address2', 'event_espresso' ), |
|
89 | - 'QST_admin_label' => __( 'Address2 - System Question', 'event_espresso' ), |
|
88 | + 'QST_display_text' => __('Address2', 'event_espresso'), |
|
89 | + 'QST_admin_label' => __('Address2 - System Question', 'event_espresso'), |
|
90 | 90 | 'QST_system' => 'address2', |
91 | 91 | 'QST_type' => 'TEXT', |
92 | 92 | 'QST_required' => 0, |
93 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
93 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
94 | 94 | 'QST_order' => 5, |
95 | 95 | 'QST_admin_only' => 0, |
96 | 96 | 'QST_wp_user' => $this->wpUserId(), |
97 | 97 | 'QST_deleted' => 0 |
98 | 98 | ), |
99 | 99 | 'city' => array( |
100 | - 'QST_display_text' => __( 'City', 'event_espresso' ), |
|
101 | - 'QST_admin_label' => __( 'City - System Question', 'event_espresso' ), |
|
100 | + 'QST_display_text' => __('City', 'event_espresso'), |
|
101 | + 'QST_admin_label' => __('City - System Question', 'event_espresso'), |
|
102 | 102 | 'QST_system' => 'city', |
103 | 103 | 'QST_type' => 'TEXT', |
104 | 104 | 'QST_required' => 0, |
105 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
105 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
106 | 106 | 'QST_order' => 6, |
107 | 107 | 'QST_admin_only' => 0, |
108 | 108 | 'QST_wp_user' => $this->wpUserId(), |
109 | 109 | 'QST_deleted' => 0 |
110 | 110 | ), |
111 | 111 | 'state' => array( |
112 | - 'QST_display_text' => __( 'State/Province', 'event_espresso' ), |
|
113 | - 'QST_admin_label' => __( 'State/Province - System Question', 'event_espresso' ), |
|
112 | + 'QST_display_text' => __('State/Province', 'event_espresso'), |
|
113 | + 'QST_admin_label' => __('State/Province - System Question', 'event_espresso'), |
|
114 | 114 | 'QST_system' => 'state', |
115 | 115 | 'QST_type' => 'STATE', |
116 | 116 | 'QST_required' => 0, |
117 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
117 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
118 | 118 | 'QST_order' => 7, |
119 | 119 | 'QST_admin_only' => 0, |
120 | 120 | 'QST_wp_user' => $this->wpUserId(), |
121 | 121 | 'QST_deleted' => 0 |
122 | 122 | ), |
123 | 123 | 'country' => array( |
124 | - 'QST_display_text' => __( 'Country', 'event_espresso' ), |
|
125 | - 'QST_admin_label' => __( 'Country - System Question', 'event_espresso' ), |
|
124 | + 'QST_display_text' => __('Country', 'event_espresso'), |
|
125 | + 'QST_admin_label' => __('Country - System Question', 'event_espresso'), |
|
126 | 126 | 'QST_system' => 'country', |
127 | 127 | 'QST_type' => 'COUNTRY', |
128 | 128 | 'QST_required' => 0, |
129 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
129 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
130 | 130 | 'QST_order' => 8, |
131 | 131 | 'QST_admin_only' => 0, |
132 | 132 | 'QST_wp_user' => $this->wpUserId(), |
133 | 133 | 'QST_deleted' => 0 |
134 | 134 | ), |
135 | 135 | 'zip' => array( |
136 | - 'QST_display_text' => __( 'Zip/Postal Code', 'event_espresso' ), |
|
137 | - 'QST_admin_label' => __( 'Zip/Postal Code - System Question', 'event_espresso' ), |
|
136 | + 'QST_display_text' => __('Zip/Postal Code', 'event_espresso'), |
|
137 | + 'QST_admin_label' => __('Zip/Postal Code - System Question', 'event_espresso'), |
|
138 | 138 | 'QST_system' => 'zip', |
139 | 139 | 'QST_type' => 'TEXT', |
140 | 140 | 'QST_required' => 0, |
141 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
141 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
142 | 142 | 'QST_order' => 9, |
143 | 143 | 'QST_admin_only' => 0, |
144 | 144 | 'QST_wp_user' => $this->wpUserId(), |
145 | 145 | 'QST_deleted' => 0 |
146 | 146 | ), |
147 | 147 | 'phone' => array( |
148 | - 'QST_display_text' => __( 'Phone Number', 'event_espresso' ), |
|
149 | - 'QST_admin_label' => __( 'Phone Number - System Question', 'event_espresso' ), |
|
148 | + 'QST_display_text' => __('Phone Number', 'event_espresso'), |
|
149 | + 'QST_admin_label' => __('Phone Number - System Question', 'event_espresso'), |
|
150 | 150 | 'QST_system' => 'phone', |
151 | 151 | 'QST_type' => 'TEXT', |
152 | 152 | 'QST_required' => 0, |
153 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
153 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
154 | 154 | 'QST_order' => 10, |
155 | 155 | 'QST_admin_only' => 0, |
156 | 156 | 'QST_wp_user' => $this->wpUserId(), |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\services\activation\system_questions; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | * @param int $wp_user_id |
44 | 44 | * @throws \Exception |
45 | 45 | */ |
46 | - public function __construct( $wp_user_id ) { |
|
47 | - $this->setWpUserId( $wp_user_id ); |
|
48 | - if ( empty( $this->wp_user_id ) ) { |
|
46 | + public function __construct($wp_user_id) { |
|
47 | + $this->setWpUserId($wp_user_id); |
|
48 | + if (empty($this->wp_user_id)) { |
|
49 | 49 | throw new \Exception( |
50 | - __( 'A valid WP User ID is required in order to generate tables and default data', 'event_espresso' ) |
|
50 | + __('A valid WP User ID is required in order to generate tables and default data', 'event_espresso') |
|
51 | 51 | ); |
52 | 52 | } |
53 | 53 | } |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | /** |
67 | 67 | * @param int $wp_user_id |
68 | 68 | */ |
69 | - public function setWpUserId( $wp_user_id ) { |
|
70 | - $this->wp_user_id = absint( $wp_user_id ); |
|
69 | + public function setWpUserId($wp_user_id) { |
|
70 | + $this->wp_user_id = absint($wp_user_id); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | /** |
85 | 85 | * @param int $qsgID |
86 | 86 | */ |
87 | - public function setQsgID( $qsgID ) { |
|
88 | - $this->qsgID = absint( $qsgID ); |
|
87 | + public function setQsgID($qsgID) { |
|
88 | + $this->qsgID = absint($qsgID); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\services\activation\system_questions; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function getQuestionGroupData() { |
53 | 53 | return array( |
54 | - 'QSG_name' => __( 'Personal Information', 'event_espresso' ), |
|
55 | - 'QSG_identifier' => 'personal-information-' . time(), |
|
54 | + 'QSG_name' => __('Personal Information', 'event_espresso'), |
|
55 | + 'QSG_identifier' => 'personal-information-'.time(), |
|
56 | 56 | 'QSG_desc' => '', |
57 | 57 | 'QSG_order' => 1, |
58 | 58 | 'QSG_show_group_name' => 1, |
@@ -72,39 +72,39 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @return array |
74 | 74 | */ |
75 | - public function getSystemQuestions(){ |
|
75 | + public function getSystemQuestions() { |
|
76 | 76 | return array( |
77 | 77 | 'fname' => array( |
78 | - 'QST_display_text' => __( 'First Name', 'event_espresso' ), |
|
79 | - 'QST_admin_label' => __( 'First Name - System Question', 'event_espresso' ), |
|
78 | + 'QST_display_text' => __('First Name', 'event_espresso'), |
|
79 | + 'QST_admin_label' => __('First Name - System Question', 'event_espresso'), |
|
80 | 80 | 'QST_system' => 'fname', |
81 | 81 | 'QST_type' => 'TEXT', |
82 | 82 | 'QST_required' => 1, |
83 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
83 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
84 | 84 | 'QST_order' => 1, |
85 | 85 | 'QST_admin_only' => 0, |
86 | 86 | 'QST_wp_user' => $this->wpUserId(), |
87 | 87 | 'QST_deleted' => 0 |
88 | 88 | ), |
89 | 89 | 'lname' => array( |
90 | - 'QST_display_text' => __( 'Last Name', 'event_espresso' ), |
|
91 | - 'QST_admin_label' => __( 'Last Name - System Question', 'event_espresso' ), |
|
90 | + 'QST_display_text' => __('Last Name', 'event_espresso'), |
|
91 | + 'QST_admin_label' => __('Last Name - System Question', 'event_espresso'), |
|
92 | 92 | 'QST_system' => 'lname', |
93 | 93 | 'QST_type' => 'TEXT', |
94 | 94 | 'QST_required' => 1, |
95 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
95 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
96 | 96 | 'QST_order' => 2, |
97 | 97 | 'QST_admin_only' => 0, |
98 | 98 | 'QST_wp_user' => $this->wpUserId(), |
99 | 99 | 'QST_deleted' => 0 |
100 | 100 | ), |
101 | 101 | 'email' => array( |
102 | - 'QST_display_text' => __( 'Email Address', 'event_espresso' ), |
|
103 | - 'QST_admin_label' => __( 'Email Address - System Question', 'event_espresso' ), |
|
102 | + 'QST_display_text' => __('Email Address', 'event_espresso'), |
|
103 | + 'QST_admin_label' => __('Email Address - System Question', 'event_espresso'), |
|
104 | 104 | 'QST_system' => 'email', |
105 | 105 | 'QST_type' => 'TEXT', // todo: in 4.9 this can be changed to EMAIL |
106 | 106 | 'QST_required' => 1, |
107 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
107 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
108 | 108 | 'QST_order' => 3, |
109 | 109 | 'QST_admin_only' => 0, |
110 | 110 | 'QST_wp_user' => $this->wpUserId(), |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\services\activation\system_questions; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -49,9 +49,9 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function getQuestionGroupData() { |
51 | 51 | return array( |
52 | - 'QSG_name' => __( 'Purchasing Agent', 'event_espresso' ), |
|
53 | - 'QSG_identifier' => 'purchasing-agent-' . time(), |
|
54 | - 'QSG_desc' => __( 'Questions for those that are purchasing for others', 'event_espresso' ), |
|
52 | + 'QSG_name' => __('Purchasing Agent', 'event_espresso'), |
|
53 | + 'QSG_identifier' => 'purchasing-agent-'.time(), |
|
54 | + 'QSG_desc' => __('Questions for those that are purchasing for others', 'event_espresso'), |
|
55 | 55 | 'QSG_order' => 3, |
56 | 56 | 'QSG_show_group_name' => 1, |
57 | 57 | 'QSG_show_group_desc' => 1, |
@@ -73,48 +73,48 @@ discard block |
||
73 | 73 | public function getSystemQuestions() { |
74 | 74 | return array( |
75 | 75 | 'purchaser_fname' => array( |
76 | - 'QST_display_text' => __( 'First Name', 'event_espresso' ), |
|
77 | - 'QST_admin_label' => __( 'Purchasing Agent First Name - System Question', 'event_espresso' ), |
|
76 | + 'QST_display_text' => __('First Name', 'event_espresso'), |
|
77 | + 'QST_admin_label' => __('Purchasing Agent First Name - System Question', 'event_espresso'), |
|
78 | 78 | 'QST_system' => 'purchaser_fname', |
79 | 79 | 'QST_type' => 'TEXT', |
80 | 80 | 'QST_required' => 1, |
81 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
81 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
82 | 82 | 'QST_order' => 1, |
83 | 83 | 'QST_admin_only' => 0, |
84 | 84 | 'QST_wp_user' => $this->wpUserId(), |
85 | 85 | 'QST_deleted' => 0 |
86 | 86 | ), |
87 | 87 | 'purchaser_lname' => array( |
88 | - 'QST_display_text' => __( 'Last Name', 'event_espresso' ), |
|
89 | - 'QST_admin_label' => __( 'Purchasing Agent Last Name - System Question', 'event_espresso' ), |
|
88 | + 'QST_display_text' => __('Last Name', 'event_espresso'), |
|
89 | + 'QST_admin_label' => __('Purchasing Agent Last Name - System Question', 'event_espresso'), |
|
90 | 90 | 'QST_system' => 'purchaser_lname', |
91 | 91 | 'QST_type' => 'TEXT', |
92 | 92 | 'QST_required' => 1, |
93 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
93 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
94 | 94 | 'QST_order' => 2, |
95 | 95 | 'QST_admin_only' => 0, |
96 | 96 | 'QST_wp_user' => $this->wpUserId(), |
97 | 97 | 'QST_deleted' => 0 |
98 | 98 | ), |
99 | 99 | 'purchaser_email' => array( |
100 | - 'QST_display_text' => __( 'Email Address', 'event_espresso' ), |
|
101 | - 'QST_admin_label' => __( 'Purchasing Agent Email Address - System Question', 'event_espresso' ), |
|
100 | + 'QST_display_text' => __('Email Address', 'event_espresso'), |
|
101 | + 'QST_admin_label' => __('Purchasing Agent Email Address - System Question', 'event_espresso'), |
|
102 | 102 | 'QST_system' => 'purchaser_email', |
103 | 103 | 'QST_type' => 'TEXT', // todo: in 4.9 this can be changed to EMAIL |
104 | 104 | 'QST_required' => 1, |
105 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
105 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
106 | 106 | 'QST_order' => 3, |
107 | 107 | 'QST_admin_only' => 0, |
108 | 108 | 'QST_wp_user' => $this->wpUserId(), |
109 | 109 | 'QST_deleted' => 0 |
110 | 110 | ), |
111 | 111 | 'purchaser_organization' => array( |
112 | - 'QST_display_text' => __( 'Organization', 'event_espresso' ), |
|
113 | - 'QST_admin_label' => __( 'Purchasing Agent Organization - System Question', 'event_espresso' ), |
|
112 | + 'QST_display_text' => __('Organization', 'event_espresso'), |
|
113 | + 'QST_admin_label' => __('Purchasing Agent Organization - System Question', 'event_espresso'), |
|
114 | 114 | 'QST_system' => 'purchaser_organization', |
115 | 115 | 'QST_type' => 'TEXT', |
116 | 116 | 'QST_required' => 0, |
117 | - 'QST_required_text' => __( 'This field is required', 'event_espresso' ), |
|
117 | + 'QST_required_text' => __('This field is required', 'event_espresso'), |
|
118 | 118 | 'QST_order' => 4, |
119 | 119 | 'QST_admin_only' => 0, |
120 | 120 | 'QST_wp_user' => $this->wpUserId(), |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
3 | - exit( 'No direct script access allowed' ); |
|
2 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
3 | + exit('No direct script access allowed'); |
|
4 | 4 | } |
5 | 5 | /** |
6 | 6 | * Class EE_Line_Item_Filter_Collection |
@@ -1,42 +1,42 @@ discard block |
||
1 | -<?php do_action( 'FHEE__registration_page_attendee_information__before_attendee_information_pg', get_defined_vars() ); ?> |
|
1 | +<?php do_action('FHEE__registration_page_attendee_information__before_attendee_information_pg', get_defined_vars()); ?> |
|
2 | 2 | |
3 | 3 | <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text"> |
4 | - <?php echo apply_filters( 'FHEE__registration_page_attendee_information__attendee_information_pg', sprintf( __('In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.', 'event_espresso'), '<br />', '<span class="asterisk">*</span>' )); ?> |
|
4 | + <?php echo apply_filters('FHEE__registration_page_attendee_information__attendee_information_pg', sprintf(__('In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.', 'event_espresso'), '<br />', '<span class="asterisk">*</span>')); ?> |
|
5 | 5 | </p> |
6 | 6 | |
7 | 7 | <?php |
8 | 8 | $att_nmbr = 0; |
9 | 9 | $prev_event = ''; |
10 | 10 | $prev_ticket = ''; |
11 | -if ( count( $registrations ) > 0 ) { |
|
12 | - do_action( 'FHEE__registration_page_attendee_information__before_attendee_panels', get_defined_vars() ); |
|
13 | - foreach ( $registrations as $registration ) { |
|
14 | - if ( $registration instanceof EE_Registration ) { |
|
11 | +if (count($registrations) > 0) { |
|
12 | + do_action('FHEE__registration_page_attendee_information__before_attendee_panels', get_defined_vars()); |
|
13 | + foreach ($registrations as $registration) { |
|
14 | + if ($registration instanceof EE_Registration) { |
|
15 | 15 | $att_nmbr++; |
16 | 16 | ?> |
17 | 17 | |
18 | - <div id="spco-attendee-panel-dv-<?php echo $registration->reg_url_link();?>" class="spco-attendee-panel-dv spco-attendee-ticket-<?php echo $registration->ticket()->ID();?>"> |
|
18 | + <div id="spco-attendee-panel-dv-<?php echo $registration->reg_url_link(); ?>" class="spco-attendee-panel-dv spco-attendee-ticket-<?php echo $registration->ticket()->ID(); ?>"> |
|
19 | 19 | |
20 | - <?php if ( $registration->event()->ID() != $prev_event ) { ?> |
|
20 | + <?php if ($registration->event()->ID() != $prev_event) { ?> |
|
21 | 21 | <h4 id="event_title-<?php echo $registration->event()->ID() ?>" class="big-event-title-hdr"> |
22 | 22 | <?php echo $registration->event()->name(); ?> |
23 | 23 | </h4> |
24 | 24 | <?php } ?> |
25 | - <?php if ( $registration->ticket()->ID() != $prev_ticket ) { ?> |
|
26 | - <?php if ( ! $revisit ) { ?> |
|
25 | + <?php if ($registration->ticket()->ID() != $prev_ticket) { ?> |
|
26 | + <?php if ( ! $revisit) { ?> |
|
27 | 27 | <div class="spco-ticket-info-dv small-text"> |
28 | - <h5><?php _e('Details', 'event_espresso');?></h5> |
|
28 | + <h5><?php _e('Details', 'event_espresso'); ?></h5> |
|
29 | 29 | <table> |
30 | 30 | <thead> |
31 | 31 | <tr> |
32 | - <th scope="col" width=""><?php _e('Name and Description', 'event_espresso');?></th> |
|
33 | - <th scope="col" width="7.5%" class="jst-rght"><?php _e('Qty', 'event_espresso');?></th> |
|
34 | - <th scope="col" width="17.5%" class="jst-rght"><?php _e('Price', 'event_espresso');?></th> |
|
35 | - <th scope="col" width="17.5%" class="jst-rght"><?php _e('Total', 'event_espresso');?></th> |
|
32 | + <th scope="col" width=""><?php _e('Name and Description', 'event_espresso'); ?></th> |
|
33 | + <th scope="col" width="7.5%" class="jst-rght"><?php _e('Qty', 'event_espresso'); ?></th> |
|
34 | + <th scope="col" width="17.5%" class="jst-rght"><?php _e('Price', 'event_espresso'); ?></th> |
|
35 | + <th scope="col" width="17.5%" class="jst-rght"><?php _e('Total', 'event_espresso'); ?></th> |
|
36 | 36 | </tr> |
37 | 37 | </thead> |
38 | 38 | <tbody> |
39 | - <?php echo $ticket_line_item[ $registration->ticket()->ID() ]; ?> |
|
39 | + <?php echo $ticket_line_item[$registration->ticket()->ID()]; ?> |
|
40 | 40 | </tbody> |
41 | 41 | </table> |
42 | 42 | </div> |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | <?php |
47 | 47 | // ATTENDEE QUESTIONS |
48 | - $reg_form = EE_Template_Layout::get_subform_name( $registration->reg_url_link() ); |
|
48 | + $reg_form = EE_Template_Layout::get_subform_name($registration->reg_url_link()); |
|
49 | 49 | echo ${$reg_form}; |
50 | 50 | ?> |
51 | 51 | |
@@ -57,12 +57,12 @@ discard block |
||
57 | 57 | } // if ( $registration instanceof EE_Registration ) |
58 | 58 | } // end foreach ( $registrations as $registration ) |
59 | 59 | |
60 | - do_action( 'FHEE__registration_page_attendee_information__after_attendee_panels', get_defined_vars() ); |
|
60 | + do_action('FHEE__registration_page_attendee_information__after_attendee_panels', get_defined_vars()); |
|
61 | 61 | echo $default_hidden_inputs; |
62 | 62 | |
63 | 63 | // end if ( count( $registrations ) > 0 ) |
64 | 64 | } else { |
65 | - do_action( 'FHEE__registration_page_attendee_information__reg_count_zero', get_defined_vars() ); |
|
65 | + do_action('FHEE__registration_page_attendee_information__reg_count_zero', get_defined_vars()); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | ?> |