From 1a52b3e0865378dae781c1ac768a20afe201a561 Mon Sep 17 00:00:00 2001
From: ryan
Date: Fri, 14 Nov 2008 01:20:20 +0000
Subject: [PATCH] Press This update from noel. see #7949
git-svn-id: http://svn.automattic.com/wordpress/trunk@9673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/css/press-this.css | 179 +++++++++++++++++++++-------------
wp-admin/press-this.php | 75 ++++++++------
wp-includes/script-loader.php | 2 +-
3 files changed, 157 insertions(+), 99 deletions(-)
diff --git a/wp-admin/css/press-this.css b/wp-admin/css/press-this.css
index af8dd3ccc4..d638330ed6 100644
--- a/wp-admin/css/press-this.css
+++ b/wp-admin/css/press-this.css
@@ -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;
- border-style: solid;
- -moz-border-radius: 3px;
- -khtml-border-radius: 3px;
- -webkit-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
- margin-left: 5px;
- text-decoration: none;
+-moz-border-radius-bottomleft:0;
+-moz-border-radius-bottomright:0;
+-moz-border-radius-topleft:3px;
+-moz-border-radius-topright:3px;
+border-style:solid;
+border-width:1px;
+cursor:pointer;
+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;
- border-style: solid;
- margin-bottom: 1em;
- margin-top: -10px;
+ -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;
+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 */
@@ -213,20 +247,20 @@ div.zerosize {
/* Video */
#embed-code {
- width: 100%;
- border: 0;
+width: 100%;
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 {
diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php
index a315ad03a6..d94c9f4363 100644
--- a/wp-admin/press-this.php
+++ b/wp-admin/press-this.php
@@ -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('');
});
+
@@ -141,7 +145,7 @@ switch ($_REQUEST['ajax']) {
image_selector();
});
-
+
@@ -150,6 +154,8 @@ switch ($_REQUEST['ajax']) {
+
+
@@ -162,13 +168,13 @@ switch ($_REQUEST['ajax']) {
image_selector();
});
-
+
-
+
@@ -281,7 +287,7 @@ switch ($_REQUEST['ajax']) {
}
jQuery(document).ready(function() {
- jQuery('#extra_fields').html('Photo ()
');
+ jQuery('#extra_fields').html('Photo ()
');
jQuery('.close').click(function() {
jQuery('#extra_fields').hide();
jQuery('#extra_fields').html('');
@@ -384,7 +390,7 @@ die;
case 'photo' :
jQuery('#extra_fields').html('');
jQuery('#extra_fields').show();
- jQuery('#extra_fields').before('
');
+ jQuery('#extra_fields').before('
');
jQuery.ajax({
type: "GET",
cache : false,
@@ -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;
+
-
-
-
+
+
+
+
+
@@ -448,7 +457,7 @@ die;
-
+
0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>
@@ -469,12 +478,12 @@ die;
-
+
-
-
+
@@ -492,17 +501,25 @@ die;
}
?>
-
-
-
-
-
+
+
+
-
+
diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
index 43eb1fc1c6..a76a03d4bb 100644
--- a/wp-includes/script-loader.php
+++ b/wp-includes/script-loader.php
@@ -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' );