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