| @@ -7,8 +7,10 @@ | ||
| 7 | 7 | * @author Tobias Bäthge |
| 8 | 8 | * @since 1.0.0 |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | +declare(strict_types=1); | |
| 12 | + | |
| 11 | 13 | // Prohibit direct script loading. |
| 12 | 14 | defined( 'ABSPATH' ) || die( 'No direct script access allowed!' ); |
| 13 | 15 | |
| 14 | 16 | /** |
| @@ -42,9 +44,9 @@ | ||
| 42 | 44 | $GLOBALS['title'] = sprintf( __( '%1$s ‹ %2$s', 'tablepress' ), $this->data['view_actions'][ $this->action ]['page_title'], 'TablePress' ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited |
| 43 | 45 | |
| 44 | 46 | add_filter( 'admin_footer_text', array( $this, 'add_admin_footer_text' ) ); |
| 45 | 47 | |
| 46 | - $this->add_header_message( '<strong>' . __( 'Attention: Further action is required to save the changes to your “Custom CSS”!', 'tablepress' ) . '</strong>', 'is-success' ); | |
| 48 | + $this->add_header_message( '<strong>' . __( 'Attention: Further action is required to save the changes to your “Custom CSS”!', 'tablepress' ) . '</strong>', 'is-warning notice-warning' ); | |
| 47 | 49 | |
| 48 | 50 | TablePress::enqueue_style( 'common', array( 'wp-components' ) ); |
| 49 | 51 | |
| 50 | 52 | $this->add_text_box( 'explanation-text', array( $this, 'textbox_explanation_text' ), 'normal' ); |
| @@ -65,8 +67,9 @@ | ||
| 65 | 67 | $this->print_nav_tab_menu(); |
| 66 | 68 | ?> |
| 67 | 69 | <div id="tablepress-body"> |
| 68 | 70 | <hr class="wp-header-end"> |
| 71 | + <script>document.querySelectorAll('.notice:has(~#tablepress-page)').forEach(e=>document.querySelector('.wp-header-end').after(e));</script> | |
| 69 | 72 | <?php |
| 70 | 73 | // Print all header messages. |
| 71 | 74 | foreach ( $this->header_messages as $message ) { |
| 72 | 75 | echo $message; |