PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
← All changes | views/view-preview_table.php +16 -3 2.3.2 → 3.4 View file →
@@ -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 /**
@@ -54,19 +56,28 @@
54 56 #[\Override]
55 57 public function render(): void {
56 58 _wp_admin_html_begin();
57 59 ?>
58 -<title><?php printf( __( '%1$s &lsaquo; %2$s', 'tablepress' ), __( 'Preview', 'tablepress' ), 'TablePress' ); ?></title>
60 + <title>
61 + <?php
62 + /* translators: %1$s: Page title (Preview), %2$s: Plugin name (TablePress) */
63 + printf( __( '%1$s &lsaquo; %2$s', 'tablepress' ), __( 'Preview', 'tablepress' ), 'TablePress' );
64 + ?>
65 + </title>
59 66 <?php echo $this->data['head_html']; ?>
60 67 </head>
61 68 <body>
62 69 <div id="tablepress-page">
63 70 <p>
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 />
71 + <?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>
65 72 <?php
66 73 // Show the instructions string depending on whether the Block Editor is used on the site or not.
67 - if ( $this->data['site_uses_block_editor'] ) {
74 + if ( 'block' === $this->data['site_used_editor'] ) {
75 + /* translators: %1$s: Block name (TablePress table) */
68 76 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' ) );
77 + } elseif ( 'elementor' === $this->data['site_used_editor'] ) {
78 + /* translators: %1$s: Widget name (TablePress table) */
79 + printf( __( 'To insert a table into a post or page, add a “%1$s” widget in the Elementor editor and select the desired table.', 'tablepress' ), __( 'TablePress table', 'tablepress' ) );
69 80 } else {
70 81 _e( 'To insert a table into a post or page, paste its Shortcode at the desired place in the editor.', 'tablepress' );
71 82 echo ' ';
72 83 _e( 'Each table has a unique ID that needs to be adjusted in that Shortcode.', 'tablepress' );
@@ -72,9 +83,11 @@
72 83 _e( 'Each table has a unique ID that needs to be adjusted in that Shortcode.', 'tablepress' );
73 84 }
74 85 ?>
75 86 </p>
87 +<div class="preview">
76 88 <?php echo $this->data['body_html']; ?>
89 +</div>
77 90 </div>
78 91 </body>
79 92 </html>
80 93 <?php