New social icons & urls; set based on site section
authorLaury GvR <laury@gaslightmedia.com>
Mon, 2 Apr 2018 19:39:21 +0000 (15:39 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 2 Apr 2018 19:39:21 +0000 (15:39 -0400)
- New social icon sets used; these include Linked In.
- Social urls updated
- Real Estate, Hotel, and Base, now show a different set of social
  icons in the footer or the off-canvas menu depending on which
  section the user is on.

assets/social-icons-hotel.png [deleted file]
assets/social-icons-set-gray.png [new file with mode: 0755]
assets/social-icons-set-white.png [new file with mode: 0644]
assets/social-icons.png [deleted file]
css/app.css
functions.php
scss/_page.footer.scss
scss/_page.header.scss
sections/footer.php
sections/header-hotel.php
sections/off-canvas.php

diff --git a/assets/social-icons-hotel.png b/assets/social-icons-hotel.png
deleted file mode 100644 (file)
index bf0e61e..0000000
Binary files a/assets/social-icons-hotel.png and /dev/null differ
diff --git a/assets/social-icons-set-gray.png b/assets/social-icons-set-gray.png
new file mode 100755 (executable)
index 0000000..c011ad9
Binary files /dev/null and b/assets/social-icons-set-gray.png differ
diff --git a/assets/social-icons-set-white.png b/assets/social-icons-set-white.png
new file mode 100644 (file)
index 0000000..aaad14b
Binary files /dev/null and b/assets/social-icons-set-white.png differ
diff --git a/assets/social-icons.png b/assets/social-icons.png
deleted file mode 100644 (file)
index 63ec91e..0000000
Binary files a/assets/social-icons.png and /dev/null differ
index d3131cf..bed41a4 100644 (file)
@@ -7053,15 +7053,15 @@ header {
       header.hotel-section #top-bar-phone-socials #top-bar-social-wrapper #top-bar-socials {
         margin-top: 0; }
         header.hotel-section #top-bar-phone-socials #top-bar-social-wrapper #top-bar-socials .social-icon {
-          background-image: url("../assets/social-icons-hotel.png");
+          background-image: url("../assets/social-icons-set-gray.png");
           width: 16px;
           height: 16px; }
           header.hotel-section #top-bar-phone-socials #top-bar-social-wrapper #top-bar-socials .social-icon.facebook {
             background-position: 0px 0px; }
           header.hotel-section #top-bar-phone-socials #top-bar-social-wrapper #top-bar-socials .social-icon.twitter {
-            background-position: -24px 0px; }
-          header.hotel-section #top-bar-phone-socials #top-bar-social-wrapper #top-bar-socials .social-icon.pinterest {
-            background-position: -47px 0px; }
+            background-position: -23px 0px; }
+          header.hotel-section #top-bar-phone-socials #top-bar-social-wrapper #top-bar-socials .social-icon.linkedin {
+            background-position: -46px 0px; }
   header.hotel-section .top-bar {
     padding-top: 40px; }
     header.hotel-section .top-bar .top-bar-section {
@@ -8669,22 +8669,22 @@ footer.main h4 {
   margin-top: 25px;
   text-align: center; }
   .social-links .social-icon {
-    background-image: url("../assets/social-icons.png");
+    background-image: url("../assets/social-icons-set-white.png");
     background-repeat: no-repeat;
     display: inline-block;
-    height: 21px;
-    width: 21px;
+    height: 20px;
+    width: 20px;
     margin: 3px; }
     .social-links .social-icon.facebook {
       background-position: 0 0; }
     .social-links .social-icon.twitter {
       background-position: -29px 0; }
     .social-links .social-icon.instagram {
-      background-position: -59px 0; }
+      background-position: -58px 0; }
     .social-links .social-icon.youtube {
-      background-position: -89px 0; }
-    .social-links .social-icon.pinterest {
-      background-position: -119px 0; }
+      background-position: -87px 0; }
+    .social-links .social-icon.linkedin {
+      background-position: -116px 0; }
 
 .contact-us-link {
   display: inline-block;
index 3db3e14..65c0a7a 100644 (file)
@@ -6,10 +6,11 @@ $ancestorId   = null;
 $includePages = array();
 $frontPageId  = get_option('page_on_front');
 add_action('widgets_init', 'glm_quicksite_widget_init');
-define("BUILDERS_PAGE_ID",  74 ); // L:34, dev55:74
-define("HOTEL_PAGE_ID",     84 ); // L:13, dev55:84
-define("FRONT_BLOCKS_GROUP",383); // L:128, dev55:383
-define("HOTEL_BLOCKS_GROUP",384); // L:129, dev55:384
+define("BUILDERS_PAGE_ID",      74 ); // L:34, dev55:74
+define("HOTEL_PAGE_ID",         84 ); // L:13, dev55:84
+define("REAL_ESTATE_PAGE_ID",   27 ); // L:19, dev55:27
+define("FRONT_BLOCKS_GROUP",    383); // L:128, dev55:383
+define("HOTEL_BLOCKS_GROUP",    384); // L:129, dev55:384
 
 if (!function_exists('glm_quicksite_widget_init')) {
 
index ac958ee..896366a 100644 (file)
@@ -117,11 +117,11 @@ footer.main {
     margin-top: 25px;
     text-align: center;
     .social-icon {
-        background-image: url("../assets/social-icons.png");
+        background-image: url("../assets/social-icons-set-white.png");
         background-repeat: no-repeat;
         display: inline-block;
-        height: 21px;
-        width: 21px;
+        height: 20px;
+        width: 20px;
         margin: 3px;
         &.facebook {
             background-position: 0 0;
@@ -130,13 +130,13 @@ footer.main {
             background-position: -29px 0;
         }
         &.instagram {
-            background-position: -59px 0;
+            background-position: -58px 0;
         }
         &.youtube {
-            background-position: -89px 0;
+            background-position: -87px 0;
         }
-        &.pinterest {
-            background-position: -119px 0;
+        &.linkedin {
+            background-position: -116px 0;
         }
     }
 }
index e0b0495..89ed66f 100644 (file)
@@ -85,17 +85,17 @@ header {
                 #top-bar-socials {
                     margin-top: 0;
                     .social-icon {
-                        background-image: url("../assets/social-icons-hotel.png");
+                        background-image: url("../assets/social-icons-set-gray.png");
                         width: 16px;
                         height: 16px;
                         &.facebook {
                             background-position: 0px 0px;
                         }
                         &.twitter {
-                            background-position: -24px 0px;
+                            background-position: -23px 0px;
                         }
-                        &.pinterest {
-                            background-position: -47px 0px;
+                        &.linkedin {
+                            background-position: -46px 0px;
                         }
                     }
                 }
index 98063b2..9a1b71b 100644 (file)
                     <a href="<?php echo get_permalink(4);?>">Request</a>
                 </div>
                 <div id="footer-socials" class="social-links show-for-medium-up">
-                    <a class="facebook social-icon" href="http://www.facebook.com/BayHarbor" alt="facebook" target="_blank"></a>
-                    <a class="twitter social-icon" href="#" alt="twitter" target="_blank"></a>
-                    <a class="instagram social-icon" href="#" alt="instagram" target="_blank"></a>
+                <?php if ( is_in_tree( HOTEL_PAGE_ID ) ) { ?>
+                    <a class="facebook social-icon" href="https://business.facebook.com/Bayharborvillagehotel/?business_id=771977469544609" alt="facebook" target="_blank"></a>
+                    <a class="twitter social-icon" href="https://twitter.com/bayharborhotel" alt="twitter" target="_blank"></a>
+                    <a class="linkedin social-icon" href="https://www.linkedin.com/company/bay-harbor-village-hotel-&-conference-center" alt="linkedin" target="_blank"></a>
+                <?php } else if ( is_in_tree( REAL_ESTATE_PAGE_ID ) ) { ?>
+                    <a class="facebook social-icon" href="https://business.facebook.com/HarborSothebysRealty/?business_id=771977469544609" alt="facebook" target="_blank"></a>
+                    <a class="twitter social-icon" href="https://twitter.com/HarborSIRealty" alt="twitter" target="_blank"></a>
+                    <a class="youtube social-icon" href="https://www.youtube.com/user/harborsothebys" alt="youtube" target="_blank"></a>
+                    <a class="linkedin social-icon" href="https://www.linkedin.com/company/harbor-sotheby%27s-international-realty" alt="linkedin" target="_blank"></a>
+                <?php } else { ?>
+                    <a class="facebook social-icon" href="https://business.facebook.com/bayharbormi/?business_id=771977469544609" alt="facebook" target="_blank"></a>
+                    <a class="twitter social-icon" href="https://twitter.com/bayharbor" alt="twitter" target="_blank"></a>
+                    <a class="instagram social-icon" href="https://www.instagram.com/bayharbormi/" alt="instagram" target="_blank"></a>
                     <a class="youtube social-icon" href="https://www.youtube.com/channel/UCK4rJIYKU-PVYVqOMBvA49A" alt="youtube" target="_blank"></a>
-                    <a class="pinterest social-icon" href="#" alt="pinterest" target="_blank"></a>
+                    <a class="linkedin social-icon" href="https://www.linkedin.com/company/bay-harbor-company" alt="linkedin" target="_blank"></a>
+                <?php } ?>
                 </div>
             </div>
             <div id="footer-newsletter" class="columns small-12 medium-4">
index 9735367..0b8df96 100644 (file)
@@ -31,9 +31,9 @@
                 </div>
                 <div id="top-bar-social-wrapper">
                     <div id="top-bar-socials" class="social-links show-for-medium-up">
-                        <a class="facebook social-icon" href="http://www.facebook.com/BayHarbor" alt="facebook" target="_blank"></a>
-                        <a class="twitter social-icon" href="#" alt="twitter" target="_blank"></a>
-                        <a class="pinterest social-icon" href="#" alt="pinterest" target="_blank"></a>
+                        <a class="facebook social-icon" href="https://business.facebook.com/Bayharborvillagehotel/?business_id=771977469544609" alt="facebook" target="_blank"></a>
+                        <a class="twitter social-icon" href="https://twitter.com/bayharborhotel" alt="twitter" target="_blank"></a>
+                        <a class="linkedin social-icon" href="https://www.linkedin.com/company/bay-harbor-village-hotel-&-conference-center" alt="linkedin" target="_blank"></a>
                     </div>
                 </div>
             </section>
index ddf3829..502438c 100644 (file)
                             </div>
                         <?php } ?>
                         <div id="oc-socials" class="social-links show-for-medium-down">
-                            <a class="facebook social-icon" href="http://www.facebook.com/BayHarbor" alt="facebook" target="_blank"></a>
-                            <a class="twitter social-icon" href="#" alt="twitter" target="_blank"></a>
-                            <a class="instagram social-icon" href="#" alt="instagram" target="_blank"></a>
+                        <?php if ( is_in_tree( HOTEL_PAGE_ID ) ) { ?>
+                            <a class="facebook social-icon" href="https://business.facebook.com/Bayharborvillagehotel/?business_id=771977469544609" alt="facebook" target="_blank"></a>
+                            <a class="twitter social-icon" href="https://twitter.com/bayharborhotel" alt="twitter" target="_blank"></a>
+                            <a class="linkedin social-icon" href="https://www.linkedin.com/company/bay-harbor-village-hotel-&-conference-center" alt="linkedin" target="_blank"></a>
+                        <?php } else if ( is_in_tree( REAL_ESTATE_PAGE_ID ) ) { ?>
+                            <a class="facebook social-icon" href="https://business.facebook.com/HarborSothebysRealty/?business_id=771977469544609" alt="facebook" target="_blank"></a>
+                            <a class="twitter social-icon" href="https://twitter.com/HarborSIRealty" alt="twitter" target="_blank"></a>
+                            <a class="youtube social-icon" href="https://www.youtube.com/user/harborsothebys" alt="youtube" target="_blank"></a>
+                            <a class="linkedin social-icon" href="https://www.linkedin.com/company/harbor-sotheby%27s-international-realty" alt="linkedin" target="_blank"></a>
+                        <?php } else { ?>
+                            <a class="facebook social-icon" href="https://business.facebook.com/bayharbormi/?business_id=771977469544609" alt="facebook" target="_blank"></a>
+                            <a class="twitter social-icon" href="https://twitter.com/bayharbor" alt="twitter" target="_blank"></a>
+                            <a class="instagram social-icon" href="https://www.instagram.com/bayharbormi/" alt="instagram" target="_blank"></a>
                             <a class="youtube social-icon" href="https://www.youtube.com/channel/UCK4rJIYKU-PVYVqOMBvA49A" alt="youtube" target="_blank"></a>
-                            <a class="pinterest social-icon" href="#" alt="pinterest" target="_blank"></a>
+                            <a class="linkedin social-icon" href="https://www.linkedin.com/company/bay-harbor-company" alt="linkedin" target="_blank"></a>
+                        <?php } ?>
                         </div>
                         <?php if (function_exists('glm_get_clientinfo_option')) :?>
                             <div id="oc-address">