forked from TwisterMc/pdfjs-viewer-shortcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpdfjs-viewer.php
46 lines (38 loc) · 865 Bytes
/
pdfjs-viewer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
Plugin Name: PDFjs Viewer - Embed PDFs
Plugin URI: http://byterevel.com/
Description: Embed PDFs with the gorgeous PDF.js viewer
Version: 2.2.1
Author: <a href="http://byterevel.com/">Ben Lawson</a>, <a href="https://www.twistermc.com/">Thomas McMahon</a>
Contributors: FalconerWeb, twistermc
License: GPLv2
**/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
/**
* Shortcode
*/
require 'inc/shortcode.php';
/**
* Generate the PDF embed code.
*/
require 'inc/embed.php';
/**
* Media Button for Classic Editor
*/
require 'inc/media-button.php';
/**
* Gutenberg Block
*/
require 'inc/gutenberg-block.php';
/**
* Options Page
*/
require 'inc/options-page.php';
/**
* Custom URL - Work in Progress
*/
$pdfjs_custom_page = get_option( 'pdfjs_custom_page', 0 );
if ($pdfjs_custom_page) {
require 'inc/custom-page.php';
}