Make WordPress Core

Changeset 7983


Ignore:
Timestamp:
05/22/2008 03:47:37 PM (18 years ago)
Author:
ryan
Message:

Press This fixes from noel. see #6998

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r7961 r7983  
    11body {
    22        font: 13px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
    3 }
    4 /* jquery tabs css */
    5 
    6 /* Caution! Ensure accessibility in print and other media types... */
    7 @media projection, screen { /* Use class for showing/hiding tab content, so that visibility can be better controlled in different media types... */
    8     .ui-tabs-hide {
    9         display: none;
    10     }
    11 }
    12 
    13 /* Hide useless elements in print layouts... */
     3        margin: 0px;
     4        padding: 0px;
     5}
     6
     7@media projection , screen {
     8        .ui-tabs-hide {
     9                display: none;
     10        }
     11}
     12
    1413@media print {
    15     .ui-tabs-nav {
    16         display: none;
    17     }
     14        .ui-tabs-nav {
     15                display: none;
     16        }
    1817}
    1918
    … …  
    2726        position: relative;
    2827}
     28
    2929.ui-tabs-nav {
    30     list-style: none;
     30        list-style: none;
    3131        border-bottom: 1px solid #C6D9E9;
    3232        padding-left: 8px;
    3333        margin-bottom: .5em;
    3434        margin-top: -2em;
    35 
    36 }
    37 .ui-tabs-nav:after { /* clearing without presentational markup, IE gets extra treatment */
    38     display: block;
    39     clear: both;
    40     content: " ";
    41 }
     35}
     36
     37.ui-tabs-nav:after {
     38        /* clearing without presentational markup, IE gets extra treatment */
     39        display: block;
     40        clear: both;
     41        content: " ";
     42}
     43
    4244.ui-tabs-nav li {
    43     float: left;
    44     margin: 0;
     45        float: left;
     46        margin: 0;
    4547        height: 2em;
    4648        line-height: 2em;
    4749}
    48 .ui-tabs-nav a, .ui-tabs-nav a span {
    49     display: block;
    50 }
     50
     51.ui-tabs-nav a,.ui-tabs-nav a span {
     52        display: block;
     53}
     54
    5155.ui-tabs-nav a {
    52     margin: 1px 0 0; /* position: relative makes opacity fail for disabled tab in IE */
    53     padding-left: 0;
    54     color: #27537a;
    55     font-weight: bold;
     56        margin: 1px 0 0;
     57        /* position: relative makes opacity fail for disabled tab in IE */
     58        padding-left: 0;
     59        color: #27537a;
     60        font-weight: bold;
    5661        line-height: 2em;
    57     text-align: center;
    58     text-decoration: none;
    59     white-space: nowrap; /* required in IE 6 */   
    60     outline: 0; /* prevent dotted border in Firefox */
     62        text-align: center;
     63        text-decoration: none;
     64        white-space: nowrap; /* required in IE 6 */
     65        outline: 0; /* prevent dotted border in Firefox */
    6166        padding: 0 1em;
    6267}
     68
    6369.ui-tabs-nav .ui-tabs-selected a {
    64     position: relative;
    65     top: 1px;
    66     z-index: 2;
    67     margin-top: 0;
    68         -moz-border-radius-topleft:4px;
    69         -moz-border-radius-topright:4px;
     70        position: relative;
     71        top: 1px;
     72        z-index: 2;
     73        margin-top: 0;
     74        -moz-border-radius-topleft: 4px;
     75        -moz-border-radius-topright: 4px;
    7076        -webkit-border-top-left-radius: 4px;
    7177        -webkit-border-top-right-radius: 4px;
    72         border-style:solid;
    73         border-width:1px;
    74         border-color:#C6D9E9 rgb(198, 217, 233) rgb(255, 255, 255);
    75         color:#D54E21;
    76        
     78        border-style: solid;
     79        border-width: 1px;
     80        border-color: #C6D9E9 rgb(198, 217, 233) rgb(255, 255, 255);
     81        color: #D54E21;
    7782}
    7883
    7984.ui-tabs-nav .ui-tabs-selected a {
    80 background: white;
    81 border-bottom-width:2px;
    82 margin-top: -2px;
    83 }
    84 
    85 .ui-tabs-nav .ui-tabs-selected a:link, .ui-tabs-nav .ui-tabs-selected a:visited, .ui-tabs-nav .ui-tabs-disabled a:link, .ui-tabs-nav .ui-tabs-disabled a:visited {
    86 /* @ Opera, use pseudo classes otherwise it confuses cursor... */
    87     cursor: pointer;
    88 
    89 }
    90 .ui-tabs-nav a:hover, .ui-tabs-nav a:focus, .ui-tabs-nav a:active,
    91 .ui-tabs-nav .ui-tabs-unselect a:hover, .ui-tabs-nav .ui-tabs-unselect a:focus, .ui-tabs-nav .ui-tabs-unselect a:active {
    92 /* @ Opera, we need to be explicit again here now... */
    93     cursor: pointer;
    94 }
     85        background: white;
     86        border-bottom-width: 2px;
     87        margin-top: -2px;
     88}
     89
     90.ui-tabs-nav .ui-tabs-selected a:link,.ui-tabs-nav .ui-tabs-selected a:visited,.ui-tabs-nav .ui-tabs-disabled a:link,.ui-tabs-nav .ui-tabs-disabled a:visited
     91        { /* @ Opera, use pseudo classes otherwise it confuses cursor... */
     92        cursor: pointer;
     93}
     94
     95.ui-tabs-nav a:hover,.ui-tabs-nav a:focus,.ui-tabs-nav a:active,.ui-tabs-nav .ui-tabs-unselect a:hover,.ui-tabs-nav .ui-tabs-unselect a:focus,.ui-tabs-nav .ui-tabs-unselect a:active
     96        { /* @ Opera, we need to be explicit again here now... */
     97        cursor: pointer;
     98}
     99
    95100.ui-tabs-loading em {
    96     padding: 0 0 0 20px;
    97     background: url(../images/loading.gif) no-repeat 0 50%;
     101        padding: 0 0 0 20px;
     102        background: url(./images/loading.gif) no-repeat 0 50%;
    98103}
    99104
    100105/* Additional IE specific bug fixes... */
    101106* html .ui-tabs-nav { /* auto clear, @ IE 6 & IE 7 Quirks Mode */
    102     display: inline-block;
    103 }
    104 *:first-child+html .ui-tabs-nav  { /* @ IE 7 Standards Mode - do not group selectors, otherwise IE 6 will ignore complete rule (because of the unknown + combinator)... */
    105     display: inline-block;
     107        display: inline-block;
     108}
     109
     110* :first-child+html .ui-tabs-nav {
     111        /* @ IE 7 Standards Mode - do not group selectors, otherwise IE 6 will ignore complete rule (because of the unknown + combinator)... */
     112        display: inline-block;
    106113}
    107114
    … …  
    109116        border-top: none;
    110117}
     118
    111119.submit input {
     120       
    112121}
    113122
    … …  
    129138        margin: 0 !important;
    130139}
     140
    131141#wphead #viewsite a {
    132         font: 12px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
     142        font: 12px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana,
     143                sans-serif;
    133144        padding: 3px 4px;
    134145        display: block;
    … …  
    147158        padding-bottom: 8px !important;
    148159}
     160
    149161h1 {
    150162        font-size: .75em;
    … …  
    154166        margin: 0 !important;
    155167        padding: 0 !important;
    156         width:236px;
     168        width: 236px;
    157169        background: none;
    158170}
    159171
    160 
    161172input.text {
    162         border:0pt none;
    163         outline-color:-moz-use-text-color;
    164         outline-style:none;
    165         outline-width:medium;
    166         padding:0pt;
    167         width:100%;
    168         border-style:solid;
    169         color:#333333;
    170 }
     173        border: 0pt none;
     174        outline-color: -moz-use-text-color;
     175        outline-style: none;
     176        outline-width: medium;
     177        padding: 0pt;
     178        width: 100%;
     179        border-style: solid;
     180        color: #333333;
     181}
     182
    171183.titlewrap {
    172         border-style:solid;
    173         border-width:1px;
    174         padding:2px 3px;
    175         border-color:#CCCCCC;
    176 }
     184        border-style: solid;
     185        border-width: 1px;
     186        padding: 2px 3px;
     187        border-color: #CCCCCC;
     188}
     189
    177190div#container {
    178 
    179191        margin: 0;
    180192        min-width: 500px;
    181        
    182193}
    183194
    184195div#posting {
    185196        padding-left: 16px;
    186         position:absolute;
    187         z-index:1;
     197        position: absolute;
     198        z-index: 1;
    188199        width: 66%;
    189200}
    190201
    191202div#posting h2 {
    192         margin: .5em 0 .25em 0 ;
     203        margin: .5em 0 .25em 0;
    193204        font-size: 12px;
    194205        padding: 3px;
    … …  
    209220        z-index: 2;
    210221}
     222
    211223div#categories h2 {
    212224        font-size: 12px;
    … …  
    241253#tagchecklist {
    242254        margin-left: 10px;
    243 
    244255        font-size: 12px;
    245256        overflow: auto;
    … …  
    282293}
    283294
    284 /* end quickpost css */
    285295#img_container {
    286         background-color: #fff;
    287         margin-top:10px; overflow:auto; height:100px;
    288 }
     296        background-color: #fff;
     297        margin-top: 10px;
     298        overflow: auto;
     299        height: 100px;
     300}
     301
    289302#img_container img {
    290         width:          75px;
    291     height:        75px;
    292     padding:        2px;
    293     background-color: #f4f4f4;
    294     margin-right:   7px;
    295     margin-bottom:  7px;
    296     cursor:        pointer;
     303        width: 75px;
     304        height: 75px;
     305        padding: 2px;
     306        background-color: #f4f4f4;
     307        margin-right: 7px;
     308        margin-bottom: 7px;
     309        cursor: pointer;
    297310}
    298311
    … …  
    301314        float: right;
    302315}
    303 
    304316
    305317.submitbox .submit {
    … …  
    322334        border-bottom-right-radius: 3px;
    323335}
     336
    324337.submitbox .submit a:hover {
    325338        border-bottom-width: 1px;
    … …  
    346359        border-top-right-radius: 3px;
    347360}
    348 
  • trunk/wp-admin/press-this.php

    r7979 r7983  
    2323                        $content = $_REQUEST['content'];
    2424                        if ($_REQUEST['content2'])
    25                                 $content .= '<p>' . $_REQUEST['content2'];
     25                                $content .= $_REQUEST['content2'];
    2626                        break;
    2727
    … …  
    2929                        $content = '<blockquote>' . $_REQUEST['content'];
    3030                        if ($_REQUEST['content2']) {
    31                                 $content .= '</blockquote>';
    32                                 $content = $content . '<p>' . $_REQUEST['content2'].'</p>';
     31                                $content .= '</blockquote>
     32                                ';
     33                                $content = $content . $_REQUEST['content2'];
    3334                        }
    3435                        break;
    … …  
    3637                case 'photo':
    3738                        if ($_REQUEST['photo_link'])
    38                                 $content = '<p><a href="' . $_REQUEST['photo_link'] . '" target="_new">';
     39                                $content = '<a href="' . $_REQUEST['photo_link'] . '" target="_new">';
    3940
    4041                        $content .= '<img src="' . $_REQUEST['photo_src'] . '" alt=""/>';
    4142
    4243                        if ($_REQUEST['photo_link'])
    43                                 $content .= '</a></p>';
     44                                $content .= '</a>
     45                                ';
    4446
    4547                        if ($_REQUEST['content'])
    46                                 $content = $content . $_REQUEST['content'];
     48                                $content = $content . "\n".$_REQUEST['content'];
    4749
    4850                        break;
    … …  
    5153                        $content = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/' . $video_id . '"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' . $video_id . '" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>';
    5254                        if ($_REQUEST['content2'])
    53                                 $content .= '<p>' . $_REQUEST['content2'] . '</p>';
     55                                $content .= "\n" . $_REQUEST['content2'];
    5456                        break;                         
    5557        }
    … …  
    153155                                accessibility_focus : false,
    154156                                tab_focus : ":next",
    155                                 plugins : "safari,inlinepopups"
     157                                plugins : "safari,inlinepopups",
     158                                entity_encoding : "raw"
    156159                        });
    157160    <?php } ?>
    … …  
    162165
    163166                // add the quickadd form
    164                 jQuery('#jaxtag').prepend('<span id="ajaxtag"><input type="text" name="newtag" id="newtag" class="form-input-tip" size="16" autocomplete="off" value="'+postL10n.addTag+'" /><input type="button" class="button" id="tagadd" value="' + postL10n.add + '" tabindex="3" /><input type="hidden"/><input type="hidden"/><span class="howto">'+postL10n.separate+'</span></span>');
     167                jQuery('#jaxtag').prepend('<span id="ajaxtag"><input type="text" name="newtag" id="newtag" class="form-input-tip" size="16" autocomplete="off" value="'+postL10n.addTag+'" /><input type="submit" class="button" id="tagadd" value="' + postL10n.add + '" tabindex="3" onclick="return false;" /><input type="hidden"/><input type="hidden"/><span class="howto">'+postL10n.separate+'</span></span>');
    165168               
    166169                jQuery('#tagadd').click( tag_flush_to_text );
    … …  
    192195        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    193196        <title><?php _e('Press This') ?></title>
     197
    194198        <script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce.js"></script>
    195199<?php
    … …  
    217221
    218222        </script>
     223       
     224
    219225</head>
    220226<body>
    … …  
    244250                                }
    245251                                last = img;
     252                               
     253                                /*jQuery('.photolist').append('<h2><?php _e("Photo URL") ?></h2>' +
     254                                '<div class="titlewrap">' +
     255                                '<a href="#" class="remove">remove <input name="photo_src" id="photo_src[]" value ="'+ img.src +'" class="text" onkeydown="pick(0);"/></a>' +
     256                                '</div>');*/
    246257                                return false;
    247258                        }
    248                        
     259
     260                        jQuery('.remove').click(function() {
     261                                jQuery(this).remove;
     262                               
     263                        });
    249264                        jQuery(document).ready(function() {
    250265                                var img, img_tag, aspect, w, h, skip, i, strtoappend = "";
    … …  
    301316                                        </div>
    302317                                       
     318                                        <div class="photolist"></div>
     319                                       
    303320                                        <h2><?php _e('Link Photo to following URL') ?></h2><?php _e('(leave blank to leave the photo unlinked)') ?>
    304321                                        <div class="titlewrap">
    … …  
    316333                                        <div class="editor-container">
    317334                                                <textarea name="content" id="photo_post_two" style="" class="mceEditor"><?php echo $selection;?>
    318                                                 &lt;a href="<?php echo attribute_escape($url);?>"&gt;<?php echo $title;?>&lt;/a&gt;</textarea>
     335                                                &lt;a href="<?php echo attribute_escape($url);?>"&gt;<?php echo $title;?>&lt;/a&gt; </textarea>
    319336                                        </div>
    320337
    … …  
    344361                                        <h2><?php _e('Post') ?></h2>
    345362                                        <div class="editor-container">
    346                                                 <textarea name="content" id="regular_post_two" style="height:170px;width:100%;" class="mceEditor"><?php echo $selection;?>&lt;a href="<?php echo $url;?>"&gt;<?php echo $title;?>&lt;/a&gt;</textarea>
     363                                                <textarea name="content" id="regular_post_two" style="height:170px;width:100%;" class="mceEditor"><?php echo $selection;?><a href="<?php echo $url;?>"><?php echo $title;?></a></textarea>
    347364                                        </div>       
    348365
Note: See TracChangeset for help on using the changeset viewer.