Blog-related pages all working and styled and with proper php funcs
authorLaury GvR <laury@gaslightmedia.com>
Tue, 10 Mar 2015 15:29:59 +0000 (11:29 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 10 Mar 2015 15:29:59 +0000 (11:29 -0400)
home.php
index.php
page.php
screenshot.png
search.php
single.php

index dedf172..98081fc 100644 (file)
--- a/home.php
+++ b/home.php
@@ -13,7 +13,6 @@
         </div>
         <div class="row">
             <div id="blog-posts-over" class="small-12 medium-9 columns">
-                <?php echo "<h2>home.php</h2>"; ?>
                 <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
                 <div class="row content" id="blog-posts-container">
                     <div class="small-12 small-centered columns">
@@ -24,7 +23,7 @@
                                         <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
                                         <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
                                     </header>
-                                    <?php the_excerpt() ?>            
+                                    <?php the_excerpt() ?><!--more-->
                                     <?php // echo the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;'); ?>
                                     <hr>
                                 </article>
index 95cc802..89419e0 100755 (executable)
--- a/index.php
+++ b/index.php
         </div>
     <div class="row">
         <div id="blog-posts-over" class="small-12 medium-9 columns">
-            <?php echo "<h2>home.php</h2>"; ?>
+            <?php echo "<h2>index.php</h2>"; ?>
             <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
             <div class="row content" id="blog-posts-container">
                 <div class="small-12 small-centered columns">
                     <div class="row">
                         <div class="small-12 columns">
-
                             <article id="<?php the_ID()?>" <?php post_class()?>>
                                 <header class="entry-header">
-
-                                    <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
                                     <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
-
-
-                                </header>        
-                                
-                                <?php echo the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;'); ?>
+                                    <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
+                                </header>
+                                <?php echo the_content(); ?>
                                 <hr>
                             </article>
                         </div>
             </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>
     </div>
         <div id="offer" class="row">
index 07ddac7..483f9c6 100755 (executable)
--- a/page.php
+++ b/page.php
@@ -1,5 +1,5 @@
 <?php get_header(); ?>
-
+PAGE.PHP
                 <div class="row">
                     <div class="medium-12 show-for-medium-up columns">
                         <header id="still"
index e85245b..d7a8291 100755 (executable)
Binary files a/screenshot.png and b/screenshot.png differ
index 7c34776..6d27c3c 100644 (file)
@@ -1,55 +1,88 @@
-
-    
 <?php get_header(); ?>
-
-<div class="page-wrapper">
-    <h2 class="search-result-header">Search Results for "<?php echo get_search_query(); ?>"</h2>
-    <div id="blog-posts-over" class="small-12 columns">
-
-        <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
-        <div class="content" id="blog-posts-container">
-            <div class="small-12 small-centered columns">
-                <div class="row">
-                    <div class="small-12 columns">
-<!--                        <ul class="breadcrumbs">
-
-                        </ul>-->
-                    </div>
-                </div>
-                <div class="row">
-                    <div class="small-12 columns">
-
-                        <article id="<?php the_ID()?>" <?php post_class()?>>
-                                <h2 class="">Page: <a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
-                                <hr>
-                            <?php the_post_thumbnail(); ?>
-                            <?php echo the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;'); ?>
-                            <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-                                
-                                <?php $post_categories = wp_get_post_categories( get_the_ID() );
-                                $cats = array();
-
-                                ?>
-
-                            </footer>
-                            <hr>
-                        </article>
+    <div class="content">
+        <div class="row">
+            <div class="small-12 medium-5 columns"><img class="right under" src="<?php bloginfo('template_url'); ?>/assets/under-nav_left.png"></div>
+            <div class="small-12 medium-5 columns"><img class="left under" src="<?php bloginfo('template_url'); ?>/assets/under-nav_right.png"></div>
+        </div>
+        <div id="searchform_container" class="small-12 medium-3 columns alignright">
+            <form id="searchform" action="<?php bloginfo('url'); ?>" method="get">
+                <input id="s" class="text" type="text" name="s" value="" />
+                <input class="submit button blogbutton" type="submit" name="submit" value="Search" />
+                <input type="hidden" name="searchType" value="blog" />
+            </form>
+        </div>
+        <div class="row">
+            <div id="blog-posts-over" class="small-12 medium-9 columns">
+                       <h2 class="search-result-header">Search Results for "<?php echo get_search_query(); ?>"</h2>
+                <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
+                <div class="row content" id="blog-posts-container">
+                    <div class="small-12 small-centered columns">
+                        <div class="row">
+                            <div class="small-12 columns">
+                                <article id="<?php the_ID()?>" <?php post_class()?>>
+                                    <h2 class="">Page: <a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                       <hr>
+                                        <?php the_excerpt() ?>
+                                    <hr>
+                                </article>
+                            </div>
+                        </div>
                     </div>
                 </div>
+                <?php endwhile; ?>
+                <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;?>
+            </div>
+            <div id="blog-side-info" class="alignright small-12 medium-3">
+                <p>Recent Releases</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(
+                    '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>
+        </div>
+        <div id="offer" class="row">
+            <div class="small-12 medium-4 columns text-center">
+                <a href="{secureBaseURL:h}2-for--1-passport-16/"><img src="<?php bloginfo('template_url'); ?>/assets/interior_offer.png"></a>
+            </div>
+            <div id="plan" class="small-12 medium-4 columns text-center">
+                <a href="{baseURLDefined:h}free-planner-3/"><img src="<?php bloginfo('template_url'); ?>/assets/planner.png"></a>
+            </div>
+            <div id="promo" class="small-12 medium-4 columns text-center">
+                <img src="<?php bloginfo('template_url'); ?>/assets/promo.png">
+                <a class="button" href="{baseURLDefined:h}e-club-sign-up-32/">Sign Up</a>
             </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 } ?>
-        <?php else: ?>
-        <div id="post-404" class="noposts">
-                <p><?php _e('Sorry, no results were found.');?></p>
-        </div><!-- /#post-404 -->
-        <?php endif;?>
+        <div class="row sub-content">
+            <div class="small-12 columns text-center">
+                <h2 id="tagline">17 Spectacular Courses Sculpted Among Michigan's Northern Forests</h2>
+            </div>
+        </div>
     </div>
         <?php get_footer(); ?>
index f10072c..1058a22 100644 (file)
             </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>
     </div>
         <div id="offer" class="row">