PluginProbe
X Addons for Elementor – 20+ Widgets, Templates & Header Footer Builder / 1.9.1
X Addons for Elementor – 20+ Widgets, Templates & Header Footer Builder v1.9.1
1.9.1 trunk 1.0.10 1.0.11 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.23 1.0.6 1.0.7 1.0.9 1.9
x-addons-elementor / x-addons-elementor.php

x-addons-elementor.php in X Addons for Elementor – 20+ Widgets, Templates & Header Footer Builder 1.9.1, at x-addons-elementor.php

93 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Plugin Name: X Addons for Elementor – 20+ Widgets, Templates & Header Footer Builder
4 * Plugin URI: https://pencilwp.com
5 * Description: X Addons Elementor is an exceptional plugin designed to elevate your Elementor website to the next level. We've crafted a collection of stunning and innovative Elementor addons to enhance your website's functionality and aesthetics. Whether you want to build eye-catching hero sections, showcase your services, display testimonials, or create interactive sliders, X Addons Elementor gives you the tools you need. Every widget is lightweight, responsive, and easy to use, making it perfect for beginners and professionals alike.
6 * Version: 1.9.1
7 * Requires at least: 5.8
8 * Requires PHP: 7.4
9 * Author: pencilwp
10 * Author URI: https://pencilwp.com
11 * License: GPL v2 or later
12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
13 * Text Domain: x-addons-elementor
14 * Domain Path: /languages
15 *
16 * Elementor tested up to: 4.2.0
17 * Elementor Pro tested up to: 4.2.0
18 */
19
20 if ( ! defined( 'ABSPATH' ) ) {
21 exit; // Exit if accessed directly.
22 }
23
24 // Plugin URL & Path
25 define('XADDONS_PLUGIN_PATH', plugin_dir_path(__FILE__));
26 define('XADDONS_PLUGIN_URL', plugin_dir_url(__FILE__));
27 define( 'XADDONS_PLUGIN_VERSION', '2.0' );
28
29
30 // Enqueue Plugin Assets
31 include_once XADDONS_PLUGIN_PATH . "core-class/class-xaddons-assets.php";
32 include_once XADDONS_PLUGIN_PATH . "core-class/class-xaddons-plugins.php";
33
34 // Include Header & Footer Builder
35
36 include_once XADDONS_PLUGIN_PATH . "core-class/header-footer/class-hf-cpt.php";
37 include_once XADDONS_PLUGIN_PATH . "core-class/header-footer/class-hf-metabox.php";
38 include_once XADDONS_PLUGIN_PATH . "core-class/header-footer/class-hf-render.php";
39
40
41 include_once XADDONS_PLUGIN_PATH . "core-class/block-template/class-block-template.php";
42
43
44 include_once XADDONS_PLUGIN_PATH . "includes/functions.php";
45
46
47
48 include_once XADDONS_PLUGIN_PATH . "core-class/admin/class-admin-menu.php";
49
50
51
52
53 // Load Plugins
54 $XAddonsPlugins = new XAddons_Plugins_Load;
55 add_action( 'plugins_loaded', [$XAddonsPlugins, "xaddons_elementor"]);
56
57 // Add Plugin Assets
58 $XAddonsAssets = new XAddons_Assets;
59
60 add_action("wp_enqueue_scripts", [$XAddonsAssets, "xaddons_elementor_assets"]);
61
62 add_action("elementor/editor/before_enqueue_scripts", [$XAddonsAssets, "xaddons_elementor_block_template_assets"]);
63
64
65 add_action("admin_enqueue_scripts", [$XAddonsAssets, "xaddons_admin_assets"]);
66
67
68 add_action("wp_enqueue_scripts", [$XAddonsAssets, "xaddons_elementor_woo_checkout"]);
69
70
71
72 $XAddonsHeaderFooter = new XAddons_hf_CPT;
73
74 new XAddons_hf_Metabox;
75
76 // Register CPT Hook
77 add_action('init', [$XAddonsHeaderFooter, "register_hf_cpt"]);
78 new XAddons_hf_Renderer;
79
80 add_action( 'init', function () {
81 add_post_type_support( 'xaddons-hf', 'elementor' );
82 });
83
84
85
86
87
88 // Remove these lines entirely
89 // function xaddons_elementor_textdomain() {
90 // load_plugin_textdomain( 'x-addons-elementor', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
91 // }
92 // add_action( 'plugins_loaded', 'xaddons_elementor_textdomain' );
93