@@ 1847-1857 (lines=11) @@ | ||
1844 | * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode |
|
1845 | */ |
|
1846 | public static function show_development_mode_notice() { |
|
1847 | if ( ( new Status() )->is_offline_mode() ) { |
|
1848 | $notice = sprintf( |
|
1849 | /* translators: %s is a URL */ |
|
1850 | __( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ), |
|
1851 | Redirect::get_url( 'jetpack-support-development-mode' ) |
|
1852 | ); |
|
1853 | ||
1854 | $notice .= ' ' . self::development_mode_trigger_text(); |
|
1855 | ||
1856 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1857 | } |
|
1858 | ||
1859 | // Throw up a notice if using a development version and as for feedback. |
|
1860 | if ( self::is_development_version() ) { |
|
@@ 1867-1872 (lines=6) @@ | ||
1864 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1865 | } |
|
1866 | // Throw up a notice if using staging mode |
|
1867 | if ( ( new Status() )->is_staging_site() ) { |
|
1868 | /* translators: %s is a URL */ |
|
1869 | $notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) ); |
|
1870 | ||
1871 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1872 | } |
|
1873 | } |
|
1874 | ||
1875 | /** |