__( 'Primary navigation', 'blogostrap' ) ) ); } endif; add_filter('nav_menu_css_class' , 'ns_special_nav_class' , 10 , 2); function ns_special_nav_class($classes, $item){ if( in_array('current-menu-item', $classes) ){ $classes[] = 'active '; } return $classes; } #################################################################### add_theme_support( 'title-tag' ); add_theme_support( 'custom-background' ); /*requires WP v >= 3.4 */ add_theme_support( 'custom-header' ); add_theme_support( 'post-thumbnails' ); add_editor_style(); // Add Automatic Feed Links add_theme_support( 'automatic-feed-links' ); // Localization Support add_action( 'after_setup_theme', 'ns_theme_setup_lang' ); function ns_theme_setup_lang(){ load_theme_textdomain( 'blogostrap' ); } function ns_customize_css() { $ns_hide_tit_tagline_live = get_theme_mod('header_textcolor', ''); if ($ns_hide_tit_tagline_live == 'blank') { $ns_tagline_print = 'none'; }else{ $ns_tagline_print = 'inline'; } ?>
id="li-comment-">

Posted by: | 'li-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> to

__( 'Sidebar', 'blogostrap' ), 'id' => 'sidebar-widget', 'description' => __( 'Sidebar', 'blogostrap' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); } #################################################################### add_action( 'customize_register' , 'ns_theme_options' ); function ns_theme_options( $wp_customize ) { $wp_customize->remove_control( 'header_textcolor' ); $wp_customize->add_section( 'blogostrap_social_options', array( 'title' => __( 'Social Settings', 'blogostrap' ), 'priority' => 100, 'capability' => 'edit_theme_options', 'description' => __('Change social link here.', 'blogostrap'), ) ); $wp_customize->add_setting( 'ns_facebook_link', array( 'default' => '', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'ns_twitter_link', array( 'default' => '', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'ns_google_link', array( 'default' => '', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'ns_youtube_link', array( 'default' => '', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_facebook_control', array( 'label' => __( 'Facebook Link', 'blogostrap' ), 'section' => 'blogostrap_social_options', 'settings' => 'ns_facebook_link', 'type' => 'text', //'priority' => 10, ) )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_twitter_control', array( 'label' => __( 'Twitter Link', 'blogostrap' ), 'section' => 'blogostrap_social_options', 'settings' => 'ns_twitter_link', 'type' => 'text', //'priority' => 10, ) )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_google_control', array( 'label' => __( 'Google + Link', 'blogostrap' ), 'section' => 'blogostrap_social_options', 'settings' => 'ns_google_link', 'type' => 'text', //'priority' => 10, ) )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_youtube_control', array( 'label' => __( 'Youtube Link', 'blogostrap' ), 'section' => 'blogostrap_social_options', 'settings' => 'ns_youtube_link', 'type' => 'text', //'priority' => 10, ) )); } ?>