<?php
/**
 * Plugin Name:       Phoenix Price Labels for WooCommerce
 * Plugin URI:        https://phoenixwp.com/phoenix-wp-price-labels/
 * Description:       Offline PDF price labels from WooCommerce products — Avery sheets and office printers. Retail-first with unit price (PAngV) support.
 * Version:           1.2.0
 * Requires at least: 6.7
 * Tested up to:      7.0
 * Requires PHP:      8.2
 * Requires Plugins:  woocommerce
 * WC requires at least: 8.0
 * WC tested up to:   10.9.3
 * Author:            PhoenixWP
 * Author URI:        https://phoenixwp.com
 * Donate link:       https://phoenixwp.com/preise/
 * License:           GPL-2.0-or-later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       phoenix-price-labels-for-woocommerce
 *
 * @package PhoenixWP\PriceLabels
 */

defined( 'ABSPATH' ) || exit;


define( 'PHOENIX_PRICE_LABELS_FOR_WOOCOMMERCE_ORG_BUILD', true );
define( 'PHOENIX_PRICE_LABELS_FOR_WOOCOMMERCE_VERSION', '1.2.0' );
define( 'PHOENIX_PRICE_LABELS_FOR_WOOCOMMERCE_FILE', __FILE__ );
define( 'PHOENIX_PRICE_LABELS_FOR_WOOCOMMERCE_PATH', plugin_dir_path( __FILE__ ) );
define( 'PHOENIX_PRICE_LABELS_FOR_WOOCOMMERCE_URL', plugin_dir_url( __FILE__ ) );
define( 'PHOENIX_PRICE_LABELS_FOR_WOOCOMMERCE_BASENAME', plugin_basename( __FILE__ ) );
require_once PHOENIX_PRICE_LABELS_FOR_WOOCOMMERCE_PATH . 'includes/woocommerce-compatibility.php';

$phoenix_price_labels_for_woocommerce_autoload = PHOENIX_PRICE_LABELS_FOR_WOOCOMMERCE_PATH . 'vendor/autoload.php';

if ( is_readable( $phoenix_price_labels_for_woocommerce_autoload ) ) {
	require_once $phoenix_price_labels_for_woocommerce_autoload;
	require_once PHOENIX_PRICE_LABELS_FOR_WOOCOMMERCE_PATH . 'includes/composer-autoload-bridge.php';
}

require_once PHOENIX_PRICE_LABELS_FOR_WOOCOMMERCE_PATH . 'includes/autoload-fallback.php';
phoenix_wp_price_labels_register_autoload_fallback();

\PhoenixWP\PriceLabels\Install::register_hooks();

\PhoenixWP\PriceLabels\Plugin::instance();
