@@ 1727-1737 (lines=11) @@ | ||
1724 | * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode |
|
1725 | */ |
|
1726 | public static function show_development_mode_notice() { |
|
1727 | if ( ( new Status() )->is_offline_mode() ) { |
|
1728 | $notice = sprintf( |
|
1729 | /* translators: %s is a URL */ |
|
1730 | __( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ), |
|
1731 | Redirect::get_url( 'jetpack-support-development-mode' ) |
|
1732 | ); |
|
1733 | ||
1734 | $notice .= ' ' . self::development_mode_trigger_text(); |
|
1735 | ||
1736 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1737 | } |
|
1738 | ||
1739 | // Throw up a notice if using a development version and as for feedback. |
|
1740 | if ( self::is_development_version() ) { |
|
@@ 1747-1752 (lines=6) @@ | ||
1744 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1745 | } |
|
1746 | // Throw up a notice if using staging mode |
|
1747 | if ( ( new Status() )->is_staging_site() ) { |
|
1748 | /* translators: %s is a URL */ |
|
1749 | $notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) ); |
|
1750 | ||
1751 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1752 | } |
|
1753 | } |
|
1754 | ||
1755 | /** |