Skip to content

Commit

Permalink
[#105] Convert button icons file into class
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-viget committed Jun 13, 2024
1 parent efd99b7 commit 80bfbfb
Show file tree
Hide file tree
Showing 6 changed files with 460 additions and 404 deletions.
11 changes: 11 additions & 0 deletions bin/composer-scripts/ProjectEventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,15 @@ class ProjectEventHandler {
public static function postCreateProject( Event $event ): void {
PostCreateProjectScript::execute( $event );
}

/**
* Post install event.
*
* @param Event $event
*
* @return void
*/
public static function postInstall( Event $event ): void {
// Do nothing.
}
}
24 changes: 13 additions & 11 deletions wp-content/plugins/acf-blocks-toolkit/acf-blocks-toolkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
* @package ACFBlocksToolkit
*/

use Viget\ACFBlocksToolkit\Block_Registration;
use Viget\ACFBlocksToolkit\BlockIcons;
use Viget\ACFBlocksToolkit\BlockRegistration;
use Viget\ACFBlocksToolkit\Settings;

// Plugin version.
Expand All @@ -32,20 +33,21 @@
// Helper functions.
require_once 'includes/helpers.php';

// Timber functions.
require_once 'includes/timber.php';

// Assets.
require_once 'includes/assets.php';

// Registration functions.
require_once 'includes/register.php';
// Block Registration class.
require_once 'src/classes/BlockRegistration.php';

// Settings functions.
require_once 'includes/settings.php';
// Block Settings class.
require_once 'src/classes/Settings.php';

// Timber functions.
require_once 'includes/timber.php';

// Timber functions.
require_once 'includes/button-icons.php';
// Block Icons support.
require_once 'src/classes/BlockIcons.php';

Block_Registration::init();
BlockRegistration::init();
Settings::init();
new BlockIcons();
Loading

0 comments on commit 80bfbfb

Please sign in to comment.