add_panel( 'astrad_footer_settings_panel', array( 'priority' => 30, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__( 'Footer Settings', 'astrad' ), ) ); /*-----------------------------------------------------------------------------------------------------------------------*/ /** * Bottom Section * * @since 1.0.0 */ $wp_customize->add_section( 'astrad_footer_bottom_section', array( 'title' => esc_html__( 'Bottom Section', 'astrad' ), 'panel' => 'astrad_footer_settings_panel', 'priority' => 10, ) ); /*-----------------------------------------------------------------------------------------------------------------------*/ /** * Text field for copyright * * @since 1.0.0 */ $wp_customize->add_setting( 'astrad_copyright_text', array( 'default' => esc_html__( 'Copyright © 2021 | All Rights Reserved.', 'astrad' ), 'sanitize_callback' => 'astrad_sanitize_html' ) ); $wp_customize->add_control( 'astrad_copyright_text', array( 'type' => 'textarea', 'label' => esc_html__( 'Copyright Text', 'astrad' ), 'description' => esc_html__( 'You can use html tags also.', 'astrad' ), 'section' => 'astrad_footer_bottom_section', 'priority' => 5 ) ); /*-----------------------------------------------------------------------------------------------------------------------*/ /** * Text color for copyright * * @since 1.0.0 */ $wp_customize->add_setting( 'astrad_copyright_text_color', array( 'default' => '#191919', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'astrad_copyright_text_color', array( 'label' => esc_html__( 'Select copyright text color', 'astrad' ), 'section' => 'astrad_footer_bottom_section', 'settings' => 'astrad_copyright_text_color', ) ) ); /*-----------------------------------------------------------------------------------------------------------------------*/ /** * Text color for copyright * * @since 1.0.0 */ $wp_customize->add_setting( 'astrad_fwidget_text_color', array( 'default' => '#162238', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'astrad_fwidget_text_color', array( 'label' => esc_html__( 'Footer Widget Section color', 'astrad' ), 'section' => 'astrad_footer_bottom_section', 'settings' => 'astrad_fwidget_text_color', ) ) ); /*-----------------------------------------------------------------------------------------------------------------------*/ }