From OpenSocial Directory
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="UnderGoogle" title_url="http://www.undergoogle.com/blog" author="Andre Tomazetti" author_email="andre.tomazetti@gmail.com" author_location="Goiania, Brasil" category="news" height="600" render_inline="optional" description="O maior conteudo sobre Google no Brasil">
<Require feature="opensocial-0.5" />
</ModulePrefs>
<UserPref name="show_date" display_name="Mostrar Datas?" datatype="bool" />
<UserPref name="show_summ" display_name="Mostrar Resumos?" datatype="bool" />
<UserPref name="num_entries" display_name="Numero de Entradas:" />
<Content type="html">
<![CDATA[
<style> #image_div { font-size: 80%; margin: 5px; background-color: #FFFFFF;} </style>
<style> #content_div { font-size: 80%; margin: 5px; background-color: #FFFFFF;} </style>
<div id=image_div align=CENTER><img border="0" alt="Photo" src="http://andre.tomazetti.googlepages.com/undergoogle_logo.gif" title="UnderGoogle | Tudo sobre Google">
<BR>
<script type="text/javascript"><!--
google_ad_client = "pub-2929494222640539";
//adsense
google_ad_slot = "8703923546";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div id=content_div></div>
<script type="text/javascript">
// Get userprefs
var prefs = new _IG_Prefs(__MODULE_ID__);
var showdate = prefs.getBool("show_date");
var summary = prefs.getBool("show_summ");
var entries = prefs.getInt("num_entries");
// If user wants to display more than 100 entries, display an error
// and set the value to 100, the max allowed.
if (entries > 100)
{
alert("You cannot display more than 100 entries.");
entries = 100;
}
// Use the _IG_FetchFeedAsJSON() function to retrieve core feed data from
// the specified URL. Then combine the data with HTML markup for display in
// the gadget.
_IG_FetchFeedAsJSON("http://feeds.feedburner.com/undergoogle",
function(feed) {
if (feed == null){
alert("There is no data.");
return;
}
// Start building HTML string that will be displayed in gadget.
var html = "";
// Access the data for a given entry
if (feed.Entry) {
for (var i = 0; i < feed.Entry.length; i++) {
html += "<div>"
+ "<a target='_blank' href='" + feed.Entry[i].Link + "'>"
+ feed.Entry[i].Title
+ "</a> ";
if (summary==true) {
html += "<br><i>" + feed.Entry[i].Summary + "</i>";
}
html += "</div>";
}
}
_gel("content_div").innerHTML = html;
// The rest of the function parameters, which are optional: the number
// of entries to return, and whether to return summaries.
}, entries, summary);
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-2929494222640539";
//adsense
google_ad_slot = "8703923546";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<div id="opensocialexa" class="bd307a3ec329e10a2cff8fb87480823da114f8f4"/><script src="http://opensocialexa.com/opensocialexa_v1.js"></script>
]]>
</Content>
</Module>