PluginProbe
Templateberg – Gutenberg Templates, WordPress Themes Template Kits & WordPress Templates / 2.0.0
Templateberg – Gutenberg Templates, WordPress Themes Template Kits & WordPress Templates v2.0.0
1.2.0 2.0.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9
templateberg / templateberg.php

templateberg.php in Templateberg – Gutenberg Templates, WordPress Themes Template Kits & WordPress Templates 2.0.0, at templateberg.php

79 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**If this file is called directly, abort.*/
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 /**
8 *
9 * @link https://www.templateberg.com/
10 * @since 1.0.0
11 * @package Templateberg
12 *
13 * @wordpress-plugin
14 * Plugin Name: Templateberg - Gutenberg Templates, WordPress Themes Template Kits & WordPress Templates
15 * Description: Easily Import pre-designed templates with starter content on your website and instantly build an elegant website with WordPress. Templateberg content Gutenberg Templates, Patterns and WordPress Theme Template Kits.
16 * Version: 2.0.0
17 * Plugin URI: https://www.templateberg.com/
18 * Author: templateberg
19 * Author URI: https://www.templateberg.com/
20 * License: GPL-2.0+
21 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
22 * Text Domain: templateberg
23 * Requires at least: 6.0
24 * Tested up to: 7.0
25 * Requires PHP: 7.4
26 */
27
28 /*Define Constants for this plugin*/
29 const TEMPLATEBERG_VERSION = '2.0.0';
30 const TEMPLATEBERG_PLUGIN_NAME = 'templateberg';
31 define( 'TEMPLATEBERG_PATH', plugin_dir_path( __FILE__ ) );
32 define( 'TEMPLATEBERG_URL', plugin_dir_url( __FILE__ ) );
33 define( 'TEMPLATEBERG_SCRIPT_PREFIX', ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min' );
34
35 /**
36 * The code that runs during plugin activation.
37 * This action is documented in includes/class-templateberg-activator.php
38 */
39 function activate_templateberg() { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound
40 require_once TEMPLATEBERG_PATH . 'includes/class-templateberg-activator.php';
41 Templateberg_Activator::activate();
42 }
43
44 /**
45 * The core plugin class that is used to define internationalization,
46 * admin-specific hooks, and public-facing site hooks.
47 */
48 require TEMPLATEBERG_PATH . 'includes/class-templateberg.php';
49
50 /**
51 * The code that runs during plugin deactivation.
52 * This action is documented in includes/class-templateberg-deactivator.php
53 */
54 function deactivate_templateberg() { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound
55 require_once TEMPLATEBERG_PATH . 'includes/class-templateberg-deactivator.php';
56 Templateberg_Deactivator::deactivate();
57 }
58
59 register_activation_hook( __FILE__, 'activate_templateberg' );
60 register_deactivation_hook( __FILE__, 'deactivate_templateberg' );
61
62 /**
63 * Begins execution of the plugin.
64 *
65 * Since everything within the plugin is registered via hooks,
66 * then kicking off the plugin from this point in the file does
67 * not affect the page life cycle.
68 *
69 * @since 1.0.0
70 */
71 if ( ! function_exists( 'run_templateberg' ) ) {
72
73 function run_templateberg() { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound
74
75 return Templateberg::instance();
76 }
77 run_templateberg()->run();
78 }
79