Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add UserVoice widget

  • Loading branch information...
commit b1e9bb3d0be484bc1d87cf5e25a908267267bd27 1 parent e9ecf58
@sander authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 plapp/templates/base.html
View
10 plapp/templates/base.html
@@ -25,6 +25,16 @@
<script src='{% url django.views.i18n.javascript_catalog %}?lang={{ request.LANGUAGE_CODE }}'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js'></script>
<script src='{{ STATIC_URL }}script/menubar.js'></script>
+{% if settings.USERVOICE_ID %}
+<script>
+ var uvOptions = {};
+ (function() {
+ var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true;
+ uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/{{ settings.USERVOICE_ID }}.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s);
+ })();
+</script>
+{% endif %}
{% block scripts %}{% endblock %}
{% block media %}{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.