Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Feature/featured image #470

Merged
merged 3 commits into from
Sep 22, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ script:
# Receive notifications for build results.
# @link http://docs.travis-ci.com/user/notifications/#Email-notifications
notifications:
email: false
email: false
3 changes: 0 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
/** Add theme support */
require_once( 'library/theme-support.php' );

/** Add Header image */
require_once( 'library/custom-header.php' );

/** Add Nav Options to Customer */
require_once( 'library/custom-nav.php' );

Expand Down
22 changes: 0 additions & 22 deletions library/custom-header.php

This file was deleted.

7 changes: 1 addition & 6 deletions parts/featured-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
if ( has_post_thumbnail( $post->ID ) ) :
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
$image = $image[0];
echo '<header id="featured-hero" role="banner" style="background-image: url(\'' . $image . '\')" > ';

// If no feature image is set, just render the header tag without injected css background
else :
echo '<header id="featured-hero" class="no-featured-image-set" role="banner">';
echo '<header id="featured-hero" role="banner" style="background-image: url(\'' . $image . '\')" ></header>';
endif;
?>
</header>