<?php
/**
 * Named block styles used by the bundled layouts and patterns.
 *
 * @package HaPantheon
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Register selectable styles in the block editor.
 */
function hapantheon_register_block_styles() {
	$styles = array(
		'core/button' => array(
			array( 'name' => 'hapantheon-gold', 'label' => __( 'Pantheon Gold', 'hapantheon' ), 'is_default' => true ),
			array( 'name' => 'hapantheon-outline', 'label' => __( 'Pantheon Outline', 'hapantheon' ) ),
			array( 'name' => 'hapantheon-dark', 'label' => __( 'Pantheon Dark', 'hapantheon' ) ),
		),
		'core/group' => array(
			array( 'name' => 'hapantheon-card', 'label' => __( 'Pantheon Card', 'hapantheon' ) ),
			array( 'name' => 'hapantheon-night', 'label' => __( 'Pantheon Night', 'hapantheon' ) ),
		),
		'core/quote' => array(
			array( 'name' => 'hapantheon-pullquote', 'label' => __( 'Pantheon Pull Quote', 'hapantheon' ) ),
		),
		'core/image' => array(
			array( 'name' => 'hapantheon-framed', 'label' => __( 'Pantheon Frame', 'hapantheon' ) ),
		),
	);

	foreach ( $styles as $block_name => $block_styles ) {
		foreach ( $block_styles as $style ) {
			register_block_style( $block_name, $style );
		}
	}
}
add_action( 'init', 'hapantheon_register_block_styles' );
