// BEGIN ENQUEUE PARENT ACTION // AUTO GENERATED - Do not modify or remove comment markers above or below: if ( !function_exists( 'chld_thm_cfg_locale_css' ) ): function chld_thm_cfg_locale_css( $uri ){ if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) ) $uri = get_template_directory_uri() . '/rtl.css'; return $uri; } endif; add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' ); if ( !function_exists( 'chld_thm_cfg_parent_css' ) ): function chld_thm_cfg_parent_css() { wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'bootstrap-style','bootstrap-theme-style','fontawesome-style','main-style' ) ); } endif; add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 ); // END ENQUEUE PARENT ACTION function themeslug_theme_customizer( $wp_customize ) { $wp_customize->add_section( 'themeslug_logo_section' , array( 'title' => __( 'Logo', 'themeslug' ), 'priority' => 30, 'description' => 'Upload a logo to replace the default site name and description in the header', ) ); $wp_customize->add_setting( 'themeslug_logo' ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'themeslug_logo', array( 'label' => __( 'Logo', 'themeslug' ), 'section' => 'themeslug_logo_section', 'settings' => 'themeslug_logo', ) ) ); $wp_customize -> add_section( 'mythemes-social', array( 'title' => __( 'Social' , 'themeslug' ), 'priority' => 35, 'capability' => 'edit_theme_options' )); $wp_customize -> add_setting( 'mythemes-facebook', array( 'default' => 'http://facebook.com/#', 'transport' => 'postMessage', 'sanitize_callback' => 'esc_url_raw', 'capability' => 'edit_theme_options' )); $wp_customize -> add_control( 'mythemes-facebook', array( 'label' => __( 'Facebook', 'wabw' ), 'section' => 'mythemes-social', 'settings' => 'mythemes-facebook', 'type' => 'url', )); $wp_customize -> add_setting( 'mythemes-instagram', array( 'default' => 'http://instagram.com/#', 'transport' => 'postMessage', 'sanitize_callback' => 'esc_url_raw', 'capability' => 'edit_theme_options' )); $wp_customize -> add_control( 'mythemes-instagram', array( 'label' => __( 'instagram', 'wabw' ), 'section' => 'mythemes-social', 'settings' => 'mythemes-instagram', 'type' => 'url' )); $wp_customize -> add_setting( 'mythemes-pinterest', array( 'default' => 'http://pinterest.com/#', 'transport' => 'postMessage', 'sanitize_callback' => 'esc_url_raw', 'capability' => 'edit_theme_options' )); $wp_customize -> add_control( 'mythemes-pinterest', array( 'label' => __( 'pinterest', 'wabw' ), 'section' => 'mythemes-social', 'settings' => 'mythemes-pinterest', 'type' => 'url', )); $wp_customize -> add_setting( 'mythemes-youtube', array( 'default' => 'http://youtube.com/#', 'transport' => 'postMessage', 'sanitize_callback' => 'esc_url_raw', 'capability' => 'edit_theme_options' )); $wp_customize -> add_control( 'mythemes-youtube', array( 'label' => __( 'Youtube', 'wabw' ), 'section' => 'mythemes-social', 'settings' => 'mythemes-youtube', 'type' => 'url' )); $wp_customize -> add_setting( 'mythemes-vimeo', array( 'default' => 'http://vimeo.com/#', 'transport' => 'postMessage', 'sanitize_callback' => 'esc_url_raw', 'capability' => 'edit_theme_options' )); $wp_customize -> add_control( 'mythemes-vimeo', array( 'label' => __( 'Vimeo', 'wabw' ), 'section' => 'mythemes-social', 'settings' => 'mythemes-vimeo', 'type' => 'url', )); $wp_customize -> add_setting( 'mythemes-linkedin', array( 'default' => 'http://linkedin.com/#', 'transport' => 'postMessage', 'sanitize_callback' => 'esc_url_raw', 'capability' => 'edit_theme_options' )); $wp_customize -> add_control( 'mythemes-linkedin', array( 'label' => __( 'Linkedin', 'wabw' ), 'section' => 'mythemes-social', 'settings' => 'mythemes-linkedin', 'type' => 'url', )); $wp_customize -> add_setting( 'mythemes-twitter', array( 'default' => 'http://twitter.com/#', 'transport' => 'postMessage', 'sanitize_callback' => 'esc_url_raw', 'capability' => 'edit_theme_options' )); $wp_customize -> add_control( 'mythemes-twitter', array( 'label' => __( 'Twitter', 'wabw' ), 'section' => 'mythemes-social', 'settings' => 'mythemes-twitter', 'type' => 'url', )); function sanitize_text( $text ) { return sanitize_text_field( $text ); } } add_action( 'customize_register', 'themeslug_theme_customizer' ); function bootstrapBasicWidgetsInit() { register_sidebar(array( 'name' => __('Footer Menu', 'bootstrap-basic'), 'id' => 'footer-menu', 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '


', )); register_sidebar(array( 'name' => __('Product Categories', 'bootstrap-basic'), 'id' => 'sidebar-right', 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

', )); }