Browse Source

- Added compile note (date) in PHP bundle.

- Update spacings/code-format of PHP bundle.
pull/6/head
Roman Axelrod 3 years ago
parent
commit
d8c3d4c54b
  1. 2
      platforms/php/build.php
  2. 2
      platforms/wordpress/templates/Template_Component.php

2
platforms/php/build.php

@ -106,6 +106,8 @@ class Component_Builder {
* FILE INFO: * FILE INFO:
* This file was generated by LightCandy::compile function. * This file was generated by LightCandy::compile function.
* The original source is the .HBS(handlebars) file that is located next to this generated PHP file. * The original source is the .HBS(handlebars) file that is located next to this generated PHP file.
*
* Compiled at " . date( 'Y-m-d h:i:s' ) . "
*/ */
"; ";

2
platforms/wordpress/templates/Template_Component.php

@ -13,7 +13,6 @@ class <%= blockClassModel %>_Component extends \Core\Component {
return apply_filters( 'axeweb_blocks/<%= ownerFilename %>/<%= blockFilename %>::content', $output ); return apply_filters( 'axeweb_blocks/<%= ownerFilename %>/<%= blockFilename %>::content', $output );
} }
<% if (!include_acf_block && !include_native_gutenberg_block) { %>function register_assets(): void { <% if (!include_acf_block && !include_native_gutenberg_block) { %>function register_assets(): void {
$version = get_plugin_data( __DIR__ . "/../../scytale-custom-blocks.php" )['Version']; // In Plugins $version = get_plugin_data( __DIR__ . "/../../scytale-custom-blocks.php" )['Version']; // In Plugins
// $version = \Core\Global_Functions::get_current_version_number(); // In Theme // $version = \Core\Global_Functions::get_current_version_number(); // In Theme
@ -62,7 +61,6 @@ class <%= blockClassModel %>_Component extends \Core\Component {
); );
} );<% } %> } );<% } %>
}<% } %> }<% } %>
} }
<%= blockClassModel %>_Component::get_instance(); <%= blockClassModel %>_Component::get_instance();

Loading…
Cancel
Save