updating the blog info I can update
authorIan Weller <ian@gaslightmedia.com>
Tue, 25 Oct 2016 20:19:42 +0000 (16:19 -0400)
committerIan Weller <ian@gaslightmedia.com>
Tue, 25 Oct 2016 20:19:42 +0000 (16:19 -0400)
I updated the parts of the blog I could update.  The archive.php, I have
no idea how to update it without killing it.

home.php
single.php

index d88c72d..4ed5591 100644 (file)
--- a/home.php
+++ b/home.php
@@ -4,26 +4,26 @@
                              <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('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;'); ?>
-                                                        <hr>
-                                                    </article>
-                                                </div>
-                                            </div>
+                                    <div class="row content blog-posts-container">
+                                        <?php 
+                                            if (has_post_thumbnail()) {
+                                                $thumbnail = get_the_post_thumbnail($post->ID, 'blog-feed-front'); ?>
+                                        <div class="small-12 medium-4 columns text-center blog-feed-imgs">
+                                            <?php echo $thumbnail; ?>
                                         </div>
+                                        <?php  echo '<div class="small-12 medium-8 small-centered columns right">';
+                                            } else {
+                                                echo '<div class="small-12 small-centered columns">';
+                                            }
+                                        ?>
+                                        <article id="<?php the_ID()?>" <?php post_class()?>>
+                                            <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                            <div class="blog-excerpt-date">
+                                                Posted on <strong><?php the_time('F jS, Y'); ?></strong>
+                                            </div>
+                                            <?php echo the_advanced_excerpt('length=265&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,strong,h1,h2,h3,hr,div'); ?>
+                                            <!--                    <hr class="contentBreak">-->
+                                        </article>
                                     </div>
                                     <?php endwhile; ?>
                                     <div class="navigation">
index 4af728a..6d70cac 100644 (file)
@@ -7,16 +7,38 @@
             <div id="blog-posts-over" class="small-12 medium-9 columns">
             <?php } ?>
                 <?php if(have_posts()) : while(have_posts()): the_post();?>
-                <div class="row" id="blog-posts-container">
+                <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()?>>
                                     <header class="entry-header">
-                                        <h2 id="titles" class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                        <h2 class="entry-title single-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                        <?php if ( has_post_thumbnail() ):?>
+                                                 <?php if (get_post_type( $post ) != "ai1ec_event") { ?>
+                                            <div class="featured-image-wrap"><?php the_post_thumbnail("large"); ?></div>
+                                        <?php } ?>
+                                        <?php endif; ?>
+                                        <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
+                                        <div id="addthis_wrapper">
+                                        <!-- AddThis Button BEGIN -->
+                                        <div class="addthis_toolbox addthis_default_style ">
+                                            <a class="addthis_counter addthis_pill_style"></a>
+                                        </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-->
                                     </header>
                                     <?php echo the_content(); ?>
+                                    <?php if (!is_post_type("ai1ec_event")) { ?>
+
+                                    <?php } ?>
                                 </article>
+                                <?php if ( comments_open() || get_comments_number() ) :
+                                comments_template();
+                                endif; ?>
                             </div>
                         </div>
                     </div>