Sindbad~EG File Manager
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if( !class_exists( 'TrendzPlusCustomizerSiteLogo' ) ) {
class TrendzPlusCustomizerSiteLogo {
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 );
}
function register( $wp_customize ) {
$wp_customize->add_section(
new Trendz_Customize_Section(
$wp_customize,
'site-logo-section',
array(
'title' => esc_html__('Site Logo', 'trendz-plus'),
'panel' => 'site-identity-main-panel',
'priority' => 5,
)
)
);
/**
* Option: Site Logo
*/
$wp_customize->get_control('custom_logo')->section = 'site-logo-section';
$wp_customize->get_control('custom_logo')->priority = 5;
/**
* Option: Site Alternate Logo
*/
$wp_customize->add_setting(
TRENDZ_CUSTOMISER_VAL . '[custom_alt_logo]', array(
'type' => 'option',
)
);
$wp_customize->add_control(
new WP_Customize_Cropped_Image_Control(
$wp_customize, TRENDZ_CUSTOMISER_VAL . '[custom_alt_logo]', array(
'label' => esc_html__( 'Alternate Logo', 'trendz-plus' ),
'section' => 'site-logo-section',
'height' => 100,
'width' => 400,
'flex_height' => true,
'flex_width' => true,
'button_labels' => array(
'select' => esc_html__( 'Select logo', 'trendz-plus' ),
'change' => esc_html__( 'Change logo', 'trendz-plus' ),
'remove' => esc_html__( 'Remove', 'trendz-plus' ),
'placeholder' => esc_html__( 'No logo selected', 'trendz-plus' ),
'frame_title' => esc_html__( 'Select logo', 'trendz-plus' ),
'frame_button' => esc_html__( 'Choose logo', 'trendz-plus' ),
)
)
)
);
}
}
}
TrendzPlusCustomizerSiteLogo::instance();
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists