PluginProbe
Gutenberg / 7.4.0
Gutenberg v7.4.0
23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 7.4.0 All 402 releases
gutenberg / lib / class-wp-customize-widget-blocks-control.php

class-wp-customize-widget-blocks-control.php in Gutenberg 7.4.0, at lib/class-wp-customize-widget-blocks-control.php

41 lines 811 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Customizer Widget Blocks Section: WP_Customize_Widget_Blocks_Control class.
4 *
5 * @package gutenberg
6 * @since 6.1.0
7 */
8
9 /**
10 * Class that renders the Customizer control for editing widgets with Gutenberg.
11 *
12 * @since 6.1.0
13 */
14 class WP_Customize_Widget_Blocks_Control extends WP_Customize_Control {
15 /**
16 * Enqueue control related scripts/styles.
17 *
18 * @since 6.1.0
19 */
20 public function enqueue() {
21 gutenberg_widgets_init( 'gutenberg_customizer' );
22 }
23
24 /**
25 * Render the control's content.
26 *
27 * @since 6.1.0
28 */
29 public function render_content() {
30 ?>
31 <input
32 id="_customize-input-gutenberg_widget_blocks"
33 type="hidden"
34 value="<?php echo esc_attr( $this->value() ); ?>"
35 <?php $this->link(); ?>
36 />
37 <?php
38 the_gutenberg_widgets( 'gutenberg_customizer' );
39 }
40 }
41