@@ 1698-1708 (lines=11) @@ | ||
1695 | * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode |
|
1696 | */ |
|
1697 | public static function show_development_mode_notice() { |
|
1698 | if ( ( new Status() )->is_offline_mode() ) { |
|
1699 | $notice = sprintf( |
|
1700 | /* translators: %s is a URL */ |
|
1701 | __( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ), |
|
1702 | Redirect::get_url( 'jetpack-support-development-mode' ) |
|
1703 | ); |
|
1704 | ||
1705 | $notice .= ' ' . self::development_mode_trigger_text(); |
|
1706 | ||
1707 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1708 | } |
|
1709 | ||
1710 | // Throw up a notice if using a development version and as for feedback. |
|
1711 | if ( self::is_development_version() ) { |
|
@@ 1718-1723 (lines=6) @@ | ||
1715 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1716 | } |
|
1717 | // Throw up a notice if using staging mode |
|
1718 | if ( ( new Status() )->is_staging_site() ) { |
|
1719 | /* translators: %s is a URL */ |
|
1720 | $notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) ); |
|
1721 | ||
1722 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1723 | } |
|
1724 | } |
|
1725 | ||
1726 | /** |