| Server IP : 89.108.64.180 / Your IP : 216.73.217.92 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/omapart.ru/wp-content/plugins/elementor/core/schemes/ |
Upload File : |
<?php
namespace Elementor\Core\Schemes;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Elementor typography scheme.
*
* Elementor typography scheme class is responsible for initializing a scheme
* for typography.
*
* @since 1.0.0
*/
class Typography extends Base_UI {
/**
* 1st typography scheme.
*/
const TYPOGRAPHY_1 = '1';
/**
* 2nd typography scheme.
*/
const TYPOGRAPHY_2 = '2';
/**
* 3rd typography scheme.
*/
const TYPOGRAPHY_3 = '3';
/**
* 4th typography scheme.
*/
const TYPOGRAPHY_4 = '4';
/**
* Get typography scheme type.
*
* Retrieve the typography scheme type.
*
* @since 1.0.0
* @access public
* @static
*
* @return string Typography scheme type.
*/
public static function get_type() {
return 'typography';
}
/**
* Get typography scheme title.
*
* Retrieve the typography scheme title.
*
* @since 1.0.0
* @access public
*
* @return string Typography scheme title.
*/
public function get_title() {
return esc_html__( 'Typography', 'elementor' );
}
/**
* Get typography scheme disabled title.
*
* Retrieve the typography scheme disabled title.
*
* @since 1.0.0
* @access public
*
* @return string Typography scheme disabled title.
*/
public function get_disabled_title() {
return esc_html__( 'Default Fonts', 'elementor' );
}
/**
* Get typography scheme titles.
*
* Retrieve the typography scheme titles.
*
* @since 1.0.0
* @access public
*
* @return array Typography scheme titles.
*/
public function get_scheme_titles() {
return [
self::TYPOGRAPHY_1 => esc_html__( 'Primary Headline', 'elementor' ),
self::TYPOGRAPHY_2 => esc_html__( 'Secondary Headline', 'elementor' ),
self::TYPOGRAPHY_3 => esc_html__( 'Body Text', 'elementor' ),
self::TYPOGRAPHY_4 => esc_html__( 'Accent Text', 'elementor' ),
];
}
/**
* Get default typography scheme.
*
* Retrieve the default typography scheme.
*
* @since 1.0.0
* @access public
*
* @return array Default typography scheme.
*/
public function get_default_scheme() {
return [
self::TYPOGRAPHY_1 => [
'font_family' => 'Roboto',
'font_weight' => '600',
],
self::TYPOGRAPHY_2 => [
'font_family' => 'Roboto Slab',
'font_weight' => '400',
],
self::TYPOGRAPHY_3 => [
'font_family' => 'Roboto',
'font_weight' => '400',
],
self::TYPOGRAPHY_4 => [
'font_family' => 'Roboto',
'font_weight' => '500',
],
];
}
/**
* Init system typography schemes.
*
* Initialize the system typography schemes.
*
* @since 1.0.0
* @access protected
*
* @return array System typography schemes.
*/
protected function _init_system_schemes() {
return [];
}
/**
* Print typography scheme content template.
*
* Used to generate the HTML in the editor using Underscore JS template. The
* variables for the class are available using `data` JS object.
*
* @since 1.0.0
* @access public
*/
public function print_template_content() {
?>
<div class="elementor-panel-scheme-items"></div>
<?php
}
}