Changeset 7983
- Timestamp:
- 05/22/2008 03:47:37 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/press-this.css
r7961 r7983 1 1 body { 2 2 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 14 13 @media print { 15 16 17 14 .ui-tabs-nav { 15 display: none; 16 } 18 17 } 19 18 … … 27 26 position: relative; 28 27 } 28 29 29 .ui-tabs-nav { 30 30 list-style: none; 31 31 border-bottom: 1px solid #C6D9E9; 32 32 padding-left: 8px; 33 33 margin-bottom: .5em; 34 34 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 42 44 .ui-tabs-nav li { 43 44 45 float: left; 46 margin: 0; 45 47 height: 2em; 46 48 line-height: 2em; 47 49 } 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 51 55 .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; 56 61 line-height: 2em; 57 58 59 white-space: nowrap; /* required in IE 6 */ 60 62 text-align: center; 63 text-decoration: none; 64 white-space: nowrap; /* required in IE 6 */ 65 outline: 0; /* prevent dotted border in Firefox */ 61 66 padding: 0 1em; 62 67 } 68 63 69 .ui-tabs-nav .ui-tabs-selected a { 64 65 66 67 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; 70 76 -webkit-border-top-left-radius: 4px; 71 77 -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; 77 82 } 78 83 79 84 .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 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 95 100 .ui-tabs-loading em { 96 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%; 98 103 } 99 104 100 105 /* Additional IE specific bug fixes... */ 101 106 * 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; 106 113 } 107 114 … … 109 116 border-top: none; 110 117 } 118 111 119 .submit input { 120 112 121 } 113 122 … … 129 138 margin: 0 !important; 130 139 } 140 131 141 #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; 133 144 padding: 3px 4px; 134 145 display: block; … … 147 158 padding-bottom: 8px !important; 148 159 } 160 149 161 h1 { 150 162 font-size: .75em; … … 154 166 margin: 0 !important; 155 167 padding: 0 !important; 156 width: 236px;168 width: 236px; 157 169 background: none; 158 170 } 159 171 160 161 172 input.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 171 183 .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 177 190 div#container { 178 179 191 margin: 0; 180 192 min-width: 500px; 181 182 193 } 183 194 184 195 div#posting { 185 196 padding-left: 16px; 186 position: absolute;187 z-index: 1;197 position: absolute; 198 z-index: 1; 188 199 width: 66%; 189 200 } 190 201 191 202 div#posting h2 { 192 margin: .5em 0 .25em 0 203 margin: .5em 0 .25em 0; 193 204 font-size: 12px; 194 205 padding: 3px; … … 209 220 z-index: 2; 210 221 } 222 211 223 div#categories h2 { 212 224 font-size: 12px; … … 241 253 #tagchecklist { 242 254 margin-left: 10px; 243 244 255 font-size: 12px; 245 256 overflow: auto; … … 282 293 } 283 294 284 /* end quickpost css */285 295 #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 289 302 #img_container img { 290 width: 291 height:75px;292 padding:2px;293 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; 297 310 } 298 311 … … 301 314 float: right; 302 315 } 303 304 316 305 317 .submitbox .submit { … … 322 334 border-bottom-right-radius: 3px; 323 335 } 336 324 337 .submitbox .submit a:hover { 325 338 border-bottom-width: 1px; … … 346 359 border-top-right-radius: 3px; 347 360 } 348 -
trunk/wp-admin/press-this.php
r7979 r7983 23 23 $content = $_REQUEST['content']; 24 24 if ($_REQUEST['content2']) 25 $content .= '<p>' .$_REQUEST['content2'];25 $content .= $_REQUEST['content2']; 26 26 break; 27 27 … … 29 29 $content = '<blockquote>' . $_REQUEST['content']; 30 30 if ($_REQUEST['content2']) { 31 $content .= '</blockquote>'; 32 $content = $content . '<p>' . $_REQUEST['content2'].'</p>'; 31 $content .= '</blockquote> 32 '; 33 $content = $content . $_REQUEST['content2']; 33 34 } 34 35 break; … … 36 37 case 'photo': 37 38 if ($_REQUEST['photo_link']) 38 $content = '< p><a href="' . $_REQUEST['photo_link'] . '" target="_new">';39 $content = '<a href="' . $_REQUEST['photo_link'] . '" target="_new">'; 39 40 40 41 $content .= '<img src="' . $_REQUEST['photo_src'] . '" alt=""/>'; 41 42 42 43 if ($_REQUEST['photo_link']) 43 $content .= '</a></p>'; 44 $content .= '</a> 45 '; 44 46 45 47 if ($_REQUEST['content']) 46 $content = $content . $_REQUEST['content'];48 $content = $content . "\n".$_REQUEST['content']; 47 49 48 50 break; … … 51 53 $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>'; 52 54 if ($_REQUEST['content2']) 53 $content .= '<p>' . $_REQUEST['content2'] . '</p>';55 $content .= "\n" . $_REQUEST['content2']; 54 56 break; 55 57 } … … 153 155 accessibility_focus : false, 154 156 tab_focus : ":next", 155 plugins : "safari,inlinepopups" 157 plugins : "safari,inlinepopups", 158 entity_encoding : "raw" 156 159 }); 157 160 <?php } ?> … … 162 165 163 166 // 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>'); 165 168 166 169 jQuery('#tagadd').click( tag_flush_to_text ); … … 192 195 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 193 196 <title><?php _e('Press This') ?></title> 197 194 198 <script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce.js"></script> 195 199 <?php … … 217 221 218 222 </script> 223 224 219 225 </head> 220 226 <body> … … 244 250 } 245 251 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>');*/ 246 257 return false; 247 258 } 248 259 260 jQuery('.remove').click(function() { 261 jQuery(this).remove; 262 263 }); 249 264 jQuery(document).ready(function() { 250 265 var img, img_tag, aspect, w, h, skip, i, strtoappend = ""; … … 301 316 </div> 302 317 318 <div class="photolist"></div> 319 303 320 <h2><?php _e('Link Photo to following URL') ?></h2><?php _e('(leave blank to leave the photo unlinked)') ?> 304 321 <div class="titlewrap"> … … 316 333 <div class="editor-container"> 317 334 <textarea name="content" id="photo_post_two" style="" class="mceEditor"><?php echo $selection;?> 318 <a href="<?php echo attribute_escape($url);?>"><?php echo $title;?></a> </textarea>335 <a href="<?php echo attribute_escape($url);?>"><?php echo $title;?></a> </textarea> 319 336 </div> 320 337 … … 344 361 <h2><?php _e('Post') ?></h2> 345 362 <div class="editor-container"> 346 <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>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> 347 364 </div> 348 365
Note: See TracChangeset
for help on using the changeset viewer.