|
@@ 1510-1520 (lines=11) @@
|
| 1507 |
|
* Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode |
| 1508 |
|
*/ |
| 1509 |
|
public static function show_development_mode_notice() { |
| 1510 |
|
if ( ( new Status() )->is_offline_mode() ) { |
| 1511 |
|
$notice = sprintf( |
| 1512 |
|
/* translators: %s is a URL */ |
| 1513 |
|
__( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ), |
| 1514 |
|
Redirect::get_url( 'jetpack-support-development-mode' ) |
| 1515 |
|
); |
| 1516 |
|
|
| 1517 |
|
$notice .= ' ' . self::development_mode_trigger_text(); |
| 1518 |
|
|
| 1519 |
|
echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
| 1520 |
|
} |
| 1521 |
|
|
| 1522 |
|
// Throw up a notice if using a development version and as for feedback. |
| 1523 |
|
if ( self::is_development_version() ) { |
|
@@ 1530-1535 (lines=6) @@
|
| 1527 |
|
echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
| 1528 |
|
} |
| 1529 |
|
// Throw up a notice if using staging mode |
| 1530 |
|
if ( ( new Status() )->is_staging_site() ) { |
| 1531 |
|
/* translators: %s is a URL */ |
| 1532 |
|
$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) ); |
| 1533 |
|
|
| 1534 |
|
echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
| 1535 |
|
} |
| 1536 |
|
} |
| 1537 |
|
|
| 1538 |
|
/** |