Place holder for Favorite Actions dropdown

git-svn-id: https://develop.svn.wordpress.org/trunk@8985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-09-25 23:49:24 +00:00
parent aceb2047b4
commit d7f57bfcdb
3 changed files with 31 additions and 0 deletions

View File

@@ -2446,4 +2446,26 @@ function the_post_password() {
global $post;
if ( isset( $post->post_password ) ) echo attribute_escape( $post->post_password );
}
function favorite_actions() {
$actions = array(
'post-new.php' => __('Add New Post'),
'page-new.php' => __('Add New Page'),
);
$actions = apply_filters('favorite_actions', $actions);
echo '<form class="favorites-form" action="" method="get">';
echo '<p id="favorite-actions" class="favorite-actions">';
echo '<select name="favorite-action">';
foreach ( $actions as $action => $label) {
echo "<option value='$action'>";
echo $label;
echo "</option>\n";
}
echo '</select>';
echo '<input type="submit" value="' . __('Go') . '" name="doaction" id="doaction" class="button action" />';
echo '</p>';
echo '</form>';
}
?>