Change the menus Link Target to checkbox, props nacin, fixes #17521

git-svn-id: https://develop.svn.wordpress.org/trunk@18748 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2011-09-22 05:44:25 +00:00
parent 033ed78e03
commit 23824f9f30
1 changed files with 3 additions and 6 deletions

View File

@ -143,13 +143,10 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
<input type="text" id="edit-menu-item-attr-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->post_excerpt ); ?>" />
</label>
</p>
<p class="field-link-target description description-thin">
<p class="field-link-target description">
<label for="edit-menu-item-target-<?php echo $item_id; ?>">
<?php _e( 'Link Target' ); ?><br />
<select id="edit-menu-item-target-<?php echo $item_id; ?>" class="widefat edit-menu-item-target" name="menu-item-target[<?php echo $item_id; ?>]">
<option value="" <?php selected( $item->target, ''); ?>><?php _e('Same window or tab'); ?></option>
<option value="_blank" <?php selected( $item->target, '_blank'); ?>><?php _e('New window or tab'); ?></option>
</select>
<input type="checkbox" id="edit-menu-item-target-<?php echo $item_id; ?>" value="_blank" name="menu-item-target[<?php echo $item_id; ?>]"<?php checked( $item->target, '_blank' ); ?> />
<?php _e( 'Open link in a new window/tab' ); ?>
</label>
</p>
<p class="field-css-classes description description-thin">