equal
deleted
inserted
replaced
|
1 <?php |
|
2 /** |
|
3 * Customize API: WP_Customize_New_Menu_Section 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 Menu Section Class |
|
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_Section |
|
18 */ |
|
19 class WP_Customize_New_Menu_Section extends WP_Customize_Section { |
|
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 * Any supplied $args override class property defaults. |
|
33 * |
|
34 * @since 4.9.0 |
|
35 * |
|
36 * @param WP_Customize_Manager $manager Customizer bootstrap instance. |
|
37 * @param string $id An specific ID of the section. |
|
38 * @param array $args Section arguments. |
|
39 */ |
|
40 public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) { |
|
41 _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-section.php. See #42364. |
|
42 parent::__construct( $manager, $id, $args ); |
|
43 } |
|
44 |
|
45 /** |
|
46 * Render the section, and the controls that have been added to it. |
|
47 * |
|
48 * @since 4.3.0 |
|
49 */ |
|
50 protected function render() { |
|
51 ?> |
|
52 <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="accordion-section-new-menu"> |
|
53 <button type="button" class="button add-new-menu-item add-menu-toggle" aria-expanded="false"> |
|
54 <?php echo esc_html( $this->title ); ?> |
|
55 </button> |
|
56 <ul class="new-menu-section-content"></ul> |
|
57 </li> |
|
58 <?php |
|
59 } |
|
60 } |