@@ -21,14 +21,14 @@ discard block |
||
21 | 21 | public function __construct($routing = true) |
22 | 22 | { |
23 | 23 | parent::__construct($routing); |
24 | - define('GEN_SET_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'general_settings/templates/'); |
|
24 | + define('GEN_SET_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND.'general_settings/templates/'); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | |
28 | 28 | protected function _extend_page_config() |
29 | 29 | { |
30 | 30 | |
31 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'general_settings'; |
|
31 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND.'general_settings'; |
|
32 | 32 | |
33 | 33 | // filters and action hooks here |
34 | 34 | add_action('AHEE__admin_option_settings__template__before', array($this, 'debug_logging_options'), 9); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $template_args['remote_logging_url'] = isset(EE_Registry::instance()->CFG->admin->remote_logging_url) |
61 | 61 | && ! empty(EE_Registry::instance()->CFG->admin->remote_logging_url) |
62 | 62 | ? stripslashes(EE_Registry::instance()->CFG->admin->remote_logging_url) : ''; |
63 | - $template = GEN_SET_CAF_TEMPLATE_PATH . 'debug_log_settings.template.php'; |
|
63 | + $template = GEN_SET_CAF_TEMPLATE_PATH.'debug_log_settings.template.php'; |
|
64 | 64 | EEH_Template::display_template($template, $template_args); |
65 | 65 | } |
66 | 66 |
@@ -18,68 +18,68 @@ |
||
18 | 18 | { |
19 | 19 | |
20 | 20 | |
21 | - public function __construct($routing = true) |
|
22 | - { |
|
23 | - parent::__construct($routing); |
|
24 | - define('GEN_SET_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'general_settings/templates/'); |
|
25 | - } |
|
21 | + public function __construct($routing = true) |
|
22 | + { |
|
23 | + parent::__construct($routing); |
|
24 | + define('GEN_SET_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'general_settings/templates/'); |
|
25 | + } |
|
26 | 26 | |
27 | 27 | |
28 | - protected function _extend_page_config() |
|
29 | - { |
|
28 | + protected function _extend_page_config() |
|
29 | + { |
|
30 | 30 | |
31 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'general_settings'; |
|
31 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'general_settings'; |
|
32 | 32 | |
33 | - // filters and action hooks here |
|
34 | - add_action('AHEE__admin_option_settings__template__before', array($this, 'debug_logging_options'), 9); |
|
35 | - add_filter( |
|
36 | - 'FHEE__General_Settings_Admin_Page___update_admin_option_settings__CFG_admin', |
|
37 | - array($this, 'update_debug_logging_options'), |
|
38 | - 10, |
|
39 | - 1 |
|
40 | - ); |
|
41 | - } |
|
33 | + // filters and action hooks here |
|
34 | + add_action('AHEE__admin_option_settings__template__before', array($this, 'debug_logging_options'), 9); |
|
35 | + add_filter( |
|
36 | + 'FHEE__General_Settings_Admin_Page___update_admin_option_settings__CFG_admin', |
|
37 | + array($this, 'update_debug_logging_options'), |
|
38 | + 10, |
|
39 | + 1 |
|
40 | + ); |
|
41 | + } |
|
42 | 42 | |
43 | 43 | |
44 | 44 | |
45 | - /************* Logging Settings *************/ |
|
45 | + /************* Logging Settings *************/ |
|
46 | 46 | |
47 | - /** |
|
48 | - * debug_logging_options |
|
49 | - * |
|
50 | - * @param array $template_args |
|
51 | - * |
|
52 | - * @return void |
|
53 | - */ |
|
54 | - public function debug_logging_options($template_args = array()) |
|
55 | - { |
|
56 | - $template_args['use_remote_logging'] = isset(EE_Registry::instance()->CFG->admin->use_remote_logging) ? absint( |
|
57 | - EE_Registry::instance()->CFG->admin->use_remote_logging |
|
58 | - ) : false; |
|
59 | - $template_args['remote_logging_url'] = isset(EE_Registry::instance()->CFG->admin->remote_logging_url) |
|
60 | - && ! empty(EE_Registry::instance()->CFG->admin->remote_logging_url) |
|
61 | - ? stripslashes(EE_Registry::instance()->CFG->admin->remote_logging_url) : ''; |
|
62 | - $template = GEN_SET_CAF_TEMPLATE_PATH . 'debug_log_settings.template.php'; |
|
63 | - EEH_Template::display_template($template, $template_args); |
|
64 | - } |
|
47 | + /** |
|
48 | + * debug_logging_options |
|
49 | + * |
|
50 | + * @param array $template_args |
|
51 | + * |
|
52 | + * @return void |
|
53 | + */ |
|
54 | + public function debug_logging_options($template_args = array()) |
|
55 | + { |
|
56 | + $template_args['use_remote_logging'] = isset(EE_Registry::instance()->CFG->admin->use_remote_logging) ? absint( |
|
57 | + EE_Registry::instance()->CFG->admin->use_remote_logging |
|
58 | + ) : false; |
|
59 | + $template_args['remote_logging_url'] = isset(EE_Registry::instance()->CFG->admin->remote_logging_url) |
|
60 | + && ! empty(EE_Registry::instance()->CFG->admin->remote_logging_url) |
|
61 | + ? stripslashes(EE_Registry::instance()->CFG->admin->remote_logging_url) : ''; |
|
62 | + $template = GEN_SET_CAF_TEMPLATE_PATH . 'debug_log_settings.template.php'; |
|
63 | + EEH_Template::display_template($template, $template_args); |
|
64 | + } |
|
65 | 65 | |
66 | 66 | |
67 | - /** |
|
68 | - * update_debug_logging_options |
|
69 | - * |
|
70 | - * @param array $admin_options |
|
71 | - * |
|
72 | - * @return array |
|
73 | - */ |
|
74 | - public function update_debug_logging_options($admin_options = array()) |
|
75 | - { |
|
76 | - $admin_options->use_remote_logging = isset($this->_req_data['use_remote_logging']) ? absint( |
|
77 | - $this->_req_data['use_remote_logging'] |
|
78 | - ) : $admin_options->use_remote_logging; |
|
79 | - $admin_options->remote_logging_url = isset($this->_req_data['remote_logging_url']) ? esc_url_raw( |
|
80 | - $this->_req_data['remote_logging_url'] |
|
81 | - ) : $admin_options->remote_logging_url; |
|
67 | + /** |
|
68 | + * update_debug_logging_options |
|
69 | + * |
|
70 | + * @param array $admin_options |
|
71 | + * |
|
72 | + * @return array |
|
73 | + */ |
|
74 | + public function update_debug_logging_options($admin_options = array()) |
|
75 | + { |
|
76 | + $admin_options->use_remote_logging = isset($this->_req_data['use_remote_logging']) ? absint( |
|
77 | + $this->_req_data['use_remote_logging'] |
|
78 | + ) : $admin_options->use_remote_logging; |
|
79 | + $admin_options->remote_logging_url = isset($this->_req_data['remote_logging_url']) ? esc_url_raw( |
|
80 | + $this->_req_data['remote_logging_url'] |
|
81 | + ) : $admin_options->remote_logging_url; |
|
82 | 82 | |
83 | - return $admin_options; |
|
84 | - } |
|
83 | + return $admin_options; |
|
84 | + } |
|
85 | 85 | } |
@@ -34,10 +34,10 @@ discard block |
||
34 | 34 | <input type="hidden" name="batch_message[id_type]" value="<?php echo $id_type; ?>"> |
35 | 35 | <input id="newsletter-batch-ids" type="hidden" name="batch_message[ids]" value=""> |
36 | 36 | <h3 class="newsletter-send-form-title"><?php |
37 | - printf( |
|
38 | - __('Sending batch message to %s people...', 'event_espresso'), |
|
39 | - '[NUMPEOPLE]' |
|
40 | - ); ?></h3> |
|
37 | + printf( |
|
38 | + __('Sending batch message to %s people...', 'event_espresso'), |
|
39 | + '[NUMPEOPLE]' |
|
40 | + ); ?></h3> |
|
41 | 41 | <label for="batch-message-template-selector"><?php _e('Select Template:', 'event_espresso'); ?></label> |
42 | 42 | <?php echo $template_selector; ?> |
43 | 43 | <div class="batch-message-edit-fields" style="display:none;"> |
@@ -59,10 +59,10 @@ discard block |
||
59 | 59 | <div id="shortcode-container-subject" |
60 | 60 | class="shortcodes-info-container ee_shortcode_chooser_container" style="display:none"> |
61 | 61 | <p><?php |
62 | - _e( |
|
63 | - 'The following shortcodes can be used in the subject field:', |
|
64 | - 'event_espresso' |
|
65 | - ); ?></p> |
|
62 | + _e( |
|
63 | + 'The following shortcodes can be used in the subject field:', |
|
64 | + 'event_espresso' |
|
65 | + ); ?></p> |
|
66 | 66 | <p><?php echo $shortcodes['Subject']; ?></p> |
67 | 67 | </div> |
68 | 68 | <input type="text" name="batch_message[subject]" id="batch-message-subject" |
@@ -75,10 +75,10 @@ discard block |
||
75 | 75 | <div id="shortcode-container-content" |
76 | 76 | class="shortcodes-info-container ee_shortcode_chooser_container" style="display:none"> |
77 | 77 | <p><?php |
78 | - _e( |
|
79 | - 'The following shortcodes can be used in the content area:', |
|
80 | - 'event_espresso' |
|
81 | - ); ?></p> |
|
78 | + _e( |
|
79 | + 'The following shortcodes can be used in the content area:', |
|
80 | + 'event_espresso' |
|
81 | + ); ?></p> |
|
82 | 82 | <p><?php echo $shortcodes['[NEWSLETTER_CONTENT]']; ?></p> |
83 | 83 | </div> |
84 | 84 | <textarea name="batch_message[content]" id="batch-message-content" |
@@ -87,10 +87,10 @@ discard block |
||
87 | 87 | <input type="submit" class="batch-message-submit button button-primary alignright" |
88 | 88 | name="batch-message-submit" value="<?php _e('Send', 'event_espresso'); ?>"> |
89 | 89 | <button class="batch-message-cancel button button-secondary alignright"><?php |
90 | - _e( |
|
91 | - 'Cancel', |
|
92 | - 'event_espresso' |
|
93 | - ); ?></button> |
|
90 | + _e( |
|
91 | + 'Cancel', |
|
92 | + 'event_espresso' |
|
93 | + ); ?></button> |
|
94 | 94 | <div style="clear:both"></div> |
95 | 95 | </div> |
96 | 96 | </form> |
@@ -15,189 +15,189 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - protected function _set_tips_array() |
|
19 | - { |
|
20 | - $this->_qtipsa = array( |
|
21 | - 0 => array( |
|
22 | - 'content_id' => 'about-taxable-toggle', |
|
23 | - 'target' => '.TKT-taxable-checkbox', |
|
24 | - 'content' => $this->_get_taxable_info_content(), |
|
25 | - 'options' => array( |
|
26 | - 'show_only_once' => true, |
|
27 | - 'content' => array( |
|
28 | - 'title' => __('Taxable Ticket Toggle', 'event_espresso'), |
|
29 | - 'button' => true, |
|
30 | - ), |
|
31 | - 'show' => array( |
|
32 | - 'event' => 'click', |
|
33 | - ), |
|
34 | - 'hide' => array( |
|
35 | - 'event' => false, |
|
36 | - ), |
|
37 | - 'style' => array( |
|
38 | - 'classes' => '', |
|
39 | - ), |
|
40 | - )// defaults |
|
41 | - ), |
|
42 | - 1 => array( |
|
43 | - 'content_id' => 'ticket-icon-help', |
|
44 | - 'target' => '.ticket-icon', |
|
45 | - 'content' => __('Assigned Tickets', 'event_espresso'), |
|
46 | - ), |
|
47 | - 2 => array( |
|
48 | - 'content_id' => 'clone-icon-help', |
|
49 | - 'target' => '.clone-icon', |
|
50 | - 'content' => __('Duplicate this Item', 'event_espresso'), |
|
51 | - ), |
|
52 | - 3 => array( |
|
53 | - 'content_id' => 'trash-datetime-help', |
|
54 | - 'target' => '.datetime-edit-table .trash-icon', |
|
55 | - 'content' => __('Trash Datetime', 'event_espresso'), |
|
56 | - ), |
|
57 | - 4 => array( |
|
58 | - 'content_id' => 'trash-ticket-help', |
|
59 | - 'target' => '.ticket-row .trash-icon', |
|
60 | - 'content' => __('Trash Ticket', 'event_espresso'), |
|
61 | - ), |
|
62 | - 5 => array( |
|
63 | - 'content_id' => 'trash-price-modifier-help', |
|
64 | - 'target' => '.ticket-price-rows .trash-icon', |
|
65 | - 'content' => __('Trash Price Modifier', 'event_espresso'), |
|
66 | - ), |
|
67 | - 6 => array( |
|
68 | - 'content_id' => 'gear-icon-help', |
|
69 | - 'target' => '.gear-icon', |
|
70 | - 'content' => __('Advanced Settings', 'event_espresso'), |
|
71 | - ), |
|
72 | - 7 => array( |
|
73 | - 'content_id' => 'tkt-status-archived', |
|
74 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::archived, |
|
75 | - 'content' => $this->_ticket_status_legend(EE_Ticket::archived), |
|
76 | - 'options' => array( |
|
77 | - 'position' => array( |
|
78 | - 'target' => 'mouse', |
|
79 | - 'adjust' => array( |
|
80 | - 'mouse' => false, |
|
81 | - ), |
|
82 | - ), |
|
83 | - ), |
|
84 | - ), |
|
85 | - 8 => array( |
|
86 | - 'content_id' => 'tkt-status-expired', |
|
87 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::expired, |
|
88 | - 'content' => $this->_ticket_status_legend(EE_Ticket::expired), |
|
89 | - 'options' => array( |
|
90 | - 'position' => array( |
|
91 | - 'target' => 'mouse', |
|
92 | - 'adjust' => array( |
|
93 | - 'mouse' => false, |
|
94 | - ), |
|
95 | - ), |
|
96 | - ), |
|
97 | - ), |
|
98 | - 9 => array( |
|
99 | - 'content_id' => 'tkt-status-sold_out', |
|
100 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::sold_out, |
|
101 | - 'content' => $this->_ticket_status_legend(EE_Ticket::sold_out), |
|
102 | - 'options' => array( |
|
103 | - 'position' => array( |
|
104 | - 'target' => 'mouse', |
|
105 | - 'adjust' => array( |
|
106 | - 'mouse' => false, |
|
107 | - ), |
|
108 | - ), |
|
109 | - ), |
|
110 | - ), |
|
111 | - 10 => array( |
|
112 | - 'content_id' => 'tkt-status-pending', |
|
113 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::pending, |
|
114 | - 'content' => $this->_ticket_status_legend(EE_Ticket::pending), |
|
115 | - 'options' => array( |
|
116 | - 'position' => array( |
|
117 | - 'target' => 'mouse', |
|
118 | - 'adjust' => array( |
|
119 | - 'mouse' => false, |
|
120 | - ), |
|
121 | - ), |
|
122 | - ), |
|
123 | - ), |
|
124 | - 11 => array( |
|
125 | - 'content_id' => 'tkt-status-onsale', |
|
126 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::onsale, |
|
127 | - 'content' => $this->_ticket_status_legend(EE_Ticket::onsale), |
|
128 | - 'options' => array( |
|
129 | - 'position' => array( |
|
130 | - 'target' => 'mouse', |
|
131 | - 'adjust' => array( |
|
132 | - 'mouse' => false, |
|
133 | - ), |
|
134 | - ), |
|
135 | - ), |
|
136 | - ), |
|
137 | - 12 => array( |
|
138 | - 'content_id' => 'sortable-tkt-drag-handle-tip', |
|
139 | - 'target' => '.ee-ticket-sortable .sortable-drag-handle', |
|
140 | - 'content' => __('Click and drag-n-drop to reorder tickets.', 'event_espresso'), |
|
141 | - 'options' => array( |
|
142 | - 'position' => array( |
|
143 | - 'adjust' => array( |
|
144 | - 'mouse' => false, |
|
145 | - 'y' => 5, |
|
146 | - ), |
|
147 | - ), |
|
148 | - ), |
|
149 | - ), |
|
150 | - 13 => array( |
|
151 | - 'content_id' => 'sortable-dtt-drag-handle-tip', |
|
152 | - 'target' => '.ee-dtt-sortable .sortable-drag-handle', |
|
153 | - 'content' => __('Click and drag-n-drop to reorder datetimes.', 'event_espresso'), |
|
154 | - 'options' => array( |
|
155 | - 'position' => array( |
|
156 | - 'adjust' => array( |
|
157 | - 'mouse' => false, |
|
158 | - 'y' => 5, |
|
159 | - ), |
|
160 | - ), |
|
161 | - ), |
|
162 | - ), |
|
163 | - ); |
|
164 | - } |
|
18 | + protected function _set_tips_array() |
|
19 | + { |
|
20 | + $this->_qtipsa = array( |
|
21 | + 0 => array( |
|
22 | + 'content_id' => 'about-taxable-toggle', |
|
23 | + 'target' => '.TKT-taxable-checkbox', |
|
24 | + 'content' => $this->_get_taxable_info_content(), |
|
25 | + 'options' => array( |
|
26 | + 'show_only_once' => true, |
|
27 | + 'content' => array( |
|
28 | + 'title' => __('Taxable Ticket Toggle', 'event_espresso'), |
|
29 | + 'button' => true, |
|
30 | + ), |
|
31 | + 'show' => array( |
|
32 | + 'event' => 'click', |
|
33 | + ), |
|
34 | + 'hide' => array( |
|
35 | + 'event' => false, |
|
36 | + ), |
|
37 | + 'style' => array( |
|
38 | + 'classes' => '', |
|
39 | + ), |
|
40 | + )// defaults |
|
41 | + ), |
|
42 | + 1 => array( |
|
43 | + 'content_id' => 'ticket-icon-help', |
|
44 | + 'target' => '.ticket-icon', |
|
45 | + 'content' => __('Assigned Tickets', 'event_espresso'), |
|
46 | + ), |
|
47 | + 2 => array( |
|
48 | + 'content_id' => 'clone-icon-help', |
|
49 | + 'target' => '.clone-icon', |
|
50 | + 'content' => __('Duplicate this Item', 'event_espresso'), |
|
51 | + ), |
|
52 | + 3 => array( |
|
53 | + 'content_id' => 'trash-datetime-help', |
|
54 | + 'target' => '.datetime-edit-table .trash-icon', |
|
55 | + 'content' => __('Trash Datetime', 'event_espresso'), |
|
56 | + ), |
|
57 | + 4 => array( |
|
58 | + 'content_id' => 'trash-ticket-help', |
|
59 | + 'target' => '.ticket-row .trash-icon', |
|
60 | + 'content' => __('Trash Ticket', 'event_espresso'), |
|
61 | + ), |
|
62 | + 5 => array( |
|
63 | + 'content_id' => 'trash-price-modifier-help', |
|
64 | + 'target' => '.ticket-price-rows .trash-icon', |
|
65 | + 'content' => __('Trash Price Modifier', 'event_espresso'), |
|
66 | + ), |
|
67 | + 6 => array( |
|
68 | + 'content_id' => 'gear-icon-help', |
|
69 | + 'target' => '.gear-icon', |
|
70 | + 'content' => __('Advanced Settings', 'event_espresso'), |
|
71 | + ), |
|
72 | + 7 => array( |
|
73 | + 'content_id' => 'tkt-status-archived', |
|
74 | + 'target' => '.ticket-row .tkt-status-' . EE_Ticket::archived, |
|
75 | + 'content' => $this->_ticket_status_legend(EE_Ticket::archived), |
|
76 | + 'options' => array( |
|
77 | + 'position' => array( |
|
78 | + 'target' => 'mouse', |
|
79 | + 'adjust' => array( |
|
80 | + 'mouse' => false, |
|
81 | + ), |
|
82 | + ), |
|
83 | + ), |
|
84 | + ), |
|
85 | + 8 => array( |
|
86 | + 'content_id' => 'tkt-status-expired', |
|
87 | + 'target' => '.ticket-row .tkt-status-' . EE_Ticket::expired, |
|
88 | + 'content' => $this->_ticket_status_legend(EE_Ticket::expired), |
|
89 | + 'options' => array( |
|
90 | + 'position' => array( |
|
91 | + 'target' => 'mouse', |
|
92 | + 'adjust' => array( |
|
93 | + 'mouse' => false, |
|
94 | + ), |
|
95 | + ), |
|
96 | + ), |
|
97 | + ), |
|
98 | + 9 => array( |
|
99 | + 'content_id' => 'tkt-status-sold_out', |
|
100 | + 'target' => '.ticket-row .tkt-status-' . EE_Ticket::sold_out, |
|
101 | + 'content' => $this->_ticket_status_legend(EE_Ticket::sold_out), |
|
102 | + 'options' => array( |
|
103 | + 'position' => array( |
|
104 | + 'target' => 'mouse', |
|
105 | + 'adjust' => array( |
|
106 | + 'mouse' => false, |
|
107 | + ), |
|
108 | + ), |
|
109 | + ), |
|
110 | + ), |
|
111 | + 10 => array( |
|
112 | + 'content_id' => 'tkt-status-pending', |
|
113 | + 'target' => '.ticket-row .tkt-status-' . EE_Ticket::pending, |
|
114 | + 'content' => $this->_ticket_status_legend(EE_Ticket::pending), |
|
115 | + 'options' => array( |
|
116 | + 'position' => array( |
|
117 | + 'target' => 'mouse', |
|
118 | + 'adjust' => array( |
|
119 | + 'mouse' => false, |
|
120 | + ), |
|
121 | + ), |
|
122 | + ), |
|
123 | + ), |
|
124 | + 11 => array( |
|
125 | + 'content_id' => 'tkt-status-onsale', |
|
126 | + 'target' => '.ticket-row .tkt-status-' . EE_Ticket::onsale, |
|
127 | + 'content' => $this->_ticket_status_legend(EE_Ticket::onsale), |
|
128 | + 'options' => array( |
|
129 | + 'position' => array( |
|
130 | + 'target' => 'mouse', |
|
131 | + 'adjust' => array( |
|
132 | + 'mouse' => false, |
|
133 | + ), |
|
134 | + ), |
|
135 | + ), |
|
136 | + ), |
|
137 | + 12 => array( |
|
138 | + 'content_id' => 'sortable-tkt-drag-handle-tip', |
|
139 | + 'target' => '.ee-ticket-sortable .sortable-drag-handle', |
|
140 | + 'content' => __('Click and drag-n-drop to reorder tickets.', 'event_espresso'), |
|
141 | + 'options' => array( |
|
142 | + 'position' => array( |
|
143 | + 'adjust' => array( |
|
144 | + 'mouse' => false, |
|
145 | + 'y' => 5, |
|
146 | + ), |
|
147 | + ), |
|
148 | + ), |
|
149 | + ), |
|
150 | + 13 => array( |
|
151 | + 'content_id' => 'sortable-dtt-drag-handle-tip', |
|
152 | + 'target' => '.ee-dtt-sortable .sortable-drag-handle', |
|
153 | + 'content' => __('Click and drag-n-drop to reorder datetimes.', 'event_espresso'), |
|
154 | + 'options' => array( |
|
155 | + 'position' => array( |
|
156 | + 'adjust' => array( |
|
157 | + 'mouse' => false, |
|
158 | + 'y' => 5, |
|
159 | + ), |
|
160 | + ), |
|
161 | + ), |
|
162 | + ), |
|
163 | + ); |
|
164 | + } |
|
165 | 165 | |
166 | 166 | |
167 | - private function _get_taxable_info_content() |
|
168 | - { |
|
169 | - $price_admin_link = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'default'), PRICING_ADMIN_URL); |
|
170 | - return '<p>' |
|
171 | - . sprintf( |
|
172 | - __( |
|
173 | - 'Clicking the taxable ticket toggle checkbox has enabled taxes for this ticket. What this means is that when a person purchases this ticket, the tax will be applied to all prices on this ticket. You can edit the existing tax price modifier that was setup in Event Espresso by going to %sDefault Pricing Admin Page%s (labelled "Pricing" in the Event Espresso Menu)', |
|
174 | - 'event_espresso' |
|
175 | - ), |
|
176 | - '<a href="' . $price_admin_link . '" title="' . esc_attr__( |
|
177 | - 'Pricing Admin Page', |
|
178 | - 'event_espresso' |
|
179 | - ) . '">', |
|
180 | - '</a>' |
|
181 | - ) . '</p>'; |
|
182 | - } |
|
167 | + private function _get_taxable_info_content() |
|
168 | + { |
|
169 | + $price_admin_link = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'default'), PRICING_ADMIN_URL); |
|
170 | + return '<p>' |
|
171 | + . sprintf( |
|
172 | + __( |
|
173 | + 'Clicking the taxable ticket toggle checkbox has enabled taxes for this ticket. What this means is that when a person purchases this ticket, the tax will be applied to all prices on this ticket. You can edit the existing tax price modifier that was setup in Event Espresso by going to %sDefault Pricing Admin Page%s (labelled "Pricing" in the Event Espresso Menu)', |
|
174 | + 'event_espresso' |
|
175 | + ), |
|
176 | + '<a href="' . $price_admin_link . '" title="' . esc_attr__( |
|
177 | + 'Pricing Admin Page', |
|
178 | + 'event_espresso' |
|
179 | + ) . '">', |
|
180 | + '</a>' |
|
181 | + ) . '</p>'; |
|
182 | + } |
|
183 | 183 | |
184 | - /** |
|
185 | - * output the relevant ee-status-legend with the designated status highlighted. |
|
186 | - * |
|
187 | - * @param EE_Ticket constant $status What status is set (by class) |
|
188 | - * @return string The status legend with the related status highlighted |
|
189 | - */ |
|
190 | - private function _ticket_status_legend($status) |
|
191 | - { |
|
184 | + /** |
|
185 | + * output the relevant ee-status-legend with the designated status highlighted. |
|
186 | + * |
|
187 | + * @param EE_Ticket constant $status What status is set (by class) |
|
188 | + * @return string The status legend with the related status highlighted |
|
189 | + */ |
|
190 | + private function _ticket_status_legend($status) |
|
191 | + { |
|
192 | 192 | |
193 | - $status_array = array( |
|
194 | - 'archived' => EE_Ticket::archived, |
|
195 | - 'expired' => EE_Ticket::expired, |
|
196 | - 'sold_out' => EE_Ticket::sold_out, |
|
197 | - 'pending' => EE_Ticket::pending, |
|
198 | - 'onsale' => EE_Ticket::onsale, |
|
199 | - ); |
|
193 | + $status_array = array( |
|
194 | + 'archived' => EE_Ticket::archived, |
|
195 | + 'expired' => EE_Ticket::expired, |
|
196 | + 'sold_out' => EE_Ticket::sold_out, |
|
197 | + 'pending' => EE_Ticket::pending, |
|
198 | + 'onsale' => EE_Ticket::onsale, |
|
199 | + ); |
|
200 | 200 | |
201 | - return EEH_Template::status_legend($status_array, $status); |
|
202 | - } |
|
201 | + return EEH_Template::status_legend($status_array, $status); |
|
202 | + } |
|
203 | 203 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | ), |
72 | 72 | 7 => array( |
73 | 73 | 'content_id' => 'tkt-status-archived', |
74 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::archived, |
|
74 | + 'target' => '.ticket-row .tkt-status-'.EE_Ticket::archived, |
|
75 | 75 | 'content' => $this->_ticket_status_legend(EE_Ticket::archived), |
76 | 76 | 'options' => array( |
77 | 77 | 'position' => array( |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | ), |
85 | 85 | 8 => array( |
86 | 86 | 'content_id' => 'tkt-status-expired', |
87 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::expired, |
|
87 | + 'target' => '.ticket-row .tkt-status-'.EE_Ticket::expired, |
|
88 | 88 | 'content' => $this->_ticket_status_legend(EE_Ticket::expired), |
89 | 89 | 'options' => array( |
90 | 90 | 'position' => array( |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | ), |
98 | 98 | 9 => array( |
99 | 99 | 'content_id' => 'tkt-status-sold_out', |
100 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::sold_out, |
|
100 | + 'target' => '.ticket-row .tkt-status-'.EE_Ticket::sold_out, |
|
101 | 101 | 'content' => $this->_ticket_status_legend(EE_Ticket::sold_out), |
102 | 102 | 'options' => array( |
103 | 103 | 'position' => array( |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | ), |
111 | 111 | 10 => array( |
112 | 112 | 'content_id' => 'tkt-status-pending', |
113 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::pending, |
|
113 | + 'target' => '.ticket-row .tkt-status-'.EE_Ticket::pending, |
|
114 | 114 | 'content' => $this->_ticket_status_legend(EE_Ticket::pending), |
115 | 115 | 'options' => array( |
116 | 116 | 'position' => array( |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | ), |
124 | 124 | 11 => array( |
125 | 125 | 'content_id' => 'tkt-status-onsale', |
126 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::onsale, |
|
126 | + 'target' => '.ticket-row .tkt-status-'.EE_Ticket::onsale, |
|
127 | 127 | 'content' => $this->_ticket_status_legend(EE_Ticket::onsale), |
128 | 128 | 'options' => array( |
129 | 129 | 'position' => array( |
@@ -173,12 +173,12 @@ discard block |
||
173 | 173 | 'Clicking the taxable ticket toggle checkbox has enabled taxes for this ticket. What this means is that when a person purchases this ticket, the tax will be applied to all prices on this ticket. You can edit the existing tax price modifier that was setup in Event Espresso by going to %sDefault Pricing Admin Page%s (labelled "Pricing" in the Event Espresso Menu)', |
174 | 174 | 'event_espresso' |
175 | 175 | ), |
176 | - '<a href="' . $price_admin_link . '" title="' . esc_attr__( |
|
176 | + '<a href="'.$price_admin_link.'" title="'.esc_attr__( |
|
177 | 177 | 'Pricing Admin Page', |
178 | 178 | 'event_espresso' |
179 | - ) . '">', |
|
179 | + ).'">', |
|
180 | 180 | '</a>' |
181 | - ) . '</p>'; |
|
181 | + ).'</p>'; |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | /** |
@@ -1,48 +1,48 @@ |
||
1 | 1 | <p><strong><?php _e('Importing CSV Event Espresso Data', 'event_espresso'); ?></strong></p> |
2 | 2 | <p> |
3 | 3 | <?php _e( |
4 | - 'The importer can be used to import event information into Event Espresso using a CSV file.', |
|
5 | - 'event_espresso' |
|
6 | - ); ?> |
|
4 | + 'The importer can be used to import event information into Event Espresso using a CSV file.', |
|
5 | + 'event_espresso' |
|
6 | + ); ?> |
|
7 | 7 | </p> |
8 | 8 | <p><strong><?php _e("Importing from other Event Espresso 4 Sites", 'event_espresso'); ?></strong></p> |
9 | 9 | <p> |
10 | 10 | <?php _e( |
11 | - 'To import Event Espresso data from another Event Espresso 4 install, export a CSV file from the admin Events overview page, or anywhere you can generate a CSV export file from. Then upload that file here (regardless of what type of information was exported).', |
|
12 | - 'event_espresso' |
|
13 | - ); ?> |
|
11 | + 'To import Event Espresso data from another Event Espresso 4 install, export a CSV file from the admin Events overview page, or anywhere you can generate a CSV export file from. Then upload that file here (regardless of what type of information was exported).', |
|
12 | + 'event_espresso' |
|
13 | + ); ?> |
|
14 | 14 | </p> |
15 | 15 | <p> |
16 | 16 | <?php _e( |
17 | - 'Note: its possible that data from the other site have the same IDs as data in this site. The importer recognizes that this data is from a different database and inserts new items for each item in the CSV file, regardless of whether its ID matches that of an item in this site\'s database or not. However, the importer also remembers the mapping from the old site\'s database to this site\'s database, and on subsequent CSV importers from that site, the data in this database will be updated instead of re-inserting new items.', |
|
18 | - 'event_espresso' |
|
19 | - ); ?> |
|
17 | + 'Note: its possible that data from the other site have the same IDs as data in this site. The importer recognizes that this data is from a different database and inserts new items for each item in the CSV file, regardless of whether its ID matches that of an item in this site\'s database or not. However, the importer also remembers the mapping from the old site\'s database to this site\'s database, and on subsequent CSV importers from that site, the data in this database will be updated instead of re-inserting new items.', |
|
18 | + 'event_espresso' |
|
19 | + ); ?> |
|
20 | 20 | </p> |
21 | 21 | <p><strong><?php _e("Importing from this Site", 'event_espresso'); ?></strong></p> |
22 | 22 | <p><?php |
23 | - _e( |
|
24 | - "You may want to export data from this site, modify it (or modify the database), and re-import it. When this is done, the importer recognizes that the data is from this site\'s database and updates the records (instead of inserting new items like it would have, had the CSV data been from a different site).", |
|
25 | - 'event_espresso' |
|
26 | - ); ?></p> |
|
23 | + _e( |
|
24 | + "You may want to export data from this site, modify it (or modify the database), and re-import it. When this is done, the importer recognizes that the data is from this site\'s database and updates the records (instead of inserting new items like it would have, had the CSV data been from a different site).", |
|
25 | + 'event_espresso' |
|
26 | + ); ?></p> |
|
27 | 27 | |
28 | 28 | <p><strong><?php _e("Notes about Generating your own CSV Import Files", "event_espresso"); ?></strong></p> |
29 | 29 | <p><?php |
30 | - _e( |
|
31 | - "If you think you could save time entering data into a CSV file, you can use the sample import file below. Note that creating your own CSV file is more complicated than in Event Espresso 3.1 because of the more advanced data structure, and so we recommend creating/editing your events using the normal web-interface.", |
|
32 | - "event_espresso" |
|
33 | - ); ?></p> |
|
30 | + _e( |
|
31 | + "If you think you could save time entering data into a CSV file, you can use the sample import file below. Note that creating your own CSV file is more complicated than in Event Espresso 3.1 because of the more advanced data structure, and so we recommend creating/editing your events using the normal web-interface.", |
|
32 | + "event_espresso" |
|
33 | + ); ?></p> |
|
34 | 34 | <p><?php |
35 | - _e( |
|
36 | - "The export file is just an export of an event, or if you do not have any events in your system, it will only contain column headers. Do not change those column headers. Add as many rows as you like. ", |
|
37 | - "event_espresso" |
|
38 | - ); ?></p> |
|
35 | + _e( |
|
36 | + "The export file is just an export of an event, or if you do not have any events in your system, it will only contain column headers. Do not change those column headers. Add as many rows as you like. ", |
|
37 | + "event_espresso" |
|
38 | + ); ?></p> |
|
39 | 39 | <p><?php |
40 | - _e( |
|
41 | - "In the ID columns (columns ending in '_ID'), you should enter 'temporary IDs', which are unique numbers/words that identify that item, which can be used later when you want to refer to that item. (For example, if you assign an event's EVT_ID to be a temporary id of 'my-event-1', then use that same phrase 'my-event-1' to refer to that event in the Datetime model's EVT_ID column)", |
|
42 | - "event_espresso" |
|
43 | - ); ?></p> |
|
40 | + _e( |
|
41 | + "In the ID columns (columns ending in '_ID'), you should enter 'temporary IDs', which are unique numbers/words that identify that item, which can be used later when you want to refer to that item. (For example, if you assign an event's EVT_ID to be a temporary id of 'my-event-1', then use that same phrase 'my-event-1' to refer to that event in the Datetime model's EVT_ID column)", |
|
42 | + "event_espresso" |
|
43 | + ); ?></p> |
|
44 | 44 | <p><?php |
45 | - _e( |
|
46 | - "Also note, you do NOT have to enter info in for each model. (You can, for example, only enter in Term_Taxonomies and Term model data)", |
|
47 | - "event_espresso" |
|
48 | - ); ?></p> |
|
49 | 45 | \ No newline at end of file |
46 | + _e( |
|
47 | + "Also note, you do NOT have to enter info in for each model. (You can, for example, only enter in Term_Taxonomies and Term model data)", |
|
48 | + "event_espresso" |
|
49 | + ); ?></p> |
|
50 | 50 | \ No newline at end of file |
@@ -4,8 +4,8 @@ |
||
4 | 4 | <span class="current-date"> <?php echo $current_date; ?></span> |
5 | 5 | <?php echo $current_time_help_link; ?> |
6 | 6 | <a id="change-date-time-lnk" href="options-general.php" target="_blank"><?php |
7 | - _e('Change timezone and date format settings?', 'event_espresso'); |
|
8 | - ?></a> |
|
7 | + _e('Change timezone and date format settings?', 'event_espresso'); |
|
8 | + ?></a> |
|
9 | 9 | |
10 | 10 | <h6> <?php _e('Event Timezone:', 'event_espresso') ?> </h6> |
11 | 11 | <?php echo $event_timezone; ?> |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <div class="import-area"> |
2 | 2 | <div class="important-notice"> |
3 | 3 | <?php _e( |
4 | - 'The import feature has been disabled because of bugs. It is expected to be put back in place soon.', |
|
5 | - 'event_espresso' |
|
6 | - ); ?> |
|
4 | + 'The import feature has been disabled because of bugs. It is expected to be put back in place soon.', |
|
5 | + 'event_espresso' |
|
6 | + ); ?> |
|
7 | 7 | </div> |
8 | 8 | <?php // echo $form?> |
9 | 9 | </div> |
@@ -4,9 +4,9 @@ |
||
4 | 4 | </ul> |
5 | 5 | <div id="espresso_event_type-all" class="tabs-panel"> |
6 | 6 | <?php |
7 | - $name = 'tax_input[espresso_event_type]'; |
|
8 | - echo "<input type='hidden' name='{$name}[]' value='0' />"; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks. |
|
9 | - ?> |
|
7 | + $name = 'tax_input[espresso_event_type]'; |
|
8 | + echo "<input type='hidden' name='{$name}[]' value='0' />"; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks. |
|
9 | + ?> |
|
10 | 10 | <ul id="espresso_event_typechecklist" data-wp-lists="list:espresso_event_type" |
11 | 11 | class="categorychecklist form-no-clear"> |
12 | 12 | <?php echo $radio_list; ?> |
@@ -11,8 +11,8 @@ discard block |
||
11 | 11 | /* @var EE_Question[] $all_questions */ |
12 | 12 | assert(isset($all_questions) && (empty($all_questions) || is_array($all_questions)));// list of unused questions |
13 | 13 | foreach ($all_questions as $unused_question) { |
14 | - assert($unused_question); |
|
15 | - assert($unused_question instanceof EE_Question); |
|
14 | + assert($unused_question); |
|
15 | + assert($unused_question instanceof EE_Question); |
|
16 | 16 | } |
17 | 17 | /* @var array $values . Array of arrays, where each sub-array contains 2 keys: 'id' (internal value) and 'name' (label for displaying) */ |
18 | 18 | assert(is_array($values)); |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | <th> |
32 | 32 | <label for="QSG_name"> |
33 | 33 | <?php _e('Group Name', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link( |
34 | - 'group_name_info' |
|
35 | - ); ?> |
|
34 | + 'group_name_info' |
|
35 | + ); ?> |
|
36 | 36 | </label> |
37 | 37 | </th> |
38 | 38 | <td> |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | <th> |
47 | 47 | <label for="QSG_identifier"> |
48 | 48 | <?php _e('Group Identifier', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link( |
49 | - 'group_identifier_info' |
|
50 | - ); ?> |
|
49 | + 'group_identifier_info' |
|
50 | + ); ?> |
|
51 | 51 | </label> |
52 | 52 | </th> |
53 | 53 | <td> |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | <th> |
67 | 67 | <label for="QSG_desc"> |
68 | 68 | <?php _e('Description', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link( |
69 | - 'group_description_info' |
|
70 | - ); ?> |
|
69 | + 'group_description_info' |
|
70 | + ); ?> |
|
71 | 71 | </label> |
72 | 72 | </th> |
73 | 73 | <td> |
@@ -80,8 +80,8 @@ discard block |
||
80 | 80 | <th> |
81 | 81 | <label for="QSG_order"> |
82 | 82 | <?php _e('Question Group Order', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link( |
83 | - 'group_order_info' |
|
84 | - ); ?> |
|
83 | + 'group_order_info' |
|
84 | + ); ?> |
|
85 | 85 | </label> |
86 | 86 | </th> |
87 | 87 | <td> |
@@ -94,17 +94,17 @@ discard block |
||
94 | 94 | <th> |
95 | 95 | <label> |
96 | 96 | <?php _e('Show Name', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link( |
97 | - 'show_group_name_info' |
|
98 | - ); ?> |
|
97 | + 'show_group_name_info' |
|
98 | + ); ?> |
|
99 | 99 | </label> |
100 | 100 | </th> |
101 | 101 | <td> |
102 | 102 | <label for="QSG_show_group_name"> |
103 | 103 | <?php echo EEH_Form_Fields::select_input( |
104 | - 'QSG_show_group_name', |
|
105 | - $values, |
|
106 | - $question_group->show_group_name() |
|
107 | - ); ?> |
|
104 | + 'QSG_show_group_name', |
|
105 | + $values, |
|
106 | + $question_group->show_group_name() |
|
107 | + ); ?> |
|
108 | 108 | <p class="description"><?php _e('Show Group Name on Registration Page?', 'event_espresso'); ?></p> |
109 | 109 | </label> |
110 | 110 | </td> |
@@ -114,20 +114,20 @@ discard block |
||
114 | 114 | <th> |
115 | 115 | <label> |
116 | 116 | <?php _e(' Show Description', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link( |
117 | - 'show_group_description_info' |
|
118 | - ); ?> |
|
117 | + 'show_group_description_info' |
|
118 | + ); ?> |
|
119 | 119 | </label> |
120 | 120 | </th> |
121 | 121 | <td> |
122 | 122 | <label for="QSG_show_group_order"> |
123 | 123 | <?php echo EEH_Form_Fields::select_input( |
124 | - 'QSG_show_group_desc', |
|
125 | - $values, |
|
126 | - $question_group->show_group_desc() |
|
127 | - ); ?> |
|
124 | + 'QSG_show_group_desc', |
|
125 | + $values, |
|
126 | + $question_group->show_group_desc() |
|
127 | + ); ?> |
|
128 | 128 | <p class="description"><?php |
129 | - _e(' Show Group Description on Registration Page?', 'event_espresso'); |
|
130 | - ?></p> |
|
129 | + _e(' Show Group Description on Registration Page?', 'event_espresso'); |
|
130 | + ?></p> |
|
131 | 131 | </label> |
132 | 132 | <input type="hidden" name="QSG_system" value="<?php echo $question_group->system_group(); ?>"> |
133 | 133 | </td> |
@@ -143,50 +143,50 @@ discard block |
||
143 | 143 | <div class="form-table question-group-questions inside"> |
144 | 144 | <div class="padding"> |
145 | 145 | <p><span class="description"><?php |
146 | - _e( |
|
147 | - 'Select which questions should be shown in this group by checking or unchecking boxes. You can drag and drop questions to reorder them. Your changes will be updated when you save.', |
|
148 | - 'event_espresso' |
|
149 | - ); ?></span></p> |
|
146 | + _e( |
|
147 | + 'Select which questions should be shown in this group by checking or unchecking boxes. You can drag and drop questions to reorder them. Your changes will be updated when you save.', |
|
148 | + 'event_espresso' |
|
149 | + ); ?></span></p> |
|
150 | 150 | <div> |
151 | 151 | <ul class="question-list-sortable"> |
152 | 152 | <?php |
153 | - $question_order = 0; |
|
154 | - $question_group_questions = $question_group->questions(); |
|
155 | - foreach ($all_questions as $question_ID => $question) { |
|
156 | - if ($question instanceof EE_Question) { |
|
157 | - /*@var $question EE_Question*/ |
|
158 | - $checked = isset($question_group_questions[ $question_ID ]) ? ' checked="checked"' : ''; |
|
159 | - // disable questions from the personal information question group |
|
160 | - // is it required in the current question group? if so don't allow admins to remove it |
|
161 | - $disabled = in_array( |
|
162 | - $question->system_ID(), |
|
163 | - EEM_Question::instance()->required_system_questions_in_system_question_group( |
|
164 | - $QSG_system |
|
165 | - ) |
|
166 | - ) ? 'disabled="disabled"' : ''; |
|
167 | - // limit where system questions can appear |
|
168 | - if ($question->system_ID() && |
|
169 | - ! in_array( |
|
170 | - $question->system_ID(), |
|
171 | - EEM_Question::instance()->allowed_system_questions_in_system_question_group( |
|
172 | - $QSG_system |
|
173 | - ) |
|
174 | - ) |
|
175 | - ) { |
|
176 | - continue; // skip over system question not assigned to this group except for the address system group cause we want the address questions to display even if they aren't selected (but still not show the personal system questions). The third condition checks if we're displaying a non system question group and the question is a system question, then we skip because for non-system question groups we only want to show non-system questions. |
|
177 | - } |
|
178 | - ?> |
|
153 | + $question_order = 0; |
|
154 | + $question_group_questions = $question_group->questions(); |
|
155 | + foreach ($all_questions as $question_ID => $question) { |
|
156 | + if ($question instanceof EE_Question) { |
|
157 | + /*@var $question EE_Question*/ |
|
158 | + $checked = isset($question_group_questions[ $question_ID ]) ? ' checked="checked"' : ''; |
|
159 | + // disable questions from the personal information question group |
|
160 | + // is it required in the current question group? if so don't allow admins to remove it |
|
161 | + $disabled = in_array( |
|
162 | + $question->system_ID(), |
|
163 | + EEM_Question::instance()->required_system_questions_in_system_question_group( |
|
164 | + $QSG_system |
|
165 | + ) |
|
166 | + ) ? 'disabled="disabled"' : ''; |
|
167 | + // limit where system questions can appear |
|
168 | + if ($question->system_ID() && |
|
169 | + ! in_array( |
|
170 | + $question->system_ID(), |
|
171 | + EEM_Question::instance()->allowed_system_questions_in_system_question_group( |
|
172 | + $QSG_system |
|
173 | + ) |
|
174 | + ) |
|
175 | + ) { |
|
176 | + continue; // skip over system question not assigned to this group except for the address system group cause we want the address questions to display even if they aren't selected (but still not show the personal system questions). The third condition checks if we're displaying a non system question group and the question is a system question, then we skip because for non-system question groups we only want to show non-system questions. |
|
177 | + } |
|
178 | + ?> |
|
179 | 179 | <li class="ee-question-sortable"> |
180 | 180 | <label for="question-<?php echo $question_ID ?>"> |
181 | 181 | <input type="checkbox" name="questions[<?php echo $question_ID; ?>]" |
182 | 182 | id="question-<?php echo $question_ID; ?>" |
183 | 183 | value="<?php echo $question_ID; ?>"<?php echo $disabled; ?><?php echo $checked; ?>/> |
184 | 184 | <span class="question-text"><?php |
185 | - echo trim($question->display_text()) |
|
186 | - . (95 <= strlen(trim($question->display_text())) |
|
187 | - ? "…" |
|
188 | - : ''); |
|
189 | - ?> |
|
185 | + echo trim($question->display_text()) |
|
186 | + . (95 <= strlen(trim($question->display_text())) |
|
187 | + ? "…" |
|
188 | + : ''); |
|
189 | + ?> |
|
190 | 190 | </span> |
191 | 191 | <input class="question-group-QGQ_order" type="hidden" |
192 | 192 | name="question_orders[<?php echo $question_ID; ?>]" |
@@ -194,10 +194,10 @@ discard block |
||
194 | 194 | </label> |
195 | 195 | </li> |
196 | 196 | <?php |
197 | - $question_order++; |
|
198 | - } |
|
199 | - } |
|
200 | - ?> |
|
197 | + $question_order++; |
|
198 | + } |
|
199 | + } |
|
200 | + ?> |
|
201 | 201 | </ul> |
202 | 202 | </div> |
203 | 203 | </div> |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | assert($question_group); |
10 | 10 | assert($question_group instanceof EE_Question_Group); |
11 | 11 | /* @var EE_Question[] $all_questions */ |
12 | -assert(isset($all_questions) && (empty($all_questions) || is_array($all_questions)));// list of unused questions |
|
12 | +assert(isset($all_questions) && (empty($all_questions) || is_array($all_questions))); // list of unused questions |
|
13 | 13 | foreach ($all_questions as $unused_question) { |
14 | 14 | assert($unused_question); |
15 | 15 | assert($unused_question instanceof EE_Question); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | <input id="QSG_identifier" name="QSG_identifier<?php echo $id; ?>" |
55 | 55 | value="<?php $question_group->f('QSG_identifier') ?>" type="text" |
56 | 56 | class="regular-text"<?php echo $disabled; ?>> |
57 | - <?php if (! empty($QSG_system)) { ?> |
|
57 | + <?php if ( ! empty($QSG_system)) { ?> |
|
58 | 58 | <p><span class="description" style="color:#D54E21;"> |
59 | 59 | <?php _e('System question group! This field cannot be changed.', 'event_espresso') ?> |
60 | 60 | </span><br/></p> |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | foreach ($all_questions as $question_ID => $question) { |
156 | 156 | if ($question instanceof EE_Question) { |
157 | 157 | /*@var $question EE_Question*/ |
158 | - $checked = isset($question_group_questions[ $question_ID ]) ? ' checked="checked"' : ''; |
|
158 | + $checked = isset($question_group_questions[$question_ID]) ? ' checked="checked"' : ''; |
|
159 | 159 | // disable questions from the personal information question group |
160 | 160 | // is it required in the current question group? if so don't allow admins to remove it |
161 | 161 | $disabled = in_array( |
@@ -3,17 +3,17 @@ |
||
3 | 3 | assert($question_group instanceof EE_Question_Group); |
4 | 4 | assert(isset($all_questions) && (empty($all_questions) || is_array($all_questions)));// list of unused questions |
5 | 5 | foreach ($all_questions as $question_option) { |
6 | - assert($question_option); |
|
7 | - assert($question_option instanceof EE_Question); |
|
6 | + assert($question_option); |
|
7 | + assert($question_option instanceof EE_Question); |
|
8 | 8 | } |
9 | 9 | ?> |
10 | 10 | <h4><?php _e('Check off all questions that you wish to appear in this group.', 'event_espresso'); ?></h4> |
11 | 11 | <ul> |
12 | 12 | <?php |
13 | - foreach ($all_questions as $question_ID => $question) { |
|
14 | - /*@var $question EE_Question*/ |
|
15 | - $checked = array_key_exists($question_ID, $question_group->questions()) ? ' checked="checked"' : ''; |
|
16 | - ?> |
|
13 | + foreach ($all_questions as $question_ID => $question) { |
|
14 | + /*@var $question EE_Question*/ |
|
15 | + $checked = array_key_exists($question_ID, $question_group->questions()) ? ' checked="checked"' : ''; |
|
16 | + ?> |
|
17 | 17 | <li> |
18 | 18 | <label for="question-<?php echo $question_ID ?>"> |
19 | 19 | <input type="checkbox" name="questions[<?php echo $question_ID; ?>]" |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | // required variables for template: |
3 | 3 | assert($question_group instanceof EE_Question_Group); |
4 | -assert(isset($all_questions) && (empty($all_questions) || is_array($all_questions)));// list of unused questions |
|
4 | +assert(isset($all_questions) && (empty($all_questions) || is_array($all_questions))); // list of unused questions |
|
5 | 5 | foreach ($all_questions as $question_option) { |
6 | 6 | assert($question_option); |
7 | 7 | assert($question_option instanceof EE_Question); |