home *** CD-ROM | disk | FTP | other *** search
/ HTML Examples / WP.iso / wordpress2 / wp-includes / customize / class-wp-customize-new-menu-control.php < prev    next >
Encoding:
PHP Script  |  2017-10-27  |  1.3 KB  |  55 lines

  1. <?php
  2. /**
  3.  * Customize API: WP_Customize_New_Menu_Control class
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Customize
  7.  * @since 4.4.0
  8.  * @deprecated 4.9.0 This file is no longer used as of the menu creation UX introduced in #40104.
  9.  */
  10.  
  11. /**
  12.  * Customize control class for new menus.
  13.  *
  14.  * @since 4.3.0
  15.  * @deprecated 4.9.0 This class is no longer used as of the menu creation UX introduced in #40104.
  16.  *
  17.  * @see WP_Customize_Control
  18.  */
  19. class WP_Customize_New_Menu_Control extends WP_Customize_Control {
  20.  
  21.     /**
  22.      * Control type.
  23.      *
  24.      * @since 4.3.0
  25.      * @var string
  26.      */
  27.     public $type = 'new_menu';
  28.  
  29.     /**
  30.      * Constructor.
  31.      *
  32.      * @since 4.9.0
  33.      *
  34.      * @param WP_Customize_Manager $manager Manager.
  35.      * @param string               $id      ID.
  36.      * @param array                $args    Args.
  37.      */
  38.     public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
  39.         _deprecated_file( basename( __FILE__ ), '4.9.0' ); // @todo Move this outside of class in 5.0, and remove its require_once() from class-wp-customize-control.php. See #42364.
  40.         parent::__construct( $manager, $id, $args );
  41.     }
  42.  
  43.     /**
  44.      * Render the control's content.
  45.      *
  46.      * @since 4.3.0
  47.      */
  48.     public function render_content() {
  49.         ?>
  50.         <button type="button" class="button button-primary" id="create-new-menu-submit"><?php _e( 'Create Menu' ); ?></button>
  51.         <span class="spinner"></span>
  52.         <?php
  53.     }
  54. }
  55.