| @@ -37,8 +37,9 @@ | ||
| 37 | 37 | * |
| 38 | 38 | * @param string $action Action for this view. |
| 39 | 39 | * @param array<string, mixed> $data Data for this view. |
| 40 | 40 | */ |
| 41 | + #[\Override] | |
| 41 | 42 | public function setup( /* string */ $action, array $data ) /* : void */ { |
| 42 | 43 | // Don't use type hints in the method declaration to prevent PHP errors, as the method is inherited. |
| 43 | 44 | |
| 44 | 45 | $this->action = $action; |
| @@ -49,8 +50,9 @@ | ||
| 49 | 50 | * Render the current view. |
| 50 | 51 | * |
| 51 | 52 | * @since 1.0.0 |
| 52 | 53 | */ |
| 54 | + #[\Override] | |
| 53 | 55 | public function render(): void { |
| 54 | 56 | _wp_admin_html_begin(); |
| 55 | 57 | ?> |
| 56 | 58 | <title><?php printf( __( '%1$s ‹ %2$s', 'tablepress' ), __( 'Preview', 'tablepress' ), 'TablePress' ); ?></title> |
| @@ -58,9 +60,9 @@ | ||
| 58 | 60 | </head> |
| 59 | 61 | <body> |
| 60 | 62 | <div id="tablepress-page"> |
| 61 | 63 | <p> |
| 62 | - <?php _e( 'This is a preview of your table.', 'tablepress' ); ?> <?php _e( 'Because of CSS styling in your theme, the table might look different on your page!', 'tablepress' ); ?> <?php _e( 'The Table Features for Site Visitors, like sorting, filtering, and pagination, are also not available in this preview!', 'tablepress' ); ?><br /> | |
| 64 | + <?php _e( 'This is a preview of your table.', 'tablepress' ); ?> <?php _e( 'Because of CSS styling in your theme, the table might look different on your page!', 'tablepress' ); ?> <?php _e( 'The Table Features for Site Visitors, like sorting, filtering, and pagination, are also not available in this preview!', 'tablepress' ); ?><br> | |
| 63 | 65 | <?php |
| 64 | 66 | // Show the instructions string depending on whether the Block Editor is used on the site or not. |
| 65 | 67 | if ( $this->data['site_uses_block_editor'] ) { |
| 66 | 68 | printf( __( 'To insert a table into a post or page, add a “%1$s” block in the block editor and select the desired table.', 'tablepress' ), __( 'TablePress table', 'tablepress' ) ); |