<?php
/*
Plugin Name: Lorandit Design Studio Pro
Description: Add a web-based design editor with admin-defined canvas templates (e.g., mug, t-shirt) and shape masking.
Version: 0.5.8
Author: Lorandit
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ds
Domain Path: /languages
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

if (!defined('ABSPATH')) {
    exit;
}

define('DS_PLUGIN_FILE', __FILE__);
define('DS_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('DS_PLUGIN_URL', plugin_dir_url(__FILE__));
define('DS_PLUGIN_VERSION', '0.5.8');

require_once DS_PLUGIN_DIR . 'includes/class-ds-loader.php';

// Boot the plugin
add_action('plugins_loaded', function() {
    load_plugin_textdomain('ds', false, dirname(plugin_basename(__FILE__)) . '/languages');
    \DS_Plugin\Loader::get_instance();
});
