From: Anthony Talarico Date: Wed, 22 Mar 2017 17:16:09 +0000 (-0400) Subject: removing france journeys image restrictions in functions file X-Git-Tag: v1.0.0^2~87 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=aa1664b615709a02f8dfbad927e4715331625ae9;p=WP-Themes%2Fmackinawferry.git removing france journeys image restrictions in functions file --- diff --git a/functions.php b/functions.php index 97ffb9e..d3a99d4 100644 --- a/functions.php +++ b/functions.php @@ -105,45 +105,9 @@ function glm_get_header() { $post_id = $post->post_parent; } echo '
term_id; - $thumbnail = z_taxonomy_image_url( $tagID); - - echo ' style="background-image: url('.$thumbnail.');padding:0;padding-bottom:20%;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 370px; "'; -// $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(100), "full"); -// echo ' style="background-image: url('.$image_data[0].');padding:0;padding-bottom:20%;background-position:center center;background-size: contain;background-repeat:no-repeat;max-height: 370px; "'; - - } else if ( has_post_thumbnail($post_id) && is_post_type('page')) { - - $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), "full"); - echo ' style="background-image: url('.$image_data[0].');padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 370px; "'; - - } else if ( is_product_tag() ){ - - $tag = get_queried_object(); - $tagID = $tag->term_id; - - $thumbnail = z_taxonomy_image_url( (int)$object->object_id ); - - echo ' style="background-image: url('.$thumbnail.');padding:0;padding-bottom:20%;background-position:top center;background-size: cover;background-repeat:no-repeat;max-height: 250px; "'; - } else if ( !is_post_type('page') ){ - echo ' class="no-featured"'; - } else { - echo ' style="background-image: url('.get_template_directory_uri().'/assets/interior-pg-header-image.jpg);padding:0;padding-bottom:20%;background-position:top center;background-size:cover;background-repeat:no-repeat;max-height: 250px; "'; - echo ' class="no-featured"'; - } - echo '>'; - echo '
'; - echo '
'; - echo '
'; - echo '
'; + + echo ' style="background-image: url('.get_template_directory_uri().'/assets/interior-pg-header-image.jpg);background-position:center center;background-size:cover;background-repeat:no-repeat;max-height: 250px; "'; + echo ' class="no-featured">'; echo '
'; }