Skip to content

Commit

Permalink
Add TEST block-variation (to illustrate the idea)
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Sep 21, 2024
1 parent cb45d04 commit 8a3ee5f
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 0 deletions.
61 changes: 61 additions & 0 deletions build/variations/add-to-calendar/class-add-to-calendar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php
/**
*
*
* ....
*
* @package GatherPress\Core
* @since 1.0.0
*/

namespace GatherPress\Core\Block;

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore

use GatherPress\Core\Traits\Singleton;

// Could potentially use a ...
// use GatherPress\Core\Traits\Block_Variation;

/**
*
*
* ....
*
* @since 1.0.0
*/
class Add_To_Calendar {
/**
* Enforces a single instance of this class.
*/
use Singleton;

/**
* Class constructor.
*
* This method initializes the object and sets up necessary hooks.
*
* @since 1.0.0
*/
protected function __construct() {
$this->setup_hooks();
}

/**
* Set up hooks for various purposes.
*
* This method adds hooks for different purposes as needed.
*
* @since 1.0.0
*
* @return void
*/
protected function setup_hooks(): void {
// wp_die('variation test end.');

// add_action( 'init', array( $this, 'register_block_bindings_sources' ) );
// add_action( 'init', array( $this, 'register_blocks_styles' ) );
}

}
1 change: 1 addition & 0 deletions build/variations/add-to-calendar/index.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array(), 'version' => '31d6cfe0d16ae931b73c');
Empty file.
61 changes: 61 additions & 0 deletions src/variations/add-to-calendar/class-add-to-calendar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php
/**
*
*
* ....
*
* @package GatherPress\Core
* @since 1.0.0
*/

namespace GatherPress\Core\Block;

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore

use GatherPress\Core\Traits\Singleton;

// Could potentially use a ...
// use GatherPress\Core\Traits\Block_Variation;

/**
*
*
* ....
*
* @since 1.0.0
*/
class Add_To_Calendar {
/**
* Enforces a single instance of this class.
*/
use Singleton;

/**
* Class constructor.
*
* This method initializes the object and sets up necessary hooks.
*
* @since 1.0.0
*/
protected function __construct() {
$this->setup_hooks();
}

/**
* Set up hooks for various purposes.
*
* This method adds hooks for different purposes as needed.
*
* @since 1.0.0
*
* @return void
*/
protected function setup_hooks(): void {
// wp_die('variation test end.');

// add_action( 'init', array( $this, 'register_block_bindings_sources' ) );
// add_action( 'init', array( $this, 'register_blocks_styles' ) );
}

}
Empty file.

0 comments on commit 8a3ee5f

Please sign in to comment.