<?xml version="1.0" encoding="UTF-8"?>
<Module>
    <ModulePrefs 
     title="<%= $gadgetTitle %>"
     description="<%= $gadgetDescription %>"
     thumbnail="<%= $gadgetThumbnail %>"
     directory_title="<%= $gadgetDirectoryTitle %>"
     screenshot="<%= $gadgetScreenshot %>"
     title_url="<%= $gadgetTitleUrl %>"
     author="<%= $gadgetAuthor %>"
     author_email="<%= $gadgetAuthorEmail %>"
     author_affiliation="<%= $gadgetAuthorAffiliation %>"
     author_location="<%= $gadgetAuthorLocation %>" >
        <Locale messages="<%= $appUrl %>/locale/ALL_ALL.xml"/> 
        <Locale lang="en" messages="<%= $appUrl %>/locale/ALL_ALL.xml"/> 
        <Locale lang="pt" messages="<%= $appUrl %>/locale/pt_BR.xml"/> 
        <Require feature="opensocial-0.7"/>
        <Require feature="dynamic-height"/>
        <Require feature="settitle"/>
        <Require feature="views" />
        <Require feature="skins" />
    </ModulePrefs>
    <Content type="html" view="default,canvas,profile,home">
        <![CDATA[
        <script>
            appUrl = '<%= $appUrl %>'
        </script>
        <script><%= $gadgetJS %></script>
        <style><%= $gadgetCSS %></style>
        ]]>
    </Content>
    <%= TemplateHelper::beginHtmlContent('default,canvas,profile,home') %>
<div id="admin-bar" style="display:none;"><a class="edit" href="#" onclick="return toggleSettings()" id="edit-link">Settings</a></div>
<ul id="rsslist">
    <li>loading…</li>
</ul>
<form id="settingsform" style="display:none;">
    <h2>__MSG_how_many_posts__</h2>
    <select id="n_updates">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="5">5</option>
        <option value="10">10</option>
        <option value="20">20</option>
    </select>
    <h2>__MSG_external_feeds__</h2>
    <input type="text" id="external-feed0" class="text wide" value="" />
    <input type="text" id="external-feed1" class="text wide" value="" />
    <input type="text" id="external-feed2" class="text wide" value="" />
    <input type="text" id="external-feed3" class="text wide" value="" />
    <input type="text" id="external-feed4" class="text wide" value="" />
    <p class="buttongroup">
        <input type="submit" value="Save" class="primary-action button" onclick="return updateConfig();" />
        <input type="button" value="Cancel" class="button" onclick="return toggleSettings()" />
    </p>
</form>
<p id="rsslink"></p>

<%= TemplateHelper::endHtmlContent() %><%= TemplateHelper::beginHtmlContent('canvas') %>
<p id="ning-footer" class="footer" style="display:none;"></p>

<p id="others-footer" class="footer" style="display:none;"> 
    __MSG_brought_to_you_by__ <a href="http://www.ning.com" target="_blank">__MSG_ning__</a>
    | <a href="http://about.ning.com/applicationstos.php" target="_blank">__MSG_terms_of_use__</a>
</p>
<%= TemplateHelper::endHtmlContent() %></Module>