| @@ 750-768 (lines=19) @@ | ||
| 747 | * |
|
| 748 | * @return string |
|
| 749 | */ |
|
| 750 | public function get_first_step_header_explanation() { |
|
| 751 | $html = wp_kses( |
|
| 752 | sprintf( |
|
| 753 | /* translators: %s: Safe mode docs URL. */ |
|
| 754 | __( 'Please confirm Safe Mode or fix the Jetpack connection. Select one of the options below or <a href="%1$s">learn more about Safe Mode</a>.', 'jetpack' ), |
|
| 755 | esc_url( self::get_safe_mod_doc_url() ) |
|
| 756 | ), |
|
| 757 | array( 'a' => array( 'href' => array() ) ) |
|
| 758 | ); |
|
| 759 | ||
| 760 | /** |
|
| 761 | * Allows overriding of the default header explanation text in the first step of the Safe Mode notice. |
|
| 762 | * |
|
| 763 | * @param string $html The HTML to be displayed. |
|
| 764 | * |
|
| 765 | * @since 4.4.0 |
|
| 766 | */ |
|
| 767 | return apply_filters( 'jetpack_idc_first_step_header_explanation', $html ); |
|
| 768 | } |
|
| 769 | ||
| 770 | /** |
|
| 771 | * Returns the confirm safe mode explanation. |
|
| @@ 978-996 (lines=19) @@ | ||
| 975 | * |
|
| 976 | * @return string |
|
| 977 | */ |
|
| 978 | public function get_unsure_prompt() { |
|
| 979 | $html = wp_kses( |
|
| 980 | sprintf( |
|
| 981 | /* translators: %s: Safe mode docs URL. */ |
|
| 982 | __( 'Unsure what to do? <a href="%1$s">Read more about Jetpack Safe Mode</a>', 'jetpack' ), |
|
| 983 | esc_url( self::get_safe_mod_doc_url() ) |
|
| 984 | ), |
|
| 985 | array( 'a' => array( 'href' => array() ) ) |
|
| 986 | ); |
|
| 987 | ||
| 988 | /** |
|
| 989 | * Allows overriding of the default text using in the "Unsure what to do?" prompt. |
|
| 990 | * |
|
| 991 | * @param string $html The HTML to be displayed. |
|
| 992 | * |
|
| 993 | * @since 4.4.0 |
|
| 994 | */ |
|
| 995 | return apply_filters( 'jetpack_idc_unsure_prompt', $html ); |
|
| 996 | } |
|
| 997 | ||
| 998 | /** |
|
| 999 | * Returns the non-admin notice text. |
|
| @@ 1003-1021 (lines=19) @@ | ||
| 1000 | * |
|
| 1001 | * @return string |
|
| 1002 | */ |
|
| 1003 | public function get_non_admin_notice_text() { |
|
| 1004 | $html = wp_kses( |
|
| 1005 | sprintf( |
|
| 1006 | /* translators: %s: Safe mode docs URL. */ |
|
| 1007 | __( 'Jetpack has been placed into Safe Mode. Learn more about <a href="%1$s">Safe Mode</a>.', 'jetpack' ), |
|
| 1008 | esc_url( self::get_safe_mod_doc_url() ) |
|
| 1009 | ), |
|
| 1010 | array( 'a' => array( 'href' => array() ) ) |
|
| 1011 | ); |
|
| 1012 | ||
| 1013 | /** |
|
| 1014 | * Allows overriding of the default text that is displayed to non-admin on the Jetpack admin page. |
|
| 1015 | * |
|
| 1016 | * @param string $html The HTML to be displayed. |
|
| 1017 | * |
|
| 1018 | * @since 4.4.0 |
|
| 1019 | */ |
|
| 1020 | return apply_filters( 'jetpack_idc_non_admin_notice_text', $html ); |
|
| 1021 | } |
|
| 1022 | ||
| 1023 | /** |
|
| 1024 | * Returns the non-admin contact admin text. |
|