added shareThis script
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 18 May 2016 14:55:28 +0000 (10:55 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 18 May 2016 14:55:28 +0000 (10:55 -0400)
js/app.js
js/custom/shareThis.js [new file with mode: 0644]
parts/bread-crumbs.php

index 1481ce2..dcea86c 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -31,3 +31,11 @@ $(document).ready(function () {
         //console.log('menu-id = ' + menuNum);
     });
 });
+;$(document).ready(function () {
+    var switchTo5x=true;
+    $.getScript("http://w.sharethis.com/button/buttons.js", function() {
+        console.log("success");
+    });
+    stLight.options({"publisher":"wp.c3d3647e-de70-4780-b71d-6b739fad685a"});
+    var st_type="wordpress4.3.1";
+});
\ No newline at end of file
diff --git a/js/custom/shareThis.js b/js/custom/shareThis.js
new file mode 100644 (file)
index 0000000..0d5db19
--- /dev/null
@@ -0,0 +1,8 @@
+$(document).ready(function () {
+    var switchTo5x=true;
+    $.getScript("http://w.sharethis.com/button/buttons.js", function() {
+        console.log("success");
+    });
+    stLight.options({"publisher":"wp.c3d3647e-de70-4780-b71d-6b739fad685a"});
+    var st_type="wordpress4.3.1";
+});
\ No newline at end of file
index 7603ea0..0c0771a 100644 (file)
@@ -1,3 +1,4 @@
+<?php echo '<span id="shareThisOrange" 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\">";