Make WordPress Core

Changeset 9003


Ignore:
Timestamp:
09/27/2008 12:02:32 PM (16 years ago)
Author:
azaozz
Message:

Shortcuts drop-down

Location:
trunk/wp-admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.css

    r8998 r9003  
    7979#post-body ul#category-tabs li.ui-tabs-selected, .button-secondary,
    8080#quicktags, #login form .submit input, .search-box .button,
    81 #ed_reply_toolbar {
     81#ed_reply_toolbar, .favorite-action, #favorite-first {
    8282    background-color: #8ebddc !important;
     83}
     84
     85#favorite-actions .favorite-action {
     86    border-top-color: #8ebddc;
    8387}
    8488
     
    210214}
    211215
    212 .submit input, .button, .button-secondary, #login form .submit input, div.dashboard-widget-submit input, #edit-slug-buttons a.save {
     216.submit input,
     217.button,
     218.button-secondary,
     219#login form .submit input,
     220div.dashboard-widget-submit input,
     221#edit-slug-buttons a.save,
     222.favorite-action,
     223#favorite-first {
    213224    background-color: #e5e5e5;
    214225    color: #07273e;
  • trunk/wp-admin/css/colors-fresh.css

    r8998 r9003  
    7979#post-body ul#category-tabs li.ui-tabs-selected, .button-secondary,
    8080#quicktags, #login form .submit input, .search-box .button,
    81 #ed_reply_toolbar {
     81#ed_reply_toolbar, .favorite-action, #favorite-first {
    8282    background-color: #cee1ef !important;
     83}
     84
     85#favorite-actions .favorite-action {
     86    border-top-color: #cee1ef;
    8387}
    8488
     
    210214}
    211215
    212 .submit input, .button, .button-secondary, #login form .submit input, div.dashboard-widget-submit input, #edit-slug-buttons a.save {
     216.submit input,
     217.button,
     218.button-secondary,
     219#login form .submit input,
     220div.dashboard-widget-submit input,
     221#edit-slug-buttons a.save,
     222.favorite-action,
     223#favorite-first {
    213224    background-color: #e5e5e5;
    214225    color: #246;
  • trunk/wp-admin/includes/template.php

    r8988 r9003  
    24802480function favorite_actions() {
    24812481    $actions = array(
    2482         'post-new.php' => __('Add New Post'),
    24832482        'page-new.php' => __('Add New Page'),
     2483        'edit-comments.php' => __('Manage Comments')
    24842484        );
    24852485
    24862486    $actions = apply_filters('favorite_actions', $actions);
    2487     echo '<form class="favorites-form" action="" method="get">';
    2488     echo '<p id="favorite-actions" class="favorite-actions">';
    2489     echo '<select name="favorite-action">';
     2487    echo '<div id="favorite-actions">';
     2488    echo '<div id="favorite-first"><a href="post-new.php">' . __('Add New Post') . '</a></div>';
     2489    echo '<div id="favorite-action">';
    24902490    foreach ( $actions as $action => $label) {
    2491         echo "<option value='$action'>";
     2491        echo "<div class='favorite-action'><a href='$action'>";
    24922492        echo $label;
    2493         echo "</option>\n";
    2494     }
    2495     echo '</select>';
    2496     echo '<input type="submit" value="' . __('Go') . '" name="doaction" id="doaction" class="button action" />';
    2497     echo '</p>';
    2498     echo '</form>';
     2493        echo "</a></div>\n";
     2494    }
     2495    echo "</div></div>\n";
    24992496}
    25002497
  • trunk/wp-admin/js/common.js

    r8953 r9003  
    7777
    7878    $('#dashmenu li.wp-has-submenu').bind( 'mouseenter mouseleave', function() { return menuToggle( $(this).children('ul'), 'toggle' ); } );
     79   
     80    $('#favorite-actions').bind( 'mouseenter mouseleave', function(){$('#favorite-action').slideToggle('fast')} );
    7981
    8082} );
  • trunk/wp-admin/wp-admin.css

    r8998 r9003  
    15801580}
    15811581
    1582 p.favorite-actions {
    1583     position: absolute;
    1584     right: 15px;
    1585     top: 52px;
    1586     margin: 0;
    1587 }
    1588 
    15891582#posts-filter fieldset {
    15901583    float: left;
     
    24982491    padding-right: 6px;
    24992492}
     2493
     2494/* favorite-actions */
     2495#favorite-actions {
     2496    position: absolute;
     2497    right: 15px;
     2498    top: 55px;
     2499    width: 130px;
     2500    z-index: 10;
     2501}
     2502
     2503#favorite-first {
     2504    -moz-border-radius: 4px;
     2505    -khtml-border-radius: 4px;
     2506    -webkit-border-radius: 4px;
     2507    border-radius: 4px;
     2508    border-width: 1px;
     2509    border-style: solid;
     2510    padding: 4px 8px;
     2511}
     2512
     2513.favorite-action {
     2514    margin: -3px 0 0;
     2515    padding: 4px 8px;
     2516    border-width: 1px;
     2517    border-top-width: 3px;
     2518    border-style: solid;
     2519    -moz-border-radius: 0 0 4px 4px;
     2520    -webkit-border-bottom-right-radius: 4px;
     2521    -webkit-border-bottom-left-radius: 4px;
     2522    -khtml-border-bottom-right-radius: 4px;
     2523    -khtml-border-bottom-left-radius: 4px;
     2524    border-bottom-right-radius: 4px;
     2525    border-bottom-left-radius: 4px;
     2526}
     2527
     2528#favorite-action {
     2529    padding: 0;
     2530    margin: 0;
     2531    display: none;
     2532}
     2533#favorite-actions a {
     2534    padding: 4px 0;
     2535    text-decoration: none;
     2536}
Note: See TracChangeset for help on using the changeset viewer.