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

Commit

Permalink
Merge pull request #470 from olefredrik/feature/featuredImage
Browse files Browse the repository at this point in the history
Feature/featured image
  • Loading branch information
olefredrik committed Sep 22, 2015
2 parents a8b41a0 + 18ad148 commit 85e324b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 32 deletions.
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>

0 comments on commit 85e324b

Please sign in to comment.