| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Old Sites/ict/wp-content/plugins/pdf-embedder/ |
Upload File : |
<?php
/**
* Plugin Name: PDF Embedder
* Plugin URI: https://wp-pdf.com
* Description: Embed PDFs straight into your posts and pages, with flexible width and height. No third-party services required. Compatible with Gutenberg Editor WordPress
* Requires at least: 5.8
* Requires PHP: 7.0
* Version: 4.7.1
* Author: PDF Embedder
* Author URI: https://wp-pdf.com
* Text Domain: pdf-embedder
* Domain Path: assets/languages
*
* PDF Embedder is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* any later version.
*
* PDF Embedder is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PDF Embedder. If not, see <https://www.gnu.org/licenses/>.
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Plugin version.
*
* @since 4.7.0
*/
const PDFEMB_VERSION = '4.7.1';
/**
* Plugin Folder Path.
*
* @since 4.7.0
*/
define( 'PDFEMB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
/**
* Plugin Folder URL.
*
* @since 4.7.0
*/
define( 'PDFEMB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
/**
* Plugin Root File.
*
* @since 4.7.0
*/
const PDFEMB_PLUGIN_FILE = __FILE__;
/**
* Plugin requirements.
* TODO: improve the logic behind this check.
*/
if ( version_compare( PHP_VERSION, '7.0', '<' ) ) {
include_once __DIR__ . '/requirements.php';
// Do not process the plugin code further.
return;
}
// Action Scheduler requires a special loading procedure.
require_once PDFEMB_PLUGIN_DIR . 'vendor/woocommerce/action-scheduler/action-scheduler.php';
require_once __DIR__ . '/vendor/autoload.php';
register_activation_hook( __FILE__, '\PDFEmbedder\Plugin::activated' );
/**
* Load the plugin instance.
*
* @since 4.7.0
*/
function pdf_embedder(): \PDFEmbedder\Plugin {
static $plugin;
if ( empty( $plugin ) ) {
$plugin = new \PDFEmbedder\Plugin();
$plugin->hooks();
}
return $plugin;
}
add_action( 'plugins_loaded', 'pdf_embedder' );