<?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" />
	<Optional feature="ning" />
    </ModulePrefs>
    <Content type="html" view="default,canvas,profile,home">
        <![CDATA[
        <script>
            appUrl = '<%= $appUrl %>'
        </script>
        <script><%= $gadgetJS %></script>
        <style><%= $gadgetCSS %></style>
        ]]>
    </Content>
    <%= TemplateHelper::beginHtmlContent($views) %>
<div id="admin-bar" style="display:none;"><a class="edit" href="#" onclick="return toggleSettings()" id="edit-link">Settings</a></div>
<div id="statusupdate">
    <form  id="statusupdateform" style="display:none;" onsubmit="return submitStatus()">
        <p> 
            <textarea name="status_textarea" value="" id="updatefield" onkeyup="updateCharCount()"></textarea>
        </p>
        <p class="buttongroup">
            <input type="submit" class="primary-action button" name="post_action_publish" id="post_publish" value="__MSG_update_status__" />
            <span id="char-limit" title="Remaining characters"></span>
        </p>
    </form>
    <ul id="statuslist">
        <li>loading…</li>
    </ul>
    <p id="rsslink"></p>
</div>
<form id="settingsform" method="POST" style="display:none;">
    <h4>__MSG_how_many_updates__</h4>
    <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>
    <h4>__MSG_include_status_from_another__</h4>
    <p>__MSG_the_other_services_updates_will_be_mixed__</p>
    <input type="text" id="external-feed" value="" />
    <p class="help-caption">Supported services include Twitter, Facebook, Identi.ca, Pownce and Jaiku</p>
    <p class="buttongroup">
        <input type="submit" value="Save" class="primary-action button" onclick="return updateConfig();" />
        <input type="button" value="Cancel" onclick="return toggleSettings()" class="button" />
        
    </p>
</form>
<%= TemplateHelper::endHtmlContent() %><%= TemplateHelper::beginHtmlContent($views) %>
<div id="admin-bar" style="display:none;"><a class="edit" href="#" onclick="return toggleSettings()" id="edit-link">Settings</a></div>
<div id="statusupdate">
    <form  id="statusupdateform" style="display:none;" onsubmit="return submitStatus()">
        <p> 
            <textarea name="status_textarea" value="" id="updatefield" onkeyup="updateCharCount()"></textarea>
        </p>
        <p class="buttongroup">
            <input type="submit" class="primary-action button" name="post_action_publish" id="post_publish" value="__MSG_update_status__" />
            <span id="char-limit" title="Remaining characters"></span>
        </p>
    </form>
    <ul id="statuslist">
        <li>loading…</li>
    </ul>
    <p id="rsslink"></p>
</div>
<form id="settingsform" method="POST" style="display:none;">
    <h4>__MSG_how_many_updates__</h4>
    <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>
    <h4>__MSG_include_status_from_another__</h4>
    <p>__MSG_the_other_services_updates_will_be_mixed__</p>
    <input type="text" id="external-feed" value="" />
    <p class="help-caption">Supported services include Twitter, Facebook, Identi.ca, Pownce and Jaiku</p>
    <p class="buttongroup">
        <input type="submit" value="Save" class="primary-action button" onclick="return updateConfig();" />
        <input type="button" value="Cancel" onclick="return toggleSettings()" class="button" />
        
    </p>
</form>
<%= 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>
