| @@ 370-391 (lines=22) @@ | ||
| 367 | return apply_filters( 'jetpack_idc_first_step_header_lead', $html ); |
|
| 368 | } |
|
| 369 | ||
| 370 | function get_first_step_header_explanation() { |
|
| 371 | $html = wp_kses( |
|
| 372 | sprintf( |
|
| 373 | __( |
|
| 374 | 'Please confirm Safe Mode or fix the Jetpack connection. Select one of the options below or <a href="%1$s">learn |
|
| 375 | more about Safe Mode</a>.', |
|
| 376 | 'jetpack' |
|
| 377 | ), |
|
| 378 | esc_url( self::SAFE_MODE_DOC_LINK ) |
|
| 379 | ), |
|
| 380 | array( 'a' => array( 'href' => array() ) ) |
|
| 381 | ); |
|
| 382 | ||
| 383 | /** |
|
| 384 | * Allows overriding of the default header explanation text in the first step of the Safe Mode notice. |
|
| 385 | * |
|
| 386 | * @since 4.4.0 |
|
| 387 | * |
|
| 388 | * @param string $html The HTML to be displayed |
|
| 389 | */ |
|
| 390 | return apply_filters( 'jetpack_idc_first_step_header_explanation', $html ); |
|
| 391 | } |
|
| 392 | ||
| 393 | function get_confirm_safe_mode_action_explanation() { |
|
| 394 | $html = wp_kses( |
|
| @@ 565-585 (lines=21) @@ | ||
| 562 | return apply_filters( 'jetpack_idc_start_fresh_button_text', $string ); |
|
| 563 | } |
|
| 564 | ||
| 565 | function get_unsure_prompt() { |
|
| 566 | $html = wp_kses( |
|
| 567 | sprintf( |
|
| 568 | __( |
|
| 569 | 'Unsure what to do? <a href="%1$s">Read more about Jetpack Safe Mode</a>', |
|
| 570 | 'jetpack' |
|
| 571 | ), |
|
| 572 | esc_url( self::SAFE_MODE_DOC_LINK ) |
|
| 573 | ), |
|
| 574 | array( 'a' => array( 'href' => array() ) ) |
|
| 575 | ); |
|
| 576 | ||
| 577 | /** |
|
| 578 | * Allows overriding of the default text using in the "Unsure what to do?" prompt. |
|
| 579 | * |
|
| 580 | * @since 4.4.0 |
|
| 581 | * |
|
| 582 | * @param string $html The HTML to be displayed |
|
| 583 | */ |
|
| 584 | return apply_filters( 'jetpack_idc_unsure_prompt', $html ); |
|
| 585 | } |
|
| 586 | ||
| 587 | function get_non_admin_notice_text() { |
|
| 588 | $html = wp_kses( |
|
| @@ 587-607 (lines=21) @@ | ||
| 584 | return apply_filters( 'jetpack_idc_unsure_prompt', $html ); |
|
| 585 | } |
|
| 586 | ||
| 587 | function get_non_admin_notice_text() { |
|
| 588 | $html = wp_kses( |
|
| 589 | sprintf( |
|
| 590 | __( |
|
| 591 | 'Jetpack has been placed into Safe Mode. Learn more about <a href="%1$s">Safe Mode</a>.', |
|
| 592 | 'jetpack' |
|
| 593 | ), |
|
| 594 | esc_url( self::SAFE_MODE_DOC_LINK ) |
|
| 595 | ), |
|
| 596 | array( 'a' => array( 'href' => array() ) ) |
|
| 597 | ); |
|
| 598 | ||
| 599 | /** |
|
| 600 | * Allows overriding of the default text that is displayed to non-admin on the Jetpack admin page. |
|
| 601 | * |
|
| 602 | * @since 4.4.0 |
|
| 603 | * |
|
| 604 | * @param string $html The HTML to be displayed |
|
| 605 | */ |
|
| 606 | return apply_filters( 'jetpack_idc_non_admin_notice_text', $html ); |
|
| 607 | } |
|
| 608 | ||
| 609 | function get_non_admin_contact_admin_text() { |
|
| 610 | $string = esc_html__( 'An administrator of this site can take Jetpack out of Safe Mode.', 'jetpack' ); |
|