Most of the php templates slightly improved php
authorLaury GvR <laury@gaslightmedia.com>
Mon, 30 Mar 2015 18:06:09 +0000 (14:06 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 30 Mar 2015 18:06:09 +0000 (14:06 -0400)
Changing underscores to dashes, adding some IDs for better
css application, adding the ROW class to some so that the
footer wouldn't sneakily be taller than the content area
(even if it wasn't visible.. it was!)

footer.php
front-page.php
header.php
search.php
single.php

index 9af0397..98ef7e4 100644 (file)
@@ -1,4 +1,4 @@
-            <div id="footer_address" class="text-center side-shadow">
+            <div id="footer-address" class="text-center side-shadow">
                     <h2>The Gilmore Car Museum</h2>
                     <p>6865 W Hickory Rd. Hickory Corners, MI 49060 &#8226; 269-671-5089 &#8226; <a class="link" target="_blank" href="https://maps.google.com?daddr=6865+W+Hickory+Rd+Hickory+Corners+MI+49060">Directions</a></p>
                     <div id="soc-bottom" class="social">
@@ -11,9 +11,9 @@
                         <span class='st_sharethis' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>'></span>
                     </div>
             </div>
-            <footer>
+            <footer id="page-footer">
                 <div class="row">    
-                    <div id="footer_signup" class="small-12 medium-4 columns text-center">
+                    <div id="footer-signup" class="small-12 medium-4 columns text-center">
                         <a class="nf-modal-link" rel="nf-modal:open" href="#ninja-forms-modal-5">
                             <img src="<?php echo get_template_directory_uri();?>/assets/email_signup-img.png">
                             <div>
index 1d3d2c9..9377851 100644 (file)
@@ -14,7 +14,7 @@
                     </div>
                 </div>-->
 <!--            </div>-->
-            <div id="content_wrapper">
+            <div id="content-wrapper">
                 <div class="row content">
                     <div id="welcome" class="small-12 columns row">
                         <h2>Welcome</h2>
index 3993730..6fe7ce4 100644 (file)
@@ -12,7 +12,7 @@
     <div class="off-canvas-wrap" data-offcanvas>
         <div class="inner-wrap">
             <div id='shadow_wrapper'>
-                <header>
+                <header id="page-header">
                     <div class="row">
                         <div class="small-12 medium-4 columns text-center">
                             <a id="logo" class="text-center" href="<?php bloginfo('url');?>"><img src="<?php bloginfo('template_url'); ?>/assets/logo.png"></a>
index b7c8a28..4f8c832 100644 (file)
@@ -1,42 +1,38 @@
-
-    
 <?php get_header(); ?>
-
-    
+<div id="content-wrapper" class='side-shadow row'>
     <div id="search_results_over">
         <h2 class="search-result-header">Search Results for "<?php echo get_search_query(); ?>"</h2><br>
         <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
         <div class="" id="search_results_container" style="max-width:1000px;">
-                <div class="row">
-                    <div class="small-12 columns">
-
-                        <article id="<?php the_ID()?>" <?php post_class()?>>
-                            <h5 class="">Page: <a href="<?php the_permalink(); ?>"><?php the_title();?></a></h5>
-                            <?php echo the_advanced_excerpt('length=30&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,strong,b,hr,br,div;'); ?>
-                            <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-                                
-                                <?php $post_categories = wp_get_post_categories( get_the_ID() );
-                                $cats = array();
+            <div class="row">
+                <div class="small-12 columns">
 
-                                ?>
+                    <article id="<?php the_ID()?>" <?php post_class()?>>
+                        <span>Page: </span><h5 class=""><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h5>
+                        <?php echo the_advanced_excerpt('length=30&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,strong,b,hr,br,div;'); ?>
+                        <footer class="entry-meta small-12 medium-6 medium-push-3 center">
 
-                            </footer>
-                        </article>
-                    </div>
+                            <?php $post_categories = wp_get_post_categories( get_the_ID() );
+                            $cats = array();
+                            ?>
+                        </footer>
+                    </article>
                 </div>
+            </div>
         </div>
         <?php endwhile; ?>
         <?php if ( function_exists('FoundationPress_pagination') ) { FoundationPress_pagination(); } else if ( is_paged() ) { ?>
 
-               <nav id="post-nav">
-                       <div class="post-previous"><?php next_posts_link( __( '&larr; Older results', 'FoundationPress' ) ); ?></div>
-                       <div class="post-next"><?php previous_posts_link( __( 'Newer results &rarr;', 'FoundationPress' ) ); ?></div>
-               </nav>
-       <?php } ?>
+        <nav id="post-nav">
+            <div class="post-previous"><?php next_posts_link( __( '&larr; Older results', 'FoundationPress' ) ); ?></div>
+            <div class="post-next"><?php previous_posts_link( __( 'Newer results &rarr;', 'FoundationPress' ) ); ?></div>
+        </nav>
+        <?php } ?>
         <?php else: ?>
         <div id="post-404" class="noposts">
                 <p><?php _e('Sorry, no results were found.');?></p>
         </div><!-- /#post-404 -->
         <?php endif;?>
     </div>
-        <?php get_footer(); ?>
+</div>
+<?php get_footer(); ?>
index e060729..0ea7035 100644 (file)
@@ -1,5 +1,5 @@
 <?php get_header(); ?>
-<div class="row">
+<div id="content-wrapper" class='side-shadow row'>
     <div class="row">
         <div class="small-12 columns">
             <ul class="breadcrumbs">
             <div class="small-12 small-centered columns">
                 <div>
                     <div class="small-12 columns">
-
                         <article id="<?php the_ID()?>" <?php post_class()?>>
                             <header class="entry-header">
-
                                 <h2 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">
-                                
+
                                 <?php $post_categories = wp_get_post_categories( get_the_ID() );
                                 $cats = array();
 
                                         $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug );
                                         echo '<a rel="category" title="View all posts in '. $tag->name . ' " href="'. $tag->slug .'">'. $tag->name .'</a>, ';
                                     }
-                                }
-                                
+                                }  
                                 echo ' on ';
                                 echo ' <span class="meta date"> ' . the_time('F jS, Y') . '. </span>';
                                 ?>
-
                             </footer>
-                            <hr>
                         </article>
                     </div>
                 </div>
         <div class="navigation">
             <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
         </div><!-- /.navigation -->
-        <?php else: ?>
-        <div id="post-404" class="noposts">
-                <p><?php _e('Sorry, no results were found.');?></p>
-        </div><!-- /#post-404 -->
-        <?php endif;?>
+            <?php else: ?>
+            <div id="post-404" class="noposts">
+                    <p><?php _e('Sorry, no results were found.');?></p>
+            </div><!-- /#post-404 -->
+            <?php endif;?>
     </div>
     <div id="blog-side-info" class="alignright small-12 medium-3">
-        
+
         <p>Recent Posts</p>
         <ul>
         <?php
@@ -88,4 +77,5 @@
         <p>Archive</p>
         <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
     </div>
-        <?php get_footer(); ?>
+</div>
+<?php get_footer(); ?>