PluginProbe
Document Embedder – let visitors read files without downloading / 2.3.1
Document Embedder – let visitors read files without downloading v2.3.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.3.1, at document-embedder.php

81 lines 2.7 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.3.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.3.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 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound
32 function de_fs() {
33 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
34 global $de_fs;
35
36 if (!isset($de_fs)) {
37 // Include Freemius SDK.
38 require_once dirname(__FILE__) . '/vendor/freemius/start.php';
39
40 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
41 $de_fs = fs_dynamic_init(array(
42 'id' => '19862',
43 'slug' => 'document-emberdder',
44 'premium_slug' => 'document-embedder-premium',
45 'type' => 'plugin',
46 'public_key' => 'pk_f769b99599446975f5e64d7a6ffbc',
47 'is_premium' => false,
48 'premium_suffix' => 'Pro',
49 'menu' => array(
50 'slug' => 'edit.php?post_type=ppt_viewer',
51 'first-path' => 'edit.php?post_type=ppt_viewer&page=bplde-dashboard',
52 'support' => false,
53 ),
54 ));
55 }
56 return $de_fs;
57 }
58
59 // Init Freemius.
60 de_fs();
61 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Freemius SDK integration hook
62 do_action('de_fs_loaded');
63 }
64
65 if (file_exists(BPLDE_PLUGIN_PATH . 'vendor/autoload.php')) {
66 require_once BPLDE_PLUGIN_PATH . 'vendor/autoload.php';
67 } else {
68 require_once BPLDE_PLUGIN_PATH . 'includes/class-bplde-init.php';
69 }
70 register_activation_hook(BPLDE__FILE__, ['BPLDEDocumentEmbedder', 'activate']);
71 new BPLDEDocumentEmbedder();
72
73 }
74
75
76
77
78
79
80
81