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

83 lines 3.1 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
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.1.2
7 * Author: bPlugins
8 * Author URI: http://bplugins.com
9 * License: GPLv2 or later
10 * Text Domain: document-emberdder
11 * Domain Path: /languages
12 * @fs_premium_only /includes/features/class-bplde-shortcode-pro.php, /includes/core/class-bplde-pro-document-embedder.php, /includes/admin/class-bplde-pro-metabox.php, /includes/admin/class-bplde-pro-settings.php, /includes/class-bplde-license-activation.php, /includes/features/class-bplde-dropbox-api.php, /includes/features/class-bplde-google-drive-api.php
13 */
14
15 if (!defined('ABSPATH')) {
16 exit;
17 }
18
19 if (function_exists('de_fs')) {
20 de_fs()->set_basename(true, __FILE__);
21 } else {
22 /* Some Set-up */
23 define('BPLDE_VER', '2.1.2');
24 define('BPLDE_PRO_IMPORT', '1.0.0');
25 define('BPLDE_PLUGIN_DIR', plugin_dir_url(__FILE__));
26 define('BPLDE_PLUGIN_PATH', plugin_dir_path(__FILE__));
27 define('BPLDE__FILE__', __FILE__);
28 define('BPLDE_IMPORT', '1.0.0');
29 define('BPLDE_HAS_PRO', 'document-embedder-premium/document-embedder.php' === plugin_basename(__FILE__));
30
31 if (!function_exists('de_fs')) {
32 // Create a helper function for easy SDK access.
33 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Freemius SDK integration function
34 function de_fs()
35 {
36 global $de_fs;
37
38 if (!isset($de_fs)) {
39 // Include Freemius SDK.
40 require_once dirname(__FILE__) . '/vendor/freemius/start.php';
41
42 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Freemius SDK integration global variable
43 $de_fs = fs_dynamic_init(array(
44 'id' => '19862',
45 'slug' => 'document-emberdder',
46 'premium_slug' => 'document-embedder-premium',
47 'type' => 'plugin',
48 'public_key' => 'pk_f769b99599446975f5e64d7a6ffbc',
49 'is_premium' => false,
50 'premium_suffix' => 'Pro',
51 'menu' => array(
52 'slug' => 'edit.php?post_type=ppt_viewer',
53 'first-path' => 'edit.php?post_type=ppt_viewer&page=bplde-dashboard',
54 'support' => false,
55 ),
56 ));
57 }
58 return $de_fs;
59 }
60
61 // Init Freemius.
62 de_fs();
63 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Freemius SDK integration hook
64 do_action('de_fs_loaded');
65 }
66
67 if (file_exists(BPLDE_PLUGIN_PATH . 'vendor/autoload.php')) {
68 require_once BPLDE_PLUGIN_PATH . 'vendor/autoload.php';
69 } else {
70 require_once BPLDE_PLUGIN_PATH . 'includes/class-bplde-init.php';
71 }
72 register_activation_hook(BPLDE__FILE__, ['BPLDEDocumentEmbedder', 'activate']);
73 new BPLDEDocumentEmbedder();
74
75 }
76
77
78
79
80
81
82
83