Changeset 8071 for trunk/wp-admin/press-this.php
- Timestamp:
- 06/11/2008 05:45:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r8067 r8071 58 58 } 59 59 60 function tag_div() { ?>61 <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>62 <div id="tagchecklist"></div>63 <?php }64 60 65 61 function category_div() { ?> 66 62 <div id="categories"> 67 63 <div class="submitbox" id="submitpost"> 68 <div id="previewview"> <h2><?php _e('Categories') ?></h2></div>64 <div id="previewview"></div> 69 65 <div class="inside"> 66 <h2><?php _e('Categories') ?></h2> 70 67 <div id="categories-all"> 71 68 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> … … 73 70 </ul> 74 71 </div> 72 <h2><?php _e('Tags') ?></h2> 73 <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> 74 <div id="tagchecklist"></div> 75 75 76 </div> 76 77 <p class="submit"> … … 158 159 159 160 function get_images_from_uri($uri) { 161 if(preg_match('/\.(jpg|png|gif)/', $uri)) return "'".$uri."'"; 160 162 $content = wp_remote_fopen($uri); 161 163 $host = parse_url($uri); … … 180 182 } 181 183 return "'" . implode("','", $sources) . "'"; 182 } 184 } 185 183 186 184 187 echo 'new Array('.get_images_from_uri($url).')'; … … 252 255 <small><?php _e('Click images to select:') ?></small> 253 256 <div class="titlewrap"> 254 <div id="img_container"> Loading Images...</div>257 <div id="img_container"></div> 255 258 </div> 256 259 <?php die; } … … 423 426 <?php } ?> 424 427 jQuery('#extra_fields').show(); 428 jQuery('#extra_fields').prepend('<h2 id="waiting"><img src="images/loading.gif" alt="" /> Loading...</h2>'); 425 429 jQuery('#extra_fields').load('<?php echo clean_url($_SERVER['PHP_SELF']).'/?ajax=photo&u='.attribute_escape($url); ?>'); 426 jQuery('#extra_fields').prepend('<h2><img src="images/loading.gif" alt="" /> Loading...</h2>');427 430 jQuery.ajax({ 428 431 type: "GET", … … 432 435 dataType : "script", 433 436 success : function() { 437 jQuery('#waiting').innerHTML(''); 434 438 } 435 439 }); … … 491 495 </div> 492 496 </div> 493 <?php tag_div(); ?>497 494 498 </div> 495 499 <?php category_div(); ?>
Note: See TracChangeset
for help on using the changeset viewer.