Changeset 8903
- Timestamp:
- 09/16/2008 06:30:15 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/press-this-ie.css
r8664 r8903 2 2 position: static !important; 3 3 } 4 .ui-tabs-nav {5 margin-left: 0;6 border: 0 !important;7 } -
trunk/wp-admin/css/press-this-rtl.css
r8632 r8903 1 body {2 font-family: Tahoma;3 }4 .ui-tabs-nav {5 padding-left:0;6 padding-right:8px;7 }8 .ui-tabs-nav li {9 float: right;10 }11 .button {12 font-family: Tahoma;13 margin-left:0;14 margin-right: 5px;15 }16 #wphead #viewsite {17 margin-left:0;18 margin-right: 10px;19 }20 #viewsite {21 right:auto;22 left: 8px;23 }24 #wphead #viewsite a {25 font-family: Tahoma;26 }27 h1 {28 right:auto;29 left:0;30 }31 div#posting {32 padding-left:0;33 padding-right: 16px;34 }35 #photo_directions span {36 right:auto;37 left:3px;38 }39 #img_container a {40 float:right;41 }42 #img_container a, #img_container a:link, #img_container a:visited {43 margin:0 0 4px 4px;44 }45 div#categories {46 right:auto;47 left:16px;48 }49 div#categories h2 {50 margin: .5em 1em .5em 0;51 }52 #tagsdiv #newtag {53 margin-right:0;54 margin-left: 5px;55 }56 #jaxtag {57 padding-left:0;58 padding-right: 1em;59 }60 #tagchecklist {61 padding-left:0;62 padding-right: 1em;63 }64 #tagchecklist span {65 margin-right: 10px;66 margin-left: .5em;67 float: right;68 }69 #tagchecklist span a {70 margin: 6px -9px 0pt 0;71 float: right;72 }73 .submitbox {74 float: left;75 }76 .submitbox .submit input {77 text-align:right;78 }79 .video_split #extra_fields {80 float:right;81 }82 .video_split .editor_area {83 float: left;84 }85 .ac_results li {86 text-align:right;87 }88 #TB_ajaxContent #options {89 right:auto;90 left:25px;91 }92 #post_status {93 margin-left:0;94 margin-right: 10px;95 }96 #footer {97 padding: 10px 60px 0 0;98 } -
trunk/wp-admin/css/press-this.css
r8600 r8903 7 7 8 8 img { border: 0; } 9 /* Tabs */10 @media projection , screen {11 .ui-tabs-hide {12 display: none;13 }14 }15 16 @media print {17 .ui-tabs-nav {18 display: none;19 }20 }21 22 .ui-tabs-nav {23 list-style: none;24 border-bottom: 1px solid #C6D9E9;25 padding-left: 8px;26 margin-bottom: .5em;27 margin-top: -2em;28 }29 30 /* Additional IE specific bug fixes... */31 * html .ui-tabs-nav { /* auto clear, @ IE 6 & IE 7 Quirks Mode */32 display: inline-block;33 }34 35 * :first-child+html .ui-tabs-nav {36 /* @ IE 7 Standards Mode - do not group selectors, otherwise IE 6 will ignore complete rule (because of the unknown + combinator)... */37 display: inline-block;38 }39 40 .ui-tabs-nav:after {41 /* clearing without presentational markup, IE gets extra treatment */42 display: block;43 clear: both;44 content: " ";45 }46 47 .ui-tabs-nav li {48 float: left;49 margin: 0;50 height: 2em;51 line-height: 2em;52 }53 54 .ui-tabs-nav a,.ui-tabs-nav a span {55 display: block;56 }57 58 .ui-tabs-nav a {59 margin: 1px 0 0;60 /* position: relative makes opacity fail for disabled tab in IE */61 padding-left: 0;62 color: #27537a;63 font-weight: bold;64 line-height: 2em;65 text-align: center;66 text-decoration: none;67 white-space: nowrap; /* required in IE 6 */68 outline: 0; /* prevent dotted border in Firefox */69 padding: 0 1em;70 }71 72 .ui-tabs-nav .ui-tabs-selected a {73 position: relative;74 top: 1px;75 z-index: 2;76 margin-top: 0;77 -moz-border-radius-topleft: 4px;78 -moz-border-radius-topright: 4px;79 -webkit-border-top-left-radius: 4px;80 -webkit-border-top-right-radius: 4px;81 border-style: solid;82 border-width: 1px;83 background: white;84 border-bottom-width: 2px;85 margin-top: -2px;86 }87 88 .ui-tabs-nav a:hover,.ui-tabs-nav a:focus,.ui-tabs-nav a:active,89 .ui-tabs-nav .ui-tabs-selected a:link,.ui-tabs-nav .ui-tabs-selected a:visited {90 cursor: pointer;91 }92 9 93 10 /* Header */ 94 #wphead { 95 border-top: none; 96 height: 2em; 97 padding-top: 8px; 98 } 99 100 .button { 101 font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; 102 padding: 3px 5px; 103 font-size: 12px; 104 line-height: 1.5em; 105 border-width: 1px; 106 border-style: solid; 107 -moz-border-radius: 3px; 108 -khtml-border-radius: 3px; 109 -webkit-border-radius: 3px; 110 border-radius: 3px; 111 cursor: pointer; 112 margin-left: 5px; 113 text-decoration: none; 114 } 11 #wphead{border-top:none;padding-top:8px; background: #444 !important;} 12 13 .button{font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif;padding:3px 5px;font-size:12px;line-height:1.5em;border-width:1px;border-style:solid;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;margin-left:5px;text-decoration:none;} 115 14 116 15 .howto { … … 118 17 font-style: italic; 119 18 display: block; 120 }121 122 #wphead #viewsite {123 position: absolute;124 margin-top: 12px;125 margin-left: 10px;126 }127 128 #viewsite {129 position: relative;130 right: 8px;131 top: 6px;132 margin: 0 !important;133 }134 135 #wphead #viewsite a {136 font: 12px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;137 padding: 3px 4px;138 display: block;139 letter-spacing: normal;140 border-width: 1px;141 border-style: solid;142 -moz-border-radius: 3px;143 -khtml-border-radius: 3px;144 -webkit-border-radius: 3px;145 border-radius: 3px;146 text-decoration: none;147 }148 149 #previewview {150 padding-top: 8px !important;151 padding-bottom: 8px !important;152 }153 154 h1 {155 font-size: .75em;156 line-height: 2.666em;157 top: .5em;158 right: 0;159 margin: 0 !important;160 padding: 0 !important;161 width: 236px;162 background: none;163 19 } 164 20 … … 176 32 /* Editor/Main Column */ 177 33 178 div#container { 179 margin: 0; 180 min-width: 500px; 181 } 182 183 div#container form { 184 margin: 0px; 185 padding: 0px; 186 } 187 188 div#posting { 189 padding-left: 16px; 190 position: absolute; 191 z-index: 1; 192 width: 66%; 34 div#poststuff { 35 padding-left: 10px; 36 margin-top: 10px; 37 } 38 39 .posting { 40 margin-right: 228px; 41 } 42 43 #side-info-column { 44 float: right; 45 width: 218px; 46 position: relative; 47 margin-right: 10px; 48 } 49 #side-info-column .sleeve { padding-left: 10px; } 50 #poststuff .inside { 51 font-size:11px; 52 margin:0 12px 12px; 193 53 } 194 54 … … 203 63 border-color: #CCCCCC; 204 64 } 205 206 div#posting h2 { 207 margin: .5em 0 .25em 0; 208 font-size: 12px; 209 padding: 3px; 210 background: ; 211 } 212 65 .titlewrap input { font-size: 1.2em; } 66 67 #poststuff h2, #poststuff h3 { 68 font-size: 14px; 69 font-weight: bold; 70 padding: 7px; 71 margin: 0 0 10px; 72 background-color: #EAF3FA; 73 } 74 75 76 #poststuff .stuffbox { 77 border: 1px solid white; 78 border-color:#EBEBEB #CCCCCC #CCCCCC #EBEBEB; 79 padding: 2px; 80 margin-bottom: 10px; 81 } 213 82 .editor-container { 214 83 border-width: 1px; … … 216 85 border-style: solid; 217 86 margin-bottom: 1em; 218 } 87 margin-top: -10px; 88 } 89 90 .postdivrich { position: relative; margin-top: 10px;} 91 #actions { clear: both; position: absolute; right: 4px; top: 6px; margin: 0;} 92 #actions li { float: left; list-style: none; } 219 93 220 94 /* Photo Styles */ 221 222 #photo_directions { 223 margin-top: .25em; 224 display: block; 225 position: relative; 226 } 227 228 #photo_directions span { 229 display: block; 230 position: absolute; 231 top: 0; 232 right: 3px; 233 } 234 235 #photo_saving { 236 margin: 0 8px 8px; 237 vertical-align: middle; 238 } 239 240 #img_container { 241 background-color: #fff; 242 overflow: auto; 243 height: 100px; 244 } 245 246 #img_container a { 247 display: block; 248 width: 79px; 249 height: 79px; 250 float: left; 251 } 252 253 #img_container img { 254 width: 75px; 255 height: 75px; 256 border: 0px; 257 padding: 2px; 258 background-color: #f4f4f4; 259 cursor: pointer; 260 } 261 #img_container a, #img_container a:link, #img_container a:visited { 262 border: 2px solid #ccc; 263 margin: 0 4px 4px 0; 264 } 265 #img_container a:hover, #img_container a:active { 266 border: 2px solid #000; 267 } 268 269 /* Submit Column */ 270 271 div#categories { 272 font-size: 85%; 273 position: absolute; 274 top: 50px; 275 right: 16px; 276 width: 27%; 277 z-index: 2; 278 } 279 280 div#categories h2 { 281 color: #333; 282 font-size: 12px; 283 margin: .5em 0 .5em 1em; 284 padding: 0; 285 } 286 287 #categories-all { 288 overflow: auto; 289 padding: 0 1em 1em 1em; 290 height: 15em; 291 } 292 293 #categories ul { 95 .photolist { margin-top: -10px; } 96 #photo_saving{margin:0 8px 8px;vertical-align:middle;} 97 #img_container{background-color:#fff;height:101px;width:100%; } 98 #extra_fields{ margin-top:10px;position:relative;} 99 #extra_fields .titlewrap{padding:0;overflow:auto;height:100px;} 100 #img_container{position:relative;} 101 #img_container a{display:block;width:71px;height:71px;float:left;overflow:hidden;vertical-align:center;} 102 #img_container img{width:71px;height:71px;border:0px;background-color:#f4f4f4;cursor:pointer;} 103 #img_container a,#img_container a:link,#img_container a:visited{border:1px solid #ccc;display:block; position: relative;} 104 #img_container a:hover,#img_container a:active{border-color:#000; z-index: 1000; border-width: 2px; margin: -1px;} 105 106 107 /* Video */ 108 109 #embed-code { width: 100%; border: 0; height: 98px;} 110 111 /*** Submit Column ***/ 112 #viewsite { padding: 0; margin: 0; } 113 #viewsite .button { width: 196px; margin: 0 0 10px 0; display: block; } 114 .wp-hidden-children .wp-hidden-child { display: none; } 115 116 #category-adder { 117 padding: 4px 0; 118 } 119 120 #category-adder h4 { 121 margin: 0 0 8px; 122 } 123 124 #category-add input { 125 width: 94%; 126 } 127 128 #category-add select { 129 width: 100%; 130 } 131 132 #category-add input#category-add-sumbit { 133 width: auto; 134 } 135 136 #categorydiv { 137 padding: 0.5em 0.9em; 138 } 139 /* Categories */ 140 #categorydiv ul, #linkcategorydiv ul { 294 141 list-style: none; 295 142 padding: 0; … … 297 144 } 298 145 299 #tagsdiv #newtag { 300 padding: 3px; 301 margin-right: 5px; 302 width: 16em; 303 } 304 305 #jaxtag { 306 clear: both; 307 padding-left: 1em; 146 #categorydiv ul.categorychecklist ul, #linkcategorydiv ul.categorychecklist ul { 147 margin-left: 18px; 148 } 149 150 151 #categorydiv div.ui-tabs-panel, #linkcategorydiv div.ui-tabs-panel { 152 padding:0.5em 0.9em; 153 } 154 155 ul.categorychecklist li { 308 156 margin: 0; 309 } 310 311 #tagchecklist { 312 padding-left: 1em; 313 margin-bottom: 1em; 314 font-size: 12px; 315 overflow: auto; 316 } 317 318 #tagchecklist strong { 319 position: absolute; 320 font-size: .75em; 321 } 322 323 #tagchecklist span { 324 margin-right: .5em; 325 margin-left: 10px; 326 display: block; 327 float: left; 328 font-size: 11px; 329 line-height: 1.8em; 330 white-space: nowrap; 331 cursor: default; 332 } 333 334 #tagchecklist span a { 335 margin: 6px 0pt 0pt -9px; 336 cursor: pointer; 337 width: 10px; 338 height: 10px; 339 display: block; 340 float: left; 341 text-indent: -9999px; 342 overflow: hidden; 343 position: absolute; 157 padding: 0; 158 line-height: 19px; 159 } 160 161 162 163 /* Tags */ 164 #tagsdiv #newtag{padding:3px;margin-right:5px;width:16em;} 165 #jaxtag{clear:both;margin:0;} 166 #tagchecklist{padding-left:1em;margin-bottom:1em;font-size:12px;overflow:auto;} 167 #tagchecklist strong{position:absolute;font-size:.75em;} 168 #tagchecklist span{margin-right:.5em;margin-left:10px;display:block;float:left;font-size:11px;line-height:1.8em;white-space:nowrap;cursor:default;} 169 #tagchecklist span a{margin:6px 0pt 0pt -9px;cursor:pointer;width:10px;height:10px;display:block;float:left;text-indent:-9999px;overflow:hidden;position:absolute;} 170 /* Submit */ 171 .submitbox { margin-top: -10px;} 172 .submitbox .submit { 173 font-size:11px; 174 padding:12px 10px 10px; 175 text-align:left; 344 176 } 345 177 .submit { 346 -moz-border-radius-bottomleft: 3px; 347 -khtml-border-bottom-left-radius: 3px; 348 -webkit-border-bottom-left-radius: 3px; 349 border-bottom-left-radius: 3px; 350 -moz-border-radius-bottomright: 3px; 351 -khtml-border-bottom-right-radius: 3px; 352 -webkit-border-bottom-right-radius: 3px; 353 border-bottom-right-radius: 3px; 354 margin: 0; 355 padding: 10px; 356 } 357 .submitbox { 358 width: 100%; 359 float: right; 360 } 361 362 .submitbox .submit a:hover { 363 border-bottom-width: 1px; 364 border-bottom-style: solid; 365 } 366 367 .submitbox .submit input { 368 border: none; 369 text-align: left; 370 padding: 6px 4px; 371 font-size: 12px; 372 margin: 2px; 373 -moz-border-radius: 3px; 374 -khtml-border-radius: 3px; 375 -webkit-border-radius: 3px; 376 border-radius: 3px; 377 cursor: pointer; 378 } 379 380 .submitbox #previewview { 381 padding: 15px 10px; 382 -moz-border-radius-topleft: 3px; 383 -khtml-border-top-left-radius: 3px; 384 -webkit-border-top-left-radius: 3px; 385 border-top-left-radius: 3px; 386 -moz-border-radius-topright: 3px; 387 -khtml-border-top-right-radius: 3px; 388 -webkit-border-top-right-radius: 3px; 389 border-top-right-radius: 3px; 390 } 391 392 /* Video Styles */ 393 .video_split #extra_fields { 394 width: 27%; 395 height: 300px; 396 float: left; 397 } 398 399 #embed_code { 400 border: 0; 401 width: 99%; 402 height: 200px; 403 } 404 .video_split .editor_area { 405 width: 70%; 406 float: right; 407 } 408 409 .ac_results { 410 padding: 0; 411 margin: 0; 412 list-style: none; 413 position: absolute; 414 z-index: 10000; 415 display: none; 416 border-width: 1px; 417 border-style: solid; 418 } 419 420 .ac_results li { 421 padding: 2px 5px; 422 white-space: nowrap; 423 text-align: left; 424 } 425 426 .ac_over { 427 cursor: pointer; 428 } 429 430 .ac_match { 431 text-decoration: underline; 432 } 433 434 .photolist { 435 display: none; 436 } 437 438 #extra_fields small { 439 display: block; 440 margin-top: .5em; 441 padding-bottom: .25em; 442 } 443 444 #TB_ajaxContent #options { 445 position: absolute; 446 top: 20px; 447 right: 25px; 448 padding: 5px; 449 } 450 #TB_ajaxContent h3 { 451 margin-bottom: .25em; 452 } 453 454 .updated { 455 margin: 0; 456 margin-left: 15px; 457 margin-right: 15px; 458 padding: 0; 459 max-width: 980px; 460 border-width: 1px; 461 border-style: solid; 462 padding: 0 0.6em; 463 max-width: 950px; 464 margin-top: 1em; 465 margin-bottom: 1em; 466 } 467 468 .updated p, .error p { 469 margin: 0.6em 0; 470 } 471 472 .updated a, .error a { 473 text-decoration: underline; 474 } 475 476 .updated a { 477 text-decoration: none; 478 padding-bottom: 2px; 479 } 480 481 #post_status { 482 margin-left: 10px; 483 margin-bottom: 1em; 484 display: block; 485 } 486 178 -moz-border-radius-bottomleft:3px; 179 -moz-border-radius-bottomright:3px; 180 -moz-border-radius-topleft:0; 181 -moz-border-radius-topright:0; 182 border-top:1px solid #CCCCCC; 183 margin:10px 0 0; 184 padding:1.5em 0 0; 185 } 186 187 .ac_results{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;display:none;border-width:1px;border-style:solid;} 188 .ac_results li{padding:2px 5px;white-space:nowrap;text-align:left;} 189 .ac_over{cursor:pointer;} 190 .ac_match{text-decoration:underline;} 191 192 #TB_ajaxContent #options{position:absolute;top:20px;right:25px;padding:5px;} 193 #TB_ajaxContent h3{margin-bottom:.25em;} 194 .updated{margin:0;margin-left:15px;margin-right:15px;padding:0;max-width:980px;border-width:1px;border-style:solid;max-width:950px;margin-top:1em;margin-bottom:1em;width:66%;} 195 .updated p,.error p{margin:0.6em 0;padding:0 0.6em;} 196 .updated a,.error a{text-decoration:underline;} 197 .updated a{text-decoration:none;padding-bottom:2px;} 198 #post_status{margin-left:10px;margin-bottom:1em;display:block;} 487 199 /* Footer */ 488 489 #footer { 490 height: 65px; 491 display: block; 492 width: 640px; 493 padding: 10px 0 0 60px; 494 margin: 0; 495 position: absolute; 496 bottom: 0; 497 font-size: 12px; 498 } 499 500 #footer p { 501 margin: 0; 502 padding: 7px 0; 503 } 504 505 #footer p a { 506 text-decoration: none; 507 } 508 509 #footer p a:hover { 510 text-decoration: underline; 511 } 512 513 200 #footer{height:65px;display:block;width:640px;padding:10px 0 0 60px;margin:0;position:absolute;bottom:0;font-size:12px;} 201 #footer p{margin:0;padding:7px 0;} 202 #footer p a{text-decoration:none;} 203 #footer p a:hover{text-decoration:underline;} 514 204 /* Utility Classes */ 515 .centered { 516 text-align: center; 517 } 518 519 .hidden { 520 display: none; 521 } 205 .centered{text-align:center;} 206 .hidden{display:none;} -
trunk/wp-admin/press-this.php
r8816 r8903 63 63 $post_ID = wp_insert_post($quick, true); 64 64 65 $content = ''; 66 switch ( $_REQUEST['post_type'] ) { 67 case 'text': 68 case 'quote': 69 $content .= $_REQUEST['content']; 70 break; 71 72 case 'photo': 73 $content = $_REQUEST['content']; 74 75 foreach( (array) $_REQUEST['photo_src'] as $key => $image) { 76 77 // see if files exist in content - we don't want to upload non-used selected files. 78 if( strpos($_REQUEST['content'], $image) !== false ) { 79 $upload = media_sideload_image($image, $post_ID, $_REQUEST['photo_description'][$key]); 80 81 // Replace the POSTED content <img> with correct uploaded ones. 82 // escape quote for matching 83 $quoted = preg_quote2($image); 84 if( !is_wp_error($upload) ) $content = preg_replace('/<img ([^>]*)src=(\"|\')'.$quoted.'(\2)([^>\/]*)\/*>/is', $upload, $content); 85 } 65 $content = $_REQUEST['content']; 66 67 if($_REQUEST['photo_src']) 68 foreach( (array) $_REQUEST['photo_src'] as $key => $image) 69 // see if files exist in content - we don't want to upload non-used selected files. 70 if( strpos($_REQUEST['content'], $image) !== false ) { 71 $upload = media_sideload_image($image, $post_ID, $_REQUEST['photo_description'][$key]); 72 73 // Replace the POSTED content <img> with correct uploaded ones. 74 // escape quote for matching 75 $quoted = preg_quote2($image); 76 if( !is_wp_error($upload) ) $content = preg_replace('/<img ([^>]*)src=(\"|\')'.$quoted.'(\2)([^>\/]*)\/*>/is', $upload, $content); 86 77 } 87 88 break; 89 90 case "video": 91 if($_REQUEST['embed_code']) 92 $content .= $_REQUEST['embed_code']."\n\n"; 93 $content .= $_REQUEST['content']; 94 break; 95 } 78 96 79 // set the post_content 97 80 $quick['post_content'] = $content; 98 99 81 // error handling for $post 100 82 if ( is_wp_error($post_ID)) { 101 83 wp_die($id); 102 wp_delete_post($post_ID); 84 wp_delete_post($post_ID);error_log('2'); 103 85 // error handling for media_sideload 104 86 } elseif ( is_wp_error($upload)) { … … 115 97 if ( 'post' == $_REQUEST['action'] ) { 116 98 check_admin_referer('press-this'); 117 $post_ID = press_it(); 118 wp_redirect('press-this.php?posted=' . $post_ID); 119 die; 120 } 121 122 // Ajax Requests 99 $post_ID = press_it(); 100 error_log($post_ID); 101 $posted = $post_ID; 102 //wp_redirect('press-this.php?posted=' . press_it()); 103 } 104 105 // Set Variables 123 106 $title = wp_specialchars(aposfix(stripslashes($_GET['t']))); 124 125 107 $selection = trim( aposfix( stripslashes($_GET['s']) ) ); 126 108 if ( ! empty($selection) ) { … … 128 110 $selection = '<p>'.str_replace('<p></p>', '', $selection).'</p>'; 129 111 } 130 131 112 $url = clean_url($_GET['u']); 132 113 $image = $_GET['i']; 133 114 134 if($_REQUEST['ajax'] == 'thickbox') { ?> 135 <script type="text/javascript" charset="utf-8"> 136 jQuery('.cancel').click(function() { 115 if($_REQUEST['ajax']) { 116 switch ($_REQUEST['ajax']) { 117 case 'video': ?> 118 <script type="text/javascript" charset="utf-8"> 119 jQuery('.select').click(function() { 120 append_editor(jQuery('#embed-code').html()); 121 }); 122 jQuery('.close').click(function() { 123 jQuery('#extra_fields').hide(); 124 }); 125 </script> 126 <h2><label for="embed-code"><?php _e('Embed Code') ?></label></h2> 127 <div class="titlewrap" > 128 <textarea name="embed-code" id="embed-code" rows="8" cols="40"><?php echo format_to_edit($selection); ?></textarea> 129 130 </div> 131 <p id="options"><a href="#" class="select button"><?php _e('Insert Video'); ?></a> <a href="#" class="close button"><?php _e('Cancel'); ?></a></p> 132 <?php break; 133 134 case 'photo_thickbox': ?> 135 <script type="text/javascript" charset="utf-8"> 136 jQuery('.cancel').click(function() { 137 tb_remove(); 138 }); 139 140 jQuery('.select').click(function() { 141 image_selector(); 142 }); 143 </script> 144 <h3 id="title"><label for="post_title"><?php _e('Description') ?></label></h3> 145 <div class="titlewrap"> 146 <input id="this_photo_description" name="photo_description" class="text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo attribute_escape($title);?>"/> 147 </div> 148 149 <p class="centered"><input type="hidden" name="this_photo" value="<?php echo attribute_escape($image); ?>" id="this_photo" /> 150 <a href="#" class="select"><img src="<?php echo clean_url($image); ?>" alt="<?php echo attribute_escape(__('Click to insert.')); ?>" title="<?php echo attribute_escape(__('Click to insert.')); ?>" /></a></p> 151 152 <p id="options"><a href="#" class="select button"><?php _e('Insert Image'); ?></a> <a href="#" class="cancel button"><?php _e('Cancel'); ?></a></p> 153 <?php break; 154 155 case 'photo_thickbox_url': ?> 156 <script type="text/javascript" charset="utf-8"> 157 jQuery('.cancel').click(function() { 158 tb_remove(); 159 }); 160 161 jQuery('.select').click(function() { 162 image_selector(); 163 }); 164 </script> 165 <h3 id="title"><label for="post_title"><?php _e('URL') ?></label></h3> 166 <div class="titlewrap"> 167 <input id="this_photo" name="this_photo" class="text" onkeypress="if(event.keyCode==13) image_selector();" /> 168 </div> 169 170 171 <h3 id="title"><label for="post_title"><?php _e('Description') ?></label></h3> 172 <div class="titlewrap"> 173 <input id="this_photo_description" name="photo_description" class="text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo attribute_escape($title);?>"/> 174 </div> 175 176 <p id="options"><a href="#" class="select"><?php _e('Insert Image'); ?></a> | <a href="#" class="cancel"><?php _e('Cancel'); ?></a></p> 177 <?php break; 178 case 'photo_images': 179 function get_images_from_uri($uri) { 180 if( preg_match('/\.(jpg|jpe|jpeg|png|gif)/', $uri) && !strpos($uri,'blogger.com') ) 181 return "'".$uri."'"; 182 183 $content = wp_remote_fopen($uri); 184 if ( false === $content ) return ''; 185 186 $host = parse_url($uri); 187 188 $pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif))[^<>\'\"]*(\2)([^>\/]*)\/*>/is'; 189 preg_match_all($pattern, $content, $matches); 190 191 if ( empty($matches[0]) ) return ''; 192 193 $sources = array(); 194 foreach ($matches[3] as $src) { 195 // if no http in url 196 if(strpos($src, 'http') === false) 197 // if it doesn't have a relative uri 198 if( strpos($src, '../') === false && strpos($src, './') === false && strpos($src, '/') === true) 199 $src = 'http://'.str_replace('//','/', $host['host'].'/'.$src); 200 else 201 $src = 'http://'.str_replace('//','/', $host['host'].'/'.dirname($host['path']).'/'.$src); 202 203 $sources[] = clean_url($src); 204 error_log($src); 205 } 206 return "'" . implode("','", $sources) . "'"; 207 } 208 209 $url = urldecode($url); 210 $url = str_replace(' ', '%20', $url); 211 echo 'new Array('.get_images_from_uri($url).')'; 212 break; 213 214 case 'photo_js': ?> 215 // gather images and load some default JS 216 var last = null 217 var img, img_tag, aspect, w, h, skip, i, strtoappend = ""; 218 if(!my_src) { 219 var my_src = eval( 220 jQuery.ajax({ 221 type: "GET", 222 url: "<?php echo clean_url($_SERVER['PHP_SELF']); ?>", 223 cache : false, 224 async : false, 225 data: "ajax=photo_images&u=<?php echo urlencode($url); ?>", 226 dataType : "script" 227 }).responseText 228 ); 229 } 230 231 for (i = 0; i < my_src.length; i++) { 232 img = new Image(); 233 img.src = my_src[i]; 234 img_attr = 'id="img' + i + '"'; 235 skip = false; 236 if (img.width && img.height) { 237 if (img.width * img.height < 2500) 238 skip = true; 239 aspect = img.width / img.height; 240 scale = (aspect > 1) ? (71 / img.width) : (71 / img.height); 241 242 w = img.width; 243 h = img.height; 244 245 if (scale < 1) { 246 w = parseInt(img.width * scale); 247 h = parseInt(img.height * scale); 248 } 249 img_attr += ' style="width: ' + w + 'px; height: ' + h + 'px;"'; 250 } 251 if (!skip) strtoappend += '<a href="?ajax=photo_thickbox&i=' + img.src + '&u=<?php echo $url; ?>&height=400&width=500" title="" class="thickbox"><img src="' + img.src + '" ' + img_attr + '/></a>'; 252 } 253 254 function pick(img, desc) { 255 if (img) { 256 if('object' == typeof jQuery('.photolist input') && jQuery('.photolist input').length != 0) length = jQuery('.photolist input').length; 257 if(length == 0) length = 1; 258 jQuery('.photolist').append('<input name="photo_src[' + length + ']" value="' + img +'" type="hidden"/>'); 259 jQuery('.photolist').append('<input name="photo_description[' + length + ']" value="' + desc +'" type="hidden"/>'); 260 append_editor("\n\n" + '<p><img src="' + img +'" alt="' + desc + '" class="aligncenter"/></p>'); 261 } 262 tinyMCE.activeEditor.resizeToContent(); 263 return false; 264 } 265 266 function image_selector() { 137 267 tb_remove(); 268 desc = jQuery('#this_photo_description').val(); 269 src = jQuery('#this_photo').val(); 270 pick(src, desc); 271 jQuery('#extra_fields').hide(); 272 return false; 273 } 274 275 jQuery(document).ready(function() { 276 jQuery('#extra_fields').html('<h2>Photo <small id="photo_directions">(<?php _e("click images to select") ?>)</small></h2><div class="photolist"></div><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>'); 277 jQuery('.close').click(function() { 278 jQuery('#extra_fields').hide(); 279 }); 280 jQuery('#img_container').html(strtoappend); 281 jQuery('#photo_add_url').attr('href', '?ajax=photo_thickbox_url&height=200&width=500'); 282 tb_init('#extra_fields .thickbox'); 138 283 }); 139 140 jQuery('.select').click(function() { 141 image_selector(); 142 }); 143 </script> 144 <h3 id="title"><label for="post_title"><?php _e('Description') ?></label></h3> 145 <div class="titlewrap"> 146 <input id="this_photo_description" name="photo_description" class="text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo attribute_escape($title);?>"/> 147 </div> 148 149 <p class="centered"><input type="hidden" name="this_photo" value="<?php echo attribute_escape($image); ?>" id="this_photo" /> 150 <a href="#" class="select"><img src="<?php echo clean_url($image); ?>" alt="<?php echo attribute_escape(__('Click to insert.')); ?>" title="<?php echo attribute_escape(__('Click to insert.')); ?>" /></a></p> 151 152 <p id="options"><a href="#" class="select button"><?php _e('Insert Image'); ?></a> <a href="#" class="cancel button"><?php _e('Cancel'); ?></a></p> 153 <?php die; 154 } 155 156 if($_REQUEST['ajax'] == 'thickbox_url') { ?> 157 <script type="text/javascript" charset="utf-8"> 158 jQuery('.cancel').click(function() { 159 tb_remove(); 160 }); 161 162 jQuery('.select').click(function() { 163 image_selector(); 164 }); 165 </script> 166 <h3 id="title"><label for="post_title"><?php _e('URL') ?></label></h3> 167 <div class="titlewrap"> 168 <input id="this_photo" name="this_photo" class="text" onkeypress="if(event.keyCode==13) image_selector();" /> 169 </div> 170 171 172 <h3 id="title"><label for="post_title"><?php _e('Description') ?></label></h3> 173 <div class="titlewrap"> 174 <input id="this_photo_description" name="photo_description" class="text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo attribute_escape($title);?>"/> 175 </div> 176 177 <p id="options"><a href="#" class="select"><?php _e('Insert Image'); ?></a> | <a href="#" class="cancel"><?php _e('Cancel'); ?></a></p> 178 <?php die; 179 } 180 181 if($_REQUEST['ajax'] == 'video') { ?> 182 <h2 id="embededcode"><label for="embed_code"><?php _e('Embed Code') ?></label></h2> 183 <div class="titlewrap" > 184 <textarea name="embed_code" id="embed_code" rows="8" cols="40"><?php echo format_to_edit($selection); ?></textarea> 185 </div> 186 <?php die; 187 } 188 189 if($_REQUEST['ajax'] == 'photo_images') { 190 function get_images_from_uri($uri) { 191 if( preg_match('/\.(jpg|jpe|jpeg|png|gif)/', $uri) && !strpos($uri,'blogger.com') ) 192 return "'".$uri."'"; 193 194 $content = wp_remote_fopen($uri); 195 if ( false === $content ) return ''; 196 197 $host = parse_url($uri); 198 199 $pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif))[^<>\'\"]*(\2)([^>\/]*)\/*>/is'; 200 preg_match_all($pattern, $content, $matches); 201 202 if ( empty($matches[1]) ) return ''; 203 204 $sources = array(); 205 foreach ($matches[3] as $src) { 206 // if no http in url 207 if(strpos($src, 'http') === false) 208 // if it doesn't have a relative uri 209 if( strpos($src, '../') === false && strpos($src, './') === false && strpos($src, '/') === true) 210 $src = 'http://'.str_replace('//','/', $host['host'].'/'.$src); 211 else 212 $src = 'http://'.str_replace('//','/', $host['host'].'/'.dirname($host['path']).'/'.$src); 213 214 $sources[] = clean_url($src); 215 } 216 return "'" . implode("','", $sources) . "'"; 217 } 218 219 $url = urldecode($url); 220 $url = str_replace(' ', '%20', $url); 221 echo 'new Array('.get_images_from_uri($url).')'; 284 <?php break; 285 } 222 286 die; 223 287 } 224 288 225 if($_REQUEST['ajax'] == 'photo_js') { ?>226 // gather images and load some default JS227 var last = null228 var img, img_tag, aspect, w, h, skip, i, strtoappend = "";229 var my_src = eval(230 jQuery.ajax({231 type: "GET",232 url: "<?php echo clean_url($_SERVER['PHP_SELF']); ?>",233 cache : false,234 async : false,235 data: "ajax=photo_images&u=<?php echo urlencode($url); ?>",236 dataType : "script"237 }).responseText238 );239 240 for (i = 0; i < my_src.length; i++) {241 img = new Image();242 img.src = my_src[i];243 img_attr = 'id="img' + i + '"';244 skip = false;245 if (img.width && img.height) {246 if (img.width * img.height < 2500)247 skip = true;248 aspect = img.width / img.height;249 scale = (aspect > 1) ? (75 / img.width) : (75 / img.height);250 251 w = img.width;252 h = img.height;253 254 if (scale < 1) {255 w = parseInt(img.width * scale);256 h = parseInt(img.height * scale);257 }258 img_attr += ' style="width: ' + w + 'px; height: ' + h + 'px;"';259 }260 if (!skip) strtoappend += '<a href="?ajax=thickbox&i=' + img.src + '&u=<?php echo $url; ?>&height=400&width=500" title="" class="thickbox"><img src="' + img.src + '" ' + img_attr + '/></a>';261 }262 263 function pick(img, desc) {264 if (img) {265 if('object' == typeof jQuery('.photolist input') && jQuery('.photolist input').length != 0) length = jQuery('.photolist input').length;266 if(length == 0) length = 1;267 jQuery('.photolist').append('<input name="photo_src[' + length + ']" value="' + img +'" type="hidden"/>');268 jQuery('.photolist').append('<input name="photo_description[' + length + ']" value="' + desc +'" type="hidden"/>');269 append_editor("\n\n" + '<p><img src="' + img +'" alt="' + desc + '" class="aligncenter"/></p>');270 }271 tinyMCE.activeEditor.resizeToContent();272 return false;273 }274 275 function image_selector() {276 tb_remove();277 desc = jQuery('#this_photo_description').val();278 src = jQuery('#this_photo').val();279 pick(src, desc);280 return false;281 }282 283 jQuery(document).ready(function() {284 jQuery('#extra_fields').html('<div class="photolist"></div><small id="photo_directions"><?php _e("Click images to select:") ?> <span><a href="#" id="photo_add_url" class="thickbox"><?php _e("Add from URL") ?> +</a></span></small><div class="titlewrap"><div id="img_container"></div></div>');285 jQuery('#img_container').html(strtoappend);286 jQuery('#photo_add_url').attr('href', '?ajax=thickbox_url&height=200&width=500');287 tb_init('a.thickbox, area.thickbox, input.thickbox');288 });289 290 <?php die;291 }292 293 if($_REQUEST['ajax'] == 'photo') { ?>294 295 <?php die;296 }297 289 ?> 298 290 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … … 301 293 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 302 294 <title><?php _e('Press This') ?></title> 303 304 295 <script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce.js?ver=311"></script> 305 296 <?php … … 310 301 wp_enqueue_script( 'post' ); 311 302 wp_enqueue_script('editor_functions'); 312 313 // wp_teeny_mce();314 303 315 304 do_action('admin_print_styles'); … … 337 326 height: "300", 338 327 theme : "advanced", 339 theme_advanced_buttons1 : "bold,italic,underline,blockquote,separator,strikethrough,bullist,numlist, undo,redo,link,unlink",328 theme_advanced_buttons1 : "bold,italic,underline,blockquote,separator,strikethrough,bullist,numlist,justifyleft, justifycenter, justifyright, undo,redo,link,unlink", 340 329 theme_advanced_buttons2 : "", 341 330 theme_advanced_buttons3 : "", … … 354 343 accessibility_focus : false, 355 344 tab_focus : ":next", 356 plugins : "safari,inlinepopups ",345 plugins : "safari,inlinepopups, media", 357 346 entities : "38,amp,60,lt,62,gt", 358 347 force_p_newlines : true, … … 362 351 363 352 jQuery('#tags-input').hide(); 364 365 353 tag_update_quickclicks(); 366 367 354 // add the quickadd form 368 355 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>'); … … 377 364 jQuery(this).val( postL10n.addTag ).addClass( 'form-input-tip' ); 378 365 }); 379 380 366 // auto-save tags on post save/publish 381 367 jQuery('#publish').click( tag_save_on_publish ); 382 jQuery('#save-post').click( tag_save_on_publish ); 383 384 function set_menu(type) { 385 jQuery('#text_button').removeClass('ui-tabs-selected'); 386 jQuery('#menu li').removeClass('ui-tabs-selected'); 387 jQuery('#' + type + '_button').addClass('ui-tabs-selected'); 388 jQuery("#post_type").val(type); 389 } 368 jQuery('#save').click( tag_save_on_publish ); 369 390 370 391 371 function set_editor(text) { … … 395 375 396 376 function append_editor(text) { 397 if ( '' != text && tinyMCE.activeEditor ) tinyMCE.execCommand('mceInsertContent', false, text); 377 if ( '' != text && tinyMCE.activeEditor ) tinyMCE.execCommand('mceSetContent', false, tinyMCE.activeEditor.getContent({format : 'raw'}) 378 + '<p>' + tinymce.DOM.decode(text) + '</p>'); 379 tinyMCE.execCommand('mceCleanup'); 398 380 } 399 381 400 function set_title(title) { jQuery("#content_type").text(title); }401 402 382 function show(tab_name) { 403 jQuery('body').removeClass('video_split'); 404 jQuery('#extra_fields').hide(); 383 405 384 switch(tab_name) { 406 case 'text' :407 set_menu('text');408 set_title('<?php _e('Post') ?>');409 <?php if ($selection) { ?>410 set_editor('<?php echo $selection; ?><p><a href="<?php echo $url ?>"><?php echo $title; ?></a>.</p>');411 <?php } else { ?>412 set_editor('<p><a href="<?php echo $url ?>"><?php echo $title; ?></a></p>');413 <?php } ?>414 return false;415 break;416 case 'quote' :417 set_menu('quote');418 set_title('<?php _e('Quote') ?>');419 set_editor('<blockquote><?php echo $selection; ?> <p><cite><a href="<?php echo $url; ?>"><?php echo $title; ?> </a> </cite> </p></blockquote>');420 return false;421 break;422 385 case 'video' : 423 set_menu('video');424 set_title('<?php _e('Caption') ?>');425 386 jQuery('#extra_fields').show(); 426 jQuery('body').addClass('video_split');427 387 jQuery('#extra_fields').load('<?php echo clean_url($_SERVER['PHP_SELF']); ?>', { ajax: 'video', s: '<?php echo attribute_escape($selection); ?>'}, function() { 428 388 <?php … … 443 403 } 444 404 ?> 445 jQuery('#embed_code').prepend('<?php echo htmlentities($content); ?>'); 446 447 set_editor('<a href="<?php echo $url ?>"><?php echo $title; ?></a>.'); 405 jQuery('#embed-code').prepend('<?php echo htmlentities($content); ?>'); 406 448 407 }); 449 408 return false; 450 409 break; 451 410 case 'photo' : 452 set_menu('photo'); 453 set_title('<?php _e('Post') ?>'); 454 <?php if ($selection) { ?> 455 set_editor('<?php echo $selection; ?><p><a href="<?php echo $url ?>"><?php echo $title; ?></a></p>'); 456 <?php } else { ?> 457 set_editor('<p><a href="<?php echo $url ?>"><?php echo $title; ?></a></p>'); 458 <?php } ?> 459 jQuery('#extra_fields').show(); 460 jQuery('#extra_fields').before('<h2 id="waiting"><img src="images/loading.gif" alt="" /><?php echo js_escape( __( 'Loading...' ) ); ?></h2>'); 461 jQuery.ajax({ 462 type: "GET", 463 cache : false, 464 url: "<?php echo clean_url($_SERVER['PHP_SELF']); ?>", 465 data: "ajax=photo_js&u=<?php echo urlencode($url)?>", 466 dataType : "script", 467 success : function() { 468 jQuery('#waiting').remove(); 469 } 470 }); 411 if(jQuery('#extra_fields').css('display') == 'none') { 412 jQuery('#extra_fields').show(); 413 jQuery('#extra_fields').before('<p id="waiting"><img src="images/loading.gif" alt="" /><?php echo js_escape( __( 'Loading...' ) ); ?></p>'); 414 jQuery.ajax({ 415 type: "GET", 416 cache : false, 417 url: "<?php echo clean_url($_SERVER['PHP_SELF']); ?>", 418 data: "ajax=photo_js&u=<?php echo urlencode($url)?>", 419 dataType : "script", 420 success : function() { 421 jQuery('#waiting').remove(); 422 } 423 }); 424 } else { 425 jQuery('#extra_fields').hide(); 426 } 471 427 return false; 472 428 break; … … 475 431 476 432 jQuery(document).ready(function() { 477 jQuery('#menu li').click(function (){ 478 tab_name = this.id.split('_'); 479 tab_name = tab_name[0]; 480 show(tab_name); 481 }); 433 jQuery('#photo_button').click(function() { show('photo'); return false; }); 434 jQuery('#video_button').click(function() { show('video'); return false; }); 435 482 436 // Set default tabs 483 437 <?php if ( preg_match("/youtube\.com\/watch/i", $url) ) { ?> … … 488 442 show('photo'); 489 443 <?php } ?> 444 445 jQuery('#submit').click(function() { jQuery('saving').css('display', 'block'); }); 490 446 }); 491 492 447 </script> 493 448 </head> 494 449 <body class="press-this"> 495 450 <div id="wphead"> 496 <h1><span id="viewsite"><a href="<?php echo get_option('home'); ?>/"><?php _e('Visit:') ?> <?php bloginfo('name'); ?></a></span></h1>497 451 </div> 498 452 499 <ul id="menu" class="ui-tabs-nav">500 <li id="text_button" class="ui-tabs-selected"><a href="#"><?php _e('Text') ?></a></li>501 <li id="photo_button"><a href="#"><?php _e('Photo') ?></a></li>502 <li id="quote_button"><a href="#"><?php _e('Quote') ?></a></li>503 <li id="video_button"><a href="#"><?php _e('Video') ?></a></li>504 </ul>505 506 453 <?php 507 if ( isset($ _GET['posted']) && intval($_GET['posted']) ) {508 $post_ID = intval($ _GET['posted']);454 if ( isset($posted) && intval($posted) ) { 455 $post_ID = intval($posted); 509 456 ?> 510 457 <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink( $post_ID); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $post_ID ); ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit post'); ?></a> | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p></div> … … 515 462 <?php wp_nonce_field('press-this') ?> 516 463 <input type="hidden" name="post_type" id="post_type" value="text"/> 517 <div id="posting"> 518 <h2 id="title"><label for="post_title"><?php _e('Title') ?></label></h2> 519 <div class="titlewrap"> 520 <input name="post_title" id="post_title" class="text" value="<?php echo attribute_escape($title);?>"/> 521 </div> 522 523 <div id="extra_fields" style="display: none"></div> 524 525 <div class="editor_area"> 526 <h2 id="content_type"><label for="content"><?php _e('Post') ?></label></h2> 527 <div class="editor-container"> 528 <textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15"><?php if ($selection) { echo wp_richedit_pre($selection); } ?><a href="<?php echo $url ?>"><?php echo $title; ?></a>.</textarea> 464 465 <div id="poststuff"> 466 <div id="side-info-column"> 467 <div class="sleeve"> 468 <h1 id="viewsite"><a class="button" href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?> › <?php _e('Press This') ?></a></span></h1> 469 470 <div id="categorydiv" class="stuffbox"> 471 <h2><?php _e('Categories') ?></h2> 472 <div class="inside"> 473 474 <div id="categories-all" class="ui-tabs-panel"> 475 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 476 <?php wp_category_checklist($post->ID, false, false, $popular_ids) ?> 477 </ul> 478 479 </div> 480 481 <div id="category-adder" class="wp-hidden-children"> 482 <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4> 483 <p id="category-add" class="wp-hidden-child"> 484 <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"/> 485 <label class="hidden" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> 486 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e( 'Add' ); ?>" tabindex="3" /> 487 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?> 488 <span id="category-ajax-response"></span> 489 </p> 490 </div> 491 </div> 492 </div> 493 494 <div class="stuffbox"> 495 <h2><?php _e('Tags') ?></h2> 496 <div class="inside"> 497 498 <div id="jaxtag"><label class="hidden" for="newtag"><?php _e('Tags'); ?></label><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /></div> 499 500 <div id="tagchecklist"></div> 501 </div> 502 </div> 503 <div id="submitdiv" class="stuffbox"> 504 <h2><?php _e('Publish') ?></h2> 505 <div class="submitbox"> 506 <p class="submit"> 507 <input class="button" type="submit" name="draft" value="<?php _e('Save Draft') ?>" id="save" /> 508 <input class="button" type="submit" name="publish" value="<?php _e('Publish') ?>" id="publish" /> 509 <img src="images/loading-publish.gif" alt="" id="saving" style="display:none;"/> 510 </p> 511 </div> 529 512 </div> 530 513 </div> 531 514 </div> 532 533 <div id="categories"> 534 <div class="submitbox" id="submitpost"> 535 <div id="previewview"></div> 536 <div class="inside"> 537 <h2><?php _e('Categories') ?></h2> 538 <div id="categories-all"> 539 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 540 <?php wp_category_checklist() ?> 541 </ul> 515 516 <div class="posting"> 517 <h2 id="title"><label for="post_title"><?php _e('Title') ?></label></h2> 518 <div class="titlewrap"> 519 <input name="post_title" id="post_title" class="text" value="<?php echo attribute_escape($title);?>"/> 520 </div> 521 522 <div id="extra_fields" style="display: none"></div> 523 524 <div class="postdivrich"> 525 <ul id="actions"> 526 <li id="photo_button"><a href="#" class="button"><?php _e( 'Add Photo' ); ?></a></li> 527 <li id="video_button"><a href="#" class="button"><?php _e( 'Add Video' ); ?></a></li> 528 </ul> 529 530 <h2 id="content_type"><label for="content"><?php _e('Post') ?></label></h2> 531 532 <div class="editor-container"> 533 <textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15"><?php if ($selection) { echo wp_richedit_pre($selection); } ?><a href="<?php echo $url ?>"><?php echo $title; ?></a><?php if($selection) echo '.'; ?></textarea> 542 534 </div> 543 544 <h2><?php _e('Tags') ?></h2> 545 <p id="jaxtag"><label class="hidden" for="newtag"><?php _e('Tags'); ?></label><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /></p> 546 <div id="tagchecklist"></div> 547 </div> 548 549 <p class="submit"> 550 <input type="submit" name="draft" value="<?php _e('Save') ?>" onclick="document.getElementById('photo_saving').style.display = '';"/> 551 <input type="submit" name="publish" value="<?php _e('Publish') ?>" onclick="document.getElementById('photo_saving').style.display = '';"/> 552 <img src="images/loading-publish.gif" alt="" id="photo_saving" style="display:none;"/> 553 </p> 535 </div> 554 536 </div> 537 538 555 539 </div> 556 540 </form> -
trunk/wp-includes/script-loader.php
r8894 r8903 316 316 $styles->add( 'install', '/wp-admin/css/install.css', array(), '20080708' ); 317 317 $styles->add( 'theme-editor', '/wp-admin/css/theme-editor.css' ); 318 $styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20080 710' );319 $styles->add( 'press-this-ie', '/wp-admin/css/press-this-ie.css', array(), '20080 710' );318 $styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20080915' ); 319 $styles->add( 'press-this-ie', '/wp-admin/css/press-this-ie.css', array(), '20080915' ); 320 320 $styles->add_data( 'press-this-ie', 'conditional', 'gte IE 6' ); 321 321 $styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array(), '20080613' );
Note: See TracChangeset
for help on using the changeset viewer.