Countdown target date to 12th, single event remove blog sidebar
authorLaury GvR <laury@gaslightmedia.com>
Mon, 11 Jan 2016 19:50:47 +0000 (14:50 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 11 Jan 2016 19:50:47 +0000 (14:50 -0500)
js/app.js
js/custom/pageSetup.js
single.php

index 9b70247..ad46527 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -78,7 +78,7 @@ $(document).ready(function () {
         return futureFormattedDate
       }
       $("#countdown").countdown({
-        date: "14 July 2016 09:00:00", // Change this to your desired date to countdown to
+        date: "12 July 2016 09:00:00", // Change this to your desired date to countdown to
         format: "on"
       });
     });
index cc4f393..10750a4 100644 (file)
@@ -69,7 +69,7 @@ $(document).ready(function () {
         return futureFormattedDate
       }
       $("#countdown").countdown({
-        date: "14 July 2016 09:00:00", // Change this to your desired date to countdown to
+        date: "12 July 2016 09:00:00", // Change this to your desired date to countdown to
         format: "on"
       });
     });
index e58de45..a325e15 100644 (file)
@@ -1,65 +1,72 @@
 <?php get_header(); ?>
 <main>
-        <div class="row">
-            <div id="blog-posts-over" class="small-12 medium-9 columns">
-                <?php if(have_posts()) : while(have_posts()): the_post();?>
-                <div class="row" id="blog-posts-container">
-                    <div class="small-11 small-centered columns">
-                        <div class="row">
-                            <div class="small-12 columns">
-                                <article id="<?php the_ID()?>" <?php post_class()?>>
-                                    <header class="entry-header">
-                                        <h2 id="titles" class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
-                                    </header>
-                                    <?php echo the_content(); ?>
-                                    <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-                                        
-                                    </footer>
-                                </article>
-                            </div>
+    <div class="row">
+        <?php if (get_post_type( $post ) == "ai1ec_event") { ?>
+        <div id="blog-posts-over" class="ai1ec-post small-12 medium-10 medium-centered columns">
+        <?php } else { ?>
+        <div id="blog-posts-over" class="small-12 medium-9 columns">
+        <?php } ?>
+            <?php if(have_posts()) : while(have_posts()): the_post();?>
+            <div class="row" id="blog-posts-container">
+                <div class="small-11 small-centered columns">
+                    <div class="row">
+                        <div class="small-12 columns">
+                            <article id="<?php the_ID()?>" <?php post_class()?>>
+                                <header class="entry-header">
+                                    <h2 id="titles" class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                </header>
+                                <?php echo the_content(); ?>
+                                <footer class="entry-meta small-12 medium-6 medium-push-3 center">
+
+                                </footer>
+                            </article>
                         </div>
                     </div>
                 </div>
-                <?php endwhile; ?>
-                <?php else: ?>
-                <div id="post-404" class="noposts">
-                    <p><?php _e('Sorry, no results were found.');?></p>
-                </div><!-- /#post-404 -->
-                <?php endif;?>
             </div>
-            <div class="small-11 small-only-text-center medium-3 columns">
-                <div id="blog-side-info">
-                    <form id="searchform" action="<?php bloginfo('url'); ?>" method="get">
-                        <div><input id="s" class="text" type="text" name="s" value="" />
-                        <input class="submit button" type="submit" name="submit" value="Search" />
-                        <input type="hidden" name="searchType" value="blog" /> </div>
-                    </form>
-                    <p>Recent Posts</p>
-                    <ul>
+            <?php endwhile; ?>
+            <?php else: ?>
+            <div id="post-404" class="noposts">
+                <p><?php _e('Sorry, no results were found.');?></p>
+            </div><!-- /#post-404 -->
+            <?php endif;?>
+        </div>
+        <?php if (get_post_type( $post ) == "ai1ec_event") {
+        } else { ?>
+        <div class="small-11 small-only-text-center medium-3 columns">
+            <div id="blog-side-info">
+                <form id="searchform" action="<?php bloginfo('url'); ?>" method="get">
+                    <div><input id="s" class="text" type="text" name="s" value="" />
+                    <input class="submit button" type="submit" name="submit" value="Search" />
+                    <input type="hidden" name="searchType" value="blog" /> </div>
+                </form>
+                <p>Recent Posts</p>
+                <ul>
+                <?php
+                        $args = array( 'numberposts' => '5' );
+                        $recent_posts = wp_get_recent_posts( $args );
+                        foreach( $recent_posts as $recent ){
+                                echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .   $recent["post_title"].'</a> </li> ';
+                        }
+                ?>
+                </ul>
+                <p>Archive</p>
+                <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
+                <p>Categories</p>
+                <ul>
                     <?php
-                            $args = array( 'numberposts' => '5' );
-                            $recent_posts = wp_get_recent_posts( $args );
-                            foreach( $recent_posts as $recent ){
-                                    echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .   $recent["post_title"].'</a> </li> ';
-                            }
+                    $args = array(
+                    'orderby' => 'name',
+                    'order' => 'ASC'
+                    );
+                  $categories = get_categories($args);
+                    foreach($categories as $category) { 
+                      echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';  } 
                     ?>
-                    </ul>
-                    <p>Archive</p>
-                    <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
-                    <p>Categories</p>
-                    <ul>
-                        <?php
-                        $args = array(
-                        'orderby' => 'name',
-                        'order' => 'ASC'
-                        );
-                      $categories = get_categories($args);
-                        foreach($categories as $category) { 
-                          echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';  } 
-                        ?>
-                    </ul>
-                </div>
+                </ul>
             </div>
         </div>
+    <?php } ?>
+    </div>
 </main>
     <?php get_footer(); ?>