<?php
/**
 * Plugin Name: PufferPDF
 * Plugin URI: https://pufferpdf.com/
 * Description: Import PDFs into editable WordPress posts and pages with structured Markdown, native blocks, previews, and safe reprocessing.
 * Version: 1.0.1
 * Requires at least: 6.5
 * Requires PHP: 7.4
 * Author: PufferPDF
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: pufferpdf
 *
 * @package PufferPDF
 */

defined( 'ABSPATH' ) || exit;

define( 'PUFFERPDF_VERSION', '1.0.1' );
define( 'PUFFERPDF_PATH', plugin_dir_path( __FILE__ ) );
define( 'PUFFERPDF_URL', plugin_dir_url( __FILE__ ) );

require_once PUFFERPDF_PATH . 'includes/class-pufferpdf-records.php';
require_once PUFFERPDF_PATH . 'includes/class-pufferpdf-block-contract.php';
require_once PUFFERPDF_PATH . 'includes/class-pufferpdf-storage.php';
require_once PUFFERPDF_PATH . 'includes/class-pufferpdf-destinations.php';
require_once PUFFERPDF_PATH . 'includes/class-pufferpdf-publication-planner.php';
require_once PUFFERPDF_PATH . 'includes/class-pufferpdf-publications.php';
require_once PUFFERPDF_PATH . 'includes/class-pufferpdf-plugin.php';

add_action(
	'plugins_loaded',
	static function () {
		PufferPDF_Plugin::instance()->init();
	}
);
