Commit 6c7ab9a7 authored by Giuseppe Terrasi's avatar Giuseppe Terrasi

twitter, facebook, google plus button in question.html under comment box

parent de233a05
...@@ -92,6 +92,14 @@ ...@@ -92,6 +92,14 @@
} }
</style> </style>
</noscript> </noscript>
<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/it_IT/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
...@@ -113,6 +121,7 @@ ...@@ -113,6 +121,7 @@
<div class="question-body"> <div class="question-body">
{{ question.html|safe }} {{ question.html|safe }}
</div> </div>
<div id="question-tags" class="tags-container tags"> <div id="question-tags" class="tags-container tags">
{% for tag in question.tagname_list %} {% for tag in question.tagname_list %}
<a href="{% url tag_questions tag|urlencode %}" class="post-tag tag-link-{{ tag }}" <a href="{% url tag_questions tag|urlencode %}" class="post-tag tag-link-{{ tag }}"
...@@ -127,8 +136,23 @@ ...@@ -127,8 +136,23 @@
{% contributors_info question %} {% contributors_info question %}
</div> </div>
{% comments question request.user %} {% comments question request.user %}
</div>
<!-- start share content -->
<a href="https://twitter.com/share" class="twitter-share-button" data-lang="it" data-count="none" data-dnt="true">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="g-plus" data-action="share" data-annotation="none"></div>
<script type="text/javascript">
window.___gcfg = {lang: 'it'};
(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>
<div class="fb-like" data-send="true" data-layout="button_count" data-width="450" data-show-faces="false"></div>
<!-- end share content -->
</div>
</td> </td>
</tr> </tr>
</table> </table>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment