Some link manager juggling, still need to have submenu highlight when on sub-sub pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4374db281e
commit
c397ae61cc
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
require_once('admin.php');
|
require_once('admin.php');
|
||||||
|
|
||||||
$title = __('Categories');
|
$title = __('Link Categories');
|
||||||
$parent_file = 'link-manager.php';
|
$parent_file = 'edit.php';
|
||||||
|
|
||||||
wp_enqueue_script( 'admin-categories' );
|
wp_enqueue_script( 'admin-categories' );
|
||||||
require_once ('admin-header.php');
|
require_once ('admin-header.php');
|
||||||
|
|
|
@ -3,7 +3,7 @@ require_once('admin.php');
|
||||||
|
|
||||||
$title = __('Add Link');
|
$title = __('Add Link');
|
||||||
$this_file = 'link-manager.php';
|
$this_file = 'link-manager.php';
|
||||||
$parent_file = 'link-manager.php';
|
$parent_file = 'post-new.php';
|
||||||
|
|
||||||
|
|
||||||
wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
|
wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
|
||||||
|
|
|
@ -3,9 +3,8 @@
|
||||||
// Copyright (C) 2002 Mike Little -- mike@zed1.com
|
// Copyright (C) 2002 Mike Little -- mike@zed1.com
|
||||||
|
|
||||||
require_once('admin.php');
|
require_once('admin.php');
|
||||||
$parent_file = 'link-manager.php';
|
$parent_file = 'edit.php';
|
||||||
$title = __('Import Blogroll');
|
$title = __('Import Blogroll');
|
||||||
$this_file = 'link-import.php';
|
|
||||||
|
|
||||||
$step = $_POST['step'];
|
$step = $_POST['step'];
|
||||||
if (!$step) $step = 0;
|
if (!$step) $step = 0;
|
||||||
|
|
|
@ -16,8 +16,8 @@ if (empty ($cat_id))
|
||||||
if (empty ($order_by))
|
if (empty ($order_by))
|
||||||
$order_by = 'order_name';
|
$order_by = 'order_name';
|
||||||
|
|
||||||
$title = __('Manage Blogroll');
|
$title = __('Manage Links');
|
||||||
$this_file = $parent_file = 'link-manager.php';
|
$this_file = $parent_file = 'edit.php';
|
||||||
include_once ("./admin-header.php");
|
include_once ("./admin-header.php");
|
||||||
|
|
||||||
if (!current_user_can('manage_links'))
|
if (!current_user_can('manage_links'))
|
||||||
|
@ -75,7 +75,8 @@ if ( isset($_GET['deleted']) ) {
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
|
||||||
<h2><?php _e('Blogroll Management'); ?></h2>
|
<h2><?php _e('Manage Links'); ?></h2>
|
||||||
|
<p><a href="link-add.php"><?php _e('Add Link'); ?></a> | <a href="edit-link-categories.php"><?php _e('Link Categories'); ?></a> | <a href="link-import.php"><?php _e('Import Links'); ?></a></p>
|
||||||
<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>
|
<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>
|
||||||
<form id="cats" method="get" action="">
|
<form id="cats" method="get" action="">
|
||||||
<p><?php
|
<p><?php
|
||||||
|
|
|
@ -31,6 +31,7 @@ $menu[40] = array(__('Settings'), 'manage_options', 'options-general.php');
|
||||||
$_wp_real_parent_file['post.php'] = 'post-new.php'; // Back-compat
|
$_wp_real_parent_file['post.php'] = 'post-new.php'; // Back-compat
|
||||||
$submenu['post-new.php'][5] = array(__('Post'), 'edit_posts', 'post-new.php');
|
$submenu['post-new.php'][5] = array(__('Post'), 'edit_posts', 'post-new.php');
|
||||||
$submenu['post-new.php'][10] = array(__('Page'), 'edit_pages', 'page-new.php');
|
$submenu['post-new.php'][10] = array(__('Page'), 'edit_pages', 'page-new.php');
|
||||||
|
$submenu['post-new.php'][15] = array(__('Link'), 'manage_links', 'link-add.php');
|
||||||
|
|
||||||
$submenu['edit-comments.php'][5] = array(__('Comments'), 'edit_posts', 'edit-comments.php');
|
$submenu['edit-comments.php'][5] = array(__('Comments'), 'edit_posts', 'edit-comments.php');
|
||||||
$awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
|
$awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
|
||||||
|
@ -45,11 +46,6 @@ $submenu['edit.php'][25] = array(__('Media Library'), 'upload_files', 'upload.ph
|
||||||
$submenu['edit.php'][30] = array(__('Import'), 'import', 'import.php');
|
$submenu['edit.php'][30] = array(__('Import'), 'import', 'import.php');
|
||||||
$submenu['edit.php'][35] = array(__('Export'), 'import', 'export.php');
|
$submenu['edit.php'][35] = array(__('Export'), 'import', 'export.php');
|
||||||
|
|
||||||
|
|
||||||
$submenu['edit.php'][50] = array(__('Add Link'), 'manage_links', 'link-add.php'); // todo: axe
|
|
||||||
$submenu['edit.php'][55] = array(__('Import Links'), 'manage_links', 'link-import.php'); // todo: axe
|
|
||||||
$submenu['edit.php'][60] = array(__('Categories'), 'manage_links', 'edit-link-categories.php'); // todo: axe
|
|
||||||
|
|
||||||
if ( current_user_can('edit_users') ) {
|
if ( current_user_can('edit_users') ) {
|
||||||
$_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
|
$_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
|
||||||
$submenu['users.php'][5] = array(__('Authors & Users'), 'edit_users', 'users.php');
|
$submenu['users.php'][5] = array(__('Authors & Users'), 'edit_users', 'users.php');
|
||||||
|
|
Loading…
Reference in New Issue