Make WordPress Core

Changeset 9673


Ignore:
Timestamp:
11/14/2008 01:20:20 AM (18 years ago)
Author:
ryan
Message:

Press This update from noel. see #7949

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/press-this.css

    r9371 r9673  
    1717}
    1818
    19 .button,
    2019#poststuff #edButtonPreview,
    2120#poststuff #edButtonHTML {
    22         font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
    23         padding: 3px 5px;
    24         font-size: 12px;
    25         line-height: 1.5em;
    26         border-width: 1px;
    27         border-style: solid;
    28         -moz-border-radius: 3px;
    29         -khtml-border-radius: 3px;
    30         -webkit-border-radius: 3px;
    31         border-radius: 3px;
    32         cursor: pointer;
    33         margin-left: 5px;
    34         text-decoration: none;
    35 }
     21-moz-border-radius-bottomleft:0;
     22-moz-border-radius-bottomright:0;
     23-moz-border-radius-topleft:3px;
     24-moz-border-radius-topright:3px;
     25border-style:solid;
     26border-width:1px;
     27cursor:pointer;
     28display:block;
     29height:18px;
     30margin:0px 5px 0 0;
     31padding:0px 5px 0px;
     32background-color:#E9E9E9;
     33border-bottom-color:#E9E9E9;
     34color:#333333;
     35font-size: 10px;
     36line-height: 18px;
     37}
     38
     39
    3640
    3741.howto {
     42margin-top: 2px;
     43margin-bottom: 3px;
    3844        font-size: 11px;
    3945        font-style: italic;
     
    4854        padding: 0;
    4955        width: 100%;
    50         border-style: solid;
    5156        color: #333;
    5257}
     
    9398}
    9499
    95 #post_title {
    96         width: 99%;
    97 }
    98 
    99 .titlewrap {
    100         border-style: solid;
    101         border-width: 1px;
    102         padding: 2px 3px;
    103         border-color: #ccc;
    104 }
    105 .titlewrap input {
    106         font-size: 1.2em;
    107 }
    108 
    109100#poststuff h2, #poststuff h3 {
    110101        font-size: 14px;
     
    112103        padding: 7px;
    113104        margin: 0 0 10px;
    114         background-color: #eaf3fa;
    115 }
    116 
    117 #poststuff .stuffbox {
    118         border: 1px solid white;
    119         border-color: #EBEBEB #ccc #ccc #EBEBEB;
    120         padding: 2px;
    121         margin-bottom: 10px;
     105       
     106        background-image:url(../images/postbox-bg.gif);
     107background-position:left top;
     108background-repeat:repeat-x;
     109
     110font-size:12px;
     111font-weight:bold;
     112line-height:1;
     113margin:0 0 10px;
     114padding:7px 9px;
     115text-shadow:0 1px 0 #FFFFFF;
     116}
     117
     118.metabox-holder .postbox,
     119 .postbox,
     120.stuffbox {
     121        margin-bottom: 20px;
     122        border-width: 1px;
     123        border-style: solid;
     124        line-height: 1;
     125        -moz-border-radius: 6px;
     126        -khtml-border-radius: 6px;
     127        -webkit-border-radius: 6px;
     128        border-radius: 6px;
     129}
     130.titlediv {
     131border-color:#DFDFDF;
     132}
     133#title {
     134-moz-border-radius-bottomleft:6px;
     135-moz-border-radius-bottomright:6px;
     136-moz-border-radius-topleft:6px;
     137-moz-border-radius-topright:6px;
     138border-style:solid;
     139border-width:1px;
     140font-size:1.7em;
     141outline-color:-moz-use-text-color;
     142outline-style:none;
     143outline-width:medium;
     144padding:3px 4px;
     145width:98%;
     146}
     147.postbox h2 {
     148background-image:url(../images/postbox-bg.gif);
     149background-position:left top;
     150background-repeat:repeat-x;
     151background-color:#DFDFDF;
    122152}
    123153
    124154.editor-container {
    125         border-width: 1px;
    126         border-color: #ccc;
    127         border-style: solid;
    128         margin-bottom: 1em;
    129         margin-top: -10px;
     155        -moz-border-radius-bottomleft:0;
     156-moz-border-radius-bottomright:0;
     157-moz-border-radius-topleft:6px;
     158-moz-border-radius-topright:6px;
     159border-collapse:separate;
     160border-style:solid;
     161border-width:1px;
     162border-color:#DFDFDF;
    130163}
    131164
    132165.postdivrich {
    133166        position: relative;
    134         margin-top: 10px;
     167        padding-top: 25px;
    135168}
    136169
     
    146179        float: left;
    147180        list-style: none;
     181        margin-right: 10px;
    148182}
    149183
     
    214248/* Video */
    215249#embed-code {
    216         width: 100%;
    217         border: 0;
     250width: 100%;
    218251        height: 98px;
    219252}
     
    222255#viewsite {
    223256        padding: 0;
    224         margin: 0;
     257        margin: 0 0 20px 0;
     258        font-size: 10px;
     259        clear: both;
    225260}
    226261
    227262#viewsite .button {
    228         width: 196px;
    229         margin: 0 0 10px 0;
     263        margin: 0 0 0px 0;
    230264        display: block;
    231265}
     
    270304
    271305#categorydiv {
    272         padding: 0.5em 0.9em;
     306
    273307}
    274308
     
    287321        height: 150px;
    288322        overflow: auto;
    289         padding: 0.5em 0.9em;
    290323}
    291324
     
    307340        margin: 0;
    308341}
     342#tagadd {
     343margin-left: 3px;
     344}
    309345
    310346#tagchecklist {
    311         padding-left: 1em;
     347margin-top: 3px;
    312348        margin-bottom: 1em;
    313349        font-size: 12px;
     
    344380
    345381/* Submit */
    346 .submitbox {
    347         margin-top: -10px;
    348 }
    349 
    350 .submitbox .submit {
    351         font-size: 11px;
    352         padding: 12px 10px 10px;
    353         text-align: left;
    354 }
    355 
    356 .submit {
    357         border-top: 1px solid #ccc;
    358         margin: 10px 0 0;
    359         padding: 1.5em 0 0;
    360         -moz-border-radius: 3px 3px 0 0;
    361         -webkit-border-top-left-radius: 3px;
    362         -webkit-border-top-right-radius: 3px;
    363         -khtml-border-top-left-radius: 3px;
    364         -khtml-border-top-right-radius: 3px;
    365         border-top-left-radius: 3px;
    366         border-top-right-radius: 3px;
     382
     383.submit input,
     384.button,
     385.button-primary,
     386.button-secondary,
     387.button-highlighted,
     388#postcustomstuff .submit input {
     389        font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
     390        text-decoration: none;
     391        font-size: 11px !important;
     392        line-height: 16px;
     393        padding: 2px 8px;
     394        cursor: pointer;
     395        border-width: 1px;
     396        border-style: solid;
     397        -moz-border-radius: 11px;
     398        -khtml-border-radius: 11px;
     399        -webkit-border-radius: 11px;
     400        border-radius: 11px;
     401        -moz-box-sizing: content-box;
     402        -webkit-box-sizing: content-box;
     403        -khtml-box-sizing: content-box;
     404        box-sizing: content-box;
     405}
     406.button-primary {
     407background:#21759B url(../images/button-grad.png) repeat-x scroll left top;
     408border-color:#21759B;
     409color:#FFFFFF;
    367410}
    368411
  • trunk/wp-admin/press-this.php

    r9589 r9673  
    5757        $quick['post_category'] = $_REQUEST['post_category'];
    5858        $quick['tags_input'] = $_REQUEST['tags_input'];
    59         $quick['post_title'] = $_REQUEST['post_title'];
     59        $quick['post_title'] = $_REQUEST['title'];
    6060        $quick['post_content'] = '';
    6161
     
    125125                        });
    126126                </script>
     127                <div class="postbox">
    127128                <h2><label for="embed-code"><?php _e('Embed Code') ?></label></h2>
    128                 <div class="titlewrap" >
     129                <div class="inside">
     130
    129131                        <textarea name="embed-code" id="embed-code" rows="8" cols="40"><?php echo format_to_edit($selection, true); ?></textarea>
    130                 </div>
     132
    131133                <p id="options"><a href="#" class="select button"><?php _e('Insert Video'); ?></a> <a href="#" class="close button"><?php _e('Cancel'); ?></a></p>
     134                </div>
     135                </div>
    132136                <?php break;
    133137               
     
    142146                        });
    143147                </script>
    144                 <h3 id="title"><label for="post_title"><?php _e('Description') ?></label></h3>
     148                <h3 id="title"><label for="title"><?php _e('Description') ?></label></h3>
    145149                <div class="titlewrap">
    146150                        <input id="this_photo_description" name="photo_description" class="text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo attribute_escape($title);?>"/>
     
    151155
    152156                <p id="options"><a href="#" class="select button"><?php _e('Insert Image'); ?></a> <a href="#" class="cancel button"><?php _e('Cancel'); ?></a></p>
     157               
     158               
    153159                <?php break;
    154160       
     
    163169                        });
    164170                </script>
    165                 <h3 id="title"><label for="post_title"><?php _e('URL') ?></label></h3>
     171                <h3 id="title"><label for="title"><?php _e('URL') ?></label></h3>
    166172                <div class="titlewrap">
    167173                        <input id="this_photo" name="this_photo" class="text" onkeypress="if(event.keyCode==13) image_selector();" />
     
    169175
    170176
    171                 <h3 id="title"><label for="post_title"><?php _e('Description') ?></label></h3>
     177                <h3 id="title"><label for="title"><?php _e('Description') ?></label></h3>
    172178                <div class="titlewrap">
    173179                        <input id="this_photo_description" name="photo_description" class="text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo attribute_escape($title);?>"/>
     
    282288
    283289                jQuery(document).ready(function() {
    284                         jQuery('#extra_fields').html('<h2>Photo <small id="photo_directions">(<?php _e("click images to select") ?>)</small></h2><ul id="actions"><li><a href="#" id="photo_add_url" class="thickbox button"><?php _e("Add from URL") ?> +</a></li></ul><div class="titlewrap"><div id="img_container"></div></div><p id="options"><a href="#" class="close button"><?php _e('Cancel'); ?></a></p>');
     290                        jQuery('#extra_fields').html('<div class="postbox"><h2>Photo <small id="photo_directions">(<?php _e("click images to select") ?>)</small></h2><ul id="actions"><li><a href="#" id="photo_add_url" class="thickbox button"><?php _e("Add from URL") ?> +</a></li></ul><div class="inside"><div class="titlewrap"><div id="img_container"></div></div><p id="options"><a href="#" class="close button"><?php _e('Cancel'); ?></a></p></div>');
    285291                        jQuery('.close').click(function() {
    286292                                jQuery('#extra_fields').hide();
     
    385391                                        jQuery('#extra_fields').html('');
    386392                                        jQuery('#extra_fields').show();
    387                                         jQuery('#extra_fields').before('<p id="waiting"><img src="images/loading.gif" alt="" /><?php echo js_escape( __( 'Loading...' ) ); ?></p>');
     393                                        jQuery('#extra_fields').before('<p id="waiting"><img src="images/loading.gif" alt="" /> <?php echo js_escape( __( 'Loading...' ) ); ?></p>');
    388394                                        jQuery.ajax({
    389395                                                type: "GET",
     
    403409
    404410        jQuery(document).ready(function() {
    405                 top.resizeTo(700-screen.width+screen.availWidth,680-screen.height+screen.availHeight);
     411                top.resizeTo(720-screen.width+screen.availWidth,680-screen.height+screen.availHeight);
    406412        jQuery('#photo_button').click(function() { show('photo'); return false; });
    407413                jQuery('#video_button').click(function() { show('video'); return false; });
     
    433439                <div class="sleeve">
    434440                        <h1 id="viewsite"><a class="button" href="<?php echo get_option('home'); ?>/" target="_blank"><?php bloginfo('name'); ?> &rsaquo; <?php _e('Press This') ?></a></span></h1>
     441                       
    435442                        <?php wp_nonce_field('press-this') ?>
    436                 <input type="hidden" name="post_type" id="post_type" value="text"/>
    437        
    438                 <div class="photolist"></div>
     443                        <input type="hidden" name="post_type" id="post_type" value="text"/>
     444               
     445                        <!-- This div holds the photo metadata -->
     446                        <div class="photolist"></div>
     447               
    439448                        <div id="categorydiv" class="stuffbox">
    440449                        <h2><?php _e('Categories') ?></h2>
     
    449458
    450459                        <div id="category-adder" class="wp-hidden-children">
    451                                 <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4>
     460                                <a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a>
    452461                                <p id="category-add" class="wp-hidden-child">
    453462                                        <label class="hidden" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" aria-required="true"/>
     
    470479                                </div>
    471480                        </div>
    472                         <div id="submitdiv" class="stuffbox">
     481                        <div id="submitdiv" class="postbox">
    473482                                <h2><?php _e('Publish') ?></h2>
    474                                 <div class="submitbox">
    475                                 <p class="submit">
     483                                <div class="inside">
     484                                <p>
    476485                                        <input class="button" type="submit" name="draft" value="<?php _e('Save Draft') ?>" id="save" />
    477                                         <input class="button" type="submit" name="publish" value="<?php _e('Publish') ?>" id="publish" />
     486                                        <input class="button-primary" type="submit" name="publish" value="<?php _e('Publish') ?>" id="publish" />
    478487                                        <img src="images/loading-publish.gif" alt="" id="saving" style="display:none;"/>
    479488                                </p>
     
    493502                        ?>
    494503                       
    495                         <h2 id="title"><label for="post_title"><?php _e('Title') ?></label></h2>
    496                         <div class="titlewrap">
    497                                 <input name="post_title" id="post_title" class="text" value="<?php echo attribute_escape($title);?>"/>
    498                         </div>
    499 
     504                       
     505                                <div id="titlediv">
     506                                        <div class="titlewrap">
     507                                                <input name="title" id="title" class="text" value="<?php echo attribute_escape($title);?>"/>
     508                                        </div>
     509                                </div>
     510                       
    500511                        <div id="extra_fields" style="display: none"></div>
    501 
     512                       
    502513                        <div class="postdivrich">
    503514                                <ul id="actions">
    504                                         <li id="photo_button"><a href="#" class="button"><?php _e( 'Add Photo' ); ?></a></li>
    505                                         <li id="video_button"><a href="#" class="button"><?php _e( 'Add Video' ); ?></a></li>
     515                                        <li id="photo_button">
     516                                               
     517                                                Add: <a title="<?php _e('Insert an Image'); ?>" href="#">
     518<img alt="<?php _e('Insert an Image'); ?>" src="images/media-button-image.gif"/></a>
     519                                        </li>
     520                                        <li id="video_button">
     521                                                <a title="<?php _e('Embed a Video'); ?>" href="#"><img alt="<?php _e('Embed a Video'); ?>" src="images/media-button-video.gif"/></a>
     522                                                </li>
    506523                                        <li id="switcher">
    507524                                                <?php wp_print_scripts( 'quicktags' ); ?>
     
    513530                </li>
    514531                                </ul>
    515                         <div id="quicktags">
    516        
    517        
    518         </div>
    519        
    520                                 <h2 id="content_type"><label for="content"><?php _e('Post') ?></label></h2>
     532                        <div id="quicktags"></div>
     533       
     534                               
    521535                       
    522536                                <div class="editor-container">
     
    526540                                        </textarea>
    527541                                </div>
     542                       
    528543                        </div>
    529544                </div>
  • trunk/wp-includes/script-loader.php

    r9672 r9673  
    318318        $styles->add( 'install', '/wp-admin/css/install.css', array(), '20080708' );
    319319        $styles->add( 'theme-editor', '/wp-admin/css/theme-editor.css' );
    320         $styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20080922' );
     320        $styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20081113' );
    321321        $styles->add( 'press-this-ie', '/wp-admin/css/press-this-ie.css', array(), '20080915' );
    322322        $styles->add_data( 'press-this-ie', 'conditional', 'gte IE 6' );
Note: See TracChangeset for help on using the changeset viewer.