-
Notifications
You must be signed in to change notification settings - Fork 0
/
disqus-gadget-ig.xml
89 lines (83 loc) · 3.71 KB
/
disqus-gadget-ig.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<!-- based on gadget by SAN Gear http://gadgets-widgets.googlecode.com/svn/trunk/disqus/ -->
<ModulePrefs
title="Disqus for iGoogle and Google Code"
title_url="https://code.google.com/p/google-sites-disqus/"
description="Add comments provided by Disqus service to your Google Site"
directory_title="Disqus for iGoogle and Google Code"
thumbnail="https://google-sites-disqus.googlecode.com/git/gsd-logo.png"
screenshot="https://google-sites-disqus.googlecode.com/git/screen.png"
author="Serge Populov"
author_aboutme="Software Developer"
author_link="http://serge.populov.com/"
author_quote="Simple. Fucking Good."
author_photo="https://sites.google.com/a/populov.com/serge/home/photo.jpg"
author_location="Russia"
author_affiliation="Haunted Soft"
height="300"
scaling="false"
scrolling="true"
>
<Require feature="dynamic-height"/>
</ModulePrefs>
<UserPref
name="disqus_site_param"
datatype="string"
display_name="Disqus Shortname"
default_value="Your site shortname (get at Disqus)"
required="true"/>
<UserPref
name="disqus_url_param"
datatype="string"
display_name="Page URL - used only on thread creation (Strongly recommended)"
default_value=""/>
<UserPref
name="disqus_id_param"
datatype="string"
display_name="Disqus ID - unique string, identifying discussion thread, invent yourself (Strongly recommended)"
default_value=""/>
<UserPref
name="disqus_category_id_param"
datatype="string"
display_name="Category ID - used only on thread creation (optional)"
default_value=""/>
<UserPref
name="disqus_ttl_param"
datatype="string"
display_name="Page Title - used only on thread creation (Recommended)"
default_value=""/>
<Content type="html" >
<![CDATA[
<div id="disqus_thread"></div>
<script type="text/javascript">
function adjustHeight() {
if (gadgets.window)
gadgets.window.adjustHeight();
}
function disqus_config() {
this.callbacks.onReady = [ adjustHeight ];
this.callbacks.onNewComment = [ adjustHeight ];
}
gadgets.util.registerOnLoadHandler(adjustHeight);
var prefs = new _IG_Prefs();
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = prefs.getString("disqus_site_param");
var disqus_url = prefs.getString("disqus_url_param");
var disqus_identifier = prefs.getString("disqus_id_param");
var disqus_category_id = prefs.getString("disqus_category_id_param");
var disqus_title = prefs.getString("disqus_ttl_param");
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
]]>
</Content>
</Module>