Version Description
- Fixed editor (WordPress 3.9 compatibility issue)
- New translation : Swedish
Download this release
Release Info
Developer | nlemoine |
Plugin | WP Better Emails |
Version | 0.2.6.5 |
Comparing to | |
See all releases |
Code changes from version 0.2.6.4 to 0.2.6.5
- js/wpbe-admin-script.js +3 -3
- langs/wp-better-emails-sv_SE.mo +0 -0
- langs/wp-better-emails-sv_SE.po +307 -0
- readme.txt +13 -7
- wpbe.php +12 -6
js/wpbe-admin-script.js
CHANGED
@@ -23,13 +23,13 @@ jQuery(document).ready(function($){
|
|
23 |
}
|
24 |
});
|
25 |
});
|
26 |
-
|
27 |
// Trigger help
|
28 |
$('.wpbe_help').on('click', this, function(e){
|
29 |
e.preventDefault();
|
30 |
$('a#contextual-help-link').trigger('click');
|
31 |
});
|
32 |
-
|
33 |
// Thickbox preview
|
34 |
$('#wpbe_preview_template').on('click', this, function(e) {
|
35 |
e.preventDefault();
|
@@ -52,7 +52,7 @@ jQuery(document).ready(function($){
|
|
52 |
else
|
53 |
template = $('.wpbe_template').val();
|
54 |
}
|
55 |
-
|
56 |
$previewIframe = $previewIframe[$previewIframe.length - 1].contentWindow || frame[$previewIframe.length - 1];
|
57 |
$previewIframe.document.open();
|
58 |
$previewIframe.document.write( template );
|
23 |
}
|
24 |
});
|
25 |
});
|
26 |
+
|
27 |
// Trigger help
|
28 |
$('.wpbe_help').on('click', this, function(e){
|
29 |
e.preventDefault();
|
30 |
$('a#contextual-help-link').trigger('click');
|
31 |
});
|
32 |
+
|
33 |
// Thickbox preview
|
34 |
$('#wpbe_preview_template').on('click', this, function(e) {
|
35 |
e.preventDefault();
|
52 |
else
|
53 |
template = $('.wpbe_template').val();
|
54 |
}
|
55 |
+
|
56 |
$previewIframe = $previewIframe[$previewIframe.length - 1].contentWindow || frame[$previewIframe.length - 1];
|
57 |
$previewIframe.document.open();
|
58 |
$previewIframe.document.write( template );
|
langs/wp-better-emails-sv_SE.mo
ADDED
Binary file
|
langs/wp-better-emails-sv_SE.po
ADDED
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WP Better Emails\n"
|
4 |
+
"POT-Creation-Date: 2013-08-25 16:40+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-04-17 14:10+0100\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.6.4\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
13 |
+
"_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
|
14 |
+
"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
15 |
+
"X-Poedit-Basepath: .\n"
|
16 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18 |
+
"Language: sv\n"
|
19 |
+
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
"X-Poedit-SearchPath-1: ..\n"
|
21 |
+
|
22 |
+
#: ../wpbe-options.php:2 ../wpbe.php:186
|
23 |
+
msgid "Email settings"
|
24 |
+
msgstr "E-postinställningar"
|
25 |
+
|
26 |
+
#: ../wpbe-options.php:8
|
27 |
+
msgid "Sender Options"
|
28 |
+
msgstr "Inställningar för avsändare"
|
29 |
+
|
30 |
+
#: ../wpbe-options.php:9
|
31 |
+
msgid ""
|
32 |
+
"Set your own sender name and email address. Default WordPress values will be "
|
33 |
+
"used if empty."
|
34 |
+
msgstr ""
|
35 |
+
"Ange ditt egna namn och e-postadress. WordPress standardvärden kommer att "
|
36 |
+
"användas om fälten lämnas tomma. "
|
37 |
+
|
38 |
+
#: ../wpbe-options.php:12
|
39 |
+
msgid "Name"
|
40 |
+
msgstr "Namn"
|
41 |
+
|
42 |
+
#: ../wpbe-options.php:16
|
43 |
+
msgid "Email address"
|
44 |
+
msgstr "E-postadress"
|
45 |
+
|
46 |
+
#: ../wpbe-options.php:22
|
47 |
+
msgid "HTML Template"
|
48 |
+
msgstr "HTML-mall"
|
49 |
+
|
50 |
+
#: ../wpbe-options.php:24
|
51 |
+
msgid "Live template preview"
|
52 |
+
msgstr "Förhandsgranskning av HTML-mall"
|
53 |
+
|
54 |
+
#: ../wpbe-options.php:24
|
55 |
+
msgid "Live preview"
|
56 |
+
msgstr "Förhandsgranskning"
|
57 |
+
|
58 |
+
#: ../wpbe-options.php:27
|
59 |
+
msgid ""
|
60 |
+
"Edit the HTML template if you want to customize it. You might have a look at "
|
61 |
+
"the <a href=\"#\" class=\"wpbe_help\">help tab</a> for further information."
|
62 |
+
msgstr ""
|
63 |
+
"Redigera HTML-mallen och anpassa den efter egna behov. Ta gärna en titt "
|
64 |
+
"under <a href=\"#\" class=\"wpbe_help\">hjälpfliken</a> för mer information. "
|
65 |
+
|
66 |
+
#: ../wpbe-options.php:33
|
67 |
+
msgid "Plain-text Template"
|
68 |
+
msgstr "Vanlig text-mall"
|
69 |
+
|
70 |
+
#: ../wpbe-options.php:34
|
71 |
+
msgid ""
|
72 |
+
"Edit the plain-text template if you want to customize it. You might have a "
|
73 |
+
"look at the <a href=\"#\" class=\"wpbe_help\">help tab</a> for further "
|
74 |
+
"information."
|
75 |
+
msgstr ""
|
76 |
+
"Redigera mallen för vanlig text och anpassa den efter egna behov. Ta gärna "
|
77 |
+
"en titt under <a href=\"#\" class=\"wpbe_help\">hjälpfliken</a> för mer "
|
78 |
+
"information. "
|
79 |
+
|
80 |
+
#: ../wpbe-options.php:40
|
81 |
+
msgid "Preview"
|
82 |
+
msgstr "Förhandsgranskning"
|
83 |
+
|
84 |
+
#: ../wpbe-options.php:45
|
85 |
+
msgid "Send an email preview to"
|
86 |
+
msgstr "Skicka en förhandsgranskning till "
|
87 |
+
|
88 |
+
#: ../wpbe-options.php:49
|
89 |
+
msgid "Send"
|
90 |
+
msgstr "Skicka"
|
91 |
+
|
92 |
+
#: ../wpbe-options.php:51
|
93 |
+
msgid "You must save your template before sending an email preview."
|
94 |
+
msgstr "Du måste spara din mall innan du skickar en förhandsgranskning. "
|
95 |
+
|
96 |
+
#: ../wpbe-options.php:56
|
97 |
+
msgid "Save Changes"
|
98 |
+
msgstr "Spara ändringar"
|
99 |
+
|
100 |
+
#: ../wpbe-options.php:61
|
101 |
+
msgid "Support & bug report"
|
102 |
+
msgstr "Support och buggrapport"
|
103 |
+
|
104 |
+
#: ../wpbe-options.php:62
|
105 |
+
#, php-format
|
106 |
+
msgid ""
|
107 |
+
"If you have any idea to improve this plugin or any bug to report, please "
|
108 |
+
"email me at : <a href=\"%1$s\">%2$s</a>"
|
109 |
+
msgstr ""
|
110 |
+
"Om du har idéer för hur man kan förbättra detta tillägget, eller en "
|
111 |
+
"buggrapport, vänligen kontakta mig på: <a href=\"%1$s\">%2$s</a>"
|
112 |
+
|
113 |
+
#: ../wpbe-options.php:64
|
114 |
+
#, php-format
|
115 |
+
msgid ""
|
116 |
+
"You like this plugin ? You use it in a business context ? Please, consider a "
|
117 |
+
"<a href=\"%s\" target=\"_blank\" rel=\"external\">donation</a>."
|
118 |
+
msgstr ""
|
119 |
+
"Gillar du detta tillägget? Använder du det i affärssammanhang? Vänligen "
|
120 |
+
"överväg att <a href=\"%s\" target=\"_blank\" rel=\"external\">donera till "
|
121 |
+
"utvecklaren</a>."
|
122 |
+
|
123 |
+
#: ../wpbe-options.php:65
|
124 |
+
#, php-format
|
125 |
+
msgid ""
|
126 |
+
"You can still provide some support by <a href=\"%1$s\" target=\"_blank"
|
127 |
+
"\">voting for it</a> and/or says that <a href=\"%2$s\" target=\"_blank\">it "
|
128 |
+
"works</a> for your WordPress installation on the official WordPress plugins "
|
129 |
+
"repository."
|
130 |
+
msgstr ""
|
131 |
+
"Du kan fortfarande förse oss med support genom att <a href=\"%1$s\" target="
|
132 |
+
"\"_blank\">rösta på det</a> och/eller säg att <a href=\"%2$s\" target="
|
133 |
+
"\"_blank\">det fungerar</a> tillsammans med din WordPress-installation på "
|
134 |
+
"den officiella WordPress-sidan för tillägg."
|
135 |
+
|
136 |
+
#: ../wpbe.php:156
|
137 |
+
msgid "Settings"
|
138 |
+
msgstr "Inställningar"
|
139 |
+
|
140 |
+
#: ../wpbe.php:174
|
141 |
+
msgid "WP Better Emails requires WordPress 2.8 or newer."
|
142 |
+
msgstr "WP Better Emails kräver WordPress 2.8 eller nyare. "
|
143 |
+
|
144 |
+
#: ../wpbe.php:174
|
145 |
+
msgid "Upgrade your Wordpress installation."
|
146 |
+
msgstr "Uppgradera din installation av WordPress. "
|
147 |
+
|
148 |
+
#: ../wpbe.php:186
|
149 |
+
msgid "WP Better Emails"
|
150 |
+
msgstr "WP Better Emails"
|
151 |
+
|
152 |
+
#: ../wpbe.php:263
|
153 |
+
msgid "Please enter a valid sender email address."
|
154 |
+
msgstr "Vänligen ange en giltig e-postadress som avsändare. "
|
155 |
+
|
156 |
+
#: ../wpbe.php:276
|
157 |
+
msgid "Template is empty"
|
158 |
+
msgstr "Mallen är tom"
|
159 |
+
|
160 |
+
#: ../wpbe.php:280
|
161 |
+
msgid "No content tag found. The %content% tag is required in your template"
|
162 |
+
msgstr "Hittade ingen content-tagg. Taggen %content% är nödvändig i din mall"
|
163 |
+
|
164 |
+
#: ../wpbe.php:289
|
165 |
+
msgid "Plain-text template is empty"
|
166 |
+
msgstr "Mallen för vanlig text är tom"
|
167 |
+
|
168 |
+
#: ../wpbe.php:293
|
169 |
+
msgid ""
|
170 |
+
"No content tag found. The %content% tag is required in your plain-text "
|
171 |
+
"template"
|
172 |
+
msgstr ""
|
173 |
+
"Hittade ingen content-tagg. Taggen %content% är nödvändig i mallen för "
|
174 |
+
"vanlig text"
|
175 |
+
|
176 |
+
#: ../wpbe.php:317
|
177 |
+
msgid "Please enter an email"
|
178 |
+
msgstr "Vänligen ange en e-postadress"
|
179 |
+
|
180 |
+
#: ../wpbe.php:320
|
181 |
+
msgid "Please enter a valid email"
|
182 |
+
msgstr "Vänligen ange en giltig e-postadress"
|
183 |
+
|
184 |
+
#: ../wpbe.php:323
|
185 |
+
msgid "Hey !"
|
186 |
+
msgstr "Hallå där!"
|
187 |
+
|
188 |
+
#: ../wpbe.php:325
|
189 |
+
msgid "This is a sample email to test your HTML template."
|
190 |
+
msgstr "Det här är ett exempel-mail för att testa din mall"
|
191 |
+
|
192 |
+
#: ../wpbe.php:327
|
193 |
+
msgid ""
|
194 |
+
"If you're not skilled in HTML/CSS email coding, I strongly recommend to "
|
195 |
+
"leave the default template as it is. It has been tested on various and "
|
196 |
+
"popular email clients like Gmail, Yahoo Mail, Hotmail/Live, Thunderbird, "
|
197 |
+
"Apple Mail, Outlook, and many more."
|
198 |
+
msgstr ""
|
199 |
+
"Om du inte är erfaren inom HTML och CSS så rekommenderar vi starkt att du "
|
200 |
+
"lämnar standard-mallen som den är. Den är testad mot en rad olika e-"
|
201 |
+
"postklienter så som GMail, Yahoo Mail, Hotmail/Live, Thunderbird, Apple "
|
202 |
+
"Mail, Outlook och många fler. "
|
203 |
+
|
204 |
+
#: ../wpbe.php:329
|
205 |
+
msgid ""
|
206 |
+
"If you have any problems or any suggestions to improve this plugin, please "
|
207 |
+
"let me know."
|
208 |
+
msgstr ""
|
209 |
+
"Om du har några problem eller förslag på hur vi kan göra detta tillägget "
|
210 |
+
"bättre, hör gärna av dig till oss. "
|
211 |
+
|
212 |
+
#: ../wpbe.php:333
|
213 |
+
msgid "Email template preview"
|
214 |
+
msgstr "Förhandsgranskning för e-postmall"
|
215 |
+
|
216 |
+
#: ../wpbe.php:334
|
217 |
+
#, php-format
|
218 |
+
msgid "An email preview has been successfully sent to %s"
|
219 |
+
msgstr "En förhandsgranskning skickades till %s"
|
220 |
+
|
221 |
+
#: ../wpbe.php:336
|
222 |
+
msgid ""
|
223 |
+
"An error occured while sending email. Please check your server configuration."
|
224 |
+
msgstr ""
|
225 |
+
"Ett fel uppstod när mailet skickades. Vänligen kontrollera din "
|
226 |
+
"serverkonfiguration. "
|
227 |
+
|
228 |
+
#: ../wpbe.php:503
|
229 |
+
msgid "Some dynamic tags can be included in your email template :"
|
230 |
+
msgstr "Du kan använda några olika dynamiska taggar i dina mallar:"
|
231 |
+
|
232 |
+
#: ../wpbe.php:505
|
233 |
+
msgid "<strong>%content%</strong> : will be replaced with the message content."
|
234 |
+
msgstr ""
|
235 |
+
"<strong>%content%</strong> : Kommer att ersättas av meddelandets innehåll. "
|
236 |
+
|
237 |
+
#: ../wpbe.php:506
|
238 |
+
msgid ""
|
239 |
+
"NOTE: The content tag is <strong>required</strong>, WP Better Emails will be "
|
240 |
+
"automatically desactivated if no content tag is found."
|
241 |
+
msgstr ""
|
242 |
+
"OBS: Innehålls-taggen är <strong>nödvändig</strong>. WP Better Emails kommer "
|
243 |
+
"att avaktiveras ifall taggen inte kan hittas i din mall."
|
244 |
+
|
245 |
+
#: ../wpbe.php:507
|
246 |
+
msgid "<strong>%blog_url%</strong> : will be replaced with your blog URL."
|
247 |
+
msgstr ""
|
248 |
+
"<strong>%blog_url%</strong> : Kommer att ersättas med en länk till din "
|
249 |
+
"blogg. "
|
250 |
+
|
251 |
+
#: ../wpbe.php:508
|
252 |
+
msgid "<strong>%home_url%</strong> : will be replaced with your home URL."
|
253 |
+
msgstr ""
|
254 |
+
"<strong>%home_url%</strong> : Kommer att ersättas med en länk till din "
|
255 |
+
"förstasida. "
|
256 |
+
|
257 |
+
#: ../wpbe.php:509
|
258 |
+
msgid "<strong>%blog_name%</strong> : will be replaced with your blog name."
|
259 |
+
msgstr ""
|
260 |
+
"<strong>%blog_name%</strong> : Kommer att ersättas med namnet på din blogg."
|
261 |
+
|
262 |
+
#: ../wpbe.php:510
|
263 |
+
msgid ""
|
264 |
+
"<strong>%blog_description%</strong> : will be replaced with your blog "
|
265 |
+
"description."
|
266 |
+
msgstr ""
|
267 |
+
"<strong>%blog_description%</strong> : Kommer att ersättas av beskrivningen "
|
268 |
+
"av bloggen."
|
269 |
+
|
270 |
+
#: ../wpbe.php:511
|
271 |
+
msgid "<strong>%admin_email%</strong> : will be replaced with admin email."
|
272 |
+
msgstr ""
|
273 |
+
"<strong>%admin_email%</strong> : Kommer att ersättas av bloggens e-"
|
274 |
+
"postadress."
|
275 |
+
|
276 |
+
#: ../wpbe.php:512
|
277 |
+
msgid ""
|
278 |
+
"<strong>%date%</strong> : will be replaced with current date, as formatted "
|
279 |
+
"in <a href=\"options-general.php\">general options</a>."
|
280 |
+
msgstr ""
|
281 |
+
"<strong>%date%</strong> : Kommer att ersättas av nuvarande datum, formaterat "
|
282 |
+
"efter dina <a href=\"options-general.php\">allmänna inställningar</a>."
|
283 |
+
|
284 |
+
#: ../wpbe.php:513
|
285 |
+
msgid ""
|
286 |
+
"<strong>%time%</strong> : will be replaced with current time, as formatted "
|
287 |
+
"in <a href=\"options-general.php\">general options</a>."
|
288 |
+
msgstr ""
|
289 |
+
"<strong>%time%</strong> : Kommer att ersättas av nuvarande klockslag, "
|
290 |
+
"formaterat efter dina <a href=\"options-general.php\">allmänna "
|
291 |
+
"inställningar</a>."
|
292 |
+
|
293 |
+
#: ../templates/template-1.php:38
|
294 |
+
msgid "Date"
|
295 |
+
msgstr "Datum"
|
296 |
+
|
297 |
+
#: ../templates/template-1.php:38
|
298 |
+
msgid "Email sent"
|
299 |
+
msgstr "Mailet skickades"
|
300 |
+
|
301 |
+
#: ../templates/template-1.php:39
|
302 |
+
msgid "Contact"
|
303 |
+
msgstr "Kontakta"
|
304 |
+
|
305 |
+
#: ../templates/template-1.php:39
|
306 |
+
msgid "For any requests, please contact"
|
307 |
+
msgstr "För frågor och funderingar, vänligen kontakta "
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=7Q49VJQNRCQ8E&lc=FR&item_name=ArtyShow&item_number=wp%2dbetter%2demails¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
3 |
Tags: email, emails, html emails, templates, notification, wp_mail, wpmu, multisite
|
4 |
Requires at least: 2.8
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 0.2.6.
|
7 |
|
8 |
Adds a customizable good looking HTML template to all WP default plain/text emails and lets you set
|
9 |
a custom sender name and email address.
|
@@ -48,7 +48,8 @@ WP Better Emails is currently available in :
|
|
48 |
* Russian - Vsevolod Bauer
|
49 |
* Farsi
|
50 |
* Indonesian
|
51 |
-
* Spanish - [Kaled Kelevra](http://howly-mowly.com/ "Kaled Kelevra")
|
|
|
52 |
|
53 |
I'm looking for translators to extend to other languages. If you have translated the plugin in your language or want to,
|
54 |
please let me know : wpbetteremails [ at ] iamnico.la
|
@@ -71,7 +72,7 @@ WP Better Emails is also available on [GitHub](https://github.com/nlemoine/WP-Be
|
|
71 |
|
72 |
== Upgrade Notice ==
|
73 |
|
74 |
-
If you're using the default template provided with WP Better Emails, you should delete the plugin and reinstall it to make sure you have the lastest template improvements.
|
75 |
|
76 |
If you have customized the HTML template and want to keep it, just update.
|
77 |
|
@@ -101,7 +102,7 @@ WP Better Emails wraps every "plain/text" email sent with the Wordpress function
|
|
101 |
|
102 |
= I totally messed up with the template, how can I get the original one ? =
|
103 |
|
104 |
-
Just delete and reinstall the plugin from the admin panel.
|
105 |
|
106 |
= How can I add my own tags ? =
|
107 |
|
@@ -129,6 +130,11 @@ You can place this function in your functions.php theme file or in a plugin.
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
|
|
|
|
132 |
= 0.2.6.4 =
|
133 |
|
134 |
* Fixed live preview feature
|
@@ -172,7 +178,7 @@ You can place this function in your functions.php theme file or in a plugin.
|
|
172 |
* Fixed 3.3 beta compatilibity
|
173 |
* Fixed 3.3 help panel trigger
|
174 |
|
175 |
-
= 0.2.2 =
|
176 |
|
177 |
* Added 3.3 compatibility
|
178 |
* Turkish translation
|
@@ -187,7 +193,7 @@ You can place this function in your functions.php theme file or in a plugin.
|
|
187 |
* HTML editor with CodeMirror as a TinyMCE plugin
|
188 |
* Live preview (> WP 3.1)
|
189 |
* Include filter to add your own tag replacements
|
190 |
-
* Help moved to contextual help
|
191 |
* Translations for german, hebrew
|
192 |
* Improved template email clients support
|
193 |
|
2 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=7Q49VJQNRCQ8E&lc=FR&item_name=ArtyShow&item_number=wp%2dbetter%2demails¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
3 |
Tags: email, emails, html emails, templates, notification, wp_mail, wpmu, multisite
|
4 |
Requires at least: 2.8
|
5 |
+
Tested up to: 3.9
|
6 |
+
Stable tag: 0.2.6.5
|
7 |
|
8 |
Adds a customizable good looking HTML template to all WP default plain/text emails and lets you set
|
9 |
a custom sender name and email address.
|
48 |
* Russian - Vsevolod Bauer
|
49 |
* Farsi
|
50 |
* Indonesian
|
51 |
+
* Spanish - [Kaled Kelevra](http://howly-mowly.com/ "Kaled Kelevra")
|
52 |
+
* Swedish - [Andréas Lundgren](http://adevade.com/ "Andréas Lundgren")
|
53 |
|
54 |
I'm looking for translators to extend to other languages. If you have translated the plugin in your language or want to,
|
55 |
please let me know : wpbetteremails [ at ] iamnico.la
|
72 |
|
73 |
== Upgrade Notice ==
|
74 |
|
75 |
+
If you're using the default template provided with WP Better Emails, you should delete the plugin and reinstall it to make sure you have the lastest template improvements.
|
76 |
|
77 |
If you have customized the HTML template and want to keep it, just update.
|
78 |
|
102 |
|
103 |
= I totally messed up with the template, how can I get the original one ? =
|
104 |
|
105 |
+
Just delete and reinstall the plugin from the admin panel.
|
106 |
|
107 |
= How can I add my own tags ? =
|
108 |
|
130 |
|
131 |
== Changelog ==
|
132 |
|
133 |
+
= 0.2.6.5 =
|
134 |
+
|
135 |
+
* Fixed editor (WordPress 3.9 compatibility issue)
|
136 |
+
* New translation : Swedish
|
137 |
+
|
138 |
= 0.2.6.4 =
|
139 |
|
140 |
* Fixed live preview feature
|
178 |
* Fixed 3.3 beta compatilibity
|
179 |
* Fixed 3.3 help panel trigger
|
180 |
|
181 |
+
= 0.2.2 =
|
182 |
|
183 |
* Added 3.3 compatibility
|
184 |
* Turkish translation
|
193 |
* HTML editor with CodeMirror as a TinyMCE plugin
|
194 |
* Live preview (> WP 3.1)
|
195 |
* Include filter to add your own tag replacements
|
196 |
+
* Help moved to contextual help
|
197 |
* Translations for german, hebrew
|
198 |
* Improved template email clients support
|
199 |
|
wpbe.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Better Emails
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-better-emails/
|
5 |
Description: Beautify the default text/plain WP mails into fully customizable HTML emails.
|
6 |
-
Version: 0.2.6.
|
7 |
Author: ArtyShow
|
8 |
Author URI: http://wordpress.org/extend/plugins/wp-better-emails/
|
9 |
License: GPLv2
|
@@ -336,6 +336,9 @@ For any requests, please contact %admin_email%';
|
|
336 |
* @return string Template with variables replaced
|
337 |
*/
|
338 |
function template_vars_replacement( $template ) {
|
|
|
|
|
|
|
339 |
$to_replace = array(
|
340 |
'blog_url' => get_option('siteurl'),
|
341 |
'home_url' => get_option('home'),
|
@@ -351,6 +354,7 @@ For any requests, please contact %admin_email%';
|
|
351 |
$template = str_replace( '%' . $tag . '%', $var, $template );
|
352 |
}
|
353 |
|
|
|
354 |
return $template;
|
355 |
}
|
356 |
|
@@ -450,7 +454,7 @@ For any requests, please contact %admin_email%';
|
|
450 |
|
451 |
// Replace variables in email
|
452 |
$phpmailer->AltBody = apply_filters( 'wpbe_plaintext_body', $this->template_vars_replacement( $phpmailer->AltBody ) );
|
453 |
-
|
454 |
if ( $this->send_as_html ) {
|
455 |
/** HTML ********************************************************/
|
456 |
// Clean < and > around text links in WP 3.1
|
@@ -465,6 +469,7 @@ For any requests, please contact %admin_email%';
|
|
465 |
// Replace variables in email
|
466 |
$phpmailer->Body = apply_filters( 'wpbe_html_body', $this->template_vars_replacement( $phpmailer->Body ) );
|
467 |
}
|
|
|
468 |
}
|
469 |
|
470 |
/**
|
@@ -611,12 +616,13 @@ For any requests, please contact %admin_email%';
|
|
611 |
} else {
|
612 |
// WP >= 3.3
|
613 |
$settings = array(
|
614 |
-
'wpautop'
|
615 |
-
'editor_class'
|
616 |
-
'quicktags'
|
|
|
617 |
);
|
618 |
|
619 |
-
wp_editor( $this->options['template'], '
|
620 |
}
|
621 |
}
|
622 |
|
3 |
Plugin Name: WP Better Emails
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-better-emails/
|
5 |
Description: Beautify the default text/plain WP mails into fully customizable HTML emails.
|
6 |
+
Version: 0.2.6.5
|
7 |
Author: ArtyShow
|
8 |
Author URI: http://wordpress.org/extend/plugins/wp-better-emails/
|
9 |
License: GPLv2
|
336 |
* @return string Template with variables replaced
|
337 |
*/
|
338 |
function template_vars_replacement( $template ) {
|
339 |
+
|
340 |
+
|
341 |
+
|
342 |
$to_replace = array(
|
343 |
'blog_url' => get_option('siteurl'),
|
344 |
'home_url' => get_option('home'),
|
354 |
$template = str_replace( '%' . $tag . '%', $var, $template );
|
355 |
}
|
356 |
|
357 |
+
|
358 |
return $template;
|
359 |
}
|
360 |
|
454 |
|
455 |
// Replace variables in email
|
456 |
$phpmailer->AltBody = apply_filters( 'wpbe_plaintext_body', $this->template_vars_replacement( $phpmailer->AltBody ) );
|
457 |
+
|
458 |
if ( $this->send_as_html ) {
|
459 |
/** HTML ********************************************************/
|
460 |
// Clean < and > around text links in WP 3.1
|
469 |
// Replace variables in email
|
470 |
$phpmailer->Body = apply_filters( 'wpbe_html_body', $this->template_vars_replacement( $phpmailer->Body ) );
|
471 |
}
|
472 |
+
|
473 |
}
|
474 |
|
475 |
/**
|
616 |
} else {
|
617 |
// WP >= 3.3
|
618 |
$settings = array(
|
619 |
+
'wpautop' => false,
|
620 |
+
'editor_class' => 'wpbe_template',
|
621 |
+
'quicktags' => false,
|
622 |
+
'textarea_name' => 'wpbe_options[template]'
|
623 |
);
|
624 |
|
625 |
+
wp_editor( $this->options['template'], 'wpbe_template', $settings );
|
626 |
}
|
627 |
}
|
628 |
|