PluginProbe
Tableberg – Simple Gutenberg Table Block / 0.3.2
Tableberg – Simple Gutenberg Table Block v0.3.2
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 0.5.8 All 41 releases
tableberg / tableberg.php

tableberg.php in Tableberg – Simple Gutenberg Table Block 0.3.2, at tableberg.php

114 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: Tableberg
5 * Plugin URI: https://tableberg.com/
6 * Description: Table Block by Tableberg - Create Better Tables With Block Editor
7 * Version: 0.3.2
8 * Requires at least: 6.1
9 * Requires PHP: 7.0
10 * Author: Tableberg
11 * Author URI: https://tableberg.com/
12 * License: GPL-2.0-or-later
13 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
14 * Text Domain: tableberg
15 *
16 * @package Tableberg
17 */
18
19 if (!defined('ABSPATH')) {
20 exit; // Exit if accessed directly.
21 }
22 if (!defined('TABLEBERG_VERSION')) {
23 define('TABLEBERG_VERSION', '0.0.2');
24 }
25 if (!defined('TABLEBERG_DIR_PATH')) {
26 define('TABLEBERG_DIR_PATH', plugin_dir_path(__FILE__));
27 }
28
29 if (!defined('TABLEBERG_URL')) {
30 define('TABLEBERG_URL', plugin_dir_url(__FILE__));
31 }
32 if (!defined('TABLEBERG_PLUGIN_FILE')) {
33 define('TABLEBERG_PLUGIN_FILE', __FILE__);
34 }
35
36 require_once __DIR__ . '/vendor/autoload.php';
37
38
39 if (!function_exists('tab_fs')) {
40 // Create a helper function for easy SDK access.
41 function tab_fs() {
42 global $tab_fs;
43
44 if (!isset($tab_fs)) {
45 // Include Freemius SDK.
46 require_once __DIR__ . '/includes/freemius/start.php';
47
48 $tab_fs = fs_dynamic_init(array(
49 'id' => '14649',
50 'slug' => 'tableberg',
51 'type' => 'plugin',
52 'public_key' => 'pk_8043aa788c004c4b385af8384c74b',
53 'is_premium' => false,
54 'has_addons' => false,
55 'has_paid_plans' => false,
56 'menu' => array(
57 'slug' => 'tableberg-settings',
58 'first-path' => 'admin.php?page=tableberg-settings&route=welcome',
59 ),
60 ));
61 }
62
63 return $tab_fs;
64 }
65
66 // Init Freemius.
67 tab_fs();
68 // Signal that SDK was initiated.
69 do_action('tab_fs_loaded');
70 }
71
72
73 if (!class_exists('Tableberg')) {
74 /**
75 * External Query Block main class.
76 */
77 class Tableberg {
78
79
80 /**
81 * Constructor.
82 *
83 * @return void
84 */
85 public function __construct() {
86 new Tableberg\Admin\Tableberg_Admin();
87 new Tableberg\Blocks\Button();
88 new Tableberg\Blocks\Image();
89 new Tableberg\Blocks\Table();
90 new Tableberg\Blocks\Cell();
91 register_activation_hook(__FILE__, array($this, 'activate_plugin'));
92 register_deactivation_hook(__FILE__, array($this, 'deactivate_plugin'));
93 }
94
95 /**
96 * The code that runs during plugin activation.
97 * This action is documented in includes/Activator.php
98 */
99 public function activate_plugin() {
100 Tableberg\Activator::activate();
101 }
102
103 /**
104 * The code that runs during plugin deactivation.
105 * This action is documented in includes/Deactivator.php
106 */
107 public function deactivate_plugin() {
108 Tableberg\Deactivator::deactivate();
109 }
110 }
111
112 new Tableberg();
113 }
114