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