__( 'Primary Menu', 'bootstrapcanvaswp' ), ) ); // Custom Header $args = array( 'flex-width' => true, 'width' => 980, 'flex-height' => true, 'height' => 200, 'default-text-color' => '333', ); add_theme_support( 'custom-header', $args ); // Custom Background $args = array( 'default-color' => 'fff', ); add_theme_support( 'custom-background', $args ); } endif; add_action( 'after_setup_theme', 'bootstrapcanvaswp_setup' ); /** * Widget Areas */ function bootstrapcanvaswp_widgets_init() { register_sidebar( array( 'name' => 'Right Sidebar', 'id' => 'sidebar-1', 'description' => 'Main sidebar that appears on the right.', 'bootstrapcanvaswp', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => 'Footer - Left', 'id' => 'footer-1', 'description' => 'Footer area that appears on the left.', 'bootstrapcanvaswp', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => 'Footer - Center', 'id' => 'footer-2', 'description' => 'Footer area that appears in the center.', 'bootstrapcanvaswp', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => 'Footer - Right', 'id' => 'footer-3', 'description' => 'Footer area that appears on the right.', 'bootstrapcanvaswp', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'bootstrapcanvaswp_widgets_init' ); /** * Active Class */ function bootstrapcanvaswp_nav_class($classes, $item){ if( in_array('current-menu-item', $classes) ){ $classes[] = 'active '; } return $classes; } add_filter( 'nav_menu_css_class' , 'bootstrapcanvaswp_nav_class' , 10 , 2 ); /** * Excerpt More . . . */ function new_excerpt_more( $more ) { return ' . . .'; } add_filter( 'excerpt_more', 'new_excerpt_more' ); /** * Comment Callback */ function bootstrapcanvaswp_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); if ( 'div' == $args['style'] ) { $tag = 'div'; $add_below = 'comment'; } else { $tag = 'li'; $add_below = 'div-comment'; } ?> < id="comment-">
id="div-comment-">
%s says:' ), get_comment_author_link() ); ?>
comment_approved == '0' ) : ?>
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
add_setting( 'header_color' , array( 'default' => '#f9f9f9', ) ); // Footer Setting $wp_customize->add_setting( 'footer_color' , array( 'default' => '#f9f9f9', ) ); // Header Text Setting $wp_customize->add_setting( 'header_textcolor' , array( 'default' => '#333', ) ); // Footer Text Setting $wp_customize->add_setting( 'footer_textcolor' , array( 'default' => '#999', ) ); // Text Setting $wp_customize->add_setting( 'text_color' , array( 'default' => '#555', ) ); // Headings Setting $wp_customize->add_setting( 'headings_color' , array( 'default' => '#333', ) ); // Tracks Setting $wp_customize->add_setting( 'tracks_color' , array( 'default' => '#999', ) ); // Links Setting $wp_customize->add_setting( 'link_color' , array( 'default' => '#428bca', ) ); // Logo Setting $wp_customize->add_setting( 'logo' ); // Logo Section $wp_customize->add_section( 'bootstrapcanvaswp_logo' , array( 'title' => __( 'Logo', 'bootstrapcanvaswp' ), 'priority' => 30, ) ); // Logo Control $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo', array( 'label' => __( 'Upload New', 'bootstrapcanvaswp' ), 'section' => 'bootstrapcanvaswp_logo', 'settings' => 'logo', ) ) ); // Header Control $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_color', array( 'label' => __( 'Header', 'bootstrapcanvaswp' ), 'section' => 'colors', 'settings' => 'header_color', 'priority' => '1', ) ) ); //Footer Control $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_color', array( 'label' => __( 'Footer', 'bootstrapcanvaswp' ), 'section' => 'colors', 'settings' => 'footer_color', 'priority' => '2', ) ) ); // Header Text Control $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_textcolor', array( 'label' => __( 'Header Text Color', 'bootstrapcanvaswp' ), 'section' => 'colors', 'settings' => 'header_textcolor', 'priority' => '3', ) ) ); // Footer Text Control $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_textcolor', array( 'label' => __( 'Footer Text Color', 'bootstrapcanvaswp' ), 'section' => 'colors', 'settings' => 'footer_textcolor', 'priority' => '4', ) ) ); // Text Control $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'text_color', array( 'label' => __( 'Text', 'bootstrapcanvaswp' ), 'section' => 'colors', 'settings' => 'text_color', 'priority' => '5', ) ) ); // Headings Control $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'headings_color', array( 'label' => __( 'Headings', 'bootstrapcanvaswp' ), 'section' => 'colors', 'settings' => 'headings_color', 'priority' => '6', ) ) ); // Tracks Control $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tracks_color', array( 'label' => __( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)', 'bootstrapcanvaswp' ), 'section' => 'colors', 'settings' => 'tracks_color', 'priority' => '7', ) ) ); // Links Control $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'link_color', array( 'label' => __( 'Links', 'bootstrapcanvaswp' ), 'section' => 'colors', 'settings' => 'link_color', 'priority' => '8', ) ) ); } add_action( 'customize_register', 'bootstrapcanvaswp_customize_register' ); /** * Customization CSS */ function bootstrapcanvaswp_customize_css() { ?>