@@ 1710-1720 (lines=11) @@ | ||
1707 | * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode |
|
1708 | */ |
|
1709 | public static function show_development_mode_notice() { |
|
1710 | if ( ( new Status() )->is_offline_mode() ) { |
|
1711 | $notice = sprintf( |
|
1712 | /* translators: %s is a URL */ |
|
1713 | __( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ), |
|
1714 | Redirect::get_url( 'jetpack-support-development-mode' ) |
|
1715 | ); |
|
1716 | ||
1717 | $notice .= ' ' . self::development_mode_trigger_text(); |
|
1718 | ||
1719 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1720 | } |
|
1721 | ||
1722 | // Throw up a notice if using a development version and as for feedback. |
|
1723 | if ( self::is_development_version() ) { |
|
@@ 1730-1735 (lines=6) @@ | ||
1727 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1728 | } |
|
1729 | // Throw up a notice if using staging mode |
|
1730 | if ( ( new Status() )->is_staging_site() ) { |
|
1731 | /* translators: %s is a URL */ |
|
1732 | $notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) ); |
|
1733 | ||
1734 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1735 | } |
|
1736 | } |
|
1737 | ||
1738 | /** |