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