From 9b43e4b0e4427141164d3357d6f0ce815618bc45 Mon Sep 17 00:00:00 2001 From: koenemann Date: Tue, 7 Feb 2017 15:30:44 +0100 Subject: [PATCH] cleanup inc/template-tags.php --- inc/template-tags.php | 36 --------------------------------- inc/wpcom.php | 47 ++++++++++++++++++++++++++----------------- 2 files changed, 28 insertions(+), 55 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index bc1a208..22c5d5e 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -109,39 +109,3 @@ function understrap_category_transient_flusher() { add_action( 'edit_category', 'understrap_category_transient_flusher' ); add_action( 'save_post', 'understrap_category_transient_flusher' ); -/** - * Display navigation to next/previous post when applicable. - */ -if ( ! function_exists( 'understrap_post_nav' ) ) : - - function understrap_post_nav() { - // Don't print empty markup if there's nowhere to navigate. - $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true ); - $next = get_adjacent_post( false, '', false ); - - if ( ! $next && ! $previous ) { - return; - } - ?> - -
-
- -
-
- '', - 'border' => '', - 'text' => '', - 'link' => '', - 'url' => '', - ); - } + // Set theme colors for third party services. + if ( ! isset( $themecolors ) ) { + $themecolors = array( + 'bg' => '', + 'border' => '', + 'text' => '', + 'link' => '', + 'url' => '', + ); } + + /* Add WP.com print styles */ + add_theme_support( 'print-styles' ); } add_action( 'after_setup_theme', 'understrap_wpcom_setup' ); + +/* + * WordPress.com-specific styles + */ +function understrap_wpcom_styles() { + wp_enqueue_style( 'understrap-wpcom', get_template_directory_uri() . '/inc/style-wpcom.css', '20160411' ); +} +add_action( 'wp_enqueue_scripts', 'understrap_wpcom_styles' );