Changeset 7946
- Timestamp:
- 05/17/2008 06:50:54 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r7945 r7946 16 16 $content = $_REQUEST['content']; 17 17 if ($_REQUEST['content2']) 18 $content .= '<p>' . $_REQUEST['content2']; 18 $content .= '<p>' . $_REQUEST['content2']; 19 19 break; 20 20 … … 23 23 if ($_REQUEST['content2']) { 24 24 $content .= '</blockquote>'; 25 $content = $content . '<p>' . $_REQUEST['content2']; 25 $content = $content . '<p>' . $_REQUEST['content2']; 26 26 } 27 27 break; … … 37 37 38 38 if ($_REQUEST['content']) 39 $content = $content . '<br clear="all">' . $_REQUEST['content']; 39 $content = $content . '<br clear="all">' . $_REQUEST['content']; 40 40 41 41 break; … … 45 45 if ($_REQUEST['content2']) 46 46 $content .= '</br><p>' . $_REQUEST['content2'] . '</p>'; 47 break; 47 break; 48 48 } 49 49 … … 180 180 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 181 181 <title><?php _e('Quick Post') ?></title> 182 182 183 183 <script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce.js"></script> 184 184 185 185 <?php 186 186 wp_enqueue_script('jquery-ui-tabs'); … … 192 192 ?> 193 193 <script type="text/javascript"> 194 <?php if ( user_can_richedit() ) { 194 <?php if ( user_can_richedit() ) { 195 195 $language = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); 196 196 // Add TinyMCE languages … … 206 206 sl.markDone(base + '/themes/advanced/langs/' + ln + '_dlg.js'); 207 207 })(); 208 208 209 209 tinyMCE.init({ 210 210 mode: "textareas", … … 347 347 padding: 2px; 348 348 background-color: #f4f4f4; 349 margin-right: 7px; 350 margin-bottom: 7px; 349 margin-right: 7px; 350 margin-bottom: 7px; 351 351 cursor: pointer; 352 352 } … … 359 359 360 360 <?php tag_div(); ?> 361 362 <div> 361 362 <div> 363 363 <input type="submit" value="<?php _e('Create Photo') ?>" style="margin-top:15px;" onclick="document.getElementById('photo_saving').style.display = '';"/> 364 364 … … 388 388 <div class="editor-container"> 389 389 <textarea name="content" id="regular_post_two" style="height:170px;width:100%;" class="mceEditor"><?php echo $selection;?><br><a href="<?php echo $url;?>"><?php echo $title;?></a></textarea> 390 </div> 390 </div> 391 391 392 392 <?php tag_div(); ?> 393 394 <div> 393 394 <div> 395 395 <input type="submit" value="<?php _e('Create Post') ?>" style="margin-top:15px;" onclick="document.getElementById('regular_saving').style.display = '';"/> 396 396 <a href="#" onclick="if (confirm('<?php _e('Are you sure?') ?>')) { self.close(); } else { return false; }" style="color:#007BFF;"><?php _e('Cancel') ?></a> … … 428 428 <?php tag_div(); ?> 429 429 430 <div> 430 <div> 431 431 <input type="submit" value="<?php echo attribute_escape(__('Create Quote')) ?>" style="margin-top:15px;" onclick="document.getElementById('quote_saving').style.display = '';"/> 432 432 <a href="#" onclick="if (confirm('<?php _e('Are you sure?') ?>')) { self.close(); } else { return false; }" style="color:#007BFF;"><?php _e('Cancel') ?></a> … … 452 452 <input name="post_title" id="post_title" class="text" value="<?php echo attribute_escape($title);?>"/> 453 453 454 <?php 455 if ( preg_match("/youtube\.com\/watch/i", $url) ) { 454 <?php 455 if ( preg_match("/youtube\.com\/watch/i", $url) ) { 456 456 list($domain, $video_id) = split("v=", $url); 457 457 ?> … … 471 471 <?php tag_div(); ?> 472 472 473 <div> 473 <div> 474 474 <input type="submit" value="<?php _e('Create Video') ?>" style="margin-top:15px;" onclick="document.getElementById('video_saving').style.display = '';"/> 475 475 <a href="#" onclick="if (confirm('<?php _e('Are you sure?') ?>')) { self.close(); } else { return false; }" style="color:#007BFF;"><?php _e('Cancel'); ?></a> … … 482 482 exit; 483 483 } 484 ?> 484 ?>
Note: See TracChangeset
for help on using the changeset viewer.