PluginProbe
ThemeHunk Customizer / 2.7.8
ThemeHunk Customizer v2.7.8
trunk 1.2.8 1.2.9 1.8.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7.2 2.7.3 All 36 releases
themehunk-customizer / themehunk-customizer.php

themehunk-customizer.php in ThemeHunk Customizer 2.7.8, at themehunk-customizer.php

105 lines 4.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: ThemeHunk Customizer
4 Description: With the help of ThemeHunk unlimited addon you can add unlimited number of columns for services, Testimonial, and Team with color options for each.
5 Version: 2.7.8
6 Author: ThemeHunk
7 Text Domain: themehunk-customizer
8 Author URI: http://www.themehunk.com/
9 */
10 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11
12 // Version constant for easy CSS refreshes
13 define('THEMEHUNK_CUSTOMIZER_VERSION', '2.7.9');
14 define('THEMEHUNK_CUSTOMIZER_PLUGIN_URL', plugin_dir_url(__FILE__));
15 define('THEMEHUNK_CUSTOMIZER_PLUGIN_PATH', plugin_dir_path(__FILE__) );
16 include_once(plugin_dir_path(__FILE__) . 'notify/notify.php' );
17 function themehunk_customizer_text_domain(){
18 $theme = wp_get_theme();
19 $themeArr=array();
20 $themeArr[] = $theme->get( 'TextDomain' );
21 $themeArr[] = $theme->get( 'Template' );
22 return $themeArr;
23 }
24
25 $theme = themehunk_customizer_text_domain();
26 if(in_array("oneline-lite", $theme)){
27 include_once( plugin_dir_path(__FILE__) . 'oneline-lite/demo/import-data.php' );
28 }elseif(in_array("shopline", $theme)){
29 include_once( plugin_dir_path(__FILE__) . 'shopline/demo/import-shopline-data.php');
30 }elseif(in_array("featuredlite", $theme)){
31 include_once( plugin_dir_path(__FILE__) . 'featuredlite/demo/import-data.php');
32 }elseif(in_array("big-store", $theme)){
33 include_once( plugin_dir_path(__FILE__) . 'big-store/demo/import.php' );
34 }elseif(in_array("m-shop", $theme)){
35 include_once( plugin_dir_path(__FILE__) . 'm-shop/demo/import.php' );
36 }
37 elseif(in_array("jot-shop", $theme)){
38 register_activation_hook( __FILE__, 'jot_shop_pro_deactivate' );
39 include_once( plugin_dir_path(__FILE__) . 'jot-shop/demo/import.php' );
40 }
41 elseif(in_array("amaz-store", $theme)){
42 register_activation_hook( __FILE__, 'themehunk_pro_plugin_deactivate' );
43 include_once( plugin_dir_path(__FILE__) . 'amaz-store/demo/import.php' );
44 }
45
46 function jot_shop_pro_deactivate() {
47 require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
48 deactivate_plugins( plugin_basename('jot-shop-pro/jot-shop-pro.php' ) );
49
50 }
51 function themehunk_pro_plugin_deactivate(){
52 $theme = themehunk_customizer_text_domain();
53 $theme_name = $theme[0];
54 require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
55 deactivate_plugins( plugin_basename($theme_name.'-pro/'.$theme_name.'-pro.php' ) );
56 }
57 function themehunk_customizer_load_file(){
58 include_once(plugin_dir_path(__FILE__) . 'themehunk/customizer-font-selector/class/class-oneline-font-selector.php' );
59 include_once(plugin_dir_path(__FILE__) . 'themehunk/customizer-range-value/class/class-oneline-customizer-range-value-control.php' );
60 $font_selector_functions = plugin_dir_path(__FILE__) . 'themehunk/customizer-font-selector/functions.php';
61 if ( file_exists( $font_selector_functions ) ){
62 include_once( $font_selector_functions );
63 }
64 }
65
66 add_action('after_setup_theme', 'themehunk_customizer_load_plugin');
67 function themehunk_customizer_load_plugin() {
68 include_once( plugin_dir_path(__FILE__) . 'themehunk/widget.php' );
69 include_once( plugin_dir_path(__FILE__) . 'themehunk/custom-customizer.php' );
70 include_once( plugin_dir_path(__FILE__) . 'themehunk/color-picker/color-picker.php' );
71 $theme = themehunk_customizer_text_domain();
72 if(in_array("oneline-lite", $theme)){
73 add_action('widgets_init', 'themehunk_customizer_widgets_init');
74 include_once( plugin_dir_path(__FILE__) . 'oneline-lite/include.php' );
75
76 }elseif(in_array("featuredlite", $theme)){
77 add_action('widgets_init', 'themehunk_customizer_widgets_init');
78 include_once( plugin_dir_path(__FILE__) . 'featuredlite/include.php' );
79 }elseif(in_array("shopline", $theme)){
80
81 include_once( plugin_dir_path(__FILE__) . 'shopline/include.php' );
82 include_once(plugin_dir_path(__FILE__) . 'themehunk/customizer-tabs/class/class-themehunk-customize-control-tabs.php' );
83 include_once(plugin_dir_path(__FILE__) . 'themehunk/customizer-radio-image/class/class-themehunk-customize-control-radio-image.php' );
84 include_once(plugin_dir_path(__FILE__) . 'themehunk/customizer-scroll/class/class-themehunk-customize-control-scroll.php' );
85 themehunk_customizer_load_file();
86
87
88 }elseif(in_array("elanzalite", $theme)){
89 themehunk_customizer_load_file();
90 include_once( plugin_dir_path(__FILE__) . 'elanzalite/include.php' );
91 }
92 elseif(in_array("big-store", $theme)){
93 include_once( plugin_dir_path(__FILE__) . 'big-store/include.php' );
94 }
95 elseif(in_array("m-shop", $theme)){
96 include_once( plugin_dir_path(__FILE__) . 'm-shop/include.php' );
97 }
98 elseif(in_array("jot-shop", $theme)){
99 include_once( plugin_dir_path(__FILE__) . 'jot-shop/include.php' );
100 }
101 elseif(in_array("amaz-store", $theme)){
102 include_once( plugin_dir_path(__FILE__) . 'amaz-store/include.php' );
103 }
104 }
105 ?>