Added archive.php, removed advanced excerpt code from page (will now use admin-side...
authorLaury GvR <laury@gaslightmedia.com>
Fri, 8 May 2015 15:38:29 +0000 (11:38 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 8 May 2015 15:38:29 +0000 (11:38 -0400)
archive.php [new file with mode: 0644]
home.php

diff --git a/archive.php b/archive.php
new file mode 100644 (file)
index 0000000..7067e30
--- /dev/null
@@ -0,0 +1,42 @@
+<?php get_header(); ?>
+<?php echo glm_get_background(); ?>
+        <main>    
+            <div class="row">
+                <div class="small-11 small-centered columns"> 
+                    <div class="row">
+                        <div id="blog-posts-over" class="small-12 medium-9 columns">
+                            <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : 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 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                                    <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
+                                                </header>
+                                                <?php echo the_advanced_excerpt(); ?>
+                                            </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 posts yet');?></p>
+                            </div><!-- /#post-404 -->
+                                <?php endif;?>
+                        </div>
+                        <div class="small-12 small-only-text-center medium-3 columns">
+                            <?php echo get_template_part("parts/blog-sidebar"); ?>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </main>
+<?php get_footer(); ?>
\ No newline at end of file
index da529fa..7067e30 100644 (file)
--- a/home.php
+++ b/home.php
@@ -16,7 +16,7 @@
                                                     <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
                                                     <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
                                                 </header>
-                                                <?php echo the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;'); ?>
+                                                <?php echo the_advanced_excerpt(); ?>
                                             </article>
                                         </div>
                                     </div>