Changeset 7983 for trunk/wp-admin/press-this.php
- Timestamp:
- 05/22/2008 03:47:37 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.