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