__( 'Primary Menu', 'bootstrapcanvaswp' ), ) ); // Custom Background $args = array( 'default-color' => 'ffffff', 'default-image' => '%1$s/images/background.jpg', ); add_theme_support( 'custom-background', $args ); } endif; add_action( 'after_setup_theme', 'bootstrapcanvaswp_setup' ); /** * Widget Areas */ function bootstrapcanvaswp_widgets_init() { register_sidebar( array( 'name' => 'Primary Sidebar', 'id' => 'sidebar-1', 'description' => 'Main sidebar that appears on the side.', 'bootstrapcanvaswp', 'before_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 ); /** * "Read More" Link */ 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'] ) ) ); ?>