PluginProbe
Templateberg – Gutenberg Templates, WordPress Themes Template Kits & WordPress Templates / 1.2.0
Templateberg – Gutenberg Templates, WordPress Themes Template Kits & WordPress Templates v1.2.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 1.2.0, at templateberg.php

76 lines 2.5 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( 'WPINC' ) ) {
4 echo 'Hi there! I\'m just a plugin, not much I can do when called directly.';
5 exit;
6 }
7
8 /**
9 *
10 * @link https://www.templateberg.com/
11 * @since 1.0.0
12 * @package Templateberg
13 *
14 * @wordpress-plugin
15 * Plugin Name: Templateberg - Gutenberg Templates, WordPress Themes Template Kits & WordPress Templates
16 * 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.
17 * Version: 1.2.0
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 */
24
25 /*Define Constants for this plugin*/
26 const TEMPLATEBERG_VERSION = '1.2.0';
27 const TEMPLATEBERG_PLUGIN_NAME = 'templateberg';
28 define( 'TEMPLATEBERG_PATH', plugin_dir_path( __FILE__ ) );
29 define( 'TEMPLATEBERG_URL', plugin_dir_url( __FILE__ ) );
30 define( 'TEMPLATEBERG_SCRIPT_PREFIX', ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min' );
31
32 /**
33 * The code that runs during plugin activation.
34 * This action is documented in includes/class-templateberg-activator.php
35 */
36 function activate_templateberg() {
37 require_once TEMPLATEBERG_PATH . 'includes/class-templateberg-activator.php';
38 Templateberg_Activator::activate();
39 }
40
41 /**
42 * The core plugin class that is used to define internationalization,
43 * admin-specific hooks, and public-facing site hooks.
44 */
45 require TEMPLATEBERG_PATH . 'includes/class-templateberg.php';
46
47 /**
48 * The code that runs during plugin deactivation.
49 * This action is documented in includes/class-templateberg-deactivator.php
50 */
51 function deactivate_templateberg() {
52 require_once TEMPLATEBERG_PATH . 'includes/class-templateberg-deactivator.php';
53 Templateberg_Deactivator::deactivate();
54 }
55
56 register_activation_hook( __FILE__, 'activate_templateberg' );
57 register_deactivation_hook( __FILE__, 'deactivate_templateberg' );
58
59 /**
60 * Begins execution of the plugin.
61 *
62 * Since everything within the plugin is registered via hooks,
63 * then kicking off the plugin from this point in the file does
64 * not affect the page life cycle.
65 *
66 * @since 1.0.0
67 */
68 if ( ! function_exists( 'run_templateberg' ) ) {
69
70 function run_templateberg() {
71
72 return Templateberg::instance();
73 }
74 run_templateberg()->run();
75 }
76