|
@@ 1788-1798 (lines=11) @@
|
| 1785 |
|
* Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode |
| 1786 |
|
*/ |
| 1787 |
|
public static function show_development_mode_notice() { |
| 1788 |
|
if ( ( new Status() )->is_offline_mode() ) { |
| 1789 |
|
$notice = sprintf( |
| 1790 |
|
/* translators: %s is a URL */ |
| 1791 |
|
__( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ), |
| 1792 |
|
Redirect::get_url( 'jetpack-support-development-mode' ) |
| 1793 |
|
); |
| 1794 |
|
|
| 1795 |
|
$notice .= ' ' . self::development_mode_trigger_text(); |
| 1796 |
|
|
| 1797 |
|
echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
| 1798 |
|
} |
| 1799 |
|
|
| 1800 |
|
// Throw up a notice if using a development version and as for feedback. |
| 1801 |
|
if ( self::is_development_version() ) { |
|
@@ 1808-1813 (lines=6) @@
|
| 1805 |
|
echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
| 1806 |
|
} |
| 1807 |
|
// Throw up a notice if using staging mode |
| 1808 |
|
if ( ( new Status() )->is_staging_site() ) { |
| 1809 |
|
/* translators: %s is a URL */ |
| 1810 |
|
$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) ); |
| 1811 |
|
|
| 1812 |
|
echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
| 1813 |
|
} |
| 1814 |
|
} |
| 1815 |
|
|
| 1816 |
|
/** |