__( 'Primary Menu', 'timepiece' ), ) ); /** * Add support for the Aside Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'gallery', 'image', 'quote', 'status', 'video' ) ); } endif; // timepiece_setup add_action( 'after_setup_theme', 'timepiece_setup' ); /** * Setup the WordPress core custom background feature. * * Hooks into the after_setup_theme action. */ function timepiece_register_custom_background() { add_theme_support( 'custom-background', apply_filters( 'timepiece_custom_background_args', array( 'default-color' => '0f0f0f', 'default-image' => '', ) ) ); } add_action( 'after_setup_theme', 'timepiece_register_custom_background' ); /** * Enqueue scripts and styles */ function timepiece_scripts() { wp_enqueue_style( 'style', get_stylesheet_uri() ); wp_enqueue_script( 'timepiece-js', get_template_directory_uri() . '/js/timepiece.js', array( 'jquery' ), '20120913', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'timepiece_scripts' ); /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/tweaks.php'; /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Load Jetpack compatibility file. */ if ( file_exists( get_template_directory() . '/inc/jetpack.php' ) ) require get_template_directory() . '/inc/jetpack.php';