| @@ 398-407 (lines=10) @@ | ||
| 395 | do_action( 'AHEE_log', __FILE__, __FUNCTION__, '' ); |
|
| 396 | $ID=isset( $this->_req_data['QST_ID'] ) && ! empty( $this->_req_data['QST_ID'] ) ? absint( $this->_req_data['QST_ID'] ) : FALSE; |
|
| 397 | ||
| 398 | switch( $this->_req_action ) { |
|
| 399 | case 'add_question' : |
|
| 400 | $this->_admin_page_title = esc_html__( 'Add Question', 'event_espresso' ); |
|
| 401 | break; |
|
| 402 | case 'edit_question' : |
|
| 403 | $this->_admin_page_title = esc_html__( 'Edit Question', 'event_espresso' ); |
|
| 404 | break; |
|
| 405 | default : |
|
| 406 | $this->_admin_page_title = ucwords( str_replace( '_', ' ', $this->_req_action )); |
|
| 407 | } |
|
| 408 | ||
| 409 | // add PRC_ID to title if editing |
|
| 410 | $this->_admin_page_title = $ID ? $this->_admin_page_title . ' # ' . $ID : $this->_admin_page_title; |
|
| @@ 537-546 (lines=10) @@ | ||
| 534 | do_action( 'AHEE_log', __FILE__, __FUNCTION__, '' ); |
|
| 535 | $ID=isset( $this->_req_data['QSG_ID'] ) && ! empty( $this->_req_data['QSG_ID'] ) ? absint( $this->_req_data['QSG_ID'] ) : FALSE; |
|
| 536 | ||
| 537 | switch( $this->_req_action ) { |
|
| 538 | case 'add_question_group' : |
|
| 539 | $this->_admin_page_title = esc_html__( 'Add Question Group', 'event_espresso' ); |
|
| 540 | break; |
|
| 541 | case 'edit_question_group' : |
|
| 542 | $this->_admin_page_title = esc_html__( 'Edit Question Group', 'event_espresso' ); |
|
| 543 | break; |
|
| 544 | default : |
|
| 545 | $this->_admin_page_title = ucwords( str_replace( '_', ' ', $this->_req_action )); |
|
| 546 | } |
|
| 547 | // add ID to title if editing |
|
| 548 | $this->_admin_page_title = $ID ? $this->_admin_page_title . ' # ' . $ID : $this->_admin_page_title; |
|
| 549 | if($ID){ |
|
| @@ 568-577 (lines=10) @@ | ||
| 565 | // grab price ID |
|
| 566 | $PRC_ID = isset( $this->_req_data['id'] ) && ! empty( $this->_req_data['id'] ) ? absint( $this->_req_data['id'] ) : FALSE; |
|
| 567 | // change page title based on request action |
|
| 568 | switch( $this->_req_action ) { |
|
| 569 | case 'add_new_price' : |
|
| 570 | $this->_admin_page_title = esc_html__( 'Add New Price', 'event_espresso' ); |
|
| 571 | break; |
|
| 572 | case 'edit_price' : |
|
| 573 | $this->_admin_page_title = esc_html__( 'Edit Price', 'event_espresso' ); |
|
| 574 | break; |
|
| 575 | default : |
|
| 576 | $this->_admin_page_title = ucwords( str_replace( '_', ' ', $this->_req_action )); |
|
| 577 | } |
|
| 578 | // add PRC_ID to title if editing |
|
| 579 | $this->_admin_page_title = $PRC_ID ? $this->_admin_page_title . ' # ' . $PRC_ID : $this->_admin_page_title; |
|
| 580 | ||
| @@ 1018-1027 (lines=10) @@ | ||
| 1015 | // grab price type ID |
|
| 1016 | $PRT_ID = isset( $this->_req_data['id'] ) && ! empty( $this->_req_data['id'] ) ? absint( $this->_req_data['id'] ) : FALSE; |
|
| 1017 | // change page title based on request action |
|
| 1018 | switch( $this->_req_action ) { |
|
| 1019 | case 'add_new_price_type' : |
|
| 1020 | $this->_admin_page_title = esc_html__( 'Add New Price Type', 'event_espresso' ); |
|
| 1021 | break; |
|
| 1022 | case 'edit_price_type' : |
|
| 1023 | $this->_admin_page_title = esc_html__( 'Edit Price Type', 'event_espresso' ); |
|
| 1024 | break; |
|
| 1025 | default : |
|
| 1026 | $this->_admin_page_title = ucwords( str_replace( '_', ' ', $this->_req_action )); |
|
| 1027 | } |
|
| 1028 | // add PRT_ID to title if editing |
|
| 1029 | $this->_admin_page_title = $PRT_ID ? $this->_admin_page_title . ' # ' . $PRT_ID : $this->_admin_page_title; |
|
| 1030 | ||