Add Related section to all write/edit pages

git-svn-id: http://svn.automattic.com/wordpress/trunk@6949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-20 23:43:06 +00:00
parent 3378e3b20b
commit efc3b70996
4 changed files with 25 additions and 5 deletions

View File

@ -175,17 +175,19 @@ if ( ('edit' == $action) && current_user_can('delete_post', $post_ID) )
<?php endif; ?>
</p>
<?php if ($post_ID): ?>
<div class="inside">
<p><strong><?php _e('Related') ?></strong></p>
<ul>
<?php if ($post_ID): ?>
<li><a href="edit.php?p=<?php echo $post_ID ?>"><?php _e('See Comments on this Post') ?></a></li>
<?php endif; ?>
<li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li>
<li><a href="edit.php"><?php _e('Manage All Posts') ?></a></li>
<li><a href="categories.php"><?php _e('Manage All Categories') ?></a></li>
<li><a href="edit-tags.php"><?php _e('Manage All Tags') ?></a></li>
</ul>
</div>
<?php endif; ?>
<?php do_action('submitpost_box'); ?>
</div>

View File

@ -83,6 +83,15 @@ $time = mysql2date(get_option('time_format'), $comment->comment_date);
echo "<a href='" . wp_nonce_url("comment.php?action=deletecomment&amp;c=$comment->comment_ID", 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete comment') . "</a>";
?>
</p>
<div class="inside">
<p><strong><?php _e('Related') ?></strong></p>
<ul>
<li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li>
<li><a href="moderation.php"><?php _e('Moderate Comments') ?></a></li>
</ul>
</div>
<?php do_action('submitcomment_box'); ?>
</div>

View File

@ -75,6 +75,16 @@ function xfn_check($class, $value = '', $deprecated = '') {
<p class="submit">
<input type="submit" name="save" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" />
</p>
<div class="inside">
<p><strong><?php _e('Related') ?></strong></p>
<ul>
<li><a href="link-manager.php"><?php _e('Manage All Links') ?></a></li>
<li><a href="edit-link-categories.php"><?php _e('Manage All Categories') ?></a></li>
<li><a href="link-import.php"><?php _e('Import Links') ?></a></li>
</ul>
</div>
<?php do_action('submitlink_box'); ?>
</div>

View File

@ -140,18 +140,17 @@ if ( ('edit' == $action) && current_user_can('delete_page', $post_ID) )
<?php endif; ?>
</p>
<?php if ($post_ID): ?>
<div class="inside">
<p><strong><?php _e('Related') ?></strong></p>
<ul>
<?php if ($post_ID): ?>
<li><a href="edit-pages.php?p=<?php echo $post_ID ?>"><?php _e('See Comments on this Page') ?></a></li>
<?php endif; ?>
<li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li>
<li><a href="edit-pages.php"><?php _e('Manage All Pages') ?></a></li>
</ul>
</div>
<?php endif; ?>
<?php do_action('submitpage_box'); ?>
</div>