# tableberg/0.0.2/tableberg.php

Tableberg – Simple Gutenberg Table Block, version 0.0.2. 53 lines.

- Page: https://pluginprobe.com/plugins/tableberg/0.0.2/code/tableberg.php
- Raw: https://pluginprobe.com/plugins/tableberg/0.0.2/raw/tableberg.php
- Modified: 2023-12-11T17:27:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tableberg/0.0.2/code/tableberg.php#L10-L20`.

```php
<?php
/**
 * Plugin Name:       Tableberg
 * Description:       Tableberg: table builder Gutenberg block
 * Version:           0.0.2
 * Requires at least: 6.1
 * Requires PHP:      7.0
 * Author:            Dotcamp
 * License:           GPL-2.0-or-later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       tableberg
 *
 * @package Tableberg
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

if ( ! defined( 'TABLEBERG_DIR_PATH' ) ) {
	define( 'TABLEBERG_DIR_PATH', plugin_dir_path( __FILE__ ) );
}

if ( ! defined( 'TABLEBERG_URL' ) ) {
	define( 'TABLEBERG_URL', plugin_dir_url( __FILE__ ) );
}

require_once __DIR__ . '/vendor/autoload.php';

if ( ! class_exists( 'Tableberg' ) ) {
	/**
	 * External Query Block main class.
	 */
	class Tableberg {


		/**
		 * Constructor.
		 *
		 * @return void
		 */
		public function __construct() {
			new Tableberg\Blocks\Button();
			new Tableberg\Blocks\Image();
			new Tableberg\Blocks\Table();
			new Tableberg\Blocks\Cell();
			new Tableberg\Blocks\Row();
		}
	}

	new Tableberg();
}

```
