{% if VIGLINK_ENABLED %}
<script type="text/javascript">
	var vglnk = {
		key: '{{ VIGLINK_API_KEY|e("js") }}',
		sub_id: '{{ VIGLINK_SUB_ID|e("js") }}'
	};

	(function(d, t) {
		var s = d.createElement(t); s.type = 'text/javascript'; s.async = true;
		s.src = '//cdn.viglink.com/api/vglnk.js';
		var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
	}(document, 'script'));
</script>
{% endif %}
