Sindbad~EG File Manager

Current Path : /home/xiedrke/malino/wp-content/plugins/trendz-plus/customizer/lib/
Upload File :
Current File : /home/xiedrke/malino/wp-content/plugins/trendz-plus/customizer/lib/class-wp-customize-section.php

<?php
/**
 * Nested Section
 *
 * @link https://gist.github.com/OriginalEXE/9a6183e09f4cae2f30b006232bb154af
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( class_exists( 'WP_Customize_Section' ) ) {

	class Trendz_Customize_Section extends WP_Customize_Section {

		public $section;
		public $type = 'trendz_extended_section';

		public function json(){

			$array                   = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'panel', 'type', 'description_hidden', 'section' ) );
			$array['title']          = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
			$array['content']        = $this->get_content();
			$array['active']         = $this->active();
			$array['instanceNumber'] = $this->instance_number;

			if ( $this->panel ) {

				$array['customizeAction'] = sprintf( 'Customizing &#9656; %s', esc_html( $this->manager->get_panel( $this->panel )->title ) );
			} else {

				$array['customizeAction'] = 'Customizing';
			}

			return $array;
		}
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists