Single post (timely event) remove blog sidebar & styling
authorLaury GvR <laury@gaslightmedia.com>
Thu, 17 Sep 2015 20:28:23 +0000 (16:28 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 18 Sep 2015 19:17:23 +0000 (15:17 -0400)
css/app.css
scss/_blog.scss
single.php

index 2870a28..255076e 100644 (file)
@@ -7222,6 +7222,12 @@ input[type="submit"].blogbutton {
       font-size: 13px;
       font-weight: bold; }
 
+#blog-posts-over.ai1ec-post article {
+  /*background-color: rgba(255, 140,140, 0.2);*/
+  background-color: rgba(180, 210, 255, 0.2);
+  border-radius: 4px;
+  padding: 20px; }
+
 /*#searchform div input &[type="text"] {
     width: 95%;
 }*/
index 793d0a6..c9def9f 100644 (file)
@@ -201,6 +201,12 @@ input[type="submit"].blogbutton {
         }
     }
 }
+#blog-posts-over.ai1ec-post article {
+    /*background-color: rgba(255, 140,140, 0.2);*/
+    background-color: rgba(180, 210, 255, 0.2);
+    border-radius: 4px;
+    padding: 20px;
+}
 /*#searchform div input &[type="text"] {
     width: 95%;
 }*/
index d32a20c..b37327f 100644 (file)
@@ -5,7 +5,14 @@
         </div>
     <?php get_template_part('parts/reservation-form');?>
         <div class="row">
-            <div id="blog-posts-over" class="small-12 medium-9 columns">
+            
+            <?php 
+            if (is_single() && is_post_type('ai1ec_event')){
+                echo '<div id="blog-posts-over" class="small-12 medium-11 medium-centered columns ai1ec-post">';
+            } else {
+                echo '<div id="blog-posts-over" class="small-12 medium-9 columns">';
+            }
+            ?>
                 <?php if(have_posts()) : while(have_posts()): the_post();?>
                 <div class="row blog-post-container">
                     <div class="small-11 small-centered columns">
                 </div><!-- /#post-404 -->
                 <?php endif;?>
             </div>
-            <?php get_template_part('parts/blog-sidebar-r'); ?>
+            <?php 
+            if (is_single() && !is_post_type('ai1ec_event')){
+                get_template_part('parts/blog-sidebar-r');
+            } 
+            ?>
             
             <div id="mid">
                 <img src="<?php bloginfo('template_url'); ?>/assets/central-swing-interior-pg-image.jpg">
                 <div id="golf">
                     <div class="row">
                         <div id="request" class="small-12 small-text-center medium-text-left medium-4 large-3 columns">
-                            <?php $golfPage = get_page_by_title('Golf');?>
+                            <?php $golfPage = get_page_by_path('michigans-central-swing-golf-package/');?>
                             <?php if($golfPage):?>
                             <a href="<?php echo get_page_link($golfPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/swing-interior.jpg"></a>
                             <?php endif;?>
@@ -69,7 +80,7 @@
                         <div class="small-12 medium-8 large-9 columns">
                             <h2>MICHIGAN’S ANSWER TO GREAT GOLF</h2>
                             <p>Whether you’re looking for classic layouts, championship challenges, or a weekend oasis of golf, Michigan’s Central Swing has it all. With 12 amazing courses and 12 relaxing retreats, Michigan’s Central Swing is the destination every golfer is looking for.</p>
-                            <?php $golfPage = get_page_by_title('Golf');?>
+                            <?php $golfPage = get_page_by_path('michigans-central-swing-golf-package/');?>
                             <?php if($golfPage):?>
                             <a href="<?php echo get_page_link($golfPage->ID);?>">more info...</a>
                             <?php endif;?>