| @@ 295-307 (lines=13) @@ | ||
| 292 | * |
|
| 293 | * @return void |
|
| 294 | */ |
|
| 295 | public function display_idc_notice() { |
|
| 296 | $classes = 'jp-idc-notice inline notice notice-warning'; |
|
| 297 | if ( $this->admin_page_has_help_tabs() ) { |
|
| 298 | $classes .= ' has-help-tabs'; |
|
| 299 | } |
|
| 300 | ?> |
|
| 301 | <div class="<?php echo esc_attr( $classes ); ?>"> |
|
| 302 | <?php $this->render_notice_header(); ?> |
|
| 303 | <?php $this->render_notice_first_step(); ?> |
|
| 304 | <?php $this->render_notice_second_step(); ?> |
|
| 305 | </div> |
|
| 306 | <?php |
|
| 307 | } |
|
| 308 | ||
| 309 | /** |
|
| 310 | * Enqueue CSS for the admin bar. |
|
| @@ 238-250 (lines=13) @@ | ||
| 235 | * "Confirm Staging" - Dismiss the notice and continue on with our lives in staging mode. |
|
| 236 | * "Fix Jetpack Connection" - Will disconnect the site and start the mitigation... |
|
| 237 | */ |
|
| 238 | function display_idc_notice() { |
|
| 239 | $classes = 'jp-idc-notice inline notice notice-warning'; |
|
| 240 | if ( $this->admin_page_has_help_tabs() ) { |
|
| 241 | $classes .= ' has-help-tabs'; |
|
| 242 | } |
|
| 243 | ?> |
|
| 244 | <div class="<?php echo $classes; ?>"> |
|
| 245 | <?php $this->render_notice_header(); ?> |
|
| 246 | <?php $this->render_notice_first_step(); ?> |
|
| 247 | <?php $this->render_notice_second_step(); ?> |
|
| 248 | </div> |
|
| 249 | <?php |
|
| 250 | } |
|
| 251 | ||
| 252 | function enqueue_admin_bar_css() { |
|
| 253 | wp_enqueue_style( |
|