NOX-ROOT-MARAZ Manager v2
PHP 8+ Secure
/
home
/
xiedrke
/
malino
/
wp-content
/
plugins
/
trendz-plus
/
modules
/
typography
/
customizer
/
settings
/
Name
Size
Perms
Actions
📄 h4-typography.php
5,340 B
0644
Edit
|
Chmod
|
Delete
📄 h6-typography.php
5,340 B
0644
Edit
|
Chmod
|
Delete
Editing: h6-typography.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if( !class_exists( 'TrendzPlusH6Settings' ) ) { class TrendzPlusH6Settings { private static $_instance = null; private $settings = null; private $selector = null; public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } function __construct() { $this->selector = apply_filters( 'trendz_h6_selector', array( 'h6' ) ); $this->settings = trendz_customizer_settings('h6_typo'); add_filter( 'trendz_plus_customizer_default', array( $this, 'default' ) ); add_action( 'customize_register', array( $this, 'register' ), 20); add_filter( 'trendz_h6_typo_customizer_update', array( $this, 'h6_typo_customizer_update' ) ); add_filter( 'trendz_google_fonts_list', array( $this, 'fonts_list' ) ); add_filter( 'trendz_add_inline_style', array( $this, 'base_style' ) ); add_filter( 'trendz_add_tablet_landscape_inline_style', array( $this, 'tablet_landscape_style' ) ); add_filter( 'trendz_add_tablet_portrait_inline_style', array( $this, 'tablet_portrait' ) ); add_filter( 'trendz_add_mobile_res_inline_style', array( $this, 'mobile_style' ) ); } function default( $option ) { $theme_defaults = function_exists('trendz_theme_defaults') ? trendz_theme_defaults() : array (); $option['h6_typo'] = $theme_defaults['h6_typo']; return $option; } function register( $wp_customize ) { $wp_customize->add_section( new Trendz_Customize_Section( $wp_customize, 'site-h6-section', array( 'title' => esc_html__('H6 Typography', 'trendz-plus'), 'panel' => 'site-typography-main-panel', 'priority' => 30, ) ) ); /** * Option :H6 Typo */ $wp_customize->add_setting( TRENDZ_CUSTOMISER_VAL . '[h6_typo]', array( 'type' => 'option', ) ); $wp_customize->add_control( new Trendz_Customize_Control_Typography( $wp_customize, TRENDZ_CUSTOMISER_VAL . '[h6_typo]', array( 'type' => 'wdt-typography', 'section' => 'site-h6-section', 'label' => esc_html__( 'H6 Tag', 'trendz-plus'), ) ) ); /** * Option : H6 Color */ $wp_customize->add_setting( TRENDZ_CUSTOMISER_VAL . '[h6_color]', array( 'default' => '', 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, TRENDZ_CUSTOMISER_VAL . '[h6_color]', array( 'label' => esc_html__( 'Color', 'trendz-plus' ), 'section' => 'site-h6-section', ) ) ); } function h6_typo_customizer_update( $defaults ) { $h6_typo = trendz_customizer_settings( 'h6_typo' ); if( !empty( $h6_typo ) ) { return $h6_typo; } return $defaults; } function fonts_list( $fonts ) { return trendz_customizer_frontend_font( $this->settings, $fonts ); } function base_style( $style ) { $css = ''; $color = trendz_customizer_settings('h6_color'); $css .= trendz_customizer_typography_settings( $this->settings ); $css .= trendz_customizer_color_settings( $color ); $css = trendz_customizer_dynamic_style( $this->selector, $css ); return $style.$css; } function tablet_landscape_style( $style ) { $css = trendz_customizer_responsive_typography_settings( $this->settings, 'tablet-ls' ); $css = trendz_customizer_dynamic_style( $this->selector, $css ); return $style.$css; } function tablet_portrait( $style ) { $css = trendz_customizer_responsive_typography_settings( $this->settings, 'tablet' ); $css = trendz_customizer_dynamic_style( $this->selector, $css ); return $style.$css; } function mobile_style( $style ) { $css = trendz_customizer_responsive_typography_settings( $this->settings, 'mobile' ); $css = trendz_customizer_dynamic_style( $this->selector, $css ); return $style.$css; } } } TrendzPlusH6Settings::instance();
Cancel