updating blog items
authorIan Weller <ian@gaslightmedia.com>
Thu, 15 Dec 2016 20:53:22 +0000 (15:53 -0500)
committerIan Weller <ian@gaslightmedia.com>
Thu, 15 Dec 2016 20:53:22 +0000 (15:53 -0500)
I forgot to update the glmTheme and missed some blog changes.  I added
them now.

parts/blog-text-single.php [new file with mode: 0644]
parts/blog-text.php
sections/blog-single.php

diff --git a/parts/blog-text-single.php b/parts/blog-text-single.php
new file mode 100644 (file)
index 0000000..6fda71f
--- /dev/null
@@ -0,0 +1,12 @@
+<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>
+        <?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>
+    </header>
+    <?php the_content(); ?>
+</article>
\ No newline at end of file
index ebb264f..87847fd 100644 (file)
@@ -8,5 +8,5 @@
                                                         <?php endif; ?>
                                                         <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
                                                     </header>
-                                                    <?php echo the_content(); ?>
+                                                    <?php 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'); ?>
                                                 </article>
\ No newline at end of file
index 55bb278..d0075b7 100644 (file)
@@ -6,7 +6,7 @@
                                     <div class="small-11 small-centered columns">
                                         <div class="row">
                                             <div class="small-12 columns">
-                                                <?php get_template_part('parts/blog-text'); ?>
+                                                <?php get_template_part('parts/blog-text-single'); ?>
                                                 <?php if ( comments_open() || get_comments_number() ) :
                                                 comments_template();
                                                 endif; ?>