Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
f757cc1
Pretty much a full reset
braican Jan 17, 2023
b92523c
Rename
braican Jan 17, 2023
c00028a
Improve readme
braican Jan 19, 2023
87cd830
Local dev
braican Jan 19, 2023
e08559a
Start building
braican Jan 19, 2023
112dc15
More deps
braican Jan 19, 2023
200c0b6
Prevent unnecessary rules
braican Jan 19, 2023
314ea33
Pull over author taxonomy
braican Jan 19, 2023
28a3dc3
Set up config
braican Jan 20, 2023
fa6a434
Some docs
braican Jan 20, 2023
2b37b45
Better way to hide default author panel
braican Jan 23, 2023
1da5ce9
Cleanup
braican Jan 23, 2023
971df4e
Docs, cleanup
braican Jan 23, 2023
f280b49
Article topper
braican Jan 24, 2023
0835b71
Readme
braican Jan 24, 2023
2df34a9
More docs
braican Jan 24, 2023
967aef5
Attachment credits
braican Jan 24, 2023
1d7ebab
Pull in the block stuff
braican Jan 26, 2023
0736215
Remove button in favor of theme.json
braican Jan 27, 2023
cbe34c1
Little refactor for config
braican Jan 30, 2023
65248d2
Some readme
braican Jan 30, 2023
e2be0ab
More docs
braican Jan 30, 2023
d18da8e
Node version
braican Jan 31, 2023
ff4978e
Remove docker stuff
braican Jan 31, 2023
766ea9d
Account for missing options
braican Feb 2, 2023
af1cf44
Wholesale rename the bylines panel
braican Feb 2, 2023
e204cb9
Use the right indexof
braican Feb 2, 2023
c9fb7ae
Update a few styles
braican Feb 3, 2023
e7ef32f
Remove style picker from core/image block
Feb 15, 2023
0e4fc39
Remove style picker from core/button block
Feb 15, 2023
f2b2f5e
Revert "Remove style picker from core/button block"
Feb 15, 2023
0533098
Fix keys
braican Feb 15, 2023
6c080d9
Fix sass division
braican Feb 15, 2023
300af21
Update per packagist recs
braican Feb 16, 2023
679bbe1
Ignore on zip downloads
braican Feb 17, 2023
e8571bc
Test building assets
braican Feb 17, 2023
a356508
Remove workflows, add build
braican Feb 17, 2023
1027c28
Add husky for git hooks
braican Feb 17, 2023
3af667b
Use pre-push instead
braican Feb 17, 2023
2d322bf
Build assets
braican Feb 17, 2023
ac6b85a
Remove husky
braican Feb 17, 2023
56641f8
Try a build asset step
braican Feb 17, 2023
ec6f4de
Attach to PR branch
braican Feb 17, 2023
a752fad
Build production assets (from GitHub Actions)
braican Feb 17, 2023
9be1e36
Remove hard-coded block style names in favor of array
Feb 21, 2023
4d98001
Add documentation to image registerFormatType
Feb 21, 2023
b38b124
Adjust comment
Feb 21, 2023
3255662
Add enable_block_styles as configuration option
Feb 21, 2023
1579b84
Add autoloader
braican Feb 22, 2023
c795b83
Little syntax updates
braican Feb 22, 2023
89a3f6b
Linting
braican Feb 23, 2023
30e71a2
Cleanup
braican Feb 23, 2023
24c7049
Readme
braican Feb 23, 2023
f75bd89
Merge pull request #3 from Upstatement/v2-remove-image-style-panel
braican Feb 23, 2023
0e91ffc
Merge pull request #4 from Upstatement/v2-ci
braican Feb 23, 2023
b3783c3
Build production assets (from GitHub Actions)
braican Feb 23, 2023
55c08fa
Linting in github actions
braican Feb 23, 2023
ca13944
Build production assets (from GitHub Actions)
braican Feb 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Start building
  • Loading branch information
braican committed Jan 19, 2023
commit e08559a404d66bc081cb5032ba64a1fd07a66439
36 changes: 36 additions & 0 deletions UpsEditorial.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
* Plugin Name: Upstatement Editorial
* Description: Enhance the WordPress editorial experience.
* Version: 2.0.0
*
* @package Upstatement\Editorial
*/

namespace Upstatement\Editorial;

/** Autoloader */
require_once 'vendor/autoload.php';

define( 'UPS_EDITORIAL_PLUGIN_DIR', __DIR__ );
define( 'UPS_EDITORIAL_PLUGIN_FILE', __FILE__ );

/**
* Plugin entrypoint.
*/
class UpsEditorial {

/**
* Register the plugin.
*
* @return void
*/
public static function register() {
$plugin = new self();

Assets::register();
}

}

UpsEditorial::register();
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "Plugin for extending the WordPress editorial experience.",
"autoload": {
"psr-4": {
"Upstatement\\Editorial\\": "lib"
"Upstatement\\Editorial\\": "includes"
}
},
"require": {},
Expand Down
38 changes: 38 additions & 0 deletions includes/Assets.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
/**
* Manage assets for the plugin.
*
* @package Upstatement\Editorial
*/

namespace Upstatement\Editorial;

class Assets {
/**
* Registers the assets to load via hooks.
*
* @return void
*/
public static function register() {
$assets = new self();

add_action( 'enqueue_block_editor_assets', array( $assets, 'enqueue_for_block_editor' ) );
}

/**
* Enqueue assets for the block editor.
*
* @return void
*/
public function enqueue_for_block_editor() {
$blocks_asset = include UPS_EDITORIAL_PLUGIN_DIR . '/build/index.asset.php';

wp_enqueue_script(
'upstatement-editorial-js',
plugins_url( '/build/index.js', UPS_EDITORIAL_PLUGIN_FILE ),
$blocks_asset['dependencies'],
$blocks_asset['version'],
true
);
}
}
10 changes: 0 additions & 10 deletions index.php

This file was deleted.

9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { registerBlockType } from '@wordpress/blocks';

registerBlockType('myguten/test-block', {
title: 'Basic Example',
icon: 'smiley',
category: 'design',
edit: () => <div>Hola, mundo!</div>,
save: () => <div>Hola, mundo!</div>,
});
57 changes: 0 additions & 57 deletions webpack.config.js

This file was deleted.