'FFFFFF') ); /*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' ); register_nav_menus( array('primary' => __( 'Primary navigation', 'blogostrap' ) ) ); } endif; add_filter('nav_menu_css_class' , 'blogostrap_special_nav_class' , 10 , 2); function blogostrap_special_nav_class($classes, $item){ if( in_array('current-menu-item', $classes) ){ $classes[] = 'active '; } return $classes; } #################################################################### // Localization Support add_action( 'after_setup_theme', 'blogostrap_theme_setup_lang' ); function blogostrap_theme_setup_lang(){ load_theme_textdomain( 'blogostrap' ); } function blogostrap_customize_css() { $blogostrap_hide_tit_tagline_live = get_theme_mod('header_textcolor', ''); if ($blogostrap_hide_tit_tagline_live == 'blank') { $blogostrap_tagline_print = 'none'; }else{ $blogostrap_tagline_print = 'inline'; } ?>
id="li-comment-">

'.get_comment_author().''; }else{ $blogostrap_print_comment_author = get_comment_author(); } ?>

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

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

    ', 'after_title' => '

    ', )); } #################################################################### add_action( 'customize_register' , 'blogostrap_theme_options' ); function blogostrap_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( 'blogostrap_facebook_link', array( 'default' => '', 'sanitize_callback' => 'esc_url', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'blogostrap_twitter_link', array( 'default' => '', 'sanitize_callback' => 'esc_url', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'blogostrap_google_link', array( 'default' => '', 'sanitize_callback' => 'esc_url', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'blogostrap_youtube_link', array( 'default' => '', 'sanitize_callback' => 'esc_url', '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' => 'blogostrap_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' => 'blogostrap_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' => 'blogostrap_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' => 'blogostrap_youtube_link', 'type' => 'text', //'priority' => 10, ) )); } ?>