| @@ 412-433 (lines=22) @@ | ||
| 409 | return apply_filters( 'jetpack_idc_first_step_header_lead', $html ); |
|
| 410 | } |
|
| 411 | ||
| 412 | function get_first_step_header_explanation() { |
|
| 413 | $html = wp_kses( |
|
| 414 | sprintf( |
|
| 415 | __( |
|
| 416 | 'Please confirm Safe Mode or fix the Jetpack connection. Select one of the options below or <a href="%1$s">learn |
|
| 417 | more about Safe Mode</a>.', |
|
| 418 | 'jetpack' |
|
| 419 | ), |
|
| 420 | esc_url( self::SAFE_MODE_DOC_LINK ) |
|
| 421 | ), |
|
| 422 | array( 'a' => array( 'href' => array() ) ) |
|
| 423 | ); |
|
| 424 | ||
| 425 | /** |
|
| 426 | * Allows overriding of the default header explanation text in the first step of the Safe Mode notice. |
|
| 427 | * |
|
| 428 | * @since 4.4.0 |
|
| 429 | * |
|
| 430 | * @param string $html The HTML to be displayed |
|
| 431 | */ |
|
| 432 | return apply_filters( 'jetpack_idc_first_step_header_explanation', $html ); |
|
| 433 | } |
|
| 434 | ||
| 435 | function get_confirm_safe_mode_action_explanation() { |
|
| 436 | $html = wp_kses( |
|
| @@ 607-627 (lines=21) @@ | ||
| 604 | return apply_filters( 'jetpack_idc_start_fresh_button_text', $string ); |
|
| 605 | } |
|
| 606 | ||
| 607 | function get_unsure_prompt() { |
|
| 608 | $html = wp_kses( |
|
| 609 | sprintf( |
|
| 610 | __( |
|
| 611 | 'Unsure what to do? <a href="%1$s">Read more about Jetpack Safe Mode</a>', |
|
| 612 | 'jetpack' |
|
| 613 | ), |
|
| 614 | esc_url( self::SAFE_MODE_DOC_LINK ) |
|
| 615 | ), |
|
| 616 | array( 'a' => array( 'href' => array() ) ) |
|
| 617 | ); |
|
| 618 | ||
| 619 | /** |
|
| 620 | * Allows overriding of the default text using in the "Unsure what to do?" prompt. |
|
| 621 | * |
|
| 622 | * @since 4.4.0 |
|
| 623 | * |
|
| 624 | * @param string $html The HTML to be displayed |
|
| 625 | */ |
|
| 626 | return apply_filters( 'jetpack_idc_unsure_prompt', $html ); |
|
| 627 | } |
|
| 628 | ||
| 629 | function get_non_admin_notice_text() { |
|
| 630 | $html = wp_kses( |
|
| @@ 629-649 (lines=21) @@ | ||
| 626 | return apply_filters( 'jetpack_idc_unsure_prompt', $html ); |
|
| 627 | } |
|
| 628 | ||
| 629 | function get_non_admin_notice_text() { |
|
| 630 | $html = wp_kses( |
|
| 631 | sprintf( |
|
| 632 | __( |
|
| 633 | 'Jetpack has been placed into Safe Mode. Learn more about <a href="%1$s">Safe Mode</a>.', |
|
| 634 | 'jetpack' |
|
| 635 | ), |
|
| 636 | esc_url( self::SAFE_MODE_DOC_LINK ) |
|
| 637 | ), |
|
| 638 | array( 'a' => array( 'href' => array() ) ) |
|
| 639 | ); |
|
| 640 | ||
| 641 | /** |
|
| 642 | * Allows overriding of the default text that is displayed to non-admin on the Jetpack admin page. |
|
| 643 | * |
|
| 644 | * @since 4.4.0 |
|
| 645 | * |
|
| 646 | * @param string $html The HTML to be displayed |
|
| 647 | */ |
|
| 648 | return apply_filters( 'jetpack_idc_non_admin_notice_text', $html ); |
|
| 649 | } |
|
| 650 | ||
| 651 | function get_non_admin_contact_admin_text() { |
|
| 652 | $string = esc_html__( 'An administrator of this site can take Jetpack out of Safe Mode.', 'jetpack' ); |
|