@@ -15,504 +15,504 @@ |
||
| 15 | 15 | class Events_Admin_List_Table extends EE_Admin_List_Table |
| 16 | 16 | { |
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * @var EE_Datetime |
|
| 20 | - */ |
|
| 21 | - private $_dtt; |
|
| 22 | - |
|
| 23 | - |
|
| 24 | - /** |
|
| 25 | - * Initial setup of data properties for the list table. |
|
| 26 | - */ |
|
| 27 | - protected function _setup_data() |
|
| 28 | - { |
|
| 29 | - $this->_data = $this->_admin_page->get_events($this->_per_page, $this->_current_page); |
|
| 30 | - $this->_all_data_count = $this->_admin_page->get_events(0, 0, true); |
|
| 31 | - } |
|
| 32 | - |
|
| 33 | - |
|
| 34 | - /** |
|
| 35 | - * Set up of additional properties for the list table. |
|
| 36 | - */ |
|
| 37 | - protected function _set_properties() |
|
| 38 | - { |
|
| 39 | - $this->_wp_list_args = array( |
|
| 40 | - 'singular' => esc_html__('event', 'event_espresso'), |
|
| 41 | - 'plural' => esc_html__('events', 'event_espresso'), |
|
| 42 | - 'ajax' => true, // for now |
|
| 43 | - 'screen' => $this->_admin_page->get_current_screen()->id, |
|
| 44 | - ); |
|
| 45 | - $this->_columns = array( |
|
| 46 | - 'cb' => '<input type="checkbox" />', |
|
| 47 | - 'id' => esc_html__('ID', 'event_espresso'), |
|
| 48 | - 'name' => esc_html__('Name', 'event_espresso'), |
|
| 49 | - 'author' => esc_html__('Author', 'event_espresso'), |
|
| 50 | - 'venue' => esc_html__('Venue', 'event_espresso'), |
|
| 51 | - 'start_date_time' => esc_html__('Event Start', 'event_espresso'), |
|
| 52 | - 'reg_begins' => esc_html__('On Sale', 'event_espresso'), |
|
| 53 | - 'attendees' => '<span class="dashicons dashicons-groups ee-icon-color-ee-green ee-icon-size-20">' |
|
| 54 | - . '<span class="screen-reader-text">' |
|
| 55 | - . esc_html__('Approved Registrations', 'event_espresso') |
|
| 56 | - . '</span>' |
|
| 57 | - . '</span>', |
|
| 58 | - // 'tkts_sold' => esc_html__('Tickets Sold', 'event_espresso'), |
|
| 59 | - 'actions' => esc_html__('Actions', 'event_espresso'), |
|
| 60 | - ); |
|
| 61 | - $this->_sortable_columns = array( |
|
| 62 | - 'id' => array('EVT_ID' => true), |
|
| 63 | - 'name' => array('EVT_name' => false), |
|
| 64 | - 'author' => array('EVT_wp_user' => false), |
|
| 65 | - 'venue' => array('Venue.VNU_name' => false), |
|
| 66 | - 'start_date_time' => array('Datetime.DTT_EVT_start' => false), |
|
| 67 | - 'reg_begins' => array('Datetime.Ticket.TKT_start_date' => false), |
|
| 68 | - ); |
|
| 69 | - $this->_primary_column = 'id'; |
|
| 70 | - $this->_hidden_columns = array('author'); |
|
| 71 | - } |
|
| 72 | - |
|
| 73 | - |
|
| 74 | - /** |
|
| 75 | - * @return array |
|
| 76 | - */ |
|
| 77 | - protected function _get_table_filters() |
|
| 78 | - { |
|
| 79 | - return array(); // no filters with decaf |
|
| 80 | - } |
|
| 81 | - |
|
| 82 | - |
|
| 83 | - /** |
|
| 84 | - * Setup of views properties. |
|
| 85 | - * |
|
| 86 | - * @throws InvalidDataTypeException |
|
| 87 | - * @throws InvalidInterfaceException |
|
| 88 | - * @throws InvalidArgumentException |
|
| 89 | - */ |
|
| 90 | - protected function _add_view_counts() |
|
| 91 | - { |
|
| 92 | - $this->_views['all']['count'] = $this->_admin_page->total_events(); |
|
| 93 | - $this->_views['draft']['count'] = $this->_admin_page->total_events_draft(); |
|
| 94 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
| 95 | - 'ee_delete_events', |
|
| 96 | - 'espresso_events_trash_events' |
|
| 97 | - )) { |
|
| 98 | - $this->_views['trash']['count'] = $this->_admin_page->total_trashed_events(); |
|
| 99 | - } |
|
| 100 | - } |
|
| 101 | - |
|
| 102 | - |
|
| 103 | - /** |
|
| 104 | - * @param EE_Event $item |
|
| 105 | - * @return string |
|
| 106 | - * @throws EE_Error |
|
| 107 | - */ |
|
| 108 | - protected function _get_row_class($item) |
|
| 109 | - { |
|
| 110 | - $class = parent::_get_row_class($item); |
|
| 111 | - // add status class |
|
| 112 | - $class .= $item instanceof EE_Event |
|
| 113 | - ? ' ee-status-strip event-status-' . $item->get_active_status() |
|
| 114 | - : ''; |
|
| 115 | - if ($this->_has_checkbox_column) { |
|
| 116 | - $class .= ' has-checkbox-column'; |
|
| 117 | - } |
|
| 118 | - return $class; |
|
| 119 | - } |
|
| 120 | - |
|
| 121 | - |
|
| 122 | - /** |
|
| 123 | - * @param EE_Event $item |
|
| 124 | - * @return string |
|
| 125 | - * @throws EE_Error |
|
| 126 | - */ |
|
| 127 | - public function column_status(EE_Event $item) |
|
| 128 | - { |
|
| 129 | - return '<span class="ee-status-strip ee-status-strip-td event-status-' |
|
| 130 | - . $item->get_active_status() |
|
| 131 | - . '"></span>'; |
|
| 132 | - } |
|
| 133 | - |
|
| 134 | - |
|
| 135 | - /** |
|
| 136 | - * @param EE_Event $item |
|
| 137 | - * @return string |
|
| 138 | - * @throws EE_Error |
|
| 139 | - */ |
|
| 140 | - public function column_cb($item) |
|
| 141 | - { |
|
| 142 | - if (! $item instanceof EE_Event) { |
|
| 143 | - return ''; |
|
| 144 | - } |
|
| 145 | - $this->_dtt = $item->primary_datetime(); // set this for use in other columns |
|
| 146 | - // does event have any attached registrations? |
|
| 147 | - $regs = $item->count_related('Registration'); |
|
| 148 | - return $regs > 0 && $this->_view === 'trash' |
|
| 149 | - ? '<span class="ee-lock-icon"></span>' |
|
| 150 | - : sprintf( |
|
| 151 | - '<input type="checkbox" name="EVT_IDs[]" value="%s" />', |
|
| 152 | - $item->ID() |
|
| 153 | - ); |
|
| 154 | - } |
|
| 155 | - |
|
| 156 | - |
|
| 157 | - /** |
|
| 158 | - * @param EE_Event $item |
|
| 159 | - * @return mixed|string |
|
| 160 | - * @throws EE_Error |
|
| 161 | - */ |
|
| 162 | - public function column_id(EE_Event $item) |
|
| 163 | - { |
|
| 164 | - $content = $item->ID(); |
|
| 165 | - $content .= ' <span class="show-on-mobile-view-only">' . $item->name() . '</span>'; |
|
| 166 | - return $content; |
|
| 167 | - } |
|
| 168 | - |
|
| 169 | - |
|
| 170 | - /** |
|
| 171 | - * @param EE_Event $item |
|
| 172 | - * @return string |
|
| 173 | - * @throws EE_Error |
|
| 174 | - * @throws InvalidArgumentException |
|
| 175 | - * @throws InvalidDataTypeException |
|
| 176 | - * @throws InvalidInterfaceException |
|
| 177 | - */ |
|
| 178 | - public function column_name(EE_Event $item) |
|
| 179 | - { |
|
| 180 | - $edit_query_args = array( |
|
| 181 | - 'action' => 'edit', |
|
| 182 | - 'post' => $item->ID(), |
|
| 183 | - ); |
|
| 184 | - $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EVENTS_ADMIN_URL); |
|
| 185 | - $actions = $this->_column_name_action_setup($item); |
|
| 186 | - $status = ''; // $item->status() !== 'publish' ? ' (' . $item->status() . ')' : ''; |
|
| 187 | - $content = '<strong><a class="row-title" href="' |
|
| 188 | - . $edit_link . '">' |
|
| 189 | - . $item->name() |
|
| 190 | - . '</a></strong>' |
|
| 191 | - . $status; |
|
| 192 | - $content .= '<br><span class="ee-status-text-small">' |
|
| 193 | - . EEH_Template::pretty_status( |
|
| 194 | - $item->get_active_status(), |
|
| 195 | - false, |
|
| 196 | - 'sentence' |
|
| 197 | - ) |
|
| 198 | - . '</span>'; |
|
| 199 | - $content .= $this->row_actions($actions); |
|
| 200 | - return $content; |
|
| 201 | - } |
|
| 202 | - |
|
| 203 | - |
|
| 204 | - /** |
|
| 205 | - * Just a method for setting up the actions for the name column |
|
| 206 | - * |
|
| 207 | - * @param EE_Event $item |
|
| 208 | - * @return array array of actions |
|
| 209 | - * @throws EE_Error |
|
| 210 | - * @throws InvalidArgumentException |
|
| 211 | - * @throws InvalidDataTypeException |
|
| 212 | - * @throws InvalidInterfaceException |
|
| 213 | - */ |
|
| 214 | - protected function _column_name_action_setup(EE_Event $item) |
|
| 215 | - { |
|
| 216 | - // todo: remove when attendees is active |
|
| 217 | - if (! defined('REG_ADMIN_URL')) { |
|
| 218 | - define('REG_ADMIN_URL', EVENTS_ADMIN_URL); |
|
| 219 | - } |
|
| 220 | - $actions = array(); |
|
| 221 | - $restore_event_link = ''; |
|
| 222 | - $delete_event_link = ''; |
|
| 223 | - $trash_event_link = ''; |
|
| 224 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
| 225 | - 'ee_edit_event', |
|
| 226 | - 'espresso_events_edit', |
|
| 227 | - $item->ID() |
|
| 228 | - )) { |
|
| 229 | - $edit_query_args = array( |
|
| 230 | - 'action' => 'edit', |
|
| 231 | - 'post' => $item->ID(), |
|
| 232 | - ); |
|
| 233 | - $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EVENTS_ADMIN_URL); |
|
| 234 | - $actions['edit'] = '<a href="' . $edit_link . '"' |
|
| 235 | - . ' title="' . esc_attr__('Edit Event', 'event_espresso') . '">' |
|
| 236 | - . esc_html__('Edit', 'event_espresso') |
|
| 237 | - . '</a>'; |
|
| 238 | - } |
|
| 239 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
| 240 | - 'ee_read_registrations', |
|
| 241 | - 'espresso_registrations_view_registration' |
|
| 242 | - ) |
|
| 243 | - && EE_Registry::instance()->CAP->current_user_can( |
|
| 244 | - 'ee_read_event', |
|
| 245 | - 'espresso_registrations_view_registration', |
|
| 246 | - $item->ID() |
|
| 247 | - ) |
|
| 248 | - ) { |
|
| 249 | - $attendees_query_args = array( |
|
| 250 | - 'action' => 'default', |
|
| 251 | - 'event_id' => $item->ID(), |
|
| 252 | - ); |
|
| 253 | - $attendees_link = EE_Admin_Page::add_query_args_and_nonce($attendees_query_args, REG_ADMIN_URL); |
|
| 254 | - $actions['attendees'] = '<a href="' . $attendees_link . '"' |
|
| 255 | - . ' title="' . esc_attr__('View Registrations', 'event_espresso') . '">' |
|
| 256 | - . esc_html__('Registrations', 'event_espresso') |
|
| 257 | - . '</a>'; |
|
| 258 | - } |
|
| 259 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
| 260 | - 'ee_delete_event', |
|
| 261 | - 'espresso_events_trash_event', |
|
| 262 | - $item->ID() |
|
| 263 | - )) { |
|
| 264 | - $trash_event_query_args = array( |
|
| 265 | - 'action' => 'trash_event', |
|
| 266 | - 'EVT_ID' => $item->ID(), |
|
| 267 | - ); |
|
| 268 | - $trash_event_link = EE_Admin_Page::add_query_args_and_nonce( |
|
| 269 | - $trash_event_query_args, |
|
| 270 | - EVENTS_ADMIN_URL |
|
| 271 | - ); |
|
| 272 | - } |
|
| 273 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
| 274 | - 'ee_delete_event', |
|
| 275 | - 'espresso_events_restore_event', |
|
| 276 | - $item->ID() |
|
| 277 | - )) { |
|
| 278 | - $restore_event_query_args = array( |
|
| 279 | - 'action' => 'restore_event', |
|
| 280 | - 'EVT_ID' => $item->ID(), |
|
| 281 | - ); |
|
| 282 | - $restore_event_link = EE_Admin_Page::add_query_args_and_nonce( |
|
| 283 | - $restore_event_query_args, |
|
| 284 | - EVENTS_ADMIN_URL |
|
| 285 | - ); |
|
| 286 | - } |
|
| 287 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
| 288 | - 'ee_delete_event', |
|
| 289 | - 'espresso_events_delete_event', |
|
| 290 | - $item->ID() |
|
| 291 | - )) { |
|
| 292 | - $delete_event_query_args = array( |
|
| 293 | - 'action' => 'delete_event', |
|
| 294 | - 'EVT_ID' => $item->ID(), |
|
| 295 | - ); |
|
| 296 | - $delete_event_link = EE_Admin_Page::add_query_args_and_nonce( |
|
| 297 | - $delete_event_query_args, |
|
| 298 | - EVENTS_ADMIN_URL |
|
| 299 | - ); |
|
| 300 | - } |
|
| 301 | - $view_link = get_permalink($item->ID()); |
|
| 302 | - $actions['view'] = '<a href="' . $view_link . '"' |
|
| 303 | - . ' title="' . esc_attr__('View Event', 'event_espresso') . '">' |
|
| 304 | - . esc_html__('View', 'event_espresso') |
|
| 305 | - . '</a>'; |
|
| 306 | - if ($item->get('status') === 'trash') { |
|
| 307 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
| 308 | - 'ee_delete_event', |
|
| 309 | - 'espresso_events_restore_event', |
|
| 310 | - $item->ID() |
|
| 311 | - )) { |
|
| 312 | - $actions['restore_from_trash'] = '<a href="' . $restore_event_link . '"' |
|
| 313 | - . ' title="' . esc_attr__('Restore from Trash', 'event_espresso') |
|
| 314 | - . '">' |
|
| 315 | - . esc_html__('Restore from Trash', 'event_espresso') |
|
| 316 | - . '</a>'; |
|
| 317 | - } |
|
| 318 | - if ($item->count_related('Registration') === 0 |
|
| 319 | - && EE_Registry::instance()->CAP->current_user_can( |
|
| 320 | - 'ee_delete_event', |
|
| 321 | - 'espresso_events_delete_event', |
|
| 322 | - $item->ID() |
|
| 323 | - ) |
|
| 324 | - ) { |
|
| 325 | - $actions['delete'] = '<a href="' . $delete_event_link . '"' |
|
| 326 | - . ' title="' . esc_attr__('Delete Permanently', 'event_espresso') . '">' |
|
| 327 | - . esc_html__('Delete Permanently', 'event_espresso') |
|
| 328 | - . '</a>'; |
|
| 329 | - } |
|
| 330 | - } else { |
|
| 331 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
| 332 | - 'ee_delete_event', |
|
| 333 | - 'espresso_events_trash_event', |
|
| 334 | - $item->ID() |
|
| 335 | - )) { |
|
| 336 | - $actions['move to trash'] = '<a href="' . $trash_event_link . '"' |
|
| 337 | - . ' title="' . esc_attr__('Trash Event', 'event_espresso') . '">' |
|
| 338 | - . esc_html__('Trash', 'event_espresso') |
|
| 339 | - . '</a>'; |
|
| 340 | - } |
|
| 341 | - } |
|
| 342 | - return $actions; |
|
| 343 | - } |
|
| 344 | - |
|
| 345 | - |
|
| 346 | - /** |
|
| 347 | - * @param EE_Event $item |
|
| 348 | - * @return string |
|
| 349 | - * @throws EE_Error |
|
| 350 | - */ |
|
| 351 | - public function column_author(EE_Event $item) |
|
| 352 | - { |
|
| 353 | - // user author info |
|
| 354 | - $event_author = get_userdata($item->wp_user()); |
|
| 355 | - $gravatar = get_avatar($item->wp_user(), '15'); |
|
| 356 | - // filter link |
|
| 357 | - $query_args = array( |
|
| 358 | - 'action' => 'default', |
|
| 359 | - 'EVT_wp_user' => $item->wp_user(), |
|
| 360 | - ); |
|
| 361 | - $filter_url = EE_Admin_Page::add_query_args_and_nonce($query_args, EVENTS_ADMIN_URL); |
|
| 362 | - return $gravatar . ' <a href="' . $filter_url . '"' |
|
| 363 | - . ' title="' . esc_attr__('Click to filter events by this author.', 'event_espresso') . '">' |
|
| 364 | - . $event_author->display_name |
|
| 365 | - . '</a>'; |
|
| 366 | - } |
|
| 367 | - |
|
| 368 | - |
|
| 369 | - /** |
|
| 370 | - * @param EE_Event $item |
|
| 371 | - * @return string |
|
| 372 | - * @throws EE_Error |
|
| 373 | - */ |
|
| 374 | - public function column_venue(EE_Event $item) |
|
| 375 | - { |
|
| 376 | - $venue = $item->get_first_related('Venue'); |
|
| 377 | - return ! empty($venue) |
|
| 378 | - ? $venue->name() |
|
| 379 | - : ''; |
|
| 380 | - } |
|
| 381 | - |
|
| 382 | - |
|
| 383 | - /** |
|
| 384 | - * @param EE_Event $item |
|
| 385 | - * @return string |
|
| 386 | - * @throws EE_Error |
|
| 387 | - */ |
|
| 388 | - public function column_start_date_time(EE_Event $item) |
|
| 389 | - { |
|
| 390 | - return $this->_dtt instanceof EE_Datetime |
|
| 391 | - ? $this->_dtt->get_i18n_datetime('DTT_EVT_start') |
|
| 392 | - : esc_html__('No Date was saved for this Event', 'event_espresso'); |
|
| 393 | - } |
|
| 394 | - |
|
| 395 | - |
|
| 396 | - /** |
|
| 397 | - * @param EE_Event $item |
|
| 398 | - * @return string |
|
| 399 | - * @throws EE_Error |
|
| 400 | - */ |
|
| 401 | - public function column_reg_begins(EE_Event $item) |
|
| 402 | - { |
|
| 403 | - $reg_start = $item->get_ticket_with_earliest_start_time(); |
|
| 404 | - return $reg_start instanceof EE_Ticket |
|
| 405 | - ? $reg_start->get_i18n_datetime('TKT_start_date') |
|
| 406 | - : esc_html__('No Tickets have been setup for this Event', 'event_espresso'); |
|
| 407 | - } |
|
| 408 | - |
|
| 409 | - |
|
| 410 | - /** |
|
| 411 | - * @param EE_Event $item |
|
| 412 | - * @return int|string |
|
| 413 | - * @throws EE_Error |
|
| 414 | - * @throws InvalidArgumentException |
|
| 415 | - * @throws InvalidDataTypeException |
|
| 416 | - * @throws InvalidInterfaceException |
|
| 417 | - */ |
|
| 418 | - public function column_attendees(EE_Event $item) |
|
| 419 | - { |
|
| 420 | - $attendees_query_args = array( |
|
| 421 | - 'action' => 'default', |
|
| 422 | - 'event_id' => $item->ID(), |
|
| 423 | - ); |
|
| 424 | - $attendees_link = EE_Admin_Page::add_query_args_and_nonce($attendees_query_args, REG_ADMIN_URL); |
|
| 425 | - $registered_attendees = EEM_Registration::instance()->get_event_registration_count($item->ID()); |
|
| 426 | - return EE_Registry::instance()->CAP->current_user_can( |
|
| 427 | - 'ee_read_event', |
|
| 428 | - 'espresso_registrations_view_registration', |
|
| 429 | - $item->ID() |
|
| 430 | - ) |
|
| 431 | - && EE_Registry::instance()->CAP->current_user_can( |
|
| 432 | - 'ee_read_registrations', |
|
| 433 | - 'espresso_registrations_view_registration' |
|
| 434 | - ) |
|
| 435 | - ? '<a href="' . $attendees_link . '">' . $registered_attendees . '</a>' |
|
| 436 | - : $registered_attendees; |
|
| 437 | - } |
|
| 438 | - |
|
| 439 | - |
|
| 440 | - /** |
|
| 441 | - * @param EE_Event $item |
|
| 442 | - * @return float |
|
| 443 | - * @throws EE_Error |
|
| 444 | - * @throws InvalidArgumentException |
|
| 445 | - * @throws InvalidDataTypeException |
|
| 446 | - * @throws InvalidInterfaceException |
|
| 447 | - */ |
|
| 448 | - public function column_tkts_sold(EE_Event $item) |
|
| 449 | - { |
|
| 450 | - return EEM_Ticket::instance()->sum(array(array('Datetime.EVT_ID' => $item->ID())), 'TKT_sold'); |
|
| 451 | - } |
|
| 452 | - |
|
| 453 | - |
|
| 454 | - /** |
|
| 455 | - * @param EE_Event $item |
|
| 456 | - * @return string |
|
| 457 | - * @throws EE_Error |
|
| 458 | - * @throws InvalidArgumentException |
|
| 459 | - * @throws InvalidDataTypeException |
|
| 460 | - * @throws InvalidInterfaceException |
|
| 461 | - */ |
|
| 462 | - public function column_actions(EE_Event $item) |
|
| 463 | - { |
|
| 464 | - // todo: remove when attendees is active |
|
| 465 | - if (! defined('REG_ADMIN_URL')) { |
|
| 466 | - define('REG_ADMIN_URL', EVENTS_ADMIN_URL); |
|
| 467 | - } |
|
| 468 | - $action_links = array(); |
|
| 469 | - $view_link = get_permalink($item->ID()); |
|
| 470 | - $action_links[] = '<a href="' . $view_link . '"' |
|
| 471 | - . ' title="' . esc_attr__('View Event', 'event_espresso') . '" target="_blank">'; |
|
| 472 | - $action_links[] = '<div class="dashicons dashicons-search"></div></a>'; |
|
| 473 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
| 474 | - 'ee_edit_event', |
|
| 475 | - 'espresso_events_edit', |
|
| 476 | - $item->ID() |
|
| 477 | - )) { |
|
| 478 | - $edit_query_args = array( |
|
| 479 | - 'action' => 'edit', |
|
| 480 | - 'post' => $item->ID(), |
|
| 481 | - ); |
|
| 482 | - $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EVENTS_ADMIN_URL); |
|
| 483 | - $action_links[] = '<a href="' . $edit_link . '"' |
|
| 484 | - . ' title="' . esc_attr__('Edit Event', 'event_espresso') . '">' |
|
| 485 | - . '<div class="ee-icon ee-icon-calendar-edit"></div>' |
|
| 486 | - . '</a>'; |
|
| 487 | - } |
|
| 488 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
| 489 | - 'ee_read_registrations', |
|
| 490 | - 'espresso_registrations_view_registration' |
|
| 491 | - ) && EE_Registry::instance()->CAP->current_user_can( |
|
| 492 | - 'ee_read_event', |
|
| 493 | - 'espresso_registrations_view_registration', |
|
| 494 | - $item->ID() |
|
| 495 | - ) |
|
| 496 | - ) { |
|
| 497 | - $attendees_query_args = array( |
|
| 498 | - 'action' => 'default', |
|
| 499 | - 'event_id' => $item->ID(), |
|
| 500 | - ); |
|
| 501 | - $attendees_link = EE_Admin_Page::add_query_args_and_nonce($attendees_query_args, REG_ADMIN_URL); |
|
| 502 | - $action_links[] = '<a href="' . $attendees_link . '"' |
|
| 503 | - . ' title="' . esc_attr__('View Registrants', 'event_espresso') . '">' |
|
| 504 | - . '<div class="dashicons dashicons-groups"></div>' |
|
| 505 | - . '</a>'; |
|
| 506 | - } |
|
| 507 | - $action_links = apply_filters( |
|
| 508 | - 'FHEE__Events_Admin_List_Table__column_actions__action_links', |
|
| 509 | - $action_links, |
|
| 510 | - $item |
|
| 511 | - ); |
|
| 512 | - return $this->_action_string( |
|
| 513 | - implode("\n\t", $action_links), |
|
| 514 | - $item, |
|
| 515 | - 'div' |
|
| 516 | - ); |
|
| 517 | - } |
|
| 18 | + /** |
|
| 19 | + * @var EE_Datetime |
|
| 20 | + */ |
|
| 21 | + private $_dtt; |
|
| 22 | + |
|
| 23 | + |
|
| 24 | + /** |
|
| 25 | + * Initial setup of data properties for the list table. |
|
| 26 | + */ |
|
| 27 | + protected function _setup_data() |
|
| 28 | + { |
|
| 29 | + $this->_data = $this->_admin_page->get_events($this->_per_page, $this->_current_page); |
|
| 30 | + $this->_all_data_count = $this->_admin_page->get_events(0, 0, true); |
|
| 31 | + } |
|
| 32 | + |
|
| 33 | + |
|
| 34 | + /** |
|
| 35 | + * Set up of additional properties for the list table. |
|
| 36 | + */ |
|
| 37 | + protected function _set_properties() |
|
| 38 | + { |
|
| 39 | + $this->_wp_list_args = array( |
|
| 40 | + 'singular' => esc_html__('event', 'event_espresso'), |
|
| 41 | + 'plural' => esc_html__('events', 'event_espresso'), |
|
| 42 | + 'ajax' => true, // for now |
|
| 43 | + 'screen' => $this->_admin_page->get_current_screen()->id, |
|
| 44 | + ); |
|
| 45 | + $this->_columns = array( |
|
| 46 | + 'cb' => '<input type="checkbox" />', |
|
| 47 | + 'id' => esc_html__('ID', 'event_espresso'), |
|
| 48 | + 'name' => esc_html__('Name', 'event_espresso'), |
|
| 49 | + 'author' => esc_html__('Author', 'event_espresso'), |
|
| 50 | + 'venue' => esc_html__('Venue', 'event_espresso'), |
|
| 51 | + 'start_date_time' => esc_html__('Event Start', 'event_espresso'), |
|
| 52 | + 'reg_begins' => esc_html__('On Sale', 'event_espresso'), |
|
| 53 | + 'attendees' => '<span class="dashicons dashicons-groups ee-icon-color-ee-green ee-icon-size-20">' |
|
| 54 | + . '<span class="screen-reader-text">' |
|
| 55 | + . esc_html__('Approved Registrations', 'event_espresso') |
|
| 56 | + . '</span>' |
|
| 57 | + . '</span>', |
|
| 58 | + // 'tkts_sold' => esc_html__('Tickets Sold', 'event_espresso'), |
|
| 59 | + 'actions' => esc_html__('Actions', 'event_espresso'), |
|
| 60 | + ); |
|
| 61 | + $this->_sortable_columns = array( |
|
| 62 | + 'id' => array('EVT_ID' => true), |
|
| 63 | + 'name' => array('EVT_name' => false), |
|
| 64 | + 'author' => array('EVT_wp_user' => false), |
|
| 65 | + 'venue' => array('Venue.VNU_name' => false), |
|
| 66 | + 'start_date_time' => array('Datetime.DTT_EVT_start' => false), |
|
| 67 | + 'reg_begins' => array('Datetime.Ticket.TKT_start_date' => false), |
|
| 68 | + ); |
|
| 69 | + $this->_primary_column = 'id'; |
|
| 70 | + $this->_hidden_columns = array('author'); |
|
| 71 | + } |
|
| 72 | + |
|
| 73 | + |
|
| 74 | + /** |
|
| 75 | + * @return array |
|
| 76 | + */ |
|
| 77 | + protected function _get_table_filters() |
|
| 78 | + { |
|
| 79 | + return array(); // no filters with decaf |
|
| 80 | + } |
|
| 81 | + |
|
| 82 | + |
|
| 83 | + /** |
|
| 84 | + * Setup of views properties. |
|
| 85 | + * |
|
| 86 | + * @throws InvalidDataTypeException |
|
| 87 | + * @throws InvalidInterfaceException |
|
| 88 | + * @throws InvalidArgumentException |
|
| 89 | + */ |
|
| 90 | + protected function _add_view_counts() |
|
| 91 | + { |
|
| 92 | + $this->_views['all']['count'] = $this->_admin_page->total_events(); |
|
| 93 | + $this->_views['draft']['count'] = $this->_admin_page->total_events_draft(); |
|
| 94 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
| 95 | + 'ee_delete_events', |
|
| 96 | + 'espresso_events_trash_events' |
|
| 97 | + )) { |
|
| 98 | + $this->_views['trash']['count'] = $this->_admin_page->total_trashed_events(); |
|
| 99 | + } |
|
| 100 | + } |
|
| 101 | + |
|
| 102 | + |
|
| 103 | + /** |
|
| 104 | + * @param EE_Event $item |
|
| 105 | + * @return string |
|
| 106 | + * @throws EE_Error |
|
| 107 | + */ |
|
| 108 | + protected function _get_row_class($item) |
|
| 109 | + { |
|
| 110 | + $class = parent::_get_row_class($item); |
|
| 111 | + // add status class |
|
| 112 | + $class .= $item instanceof EE_Event |
|
| 113 | + ? ' ee-status-strip event-status-' . $item->get_active_status() |
|
| 114 | + : ''; |
|
| 115 | + if ($this->_has_checkbox_column) { |
|
| 116 | + $class .= ' has-checkbox-column'; |
|
| 117 | + } |
|
| 118 | + return $class; |
|
| 119 | + } |
|
| 120 | + |
|
| 121 | + |
|
| 122 | + /** |
|
| 123 | + * @param EE_Event $item |
|
| 124 | + * @return string |
|
| 125 | + * @throws EE_Error |
|
| 126 | + */ |
|
| 127 | + public function column_status(EE_Event $item) |
|
| 128 | + { |
|
| 129 | + return '<span class="ee-status-strip ee-status-strip-td event-status-' |
|
| 130 | + . $item->get_active_status() |
|
| 131 | + . '"></span>'; |
|
| 132 | + } |
|
| 133 | + |
|
| 134 | + |
|
| 135 | + /** |
|
| 136 | + * @param EE_Event $item |
|
| 137 | + * @return string |
|
| 138 | + * @throws EE_Error |
|
| 139 | + */ |
|
| 140 | + public function column_cb($item) |
|
| 141 | + { |
|
| 142 | + if (! $item instanceof EE_Event) { |
|
| 143 | + return ''; |
|
| 144 | + } |
|
| 145 | + $this->_dtt = $item->primary_datetime(); // set this for use in other columns |
|
| 146 | + // does event have any attached registrations? |
|
| 147 | + $regs = $item->count_related('Registration'); |
|
| 148 | + return $regs > 0 && $this->_view === 'trash' |
|
| 149 | + ? '<span class="ee-lock-icon"></span>' |
|
| 150 | + : sprintf( |
|
| 151 | + '<input type="checkbox" name="EVT_IDs[]" value="%s" />', |
|
| 152 | + $item->ID() |
|
| 153 | + ); |
|
| 154 | + } |
|
| 155 | + |
|
| 156 | + |
|
| 157 | + /** |
|
| 158 | + * @param EE_Event $item |
|
| 159 | + * @return mixed|string |
|
| 160 | + * @throws EE_Error |
|
| 161 | + */ |
|
| 162 | + public function column_id(EE_Event $item) |
|
| 163 | + { |
|
| 164 | + $content = $item->ID(); |
|
| 165 | + $content .= ' <span class="show-on-mobile-view-only">' . $item->name() . '</span>'; |
|
| 166 | + return $content; |
|
| 167 | + } |
|
| 168 | + |
|
| 169 | + |
|
| 170 | + /** |
|
| 171 | + * @param EE_Event $item |
|
| 172 | + * @return string |
|
| 173 | + * @throws EE_Error |
|
| 174 | + * @throws InvalidArgumentException |
|
| 175 | + * @throws InvalidDataTypeException |
|
| 176 | + * @throws InvalidInterfaceException |
|
| 177 | + */ |
|
| 178 | + public function column_name(EE_Event $item) |
|
| 179 | + { |
|
| 180 | + $edit_query_args = array( |
|
| 181 | + 'action' => 'edit', |
|
| 182 | + 'post' => $item->ID(), |
|
| 183 | + ); |
|
| 184 | + $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EVENTS_ADMIN_URL); |
|
| 185 | + $actions = $this->_column_name_action_setup($item); |
|
| 186 | + $status = ''; // $item->status() !== 'publish' ? ' (' . $item->status() . ')' : ''; |
|
| 187 | + $content = '<strong><a class="row-title" href="' |
|
| 188 | + . $edit_link . '">' |
|
| 189 | + . $item->name() |
|
| 190 | + . '</a></strong>' |
|
| 191 | + . $status; |
|
| 192 | + $content .= '<br><span class="ee-status-text-small">' |
|
| 193 | + . EEH_Template::pretty_status( |
|
| 194 | + $item->get_active_status(), |
|
| 195 | + false, |
|
| 196 | + 'sentence' |
|
| 197 | + ) |
|
| 198 | + . '</span>'; |
|
| 199 | + $content .= $this->row_actions($actions); |
|
| 200 | + return $content; |
|
| 201 | + } |
|
| 202 | + |
|
| 203 | + |
|
| 204 | + /** |
|
| 205 | + * Just a method for setting up the actions for the name column |
|
| 206 | + * |
|
| 207 | + * @param EE_Event $item |
|
| 208 | + * @return array array of actions |
|
| 209 | + * @throws EE_Error |
|
| 210 | + * @throws InvalidArgumentException |
|
| 211 | + * @throws InvalidDataTypeException |
|
| 212 | + * @throws InvalidInterfaceException |
|
| 213 | + */ |
|
| 214 | + protected function _column_name_action_setup(EE_Event $item) |
|
| 215 | + { |
|
| 216 | + // todo: remove when attendees is active |
|
| 217 | + if (! defined('REG_ADMIN_URL')) { |
|
| 218 | + define('REG_ADMIN_URL', EVENTS_ADMIN_URL); |
|
| 219 | + } |
|
| 220 | + $actions = array(); |
|
| 221 | + $restore_event_link = ''; |
|
| 222 | + $delete_event_link = ''; |
|
| 223 | + $trash_event_link = ''; |
|
| 224 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
| 225 | + 'ee_edit_event', |
|
| 226 | + 'espresso_events_edit', |
|
| 227 | + $item->ID() |
|
| 228 | + )) { |
|
| 229 | + $edit_query_args = array( |
|
| 230 | + 'action' => 'edit', |
|
| 231 | + 'post' => $item->ID(), |
|
| 232 | + ); |
|
| 233 | + $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EVENTS_ADMIN_URL); |
|
| 234 | + $actions['edit'] = '<a href="' . $edit_link . '"' |
|
| 235 | + . ' title="' . esc_attr__('Edit Event', 'event_espresso') . '">' |
|
| 236 | + . esc_html__('Edit', 'event_espresso') |
|
| 237 | + . '</a>'; |
|
| 238 | + } |
|
| 239 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
| 240 | + 'ee_read_registrations', |
|
| 241 | + 'espresso_registrations_view_registration' |
|
| 242 | + ) |
|
| 243 | + && EE_Registry::instance()->CAP->current_user_can( |
|
| 244 | + 'ee_read_event', |
|
| 245 | + 'espresso_registrations_view_registration', |
|
| 246 | + $item->ID() |
|
| 247 | + ) |
|
| 248 | + ) { |
|
| 249 | + $attendees_query_args = array( |
|
| 250 | + 'action' => 'default', |
|
| 251 | + 'event_id' => $item->ID(), |
|
| 252 | + ); |
|
| 253 | + $attendees_link = EE_Admin_Page::add_query_args_and_nonce($attendees_query_args, REG_ADMIN_URL); |
|
| 254 | + $actions['attendees'] = '<a href="' . $attendees_link . '"' |
|
| 255 | + . ' title="' . esc_attr__('View Registrations', 'event_espresso') . '">' |
|
| 256 | + . esc_html__('Registrations', 'event_espresso') |
|
| 257 | + . '</a>'; |
|
| 258 | + } |
|
| 259 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
| 260 | + 'ee_delete_event', |
|
| 261 | + 'espresso_events_trash_event', |
|
| 262 | + $item->ID() |
|
| 263 | + )) { |
|
| 264 | + $trash_event_query_args = array( |
|
| 265 | + 'action' => 'trash_event', |
|
| 266 | + 'EVT_ID' => $item->ID(), |
|
| 267 | + ); |
|
| 268 | + $trash_event_link = EE_Admin_Page::add_query_args_and_nonce( |
|
| 269 | + $trash_event_query_args, |
|
| 270 | + EVENTS_ADMIN_URL |
|
| 271 | + ); |
|
| 272 | + } |
|
| 273 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
| 274 | + 'ee_delete_event', |
|
| 275 | + 'espresso_events_restore_event', |
|
| 276 | + $item->ID() |
|
| 277 | + )) { |
|
| 278 | + $restore_event_query_args = array( |
|
| 279 | + 'action' => 'restore_event', |
|
| 280 | + 'EVT_ID' => $item->ID(), |
|
| 281 | + ); |
|
| 282 | + $restore_event_link = EE_Admin_Page::add_query_args_and_nonce( |
|
| 283 | + $restore_event_query_args, |
|
| 284 | + EVENTS_ADMIN_URL |
|
| 285 | + ); |
|
| 286 | + } |
|
| 287 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
| 288 | + 'ee_delete_event', |
|
| 289 | + 'espresso_events_delete_event', |
|
| 290 | + $item->ID() |
|
| 291 | + )) { |
|
| 292 | + $delete_event_query_args = array( |
|
| 293 | + 'action' => 'delete_event', |
|
| 294 | + 'EVT_ID' => $item->ID(), |
|
| 295 | + ); |
|
| 296 | + $delete_event_link = EE_Admin_Page::add_query_args_and_nonce( |
|
| 297 | + $delete_event_query_args, |
|
| 298 | + EVENTS_ADMIN_URL |
|
| 299 | + ); |
|
| 300 | + } |
|
| 301 | + $view_link = get_permalink($item->ID()); |
|
| 302 | + $actions['view'] = '<a href="' . $view_link . '"' |
|
| 303 | + . ' title="' . esc_attr__('View Event', 'event_espresso') . '">' |
|
| 304 | + . esc_html__('View', 'event_espresso') |
|
| 305 | + . '</a>'; |
|
| 306 | + if ($item->get('status') === 'trash') { |
|
| 307 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
| 308 | + 'ee_delete_event', |
|
| 309 | + 'espresso_events_restore_event', |
|
| 310 | + $item->ID() |
|
| 311 | + )) { |
|
| 312 | + $actions['restore_from_trash'] = '<a href="' . $restore_event_link . '"' |
|
| 313 | + . ' title="' . esc_attr__('Restore from Trash', 'event_espresso') |
|
| 314 | + . '">' |
|
| 315 | + . esc_html__('Restore from Trash', 'event_espresso') |
|
| 316 | + . '</a>'; |
|
| 317 | + } |
|
| 318 | + if ($item->count_related('Registration') === 0 |
|
| 319 | + && EE_Registry::instance()->CAP->current_user_can( |
|
| 320 | + 'ee_delete_event', |
|
| 321 | + 'espresso_events_delete_event', |
|
| 322 | + $item->ID() |
|
| 323 | + ) |
|
| 324 | + ) { |
|
| 325 | + $actions['delete'] = '<a href="' . $delete_event_link . '"' |
|
| 326 | + . ' title="' . esc_attr__('Delete Permanently', 'event_espresso') . '">' |
|
| 327 | + . esc_html__('Delete Permanently', 'event_espresso') |
|
| 328 | + . '</a>'; |
|
| 329 | + } |
|
| 330 | + } else { |
|
| 331 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
| 332 | + 'ee_delete_event', |
|
| 333 | + 'espresso_events_trash_event', |
|
| 334 | + $item->ID() |
|
| 335 | + )) { |
|
| 336 | + $actions['move to trash'] = '<a href="' . $trash_event_link . '"' |
|
| 337 | + . ' title="' . esc_attr__('Trash Event', 'event_espresso') . '">' |
|
| 338 | + . esc_html__('Trash', 'event_espresso') |
|
| 339 | + . '</a>'; |
|
| 340 | + } |
|
| 341 | + } |
|
| 342 | + return $actions; |
|
| 343 | + } |
|
| 344 | + |
|
| 345 | + |
|
| 346 | + /** |
|
| 347 | + * @param EE_Event $item |
|
| 348 | + * @return string |
|
| 349 | + * @throws EE_Error |
|
| 350 | + */ |
|
| 351 | + public function column_author(EE_Event $item) |
|
| 352 | + { |
|
| 353 | + // user author info |
|
| 354 | + $event_author = get_userdata($item->wp_user()); |
|
| 355 | + $gravatar = get_avatar($item->wp_user(), '15'); |
|
| 356 | + // filter link |
|
| 357 | + $query_args = array( |
|
| 358 | + 'action' => 'default', |
|
| 359 | + 'EVT_wp_user' => $item->wp_user(), |
|
| 360 | + ); |
|
| 361 | + $filter_url = EE_Admin_Page::add_query_args_and_nonce($query_args, EVENTS_ADMIN_URL); |
|
| 362 | + return $gravatar . ' <a href="' . $filter_url . '"' |
|
| 363 | + . ' title="' . esc_attr__('Click to filter events by this author.', 'event_espresso') . '">' |
|
| 364 | + . $event_author->display_name |
|
| 365 | + . '</a>'; |
|
| 366 | + } |
|
| 367 | + |
|
| 368 | + |
|
| 369 | + /** |
|
| 370 | + * @param EE_Event $item |
|
| 371 | + * @return string |
|
| 372 | + * @throws EE_Error |
|
| 373 | + */ |
|
| 374 | + public function column_venue(EE_Event $item) |
|
| 375 | + { |
|
| 376 | + $venue = $item->get_first_related('Venue'); |
|
| 377 | + return ! empty($venue) |
|
| 378 | + ? $venue->name() |
|
| 379 | + : ''; |
|
| 380 | + } |
|
| 381 | + |
|
| 382 | + |
|
| 383 | + /** |
|
| 384 | + * @param EE_Event $item |
|
| 385 | + * @return string |
|
| 386 | + * @throws EE_Error |
|
| 387 | + */ |
|
| 388 | + public function column_start_date_time(EE_Event $item) |
|
| 389 | + { |
|
| 390 | + return $this->_dtt instanceof EE_Datetime |
|
| 391 | + ? $this->_dtt->get_i18n_datetime('DTT_EVT_start') |
|
| 392 | + : esc_html__('No Date was saved for this Event', 'event_espresso'); |
|
| 393 | + } |
|
| 394 | + |
|
| 395 | + |
|
| 396 | + /** |
|
| 397 | + * @param EE_Event $item |
|
| 398 | + * @return string |
|
| 399 | + * @throws EE_Error |
|
| 400 | + */ |
|
| 401 | + public function column_reg_begins(EE_Event $item) |
|
| 402 | + { |
|
| 403 | + $reg_start = $item->get_ticket_with_earliest_start_time(); |
|
| 404 | + return $reg_start instanceof EE_Ticket |
|
| 405 | + ? $reg_start->get_i18n_datetime('TKT_start_date') |
|
| 406 | + : esc_html__('No Tickets have been setup for this Event', 'event_espresso'); |
|
| 407 | + } |
|
| 408 | + |
|
| 409 | + |
|
| 410 | + /** |
|
| 411 | + * @param EE_Event $item |
|
| 412 | + * @return int|string |
|
| 413 | + * @throws EE_Error |
|
| 414 | + * @throws InvalidArgumentException |
|
| 415 | + * @throws InvalidDataTypeException |
|
| 416 | + * @throws InvalidInterfaceException |
|
| 417 | + */ |
|
| 418 | + public function column_attendees(EE_Event $item) |
|
| 419 | + { |
|
| 420 | + $attendees_query_args = array( |
|
| 421 | + 'action' => 'default', |
|
| 422 | + 'event_id' => $item->ID(), |
|
| 423 | + ); |
|
| 424 | + $attendees_link = EE_Admin_Page::add_query_args_and_nonce($attendees_query_args, REG_ADMIN_URL); |
|
| 425 | + $registered_attendees = EEM_Registration::instance()->get_event_registration_count($item->ID()); |
|
| 426 | + return EE_Registry::instance()->CAP->current_user_can( |
|
| 427 | + 'ee_read_event', |
|
| 428 | + 'espresso_registrations_view_registration', |
|
| 429 | + $item->ID() |
|
| 430 | + ) |
|
| 431 | + && EE_Registry::instance()->CAP->current_user_can( |
|
| 432 | + 'ee_read_registrations', |
|
| 433 | + 'espresso_registrations_view_registration' |
|
| 434 | + ) |
|
| 435 | + ? '<a href="' . $attendees_link . '">' . $registered_attendees . '</a>' |
|
| 436 | + : $registered_attendees; |
|
| 437 | + } |
|
| 438 | + |
|
| 439 | + |
|
| 440 | + /** |
|
| 441 | + * @param EE_Event $item |
|
| 442 | + * @return float |
|
| 443 | + * @throws EE_Error |
|
| 444 | + * @throws InvalidArgumentException |
|
| 445 | + * @throws InvalidDataTypeException |
|
| 446 | + * @throws InvalidInterfaceException |
|
| 447 | + */ |
|
| 448 | + public function column_tkts_sold(EE_Event $item) |
|
| 449 | + { |
|
| 450 | + return EEM_Ticket::instance()->sum(array(array('Datetime.EVT_ID' => $item->ID())), 'TKT_sold'); |
|
| 451 | + } |
|
| 452 | + |
|
| 453 | + |
|
| 454 | + /** |
|
| 455 | + * @param EE_Event $item |
|
| 456 | + * @return string |
|
| 457 | + * @throws EE_Error |
|
| 458 | + * @throws InvalidArgumentException |
|
| 459 | + * @throws InvalidDataTypeException |
|
| 460 | + * @throws InvalidInterfaceException |
|
| 461 | + */ |
|
| 462 | + public function column_actions(EE_Event $item) |
|
| 463 | + { |
|
| 464 | + // todo: remove when attendees is active |
|
| 465 | + if (! defined('REG_ADMIN_URL')) { |
|
| 466 | + define('REG_ADMIN_URL', EVENTS_ADMIN_URL); |
|
| 467 | + } |
|
| 468 | + $action_links = array(); |
|
| 469 | + $view_link = get_permalink($item->ID()); |
|
| 470 | + $action_links[] = '<a href="' . $view_link . '"' |
|
| 471 | + . ' title="' . esc_attr__('View Event', 'event_espresso') . '" target="_blank">'; |
|
| 472 | + $action_links[] = '<div class="dashicons dashicons-search"></div></a>'; |
|
| 473 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
| 474 | + 'ee_edit_event', |
|
| 475 | + 'espresso_events_edit', |
|
| 476 | + $item->ID() |
|
| 477 | + )) { |
|
| 478 | + $edit_query_args = array( |
|
| 479 | + 'action' => 'edit', |
|
| 480 | + 'post' => $item->ID(), |
|
| 481 | + ); |
|
| 482 | + $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EVENTS_ADMIN_URL); |
|
| 483 | + $action_links[] = '<a href="' . $edit_link . '"' |
|
| 484 | + . ' title="' . esc_attr__('Edit Event', 'event_espresso') . '">' |
|
| 485 | + . '<div class="ee-icon ee-icon-calendar-edit"></div>' |
|
| 486 | + . '</a>'; |
|
| 487 | + } |
|
| 488 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
| 489 | + 'ee_read_registrations', |
|
| 490 | + 'espresso_registrations_view_registration' |
|
| 491 | + ) && EE_Registry::instance()->CAP->current_user_can( |
|
| 492 | + 'ee_read_event', |
|
| 493 | + 'espresso_registrations_view_registration', |
|
| 494 | + $item->ID() |
|
| 495 | + ) |
|
| 496 | + ) { |
|
| 497 | + $attendees_query_args = array( |
|
| 498 | + 'action' => 'default', |
|
| 499 | + 'event_id' => $item->ID(), |
|
| 500 | + ); |
|
| 501 | + $attendees_link = EE_Admin_Page::add_query_args_and_nonce($attendees_query_args, REG_ADMIN_URL); |
|
| 502 | + $action_links[] = '<a href="' . $attendees_link . '"' |
|
| 503 | + . ' title="' . esc_attr__('View Registrants', 'event_espresso') . '">' |
|
| 504 | + . '<div class="dashicons dashicons-groups"></div>' |
|
| 505 | + . '</a>'; |
|
| 506 | + } |
|
| 507 | + $action_links = apply_filters( |
|
| 508 | + 'FHEE__Events_Admin_List_Table__column_actions__action_links', |
|
| 509 | + $action_links, |
|
| 510 | + $item |
|
| 511 | + ); |
|
| 512 | + return $this->_action_string( |
|
| 513 | + implode("\n\t", $action_links), |
|
| 514 | + $item, |
|
| 515 | + 'div' |
|
| 516 | + ); |
|
| 517 | + } |
|
| 518 | 518 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $class = parent::_get_row_class($item); |
| 111 | 111 | // add status class |
| 112 | 112 | $class .= $item instanceof EE_Event |
| 113 | - ? ' ee-status-strip event-status-' . $item->get_active_status() |
|
| 113 | + ? ' ee-status-strip event-status-'.$item->get_active_status() |
|
| 114 | 114 | : ''; |
| 115 | 115 | if ($this->_has_checkbox_column) { |
| 116 | 116 | $class .= ' has-checkbox-column'; |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | public function column_cb($item) |
| 141 | 141 | { |
| 142 | - if (! $item instanceof EE_Event) { |
|
| 142 | + if ( ! $item instanceof EE_Event) { |
|
| 143 | 143 | return ''; |
| 144 | 144 | } |
| 145 | 145 | $this->_dtt = $item->primary_datetime(); // set this for use in other columns |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | public function column_id(EE_Event $item) |
| 163 | 163 | { |
| 164 | 164 | $content = $item->ID(); |
| 165 | - $content .= ' <span class="show-on-mobile-view-only">' . $item->name() . '</span>'; |
|
| 165 | + $content .= ' <span class="show-on-mobile-view-only">'.$item->name().'</span>'; |
|
| 166 | 166 | return $content; |
| 167 | 167 | } |
| 168 | 168 | |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | $actions = $this->_column_name_action_setup($item); |
| 186 | 186 | $status = ''; // $item->status() !== 'publish' ? ' (' . $item->status() . ')' : ''; |
| 187 | 187 | $content = '<strong><a class="row-title" href="' |
| 188 | - . $edit_link . '">' |
|
| 188 | + . $edit_link.'">' |
|
| 189 | 189 | . $item->name() |
| 190 | 190 | . '</a></strong>' |
| 191 | 191 | . $status; |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | protected function _column_name_action_setup(EE_Event $item) |
| 215 | 215 | { |
| 216 | 216 | // todo: remove when attendees is active |
| 217 | - if (! defined('REG_ADMIN_URL')) { |
|
| 217 | + if ( ! defined('REG_ADMIN_URL')) { |
|
| 218 | 218 | define('REG_ADMIN_URL', EVENTS_ADMIN_URL); |
| 219 | 219 | } |
| 220 | 220 | $actions = array(); |
@@ -231,8 +231,8 @@ discard block |
||
| 231 | 231 | 'post' => $item->ID(), |
| 232 | 232 | ); |
| 233 | 233 | $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EVENTS_ADMIN_URL); |
| 234 | - $actions['edit'] = '<a href="' . $edit_link . '"' |
|
| 235 | - . ' title="' . esc_attr__('Edit Event', 'event_espresso') . '">' |
|
| 234 | + $actions['edit'] = '<a href="'.$edit_link.'"' |
|
| 235 | + . ' title="'.esc_attr__('Edit Event', 'event_espresso').'">' |
|
| 236 | 236 | . esc_html__('Edit', 'event_espresso') |
| 237 | 237 | . '</a>'; |
| 238 | 238 | } |
@@ -251,8 +251,8 @@ discard block |
||
| 251 | 251 | 'event_id' => $item->ID(), |
| 252 | 252 | ); |
| 253 | 253 | $attendees_link = EE_Admin_Page::add_query_args_and_nonce($attendees_query_args, REG_ADMIN_URL); |
| 254 | - $actions['attendees'] = '<a href="' . $attendees_link . '"' |
|
| 255 | - . ' title="' . esc_attr__('View Registrations', 'event_espresso') . '">' |
|
| 254 | + $actions['attendees'] = '<a href="'.$attendees_link.'"' |
|
| 255 | + . ' title="'.esc_attr__('View Registrations', 'event_espresso').'">' |
|
| 256 | 256 | . esc_html__('Registrations', 'event_espresso') |
| 257 | 257 | . '</a>'; |
| 258 | 258 | } |
@@ -299,8 +299,8 @@ discard block |
||
| 299 | 299 | ); |
| 300 | 300 | } |
| 301 | 301 | $view_link = get_permalink($item->ID()); |
| 302 | - $actions['view'] = '<a href="' . $view_link . '"' |
|
| 303 | - . ' title="' . esc_attr__('View Event', 'event_espresso') . '">' |
|
| 302 | + $actions['view'] = '<a href="'.$view_link.'"' |
|
| 303 | + . ' title="'.esc_attr__('View Event', 'event_espresso').'">' |
|
| 304 | 304 | . esc_html__('View', 'event_espresso') |
| 305 | 305 | . '</a>'; |
| 306 | 306 | if ($item->get('status') === 'trash') { |
@@ -309,8 +309,8 @@ discard block |
||
| 309 | 309 | 'espresso_events_restore_event', |
| 310 | 310 | $item->ID() |
| 311 | 311 | )) { |
| 312 | - $actions['restore_from_trash'] = '<a href="' . $restore_event_link . '"' |
|
| 313 | - . ' title="' . esc_attr__('Restore from Trash', 'event_espresso') |
|
| 312 | + $actions['restore_from_trash'] = '<a href="'.$restore_event_link.'"' |
|
| 313 | + . ' title="'.esc_attr__('Restore from Trash', 'event_espresso') |
|
| 314 | 314 | . '">' |
| 315 | 315 | . esc_html__('Restore from Trash', 'event_espresso') |
| 316 | 316 | . '</a>'; |
@@ -322,8 +322,8 @@ discard block |
||
| 322 | 322 | $item->ID() |
| 323 | 323 | ) |
| 324 | 324 | ) { |
| 325 | - $actions['delete'] = '<a href="' . $delete_event_link . '"' |
|
| 326 | - . ' title="' . esc_attr__('Delete Permanently', 'event_espresso') . '">' |
|
| 325 | + $actions['delete'] = '<a href="'.$delete_event_link.'"' |
|
| 326 | + . ' title="'.esc_attr__('Delete Permanently', 'event_espresso').'">' |
|
| 327 | 327 | . esc_html__('Delete Permanently', 'event_espresso') |
| 328 | 328 | . '</a>'; |
| 329 | 329 | } |
@@ -333,8 +333,8 @@ discard block |
||
| 333 | 333 | 'espresso_events_trash_event', |
| 334 | 334 | $item->ID() |
| 335 | 335 | )) { |
| 336 | - $actions['move to trash'] = '<a href="' . $trash_event_link . '"' |
|
| 337 | - . ' title="' . esc_attr__('Trash Event', 'event_espresso') . '">' |
|
| 336 | + $actions['move to trash'] = '<a href="'.$trash_event_link.'"' |
|
| 337 | + . ' title="'.esc_attr__('Trash Event', 'event_espresso').'">' |
|
| 338 | 338 | . esc_html__('Trash', 'event_espresso') |
| 339 | 339 | . '</a>'; |
| 340 | 340 | } |
@@ -359,8 +359,8 @@ discard block |
||
| 359 | 359 | 'EVT_wp_user' => $item->wp_user(), |
| 360 | 360 | ); |
| 361 | 361 | $filter_url = EE_Admin_Page::add_query_args_and_nonce($query_args, EVENTS_ADMIN_URL); |
| 362 | - return $gravatar . ' <a href="' . $filter_url . '"' |
|
| 363 | - . ' title="' . esc_attr__('Click to filter events by this author.', 'event_espresso') . '">' |
|
| 362 | + return $gravatar.' <a href="'.$filter_url.'"' |
|
| 363 | + . ' title="'.esc_attr__('Click to filter events by this author.', 'event_espresso').'">' |
|
| 364 | 364 | . $event_author->display_name |
| 365 | 365 | . '</a>'; |
| 366 | 366 | } |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | 'ee_read_registrations', |
| 433 | 433 | 'espresso_registrations_view_registration' |
| 434 | 434 | ) |
| 435 | - ? '<a href="' . $attendees_link . '">' . $registered_attendees . '</a>' |
|
| 435 | + ? '<a href="'.$attendees_link.'">'.$registered_attendees.'</a>' |
|
| 436 | 436 | : $registered_attendees; |
| 437 | 437 | } |
| 438 | 438 | |
@@ -462,13 +462,13 @@ discard block |
||
| 462 | 462 | public function column_actions(EE_Event $item) |
| 463 | 463 | { |
| 464 | 464 | // todo: remove when attendees is active |
| 465 | - if (! defined('REG_ADMIN_URL')) { |
|
| 465 | + if ( ! defined('REG_ADMIN_URL')) { |
|
| 466 | 466 | define('REG_ADMIN_URL', EVENTS_ADMIN_URL); |
| 467 | 467 | } |
| 468 | 468 | $action_links = array(); |
| 469 | 469 | $view_link = get_permalink($item->ID()); |
| 470 | - $action_links[] = '<a href="' . $view_link . '"' |
|
| 471 | - . ' title="' . esc_attr__('View Event', 'event_espresso') . '" target="_blank">'; |
|
| 470 | + $action_links[] = '<a href="'.$view_link.'"' |
|
| 471 | + . ' title="'.esc_attr__('View Event', 'event_espresso').'" target="_blank">'; |
|
| 472 | 472 | $action_links[] = '<div class="dashicons dashicons-search"></div></a>'; |
| 473 | 473 | if (EE_Registry::instance()->CAP->current_user_can( |
| 474 | 474 | 'ee_edit_event', |
@@ -480,8 +480,8 @@ discard block |
||
| 480 | 480 | 'post' => $item->ID(), |
| 481 | 481 | ); |
| 482 | 482 | $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EVENTS_ADMIN_URL); |
| 483 | - $action_links[] = '<a href="' . $edit_link . '"' |
|
| 484 | - . ' title="' . esc_attr__('Edit Event', 'event_espresso') . '">' |
|
| 483 | + $action_links[] = '<a href="'.$edit_link.'"' |
|
| 484 | + . ' title="'.esc_attr__('Edit Event', 'event_espresso').'">' |
|
| 485 | 485 | . '<div class="ee-icon ee-icon-calendar-edit"></div>' |
| 486 | 486 | . '</a>'; |
| 487 | 487 | } |
@@ -499,8 +499,8 @@ discard block |
||
| 499 | 499 | 'event_id' => $item->ID(), |
| 500 | 500 | ); |
| 501 | 501 | $attendees_link = EE_Admin_Page::add_query_args_and_nonce($attendees_query_args, REG_ADMIN_URL); |
| 502 | - $action_links[] = '<a href="' . $attendees_link . '"' |
|
| 503 | - . ' title="' . esc_attr__('View Registrants', 'event_espresso') . '">' |
|
| 502 | + $action_links[] = '<a href="'.$attendees_link.'"' |
|
| 503 | + . ' title="'.esc_attr__('View Registrants', 'event_espresso').'">' |
|
| 504 | 504 | . '<div class="dashicons dashicons-groups"></div>' |
| 505 | 505 | . '</a>'; |
| 506 | 506 | } |
@@ -15,123 +15,123 @@ |
||
| 15 | 15 | class Registration_Form_Edit_Question_Group_Help_Tour extends EE_Help_Tour |
| 16 | 16 | { |
| 17 | 17 | |
| 18 | - protected function _set_tour_properties() |
|
| 19 | - { |
|
| 20 | - $this->_label = __('Edit Question Group Tour', 'event_espresso'); |
|
| 21 | - $this->_slug = $this->_is_caf ? 'edit-question-caf-joyride' : 'edit-question-joyride'; |
|
| 22 | - } |
|
| 18 | + protected function _set_tour_properties() |
|
| 19 | + { |
|
| 20 | + $this->_label = __('Edit Question Group Tour', 'event_espresso'); |
|
| 21 | + $this->_slug = $this->_is_caf ? 'edit-question-caf-joyride' : 'edit-question-joyride'; |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | - protected function _set_tour_stops() |
|
| 25 | - { |
|
| 26 | - $this->_stops = array( |
|
| 27 | - 10 => array( |
|
| 28 | - 'content' => $this->_start(), |
|
| 29 | - ), |
|
| 30 | - 20 => array( |
|
| 31 | - 'id' => 'QSG_name', |
|
| 32 | - 'content' => $this->_qsg_name_stop(), |
|
| 33 | - 'options' => array( |
|
| 34 | - 'tipLocation' => 'top', |
|
| 35 | - 'tipAdjustmentX' => 0, |
|
| 36 | - 'tipAdjustmentY' => -35, |
|
| 37 | - ), |
|
| 38 | - ), |
|
| 39 | - 30 => array( |
|
| 40 | - 'id' => 'QSG_identifier', |
|
| 41 | - 'content' => $this->_qsg_identifier_stop(), |
|
| 42 | - 'options' => array( |
|
| 43 | - 'tipLocation' => 'top', |
|
| 44 | - 'tipAdjustmentX' => 0, |
|
| 45 | - 'tipAdjustmentY' => -35, |
|
| 46 | - ), |
|
| 47 | - ), |
|
| 48 | - 40 => array( |
|
| 49 | - 'id' => 'QSG_desc', |
|
| 50 | - 'content' => $this->_qsg_desc_stop(), |
|
| 51 | - 'options' => array( |
|
| 52 | - 'tipLocation' => 'top', |
|
| 53 | - 'tipAdjustmentX' => 0, |
|
| 54 | - 'tipAdjustmentY' => -35, |
|
| 55 | - ), |
|
| 56 | - ), |
|
| 57 | - 50 => array( |
|
| 58 | - 'id' => 'QSG_order', |
|
| 59 | - 'content' => $this->_qsg_order_stop(), |
|
| 60 | - 'options' => array( |
|
| 61 | - 'tipLocation' => 'top', |
|
| 62 | - 'tipAdjustmentX' => -20, |
|
| 63 | - 'tipAdjustmentY' => -35, |
|
| 64 | - ), |
|
| 65 | - ), |
|
| 66 | - 60 => array( |
|
| 67 | - 'id' => 'QSG_show_group_name', |
|
| 68 | - 'content' => $this->_qsg_show_group_name_stop(), |
|
| 69 | - 'options' => array( |
|
| 70 | - 'tipLocation' => 'top', |
|
| 71 | - 'tipAdjustmentX' => 0, |
|
| 72 | - 'tipAdjustmentY' => -35, |
|
| 73 | - ), |
|
| 74 | - ), |
|
| 75 | - 70 => array( |
|
| 76 | - 'id' => 'QSG_show_group_desc', |
|
| 77 | - 'content' => $this->_qsg_show_group_desc_stop(), |
|
| 78 | - 'options' => array( |
|
| 79 | - 'tipLocation' => 'top', |
|
| 80 | - 'tipAdjustmentX' => 0, |
|
| 81 | - 'tipAdjustmentY' => -35, |
|
| 82 | - ), |
|
| 83 | - ), |
|
| 84 | - ); |
|
| 85 | - } |
|
| 24 | + protected function _set_tour_stops() |
|
| 25 | + { |
|
| 26 | + $this->_stops = array( |
|
| 27 | + 10 => array( |
|
| 28 | + 'content' => $this->_start(), |
|
| 29 | + ), |
|
| 30 | + 20 => array( |
|
| 31 | + 'id' => 'QSG_name', |
|
| 32 | + 'content' => $this->_qsg_name_stop(), |
|
| 33 | + 'options' => array( |
|
| 34 | + 'tipLocation' => 'top', |
|
| 35 | + 'tipAdjustmentX' => 0, |
|
| 36 | + 'tipAdjustmentY' => -35, |
|
| 37 | + ), |
|
| 38 | + ), |
|
| 39 | + 30 => array( |
|
| 40 | + 'id' => 'QSG_identifier', |
|
| 41 | + 'content' => $this->_qsg_identifier_stop(), |
|
| 42 | + 'options' => array( |
|
| 43 | + 'tipLocation' => 'top', |
|
| 44 | + 'tipAdjustmentX' => 0, |
|
| 45 | + 'tipAdjustmentY' => -35, |
|
| 46 | + ), |
|
| 47 | + ), |
|
| 48 | + 40 => array( |
|
| 49 | + 'id' => 'QSG_desc', |
|
| 50 | + 'content' => $this->_qsg_desc_stop(), |
|
| 51 | + 'options' => array( |
|
| 52 | + 'tipLocation' => 'top', |
|
| 53 | + 'tipAdjustmentX' => 0, |
|
| 54 | + 'tipAdjustmentY' => -35, |
|
| 55 | + ), |
|
| 56 | + ), |
|
| 57 | + 50 => array( |
|
| 58 | + 'id' => 'QSG_order', |
|
| 59 | + 'content' => $this->_qsg_order_stop(), |
|
| 60 | + 'options' => array( |
|
| 61 | + 'tipLocation' => 'top', |
|
| 62 | + 'tipAdjustmentX' => -20, |
|
| 63 | + 'tipAdjustmentY' => -35, |
|
| 64 | + ), |
|
| 65 | + ), |
|
| 66 | + 60 => array( |
|
| 67 | + 'id' => 'QSG_show_group_name', |
|
| 68 | + 'content' => $this->_qsg_show_group_name_stop(), |
|
| 69 | + 'options' => array( |
|
| 70 | + 'tipLocation' => 'top', |
|
| 71 | + 'tipAdjustmentX' => 0, |
|
| 72 | + 'tipAdjustmentY' => -35, |
|
| 73 | + ), |
|
| 74 | + ), |
|
| 75 | + 70 => array( |
|
| 76 | + 'id' => 'QSG_show_group_desc', |
|
| 77 | + 'content' => $this->_qsg_show_group_desc_stop(), |
|
| 78 | + 'options' => array( |
|
| 79 | + 'tipLocation' => 'top', |
|
| 80 | + 'tipAdjustmentX' => 0, |
|
| 81 | + 'tipAdjustmentY' => -35, |
|
| 82 | + ), |
|
| 83 | + ), |
|
| 84 | + ); |
|
| 85 | + } |
|
| 86 | 86 | |
| 87 | 87 | |
| 88 | - protected function _start() |
|
| 89 | - { |
|
| 90 | - $content = '<h3>' . __('Edit Question Group', 'event_espresso') . '</h3>'; |
|
| 91 | - $content .= '<p>' |
|
| 92 | - . __( |
|
| 93 | - '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.', |
|
| 94 | - 'event_espresso' |
|
| 95 | - ) . '</p>'; |
|
| 88 | + protected function _start() |
|
| 89 | + { |
|
| 90 | + $content = '<h3>' . __('Edit Question Group', 'event_espresso') . '</h3>'; |
|
| 91 | + $content .= '<p>' |
|
| 92 | + . __( |
|
| 93 | + '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.', |
|
| 94 | + 'event_espresso' |
|
| 95 | + ) . '</p>'; |
|
| 96 | 96 | |
| 97 | - return $content; |
|
| 98 | - } |
|
| 97 | + return $content; |
|
| 98 | + } |
|
| 99 | 99 | |
| 100 | - protected function _qsg_name_stop() |
|
| 101 | - { |
|
| 102 | - return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>'; |
|
| 103 | - } |
|
| 100 | + protected function _qsg_name_stop() |
|
| 101 | + { |
|
| 102 | + return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>'; |
|
| 103 | + } |
|
| 104 | 104 | |
| 105 | - protected function _qsg_identifier_stop() |
|
| 106 | - { |
|
| 107 | - return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>'; |
|
| 108 | - } |
|
| 105 | + protected function _qsg_identifier_stop() |
|
| 106 | + { |
|
| 107 | + return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>'; |
|
| 108 | + } |
|
| 109 | 109 | |
| 110 | - protected function _qsg_desc_stop() |
|
| 111 | - { |
|
| 112 | - return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>'; |
|
| 113 | - } |
|
| 110 | + protected function _qsg_desc_stop() |
|
| 111 | + { |
|
| 112 | + return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>'; |
|
| 113 | + } |
|
| 114 | 114 | |
| 115 | - protected function _qsg_order_stop() |
|
| 116 | - { |
|
| 117 | - return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>'; |
|
| 118 | - } |
|
| 115 | + protected function _qsg_order_stop() |
|
| 116 | + { |
|
| 117 | + return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>'; |
|
| 118 | + } |
|
| 119 | 119 | |
| 120 | - protected function _qsg_show_group_name_stop() |
|
| 121 | - { |
|
| 122 | - return '<p>' |
|
| 123 | - . __( |
|
| 124 | - 'Specify whether the group name should be shown on the registration page.', |
|
| 125 | - 'event_espresso' |
|
| 126 | - ) . '</p>'; |
|
| 127 | - } |
|
| 120 | + protected function _qsg_show_group_name_stop() |
|
| 121 | + { |
|
| 122 | + return '<p>' |
|
| 123 | + . __( |
|
| 124 | + 'Specify whether the group name should be shown on the registration page.', |
|
| 125 | + 'event_espresso' |
|
| 126 | + ) . '</p>'; |
|
| 127 | + } |
|
| 128 | 128 | |
| 129 | - protected function _qsg_show_group_desc_stop() |
|
| 130 | - { |
|
| 131 | - return '<p>' |
|
| 132 | - . __( |
|
| 133 | - 'Specify whether the group description should be shown on the registration page.', |
|
| 134 | - 'event_espresso' |
|
| 135 | - ) . '</p>'; |
|
| 136 | - } |
|
| 129 | + protected function _qsg_show_group_desc_stop() |
|
| 130 | + { |
|
| 131 | + return '<p>' |
|
| 132 | + . __( |
|
| 133 | + 'Specify whether the group description should be shown on the registration page.', |
|
| 134 | + 'event_espresso' |
|
| 135 | + ) . '</p>'; |
|
| 136 | + } |
|
| 137 | 137 | } |
@@ -87,34 +87,34 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | protected function _start() |
| 89 | 89 | { |
| 90 | - $content = '<h3>' . __('Edit Question Group', 'event_espresso') . '</h3>'; |
|
| 90 | + $content = '<h3>'.__('Edit Question Group', 'event_espresso').'</h3>'; |
|
| 91 | 91 | $content .= '<p>' |
| 92 | 92 | . __( |
| 93 | 93 | '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.', |
| 94 | 94 | 'event_espresso' |
| 95 | - ) . '</p>'; |
|
| 95 | + ).'</p>'; |
|
| 96 | 96 | |
| 97 | 97 | return $content; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | protected function _qsg_name_stop() |
| 101 | 101 | { |
| 102 | - return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>'; |
|
| 102 | + return '<p>'.__('The name of the question group.', 'event_espresso').'</p>'; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | protected function _qsg_identifier_stop() |
| 106 | 106 | { |
| 107 | - return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>'; |
|
| 107 | + return '<p>'.__('A unique name for your question group.', 'event_espresso').'</p>'; |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | protected function _qsg_desc_stop() |
| 111 | 111 | { |
| 112 | - return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>'; |
|
| 112 | + return '<p>'.__('A description of the question group.', 'event_espresso').'</p>'; |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | protected function _qsg_order_stop() |
| 116 | 116 | { |
| 117 | - return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>'; |
|
| 117 | + return '<p>'.__('Set the order that you want your question group to appear in.', 'event_espresso').'</p>'; |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | protected function _qsg_show_group_name_stop() |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | . __( |
| 124 | 124 | 'Specify whether the group name should be shown on the registration page.', |
| 125 | 125 | 'event_espresso' |
| 126 | - ) . '</p>'; |
|
| 126 | + ).'</p>'; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | protected function _qsg_show_group_desc_stop() |
@@ -132,6 +132,6 @@ discard block |
||
| 132 | 132 | . __( |
| 133 | 133 | 'Specify whether the group description should be shown on the registration page.', |
| 134 | 134 | 'event_espresso' |
| 135 | - ) . '</p>'; |
|
| 135 | + ).'</p>'; |
|
| 136 | 136 | } |
| 137 | 137 | } |
@@ -15,148 +15,148 @@ |
||
| 15 | 15 | class Registration_Form_Question_Groups_Help_Tour extends EE_Help_Tour |
| 16 | 16 | { |
| 17 | 17 | |
| 18 | - protected function _set_tour_properties() |
|
| 19 | - { |
|
| 20 | - $this->_label = __('Question Groups Tour', 'event_espresso'); |
|
| 21 | - $this->_slug = $this->_is_caf ? 'question-groups-caf-overview-joyride' : 'question-groups-overview-joyride'; |
|
| 22 | - } |
|
| 18 | + protected function _set_tour_properties() |
|
| 19 | + { |
|
| 20 | + $this->_label = __('Question Groups Tour', 'event_espresso'); |
|
| 21 | + $this->_slug = $this->_is_caf ? 'question-groups-caf-overview-joyride' : 'question-groups-overview-joyride'; |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | 24 | |
| 25 | - protected function _set_tour_stops() |
|
| 26 | - { |
|
| 27 | - $this->_stops = array( |
|
| 28 | - 10 => array( |
|
| 29 | - 'content' => $this->_start(), |
|
| 30 | - ), |
|
| 31 | - ); |
|
| 25 | + protected function _set_tour_stops() |
|
| 26 | + { |
|
| 27 | + $this->_stops = array( |
|
| 28 | + 10 => array( |
|
| 29 | + 'content' => $this->_start(), |
|
| 30 | + ), |
|
| 31 | + ); |
|
| 32 | 32 | |
| 33 | - if ($this->_is_caf) { |
|
| 34 | - $this->_stops[20] = array( |
|
| 35 | - 'id' => 'name', |
|
| 36 | - 'content' => $this->_name_stop(), |
|
| 37 | - 'options' => array( |
|
| 38 | - 'tipLocation' => 'top', |
|
| 39 | - 'tipAdjustmentY' => -30, |
|
| 40 | - 'tipAdjustmentX' => 25, |
|
| 41 | - ), |
|
| 42 | - ); |
|
| 43 | - $this->_stops[30] = array( |
|
| 44 | - 'id' => 'description', |
|
| 45 | - 'content' => $this->_description_stop(), |
|
| 46 | - 'options' => array( |
|
| 47 | - 'tipLocation' => 'top', |
|
| 48 | - 'tipAdjustmentY' => -30, |
|
| 49 | - 'tipAdjustmentX' => 20, |
|
| 50 | - ), |
|
| 51 | - ); |
|
| 52 | - $this->_stops[40] = array( |
|
| 53 | - 'id' => 'show_group_name', |
|
| 54 | - 'content' => $this->_show_group_name_stop(), |
|
| 55 | - 'options' => array( |
|
| 56 | - 'tipLocation' => 'top', |
|
| 57 | - 'tipAdjustmentY' => -30, |
|
| 58 | - 'tipAdjustmentX' => 20, |
|
| 59 | - ), |
|
| 60 | - ); |
|
| 61 | - $this->_stops[50] = array( |
|
| 62 | - 'id' => 'show_group_desc', |
|
| 63 | - 'content' => $this->_show_group_description_stop(), |
|
| 64 | - 'options' => array( |
|
| 65 | - 'tipLocation' => 'top', |
|
| 66 | - 'tipAdjustmentY' => -30, |
|
| 67 | - 'tipAdjustmentX' => 20, |
|
| 68 | - ), |
|
| 69 | - ); |
|
| 70 | - $this->_stops[60] = array( |
|
| 71 | - 'class' => 'bulkactions', |
|
| 72 | - 'content' => $this->_bulk_actions_stop(), |
|
| 73 | - 'options' => array( |
|
| 74 | - 'tipLocation' => 'left', |
|
| 75 | - 'tipAdjustmentY' => -50, |
|
| 76 | - 'tipAdjustmentX' => -80, |
|
| 77 | - ), |
|
| 78 | - ); |
|
| 79 | - $this->_stops[70] = array( |
|
| 80 | - 'id' => 'add-new-question-group', |
|
| 81 | - 'content' => $this->_add_new_question_group_stop(), |
|
| 82 | - 'options' => array( |
|
| 83 | - 'tipLocation' => 'right', |
|
| 84 | - 'tipAdjustmentY' => -50, |
|
| 85 | - 'tipAdjustmentX' => 15, |
|
| 86 | - ), |
|
| 87 | - ); |
|
| 88 | - } |
|
| 89 | - } |
|
| 33 | + if ($this->_is_caf) { |
|
| 34 | + $this->_stops[20] = array( |
|
| 35 | + 'id' => 'name', |
|
| 36 | + 'content' => $this->_name_stop(), |
|
| 37 | + 'options' => array( |
|
| 38 | + 'tipLocation' => 'top', |
|
| 39 | + 'tipAdjustmentY' => -30, |
|
| 40 | + 'tipAdjustmentX' => 25, |
|
| 41 | + ), |
|
| 42 | + ); |
|
| 43 | + $this->_stops[30] = array( |
|
| 44 | + 'id' => 'description', |
|
| 45 | + 'content' => $this->_description_stop(), |
|
| 46 | + 'options' => array( |
|
| 47 | + 'tipLocation' => 'top', |
|
| 48 | + 'tipAdjustmentY' => -30, |
|
| 49 | + 'tipAdjustmentX' => 20, |
|
| 50 | + ), |
|
| 51 | + ); |
|
| 52 | + $this->_stops[40] = array( |
|
| 53 | + 'id' => 'show_group_name', |
|
| 54 | + 'content' => $this->_show_group_name_stop(), |
|
| 55 | + 'options' => array( |
|
| 56 | + 'tipLocation' => 'top', |
|
| 57 | + 'tipAdjustmentY' => -30, |
|
| 58 | + 'tipAdjustmentX' => 20, |
|
| 59 | + ), |
|
| 60 | + ); |
|
| 61 | + $this->_stops[50] = array( |
|
| 62 | + 'id' => 'show_group_desc', |
|
| 63 | + 'content' => $this->_show_group_description_stop(), |
|
| 64 | + 'options' => array( |
|
| 65 | + 'tipLocation' => 'top', |
|
| 66 | + 'tipAdjustmentY' => -30, |
|
| 67 | + 'tipAdjustmentX' => 20, |
|
| 68 | + ), |
|
| 69 | + ); |
|
| 70 | + $this->_stops[60] = array( |
|
| 71 | + 'class' => 'bulkactions', |
|
| 72 | + 'content' => $this->_bulk_actions_stop(), |
|
| 73 | + 'options' => array( |
|
| 74 | + 'tipLocation' => 'left', |
|
| 75 | + 'tipAdjustmentY' => -50, |
|
| 76 | + 'tipAdjustmentX' => -80, |
|
| 77 | + ), |
|
| 78 | + ); |
|
| 79 | + $this->_stops[70] = array( |
|
| 80 | + 'id' => 'add-new-question-group', |
|
| 81 | + 'content' => $this->_add_new_question_group_stop(), |
|
| 82 | + 'options' => array( |
|
| 83 | + 'tipLocation' => 'right', |
|
| 84 | + 'tipAdjustmentY' => -50, |
|
| 85 | + 'tipAdjustmentX' => 15, |
|
| 86 | + ), |
|
| 87 | + ); |
|
| 88 | + } |
|
| 89 | + } |
|
| 90 | 90 | |
| 91 | 91 | |
| 92 | - protected function _start() |
|
| 93 | - { |
|
| 94 | - $content = '<h3>' . __('Question Groups', 'event_espresso') . '</h3>'; |
|
| 95 | - if ($this->_is_caf) { |
|
| 96 | - $content .= '<p>' |
|
| 97 | - . __( |
|
| 98 | - 'This tour of the Question Groups page will go over different areas of the screen to help you understand what they are used for.', |
|
| 99 | - 'event_espresso' |
|
| 100 | - ) . '</p>'; |
|
| 101 | - } else { |
|
| 102 | - $content .= '<p>' |
|
| 103 | - . __( |
|
| 104 | - 'Sorry, Event Espresso Decaf does not have this feature. Please purchase a support license to get access to this feature.', |
|
| 105 | - 'event_espresso' |
|
| 106 | - ) . '</p>'; |
|
| 107 | - } |
|
| 92 | + protected function _start() |
|
| 93 | + { |
|
| 94 | + $content = '<h3>' . __('Question Groups', 'event_espresso') . '</h3>'; |
|
| 95 | + if ($this->_is_caf) { |
|
| 96 | + $content .= '<p>' |
|
| 97 | + . __( |
|
| 98 | + 'This tour of the Question Groups page will go over different areas of the screen to help you understand what they are used for.', |
|
| 99 | + 'event_espresso' |
|
| 100 | + ) . '</p>'; |
|
| 101 | + } else { |
|
| 102 | + $content .= '<p>' |
|
| 103 | + . __( |
|
| 104 | + 'Sorry, Event Espresso Decaf does not have this feature. Please purchase a support license to get access to this feature.', |
|
| 105 | + 'event_espresso' |
|
| 106 | + ) . '</p>'; |
|
| 107 | + } |
|
| 108 | 108 | |
| 109 | - return $content; |
|
| 110 | - } |
|
| 109 | + return $content; |
|
| 110 | + } |
|
| 111 | 111 | |
| 112 | - protected function _name_stop() |
|
| 113 | - { |
|
| 114 | - return '<p>' |
|
| 115 | - . __( |
|
| 116 | - 'View available questions groups. You can reorder your questions by dragging and dropping them.', |
|
| 117 | - 'event_espresso' |
|
| 118 | - ) . '</p>'; |
|
| 119 | - } |
|
| 112 | + protected function _name_stop() |
|
| 113 | + { |
|
| 114 | + return '<p>' |
|
| 115 | + . __( |
|
| 116 | + 'View available questions groups. You can reorder your questions by dragging and dropping them.', |
|
| 117 | + 'event_espresso' |
|
| 118 | + ) . '</p>'; |
|
| 119 | + } |
|
| 120 | 120 | |
| 121 | - protected function _description_stop() |
|
| 122 | - { |
|
| 123 | - return '<p>' . __('View the question group description.', 'event_espresso') . '</p>'; |
|
| 124 | - } |
|
| 121 | + protected function _description_stop() |
|
| 122 | + { |
|
| 123 | + return '<p>' . __('View the question group description.', 'event_espresso') . '</p>'; |
|
| 124 | + } |
|
| 125 | 125 | |
| 126 | - protected function _show_group_name_stop() |
|
| 127 | - { |
|
| 128 | - return '<p>' |
|
| 129 | - . __( |
|
| 130 | - 'View if the name of the question group should be shown to customers.', |
|
| 131 | - 'event_espresso' |
|
| 132 | - ) . '</p>'; |
|
| 133 | - } |
|
| 126 | + protected function _show_group_name_stop() |
|
| 127 | + { |
|
| 128 | + return '<p>' |
|
| 129 | + . __( |
|
| 130 | + 'View if the name of the question group should be shown to customers.', |
|
| 131 | + 'event_espresso' |
|
| 132 | + ) . '</p>'; |
|
| 133 | + } |
|
| 134 | 134 | |
| 135 | - protected function _show_group_description_stop() |
|
| 136 | - { |
|
| 137 | - return '<p>' |
|
| 138 | - . __( |
|
| 139 | - 'View if the description of the question group should be shown to customers.', |
|
| 140 | - 'event_espresso' |
|
| 141 | - ) . '</p>'; |
|
| 142 | - } |
|
| 135 | + protected function _show_group_description_stop() |
|
| 136 | + { |
|
| 137 | + return '<p>' |
|
| 138 | + . __( |
|
| 139 | + 'View if the description of the question group should be shown to customers.', |
|
| 140 | + 'event_espresso' |
|
| 141 | + ) . '</p>'; |
|
| 142 | + } |
|
| 143 | 143 | |
| 144 | - protected function _bulk_actions_stop() |
|
| 145 | - { |
|
| 146 | - return '<p>' . __('Perform bulk actions to multiple question groups.', 'event_espresso') . '</p>'; |
|
| 147 | - } |
|
| 144 | + protected function _bulk_actions_stop() |
|
| 145 | + { |
|
| 146 | + return '<p>' . __('Perform bulk actions to multiple question groups.', 'event_espresso') . '</p>'; |
|
| 147 | + } |
|
| 148 | 148 | |
| 149 | - protected function _search_stop() |
|
| 150 | - { |
|
| 151 | - return '<p>' |
|
| 152 | - . __( |
|
| 153 | - 'Search through questions. The following sources will be searched: question group name and question group description.', |
|
| 154 | - 'event_espresso' |
|
| 155 | - ) . '</p>'; |
|
| 156 | - } |
|
| 149 | + protected function _search_stop() |
|
| 150 | + { |
|
| 151 | + return '<p>' |
|
| 152 | + . __( |
|
| 153 | + 'Search through questions. The following sources will be searched: question group name and question group description.', |
|
| 154 | + 'event_espresso' |
|
| 155 | + ) . '</p>'; |
|
| 156 | + } |
|
| 157 | 157 | |
| 158 | - protected function _add_new_question_group_stop() |
|
| 159 | - { |
|
| 160 | - return '<p>' . __('Click here to create a new question group.', 'event_espresso') . '</p>'; |
|
| 161 | - } |
|
| 158 | + protected function _add_new_question_group_stop() |
|
| 159 | + { |
|
| 160 | + return '<p>' . __('Click here to create a new question group.', 'event_espresso') . '</p>'; |
|
| 161 | + } |
|
| 162 | 162 | } |
@@ -91,19 +91,19 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | protected function _start() |
| 93 | 93 | { |
| 94 | - $content = '<h3>' . __('Question Groups', 'event_espresso') . '</h3>'; |
|
| 94 | + $content = '<h3>'.__('Question Groups', 'event_espresso').'</h3>'; |
|
| 95 | 95 | if ($this->_is_caf) { |
| 96 | 96 | $content .= '<p>' |
| 97 | 97 | . __( |
| 98 | 98 | 'This tour of the Question Groups page will go over different areas of the screen to help you understand what they are used for.', |
| 99 | 99 | 'event_espresso' |
| 100 | - ) . '</p>'; |
|
| 100 | + ).'</p>'; |
|
| 101 | 101 | } else { |
| 102 | 102 | $content .= '<p>' |
| 103 | 103 | . __( |
| 104 | 104 | 'Sorry, Event Espresso Decaf does not have this feature. Please purchase a support license to get access to this feature.', |
| 105 | 105 | 'event_espresso' |
| 106 | - ) . '</p>'; |
|
| 106 | + ).'</p>'; |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | return $content; |
@@ -115,12 +115,12 @@ discard block |
||
| 115 | 115 | . __( |
| 116 | 116 | 'View available questions groups. You can reorder your questions by dragging and dropping them.', |
| 117 | 117 | 'event_espresso' |
| 118 | - ) . '</p>'; |
|
| 118 | + ).'</p>'; |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | protected function _description_stop() |
| 122 | 122 | { |
| 123 | - return '<p>' . __('View the question group description.', 'event_espresso') . '</p>'; |
|
| 123 | + return '<p>'.__('View the question group description.', 'event_espresso').'</p>'; |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | protected function _show_group_name_stop() |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | . __( |
| 130 | 130 | 'View if the name of the question group should be shown to customers.', |
| 131 | 131 | 'event_espresso' |
| 132 | - ) . '</p>'; |
|
| 132 | + ).'</p>'; |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | protected function _show_group_description_stop() |
@@ -138,12 +138,12 @@ discard block |
||
| 138 | 138 | . __( |
| 139 | 139 | 'View if the description of the question group should be shown to customers.', |
| 140 | 140 | 'event_espresso' |
| 141 | - ) . '</p>'; |
|
| 141 | + ).'</p>'; |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | protected function _bulk_actions_stop() |
| 145 | 145 | { |
| 146 | - return '<p>' . __('Perform bulk actions to multiple question groups.', 'event_espresso') . '</p>'; |
|
| 146 | + return '<p>'.__('Perform bulk actions to multiple question groups.', 'event_espresso').'</p>'; |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | protected function _search_stop() |
@@ -152,11 +152,11 @@ discard block |
||
| 152 | 152 | . __( |
| 153 | 153 | 'Search through questions. The following sources will be searched: question group name and question group description.', |
| 154 | 154 | 'event_espresso' |
| 155 | - ) . '</p>'; |
|
| 155 | + ).'</p>'; |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | protected function _add_new_question_group_stop() |
| 159 | 159 | { |
| 160 | - return '<p>' . __('Click here to create a new question group.', 'event_espresso') . '</p>'; |
|
| 160 | + return '<p>'.__('Click here to create a new question group.', 'event_espresso').'</p>'; |
|
| 161 | 161 | } |
| 162 | 162 | } |
@@ -15,115 +15,115 @@ |
||
| 15 | 15 | class Registration_Form_Settings_Help_Tour extends EE_Help_Tour |
| 16 | 16 | { |
| 17 | 17 | |
| 18 | - protected function _set_tour_properties() |
|
| 19 | - { |
|
| 20 | - $this->_label = __('Registration Form Settings Tour', 'event_espresso'); |
|
| 21 | - $this->_slug = $this->_is_caf ? 'reg-form-settings-caf-joyride' : 'reg-form-settings-joyride'; |
|
| 22 | - } |
|
| 18 | + protected function _set_tour_properties() |
|
| 19 | + { |
|
| 20 | + $this->_label = __('Registration Form Settings Tour', 'event_espresso'); |
|
| 21 | + $this->_slug = $this->_is_caf ? 'reg-form-settings-caf-joyride' : 'reg-form-settings-joyride'; |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | - protected function _set_tour_stops() |
|
| 25 | - { |
|
| 26 | - $this->_stops = array( |
|
| 27 | - 10 => array( |
|
| 28 | - 'content' => $this->_start(), |
|
| 29 | - ), |
|
| 30 | - 20 => array( |
|
| 31 | - 'id' => 'use_captcha', |
|
| 32 | - 'content' => $this->_use_recaptcha_stop(), |
|
| 33 | - 'options' => array( |
|
| 34 | - 'tipLocation' => 'top', |
|
| 35 | - 'tipAdjustmentX' => 0, |
|
| 36 | - 'tipAdjustmentY' => -35, |
|
| 37 | - ), |
|
| 38 | - ), |
|
| 39 | - 30 => array( |
|
| 40 | - /*'id' => 'recaptchapublickey',*/ |
|
| 41 | - 'content' => $this->_recaptcha_public_key_stop(), |
|
| 42 | - /*'options' => array( |
|
| 24 | + protected function _set_tour_stops() |
|
| 25 | + { |
|
| 26 | + $this->_stops = array( |
|
| 27 | + 10 => array( |
|
| 28 | + 'content' => $this->_start(), |
|
| 29 | + ), |
|
| 30 | + 20 => array( |
|
| 31 | + 'id' => 'use_captcha', |
|
| 32 | + 'content' => $this->_use_recaptcha_stop(), |
|
| 33 | + 'options' => array( |
|
| 34 | + 'tipLocation' => 'top', |
|
| 35 | + 'tipAdjustmentX' => 0, |
|
| 36 | + 'tipAdjustmentY' => -35, |
|
| 37 | + ), |
|
| 38 | + ), |
|
| 39 | + 30 => array( |
|
| 40 | + /*'id' => 'recaptchapublickey',*/ |
|
| 41 | + 'content' => $this->_recaptcha_public_key_stop(), |
|
| 42 | + /*'options' => array( |
|
| 43 | 43 | 'tipLocation' => 'top', |
| 44 | 44 | 'tipAdjustmentX' => 0, |
| 45 | 45 | 'tipAdjustmentY' => -35 |
| 46 | 46 | )*/ |
| 47 | - ), |
|
| 48 | - 40 => array( |
|
| 49 | - /*'id' => 'recaptchaprivatekey',*/ |
|
| 50 | - 'content' => $this->_recaptcha_private_key_stop(), |
|
| 51 | - /*'options' => array( |
|
| 47 | + ), |
|
| 48 | + 40 => array( |
|
| 49 | + /*'id' => 'recaptchaprivatekey',*/ |
|
| 50 | + 'content' => $this->_recaptcha_private_key_stop(), |
|
| 51 | + /*'options' => array( |
|
| 52 | 52 | 'tipLocation' => 'top', |
| 53 | 53 | 'tipAdjustmentX' => 0, |
| 54 | 54 | 'tipAdjustmentY' => -35 |
| 55 | 55 | )*/ |
| 56 | - ), |
|
| 57 | - 50 => array( |
|
| 58 | - 'id' => 'recaptcha_theme', |
|
| 59 | - 'content' => $this->_recaptcha_theme_stop(), |
|
| 60 | - 'options' => array( |
|
| 61 | - 'tipLocation' => 'top', |
|
| 62 | - 'tipAdjustmentX' => -20, |
|
| 63 | - 'tipAdjustmentY' => -35, |
|
| 64 | - ), |
|
| 65 | - ), |
|
| 66 | - 60 => array( |
|
| 67 | - 'id' => 'recaptcha_language', |
|
| 68 | - 'content' => $this->_recaptcha_language_stop(), |
|
| 69 | - 'options' => array( |
|
| 70 | - 'tipLocation' => 'top', |
|
| 71 | - 'tipAdjustmentX' => 0, |
|
| 72 | - 'tipAdjustmentY' => -35, |
|
| 73 | - ), |
|
| 74 | - ), |
|
| 75 | - 70 => array( |
|
| 76 | - 'id' => 'recaptcha_language', |
|
| 77 | - 'content' => $this->_recaptcha_width_stop(), |
|
| 78 | - 'options' => array( |
|
| 79 | - 'tipLocation' => 'top', |
|
| 80 | - 'tipAdjustmentX' => 0, |
|
| 81 | - 'tipAdjustmentY' => 25, |
|
| 82 | - ), |
|
| 83 | - ), |
|
| 84 | - ); |
|
| 85 | - } |
|
| 56 | + ), |
|
| 57 | + 50 => array( |
|
| 58 | + 'id' => 'recaptcha_theme', |
|
| 59 | + 'content' => $this->_recaptcha_theme_stop(), |
|
| 60 | + 'options' => array( |
|
| 61 | + 'tipLocation' => 'top', |
|
| 62 | + 'tipAdjustmentX' => -20, |
|
| 63 | + 'tipAdjustmentY' => -35, |
|
| 64 | + ), |
|
| 65 | + ), |
|
| 66 | + 60 => array( |
|
| 67 | + 'id' => 'recaptcha_language', |
|
| 68 | + 'content' => $this->_recaptcha_language_stop(), |
|
| 69 | + 'options' => array( |
|
| 70 | + 'tipLocation' => 'top', |
|
| 71 | + 'tipAdjustmentX' => 0, |
|
| 72 | + 'tipAdjustmentY' => -35, |
|
| 73 | + ), |
|
| 74 | + ), |
|
| 75 | + 70 => array( |
|
| 76 | + 'id' => 'recaptcha_language', |
|
| 77 | + 'content' => $this->_recaptcha_width_stop(), |
|
| 78 | + 'options' => array( |
|
| 79 | + 'tipLocation' => 'top', |
|
| 80 | + 'tipAdjustmentX' => 0, |
|
| 81 | + 'tipAdjustmentY' => 25, |
|
| 82 | + ), |
|
| 83 | + ), |
|
| 84 | + ); |
|
| 85 | + } |
|
| 86 | 86 | |
| 87 | 87 | |
| 88 | - protected function _start() |
|
| 89 | - { |
|
| 90 | - $content = '<h3>' . __('Registration Form Settings', 'event_espresso') . '</h3>'; |
|
| 91 | - $content .= '<p>' |
|
| 92 | - . __( |
|
| 93 | - '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.', |
|
| 94 | - 'event_espresso' |
|
| 95 | - ) . '</p>'; |
|
| 88 | + protected function _start() |
|
| 89 | + { |
|
| 90 | + $content = '<h3>' . __('Registration Form Settings', 'event_espresso') . '</h3>'; |
|
| 91 | + $content .= '<p>' |
|
| 92 | + . __( |
|
| 93 | + '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.', |
|
| 94 | + 'event_espresso' |
|
| 95 | + ) . '</p>'; |
|
| 96 | 96 | |
| 97 | - return $content; |
|
| 98 | - } |
|
| 97 | + return $content; |
|
| 98 | + } |
|
| 99 | 99 | |
| 100 | - protected function _use_recaptcha_stop() |
|
| 101 | - { |
|
| 102 | - return '<p>' . __('Specify whether reCAPTCHA should be enabled.', 'event_espresso') . '</p>'; |
|
| 103 | - } |
|
| 100 | + protected function _use_recaptcha_stop() |
|
| 101 | + { |
|
| 102 | + return '<p>' . __('Specify whether reCAPTCHA should be enabled.', 'event_espresso') . '</p>'; |
|
| 103 | + } |
|
| 104 | 104 | |
| 105 | - protected function _recaptcha_public_key_stop() |
|
| 106 | - { |
|
| 107 | - return '<p>' . __('Enter your public key for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
| 108 | - } |
|
| 105 | + protected function _recaptcha_public_key_stop() |
|
| 106 | + { |
|
| 107 | + return '<p>' . __('Enter your public key for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
| 108 | + } |
|
| 109 | 109 | |
| 110 | - protected function _recaptcha_private_key_stop() |
|
| 111 | - { |
|
| 112 | - return '<p>' . __('Enter your private key for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
| 113 | - } |
|
| 110 | + protected function _recaptcha_private_key_stop() |
|
| 111 | + { |
|
| 112 | + return '<p>' . __('Enter your private key for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
| 113 | + } |
|
| 114 | 114 | |
| 115 | - protected function _recaptcha_theme_stop() |
|
| 116 | - { |
|
| 117 | - return '<p>' . __('Select a theme (style) for your reCAPTCHA.', 'event_espresso') . '</p>'; |
|
| 118 | - } |
|
| 115 | + protected function _recaptcha_theme_stop() |
|
| 116 | + { |
|
| 117 | + return '<p>' . __('Select a theme (style) for your reCAPTCHA.', 'event_espresso') . '</p>'; |
|
| 118 | + } |
|
| 119 | 119 | |
| 120 | - protected function _recaptcha_language_stop() |
|
| 121 | - { |
|
| 122 | - return '<p>' . __('Specify the language that should be used for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
| 123 | - } |
|
| 120 | + protected function _recaptcha_language_stop() |
|
| 121 | + { |
|
| 122 | + return '<p>' . __('Specify the language that should be used for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
| 123 | + } |
|
| 124 | 124 | |
| 125 | - protected function _recaptcha_width_stop() |
|
| 126 | - { |
|
| 127 | - return '<p>' . __('Specify how wide (in pixels) the reCAPTCHA form should be.', 'event_espresso') . '</p>'; |
|
| 128 | - } |
|
| 125 | + protected function _recaptcha_width_stop() |
|
| 126 | + { |
|
| 127 | + return '<p>' . __('Specify how wide (in pixels) the reCAPTCHA form should be.', 'event_espresso') . '</p>'; |
|
| 128 | + } |
|
| 129 | 129 | } |
@@ -87,43 +87,43 @@ |
||
| 87 | 87 | |
| 88 | 88 | protected function _start() |
| 89 | 89 | { |
| 90 | - $content = '<h3>' . __('Registration Form Settings', 'event_espresso') . '</h3>'; |
|
| 90 | + $content = '<h3>'.__('Registration Form Settings', 'event_espresso').'</h3>'; |
|
| 91 | 91 | $content .= '<p>' |
| 92 | 92 | . __( |
| 93 | 93 | '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.', |
| 94 | 94 | 'event_espresso' |
| 95 | - ) . '</p>'; |
|
| 95 | + ).'</p>'; |
|
| 96 | 96 | |
| 97 | 97 | return $content; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | protected function _use_recaptcha_stop() |
| 101 | 101 | { |
| 102 | - return '<p>' . __('Specify whether reCAPTCHA should be enabled.', 'event_espresso') . '</p>'; |
|
| 102 | + return '<p>'.__('Specify whether reCAPTCHA should be enabled.', 'event_espresso').'</p>'; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | protected function _recaptcha_public_key_stop() |
| 106 | 106 | { |
| 107 | - return '<p>' . __('Enter your public key for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
| 107 | + return '<p>'.__('Enter your public key for reCAPTCHA.', 'event_espresso').'</p>'; |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | protected function _recaptcha_private_key_stop() |
| 111 | 111 | { |
| 112 | - return '<p>' . __('Enter your private key for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
| 112 | + return '<p>'.__('Enter your private key for reCAPTCHA.', 'event_espresso').'</p>'; |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | protected function _recaptcha_theme_stop() |
| 116 | 116 | { |
| 117 | - return '<p>' . __('Select a theme (style) for your reCAPTCHA.', 'event_espresso') . '</p>'; |
|
| 117 | + return '<p>'.__('Select a theme (style) for your reCAPTCHA.', 'event_espresso').'</p>'; |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | protected function _recaptcha_language_stop() |
| 121 | 121 | { |
| 122 | - return '<p>' . __('Specify the language that should be used for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
| 122 | + return '<p>'.__('Specify the language that should be used for reCAPTCHA.', 'event_espresso').'</p>'; |
|
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | protected function _recaptcha_width_stop() |
| 126 | 126 | { |
| 127 | - return '<p>' . __('Specify how wide (in pixels) the reCAPTCHA form should be.', 'event_espresso') . '</p>'; |
|
| 127 | + return '<p>'.__('Specify how wide (in pixels) the reCAPTCHA form should be.', 'event_espresso').'</p>'; |
|
| 128 | 128 | } |
| 129 | 129 | } |
@@ -15,135 +15,135 @@ |
||
| 15 | 15 | class Registration_Form_Edit_Question_Help_Tour extends EE_Help_Tour |
| 16 | 16 | { |
| 17 | 17 | |
| 18 | - protected function _set_tour_properties() |
|
| 19 | - { |
|
| 20 | - $this->_label = __('Edit Question Tour', 'event_espresso'); |
|
| 21 | - $this->_slug = $this->_is_caf ? 'edit-question-caf-joyride' : 'edit-question-joyride'; |
|
| 22 | - } |
|
| 18 | + protected function _set_tour_properties() |
|
| 19 | + { |
|
| 20 | + $this->_label = __('Edit Question Tour', 'event_espresso'); |
|
| 21 | + $this->_slug = $this->_is_caf ? 'edit-question-caf-joyride' : 'edit-question-joyride'; |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | - protected function _set_tour_stops() |
|
| 25 | - { |
|
| 26 | - $this->_stops = array( |
|
| 27 | - 10 => array( |
|
| 28 | - 'content' => $this->_start(), |
|
| 29 | - ), |
|
| 30 | - 20 => array( |
|
| 31 | - 'id' => 'QST_display_text', |
|
| 32 | - 'content' => $this->_qst_display_text_stop(), |
|
| 33 | - 'options' => array( |
|
| 34 | - 'tipLocation' => 'top', |
|
| 35 | - 'tipAdjustmentX' => 0, |
|
| 36 | - 'tipAdjustmentY' => -35, |
|
| 37 | - ), |
|
| 38 | - ), |
|
| 39 | - 30 => array( |
|
| 40 | - 'id' => 'QST_admin_label_disabled', |
|
| 41 | - 'content' => $this->_qst_admin_label_stop(), |
|
| 42 | - 'options' => array( |
|
| 43 | - 'tipLocation' => 'top', |
|
| 44 | - 'tipAdjustmentX' => 0, |
|
| 45 | - 'tipAdjustmentY' => -35, |
|
| 46 | - ), |
|
| 47 | - ), |
|
| 48 | - 50 => array( |
|
| 49 | - 'id' => 'QST_admin_only_disabled', |
|
| 50 | - 'content' => $this->_qst_admin_only_stop(), |
|
| 51 | - 'options' => array( |
|
| 52 | - 'tipLocation' => 'top', |
|
| 53 | - 'tipAdjustmentX' => -20, |
|
| 54 | - 'tipAdjustmentY' => -35, |
|
| 55 | - ), |
|
| 56 | - ), |
|
| 57 | - 60 => array( |
|
| 58 | - 'id' => 'QST_type_disabled', |
|
| 59 | - 'content' => $this->_qst_type_stop(), |
|
| 60 | - 'options' => array( |
|
| 61 | - 'tipLocation' => 'top', |
|
| 62 | - 'tipAdjustmentX' => 0, |
|
| 63 | - 'tipAdjustmentY' => -35, |
|
| 64 | - ), |
|
| 65 | - ), |
|
| 66 | - 70 => array( |
|
| 67 | - 'id' => 'QST_required', |
|
| 68 | - 'content' => $this->_qst_required_stop(), |
|
| 69 | - 'options' => array( |
|
| 70 | - 'tipLocation' => 'top', |
|
| 71 | - 'tipAdjustmentX' => 0, |
|
| 72 | - 'tipAdjustmentY' => -35, |
|
| 73 | - ), |
|
| 74 | - ), |
|
| 75 | - 80 => array( |
|
| 76 | - 'id' => 'QST_required_text', |
|
| 77 | - 'content' => $this->_qst_required_text_stop(), |
|
| 78 | - 'options' => array( |
|
| 79 | - 'tipLocation' => 'top', |
|
| 80 | - 'tipAdjustmentX' => 0, |
|
| 81 | - 'tipAdjustmentY' => -35, |
|
| 82 | - ), |
|
| 83 | - ), |
|
| 84 | - ); |
|
| 85 | - } |
|
| 24 | + protected function _set_tour_stops() |
|
| 25 | + { |
|
| 26 | + $this->_stops = array( |
|
| 27 | + 10 => array( |
|
| 28 | + 'content' => $this->_start(), |
|
| 29 | + ), |
|
| 30 | + 20 => array( |
|
| 31 | + 'id' => 'QST_display_text', |
|
| 32 | + 'content' => $this->_qst_display_text_stop(), |
|
| 33 | + 'options' => array( |
|
| 34 | + 'tipLocation' => 'top', |
|
| 35 | + 'tipAdjustmentX' => 0, |
|
| 36 | + 'tipAdjustmentY' => -35, |
|
| 37 | + ), |
|
| 38 | + ), |
|
| 39 | + 30 => array( |
|
| 40 | + 'id' => 'QST_admin_label_disabled', |
|
| 41 | + 'content' => $this->_qst_admin_label_stop(), |
|
| 42 | + 'options' => array( |
|
| 43 | + 'tipLocation' => 'top', |
|
| 44 | + 'tipAdjustmentX' => 0, |
|
| 45 | + 'tipAdjustmentY' => -35, |
|
| 46 | + ), |
|
| 47 | + ), |
|
| 48 | + 50 => array( |
|
| 49 | + 'id' => 'QST_admin_only_disabled', |
|
| 50 | + 'content' => $this->_qst_admin_only_stop(), |
|
| 51 | + 'options' => array( |
|
| 52 | + 'tipLocation' => 'top', |
|
| 53 | + 'tipAdjustmentX' => -20, |
|
| 54 | + 'tipAdjustmentY' => -35, |
|
| 55 | + ), |
|
| 56 | + ), |
|
| 57 | + 60 => array( |
|
| 58 | + 'id' => 'QST_type_disabled', |
|
| 59 | + 'content' => $this->_qst_type_stop(), |
|
| 60 | + 'options' => array( |
|
| 61 | + 'tipLocation' => 'top', |
|
| 62 | + 'tipAdjustmentX' => 0, |
|
| 63 | + 'tipAdjustmentY' => -35, |
|
| 64 | + ), |
|
| 65 | + ), |
|
| 66 | + 70 => array( |
|
| 67 | + 'id' => 'QST_required', |
|
| 68 | + 'content' => $this->_qst_required_stop(), |
|
| 69 | + 'options' => array( |
|
| 70 | + 'tipLocation' => 'top', |
|
| 71 | + 'tipAdjustmentX' => 0, |
|
| 72 | + 'tipAdjustmentY' => -35, |
|
| 73 | + ), |
|
| 74 | + ), |
|
| 75 | + 80 => array( |
|
| 76 | + 'id' => 'QST_required_text', |
|
| 77 | + 'content' => $this->_qst_required_text_stop(), |
|
| 78 | + 'options' => array( |
|
| 79 | + 'tipLocation' => 'top', |
|
| 80 | + 'tipAdjustmentX' => 0, |
|
| 81 | + 'tipAdjustmentY' => -35, |
|
| 82 | + ), |
|
| 83 | + ), |
|
| 84 | + ); |
|
| 85 | + } |
|
| 86 | 86 | |
| 87 | 87 | |
| 88 | - protected function _start() |
|
| 89 | - { |
|
| 90 | - $content = '<h3>' . __('Edit Question', 'event_espresso') . '</h3>'; |
|
| 91 | - $content .= '<p>' |
|
| 92 | - . __( |
|
| 93 | - 'This tour of the Edit Question page will go over different areas of the screen to help you understand what they are used for.', |
|
| 94 | - 'event_espresso' |
|
| 95 | - ) . '</p>'; |
|
| 88 | + protected function _start() |
|
| 89 | + { |
|
| 90 | + $content = '<h3>' . __('Edit Question', 'event_espresso') . '</h3>'; |
|
| 91 | + $content .= '<p>' |
|
| 92 | + . __( |
|
| 93 | + 'This tour of the Edit Question page will go over different areas of the screen to help you understand what they are used for.', |
|
| 94 | + 'event_espresso' |
|
| 95 | + ) . '</p>'; |
|
| 96 | 96 | |
| 97 | - return $content; |
|
| 98 | - } |
|
| 97 | + return $content; |
|
| 98 | + } |
|
| 99 | 99 | |
| 100 | - protected function _qst_display_text_stop() |
|
| 101 | - { |
|
| 102 | - return '<p>' |
|
| 103 | - . __( |
|
| 104 | - 'This is the question that is displayed to registrants who are signing up for events.', |
|
| 105 | - 'event_espresso' |
|
| 106 | - ) . '</p>'; |
|
| 107 | - } |
|
| 100 | + protected function _qst_display_text_stop() |
|
| 101 | + { |
|
| 102 | + return '<p>' |
|
| 103 | + . __( |
|
| 104 | + 'This is the question that is displayed to registrants who are signing up for events.', |
|
| 105 | + 'event_espresso' |
|
| 106 | + ) . '</p>'; |
|
| 107 | + } |
|
| 108 | 108 | |
| 109 | - protected function _qst_admin_label_stop() |
|
| 110 | - { |
|
| 111 | - return '<p>' |
|
| 112 | - . __( |
|
| 113 | - 'Helps you understand the difference between questions that may appear similar but are actually different.', |
|
| 114 | - 'event_espresso' |
|
| 115 | - ) . '</p>'; |
|
| 116 | - } |
|
| 109 | + protected function _qst_admin_label_stop() |
|
| 110 | + { |
|
| 111 | + return '<p>' |
|
| 112 | + . __( |
|
| 113 | + 'Helps you understand the difference between questions that may appear similar but are actually different.', |
|
| 114 | + 'event_espresso' |
|
| 115 | + ) . '</p>'; |
|
| 116 | + } |
|
| 117 | 117 | |
| 118 | - protected function _qst_admin_only_stop() |
|
| 119 | - { |
|
| 120 | - return '<p>' |
|
| 121 | - . __( |
|
| 122 | - 'Specify whether this question should be shown only to the admins.', |
|
| 123 | - 'event_espresso' |
|
| 124 | - ) . '</p>'; |
|
| 125 | - } |
|
| 118 | + protected function _qst_admin_only_stop() |
|
| 119 | + { |
|
| 120 | + return '<p>' |
|
| 121 | + . __( |
|
| 122 | + 'Specify whether this question should be shown only to the admins.', |
|
| 123 | + 'event_espresso' |
|
| 124 | + ) . '</p>'; |
|
| 125 | + } |
|
| 126 | 126 | |
| 127 | - protected function _qst_type_stop() |
|
| 128 | - { |
|
| 129 | - return '<p>' |
|
| 130 | - . __( |
|
| 131 | - 'Select the type of question. Available options are text, textarea, single, multiple, dropdown, and date.', |
|
| 132 | - 'event_espresso' |
|
| 133 | - ) . '</p>'; |
|
| 134 | - } |
|
| 127 | + protected function _qst_type_stop() |
|
| 128 | + { |
|
| 129 | + return '<p>' |
|
| 130 | + . __( |
|
| 131 | + 'Select the type of question. Available options are text, textarea, single, multiple, dropdown, and date.', |
|
| 132 | + 'event_espresso' |
|
| 133 | + ) . '</p>'; |
|
| 134 | + } |
|
| 135 | 135 | |
| 136 | - protected function _qst_required_stop() |
|
| 137 | - { |
|
| 138 | - return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>'; |
|
| 139 | - } |
|
| 136 | + protected function _qst_required_stop() |
|
| 137 | + { |
|
| 138 | + return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>'; |
|
| 139 | + } |
|
| 140 | 140 | |
| 141 | - protected function _qst_required_text_stop() |
|
| 142 | - { |
|
| 143 | - return '<p>' |
|
| 144 | - . __( |
|
| 145 | - 'Text to display when registrant does not answer question but is required to.', |
|
| 146 | - 'event_espresso' |
|
| 147 | - ) . '</p>'; |
|
| 148 | - } |
|
| 141 | + protected function _qst_required_text_stop() |
|
| 142 | + { |
|
| 143 | + return '<p>' |
|
| 144 | + . __( |
|
| 145 | + 'Text to display when registrant does not answer question but is required to.', |
|
| 146 | + 'event_espresso' |
|
| 147 | + ) . '</p>'; |
|
| 148 | + } |
|
| 149 | 149 | } |
@@ -87,12 +87,12 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | protected function _start() |
| 89 | 89 | { |
| 90 | - $content = '<h3>' . __('Edit Question', 'event_espresso') . '</h3>'; |
|
| 90 | + $content = '<h3>'.__('Edit Question', 'event_espresso').'</h3>'; |
|
| 91 | 91 | $content .= '<p>' |
| 92 | 92 | . __( |
| 93 | 93 | 'This tour of the Edit Question page will go over different areas of the screen to help you understand what they are used for.', |
| 94 | 94 | 'event_espresso' |
| 95 | - ) . '</p>'; |
|
| 95 | + ).'</p>'; |
|
| 96 | 96 | |
| 97 | 97 | return $content; |
| 98 | 98 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | . __( |
| 104 | 104 | 'This is the question that is displayed to registrants who are signing up for events.', |
| 105 | 105 | 'event_espresso' |
| 106 | - ) . '</p>'; |
|
| 106 | + ).'</p>'; |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | protected function _qst_admin_label_stop() |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | . __( |
| 113 | 113 | 'Helps you understand the difference between questions that may appear similar but are actually different.', |
| 114 | 114 | 'event_espresso' |
| 115 | - ) . '</p>'; |
|
| 115 | + ).'</p>'; |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | protected function _qst_admin_only_stop() |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | . __( |
| 122 | 122 | 'Specify whether this question should be shown only to the admins.', |
| 123 | 123 | 'event_espresso' |
| 124 | - ) . '</p>'; |
|
| 124 | + ).'</p>'; |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | protected function _qst_type_stop() |
@@ -130,12 +130,12 @@ discard block |
||
| 130 | 130 | . __( |
| 131 | 131 | 'Select the type of question. Available options are text, textarea, single, multiple, dropdown, and date.', |
| 132 | 132 | 'event_espresso' |
| 133 | - ) . '</p>'; |
|
| 133 | + ).'</p>'; |
|
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | protected function _qst_required_stop() |
| 137 | 137 | { |
| 138 | - return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>'; |
|
| 138 | + return '<p>'.__('Specify whether this question should be required.', 'event_espresso').'</p>'; |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | protected function _qst_required_text_stop() |
@@ -144,6 +144,6 @@ discard block |
||
| 144 | 144 | . __( |
| 145 | 145 | 'Text to display when registrant does not answer question but is required to.', |
| 146 | 146 | 'event_espresso' |
| 147 | - ) . '</p>'; |
|
| 147 | + ).'</p>'; |
|
| 148 | 148 | } |
| 149 | 149 | } |
@@ -15,131 +15,131 @@ |
||
| 15 | 15 | class Registration_Form_Add_Question_Help_Tour extends EE_Help_Tour |
| 16 | 16 | { |
| 17 | 17 | |
| 18 | - protected function _set_tour_properties() |
|
| 19 | - { |
|
| 20 | - $this->_label = __('Add New Question Tour', 'event_espresso'); |
|
| 21 | - $this->_slug = $this->_is_caf ? 'add-question-caf-joyride' : 'add-question-joyride'; |
|
| 22 | - } |
|
| 18 | + protected function _set_tour_properties() |
|
| 19 | + { |
|
| 20 | + $this->_label = __('Add New Question Tour', 'event_espresso'); |
|
| 21 | + $this->_slug = $this->_is_caf ? 'add-question-caf-joyride' : 'add-question-joyride'; |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | - protected function _set_tour_stops() |
|
| 25 | - { |
|
| 26 | - $this->_stops = array( |
|
| 27 | - 10 => array( |
|
| 28 | - 'content' => $this->_start(), |
|
| 29 | - ), |
|
| 30 | - 20 => array( |
|
| 31 | - 'id' => 'QST_display_text', |
|
| 32 | - 'content' => $this->_qst_display_text_stop(), |
|
| 33 | - 'options' => array( |
|
| 34 | - 'tipLocation' => 'top', |
|
| 35 | - 'tipAdjustmentX' => 0, |
|
| 36 | - 'tipAdjustmentY' => -35, |
|
| 37 | - ), |
|
| 38 | - ), |
|
| 39 | - 30 => array( |
|
| 40 | - 'id' => 'QST_admin_label', |
|
| 41 | - 'content' => $this->_qst_admin_label_stop(), |
|
| 42 | - 'options' => array( |
|
| 43 | - 'tipLocation' => 'top', |
|
| 44 | - 'tipAdjustmentX' => 0, |
|
| 45 | - 'tipAdjustmentY' => -35, |
|
| 46 | - ), |
|
| 47 | - ), |
|
| 48 | - 50 => array( |
|
| 49 | - 'id' => 'QST_admin_only', |
|
| 50 | - 'content' => $this->_qst_admin_only_stop(), |
|
| 51 | - 'options' => array( |
|
| 52 | - 'tipLocation' => 'top', |
|
| 53 | - 'tipAdjustmentX' => -20, |
|
| 54 | - 'tipAdjustmentY' => -35, |
|
| 55 | - ), |
|
| 56 | - ), |
|
| 57 | - 60 => array( |
|
| 58 | - 'id' => 'QST_type', |
|
| 59 | - 'content' => $this->_qst_type_stop(), |
|
| 60 | - 'options' => array( |
|
| 61 | - 'tipLocation' => 'top', |
|
| 62 | - 'tipAdjustmentX' => 0, |
|
| 63 | - 'tipAdjustmentY' => -35, |
|
| 64 | - ), |
|
| 65 | - ), |
|
| 66 | - 70 => array( |
|
| 67 | - 'id' => 'QST_required', |
|
| 68 | - 'content' => $this->_qst_required_stop(), |
|
| 69 | - 'options' => array( |
|
| 70 | - 'tipLocation' => 'top', |
|
| 71 | - 'tipAdjustmentX' => 0, |
|
| 72 | - 'tipAdjustmentY' => -35, |
|
| 73 | - ), |
|
| 74 | - ), |
|
| 75 | - 80 => array( |
|
| 76 | - 'id' => 'QST_required_text', |
|
| 77 | - 'content' => $this->_qst_required_text_stop(), |
|
| 78 | - 'options' => array( |
|
| 79 | - 'tipLocation' => 'top', |
|
| 80 | - 'tipAdjustmentX' => 0, |
|
| 81 | - 'tipAdjustmentY' => -35, |
|
| 82 | - ), |
|
| 83 | - ), |
|
| 84 | - ); |
|
| 85 | - } |
|
| 24 | + protected function _set_tour_stops() |
|
| 25 | + { |
|
| 26 | + $this->_stops = array( |
|
| 27 | + 10 => array( |
|
| 28 | + 'content' => $this->_start(), |
|
| 29 | + ), |
|
| 30 | + 20 => array( |
|
| 31 | + 'id' => 'QST_display_text', |
|
| 32 | + 'content' => $this->_qst_display_text_stop(), |
|
| 33 | + 'options' => array( |
|
| 34 | + 'tipLocation' => 'top', |
|
| 35 | + 'tipAdjustmentX' => 0, |
|
| 36 | + 'tipAdjustmentY' => -35, |
|
| 37 | + ), |
|
| 38 | + ), |
|
| 39 | + 30 => array( |
|
| 40 | + 'id' => 'QST_admin_label', |
|
| 41 | + 'content' => $this->_qst_admin_label_stop(), |
|
| 42 | + 'options' => array( |
|
| 43 | + 'tipLocation' => 'top', |
|
| 44 | + 'tipAdjustmentX' => 0, |
|
| 45 | + 'tipAdjustmentY' => -35, |
|
| 46 | + ), |
|
| 47 | + ), |
|
| 48 | + 50 => array( |
|
| 49 | + 'id' => 'QST_admin_only', |
|
| 50 | + 'content' => $this->_qst_admin_only_stop(), |
|
| 51 | + 'options' => array( |
|
| 52 | + 'tipLocation' => 'top', |
|
| 53 | + 'tipAdjustmentX' => -20, |
|
| 54 | + 'tipAdjustmentY' => -35, |
|
| 55 | + ), |
|
| 56 | + ), |
|
| 57 | + 60 => array( |
|
| 58 | + 'id' => 'QST_type', |
|
| 59 | + 'content' => $this->_qst_type_stop(), |
|
| 60 | + 'options' => array( |
|
| 61 | + 'tipLocation' => 'top', |
|
| 62 | + 'tipAdjustmentX' => 0, |
|
| 63 | + 'tipAdjustmentY' => -35, |
|
| 64 | + ), |
|
| 65 | + ), |
|
| 66 | + 70 => array( |
|
| 67 | + 'id' => 'QST_required', |
|
| 68 | + 'content' => $this->_qst_required_stop(), |
|
| 69 | + 'options' => array( |
|
| 70 | + 'tipLocation' => 'top', |
|
| 71 | + 'tipAdjustmentX' => 0, |
|
| 72 | + 'tipAdjustmentY' => -35, |
|
| 73 | + ), |
|
| 74 | + ), |
|
| 75 | + 80 => array( |
|
| 76 | + 'id' => 'QST_required_text', |
|
| 77 | + 'content' => $this->_qst_required_text_stop(), |
|
| 78 | + 'options' => array( |
|
| 79 | + 'tipLocation' => 'top', |
|
| 80 | + 'tipAdjustmentX' => 0, |
|
| 81 | + 'tipAdjustmentY' => -35, |
|
| 82 | + ), |
|
| 83 | + ), |
|
| 84 | + ); |
|
| 85 | + } |
|
| 86 | 86 | |
| 87 | 87 | |
| 88 | - protected function _start() |
|
| 89 | - { |
|
| 90 | - $content = '<h3>' . __('Add New Question', 'event_espresso') . '</h3>'; |
|
| 91 | - $content .= '<p>' |
|
| 92 | - . __( |
|
| 93 | - '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.', |
|
| 94 | - 'event_espresso' |
|
| 95 | - ) . '</p>'; |
|
| 88 | + protected function _start() |
|
| 89 | + { |
|
| 90 | + $content = '<h3>' . __('Add New Question', 'event_espresso') . '</h3>'; |
|
| 91 | + $content .= '<p>' |
|
| 92 | + . __( |
|
| 93 | + '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.', |
|
| 94 | + 'event_espresso' |
|
| 95 | + ) . '</p>'; |
|
| 96 | 96 | |
| 97 | - return $content; |
|
| 98 | - } |
|
| 97 | + return $content; |
|
| 98 | + } |
|
| 99 | 99 | |
| 100 | - protected function _qst_display_text_stop() |
|
| 101 | - { |
|
| 102 | - return '<p>' |
|
| 103 | - . __( |
|
| 104 | - 'This is the question that is displayed to registrants who are signing up for events.', |
|
| 105 | - 'event_espresso' |
|
| 106 | - ) . '</p>'; |
|
| 107 | - } |
|
| 100 | + protected function _qst_display_text_stop() |
|
| 101 | + { |
|
| 102 | + return '<p>' |
|
| 103 | + . __( |
|
| 104 | + 'This is the question that is displayed to registrants who are signing up for events.', |
|
| 105 | + 'event_espresso' |
|
| 106 | + ) . '</p>'; |
|
| 107 | + } |
|
| 108 | 108 | |
| 109 | - protected function _qst_admin_label_stop() |
|
| 110 | - { |
|
| 111 | - return '<p>' |
|
| 112 | - . __( |
|
| 113 | - 'Helps you understand the difference between questions that may appear similar but are actually different.', |
|
| 114 | - 'event_espresso' |
|
| 115 | - ) . '</p>'; |
|
| 116 | - } |
|
| 109 | + protected function _qst_admin_label_stop() |
|
| 110 | + { |
|
| 111 | + return '<p>' |
|
| 112 | + . __( |
|
| 113 | + 'Helps you understand the difference between questions that may appear similar but are actually different.', |
|
| 114 | + 'event_espresso' |
|
| 115 | + ) . '</p>'; |
|
| 116 | + } |
|
| 117 | 117 | |
| 118 | - protected function _qst_admin_only_stop() |
|
| 119 | - { |
|
| 120 | - return '<p>' . __('Specify whether this question should be shown only to admins.', 'event_espresso') . '</p>'; |
|
| 121 | - } |
|
| 118 | + protected function _qst_admin_only_stop() |
|
| 119 | + { |
|
| 120 | + return '<p>' . __('Specify whether this question should be shown only to admins.', 'event_espresso') . '</p>'; |
|
| 121 | + } |
|
| 122 | 122 | |
| 123 | - protected function _qst_type_stop() |
|
| 124 | - { |
|
| 125 | - return '<p>' |
|
| 126 | - . __( |
|
| 127 | - 'Select the type of question. Available options are Text, Textarea, Single, Multiple, Dropdown, and Date.', |
|
| 128 | - 'event_espresso' |
|
| 129 | - ) . '</p>'; |
|
| 130 | - } |
|
| 123 | + protected function _qst_type_stop() |
|
| 124 | + { |
|
| 125 | + return '<p>' |
|
| 126 | + . __( |
|
| 127 | + 'Select the type of question. Available options are Text, Textarea, Single, Multiple, Dropdown, and Date.', |
|
| 128 | + 'event_espresso' |
|
| 129 | + ) . '</p>'; |
|
| 130 | + } |
|
| 131 | 131 | |
| 132 | - protected function _qst_required_stop() |
|
| 133 | - { |
|
| 134 | - return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>'; |
|
| 135 | - } |
|
| 132 | + protected function _qst_required_stop() |
|
| 133 | + { |
|
| 134 | + return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>'; |
|
| 135 | + } |
|
| 136 | 136 | |
| 137 | - protected function _qst_required_text_stop() |
|
| 138 | - { |
|
| 139 | - return '<p>' |
|
| 140 | - . __( |
|
| 141 | - 'Text to display when registrant does not answer question but is required to.', |
|
| 142 | - 'event_espresso' |
|
| 143 | - ) . '</p>'; |
|
| 144 | - } |
|
| 137 | + protected function _qst_required_text_stop() |
|
| 138 | + { |
|
| 139 | + return '<p>' |
|
| 140 | + . __( |
|
| 141 | + 'Text to display when registrant does not answer question but is required to.', |
|
| 142 | + 'event_espresso' |
|
| 143 | + ) . '</p>'; |
|
| 144 | + } |
|
| 145 | 145 | } |
@@ -87,12 +87,12 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | protected function _start() |
| 89 | 89 | { |
| 90 | - $content = '<h3>' . __('Add New Question', 'event_espresso') . '</h3>'; |
|
| 90 | + $content = '<h3>'.__('Add New Question', 'event_espresso').'</h3>'; |
|
| 91 | 91 | $content .= '<p>' |
| 92 | 92 | . __( |
| 93 | 93 | '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.', |
| 94 | 94 | 'event_espresso' |
| 95 | - ) . '</p>'; |
|
| 95 | + ).'</p>'; |
|
| 96 | 96 | |
| 97 | 97 | return $content; |
| 98 | 98 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | . __( |
| 104 | 104 | 'This is the question that is displayed to registrants who are signing up for events.', |
| 105 | 105 | 'event_espresso' |
| 106 | - ) . '</p>'; |
|
| 106 | + ).'</p>'; |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | protected function _qst_admin_label_stop() |
@@ -112,12 +112,12 @@ discard block |
||
| 112 | 112 | . __( |
| 113 | 113 | 'Helps you understand the difference between questions that may appear similar but are actually different.', |
| 114 | 114 | 'event_espresso' |
| 115 | - ) . '</p>'; |
|
| 115 | + ).'</p>'; |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | protected function _qst_admin_only_stop() |
| 119 | 119 | { |
| 120 | - return '<p>' . __('Specify whether this question should be shown only to admins.', 'event_espresso') . '</p>'; |
|
| 120 | + return '<p>'.__('Specify whether this question should be shown only to admins.', 'event_espresso').'</p>'; |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | protected function _qst_type_stop() |
@@ -126,12 +126,12 @@ discard block |
||
| 126 | 126 | . __( |
| 127 | 127 | 'Select the type of question. Available options are Text, Textarea, Single, Multiple, Dropdown, and Date.', |
| 128 | 128 | 'event_espresso' |
| 129 | - ) . '</p>'; |
|
| 129 | + ).'</p>'; |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | protected function _qst_required_stop() |
| 133 | 133 | { |
| 134 | - return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>'; |
|
| 134 | + return '<p>'.__('Specify whether this question should be required.', 'event_espresso').'</p>'; |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | protected function _qst_required_text_stop() |
@@ -140,6 +140,6 @@ discard block |
||
| 140 | 140 | . __( |
| 141 | 141 | 'Text to display when registrant does not answer question but is required to.', |
| 142 | 142 | 'event_espresso' |
| 143 | - ) . '</p>'; |
|
| 143 | + ).'</p>'; |
|
| 144 | 144 | } |
| 145 | 145 | } |
@@ -15,123 +15,123 @@ |
||
| 15 | 15 | class Registration_Form_Add_Question_Group_Help_Tour extends EE_Help_Tour |
| 16 | 16 | { |
| 17 | 17 | |
| 18 | - protected function _set_tour_properties() |
|
| 19 | - { |
|
| 20 | - $this->_label = __('Add New Question Group Tour', 'event_espresso'); |
|
| 21 | - $this->_slug = $this->_is_caf ? 'add-question-group-caf-joyride' : 'add-question-group-joyride'; |
|
| 22 | - } |
|
| 18 | + protected function _set_tour_properties() |
|
| 19 | + { |
|
| 20 | + $this->_label = __('Add New Question Group Tour', 'event_espresso'); |
|
| 21 | + $this->_slug = $this->_is_caf ? 'add-question-group-caf-joyride' : 'add-question-group-joyride'; |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | - protected function _set_tour_stops() |
|
| 25 | - { |
|
| 26 | - $this->_stops = array( |
|
| 27 | - 10 => array( |
|
| 28 | - 'content' => $this->_start(), |
|
| 29 | - ), |
|
| 30 | - 20 => array( |
|
| 31 | - 'id' => 'QSG_name', |
|
| 32 | - 'content' => $this->_qsg_name_stop(), |
|
| 33 | - 'options' => array( |
|
| 34 | - 'tipLocation' => 'top', |
|
| 35 | - 'tipAdjustmentX' => 0, |
|
| 36 | - 'tipAdjustmentY' => -35, |
|
| 37 | - ), |
|
| 38 | - ), |
|
| 39 | - 30 => array( |
|
| 40 | - 'id' => 'QSG_identifier', |
|
| 41 | - 'content' => $this->_qsg_identifier_stop(), |
|
| 42 | - 'options' => array( |
|
| 43 | - 'tipLocation' => 'top', |
|
| 44 | - 'tipAdjustmentX' => 0, |
|
| 45 | - 'tipAdjustmentY' => -35, |
|
| 46 | - ), |
|
| 47 | - ), |
|
| 48 | - 40 => array( |
|
| 49 | - 'id' => 'QSG_desc', |
|
| 50 | - 'content' => $this->_qsg_desc_stop(), |
|
| 51 | - 'options' => array( |
|
| 52 | - 'tipLocation' => 'top', |
|
| 53 | - 'tipAdjustmentX' => 0, |
|
| 54 | - 'tipAdjustmentY' => -35, |
|
| 55 | - ), |
|
| 56 | - ), |
|
| 57 | - 50 => array( |
|
| 58 | - 'id' => 'QSG_order', |
|
| 59 | - 'content' => $this->_qsg_order_stop(), |
|
| 60 | - 'options' => array( |
|
| 61 | - 'tipLocation' => 'top', |
|
| 62 | - 'tipAdjustmentX' => -20, |
|
| 63 | - 'tipAdjustmentY' => -35, |
|
| 64 | - ), |
|
| 65 | - ), |
|
| 66 | - 60 => array( |
|
| 67 | - 'id' => 'QSG_show_group_name', |
|
| 68 | - 'content' => $this->_qsg_show_group_name_stop(), |
|
| 69 | - 'options' => array( |
|
| 70 | - 'tipLocation' => 'top', |
|
| 71 | - 'tipAdjustmentX' => 0, |
|
| 72 | - 'tipAdjustmentY' => -35, |
|
| 73 | - ), |
|
| 74 | - ), |
|
| 75 | - 70 => array( |
|
| 76 | - 'id' => 'QSG_show_group_desc', |
|
| 77 | - 'content' => $this->_qsg_show_group_desc_stop(), |
|
| 78 | - 'options' => array( |
|
| 79 | - 'tipLocation' => 'top', |
|
| 80 | - 'tipAdjustmentX' => 0, |
|
| 81 | - 'tipAdjustmentY' => -35, |
|
| 82 | - ), |
|
| 83 | - ), |
|
| 84 | - ); |
|
| 85 | - } |
|
| 24 | + protected function _set_tour_stops() |
|
| 25 | + { |
|
| 26 | + $this->_stops = array( |
|
| 27 | + 10 => array( |
|
| 28 | + 'content' => $this->_start(), |
|
| 29 | + ), |
|
| 30 | + 20 => array( |
|
| 31 | + 'id' => 'QSG_name', |
|
| 32 | + 'content' => $this->_qsg_name_stop(), |
|
| 33 | + 'options' => array( |
|
| 34 | + 'tipLocation' => 'top', |
|
| 35 | + 'tipAdjustmentX' => 0, |
|
| 36 | + 'tipAdjustmentY' => -35, |
|
| 37 | + ), |
|
| 38 | + ), |
|
| 39 | + 30 => array( |
|
| 40 | + 'id' => 'QSG_identifier', |
|
| 41 | + 'content' => $this->_qsg_identifier_stop(), |
|
| 42 | + 'options' => array( |
|
| 43 | + 'tipLocation' => 'top', |
|
| 44 | + 'tipAdjustmentX' => 0, |
|
| 45 | + 'tipAdjustmentY' => -35, |
|
| 46 | + ), |
|
| 47 | + ), |
|
| 48 | + 40 => array( |
|
| 49 | + 'id' => 'QSG_desc', |
|
| 50 | + 'content' => $this->_qsg_desc_stop(), |
|
| 51 | + 'options' => array( |
|
| 52 | + 'tipLocation' => 'top', |
|
| 53 | + 'tipAdjustmentX' => 0, |
|
| 54 | + 'tipAdjustmentY' => -35, |
|
| 55 | + ), |
|
| 56 | + ), |
|
| 57 | + 50 => array( |
|
| 58 | + 'id' => 'QSG_order', |
|
| 59 | + 'content' => $this->_qsg_order_stop(), |
|
| 60 | + 'options' => array( |
|
| 61 | + 'tipLocation' => 'top', |
|
| 62 | + 'tipAdjustmentX' => -20, |
|
| 63 | + 'tipAdjustmentY' => -35, |
|
| 64 | + ), |
|
| 65 | + ), |
|
| 66 | + 60 => array( |
|
| 67 | + 'id' => 'QSG_show_group_name', |
|
| 68 | + 'content' => $this->_qsg_show_group_name_stop(), |
|
| 69 | + 'options' => array( |
|
| 70 | + 'tipLocation' => 'top', |
|
| 71 | + 'tipAdjustmentX' => 0, |
|
| 72 | + 'tipAdjustmentY' => -35, |
|
| 73 | + ), |
|
| 74 | + ), |
|
| 75 | + 70 => array( |
|
| 76 | + 'id' => 'QSG_show_group_desc', |
|
| 77 | + 'content' => $this->_qsg_show_group_desc_stop(), |
|
| 78 | + 'options' => array( |
|
| 79 | + 'tipLocation' => 'top', |
|
| 80 | + 'tipAdjustmentX' => 0, |
|
| 81 | + 'tipAdjustmentY' => -35, |
|
| 82 | + ), |
|
| 83 | + ), |
|
| 84 | + ); |
|
| 85 | + } |
|
| 86 | 86 | |
| 87 | 87 | |
| 88 | - protected function _start() |
|
| 89 | - { |
|
| 90 | - $content = '<h3>' . __('Add Question Group', 'event_espresso') . '</h3>'; |
|
| 91 | - $content .= '<p>' |
|
| 92 | - . __( |
|
| 93 | - '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.', |
|
| 94 | - 'event_espresso' |
|
| 95 | - ) . '</p>'; |
|
| 88 | + protected function _start() |
|
| 89 | + { |
|
| 90 | + $content = '<h3>' . __('Add Question Group', 'event_espresso') . '</h3>'; |
|
| 91 | + $content .= '<p>' |
|
| 92 | + . __( |
|
| 93 | + '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.', |
|
| 94 | + 'event_espresso' |
|
| 95 | + ) . '</p>'; |
|
| 96 | 96 | |
| 97 | - return $content; |
|
| 98 | - } |
|
| 97 | + return $content; |
|
| 98 | + } |
|
| 99 | 99 | |
| 100 | - protected function _qsg_name_stop() |
|
| 101 | - { |
|
| 102 | - return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>'; |
|
| 103 | - } |
|
| 100 | + protected function _qsg_name_stop() |
|
| 101 | + { |
|
| 102 | + return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>'; |
|
| 103 | + } |
|
| 104 | 104 | |
| 105 | - protected function _qsg_identifier_stop() |
|
| 106 | - { |
|
| 107 | - return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>'; |
|
| 108 | - } |
|
| 105 | + protected function _qsg_identifier_stop() |
|
| 106 | + { |
|
| 107 | + return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>'; |
|
| 108 | + } |
|
| 109 | 109 | |
| 110 | - protected function _qsg_desc_stop() |
|
| 111 | - { |
|
| 112 | - return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>'; |
|
| 113 | - } |
|
| 110 | + protected function _qsg_desc_stop() |
|
| 111 | + { |
|
| 112 | + return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>'; |
|
| 113 | + } |
|
| 114 | 114 | |
| 115 | - protected function _qsg_order_stop() |
|
| 116 | - { |
|
| 117 | - return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>'; |
|
| 118 | - } |
|
| 115 | + protected function _qsg_order_stop() |
|
| 116 | + { |
|
| 117 | + return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>'; |
|
| 118 | + } |
|
| 119 | 119 | |
| 120 | - protected function _qsg_show_group_name_stop() |
|
| 121 | - { |
|
| 122 | - return '<p>' |
|
| 123 | - . __( |
|
| 124 | - 'Specify whether the group name should be shown on the registration page.', |
|
| 125 | - 'event_espresso' |
|
| 126 | - ) . '</p>'; |
|
| 127 | - } |
|
| 120 | + protected function _qsg_show_group_name_stop() |
|
| 121 | + { |
|
| 122 | + return '<p>' |
|
| 123 | + . __( |
|
| 124 | + 'Specify whether the group name should be shown on the registration page.', |
|
| 125 | + 'event_espresso' |
|
| 126 | + ) . '</p>'; |
|
| 127 | + } |
|
| 128 | 128 | |
| 129 | - protected function _qsg_show_group_desc_stop() |
|
| 130 | - { |
|
| 131 | - return '<p>' |
|
| 132 | - . __( |
|
| 133 | - 'Specify whether the group description should be shown on the registration page.', |
|
| 134 | - 'event_espresso' |
|
| 135 | - ) . '</p>'; |
|
| 136 | - } |
|
| 129 | + protected function _qsg_show_group_desc_stop() |
|
| 130 | + { |
|
| 131 | + return '<p>' |
|
| 132 | + . __( |
|
| 133 | + 'Specify whether the group description should be shown on the registration page.', |
|
| 134 | + 'event_espresso' |
|
| 135 | + ) . '</p>'; |
|
| 136 | + } |
|
| 137 | 137 | } |
@@ -87,34 +87,34 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | protected function _start() |
| 89 | 89 | { |
| 90 | - $content = '<h3>' . __('Add Question Group', 'event_espresso') . '</h3>'; |
|
| 90 | + $content = '<h3>'.__('Add Question Group', 'event_espresso').'</h3>'; |
|
| 91 | 91 | $content .= '<p>' |
| 92 | 92 | . __( |
| 93 | 93 | '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.', |
| 94 | 94 | 'event_espresso' |
| 95 | - ) . '</p>'; |
|
| 95 | + ).'</p>'; |
|
| 96 | 96 | |
| 97 | 97 | return $content; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | protected function _qsg_name_stop() |
| 101 | 101 | { |
| 102 | - return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>'; |
|
| 102 | + return '<p>'.__('The name of the question group.', 'event_espresso').'</p>'; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | protected function _qsg_identifier_stop() |
| 106 | 106 | { |
| 107 | - return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>'; |
|
| 107 | + return '<p>'.__('A unique name for your question group.', 'event_espresso').'</p>'; |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | protected function _qsg_desc_stop() |
| 111 | 111 | { |
| 112 | - return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>'; |
|
| 112 | + return '<p>'.__('A description of the question group.', 'event_espresso').'</p>'; |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | protected function _qsg_order_stop() |
| 116 | 116 | { |
| 117 | - return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>'; |
|
| 117 | + return '<p>'.__('Set the order that you want your question group to appear in.', 'event_espresso').'</p>'; |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | protected function _qsg_show_group_name_stop() |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | . __( |
| 124 | 124 | 'Specify whether the group name should be shown on the registration page.', |
| 125 | 125 | 'event_espresso' |
| 126 | - ) . '</p>'; |
|
| 126 | + ).'</p>'; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | protected function _qsg_show_group_desc_stop() |
@@ -132,6 +132,6 @@ discard block |
||
| 132 | 132 | . __( |
| 133 | 133 | 'Specify whether the group description should be shown on the registration page.', |
| 134 | 134 | 'event_espresso' |
| 135 | - ) . '</p>'; |
|
| 135 | + ).'</p>'; |
|
| 136 | 136 | } |
| 137 | 137 | } |
@@ -18,162 +18,162 @@ |
||
| 18 | 18 | { |
| 19 | 19 | |
| 20 | 20 | |
| 21 | - public function __construct($admin_page) |
|
| 22 | - { |
|
| 23 | - parent::__construct($admin_page); |
|
| 24 | - } |
|
| 25 | - |
|
| 26 | - |
|
| 27 | - protected function _setup_data() |
|
| 28 | - { |
|
| 29 | - if (isset($this->_req_data['status']) && $this->_req_data['status'] == 'trash') { |
|
| 30 | - $this->_data = $this->_admin_page->get_trashed_questions($this->_per_page, $this->_current_page, false); |
|
| 31 | - } else { |
|
| 32 | - $this->_data = $this->_admin_page->get_questions($this->_per_page, $this->_current_page, false); |
|
| 33 | - } |
|
| 34 | - $this->_all_data_count = $this->_admin_page->get_questions($this->_per_page, $this->_current_page, true); |
|
| 35 | - } |
|
| 36 | - |
|
| 37 | - |
|
| 38 | - protected function _set_properties() |
|
| 39 | - { |
|
| 40 | - $this->_wp_list_args = array( |
|
| 41 | - 'singular' => __('question', 'event_espresso'), |
|
| 42 | - 'plural' => __('questions', 'event_espresso'), |
|
| 43 | - 'ajax' => true, // for now, |
|
| 44 | - 'screen' => $this->_admin_page->get_current_screen()->id, |
|
| 45 | - ); |
|
| 46 | - |
|
| 47 | - $this->_columns = array( |
|
| 48 | - 'cb' => '<input type="checkbox" />', |
|
| 49 | - 'id' => __('ID', 'event_espresso'), |
|
| 50 | - 'display_text' => __('Question', 'event_espresso'), |
|
| 51 | - 'admin_label' => __('Admin Label', 'event_espresso'), |
|
| 52 | - 'type' => __('Type', 'event_espresso'), |
|
| 53 | - 'values' => __('Values', 'event_espresso'), |
|
| 54 | - 'required' => __('Req', 'event_espresso'), |
|
| 55 | - ); |
|
| 56 | - |
|
| 57 | - $this->_sortable_columns = array( |
|
| 58 | - 'id' => array('QST_ID' => false), |
|
| 59 | - 'display_text' => array('QST_display_text' => false), |
|
| 60 | - ); |
|
| 61 | - |
|
| 62 | - $this->_hidden_columns = array(); |
|
| 63 | - } |
|
| 64 | - |
|
| 65 | - |
|
| 66 | - // not needed |
|
| 67 | - protected function _get_table_filters() |
|
| 68 | - { |
|
| 69 | - return array(); |
|
| 70 | - } |
|
| 71 | - |
|
| 72 | - |
|
| 73 | - protected function _add_view_counts() |
|
| 74 | - { |
|
| 75 | - $this->_views['all']['count'] = $this->_admin_page->get_questions($this->_per_page, $this->_current_page, true); |
|
| 76 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
| 77 | - 'ee_delete_questions', |
|
| 78 | - 'espresso_registration_form_trash_question' |
|
| 79 | - )) { |
|
| 80 | - $this->_views['trash']['count'] = $this->_admin_page->get_trashed_questions(-1, $this->_current_page, true); |
|
| 81 | - } |
|
| 82 | - } |
|
| 83 | - |
|
| 84 | - |
|
| 85 | - public function column_cb($item) |
|
| 86 | - { |
|
| 87 | - $system_question = $item->is_system_question(); |
|
| 88 | - $related_answer_count = $item->count_related('Answer'); |
|
| 89 | - $lock_icon = (! $system_question && $related_answer_count > 0 && $this->_view == 'trash') |
|
| 90 | - ? 'ee-lock-icon ee-alternate-color' : 'ee-lock-icon ee-system-lock'; |
|
| 91 | - return $system_question || (! $system_question && $related_answer_count > 0 && $this->_view == 'trash') |
|
| 92 | - ? '<span class="' . $lock_icon . '"></span>' . sprintf( |
|
| 93 | - '<input type="hidden" name="hdnchk[%1$d]" value="%1$d" />', |
|
| 94 | - $item->ID() |
|
| 95 | - ) : sprintf('<input type="checkbox" class="QST_ID" name="checkbox[%1$d]" value="%1$d" />', $item->ID()); |
|
| 96 | - } |
|
| 97 | - |
|
| 98 | - |
|
| 99 | - public function column_id(EE_Question $item) |
|
| 100 | - { |
|
| 101 | - $content = $item->ID(); |
|
| 102 | - $content .= ' <span class="show-on-mobile-view-only">' . $item->display_text() . '</span>'; |
|
| 103 | - return $content; |
|
| 104 | - } |
|
| 105 | - |
|
| 106 | - |
|
| 107 | - public function column_display_text(EE_Question $item) |
|
| 108 | - { |
|
| 109 | - $system_question = $item->is_system_question(); |
|
| 110 | - |
|
| 111 | - if (! defined('REG_ADMIN_URL')) { |
|
| 112 | - define('REG_ADMIN_URL', EVENTS_ADMIN_URL); |
|
| 113 | - } |
|
| 114 | - |
|
| 115 | - $edit_query_args = array( |
|
| 116 | - 'action' => 'edit_question', |
|
| 117 | - 'QST_ID' => $item->ID(), |
|
| 118 | - ); |
|
| 119 | - |
|
| 120 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
| 121 | - 'ee_edit_question', |
|
| 122 | - 'espresso_registration_form_edit_question', |
|
| 123 | - $item->ID() |
|
| 124 | - )) { |
|
| 125 | - $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL); |
|
| 126 | - |
|
| 127 | - $actions = array( |
|
| 128 | - 'edit' => '<a href="' . $edit_link . '" title="' . esc_attr__( |
|
| 129 | - 'Edit Event', |
|
| 130 | - 'event_espresso' |
|
| 131 | - ) . '">' . __('Edit', 'event_espresso') . '</a>', |
|
| 132 | - ); |
|
| 133 | - } |
|
| 134 | - |
|
| 135 | - |
|
| 136 | - $content = EE_Registry::instance()->CAP->current_user_can( |
|
| 137 | - 'ee_edit_question', |
|
| 138 | - 'espresso_registration_form_edit_question', |
|
| 139 | - $item->ID() |
|
| 140 | - ) ? '<strong><a class="row-title" href="' . $edit_link . '">' . $item->display_text() . '</a></strong>' |
|
| 141 | - : $item->display_text(); |
|
| 142 | - $content .= $this->row_actions($actions); |
|
| 143 | - return $content; |
|
| 144 | - } |
|
| 145 | - |
|
| 146 | - |
|
| 147 | - public function column_admin_label(EE_Question $item) |
|
| 148 | - { |
|
| 149 | - return $item->admin_label(); |
|
| 150 | - } |
|
| 151 | - |
|
| 152 | - |
|
| 153 | - public function column_values(EE_Question $item) |
|
| 154 | - { |
|
| 155 | - $optionNames = array(); |
|
| 156 | - $options = $item->options(); |
|
| 157 | - if (empty($options)) { |
|
| 158 | - return "N/A"; |
|
| 159 | - } else { |
|
| 160 | - foreach ($options as $optionID => $option) { |
|
| 161 | - /* @var $option EE_Question_Option */ |
|
| 162 | - $optionNames[] = $option->value(); |
|
| 163 | - } |
|
| 164 | - return implode(', ', $optionNames); |
|
| 165 | - } |
|
| 166 | - } |
|
| 167 | - |
|
| 168 | - |
|
| 169 | - public function column_type(EE_Question $item) |
|
| 170 | - { |
|
| 171 | - return $item->type(); |
|
| 172 | - } |
|
| 173 | - |
|
| 174 | - |
|
| 175 | - public function column_required(EE_Question $item) |
|
| 176 | - { |
|
| 177 | - return $item->required() ? 'Yes' : ''; |
|
| 178 | - } |
|
| 21 | + public function __construct($admin_page) |
|
| 22 | + { |
|
| 23 | + parent::__construct($admin_page); |
|
| 24 | + } |
|
| 25 | + |
|
| 26 | + |
|
| 27 | + protected function _setup_data() |
|
| 28 | + { |
|
| 29 | + if (isset($this->_req_data['status']) && $this->_req_data['status'] == 'trash') { |
|
| 30 | + $this->_data = $this->_admin_page->get_trashed_questions($this->_per_page, $this->_current_page, false); |
|
| 31 | + } else { |
|
| 32 | + $this->_data = $this->_admin_page->get_questions($this->_per_page, $this->_current_page, false); |
|
| 33 | + } |
|
| 34 | + $this->_all_data_count = $this->_admin_page->get_questions($this->_per_page, $this->_current_page, true); |
|
| 35 | + } |
|
| 36 | + |
|
| 37 | + |
|
| 38 | + protected function _set_properties() |
|
| 39 | + { |
|
| 40 | + $this->_wp_list_args = array( |
|
| 41 | + 'singular' => __('question', 'event_espresso'), |
|
| 42 | + 'plural' => __('questions', 'event_espresso'), |
|
| 43 | + 'ajax' => true, // for now, |
|
| 44 | + 'screen' => $this->_admin_page->get_current_screen()->id, |
|
| 45 | + ); |
|
| 46 | + |
|
| 47 | + $this->_columns = array( |
|
| 48 | + 'cb' => '<input type="checkbox" />', |
|
| 49 | + 'id' => __('ID', 'event_espresso'), |
|
| 50 | + 'display_text' => __('Question', 'event_espresso'), |
|
| 51 | + 'admin_label' => __('Admin Label', 'event_espresso'), |
|
| 52 | + 'type' => __('Type', 'event_espresso'), |
|
| 53 | + 'values' => __('Values', 'event_espresso'), |
|
| 54 | + 'required' => __('Req', 'event_espresso'), |
|
| 55 | + ); |
|
| 56 | + |
|
| 57 | + $this->_sortable_columns = array( |
|
| 58 | + 'id' => array('QST_ID' => false), |
|
| 59 | + 'display_text' => array('QST_display_text' => false), |
|
| 60 | + ); |
|
| 61 | + |
|
| 62 | + $this->_hidden_columns = array(); |
|
| 63 | + } |
|
| 64 | + |
|
| 65 | + |
|
| 66 | + // not needed |
|
| 67 | + protected function _get_table_filters() |
|
| 68 | + { |
|
| 69 | + return array(); |
|
| 70 | + } |
|
| 71 | + |
|
| 72 | + |
|
| 73 | + protected function _add_view_counts() |
|
| 74 | + { |
|
| 75 | + $this->_views['all']['count'] = $this->_admin_page->get_questions($this->_per_page, $this->_current_page, true); |
|
| 76 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
| 77 | + 'ee_delete_questions', |
|
| 78 | + 'espresso_registration_form_trash_question' |
|
| 79 | + )) { |
|
| 80 | + $this->_views['trash']['count'] = $this->_admin_page->get_trashed_questions(-1, $this->_current_page, true); |
|
| 81 | + } |
|
| 82 | + } |
|
| 83 | + |
|
| 84 | + |
|
| 85 | + public function column_cb($item) |
|
| 86 | + { |
|
| 87 | + $system_question = $item->is_system_question(); |
|
| 88 | + $related_answer_count = $item->count_related('Answer'); |
|
| 89 | + $lock_icon = (! $system_question && $related_answer_count > 0 && $this->_view == 'trash') |
|
| 90 | + ? 'ee-lock-icon ee-alternate-color' : 'ee-lock-icon ee-system-lock'; |
|
| 91 | + return $system_question || (! $system_question && $related_answer_count > 0 && $this->_view == 'trash') |
|
| 92 | + ? '<span class="' . $lock_icon . '"></span>' . sprintf( |
|
| 93 | + '<input type="hidden" name="hdnchk[%1$d]" value="%1$d" />', |
|
| 94 | + $item->ID() |
|
| 95 | + ) : sprintf('<input type="checkbox" class="QST_ID" name="checkbox[%1$d]" value="%1$d" />', $item->ID()); |
|
| 96 | + } |
|
| 97 | + |
|
| 98 | + |
|
| 99 | + public function column_id(EE_Question $item) |
|
| 100 | + { |
|
| 101 | + $content = $item->ID(); |
|
| 102 | + $content .= ' <span class="show-on-mobile-view-only">' . $item->display_text() . '</span>'; |
|
| 103 | + return $content; |
|
| 104 | + } |
|
| 105 | + |
|
| 106 | + |
|
| 107 | + public function column_display_text(EE_Question $item) |
|
| 108 | + { |
|
| 109 | + $system_question = $item->is_system_question(); |
|
| 110 | + |
|
| 111 | + if (! defined('REG_ADMIN_URL')) { |
|
| 112 | + define('REG_ADMIN_URL', EVENTS_ADMIN_URL); |
|
| 113 | + } |
|
| 114 | + |
|
| 115 | + $edit_query_args = array( |
|
| 116 | + 'action' => 'edit_question', |
|
| 117 | + 'QST_ID' => $item->ID(), |
|
| 118 | + ); |
|
| 119 | + |
|
| 120 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
| 121 | + 'ee_edit_question', |
|
| 122 | + 'espresso_registration_form_edit_question', |
|
| 123 | + $item->ID() |
|
| 124 | + )) { |
|
| 125 | + $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL); |
|
| 126 | + |
|
| 127 | + $actions = array( |
|
| 128 | + 'edit' => '<a href="' . $edit_link . '" title="' . esc_attr__( |
|
| 129 | + 'Edit Event', |
|
| 130 | + 'event_espresso' |
|
| 131 | + ) . '">' . __('Edit', 'event_espresso') . '</a>', |
|
| 132 | + ); |
|
| 133 | + } |
|
| 134 | + |
|
| 135 | + |
|
| 136 | + $content = EE_Registry::instance()->CAP->current_user_can( |
|
| 137 | + 'ee_edit_question', |
|
| 138 | + 'espresso_registration_form_edit_question', |
|
| 139 | + $item->ID() |
|
| 140 | + ) ? '<strong><a class="row-title" href="' . $edit_link . '">' . $item->display_text() . '</a></strong>' |
|
| 141 | + : $item->display_text(); |
|
| 142 | + $content .= $this->row_actions($actions); |
|
| 143 | + return $content; |
|
| 144 | + } |
|
| 145 | + |
|
| 146 | + |
|
| 147 | + public function column_admin_label(EE_Question $item) |
|
| 148 | + { |
|
| 149 | + return $item->admin_label(); |
|
| 150 | + } |
|
| 151 | + |
|
| 152 | + |
|
| 153 | + public function column_values(EE_Question $item) |
|
| 154 | + { |
|
| 155 | + $optionNames = array(); |
|
| 156 | + $options = $item->options(); |
|
| 157 | + if (empty($options)) { |
|
| 158 | + return "N/A"; |
|
| 159 | + } else { |
|
| 160 | + foreach ($options as $optionID => $option) { |
|
| 161 | + /* @var $option EE_Question_Option */ |
|
| 162 | + $optionNames[] = $option->value(); |
|
| 163 | + } |
|
| 164 | + return implode(', ', $optionNames); |
|
| 165 | + } |
|
| 166 | + } |
|
| 167 | + |
|
| 168 | + |
|
| 169 | + public function column_type(EE_Question $item) |
|
| 170 | + { |
|
| 171 | + return $item->type(); |
|
| 172 | + } |
|
| 173 | + |
|
| 174 | + |
|
| 175 | + public function column_required(EE_Question $item) |
|
| 176 | + { |
|
| 177 | + return $item->required() ? 'Yes' : ''; |
|
| 178 | + } |
|
| 179 | 179 | } |
@@ -86,10 +86,10 @@ discard block |
||
| 86 | 86 | { |
| 87 | 87 | $system_question = $item->is_system_question(); |
| 88 | 88 | $related_answer_count = $item->count_related('Answer'); |
| 89 | - $lock_icon = (! $system_question && $related_answer_count > 0 && $this->_view == 'trash') |
|
| 89 | + $lock_icon = ( ! $system_question && $related_answer_count > 0 && $this->_view == 'trash') |
|
| 90 | 90 | ? 'ee-lock-icon ee-alternate-color' : 'ee-lock-icon ee-system-lock'; |
| 91 | - return $system_question || (! $system_question && $related_answer_count > 0 && $this->_view == 'trash') |
|
| 92 | - ? '<span class="' . $lock_icon . '"></span>' . sprintf( |
|
| 91 | + return $system_question || ( ! $system_question && $related_answer_count > 0 && $this->_view == 'trash') |
|
| 92 | + ? '<span class="'.$lock_icon.'"></span>'.sprintf( |
|
| 93 | 93 | '<input type="hidden" name="hdnchk[%1$d]" value="%1$d" />', |
| 94 | 94 | $item->ID() |
| 95 | 95 | ) : sprintf('<input type="checkbox" class="QST_ID" name="checkbox[%1$d]" value="%1$d" />', $item->ID()); |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | public function column_id(EE_Question $item) |
| 100 | 100 | { |
| 101 | 101 | $content = $item->ID(); |
| 102 | - $content .= ' <span class="show-on-mobile-view-only">' . $item->display_text() . '</span>'; |
|
| 102 | + $content .= ' <span class="show-on-mobile-view-only">'.$item->display_text().'</span>'; |
|
| 103 | 103 | return $content; |
| 104 | 104 | } |
| 105 | 105 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | { |
| 109 | 109 | $system_question = $item->is_system_question(); |
| 110 | 110 | |
| 111 | - if (! defined('REG_ADMIN_URL')) { |
|
| 111 | + if ( ! defined('REG_ADMIN_URL')) { |
|
| 112 | 112 | define('REG_ADMIN_URL', EVENTS_ADMIN_URL); |
| 113 | 113 | } |
| 114 | 114 | |
@@ -125,10 +125,10 @@ discard block |
||
| 125 | 125 | $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL); |
| 126 | 126 | |
| 127 | 127 | $actions = array( |
| 128 | - 'edit' => '<a href="' . $edit_link . '" title="' . esc_attr__( |
|
| 128 | + 'edit' => '<a href="'.$edit_link.'" title="'.esc_attr__( |
|
| 129 | 129 | 'Edit Event', |
| 130 | 130 | 'event_espresso' |
| 131 | - ) . '">' . __('Edit', 'event_espresso') . '</a>', |
|
| 131 | + ).'">'.__('Edit', 'event_espresso').'</a>', |
|
| 132 | 132 | ); |
| 133 | 133 | } |
| 134 | 134 | |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | 'ee_edit_question', |
| 138 | 138 | 'espresso_registration_form_edit_question', |
| 139 | 139 | $item->ID() |
| 140 | - ) ? '<strong><a class="row-title" href="' . $edit_link . '">' . $item->display_text() . '</a></strong>' |
|
| 140 | + ) ? '<strong><a class="row-title" href="'.$edit_link.'">'.$item->display_text().'</a></strong>' |
|
| 141 | 141 | : $item->display_text(); |
| 142 | 142 | $content .= $this->row_actions($actions); |
| 143 | 143 | return $content; |
@@ -15,80 +15,80 @@ |
||
| 15 | 15 | class Countries_Help_Tour extends EE_Help_Tour |
| 16 | 16 | { |
| 17 | 17 | |
| 18 | - protected function _set_tour_properties() |
|
| 19 | - { |
|
| 20 | - $this->_label = __('Countries Tour', 'event_espresso'); |
|
| 21 | - $this->_slug = 'countries-joyride'; |
|
| 22 | - } |
|
| 18 | + protected function _set_tour_properties() |
|
| 19 | + { |
|
| 20 | + $this->_label = __('Countries Tour', 'event_espresso'); |
|
| 21 | + $this->_slug = 'countries-joyride'; |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | - protected function _set_tour_stops() |
|
| 25 | - { |
|
| 26 | - $this->_stops = array( |
|
| 27 | - 10 => array( |
|
| 28 | - 'content' => $this->_start(), |
|
| 29 | - ), |
|
| 30 | - 20 => array( |
|
| 31 | - 'id' => 'country', |
|
| 32 | - 'content' => $this->_country_selector_stop(), |
|
| 33 | - 'options' => array( |
|
| 34 | - 'tipLocation' => 'right', |
|
| 35 | - 'tipAdjustmentY' => -50, |
|
| 36 | - 'tipAdjustmentX' => 15, |
|
| 37 | - ), |
|
| 38 | - ), |
|
| 39 | - 30 => array( |
|
| 40 | - 'id' => 'country-details-dv', |
|
| 41 | - 'content' => $this->_country_details_stop(), |
|
| 42 | - 'options' => array( |
|
| 43 | - 'tipLocation' => 'top', |
|
| 44 | - 'tipAdjustmentY' => -80, |
|
| 45 | - 'tipAdjustmentX' => 0, |
|
| 46 | - ), |
|
| 47 | - ), |
|
| 48 | - 40 => array( |
|
| 49 | - 'id' => 'country-states-settings-dv', |
|
| 50 | - 'content' => $this->_country_states_settings_stop(), |
|
| 51 | - 'options' => array( |
|
| 52 | - 'tipLocation' => 'top', |
|
| 53 | - 'tipAdjustmentY' => -20, |
|
| 54 | - 'tipAdjustmentX' => 50, |
|
| 55 | - ), |
|
| 56 | - ), |
|
| 57 | - ); |
|
| 58 | - } |
|
| 24 | + protected function _set_tour_stops() |
|
| 25 | + { |
|
| 26 | + $this->_stops = array( |
|
| 27 | + 10 => array( |
|
| 28 | + 'content' => $this->_start(), |
|
| 29 | + ), |
|
| 30 | + 20 => array( |
|
| 31 | + 'id' => 'country', |
|
| 32 | + 'content' => $this->_country_selector_stop(), |
|
| 33 | + 'options' => array( |
|
| 34 | + 'tipLocation' => 'right', |
|
| 35 | + 'tipAdjustmentY' => -50, |
|
| 36 | + 'tipAdjustmentX' => 15, |
|
| 37 | + ), |
|
| 38 | + ), |
|
| 39 | + 30 => array( |
|
| 40 | + 'id' => 'country-details-dv', |
|
| 41 | + 'content' => $this->_country_details_stop(), |
|
| 42 | + 'options' => array( |
|
| 43 | + 'tipLocation' => 'top', |
|
| 44 | + 'tipAdjustmentY' => -80, |
|
| 45 | + 'tipAdjustmentX' => 0, |
|
| 46 | + ), |
|
| 47 | + ), |
|
| 48 | + 40 => array( |
|
| 49 | + 'id' => 'country-states-settings-dv', |
|
| 50 | + 'content' => $this->_country_states_settings_stop(), |
|
| 51 | + 'options' => array( |
|
| 52 | + 'tipLocation' => 'top', |
|
| 53 | + 'tipAdjustmentY' => -20, |
|
| 54 | + 'tipAdjustmentX' => 50, |
|
| 55 | + ), |
|
| 56 | + ), |
|
| 57 | + ); |
|
| 58 | + } |
|
| 59 | 59 | |
| 60 | 60 | |
| 61 | - protected function _start() |
|
| 62 | - { |
|
| 63 | - $content = '<h3>' . __('Countries Settings', 'event_espresso') . '</h3>'; |
|
| 64 | - $content .= '<p>' |
|
| 65 | - . __( |
|
| 66 | - 'This tour of the Countries Page will go over different areas of the screen to help you understand what they are used for.', |
|
| 67 | - 'event_espresso' |
|
| 68 | - ) . '</p>'; |
|
| 69 | - return $content; |
|
| 70 | - } |
|
| 61 | + protected function _start() |
|
| 62 | + { |
|
| 63 | + $content = '<h3>' . __('Countries Settings', 'event_espresso') . '</h3>'; |
|
| 64 | + $content .= '<p>' |
|
| 65 | + . __( |
|
| 66 | + 'This tour of the Countries Page will go over different areas of the screen to help you understand what they are used for.', |
|
| 67 | + 'event_espresso' |
|
| 68 | + ) . '</p>'; |
|
| 69 | + return $content; |
|
| 70 | + } |
|
| 71 | 71 | |
| 72 | - protected function _country_selector_stop() |
|
| 73 | - { |
|
| 74 | - return '<p>' |
|
| 75 | - . __( |
|
| 76 | - 'Select the country where your business or organization is located. This affects the currency that is used in Event Espresso.', |
|
| 77 | - 'event_espresso' |
|
| 78 | - ) . '</p>'; |
|
| 79 | - } |
|
| 72 | + protected function _country_selector_stop() |
|
| 73 | + { |
|
| 74 | + return '<p>' |
|
| 75 | + . __( |
|
| 76 | + 'Select the country where your business or organization is located. This affects the currency that is used in Event Espresso.', |
|
| 77 | + 'event_espresso' |
|
| 78 | + ) . '</p>'; |
|
| 79 | + } |
|
| 80 | 80 | |
| 81 | - protected function _country_details_stop() |
|
| 82 | - { |
|
| 83 | - return '<p>' . __('Here you can fine tune country and currency settings.', 'event_espresso') . '</p>'; |
|
| 84 | - } |
|
| 81 | + protected function _country_details_stop() |
|
| 82 | + { |
|
| 83 | + return '<p>' . __('Here you can fine tune country and currency settings.', 'event_espresso') . '</p>'; |
|
| 84 | + } |
|
| 85 | 85 | |
| 86 | - protected function _country_states_settings_stop() |
|
| 87 | - { |
|
| 88 | - return '<p>' |
|
| 89 | - . __( |
|
| 90 | - 'Used in certain areas of the plugin, here you can define what states/provinces will be displayed in case you do not do business in certain areas.', |
|
| 91 | - 'event_espresso' |
|
| 92 | - ) . '</p>'; |
|
| 93 | - } |
|
| 86 | + protected function _country_states_settings_stop() |
|
| 87 | + { |
|
| 88 | + return '<p>' |
|
| 89 | + . __( |
|
| 90 | + 'Used in certain areas of the plugin, here you can define what states/provinces will be displayed in case you do not do business in certain areas.', |
|
| 91 | + 'event_espresso' |
|
| 92 | + ) . '</p>'; |
|
| 93 | + } |
|
| 94 | 94 | } |
@@ -60,12 +60,12 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | protected function _start() |
| 62 | 62 | { |
| 63 | - $content = '<h3>' . __('Countries Settings', 'event_espresso') . '</h3>'; |
|
| 63 | + $content = '<h3>'.__('Countries Settings', 'event_espresso').'</h3>'; |
|
| 64 | 64 | $content .= '<p>' |
| 65 | 65 | . __( |
| 66 | 66 | 'This tour of the Countries Page will go over different areas of the screen to help you understand what they are used for.', |
| 67 | 67 | 'event_espresso' |
| 68 | - ) . '</p>'; |
|
| 68 | + ).'</p>'; |
|
| 69 | 69 | return $content; |
| 70 | 70 | } |
| 71 | 71 | |
@@ -75,12 +75,12 @@ discard block |
||
| 75 | 75 | . __( |
| 76 | 76 | 'Select the country where your business or organization is located. This affects the currency that is used in Event Espresso.', |
| 77 | 77 | 'event_espresso' |
| 78 | - ) . '</p>'; |
|
| 78 | + ).'</p>'; |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | protected function _country_details_stop() |
| 82 | 82 | { |
| 83 | - return '<p>' . __('Here you can fine tune country and currency settings.', 'event_espresso') . '</p>'; |
|
| 83 | + return '<p>'.__('Here you can fine tune country and currency settings.', 'event_espresso').'</p>'; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | protected function _country_states_settings_stop() |
@@ -89,6 +89,6 @@ discard block |
||
| 89 | 89 | . __( |
| 90 | 90 | 'Used in certain areas of the plugin, here you can define what states/provinces will be displayed in case you do not do business in certain areas.', |
| 91 | 91 | 'event_espresso' |
| 92 | - ) . '</p>'; |
|
| 92 | + ).'</p>'; |
|
| 93 | 93 | } |
| 94 | 94 | } |