
{"id":201,"date":"2007-02-11T17:04:57","date_gmt":"2007-02-11T16:04:57","guid":{"rendered":"http:\/\/www.matthijskamstra.nl\/blog\/index.php\/2007\/02\/14\/first-wordpress-plugin-wp-downloadbtn\/"},"modified":"2007-02-14T14:48:45","modified_gmt":"2007-02-14T13:48:45","slug":"first-wordpress-plugin-wp-downloadbtn","status":"publish","type":"post","link":"https:\/\/www.matthijskamstra.nl\/blog\/2007\/02\/11\/first-wordpress-plugin-wp-downloadbtn\/","title":{"rendered":"My first WordPress plugin: wp-downloadbtn"},"content":{"rendered":"<p>Yes, it had to happen sooner or later; my first WordPress plugin.<\/p>\n<p>I can make it bigger then it is, but I won&#8217;t.<br \/>\nIt&#8217;s just a download button, it works in WordPress 2.0.7 and WordPress 2.1.<br \/>\nI use it in combination with <a href=\"http:\/\/www.yellowswordfish.com\/index.php?pagename=download-counter-wordpress-plugin\">Download Counter WordPress Plugin<\/a><\/p>\n<h3>Download WordPress Plugin &#8211; Download Button v1.0<\/h3>\n<div class=\"downloadbtn\"><a href=\"#\" onclick=\"location.href='http:\/\/www.matthijskamstra.nl\/blog\/download-manager.php?id=1'\" title=\"Download WordPress Plugin - Download Button v1.0: wp-downloadbtn_v01.zip (9kb)\"><strong>Download wp-downloadBtn<\/strong> wp-downloadbtn_v01.zip (9kb)<\/a><\/div>\n<p><!--more--><\/p>\n<h3>Usage instructions<\/h3>\n<ul>\n<li>Download the <a href=\"#\" onclick=\"location.href='http:\/\/www.matthijskamstra.nl\/blog\/download-manager.php?id=1'\" title=\"Download WordPress Plugin Download Button v1.0: wp-downloadbtn_v01.zip (9kb)\">zip<\/a> file and decompress into wp-content\/plugins.<\/li>\n<li>Go to your Plugins screen in the WordPress admin area, and activate \u00e2\u20ac\u0153Download Button\u00e2\u20ac?.<\/li>\n<li>In the code view, you get a &#8220;DownloadBtn&#8221; where you can fill in url, title, subtitle<\/li>\n<\/ul>\n<h3>Code example<\/h3>\n<p>This is how the Download Button looks in html:<\/p>\n<pre><code>\r\n<div class=\"downloadbtn\">\r\n\t<a href=\"http:\/\/go.to.url\" title=\"Download button test: only a test\">\r\n\t\t<strong>Download button test<\/strong>only a test\r\n\t<\/a>\r\n<\/div>\r\n<\/code><\/pre>\n<h3>Thanx<\/h3>\n<p>The icons I used for the Download button is not my own design, I sampled from these two:<br \/>\n<a href=\"http:\/\/www.famfamfam.com\/lab\/icons\/silk\/\" title=\"Silk icon set 1.3\">Silk icon<\/a> by Mark James for providing a box.<br \/>\n<a href=\"http:\/\/www.el73.be\/drunkey-love\/ or http:\/\/www.el73.be \" title=\"Drunkey Love icons - version 2.0\">Drunkey Love icons<\/a> by Kevin Wetzels for providing a arrow<\/p>\n<h3>Todo<\/h3>\n<p>Every product can improve, so here a couple of mine:<\/p>\n<ul>\n<li>counter integrated into button<\/li>\n<li>Place a button in TinyMCE (default <a href=\"http:\/\/en.wikipedia.org\/wiki\/WYSIWYG\" title=\"Wikipedia knows best\">wysiwyg <\/a>editor)<\/li>\n<li>Long description possible??<\/li>\n<li> &#8230;.<\/li>\n<\/ul>\n<p>Do you have some, just post a comment here.<\/p>\n<div id=\"license\"><!--Creative Commons License--> <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/2.5\/\"><img decoding=\"async\" border=\"0\" alt=\"Creative Commons License\" src=\"http:\/\/creativecommons.org\/images\/public\/somerights20.png\" \/><\/a> This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/2.5\/\">Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License<\/a>.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Yes, it had to happen sooner or later; my first WordPress plugin. I can make it bigger then it is, but I won&#8217;t. It&#8217;s just a download button, it works in WordPress 2.0.7 and WordPress 2.1. I use it in combination with Download Counter WordPress Plugin Download WordPress Plugin &#8211; Download Button v1.0 Download wp-downloadBtn [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,17],"tags":[406],"class_list":["post-201","post","type-post","status-publish","format-standard","hentry","category-open-source-freeware","category-wordpress-plugin","tag-wordpress-plugin"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":0,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}