Version Description
Download this release
Release Info
Code changes from version 1.3.2 to 1.3.3
- admin/include/admin-setting.php +3 -3
- admin/include/class.settings-api.php +2 -2
- extensions/ht-builder/admin/setting.php +1 -1
- extensions/ht-menu/admin/setting.php +1 -1
- extensions/wc-sales-notification/admin/setting.php +1 -1
- htmega_addons_elementor.php +3 -3
- includes/class.htmega-icon-manager.php +1 -1
- includes/class.htmega.php +7 -32
- includes/helper-function.php +1 -1
- includes/init.php +22 -25
- includes/widgets_control.php +517 -495
- index.php +1 -1
- readme.txt +5 -2
admin/include/admin-setting.php
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
|
4 |
|
5 |
-
class
|
6 |
|
7 |
private $settings_api;
|
8 |
|
9 |
function __construct() {
|
10 |
-
$this->settings_api = new
|
11 |
|
12 |
add_action( 'admin_init', array( $this, 'admin_init' ) );
|
13 |
add_action( 'admin_menu', array( $this, 'admin_menu' ), 220 );
|
@@ -1231,4 +1231,4 @@ class HTmega_Admin_Settings {
|
|
1231 |
|
1232 |
}
|
1233 |
|
1234 |
-
new
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
|
4 |
|
5 |
+
class HTMega_Admin_Settings {
|
6 |
|
7 |
private $settings_api;
|
8 |
|
9 |
function __construct() {
|
10 |
+
$this->settings_api = new HTMega_Settings_API();
|
11 |
|
12 |
add_action( 'admin_init', array( $this, 'admin_init' ) );
|
13 |
add_action( 'admin_menu', array( $this, 'admin_menu' ), 220 );
|
1231 |
|
1232 |
}
|
1233 |
|
1234 |
+
new HTMega_Admin_Settings();
|
admin/include/class.settings-api.php
CHANGED
@@ -7,8 +7,8 @@
|
|
7 |
* @link https://tareq.co Tareq Hasan
|
8 |
*/
|
9 |
|
10 |
-
if ( !class_exists( '
|
11 |
-
class
|
12 |
|
13 |
/**
|
14 |
* settings sections array
|
7 |
* @link https://tareq.co Tareq Hasan
|
8 |
*/
|
9 |
|
10 |
+
if ( !class_exists( 'HTMega_Settings_API' ) ):
|
11 |
+
class HTMega_Settings_API {
|
12 |
|
13 |
/**
|
14 |
* settings sections array
|
extensions/ht-builder/admin/setting.php
CHANGED
@@ -7,7 +7,7 @@ class HTMegaBuilder_Admin_Settings {
|
|
7 |
private $settings_api;
|
8 |
|
9 |
function __construct() {
|
10 |
-
$this->settings_api = new
|
11 |
add_action( 'admin_init', [ $this, 'admin_init' ] );
|
12 |
add_action( 'admin_menu', [ $this, 'admin_menu' ], 224 );
|
13 |
|
7 |
private $settings_api;
|
8 |
|
9 |
function __construct() {
|
10 |
+
$this->settings_api = new HTMega_Settings_API();
|
11 |
add_action( 'admin_init', [ $this, 'admin_init' ] );
|
12 |
add_action( 'admin_menu', [ $this, 'admin_menu' ], 224 );
|
13 |
|
extensions/ht-menu/admin/setting.php
CHANGED
@@ -7,7 +7,7 @@ class HTMegaMenu_Admin_Settings {
|
|
7 |
private $settings_api;
|
8 |
|
9 |
function __construct() {
|
10 |
-
$this->settings_api = new
|
11 |
add_action( 'admin_init', [ $this, 'admin_init' ] );
|
12 |
add_action( 'admin_menu', [ $this, 'admin_menu' ], 224 );
|
13 |
}
|
7 |
private $settings_api;
|
8 |
|
9 |
function __construct() {
|
10 |
+
$this->settings_api = new HTMega_Settings_API();
|
11 |
add_action( 'admin_init', [ $this, 'admin_init' ] );
|
12 |
add_action( 'admin_menu', [ $this, 'admin_menu' ], 224 );
|
13 |
}
|
extensions/wc-sales-notification/admin/setting.php
CHANGED
@@ -7,7 +7,7 @@ class HTMegaWcsale_Admin_Settings {
|
|
7 |
private $settings_api;
|
8 |
|
9 |
function __construct() {
|
10 |
-
$this->settings_api = new
|
11 |
add_action( 'admin_init', [ $this, 'admin_init' ] );
|
12 |
add_action( 'admin_menu', [ $this, 'admin_menu' ], 224 );
|
13 |
|
7 |
private $settings_api;
|
8 |
|
9 |
function __construct() {
|
10 |
+
$this->settings_api = new HTMega_Settings_API();
|
11 |
add_action( 'admin_init', [ $this, 'admin_init' ] );
|
12 |
add_action( 'admin_menu', [ $this, 'admin_menu' ], 224 );
|
13 |
|
htmega_addons_elementor.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin URI: http://demo.wphash.com/htmega/
|
6 |
* Author: HasThemes
|
7 |
* Author URI: https://hasthemes.com/
|
8 |
-
* Version: 1.3.
|
9 |
* License: GPL2
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: htmega-addons
|
@@ -13,11 +13,11 @@
|
|
13 |
*/
|
14 |
|
15 |
if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
16 |
-
define( 'HTMEGA_VERSION', '1.3.
|
17 |
define( 'HTMEGA_ADDONS_PL_ROOT', __FILE__ );
|
18 |
define( 'HTMEGA_ADDONS_PL_URL', plugins_url( '/', HTMEGA_ADDONS_PL_ROOT ) );
|
19 |
define( 'HTMEGA_ADDONS_PL_PATH', plugin_dir_path( HTMEGA_ADDONS_PL_ROOT ) );
|
20 |
define( 'HTMEGA_ADDONS_PLUGIN_BASE', plugin_basename( HTMEGA_ADDONS_PL_ROOT ) );
|
21 |
|
22 |
// Required File
|
23 |
-
require_once ( HTMEGA_ADDONS_PL_PATH.'includes/class.htmega.php' );
|
5 |
* Plugin URI: http://demo.wphash.com/htmega/
|
6 |
* Author: HasThemes
|
7 |
* Author URI: https://hasthemes.com/
|
8 |
+
* Version: 1.3.3
|
9 |
* License: GPL2
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: htmega-addons
|
13 |
*/
|
14 |
|
15 |
if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
16 |
+
define( 'HTMEGA_VERSION', '1.3.3' );
|
17 |
define( 'HTMEGA_ADDONS_PL_ROOT', __FILE__ );
|
18 |
define( 'HTMEGA_ADDONS_PL_URL', plugins_url( '/', HTMEGA_ADDONS_PL_ROOT ) );
|
19 |
define( 'HTMEGA_ADDONS_PL_PATH', plugin_dir_path( HTMEGA_ADDONS_PL_ROOT ) );
|
20 |
define( 'HTMEGA_ADDONS_PLUGIN_BASE', plugin_basename( HTMEGA_ADDONS_PL_ROOT ) );
|
21 |
|
22 |
// Required File
|
23 |
+
require_once ( HTMEGA_ADDONS_PL_PATH .'includes/class.htmega.php' );
|
includes/class.htmega-icon-manager.php
CHANGED
@@ -4,7 +4,7 @@ namespace Elementor;
|
|
4 |
use Elementor\Core\Files\Assets\Svg\Svg_Handler;
|
5 |
|
6 |
/**
|
7 |
-
*
|
8 |
*/
|
9 |
class HTMega_Icon_manager extends Icons_Manager{
|
10 |
|
4 |
use Elementor\Core\Files\Assets\Svg\Svg_Handler;
|
5 |
|
6 |
/**
|
7 |
+
* Icon render
|
8 |
*/
|
9 |
class HTMega_Icon_manager extends Icons_Manager{
|
10 |
|
includes/class.htmega.php
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! function_exists('is_plugin_active')){ include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); }
|
4 |
|
5 |
class HTMega_Addons_Elementor {
|
6 |
|
@@ -16,15 +14,11 @@ class HTMega_Addons_Elementor {
|
|
16 |
}
|
17 |
|
18 |
public function __construct() {
|
|
|
19 |
add_action( 'init', [ $this, 'i18n' ] );
|
20 |
add_action( 'plugins_loaded', [ $this, 'init' ] );
|
21 |
-
|
22 |
-
|
23 |
-
if ( did_action( 'elementor/loaded' ) ) {
|
24 |
-
register_activation_hook( HTMEGA_ADDONS_PL_ROOT, [ $this, 'plugin_activate_hook'] );
|
25 |
-
add_action( 'admin_init', [ $this, 'plugin_redirect_option_page' ] );
|
26 |
-
}
|
27 |
-
|
28 |
}
|
29 |
|
30 |
public function i18n() {
|
@@ -52,14 +46,11 @@ class HTMega_Addons_Elementor {
|
|
52 |
// Plugins Required File
|
53 |
$this->includes();
|
54 |
|
|
|
|
|
|
|
55 |
// Plugins Setting Page
|
56 |
add_filter('plugin_action_links_'.HTMEGA_ADDONS_PLUGIN_BASE, [ $this, 'plugins_setting_links' ] );
|
57 |
-
|
58 |
-
// Register custom category
|
59 |
-
add_action( 'elementor/elements/categories_registered', [ $this, 'add_category' ] );
|
60 |
-
|
61 |
-
// Add Plugin actions
|
62 |
-
add_action( 'elementor/widgets/widgets_registered', [ $this, 'init_widgets' ] );
|
63 |
|
64 |
}
|
65 |
|
@@ -140,28 +131,12 @@ class HTMega_Addons_Elementor {
|
|
140 |
}
|
141 |
}
|
142 |
|
143 |
-
// Add custom category.
|
144 |
-
public function add_category( $elements_manager ) {
|
145 |
-
$elements_manager->add_category(
|
146 |
-
'htmega-addons',
|
147 |
-
[
|
148 |
-
'title' => __( 'HTMega Addons', 'htmega-addons' ),
|
149 |
-
'icon' => 'fa fa-snowflake',
|
150 |
-
]
|
151 |
-
);
|
152 |
-
}
|
153 |
-
|
154 |
-
// Widgets controller
|
155 |
-
public function init_widgets() {
|
156 |
-
// Include Widget files
|
157 |
-
require_once( HTMEGA_ADDONS_PL_PATH . 'includes/widgets_control.php' );
|
158 |
-
}
|
159 |
-
|
160 |
// Include files
|
161 |
public function includes() {
|
162 |
require_once ( HTMEGA_ADDONS_PL_PATH.'includes/helper-function.php' );
|
163 |
require_once ( HTMEGA_ADDONS_PL_PATH.'admin/admin-init.php' );
|
164 |
require_once ( HTMEGA_ADDONS_PL_PATH.'includes/init.php' );
|
|
|
165 |
require_once ( HTMEGA_ADDONS_PL_PATH.'includes/class.htmega-icon-manager.php' );
|
166 |
|
167 |
// Extension Assest Management
|
1 |
<?php
|
|
|
|
|
2 |
|
3 |
class HTMega_Addons_Elementor {
|
4 |
|
14 |
}
|
15 |
|
16 |
public function __construct() {
|
17 |
+
if ( ! function_exists('is_plugin_active') ){ include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); }
|
18 |
add_action( 'init', [ $this, 'i18n' ] );
|
19 |
add_action( 'plugins_loaded', [ $this, 'init' ] );
|
20 |
+
// Register Plugin Active Hook
|
21 |
+
register_activation_hook( HTMEGA_ADDONS_PL_ROOT, [ $this, 'plugin_activate_hook'] );
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
|
24 |
public function i18n() {
|
46 |
// Plugins Required File
|
47 |
$this->includes();
|
48 |
|
49 |
+
// After Active Plugin then redirect to setting page
|
50 |
+
$this->plugin_redirect_option_page();
|
51 |
+
|
52 |
// Plugins Setting Page
|
53 |
add_filter('plugin_action_links_'.HTMEGA_ADDONS_PLUGIN_BASE, [ $this, 'plugins_setting_links' ] );
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
}
|
56 |
|
131 |
}
|
132 |
}
|
133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
// Include files
|
135 |
public function includes() {
|
136 |
require_once ( HTMEGA_ADDONS_PL_PATH.'includes/helper-function.php' );
|
137 |
require_once ( HTMEGA_ADDONS_PL_PATH.'admin/admin-init.php' );
|
138 |
require_once ( HTMEGA_ADDONS_PL_PATH.'includes/init.php' );
|
139 |
+
require_once( HTMEGA_ADDONS_PL_PATH . 'includes/widgets_control.php' );
|
140 |
require_once ( HTMEGA_ADDONS_PL_PATH.'includes/class.htmega-icon-manager.php' );
|
141 |
|
142 |
// Extension Assest Management
|
includes/helper-function.php
CHANGED
@@ -285,7 +285,7 @@ function htmega_ajax_login(){
|
|
285 |
} else {
|
286 |
echo json_encode( [ 'loggeauth'=>true, 'message'=> esc_html__('Login successfully, Redirecting...', 'htmega-addons') ] );
|
287 |
}
|
288 |
-
|
289 |
}
|
290 |
|
291 |
/*
|
285 |
} else {
|
286 |
echo json_encode( [ 'loggeauth'=>true, 'message'=> esc_html__('Login successfully, Redirecting...', 'htmega-addons') ] );
|
287 |
}
|
288 |
+
wp_die();
|
289 |
}
|
290 |
|
291 |
/*
|
includes/init.php
CHANGED
@@ -2,14 +2,11 @@
|
|
2 |
|
3 |
if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
4 |
|
5 |
-
if ( !
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
class Htmega_Elementor_Addons_Init{
|
10 |
|
11 |
private static $_instance = null;
|
12 |
-
|
13 |
public static function instance() {
|
14 |
if ( is_null( self::$_instance ) ) {
|
15 |
self::$_instance = new self();
|
@@ -18,37 +15,36 @@ if ( !class_exists( 'Htmega_Elementor_Addons_Init' ) ) {
|
|
18 |
}
|
19 |
|
20 |
public function __construct(){
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
add_action( 'elementor/
|
25 |
-
add_action( 'elementor/frontend/
|
26 |
-
add_action( 'elementor/frontend/
|
27 |
-
add_action( 'elementor/frontend/
|
28 |
-
add_action( '
|
29 |
-
add_action( 'wp_enqueue_scripts', array ( $this, 'htmega_default_scripts' ) );
|
30 |
-
|
31 |
}
|
32 |
|
33 |
-
//
|
34 |
-
public function
|
35 |
wp_enqueue_style( 'htbbootstrap' );
|
36 |
-
wp_enqueue_style('htmega-widgets',HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-widgets.css');
|
37 |
}
|
38 |
|
39 |
// Add Image size
|
40 |
-
public function
|
41 |
add_image_size( 'htmega_size_585x295', 585, 295, true );
|
42 |
add_image_size( 'htmega_size_1170x536', 1170, 536, true );
|
43 |
add_image_size( 'htmega_size_396x360', 396, 360, true );
|
44 |
}
|
45 |
|
46 |
-
|
|
|
47 |
wp_enqueue_style('htmega-element-editor', HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-elementor-editor.css', '', HTMEGA_VERSION );
|
48 |
}
|
49 |
|
50 |
// Register frontend style
|
51 |
-
public function
|
52 |
|
53 |
wp_register_style(
|
54 |
'htbbootstrap',
|
@@ -144,7 +140,7 @@ if ( !class_exists( 'Htmega_Elementor_Addons_Init' ) ) {
|
|
144 |
}
|
145 |
|
146 |
// Register frontend script
|
147 |
-
public function
|
148 |
|
149 |
$google_map_api_key = htmega_get_option('google_map_api_key','htmega_general_tabs');
|
150 |
|
@@ -361,7 +357,7 @@ if ( !class_exists( 'Htmega_Elementor_Addons_Init' ) ) {
|
|
361 |
}
|
362 |
|
363 |
// enqueue frontend style
|
364 |
-
public function
|
365 |
|
366 |
wp_enqueue_style( 'font-awesome' );
|
367 |
wp_enqueue_style( 'htmega-animation' );
|
@@ -375,7 +371,7 @@ if ( !class_exists( 'Htmega_Elementor_Addons_Init' ) ) {
|
|
375 |
}
|
376 |
|
377 |
// enqueue frontend scripts
|
378 |
-
public function
|
379 |
|
380 |
wp_enqueue_script( 'htmega-popper' );
|
381 |
wp_enqueue_script( 'htbbootstrap' );
|
@@ -384,6 +380,7 @@ if ( !class_exists( 'Htmega_Elementor_Addons_Init' ) ) {
|
|
384 |
}
|
385 |
|
386 |
}
|
387 |
-
|
|
|
388 |
|
389 |
}
|
2 |
|
3 |
if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
4 |
|
5 |
+
if ( !class_exists( 'HTMega_Elementor_Addons_Init' ) ) {
|
6 |
|
7 |
+
class HTMega_Elementor_Addons_Init{
|
|
|
|
|
8 |
|
9 |
private static $_instance = null;
|
|
|
10 |
public static function instance() {
|
11 |
if ( is_null( self::$_instance ) ) {
|
12 |
self::$_instance = new self();
|
15 |
}
|
16 |
|
17 |
public function __construct(){
|
18 |
+
add_action( 'init', [ $this, 'after_setup_theme' ] );
|
19 |
+
// All Scripts
|
20 |
+
add_action( 'elementor/editor/after_enqueue_styles', [ $this, 'editor_scripts' ] );
|
21 |
+
add_action( 'elementor/frontend/after_register_styles', [ $this, 'register_frontend_styles' ], 10 );
|
22 |
+
add_action( 'elementor/frontend/after_register_scripts', [ $this, 'register_fronted_scripts' ], 10 );
|
23 |
+
add_action( 'elementor/frontend/after_enqueue_styles', [ $this, 'enqueue_frontend_styles' ], 10 );
|
24 |
+
add_action( 'elementor/frontend/after_enqueue_scripts', [ $this, 'enqueue_frontend_scripts' ], 10 );
|
25 |
+
add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
|
|
|
|
|
26 |
}
|
27 |
|
28 |
+
// Enqueue Scripts
|
29 |
+
public function enqueue_scripts(){
|
30 |
wp_enqueue_style( 'htbbootstrap' );
|
31 |
+
wp_enqueue_style('htmega-widgets', HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-widgets.css');
|
32 |
}
|
33 |
|
34 |
// Add Image size
|
35 |
+
public function after_setup_theme() {
|
36 |
add_image_size( 'htmega_size_585x295', 585, 295, true );
|
37 |
add_image_size( 'htmega_size_1170x536', 1170, 536, true );
|
38 |
add_image_size( 'htmega_size_396x360', 396, 360, true );
|
39 |
}
|
40 |
|
41 |
+
// Editor Scripts
|
42 |
+
public function editor_scripts() {
|
43 |
wp_enqueue_style('htmega-element-editor', HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-elementor-editor.css', '', HTMEGA_VERSION );
|
44 |
}
|
45 |
|
46 |
// Register frontend style
|
47 |
+
public function register_frontend_styles(){
|
48 |
|
49 |
wp_register_style(
|
50 |
'htbbootstrap',
|
140 |
}
|
141 |
|
142 |
// Register frontend script
|
143 |
+
public function register_fronted_scripts(){
|
144 |
|
145 |
$google_map_api_key = htmega_get_option('google_map_api_key','htmega_general_tabs');
|
146 |
|
357 |
}
|
358 |
|
359 |
// enqueue frontend style
|
360 |
+
public function enqueue_frontend_styles(){
|
361 |
|
362 |
wp_enqueue_style( 'font-awesome' );
|
363 |
wp_enqueue_style( 'htmega-animation' );
|
371 |
}
|
372 |
|
373 |
// enqueue frontend scripts
|
374 |
+
public function enqueue_frontend_scripts(){
|
375 |
|
376 |
wp_enqueue_script( 'htmega-popper' );
|
377 |
wp_enqueue_script( 'htbbootstrap' );
|
380 |
}
|
381 |
|
382 |
}
|
383 |
+
|
384 |
+
HTMega_Elementor_Addons_Init::instance();
|
385 |
|
386 |
}
|
includes/widgets_control.php
CHANGED
@@ -1,525 +1,547 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
|
4 |
|
5 |
-
|
6 |
|
7 |
-
|
8 |
-
|
|
|
|
|
9 |
}
|
|
|
|
|
10 |
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
$carousel = htmega_get_option( 'carousel', 'htmega_element_tabs', 'on' );
|
25 |
-
$countdown = htmega_get_option( 'countdown', 'htmega_element_tabs', 'on' );
|
26 |
-
$counter = htmega_get_option( 'counter', 'htmega_element_tabs', 'on' );
|
27 |
-
$customevent = htmega_get_option( 'customevent', 'htmega_element_tabs', 'on' );
|
28 |
-
$dualbutton = htmega_get_option( 'dualbutton', 'htmega_element_tabs', 'on' );
|
29 |
-
$dropcaps = htmega_get_option( 'dropcaps', 'htmega_element_tabs', 'on' );
|
30 |
-
$flipbox = htmega_get_option( 'flipbox', 'htmega_element_tabs', 'on' );
|
31 |
-
$galleryjustify = htmega_get_option( 'galleryjustify', 'htmega_element_tabs', 'on' );
|
32 |
-
$googlemap = htmega_get_option( 'googlemap', 'htmega_element_tabs', 'on' );
|
33 |
-
$imagecomparison = htmega_get_option( 'imagecomparison', 'htmega_element_tabs', 'on' );
|
34 |
-
$imagegrid = htmega_get_option( 'imagegrid', 'htmega_element_tabs', 'on' );
|
35 |
-
$imagemagnifier = htmega_get_option( 'imagemagnifier', 'htmega_element_tabs', 'on' );
|
36 |
-
$imagemarker = htmega_get_option( 'imagemarker', 'htmega_element_tabs', 'on' );
|
37 |
-
$imagemasonry = htmega_get_option( 'imagemasonry', 'htmega_element_tabs', 'on' );
|
38 |
-
$inlinemenu = htmega_get_option( 'inlinemenu', 'htmega_element_tabs', 'on' );
|
39 |
-
$instagram = htmega_get_option( 'instagram', 'htmega_element_tabs', 'on' );
|
40 |
-
$lightbox = htmega_get_option( 'lightbox', 'htmega_element_tabs', 'on' );
|
41 |
-
$modal = htmega_get_option( 'modal', 'htmega_element_tabs', 'on' );
|
42 |
-
$newtsicker = htmega_get_option( 'newtsicker', 'htmega_element_tabs', 'on' );
|
43 |
-
$notify = htmega_get_option( 'notify', 'htmega_element_tabs', 'on' );
|
44 |
-
$offcanvas = htmega_get_option( 'offcanvas', 'htmega_element_tabs', 'on' );
|
45 |
-
$panelslider = htmega_get_option( 'panelslider', 'htmega_element_tabs', 'on' );
|
46 |
-
$popover = htmega_get_option( 'popover', 'htmega_element_tabs', 'on' );
|
47 |
-
$postcarousel = htmega_get_option( 'postcarousel', 'htmega_element_tabs', 'on' );
|
48 |
-
$postgrid = htmega_get_option( 'postgrid', 'htmega_element_tabs', 'on' );
|
49 |
-
$postgridtab = htmega_get_option( 'postgridtab', 'htmega_element_tabs', 'on' );
|
50 |
-
$postslider = htmega_get_option( 'postslider', 'htmega_element_tabs', 'on' );
|
51 |
-
$pricinglistview = htmega_get_option( 'pricinglistview', 'htmega_element_tabs', 'on' );
|
52 |
-
$pricingtable = htmega_get_option( 'pricingtable', 'htmega_element_tabs', 'on' );
|
53 |
-
$progressbar = htmega_get_option( 'progressbar', 'htmega_element_tabs', 'on' );
|
54 |
-
$scrollimage = htmega_get_option( 'scrollimage', 'htmega_element_tabs', 'on' );
|
55 |
-
$scrollnavigation = htmega_get_option( 'scrollnavigation', 'htmega_element_tabs', 'on' );
|
56 |
-
$search = htmega_get_option( 'search', 'htmega_element_tabs', 'on' );
|
57 |
-
$sectiontitle = htmega_get_option( 'sectiontitle', 'htmega_element_tabs', 'on' );
|
58 |
-
$service = htmega_get_option( 'service', 'htmega_element_tabs', 'on' );
|
59 |
-
$singlepost = htmega_get_option( 'singlepost', 'htmega_element_tabs', 'on' );
|
60 |
-
$thumbgallery = htmega_get_option( 'thumbgallery', 'htmega_element_tabs', 'on' );
|
61 |
-
$socialshere = htmega_get_option( 'socialshere', 'htmega_element_tabs', 'on' );
|
62 |
-
$switcher = htmega_get_option( 'switcher', 'htmega_element_tabs', 'on' );
|
63 |
-
$tabs = htmega_get_option( 'tabs', 'htmega_element_tabs', 'on' );
|
64 |
-
$datatable = htmega_get_option( 'datatable', 'htmega_element_tabs', 'on' );
|
65 |
-
$teammember = htmega_get_option( 'teammember', 'htmega_element_tabs', 'on' );
|
66 |
-
$testimonial = htmega_get_option( 'testimonial', 'htmega_element_tabs', 'on' );
|
67 |
-
$testimonialgrid = htmega_get_option( 'testimonialgrid', 'htmega_element_tabs', 'on' );
|
68 |
-
$toggle = htmega_get_option( 'toggle', 'htmega_element_tabs', 'on' );
|
69 |
-
$tooltip = htmega_get_option( 'tooltip', 'htmega_element_tabs', 'on' );
|
70 |
-
$twitterfeed = htmega_get_option( 'twitterfeed', 'htmega_element_tabs', 'on' );
|
71 |
-
$userloginform = htmega_get_option( 'userloginform', 'htmega_element_tabs', 'on' );
|
72 |
-
$userregisterform = htmega_get_option( 'userregisterform', 'htmega_element_tabs', 'on' );
|
73 |
-
$verticletimeline = htmega_get_option( 'verticletimeline', 'htmega_element_tabs', 'on' );
|
74 |
-
$videoplayer = htmega_get_option( 'videoplayer', 'htmega_element_tabs', 'on' );
|
75 |
-
$workingprocess = htmega_get_option( 'workingprocess', 'htmega_element_tabs', 'on' );
|
76 |
-
$errorcontent = htmega_get_option( 'errorcontent', 'htmega_element_tabs', 'on' );
|
77 |
|
78 |
-
|
79 |
-
|
80 |
-
$bbpress = htmega_get_option( 'bbpress', 'htmega_thirdparty_element_tabs', 'on' );
|
81 |
-
$bookedcalender = htmega_get_option( 'bookedcalender', 'htmega_thirdparty_element_tabs', 'on' );
|
82 |
-
$buddypress = htmega_get_option( 'buddypress', 'htmega_thirdparty_element_tabs', 'on' );
|
83 |
-
$calderaform = htmega_get_option( 'calderaform', 'htmega_thirdparty_element_tabs', 'on' );
|
84 |
-
$contactform = htmega_get_option( 'contactform', 'htmega_thirdparty_element_tabs', 'on' );
|
85 |
-
$downloadmonitor = htmega_get_option( 'downloadmonitor', 'htmega_thirdparty_element_tabs', 'on' );
|
86 |
-
$easydigitaldownload = htmega_get_option( 'easydigitaldownload', 'htmega_thirdparty_element_tabs', 'on' );
|
87 |
-
$gravityforms = htmega_get_option( 'gravityforms', 'htmega_thirdparty_element_tabs', 'on' );
|
88 |
-
$instragramfeed = htmega_get_option( 'instragramfeed', 'htmega_thirdparty_element_tabs', 'on' );
|
89 |
-
$jobmanager = htmega_get_option( 'jobmanager', 'htmega_thirdparty_element_tabs', 'on' );
|
90 |
-
$layerslider = htmega_get_option( 'layerslider', 'htmega_thirdparty_element_tabs', 'on' );
|
91 |
-
$mailchimpwp = htmega_get_option( 'mailchimpwp', 'htmega_thirdparty_element_tabs', 'on' );
|
92 |
-
$ninjaform = htmega_get_option( 'ninjaform', 'htmega_thirdparty_element_tabs', 'on' );
|
93 |
-
$quforms = htmega_get_option( 'quforms', 'htmega_thirdparty_element_tabs', 'on' );
|
94 |
-
$wpforms = htmega_get_option( 'wpforms', 'htmega_thirdparty_element_tabs', 'on' );
|
95 |
-
$revolution = htmega_get_option( 'revolution', 'htmega_thirdparty_element_tabs', 'on' );
|
96 |
-
$tablepress = htmega_get_option( 'tablepress', 'htmega_thirdparty_element_tabs', 'on' );
|
97 |
-
$wcaddtocart = htmega_get_option( 'wcaddtocart', 'htmega_thirdparty_element_tabs', 'on' );
|
98 |
-
$categories = htmega_get_option( 'categories', 'htmega_thirdparty_element_tabs', 'on' );
|
99 |
-
$wcpages = htmega_get_option( 'wcpages', 'htmega_thirdparty_element_tabs', 'on' );
|
100 |
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
-
|
109 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_button.php';
|
110 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Button() );
|
111 |
-
}
|
112 |
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_brand.php' ) && $brandlogo === 'on' ) {
|
144 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_brand.php';
|
145 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Brand() );
|
146 |
-
}
|
147 |
-
|
148 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_testimonial.php' ) && $testimonial === 'on' ) {
|
149 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_testimonial.php';
|
150 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Testimonial() );
|
151 |
-
}
|
152 |
-
|
153 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_user_login_form.php' ) && $userloginform === 'on' ) {
|
154 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_user_login_form.php';
|
155 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_User_Login_Form() );
|
156 |
-
}
|
157 |
-
|
158 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_user_register_form.php' ) && $userregisterform == 'on' ) {
|
159 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_user_register_form.php';
|
160 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_User_Register_Form() );
|
161 |
-
}
|
162 |
-
|
163 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_services.php' ) && $service === 'on' ) {
|
164 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_services.php';
|
165 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Service() );
|
166 |
-
}
|
167 |
-
|
168 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_news_ticker.php' ) && $newtsicker === 'on' ) {
|
169 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_news_ticker.php';
|
170 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Newsticker() );
|
171 |
-
}
|
172 |
-
|
173 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_socialshere.php' ) && $socialshere === 'on' ) {
|
174 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_socialshere.php';
|
175 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_SocialShere() );
|
176 |
-
}
|
177 |
-
|
178 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_lightbox.php' ) && $lightbox === 'on' ) {
|
179 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_lightbox.php';
|
180 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Lightbox() );
|
181 |
-
}
|
182 |
-
|
183 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_video_player.php' ) && $videoplayer === 'on' ) {
|
184 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_video_player.php';
|
185 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_VideoPlayer() );
|
186 |
-
}
|
187 |
-
|
188 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_search.php' ) && $search === 'on' ) {
|
189 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_search.php';
|
190 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Search() );
|
191 |
-
}
|
192 |
-
|
193 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_blockquote.php' ) && $blockquote === 'on' ) {
|
194 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_blockquote.php';
|
195 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Blockquote() );
|
196 |
-
}
|
197 |
-
|
198 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_instagram.php' ) && $instagram === 'on' ) {
|
199 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_instagram.php';
|
200 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Instagram() );
|
201 |
-
}
|
202 |
-
|
203 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_switcher.php' ) && $switcher === 'on' ) {
|
204 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_switcher.php';
|
205 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Switcher() );
|
206 |
-
}
|
207 |
-
|
208 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_tab.php' ) && $tabs === 'on' ) {
|
209 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_tab.php';
|
210 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Tabs() );
|
211 |
-
}
|
212 |
-
|
213 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_working_process.php' ) && $workingprocess === 'on' ) {
|
214 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_working_process.php';
|
215 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Working_Process() );
|
216 |
-
}
|
217 |
-
|
218 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_modal.php' ) && $modal === 'on' ) {
|
219 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_modal.php';
|
220 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Modal() );
|
221 |
-
}
|
222 |
-
|
223 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_flip-box.php' ) && $flipbox === 'on' ) {
|
224 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_flip-box.php';
|
225 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Flip_Box() );
|
226 |
-
}
|
227 |
-
|
228 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_tooltip.php' ) && $tooltip === 'on' ) {
|
229 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_tooltip.php';
|
230 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Tooltip() );
|
231 |
-
}
|
232 |
-
|
233 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_popover.php' ) && $popover === 'on' ) {
|
234 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_popover.php';
|
235 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Popover() );
|
236 |
-
}
|
237 |
-
|
238 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_toggle.php' ) && $toggle === 'on' ) {
|
239 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_toggle.php';
|
240 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Toggle() );
|
241 |
-
}
|
242 |
-
|
243 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_dropcaps.php' ) && $dropcaps === 'on' ) {
|
244 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_dropcaps.php';
|
245 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Dropcaps() );
|
246 |
-
}
|
247 |
-
|
248 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_notify.php' ) && $notify === 'on' ) {
|
249 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_notify.php';
|
250 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Notify() );
|
251 |
-
}
|
252 |
-
|
253 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_marker.php' ) && $imagemarker === 'on' ) {
|
254 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_marker.php';
|
255 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_ImageMarker() );
|
256 |
-
}
|
257 |
-
|
258 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_inline_menu.php' ) && $inlinemenu === 'on' ) {
|
259 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_inline_menu.php';
|
260 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_InlineMenu() );
|
261 |
-
}
|
262 |
-
|
263 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_404_content.php' ) && $errorcontent === 'on' ) {
|
264 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_404_content.php';
|
265 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_ErrorContent() );
|
266 |
-
}
|
267 |
-
|
268 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_counter.php' ) && $counter === 'on' ) {
|
269 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_counter.php';
|
270 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Counter() );
|
271 |
-
}
|
272 |
-
|
273 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_single_post.php' ) && $singlepost === 'on' ) {
|
274 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_single_post.php';
|
275 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_SinglePost() );
|
276 |
-
}
|
277 |
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_post_slider.php' ) && $postslider === 'on' ) {
|
284 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_post_slider.php';
|
285 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Post_Slider() );
|
286 |
-
}
|
287 |
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_testimonial_grid.php' ) && $testimonialgrid === 'on' ) {
|
319 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_testimonial_grid.php';
|
320 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Testimonial_Grid() );
|
321 |
-
}
|
322 |
-
|
323 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_scroll_navigation.php' ) && $scrollnavigation === 'on' ) {
|
324 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_scroll_navigation.php';
|
325 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Scroll_Navigation() );
|
326 |
-
}
|
327 |
-
|
328 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_call_to_action.php' ) && $calltoaction === 'on' ) {
|
329 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_call_to_action.php';
|
330 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Call_To_Action() );
|
331 |
-
}
|
332 |
-
|
333 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_twitter_feed.php' ) && $twitterfeed === 'on' ) {
|
334 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_twitter_feed.php';
|
335 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Twitter_Feed() );
|
336 |
-
}
|
337 |
-
|
338 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_carousel.php' ) && $carousel === 'on' ) {
|
339 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_carousel.php';
|
340 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Carousel() );
|
341 |
-
}
|
342 |
-
|
343 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_double_button.php' ) && $dualbutton === 'on' ) {
|
344 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_double_button.php';
|
345 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Double_Button() );
|
346 |
-
}
|
347 |
-
|
348 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_add_banner.php' ) && $addbanner === 'on' ) {
|
349 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_add_banner.php';
|
350 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Add_Banner() );
|
351 |
-
}
|
352 |
-
|
353 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_special_banner.php' ) && $specialadsbanner === 'on' ) {
|
354 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_special_banner.php';
|
355 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Special_day_Banner() );
|
356 |
-
}
|
357 |
-
|
358 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_comparison.php' ) && $imagecomparison === 'on' ) {
|
359 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_comparison.php';
|
360 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Image_Comparison() );
|
361 |
-
}
|
362 |
-
|
363 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_business_hours.php' ) && $businesshours === 'on' ) {
|
364 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_business_hours.php';
|
365 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Business_Hours() );
|
366 |
-
}
|
367 |
-
|
368 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_table.php' ) && $datatable === 'on' ) {
|
369 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_table.php';
|
370 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Data_Table() );
|
371 |
-
}
|
372 |
-
|
373 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_pricing_list_view.php' ) && $pricinglistview === 'on' ) {
|
374 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_pricing_list_view.php';
|
375 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Pricing_List_View() );
|
376 |
-
}
|
377 |
-
|
378 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_vertical_timeline.php' ) && $verticletimeline === 'on' ) {
|
379 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_vertical_timeline.php';
|
380 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Verticle_Time_Line() );
|
381 |
-
}
|
382 |
-
|
383 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_offcanvas.php' ) && $offcanvas === 'on' ) {
|
384 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_offcanvas.php';
|
385 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Offcanvas() );
|
386 |
-
}
|
387 |
-
|
388 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_animated_heading.php' ) && $animatesectiontitle === 'on' ) {
|
389 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_animated_heading.php';
|
390 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Animated_Heading() );
|
391 |
-
}
|
392 |
-
|
393 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_magnifier.php' ) && $imagemagnifier === 'on' ) {
|
394 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_magnifier.php';
|
395 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Image_Magnifier() );
|
396 |
-
}
|
397 |
-
|
398 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_panel_slider.php' ) && $panelslider === 'on' ) {
|
399 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_panel_slider.php';
|
400 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Panel_Slider() );
|
401 |
-
}
|
402 |
-
|
403 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_scroll_image.php' ) && $scrollimage === 'on' ) {
|
404 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_scroll_image.php';
|
405 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Scroll_Image() );
|
406 |
-
}
|
407 |
-
|
408 |
-
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_cuctom_event.php' ) && $customevent === 'on' ) {
|
409 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_cuctom_event.php';
|
410 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Custom_Event() );
|
411 |
-
}
|
412 |
-
|
413 |
-
// Thirdparty plugins Addons
|
414 |
-
if ( is_plugin_active('awesome-weather/awesome-weather.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_weather.php' ) && $weather === 'on' ) {
|
415 |
-
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_weather.php';
|
416 |
-
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Weather() );
|
417 |
-
}
|
418 |
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
505 |
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
510 |
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
|
|
|
|
|
|
|
521 |
}
|
522 |
-
}
|
523 |
|
|
|
524 |
}
|
525 |
-
|
|
|
|
1 |
<?php
|
2 |
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
|
4 |
|
5 |
+
class HTMega_Widgets_Control{
|
6 |
|
7 |
+
private static $instance = null;
|
8 |
+
public static function instance() {
|
9 |
+
if ( is_null( self::$instance ) ) {
|
10 |
+
self::$instance = new self();
|
11 |
}
|
12 |
+
return self::$instance;
|
13 |
+
}
|
14 |
|
15 |
+
public function __construct(){
|
16 |
+
// Register custom category
|
17 |
+
add_action( 'elementor/elements/categories_registered', [ $this, 'add_category' ] );
|
18 |
+
// Add Plugin actions
|
19 |
+
add_action( 'elementor/widgets/widgets_registered', [ $this, 'init_widgets' ] );
|
20 |
+
}
|
21 |
|
22 |
+
// Add custom category.
|
23 |
+
public function add_category( $elements_manager ) {
|
24 |
+
$elements_manager->add_category(
|
25 |
+
'htmega-addons',
|
26 |
+
[
|
27 |
+
'title' => __( 'HTMega Addons', 'htmega-addons' ),
|
28 |
+
'icon' => 'fa fa-snowflake',
|
29 |
+
]
|
30 |
+
);
|
31 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
+
// Controll Widgets
|
34 |
+
public function init_widgets(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
+
// On off check
|
37 |
+
$accordion = htmega_get_option( 'accordion', 'htmega_element_tabs', 'on' );
|
38 |
+
$animatesectiontitle = htmega_get_option( 'animatesectiontitle', 'htmega_element_tabs', 'on' );
|
39 |
+
$addbanner = htmega_get_option( 'addbanner', 'htmega_element_tabs', 'on' );
|
40 |
+
$specialadsbanner = htmega_get_option( 'specialadsbanner', 'htmega_element_tabs', 'on' );
|
41 |
+
$blockquote = htmega_get_option( 'blockquote', 'htmega_element_tabs', 'on' );
|
42 |
+
$brandlogo = htmega_get_option( 'brandlogo', 'htmega_element_tabs', 'on' );
|
43 |
+
$businesshours = htmega_get_option( 'businesshours', 'htmega_element_tabs', 'on' );
|
44 |
+
$button = htmega_get_option( 'button', 'htmega_element_tabs', 'on' );
|
45 |
+
$calltoaction = htmega_get_option( 'calltoaction', 'htmega_element_tabs', 'on' );
|
46 |
+
$carousel = htmega_get_option( 'carousel', 'htmega_element_tabs', 'on' );
|
47 |
+
$countdown = htmega_get_option( 'countdown', 'htmega_element_tabs', 'on' );
|
48 |
+
$counter = htmega_get_option( 'counter', 'htmega_element_tabs', 'on' );
|
49 |
+
$customevent = htmega_get_option( 'customevent', 'htmega_element_tabs', 'on' );
|
50 |
+
$dualbutton = htmega_get_option( 'dualbutton', 'htmega_element_tabs', 'on' );
|
51 |
+
$dropcaps = htmega_get_option( 'dropcaps', 'htmega_element_tabs', 'on' );
|
52 |
+
$flipbox = htmega_get_option( 'flipbox', 'htmega_element_tabs', 'on' );
|
53 |
+
$galleryjustify = htmega_get_option( 'galleryjustify', 'htmega_element_tabs', 'on' );
|
54 |
+
$googlemap = htmega_get_option( 'googlemap', 'htmega_element_tabs', 'on' );
|
55 |
+
$imagecomparison = htmega_get_option( 'imagecomparison', 'htmega_element_tabs', 'on' );
|
56 |
+
$imagegrid = htmega_get_option( 'imagegrid', 'htmega_element_tabs', 'on' );
|
57 |
+
$imagemagnifier = htmega_get_option( 'imagemagnifier', 'htmega_element_tabs', 'on' );
|
58 |
+
$imagemarker = htmega_get_option( 'imagemarker', 'htmega_element_tabs', 'on' );
|
59 |
+
$imagemasonry = htmega_get_option( 'imagemasonry', 'htmega_element_tabs', 'on' );
|
60 |
+
$inlinemenu = htmega_get_option( 'inlinemenu', 'htmega_element_tabs', 'on' );
|
61 |
+
$instagram = htmega_get_option( 'instagram', 'htmega_element_tabs', 'on' );
|
62 |
+
$lightbox = htmega_get_option( 'lightbox', 'htmega_element_tabs', 'on' );
|
63 |
+
$modal = htmega_get_option( 'modal', 'htmega_element_tabs', 'on' );
|
64 |
+
$newtsicker = htmega_get_option( 'newtsicker', 'htmega_element_tabs', 'on' );
|
65 |
+
$notify = htmega_get_option( 'notify', 'htmega_element_tabs', 'on' );
|
66 |
+
$offcanvas = htmega_get_option( 'offcanvas', 'htmega_element_tabs', 'on' );
|
67 |
+
$panelslider = htmega_get_option( 'panelslider', 'htmega_element_tabs', 'on' );
|
68 |
+
$popover = htmega_get_option( 'popover', 'htmega_element_tabs', 'on' );
|
69 |
+
$postcarousel = htmega_get_option( 'postcarousel', 'htmega_element_tabs', 'on' );
|
70 |
+
$postgrid = htmega_get_option( 'postgrid', 'htmega_element_tabs', 'on' );
|
71 |
+
$postgridtab = htmega_get_option( 'postgridtab', 'htmega_element_tabs', 'on' );
|
72 |
+
$postslider = htmega_get_option( 'postslider', 'htmega_element_tabs', 'on' );
|
73 |
+
$pricinglistview = htmega_get_option( 'pricinglistview', 'htmega_element_tabs', 'on' );
|
74 |
+
$pricingtable = htmega_get_option( 'pricingtable', 'htmega_element_tabs', 'on' );
|
75 |
+
$progressbar = htmega_get_option( 'progressbar', 'htmega_element_tabs', 'on' );
|
76 |
+
$scrollimage = htmega_get_option( 'scrollimage', 'htmega_element_tabs', 'on' );
|
77 |
+
$scrollnavigation = htmega_get_option( 'scrollnavigation', 'htmega_element_tabs', 'on' );
|
78 |
+
$search = htmega_get_option( 'search', 'htmega_element_tabs', 'on' );
|
79 |
+
$sectiontitle = htmega_get_option( 'sectiontitle', 'htmega_element_tabs', 'on' );
|
80 |
+
$service = htmega_get_option( 'service', 'htmega_element_tabs', 'on' );
|
81 |
+
$singlepost = htmega_get_option( 'singlepost', 'htmega_element_tabs', 'on' );
|
82 |
+
$thumbgallery = htmega_get_option( 'thumbgallery', 'htmega_element_tabs', 'on' );
|
83 |
+
$socialshere = htmega_get_option( 'socialshere', 'htmega_element_tabs', 'on' );
|
84 |
+
$switcher = htmega_get_option( 'switcher', 'htmega_element_tabs', 'on' );
|
85 |
+
$tabs = htmega_get_option( 'tabs', 'htmega_element_tabs', 'on' );
|
86 |
+
$datatable = htmega_get_option( 'datatable', 'htmega_element_tabs', 'on' );
|
87 |
+
$teammember = htmega_get_option( 'teammember', 'htmega_element_tabs', 'on' );
|
88 |
+
$testimonial = htmega_get_option( 'testimonial', 'htmega_element_tabs', 'on' );
|
89 |
+
$testimonialgrid = htmega_get_option( 'testimonialgrid', 'htmega_element_tabs', 'on' );
|
90 |
+
$toggle = htmega_get_option( 'toggle', 'htmega_element_tabs', 'on' );
|
91 |
+
$tooltip = htmega_get_option( 'tooltip', 'htmega_element_tabs', 'on' );
|
92 |
+
$twitterfeed = htmega_get_option( 'twitterfeed', 'htmega_element_tabs', 'on' );
|
93 |
+
$userloginform = htmega_get_option( 'userloginform', 'htmega_element_tabs', 'on' );
|
94 |
+
$userregisterform = htmega_get_option( 'userregisterform', 'htmega_element_tabs', 'on' );
|
95 |
+
$verticletimeline = htmega_get_option( 'verticletimeline', 'htmega_element_tabs', 'on' );
|
96 |
+
$videoplayer = htmega_get_option( 'videoplayer', 'htmega_element_tabs', 'on' );
|
97 |
+
$workingprocess = htmega_get_option( 'workingprocess', 'htmega_element_tabs', 'on' );
|
98 |
+
$errorcontent = htmega_get_option( 'errorcontent', 'htmega_element_tabs', 'on' );
|
99 |
|
100 |
+
// Third Party
|
101 |
+
$weather = htmega_get_option( 'weather', 'htmega_thirdparty_element_tabs', 'on' );
|
102 |
+
$bbpress = htmega_get_option( 'bbpress', 'htmega_thirdparty_element_tabs', 'on' );
|
103 |
+
$bookedcalender = htmega_get_option( 'bookedcalender', 'htmega_thirdparty_element_tabs', 'on' );
|
104 |
+
$buddypress = htmega_get_option( 'buddypress', 'htmega_thirdparty_element_tabs', 'on' );
|
105 |
+
$calderaform = htmega_get_option( 'calderaform', 'htmega_thirdparty_element_tabs', 'on' );
|
106 |
+
$contactform = htmega_get_option( 'contactform', 'htmega_thirdparty_element_tabs', 'on' );
|
107 |
+
$downloadmonitor = htmega_get_option( 'downloadmonitor', 'htmega_thirdparty_element_tabs', 'on' );
|
108 |
+
$easydigitaldownload = htmega_get_option( 'easydigitaldownload', 'htmega_thirdparty_element_tabs', 'on' );
|
109 |
+
$gravityforms = htmega_get_option( 'gravityforms', 'htmega_thirdparty_element_tabs', 'on' );
|
110 |
+
$instragramfeed = htmega_get_option( 'instragramfeed', 'htmega_thirdparty_element_tabs', 'on' );
|
111 |
+
$jobmanager = htmega_get_option( 'jobmanager', 'htmega_thirdparty_element_tabs', 'on' );
|
112 |
+
$layerslider = htmega_get_option( 'layerslider', 'htmega_thirdparty_element_tabs', 'on' );
|
113 |
+
$mailchimpwp = htmega_get_option( 'mailchimpwp', 'htmega_thirdparty_element_tabs', 'on' );
|
114 |
+
$ninjaform = htmega_get_option( 'ninjaform', 'htmega_thirdparty_element_tabs', 'on' );
|
115 |
+
$quforms = htmega_get_option( 'quforms', 'htmega_thirdparty_element_tabs', 'on' );
|
116 |
+
$wpforms = htmega_get_option( 'wpforms', 'htmega_thirdparty_element_tabs', 'on' );
|
117 |
+
$revolution = htmega_get_option( 'revolution', 'htmega_thirdparty_element_tabs', 'on' );
|
118 |
+
$tablepress = htmega_get_option( 'tablepress', 'htmega_thirdparty_element_tabs', 'on' );
|
119 |
+
$wcaddtocart = htmega_get_option( 'wcaddtocart', 'htmega_thirdparty_element_tabs', 'on' );
|
120 |
+
$categories = htmega_get_option( 'categories', 'htmega_thirdparty_element_tabs', 'on' );
|
121 |
+
$wcpages = htmega_get_option( 'wcpages', 'htmega_thirdparty_element_tabs', 'on' );
|
122 |
|
123 |
+
$widgets_manager = \Elementor\Plugin::instance()->widgets_manager;
|
|
|
|
|
|
|
124 |
|
125 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_section_title.php' ) && $sectiontitle === 'on' ) {
|
126 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_section_title.php';
|
127 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Section_Title() );
|
128 |
+
}
|
129 |
|
130 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_button.php' ) && $button === 'on' ) {
|
131 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_button.php';
|
132 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Button() );
|
133 |
+
}
|
134 |
|
135 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_accordion.php' ) && $accordion === 'on' ) {
|
136 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_accordion.php';
|
137 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Accordion() );
|
138 |
+
}
|
139 |
|
140 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_googlemap.php' ) && $googlemap === 'on' ) {
|
141 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_googlemap.php';
|
142 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_GoogleMap() );
|
143 |
+
}
|
144 |
|
145 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_progressbar.php' ) && $progressbar === 'on' ) {
|
146 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_progressbar.php';
|
147 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Progress_Bar() );
|
148 |
+
}
|
149 |
|
150 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_countdown.php' ) && $countdown === 'on' ) {
|
151 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_countdown.php';
|
152 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Countdown() );
|
153 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
|
155 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_teammember.php' ) && $teammember === 'on' ) {
|
156 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_teammember.php';
|
157 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_TeamMember() );
|
158 |
+
}
|
|
|
|
|
|
|
|
|
|
|
159 |
|
160 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_pricing_table.php' ) && $pricingtable === 'on' ) {
|
161 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_pricing_table.php';
|
162 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Pricing_Table() );
|
163 |
+
}
|
164 |
+
|
165 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_brand.php' ) && $brandlogo === 'on' ) {
|
166 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_brand.php';
|
167 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Brand() );
|
168 |
+
}
|
169 |
+
|
170 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_testimonial.php' ) && $testimonial === 'on' ) {
|
171 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_testimonial.php';
|
172 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Testimonial() );
|
173 |
+
}
|
174 |
+
|
175 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_user_login_form.php' ) && $userloginform === 'on' ) {
|
176 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_user_login_form.php';
|
177 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_User_Login_Form() );
|
178 |
+
}
|
179 |
+
|
180 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_user_register_form.php' ) && $userregisterform == 'on' ) {
|
181 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_user_register_form.php';
|
182 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_User_Register_Form() );
|
183 |
+
}
|
184 |
+
|
185 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_services.php' ) && $service === 'on' ) {
|
186 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_services.php';
|
187 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Service() );
|
188 |
+
}
|
189 |
+
|
190 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_news_ticker.php' ) && $newtsicker === 'on' ) {
|
191 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_news_ticker.php';
|
192 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Newsticker() );
|
193 |
+
}
|
194 |
+
|
195 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_socialshere.php' ) && $socialshere === 'on' ) {
|
196 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_socialshere.php';
|
197 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_SocialShere() );
|
198 |
+
}
|
199 |
+
|
200 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_lightbox.php' ) && $lightbox === 'on' ) {
|
201 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_lightbox.php';
|
202 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Lightbox() );
|
203 |
+
}
|
204 |
+
|
205 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_video_player.php' ) && $videoplayer === 'on' ) {
|
206 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_video_player.php';
|
207 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_VideoPlayer() );
|
208 |
+
}
|
209 |
+
|
210 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_search.php' ) && $search === 'on' ) {
|
211 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_search.php';
|
212 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Search() );
|
213 |
+
}
|
214 |
+
|
215 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_blockquote.php' ) && $blockquote === 'on' ) {
|
216 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_blockquote.php';
|
217 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Blockquote() );
|
218 |
+
}
|
219 |
+
|
220 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_instagram.php' ) && $instagram === 'on' ) {
|
221 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_instagram.php';
|
222 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Instagram() );
|
223 |
+
}
|
224 |
+
|
225 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_switcher.php' ) && $switcher === 'on' ) {
|
226 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_switcher.php';
|
227 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Switcher() );
|
228 |
+
}
|
229 |
+
|
230 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_tab.php' ) && $tabs === 'on' ) {
|
231 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_tab.php';
|
232 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Tabs() );
|
233 |
+
}
|
234 |
+
|
235 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_working_process.php' ) && $workingprocess === 'on' ) {
|
236 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_working_process.php';
|
237 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Working_Process() );
|
238 |
+
}
|
239 |
+
|
240 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_modal.php' ) && $modal === 'on' ) {
|
241 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_modal.php';
|
242 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Modal() );
|
243 |
+
}
|
244 |
+
|
245 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_flip-box.php' ) && $flipbox === 'on' ) {
|
246 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_flip-box.php';
|
247 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Flip_Box() );
|
248 |
+
}
|
249 |
+
|
250 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_tooltip.php' ) && $tooltip === 'on' ) {
|
251 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_tooltip.php';
|
252 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Tooltip() );
|
253 |
+
}
|
254 |
+
|
255 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_popover.php' ) && $popover === 'on' ) {
|
256 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_popover.php';
|
257 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Popover() );
|
258 |
+
}
|
259 |
+
|
260 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_toggle.php' ) && $toggle === 'on' ) {
|
261 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_toggle.php';
|
262 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Toggle() );
|
263 |
+
}
|
264 |
+
|
265 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_dropcaps.php' ) && $dropcaps === 'on' ) {
|
266 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_dropcaps.php';
|
267 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Dropcaps() );
|
268 |
+
}
|
269 |
+
|
270 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_notify.php' ) && $notify === 'on' ) {
|
271 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_notify.php';
|
272 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Notify() );
|
273 |
+
}
|
274 |
+
|
275 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_marker.php' ) && $imagemarker === 'on' ) {
|
276 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_marker.php';
|
277 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_ImageMarker() );
|
278 |
+
}
|
279 |
+
|
280 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_inline_menu.php' ) && $inlinemenu === 'on' ) {
|
281 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_inline_menu.php';
|
282 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_InlineMenu() );
|
283 |
+
}
|
284 |
+
|
285 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_404_content.php' ) && $errorcontent === 'on' ) {
|
286 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_404_content.php';
|
287 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_ErrorContent() );
|
288 |
+
}
|
289 |
+
|
290 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_counter.php' ) && $counter === 'on' ) {
|
291 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_counter.php';
|
292 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Counter() );
|
293 |
+
}
|
294 |
+
|
295 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_single_post.php' ) && $singlepost === 'on' ) {
|
296 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_single_post.php';
|
297 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_SinglePost() );
|
298 |
+
}
|
299 |
|
300 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_post_grid.php' ) && $postgrid === 'on' ) {
|
301 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_post_grid.php';
|
302 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_PostGrid() );
|
303 |
+
}
|
304 |
+
|
305 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_post_slider.php' ) && $postslider === 'on' ) {
|
306 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_post_slider.php';
|
307 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Post_Slider() );
|
308 |
+
}
|
309 |
|
310 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_post_grid_tab.php' ) && $postgridtab === 'on' ) {
|
311 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_post_grid_tab.php';
|
312 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Post_Grid_Tab() );
|
313 |
+
}
|
314 |
|
315 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_post_carousel.php' ) && $postcarousel === 'on' ) {
|
316 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_post_carousel.php';
|
317 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Post_Carousel() );
|
318 |
+
}
|
319 |
+
|
320 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_grid.php' ) && $imagegrid === 'on' ) {
|
321 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_grid.php';
|
322 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Image_Grid() );
|
323 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
324 |
|
325 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_masonry.php' ) && $imagemasonry === 'on' ) {
|
326 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_masonry.php';
|
327 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Image_Masonry() );
|
328 |
+
}
|
329 |
+
|
330 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_gallery_justify.php' ) && $galleryjustify === 'on' ) {
|
331 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_gallery_justify.php';
|
332 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Gallery_Justify() );
|
333 |
+
}
|
334 |
+
|
335 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_slider_thumb_gallery.php' ) && $thumbgallery === 'on' ) {
|
336 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_slider_thumb_gallery.php';
|
337 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Slider_Thumb_Gallery() );
|
338 |
+
}
|
339 |
+
|
340 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_testimonial_grid.php' ) && $testimonialgrid === 'on' ) {
|
341 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_testimonial_grid.php';
|
342 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Testimonial_Grid() );
|
343 |
+
}
|
344 |
+
|
345 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_scroll_navigation.php' ) && $scrollnavigation === 'on' ) {
|
346 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_scroll_navigation.php';
|
347 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Scroll_Navigation() );
|
348 |
+
}
|
349 |
+
|
350 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_call_to_action.php' ) && $calltoaction === 'on' ) {
|
351 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_call_to_action.php';
|
352 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Call_To_Action() );
|
353 |
+
}
|
354 |
+
|
355 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_twitter_feed.php' ) && $twitterfeed === 'on' ) {
|
356 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_twitter_feed.php';
|
357 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Twitter_Feed() );
|
358 |
+
}
|
359 |
+
|
360 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_carousel.php' ) && $carousel === 'on' ) {
|
361 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_carousel.php';
|
362 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Carousel() );
|
363 |
+
}
|
364 |
+
|
365 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_double_button.php' ) && $dualbutton === 'on' ) {
|
366 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_double_button.php';
|
367 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Double_Button() );
|
368 |
+
}
|
369 |
+
|
370 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_add_banner.php' ) && $addbanner === 'on' ) {
|
371 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_add_banner.php';
|
372 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Add_Banner() );
|
373 |
+
}
|
374 |
+
|
375 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_special_banner.php' ) && $specialadsbanner === 'on' ) {
|
376 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_special_banner.php';
|
377 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Special_day_Banner() );
|
378 |
+
}
|
379 |
+
|
380 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_comparison.php' ) && $imagecomparison === 'on' ) {
|
381 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_comparison.php';
|
382 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Image_Comparison() );
|
383 |
+
}
|
384 |
+
|
385 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_business_hours.php' ) && $businesshours === 'on' ) {
|
386 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_business_hours.php';
|
387 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Business_Hours() );
|
388 |
+
}
|
389 |
+
|
390 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_table.php' ) && $datatable === 'on' ) {
|
391 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_table.php';
|
392 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Data_Table() );
|
393 |
+
}
|
394 |
+
|
395 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_pricing_list_view.php' ) && $pricinglistview === 'on' ) {
|
396 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_pricing_list_view.php';
|
397 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Pricing_List_View() );
|
398 |
+
}
|
399 |
+
|
400 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_vertical_timeline.php' ) && $verticletimeline === 'on' ) {
|
401 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_vertical_timeline.php';
|
402 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Verticle_Time_Line() );
|
403 |
+
}
|
404 |
+
|
405 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_offcanvas.php' ) && $offcanvas === 'on' ) {
|
406 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_offcanvas.php';
|
407 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Offcanvas() );
|
408 |
+
}
|
409 |
+
|
410 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_animated_heading.php' ) && $animatesectiontitle === 'on' ) {
|
411 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_animated_heading.php';
|
412 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Animated_Heading() );
|
413 |
+
}
|
414 |
+
|
415 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_magnifier.php' ) && $imagemagnifier === 'on' ) {
|
416 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_image_magnifier.php';
|
417 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Image_Magnifier() );
|
418 |
+
}
|
419 |
+
|
420 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_panel_slider.php' ) && $panelslider === 'on' ) {
|
421 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_panel_slider.php';
|
422 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Panel_Slider() );
|
423 |
+
}
|
424 |
+
|
425 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_scroll_image.php' ) && $scrollimage === 'on' ) {
|
426 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_scroll_image.php';
|
427 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Scroll_Image() );
|
428 |
+
}
|
429 |
+
|
430 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_cuctom_event.php' ) && $customevent === 'on' ) {
|
431 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_cuctom_event.php';
|
432 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Custom_Event() );
|
433 |
+
}
|
434 |
+
|
435 |
+
// Thirdparty plugins Addons
|
436 |
+
if ( is_plugin_active('awesome-weather/awesome-weather.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_weather.php' ) && $weather === 'on' ) {
|
437 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_weather.php';
|
438 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Weather() );
|
439 |
+
}
|
440 |
|
441 |
+
if ( is_plugin_active('mailchimp-for-wp/mailchimp-for-wp.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_mailchimp_for_wp.php' ) && $mailchimpwp === 'on' ) {
|
442 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_mailchimp_for_wp.php';
|
443 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Mailchimp_Wp() );
|
444 |
+
}
|
445 |
+
|
446 |
+
if ( is_plugin_active('contact-form-7/wp-contact-form-7.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_contact_form_seven.php' ) && $contactform === 'on' ) {
|
447 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_contact_form_seven.php';
|
448 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Contact_Form_Seven() );
|
449 |
+
}
|
450 |
+
|
451 |
+
if ( is_plugin_active('booked/booked.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_booked_calender.php' ) && $bookedcalender === 'on' ) {
|
452 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_booked_calender.php';
|
453 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Booked_Calender() );
|
454 |
+
}
|
455 |
+
|
456 |
+
if ( is_plugin_active('caldera-forms/caldera-core.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_caldera_forms.php' ) && $calderaform === 'on' ) {
|
457 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_caldera_forms.php';
|
458 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Caldera_Form() );
|
459 |
+
}
|
460 |
+
|
461 |
+
if ( is_plugin_active('download-monitor/download-monitor.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_download_monitor.php' ) && $downloadmonitor === 'on' ) {
|
462 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_download_monitor.php';
|
463 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Download_Monitor() );
|
464 |
+
}
|
465 |
+
|
466 |
+
if ( is_plugin_active('instagram-feed/instagram-feed.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_instagram_feed.php' ) && $instragramfeed === 'on' ) {
|
467 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_instagram_feed.php';
|
468 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Instragram_Feed() );
|
469 |
+
}
|
470 |
+
|
471 |
+
if ( is_plugin_active('revslider/revslider.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_revolution_slider.php' ) && $revolution === 'on' ) {
|
472 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_revolution_slider.php';
|
473 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Revolution_Slider() );
|
474 |
+
}
|
475 |
+
|
476 |
+
if ( is_plugin_active('bbpress/bbpress.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_bbpress.php' ) && $bbpress === 'on' ) {
|
477 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_bbpress.php';
|
478 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Bbpress() );
|
479 |
+
}
|
480 |
+
|
481 |
+
if ( is_plugin_active('easy-digital-downloads/easy-digital-downloads.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_easy_digital_download.php' ) && $easydigitaldownload === 'on' ) {
|
482 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_easy_digital_download.php';
|
483 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Easy_Digital_Download() );
|
484 |
+
}
|
485 |
+
|
486 |
+
if ( is_plugin_active('gravityforms/gravityforms.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_gravity_forms.php' ) && $gravityforms === 'on' ) {
|
487 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_gravity_forms.php';
|
488 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Gravity_Forms() );
|
489 |
+
}
|
490 |
+
|
491 |
+
if ( is_plugin_active('tablepress/tablepress.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_tablepress.php' ) && $tablepress === 'on' ) {
|
492 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_tablepress.php';
|
493 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Tablepress() );
|
494 |
+
}
|
495 |
+
|
496 |
+
if ( is_plugin_active('LayerSlider/layerslider.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_layer_slider.php' ) && $layerslider === 'on' ) {
|
497 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_layer_slider.php';
|
498 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Layer_Slider() );
|
499 |
+
}
|
500 |
+
|
501 |
+
if ( is_plugin_active('wpforms-lite/wpforms.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_wpforms.php' ) && $wpforms === 'on' ) {
|
502 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_wpforms.php';
|
503 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_WPforms() );
|
504 |
+
}
|
505 |
+
|
506 |
+
if ( is_plugin_active('quform/quform.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_qu_forms.php' ) && $quforms === 'on' ) {
|
507 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_qu_forms.php';
|
508 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_QUforms() );
|
509 |
+
}
|
510 |
+
|
511 |
+
if ( is_plugin_active('ninja-forms/ninja-forms.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_ninja_forms.php' ) && $ninjaform === 'on' ) {
|
512 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_ninja_forms.php';
|
513 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Ninja_Form() );
|
514 |
+
}
|
515 |
+
|
516 |
+
if ( is_plugin_active('buddypress/bp-loader.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_buddy_press.php' ) && $buddypress === 'on' ) {
|
517 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_buddy_press.php';
|
518 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Buddy_Press() );
|
519 |
+
}
|
520 |
+
|
521 |
+
if ( is_plugin_active('wp-job-manager/wp-job-manager.php') && file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_job_manager.php' ) && $jobmanager === 'on' ) {
|
522 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_job_manager.php';
|
523 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_Job_Manager() );
|
524 |
+
}
|
525 |
+
|
526 |
+
if( is_plugin_active('woocommerce/woocommerce.php') ) {
|
527 |
|
528 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_wc_add_to_cart.php' ) && $wcaddtocart === 'on' ) {
|
529 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_wc_add_to_cart.php';
|
530 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_WC_Add_to_Cart() );
|
531 |
+
}
|
532 |
|
533 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_wc_element_pages.php' ) && $wcpages === 'on' ) {
|
534 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_wc_element_pages.php';
|
535 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_WC_Element_Pages() );
|
536 |
+
}
|
537 |
|
538 |
+
if ( file_exists( HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_wc_categories.php' ) && $categories === 'on' ) {
|
539 |
+
require_once HTMEGA_ADDONS_PL_PATH.'includes/widgets/htmega_wc_categories.php';
|
540 |
+
$widgets_manager->register_widget_type( new \Elementor\HTMega_Elementor_Widget_WC_Categories() );
|
541 |
}
|
|
|
542 |
|
543 |
+
}
|
544 |
}
|
545 |
+
|
546 |
+
}
|
547 |
+
HTMega_Widgets_Control::instance();
|
index.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
<?php
|
2 |
// Direct access security
|
3 |
-
|
1 |
<?php
|
2 |
// Direct access security
|
3 |
+
wp_die();
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: hasthemes, htplugins, devitemsllc
|
3 |
Tags: Elementor, Elementor Addons, Elementor Widgets, elementor page builder, Elementor Blocks
|
4 |
Requires at least: 4.7
|
5 |
-
Tested up to: 5.3
|
6 |
-
Stable tag: 1.3.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -179,6 +179,9 @@ August 05 - 2019:
|
|
179 |
|
180 |
== Changelog ==
|
181 |
|
|
|
|
|
|
|
182 |
= Version: 1.3.2 - Date: 2019-11-24 =
|
183 |
* Post grid title length options added.
|
184 |
* Newsticker Style Issue Solved.
|
2 |
Contributors: hasthemes, htplugins, devitemsllc
|
3 |
Tags: Elementor, Elementor Addons, Elementor Widgets, elementor page builder, Elementor Blocks
|
4 |
Requires at least: 4.7
|
5 |
+
Tested up to: 5.3.2
|
6 |
+
Stable tag: 1.3.3
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
179 |
|
180 |
== Changelog ==
|
181 |
|
182 |
+
= Version: 1.3.3 - Date: 2019-12-30 =
|
183 |
+
* Setting Page Redirect Issue Solved.
|
184 |
+
|
185 |
= Version: 1.3.2 - Date: 2019-11-24 =
|
186 |
* Post grid title length options added.
|
187 |
* Newsticker Style Issue Solved.
|