Inserting the adrotate image for product sidebar
authorLaury GvR <laury@gaslightmedia.com>
Thu, 30 Jun 2016 19:27:14 +0000 (15:27 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 30 Jun 2016 19:29:38 +0000 (15:29 -0400)
Every tour/product page has the sidebar, which will henceforth
display an ad as set up in the admin side. This ad is located
below the experiences and category display, and is text-centered.

css/app.css
functions.php
scss/_sidebar.scss
sidebar.php

index 5729f6a..e3d0fae 100644 (file)
@@ -7930,6 +7930,10 @@ input[type="submit"].blogbutton {
 .current_page_item a {
   font-weight: bold; }
 
+#ads_sidebar_container li {
+  list-style: outside none none;
+  text-align: center; }
+
 .search-top #searchform {
   text-align: left;
   display: inline-block;
index 26469fb..4288d01 100644 (file)
@@ -15,11 +15,17 @@ if (!function_exists('glm_quicksite_widget_init')) {
 
     function glm_quicksite_widget_init()
     {
+        register_sidebar(array(
+            'name' => 'Tour Sidebar Ad',
+            'id'          => 'shopsidead',
+            'description' => __('Tour Ad Area')
+            ));
         register_sidebar(array(
             'name'        => __('Slideshow'),
             'id'          => 'slideshow',
             'description' => __('Meta Slider/Slideshow Area')
         ));
+        
     }
 
 }
@@ -84,10 +90,10 @@ function woo_product_inquiry_content() {
     echo do_shortcode('[gravityform id="3" title="true" description="true"]');
 }
 
-function woo_itinerary_content() {
-    global $product;
-    echo the_field('itinerary');
-}
+//function woo_itinerary_content() {
+//    global $product;
+//    echo the_field('itinerary');
+//}
 
 function woo_photos_content() {
     global $product;
index b64cf19..8bf8dc2 100644 (file)
 }
 .current_page_item a {
     font-weight: bold;
+}
+#ads_sidebar_container li {
+    list-style: outside none none;
+    text-align: center;
 }
\ No newline at end of file
index 629c221..906ac87 100644 (file)
@@ -1,11 +1,3 @@
-<?php global $product, $post, $woocommerce;
-    $id = $post->ID;
-    $product_meta = new WC_Product($id);
-    $sku = $product_meta->get_sku();
-    $title = $product_meta->get_title();
-    $title = str_replace(' ', '-', $title);
-?>
-
 <div id="sidebar-category">
     <?php get_template_part('parts/shop-sidebar');?>    
 </div>
@@ -44,15 +36,17 @@ $all_categories = get_categories( $args );
         <?php wp_list_categories( 'taxonomy=product_tag&pad_counts=1&title_li=' ); ?>
     </ul>    
 </div>
-<!--
-<div id="categories_sidebar_container">
-    <h5><?php _e( 'Regions of France', 'woothemes' ) ?></h5>
+<!--<div id="categories_sidebar_container">
+    <h5><?php // _e( 'Regions of France', 'woothemes' ) ?></h5>
     <ul id="regions_sidebar">
         <?php
-        foreach($all_categories as $category){
-            echo '<li><a href="'.get_term_link($category->term_id) . '">'.$category->name . '</li>';
-        }
+//        foreach($all_categories as $category){
+//            echo '<li><a href="'.get_term_link($category->term_id) . '">'.$category->name . '</li>';
+//        }
         ?>
-    </ul>
+    </ul>-->
+<div id="ads_sidebar_container">
+    <?php if ( is_active_sidebar( 'shopsidead' ) ) : ?>
+       <?php dynamic_sidebar( 'shopsidead' ); ?>
+    <?php endif; ?>
 </div>
--->