Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from msevestre/master
URL for tag are lower case + little UI Change in social sharing
- Loading branch information
Showing
3 changed files
with
36 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,49 +1,51 @@ | |||
<footer class="monologue-social-sharing" data-monologue="monologue-social-sharing"> | <footer class="monologue-social-sharing" data-monologue="monologue-social-sharing"> | ||
<h1><%= t(".tagline") %></h1> | <h1><%= t(".tagline") %></h1> | ||
<div id="social-share"> | <div id="social-share"> | ||
<div id="facebook"> | <div id="google-plus"> | ||
<!-- FACEBOOK LIKE --> | <!-- GOOGLE +1 --> | ||
<div id="fb-root"></div> | <!-- Placez cette balise là où vous souhaitez positionner le bouton +1. --> | ||
<script>(function(d, s, id) { | <g:plusone size="medium"></g:plusone> | ||
var js, fjs = d.getElementsByTagName(s)[0]; |
|
||
if (d.getElementById(id)) return; | <!-- Placez cet appel d'affichage à l'endroit approprié. --> | ||
js = d.createElement(s); js.id = id; | <script type="text/javascript"> | ||
js.src = "//connect.facebook.net/<%= Monologue.facebook_like_locale || "en_US" %>/all.js#xfbml=1&appId=288133081204194"; | window.___gcfg = {lang: '<%=Monologue.google_plusone_locale || "en" %>'}; | ||
fjs.parentNode.insertBefore(js, fjs); | |||
}(document, 'script', 'facebook-jssdk'));</script> | |||
<div class="fb-like" data-layout="box_count" data-show-faces="true" data-font="verdana"></div> | |||
<!-- /FACEBOOK LIKE --> | |||
</div> | |||
|
|
||
(function() { | |||
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; | |||
po.src = 'https://apis.google.com/js/plusone.js'; | |||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); | |||
})(); | |||
</script> | |||
<!-- /GOOGLE +1 --> | |||
</div> | |||
<div id="twitter"> | <div id="twitter"> | ||
<!-- TWITTER --> | <!-- TWITTER --> | ||
<a href="https://twitter.com/share" class="twitter-share-button" | <a href="https://twitter.com/share" class="twitter-share-button" | ||
data-lang="<%= Monologue.twitter_locale || "en" %>" | data-lang="<%= Monologue.twitter_locale || "en" %>" | ||
data-url="http://<%= request.host_with_port %><%= request.path.gsub("//","/") %>" | data-url="http://<%= request.host_with_port %><%= request.path.gsub("//","/") %>" | ||
data-via="<%=Monologue.twitter_username%>" | data-via="<%=Monologue.twitter_username%>" | ||
data-text="<%=@revision.title%>" | data-text="<%=@revision.title%>" | ||
data-count="vertical">Tweet</a> | data-count="horizontal">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> | <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> | ||
<!-- /TWITTER --> | <!-- /TWITTER --> | ||
</div> | </div> | ||
|
|
||
<div id="google-plus"> | |||
<!-- GOOGLE +1 --> | |||
<!-- Placez cette balise là où vous souhaitez positionner le bouton +1. --> | |||
<g:plusone size="tall"></g:plusone> | |||
|
|
||
<!-- Placez cet appel d'affichage à l'endroit approprié. --> | <div id="facebook"> | ||
<script type="text/javascript"> | <!-- FACEBOOK LIKE --> | ||
window.___gcfg = {lang: '<%=Monologue.google_plusone_locale || "en" %>'}; | <div id="fb-root"></div> | ||
|
<script>(function(d, s, id) { | ||
(function() { | var js, fjs = d.getElementsByTagName(s)[0]; | ||
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; | if (d.getElementById(id)) return; | ||
po.src = 'https://apis.google.com/js/plusone.js'; | js = d.createElement(s); js.id = id; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); | js.src = "//connect.facebook.net/<%= Monologue.facebook_like_locale || "en_US" %>/all.js#xfbml=1&appId=288133081204194"; | ||
})(); | fjs.parentNode.insertBefore(js, fjs); | ||
</script> | }(document, 'script', 'facebook-jssdk'));</script> | ||
<!-- /GOOGLE +1 --> | <div class="fb-like" data-send="false" data-width="450" data-show-faces="false"></div> | ||
<!-- /FACEBOOK LIKE --> | |||
</div> | </div> | ||
|
|||
|
|||
</div> | </div> | ||
</footer> | </footer> |