Remove text from footer, increase fontsize for footer phone number. Link logo to...
authorLaury GvR <laury@gaslightmedia.com>
Wed, 17 May 2017 18:31:53 +0000 (14:31 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 17 May 2017 18:31:53 +0000 (14:31 -0400)
functions.php
header.php
style.css
template-parts/footer/footer-address.php [new file with mode: 0644]

index 0388adc..57b804c 100755 (executable)
@@ -588,4 +588,29 @@ function get_child_pages_by_parent_id($pageId,$limit = -1)
     }
     wp_reset_postdata();
     return $pages;
-}
\ No newline at end of file
+}
+
+
+/**
+ * Return the client info option for the given key
+ *
+ * @param type $name Name of the client info option to return
+ *
+ * @return string Option
+ */
+if (!function_exists('glm_get_clientinfo_option')) {
+    function glm_get_clientinfo_option($name)
+    {
+        $settings = get_option('glmclientinfo_settings');
+        $states   = get_option('glmclientinfo_states');
+        if ($name == 'stateFull' && $settings['state']) {
+            return $states[$settings['state']];
+        }
+        if ($name == 'state2Full' && $settings['state2']) {
+            return $states[$settings['state2']];
+        }
+        return ($settings && $settings[$name])
+            ? $settings[$name]
+            : null;
+    }
+}
index 90e8737..341a275 100755 (executable)
@@ -25,7 +25,7 @@
 <body <?php body_class(); ?>>
     <div id="top-nav">
         <div class="top-nav-left">
-            <a href="">
+            <a class="static-nav-link" href="#frontpage-sub-title">
                 <img src="<?php bloginfo('template_url');?>/assets/images/header-logo.png">
             </a>
         </div>
                         <div class="navigation-bottom site-navigation-fixed">
                             <div class="wrap">
                                 <div id="static-nav-bottom">
-
-                                    <a class="static-nav-link static-nav-parent" href="#nav-28">contact us:</a>
                                     <div id="static-nav-bottom-phone">
-                                        <span>p:</span><span id="contact-us-number"> 231-348-3950</span>
+                                        <span id="contact-us-number"> 231-348-3950</span>
                                     </div>
                                 </div>
                             </div>
index d4529df..84df670 100755 (executable)
--- a/style.css
+++ b/style.css
@@ -1637,7 +1637,7 @@ a:hover .nav-title,
     margin: 0 auto;
     text-align: center;
     font-size: 18px;
-    padding: 10px 0;
+    padding: 6px 0;
 }
 @media screen and (max-width: 768px) {
     #static-nav-bottom #static-nav-bottom-phone {
@@ -1650,6 +1650,7 @@ a:hover .nav-title,
 }
 #static-nav-bottom-phone #contact-us-number {
     color: #666666;
+    font-size: 22px
 }
 .navigation-bottom .wrap {
     padding: 0;
@@ -2778,9 +2779,10 @@ body:not(.twentyseventeen-front-page) .entry-header {
 /* Site info */
 
 .site-info {
-       font-size: 14px;
-       font-size: 0.875rem;
-       margin-bottom: 1em;
+    font-size: 14px;
+    font-size: 0.875rem;
+    margin-bottom: 1em;
+    display: none;
 }
 
 .site-info a {
@@ -4687,3 +4689,17 @@ object {
                padding: 0;
        }
 }
+@media (max-width: 1024px) {
+    .ngg-gallery-thumbnail-box {
+        float: left;
+        max-width: 100%;
+        width: 25%;
+    }
+    .ngg-gallery-thumbnail-box img {
+        width: 100%;
+    }
+}
+.nf-form-cont {
+  margin: 0 auto;
+  max-width: 600px;
+}
\ No newline at end of file
diff --git a/template-parts/footer/footer-address.php b/template-parts/footer/footer-address.php
new file mode 100644 (file)
index 0000000..047ae07
--- /dev/null
@@ -0,0 +1,33 @@
+<div id="footer_address" class="small-centered small-11 small-text-center columns">
+    <?php if (function_exists('glm_get_clientinfo_option')) :?>
+    <span>&copy; <?php echo date('Y');?> <?php echo glm_get_clientinfo_option('businessName');?></span>
+    <span class="bullet"> | </span>
+    <?php if (glm_get_clientinfo_option('address')):?>
+        <span><?php echo glm_get_clientinfo_option('address');?></span>
+        <span class="bullet"> | </span>
+        <span><?php echo glm_get_clientinfo_option('city');?>, <?php echo glm_get_clientinfo_option('state');?>
+            <?php echo glm_get_clientinfo_option('zip');?></span>
+    <?php endif;?>
+    <?php if (glm_get_clientinfo_option('address2')):?>
+        <span class="bullet"> &#8226; </span>
+        <span><?php echo glm_get_clientinfo_option('address2');?></span>
+        <span class="bullet"> &#8226; </span>
+        <span><?php echo glm_get_clientinfo_option('city2');?>, <?php echo glm_get_clientinfo_option('state2');?>
+            <?php echo glm_get_clientinfo_option('zip2');?></span>
+    <?php endif;?>
+    <?php if (glm_get_clientinfo_option('phone')) :?>
+        <span class="bullet"> | </span><span><?php echo glm_get_clientinfo_option('phone');?></span>
+    <?php endif;?>
+    <?php if (glm_get_clientinfo_option('email')) :?>
+    <span class="bullet"> | </span>
+        <span><a href="mailto:<?php echo glm_get_clientinfo_option('email');?>"><?php echo glm_get_clientinfo_option('email');?></a></span>
+    <?php endif;?>
+    <?php if (glm_get_clientinfo_option('fax')) :?>
+        <span class="bullet"> &#8226; </span><span><?php echo glm_get_clientinfo_option('fax');?></span>
+    <?php endif;?>
+    <?php if (glm_get_clientinfo_option('extra')) :?>
+        <span class="bullet"> &#8226; </span><span><?php echo glm_get_clientinfo_option('extra');?></span>
+    <?php endif;?>
+    <?php endif;?>
+</div>
+