moving the posted date under the image and the share this to the top of the page
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 31 Jan 2017 19:24:54 +0000 (14:24 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 31 Jan 2017 19:24:54 +0000 (14:24 -0500)
, removing the duplicates

single.php

index 0613f35..1ae8a36 100644 (file)
             <?php } ?>
                 <?php if(have_posts()) : while(have_posts()): the_post();?>
                 <div class="row blog-post-container">
+                                                  <?php get_template_part('parts/share-this'); ?>
                     <div class="small-11 small-centered columns">
                         <h1><?php echo get_the_title(); ?></h1>
                         <div class="row">
                             <div class="small-12 columns">
-                               <?php get_template_part('parts/share-this'); ?>
                                 <article id="<?php the_ID()?>" <?php post_class()?>>
                                     <?php if (has_post_thumbnail( $post->ID )) { ?>
                                         <?php echo get_the_post_thumbnail($post->ID, 'full'); ?>
+                                        
                                     <?php } ?>
+                                        <footer class="entry-meta small-12 medium-6">
+                                      <?php echo '<div> <span class="meta date"> ' . the_time('F jS, Y') . '</span></div>'; ?>
+                                    </footer>
                                     <?php if (get_post_type( $post ) != "ai1ec_event") { ?>
-                                    <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-->
                                     <?php } ?>
                                     <?php echo the_content(); ?>
-                                    <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>, ';
-                                            }
-                                        }
-                                        $post_tags = wp_get_post_tags( get_the_ID() );
-                                        $tags = array();
-                                        if (has_tag( )) {
-                                            echo ' and tagged ';
-                                            foreach($post_tags as $t){
-                                                $tag = get_tag( $t );
-                                                $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug );
-                                                echo '<a rel="category" title="View all posts in '. $tag->name . ' " href="'. $tag->slug .'">'. $tag->name .'</a>, ';
-                                            }
-                                        }
-                                        echo ' on ';
-                                        echo ' <span class="meta date"> ' . the_time('F jS, Y') . '</span>';
-                                        ?>
-                                    </footer>
+                              
                                 </article>
                                 <?php if ( comments_open() || get_comments_number() ) :
                                     comments_template();