PluginProbe
Document Embedder – let visitors read files without downloading / 2.2.1
Document Embedder – let visitors read files without downloading v2.2.1
2.3.1 2.3.0 2.2.1 2.2.0 2.1.2 2.1.1 trunk 1.0 1.1 1.2 1.3 1.7.4 1.7.6 1.7.9 1.8.1 1.8.2 1.8.3 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 2.0.0 2.0.1 2.0.2 All 30 releases
document-emberdder / document-embedder.php

document-embedder.php in Document Embedder – let visitors read files without downloading 2.2.1, at document-embedder.php

79 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Plugin Name: Document Embedder – Embed PDFs, Word, Excel, and Other Files
4 * Plugin URI: http://documentembedder.com/
5 * Description: Embed Any document easily in wordpress such as word, excel, powerpoint, pdf and more
6 * Version: 2.2.1
7 * Author: bPlugins
8 * Author URI: http://bplugins.com
9 * License: GPLv2 or later
10 * Text Domain: document-emberdder
11 * Domain Path: /languages
12 */
13
14 if (!defined('ABSPATH')) {
15 exit;
16 }
17
18 if (function_exists('de_fs')) {
19 de_fs()->set_basename(true, __FILE__);
20 } else {
21 /* Some Set-up */
22 define('BPLDE_VER', '2.2.1');
23 define('BPLDE_PRO_IMPORT', '1.0.0');
24 define('BPLDE_PLUGIN_DIR', plugin_dir_url(__FILE__));
25 define('BPLDE_PLUGIN_PATH', plugin_dir_path(__FILE__));
26 define('BPLDE__FILE__', __FILE__);
27 define('BPLDE_IMPORT', '1.0.0');
28 define('BPLDE_HAS_PRO', 'document-embedder-premium/document-embedder.php' === plugin_basename(__FILE__));
29
30 if (!function_exists('de_fs')) {
31 function de_fs() {
32 global $de_fs;
33
34 if (!isset($de_fs)) {
35 // Include Freemius SDK.
36 require_once dirname(__FILE__) . '/vendor/freemius/start.php';
37
38 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.
39 $de_fs = fs_dynamic_init(array(
40 'id' => '19862',
41 'slug' => 'document-emberdder',
42 'premium_slug' => 'document-embedder-premium',
43 'type' => 'plugin',
44 'public_key' => 'pk_f769b99599446975f5e64d7a6ffbc',
45 'is_premium' => false,
46 'premium_suffix' => 'Pro',
47 'menu' => array(
48 'slug' => 'edit.php?post_type=ppt_viewer',
49 'first-path' => 'edit.php?post_type=ppt_viewer&page=bplde-dashboard',
50 'support' => false,
51 ),
52 ));
53 }
54 return $de_fs;
55 }
56
57 // Init Freemius.
58 de_fs();
59 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Freemius SDK integration hook
60 do_action('de_fs_loaded');
61 }
62
63 if (file_exists(BPLDE_PLUGIN_PATH . 'vendor/autoload.php')) {
64 require_once BPLDE_PLUGIN_PATH . 'vendor/autoload.php';
65 } else {
66 require_once BPLDE_PLUGIN_PATH . 'includes/class-bplde-init.php';
67 }
68 register_activation_hook(BPLDE__FILE__, ['BPLDEDocumentEmbedder', 'activate']);
69 new BPLDEDocumentEmbedder();
70
71 }
72
73
74
75
76
77
78
79