Changeset 8959 for trunk/wp-admin/press-this.php
- Timestamp:
- 09/22/2008 10:04:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r8903 r8959 249 249 img_attr += ' style="width: ' + w + 'px; height: ' + h + 'px;"'; 250 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>';251 if (!skip) strtoappend += '<a href="?ajax=photo_thickbox&i=' + encodeURI(img.src) + '&u=<?php echo $url; ?>&height=400&width=500" title="" class="thickbox"><img src="' + img.src + '" ' + img_attr + '/></a>'; 252 252 } 253 253 … … 258 258 jQuery('.photolist').append('<input name="photo_src[' + length + ']" value="' + img +'" type="hidden"/>'); 259 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>');260 append_editor("\n\n" + '<p style="text-align: center;"><a href="<?php echo urlencode($url); ?>"><img src="' + img +'" alt="' + desc + '" /></a></p>'); 261 261 } 262 262 tinyMCE.activeEditor.resizeToContent(); … … 431 431 432 432 jQuery(document).ready(function() { 433 top.resizeTo(700-screen.width+screen.availWidth,680-screen.height+screen.availHeight); 433 434 jQuery('#photo_button').click(function() { show('photo'); return false; }); 434 435 jQuery('#video_button').click(function() { show('video'); return false; }); … … 451 452 </div> 452 453 453 <?php454 if ( isset($posted) && intval($posted) ) {455 $post_ID = intval($posted);456 ?>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>458 <?php459 }460 ?>461 454 <form action="press-this.php?action=post" method="post"> 462 455 <?php wp_nonce_field('press-this') ?> 463 456 <input type="hidden" name="post_type" id="post_type" value="text"/> 464 457 465 <div id="poststuff"> 458 <div id="poststuff"> 466 459 <div id="side-info-column"> 467 460 <div class="sleeve"> … … 515 508 516 509 <div class="posting"> 510 <?php 511 if ( isset($posted) && intval($posted) ) { 512 $post_ID = intval($posted); 513 ?> 514 <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 <?php 516 } 517 ?> 518 517 519 <h2 id="title"><label for="post_title"><?php _e('Title') ?></label></h2> 518 520 <div class="titlewrap">
Note: See TracChangeset
for help on using the changeset viewer.