add_section( 'belfast_logo_fav_section' , array( 'title' => __( 'Site Logo', 'belfast' ), 'priority' => 30, 'description' => __('Upload a logo to replace the default site name and description in the header','belfast'),) ); $wp_customize->add_setting( 'belfast_logo', array( 'sanitize_callback' => 'esc_url_raw') ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'belfast_logo', array( 'label' => __( 'Site Logo ( Max height - 60px)', 'belfast' ), 'section' => 'belfast_logo_fav_section', 'settings' => 'belfast_logo', ) ) ); function belfast_check_header_video($file){ return validate_file($file, array('', 'mp4')); } // Logo Uploader Ends // Social Links $wp_customize->add_section( 'sociallinks', array( 'title' => __('Social Links','belfast'), // The title of section 'description' => __('Add Your Social Links Here.','belfast'), // The description of section 'priority' => '900', ) ); $wp_customize->add_setting( 'belfast_facebooklink', array('default' => '#','sanitize_callback' => 'esc_url_raw') ); $wp_customize->add_control( 'belfast_facebooklink', array('label' => __('Facebook URL','belfast'), 'section' => 'sociallinks', ) ); $wp_customize->add_setting( 'belfast_twitterlink', array('default' => '#','sanitize_callback' => 'esc_url_raw') ); $wp_customize->add_control( 'belfast_twitterlink', array('label' => __('Twitter Handle','belfast'), 'section' => 'sociallinks', ) ); $wp_customize->add_setting( 'belfast_googlelink', array('default' => '#', 'sanitize_callback' => 'esc_url_raw') ); $wp_customize->add_control( 'belfast_googlelink', array('label' => __('Google Plus URL','belfast'),'section' => 'sociallinks',) ); $wp_customize->add_setting( 'belfast_pinterestlink', array('default' => '#', 'sanitize_callback' => 'esc_url_raw') ); $wp_customize->add_control( 'belfast_pinterestlink', array('label' => __('Pinterest URL','belfast'),'section' => 'sociallinks',) ); $wp_customize->add_setting( 'belfast_youtubelink', array('default' => '#', 'sanitize_callback' => 'esc_url_raw') ); $wp_customize->add_control( 'belfast_youtubelink', array('label' => __('Youtube URL','belfast'),'section' => 'sociallinks',) ); $wp_customize->add_setting( 'belfast_stumblelink', array('default' => '#', 'sanitize_callback' => 'esc_url_raw') ); $wp_customize->add_control( 'belfast_stumblelink', array('label' => __('Stumbleupon Link','belfast'),'section' => 'sociallinks', ) ); $wp_customize->add_setting( 'belfast_rsslink', array('default' => '#', 'sanitize_callback' => 'esc_url_raw') ); $wp_customize->add_control( 'belfast_rsslink', array('label' => __('RSS Feeds URL','belfast'),'section' => 'sociallinks',) ); // Social Links Ends // Footer Copyright Section $wp_customize->add_section( 'fcopyright', array( 'title' => __('Footer Copyright','belfast'), // The title of section 'description' => __('Add Your Copyright Notes Here.','belfast'), // The description of section 'priority' => '900', ) ); $wp_customize->add_setting( 'belfast_footer_top', array('default' => __('Any Text Here','belfast'),'sanitize_callback' => 'belfast_sanitize_footer_text',) ); $wp_customize->add_control( 'belfast_footer_top', array('label' => __('Footer Text','belfast'),'section' => 'fcopyright',) ); $wp_customize->add_setting( 'belfast_footer_cr_left', array('default' => __('Your Copyright Here.','belfast'),'sanitize_callback' => 'belfast_sanitize_footer_text',) ); $wp_customize->add_control( 'belfast_footer_cr_left', array('label' => __('Copyright Note Left','belfast'),'section' => 'fcopyright',) ); function belfast_sanitize_footer_text( $input ) { return wp_kses_post( force_balance_tags( $input ) );} } // Footer Copyright Section Ends // This will output the custom WordPress settings to the live theme's WP head. */ function belfast_header_output() { $sidebar_pos = get_theme_mod('sidebar_position_option'); $bgcolor = get_theme_mod('bg_color'); $primarycolor = get_theme_mod('primary_color'); $secondarycolor = get_theme_mod('secondary_color'); $tertiarycolor = get_theme_mod('tertiary_color'); ?>