| @@ 439-453 (lines=15) @@ | ||
| 436 | return apply_filters( 'jetpack_idc_first_step_header_lead', $html ); |
|
| 437 | } |
|
| 438 | ||
| 439 | function get_first_step_header_explanation() { |
|
| 440 | $html = wp_kses( |
|
| 441 | sprintf( |
|
| 442 | __( |
|
| 443 | 'Please confirm Safe Mode or fix the Jetpack connection. Select one of the options below or <a href="%1$s">learn |
|
| 444 | more about Safe Mode</a>.', |
|
| 445 | 'jetpack' |
|
| 446 | ), |
|
| 447 | esc_url( self::SAFE_MODE_DOC_LINK ) |
|
| 448 | ), |
|
| 449 | array( 'a' => array( 'href' => array() ) ) |
|
| 450 | ); |
|
| 451 | ||
| 452 | /** |
|
| 453 | * Allows overriding of the default header explanation text in the first step of the Safe Mode notice. |
|
| 454 | * |
|
| 455 | * @since 4.4.0 |
|
| 456 | * |
|
| @@ 634-647 (lines=14) @@ | ||
| 631 | return apply_filters( 'jetpack_idc_start_fresh_button_text', $string ); |
|
| 632 | } |
|
| 633 | ||
| 634 | function get_unsure_prompt() { |
|
| 635 | $html = wp_kses( |
|
| 636 | sprintf( |
|
| 637 | __( |
|
| 638 | 'Unsure what to do? <a href="%1$s">Read more about Jetpack Safe Mode</a>', |
|
| 639 | 'jetpack' |
|
| 640 | ), |
|
| 641 | esc_url( self::SAFE_MODE_DOC_LINK ) |
|
| 642 | ), |
|
| 643 | array( 'a' => array( 'href' => array() ) ) |
|
| 644 | ); |
|
| 645 | ||
| 646 | /** |
|
| 647 | * Allows overriding of the default text using in the "Unsure what to do?" prompt. |
|
| 648 | * |
|
| 649 | * @since 4.4.0 |
|
| 650 | * |
|
| @@ 656-676 (lines=21) @@ | ||
| 653 | return apply_filters( 'jetpack_idc_unsure_prompt', $html ); |
|
| 654 | } |
|
| 655 | ||
| 656 | function get_non_admin_notice_text() { |
|
| 657 | $html = wp_kses( |
|
| 658 | sprintf( |
|
| 659 | __( |
|
| 660 | 'Jetpack has been placed into Safe Mode. Learn more about <a href="%1$s">Safe Mode</a>.', |
|
| 661 | 'jetpack' |
|
| 662 | ), |
|
| 663 | esc_url( self::SAFE_MODE_DOC_LINK ) |
|
| 664 | ), |
|
| 665 | array( 'a' => array( 'href' => array() ) ) |
|
| 666 | ); |
|
| 667 | ||
| 668 | /** |
|
| 669 | * Allows overriding of the default text that is displayed to non-admin on the Jetpack admin page. |
|
| 670 | * |
|
| 671 | * @since 4.4.0 |
|
| 672 | * |
|
| 673 | * @param string $html The HTML to be displayed |
|
| 674 | */ |
|
| 675 | return apply_filters( 'jetpack_idc_non_admin_notice_text', $html ); |
|
| 676 | } |
|
| 677 | ||
| 678 | function get_non_admin_contact_admin_text() { |
|
| 679 | $string = esc_html__( 'An administrator of this site can take Jetpack out of Safe Mode.', 'jetpack' ); |
|