Easy Media Download - Version 1.0.2

Version Description

  • Added a new shortcode parameter to open the download in a new window
Download this release

Release Info

Developer naa986
Plugin Icon 128x128 Easy Media Download
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

Files changed (2) hide show
  1. main.php +4 -3
  2. readme.txt +11 -2
main.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Easy Media Download
4
- Version: 1.0.1
5
  Plugin URI: http://noorsplugin.com/easy-media-download-plugin-for-wordpress/
6
  Author: naa986
7
  Author URI: http://noorsplugin.com/
@@ -13,7 +13,7 @@ if(!class_exists('EASY_MEDIA_DOWNLOAD'))
13
  {
14
  class EASY_MEDIA_DOWNLOAD
15
  {
16
- var $plugin_version = '1.0.1';
17
  function __construct()
18
  {
19
  define('EASY_MEDIA_DOWNLOAD_VERSION', $this->plugin_version);
@@ -60,6 +60,7 @@ function easy_media_download_handler($atts)
60
  'text' => 'Download Now',
61
  'width' => '153',
62
  'height' => '41',
 
63
  ), $atts));
64
  $styles = <<<EOT
65
  <style type="text/css">
@@ -110,7 +111,7 @@ function easy_media_download_handler($atts)
110
  </style>
111
  EOT;
112
  $output = <<<EOT
113
- <a href="$url" class="easy_media_dl_button">$text</a>
114
  $styles
115
  EOT;
116
  return $output;
1
  <?php
2
  /*
3
  Plugin Name: Easy Media Download
4
+ Version: 1.0.2
5
  Plugin URI: http://noorsplugin.com/easy-media-download-plugin-for-wordpress/
6
  Author: naa986
7
  Author URI: http://noorsplugin.com/
13
  {
14
  class EASY_MEDIA_DOWNLOAD
15
  {
16
+ var $plugin_version = '1.0.2';
17
  function __construct()
18
  {
19
  define('EASY_MEDIA_DOWNLOAD_VERSION', $this->plugin_version);
60
  'text' => 'Download Now',
61
  'width' => '153',
62
  'height' => '41',
63
+ 'target' => '_self',
64
  ), $atts));
65
  $styles = <<<EOT
66
  <style type="text/css">
111
  </style>
112
  EOT;
113
  $output = <<<EOT
114
+ <a href="$url" target="$target" class="easy_media_dl_button">$text</a>
115
  $styles
116
  EOT;
117
  return $output;
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Easy Media Download ===
2
  Contributors: naa986
3
  Donate link: http://noorsplugin.com/
4
- Tags: download, digital, downloads, ecommerce, media
5
  Requires at least: 3.0
6
  Tested up to: 3.7
7
- Stable tag: 1.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -44,6 +44,12 @@ By default the height for the download button is "41". But you can choose to mod
44
 
45
  `[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" text="Free Download" width="100" height="50"]`
46
 
 
 
 
 
 
 
47
  For detailed documentation please visit the [Easy Media Download](http://noorsplugin.com/easy-media-download-plugin-for-wordpress/) plugin page
48
 
49
  == Installation ==
@@ -72,5 +78,8 @@ none
72
 
73
  == Changelog ==
74
 
 
 
 
75
  = 1.0.1 =
76
  * First commit
1
  === Easy Media Download ===
2
  Contributors: naa986
3
  Donate link: http://noorsplugin.com/
4
+ Tags: download, downloads, media, digital downloads, e-commerce, e-downloads, e-store, ecommerce, eshop, wp ecommerce
5
  Requires at least: 3.0
6
  Tested up to: 3.7
7
+ Stable tag: 1.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
44
 
45
  `[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" text="Free Download" width="100" height="50"]`
46
 
47
+ *Download in a new window*
48
+
49
+ By default the download starts in the same window. But you can choose to modify it using the "target" parameter.
50
+
51
+ `[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" target="_blank"]` (opens the download in a new window)
52
+
53
  For detailed documentation please visit the [Easy Media Download](http://noorsplugin.com/easy-media-download-plugin-for-wordpress/) plugin page
54
 
55
  == Installation ==
78
 
79
  == Changelog ==
80
 
81
+ = 1.0.2 =
82
+ * Added a new shortcode parameter to open the download in a new window
83
+
84
  = 1.0.1 =
85
  * First commit