GIF89a;
Priv8 Uploader By InMyMine7
Linux normalajans.net.tr 5.4.0-88-generic #99-Ubuntu SMP Thu Sep 23 17:29:00 UTC 2021 x86_64
<?php
/**
* Block Styles Handler.
*
* @author Themeisle
* @package jaxon
* @since 1.0.0
*/
namespace Jaxon;
/**
* Class Block_Styles
*
* @package jaxon
*/
class Block_Styles {
/**
* Block styles.
*
* @var \array[][] | void
*/
private $styles;
/**
* Block Styles constructor.
*/
public function __construct() {
$this->styles = array();
add_action( 'init', array( $this, 'add_block_styles' ) );
}
/**
* Add the block styles.
*
* @return void
*/
public function add_block_styles() {
foreach ( $this->styles as $block => $styles ) {
foreach ( $styles as $block_style ) {
register_block_style( $block, $block_style );
}
}
}
}