Press This update from noel. see #7949
git-svn-id: http://svn.automattic.com/wordpress/trunk@9673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cffcfd149f
commit
1a52b3e086
|
@ -16,25 +16,31 @@ img {
|
|||
background: #444 !important;
|
||||
}
|
||||
|
||||
.button,
|
||||
#poststuff #edButtonPreview,
|
||||
#poststuff #edButtonHTML {
|
||||
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
|
||||
padding: 3px 5px;
|
||||
font-size: 12px;
|
||||
line-height: 1.5em;
|
||||
border-width: 1px;
|
||||
-moz-border-radius-bottomleft:0;
|
||||
-moz-border-radius-bottomright:0;
|
||||
-moz-border-radius-topleft:3px;
|
||||
-moz-border-radius-topright:3px;
|
||||
border-style:solid;
|
||||
-moz-border-radius: 3px;
|
||||
-khtml-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
border-width:1px;
|
||||
cursor:pointer;
|
||||
margin-left: 5px;
|
||||
text-decoration: none;
|
||||
display:block;
|
||||
height:18px;
|
||||
margin:0px 5px 0 0;
|
||||
padding:0px 5px 0px;
|
||||
background-color:#E9E9E9;
|
||||
border-bottom-color:#E9E9E9;
|
||||
color:#333333;
|
||||
font-size: 10px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.howto {
|
||||
margin-top: 2px;
|
||||
margin-bottom: 3px;
|
||||
font-size: 11px;
|
||||
font-style: italic;
|
||||
display: block;
|
||||
|
@ -47,7 +53,6 @@ input.text {
|
|||
outline-width: medium;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
border-style: solid;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
|
@ -92,46 +97,74 @@ div.zerosize {
|
|||
margin: 0 12px 12px;
|
||||
}
|
||||
|
||||
#post_title {
|
||||
width: 99%;
|
||||
}
|
||||
|
||||
.titlewrap {
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
padding: 2px 3px;
|
||||
border-color: #ccc;
|
||||
}
|
||||
.titlewrap input {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
#poststuff h2, #poststuff h3 {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
padding: 7px;
|
||||
margin: 0 0 10px;
|
||||
background-color: #eaf3fa;
|
||||
|
||||
background-image:url(../images/postbox-bg.gif);
|
||||
background-position:left top;
|
||||
background-repeat:repeat-x;
|
||||
|
||||
font-size:12px;
|
||||
font-weight:bold;
|
||||
line-height:1;
|
||||
margin:0 0 10px;
|
||||
padding:7px 9px;
|
||||
text-shadow:0 1px 0 #FFFFFF;
|
||||
}
|
||||
|
||||
#poststuff .stuffbox {
|
||||
border: 1px solid white;
|
||||
border-color: #EBEBEB #ccc #ccc #EBEBEB;
|
||||
padding: 2px;
|
||||
margin-bottom: 10px;
|
||||
.metabox-holder .postbox,
|
||||
.postbox,
|
||||
.stuffbox {
|
||||
margin-bottom: 20px;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
line-height: 1;
|
||||
-moz-border-radius: 6px;
|
||||
-khtml-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.titlediv {
|
||||
border-color:#DFDFDF;
|
||||
}
|
||||
#title {
|
||||
-moz-border-radius-bottomleft:6px;
|
||||
-moz-border-radius-bottomright:6px;
|
||||
-moz-border-radius-topleft:6px;
|
||||
-moz-border-radius-topright:6px;
|
||||
border-style:solid;
|
||||
border-width:1px;
|
||||
font-size:1.7em;
|
||||
outline-color:-moz-use-text-color;
|
||||
outline-style:none;
|
||||
outline-width:medium;
|
||||
padding:3px 4px;
|
||||
width:98%;
|
||||
}
|
||||
.postbox h2 {
|
||||
background-image:url(../images/postbox-bg.gif);
|
||||
background-position:left top;
|
||||
background-repeat:repeat-x;
|
||||
background-color:#DFDFDF;
|
||||
}
|
||||
|
||||
.editor-container {
|
||||
border-width: 1px;
|
||||
border-color: #ccc;
|
||||
-moz-border-radius-bottomleft:0;
|
||||
-moz-border-radius-bottomright:0;
|
||||
-moz-border-radius-topleft:6px;
|
||||
-moz-border-radius-topright:6px;
|
||||
border-collapse:separate;
|
||||
border-style:solid;
|
||||
margin-bottom: 1em;
|
||||
margin-top: -10px;
|
||||
border-width:1px;
|
||||
border-color:#DFDFDF;
|
||||
}
|
||||
|
||||
.postdivrich {
|
||||
position: relative;
|
||||
margin-top: 10px;
|
||||
padding-top: 25px;
|
||||
}
|
||||
|
||||
#actions {
|
||||
|
@ -145,6 +178,7 @@ div.zerosize {
|
|||
#actions li {
|
||||
float: left;
|
||||
list-style: none;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
/* Photo Styles */
|
||||
|
@ -214,19 +248,19 @@ div.zerosize {
|
|||
/* Video */
|
||||
#embed-code {
|
||||
width: 100%;
|
||||
border: 0;
|
||||
height: 98px;
|
||||
}
|
||||
|
||||
/* Submit Column */
|
||||
#viewsite {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
margin: 0 0 20px 0;
|
||||
font-size: 10px;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#viewsite .button {
|
||||
width: 196px;
|
||||
margin: 0 0 10px 0;
|
||||
margin: 0 0 0px 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
@ -269,7 +303,7 @@ div.zerosize {
|
|||
}
|
||||
|
||||
#categorydiv {
|
||||
padding: 0.5em 0.9em;
|
||||
|
||||
}
|
||||
|
||||
/* Categories */
|
||||
|
@ -286,7 +320,6 @@ div.zerosize {
|
|||
#categorydiv div.ui-tabs-panel {
|
||||
height: 150px;
|
||||
overflow: auto;
|
||||
padding: 0.5em 0.9em;
|
||||
}
|
||||
|
||||
ul.categorychecklist li {
|
||||
|
@ -306,9 +339,12 @@ ul.categorychecklist li {
|
|||
clear: both;
|
||||
margin: 0;
|
||||
}
|
||||
#tagadd {
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
#tagchecklist {
|
||||
padding-left: 1em;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 1em;
|
||||
font-size: 12px;
|
||||
overflow: auto;
|
||||
|
@ -343,27 +379,34 @@ ul.categorychecklist li {
|
|||
}
|
||||
|
||||
/* Submit */
|
||||
.submitbox {
|
||||
margin-top: -10px;
|
||||
}
|
||||
|
||||
.submitbox .submit {
|
||||
font-size: 11px;
|
||||
padding: 12px 10px 10px;
|
||||
text-align: left;
|
||||
.submit input,
|
||||
.button,
|
||||
.button-primary,
|
||||
.button-secondary,
|
||||
.button-highlighted,
|
||||
#postcustomstuff .submit input {
|
||||
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
|
||||
text-decoration: none;
|
||||
font-size: 11px !important;
|
||||
line-height: 16px;
|
||||
padding: 2px 8px;
|
||||
cursor: pointer;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
-moz-border-radius: 11px;
|
||||
-khtml-border-radius: 11px;
|
||||
-webkit-border-radius: 11px;
|
||||
border-radius: 11px;
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box;
|
||||
-khtml-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
.submit {
|
||||
border-top: 1px solid #ccc;
|
||||
margin: 10px 0 0;
|
||||
padding: 1.5em 0 0;
|
||||
-moz-border-radius: 3px 3px 0 0;
|
||||
-webkit-border-top-left-radius: 3px;
|
||||
-webkit-border-top-right-radius: 3px;
|
||||
-khtml-border-top-left-radius: 3px;
|
||||
-khtml-border-top-right-radius: 3px;
|
||||
border-top-left-radius: 3px;
|
||||
border-top-right-radius: 3px;
|
||||
.button-primary {
|
||||
background:#21759B url(../images/button-grad.png) repeat-x scroll left top;
|
||||
border-color:#21759B;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
|
||||
.ac_results {
|
||||
|
|
|
@ -56,7 +56,7 @@ function press_it() {
|
|||
$quick['post_status'] = isset($_REQUEST['publish']) ? 'publish' : 'draft';
|
||||
$quick['post_category'] = $_REQUEST['post_category'];
|
||||
$quick['tags_input'] = $_REQUEST['tags_input'];
|
||||
$quick['post_title'] = $_REQUEST['post_title'];
|
||||
$quick['post_title'] = $_REQUEST['title'];
|
||||
$quick['post_content'] = '';
|
||||
|
||||
// insert the post with nothing in it, to get an ID
|
||||
|
@ -124,11 +124,15 @@ switch ($_REQUEST['ajax']) {
|
|||
jQuery('#extra_fields').html('');
|
||||
});
|
||||
</script>
|
||||
<div class="postbox">
|
||||
<h2><label for="embed-code"><?php _e('Embed Code') ?></label></h2>
|
||||
<div class="titlewrap" >
|
||||
<div class="inside">
|
||||
|
||||
<textarea name="embed-code" id="embed-code" rows="8" cols="40"><?php echo format_to_edit($selection, true); ?></textarea>
|
||||
</div>
|
||||
|
||||
<p id="options"><a href="#" class="select button"><?php _e('Insert Video'); ?></a> <a href="#" class="close button"><?php _e('Cancel'); ?></a></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php break;
|
||||
|
||||
case 'photo_thickbox': ?>
|
||||
|
@ -141,7 +145,7 @@ switch ($_REQUEST['ajax']) {
|
|||
image_selector();
|
||||
});
|
||||
</script>
|
||||
<h3 id="title"><label for="post_title"><?php _e('Description') ?></label></h3>
|
||||
<h3 id="title"><label for="title"><?php _e('Description') ?></label></h3>
|
||||
<div class="titlewrap">
|
||||
<input id="this_photo_description" name="photo_description" class="text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo attribute_escape($title);?>"/>
|
||||
</div>
|
||||
|
@ -150,6 +154,8 @@ switch ($_REQUEST['ajax']) {
|
|||
<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>
|
||||
|
||||
<p id="options"><a href="#" class="select button"><?php _e('Insert Image'); ?></a> <a href="#" class="cancel button"><?php _e('Cancel'); ?></a></p>
|
||||
|
||||
|
||||
<?php break;
|
||||
|
||||
case 'photo_thickbox_url': ?>
|
||||
|
@ -162,13 +168,13 @@ switch ($_REQUEST['ajax']) {
|
|||
image_selector();
|
||||
});
|
||||
</script>
|
||||
<h3 id="title"><label for="post_title"><?php _e('URL') ?></label></h3>
|
||||
<h3 id="title"><label for="title"><?php _e('URL') ?></label></h3>
|
||||
<div class="titlewrap">
|
||||
<input id="this_photo" name="this_photo" class="text" onkeypress="if(event.keyCode==13) image_selector();" />
|
||||
</div>
|
||||
|
||||
|
||||
<h3 id="title"><label for="post_title"><?php _e('Description') ?></label></h3>
|
||||
<h3 id="title"><label for="title"><?php _e('Description') ?></label></h3>
|
||||
<div class="titlewrap">
|
||||
<input id="this_photo_description" name="photo_description" class="text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo attribute_escape($title);?>"/>
|
||||
</div>
|
||||
|
@ -281,7 +287,7 @@ switch ($_REQUEST['ajax']) {
|
|||
}
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
jQuery('#extra_fields').html('<h2>Photo <small id="photo_directions">(<?php _e("click images to select") ?>)</small></h2><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>');
|
||||
jQuery('#extra_fields').html('<div class="postbox"><h2>Photo <small id="photo_directions">(<?php _e("click images to select") ?>)</small></h2><ul id="actions"><li><a href="#" id="photo_add_url" class="thickbox button"><?php _e("Add from URL") ?> +</a></li></ul><div class="inside"><div class="titlewrap"><div id="img_container"></div></div><p id="options"><a href="#" class="close button"><?php _e('Cancel'); ?></a></p></div>');
|
||||
jQuery('.close').click(function() {
|
||||
jQuery('#extra_fields').hide();
|
||||
jQuery('#extra_fields').html('');
|
||||
|
@ -402,7 +408,7 @@ die;
|
|||
}
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
top.resizeTo(700-screen.width+screen.availWidth,680-screen.height+screen.availHeight);
|
||||
top.resizeTo(720-screen.width+screen.availWidth,680-screen.height+screen.availHeight);
|
||||
jQuery('#photo_button').click(function() { show('photo'); return false; });
|
||||
jQuery('#video_button').click(function() { show('video'); return false; });
|
||||
jQuery('#visual_mode_button').click(function() {
|
||||
|
@ -432,10 +438,13 @@ die;
|
|||
<div id="side-info-column">
|
||||
<div class="sleeve">
|
||||
<h1 id="viewsite"><a class="button" href="<?php echo get_option('home'); ?>/" target="_blank"><?php bloginfo('name'); ?> › <?php _e('Press This') ?></a></span></h1>
|
||||
|
||||
<?php wp_nonce_field('press-this') ?>
|
||||
<input type="hidden" name="post_type" id="post_type" value="text"/>
|
||||
|
||||
<!-- This div holds the photo metadata -->
|
||||
<div class="photolist"></div>
|
||||
|
||||
<div id="categorydiv" class="stuffbox">
|
||||
<h2><?php _e('Categories') ?></h2>
|
||||
<div class="inside">
|
||||
|
@ -448,7 +457,7 @@ die;
|
|||
</div>
|
||||
|
||||
<div id="category-adder" class="wp-hidden-children">
|
||||
<h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4>
|
||||
<a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a>
|
||||
<p id="category-add" class="wp-hidden-child">
|
||||
<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"/>
|
||||
<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 ) ); ?>
|
||||
|
@ -469,12 +478,12 @@ die;
|
|||
<div id="tagchecklist"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="submitdiv" class="stuffbox">
|
||||
<div id="submitdiv" class="postbox">
|
||||
<h2><?php _e('Publish') ?></h2>
|
||||
<div class="submitbox">
|
||||
<p class="submit">
|
||||
<div class="inside">
|
||||
<p>
|
||||
<input class="button" type="submit" name="draft" value="<?php _e('Save Draft') ?>" id="save" />
|
||||
<input class="button" type="submit" name="publish" value="<?php _e('Publish') ?>" id="publish" />
|
||||
<input class="button-primary" type="submit" name="publish" value="<?php _e('Publish') ?>" id="publish" />
|
||||
<img src="images/loading-publish.gif" alt="" id="saving" style="display:none;"/>
|
||||
</p>
|
||||
</div>
|
||||
|
@ -492,17 +501,25 @@ die;
|
|||
}
|
||||
?>
|
||||
|
||||
<h2 id="title"><label for="post_title"><?php _e('Title') ?></label></h2>
|
||||
|
||||
<div id="titlediv">
|
||||
<div class="titlewrap">
|
||||
<input name="post_title" id="post_title" class="text" value="<?php echo attribute_escape($title);?>"/>
|
||||
<input name="title" id="title" class="text" value="<?php echo attribute_escape($title);?>"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="extra_fields" style="display: none"></div>
|
||||
|
||||
<div class="postdivrich">
|
||||
<ul id="actions">
|
||||
<li id="photo_button"><a href="#" class="button"><?php _e( 'Add Photo' ); ?></a></li>
|
||||
<li id="video_button"><a href="#" class="button"><?php _e( 'Add Video' ); ?></a></li>
|
||||
<li id="photo_button">
|
||||
|
||||
Add: <a title="<?php _e('Insert an Image'); ?>" href="#">
|
||||
<img alt="<?php _e('Insert an Image'); ?>" src="images/media-button-image.gif"/></a>
|
||||
</li>
|
||||
<li id="video_button">
|
||||
<a title="<?php _e('Embed a Video'); ?>" href="#"><img alt="<?php _e('Embed a Video'); ?>" src="images/media-button-video.gif"/></a>
|
||||
</li>
|
||||
<li id="switcher">
|
||||
<?php wp_print_scripts( 'quicktags' ); ?>
|
||||
|
||||
|
@ -512,12 +529,9 @@ die;
|
|||
<div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('<?php echo $id; ?>')" /></div>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="quicktags">
|
||||
<div id="quicktags"></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<h2 id="content_type"><label for="content"><?php _e('Post') ?></label></h2>
|
||||
|
||||
<div class="editor-container">
|
||||
<textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15">
|
||||
|
@ -525,6 +539,7 @@ die;
|
|||
<?php if ($url) { echo '<p>'; if($selection) printf( __('via %s.'), "<a href='$url'>$title</a>" ); echo '</p>'; } ?>
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -317,7 +317,7 @@ function wp_default_styles( &$styles ) {
|
|||
$styles->add( 'dashboard', '/wp-admin/css/dashboard.css', array(), '20081113' );
|
||||
$styles->add( 'install', '/wp-admin/css/install.css', array(), '20080708' );
|
||||
$styles->add( 'theme-editor', '/wp-admin/css/theme-editor.css' );
|
||||
$styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20080922' );
|
||||
$styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20081113' );
|
||||
$styles->add( 'press-this-ie', '/wp-admin/css/press-this-ie.css', array(), '20080915' );
|
||||
$styles->add_data( 'press-this-ie', 'conditional', 'gte IE 6' );
|
||||
$styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array(), '20080613' );
|
||||
|
|
Loading…
Reference in New Issue