Skip to content

Commit

Permalink
v1.4.0 - translations, screenfull update, compatibility changes, dark…
Browse files Browse the repository at this point in the history
… theme option
  • Loading branch information
antongorodezkiy committed Jan 14, 2019
1 parent 849503e commit 6c43426
Show file tree
Hide file tree
Showing 38 changed files with 2,207 additions and 2,950 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

**Requires at least:** 3.5

**Tested up to:** 4.9.8
**Tested up to:** 5.0.3

**Stable tag:** 1.4.0

Expand Down Expand Up @@ -85,10 +85,11 @@ Plugin allows you to embed normal, big and very big pdf documents to the wordpre

## Changelog ##

## 1.4.0 - 2019-
## 1.4.0 - 2019-01-12
* Code structure cleaning up
* PDF Light Viewer Serverless plugin compatibility
* Export/Import PDF config
* screenfull update

## 1.3.23 - 2018-09-18
* Option to disable lazy loading to prevent issues when using other lazy loading systems (e.g. Jetpack)
Expand Down
80 changes: 73 additions & 7 deletions documentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>WordPress PDF Light Viewer Plugin & Pro Addon Documentation for version 1.3.23 & pro 0.2.0</title>
<title>Docs | PDF Light Viewer Plugin, Pro Addon, Serverless Addon</title>

<link rel="stylesheet" href="css/pure.css" />
<link rel="stylesheet" href="css/prism.css" />
Expand Down Expand Up @@ -35,8 +35,9 @@
<div class="pure-menu pure-menu-open">
<a class="logo" href="http://pdf-light-viewer.wp.teamlead.pw/">
<span>PDF Light Viewer</span>
<span>and PRO Addon</span>
<span>Documentation</span>
<small>PRO Addon</small><br />
<small>Serverless Addon</small><br />
<small>Documentation</small>
</a>

<ul>
Expand Down Expand Up @@ -88,7 +89,16 @@
<div id="main" class="doc-section">
<div class="header">
<div class="logo-header"></div>
<h1>WordPress PDF Light Viewer Plugin v1.3.23<br />& <span class="pure-button pure-button-primary">PRO</span> Addon v0.2.0<br/>Documentation</h1>
<h1>
Documentation
<small>
<div>WordPress PDF Light Viewer Plugin v1.4.0</div>
<div>
<span class="pure-button pure-button-primary">PRO</span> Addon v0.3.0
& <span class="pure-button pure-button-primary">Serverless</span> Addon v0.0.1
</div>
</small>
</h1>
<h2>What did you get?</h2>
</div>

Expand All @@ -101,8 +111,9 @@ <h4 class="content-subhead">About</h4>
<p>You could add unlimited amount of PDF of any size without performance issues.</p>
<p>Added PDF could be embedded as flipbooks on frontend.</p>
<p><span class="pure-button pure-button-primary">PRO</span> Addon is not required but it adds some useful features (marked with <span class="pure-button pure-button-primary">PRO</span> here) which you can check in this documentation or on the <a target="_blank" href="http://pdf-light-viewer.wp.teamlead.pw/pro/">Addon's page</a>.</p>
<p><span class="pure-button pure-button-primary">Serverless</span> Addon is not required, it just adds an alternative way to import PDFs (marked with <span class="pure-button pure-button-primary">Serverless</span> here), more info on <a target="_blank" href="http://pdf-light-viewer.wp.teamlead.pw/serverless/">Addon's page</a>.</p>
<blockquote>
Please note that <span class="pure-button pure-button-primary">PRO</span> Addon is not standalone plugin and it requires <a href="https://wordpress.org/plugins/pdf-light-viewer/" target="_blank">PDF Light Viewer free plugin</a>.
Please note that <span class="pure-button pure-button-primary">PRO</span> Addon and <span class="pure-button pure-button-primary">Serverless</span> Addon are not standalone plugins and both require <a href="https://wordpress.org/plugins/pdf-light-viewer/" target="_blank">PDF Light Viewer free plugin</a>.
</blockquote>

<h4 class="content-subhead">Features</h4>
Expand Down Expand Up @@ -140,6 +151,11 @@ <h4 class="content-subhead"><span class="pure-button pure-button-primary">PRO</s
<li>SEO friendly mode.</li>
</ul>

<h4 class="content-subhead"><span class="pure-button pure-button-primary">Serverless</span> Features</h4>
<ul>
<li>Plugin allows you to embed PDF files without server libraries ImageMagick and GhostScript.</li>
</ul>

<h4 class="content-subhead">What next?</h4>
<p>Check <a href="#install">Installation</a> section to know how to install the plugin.</p>
</div>
Expand All @@ -164,6 +180,7 @@ <h4>Regular installation</h4>
<li>Upload plugin package with WordPress <code>http://yoursite.com/wp-admin/plugin-install.php?tab=upload</code> or WordPress Multisite <code>http://yoursite.com/wp-admin/network/plugin-install.php?tab=upload</code></li>
<li>Activate <code>PDF Light Viewer Plugin</code> on the WordPress Plugins page <code>http://yoursite.com/wp-admin/plugins.php</code></li>
<li><span class="pure-button pure-button-primary">PRO</span> Tip: Activate <code>PDF Light Viewer Pro Addon</code> on the WordPress Plugins page <code>http://yoursite.com/wp-admin/plugins.php</code></li>
<li><span class="pure-button pure-button-primary">Serverless</span> Tip: Activate <code>PDF Light Viewer Serverless Addon</code> on the WordPress Plugins page <code>http://yoursite.com/wp-admin/plugins.php</code></li>
<li>That's all! You can start from <a href="#quick">Quick start guide</a></li>
<li>After plugin activation please go to plugin's settings on the page <code>http://yoursite.com/wp-admin/options-general.php?page=pdf-light-viewer</code> to <a href="#setup">Set Up</a> the plugin.</li>
<li><span class="pure-button pure-button-primary">PRO</span> Tip: Settings of the PRO functions are placed on the main plugin Settings page.</li>
Expand All @@ -175,6 +192,7 @@ <h4>cPanel installation</h4>
<li>Extract plugin package contents to the <code>/wp-content/plugins/</code> folder</li>
<li>Activate <code>PDF Light Viewer Plugin</code> on the WordPress Plugins page <code>http://yoursite.com/wp-admin/plugins.php</code></li>
<li><span class="pure-button pure-button-primary">PRO</span> Tip: Activate <code>PDF Light Viewer Pro Addon</code> on the WordPress Plugins page <code>http://yoursite.com/wp-admin/plugins.php</code></li>
<li><span class="pure-button pure-button-primary">Serverless</span> Tip: Activate <code>PDF Light Viewer Serverless Addon</code> on the WordPress Plugins page <code>http://yoursite.com/wp-admin/plugins.php</code></li>
<li>That's all! You can start from <a href="#quick">Quick start guide</a></li>
<li>After plugin activation please go to plugin's settings on the page <code>http://yoursite.com/wp-admin/options-general.php?page=pdf-light-viewer</code> to <a href="#setup">Set Up</a> the plugin.</li>
<li><span class="pure-button pure-button-primary">PRO</span> Tip: Settings of the PRO functions are placed on the main plugin Settings page.</li>
Expand All @@ -186,6 +204,7 @@ <h4>FTP installation</h4>
<li>Upload files folder to the <code>/wp-content/plugins/</code> to the server with any FTP client application, for example <a href="https://filezilla-project.org/" target="_blank">FileZilla</a></li>
<li>Activate <code>PDF Light Viewer Plugin</code> on the WordPress Plugins page <code>http://yoursite.com/wp-admin/plugins.php</code></li>
<li><span class="pure-button pure-button-primary">PRO</span> Tip: Activate <code>PDF Light Viewer Pro Addon</code> on the WordPress Plugins page <code>http://yoursite.com/wp-admin/plugins.php</code></li>
<li><span class="pure-button pure-button-primary">Serverless</span> Tip: Activate <code>PDF Light Viewer Serverless Addon</code> on the WordPress Plugins page <code>http://yoursite.com/wp-admin/plugins.php</code></li>
<li>That's all! You can start from <a href="#quick">Quick start guide</a></li>
<li>After plugin activation please go to plugin's settings on the page <code>http://yoursite.com/wp-admin/options-general.php?page=pdf-light-viewer</code> to <a href="#setup">Set Up</a> the plugin.</li>
<li><span class="pure-button pure-button-primary">PRO</span> Tip: Settings of the PRO functions are placed on the main plugin Settings page.</li>
Expand Down Expand Up @@ -231,6 +250,14 @@ <h4 class="content-subhead"><span class="pure-button pure-button-primary">PRO</s
<li>Specific version on PDF Light Viewer</li>
</ul>

<h4 class="content-subhead"><span class="pure-button pure-button-primary">Serverless</span> Requirements</h4>

<ul>
<li>PDF Light Viewer installed and activated</li>
<li>Specific version on PDF Light Viewer</li>
<li>Modern Browser required (Latest Chrome / Latest Firefox / Safari 9+ / Microsoft Edge)</li>
</ul>

<p>After activation plugin will create new post type for PDF files. You'll see pointer notification near it's menu item.</p>
<p><img src="img/screenshots/activation-notifications.jpeg" alt="Activation notifications" /></p>

Expand All @@ -247,6 +274,8 @@ <h4 class="content-subhead"><span class="pure-button pure-button-primary">PRO</s

<h4 class="content-subhead">ImageMagick/GraphicsMagick support</h4>

<p><span class="pure-button pure-button-primary">Serverless</span> Tip: With Serverless Addon you don't need to have ImageMagick or GhostScript libraries to import PDFs from browser.</p>

<blockquote>
<p>The ImageMagick/GraphicsMagick package and Imagick/Gmagick library are required for PDF Light Viewer plugin to work. Not supported in current context means that the Imagick library is not installed or turned off on the server. To make plugin work you will need to install it or to turn it on.</p>
<p><a href="http://en.wikipedia.org/wiki/ImageMagick" target="_blank">ImageMagick</a> is the image manipulation library for PHP. ImageMagick is a server software and currently not included into the plugin.</p>
Expand Down Expand Up @@ -342,6 +371,9 @@ <h2>How to use?</h2>
<li>User uploads PDF document</li>
<li>PDF document is parsed by the plugin</li>
<li>User stays on the site until the document is parsed</li>
<li>
<span class="pure-button pure-button-primary">Serverless</span> Serverless Addon is slightly changing the import process functions, but it will look almost the same in common.
</li>
<li>User adds the wordpress shortcode, produced by the plugin, to the page or post</li>
<li>
<span class="pure-button pure-button-primary">PRO</span> User can open Single PDF page to have PDF flipbook there.
Expand Down Expand Up @@ -409,10 +441,14 @@ <h2>How to use?</h2>
<p>Please note, that all previously imported pages of this document will be deleted from the disk. This operation cannot be undone.</p>
</blockquote>

<span class="pure-button pure-button-primary">Serverless</span> With Serverless Addon you do not need to check "Enable import", it has own import button in the top section.

<div class="content-subhead">Updating PDF file</div>

<p>If you just need to change the name of the PDF file or some of the Output options, you leave the option <code>Enable import</code> unchecked. Without checking this checkbox import wouldn't be triggered.</p>

<span class="pure-button pure-button-primary">Serverless</span> With Serverless Addon you do not need to check "Enable import", it has own import button in the top section.

<div class="content-subhead">Deleting PDF file</div>

<p>If you will permanently delete PDF file post, all previews will be also deleted.</p>
Expand Down Expand Up @@ -550,7 +586,7 @@ <h2>Are you developer?</h2>
</ul>

<p>
<span class="pure-button pure-button-primary">PRO</span> Tip: PRO Addon has similar file structure and can be overrided in the similar way.
<span class="pure-button pure-button-primary">PRO</span> Tip: PRO Addon has similar file structure and can be overriden in the similar way.
</p>

<div class="content-subhead">Templates control</div>
Expand Down Expand Up @@ -803,6 +839,14 @@ <h1>Changelog</h1>

<h3>PDF Light Viewer</h3>

<h4 class="content-subhead">1.4.0 - 2019-01-12</h4>
<ul>
<li>Code structure cleaning up</li>
<li>PDF Light Viewer Serverless plugin compatibility</li>
<li>Export/Import PDF config</li>
<li>screenfull update</li>
</ul>

<h4 class="content-subhead">1.3.23 - 2018-09-18</h4>
<ul>
<li>Option to disable lazy loading to prevent issues when using other lazy loading systems (e.g. Jetpack)</li>
Expand Down Expand Up @@ -1100,10 +1144,22 @@ <h4 class="content-subhead">1.0.0</h4>

<h3>PDF Light Viewer Pro Addon</h3>

<h4 class="content-subhead">0.3.0 - 2019-01-12</h4>
<ul>
<li>PDF Light Viewer plugin compatibility</li>
<li>PDF Light Viewer Serverless plugin compatibility</li>
<li>Dark theme</li>
</ul>

<h4 class="content-subhead">0.2.1 - 2018-07-06</h4>
<ul>
<li>Smalot PDF Library update to 0.13.2</li>
</ul>

<h4 class="content-subhead">0.2.0 - 2018-06-20</h4>
<ul>
<li>WPMU archive search fix</li>
<Li>Archive pagination fix</Li>
<li>Archive pagination fix</li>
<li>Archive shortcode 'posts_per_page' parameter</li>
<li>Popup shortcode 'fullscreen' parameter</li>
</ul>
Expand Down Expand Up @@ -1206,6 +1262,16 @@ <h4 class="content-subhead">0.0.1 - 2015-12-14</h4>
<li>Added PDF Archive page</li>
<li>Added PDF Single page</li>
</ul>




<h3>PDF Light Viewer Serverless Addon</h3>

<h4 class="content-subhead">0.0.1 - 2019-01-12</h4>
<ul>
<li>Initial release</li>
</ul>
</div>
</div>

Expand Down
5 changes: 3 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: antongorodezkiy, teamleadpower
Tags: pdf, pdfs, embed, pdf embed, publish pdf, import pdf, flipbook
Donate link:
Requires at least: 3.5
Tested up to: 4.9.8
Tested up to: 5.0.3
Stable tag: 1.4.0
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -70,10 +70,11 @@ Plugin allows you to embed normal, big and very big pdf documents to the wordpre

== Changelog ==

= 1.4.0 - 2019-
= 1.4.0 - 2019-01-12
* Code structure cleaning up
* PDF Light Viewer Serverless plugin compatibility
* Export/Import PDF config
* screenfull update

== 1.3.23 - 2018-09-18 ==
* Option to disable lazy loading to prevent issues when using other lazy loading systems (e.g. Jetpack)
Expand Down
15 changes: 0 additions & 15 deletions resources/assets/bower_components/screenfull/.bower.json

This file was deleted.

12 changes: 12 additions & 0 deletions resources/assets/bower_components/screenfull/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_style = space
indent_size = 2
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto
*.js text eol=lf
1 change: 1 addition & 0 deletions resources/assets/bower_components/screenfull/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
yarn.lock
1 change: 1 addition & 0 deletions resources/assets/bower_components/screenfull/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
3 changes: 3 additions & 0 deletions resources/assets/bower_components/screenfull/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- 'node'
37 changes: 30 additions & 7 deletions resources/assets/bower_components/screenfull/dist/screenfull.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*!
* screenfull
* v3.0.0 - 2015-11-24
* v3.3.3 - 2018-09-04
* (c) Sindre Sorhus; MIT License
*/
(function () {
'use strict';

var document = typeof window !== 'undefined' && typeof window.document !== 'undefined' ? window.document : {};
var isCommonjs = typeof module !== 'undefined' && module.exports;
var keyboardAllowed = typeof Element !== 'undefined' && 'ALLOW_KEYBOARD_INPUT' in Element;

var fn = (function () {
var val;
var valLength;

var fnMap = [
[
Expand All @@ -22,7 +22,7 @@
'fullscreenchange',
'fullscreenerror'
],
// new WebKit
// New WebKit
[
'webkitRequestFullscreen',
'webkitExitFullscreen',
Expand All @@ -32,7 +32,7 @@
'webkitfullscreenerror'

],
// old WebKit (Safari 5.1)
// Old WebKit (Safari 5.1)
[
'webkitRequestFullScreen',
'webkitCancelFullScreen',
Expand Down Expand Up @@ -67,7 +67,7 @@
for (; i < l; i++) {
val = fnMap[i];
if (val && val[1] in document) {
for (i = 0, valLength = val.length; i < valLength; i++) {
for (i = 0; i < val.length; i++) {
ret[fnMap[0][i]] = val[i];
}
return ret;
Expand All @@ -77,6 +77,11 @@
return false;
})();

var eventNameMap = {
change: fn.fullscreenchange,
error: fn.fullscreenerror
};

var screenfull = {
request: function (elem) {
var request = fn.requestFullscreen;
Expand All @@ -87,10 +92,10 @@
// keyboard in fullscreen even though it doesn't.
// Browser sniffing, since the alternative with
// setTimeout is even worse.
if (/5\.1[\.\d]* Safari/.test(navigator.userAgent)) {
if (/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)) {
elem[request]();
} else {
elem[request](keyboardAllowed && Element.ALLOW_KEYBOARD_INPUT);
elem[request](keyboardAllowed ? Element.ALLOW_KEYBOARD_INPUT : {});
}
},
exit: function () {
Expand All @@ -103,6 +108,24 @@
this.request(elem);
}
},
onchange: function (callback) {
this.on('change', callback);
},
onerror: function (callback) {
this.on('error', callback);
},
on: function (event, callback) {
var eventName = eventNameMap[event];
if (eventName) {
document.addEventListener(eventName, callback, false);
}
},
off: function (event, callback) {
var eventName = eventNameMap[event];
if (eventName) {
document.removeEventListener(eventName, callback, false);
}
},
raw: fn
};

Expand Down
Loading

0 comments on commit 6c43426

Please sign in to comment.