Contact Us links in footer are removed if no client email
authorLaury GvR <laury@gaslightmedia.com>
Mon, 12 Feb 2018 21:22:33 +0000 (16:22 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 12 Feb 2018 21:22:33 +0000 (16:22 -0500)
Instead of creating a link to the Contact Us page, the contact us
link is instead removed for each respective location if it has no
email address derived from glm client info.

parts/client-info-footer.php

index 35fb931..8bf5b65 100644 (file)
@@ -20,8 +20,6 @@
             <br>
             <?php if (glm_get_clientinfo_option('email')) :?>
                 <a class="mail_1 location-mail" href="mailto:<?php echo glm_get_clientinfo_option('email'); ?>">Contact Us</a>
-            <?php else:?>
-                <a class="mail location-mail" href="<?php echo get_permalink(86);?>">Contact Us</a>
             <?php endif;?>
         </div>
         <div class="location_2 address-container medium-6 columns">
@@ -44,8 +42,6 @@
             <br>
             <?php if (glm_get_clientinfo_option('email2')) :?>
                 <a class="mail_2 location-mail" href="mailto:<?php echo glm_get_clientinfo_option('email2'); ?>">Contact Us</a>
-            <?php else:?>
-                <a class="mail location-mail" href="<?php echo get_permalink(86);?>">Contact Us</a>
             <?php endif;?>
         </div>
     <?php endif;?>