for posts and comments. add_theme_support( 'automatic-feed-links' ); // Register Menu Locations. register_nav_menus( array( 'main' => __( 'Main Menu', 'cafe-faucher' ), 'footer' => __( 'Footer Menu', 'cafe-faucher' ), 'sitemap' => __( 'Sitemap Menu', 'cafe-faucher' ) ) ); /* * Enable support for custom logo. * * @since Cafe Faucher 1.1.8 */ add_theme_support( 'custom-logo', array( 'width' => 313, 'height' => 176, 'flex-height' => true, ) ); /* * This theme supports custom background color and image, and here * we also set up the default background color. */ add_theme_support( 'custom-background', array( 'default-color' => 'e6e6e6', ) ); // This theme uses a custom image size for featured images, displayed on "standard" posts. add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop } add_action( 'after_setup_theme', 'cafefaucher_setup' ); /** * Enqueues scripts and styles for front-end. * * @since Cafe Faucher 1.0 */ function cafe_faucher_enqueue() { // Add Site CSS and JS wp_enqueue_style( 'bootstrap-css', get_template_directory_uri() . '/css/bootstrap.css', array(), '3.3.7', 'all' ); wp_enqueue_style( 'cafefaucher-style', get_stylesheet_uri() ); add_editor_style( 'editor-styling', get_template_directory_uri() . '/css/editor-style.css', array(), '1.1.1', 'all' ); wp_enqueue_style( 'bootstrap-social', get_template_directory_uri() . '/css/bootstrap-social.css', array(), '1.0.0', 'all' ); wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.css', array(), '4.2.0', 'all' ); wp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/js/bootstrap.js', array( 'jquery' ), '3.3.7', true ); wp_enqueue_script( 'cafefaucher-scripts', get_template_directory_uri() . '/js/cf-scripts.js', array( 'jquery' ), '1.1.5', true ); } add_action( "wp_enqueue_scripts", "cafe_faucher_enqueue", 999 ); /** * Enqueue Javascript postMessage handlers for the Customizer. * * Binds JS handlers to make the Customizer preview reload changes asynchronously. * * @since Cafe Faucher 1.0 */ function cafe_faucher_customize_preview_js() { wp_enqueue_script( 'cafe-faucher-customizer', get_template_directory_uri() . '/js/cf-customizer.js', array( 'customize-preview' ), '20141120', true ); } add_action( 'customize_preview_init', 'cafe_faucher_customize_preview_js' ); /** * Site tile tag setup * * @since Cafe Faucher 1.0 */ add_action( 'after_setup_theme', 'theme_functions' ); function theme_functions() { add_theme_support( 'title-tag' ); } /** * Custom Header defaults * * @since Cafe Faucher 1.1.7 */ function cafefaucher_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'cafefaucher_header_args', array( 'default-text-color' => '0B4B72', 'flex-width' => true, 'flex-height' => true, ) ) ); } add_action( 'after_setup_theme', 'cafefaucher_custom_header_setup' ); /** * Sets the content width in pixels, based on the theme's design and stylesheet * * @since Cafe Faucher 1.1.8 */ function cafefaucher_content_width() { $GLOBALS['content_width'] = apply_filters( 'cafefaucher_content_width', 760 ); } add_action( 'after_setup_theme', 'cafefaucher_content_width', 0 ); /** * Displays navigation to next/previous pages when applicable. * * @since Cafe Faucher 1.0 */ if ( ! function_exists( 'cafefaucher_content_nav' ) ) : function cafefaucher_content_nav( $html_id ) { global $wp_query; $html_id = esc_attr( $html_id ); if ( $wp_query->max_num_pages > 1 ) : ?> comment_type ) : case 'pingback' : case 'trackback' : // Display trackbacks differently than normal comments. ?>
', '' ); ?>