app/views/monologue/posts/_social_sharing.html.erb in monologue-0.4.1 vs app/views/monologue/posts/_social_sharing.html.erb in monologue-0.5.0

- old
+ new

@@ -1,51 +1,17 @@ -<footer class="monologue-social-sharing" data-monologue="monologue-social-sharing"> - <span class="social-tagline"><%= t(".tagline") %></span> - <div id="social-share"> - <div id="google-plus"> - <!-- GOOGLE +1 --> - <!-- Placez cette balise là où vous souhaitez positionner le bouton +1. --> - <g:plusone size="medium"></g:plusone> - - <!-- Placez cet appel d'affichage à l'endroit approprié. --> - <script type="text/javascript"> - window.___gcfg = {lang: '<%=Monologue::Config.google_plusone_locale || "en" %>'}; - - (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"> - <!-- TWITTER --> - <a href="https://twitter.com/share" class="twitter-share-button" - data-lang="<%= Monologue::Config.twitter_locale || "en" %>" - data-url="<%= request.protocol %><%= request.host_with_port %><%= request.path.gsub("//","/") %>" - data-via="<%=Monologue::Config.twitter_username%>" - data-text="<%=@post.title%>" - 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> - <!-- /TWITTER --> - </div> - - - <div id="facebook"> - <!-- FACEBOOK LIKE --> - <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/<%= Monologue::Config.facebook_like_locale || "en_US" %>/all.js#xfbml=1&appId=288133081204194"; - fjs.parentNode.insertBefore(js, fjs); - }(document, 'script', 'facebook-jssdk'));</script> - <div class="fb-like" data-send="false" data-width="450" data-show-faces="false"></div> - <!-- /FACEBOOK LIKE --> - </div> - - - </div> -</footer> +<div class="monologue-social-sharing" data-monologue="monologue-social-sharing"> + <span class="social-tagline"><%= t('.tagline') %></span> + <ul id="social-share"> + <li id="google-plus"> + <%= render :partial => 'monologue/posts/social/pinterest' %> + </li> + <li id="twitter"> + <%= render :partial => 'monologue/posts/social/twitter' %> + </li> + <li id="google-plus"> + <%= render :partial => 'monologue/posts/social/gplus' %> + </li> + <li id="facebook"> + <%= render :partial => 'monologue/posts/social/facebook' %> + </li> + </ul> +</div>