<?php
if (!defined('ABSPATH')) exit;
class MMPDB_Modal {
    public function __construct() {
        // No direct initialization needed
    }
    /**
     * Initialize modal functionality
     */
    public static function init() {
        add_action('wp_enqueue_scripts', [self::class, 'enqueue_assets']);
    }
    /**
     * Enqueue required assets
     */
    public static function enqueue_assets() {
        wp_enqueue_style(
            'mmpdbplus-modal',
            MMPDB_PLUGIN_URL . 'css/modal-link.css',
            [],
            MMPDB_PLUGIN_VERSION
        );
        wp_enqueue_script(
            'mmpdbplus-modal',
            MMPDB_PLUGIN_URL . 'js/modal-link.js',
            ['jquery'],
            MMPDB_PLUGIN_VERSION,
            true
        );
    }
}
// Initialize modal
add_action('init', ['MMPDB_Modal', 'init']); 