Uname: Linux p3plzcpnl499967.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software: Apache
PHP version: 8.2.30 [ PHP INFO ] PHP os: Linux
Server Ip: 208.109.40.231
Your Ip: 216.73.216.173
User: nayff91c5tsx (10005085) | Group: nayff91c5tsx (10005085)
Safe Mode: OFF
Disable Function:
NONE

name : NestedPanel.php
<?php

namespace Mapsteps\Wpbf\Customizer\Panels;

use WP_Customize_Manager;
use WP_Customize_Panel;

class NestedPanel extends WP_Customize_Panel {

	/**
	 * Type of this panel.
	 *
	 * @var string
	 */
	public $type = 'wpbf-nested';

	/**
	 * Parent panel id.
	 *
	 * @var string
	 */
	public $parent_id = '';

	/**
	 * NestedPanel constructor.
	 *
	 * @param WP_Customize_Manager $manager The customizer manager object.
	 * @param string               $id      The panel ID.
	 * @param array                $args    Optional. Array of properties for the new Panel object. Default empty array.
	 */
	public function __construct( $manager, $id, $args = array() ) {

		parent::__construct( $manager, $id, $args );

		if ( ! empty( $args['parent_id'] ) && is_string( $args['parent_id'] ) ) {
			$this->parent_id = $args['parent_id'];
		}

	}

	/**
	 * Gather the parameters passed to client JavaScript via JSON.
	 *
	 * @since 4.1.0
	 *
	 * @return array The array to be exported to the client as JSON.
	 */
	public function json() {

		$arr = parent::json();

		$arr['parentId'] = $this->parent_id;

		return $arr;

	}

}
© 2026 GrazzMean