Sindbad~EG File Manager
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if( !class_exists( 'TrendzProCustomizerSiteTitle' ) ) {
class TrendzProCustomizerSiteTitle {
private static $_instance = null;
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}
return self::$_instance;
}
function __construct() {
add_action( 'customize_register', array( $this, 'register' ), 15 );
add_filter( 'trendz_google_fonts_list', array( $this, 'fonts_list' ) );
}
function register( $wp_customize ) {
/**
* Option :Site Title Typography
*/
$wp_customize->add_setting(
TRENDZ_CUSTOMISER_VAL . '[site_title_typo]', array(
'type' => 'option',
)
);
$wp_customize->add_control(
new Trendz_Customize_Control_Typography(
$wp_customize, TRENDZ_CUSTOMISER_VAL . '[site_title_typo]', array(
'type' => 'wdt-typography',
'section' => 'site-title-section',
'label' => esc_html__( 'Typography', 'trendz-pro'),
)
)
);
/**
* Option : Site Title Color
*/
$wp_customize->add_setting(
TRENDZ_CUSTOMISER_VAL . '[site_title_color]', array(
'type' => 'option',
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize, TRENDZ_CUSTOMISER_VAL . '[site_title_color]', array(
'label' => esc_html__( 'Color', 'trendz-pro' ),
'section' => 'site-title-section',
)
)
);
/**
* Option : Site Title Hover Color
*/
$wp_customize->add_setting(
TRENDZ_CUSTOMISER_VAL . '[site_title_hover_color]', array(
'type' => 'option',
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize, TRENDZ_CUSTOMISER_VAL . '[site_title_hover_color]', array(
'label' => esc_html__( 'Hover Color', 'trendz-pro' ),
'section' => 'site-title-section',
)
)
);
}
function fonts_list( $fonts ) {
$settings = trendz_customizer_settings( 'site_title_typo' );
return trendz_customizer_frontend_font( $settings, $fonts );
}
}
}
TrendzProCustomizerSiteTitle::instance();
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists