Version Description
- Added translation options in the plugin
- Added more download button templates
Download this release
Release Info
Developer | naa986 |
Plugin | Easy Media Download |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- languages/emd-de_DE.mo +0 -0
- languages/emd-de_DE.po +32 -0
- languages/emd-es_ES.mo +0 -0
- languages/emd-es_ES.po +33 -0
- languages/emd-fr_FR.mo +0 -0
- languages/emd-fr_FR.po +32 -0
- languages/emd-it_IT.mo +0 -0
- languages/emd-it_IT.po +32 -0
- languages/emd-nl_NL.mo +0 -0
- languages/emd-nl_NL.po +31 -0
- languages/emd-tr.mo +0 -0
- languages/emd-tr.po +31 -0
- languages/emd.mo +0 -0
- languages/emd.pot +30 -0
- main.php +123 -24
- readme.txt +66 -16
languages/emd-de_DE.mo
ADDED
Binary file
|
languages/emd-de_DE.po
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Easy Media Download\n"
|
4 |
+
"POT-Creation-Date: 2014-01-29 16:41+1000\n"
|
5 |
+
"PO-Revision-Date: 2014-01-29 16:47+1000\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.5.5\n"
|
12 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"Language: German\n"
|
15 |
+
"X-Poedit-SearchPath-0: .\n"
|
16 |
+
|
17 |
+
#: main.php:65
|
18 |
+
msgid "Easy Media Download Settings"
|
19 |
+
msgstr "Easy Media Download Einstellungen"
|
20 |
+
|
21 |
+
#: main.php:65
|
22 |
+
msgid "Easy Media Download"
|
23 |
+
msgstr "Easy Media Download"
|
24 |
+
|
25 |
+
#: main.php:76
|
26 |
+
msgid "Download Now"
|
27 |
+
msgstr "Jetzt herunterladen"
|
28 |
+
|
29 |
+
#: main.php:238
|
30 |
+
msgid "Please specify the PayPal email address which will receive the payments"
|
31 |
+
msgstr ""
|
32 |
+
"Bitte geben Sie die E-Mail-Adresse PayPal, die die Zahlungen erhalten, werden"
|
languages/emd-es_ES.mo
ADDED
Binary file
|
languages/emd-es_ES.po
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Easy Media Download\n"
|
4 |
+
"POT-Creation-Date: 2014-01-29 16:41+1000\n"
|
5 |
+
"PO-Revision-Date: 2014-01-29 17:07+1000\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.5.5\n"
|
12 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"Language: Spanish\n"
|
15 |
+
"X-Poedit-SearchPath-0: .\n"
|
16 |
+
|
17 |
+
#: main.php:65
|
18 |
+
msgid "Easy Media Download Settings"
|
19 |
+
msgstr "Easy Media Download Configuración"
|
20 |
+
|
21 |
+
#: main.php:65
|
22 |
+
msgid "Easy Media Download"
|
23 |
+
msgstr "Easy Media Download"
|
24 |
+
|
25 |
+
#: main.php:76
|
26 |
+
msgid "Download Now"
|
27 |
+
msgstr "Descargar ahora"
|
28 |
+
|
29 |
+
#: main.php:238
|
30 |
+
msgid "Please specify the PayPal email address which will receive the payments"
|
31 |
+
msgstr ""
|
32 |
+
"Por favor, especifique la dirección de correo electrónico de PayPal, que "
|
33 |
+
"recibirá los pagos"
|
languages/emd-fr_FR.mo
ADDED
Binary file
|
languages/emd-fr_FR.po
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Easy Media Download\n"
|
4 |
+
"POT-Creation-Date: 2014-01-29 16:41+1000\n"
|
5 |
+
"PO-Revision-Date: 2014-01-29 17:11+1000\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.5.5\n"
|
12 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"Language: French\n"
|
15 |
+
"X-Poedit-SearchPath-0: .\n"
|
16 |
+
|
17 |
+
#: main.php:65
|
18 |
+
msgid "Easy Media Download Settings"
|
19 |
+
msgstr "Easy Media Download paramètres"
|
20 |
+
|
21 |
+
#: main.php:65
|
22 |
+
msgid "Easy Media Download"
|
23 |
+
msgstr "Easy Media Download"
|
24 |
+
|
25 |
+
#: main.php:76
|
26 |
+
msgid "Download Now"
|
27 |
+
msgstr "télécharger"
|
28 |
+
|
29 |
+
#: main.php:238
|
30 |
+
msgid "Please specify the PayPal email address which will receive the payments"
|
31 |
+
msgstr ""
|
32 |
+
"S'il vous plaît spécifier l'adresse e-mail PayPal qui recevra les paiements"
|
languages/emd-it_IT.mo
ADDED
Binary file
|
languages/emd-it_IT.po
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Easy Media Download\n"
|
4 |
+
"POT-Creation-Date: 2014-01-29 16:41+1000\n"
|
5 |
+
"PO-Revision-Date: 2014-01-29 17:15+1000\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.5.5\n"
|
12 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"Language: Italian\n"
|
15 |
+
"X-Poedit-SearchPath-0: .\n"
|
16 |
+
|
17 |
+
#: main.php:65
|
18 |
+
msgid "Easy Media Download Settings"
|
19 |
+
msgstr "Easy Media Download impostazioni"
|
20 |
+
|
21 |
+
#: main.php:65
|
22 |
+
msgid "Easy Media Download"
|
23 |
+
msgstr "Easy Media Download"
|
24 |
+
|
25 |
+
#: main.php:76
|
26 |
+
msgid "Download Now"
|
27 |
+
msgstr "Scarica ora"
|
28 |
+
|
29 |
+
#: main.php:238
|
30 |
+
msgid "Please specify the PayPal email address which will receive the payments"
|
31 |
+
msgstr ""
|
32 |
+
"Si prega di specificare l'indirizzo email di PayPal che riceverà i pagamenti"
|
languages/emd-nl_NL.mo
ADDED
Binary file
|
languages/emd-nl_NL.po
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Easy Media Download\n"
|
4 |
+
"POT-Creation-Date: 2014-01-29 16:41+1000\n"
|
5 |
+
"PO-Revision-Date: 2014-01-29 17:17+1000\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.5.5\n"
|
12 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"Language: Dutch\n"
|
15 |
+
"X-Poedit-SearchPath-0: .\n"
|
16 |
+
|
17 |
+
#: main.php:65
|
18 |
+
msgid "Easy Media Download Settings"
|
19 |
+
msgstr "Easy Media Download instellingen"
|
20 |
+
|
21 |
+
#: main.php:65
|
22 |
+
msgid "Easy Media Download"
|
23 |
+
msgstr "Easy Media Download"
|
24 |
+
|
25 |
+
#: main.php:76
|
26 |
+
msgid "Download Now"
|
27 |
+
msgstr "Nu downloaden"
|
28 |
+
|
29 |
+
#: main.php:238
|
30 |
+
msgid "Please specify the PayPal email address which will receive the payments"
|
31 |
+
msgstr "Gelieve het PayPal e-mailadres waarop de betalingen zullen ontvangen"
|
languages/emd-tr.mo
ADDED
Binary file
|
languages/emd-tr.po
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Easy Media Download\n"
|
4 |
+
"POT-Creation-Date: 2014-01-29 16:41+1000\n"
|
5 |
+
"PO-Revision-Date: 2014-01-29 17:29+1000\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.5.5\n"
|
12 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"Language: Turkish\n"
|
15 |
+
"X-Poedit-SearchPath-0: .\n"
|
16 |
+
|
17 |
+
#: main.php:65
|
18 |
+
msgid "Easy Media Download Settings"
|
19 |
+
msgstr "Easy Media Download Ayarlar"
|
20 |
+
|
21 |
+
#: main.php:65
|
22 |
+
msgid "Easy Media Download"
|
23 |
+
msgstr "Easy Media Download"
|
24 |
+
|
25 |
+
#: main.php:76
|
26 |
+
msgid "Download Now"
|
27 |
+
msgstr "Hemen İndir"
|
28 |
+
|
29 |
+
#: main.php:238
|
30 |
+
msgid "Please specify the PayPal email address which will receive the payments"
|
31 |
+
msgstr "Ödeme alacaksınız PayPal e-posta adresini belirtin"
|
languages/emd.mo
ADDED
Binary file
|
languages/emd.pot
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Easy Media Download\n"
|
4 |
+
"POT-Creation-Date: 2014-01-29 16:41+1000\n"
|
5 |
+
"PO-Revision-Date: 2014-01-29 16:41+1000\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.5.5\n"
|
12 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
#: main.php:65
|
17 |
+
msgid "Easy Media Download Settings"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#: main.php:65
|
21 |
+
msgid "Easy Media Download"
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: main.php:76
|
25 |
+
msgid "Download Now"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: main.php:238
|
29 |
+
msgid "Please specify the PayPal email address which will receive the payments"
|
30 |
+
msgstr ""
|
main.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Easy Media Download
|
4 |
-
Version: 1.0.
|
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.
|
17 |
var $plugin_url;
|
18 |
var $plugin_path;
|
19 |
function __construct()
|
@@ -30,6 +30,7 @@ if(!class_exists('EASY_MEDIA_DOWNLOAD'))
|
|
30 |
{
|
31 |
//add_filter('plugin_action_links', array(&$this,'add_plugin_action_links'), 10, 2 );
|
32 |
}
|
|
|
33 |
//add_action('admin_menu', array( &$this, 'add_options_menu' ));
|
34 |
add_shortcode('easy_media_download','easy_media_download_handler');
|
35 |
add_shortcode('emd_donation','easy_media_download_donation_handler');
|
@@ -51,12 +52,17 @@ if(!class_exists('EASY_MEDIA_DOWNLOAD'))
|
|
51 |
}
|
52 |
return $links;
|
53 |
}
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
function add_options_menu()
|
56 |
{
|
57 |
if(is_admin())
|
58 |
{
|
59 |
-
add_options_page('Easy Media Download Settings', 'Easy Media Download', 'manage_options', 'easy-media-download-settings', array(&$this, 'display_options_page'));
|
60 |
}
|
61 |
}
|
62 |
}
|
@@ -67,21 +73,109 @@ function easy_media_download_handler($atts)
|
|
67 |
{
|
68 |
extract(shortcode_atts(array(
|
69 |
'url' => '',
|
70 |
-
'text' => 'Download Now',
|
71 |
'width' => '153',
|
72 |
'height' => '41',
|
|
|
73 |
'target' => '_self',
|
74 |
), $atts));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
$styles = <<<EOT
|
76 |
<style type="text/css">
|
77 |
-
|
78 |
-
-moz-box-shadow:inset 0px 1px 0px 0px
|
79 |
-
-webkit-box-shadow:inset 0px 1px 0px 0px
|
80 |
-
box-shadow:inset 0px 1px 0px 0px
|
81 |
-
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05,
|
82 |
-
background:-moz-linear-gradient( center top,
|
83 |
-
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='
|
84 |
-
background-color
|
85 |
-webkit-border-top-left-radius:0px;
|
86 |
-moz-border-radius-topleft:0px;
|
87 |
border-top-left-radius:0px;
|
@@ -95,9 +189,9 @@ function easy_media_download_handler($atts)
|
|
95 |
-moz-border-radius-bottomleft:0px;
|
96 |
border-bottom-left-radius:0px;
|
97 |
text-indent:0;
|
98 |
-
border:1px solid
|
99 |
display:inline-block;
|
100 |
-
color
|
101 |
font-family:Georgia;
|
102 |
font-size:15px;
|
103 |
font-weight:bold;
|
@@ -107,21 +201,26 @@ function easy_media_download_handler($atts)
|
|
107 |
width:{$width}px;
|
108 |
text-decoration:none;
|
109 |
text-align:center;
|
110 |
-
text-shadow:1px 1px 0px
|
111 |
-
}
|
112 |
-
|
113 |
-
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05,
|
114 |
-
background:-moz-linear-gradient( center top,
|
115 |
-
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='
|
116 |
-
background-color
|
117 |
-
}
|
118 |
position:relative;
|
119 |
top:1px;
|
120 |
}
|
121 |
</style>
|
122 |
EOT;
|
|
|
|
|
|
|
|
|
|
|
123 |
$output = <<<EOT
|
124 |
-
<a href="$url" target="$target"
|
125 |
$styles
|
126 |
EOT;
|
127 |
return $output;
|
@@ -136,7 +235,7 @@ function easy_media_download_donation_handler($atts)
|
|
136 |
'locale' => 'US',
|
137 |
), $atts));
|
138 |
if(empty($email)){
|
139 |
-
return
|
140 |
}
|
141 |
if(empty($image)){
|
142 |
$image = EASY_MEDIA_DOWNLOAD_URL."/images/donate.gif";
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Easy Media Download
|
4 |
+
Version: 1.0.5
|
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.5';
|
17 |
var $plugin_url;
|
18 |
var $plugin_path;
|
19 |
function __construct()
|
30 |
{
|
31 |
//add_filter('plugin_action_links', array(&$this,'add_plugin_action_links'), 10, 2 );
|
32 |
}
|
33 |
+
add_action('plugins_loaded', array(&$this,'plugins_loaded_handler'), 10, 2 );
|
34 |
//add_action('admin_menu', array( &$this, 'add_options_menu' ));
|
35 |
add_shortcode('easy_media_download','easy_media_download_handler');
|
36 |
add_shortcode('emd_donation','easy_media_download_donation_handler');
|
52 |
}
|
53 |
return $links;
|
54 |
}
|
55 |
+
|
56 |
+
function plugins_loaded_handler()
|
57 |
+
{
|
58 |
+
load_plugin_textdomain( 'emd', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
59 |
+
}
|
60 |
|
61 |
function add_options_menu()
|
62 |
{
|
63 |
if(is_admin())
|
64 |
{
|
65 |
+
add_options_page(__('Easy Media Download Settings', 'emd'), __('Easy Media Download', 'emd'), 'manage_options', 'easy-media-download-settings', array(&$this, 'display_options_page'));
|
66 |
}
|
67 |
}
|
68 |
}
|
73 |
{
|
74 |
extract(shortcode_atts(array(
|
75 |
'url' => '',
|
76 |
+
'text' => __('Download Now', 'emd'),
|
77 |
'width' => '153',
|
78 |
'height' => '41',
|
79 |
+
'color' => 'red_darker',
|
80 |
'target' => '_self',
|
81 |
), $atts));
|
82 |
+
$class = "emd_dl_".$color;
|
83 |
+
$inset = "f5978e";
|
84 |
+
$start_color = "f24537";
|
85 |
+
$end_color = "c62d1f";
|
86 |
+
$border = "d02718";
|
87 |
+
$dl_color = "ffffff";
|
88 |
+
$text_shadow = "810e05";
|
89 |
+
if($color=="grey")
|
90 |
+
{
|
91 |
+
$inset = "ffffff";$start_color = "ededed";$end_color = "dfdfdf";$border = "dcdcdc";$dl_color = "777777";$text_shadow = "ffffff";
|
92 |
+
}
|
93 |
+
if($color=="grey_light")
|
94 |
+
{
|
95 |
+
$inset = "ffffff";$start_color = "f9f9f9";$end_color = "e9e9e9";$border = "dcdcdc";$dl_color = "666666";$text_shadow = "ffffff";
|
96 |
+
}
|
97 |
+
if($color=="red")
|
98 |
+
{
|
99 |
+
$inset = "f29c93";$start_color = "fe1a00";$end_color = "ce0100";$border = "d83526";$dl_color = "ffffff";$text_shadow = "b23e35";
|
100 |
+
}
|
101 |
+
if($color=="green_dark")
|
102 |
+
{
|
103 |
+
$inset = "caefab";$start_color = "77d42a";$end_color = "5cb811";$border = "268a16";$dl_color = "306108";$text_shadow = "aade7c";
|
104 |
+
}
|
105 |
+
if($color=="green_light")
|
106 |
+
{
|
107 |
+
$inset = "c1ed9c";$start_color = "9dce2c";$end_color = "8cb82b";$border = "83c41a";$dl_color = "ffffff";$text_shadow = "689324";
|
108 |
+
}
|
109 |
+
if($color=="green")
|
110 |
+
{
|
111 |
+
$inset = "d9fbbe";$start_color = "b8e356";$end_color = "a5cc52";$border = "83c41a";$dl_color = "ffffff";$text_shadow = "86ae47";
|
112 |
+
}
|
113 |
+
if($color=="blue")
|
114 |
+
{
|
115 |
+
$inset = "bbdaf7";$start_color = "79bbff";$end_color = "378de5";$border = "84bbf3";$dl_color = "ffffff";$text_shadow = "528ecc";
|
116 |
+
}
|
117 |
+
if($color=="blue_two")
|
118 |
+
{
|
119 |
+
$inset = "cae3fc";$start_color = "79bbff";$end_color = "4197ee";$border = "469df5";$dl_color = "ffffff";$text_shadow = "287ace";
|
120 |
+
}
|
121 |
+
if($color=="blue_three")
|
122 |
+
{
|
123 |
+
$inset = "bee2f9";$start_color = "63b8ee";$end_color = "468ccf";$border = "3866a3";$dl_color = "14396a";$text_shadow = "7cacde";
|
124 |
+
}
|
125 |
+
if($color=="blue_four")
|
126 |
+
{
|
127 |
+
$inset = "97c4fe";$start_color = "3d94f6";$end_color = "1e62d0";$border = "337fed";$dl_color = "ffffff";$text_shadow = "1570cd";
|
128 |
+
}
|
129 |
+
if($color=="orange")
|
130 |
+
{
|
131 |
+
$inset = "fce2c1";$start_color = "ffc477";$end_color = "fb9e25";$border = "eeb44f";$dl_color = "ffffff";$text_shadow = "cc9f52";
|
132 |
+
}
|
133 |
+
if($color=="orange_two")
|
134 |
+
{
|
135 |
+
$inset = "fceaca";$start_color = "ffce79";$end_color = "eeaf41";$border = "eeb44f";$dl_color = "ffffff";$text_shadow = "ce8e28";
|
136 |
+
}
|
137 |
+
if($color=="orange_light")
|
138 |
+
{
|
139 |
+
$inset = "fcf8f2";$start_color = "fae4bd";$end_color = "eac380";$border = "eeb44f";$dl_color = "ffffff";$text_shadow = "cc9f52";
|
140 |
+
}
|
141 |
+
if($color=="orange_dark")
|
142 |
+
{
|
143 |
+
$inset = "fed897";$start_color = "f6b33d";$end_color = "d29105";$border = "eda933";$dl_color = "ffffff";$text_shadow = "cd8a15";
|
144 |
+
}
|
145 |
+
if($color=="purple")
|
146 |
+
{
|
147 |
+
$inset = "d197fe";$start_color = "a53df6";$end_color = "7c16cb";$border = "9c33ed";$dl_color = "ffffff";$text_shadow = "7d15cd";
|
148 |
+
}
|
149 |
+
if($color=="purple_dark")
|
150 |
+
{
|
151 |
+
$inset = "e184f3";$start_color = "c123de";$end_color = "a20dbd";$border = "a511c0";$dl_color = "ffffff";$text_shadow = "9b14b3";
|
152 |
+
}
|
153 |
+
if($color=="purple_light")
|
154 |
+
{
|
155 |
+
$inset = "e6cafc";$start_color = "c579ff";$end_color = "a341ee";$border = "a946f5";$dl_color = "ffffff";$text_shadow = "8628ce";
|
156 |
+
}
|
157 |
+
if($color=="yellow_red")
|
158 |
+
{
|
159 |
+
$inset = "f9eca0";$start_color = "f0c911";$end_color = "f2ab1e";$border = "e65f44";$dl_color = "c92200";$text_shadow = "ded17c";
|
160 |
+
}
|
161 |
+
if($color=="hot_pink")
|
162 |
+
{
|
163 |
+
$inset = "fbafe3";$start_color = "ff5bb0";$end_color = "ef027d";$border = "ee1eb5";$dl_color = "ffffff";$text_shadow = "c70067";
|
164 |
+
}
|
165 |
+
if($color=="pink")
|
166 |
+
{
|
167 |
+
$inset = "f4cafc";$start_color = "eea1fc";$end_color = "d441ee";$border = "dd5df4";$dl_color = "ffffff";$text_shadow = "b63dcc";
|
168 |
+
}
|
169 |
$styles = <<<EOT
|
170 |
<style type="text/css">
|
171 |
+
.$class {
|
172 |
+
-moz-box-shadow:inset 0px 1px 0px 0px #$inset;
|
173 |
+
-webkit-box-shadow:inset 0px 1px 0px 0px #$inset;
|
174 |
+
box-shadow:inset 0px 1px 0px 0px #$inset;
|
175 |
+
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #$start_color), color-stop(1, #$end_color) );
|
176 |
+
background:-moz-linear-gradient( center top, #$start_color 5%, #$end_color 100% );
|
177 |
+
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#$start_color', endColorstr='#$end_color');
|
178 |
+
background-color:#$start_color;
|
179 |
-webkit-border-top-left-radius:0px;
|
180 |
-moz-border-radius-topleft:0px;
|
181 |
border-top-left-radius:0px;
|
189 |
-moz-border-radius-bottomleft:0px;
|
190 |
border-bottom-left-radius:0px;
|
191 |
text-indent:0;
|
192 |
+
border:1px solid #$border;
|
193 |
display:inline-block;
|
194 |
+
color:#$dl_color !important;
|
195 |
font-family:Georgia;
|
196 |
font-size:15px;
|
197 |
font-weight:bold;
|
201 |
width:{$width}px;
|
202 |
text-decoration:none;
|
203 |
text-align:center;
|
204 |
+
text-shadow:1px 1px 0px #$text_shadow;
|
205 |
+
}
|
206 |
+
.$class:hover {
|
207 |
+
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #$end_color), color-stop(1, #$start_color) );
|
208 |
+
background:-moz-linear-gradient( center top, #$end_color 5%, #$start_color 100% );
|
209 |
+
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#$end_color', endColorstr='#$start_color');
|
210 |
+
background-color:#$end_color;
|
211 |
+
}.$class:active {
|
212 |
position:relative;
|
213 |
top:1px;
|
214 |
}
|
215 |
</style>
|
216 |
EOT;
|
217 |
+
$class = ' class="'.$class.'"';
|
218 |
+
if(preg_match("/http/", $text)){
|
219 |
+
$class = "";
|
220 |
+
$text = '<img src="'.$text.'">';
|
221 |
+
}
|
222 |
$output = <<<EOT
|
223 |
+
<a href="$url" target="$target"{$class}>$text</a>
|
224 |
$styles
|
225 |
EOT;
|
226 |
return $output;
|
235 |
'locale' => 'US',
|
236 |
), $atts));
|
237 |
if(empty($email)){
|
238 |
+
return __('Please specify the PayPal email address which will receive the payments', 'emd');
|
239 |
}
|
240 |
if(empty($image)){
|
241 |
$image = EASY_MEDIA_DOWNLOAD_URL."/images/donate.gif";
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://noorsplugin.com/
|
|
4 |
Tags: download, downloads, media, digital downloads, e-commerce, e-downloads, e-store, ecommerce, eshop, wp ecommerce, donation
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.8
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -12,12 +12,12 @@ Easy Media Download allows you to embed download buttons on your WordPress site.
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
Easy Media Download
|
16 |
|
17 |
= Features =
|
18 |
|
19 |
-
* Create
|
20 |
-
* Insert download
|
21 |
* Allow users to directly download in all file formats
|
22 |
* Allow large file download (No limit on the file size)
|
23 |
* Accept donations for your free digital downloads using PayPal
|
@@ -29,11 +29,11 @@ Easy Media Download allows your users to download digital media files from your
|
|
29 |
* Free downloads for archive or compressed file e.g. tar, rar, zip, 7z, gz, z
|
30 |
* Free downloads for image file e.g. png, gif, jpg, jpeg, bmp
|
31 |
* Free downloads for e-book e.g. pdf, epub
|
|
|
32 |
|
|
|
33 |
|
34 |
-
=
|
35 |
-
|
36 |
-
*Embedding Shortcodes for the Downloads*
|
37 |
|
38 |
Create a new post/page and use the following shortcode to create a download button for your digital media file:
|
39 |
|
@@ -43,55 +43,101 @@ here, url is a shortcode parameter that you need to replace with the actual URL
|
|
43 |
|
44 |
You can also specify additional optional parameters in the shortcode to customize the free download button.
|
45 |
|
46 |
-
|
47 |
|
48 |
By default the text for the download button is "Download Now". But you can choose to modify the text using the "text" parameter.
|
49 |
|
50 |
`[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" text="Free Download"]`
|
51 |
|
52 |
-
|
53 |
|
54 |
By default the width for the download button is "153". But you can choose to modify it using the "width" parameter.
|
55 |
|
56 |
`[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" text="Free Download" width="100"]`
|
57 |
|
58 |
-
|
59 |
|
60 |
By default the height for the download button is "41". But you can choose to modify it using the "height" parameter.
|
61 |
|
62 |
`[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" text="Free Download" width="100" height="50"]`
|
63 |
|
64 |
-
|
65 |
|
66 |
By default the download starts in the same window. But you can choose to modify it using the "target" parameter.
|
67 |
|
68 |
`[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" target="_blank"]` (opens the download in a new window)
|
69 |
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
You can accept donations from users visiting your site for your free downloads. Simply use the following shortcode with your PayPal email address in it.
|
73 |
|
74 |
`[emd_donation email="abc123@hotmail.com"]`
|
75 |
|
76 |
-
|
77 |
|
78 |
The default currency is "USD". But you can also accept payments in your preferred currency using the "currency" parameter.
|
79 |
|
80 |
`[emd_donation email="abc123@hotmail.com" currency="CAD"]` (This will set the currency to Canadian Dollar)
|
81 |
|
82 |
-
|
83 |
|
84 |
The default locale for the payment page is "US". But you can set it to your preferred language using the "locale" parameter.
|
85 |
|
86 |
`[emd_donation email="abc123@hotmail.com" locale="BE"]` (This will set the locale to Belgium)
|
87 |
|
88 |
-
|
89 |
|
90 |
You can customize the donation button by specifying your preferred image in the shortcode.
|
91 |
|
92 |
`[emd_donation email="abc123@hotmail.com" image="http://example.com/wp-content/uploads/images/donate.jpg"]`
|
93 |
|
94 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
|
96 |
== Installation ==
|
97 |
|
@@ -123,6 +169,10 @@ none
|
|
123 |
|
124 |
== Changelog ==
|
125 |
|
|
|
|
|
|
|
|
|
126 |
= 1.0.4 =
|
127 |
* Added donation options for free downloads
|
128 |
|
4 |
Tags: download, downloads, media, digital downloads, e-commerce, e-downloads, e-store, ecommerce, eshop, wp ecommerce, donation
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.8
|
7 |
+
Stable tag: 1.0.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
[Easy Media Download](http://noorsplugin.com/easy-media-download-plugin-for-wordpress/) is a free download manager for WordPress. It gives your users the ability to download digital media files from your website. The plugin is lightweight and makes downloading easier. You can create beautiful download button which instantly starts the download once clicked.
|
16 |
|
17 |
= Features =
|
18 |
|
19 |
+
* Create quick downloads
|
20 |
+
* Insert download buttons into your landing page
|
21 |
* Allow users to directly download in all file formats
|
22 |
* Allow large file download (No limit on the file size)
|
23 |
* Accept donations for your free digital downloads using PayPal
|
29 |
* Free downloads for archive or compressed file e.g. tar, rar, zip, 7z, gz, z
|
30 |
* Free downloads for image file e.g. png, gif, jpg, jpeg, bmp
|
31 |
* Free downloads for e-book e.g. pdf, epub
|
32 |
+
* Track/Monitor your downloads
|
33 |
|
34 |
+
For more information please check the [Easy Media Download](http://noorsplugin.com/easy-media-download-plugin-for-wordpress/) documentation page
|
35 |
|
36 |
+
= Embedding Shortcodes for the Downloads =
|
|
|
|
|
37 |
|
38 |
Create a new post/page and use the following shortcode to create a download button for your digital media file:
|
39 |
|
43 |
|
44 |
You can also specify additional optional parameters in the shortcode to customize the free download button.
|
45 |
|
46 |
+
**Button Text**
|
47 |
|
48 |
By default the text for the download button is "Download Now". But you can choose to modify the text using the "text" parameter.
|
49 |
|
50 |
`[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" text="Free Download"]`
|
51 |
|
52 |
+
**Button Width**
|
53 |
|
54 |
By default the width for the download button is "153". But you can choose to modify it using the "width" parameter.
|
55 |
|
56 |
`[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" text="Free Download" width="100"]`
|
57 |
|
58 |
+
**Button Height**
|
59 |
|
60 |
By default the height for the download button is "41". But you can choose to modify it using the "height" parameter.
|
61 |
|
62 |
`[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" text="Free Download" width="100" height="50"]`
|
63 |
|
64 |
+
**Download in a new window**
|
65 |
|
66 |
By default the download starts in the same window. But you can choose to modify it using the "target" parameter.
|
67 |
|
68 |
`[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" target="_blank"]` (opens the download in a new window)
|
69 |
|
70 |
+
= Download Button Templates =
|
71 |
+
|
72 |
+
Easy Media Download comes with 21 different download button templates. All you need to do is specify the style and the button will look just like it. For example:
|
73 |
+
|
74 |
+
`[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" color="red_darker"]`
|
75 |
+
|
76 |
+
* grey
|
77 |
+
* grey_light
|
78 |
+
* red
|
79 |
+
* green_dark
|
80 |
+
* green_light
|
81 |
+
* green
|
82 |
+
* blue
|
83 |
+
* blue_two
|
84 |
+
* blue_three
|
85 |
+
* blue_four
|
86 |
+
* orange
|
87 |
+
* orange_two
|
88 |
+
* orange_light
|
89 |
+
* orange_dark
|
90 |
+
* purple
|
91 |
+
* purple_dark
|
92 |
+
* purple_light
|
93 |
+
* yellow_red
|
94 |
+
* hot_pink
|
95 |
+
* pink
|
96 |
+
|
97 |
+
If you want to fully customize the download button you can use your own button image instead.
|
98 |
+
|
99 |
+
= Embedding a Donation Button for Free Download =
|
100 |
|
101 |
You can accept donations from users visiting your site for your free downloads. Simply use the following shortcode with your PayPal email address in it.
|
102 |
|
103 |
`[emd_donation email="abc123@hotmail.com"]`
|
104 |
|
105 |
+
**Donation Currency**
|
106 |
|
107 |
The default currency is "USD". But you can also accept payments in your preferred currency using the "currency" parameter.
|
108 |
|
109 |
`[emd_donation email="abc123@hotmail.com" currency="CAD"]` (This will set the currency to Canadian Dollar)
|
110 |
|
111 |
+
**Payment Page Language**
|
112 |
|
113 |
The default locale for the payment page is "US". But you can set it to your preferred language using the "locale" parameter.
|
114 |
|
115 |
`[emd_donation email="abc123@hotmail.com" locale="BE"]` (This will set the locale to Belgium)
|
116 |
|
117 |
+
**Donation Button Image**
|
118 |
|
119 |
You can customize the donation button by specifying your preferred image in the shortcode.
|
120 |
|
121 |
`[emd_donation email="abc123@hotmail.com" image="http://example.com/wp-content/uploads/images/donate.jpg"]`
|
122 |
|
123 |
+
= Digital Download Tracking =
|
124 |
+
|
125 |
+
Easy Media Download is integrated with [Google Analytics](http://wordpress.org/plugins/google-analytics-for-wordpress/) plugin. It allows you to see how many times a particular file has been downloaded in real time from your Google Analytics account.
|
126 |
+
|
127 |
+
= Languages =
|
128 |
+
|
129 |
+
Easy Media Download can be translated into your languages. Currently it supports the following languages:
|
130 |
+
|
131 |
+
* French
|
132 |
+
* Spanish
|
133 |
+
* German
|
134 |
+
* Italian
|
135 |
+
* Dutch
|
136 |
+
* Turkish
|
137 |
+
|
138 |
+
**Like Easy Media Download Already?**
|
139 |
+
|
140 |
+
Feel free to drop your review [here](http://wordpress.org/support/view/plugin-reviews/easy-media-download/)
|
141 |
|
142 |
== Installation ==
|
143 |
|
169 |
|
170 |
== Changelog ==
|
171 |
|
172 |
+
= 1.0.5 =
|
173 |
+
* Added translation options in the plugin
|
174 |
+
* Added more download button templates
|
175 |
+
|
176 |
= 1.0.4 =
|
177 |
* Added donation options for free downloads
|
178 |
|