<?php
/**
 * Assets Register
 *
 * @package SureDonation
 */

namespace SureDonation\Inc\Assets;

use SureDonation\Inc\Traits\Get_Instance;

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Register class for frontend assets.
 *
 * @since 0.0.1
 */
class Register {

	use Get_Instance;

	/**
	 * Constructor.
	 *
	 * @since 0.0.1
	 */
	public function __construct() {
		add_action( 'wp_enqueue_scripts', [ $this, 'register_frontend_assets' ] );
	}

	/**
	 * Register frontend assets.
	 *
	 * @return void
	 * @since 0.0.1
	 */
	public function register_frontend_assets() {
		// Register donation form frontend styles (for custom Gutenberg forms).
		wp_register_style(
			'suredonation-donation-form',
			SUREDONATION_URL . 'assets/build/blocks/donation-form/style-style.css',
			[],
			SUREDONATION_VER
		);
	}
}
