编辑:fusion-library.php
<?php /** * Loads common Fusion libraries. * * Plugin Name: Fusion Library * Description: The Avada Website Builder is the ultimate design and creation suite. Design Anything, Build Everything, Fast. The #1 selling product of all time on ThemeForest. * Plugin URI: https://avada.com * Author: ThemeFusion * Author URI: https://themeforest.net/user/ThemeFusion * License: Themeforest Split Licence * Version: 3.15.6 * Requires PHP: 7.2 * Requires at least: 5.7 * Text Domain: Avada * * @package Fusion-Library */ // 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 ); } if ( ! defined( 'FUSION_UPDATES_URL' ) ) { define( 'FUSION_UPDATES_URL', 'https://updates.theme-fusion.com' ); } // Don't use a constant, we need this as a simple var. $current_version = '3.15.6'; global $fusion_library_latest_version; if ( ! $fusion_library_latest_version || version_compare( $current_version, $fusion_library_latest_version ) >= 0 ) { $fusion_library_latest_version = $current_version; } $dirname = wp_normalize_path( dirname( __FILE__ ) ); // Autoloader. if ( ! class_exists( 'Fusion_Library_Autoloader' ) ) { include_once $dirname . '/inc/class-fusion-library-autoloader.php'; } Fusion_Library_Autoloader::add_location( $dirname, $current_version ); Fusion_Library_Autoloader::get_instance(); // Define the path. // Will be used to load other files. if ( ! defined( 'FUSION_LIBRARY_PATH' ) ) { 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_array = explode( '/', $dirname ); $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, $dirname ); // 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'; // 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_library(); } // 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'; } // Include Custom Icons. if ( file_exists( FUSION_LIBRARY_PATH . '/inc/custom-icons/custom-icons.php' ) ) { include_once FUSION_LIBRARY_PATH . '/inc/custom-icons/custom-icons.php'; }
保存文件
位置:
home
/
londongranite
/
public_html
/
wp-content
/
themes
/
Avada
/
includes
/
lib
批量上传
创建
创建
批量权限
批量删除
名称
权限
大小
修改时间
操作
↑ 返回上级
-
-
-
-
assets
drwxr-xr-x
-
2026-07-29 18:04
权限
删除
重命名
inc
drwxr-xr-x
-
2026-08-16 22:30
权限
删除
重命名
.stylelintignore
-rw-r--r--
45 B
2026-07-29 18:04
编辑
下载
权限
删除
重命名
.stylelintrc.json
-rw-r--r--
560 B
2026-07-29 18:04
编辑
下载
权限
删除
重命名
README.md
-rw-r--r--
88 B
2026-07-29 18:04
编辑
下载
权限
删除
重命名
fusion-library.php
-rw-r--r--
3.4 KB
2026-07-29 18:04
编辑
下载
权限
删除
重命名