Changeset 42217 for trunk/src/wp-includes/customize/class-wp-customize-nav-menu-location-control.php
- Timestamp:
- 11/23/2017 04:08:42 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-location-control.php
r41899 r42217 57 57 return; 58 58 } 59 60 $value_hidden_class = $no_value_hidden_class = ''; 61 if ( $this->value() ) { 62 $value_hidden_class = ' hidden'; 63 } else { 64 $no_value_hidden_class = ' hidden'; 65 } 59 66 ?> 60 67 <label> … … 75 82 </select> 76 83 </label> 77 <button type="button" class="button-link create-menu<?php if ( $this->value() ) { echo ' hidden'; }?>" data-location-id="<?php echo esc_attr( $this->location_id ); ?>" aria-label="<?php esc_attr_e( 'Create a menu for this location' ); ?>"><?php _e( '+ Create New Menu' ); ?></button>78 <button type="button" class="button-link edit-menu<?php if ( ! $this->value() ) { echo ' hidden'; }?>" aria-label="<?php esc_attr_e( 'Edit selected menu' ); ?>"><?php _e( 'Edit Menu' ); ?></button>84 <button type="button" class="button-link create-menu<?php echo $value_hidden_class; ?>" data-location-id="<?php echo esc_attr( $this->location_id ); ?>" aria-label="<?php esc_attr_e( 'Create a menu for this location' ); ?>"><?php _e( '+ Create New Menu' ); ?></button> 85 <button type="button" class="button-link edit-menu<?php echo $no_value_hidden_class; ?>" aria-label="<?php esc_attr_e( 'Edit selected menu' ); ?>"><?php _e( 'Edit Menu' ); ?></button> 79 86 <?php 80 87 }
Note: See TracChangeset
for help on using the changeset viewer.