Browse Source

wherewasi 🤷?

windhamdavid 2 years ago
parent
commit
24f1b12c18
7 changed files with 52 additions and 16 deletions
  1. 3 0
      .babelrc
  2. 24 0
      .gitattributes
  3. 1 1
      build/index.asset.php
  4. 0 0
      build/index.js
  5. 0 0
      build/index.js.map
  6. 7 0
      dwp-blocks.php
  7. 17 15
      dwp-guten.php

+ 3 - 0
.babelrc

@@ -0,0 +1,3 @@
+{
+	"presets": [ "@wordpress/default" ]
+}

+ 24 - 0
.gitattributes

@@ -0,0 +1,24 @@
+/.DS_Store export-ignore
+/Thumbs.db export-ignore
+
+/.gitattributes export-ignore
+/.distignore export-ignore
+/.gitignore export-ignore
+/.editorconfig export-ignore
+/.nvmrc export-ignore
+/.babelrc export-ignore
+/.phpcs.xml.dist export-ignore
+
+/.travis.yml export-ignore
+/.scrutinizer.yml export-ignore
+
+/node_modules export-ignore
+/package.json export-ignore
+/package-lock.json export-ignore
+
+/gulpfile.js export-ignore
+
+/_src export-ignore
+/css/admin.scss export-ignore
+/css/colors.scss export-ignore
+/css/custom.scss export-ignore

+ 1 - 1
build/index.asset.php

@@ -1 +1 @@
-<?php return array('dependencies' => array('wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => 'bde6d71c8bec78ba7a39b06f424f8e9e');
+<?php return array('dependencies' => array('wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '228eaca61ef57a0df69bc889ac97663d');

File diff suppressed because it is too large
+ 0 - 0
build/index.js


File diff suppressed because it is too large
+ 0 - 0
build/index.js.map


+ 7 - 0
dwp-blocks.php

@@ -0,0 +1,7 @@
+<?php
+
+if ( ! defined( 'ABSPATH' ) ) { exit; }
+
+function dwp23_slider_block_assets() {
+
+}

+ 17 - 15
dwp-guten.php

@@ -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';
 
 
-?>

Some files were not shown because too many files changed in this diff