Bootstrap * Plugin bootstrap loader * */ if ( ! defined( 'ABSPATH' ) ) exit; add_action( 'plugins_loaded', function (): void { if ( is_admin() ) : tbkkt_include_file( 'admin/plugin-list.php' ); endif; tbkkt_include_file( 'responsive-breakpoints-css/defaults.php' ); tbkkt_include_file( 'responsive-breakpoints-css/config.php' ); tbkkt_include_file( 'responsive-breakpoints-css/helpers.php' ); tbkkt_include_file( 'responsive-breakpoints-css/generate.php' ); tbkkt_include_file( 'settings/blocks.php' ); tbkkt_include_file( 'settings/option.php' ); tbkkt_include_file( 'settings/sanitize.php' ); tbkkt_include_file( 'settings/navigation.php' ); tbkkt_include_file( 'settings/page.php' ); tbkkt_include_file( 'settings/hooks.php' ); tbkkt_include_file( 'infrastructure/supported-blocks.php' ); tbkkt_include_file( 'infrastructure/style-values.php' ); tbkkt_include_file( 'infrastructure/block-markup.php' ); tbkkt_include_file( 'components/accessibility.php' ); tbkkt_include_file( 'components/appearance.php' ); tbkkt_include_file( 'components/background.php' ); tbkkt_include_file( 'components/container.php' ); tbkkt_include_file( 'components/dimensions/block-gap.php' ); tbkkt_include_file( 'components/dimensions/min-height.php' ); tbkkt_include_file( 'components/hover-color.php' ); tbkkt_include_file( 'components/icon/data.php' ); tbkkt_include_file( 'components/icon/markup.php' ); tbkkt_include_file( 'components/icon/shell.php' ); tbkkt_include_file( 'components/layout.php' ); tbkkt_include_file( 'components/link.php' ); tbkkt_include_file( 'components/shape-dividers.php' ); if ( tbkkt_settings_feature_is_enabled( 'responsive_font_size' ) ) : tbkkt_include_file( 'native-extensions/responsive-font-size/block-type-metadata.php' ); tbkkt_include_file( 'native-extensions/responsive-font-size/render-block.php' ); endif; if ( tbkkt_settings_feature_is_enabled( 'responsive_spacing' ) ) : tbkkt_include_file( 'native-extensions/responsive-spacing/helpers.php' ); tbkkt_include_file( 'native-extensions/responsive-spacing/block-type-metadata.php' ); tbkkt_include_file( 'native-extensions/responsive-spacing/render-block.php' ); endif; if ( tbkkt_settings_feature_is_enabled( 'scroll_animation' ) ) : tbkkt_include_file( 'features/animation/block-type-metadata.php' ); tbkkt_include_file( 'features/animation/render-block.php' ); endif; if ( tbkkt_settings_feature_is_enabled( 'responsive_visibility' ) ) : tbkkt_include_file( 'features/responsive-visibility/block-type-metadata.php' ); tbkkt_include_file( 'features/responsive-visibility/render-block.php' ); endif; if ( tbkkt_settings_feature_is_enabled( 'position' ) ) : tbkkt_include_file( 'features/position/block-type-metadata.php' ); tbkkt_include_file( 'features/position/render-block.php' ); endif; tbkkt_include_file( 'infrastructure/render-blocks.php' ); if ( tbkkt_settings_feature_is_enabled( 'floating_overlays' ) ) : tbkkt_include_file( 'post-types/overlay/config.php' ); tbkkt_include_file( 'post-types/overlay/preset-helpers.php' ); tbkkt_include_file( 'post-types/overlay/register.php' ); tbkkt_include_file( 'post-types/overlay/meta.php' ); tbkkt_include_file( 'post-types/overlay/admin-list-columns.php' ); tbkkt_include_file( 'post-types/overlay/editor-allowed-blocks.php' ); tbkkt_include_file( 'post-types/overlay/render-helpers.php' ); tbkkt_include_file( 'post-types/overlay/detection.php' ); tbkkt_include_file( 'post-types/overlay/render-in-front.php' ); endif; }, 20 ); // Blocks ======================================== add_action( 'init', function() { if ( ! function_exists( 'register_block_type' ) ) return; tbkkt_include_file( 'blocks/i18n/block-json-strings.php' ); tbkkt_include_file( 'blocks/block-categories.php' ); if ( function_exists( 'tbkkt_settings_is_block_enabled' ) && tbkkt_settings_is_block_enabled( 'tbkkt/container' ) ) : tbkkt_include_file( 'blocks/container/register.php' ); endif; if ( function_exists( 'tbkkt_settings_is_block_enabled' ) && tbkkt_settings_is_block_enabled( 'tbkkt/icon' ) ) : tbkkt_include_file( 'blocks/icon/register.php' ); endif; if ( function_exists( 'tbkkt_settings_feature_is_enabled' ) && tbkkt_settings_feature_is_enabled( 'floating_overlays' ) ) : tbkkt_include_file( 'blocks/overlay-shell/register.php' ); tbkkt_include_file( 'blocks/overlay-panel/register.php' ); tbkkt_include_file( 'blocks/overlay-toggle/register.php' ); endif; }, 20 );