Commits

shl...@cec68495-dca5-4e2b-845c-11fdaaa4f967  committed 08a00a4

Added the PayPal donate button to all the sites.

  • Participants
  • Parent commits e665e90

Comments (0)

Files changed (4)

File common/images/paypal.gif

Added
New image

File lib/paypal.wml

+<define-tag paypal_donate_why_donate_link>
+<a href="<rellink host="t2" url="meta/donate/" />">Why Donate?</a>
+</define-tag>
+<define-tag paypal_donate_code>
+<preserve type />
+<set-var %attributes />
+<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
+<div class="search">
+<input type="hidden" name="cmd" value="_s-xclick" />
+<input type="image" src="$(ROOT)/images/paypal.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
+<ifeq "<get-var type />" "nolink" "" "<paypal_donate_why_donate_link />" />
+<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHFgYJKoZIhvcNAQcEoIIHBzCCBwMCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCwzXpSe5CT/Q5JXouy7GnUF/0qSSKlEak3GAuT50FLbVTgJcccXxqurIdd7Djte3wWlWJpFjUbyF9pVUqNUlTZSinuTtEkdVhx13NCjom22rdnrI2+HLPVoOWue304RXq5nnQe3+WyPb/4SfbMKYYSd/KGri9//mg6XCiN9b7J5jELMAkGBSsOAwIaBQAwgZMGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIgZQV9to3omuAcF9VXpYiDTHu4yVLRmnhjjDe9A7zQt1c/MfFRHItMcKSkhHI6cD9/vNDGtrQUuipJi8pw4LiwcIde9pSjtRKicP7TFYaQXkb8hPeECVwUIWt05884BP9pJ4rf/r9s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71+jq6OKidbWFSE+Q4FqROvdgIONth+8kSK//Y/4ihuE4Ymvzn5ceE3S/iBSQQMjyvb+s2TWbQYDwcp129OPIbD9epdr4tJOUNiSojw7BHwYRiPh58S1xGlFgHFXwrEBb3dgNbMUa+u4qectsMAXpVHnD9wIyfmHMYIBmjCCAZYCAQEwgZQwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNTExMDkxNjI0NTlaMCMGCSqGSIb3DQEJBDEWBBRjvpgkTYpEROilHvBHzzPrAA2lyTANBgkqhkiG9w0BAQEFAASBgFpSTpXMAnwJ51sCA+CwF3ZgyBq29dr7jbU5tFslyG+/4vNk2NLotm64KM0V4ScOIif/LMhA7zIm3C3T/2MRa5ETEMSXj9oXZ2EKdm/aei+6QOp3hnzdUUeaNAnHFa/hG34pejoN/3r6Xmqa9Mjn46KsAKTDQIiiaHTW4GxuNAAJ-----END PKCS7-----
+" />
+</div>
+</form>
+<restore type />
+</define-tag>
+

File t2/meta/donate/index.html.wml

+#include '../template.wml'
+
+<latemp_subject "I accept Donations" />
+
+<p>
+Throughout the years I have produced a lot of useful, entertaining
+or content - open source code, humorous stories, essays, articles, material 
+for  presentations, web-sites, riddles and puzzles, and some computer
+graphics. I have made most of it available on my site and elsewhere, under
+a <a href="http://en.wikipedia.org/wiki/Open_content">free/open content 
+license</a>.
+</p>
+
+<p>
+Working on these creations required and still requires a lot of time for
+maintenance. While working on such endeavours gives me a lot of pleasure,
+I still would like to see some financial benefit. That's why I decided to
+ask for donations using PayPal. <b>So if what I created has benefited you in 
+some way, please consider donating</b>.
+</p>
+
+<p>
+How will I spend the money? On:
+</p>
+
+<ol>
+<li>
+Financing the physical infrastructure for my creations.
+</li>
+<li>
+Give it away to noble causes.
+</li>
+<li>
+Save some of it in case I'll need it.
+</li>
+<li>
+Spend it on nice things for my friends, my family and me.
+</li>
+</ol>
+
+<p>
+So, don't delay - donate today!
+</p>
+
+<paypal_donate_code type="nolink" />
+

File template.wml

 #include "utils.wml"
+#include "paypal.wml"
+
 <define-tag software_patents>1</define-tag>
 <set-var latemp_with_favicon="1" />
 <set-var latemp_with_xml_declaration="1" />
     "<google_search />"
     ""
     />
+
+<paypal_donate_code />
 <affil_collection_shlomif />
 <p>
 <a href="http://www.livejournal.com/community/shlomif_hsite/data/rss" class="bless"><img