Version Description
Code placeholders for tracking views/downloaders - available only in premium versions. Updated languages.
Download this release
Release Info
Developer | danlester |
Plugin | PDF Embedder |
Version | 2.4.1 |
Comparing to | |
See all releases |
Code changes from version 2.4 to 2.4.1
- core/core_pdf_embedder.php +10 -1
- css/pdfemb-admin-other.css +10 -0
- lang/deploy_make_lang.sh +0 -11
- lang/pdf-embedder.pot +86 -54
- pdf_embedder.php +29 -3
- readme.txt +19 -12
core/core_pdf_embedder.php
CHANGED
@@ -507,8 +507,17 @@ class core_pdf_embedder {
|
|
507 |
add_filter( 'media_send_to_editor', array($this, 'pdfemb_media_send_to_editor'), 20, 3 );
|
508 |
|
509 |
register_setting( $this->get_options_pagename(), $this->get_options_name(), Array($this, 'pdfemb_options_validate') );
|
|
|
|
|
|
|
|
|
510 |
}
|
511 |
-
|
|
|
|
|
|
|
|
|
|
|
512 |
// Override in Premium
|
513 |
public function pdfemb_init() {
|
514 |
}
|
507 |
add_filter( 'media_send_to_editor', array($this, 'pdfemb_media_send_to_editor'), 20, 3 );
|
508 |
|
509 |
register_setting( $this->get_options_pagename(), $this->get_options_name(), Array($this, 'pdfemb_options_validate') );
|
510 |
+
|
511 |
+
add_filter( 'attachment_fields_to_edit', array($this, 'pdfemb_attachment_fields_to_edit'), 10, 2 );
|
512 |
+
|
513 |
+
wp_enqueue_style( 'pdfemb_admin_other_css', $this->my_plugin_url().'css/pdfemb-admin-other.css' );
|
514 |
}
|
515 |
+
|
516 |
+
// Override in Basic and Commercial
|
517 |
+
public function pdfemb_attachment_fields_to_edit($form_fields, $post) {
|
518 |
+
return $form_fields;
|
519 |
+
}
|
520 |
+
|
521 |
// Override in Premium
|
522 |
public function pdfemb_init() {
|
523 |
}
|
css/pdfemb-admin-other.css
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
tr.compat-field-pdfemb-upgrade td.field {
|
3 |
+
padding-top: 8px;
|
4 |
+
margin: 0px 1px;
|
5 |
+
}
|
6 |
+
|
7 |
+
tr.compat-field-pdfemb-downloads td.field, tr.compat-field-pdfemb-views td.field {
|
8 |
+
padding-top: 8px;
|
9 |
+
margin: 0px 1px;
|
10 |
+
}
|
lang/deploy_make_lang.sh
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
|
3 |
-
cd /Users/dan/git/PDFEmbedder/
|
4 |
-
|
5 |
-
# php ../i18n-tools/add-textdomain.php -i pdf-embedder basic_pdf_embedder.php
|
6 |
-
# php ../i18n-tools/add-textdomain.php -i pdf-embedder premium_mobile_pdf_embedder.php
|
7 |
-
# php ../i18n-tools/add-textdomain.php -i pdf-embedder core/commercial_pdf_embedder.php
|
8 |
-
# php ../i18n-tools/add-textdomain.php -i pdf-embedder core/core_pdf_embedder.php
|
9 |
-
|
10 |
-
php ../i18n-tools/makepot.php wp-plugin . lang/orig_pdf-embedder.pot
|
11 |
-
cat lang/orig_pdf-embedder.pot lang/pot_extra.pot > lang/pdf-embedder.pot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lang/pdf-embedder.pot
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/PDFEmbedder\n"
|
7 |
-
"POT-Creation-Date: 2015-11-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -12,26 +12,38 @@ msgstr ""
|
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
-
#: basic_pdf_embedder.php:
|
16 |
msgid "Download Button"
|
17 |
msgstr ""
|
18 |
|
19 |
-
#: basic_pdf_embedder.php:
|
20 |
msgid "Check to provide PDF download button on toolbar - only available in premium versions"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: basic_pdf_embedder.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
msgid "Mobile-friendly embedding using PDF Embedder Premium"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: basic_pdf_embedder.php:
|
28 |
msgid ""
|
29 |
"This free version of the plugin should work on most mobile browsers, but it will be cumbersome for users with small screens - it is difficult to position\n"
|
30 |
" the document entirely within the screen, and your users' fingers may catch the entire browser page when\n"
|
31 |
" they're trying only to move about the document..."
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: basic_pdf_embedder.php:
|
35 |
msgid ""
|
36 |
"Our <b>PDF Embedder Premium</b> plugin solves this problem with an intelligent 'full screen' mode.\n"
|
37 |
" When the document is smaller than a certain width, the document displays only as a 'thumbnail' with a large\n"
|
@@ -42,10 +54,18 @@ msgid ""
|
|
42 |
" the web page by mistake. Click Exit to return to the regular web page."
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: basic_pdf_embedder.php:
|
46 |
msgid "See our website <a href=\"%s\">wp-pdf.com</a> for more details and purchase options."
|
47 |
msgstr ""
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
#: core/EDD_SL_Plugin_Updater.php:248
|
50 |
msgid "There is a new version of %1$s available. <a target=\"_blank\" class=\"thickbox\" href=\"%2$s\">View version %3$s details</a>."
|
51 |
msgstr ""
|
@@ -71,97 +91,109 @@ msgid "Check to provide PDF download button in toolbar"
|
|
71 |
msgstr ""
|
72 |
|
73 |
#: core/commercial_pdf_embedder.php:72
|
|
|
|
|
|
|
|
|
74 |
msgid "Default Mobile Settings"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: core/commercial_pdf_embedder.php:
|
78 |
msgid "When the document is smaller than the width specified below, the document displays only as a 'thumbnail' with a large 'View in Full Screen' button for the user to click to open."
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: core/commercial_pdf_embedder.php:
|
82 |
msgid "Mobile Width"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: core/commercial_pdf_embedder.php:
|
86 |
msgid "Enter an integer number of pixels, or 0 to disable automatic full-screen"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: core/commercial_pdf_embedder.php:
|
90 |
msgid "You should have received a license key when you purchased this premium version of PDF Embedder."
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: core/commercial_pdf_embedder.php:
|
94 |
msgid "Please enter it below to enable automatic updates, or <a href=\"%s\">email us</a> if you do not have one."
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: core/commercial_pdf_embedder.php:
|
98 |
msgid "License Key"
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: core/commercial_pdf_embedder.php:
|
102 |
msgid "Current License"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: core/commercial_pdf_embedder.php:
|
106 |
msgid "Status"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: core/commercial_pdf_embedder.php:
|
110 |
msgid "Last Checked"
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: core/commercial_pdf_embedder.php:
|
114 |
msgid "License Expires"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: core/commercial_pdf_embedder.php:
|
118 |
msgid "To renew your license, please <a href=\"%s\" target=\"_blank\">click here</a>."
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: core/commercial_pdf_embedder.php:
|
122 |
msgid "You will receive a 50% discount if you renew before your license expires."
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: core/commercial_pdf_embedder.php:
|
126 |
msgid "Mobile width should be an integer number of pixels, or 0 to turn off"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: core/commercial_pdf_embedder.php:
|
130 |
msgid "License key is too short"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: core/commercial_pdf_embedder.php:
|
134 |
msgid "License key failed to activate"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: core/commercial_pdf_embedder.php:
|
138 |
msgid "License key does not exist in our system at all"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: core/commercial_pdf_embedder.php:
|
142 |
msgid "License key entered is for the wrong product"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: core/commercial_pdf_embedder.php:
|
146 |
msgid "License key has expired"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: core/commercial_pdf_embedder.php:
|
150 |
msgid "License key is not permitted for this website"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: core/commercial_pdf_embedder.php:
|
154 |
msgid "License key is not active for this website"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: core/commercial_pdf_embedder.php:
|
158 |
msgid "License key has been disabled"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: core/commercial_pdf_embedder.php:
|
162 |
msgid "License key was not provided"
|
163 |
msgstr ""
|
164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
#: core/core_pdf_embedder.php:37
|
166 |
msgid "Loading..."
|
167 |
msgstr ""
|
@@ -266,110 +298,110 @@ msgstr ""
|
|
266 |
msgid "Save Changes"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: core/core_pdf_embedder.php:
|
270 |
msgid "Default Viewer Settings"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: core/core_pdf_embedder.php:
|
274 |
msgid "Width"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: core/core_pdf_embedder.php:
|
278 |
msgid "Height"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: core/core_pdf_embedder.php:
|
282 |
msgid "Enter <b>max</b> or an integer number of pixels"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: core/core_pdf_embedder.php:
|
286 |
msgid "Toolbar Location"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: core/core_pdf_embedder.php:
|
290 |
msgid "Top"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: core/core_pdf_embedder.php:
|
294 |
msgid "Bottom"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: core/core_pdf_embedder.php:
|
298 |
msgid "Both"
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: core/core_pdf_embedder.php:
|
302 |
msgid "Toolbar Hover"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: core/core_pdf_embedder.php:
|
306 |
msgid "Toolbar appears only on hover over document"
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: core/core_pdf_embedder.php:
|
310 |
msgid "Toolbar always visible"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: core/core_pdf_embedder.php:
|
314 |
msgid "You can override these defaults for specific embeds by modifying the shortcodes - see <a href=\"%s\" target=\"_blank\">instructions</a>."
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: core/core_pdf_embedder.php:
|
318 |
msgid "Protect your PDFs using PDF Embedder Secure"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: core/core_pdf_embedder.php:
|
322 |
msgid ""
|
323 |
"Our <b>PDF Embedder Premium Secure</b> plugin provides the same simple but elegant viewer for your website visitors, with the added protection that\n"
|
324 |
" it is difficult for users to download or print the original PDF document."
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: core/core_pdf_embedder.php:
|
328 |
msgid "This means that your PDF is unlikely to be shared outside your site where you have no control over who views, prints, or shares it."
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: core/core_pdf_embedder.php:
|
332 |
msgid "Width must be \"max\" or an integer (number of pixels)"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: core/core_pdf_embedder.php:
|
336 |
msgid "Height must be \"max\" or an integer (number of pixels)"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: core/core_pdf_embedder.php:
|
340 |
msgid "Unspecified error"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: core/core_pdf_embedder.php:
|
344 |
msgid "Settings saved"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: core/core_pdf_embedder.php:
|
348 |
msgid "Settings"
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: premium_secure_pdf_embedder.php:
|
352 |
msgid "Secure PDFs"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: premium_secure_pdf_embedder.php:
|
356 |
msgid "Send PDF media uploads to 'securepdfs' folder"
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: premium_secure_pdf_embedder.php:
|
360 |
msgid ""
|
361 |
"If 'Secure PDFs' is checked above, your PDF uploads will be 'secure' by default.\n"
|
362 |
" That is, they should be uploaded to a 'securepdfs' sub-folder of your uploads area. These files should not be accessible directly,\n"
|
363 |
" and the plugin provides a backdoor method for the embedded viewer to obtain the file contents."
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: premium_secure_pdf_embedder.php:
|
367 |
msgid ""
|
368 |
"This means that your PDF is unlikely to be shared outside your site where you have no control over who views, prints, or shares it.\n"
|
369 |
" Please note that it is still always possible for a determined user to obtain the original file. Sensitive information should never be presented to viewers in any form."
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: premium_secure_pdf_embedder.php:
|
373 |
msgid "See <a href=\"http://wp-pdf.com/premium-instructions/?utm_source=PDF%20Settings%20Secure&utm_medium=premium&utm_campaign=Premium\" target=\"_blank\">Instructions</a> for more details."
|
374 |
msgstr ""
|
375 |
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/PDFEmbedder\n"
|
7 |
+
"POT-Creation-Date: 2015-11-24 15:40:57+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
+
#: basic_pdf_embedder.php:76 core/commercial_pdf_embedder.php:60
|
16 |
msgid "Download Button"
|
17 |
msgstr ""
|
18 |
|
19 |
+
#: basic_pdf_embedder.php:78
|
20 |
msgid "Check to provide PDF download button on toolbar - only available in premium versions"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: basic_pdf_embedder.php:84 core/commercial_pdf_embedder.php:69
|
24 |
+
msgid "Track Views/Downloads"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: basic_pdf_embedder.php:86
|
28 |
+
msgid "Check to count number of views and downloads - only available in premium versions"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: basic_pdf_embedder.php:91
|
32 |
+
msgid "Find out more about <a href=\"%s\" target=\"_blank\">Premium Versions of the plugin on our website</a>."
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: basic_pdf_embedder.php:101
|
36 |
msgid "Mobile-friendly embedding using PDF Embedder Premium"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: basic_pdf_embedder.php:102
|
40 |
msgid ""
|
41 |
"This free version of the plugin should work on most mobile browsers, but it will be cumbersome for users with small screens - it is difficult to position\n"
|
42 |
" the document entirely within the screen, and your users' fingers may catch the entire browser page when\n"
|
43 |
" they're trying only to move about the document..."
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: basic_pdf_embedder.php:106
|
47 |
msgid ""
|
48 |
"Our <b>PDF Embedder Premium</b> plugin solves this problem with an intelligent 'full screen' mode.\n"
|
49 |
" When the document is smaller than a certain width, the document displays only as a 'thumbnail' with a large\n"
|
54 |
" the web page by mistake. Click Exit to return to the regular web page."
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: basic_pdf_embedder.php:115 core/core_pdf_embedder.php:339
|
58 |
msgid "See our website <a href=\"%s\">wp-pdf.com</a> for more details and purchase options."
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: basic_pdf_embedder.php:160
|
62 |
+
msgid "Track downloads and views with <a href=\"%s\" target=\"_blank\">PDF Embedder Premium</a>"
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: basic_pdf_embedder.php:162
|
66 |
+
msgid "Downloads/Views"
|
67 |
+
msgstr ""
|
68 |
+
|
69 |
#: core/EDD_SL_Plugin_Updater.php:248
|
70 |
msgid "There is a new version of %1$s available. <a target=\"_blank\" class=\"thickbox\" href=\"%2$s\">View version %3$s details</a>."
|
71 |
msgstr ""
|
91 |
msgstr ""
|
92 |
|
93 |
#: core/commercial_pdf_embedder.php:72
|
94 |
+
msgid "Count number of views and downloads (figures will be shown in <a href=\"%s\">Media Library</a>)"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: core/commercial_pdf_embedder.php:82
|
98 |
msgid "Default Mobile Settings"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: core/commercial_pdf_embedder.php:84
|
102 |
msgid "When the document is smaller than the width specified below, the document displays only as a 'thumbnail' with a large 'View in Full Screen' button for the user to click to open."
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: core/commercial_pdf_embedder.php:86
|
106 |
msgid "Mobile Width"
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: core/commercial_pdf_embedder.php:90
|
110 |
msgid "Enter an integer number of pixels, or 0 to disable automatic full-screen"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: core/commercial_pdf_embedder.php:100
|
114 |
msgid "You should have received a license key when you purchased this premium version of PDF Embedder."
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: core/commercial_pdf_embedder.php:101
|
118 |
msgid "Please enter it below to enable automatic updates, or <a href=\"%s\">email us</a> if you do not have one."
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: core/commercial_pdf_embedder.php:103
|
122 |
msgid "License Key"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: core/commercial_pdf_embedder.php:116
|
126 |
msgid "Current License"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: core/commercial_pdf_embedder.php:119
|
130 |
msgid "Status"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: core/commercial_pdf_embedder.php:123
|
134 |
msgid "Last Checked"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: core/commercial_pdf_embedder.php:131
|
138 |
msgid "License Expires"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: core/commercial_pdf_embedder.php:143
|
142 |
msgid "To renew your license, please <a href=\"%s\" target=\"_blank\">click here</a>."
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: core/commercial_pdf_embedder.php:146
|
146 |
msgid "You will receive a 50% discount if you renew before your license expires."
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: core/commercial_pdf_embedder.php:269
|
150 |
msgid "Mobile width should be an integer number of pixels, or 0 to turn off"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: core/commercial_pdf_embedder.php:270
|
154 |
msgid "License key is too short"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: core/commercial_pdf_embedder.php:272
|
158 |
msgid "License key failed to activate"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: core/commercial_pdf_embedder.php:273
|
162 |
msgid "License key does not exist in our system at all"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: core/commercial_pdf_embedder.php:274
|
166 |
msgid "License key entered is for the wrong product"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: core/commercial_pdf_embedder.php:275
|
170 |
msgid "License key has expired"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: core/commercial_pdf_embedder.php:276
|
174 |
msgid "License key is not permitted for this website"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: core/commercial_pdf_embedder.php:277
|
178 |
msgid "License key is not active for this website"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: core/commercial_pdf_embedder.php:278
|
182 |
msgid "License key has been disabled"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: core/commercial_pdf_embedder.php:279
|
186 |
msgid "License key was not provided"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: core/commercial_pdf_embedder.php:318
|
190 |
+
msgid "Downloads"
|
191 |
+
msgstr ""
|
192 |
+
|
193 |
+
#: core/commercial_pdf_embedder.php:322
|
194 |
+
msgid "Views"
|
195 |
+
msgstr ""
|
196 |
+
|
197 |
#: core/core_pdf_embedder.php:37
|
198 |
msgid "Loading..."
|
199 |
msgstr ""
|
298 |
msgid "Save Changes"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: core/core_pdf_embedder.php:270
|
302 |
msgid "Default Viewer Settings"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: core/core_pdf_embedder.php:272
|
306 |
msgid "Width"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: core/core_pdf_embedder.php:276
|
310 |
msgid "Height"
|
311 |
msgstr ""
|
312 |
|
313 |
+
#: core/core_pdf_embedder.php:280
|
314 |
msgid "Enter <b>max</b> or an integer number of pixels"
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: core/core_pdf_embedder.php:284
|
318 |
msgid "Toolbar Location"
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: core/core_pdf_embedder.php:286
|
322 |
msgid "Top"
|
323 |
msgstr ""
|
324 |
|
325 |
+
#: core/core_pdf_embedder.php:287
|
326 |
msgid "Bottom"
|
327 |
msgstr ""
|
328 |
|
329 |
+
#: core/core_pdf_embedder.php:288
|
330 |
msgid "Both"
|
331 |
msgstr ""
|
332 |
|
333 |
+
#: core/core_pdf_embedder.php:293
|
334 |
msgid "Toolbar Hover"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: core/core_pdf_embedder.php:296
|
338 |
msgid "Toolbar appears only on hover over document"
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: core/core_pdf_embedder.php:301
|
342 |
msgid "Toolbar always visible"
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: core/core_pdf_embedder.php:313
|
346 |
msgid "You can override these defaults for specific embeds by modifying the shortcodes - see <a href=\"%s\" target=\"_blank\">instructions</a>."
|
347 |
msgstr ""
|
348 |
|
349 |
+
#: core/core_pdf_embedder.php:333
|
350 |
msgid "Protect your PDFs using PDF Embedder Secure"
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: core/core_pdf_embedder.php:334
|
354 |
msgid ""
|
355 |
"Our <b>PDF Embedder Premium Secure</b> plugin provides the same simple but elegant viewer for your website visitors, with the added protection that\n"
|
356 |
" it is difficult for users to download or print the original PDF document."
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: core/core_pdf_embedder.php:337
|
360 |
msgid "This means that your PDF is unlikely to be shared outside your site where you have no control over who views, prints, or shares it."
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: core/core_pdf_embedder.php:385
|
364 |
msgid "Width must be \"max\" or an integer (number of pixels)"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: core/core_pdf_embedder.php:386
|
368 |
msgid "Height must be \"max\" or an integer (number of pixels)"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: core/core_pdf_embedder.php:392
|
372 |
msgid "Unspecified error"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: core/core_pdf_embedder.php:433
|
376 |
msgid "Settings saved"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: core/core_pdf_embedder.php:529
|
380 |
msgid "Settings"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: premium_secure_pdf_embedder.php:153 premium_secure_pdf_embedder.php:155
|
384 |
msgid "Secure PDFs"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: premium_secure_pdf_embedder.php:158
|
388 |
msgid "Send PDF media uploads to 'securepdfs' folder"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: premium_secure_pdf_embedder.php:165
|
392 |
msgid ""
|
393 |
"If 'Secure PDFs' is checked above, your PDF uploads will be 'secure' by default.\n"
|
394 |
" That is, they should be uploaded to a 'securepdfs' sub-folder of your uploads area. These files should not be accessible directly,\n"
|
395 |
" and the plugin provides a backdoor method for the embedded viewer to obtain the file contents."
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: premium_secure_pdf_embedder.php:169
|
399 |
msgid ""
|
400 |
"This means that your PDF is unlikely to be shared outside your site where you have no control over who views, prints, or shares it.\n"
|
401 |
" Please note that it is still always possible for a determined user to obtain the original file. Sensitive information should never be presented to viewers in any form."
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: premium_secure_pdf_embedder.php:172
|
405 |
msgid "See <a href=\"http://wp-pdf.com/premium-instructions/?utm_source=PDF%20Settings%20Secure&utm_medium=premium&utm_campaign=Premium\" target=\"_blank\">Instructions</a> for more details."
|
406 |
msgstr ""
|
407 |
|
pdf_embedder.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: PDF Embedder
|
5 |
* Plugin URI: http://wp-pdf.com/
|
6 |
* Description: Embed PDFs straight into your posts and pages, with flexible width and height. No third-party services required.
|
7 |
-
* Version: 2.4
|
8 |
* Author: Dan Lester
|
9 |
* Author URI: http://wp-pdf.com/
|
10 |
* License: GPL3
|
@@ -15,7 +15,7 @@ require_once( plugin_dir_path(__FILE__).'/core/core_pdf_embedder.php' );
|
|
15 |
|
16 |
class pdfemb_basic_pdf_embedder extends core_pdf_embedder {
|
17 |
|
18 |
-
protected $PLUGIN_VERSION = '2.4';
|
19 |
|
20 |
protected function useminified() {
|
21 |
/* using-minified */ return true;
|
@@ -77,7 +77,21 @@ class pdfemb_basic_pdf_embedder extends core_pdf_embedder {
|
|
77 |
<span>
|
78 |
<label for="pdfemb_download" class="checkbox plain"><?php esc_html_e('Check to provide PDF download button on toolbar - only available in premium versions', 'pdf-embedder'); ?></label>
|
79 |
</span>
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
}
|
82 |
|
83 |
protected function pdfemb_mobilesection_text()
|
@@ -114,6 +128,7 @@ class pdfemb_basic_pdf_embedder extends core_pdf_embedder {
|
|
114 |
<li>Download Button</li>
|
115 |
<li>Working Hyperlinks</li>
|
116 |
<li>Jump to page number</li>
|
|
|
117 |
<li>Remove link to wp-pdf.com</li>
|
118 |
<li>Secure - prevent downloads</li>
|
119 |
</ul>
|
@@ -138,6 +153,17 @@ class pdfemb_basic_pdf_embedder extends core_pdf_embedder {
|
|
138 |
Array('poweredby' => get_site_option(self::$poweredby_optionname, false)));
|
139 |
}
|
140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
// AUX
|
142 |
|
143 |
protected function my_plugin_basename() {
|
4 |
* Plugin Name: PDF Embedder
|
5 |
* Plugin URI: http://wp-pdf.com/
|
6 |
* Description: Embed PDFs straight into your posts and pages, with flexible width and height. No third-party services required.
|
7 |
+
* Version: 2.4.1
|
8 |
* Author: Dan Lester
|
9 |
* Author URI: http://wp-pdf.com/
|
10 |
* License: GPL3
|
15 |
|
16 |
class pdfemb_basic_pdf_embedder extends core_pdf_embedder {
|
17 |
|
18 |
+
protected $PLUGIN_VERSION = '2.4.1';
|
19 |
|
20 |
protected function useminified() {
|
21 |
/* using-minified */ return true;
|
77 |
<span>
|
78 |
<label for="pdfemb_download" class="checkbox plain"><?php esc_html_e('Check to provide PDF download button on toolbar - only available in premium versions', 'pdf-embedder'); ?></label>
|
79 |
</span>
|
80 |
+
|
81 |
+
<br class="clear" />
|
82 |
+
<br class="clear" />
|
83 |
+
|
84 |
+
<label for="pdfemb_tracking" class="textinput"><?php esc_html_e('Track Views/Downloads', 'pdf-embedder'); ?></label>
|
85 |
+
<span>
|
86 |
+
<label for="pdfemb_tracking" class="checkbox plain"><?php esc_html_e('Check to count number of views and downloads - only available in premium versions', 'pdf-embedder'); ?></label>
|
87 |
+
</span>
|
88 |
+
|
89 |
+
<br class="clear" />
|
90 |
+
|
91 |
+
<p><?php printf(__('Find out more about <a href="%s" target="_blank">Premium Versions of the plugin on our website</a>.', 'pdf-embedder'),
|
92 |
+
'http://wp-pdf.com/premium/?utm_source=PDF%20Settings%20PremiumFindOut&utm_medium=freemium&utm_campaign=Freemium'); ?></p>
|
93 |
+
|
94 |
+
<?php
|
95 |
}
|
96 |
|
97 |
protected function pdfemb_mobilesection_text()
|
128 |
<li>Download Button</li>
|
129 |
<li>Working Hyperlinks</li>
|
130 |
<li>Jump to page number</li>
|
131 |
+
<li>Track views and downloads</li>
|
132 |
<li>Remove link to wp-pdf.com</li>
|
133 |
<li>Secure - prevent downloads</li>
|
134 |
</ul>
|
153 |
Array('poweredby' => get_site_option(self::$poweredby_optionname, false)));
|
154 |
}
|
155 |
|
156 |
+
public function pdfemb_attachment_fields_to_edit($form_fields, $post) {
|
157 |
+
if ($post->post_mime_type == 'application/pdf') {
|
158 |
+
$form_fields['pdfemb-upgrade'] = array(
|
159 |
+
'input' => 'html',
|
160 |
+
'html' => sprintf(__('Track downloads and views with <a href="%s" target="_blank">PDF Embedder Premium</a>','pdf-embedder'),
|
161 |
+
'http://wp-pdf.com/premium/?utm_source=Media%20Library&utm_medium=freemium&utm_campaign=Freemium'),
|
162 |
+
'label' => __( 'Downloads/Views', 'pdf-embedder' ));
|
163 |
+
}
|
164 |
+
return $form_fields;
|
165 |
+
}
|
166 |
+
|
167 |
// AUX
|
168 |
|
169 |
protected function my_plugin_basename() {
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: danlester
|
|
3 |
Tags: doc, docx, pdf, office, powerpoint, google, document, embed, intranet
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 4.4
|
6 |
-
Stable tag: 2.4
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -15,7 +15,7 @@ Upload PDFs and embed them straight into your site - just like adding images! PD
|
|
15 |
|
16 |
The plugin has a unique method for embedding PDFs, using Javascript only, and _not_ using iframes or third-party services. This gives a lot of flexibility over the appearance of your document.
|
17 |
|
18 |
-
The viewer currently has Next/Prev buttons to page through the document, and zoom buttons.
|
19 |
|
20 |
PDFs are embedded within your existing WordPress pages so we have full control over appearance, and all Javascript and other files are served by your own server
|
21 |
(not by Google or any other third-party who may not be able to guarantee their own reliability).
|
@@ -38,6 +38,18 @@ You can change the default appearance - e.g. width, and toolbar position/appeara
|
|
38 |
|
39 |
To override your site-wide defaults on an individual embed, see the [Plugin Instructions](http://wp-pdf.com/free-instructions/?utm_source=PDF%20Readme%20Instructions&utm_medium=freemium&utm_campaign=Freemium) for information about sizing options plus other ways to customize the shortcodes.
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
= Mobile-friendly embedding using PDF Embedder Premium =
|
42 |
|
43 |
The free version of the plugin should work on most mobile browsers, but it will be cumbersome for users with small screens - it is difficult to position the document entirely within the screen, and your users' fingers may catch the entire browser page when they're trying only to move about the document...
|
@@ -57,16 +69,6 @@ This means that your PDF is unlikely to be shared outside your site where you ha
|
|
57 |
|
58 |
See our website [wp-pdf.com](http://wp-pdf.com/secure/?utm_source=PDF%20Readme%20Secure&utm_medium=freemium&utm_campaign=Freemium) for more details and purchase options.
|
59 |
|
60 |
-
= Extra Premium Features =
|
61 |
-
|
62 |
-
Download button in the toolbar.
|
63 |
-
|
64 |
-
Hyperlinks are fully functional.
|
65 |
-
|
66 |
-
Edit page number to jump straight to page.
|
67 |
-
|
68 |
-
Removes wp-pdf.com attribution from the toolbar.
|
69 |
-
|
70 |
== Screenshots ==
|
71 |
|
72 |
1. Uploaded PDF is displayed within your page/post at the correct size to fit.
|
@@ -151,6 +153,11 @@ the Plugins section of your Wordpress admin
|
|
151 |
|
152 |
== Changelog ==
|
153 |
|
|
|
|
|
|
|
|
|
|
|
154 |
= 2.4 =
|
155 |
|
156 |
Now translation-ready! Your language contributions are welcome.
|
3 |
Tags: doc, docx, pdf, office, powerpoint, google, document, embed, intranet
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 4.4
|
6 |
+
Stable tag: 2.4.1
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
15 |
|
16 |
The plugin has a unique method for embedding PDFs, using Javascript only, and _not_ using iframes or third-party services. This gives a lot of flexibility over the appearance of your document.
|
17 |
|
18 |
+
The free viewer currently has Next/Prev buttons to page through the document, and zoom buttons.
|
19 |
|
20 |
PDFs are embedded within your existing WordPress pages so we have full control over appearance, and all Javascript and other files are served by your own server
|
21 |
(not by Google or any other third-party who may not be able to guarantee their own reliability).
|
38 |
|
39 |
To override your site-wide defaults on an individual embed, see the [Plugin Instructions](http://wp-pdf.com/free-instructions/?utm_source=PDF%20Readme%20Instructions&utm_medium=freemium&utm_campaign=Freemium) for information about sizing options plus other ways to customize the shortcodes.
|
40 |
|
41 |
+
> **Extra Premium Features**
|
42 |
+
>
|
43 |
+
> * Download button in the toolbar.
|
44 |
+
> * Hyperlinks are fully functional.
|
45 |
+
> * Edit page number to jump straight to page.
|
46 |
+
> * Track number of downloads and views.
|
47 |
+
> * Removes wp-pdf.com attribution from the toolbar.
|
48 |
+
> * Mobile-friendly.
|
49 |
+
> * Secure option - difficult to download original PDF.
|
50 |
+
>
|
51 |
+
> See [wp-pdf.com](http://wp-pdf.com/?utm_source=PDF%20Readme%20Box&utm_medium=freemium&utm_campaign=Freemium) for details!
|
52 |
+
|
53 |
= Mobile-friendly embedding using PDF Embedder Premium =
|
54 |
|
55 |
The free version of the plugin should work on most mobile browsers, but it will be cumbersome for users with small screens - it is difficult to position the document entirely within the screen, and your users' fingers may catch the entire browser page when they're trying only to move about the document...
|
69 |
|
70 |
See our website [wp-pdf.com](http://wp-pdf.com/secure/?utm_source=PDF%20Readme%20Secure&utm_medium=freemium&utm_campaign=Freemium) for more details and purchase options.
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
== Screenshots ==
|
73 |
|
74 |
1. Uploaded PDF is displayed within your page/post at the correct size to fit.
|
153 |
|
154 |
== Changelog ==
|
155 |
|
156 |
+
= 2.4.1 =
|
157 |
+
|
158 |
+
Code placeholders for tracking views/downloaders - available only in premium versions.
|
159 |
+
Updated languages.
|
160 |
+
|
161 |
= 2.4 =
|
162 |
|
163 |
Now translation-ready! Your language contributions are welcome.
|