Commit ed17dfd7 authored by Jumpei Ogawa's avatar Jumpei Ogawa

Hide donation form when donation: false

parent 55ecae87
......@@ -12,7 +12,7 @@ And replace
gem "jekyll-kde-theme", path: '../../'
```
with
with
```ruby
gem "jekyll-kde-theme", :git => 'https://invent.kde.org/websites/jekyll-kde-theme.git'
......@@ -21,13 +21,13 @@ gem "jekyll-kde-theme", :git => 'https://invent.kde.org/websites/jekyll-kde-them
And then execute:
$ bundle install --path vendor/bundle
You can now start editing the website.
To test your change do:
$ bundle exec jekyll server
You can also find a tutorial in the community wiki: https://community.kde.org/KDE.org/Jekyll
## Usage
......@@ -68,6 +68,7 @@ Following options are available in `_config.yml`
* `use-kde-logo`: if you want to use the kde logo instead of an application icon
* `hide-title-nav`: To hide the site title besides logo in navigation bar
* `app_icon`: Path to the icon displayed in the navbar
* `donation`: Set `false` to hide donation form at the bottom of the website. `true` by default
* `navigation`: Navigation menu settings
* `navigation.top[].title`: Title for the top navigation menu item
* `navigation.top[].url`: URL for the top navigation menu item
......
<footer id="kFooter" class="footer">
<section id="kFooterIncome" class="container">
<div id="kDonateForm" class="w-100">
<div class="center">
<h3>
{% if site.donate_to_kde %}{{ site.donate_to_kde }}{% else %}Donate to KDE{% endif %}
<a href="https://www.kde.org/community/donations/index.php#money" target="_blank">{% if site.why_donate %}{{ site.why_donate }}{% else %}Why Donate?{% endif %}</a>
</h3>
{% unless site.donation == false %}
<section id="kFooterIncome" class="container">
<div id="kDonateForm" class="w-100">
<div class="center">
<h3>
{% if site.donate_to_kde %}{{ site.donate_to_kde }}{% else %}Donate to KDE{% endif %}
<a href="https://www.kde.org/community/donations/index.php#money" target="_blank">{% if site.why_donate %}{{ site.why_donate }}{% else %}Why Donate?{% endif %}</a>
</h3>
<form action="https://www.paypal.com/en_US/cgi-bin/webscr" method="post" onsubmit="return amount.value >= 2 || window.confirm('Your donation is smaller than 2€. This means that most of your donation\nwill end up in processing fees. Do you want to continue?');">
<input type="hidden" name="cmd" value="_donations" />
<input type="hidden" name="lc" value="GB" />
<input type="hidden" name="item_name" value="Development and communication of KDE software" />
<input type="hidden" name="custom" value="/" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="cbt" value="Return to www.kde.org" />
<input type="hidden" name="return" value="https://www.kde.org/community/donations/thanks_paypal.php" />
<input type="hidden" name="notify_url" value="https://www.kde.org/community/donations/notify.php" />
<input type="hidden" name="business" value="kde-ev-paypal@kde.org" />
<input type='text' name="amount" value="10.00" id="donateAmountField" />
<button type='submit' id="donateSubmit">{% if site.donate_via_paypal %}{{ site.donate_via_paypal }}{% else %}Donate via PayPal{% endif %}</button>
</form>
<form action="https://www.paypal.com/en_US/cgi-bin/webscr" method="post" onsubmit="return amount.value >= 2 || window.confirm('Your donation is smaller than 2€. This means that most of your donation\nwill end up in processing fees. Do you want to continue?');">
<input type="hidden" name="cmd" value="_donations" />
<input type="hidden" name="lc" value="GB" />
<input type="hidden" name="item_name" value="Development and communication of KDE software" />
<input type="hidden" name="custom" value="/" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="cbt" value="Return to www.kde.org" />
<input type="hidden" name="return" value="https://www.kde.org/community/donations/thanks_paypal.php" />
<input type="hidden" name="notify_url" value="https://www.kde.org/community/donations/notify.php" />
<input type="hidden" name="business" value="kde-ev-paypal@kde.org" />
<input type='text' name="amount" value="10.00" id="donateAmountField" />
<button type='submit' id="donateSubmit">{% if site.donate_via_paypal %}{{ site.donate_via_paypal }}{% else %}Donate via PayPal{% endif %}</button>
</form>
<a href="https://www.kde.org/community/donations/others.php" id="otherWaysDonate" target="_blank">{% if site.other_ways_to_donate %}{{ site.other_ways_to_donate }}{% else %}Other ways to donate{% endif %}</a>
<a href="https://www.kde.org/community/donations/others.php" id="otherWaysDonate" target="_blank">{% if site.other_ways_to_donate %}{{ site.other_ways_to_donate }}{% else %}Other ways to donate{% endif %}</a>
</div>
</div>
</div>
</section>
</section>
{% endunless %}
<section id="kLinks" class="container">
<div class="row">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment