Removed category display on home/search/single/archive, centered pagination nav
authorLaury GvR <laury@gaslightmedia.com>
Thu, 13 Aug 2015 18:44:21 +0000 (14:44 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 13 Aug 2015 18:44:21 +0000 (14:44 -0400)
archive.php
home.php
search.php
single.php

index 72409da..c7db317 100644 (file)
                         <?php echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt(): the_excerpt(); ?>
                         <footer class="entry-meta small-12 medium-6 medium-push-3 center">
                             <?php $post_categories = wp_get_post_categories( get_the_ID() );
-                            $cats = array();
-                            echo 'This entry was posted ';
-                            if (has_category()) {
-                                echo 'in';
-                                foreach($post_categories as $c){
-                                    $cat = get_category( $c );
-                                    $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-                                    echo ', <a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>';
-                                }
-                                echo '.';
-                            }
+//                            $cats = array();
+//                            echo 'This entry was posted ';
+//                            if (has_category()) {
+//                                echo 'in';
+//                                foreach($post_categories as $c){
+//                                    $cat = get_category( $c );
+//                                    $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
+//                                    echo ', <a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>';
+//                                }
+//                                echo '.';
+//                            }
                             ?>
                         </footer>
                     </article>
                 </div>
             </div>
             <?php endwhile; ?>
-            <div class="navigation">
+            <div class="navigation small-11 small-centered">
                 <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
             </div><!-- /.navigation -->
             <?php else: ?>
index f6c6499..c1af61c 100644 (file)
--- a/home.php
+++ b/home.php
@@ -9,18 +9,17 @@
                 <div id="blog-posts-over" class="small-12 medium-9 columns">
                     <?php if(have_posts()) : while(have_posts()): the_post();?>
                     <div class="row blog-posts-container">
-                        <div class="small-11 small-centered columns">
-                            <article id="<?php the_ID()?>" <?php post_class()?>>
-                                <header class="entry-header">
-                                    <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
-                                    <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
-                                </header>
-                                <?php echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt(): the_excerpt(); ?>
-                                <!--the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;');-->
-                                <!-- This could be wrapped in php tags and be functional,
-                                        but it is easier to change this in admin side-->
+                        <article id="<?php the_ID()?>" <?php post_class()?>>
+                            <header class="entry-header">
+                                <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
+                                <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
+                            </header>
+                            <?php echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt(): the_excerpt(); ?>
+                            <!--the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;');-->
+                            <!-- This could be wrapped in php tags and be functional,
+                                    but it is easier to change this in admin side-->
 <!--                                <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-                                    // $post_categories = wp_get_post_categories( get_the_ID() );
+                                // $post_categories = wp_get_post_categories( get_the_ID() );
 //                                    $cats = array();
 //                                    echo 'This entry was posted ';
 //                                    if (has_category()) {
 //                                        echo '.';
 //                                    }
 //                                    ?>
-                                </footer>-->
-                            </article>
-                        </div>
+                            </footer>-->
+                        </article>
                     </div>
                     <?php endwhile; ?>
-                    <div class="navigation">
+                    <div class="navigation small-11 small-centered">
                         <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
                     </div><!-- /.navigation -->
                     <?php else: ?>
index f35a32c..8501efb 100644 (file)
                         <?php //echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt(): the_excerpt(); ?>
                         <footer class="entry-meta small-12 medium-6 medium-push-3 center">
                             <?php
-                            if (has_category()) {
-                                $post_categories = wp_get_post_categories( get_the_ID() );
-                                $cats = array();
-                                echo 'This entry was posted ';
-                                echo 'in';
-                                foreach($post_categories as $c){
-                                    $cat = get_category( $c );
-                                    $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-                                    echo ', <a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>';
-                                }
-                                echo '.';
-                            }
+//                            if (has_category()) {
+//                                $post_categories = wp_get_post_categories( get_the_ID() );
+//                                $cats = array();
+//                                echo 'This entry was posted ';
+//                                echo 'in';
+//                                foreach($post_categories as $c){
+//                                    $cat = get_category( $c );
+//                                    $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
+//                                    echo ', <a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>';
+//                                }
+//                                echo '.';
+//                            }
                             ?>
                         </footer>
                     </article>
                 </div>
             </div>
             <?php endwhile; ?>
-            <div class="navigation">
+            <div class="navigation small-11 small-centered">
                 <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
             </div><!-- /.navigation -->
             <?php else: ?>
index 89d9a15..c87249a 100644 (file)
@@ -1,47 +1,44 @@
 <?php get_header(); ?>
     <main class="blog-single">
         <div class="row blog_content">
-            <div class="small-12 medium-11 columns">
+            <div class="small-12 medium-11 small-centered columns">
                 <div class="row">
-                    <div id="blog-posts-over" class="small-12 medium-8 columns">
+                    <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 class="row">
-                                    <div class="small-12 columns">
-                                        <article id="<?php the_ID()?>" <?php post_class()?>>
-                                            <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
-                                            <?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();
-                                                echo 'This entry was posted ';
-                                                if (has_category()) {
-                                                    echo 'in ';
-                                                    foreach($post_categories as $c){
-                                                        $cat = get_category( $c );
-                                                        $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-                                                        echo '<a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>, ';
-                                                    }
-                                                }
-                                                $post_tags = wp_get_post_tags( get_the_ID() );
-                                                $tags = array();
-                                                if (has_tag( )) {
-                                                    echo ' and tagged ';
-                                                    foreach($post_tags as $t){
-                                                        $tag = get_tag( $t );
-                                                        $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>
-                                        </article>
-                                    </div>
-                                </div>
-                            </div>
+                            <article id="<?php the_ID()?>" <?php post_class()?>>
+                                <header class="entry-header">
+                                    <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
+                                    <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
+                                </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();
+//                                                echo 'This entry was posted ';
+//                                                if (has_category()) {
+//                                                    echo 'in ';
+//                                                    foreach($post_categories as $c){
+//                                                        $cat = get_category( $c );
+//                                                        $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
+//                                                        echo '<a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>, ';
+//                                                    }
+//                                                }
+//                                                $post_tags = wp_get_post_tags( get_the_ID() );
+//                                                $tags = array();
+//                                                if (has_tag( )) {
+//                                                    echo ' and tagged ';
+//                                                    foreach($post_tags as $t){
+//                                                        $tag = get_tag( $t );
+//                                                        $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>
+                            </article>
                         </div>
                         <?php endwhile; ?>
                         <?php else: ?>