| Server IP : 192.241.186.36 / Your IP : 216.73.216.164 Web Server : Apache/2.4.29 (Ubuntu) System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64 User : root ( 0) PHP Version : 7.4.32 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/pushyard/wp-content/plugins/th-widget-pack/ |
Upload File : |
<?php
/**
* Plugin Name: Page Builder Widget Pack
* Version: 2.1.14
* Plugin URI: themovation.com
* Description: A widget pack for the Elementor Page Builder
* Author: Themovation
* Author URI: themovation.com
* Text Domain: th-widget-pack
* Domain Path: /languages/
* License: GPL v3
*/
define( 'THEMO_VERSION', '2.1.14' );
define( 'THEMO__FILE__', __FILE__ );
define( 'THEMO_PLUGIN_BASE', plugin_basename( THEMO__FILE__ ) );
define( 'THEMO_URL', plugins_url( '/', THEMO__FILE__ ) );
define( 'THEMO_PATH', plugin_dir_path( THEMO__FILE__ ) );
define( 'THEMO_ASSETS_PATH', THEMO_PATH . 'assets/' );
define( 'THEMO_ASSETS_URL', THEMO_URL . 'assets/' );
define( 'THEMO_COLOR_PRIMARY', '#3A3B74' );
define( 'THEMO_COLOR_ACCENT', '#F6C15E' );
define( 'ENABLE_BLOCK_LIBRARY', true );
/**
* Define Elementor Partner ID
*/
if ( ! defined( 'ELEMENTOR_PARTNER_ID' ) ) {
define( 'ELEMENTOR_PARTNER_ID', 2129 );
}
$th_theme = wp_get_theme(); // get theme info and save theme name as constant.
if($th_theme->get( 'Name' ) > ""){
$th_theme_name_arr = explode("-", $th_theme->get( 'Name' ), 2); // clean up child theme name
$th_theme_name_arr2 = explode(" ", trim($th_theme_name_arr[0]), 2); // clean up child theme name
$th_theme_name = trim(strtolower($th_theme_name_arr2[0]));
define( "THEMO_CURRENT_THEME", $th_theme_name );
};
if(defined('ELEMENTOR_PATH')){
// Run Setup
require_once THEMO_PATH . 'inc/setup.php';
}
// Making the plugin translation ready
if ( ! function_exists( 'th_translation_ready' ) ) :
function th_translation_ready() {
$locale = apply_filters('plugin_locale', get_locale(), "th-widget-pack");
load_textdomain("th-widget-pack", WP_LANG_DIR.'/th-widget-pack/'.'th-widget-pack'.'-'.$locale.'.mo');
load_plugin_textdomain( 'th-widget-pack', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
}
endif;
add_action( 'plugins_loaded', 'th_translation_ready' );
/**
* Load the header footer class loader.
*/
require_once THEMO_PATH . 'header-footer/inc/class-header-footer-elementor.php';
/**
* Load the Plugin Class.
*/
function thmv_hfe_init() {
THHF_Header_Footer_Elementor::instance();
}
add_action( 'plugins_loaded', 'thmv_hfe_init' );
// Enable white label for HFE and deactivate analytics tracking.
function thmv_set_white_label_opt(){
$thmv_white_label_opt = array("option" => true);
return $thmv_white_label_opt;
}
add_filter( 'bsf_white_label_options', 'thmv_set_white_label_opt' );