added email to client info and restricted pst type to pages in functions.php for...
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 20 Jun 2016 20:08:49 +0000 (16:08 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 20 Jun 2016 20:08:49 +0000 (16:08 -0400)
functions.php
parts/client-info-footer.php

index 21ad351..6db79f5 100644 (file)
@@ -75,7 +75,7 @@ function glm_site_scripts()
 function glm_get_header() {
     echo '<div';
 
-    if (has_post_thumbnail()) {
+    if ( has_post_thumbnail() && is_post_type('page')) {
             $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
             echo ' style="background-image: url('.$image_data[0].');;height:670px;padding:0;padding-bottom:20%;background-position:top center;background-size: 100%;background-repeat:no-repeat;max-height: 670px; "';
     } else {
@@ -134,8 +134,11 @@ function mytheme_search_loop() {
 
 function is_post_type($type){
     global $wp_query;
-    if($type == get_post_type($wp_query->post->ID)) return true;
-    return false;
+    if($type == get_post_type($wp_query->post->ID)){
+        return true;
+    } else {
+        return false;
+    }
 }
 
 add_action('thematic_searchloop', 'mytheme_search_loop');
index f7d6a86..b4a8730 100644 (file)
@@ -23,7 +23,7 @@
                 <span class="bullet"> &#8226; </span><span><?php echo glm_get_clientinfo_option('phone2');?></span>
             <?php endif;?>
             <?php if (glm_get_clientinfo_option('email')) :?>
-                <br><a href="mailto:#"><span><?php echo glm_get_clientinfo_option('email');?></span></a>
+                <br><a href="mailto:voyage@francejourneys.com"><span><?php echo glm_get_clientinfo_option('email');?></span></a>
             <?php endif;?>
         <span class="bullet"> &#8226; </span><a href="<?php echo get_permalink(102); ?>">Blog</a>
         </div>