-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathplugin.php
More file actions
30 lines (26 loc) · 853 Bytes
/
plugin.php
File metadata and controls
30 lines (26 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* Plugin Name: Tangible Template System
* Description: Template system shared by Tangible Blocks and Loops & Logic
* Version: 2025.8.21
* GitHub URI: TangibleInc/template-system
* Author: Team Tangible
* Author URI: https://teamtangible.com
* License: GPLv2 or later
*/
use tangible\framework;
use tangible\updater;
define('TANGIBLE_TEMPLATE_SYSTEM_IS_PLUGIN', true);
$module_path = is_dir(
($path = __DIR__ . '/../../tangible') // Module
) ? $path : __DIR__ . '/vendor/tangible'; // Plugin
require_once $module_path . '/framework/index.php';
require_once $module_path . '/fields/index.php';
require_once $module_path . '/updater/index.php';
require_once __DIR__ . '/index.php';
add_action('plugins_loaded', function() {
updater\register_plugin([
'name' => 'tangible-template-system',
'file' => __FILE__,
]);
});