separating blog single from blog home and archive, adding share this
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 7 Dec 2016 17:01:21 +0000 (12:01 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 7 Dec 2016 17:01:21 +0000 (12:01 -0500)
root/parts/blog-text-single.php [new file with mode: 0644]
root/parts/blog-text.php
root/scss/_blog.scss
root/scss/_main.scss
root/sections/blog-single.php
root/sections/interior-page.php

diff --git a/root/parts/blog-text-single.php b/root/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 39a8879..97574b8 100644 (file)
@@ -105,4 +105,9 @@ input[type="submit"].blogbutton {
     ul {
         list-style-type: none;
     }
+}
+.blog-archive, .blog-home {
+    .featured-image-wrap{
+        display: none;
+    }
 }
\ No newline at end of file
index 81a7da7..1acb62a 100644 (file)
         }
     }
 }
+.st_sharethis {
+    float: right;
+    width: 58px;
+}
+body .stButton .sharethis  {
+  background-image: url("../assets/share-icon.png") !important;
+  width: 52px;
+  height: 22px;
+}
\ 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; ?>
index dcfda19..c6399ae 100644 (file)
@@ -4,6 +4,7 @@
                                 <?php if(function_exists('bcn_display') && !is_front_page())
                                 {
                                     echo "<div class=\"breadcrumbs small-12 columns\">";
+                                    echo '<span class="st_sharethis" st_title="'. get_the_title().'" st_url="'. get_the_permalink() .'"></span>'; 
                                     bcn_display();
                                     echo "</div>";
                                 }