add_panel( 'parallaxsome_footer_settings_panel', array( 'priority' => 30, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__( 'Footer Settings', 'parallaxsome' ), ) ); /*--------------------------------------------------------------------------------------------------------------*/ /** * Footer Widget Settings * * @since 1.0.0 */ $wp_customize->add_section( 'footer_widget_section', array( 'title' => esc_html__( 'Footer Widget Settings', 'parallaxsome' ), 'panel' => 'parallaxsome_footer_settings_panel', 'priority' => 5, ) ); /** * Field for Image Radio * * @since 1.0.0 */ $wp_customize->add_setting( 'ps_footer_widget_layout', array( 'default' => 'column_three', 'sanitize_callback' => 'sanitize_key', ) ); $wp_customize->add_control( new Parallaxsome_Customize_Control_Radio_Image( $wp_customize, 'ps_footer_widget_layout', array( 'label' => esc_html__( 'Footer Widget Layout', 'parallaxsome' ), 'description' => esc_html__( 'Choose layout from available layouts', 'parallaxsome' ), 'section' => 'footer_widget_section', 'choices' => array( 'column_four' => array( 'label' => esc_html__( 'Left Sidebar', 'parallaxsome' ), 'url' => '%s/assets/images/footer-4.png' ), 'column_three' => array( 'label' => esc_html__( 'Right Sidebar', 'parallaxsome' ), 'url' => '%s/assets/images/footer-3.png' ), 'column_two' => array( 'label' => esc_html__( 'No Sidebar', 'parallaxsome' ), 'url' => '%s/assets/images/footer-2.png' ), 'column_one' => array( 'label' => esc_html__( 'No Sidebar Center', 'parallaxsome' ), 'url' => '%s/assets/images/footer-1.png' ) ), 'priority' => 5 ) ) ); /*--------------------------------------------------------------------------------------------------------------*/ /** * Footer Settings * * @since 1.0.0 */ $wp_customize->add_section( 'bottom_footer_section', array( 'title' => esc_html__( 'Bottom Footer Settings', 'parallaxsome' ), 'panel' => 'parallaxsome_footer_settings_panel', 'priority' => 10, ) ); /** * Field for Archive read more button text * * @since 1.0.0 */ $wp_customize->add_setting( 'ps_copyright_text', array( 'default' => esc_html__( '2016 ParallaxSome', 'parallaxsome' ), 'sanitize_callback' => 'wp_kses_post', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'ps_copyright_text', array( 'type' => 'textarea', 'label' => esc_html__( 'Copyright Text', 'parallaxsome' ), 'section' => 'bottom_footer_section', 'priority' => 5 ) ); } //close fucntion endif; add_action( 'customize_register', 'parallaxsome_footer_panel_register' );