Template:Footer/Links/Default: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Pgehres (WMF) (talk | contribs)
No edit summary
don't know why parseParams isn't loading, but try to work around it
Line 18: Line 18:
<li><a id="problems-link" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Problems_donating&basic=true&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:Donate_interface-problemsdonating}}<html></a></li>
<li><a id="problems-link" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Problems_donating&basic=true&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:Donate_interface-problemsdonating}}<html></a></li>


<!-- <li><a id="monthly-link" href="https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?form-countryspecific=Form-countryspecific-monthly&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:donate_interface-monthly-donation}}<html></a></li>-->
<li><a id="monthly-link" style="display: none;" href="https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?form-countryspecific=Form-countryspecific-monthly&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:donate_interface-monthly-donation}}<html></a></li>


<li><a id="onetime-link" href="https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?form-countryspecific=Form-countryspecific-default&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:Donate interface-onetime}}<html></a></li>
<li><a id="onetime-link" style="display: none;" href="https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?form-countryspecific=Form-countryspecific-default&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:Donate interface-onetime}}<html></a></li>


<li><a id="ways-to-give-link" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Ways_to_Give&basic=true&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:donate_interface-otherways-short}}<html></a></li>
<li><a id="ways-to-give-link" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Ways_to_Give&basic=true&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:donate_interface-otherways-short}}<html></a></li>
Line 32: Line 32:
// This piece of script is add to preserve the layout of the page when the user is sent to monthly donation page
// This piece of script is add to preserve the layout of the page when the user is sent to monthly donation page
// parseParams is defined in MediaWiki:Common.js
// parseParams is defined in MediaWiki:Common.js
//
// parseParams not loading for unknown reason, so commenting this out for now and using simplified version without params
/*
$(document).ready(function() {
$(document).ready(function() {
var baseURL = 'https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?';
var baseURL = 'https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?';
Line 45: Line 48:
paramsOut['form-countryspecific'] = 'Form-countryspecific-monthly';
paramsOut['form-countryspecific'] = 'Form-countryspecific-monthly';
$('#monthly-link').attr('href', baseURL + $.param(paramsOut));
$('#monthly-link').attr('href', baseURL + $.param(paramsOut));
$('#monthly-link').show();
}
});
*/
$(document).ready(function() {
if (showOnetimeLink) {
// We're on a monthly page, show the one-time link instead
$('#onetime-link').show();
} else if (showMonthlyLink) {
// We're not on a monthly page. So show a link to one.
$('#monthly-link').show();
$('#monthly-link').show();
}
}

Revision as of 16:58, 8 July 2013