Sharethis added to single posts
authorLaury GvR <laury@gaslightmedia.com>
Wed, 20 Apr 2016 20:20:32 +0000 (16:20 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 20 Apr 2016 20:20:32 +0000 (16:20 -0400)
single.php

index 2e75e34..2b581ad 100644 (file)
                                     <header class="entry-header">
                                         <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
                                     </header>
+                                    <?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() );