Server IP : 162.0.217.223 / Your IP : 216.73.216.168 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/tu-international.com/wp-content/themes/motorx/inc/customizer/header/ |
Upload File : |
<?php // Top bar show $wp_customize->add_setting( 'topbar_show', array( 'sanitize_callback' => 'themesflat_sanitize_checkbox', 'default' => themesflat_customize_default('topbar_show'), ) ); $wp_customize->add_control( new themesflat_Checkbox( $wp_customize, 'topbar_show', array( 'type' => 'checkbox', 'label' => esc_html__('Topbar ( OFF | ON )', 'motorx'), 'section' => 'section_topbar', 'priority' => 1, )) ); // Social Topbar $wp_customize->add_setting( 'social_topbar', array( 'sanitize_callback' => 'themesflat_sanitize_checkbox', 'default' => themesflat_customize_default('social_topbar'), ) ); $wp_customize->add_control( new themesflat_Checkbox( $wp_customize, 'social_topbar', array( 'type' => 'checkbox', 'label' => esc_html__('Social ( OFF | ON )', 'motorx'), 'section' => 'section_topbar', 'priority' => 2, 'active_callback' => function () use ( $wp_customize ) { return 1 === $wp_customize->get_setting( 'topbar_show' )->value(); }, )) ); // Label Address $wp_customize->add_setting( 'topbar_label_address', array( 'default' => themesflat_customize_default('topbar_label_address'), 'sanitize_callback' => 'themesflat_sanitize_text' ) ); $wp_customize->add_control( 'topbar_label_address', array( 'label' => esc_html__( 'Label Address (only style TopBar 02)', 'motorx' ), 'section' => 'section_topbar', 'type' => 'text', 'priority' => 3, ) ); // Topbar Box control $wp_customize->add_setting( 'topbar_controls', array( 'default' => themesflat_customize_default('topbar_controls'), 'sanitize_callback' => 'themesflat_sanitize_text', ) ); $wp_customize->add_control( new themesflat_BoxControls($wp_customize, 'topbar_controls', array( 'label' => esc_html__( 'Box Controls (px)', 'motorx' ), 'section' => 'section_topbar', 'type' => 'box-controls', 'priority' => 4 )) );