projects
/
WP-Themes
/
westernup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a432e9
)
correcting for post_type
author
Steve Sutton
<steve@gaslightmedia.com>
Mon, 28 Sep 2015 14:09:38 +0000
(10:09 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Mon, 28 Sep 2015 14:09:38 +0000
(10:09 -0400)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
c9d1a56
..
1bc7401
100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-203,7
+203,8
@@
function glm_site_scripts()
/* Header for posts*/
function glm_get_background() {
- $eventPage = (is_single() && is_post_type('ai1ec_event'));
+ global $post;
+ $eventPage = (is_single() && get_post_type() == 'ai1ec_event');
if (has_post_thumbnail() && !$eventPage) {
$image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
$imageUrl = '<div class="featured-image" style="background: url(\''.$image_data[0].'\') no-repeat scroll 0px 0px / cover;;"></div>';