Update with woobox code
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 27 Mar 2019 18:49:46 +0000 (14:49 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 27 Mar 2019 18:49:46 +0000 (14:49 -0400)
Adding to only woobox page id 71

Toolkit/Page.php
templates/template.html

index 67ac2b7..2f81c98 100755 (executable)
@@ -690,6 +690,11 @@ class Toolkit_Page
             $this->_getFeaturedVideo();
         }
 
+        $this->wooboxPage = false;
+        if ( $this->_catid == 71 ) {
+            $this->wooboxPage = true;
+        }
+
     }
 
     /**
index cf01ad2..9219099 100755 (executable)
         <!-- End Facebook Pixel Code -->
     </head>
     <body>
+          {if:wooboxPage}
+        <!--
+        Woobox Code
+        -->
+        <div id='woobox-root'></div>
+<script>(function(d, s, id) {
+var js, fjs = d.getElementsByTagName(s)[0];
+if (d.getElementById(id)) return;
+js = d.createElement(s); js.id = id;
+js.src = "https://woobox.com/js/plugins/woo.js";
+fjs.parentNode.insertBefore(js, fjs);
+}(document, 'script', 'woobox-sdk'));</script>
+          {end:}
         <!--
         Start of DoubleClick Floodlight Tag: Please do not remove
         Activity name of this tag: DBM_GaylordGolfMecca_04172018_Conversion