D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ltfsolutionsco
/
www
/
wp-content
/
plugins
/
fusion-builder
/
inc
/
lib
/
Filename :
fusion-library.php
back
Copy
<?php /** * Loads common Fusion libraries. * * Plugin Name: Fusion Library * * @package Fusion-Library * @version 2.1 */ // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'Direct script access denied.' ); } if ( ! defined( 'FUSION_LIBRARY_DEV_MODE' ) ) { define( 'FUSION_LIBRARY_DEV_MODE', false ); } // Don't use a constant, we need this as a simple var. $current_version = '2.1'; global $fusion_library_latest_version; if ( ! $fusion_library_latest_version ) { $fusion_library_latest_version = $current_version; } if ( $current_version !== $fusion_library_latest_version && version_compare( $current_version, $fusion_library_latest_version ) >= 0 ) { $fusion_library_latest_version = $current_version; } $current_dir = dirname( __FILE__ ); // Autoloader. if ( ! class_exists( 'Fusion_Library_Autoloader' ) ) { include_once dirname( __FILE__ ) . '/inc/class-fusion-library-autoloader.php'; } Fusion_Library_Autoloader::add_location( $current_dir, $current_version ); Fusion_Library_Autoloader::get_instance(); // Define the path. // Will be used to load other files. if ( ! defined( 'FUSION_LIBRARY_PATH' ) ) { $dirname = dirname( __FILE__ ); $dirname = wp_normalize_path( $dirname ); define( 'FUSION_LIBRARY_PATH', $dirname ); } if ( ! defined( 'FUSION_LIBRARY_URL' ) ) { if ( defined( 'AVADA_VERSION' ) ) { $fusion_library_url = get_template_directory_uri() . '/includes/lib'; } elseif ( defined( 'FUSION_BUILDER_PLUGIN_URL' ) ) { $fusion_library_url = FUSION_BUILDER_PLUGIN_URL . 'inc/lib'; } else { $dir = dirname( __FILE__ ); $dir = wp_normalize_path( $dir ); // Current directory. $dir_array = explode( '/', $dir ); $path_length = count( $dir_array ); if ( 4 < $path_length ) { for ( $i = 1; $i < 5; $i++ ) { unset( $dir_array[ $path_length - $i ] ); } $wp_content_dir = implode( '/', $dir_array ); } else { $wp_content_dir = wp_normalize_path( WP_CONTENT_DIR ); } $wp_content_url = content_url(); $link = str_replace( $wp_content_dir, $wp_content_url, $dir ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride $scheme = ( ( isset( $_SERVER['HTTPS'] ) && 'on' === $_SERVER['HTTPS'] ) || is_ssl() ) ? 'https' : 'http'; $fusion_library_url = set_url_scheme( $link, $scheme ); } define( 'FUSION_LIBRARY_URL', $fusion_library_url ); } require_once FUSION_LIBRARY_PATH . '/inc/fusion-app/compat.php'; // Include functions. require_once FUSION_LIBRARY_PATH . '/inc/functions.php'; require_once FUSION_LIBRARY_PATH . '/inc/fusion-icon.php'; if ( file_exists( FUSION_LIBRARY_PATH . '/inc/wc-functions.php' ) ) { include_once FUSION_LIBRARY_PATH . '/inc/wc-functions.php'; } // Include helper functions. if ( file_exists( FUSION_LIBRARY_PATH . '/inc/fusion-app/helpers.php' ) ) { include_once FUSION_LIBRARY_PATH . '/inc/fusion-app/helpers.php'; } // Set fusion_library global if not already set. global $fusion_library; if ( ! $fusion_library ) { $fusion_library = Fusion::get_instance(); } // Include customizer. if ( file_exists( FUSION_LIBRARY_PATH . '/inc/customizer/customizer.php' ) ) { include_once FUSION_LIBRARY_PATH . '/inc/customizer/customizer.php'; } // Include Fusion app. if ( file_exists( FUSION_LIBRARY_PATH . '/inc/fusion-app/fusion-app.php' ) ) { include_once FUSION_LIBRARY_PATH . '/inc/fusion-app/fusion-app.php'; }
Name
Size
Last Modified
Owner
Permissions
Actions
assets
Dir
May 15 2023 2:21:53
ltfsolutionsco
0755
inc
Dir
May 15 2023 2:21:53
ltfsolutionsco
0755
.htaccess
0.193
KB
June 03 2023 12:31:14
ltfsolutionsco
0644
README.md
0.086
KB
October 23 2019 10:16:08
ltfsolutionsco
0755
fusion-library.php
3.283
KB
October 23 2019 10:16:08
ltfsolutionsco
0755
2017 © D7net | D704T team