|  | @@ -1,20 +1,21 @@
 | 
	
		
			
				|  |  |  <?php
 | 
	
		
			
				|  |  |  /*
 | 
	
		
			
				|  |  | -Plugin Name: DWP Guten
 | 
	
		
			
				|  |  | +Plugin Name: DWP Plugin
 | 
	
		
			
				|  |  |  Plugin URI: https://wp.davidwindham.com
 | 
	
		
			
				|  |  | -Description: Add custom fields and blocks to the Gutenberg editor.( Pairs with DWP Theme )
 | 
	
		
			
				|  |  | +Description: A Plugin to go with the DWP theme. Add custom fields and blocks to the Gutenberg editor.( Pairs with DWP Theme )
 | 
	
		
			
				|  |  |  Author: windhamdavid
 | 
	
		
			
				|  |  | -Author URI: https://davidwindham.com
 | 
	
		
			
				|  |  | -Text Domain: dwp-guten
 | 
	
		
			
				|  |  | -Version: 0.4
 | 
	
		
			
				|  |  | -@package dwp_guten
 | 
	
		
			
				|  |  | +Text Domain: dwp-plugin
 | 
	
		
			
				|  |  | +Version: 0.4.0
 | 
	
		
			
				|  |  | +License: GNU General Public License v3
 | 
	
		
			
				|  |  | +License URI:http://www.gnu.org/licenses/gpl-3.0.html
 | 
	
		
			
				|  |  | +@package dwp_plugin
 | 
	
		
			
				|  |  | +GitHub Plugin URI: https://github.com/windhamdavid/dwp-plugin
 | 
	
		
			
				|  |  | +Gitea Plugin URI: https://code.davidawindham.com/david/dwp-plugin
 | 
	
		
			
				|  |  |  */
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  defined( 'ABSPATH' ) or die( 'DIE' );
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -/*********  add dwp-guten.js to Gutenberg wp.editor.RichTextToolbarButton **********/
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +add_action( 'enqueue_block_editor_assets', 'dwp_guten_enqueue' );
 | 
	
		
			
				|  |  |  function dwp_guten_script_register() {
 | 
	
		
			
				|  |  |  	wp_register_script(
 | 
	
		
			
				|  |  |  		'dw-guten-js',
 | 
	
	
		
			
				|  | @@ -27,11 +28,8 @@ add_action( 'init', 'dwp_guten_script_register' );
 | 
	
		
			
				|  |  |  function dwp_guten_enqueue () {
 | 
	
		
			
				|  |  |  	wp_enqueue_script( 'dwp-guten-js');
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | -add_action( 'enqueue_block_editor_assets', 'dwp_guten_enqueue' );
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -/*********  add custom metaboxes (meta_desc,media) to Gutenberg sidebar **********/
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +add_action( 'enqueue_block_editor_assets', 'dwp_guten_enqueue_assets' );
 | 
	
		
			
				|  |  |  include_once('dwp-metaboxes.php');
 | 
	
		
			
				|  |  |  function dwp_guten_enqueue_assets() {
 | 
	
		
			
				|  |  |  	wp_enqueue_script(
 | 
	
	
		
			
				|  | @@ -40,7 +38,11 @@ function dwp_guten_enqueue_assets() {
 | 
	
		
			
				|  |  |  		array( 'wp-plugins', 'wp-edit-post', 'wp-element', 'wp-components', 'wp-data' )
 | 
	
		
			
				|  |  |  	);
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | -add_action( 'enqueue_block_editor_assets', 'dwp_guten_enqueue_assets' );
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* Updater */
 | 
	
		
			
				|  |  | +//require_once plugin_dir_path( __FILE__ ) . 'dwp-updater.php';
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* Blocks */
 | 
	
		
			
				|  |  | +require_once plugin_dir_path( __FILE__ ) . 'dwp-blocks.php';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -?>
 |