Changeset 13296
- Timestamp:
- 02/22/2010 06:12:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-navigation.php
r13295 r13296 174 174 } 175 175 // DISPLAY SUCCESS MESSAGE IF POST CORRECT 176 $messagesdiv = '<div id="message" class="updated fade below-h2"><p>' .$themename."'s Custom Menu has been updated!</p></div>";176 $messagesdiv = '<div id="message" class="updated fade below-h2"><p>' . __('The menu has been updated.') . '</p></div>'; 177 177 } 178 178 … … 199 199 200 200 <input type="hidden" name="licount" id="licount" value="0" /> 201 <input type="hidden" name="menu_id_in_edit" id="menu_id_in_edit" value="<?php echo $menu_selected_id; ?>" />201 <input type="hidden" name="menu_id_in_edit" id="menu_id_in_edit" value="<?php echo esc_attr($menu_selected_id); ?>" /> 202 202 203 203 <div class="sidebar-name"> … … 262 262 </span><!-- /.checkboxes --> 263 263 264 <input id="set_wp_menu" type="submit" value=" Set Menu" name="set_wp_menu" class="button" /><br />264 <input id="set_wp_menu" type="submit" value="<?php esc_attr_e('Set Menu'); ?>" name="set_wp_menu" class="button" /><br /> 265 265 266 266 <span> 267 267 <label><?php _e('Reset Menu to Default'); ?></label> 268 <input id="reset_wp_menu" type="submit" value="Reset" name="reset_wp_menu" class="button" onclick="return confirm(' Are you sure you want to RESET the Custom Navigation Menu to its Default Settings?');" />268 <input id="reset_wp_menu" type="submit" value="Reset" name="reset_wp_menu" class="button" onclick="return confirm('<?php _e('Are you sure you want to reset the menu to its default settings?'); ?>');" /> 269 269 </span> 270 270 … … 290 290 $selected_option = ''; 291 291 ?> 292 <option value="<?php echo $menu_term->term_id; ?>" <?php echo $selected_option; ?>><?php echo $menu_term->name; ?></option>292 <option value="<?php echo esc_attr($menu_term->term_id); ?>" <?php echo $selected_option; ?>><?php echo $menu_term->name; ?></option> 293 293 <?php 294 294 … … 391 391 392 392 //GET PHP pages 393 var dataposts = "<?php echo $page_name; ?>".split("|");393 var dataposts = "<?php echo esc_js($page_name); ?>".split("|"); 394 394 395 395 //Set autocomplete … … 410 410 411 411 412 <input type="text" onfocus="jQuery('#page-search').attr('value','');" id="page-search" value=" Search Pages" />412 <input type="text" onfocus="jQuery('#page-search').attr('value','');" id="page-search" value="<?php esc_attr_e('Search Pages'); ?>" /> 413 413 414 414 <a id="show-pages" style="cursor:pointer;" onclick="jQuery('#existing-pages').css('display','block');jQuery('#page-search').attr('value','');jQuery('#existing-pages dt').css('display','block');jQuery('#show-pages').hide();jQuery('#hide-pages').show();">View All</a> … … 467 467 } 468 468 } else { 469 $cat_name = "No categories available";469 $cat_name = __('No categories available'); 470 470 } 471 471 … … 476 476 477 477 //GET PHP categories 478 var datacats = "<?php echo $cat_name; ?>".split("|");478 var datacats = "<?php echo esc_js($cat_name); ?>".split("|"); 479 479 480 480 //Set autocomplete … … 529 529 <input type="hidden" id="templatedir" value="<?php echo esc_attr($templatedir); ?>" /> 530 530 <input id="custom_menu_item_name" type="text" value="Menu Item" onfocus="jQuery('#custom_menu_item_name').attr('value','');" /> 531 <label> Menu Text</label><br />532 <input id="custom_menu_item_description" type="text" value=" A description" <?php if ($advanced_option_descriptions == 'no') { ?>style="display:none;"<?php } ?> onfocus="jQuery('#custom_menu_item_description').attr('value','');" />531 <label><?php _e('Menu Text'); ?></label><br /> 532 <input id="custom_menu_item_description" type="text" value="<?php esc_attr_e('A description'); ?>" <?php if ($advanced_option_descriptions == 'no') { ?>style="display:none;"<?php } ?> onfocus="jQuery('#custom_menu_item_description').attr('value','');" /> 533 533 <label <?php if ($advanced_option_descriptions == 'no') { ?>style="display:none;"<?php } ?> >Description</label> 534 <a class="addtomenu" onclick="appendToList('<?php echo $templatedir; ?>','Custom','','','','0','');jQuery('#custom_menu_item_name').attr('value','Menu Item');jQuery('#custom_menu_item_description').attr('value','A description');"> Add to menu</a>534 <a class="addtomenu" onclick="appendToList('<?php echo $templatedir; ?>','Custom','','','','0','');jQuery('#custom_menu_item_name').attr('value','Menu Item');jQuery('#custom_menu_item_description').attr('value','A description');"><?php _e('Add to menu'); ?></a> 535 535 <div class="fix"></div> 536 536 </div> … … 546 546 </script> 547 547 548 <div id="dialog-confirm" title=" Edit Menu Item">548 <div id="dialog-confirm" title="<?php esc_attr_e('Edit Menu Item'); ?>"> 549 549 </label><input id="edittitle" type="text" name="edittitle" value="" /><label class="editlabel" for="edittitle">Menu Title</label><br /> 550 550 <input id="editlink" type="text" name="editlink" value="" /><label class="editlabel" for="editlink">URL</label><br />
Note: See TracChangeset
for help on using the changeset viewer.