Post screen improvements^H^H^H, er, changes. Will file tickets for todos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1d1c3cc6f5
commit
2073c22bbd
|
@ -2,7 +2,6 @@
|
|||
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
||||
if (!isset($_GET["page"])) require_once('admin.php');
|
||||
if ( $editing ) {
|
||||
wp_enqueue_script( array('dbx-admin-key?pagenow=' . attribute_escape($pagenow),'admin-custom-fields') );
|
||||
if ( current_user_can('manage_categories') )
|
||||
wp_enqueue_script( 'ajaxcat' );
|
||||
if ( user_can_richedit() )
|
||||
|
|
|
@ -68,96 +68,25 @@ addLoadEvent(focusit);
|
|||
<?php endif; ?>
|
||||
<div id="poststuff">
|
||||
|
||||
<div id="moremeta">
|
||||
<div id="grabit" class="dbx-group">
|
||||
|
||||
<fieldset id="categorydiv" class="dbx-box">
|
||||
<h3 class="dbx-handle"><?php _e('Categories') ?></h3>
|
||||
<div class="dbx-content">
|
||||
<p id="jaxcat"><?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?></p>
|
||||
<ul id="categorychecklist" class="list:category"><?php dropdown_categories(); ?></ul></div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="commentstatusdiv" class="dbx-box">
|
||||
<h3 class="dbx-handle"><?php _e('Discussion') ?></h3>
|
||||
<div class="dbx-content">
|
||||
<input name="advanced_view" type="hidden" value="1" />
|
||||
<label for="comment_status" class="selectit">
|
||||
<input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> />
|
||||
<?php _e('Allow Comments') ?></label>
|
||||
<label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="passworddiv" class="dbx-box">
|
||||
<h3 class="dbx-handle"><?php _e('Post Password') ?></h3>
|
||||
<div class="dbx-content"><input name="post_password" type="text" size="13" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="slugdiv" class="dbx-box">
|
||||
<h3 class="dbx-handle"><?php _e('Post Slug') ?></h3>
|
||||
<div class="dbx-content"><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" /></div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="poststatusdiv" class="dbx-box">
|
||||
<h3 class="dbx-handle"><?php _e('Post Status') ?></h3>
|
||||
<div class="dbx-content">
|
||||
<?php if ( current_user_can('publish_posts') ) : ?>
|
||||
<label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post->post_status, 'publish'); checked($post->post_status, 'future'); ?> /> <?php _e('Published') ?></label>
|
||||
<?php endif; ?>
|
||||
<label for="post_status_pending" class="selectit"><input id="post_status_pending" name="post_status" type="radio" value="pending" <?php checked($post->post_status, 'pending'); ?> /> <?php _e('Pending Review') ?></label>
|
||||
<label for="post_status_draft" class="selectit"><input id="post_status_draft" name="post_status" type="radio" value="draft" <?php checked($post->post_status, 'draft'); ?> /> <?php _e('Draft') ?></label>
|
||||
<label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="radio" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Private') ?></label></div>
|
||||
</fieldset>
|
||||
|
||||
<?php if ( current_user_can('edit_posts') ) : ?>
|
||||
<fieldset id="posttimestampdiv" class="dbx-box">
|
||||
<h3 class="dbx-handle"><?php _e('Post Timestamp'); ?></h3>
|
||||
<div class="dbx-content"><?php touch_time(($action == 'edit')); ?></div>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
|
||||
if ( $post->post_author && !in_array($post->post_author, $authors) )
|
||||
$authors[] = $post->post_author;
|
||||
if ( $authors && count( $authors ) > 1 ) :
|
||||
?>
|
||||
<fieldset id="authordiv" class="dbx-box">
|
||||
<h3 class="dbx-handle"><?php _e('Post Author'); ?></h3>
|
||||
<div class="dbx-content">
|
||||
<?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post_ID) ? $user_ID : $post->post_author) ); ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php do_action('dbx_post_sidebar'); ?>
|
||||
|
||||
</div>
|
||||
<div id="titlediv">
|
||||
<h3><?php _e('Title') ?></h3>
|
||||
<div class="inside"><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" /></div>
|
||||
</div>
|
||||
|
||||
<fieldset id="titlediv">
|
||||
<legend><?php _e('Title') ?></legend>
|
||||
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" /></div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>">
|
||||
<legend><?php _e('Post') ?>
|
||||
|
||||
<?php if ( 'publish' == $post->post_status ) { ?>
|
||||
<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" class="view-link" target="_blank"><?php _e('View »'); ?></a>
|
||||
<?php } elseif ( 'edit' == $action ) { ?>
|
||||
<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" class="view-link" target="_blank"><?php _e('Preview »'); ?></a>
|
||||
<?php } ?>
|
||||
</legend>
|
||||
|
||||
<?php the_editor($post->post_content); ?>
|
||||
</fieldset>
|
||||
<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
|
||||
<h3><?php _e('Post') ?></h3>
|
||||
<?php the_editor($post->post_content); ?>
|
||||
</div>
|
||||
|
||||
<?php echo $form_pingback ?>
|
||||
<?php echo $form_prevstatus ?>
|
||||
|
||||
<p class="submit">
|
||||
<?php if ( 'publish' == $post->post_status ) { ?>
|
||||
<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" class="view-link" target="_blank"><?php _e('View »'); ?></a>
|
||||
<?php } elseif ( 'edit' == $action ) { ?>
|
||||
<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" class="view-link" target="_blank"><?php _e('Preview »'); ?></a>
|
||||
<?php } ?>
|
||||
<span id="autosave"></span>
|
||||
<?php echo $saveasdraft; ?>
|
||||
<input type="submit" name="submit" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" />
|
||||
|
@ -181,10 +110,26 @@ else
|
|||
echo clean_url(stripslashes(wp_get_referer()));
|
||||
?>" /></p>
|
||||
|
||||
<div id="tagsdiv" class="postbox">
|
||||
<h3><?php _e('Tags'); ?></h3>
|
||||
<div class="inside">
|
||||
<p id="jaxtag"><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>
|
||||
<p id="tagchecklist"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="categorydiv" class="postbox">
|
||||
<h3><?php _e('Categories') ?></h3>
|
||||
<div class="inside">
|
||||
<p id="jaxcat"><?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?></p>
|
||||
<ul id="categorychecklist" class="list:category"><?php dropdown_categories(); ?></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php do_action('edit_form_advanced'); ?>
|
||||
|
||||
<?php
|
||||
if (current_user_can('upload_files')) {
|
||||
if (current_user_can('upload_files') && false) {
|
||||
$uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID);
|
||||
$uploading_iframe_src = wp_nonce_url("upload.php?style=inline&tab=upload&post_id=$uploading_iframe_ID", 'inlineuploading');
|
||||
$uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src);
|
||||
|
@ -193,57 +138,28 @@ if (current_user_can('upload_files')) {
|
|||
}
|
||||
?>
|
||||
|
||||
<div id="advancedstuff" class="dbx-group" >
|
||||
<h2><?php _e('Advanced Options'); ?></h2>
|
||||
|
||||
<div class="dbx-b-ox-wrapper">
|
||||
<fieldset id="tagdiv" class="dbx-box">
|
||||
<div class="dbx-h-andle-wrapper">
|
||||
<h3 class="dbx-handle"><?php _e('Tags (separate multiple tags with commas: cats, pet food, dogs)'); ?></h3>
|
||||
</div>
|
||||
<div class="dbx-c-ontent-wrapper">
|
||||
<div class="dbx-content">
|
||||
<p id="jaxtag">
|
||||
<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>
|
||||
<p id="tagchecklist"></p>
|
||||
</div></div>
|
||||
</fieldset>
|
||||
<div id="postexcerpt" class="postbox">
|
||||
<h3><?php _e('Optional Excerpt') ?></h3>
|
||||
<div class="inside"><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="dbx-b-ox-wrapper">
|
||||
<fieldset id="postexcerpt" class="dbx-box">
|
||||
<div class="dbx-h-andle-wrapper">
|
||||
<h3 class="dbx-handle"><?php _e('Optional Excerpt') ?></h3>
|
||||
</div>
|
||||
<div class="dbx-c-ontent-wrapper">
|
||||
<div class="dbx-content"><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea>
|
||||
</div></div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="dbx-b-ox-wrapper">
|
||||
<fieldset id="trackbacksdiv" class="dbx-box">
|
||||
<div class="dbx-h-andle-wrapper">
|
||||
<h3 class="dbx-handle"><?php _e('Trackbacks') ?></h3>
|
||||
</div>
|
||||
<div class="dbx-c-ontent-wrapper">
|
||||
<div class="dbx-content"><?php _e('Send trackbacks to:'); ?> <?php echo $form_trackback; ?> (<?php _e('Separate multiple URLs with spaces'); ?>)
|
||||
<div id="trackbacksdiv" class="postbox">
|
||||
<h3><?php _e('Trackbacks') ?></h3>
|
||||
<div class="inside">
|
||||
<?php _e('Send trackbacks to:'); ?> <?php echo $form_trackback; ?> (<?php _e('Separate multiple URLs with spaces'); ?>)
|
||||
<?php
|
||||
if ( ! empty($pings) )
|
||||
echo $pings;
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="dbx-b-ox-wrapper">
|
||||
<fieldset id="postcustom" class="dbx-box">
|
||||
<div class="dbx-h-andle-wrapper">
|
||||
<h3 class="dbx-handle"><?php _e('Custom Fields') ?></h3>
|
||||
</div>
|
||||
<div class="dbx-c-ontent-wrapper">
|
||||
<div id="postcustomstuff" class="dbx-content">
|
||||
<div id="postcustom" class="postbox">
|
||||
<h3><?php _e('Custom Fields') ?></h3>
|
||||
<div class="inside">
|
||||
<div id="postcustomstuff">
|
||||
<table cellpadding="3">
|
||||
<?php
|
||||
$metadata = has_meta($post_ID);
|
||||
|
@ -257,11 +173,70 @@ list_meta($metadata);
|
|||
<div id="ajax-response"></div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<?php do_action('dbx_post_advanced'); ?>
|
||||
|
||||
<div id="commentstatusdiv" class="postbox">
|
||||
<h3><?php _e('Discussion') ?></h3>
|
||||
<div class="inside">
|
||||
<input name="advanced_view" type="hidden" value="1" />
|
||||
<label for="comment_status" class="selectit">
|
||||
<input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> />
|
||||
<?php _e('Allow Comments') ?></label>
|
||||
<label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="passworddiv" class="postbox">
|
||||
<h3><?php _e('Post Password') ?></h3>
|
||||
<div class="inside">
|
||||
<input name="post_password" type="text" size="13" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="slugdiv" class="postbox">
|
||||
<h3><?php _e('Post Slug') ?></h3>
|
||||
<div class="inside">
|
||||
<input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="poststatusdiv" class="postbox">
|
||||
<h3><?php _e('Post Status') ?></h3>
|
||||
<div class="inside">
|
||||
<?php if ( current_user_can('publish_posts') ) : ?>
|
||||
<label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post->post_status, 'publish'); checked($post->post_status, 'future'); ?> /> <?php _e('Published') ?></label>
|
||||
<?php endif; ?>
|
||||
<label for="post_status_pending" class="selectit"><input id="post_status_pending" name="post_status" type="radio" value="pending" <?php checked($post->post_status, 'pending'); ?> /> <?php _e('Pending Review') ?></label>
|
||||
<label for="post_status_draft" class="selectit"><input id="post_status_draft" name="post_status" type="radio" value="draft" <?php checked($post->post_status, 'draft'); ?> /> <?php _e('Draft') ?></label>
|
||||
<label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="radio" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Private') ?></label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ( current_user_can('edit_posts') ) : ?>
|
||||
<div id="posttimestampdiv" class="postbox">
|
||||
<h3><?php _e('Post Timestamp'); ?></h3>
|
||||
<div class="inside"><?php touch_time(($action == 'edit')); ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
|
||||
if ( $post->post_author && !in_array($post->post_author, $authors) )
|
||||
$authors[] = $post->post_author;
|
||||
if ( $authors && count( $authors ) > 1 ) :
|
||||
?>
|
||||
<div id="authordiv" class="postbox">
|
||||
<h3><?php _e('Post Author'); ?></h3>
|
||||
<div class="inside">
|
||||
<?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post_ID) ? $user_ID : $post->post_author) ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php do_action('dbx_post_sidebar'); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ('edit' == $action) : $delete_nonce = wp_create_nonce( 'delete-post_' . $post_ID ); ?>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 362 B |
|
@ -317,4 +317,11 @@ function wp_read_image_metadata( $file ) {
|
|||
|
||||
}
|
||||
|
||||
function media_buttons() { // just a placeholder for now
|
||||
?>
|
||||
<img src="./images/media-buttons.gif" alt="" />
|
||||
<?php
|
||||
}
|
||||
add_action( 'media_buttons', 'media_buttons' );
|
||||
|
||||
?>
|
|
@ -505,7 +505,7 @@ function meta_form() {
|
|||
if ( $keys )
|
||||
natcasesort($keys);
|
||||
?>
|
||||
<h3><?php _e( 'Add a new custom field:' ) ?></h3>
|
||||
<p><strong><?php _e( 'Add a new custom field:' ) ?></strong></p>
|
||||
<table id="newmeta" cellspacing="3" cellpadding="3">
|
||||
<tr>
|
||||
<th colspan="2"><?php _e( 'Key' ) ?></th>
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
addLoadEvent( function() {var manager = new dbxManager( dbxL10n.manager );} );
|
||||
|
||||
addLoadEvent( function()
|
||||
{
|
||||
//create new docking boxes group
|
||||
var meta = new dbxGroup(
|
||||
'grabit', // container ID [/-_a-zA-Z0-9/]
|
||||
'vertical', // orientation ['vertical'|'horizontal']
|
||||
'10', // drag threshold ['n' pixels]
|
||||
'no', // restrict drag movement to container axis ['yes'|'no']
|
||||
'10', // animate re-ordering [frames per transition, or '0' for no effect]
|
||||
'yes', // include open/close toggle buttons ['yes'|'no']
|
||||
'closed', // default state ['open'|'closed']
|
||||
dbxL10n.open, // word for "open", as in "open this box"
|
||||
dbxL10n.close, // word for "close", as in "close this box"
|
||||
dbxL10n.moveMouse, // sentence for "move this box" by mouse
|
||||
dbxL10n.toggleMouse, // pattern-match sentence for "(open|close) this box" by mouse
|
||||
dbxL10n.moveKey, // sentence for "move this box" by keyboard
|
||||
dbxL10n.toggleKey, // pattern-match sentence-fragment for "(open|close) this box" by keyboard
|
||||
'%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
|
||||
);
|
||||
|
||||
// Boxes are closed by default. Open the Category box if the cookie isn't already set.
|
||||
var catdiv = document.getElementById('categorydiv');
|
||||
if ( catdiv ) {
|
||||
var button = catdiv.getElementsByTagName('A')[0];
|
||||
if ( dbx.cookiestate == null && /dbx\-toggle\-closed/.test(button.className) )
|
||||
meta.toggleBoxState(button, true);
|
||||
}
|
||||
|
||||
var advanced = new dbxGroup(
|
||||
'advancedstuff',
|
||||
'vertical',
|
||||
'10',
|
||||
'yes', // restrict drag movement to container axis ['yes'|'no']
|
||||
'10',
|
||||
'yes',
|
||||
'closed',
|
||||
dbxL10n.open,
|
||||
dbxL10n.close,
|
||||
dbxL10n.moveMouse,
|
||||
dbxL10n.toggleMouse,
|
||||
dbxL10n.moveKey,
|
||||
dbxL10n.toggleKey,
|
||||
'%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
|
||||
);
|
||||
});
|
|
@ -11,7 +11,6 @@ wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
|
|||
'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
|
||||
'notes', 'linkcheck[]'));
|
||||
|
||||
wp_enqueue_script( array('xfn', 'dbx-admin-key?pagenow=link.php') );
|
||||
if ( current_user_can( 'manage_categories' ) )
|
||||
wp_enqueue_script( 'ajaxcat' );
|
||||
require('admin-header.php');
|
||||
|
|
|
@ -83,7 +83,6 @@ switch ($action) {
|
|||
break;
|
||||
|
||||
case 'edit' :
|
||||
wp_enqueue_script( array('xfn', 'dbx-admin-key?pagenow=link.php') );
|
||||
if ( current_user_can( 'manage_categories' ) )
|
||||
wp_enqueue_script( 'ajaxlinkcat' );
|
||||
$parent_file = 'link-manager.php';
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
html,
|
||||
.dbx-handle,
|
||||
#post_name,
|
||||
input[name=link_url],
|
||||
input[name=link_image],
|
||||
|
@ -30,9 +29,6 @@ body.login,
|
|||
direction: rtl;
|
||||
}
|
||||
p.submit,
|
||||
.dbx-handle {
|
||||
text-align: left;
|
||||
}
|
||||
html *,
|
||||
select,
|
||||
input,
|
||||
|
@ -79,9 +75,7 @@ table * {
|
|||
border-right: 0;
|
||||
border-left: 2px solid #045290;
|
||||
}
|
||||
.dbx-content input, .dbx-content select {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#newcat {
|
||||
width: 100px;
|
||||
}
|
||||
|
|
|
@ -99,25 +99,6 @@ body, td {
|
|||
font: 13px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: none;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
fieldset label.selectit {
|
||||
display: block;
|
||||
font-size: 11px;
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
fieldset label.selectit:hover {
|
||||
background: #e9e9e9;
|
||||
}
|
||||
|
||||
fieldset legend {
|
||||
padding: .1em .3em;
|
||||
}
|
||||
|
||||
fieldset.options {
|
||||
padding: 1em;
|
||||
}
|
||||
|
@ -372,11 +353,6 @@ input.disabled, textarea.disabled {
|
|||
background: #ccc;
|
||||
}
|
||||
|
||||
|
||||
#categorydiv input, #poststatusdiv input, #commentstatusdiv input, #pingstatusdiv input {
|
||||
border: none;
|
||||
}
|
||||
|
||||
#postdiv, #titlediv, #guiddiv {
|
||||
margin: 0 8px 0 0;
|
||||
padding: 0;
|
||||
|
@ -397,11 +373,6 @@ input.disabled, textarea.disabled {
|
|||
line-height: 140%;
|
||||
}
|
||||
|
||||
#titlediv input, #guiddiv input {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#currenttheme img {
|
||||
float: left;
|
||||
border: 1px solid #666;
|
||||
|
@ -466,14 +437,6 @@ input.delete:hover {
|
|||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
#title {
|
||||
font-size: 1.7em;
|
||||
padding: 4px 3px;
|
||||
}
|
||||
|
||||
#postexcerpt div, #attachmentlinks div {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#attachmentlinks textarea {
|
||||
width: 100%;
|
||||
|
@ -481,10 +444,6 @@ input.delete:hover {
|
|||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
* html #postexcerpt .dbx-toggle-open, * html #postexcerpt .dbx-toggle-open {
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
#excerpt, .attachmentlinks {
|
||||
margin: 0;
|
||||
height: 4em;
|
||||
|
@ -691,46 +650,6 @@ input.delete:hover {
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
#zeitgeist {
|
||||
background: #eee;
|
||||
border: 1px solid #c5c5c5;
|
||||
float: right;
|
||||
font-size: 90%;
|
||||
margin-bottom: .5em;
|
||||
margin-left: 1em;
|
||||
margin-top: .5em;
|
||||
padding: 1em;
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
#zeitgeist h2, fieldset legend a {
|
||||
background: none;
|
||||
}
|
||||
|
||||
* html #zeitgeist h2 {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
#zeitgeist h3 {
|
||||
border-bottom: 1px solid #ccc;
|
||||
font-size: 16px;
|
||||
margin: 1em 0 0;
|
||||
}
|
||||
|
||||
#zeitgeist h3 cite {
|
||||
font-size: 12px;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
#zeitgeist li, #zeitgeist p {
|
||||
margin: .2em 0;
|
||||
}
|
||||
|
||||
#zeitgeist ul {
|
||||
margin: 0 0 .3em .6em;
|
||||
padding: 0 0 0 .6em;
|
||||
}
|
||||
|
||||
.active td {
|
||||
background: #BEB;
|
||||
}
|
||||
|
@ -765,79 +684,11 @@ set display:none; */
|
|||
position: absolute;
|
||||
}
|
||||
|
||||
/* Box stuff */
|
||||
.dbx-clone {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
}
|
||||
.dbx-clone, .dbx-clone .dbx-handle-cursor {
|
||||
cursor: move !important;
|
||||
}
|
||||
.dbx-dummy {
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.dbx-group, .dbx-box, .dbx-handle {
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#grabit {
|
||||
width: 188px;
|
||||
}
|
||||
|
||||
* html #themeselect {
|
||||
padding: 0 3px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
avoid padding, margins or borders on dbx-box,
|
||||
to reduce visual discrepancies between it and the clone.
|
||||
overall, dbx-box is best left as visually unstyled as possible
|
||||
*****************************************************************/
|
||||
.dbx-box {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* Can change this */
|
||||
#moremeta fieldset, #advancedstuff fieldset {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
#moremeta fieldset div {
|
||||
margin: 2px 0 0 0;
|
||||
padding: 7px;
|
||||
}
|
||||
#moremeta {
|
||||
line-height: 130%;
|
||||
margin-right: 15px;
|
||||
position: absolute;
|
||||
right: 5%;
|
||||
width: 14.5em;
|
||||
}
|
||||
#moremeta select {
|
||||
width: 96%;
|
||||
}
|
||||
|
||||
#slugdiv input, #passworddiv input, #authordiv select, #thumbdiv input, #parentdiv input {
|
||||
margin-top: .5em;
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
#moremeta h3, #advancedstuff h3 {
|
||||
padding: 3px;
|
||||
font-weight: normal;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
#advancedstuff div {
|
||||
margin-top: .5em;
|
||||
}
|
||||
|
||||
#categorydiv ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
@ -888,155 +739,7 @@ overall, dbx-box is best left as visually unstyled as possible
|
|||
font-size: 22px;
|
||||
}
|
||||
|
||||
/* default box styles */
|
||||
|
||||
/* toggle state of inner content area */
|
||||
.dbx-box-open .dbx-content {
|
||||
display: block;
|
||||
}
|
||||
.dbx-box-closed .dbx-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#moremeta .dbx-content {
|
||||
background: url(images/box-butt.gif) no-repeat bottom right;
|
||||
padding-bottom: 15px;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
#moremeta fieldset.dbx-box-closed {
|
||||
background: url(images/box-butt.gif) no-repeat bottom;
|
||||
padding-bottom: 9px;
|
||||
}
|
||||
|
||||
/* handles */
|
||||
|
||||
.dbx-handle {
|
||||
background: #2685af;
|
||||
padding: 6px 1em 2px;
|
||||
font-size: 12px;
|
||||
margin: 0;
|
||||
color: #E3EFF5;
|
||||
}
|
||||
|
||||
#moremeta .dbx-handle {
|
||||
padding: 6px 1em 2px;
|
||||
font-size: 12px;
|
||||
background: #2685af url(images/box-head.gif) no-repeat right;
|
||||
}
|
||||
|
||||
#moremeta .dbx-box {
|
||||
background: url(images/box-bg.gif) repeat-y right;
|
||||
}
|
||||
|
||||
#advancedstuff h3.dbx-handle {
|
||||
margin-left: 7px;
|
||||
margin-bottom: -7px;
|
||||
padding: 6px 1em 0 3px;
|
||||
height: 19px;
|
||||
font-size: 12px;
|
||||
background: #2685af url(images/box-head-right.gif) no-repeat top right;
|
||||
}
|
||||
|
||||
#advancedstuff div.dbx-h-andle-wrapper {
|
||||
margin: 0 0 0 -7px;
|
||||
background: #fff url(images/box-head-left.gif) no-repeat top left;
|
||||
}
|
||||
|
||||
#advancedstuff div.dbx-content {
|
||||
margin-left: 8px;
|
||||
background: url(images/box-bg-right.gif) repeat-y right;
|
||||
padding: 10px 10px 15px 0;
|
||||
}
|
||||
|
||||
#postexcerpt div.dbx-content {
|
||||
margin-right: 0;
|
||||
padding-right: 17px;
|
||||
}
|
||||
|
||||
#advancedstuff div.dbx-c-ontent-wrapper {
|
||||
margin-left: -7px;
|
||||
margin-right: 0;
|
||||
background: url(images/box-bg-left.gif) repeat-y left;
|
||||
}
|
||||
|
||||
#advancedstuff fieldset.dbx-box {
|
||||
padding-bottom: 9px;
|
||||
margin-left: 6px;
|
||||
background: url(images/box-butt-right.gif) no-repeat bottom right;
|
||||
}
|
||||
|
||||
#advancedstuff div.dbx-b-ox-wrapper {
|
||||
background: url(images/box-butt-left.gif) no-repeat bottom left;
|
||||
}
|
||||
|
||||
#advancedstuff .dbx-box-closed div.dbx-c-ontent-wrapper {
|
||||
padding-bottom: 2px;
|
||||
background: url(images/box-butt-left.gif) no-repeat bottom left;
|
||||
}
|
||||
|
||||
#advancedstuff .dbx-box {
|
||||
background: url(images/box-butt-right.gif) no-repeat bottom right;
|
||||
}
|
||||
|
||||
/* handle cursors */
|
||||
.dbx-handle-cursor {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
/* toggle images */
|
||||
a.dbx-toggle, a.dbx-toggle:visited {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
background-image: url( images/toggle.gif );
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
background-repeat: no-repeat;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#moremeta a.dbx-toggle, #moremeta a.dbx-toggle-open:visited {
|
||||
height: 25px;
|
||||
width: 27px;
|
||||
background-position: 0 0;
|
||||
}
|
||||
|
||||
#moremeta a.dbx-toggle-open, #moremeta a.dbx-toggle-open:visited {
|
||||
height: 25px;
|
||||
width: 27px;
|
||||
background-position: 0 -25px;
|
||||
}
|
||||
|
||||
#advancedstuff a.dbx-toggle, #advancedstuff a.dbx-toggle-open:visited {
|
||||
height: 22px;
|
||||
width: 22px;
|
||||
top: 3px;
|
||||
right: 5px;
|
||||
background-position: 0 -3px;
|
||||
}
|
||||
|
||||
#advancedstuff a.dbx-toggle-open, #advancedstuff a.dbx-toggle-open:visited {
|
||||
height: 22px;
|
||||
width: 22px;
|
||||
top: 3px;
|
||||
right: 5px;
|
||||
background-position: 0 -28px;
|
||||
}
|
||||
|
||||
#categorychecklist {
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
/* additional clone styles */
|
||||
.dbx-clone {
|
||||
opacity: 0.8;
|
||||
-moz-opacity: 0.8;
|
||||
-khtml-opacity: 0.8;
|
||||
filter: alpha(opacity=80);
|
||||
}
|
||||
|
||||
#newcat {
|
||||
width: 120px;
|
||||
|
@ -1075,27 +778,6 @@ input #catadd {
|
|||
margin-left: 2em;
|
||||
}
|
||||
|
||||
#postdivrich #edButtons {
|
||||
padding-left: 3px;
|
||||
}
|
||||
|
||||
#postdivrich #content, #postdivrich #content:active {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
#edButtons input, #edButtons input:active {
|
||||
margin: 0 2px -1px;
|
||||
}
|
||||
|
||||
#edButtons input.edButtonFore, #edButtons input.edButtonFore:active {
|
||||
background: #f0f0ee;
|
||||
border-bottom: 1px solid #f0f0ee;
|
||||
}
|
||||
|
||||
#edButtons input.edButtonBack, #edButtons input.edButtonBack:active {
|
||||
background: #fff url( images/fade-butt.png ) repeat-x 0 15px;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.page-numbers {
|
||||
padding: 4px 7px;
|
||||
|
@ -1121,13 +803,6 @@ a.page-numbers:hover {
|
|||
margin: 0 6px;
|
||||
}
|
||||
|
||||
a.view-link {
|
||||
position: absolute;
|
||||
right: 5%;
|
||||
margin-right: 220px;
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
#update-nag, .plugin-update {
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-top: 1px solid #ccc;
|
||||
|
@ -1453,3 +1128,70 @@ a.view-comment-post-link {
|
|||
text-decoration: underline;
|
||||
color: black;
|
||||
}
|
||||
|
||||
#poststuff h3 {
|
||||
background: #eaf3fa;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
padding: 10px 5px;
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
|
||||
#poststuff fieldset {
|
||||
border: 1px solid #ccc;pa
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#poststuff .postbox, #titlediv {
|
||||
margin-left: 20px;
|
||||
border: 1px solid #ebebeb;
|
||||
border-right: 1px solid #ccc;
|
||||
border-bottom: 1px solid #ccc;
|
||||
padding: 2px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#poststuff .postarea {
|
||||
margin-left: 20px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#poststuff .inside {
|
||||
margin: 0 12px 15px;
|
||||
}
|
||||
|
||||
#poststuff #title {
|
||||
font-size: 1.7em;
|
||||
padding: 4px 3px;
|
||||
width: 98%;
|
||||
}
|
||||
|
||||
#poststuff #editor-toolbar {
|
||||
position: relative;
|
||||
height: 30px;
|
||||
margin-top: -40px;
|
||||
}
|
||||
|
||||
#poststuff #edButtonPreview, #poststuff #edButtonHTML {
|
||||
display: block;
|
||||
height: 18px;
|
||||
padding: 5px;
|
||||
margin-right: 8px;
|
||||
float: right;
|
||||
cursor: pointer;
|
||||
color: #2583ad;
|
||||
}
|
||||
|
||||
#poststuff #editor-toolbar .active {
|
||||
background: #cee1ef;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
-moz-border-radius: 2px;
|
||||
}
|
||||
|
||||
#poststuff #media-buttons {
|
||||
float: right;
|
||||
margin-right: 20px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
|
|
|
@ -922,17 +922,20 @@ function the_editor($content, $id = 'content', $prev_id = 'title') {
|
|||
<style type="text/css">
|
||||
#postdivrich table, #postdivrich #quicktags {border-top: none;}
|
||||
#quicktags {border-bottom: none; padding-bottom: 2px; margin-bottom: -1px;}
|
||||
#edButtons {border-bottom: 1px solid #ccc;}
|
||||
</style>
|
||||
<div id='edButtons' style='display:none;'>
|
||||
<div id='editor-toolbar' style='display:none;'>
|
||||
<div class='zerosize'><input accesskey='e' type='button' onclick='switchEditors("<?php echo $id; ?>")' /></div>
|
||||
<input id='edButtonPreview' class='edButtonFore' type='button' value='<?php _e('Visual'); ?>' />
|
||||
<input id='edButtonHTML' class='edButtonBack' type='button' value='<?php _e('Code'); ?>' onclick='switchEditors("<?php echo $id; ?>")' />
|
||||
<a id='edButtonHTML' class='' onclick='switchEditors("<?php echo $id; ?>")'><?php _e('HTML'); ?></a>
|
||||
<a id='edButtonPreview' class='active'><?php _e('Visual'); ?></a>
|
||||
<div id="media-buttons">
|
||||
<?php _e('Add media:'); ?>
|
||||
<?php do_action( 'media_buttons'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
if ( typeof tinyMCE != "undefined" && tinyMCE.configs.length > 0 )
|
||||
document.getElementById('edButtons').style.display = 'block';
|
||||
document.getElementById('editor-toolbar').style.display = 'block';
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -561,8 +561,8 @@ function switchEditors(id) {
|
|||
}
|
||||
|
||||
function edToggle(A, B) {
|
||||
A.className = 'edButtonFore';
|
||||
B.className = 'edButtonBack';
|
||||
A.className = 'active';
|
||||
B.className = '';
|
||||
|
||||
B.onclick = A.onclick;
|
||||
A.onclick = null;
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
.mceLabel, .mceLabelDisabled {font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; font-size: 9pt;}
|
||||
.mceLabel {color: #000000;}
|
||||
.mceLabelDisabled {cursor: text; color: #999999;}
|
||||
.mceEditor {background: #F0F0EE; border: 1px solid #cccccc; padding: 0; margin: 0;}
|
||||
.mceEditor {background: #F0F0EE; border: 1px solid #ddd; padding: 0; margin: 0;}
|
||||
.mceEditorArea { font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; background: #FFFFFF; padding: 0; margin: 0; }
|
||||
.mceToolbarTop, .mceToolbarBottom {background: #F0F0EE; line-height: 1px; font-size: 1px;}
|
||||
.mceToolbarTop, .mceToolbarBottom {background: #cee1ef; line-height: 1px; font-size: 1px;}
|
||||
.mceToolbarTop {border-bottom: 1px solid #cccccc; padding-bottom: 1px;}
|
||||
.mceToolbarBottom {border-top: 1px solid #cccccc;}
|
||||
.mceToolbarContainer {display: block; position: relative; left: 0; top: 0; width: 100%;}
|
||||
|
@ -26,7 +26,7 @@
|
|||
|
||||
/* Button CSS rules */
|
||||
|
||||
a.mceButtonDisabled img, a.mceButtonNormal img, a.mceButtonSelected img {width: 20px; height: 20px; cursor: default; margin-top: 1px; margin-left: 1px;}
|
||||
a.mceButtonDisabled img, a.mceButtonNormal img, a.mceButtonSelected img {width: 20px; height: 20px; cursor: default; margin: 5px; background: #e9e8e8 url(../../../../../../../wp-admin/images/fade-butt.png); -moz-border-radius: 2px; border: 1px solid #ccc;}
|
||||
a.mceButtonDisabled img {border: 0 !important;}
|
||||
a.mceButtonNormal img, a.mceButtonSelected img {border: 1px solid #F0F0EE !important;}
|
||||
a.mceButtonSelected img {border: 1px solid #6779AA !important; background-color: #D4D5D8;}
|
||||
|
|
|
@ -11,8 +11,6 @@ class WP_Scripts {
|
|||
}
|
||||
|
||||
function default_scripts() {
|
||||
$this->add( 'dbx', '/wp-includes/js/dbx.js', false, '2.05' );
|
||||
|
||||
$this->add( 'fat', '/wp-includes/js/fat.js', false, '1.0-RC1_3660' );
|
||||
|
||||
$this->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' );
|
||||
|
@ -100,18 +98,6 @@ class WP_Scripts {
|
|||
$man = 'linkmeta';
|
||||
break;
|
||||
endswitch;
|
||||
if ( $man ) {
|
||||
$this->add( 'dbx-admin-key', '/wp-admin/js/dbx-admin-key.js', array('dbx'), '20070417' );
|
||||
$this->localize( 'dbx-admin-key', 'dbxL10n', array(
|
||||
'manager' => $man,
|
||||
'open' => __('open'),
|
||||
'close' => __('close'),
|
||||
'moveMouse' => __('click-down and drag to move this box'),
|
||||
'toggleMouse' => __('click to %toggle% this box'),
|
||||
'moveKey' => __('use the arrow keys to move this box'),
|
||||
'toggleKey' => __(', or press the enter key to %toggle% it'),
|
||||
) );
|
||||
}
|
||||
$this->add( 'ajaxcat', '/wp-admin/js/cat.js', array( 'wp-lists' ), '20071101' );
|
||||
$this->localize( 'ajaxcat', 'catL10n', array(
|
||||
'add' => attribute_escape(__('Add')),
|
||||
|
|
Loading…
Reference in New Issue