<?php

/**
 * Class PTFS_Frontend_Assets
 * Enqueues scripts and styles for the frontend.
 */
class PTFS_Frontend_Assets {
    /**
     * Initialize script and style enqueuing.
     */
    public static function init() {
        add_action( 'wp_enqueue_scripts', [__CLASS__, 'register_assets'], 9 );
    }

    /**
     * Enqueue necessary CSS and JS files for DataTables and plugin styles.
     */
    public static function register_assets() {
        wp_register_style(
            'ptfs-style',
            PTFS_URL . 'assets/css/ptfs-style.css',
            array(),
            PTFS_VERSION
        );
        wp_register_script(
            'ptfs-script',
            PTFS_URL . 'assets/js/ptfs-script.js',
            array(),
            PTFS_VERSION,
            true
        );
    }

}
