PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.8.4
Kubio AI Page Builder v2.8.4
2.8.4 2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / lib / integrations / supported-theme-block-partials / supported-theme-block-partials.php
kubio / lib / integrations / supported-theme-block-partials Last commit date
kubio-block-footer-template-part.php 1 year ago kubio-block-header-template-part.php 1 year ago supported-theme-block-partials.php 1 year ago
supported-theme-block-partials.php
55 lines
1 <?php
2
3 function kubio_prepare_classic_theme_block_template_parts() {
4 require_once __DIR__ . '/kubio-block-header-template-part.php';
5 require_once __DIR__ . '/kubio-block-footer-template-part.php';
6 }
7
8 add_action(
9 'after_setup_theme',
10 'kubio_prepare_classic_theme_block_template_parts',
11 20
12 );
13
14 add_filter(
15 str_replace( '-', '_', get_template() ) . '_theme_components',
16 function ( $components ) {
17
18 if ( class_exists( 'KubioBlockBasedHeaderTemplatePart' ) ) {
19 $components['header'] = KubioBlockBasedHeaderTemplatePart::class;
20 }
21
22 if ( class_exists( 'KubioBlockBasedFooterTemplatePart' ) ) {
23 $components['footer'] = KubioBlockBasedFooterTemplatePart::class;
24 }
25
26 add_action(
27 'wp_footer',
28 function () {
29 global $kubio_force_render_partials_style;
30 if ( $kubio_force_render_partials_style ) {
31 kubio_enqueue_frontend_scripts();
32 wp_enqueue_style( 'kubio-block-library' );
33
34 $style = array(
35 // shapes
36 kubio_get_shapes_css(),
37 // colors
38 kubio_render_global_colors(),
39 // global
40 kubio_get_global_data( 'additional_css' ),
41 // page css
42 kubio_get_page_css(),
43 );
44
45 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
46 echo '<style>' . implode( "\n", $style ) . '</style>';
47 }
48 }
49 );
50
51 return $components;
52 },
53 100
54 );
55