PluginProbe
Tableberg – Simple Gutenberg Table Block / 1.1.5
Tableberg – Simple Gutenberg Table Block v1.1.5
1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 trunk 0.0.2 0.2.1 0.3.2 0.3.3 0.4.1 0.5.0 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 All 42 releases
← All changes | tableberg.php +10 -4 1.0.51.1.5 View file →
@@ -3,9 +3,9 @@
3 3 /**
4 4 * Plugin Name: Tableberg
5 5 * Plugin URI: https://tableberg.com/
6 6 * Description: Table Block by Tableberg - Create Better Tables With Block Editor
7 - * Version: 1.0.5
7 + * Version: 1.1.5
8 8 * Requires at least: 6.1
9 9 * Requires PHP: 7.0
10 10 * Author: Tableberg
11 11 * Author URI: https://tableberg.com/
@@ -19,9 +19,9 @@
19 19 if (!defined('ABSPATH')) {
20 20 exit;
21 21 }
22 22 if (!defined('TABLEBERG_VERSION')) {
23 - define('TABLEBERG_VERSION', '1.0.5');
23 + define('TABLEBERG_VERSION', '1.1.5');
24 24 }
25 25 if (!defined('TABLEBERG_DIR_PATH')) {
26 26 define('TABLEBERG_DIR_PATH', plugin_dir_path(__FILE__));
27 27 }
@@ -40,9 +40,9 @@
40 40 function tab_fs() {
41 41 global $tab_fs;
42 42
43 43 if (!isset($tab_fs)) {
44 - require_once __DIR__ . '/vendor/freemius/wordpress-sdk/start.php';
44 + require_once __DIR__ . '/vendor/freemius/start.php';
45 45
46 46 $tab_fs = fs_dynamic_init(
47 47 [
48 48 'id' => '14649',
@@ -81,8 +81,9 @@
81 81 add_action(
82 82 'enqueue_block_editor_assets',
83 83 [$this, 'localize_block_editor_assets']
84 84 );
85 + add_action('wp_enqueue_scripts', [$this, 'localize_frontend_assets']);
85 86
86 87 $restController = new Tableberg\DynamicData\RestController();
87 88 add_action('rest_api_init', [$restController, 'register_routes']);
88 89
@@ -98,13 +99,18 @@
98 99 $assets = new \Tableberg\Assets();
99 100 $assets->register_blocks_assets();
100 101 }
101 102
103 + public function localize_frontend_assets() {
104 + $assets = new \Tableberg\Assets();
105 + $assets->register_frontend_assets();
106 + }
107 +
102 108 public function register_blocks() {
103 109 $renderer = new TableRenderer();
104 110
105 111 register_block_type_from_metadata(
106 - TABLEBERG_DIR_PATH . 'build/block.json',
112 + TABLEBERG_DIR_PATH . 'build/blocks/table/block.json',
107 113 [
108 114 'render_callback' => [$renderer, 'render'],
109 115 ]
110 116 );