added breadcrumbs, styling for blog and archives
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 15 Jan 2016 21:08:29 +0000 (16:08 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 15 Jan 2016 21:08:29 +0000 (16:08 -0500)
archive.php
functions.php
home.php
index.php
scss/_search.scss
single.php

index 47d91e5..ddb7c39 100644 (file)
@@ -1,10 +1,14 @@
 <?php get_header(); ?>
+<?php glm_get_header(); ?>
+
 <main class="blog-archive">
     <article <?php post_class() ?> id="interior">
-        <?php GLM_get_header(); ?>
+       
     </article>
     <div class="row">
+        <?php get_template_part('parts/bread-crumbs'); ?>
         <div id="blog-posts-over" class="small-12 medium-9 columns">
+            <h1>Sault Ste Marie's Blog</h1>
             <?php if(have_posts()) : while(have_posts()): the_post();?>
             <div class="row content blog-posts-container">
                 <div class="small-11 small-centered columns">
                             <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(); ?>
-                        <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 '.';
-                            }
-                            ?>
-                        </footer>
+                        <?php echo (function_exists('the_advanced_excerpt'))
+    ? the_advanced_excerpt('length=250&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div,h1,h2,h3,h4,h5,h6')
+    : the_excerpt(); ?>
                     </article>
                 </div>
             </div>
index b205234..10e2a67 100644 (file)
@@ -136,5 +136,5 @@ function mytheme_search_loop() {
 
 add_action('thematic_searchloop', 'mytheme_search_loop');
 // End of the Contextual/Highlight Search functions
-add_image_size('glm_blocks', '257', '200', true);
+add_image_size('glm_blocks', '570', '280', true);
 ?>
index 343dc06..5883d85 100644 (file)
--- a/home.php
+++ b/home.php
@@ -1,53 +1,56 @@
 <?php get_header(); ?>
+<?php glm_get_header(); ?>
+<div id="crumb-line">
+    <div class="row">
+        <?php
+        get_template_part('parts/bread-crumbs');
+        ?>
+    </div>
+</div>
 <main class="blog-home">
 <!--    <article <?php // post_class() ?> id="interior-featured">
-        <?php GLM_get_header(); ?>
+      
     </article> -->
     <div class="row">
+     
         <div id="blog-posts-over" class="small-12 medium-9 columns">
+            <h1>Sault Ste Marie's Blog</h1>
             <?php if(have_posts()) : while(have_posts()): the_post();?>
             <div class="row content 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-->
-                        <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 '.';
-                            }
-                            ?>
-                        </footer>
-                    </article>
+                <!--<div class="small-11 small-centered columns"> -->
+                <?php $thumbnail = get_the_post_thumbnail($post->ID, 'blog-feed-front'); ?>
+                <?php if ($thumbnail) { ?>
+                <div class="small-12 medium-4 columns text-center blog-feed-imgs">
+                    <?php echo $thumbnail; ?>
                 </div>
+                <div class="small-12 medium-8 columns blog-feed-contents">
+                    <?php } else { ?>
+                    <div class="small-12 columns blog-feed-content">
+                        <?php } ?>
+                        <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('length=250&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div,h1,h2,h3,h4,h5,h6')
+    : the_excerpt(); ?>
+                        </article>
+                    </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>
-            <?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;?>
+            <?php get_template_part('parts/blog-sidebar-r'); ?>
         </div>
-        <?php get_template_part('parts/blog-sidebar-r'); ?>
-    </div>
-    <?php get_footer(); ?>
+        <?php get_footer(); ?>
 
 
 
index f770ed6..327821a 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,4 +1,5 @@
 <?php get_header(); ?>
+
 <div class="bg-container">
 <main class="page-inside">
         <?php if (is_page("kitchensink")) {
index b800043..d1eef57 100644 (file)
@@ -113,4 +113,4 @@ header .searchform input[type="submit"]:hover{
 }
 #ui-datepicker-div{
     display: none;
-}
\ No newline at end of file
+}
index 544afa5..24ec5f7 100644 (file)
@@ -1,7 +1,11 @@
 <?php get_header(); ?>
+<?php glm_get_header(); ?>
+
 <main class="blog-single">
     <div class="row">
+        <?php get_template_part('parts/bread-crumbs'); ?>
         <div id="blog-posts-over" class="small-12 medium-9 columns">
+            <h1>Sault Ste Marie's Blog</h1>
             <?php if(have_posts()) : while(have_posts()): the_post();?>
             <div class="row blog-post-container">
                 <div class="small-11 small-centered columns">
@@ -24,6 +28,7 @@
                                     </div>
                                     <script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script>
                                     <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5135fe4558d287a9"></script>
+                                    <!--                                        <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>-->
                                     <!-- AddThis Button END -->
                                 </div><!--/#addthis_wrapper-->
                                 <?php } ?>
                                     ?>
                                 </footer>
                             </article>
-                        </div><!--/.small-12 .columns-->
-                    </div><!--/.row-->
-                </div><!--/.small-11 .small-centered .columns-->
-            </div><!--/.row .blog-post-container-->
+                            <?php if ( comments_open() || get_comments_number() ) :
+                            comments_template();
+                            endif; ?>
+                        </div>
+                    </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><!--/#blog-posts-over-->
+        </div>
+
         <?php get_template_part('parts/blog-sidebar-r'); ?>
-    </div><!--/.row-->
+
+    </div>
     <?php get_footer(); ?>
+