added addThis box to single to replace simple share
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 16 Feb 2016 14:19:25 +0000 (09:19 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 16 Feb 2016 14:19:25 +0000 (09:19 -0500)
css/app.css
functions.php
scss/_blog.scss
single.php

index 80ee007..9d8f7c9 100644 (file)
@@ -6981,8 +6981,6 @@ input[type="submit"].blogbutton {
     font-size: 22px; }
     #blog-posts-over article .entry-header h2 {
       font-size: 22px; }
-  #blog-posts-over article #addthis_wrapper {
-    margin-top: -25px; }
   #blog-posts-over article a.read-more {
     color: #2c296d;
     font-weight: bold;
@@ -7011,7 +7009,7 @@ input[type="submit"].blogbutton {
   font-size: 12px; }
 
 #blog-posts-over > div {
-  margin: 25px 0; }
+  margin: 40px 0; }
 
 #blog-side-info {
   background: #2C296D; }
@@ -7108,6 +7106,9 @@ article {
 .meta {
   font-size: 14px; }
 
+.addthis_counter.addthis_pill_style {
+  float: right; }
+
 #sidebar {
   padding-top: 25px;
   background: #f2f9fc; }
index e476072..703c5de 100644 (file)
@@ -88,7 +88,11 @@ function glm_site_scripts()
 
 }
 
-
+function is_post_type($type){
+    global $wp_query;
+    if($type == get_post_type($wp_query->post->ID)) return true;
+    return false;
+}
 /* Header for posts*/
 function glm_get_header() {
     echo '<div';
index c1b8620..dcd3fd4 100644 (file)
@@ -69,7 +69,7 @@ input[type="submit"].blogbutton {
         }
     }
     #addthis_wrapper {
-        margin-top: -25px;
+//        margin-top: -25px;
     }
     p {
 //        padding-bottom: 15px;
@@ -107,7 +107,7 @@ input[type="submit"].blogbutton {
     font-size: 12px;
 }
 #blog-posts-over > div {
-    margin: 25px 0;
+    margin: 40px 0;
 }
 #blog-side-info {
     background: #2C296D;
@@ -225,4 +225,7 @@ article {
 }
 .meta{
     font-size: 14px;
+}
+.addthis_counter.addthis_pill_style{
+    float: right;
 }
\ No newline at end of file
index 047f1a1..caf13e0 100644 (file)
                                     </div>
                                   
                                 </header>
+                                <?php if (!is_post_type("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(); ?>
                             </article>
                             <?php if (get_post_type( $post ) != "ai1ec_event") {