. add_theme_support( 'automatic-feed-links' ); // Add support for Post Formats add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery' ) ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'chateau' ) ); // Add support for custom backgrounds add_theme_support( 'custom-background' ); // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page Custom Header images add_theme_support( 'post-thumbnails' ); /* * We'll be using post thumbnails for custom header images on posts and pages. * We want them to be the size of the header image that we just defined * Larger images will be auto-cropped to fit, smaller ones will be ignored. * * See header.php. * See inc/custom-header.php */ set_post_thumbnail_size( 960, 260, true ); } endif; // end chateau_setup /** * Enqueue scripts and styles */ function chateau_scripts() { wp_enqueue_style( 'chateau', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'chateau_scripts' ); // Allow custom colors to match the background color of some elements function chateau_custom_background_color() { if ( '' != get_background_color() ) { $custombackgroundcolor = get_background_color(); ?> __( 'Sidebar Widget Area', 'chateau' ), 'id' => 'sidebar', 'description' => __( 'The Sidebar', 'chateau' ), 'before_widget' => '', 'before_title' => '
', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), sprintf(__( '%1$s at %2$s', 'chateau' ), get_comment_date(), get_comment_time() ) ); ?>
by
in %4$s'), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'chateau' ), get_the_author() ) ), esc_html( get_the_author() ), get_the_category_list( ', ' ) ); ?>≈
', ', ', '
' ); ?>