'Sidebar', 'id' => 'sidebar' ) ); add_theme_support( 'post-thumbnails' ); /* Adds RSS feed links to
for posts and comments. */ add_theme_support( 'automatic-feed-links' ); /* This theme uses wp_nav_menu() in one location. */ register_nav_menu( 'head', 'Navigation menu' ); /* This theme supports custom background color and image. */ add_theme_support( 'custom-background', array( 'default-image' => get_template_directory_uri() . '/images/main-bg.jpg' ) ); /* This theme supports custom header image. */ add_theme_support( 'custom-header', array( 'default-image' => get_template_directory_uri() . '/images/default-image.jpg', 'height' => 343, 'width' => 1200 ) ); add_editor_style(); show_admin_bar( true ); } function camp_add_scripts() { /* Load script */ wp_enqueue_script( 'camp-script', get_template_directory_uri() . '/js/script.js', array( 'jquery' ) ); /* Load main stylesheet */ wp_enqueue_style( 'camp-style', get_stylesheet_uri() );?> '; /* refresh page */ } } /* Cut excerpt for slider */ function camp_excerpt_for_slider() { $excerpt = get_the_excerpt(); $words = explode( ' ', $excerpt ); if ( count( $words ) > 20 ) { array_splice( $words, 20 ); $excerpt = implode( ' ', $words ); echo $excerpt . '...'; } else echo $excerpt; } /* Comments */ function camp_comment_callback() { ?>