GC_Admin_Bar::_render_container()

最后更新于:2021-11-26 09:10:07

GC_Admin_Bar::_render_container( object$node)

参数

$node

(object) (Required)

源文件

文件: gc-includes/class-gc-admin-bar.php

	final protected function _render_container( $node ) {
		if ( 'container' !== $node->type || empty( $node->children ) ) {
			return;
		}

		echo '<div id="' . esc_attr( 'gc-admin-bar-' . $node->id ) . '" class="ab-group-container">';
		foreach ( $node->children as $group ) {
			$this->_render_group( $group );
		}
		echo '</div>';
	}