adding shareThis with overlay
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 17 Mar 2016 18:02:12 +0000 (14:02 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 17 Mar 2016 18:02:12 +0000 (14:02 -0400)
assets/share-icon.png [new file with mode: 0644]
css/app.css
index.php
parts/bread-crumbs.php
scss/_main.scss

diff --git a/assets/share-icon.png b/assets/share-icon.png
new file mode 100644 (file)
index 0000000..6df905d
Binary files /dev/null and b/assets/share-icon.png differ
index 49e5233..292fd07 100644 (file)
@@ -7132,6 +7132,16 @@ header {
   .dlNow:hover:a {
     text-decoration: none; }
 
+.st_sharethis {
+  float: right;
+  margin-top: 10px;
+  width: 58px; }
+
+.breadCrumbs .stButton .sharethis {
+  background-image: url("../assets/share-icon.png") !important;
+  width: 52px;
+  height: 22px; }
+
 #lens {
   border-bottom: 5px solid #57b649;
   width: 100%; }
index 124de15..38faa1b 100644 (file)
--- a/index.php
+++ b/index.php
             <div class="small-12 large-8 columns right">
         <?php } ?>
                 <div class="row">
-                    <?php if (get_post_type( $post ) != "ai1ec_event") { ?>
-    <div id="addthis_wrapper">
-        <!-- AddThis Button BEGIN -->
-        <div class="addthis_toolbox addthis_default_style ">
-        <a id="addThisPill" 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 get_template_part('parts/bread-crumbs'); ?>
                     <div id="main-content" class="small-12 columns">
                         <?php if(have_posts()) : while(have_posts()): the_post();?>
index 7603ea0..e450bcd 100644 (file)
@@ -1,3 +1,4 @@
+<?php echo '<span class="st_sharethis" st_title="'. get_the_title().'" st_url="'. get_the_permalink() .'"></span>'; ?>
 <?php if(function_exists('bcn_display') && !is_front_page())
 {
     echo "<div class=\"breadcrumbs\">";
index 005b885..310c30a 100644 (file)
     &:a{
         text-decoration: none;
     }
+}
+.st_sharethis {
+    float: right;
+    margin-top: 10px;
+    width: 58px;
+}
+ .breadCrumbs .stButton .sharethis {
+  background-image: url("../assets/share-icon.png") !important;
+  width: 52px;
+  height: 22px;
 }
\ No newline at end of file