Update for theme
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 19 Oct 2016 20:52:20 +0000 (16:52 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 19 Oct 2016 20:52:20 +0000 (16:52 -0400)
Remove tracking pixel from Thinkdunes.
Update nav to get rid of errors.

footer.php
lib/navigation.php

index dbc5539..1d2f720 100644 (file)
@@ -1,4 +1,4 @@
-        
+
     </div>
                     </main><!--End of main-->
                         <footer class="main">
                                         </ul>
                                     </div>
                                 </div>
-                                
+
                             </div>
                             <div class="row">
                                 <div id="foot-logo" class="small-11 columns text-center">
                                     <a href="<?php echo esc_url( home_url() ); ?>"><img src="<?php echo esc_url( get_template_directory_uri() );?>/assets/glm-logo-footer.png"></a>
                                 </div>
-                                
-                                
+
+
 <!--
                                <div class="small-12 medium-6 columns ta_cert" id="TA_certificateOfExcellence724" class="TA_certificateOfExcellence"><ul id="PPnGczghPDB4" class="TA_links DN45CWevUlp"><li id="KpQ46oqBw0O" class="bZlQ1L12T9g"><a target="_blank" href="https://www.tripadvisor.com/Hotel_Review-g42454-d316988-Reviews-Sierra_Sands_Family_Lodge-Mears_Oceana_County_Michigan.html"><img src="https://www.tripadvisor.com/img/cdsi/img2/awards/CoE2016_WidgetAsset-14348-2.png" alt="TripAdvisor" class="widCOEImg" id="CDSWIDCOELOGO"/></a></li></ul></div><script src="https://www.jscache.com/wejs?wtype=certificateOfExcellence&amp;uniq=724&amp;locationId=316988&amp;lang=en_US&amp;year=2016&amp;display_version=2"></script>
                             </div>
@@ -44,8 +44,8 @@
                                  <?php get_template_part('parts/client-info-footer');?>
                             </div>
                         </footer>
-                    
-                
+
+
                 <div id="copyright" class="text-center">
                     <span>Copyright &copy; <?php echo date('Y');?> </span>
                     <span class="bullet"> &#8226; </span>
         </div><!--End of inner-wrap-->
       </div><!--End of off-canvas-->
   <?php wp_footer();?>
-<!-- Pixels - Silver Lake Sand Dunes - Site - DO NOT MODIFY -->
-
-<img src="http://ib.adnxs.com/seg?add=2669162&t=2" width="1" height="1" />
-
-<img src="http://bcp.crwdcntrl.net/5/c=931/b=26809808" width="1" height="1"/>
-
-<img src="http://bcp.crwdcntrl.net/5/c=931/b=30490444" width="1" height="1"/>
-<!-- End of Segment Pixel -->
-<!-- MLive tracking code -->
-<script type="text/javascript">
-!function(){function t(){var t=r("utm_content");if(t){var e=new Date;e.setDate(e.getDate()+30),document.cookie=t+";expire="+e.toGMTString()+";path=/"}else if(document.cookie)for(var o=document.cookie.split(/; */),n=0;n<o.length;n++)if(0===o[n].toLowerCase().trim().indexOf("utm_content=")){t=o[n];break}return t}function e(t){try{console.log(t)}catch(e){alert(t)}}function r(t){var e=top.location.search?top.location.search.substring(1):null;if(e)for(var r=e.split("&"),o=0;o<r.length;o++)if(0===r[o].toLowerCase().trim().indexOf(t+"="))return r[o];return null}var o="",n=r("mctest");if(n)e("dnr tag version: 20160107"),o="http://localhost:8080/rip/library/dnr/mcDnrTag.debug.js";else{var a=t(),c="";a&&(c=top.location.search?0<=top.location.search.indexOf("utm_content")?top.location.search:top.location.search+"&"+a:"?"+a),o="https://script.advertiserreports.com/redirector/dnr"+c}var i=document.createElement("script");i.src=o,i.type="text/javascript",scriptTag=document.getElementsByTagName("script")[0],scriptTag.parentNode.appendChild(i)}();
-</script>
-<!-- End of MLive tracking code -->
   <script charset="utf-8" type="text/javascript">var switchTo5x=true;</script>
 <script charset="utf-8" type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
 <script charset="utf-8" type="text/javascript">stLight.options({"publisher":"wp.c3d3647e-de70-4780-b71d-6b739fad685a"});var st_type="wordpress4.3.1";</script>
index 3b8f3fa..f725b28 100644 (file)
@@ -231,11 +231,12 @@ function glm_get_menu_options()
 function glm_side_menu($mobile = false) {
 
     global $post;
-   
+
     $sideMenu = $allMenu = $pageMenuId = array();
     $membersOnly = false;
     $membersOnlyID = get_option("glm_members_database_option_members_only_id");
-    
+
+    /*
     if( 142 == $post->post_parent || is_tree(142)){
         if (($locations = get_nav_menu_locations()) && isset($locations['chamber'])){
             $menu       = wp_get_nav_menu_object($locations['chamber']);
@@ -246,7 +247,8 @@ function glm_side_menu($mobile = false) {
             $menu       = wp_get_nav_menu_object($locations['community']);
         }
     }
-    if (is_in_tree($membersOnlyID)) { 
+     */
+    if (is_in_tree($membersOnlyID)) {
         if (($locations = get_nav_menu_locations()) && isset($locations['members-only'])) {
             $menu       = wp_get_nav_menu_object($locations['members-only']);
         }
@@ -290,11 +292,11 @@ function glm_side_menu($mobile = false) {
             // get the subs for $thisPageMenuParent
             $subs = $sideMenu[$thisPageMenuParent];
         } else {
-            $pageHead  = $allMenu[0];
+            $pageHead  = ( isset($allMenu[0]) ) ? $allMenu[0]: '';
             // get Main level
             $subs = $sideMenu[0];
         }
-    
+
     if ($mobile) {
         echo '<ul>';
         echo '<li><a href="'.get_bloginfo('url').'">Home</a></li>';