Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

css dependencies #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/01-single-block/src/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function single_block_cgb_editor_assets() {
wp_enqueue_style(
'single_block-cgb-block-editor-css', // Handle.
plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS.
array( 'wp-edit-blocks' ) // Dependency to include the CSS after it.
array( 'wp-edit-blocks', 'single_block-cgb-style-css' ) // Dependency to include the CSS after it.
// filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.editor.build.css' ) // Version: File modification time.
);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/02-single-block-ejected/src/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function single_block_cgb_editor_assets() {
wp_enqueue_style(
'single_block-cgb-block-editor-css', // Handle.
plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS.
array( 'wp-edit-blocks' ) // Dependency to include the CSS after it.
array( 'wp-edit-blocks', 'single_block-cgb-style-css' ) // Dependency to include the CSS after it.
// filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.editor.build.css' ) // Version: File modification time.
);
} // End function single_block_cgb_editor_assets().
Expand Down
2 changes: 1 addition & 1 deletion examples/03-multi-block/src/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function multi_block_cgb_editor_assets() {
wp_enqueue_style(
'multi_block-cgb-block-editor-css', // Handle.
plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS.
array( 'wp-edit-blocks' ) // Dependency to include the CSS after it.
array( 'wp-edit-blocks', 'multi_block-cgb-style-css' ) // Dependency to include the CSS after it.
// filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.editor.build.css' ) // Version: File modification time.
);
} // End function multi_block_cgb_editor_assets().
Expand Down
2 changes: 1 addition & 1 deletion examples/04-multi-block-ejected/src/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function multi_block_cgb_editor_assets() {
wp_enqueue_style(
'multi_block-cgb-block-editor-css', // Handle.
plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS.
array( 'wp-edit-blocks' ) // Dependency to include the CSS after it.
array( 'wp-edit-blocks', 'multi_block-cgb-style-css' ) // Dependency to include the CSS after it.
// filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.editor.build.css' ) // Version: File modification time.
);
} // End function multi_block_cgb_editor_assets().
Expand Down
2 changes: 1 addition & 1 deletion examples/05-a11y-input/src/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function a11y_input_cgb_editor_assets() {
wp_enqueue_style(
'a11y_input-cgb-block-editor-css', // Handle.
plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS.
array( 'wp-edit-blocks' ) // Dependency to include the CSS after it.
array( 'wp-edit-blocks', 'a11y_input-cgb-style-css' ) // Dependency to include the CSS after it.
// filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.editor.build.css' ) // Version: File modification time.
);
} // End function a11y_input_cgb_editor_assets().
Expand Down
2 changes: 1 addition & 1 deletion packages/cgb-scripts/template/src/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function <% blockNamePHPLower %>_cgb_editor_assets() { // phpcs:ignore
wp_enqueue_style(
'<% blockNamePHPLower %>-cgb-block-editor-css', // Handle.
plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS.
array( 'wp-edit-blocks' ) // Dependency to include the CSS after it.
array( 'wp-edit-blocks', '<% blockNamePHPLower %>-cgb-style-css' ) // Dependency to include the CSS after it.
// filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.editor.build.css' ) // Version: File modification time.
);
}
Expand Down