Uname: Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 145.239.37.162
Your Ip: 216.73.216.190
User: dreampi (1009562) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : general-typography-options.php
<?php
/**
 * Header Builder Options
 *
 * @package thebase
 */

namespace TheBase;

use TheBase\Theme_Customizer;
use function TheBase\thebase;

Theme_Customizer::add_settings(
	array(
		// 'load_font_pairing' => array(
		// 	'control_type' => 'thebase_font_pairing',
		// 	'section'      => 'general_typography',
		// 	'label'        => esc_html__( 'Font Pairings', 'basetheme' ),
		// 	'settings'     => false,
		// ),
		'base_font' => array(
			'control_type' => 'thebase_typography_control',
			'section'      => 'general_typography',
			'label'        => esc_html__( 'Base Font', 'basetheme' ),
			'default'      => thebase()->default( 'base_font' ),
			'live_method'     => array(
				array(
					'type'     => 'css_typography',
					'selector' => 'body',
					'property' => 'font',
					'key'      => 'typography',
				),
			),
			'input_attrs'  => array(
				'id'         => 'base_font',
				'canInherit' => false,
			),
		),
		'load_base_italic' => array(
			'control_type' => 'thebase_switch_control',
			'sanitize'     => 'thebase_sanitize_toggle',
			'section'      => 'general_typography',
			'default'      => thebase()->default( 'load_base_italic' ),
			'label'        => esc_html__( 'Load Italics Font Styles', 'basetheme' ),
			'context'      => array(
				array(
					'setting' => 'base_font',
					'operator'   => 'load_italic',
					'value'   => 'true',
				),
			),
		),
		'info_heading' => array(
			'control_type' => 'thebase_title_control',
			'section'      => 'general_typography',
			'label'        => esc_html__( 'Headings', 'basetheme' ),
			'settings'     => false,
		),
		'heading_font' => array(
			'control_type' => 'thebase_typography_control',
			'section'      => 'general_typography',
			'label'        => esc_html__( 'Heading Font Family', 'basetheme' ),
			'default'      => thebase()->default( 'heading_font' ),
			'live_method'     => array(
				array(
					'type'     => 'css_typography',
					'selector' => 'h1,h2,h3,h4,h5,h6',
					'property' => 'font',
					'key'      => 'family',
				),
			),
			'input_attrs'  => array(
				'id'      => 'heading_font',
				'options' => 'family',
			),
		),
		'h1_font' => array(
			'control_type' => 'thebase_typography_control',
			'section'      => 'general_typography',
			'label'        => esc_html__( 'H1 Font', 'basetheme' ),
			'default'      => thebase()->default( 'h1_font' ),
			'live_method'     => array(
				array(
					'type'     => 'css_typography',
					'selector' => 'h1',
					'property' => 'font',
					'key'      => 'typography',
				),
			),
			'input_attrs'  => array(
				'id'             => 'h1_font',
				'headingInherit' => true,
			),
		),
		'h2_font' => array(
			'control_type' => 'thebase_typography_control',
			'section'      => 'general_typography',
			'label'        => esc_html__( 'H2 Font', 'basetheme' ),
			'default'      => thebase()->default( 'h2_font' ),
			'live_method'     => array(
				array(
					'type'     => 'css_typography',
					'selector' => 'h2',
					'property' => 'font',
					'key'      => 'typography',
				),
			),
			'input_attrs'  => array(
				'id'             => 'h2_font',
				'headingInherit' => true,
			),
		),
		'h3_font' => array(
			'control_type' => 'thebase_typography_control',
			'section'      => 'general_typography',
			'label'        => esc_html__( 'H3 Font', 'basetheme' ),
			'default'      => thebase()->default( 'h3_font' ),
			'live_method'     => array(
				array(
					'type'     => 'css_typography',
					'selector' => 'h3',
					'property' => 'font',
					'key'      => 'typography',
				),
			),
			'input_attrs'  => array(
				'id'             => 'h3_font',
				'headingInherit' => true,
			),
		),
		'h4_font' => array(
			'control_type' => 'thebase_typography_control',
			'section'      => 'general_typography',
			'label'        => esc_html__( 'H4 Font', 'basetheme' ),
			'default'      => thebase()->default( 'h4_font' ),
			'live_method'     => array(
				array(
					'type'     => 'css_typography',
					'selector' => 'h4',
					'property' => 'font',
					'key'      => 'typography',
				),
			),
			'input_attrs'  => array(
				'id'             => 'h4_font',
				'headingInherit' => true,
			),
		),
		'h5_font' => array(
			'control_type' => 'thebase_typography_control',
			'section'      => 'general_typography',
			'label'        => esc_html__( 'H5 Font', 'basetheme' ),
			'default'      => thebase()->default( 'h5_font' ),
			'live_method'     => array(
				array(
					'type'     => 'css_typography',
					'selector' => 'h5',
					'property' => 'font',
					'key'      => 'typography',
				),
			),
			'input_attrs'  => array(
				'id'             => 'h5_font',
				'headingInherit' => true,
			),
		),
		'h6_font' => array(
			'control_type' => 'thebase_typography_control',
			'section'      => 'general_typography',
			'label'        => esc_html__( 'H6 Font', 'basetheme' ),
			'default'      => thebase()->default( 'h6_font' ),
			'live_method'     => array(
				array(
					'type'     => 'css_typography',
					'selector' => 'h6',
					'property' => 'font',
					'key'      => 'typography',
				),
			),
			'input_attrs'  => array(
				'id'             => 'h6_font',
				'headingInherit' => true,
			),
		),
		'info_above_title_heading' => array(
			'control_type' => 'thebase_title_control',
			'section'      => 'general_typography',
			'label'        => esc_html__( 'Title Above Content', 'basetheme' ),
			'settings'     => false,
		),
		'title_above_font' => array(
			'control_type' => 'thebase_typography_control',
			'section'      => 'general_typography',
			'label'        => esc_html__( 'H1 Title', 'basetheme' ),
			'default'      => thebase()->default( 'title_above_font' ),
			'live_method'     => array(
				array(
					'type'     => 'css_typography',
					'selector' => '.entry-hero h1',
					'property' => 'font',
					'key'      => 'typography',
				),
			),
			'input_attrs'  => array(
				'id'             => 'title_above_font',
				'headingInherit' => true,
			),
		),
		'title_above_breadcrumb_font' => array(
			'control_type' => 'thebase_typography_control',
			'section'      => 'general_typography',
			'label'        => esc_html__( 'Breadcrumbs', 'basetheme' ),
			'default'      => thebase()->default( 'title_above_breadcrumb_font' ),
			'live_method'     => array(
				array(
					'type'     => 'css_typography',
					'selector' => '.entry-hero .thebase-breadcrumbs',
					'property' => 'font',
					'key'      => 'typography',
				),
			),
			'input_attrs'  => array(
				'id'      => 'title_above_breadcrumb_font',
			),
		),
		'google_subsets' => array(
			'control_type' => 'thebase_check_icon_control',
			'section'      => 'general_typography',
			'sanitize'     => 'thebase_sanitize_google_subsets',
			'priority'     => 20,
			'default'      => array(),
			'label'        => esc_html__( 'Google Font Subsets', 'basetheme' ),
			'input_attrs'  => array(
				'options' => array(
					'latin-ext' => array(
						'name' => __( 'Latin Extended', 'basetheme' ),
					),
					'cyrillic' => array(
						'name' => __( 'Cyrillic', 'basetheme' ),
					),
					'cyrillic-ext' => array(
						'name' => __( 'Cyrillic Extended', 'basetheme' ),
					),
					'greek' => array(
						'name' => __( 'Greek', 'basetheme' ),
					),
					'greek-ext' => array(
						'name' => __( 'Greek Extended', 'basetheme' ),
					),
					'vietnamese' => array(
						'name' => __( 'Vietnamese', 'basetheme' ),
					),
					'arabic' => array(
						'name' => __( 'Arabic', 'basetheme' ),
					),
					'khmer' => array(
						'name' => __( 'Khmer', 'basetheme' ),
					),
					'chinese' => array(
						'name' => __( 'Chinese', 'basetheme' ),
					),
					'chinese-simplified' => array(
						'name' => __( 'Chinese Simplified', 'basetheme' ),
					),
					'tamil' => array(
						'name' => __( 'Tamil', 'basetheme' ),
					),
					'bengali' => array(
						'name' => __( 'Bengali', 'basetheme' ),
					),
					'devanagari' => array(
						'name' => __( 'Devanagari', 'basetheme' ),
					),
					'hebrew' => array(
						'name' => __( 'Hebrew', 'basetheme' ),
					),
					'korean' => array(
						'name' => __( 'Korean', 'basetheme' ),
					),
					'thai' => array(
						'name' => __( 'Thai', 'basetheme' ),
					),
					'telugu' => array(
						'name' => __( 'Telugu', 'basetheme' ),
					),
				),
			),
		),
	)
);
© 2026 GrazzMean-Shell