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