@@ 1835-1845 (lines=11) @@ | ||
1832 | * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode |
|
1833 | */ |
|
1834 | public static function show_development_mode_notice() { |
|
1835 | if ( ( new Status() )->is_offline_mode() ) { |
|
1836 | $notice = sprintf( |
|
1837 | /* translators: %s is a URL */ |
|
1838 | __( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ), |
|
1839 | Redirect::get_url( 'jetpack-support-development-mode' ) |
|
1840 | ); |
|
1841 | ||
1842 | $notice .= ' ' . self::development_mode_trigger_text(); |
|
1843 | ||
1844 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1845 | } |
|
1846 | ||
1847 | // Throw up a notice if using a development version and as for feedback. |
|
1848 | if ( self::is_development_version() ) { |
|
@@ 1855-1860 (lines=6) @@ | ||
1852 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1853 | } |
|
1854 | // Throw up a notice if using staging mode |
|
1855 | if ( ( new Status() )->is_staging_site() ) { |
|
1856 | /* translators: %s is a URL */ |
|
1857 | $notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) ); |
|
1858 | ||
1859 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1860 | } |
|
1861 | } |
|
1862 | ||
1863 | /** |