-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TEST block-variation (to illustrate the idea)
- Loading branch information
1 parent
cb45d04
commit 8a3ee5f
Showing
5 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
build/variations/add-to-calendar/class-add-to-calendar.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' ) ); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php return array('dependencies' => array(), 'version' => '31d6cfe0d16ae931b73c'); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.