|
|
|
@ -3,7 +3,8 @@ |
|
|
|
namespace AXEWEB_Blocks\Blocks\<%= ownerClass %>\<%= blockClassModel %>; |
|
|
|
|
|
|
|
class <%= blockClassModel %>_Component <% if (isComponentManager) { %>extends \Core\Component <% } %>{ |
|
|
|
const VERSION = '<%= version %>'; |
|
|
|
const VERSION = '<%= version %>';<% if (isComponentManager) { %> |
|
|
|
public $hook_prefix = 'axeweb_blocks/<%= ownerFilename %>/<%= blockFilename %>';<% } %> |
|
|
|
|
|
|
|
<% if (!isComponentManager) { %>public function __construct() { |
|
|
|
// add_action( 'wp_enqueue_scripts', [ $this, 'register_assets' ] ); |
|
|
|
|