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