first commit

This commit is contained in:
CHIEFSOFT\ameye
2023-11-30 13:20:54 -05:00
commit e9e5c0546c
5833 changed files with 1801865 additions and 0 deletions
@@ -0,0 +1,35 @@
<?php
/**
* Format badge.
*
* @package Canvas
*/
/**
* Initialize format badge.
*/
class CNVS_Format_Badge {
/**
* Initialize
*/
public function __construct() {
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) );
}
/**
* Enqueue the block's assets for the editor.
*/
public function enqueue_block_editor_assets() {
// Editor Scripts.
wp_enqueue_script(
'canvas-format-badge-editor-script',
plugins_url( 'format-badge/block.js', __FILE__ ),
array( 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-editor', 'lodash', 'jquery' ),
filemtime( plugin_dir_path( __FILE__ ) . 'format-badge/block.js' ),
true
);
}
}
new CNVS_Format_Badge();