| 663 | | if ( current_theme_supports( 'widgets' ) ) |
| 664 | | $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) ); |
| | 663 | if ( current_theme_supports( 'widgets' ) ) { |
| | 664 | $wp_admin_bar->add_menu( array( |
| | 665 | 'parent' => 'appearance', |
| | 666 | 'id' => 'widgets', |
| | 667 | 'title' => __('Widgets'), |
| | 668 | 'href' => admin_url('widgets.php'), |
| | 669 | 'meta' => array( |
| | 670 | 'class' => 'hide-if-customize', |
| | 671 | ), |
| | 672 | ) ); |
| | 673 | } |
| 666 | | if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) |
| 667 | | $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php') ) ); |
| | 675 | if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) { |
| | 676 | $wp_admin_bar->add_menu( array( |
| | 677 | 'parent' => 'appearance', |
| | 678 | 'id' => 'menus', |
| | 679 | 'title' => __('Menus'), |
| | 680 | 'href' => admin_url('nav-menus.php'), |
| | 681 | ) ); |
| | 682 | } |
| 669 | | if ( current_theme_supports( 'custom-background' ) ) |
| 670 | | $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'background', 'title' => __('Background'), 'href' => admin_url('themes.php?page=custom-background') ) ); |
| | 684 | if ( current_theme_supports( 'custom-background' ) ) { |
| | 685 | $wp_admin_bar->add_menu( array( |
| | 686 | 'parent' => 'appearance', |
| | 687 | 'id' => 'background', |
| | 688 | 'title' => __('Background'), |
| | 689 | 'href' => admin_url('themes.php?page=custom-background'), |
| | 690 | ) ); |
| | 691 | } |
| 672 | | if ( current_theme_supports( 'custom-header' ) ) |
| 673 | | $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'header', 'title' => __('Header'), 'href' => admin_url('themes.php?page=custom-header') ) ); |
| | 693 | if ( current_theme_supports( 'custom-header' ) ) { |
| | 694 | $wp_admin_bar->add_menu( array( |
| | 695 | 'parent' => 'appearance', |
| | 696 | 'id' => 'header', |
| | 697 | 'title' => __('Header'), |
| | 698 | 'href' => admin_url('themes.php?page=custom-header'), |
| | 699 | ) ); |
| | 700 | } |