From 76402a87f366838bf06f6e36a552be43dfb5641c Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 4 Nov 2018 22:32:44 +0100 Subject: Removes dist/ folder. --- dist/inc/extras.php | 114 ---------------------------------------------------- 1 file changed, 114 deletions(-) delete mode 100644 dist/inc/extras.php (limited to 'dist/inc/extras.php') diff --git a/dist/inc/extras.php b/dist/inc/extras.php deleted file mode 100644 index 94f7485..0000000 --- a/dist/inc/extras.php +++ /dev/null @@ -1,114 +0,0 @@ - $value ) { - if ( 'tag' == $value ) { - unset( $classes[ $key ] ); - } - } - - return $classes; - - } -} - -// Filter custom logo with correct classes. -add_filter( 'get_custom_logo', 'understrap_change_logo_class' ); - -if ( ! function_exists( 'understrap_change_logo_class' ) ) { - /** - * Replaces logo CSS class. - * - * @param string $html Markup. - * - * @return mixed - */ - function understrap_change_logo_class( $html ) { - - $html = str_replace( 'class="custom-logo"', 'class="img-fluid"', $html ); - $html = str_replace( 'class="custom-logo-link"', 'class="navbar-brand custom-logo-link"', $html ); - $html = str_replace( 'alt=""', 'title="Home" alt="logo"' , $html ); - - return $html; - } -} - -/** - * 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; - } - ?> - - -