| Server IP : 52.9.100.119 / Your IP : 216.73.216.135 Web Server : Apache/2.4.61 (Amazon) OpenSSL/1.0.2k-fips PHP/7.3.30 Phusion_Passenger/5.1.5 System : Linux ip-172-31-9-35 4.14.355-196.618.amzn1.x86_64 #1 SMP Mon Apr 7 17:09:50 UTC 2025 x86_64 User : root ( 0) PHP Version : 7.3.30 Disable Function : exec,passthru,shell_exec,system,popen,proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /data/html/improve/wp-content/plugins/custom-fonts/ |
Upload File : |
<?php
/**
* Plugin Name: Custom Fonts
* Plugin URI: http://www.wpastra.com/
* Description: Upload custom fonts or host Google fonts locally to enhance performance, privacy, and get full site editing support for improved typography!
* Author: Brainstorm Force
* Author URI: http://www.brainstormforce.com
* Text Domain: custom-fonts
* Version: 2.1.17
*
* @package Bsf_Custom_Fonts
*/
/**
* Exit if accessed directly.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit();
}
/**
* Set constants.
*/
define( 'BSF_CUSTOM_FONTS_FILE', __FILE__ );
define( 'BSF_CUSTOM_FONTS_BASE', plugin_basename( BSF_CUSTOM_FONTS_FILE ) );
define( 'BSF_CUSTOM_FONTS_DIR', plugin_dir_path( BSF_CUSTOM_FONTS_FILE ) );
define( 'BSF_CUSTOM_FONTS_URI', plugins_url( '/', BSF_CUSTOM_FONTS_FILE ) );
define( 'BSF_CUSTOM_FONTS_VER', '2.1.17' );
define( 'BSF_CUSTOM_FONTS_POST_TYPE', 'bsf_custom_fonts' );
define( 'BSF_CUSTOM_FONTS_ADMIN_PAGE', 'bsf-custom-fonts' );
/**
* BSF Custom Fonts
*/
require_once BSF_CUSTOM_FONTS_DIR . 'classes/class-bsf-custom-fonts.php';
/**
* Helper functions needed for further processing.
*/
require_once BSF_CUSTOM_FONTS_DIR . '/includes/helper-functions.php';
/**
* BSF Custom Fonts Background Updater.
*/
require_once BSF_CUSTOM_FONTS_DIR . 'includes/plugin-update/class-custom-fonts-update.php';
/**
* Rest API support.
*/
require_once BSF_CUSTOM_FONTS_DIR . 'includes/class-custom-fonts-api-init.php';
/**
* WP Filesystem extender.
*/
require_once BSF_CUSTOM_FONTS_DIR . '/includes/class-bcf-filesystem.php';
/**
* Plugin's Google fonts compatibility processor.
*/
require_once BSF_CUSTOM_FONTS_DIR . '/includes/class-bcf-google-fonts-compatibility.php';
if ( is_admin() ) {
/**
* Admin Notice Library Settings
*/
require_once BSF_CUSTOM_FONTS_DIR . 'lib/notices/class-astra-notices.php';
/**
* Admin dashboard app.
*/
require_once BSF_CUSTOM_FONTS_DIR . 'admin/dashboard/class-bsf-custom-font-admin-loader.php';
}
// BSF Analytics library.
if ( ! class_exists( 'BSF_Analytics_Loader' ) ) {
require_once BSF_CUSTOM_FONTS_DIR . 'admin/bsf-analytics/class-bsf-analytics-loader.php';
require_once BSF_CUSTOM_FONTS_DIR . 'includes/rest-api/class-cf-bsf-analytics-compatibility.php';
}
$bsf_analytics = BSF_Analytics_Loader::get_instance();
$bsf_analytics->set_entity(
array(
'bsf' => array(
'product_name' => 'Custom Fonts',
'path' => BSF_CUSTOM_FONTS_DIR . 'admin/bsf-analytics',
'author' => 'Brainstorm Force',
'time_to_display' => '+24 hours',
),
)
);