Browse Source

Code format - build of wordpress.

test-gpt-generated
Roman Axelrod 3 years ago
parent
commit
05b5ccb2b5
  1. 4
      platforms/wordpress/templates/Template_Basic_Component.php

4
platforms/wordpress/templates/Template_Basic_Component.php

@ -9,8 +9,8 @@ class <%= blockClassModel %>_Component <% if (isComponentManager) { %>extends \C
// add_action( 'wp_enqueue_scripts', [ $this, 'register_assets' ] ); // add_action( 'wp_enqueue_scripts', [ $this, 'register_assets' ] );
add_action( 'after_setup_theme', [ $this, 'register_assets' ] ); add_action( 'after_setup_theme', [ $this, 'register_assets' ] );
} }
<% } %>
function register_assets(): void { <% } %>function register_assets(): void {
$base_path = plugin_dir_url( __FILE__ ); // In Plugins $base_path = plugin_dir_url( __FILE__ ); // In Plugins
// $base_path = get_template_directory_uri() . '/components/partials/<%= blockFilename %>/'; // In Theme // $base_path = get_template_directory_uri() . '/components/partials/<%= blockFilename %>/'; // In Theme

Loading…
Cancel
Save