| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.3/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() {}
}