<?php

/**
 * Plugin Name:       Carhop Format Types
 * Description:       Un série de formats sur mesure pour l'écriture du contenu de Carhop
 * Author:            Deligraph
 * Text Domain:       carhop-format-types
 */

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


function carhop_format_types_enqueue_assets()
{
	$asset_file = include(plugin_dir_path(__FILE__) . 'build/index.asset.php');
	wp_enqueue_script('carhop-format-types-script', plugins_url('build/index.js', __FILE__), $asset_file['dependencies'], $asset_file['version']);
	wp_enqueue_style('carhop-format-types-style', plugins_url('build/index.css', __FILE__), array(), $asset_file['version']);
}

add_action('enqueue_block_editor_assets', 'carhop_format_types_enqueue_assets');



function carhop_format_types_enqueue_front_assets()
{
	wp_enqueue_style('carhop-format-types-footnote-style', plugins_url('src/footnotes/footnote.css', __FILE__));
	wp_enqueue_style('carhop-format-types-uppercased-small-title-style', plugins_url('src/uppercased-small-title/uppercased-small-title.css', __FILE__));
}
add_action('wp_enqueue_scripts', 'carhop_format_types_enqueue_front_assets');
