CoreFiles by mySites.guru
class-wp-customize-new-menu-section.php46 lines, 965 bytes, from wordpress-4.7.21.zip
Raw History Compare with 4.7.20
md5
e8d4fc64423b7f95c7ae0a4a87ed886d
sha1
e21c3e5241014cbd0f901c4dbec4ae3bed6e81b9
sha256
ab44a58ff12f5e53ae96912b369c09c945955b9efac3448b4cfd77b954c71ff4
<?php
/**
 * Customize API: WP_Customize_New_Menu_Section class
 *
 * @package WordPress
 * @subpackage Customize
 * @since 4.4.0
 */

/**
 * Customize Menu Section Class
 *
 * Implements the new-menu-ui toggle button instead of a regular section.
 *
 * @since 4.3.0
 *
 * @see WP_Customize_Section
 */
class WP_Customize_New_Menu_Section extends WP_Customize_Section {

	/**
	 * Control type.
	 *
	 * @since 4.3.0
	 * @access public
	 * @var string
	 */
	public $type = 'new_menu';

	/**
	 * Render the section, and the controls that have been added to it.
	 *
	 * @since 4.3.0
	 * @access protected
	 */
	protected function render() {
		?>
		<li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="accordion-section-new-menu">
			<button type="button" class="button add-new-menu-item add-menu-toggle" aria-expanded="false">
				<?php echo esc_html( $this->title ); ?>
			</button>
			<ul class="new-menu-section-content"></ul>
		</li>
		<?php
	}
}

The same content is in 92 releases, WordPress 4.7-beta1 to 4.8.34. See them all, or every version of this file.