<?php

/**
 * Plugin Name:       Dynamiques Blocks
 * Description:       Un série de Blocks sur mesure pour l'écriture du contenu de Dynamiques
 * Author:            Deligraph
 * Text Domain:       dynamiques-blocks
 */

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

function dynamiques_add_block_categories($categories)
{
	return array_merge(

		[
			[
				'slug'  => 'dynamiques-blocks',
				'title' => __('Blocs Dynamiques', 'dynamiques-blocks'),
				'icon'  => 'heart',
			],

		],
		$categories
	);
}
add_action('block_categories_all', 'dynamiques_add_block_categories', 25, 2);


/* ----------------------------------------------------------------
	##### ENQUEUE BLOCKS
 ------------------------------------------------------------------*/

require_once __DIR__ . '/blocks/article-container/article-container.php';
require_once __DIR__ . '/blocks/dernieres-dynamiques/dernieres-dynamiques.php';
require_once __DIR__ . '/blocks/explore-tags/explore-tags.php';
require_once __DIR__ . '/blocks/revues-precedentes/revues-precedentes.php';
