<?xml version="1.0" encoding="UTF-8"?>
<Module>
  <ModulePrefs title="__MSG_GADGET_TITLE__"
               description="__MSG_GADGET_DESCRIPTION__"
               author="Google"
               author_email="friendconnect-feedback+gadgets@google.com"
               thumbnail="https://www.google.com/friendconnect/scs/images/donate-sample.png"
               screenshot="https://www.google.com/friendconnect/scs/images/donate-sample.png"
               >
    <Locale messages='https://www.google.com/friendconnect/gadgetmsg/donate/ALL_ALL.xml'/>
<Locale lang='ar'  language_direction='rtl' messages='https://www.google.com/friendconnect/gadgetmsg/donate/ar_ALL.xml'/>
<Locale lang='bn' messages='https://www.google.com/friendconnect/gadgetmsg/donate/bn_ALL.xml'/>
<Locale lang='bg' messages='https://www.google.com/friendconnect/gadgetmsg/donate/bg_ALL.xml'/>
<Locale lang='ca' messages='https://www.google.com/friendconnect/gadgetmsg/donate/ca_ALL.xml'/>
<Locale lang='zh' messages='https://www.google.com/friendconnect/gadgetmsg/donate/zh_ALL.xml'/>
<Locale lang='zh' country='CN' messages='https://www.google.com/friendconnect/gadgetmsg/donate/zh_CN.xml'/>
<Locale lang='zh' country='HK' messages='https://www.google.com/friendconnect/gadgetmsg/donate/zh_HK.xml'/>
<Locale lang='zh' country='TW' messages='https://www.google.com/friendconnect/gadgetmsg/donate/zh_TW.xml'/>
<Locale lang='hr' messages='https://www.google.com/friendconnect/gadgetmsg/donate/hr_ALL.xml'/>
<Locale lang='cs' messages='https://www.google.com/friendconnect/gadgetmsg/donate/cs_ALL.xml'/>
<Locale lang='da' messages='https://www.google.com/friendconnect/gadgetmsg/donate/da_ALL.xml'/>
<Locale lang='nl' messages='https://www.google.com/friendconnect/gadgetmsg/donate/nl_ALL.xml'/>
<Locale lang='en' messages='https://www.google.com/friendconnect/gadgetmsg/donate/en_ALL.xml'/>
<Locale lang='en' country='IN' messages='https://www.google.com/friendconnect/gadgetmsg/donate/en_IN.xml'/>
<Locale lang='en' country='IE' messages='https://www.google.com/friendconnect/gadgetmsg/donate/en_IE.xml'/>
<Locale lang='en' country='SG' messages='https://www.google.com/friendconnect/gadgetmsg/donate/en_SG.xml'/>
<Locale lang='en' country='ZA' messages='https://www.google.com/friendconnect/gadgetmsg/donate/en_ZA.xml'/>
<Locale lang='en' country='GB' messages='https://www.google.com/friendconnect/gadgetmsg/donate/en_GB.xml'/>
<Locale lang='fil' messages='https://www.google.com/friendconnect/gadgetmsg/donate/fil_ALL.xml'/>
<Locale lang='fi' messages='https://www.google.com/friendconnect/gadgetmsg/donate/fi_ALL.xml'/>
<Locale lang='fr' messages='https://www.google.com/friendconnect/gadgetmsg/donate/fr_ALL.xml'/>
<Locale lang='de' messages='https://www.google.com/friendconnect/gadgetmsg/donate/de_ALL.xml'/>
<Locale lang='de' country='CH' messages='https://www.google.com/friendconnect/gadgetmsg/donate/de_CH.xml'/>
<Locale lang='el' messages='https://www.google.com/friendconnect/gadgetmsg/donate/el_ALL.xml'/>
<Locale lang='gu' messages='https://www.google.com/friendconnect/gadgetmsg/donate/gu_ALL.xml'/>
<Locale lang='iw'  language_direction='rtl' messages='https://www.google.com/friendconnect/gadgetmsg/donate/iw_ALL.xml'/>
<Locale lang='hi' messages='https://www.google.com/friendconnect/gadgetmsg/donate/hi_ALL.xml'/>
<Locale lang='hu' messages='https://www.google.com/friendconnect/gadgetmsg/donate/hu_ALL.xml'/>
<Locale lang='in' messages='https://www.google.com/friendconnect/gadgetmsg/donate/in_ALL.xml'/>
<Locale lang='it' messages='https://www.google.com/friendconnect/gadgetmsg/donate/it_ALL.xml'/>
<Locale lang='ja' messages='https://www.google.com/friendconnect/gadgetmsg/donate/ja_ALL.xml'/>
<Locale lang='kn' messages='https://www.google.com/friendconnect/gadgetmsg/donate/kn_ALL.xml'/>
<Locale lang='ko' messages='https://www.google.com/friendconnect/gadgetmsg/donate/ko_ALL.xml'/>
<Locale lang='lv' messages='https://www.google.com/friendconnect/gadgetmsg/donate/lv_ALL.xml'/>
<Locale lang='ln' messages='https://www.google.com/friendconnect/gadgetmsg/donate/ln_ALL.xml'/>
<Locale lang='lt' messages='https://www.google.com/friendconnect/gadgetmsg/donate/lt_ALL.xml'/>
<Locale lang='ms' messages='https://www.google.com/friendconnect/gadgetmsg/donate/ms_ALL.xml'/>
<Locale lang='ml' messages='https://www.google.com/friendconnect/gadgetmsg/donate/ml_ALL.xml'/>
<Locale lang='mr' messages='https://www.google.com/friendconnect/gadgetmsg/donate/mr_ALL.xml'/>
<Locale lang='no' messages='https://www.google.com/friendconnect/gadgetmsg/donate/no_ALL.xml'/>
<Locale lang='or' messages='https://www.google.com/friendconnect/gadgetmsg/donate/or_ALL.xml'/>
<Locale lang='fa'  language_direction='rtl' messages='https://www.google.com/friendconnect/gadgetmsg/donate/fa_ALL.xml'/>
<Locale lang='pl' messages='https://www.google.com/friendconnect/gadgetmsg/donate/pl_ALL.xml'/>
<Locale lang='pt' country='BR' messages='https://www.google.com/friendconnect/gadgetmsg/donate/pt_BR.xml'/>
<Locale lang='pt' country='PT' messages='https://www.google.com/friendconnect/gadgetmsg/donate/pt_PT.xml'/>
<Locale lang='ro' messages='https://www.google.com/friendconnect/gadgetmsg/donate/ro_ALL.xml'/>
<Locale lang='ru' messages='https://www.google.com/friendconnect/gadgetmsg/donate/ru_ALL.xml'/>
<Locale lang='sr' messages='https://www.google.com/friendconnect/gadgetmsg/donate/sr_ALL.xml'/>
<Locale lang='sk' messages='https://www.google.com/friendconnect/gadgetmsg/donate/sk_ALL.xml'/>
<Locale lang='sl' messages='https://www.google.com/friendconnect/gadgetmsg/donate/sl_ALL.xml'/>
<Locale lang='es' messages='https://www.google.com/friendconnect/gadgetmsg/donate/es_ALL.xml'/>
<Locale lang='sv' messages='https://www.google.com/friendconnect/gadgetmsg/donate/sv_ALL.xml'/>
<Locale lang='gsw' messages='https://www.google.com/friendconnect/gadgetmsg/donate/gsw_ALL.xml'/>
<Locale lang='ta' messages='https://www.google.com/friendconnect/gadgetmsg/donate/ta_ALL.xml'/>
<Locale lang='te' messages='https://www.google.com/friendconnect/gadgetmsg/donate/te_ALL.xml'/>
<Locale lang='th' messages='https://www.google.com/friendconnect/gadgetmsg/donate/th_ALL.xml'/>
<Locale lang='tr' messages='https://www.google.com/friendconnect/gadgetmsg/donate/tr_ALL.xml'/>
<Locale lang='uk' messages='https://www.google.com/friendconnect/gadgetmsg/donate/uk_ALL.xml'/>
<Locale lang='vi' messages='https://www.google.com/friendconnect/gadgetmsg/donate/vi_ALL.xml'/>

    <Require feature="dynamic-height" />
    <Require feature="views" />
    <Require feature="skins" />
    <Require feature="opensocial-0.8" />
    <Optional feature="content-rewrite">
      <Param name="exclude-urls">.*</Param>
    </Optional>
  </ModulePrefs>
  <UserPref name="defaultDonationAmount"
            display_name="Default donation amount"
            datatype="string"
            default_value="1.00"/>
  <UserPref name="donationRequest"
            display_name="Donation request"
            datatype="string"
            default_value="add your donation request here"/>
  <UserPref name="paypalMerchantId"
            display_name="Paypal email (leave blank for none)"
            datatype="string"
            default_value=""/>
  <UserPref name="checkoutMerchantId"
            display_name="Google Checkout merchant ID (leave blank for none)"
            datatype="string"
            default_value=""/>
  <UserPref name="showTotalRaised"
            display_name="Show total raised"
            datatype="bool"
            default_value="true"/>
  <UserPref name="showLatestDonor"
            display_name="Show latest donor"
            datatype="bool"
            default_value="true"/>
  <Content type="html"><![CDATA[
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <link
      href="https://www.google.com/friendconnect/styles/gadgets-__BIDI_DIR__.css?d=0.1-7063da8e_1245d196_0d90e69e_229f7965_a8d53ba6.7"
      rel="stylesheet" type="text/css"></link>
    <script type='text/javascript'> window.jsBaseUrl = 'https://www.google.com/friendconnect';window.jsGadget = 'donate';window.latencySamplingRate = 0.0;var gfi_a=encodeURIComponent,gfi_b=Function,gfi_c=document,gfi_d="bind",gfi_e="apply",gfi_f="length",gfi_="prototype",gfi_g="call",gfi_h=this,gfi_i=function(a,c,b){a=a.split(".");b=b||gfi_h;a[0]in b||!b.execScript||b.execScript("var "+a[0]);for(var d;a[gfi_f]&&(d=a.shift());)a[gfi_f]||void 0===c?b=b[d]?b[d]:b[d]={}:b[d]=c},gfi_j=function(a,c,b){return a[gfi_g][gfi_e](a[gfi_d],arguments)},gfi_k=function(a,c,b){if(!a)throw Error();if(2<arguments[gfi_f]){var d=Array[gfi_].slice[gfi_g](arguments,2);return function(){var b=
Array[gfi_].slice[gfi_g](arguments);Array[gfi_].unshift[gfi_e](b,d);return a[gfi_e](c,b)}}return function(){return a[gfi_e](c,arguments)}},gfi_l=function(a,c,b){gfi_l=gfi_b[gfi_][gfi_d]&&-1!=gfi_b[gfi_][gfi_d].toString().indexOf("native code")?gfi_j:gfi_k;return gfi_l[gfi_e](null,arguments)},gfi_m=function(a,c,b){gfi_i(a,c,b)},gfi_n=function(a,c,b){a[c]=b};
gfi_b[gfi_].bind=gfi_b[gfi_][gfi_d]||function(a,c){if(1<arguments[gfi_f]){var b=Array[gfi_].slice[gfi_g](arguments,1);b.unshift(this,a);return gfi_l[gfi_e](null,b)}return gfi_l(this,a)};var gfi_o=function(){this.startTime=(new Date).getTime();this.ticks={}};gfi_o[gfi_].tick=function(a){this.ticks[a]=(new Date).getTime()};gfi_o[gfi_].a=function(a,c){this.ticks[a]=c};gfi_o[gfi_].report=function(){this.g().appendChild(this.f(window.jsGadget,gfi_c.location+""))};gfi_o[gfi_].g=function(){return gfi_c.getElementsByTagName("body")[0]};
gfi_o[gfi_].f=function(a,c){var b=gfi_c.createElement("img");b.setAttribute("height","1");b.setAttribute("width","1");b.setAttribute("src",window.jsBaseUrl+"/timing/clientTiming?jseGadget="+gfi_a(a)+"&jseLocation="+gfi_a(c)+"&ctStartTime="+gfi_a(this.startTime)+this.h(this.ticks));return b};gfi_o[gfi_].h=function(a){var c="",b=!0,d;for(d in a)c=c+(b?"":"|")+d+":"+a[d],b=!1;return"&ctTimings="+gfi_a(c)};var gfi_p=function(){this.b=[]};gfi_p[gfi_].c=function(a){this.b.push(a)};gfi_p[gfi_].tick=function(a){for(var c in this.b)this.b[c].tick(a)};gfi_p[gfi_].a=function(a,c){for(var b in this.b)this.b[b].a(a,c)};gfi_p[gfi_].report=function(){for(var a in this.b)this.b[a].report()};gfi_m("google.peoplesense.timing.TimingAdapter",gfi_p);gfi_m("google.peoplesense.timing.TimingAdapter.prototype.tick",gfi_p[gfi_].tick);gfi_m("google.peoplesense.timing.TimingAdapter.prototype.report",gfi_p[gfi_].report);
gfi_m("google.peoplesense.timing.TimingAdapter.prototype.supplementRecord",gfi_p[gfi_].a);var gfi_q=new gfi_p;gfi_m("fcTiming",gfi_q);Math.random()<window.latencySamplingRate&&gfi_q.c(new gfi_o);gfi_n(gfi_q,"tick",gfi_q.tick);gfi_n(gfi_q,"report",gfi_q.report);gfi_n(gfi_q,"supplementRecord",gfi_q.a);
</script><script type='text/javascript'> var prefs=new gadgets.Prefs();var suffix=prefs.getLang()+(prefs.getCountry()?'_'+prefs.getCountry():'');suffix=suffix.replace(/[^A-Za-z_]/g,'');document.write('<scr' + 'ipt src="https://www.google.com/friendconnect/script/mod_gadget_common__'+suffix+'.js?d=0.1-7063da8e_1245d196_0d90e69e_229f7965_a8d53ba6.7"></scr' + 'ipt>');document.write('<scr' + 'ipt src="https://www.google.com/friendconnect/script/mod_gadget_donate__'+suffix+'.js?d=0.1-7063da8e_1245d196_0d90e69e_229f7965_a8d53ba6.7"></scr' + 'ipt>');</script>
    </head>
    <body dir='__BIDI_DIR__'>

    <div id="peg" class="goog-app" style="display:none"></div>
    <div style="display:none">

    <div id="donate-view-tpl"
         class="fc-donate fc-content-text-color fc-content-bg-color">
      <div class="fc-donate-body">
        <div transclude="title-tpl"></div>
        <div transclude="total-raised-tpl"></div>
        <div transclude="latest-donor-tpl"></div>
      </div>
      <div transclude="divider-tpl"></div>
      <div class="fc-donate-body" jsdisplay='isCheckoutEnabled() || isPaypalEnabled()'>
        <div transclude="donate-tpl"></div>
      </div>
      <div transclude="config-error-tpl"> </div>
    </div>

    <div id="title-tpl">
      <div class="fc-donate-para" jscontent="campaignSnippet"></div>
    </div>

    <div id="total-raised-tpl" jsdisplay="showTotalRaised">
      <div jscontent='MSG_TOTAL_RAISED'
          class="fc-donate-sectitle fc-content-headline-color"></div>
      <div class="fc-donate-para">
        <a jsvalues="$h:handle(this,showDonorsView)"
           jscontent="totalRaisedMsg"
           href="javascript:void(0);"
           class="fc-content-link-color"></a>
      </div>
    </div>

    <div id="latest-donor-tpl" jsdisplay="showLatestDonor">
      <div jscontent='MSG_LATEST_DONOR'
           class="fc-donate-sectitle fc-content-headline-color"></div>
      <div jsdisplay="(latestDonationItem != null)" class="fc-donate-para">
        <div jsselect="latestDonationItem">
          <div transclude="donor-view-tpl"></div>
        </div>
      </div>
      <div jsdisplay="(latestDonationItem == null)"
           jscontent="MSG_BE_THE_FIRST_DONOR"
           class="fc-donate-para"></div>
    </div>

    <!-- The Divider -->
    <div id="divider-tpl">
      <div class="fc-donate-tabs" jsdisplay="isTabsBarShown()">
        <ul>
          <li id="checkout-tab"
              jseval="handle(this, showCheckoutTab)"
              jscontent='MSG_CHECKOUT'
              class="selected">
          </li>
          <li id="paypal-tab"
              jseval="handle(this, showPaypalTab)"
              jscontent='MSG_PAYPAL'></li>
        </ul>
      </div>
      <div class="fc-donate-divider" jsdisplay="!isTabsBarShown()"></div>
    </div>

    <div id="donate-tpl">
      <div id="checkout-panel"
           jsvalues=".className:((isCheckoutEnabled()) ? 'fc-donate-tab-panel' : 'fc-donate-hidden-panel')">

        <form id="checkout-form" action="https://www.google.com/friendconnect/donation/donate"
          method="post"
          name="BB_BuyButtonForm"
          target="_blank"
          onsubmit="gadget.donateClicked(this); return false;">

          <input name="description" type="hidden" jsvalues=".value:campaignSnippet"/>
          <input name="name" type="hidden" jsvalues=".value:MSG_DONATION"/>
          <input name="currency" type="hidden" value="USD"/>
          <input name="merchantId" type="hidden" jsvalues=".value:checkoutMerchantId">
          <input name="handle" type="hidden" jsvalues="">
          <div jscontent="MSG_AMOUNT" class="fc-donate-margin">Amount</div>
          <table>
            <tr>
              <td>
                  <div class="fc-donate">&#x24;</div>
              </td>
              <td>
                <div class="fc-donate">
                <input id="amount"
                       name="amount"
                       onfocus="this.style.color='black'; this.value='';"
                       size="8"
                       style="color:grey;"
                       type="text"
                       jsvalues='.value:defaultDonationAmount'>
                </div>
              </td>
              <td>
                <div id="checkout-error-panel"
                     jscontent='MSG_INVALID_VALUE'
                     class="fc-donate-error-panel fc-donate fc-donate-hidden-panel"></div>
              </td>
            </tr>
            <tr>
              <td colspan="3">
                <div class="fc-donate fc-donate-topbottom-margin" jsdisplay="viewerSignedIn" style="display: none">
                  <input type="checkbox" name="addme" checked="true" class="fc-donate-checkbox">
                  <span jscontent='MSG_SHOW_DONATION' >Show others I've donated</span>
                </div>
              </td>
            </tr>
          </table>
          <div class="fc-donate-image-panel">
            <input jsvalues='.alt:MSG_DONATE;.src:getCheckoutButtonUri()' type="image">
          </div>
        </form>
      </div>

      <div id="paypal-panel"
           jsvalues=".className:((isPaypalEnabled() && !isCheckoutEnabled()) ? 'fc-donate-tab-panel' : 'fc-donate-hidden-panel')">

        <form id="paypal-form" action="https://www.paypal.com/cgi-bin/webscr"
              method="post"
              target="_blank"
              onsubmit="gadget.donateClicked(this); return false;">

          <input type="hidden" name="cmd" value="_donations">
          <input type="hidden"
                 name="business"
                 id="paypal-merchant-id"
                 jsvalues=".value:paypalMerchantId">
          <input type="hidden" name="lc" value="US">
          <input type="hidden"
                  name="cn"
                  value="Add special instructions to the seller">
          <input type="hidden" name="no_shipping" value="1">
          <input type="hidden" name="rm" value="1">
          <input type="hidden" name="currency_code" value="USD">
          <input type="hidden"
                 name="bn"
                 value="PP-DonationsBF:btn_donate_LG.gif:NonHosted">
          <input type="hidden"
                 name="notify_url"
                 value="">
          <div jscontent="MSG_AMOUNT" class="fc-donate-margin">Amount</div>
          <table>
            <tr>
              <td>
                  <div class="fc-donate">&#x24;</div>
              </td>
              <td>
                <div class="fc-donate">
                  <input id="amount"
                         name="amount"
                         onfocus="this.style.color='black'; this.value='';"
                         size="8"
                         style="color:grey;"
                         type="text"
                         jsvalues='.value:defaultDonationAmount'>
                </div>
              </td>
              <td>
                <div id="paypal-error-panel"
                       jscontent='MSG_INVALID_VALUE'
                       class="fc-donate-error-panel fc-donate fc-donate-hidden-panel"></div>
              </td>
            </tr>
            <tr>
              <td colspan="3">
                <div class="fc-donate fc-donate-topbottom-margin" jsdisplay="viewerSignedIn" style="display: none">
                  <input type="checkbox" name="addme" checked="true" class="fc-donate-checkbox">
                  <span jscontent='MSG_SHOW_DONATION' >Show others I've donated</span>
                </div>
              </td>
            </tr>
          </table>
          <div class="fc-donate-image-panel">
            <input jsvalues='.alt:MSG_DONATE'
                   src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif"
                   type="image"
                   class="fc-donate-image-paypal">
            <div class="fc-donate-via-paypal fc-content-secondary-text-color"
                           jscontent="MSG_VIA_PAYPAL">via PayPal</div>
          </div>
      </div>
    </div>

    <div id="donors-view-tpl"
         class="fc-donate fc-content-text-color fc-content-bg-color">
      <div class="fc-interior">
        <div class="fc-donate-body">
          <div jscontent='MSG_DONORS'
               class="fc-donate-sectitle fc-content-headline-color"></div>
          <div jsselect="donationItems">
            <div transclude="donor-view-tpl"></div>
          </div>
        </div>
      </div>
      <div transclude="paging-tpl"></div>
    </div>

    <div id="donor-view-tpl">
      <table class="fc-donate-donation">
        <tr>
          <td class="fc-donate-thumbnail-column">
            <img class="fc-donate-thumbnail"
                 jsvalues="src:authorThumb;title:authorName">
          </td>
          <td>
            <a class="fc-donate-name fc-content-link-color"
               jsvalues=".href:authorProfileUrl;
                         .title:viewProfileTitle;
                         .target:target"
               jscontent="authorName">
            </a><br>
            <div class='fc-donate-amount fc-content-secondary-text-color'
                 jsdisplay='!pending'
                 jscontent='body'></div>
            <div class='fc-donate-amount fc-content-secondary-text-color'
                 jsdisplay='pending'>
              <span jscontent='amountMsg'></span>
              <span> </span>
              <span class='fc-donate-italic' jscontent='MSG_PENDING'></span>
            </div>
          </td>
          <td align="center" class="fc-donate-trash-col" jsdisplay="canDelete">
            <img jsvalues=".src:trashCanUrl;
                 $h:handle(this, deleteDonation);">
            </img>
          </td>
        </tr>
      </table>
   </div>

    <div id="paging-tpl"
         class="fc-donate-bottom fc-endcap-bg-color fc-border-color">
      <a href="javascript:void(0);"
         jscontent="MSG_NEXT_DONATIONS"
         jsvalues="$h:handle(this, olderDonations);.className:(hasOlderDonations() ? 'fc-donate-right-verb fc-endcap-link-color' : 'fc-donate-right-verb-invisible')">
      </a>
      <a href="javascript:void(0);"
         jscontent="MSG_PREV_DONATIONS"
         jsvalues="$h:handle(this, newerDonations);.className:(hasNewerDonations() ? 'fc-donate-right-verb fc-endcap-link-color' : 'fc-donate-right-verb-invisible')">
      </a>
      <a class="fc-donate-left-verb fc-endcap-link-color"
         href="javascript:void(0);"
         jsvalues="$h:handle(this, showDonateView)"
         jscontent="MSG_BACK">
      </a>
    </div>

    <div id="config-error-tpl" class="fc-donate-body fc-donate-sectitle fc-content-headline-color fc-endcap-bg-color"
           jsdisplay='!isPaypalEnabled() && !isCheckoutEnabled()'
           jscontent='MSG_CONFIG_ERROR'></div>

  </div>

  <script type="text/javascript">
      var gadget = new goog.peoplesense.gadget.Donate();

      function init() {
        gadget.start();
      };

      _IG_RegisterOnloadHandler(init);

    </script>
    </body>
    </html>
  ]]>
  </Content>
</Module>
