Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Inspector tabs #322

Merged
merged 13 commits into from
Oct 24, 2024
Prev Previous commit
Next Next commit
added default group settings for controls
Fellan-91 committed Oct 23, 2024
commit b982e3a9f9c12ef7fab8c4e206c71d51d2035b17
3 changes: 3 additions & 0 deletions classes/class-tools.php
Original file line number Diff line number Diff line change
@@ -109,6 +109,7 @@ public function clean_block_to_export( $block ) {
'label',
'default',
'placement',
'group',
'width',
'required',
'hide_if_not_selected',
@@ -138,6 +139,7 @@ public function clean_block_to_export( $block ) {
'placeholder' => '',
'characters_limit' => '',
'width' => '100',
'group' => 'default',
'hide_if_not_selected' => 'false',
'required' => 'false',
'translate' => 'false',
@@ -568,6 +570,7 @@ public function import_block( $data ) {
'help' => '',
'child_of' => '',
'placement' => 'content',
'group' => 'default',
'width' => '100',
'hide_if_not_selected' => 'false',
'required' => 'false',
2 changes: 2 additions & 0 deletions controls/_base/index.php
Original file line number Diff line number Diff line change
@@ -66,6 +66,7 @@ class LazyBlocks_Control {
'default_settings' => true,
'help_settings' => true,
'placement_settings' => array( 'content', 'inspector' /* , 'content-fallback', 'inspector-fallback' */ ),
'group_settings' => 'default',
'width_settings' => true,
'required_settings' => true,
'hide_if_not_selected_settings' => true,
@@ -93,6 +94,7 @@ class LazyBlocks_Control {
'help' => '',
'child_of' => '',
'placement' => 'content',
'group' => 'default',
'width' => '100',
'hide_if_not_selected' => 'false',
'required' => 'false',
1 change: 1 addition & 0 deletions controls/undefined/index.php
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ public function __construct() {
'default_settings' => false,
'help_settings' => false,
'width_settings' => false,
'group_settings' => 'default',
'required_settings' => false,
'translate_settings' => false,
'hide_if_not_selected_settings' => false,