Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed share buttons

  • Loading branch information...
commit 2d6dd8dd7c98e578b23f7e78ea13ddf87f47c6c1 1 parent 72c9acc
@jywarren authored
View
8 html/sites/all/themes/plots/plots.css
@@ -27,7 +27,6 @@ a {
/*
* Suggested formats for editors
*/
-.floatright { float:right;margin:10px; }
.frame {
border: 5px solid #EEE;
margin: 5px;
@@ -62,8 +61,8 @@ fieldset table, fieldset{
font-size:10px;
}
-.floatright { float:right; }
.box { padding:6px 14px; border:1px solid #bbb; margin:10px; }
+.floatright { float:right;padding: 10px; }
.notification {
font-size:0.8em;
@@ -493,6 +492,10 @@ form .filefield-element input.form-submit {
float:left;
margin-right:6px;
}
+.fb-like {
+ display:inline;
+ padding-top:2px;
+}
#edit-tags-wrapper {
clear:left;
@@ -1132,4 +1135,3 @@ a:hover.button {
background:#35b;
color:#ccc;
}
-
View
5 html/sites/all/themes/plots/templates/node.tpl.php
@@ -129,10 +129,11 @@
<?php if (($node->type == "tool" || $node->type == "place" || $node->type == "note" || $node->type == "page") && $node->nid != "356") { ?>
<div id="share">
- <a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
- <a href="http://twitter.com/share?text=Public Laboratory: <?php print $title; ?>"><img src="/img/twitter.png" /></a>
<g:plusone></g:plusone>
<script src="https://apis.google.com/js/plusone.js"></script>
+ <a href="https://twitter.com/share" class="twitter-share-button">Tweet</a>
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+ <div class="fb-like" data-send="false" data-layout="button_count" data-width="50" data-show-faces="false" style="vertical-align:top;zoom:1;*display:inline"></div>
</div>
<?php } ?>
View
8 html/sites/all/themes/plots/templates/page.tpl.php
@@ -131,6 +131,14 @@
</head>
<body class="<?php print $classes; ?>">
+<div id="fb-root"></div>
+<script>(function(d, s, id) {
+ var js, fjs = d.getElementsByTagName(s)[0];
+ if (d.getElementById(id)) return;
+ js = d.createElement(s); js.id = id;
+ js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
+ fjs.parentNode.insertBefore(js, fjs);
+}(document, 'script', 'facebook-jssdk'));</script>
<div style="border:2px solid red;background:#fcc;padding:10px;" id="iewarning"><p><h2>Incompatible browser</h2>
The Public Laboratory website is designed for use in any browser except Internet Explorer. To view it properly, please use <a href="http://firefox.com">Firefox</a>, <a href="http://google.com/chrome">Chrome</a>, or another standards-compliant browser. Support for Internet Explorer is planned, but it's a good idea for you to get another browser anyways -- IE poses a security risk for your computer.</p></div>
Please sign in to comment.
Something went wrong with that request. Please try again.