GC_Customize_Widgets::get_widget_control()

最后更新于:2021-11-27 11:02:07

GC_Customize_Widgets::get_widget_control( array$args)

Retrieves the widget control markup.

参数

$args

(array) (Required) Widget control arguments.

响应

(string) Widget control form HTML markup.

源文件

文件: gc-includes/class-gc-customize-widgets.php

	public function get_widget_control( $args ) {
		$args[0]['before_form']           = '<div class="form">';
		$args[0]['after_form']            = '</div><!-- .form -->';
		$args[0]['before_widget_content'] = '<div class="widget-content">';
		$args[0]['after_widget_content']  = '</div><!-- .widget-content -->';
		ob_start();
		gc_widget_control( ...$args );
		$control_tpl = ob_get_clean();
		return $control_tpl;
	}