| Server IP : 141.193.213.10 / Your IP : 216.73.216.101 Web Server : nginx System : Linux pod-400555 6.8.0-1055-gke #61-Ubuntu SMP Tue May 26 22:57:42 UTC 2026 x86_64 User : fpm200079 ( 200079) PHP Version : 8.2.36 Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nas/content/live/bartislaw/wp-content/plugins/js_composer/modules/typography/ |
Upload File : |
<?php
/**
* Module Name: Typography
* Description: Plugin module for Typography management.
*
* Module helps users to extend initial plugin typography.
* Adding new font families and variants.
* That they can get from third-party services like Google Fonts Adobe Kit etc.
*
* @since 8.0
*/
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
require_once vc_manager()->path( 'MODULES_DIR', 'typography/class-vc-typography-module-settings.php' );
require_once vc_manager()->path( 'MODULES_DIR', 'typography/class-vc-fonts-controller.php' );
require_once vc_manager()->path( 'MODULES_DIR', 'typography/class-vc-adobe-fonts-controller.php' );
require_once vc_manager()->path( 'MODULES_DIR', 'typography/class-vc-google-fonts-controller.php' );
/**
* Module entry point.
*
* @since 8.0
*/
class Vc_Typography_Module {
/**
* Settings object.
*
* @since 8.0
* @var Vc_Typography_Module_Settings
*/
public $settings;
/**
* Settings object for Adobe Web Project.
*
* @since 8.0
* @var Vc_Adobe_Fonts_Controller
*/
public $adobe_controller;
/**
* Settings object for Google Fonts.
*
* @since 8.0
* @var \Vc_Google_Fonts_Controller
*/
public $google_fonts_controller;
/**
* Get dropdown separator for default fonts.
*
* @since 8.0
* @return string
*/
public function get_default_dropdown_separator() {
return __( '----------------- Google Fonts ---------------------', 'js_composer' );
}
/**
* Vc_Typography_Module constructor.
*
* @since 8.0
*/
public function __construct() {
$this->settings = new Vc_Typography_Module_Settings();
$this->settings->init();
$this->adobe_controller = new Vc_Adobe_Fonts_Controller( $this );
$this->adobe_controller->init();
$this->google_fonts_controller = new Vc_Google_Fonts_Controller( $this );
$this->google_fonts_controller->init();
}
/**
* Init module implementation.
*
* @since 8.0
*/
public function init() {}
}