CoreFiles by mySites.guru
class-wp-customize-nav-menu-name-control.php52 lines, 993 bytes, from wordpress-4.7.21.zip
Raw History Compare with 4.7.20
md5
7be860d996d35f933754a894c8a50833
sha1
d2ac9517455f68f3b0a91a2f207996cc824f5273
sha256
1ff101f4b0c7b8c203af23d6d7197c56ebdd8a80817f2457d6ebc4f7728b1734
<?php
/**
 * Customize API: WP_Customize_Nav_Menu_Name_Control class
 *
 * @package WordPress
 * @subpackage Customize
 * @since 4.4.0
 */

/**
 * Customize control to represent the name field for a given menu.
 *
 * @since 4.3.0
 *
 * @see WP_Customize_Control
 */
class WP_Customize_Nav_Menu_Name_Control extends WP_Customize_Control {

	/**
	 * Type of control, used by JS.
	 *
	 * @since 4.3.0
	 * @access public
	 * @var string
	 */
	public $type = 'nav_menu_name';

	/**
	 * No-op since we're using JS template.
	 *
	 * @since 4.3.0
	 * @access protected
	 */
	protected function render_content() {}

	/**
	 * Render the Underscore template for this control.
	 *
	 * @since 4.3.0
	 * @access protected
	 */
	protected function content_template() {
		?>
		<label>
			<# if ( data.label ) { #>
				<span class="customize-control-title screen-reader-text">{{ data.label }}</span>
			<# } #>
			<input type="text" class="menu-name-field live-update-section-title" />
		</label>
		<?php
	}
}

The same content is in 214 releases, WordPress 4.4-beta2 to 4.8.34. See them all, or every version of this file.