Ticket #3695: bookmark.diff
File bookmark.diff, 7.6 KB (added by , 18 years ago) |
---|
-
edit-link-form.php
1 1 <?php 2 2 if ( ! empty($link_id) ) { 3 $heading = __('Edit Link');3 $heading = __('Edit Bookmark'); 4 4 $submit_text = __('Save Changes »'); 5 5 $form = '<form name="editlink" id="editlink" method="post" action="link.php">'; 6 6 $nonce_action = 'update-bookmark_' . $link_id; 7 7 } else { 8 $heading = __('Add Link');8 $heading = __('Add Bookmark'); 9 9 $submit_text = __('Add Link »'); 10 10 $form = '<form name="addlink" id="addlink" method="post" action="link.php">'; 11 11 $nonce_action = 'add-bookmark'; -
link-add.php
1 1 <?php 2 2 require_once('admin.php'); 3 3 4 $title = __('Add Link'); 5 $this_file = 'link-manager.php'; 6 $parent_file = 'link-manager.php'; 4 $title = __('Add Bookmark'); 5 $this_file = 'link-add.php'; 6 $parent_file = 'edit.php'; 7 $submenu_file = 'link-manager.php'; 7 8 8 9 9 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image', 10 10 'description', 'visible', 'target', 'category', 'link_id', 11 11 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel', -
link-import.php
3 3 // Copyright (C) 2002 Mike Little -- mike@zed1.com 4 4 5 5 require_once('admin.php'); 6 $parent_file = 'link-manager.php';7 6 $title = __('Import Blogroll'); 8 7 $this_file = 'link-import.php'; 8 $parent_file = 'edit.php'; 9 $submenu_file = 'link-import.php'; 9 10 10 11 $step = $_POST['step']; 11 12 if (!$step) $step = 0; … … 22 23 23 24 <div class="wrap"> 24 25 25 <h2><?php _e('Import your b logrollfrom another system') ?> </h2>26 <h2><?php _e('Import your bookmarks from another system') ?> </h2> 26 27 <form enctype="multipart/form-data" action="link-import.php" method="post" name="blogroll"> 27 28 <?php wp_nonce_field('import-bookmarks') ?> 28 29 … … 42 43 43 44 </div> 44 45 45 <p style="clear: both; margin-top: 1em;"><?php _e('Now select a category you want to put these links in.') ?><br />46 <p style="clear: both; margin-top: 1em;"><?php _e('Now select a category you want to put these bookmarks in.') ?><br /> 46 47 <?php _e('Category:') ?> <select name="cat_id"> 47 48 <?php 48 49 $categories = get_categories('hide_empty=0'); -
link-manager.php
16 16 if (empty ($order_by)) 17 17 $order_by = 'order_name'; 18 18 19 $title = __('Manage Blogroll'); 20 $this_file = $parent_file = 'link-manager.php'; 19 $title = __('Bookmarks'); 20 $this_file = 'link-manager.php'; 21 $parent_file = 'edit.php'; 22 $submenu_file = 'link-manager.php'; 23 21 24 include_once ("./admin-header.php"); 22 25 23 26 if (!current_user_can('manage_links')) 24 wp_die(__("You do not have sufficient permissions to edit the links for this blog."));27 wp_die(__("You do not have sufficient permissions to edit the Bookmarks for this blog.")); 25 28 26 29 switch ($order_by) { 27 30 case 'order_id' : … … 65 68 if ( isset($_GET['deleted']) ) { 66 69 echo '<div style="background-color: rgb(207, 235, 247);" id="message" class="updated fade"><p>'; 67 70 $deleted = (int) $_GET['deleted']; 68 printf(__ngettext('%s link deleted.', '%s links deleted', $deleted), $deleted);71 printf(__ngettext('%s bookmark deleted.', '%s bookmarks deleted', $deleted), $deleted); 69 72 echo '</p></div>'; 70 73 } 71 74 ?> 72 75 73 76 <div class="wrap"> 74 77 75 <h2><?php _e('B logrollManagement'); ?></h2>76 <p><?php _e('Here you <a href="link-add.php">add links</a> to sites that you visit often and share them on your blog. When you have a list of links in your sidebar to other blogs, it’s called a “blogroll.”'); ?></p>78 <h2><?php _e('Bookmark Management'); ?></h2> 79 <p><?php _e('Here you <a href="link-add.php">add bookmarks</a> to sites that you visit often and share them on your blog. When you have a list of bookmarks in your sidebar to other blogs, it’s called a “blogroll.”'); ?></p> 77 80 <form id="cats" method="get" action=""> 78 81 <p><?php 79 82 $categories = get_categories("hide_empty=1&type=link"); … … 84 87 $select_cat .= "</select>\n"; 85 88 86 89 $select_order = "<select name=\"order_by\">\n"; 87 $select_order .= '<option value="order_id"' . (($order_by == 'order_id') ? " selected='selected'" : '') . '>' . __(' Link ID') . "</option>\n";90 $select_order .= '<option value="order_id"' . (($order_by == 'order_id') ? " selected='selected'" : '') . '>' . __('Bookmark ID') . "</option>\n"; 88 91 $select_order .= '<option value="order_name"' . (($order_by == 'order_name') ? " selected='selected'" : '') . '>' . __('Name') . "</option>\n"; 89 92 $select_order .= '<option value="order_url"' . (($order_by == 'order_url') ? " selected='selected'" : '') . '>' . __('Address') . "</option>\n"; 90 93 $select_order .= '<option value="order_rating"' . (($order_by == 'order_rating') ? " selected='selected'" : '') . '>' . __('Rating') . "</option>\n"; 91 94 $select_order .= "</select>\n"; 92 95 93 printf(__('Currently showing %1$s links ordered by %2$s'), $select_cat, $select_order);96 printf(__('Currently showing %1$s Bookmarks ordered by %2$s'), $select_cat, $select_order); 94 97 ?> 95 98 <input type="submit" name="action" value="<?php _e('Update »') ?>" /></p> 96 99 </form> … … 195 198 196 199 <div id="ajax-response"></div> 197 200 198 <p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Links') ?> »" onclick="return confirm('<?php echo js_escape(__("You are about to delete these links permanently.\n'Cancel' to stop, 'OK' to delete.")); ?>')" /></p>201 <p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Bookmarks') ?> »" onclick="return confirm('<?php echo js_escape(__("You are about to delete these Bookmarks permanently.\n'Cancel' to stop, 'OK' to delete.")); ?>')" /></p> 199 202 </form> 200 203 201 204 <?php } ?> -
menu.php
16 16 $menu[10] = array(__('Manage'), 'edit_posts', 'edit.php'); 17 17 18 18 $menu[15] = array(__('Comments'), 'edit_posts', 'edit-comments.php'); 19 $menu[20] = array(__('Blogroll'), 'manage_links', 'link-manager.php');20 19 $menu[25] = array(__('Presentation'), 'switch_themes', 'themes.php'); 21 20 $menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php'); 22 21 if ( current_user_can('edit_users') ) … … 40 39 $submenu['edit.php'][12] = array(__('Uploads'), 'upload_files', 'upload.php'); 41 40 $submenu['edit.php'][15] = array(__('Categories'), 'manage_categories', 'categories.php'); 42 41 $submenu['edit.php'][30] = array(__('Files'), 'edit_files', 'templates.php'); 42 $submenu['edit.php'][32] = array(__('Bookmarks'), 'manage_links', 'link-manager.php'); 43 43 $submenu['edit.php'][35] = array(__('Import'), 'import', 'import.php'); 44 44 $submenu['edit.php'][40] = array(__('Export'), 'import', 'export.php'); 45 $submenu['edit.php'][45] = array(__('Import Bookmarks'), 'manage_links', 'link-import.php'); 45 46 46 $submenu['link-manager.php'][5] = array(__('Manage Blogroll'), 'manage_links', 'link-manager.php');47 $submenu['link-manager.php'][10] = array(__('Add Link'), 'manage_links', 'link-add.php');48 $submenu['link-manager.php'][20] = array(__('Import Links'), 'manage_links', 'link-import.php');49 47 50 48 if ( current_user_can('edit_users') ) { 51 49 $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.