| @@ -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 | /** |
| @@ -24,11 +26,10 @@ | ||
| 24 | 26 | /** |
| 25 | 27 | * Object for the Editor Button Thickbox List Table. |
| 26 | 28 | * |
| 27 | 29 | * @since 1.0.0 |
| 28 | - * @var TablePress_Editor_Button_Thickbox_List_Table | |
| 29 | 30 | */ |
| 30 | - protected $wp_list_table; | |
| 31 | + protected \TablePress_Editor_Button_Thickbox_List_Table $wp_list_table; | |
| 31 | 32 | |
| 32 | 33 | /** |
| 33 | 34 | * Initializes the View class. |
| 34 | 35 | * |
| @@ -70,9 +71,9 @@ | ||
| 70 | 71 | |
| 71 | 72 | wp_print_styles( 'colors' ); |
| 72 | 73 | wp_print_scripts( 'jquery-core' ); |
| 73 | 74 | ?> |
| 74 | -<title><?php printf( __( '%1$s ‹ %2$s', 'tablepress' ), __( 'List of Tables', 'tablepress' ), 'TablePress' ); ?></title> | |
| 75 | +<title><?php /* translators: %1$s: Page title, %2$s: Plugin name */ printf( __( '%1$s ‹ %2$s', 'tablepress' ), __( 'List of Tables', 'tablepress' ), 'TablePress' ); ?></title> | |
| 75 | 76 | <style> |
| 76 | 77 | /* Account for .wp-toolbar. */ |
| 77 | 78 | html { |
| 78 | 79 | padding-top: 0 !important; |
| @@ -113,11 +114,11 @@ | ||
| 113 | 114 | } |
| 114 | 115 | <?php endif; ?> |
| 115 | 116 | </style> |
| 116 | 117 | </head> |
| 117 | -<body class="wp-admin wp-core-ui js iframe<?php echo is_rtl() ? ' rtl' : ''; ?>"> | |
| 118 | +<body class="wp-admin wp-core-ui js iframe <?php echo 'admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'modern' ) . ( is_rtl() ? ' rtl' : '' ); ?>"> | |
| 118 | 119 | <div id="tablepress-page" class="wrap"> |
| 119 | -<h1><?php printf( __( '%1$s ‹ %2$s', 'tablepress' ), __( 'List of Tables', 'tablepress' ), 'TablePress' ); ?></h1> | |
| 120 | +<h1><?php /* translators: %1$s: Page title, %2$s: Plugin name */ printf( __( '%1$s ‹ %2$s', 'tablepress' ), __( 'List of Tables', 'tablepress' ), 'TablePress' ); ?></h1> | |
| 120 | 121 | <div id="poststuff"> |
| 121 | 122 | <p><?php _e( 'This is a list of your tables.', 'tablepress' ); ?> <?php _e( 'You may insert a table into a post or page here.', 'tablepress' ); ?></p> |
| 122 | 123 | <p><?php printf( __( 'Click the “%1$s” button for the desired table to automatically insert its Shortcode into the editor.', 'tablepress' ), __( 'Insert Shortcode', 'tablepress' ) ); ?></p> |
| 123 | 124 | <?php |
| @@ -124,10 +125,10 @@ | ||
| 124 | 125 | if ( ! empty( $_GET['s'] ) ) { |
| 125 | 126 | printf( '<span class="subtitle">' . __( 'Search results for “%s”', 'tablepress' ) . '</span>', esc_html( wp_unslash( $_GET['s'] ) ) ); |
| 126 | 127 | } |
| 127 | 128 | ?> |
| 128 | -<form method="get" action=""> | |
| 129 | - <input type="hidden" name="action" value="tablepress_<?php echo $this->action; ?>" /> | |
| 129 | +<form method="get"> | |
| 130 | + <input type="hidden" name="action" value="tablepress_<?php echo $this->action; ?>"> | |
| 130 | 131 | <?php |
| 131 | 132 | wp_nonce_field( TablePress::nonce( $this->action ), '_wpnonce', false ); |
| 132 | 133 | $this->wp_list_table->search_box( __( 'Search Tables', 'tablepress' ), 'tables_search' ); |
| 133 | 134 | ?> |