diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-06 07:02:57 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-06 07:02:57 +0000 |
commit | a5b29f6db23d18f819bb6676d05863dcd7504eb9 (patch) | |
tree | 4807bdb393534ae43d21f6348949497e3b6c5c1e | |
parent | 6e038c5171a02fc6920d376ba49d14fadbb8a5e0 (diff) | |
download | wordpress-mu-a5b29f6db23d18f819bb6676d05863dcd7504eb9.tar.gz wordpress-mu-a5b29f6db23d18f819bb6676d05863dcd7504eb9.tar.xz wordpress-mu-a5b29f6db23d18f819bb6676d05863dcd7504eb9.zip |
WP Merge to rev 4349
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@793 7be80a69-a1ef-0310-a953-fb0f7c49ff36
28 files changed, 309 insertions, 142 deletions
diff --git a/wp-admin/admin-footer.php b/wp-admin/admin-footer.php index 7f3da52..8e30631 100644 --- a/wp-admin/admin-footer.php +++ b/wp-admin/admin-footer.php @@ -1,13 +1,10 @@ <div id="footer"> - <p><a href="http://wordpress.org/" id="wordpress-logo"><img src="images/wordpress-logo.png" alt="WordPress" /></a></p> - <p> - <?php _e('<a href="http://codex.wordpress.org/">Documentation</a>'); ?> — <?php _e('<a href="http://wordpress.org/support/">Support Forums</a>'); ?> <br /> - <?php bloginfo('version'); ?> — <?php printf(__('%s seconds'), timer_stop(0, 2)); ?> - </p> +<p class="logo"><a href="http://wordpress.org/" id="wordpress-logo"><img src="images/wordpress-logo.png" alt="WordPress" /></a></p> +<p class="docs"><?php _e('<a href="http://codex.wordpress.org/">Documentation</a>'); ?> — <?php _e('<a href="http://wordpress.org/support/">Support Forums</a>'); ?><br /> +<?php bloginfo('version'); ?> — <?php printf(__('%s seconds'), timer_stop(0, 2)); ?></p> </div> <?php do_action('admin_footer', ''); ?> <script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script> - </body> </html> diff --git a/wp-admin/admin.php b/wp-admin/admin.php index d5226b4..772b710 100644 --- a/wp-admin/admin.php +++ b/wp-admin/admin.php @@ -93,7 +93,8 @@ if (isset($plugin_page)) { include(ABSPATH . "wp-admin/import/$importer.php"); - $parent_file = 'import.php'; + $parent_file = 'edit.php'; + $submenu_file = 'import.php'; $title = __('Import'); if (! isset($_GET['noheader'])) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 076dfa9..c761b67 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -14,8 +14,6 @@ $messages[3] = __('Custom field deleted.'); <?php endif; ?> <div class="wrap"> -<h2 id="write-post"><?php _e('Write Post'); ?><?php if ( 0 != $post_ID ) : ?> - <small class="quickjump"><a href="#preview-post"><?php _e('preview ↓'); ?></a></small><?php endif; ?></h2> <?php if (0 == $post_ID) { @@ -80,7 +78,7 @@ addLoadEvent(focusit); <div id="searchresults" class="autocomplete"></div> <?php autocomplete_textbox( "wpmu-edit.php?action=searchcategories&search=", "newcat", "searchresults" ); ?> <?php endif; ?> -<ul id="categorychecklist"><?php dropdown_categories(get_option('default_category')); ?></ul></div> +<ul id="categorychecklist"><?php dropdown_categories(); ?></ul></div> </fieldset> <fieldset id="commentstatusdiv" class="dbx-box"> diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 4f2f332..bd570d0 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -77,7 +77,7 @@ if ( is_month() ) { <fieldset> <legend><?php _e('Search Posts…') ?></legend> <input type="text" name="s" value="<?php if (isset($s)) echo wp_specialchars($s, 1); ?>" size="17" /> - <input type="submit" name="submit" value="<?php _e('Search') ?>" /> + <input type="submit" name="submit" value="<?php _e('Search') ?>" class="button" /> </fieldset> </form> @@ -106,7 +106,7 @@ if ( count($arc_result) ) { ?> } ?> </select> - <input type="submit" name="submit" value="<?php _e('Show Month') ?>" /> + <input type="submit" name="submit" value="<?php _e('Show Month') ?>" class="button" /> </fieldset> </form> @@ -116,7 +116,7 @@ if ( count($arc_result) ) { ?> <fieldset> <legend><?php _e('Browse Category…') ?></legend> <?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?> - <input type="submit" name="submit" value="<?php _e('Show Category') ?>" /> + <input type="submit" name="submit" value="<?php _e('Show Category') ?>" class="button" /> </fieldset> </form> diff --git a/wp-admin/export.php b/wp-admin/export.php index 300d6c9..f0d7b7d 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -11,13 +11,16 @@ require_once ('admin-header.php'); <div class="wrap">
<h2><?php _e('Export'); ?></h2>
-<p><?php _e('This will allow you to download an export of your WordPress posts and comments in a XML format.'); ?></p>
+<div class="narrow">
+<p><?php _e('When you click the button below WordPress will create a XML file for you to save to your computer.'); ?></p>
+<p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, comments, custom fields, and categories.'); ?></p>
<form action="" method="get">
<p class="submit"><input type="submit" name="submit" value="<?php _e('Download Export File'); ?> »" />
<input type="hidden" name="download" value="true" />
</p>
</form>
</div>
+</div>
<?php
diff --git a/wp-admin/import/blogware.php b/wp-admin/import/blogware.php index abb43d5..780e45d 100644 --- a/wp-admin/import/blogware.php +++ b/wp-admin/import/blogware.php @@ -22,8 +22,10 @@ class BW_Import { }
function greet() {
+ echo '<div class="narrow">';
echo '<p>'.__('Howdy! This importer allows you to extract posts from Blogware XML export file into your blog. Pick a Blogware file to upload and click Import.').'</p>';
wp_import_upload_form("admin.php?import=blogware&step=1");
+ echo '</div>';
}
function import_posts() {
diff --git a/wp-admin/import/dotclear.php b/wp-admin/import/dotclear.php index 48db721..2e6b864 100644 --- a/wp-admin/import/dotclear.php +++ b/wp-admin/import/dotclear.php @@ -143,12 +143,12 @@ class Dotclear_Import { function greet() { - echo '<p>'.__('Howdy! This importer allows you to extract posts from a Dotclear database into your blog. Mileage may vary.').'</p>'; + echo '<div class="narrow"><p>'.__('Howdy! This importer allows you to extract posts from a Dotclear database into your blog. Mileage may vary.').'</p>'; echo '<p>'.__('Your Dotclear Configuration settings are as follows:').'</p>'; echo '<form action="admin.php?import=dotclear&step=1" method="post">'; $this->db_form(); - echo '<input type="submit" name="submit" value="'.__('Import Categories').'" />'; - echo '</form>'; + echo '<p class="submit"><input type="submit" name="submit" value="'.__('Import Categories').' »" /></p>'; + echo '</form></div>'; } function get_dc_cats() @@ -645,14 +645,14 @@ class Dotclear_Import { function db_form() { - echo '<ul>'; - printf('<li><label for="dbuser">%s</label> <input type="text" name="dbuser" id="dbuser" /></li>', __('Dotclear Database User:')); - printf('<li><label for="dbpass">%s</label> <input type="password" name="dbpass" id="dbpass" /></li>', __('Dotclear Database Password:')); - printf('<li><label for="dbname">%s</label> <input type="text" name="dbname" id="dbname" /></li>', __('Dotclear Database Name:')); - printf('<li><label for="dbhost">%s</label> <input type="text" name="dbhost" nameid="dbhost" value="localhost" /></li>', __('Dotclear Database Host:')); - printf('<li><label for="dbprefix">%s</label> <input type="text" name="dbprefix" id="dbprefix" value="dc_"/></li>', __('Dotclear Table prefix:')); - printf('<li><label for="dccharset">%s</label> <input type="text" name="dccharset" id="dccharset" value="ISO-8859-15"/></li>', __('Originating character set:')); - echo '</ul>'; + echo '<table class="editform">'; + printf('<tr><th><label for="dbuser">%s</label></th><td><input type="text" name="dbuser" id="dbuser" /></td></tr>', __('Dotclear Database User:')); + printf('<tr><th><label for="dbpass">%s</label></th><td><input type="password" name="dbpass" id="dbpass" /></td></tr>', __('Dotclear Database Password:')); + printf('<tr><th><label for="dbname">%s</label></th><td><input type="text" name="dbname" id="dbname" /></td></tr>', __('Dotclear Database Name:')); + printf('<tr><th><label for="dbhost">%s</label></th><td><input type="text" name="dbhost" nameid="dbhost" value="localhost" /></td></tr>', __('Dotclear Database Host:')); + printf('<tr><th><label for="dbprefix">%s</label></th><td><input type="text" name="dbprefix" id="dbprefix" value="dc_"/></td></tr>', __('Dotclear Table prefix:')); + printf('<tr><th><label for="dccharset">%s</label></th><td><input type="text" name="dccharset" id="dccharset" value="ISO-8859-15"/></td></tr>', __('Originating character set:')); + echo '</table>'; } function dispatch() diff --git a/wp-admin/import/livejournal.php b/wp-admin/import/livejournal.php index d0c6102..2d770ec 100644 --- a/wp-admin/import/livejournal.php +++ b/wp-admin/import/livejournal.php @@ -20,8 +20,10 @@ class LJ_Import { } function greet() { + echo '<div class="narrow">'; echo '<p>'.__('Howdy! This importer allows you to extract posts from LiveJournal XML export file into your blog. Pick a LiveJournal file to upload and click Import.').'</p>'; wp_import_upload_form("admin.php?import=livejournal&step=1"); + echo '</div>'; } function import_posts() { diff --git a/wp-admin/import/mt.php b/wp-admin/import/mt.php index bf33718..014529e 100644 --- a/wp-admin/import/mt.php +++ b/wp-admin/import/mt.php @@ -21,9 +21,11 @@ class MT_Import { function greet() { $this->header(); ?> +<div class="narrow"> <p><?php _e('Howdy! We’re about to begin the process to import all of your Movable Type entries into WordPress. To begin, select a file to upload and click Import.'); ?></p> <?php wp_import_upload_form( add_query_arg('step', 1) ); ?> <p><?php _e('The importer is smart enough not to import duplicates, so you can run this multiple times without worry if—for whatever reason—it doesn\'t finish. If you get an <strong>out of memory</strong> error try splitting up the import file into pieces.'); ?> </p> +</div> <?php $this->footer(); } diff --git a/wp-admin/import/rss.php b/wp-admin/import/rss.php index aabfe4e..8a9b9a6 100644 --- a/wp-admin/import/rss.php +++ b/wp-admin/import/rss.php @@ -21,8 +21,10 @@ class RSS_Import { } function greet() { + echo '<div class="narrow">'; echo '<p>'.__('Howdy! This importer allows you to extract posts from any RSS 2.0 file into your blog. This is useful if you want to import your posts from a system that is not handled by a custom import tool. Pick an RSS file to upload and click Import.').'</p>'; wp_import_upload_form("admin.php?import=rss&step=1"); + echo '</div>'; } function get_posts() { diff --git a/wp-admin/import/textpattern.php b/wp-admin/import/textpattern.php index f9937ff..e1a0339 100644 --- a/wp-admin/import/textpattern.php +++ b/wp-admin/import/textpattern.php @@ -50,14 +50,15 @@ class Textpattern_Import { echo '</div>'; } - function greet() - { + function greet() { + echo '<div class="narrow">'; echo '<p>'.__('Howdy! This importer allows you to extract posts from any Textpattern 4.0.2+ into your blog. This has not been tested on previous versions of Textpattern. Mileage may vary.').'</p>'; echo '<p>'.__('Your Textpattern Configuration settings are as follows:').'</p>'; echo '<form action="admin.php?import=textpattern&step=1" method="post">'; $this->db_form(); - echo '<input type="submit" name="submit" value="'.__('Import Categories').'" />'; + echo '<p class="submit"><input type="submit" name="submit" value="'.__('Import Categories').' »" /></p>'; echo '</form>'; + echo '</div>'; } function get_txp_cats() @@ -568,13 +569,13 @@ class Textpattern_Import { function db_form() { - echo '<ul>'; - printf('<li><label for="dbuser">%s</label> <input type="text" name="dbuser" id="dbuser" /></li>', __('Textpattern Database User:')); - printf('<li><label for="dbpass">%s</label> <input type="password" name="dbpass" id="dbpass" /></li>', __('Textpattern Database Password:')); - printf('<li><label for="dbname">%s</label> <input type="text" id="dbname" name="dbname" /></li>', __('Textpattern Database Name:')); - printf('<li><label for="dbhost">%s</label> <input type="text" id="dbhost" name="dbhost" value="localhost" /></li>', __('Textpattern Database Host:')); - printf('<li><label for="dbprefix">%s</label> <input type="text" name="dbprefix" id="dbprefix" /></li>', __('Textpattern Table prefix (if any):')); - echo '</ul>'; + echo '<table class="editform">'; + printf('<tr><th scope="row"><label for="dbuser">%s</label></th><td><input type="text" name="dbuser" id="dbuser" /></td></tr>', __('Textpattern Database User:')); + printf('<tr><th scope="row"><label for="dbpass">%s</label></th><td><input type="password" name="dbpass" id="dbpass" /></td></tr>', __('Textpattern Database Password:')); + printf('<tr><th scope="row"><label for="dbname">%s</label></th><td><input type="text" id="dbname" name="dbname" /></td></tr>', __('Textpattern Database Name:')); + printf('<tr><th scope="row"><label for="dbhost">%s</label></th><td><input type="text" id="dbhost" name="dbhost" value="localhost" /></td></tr>', __('Textpattern Database Host:')); + printf('<tr><th scope="row"><label for="dbprefix">%s</label></th><td><input type="text" name="dbprefix" id="dbprefix" /></td></tr>', __('Textpattern Table prefix (if any):')); + echo '</table>'; } function dispatch() diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index ded4b94..5c67eec 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -25,8 +25,10 @@ class WP_Import { }
function greet() {
+ echo '<div class="narrow">';
echo '<p>'.__('Howdy! Upload your WordPress eXtended RSS (WXR) file and we’ll import the posts and comments into this blog.').'</p>';
wp_import_upload_form("admin.php?import=wordpress&step=1");
+ echo '</div>';
}
function get_tag( $string, $tag ) {
diff --git a/wp-admin/index.php b/wp-admin/index.php index 38b0007..96ab1d5 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -134,7 +134,8 @@ if (0 < $numcats) $numcats = number_format($numcats); $rss = @fetch_rss('http://wordpress.org/development/feed/'); if ( isset($rss->items) && 0 != count($rss->items) ) { ?> -<h3><?php _e('WordPress Development News'); ?></h3> +<div id="devnews"> +<h3><?php _e('WordPress Development Blog'); ?></h3> <?php $rss->items = array_slice($rss->items, 0, 3); foreach ($rss->items as $item ) { @@ -145,24 +146,28 @@ foreach ($rss->items as $item ) { } } ?> - +</div> <?php $rss = @fetch_rss('http://planet.wordpress.org/feed/'); if ( isset($rss->items) && 0 != count($rss->items) ) { ?> <div id="planetnews"> -<h3><?php _e('Other WordPress News'); ?> <a href="http://planet.wordpress.org/"><?php _e('more'); ?> »</a></h3> +<h3><?php _e('Other WordPress News'); ?></h3> <ul> <?php $rss->items = array_slice($rss->items, 0, 20); foreach ($rss->items as $item ) { +$title = wp_specialchars($item['title']); +$author = preg_replace( '|(.+?):.+|s', '$1', $item['title'] ); +$post = preg_replace( '|.+?:(.+)|s', '$1', $item['title'] ); ?> -<li><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a></li> +<li><a href='<?php echo wp_filter_kses($item['link']); ?>'><span class="post"><?php echo $post; ?></span><span class="hidden"> - </span><cite><?php echo $author; ?></cite></a></li> <?php } ?> </ul> +<p class="readmore"><a href="http://planet.wordpress.org/"><?php _e('Read more'); ?> »</a></p> </div> <?php } diff --git a/wp-admin/menu-header.php b/wp-admin/menu-header.php index 99c02a5..8e1d213 100644 --- a/wp-admin/menu-header.php +++ b/wp-admin/menu-header.php @@ -53,6 +53,10 @@ endforeach; </ul> <?php +else : +?> +<div id="minisub"></div> +<?php endif; diff --git a/wp-admin/page.php b/wp-admin/page.php index 7abf8f2..83bc1c4 100644 --- a/wp-admin/page.php +++ b/wp-admin/page.php @@ -61,7 +61,7 @@ case 'edit': include('edit-page-form.php'); ?> <div id='preview' class='wrap'> - <h2 id="preview-post"><?php _e('Page Preview (updated when page is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit ↑'); ?></a></small></h2> + <h2 id="preview-post"><?php _e('Page Preview (updated when page is saved)'); ?></h2> <iframe src="<?php echo wp_specialchars(apply_filters('preview_page_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" width="100%" height="600" ></iframe> </div> <?php diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 00aba5c..48c7b60 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -85,7 +85,7 @@ if (empty($plugins)) { echo '</p>'; } else { ?> -<table class="widefat"> +<table class="widefat plugins"> <thead> <tr> <th><?php _e('Plugin'); ?></th> @@ -119,7 +119,7 @@ if (empty($plugins)) { <tr $style> <td class='name'>{$plugin_data['Title']}</td> <td class='vers'>{$plugin_data['Version']}</td> - <td class='desc'>{$plugin_data['Description']} <cite>".sprintf(__('By %s'), $plugin_data['Author']).".</cite></td> + <td class='desc'><p>{$plugin_data['Description']} <cite>".sprintf(__('By %s'), $plugin_data['Author']).".</cite></p></td> <td class='togl'>$toggle</td>"; if ( current_user_can('edit_plugins') ) echo " @@ -137,7 +137,8 @@ if (empty($plugins)) { <p><?php _e(sprintf('If something goes wrong with a plugin and you can’t use WordPress, delete or rename that file in the <code>%s</code> directory and it will be automatically deactivated.', PLUGINDIR)); ?></p> <h2><?php _e('Get More Plugins'); ?></h2> -<p><?php _e(sprintf('You can find additional plugins for your site in the <a href="http://wordpress.org/extend/plugins/">WordPress plugin directory</a>. To install a plugin you generally just need to upload the plugin file into your <code>%s</code> directory. Once a plugin is uploaded, you may activate it here.', PLUGINDIR)); ?></p> +<p><?php _e('You can find additional plugins for your site in the <a href="http://wordpress.org/extend/plugins/">WordPress plugin directory</a>.'); ?></p> +<p><?php _e(sprintf('To install a plugin you generally just need to upload the plugin file into your <code>%s</code> directory. Once a plugin is uploaded, you may activate it here.', PLUGINDIR)); ?></p> </div> diff --git a/wp-admin/post.php b/wp-admin/post.php index 598f5d2..9c93695 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -62,7 +62,7 @@ case 'edit': ?> <div id='preview' class='wrap'> - <h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit ↑'); ?></a></small></h2> + <h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?></h2> <iframe src="<?php echo wp_specialchars(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" width="100%" height="600" ></iframe> </div> <?php diff --git a/wp-admin/profile.php b/wp-admin/profile.php index 9b90d10..cc2506c 100644 --- a/wp-admin/profile.php +++ b/wp-admin/profile.php @@ -35,6 +35,8 @@ $bookmarklet_height= 440; <?php do_action('profile_personal_options'); ?> +<p class="submit"><input type="submit" value="<?php _e('Update Profile »') ?>" name="submit" /></p> + <fieldset> <legend><?php _e('Name'); ?></legend> <p><label><?php _e('Username: (no editing)'); ?><br /> @@ -138,9 +140,7 @@ if ( $show_password_fields ) : endif; ?> </table> -<p class="submit"> -<input type="submit" value="<?php _e('Update Profile »') ?>" name="submit" /> -</p> +<p class="submit"><input type="submit" value="<?php _e('Update Profile »') ?>" name="submit" /></p> </form> </div> diff --git a/wp-admin/rtl.css b/wp-admin/rtl.css index ea62508..2f03a4d 100644 --- a/wp-admin/rtl.css +++ b/wp-admin/rtl.css @@ -10,7 +10,7 @@ text-align: right } -#postcustomsubmit, h2 small.quickjump, form#upload th, .submit, .editform th { +#postcustomsubmit, form#upload th, .submit, .editform th { text-align: left } diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 7832b91..90bae60 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -94,7 +94,7 @@ default: } ?> </select> - <input type="submit" name="Submit" value="<?php _e('Select »') ?>" /> + <input type="submit" name="Submit" value="<?php _e('Select »') ?>" class="button" /> </form> </div> diff --git a/wp-admin/upload-functions.php b/wp-admin/upload-functions.php index 19aad31..29b48d8 100644 --- a/wp-admin/upload-functions.php +++ b/wp-admin/upload-functions.php @@ -142,7 +142,7 @@ function wp_upload_form() { <?php endif; ?> <?php wp_nonce_field( 'inlineuploading' ); ?> <div class="submit"> - <input type="submit" value="<?php $id ? _e('Save') : _e('Upload'); ?>" /> + <input type="submit" value="<?php $id ? _e('Save') : _e('Upload'); ?> »" /> <?php if ( $id ) : ?> <input type="submit" name="delete" class="delete" value="<?php _e('Delete'); ?>" /> <?php endif; ?> diff --git a/wp-admin/upload-js.php b/wp-admin/upload-js.php index 423ea3b..c03746f 100644 --- a/wp-admin/upload-js.php +++ b/wp-admin/upload-js.php @@ -61,23 +61,22 @@ addLoadEvent( function() { var h = ''; h += "<div id='upload-file'>" - h += "<div id='file-title'>" - if ( !this.currentImage.thumb ) - h += "<h2><a href='" + this.currentImage.src + "' title='Direct link to file'>" + this.currentImage.title + "</a></h2>"; - else - h += "<h2>" + this.currentImage.title + "</h2>"; - h += "<span>[ "; - h += "<a href='#' onclick='theFileList.editView(" + id + ")'>edit</a>" - h += ' | '; if ( this.ID ) { var params = $H(this.params); params.ID = ''; params.action = ''; - h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "' title='Browse your files'>cancel</a>"; + h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "' title='Browse your files' class='back'>« Back</a>"; } else { - h += "<a href='#' onclick='theFileList.cancelView()' title='Browse your files'>cancel</a>"; + h += "<a href='#' onclick='theFileList.cancelView()' title='Browse your files' class='back'>« Back</a>"; } - h += " ]</span>"; + h += "<div id='file-title'>" + if ( !this.currentImage.thumb ) + h += "<h2><a href='" + this.currentImage.src + "' title='Direct link to file'>" + this.currentImage.title + "</a></h2>"; + else + h += "<h2>" + this.currentImage.title + "</h2>"; + h += " — <span>"; + h += "<a href='#' onclick='theFileList.editView(" + id + ")'>Edit</a>" + h += "</span>"; h += '</div>' h += "<div id='upload-file-view' class='alignleft'>"; if ( this.currentImage.thumb ) @@ -89,21 +88,21 @@ addLoadEvent( function() { h += "<form name='uploadoptions' id='uploadoptions' class='alignleft'>"; h += "<table>"; if ( this.currentImage.thumb ) { - h += "<tr><th style='padding-bottom:.5em'>Show</th><td style='padding-bottom:.5em'>"; - h += "<label for='display-thumb'><input type='radio' name='display' id='display-thumb' value='thumb' checked='checked' /> thumbnail</label><br />"; - h += "<label for='display-full'><input type='radio' name='display' id='display-full' value='full' /> full size</label>"; + h += "<tr><th style='padding-bottom:.5em'>Show:</th><td style='padding-bottom:.5em'>"; + h += "<label for='display-thumb'><input type='radio' name='display' id='display-thumb' value='thumb' checked='checked' /> Thumbnail</label><br />"; + h += "<label for='display-full'><input type='radio' name='display' id='display-full' value='full' /> Full size</label>"; h += "</td></tr>"; } - h += "<tr><th>Link</th><td>"; - h += "<label for='link-file'><input type='radio' name='link' id='link-file' value='file' checked='checked'/> file</label><br />"; - h += "<label for='link-page'><input type='radio' name='link' id='link-page' value='page' /> page</label><br />"; - h += "<label for='link-none'><input type='radio' name='link' id='link-none' value='none' /> none</label>"; + h += "<tr><th>Link to:</th><td>"; + h += "<label for='link-file'><input type='radio' name='link' id='link-file' value='file' checked='checked'/> File</label><br />"; + h += "<label for='link-page'><input type='radio' name='link' id='link-page' value='page' /> Page</label><br />"; + h += "<label for='link-none'><input type='radio' name='link' id='link-none' value='none' /> None</label>"; h += "</td></tr>"; - h += "<tr><td colspan='2'>"; + h += "<tr><td colspan='2'><p class='submit'>"; h += "<input type='button' class='button' name='send' onclick='theFileList.sendToEditor(" + id + ")' value='Send to editor »' />"; - h += "</td></tr></table>"; + h += "</p></td></tr></table>"; h += "</form>"; h += "</div>"; @@ -121,23 +120,22 @@ addLoadEvent( function() { if ( this.postID ) action += '&post_id=' + this.postID; h += "<form id='upload-file' method='post' action='" + action + "'>"; - h += "<div id='file-title'>" - if ( !this.currentImage.thumb ) - h += "<h2><a href='" + this.currentImage.src + "' title='Direct link to file'>" + this.currentImage.title + "</a></h2>"; - else - h += "<h2>" + this.currentImage.title + "</h2>"; - h += "<span>[ "; - h += "<a href='#' onclick='theFileList.imageView(" + id + ")'>options</a>" - h += ' | '; if ( this.ID ) { var params = $H(this.params); params.ID = ''; params.action = ''; - h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "' title='Browse your files'>cancel</a>"; + h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "' title='Browse your files' class='back'>« Back</a>"; } else { - h += "<a href='#' onclick='theFileList.cancelView()' title='Browse your files'>cancel</a>"; + h += "<a href='#' onclick='theFileList.cancelView()' title='Browse your files' class='back'>« Back</a>"; } - h += " ]</span>"; + h += "<div id='file-title'>" + if ( !this.currentImage.thumb ) + h += "<h2><a href='" + this.currentImage.src + "' title='Direct link to file'>" + this.currentImage.title + "</a></h2>"; + else + h += "<h2>" + this.currentImage.title + "</h2>"; + h += " — <span>"; + h += "<a href='#' onclick='theFileList.imageView(" + id + ")'>Insert</a>" + h += "</span>"; h += '</div>' h += "<div id='upload-file-view' class='alignleft'>"; if ( this.currentImage.thumb ) @@ -153,13 +151,12 @@ addLoadEvent( function() { h += "</tr><tr>"; h += "<th scope='row'><label for='post_content'>Description:</label></th>"; h += "<td><textarea name='post_content' id='post_content'>" + this.currentImage.description + "</textarea></td>"; - h += "</tr><tr id='buttons'><th></th><td>"; + h += "</tr><tr id='buttons'><th><input type='button' name='delete' class='delete button' value='Delete' onclick='theFileList.deleteFile(" + id + ");' /></th><td>"; h += "<input type='hidden' name='from_tab' value='" + this.tab + "' />"; h += "<input type='hidden' name='action' id='action-value' value='save' />"; h += "<input type='hidden' name='ID' value='" + id + "' />"; h += "<input type='hidden' name='_wpnonce' value='" + this.nonce + "' />"; - h += "<div class='submit'><input type='submit' value='Save' />"; - h += "<input type='button' name='delete' class='delete' value='Delete' onclick='theFileList.deleteFile(" + id + ");' />"; + h += "<div class='submit'><input type='submit' value='Save »' />"; h += "</div></td></tr></table></form>"; new Insertion.Top('upload-content', h); @@ -223,8 +220,7 @@ addLoadEvent( function() { win.tinyMCE.execCommand('mceInsertContent', false, h); else win.edInsertContent(win.edCanvas, h); - if ( !this.ID ) - this.cancelView(); + this.cancelView(); return false; }, diff --git a/wp-admin/upload.css b/wp-admin/upload.css index 485c6b7..a04bdf6 100644 --- a/wp-admin/upload.css +++ b/wp-admin/upload.css @@ -1,9 +1,9 @@ -body { background: #dfe8f1; } +body { background: #f9fcfe; } .upload-file-data { display: none; } #upload-menu { - background: #fff; + background: #247fab; margin: 0px; padding: 0; list-style: none; @@ -15,26 +15,30 @@ body { background: #dfe8f1; } #upload-menu li { margin: 0 0 0 .75em; } #upload-menu li div { - color: #000; padding: 5px; - border-top: 3px solid #fff; + border-top: 3px solid #247fab; } #upload-menu li a { - color: #000; text-decoration: none; border-bottom: none; + color: #fff; } #upload-menu li span a.page-numbers { color: #00019b; } #upload-menu .current div { - background: #dfe8f1; + background: #f9fcfe; border-right: 2px solid #448abd; + color: #000; +} + +#upload-menu .current div a, #upload-menu div:hover a { + color: #000; } #upload-menu div:hover { - background: #dfe8f1; + background: #f9fcfe; color: #000; } @@ -50,25 +54,29 @@ body { background: #dfe8f1; } } #upload-file { - position: relative; - margin: 0; + margin: 0 auto; top: 0; left: 0; - width: 100%; + width: 45em; height: 100%; - background: #dfe8f1; + background: #f9fcfe; +} +#upload-file th { + width: 8em; } form#upload-file input, form#upload-file textarea, div#upload-content.upload table { width: 100%; } form#upload-file div.submit input { width: auto; } -#upload-file-view { padding: 0 0 0 15px; } +#upload-file-view { padding: 0 0 0 75px; } #file-title { - margin: 0 0 .2em 15px; + margin: 0 0 .2em 75px; padding: 0; display: block; + font-family: Georgia, "Times New Roman", Times, serif; + font-size: 16px; } h2 { @@ -77,11 +85,17 @@ h2 { display: inline; border: none; color: #000; - font-weight: bold; font-size: 1.4em; line-height: 1.4em; } +.back { + display: block; + position: absolute; + left: 14px; + top: 10px; +} + #upload-files { list-style-type: none; margin: 0; @@ -103,7 +117,13 @@ h2 { height: 128px; background-color: rgb(209, 226, 239); text-align: center; - overflow-y: hidden; + overflow: hidden; +} + +#upload-files a.text { + padding-top: 40px; + height: 88px; + font-size: 16px; } #upload-files a.file-link.image { @@ -135,3 +155,21 @@ tr, td, th { margin-top: 0; padding-top: 0; } + +#uploadoptions th { + width: 80px; +} + +#uploadoptions p { + margin: 0; + padding: 0; +} + +#uploadoptions td { + padding-left: 1em; + line-height: 140%; +} + +#uploadoptions table { + width: 300px; +} diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 2293b8a..a992570 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -71,6 +71,7 @@ function addLoadEvent(func) {if ( typeof wpOnload!='function'){wpOnload=func;}el else : add_action( 'admin_head', 'wp_upload_admin_head' ); include_once('admin-header.php'); + echo "<div class='wrap'>"; endif; echo "<ul id='upload-menu'>\n"; @@ -116,6 +117,7 @@ call_user_func( $wp_upload_tabs[$tab][2] ); echo "</div>\n"; if ( 'inline' != $style ) : + echo "<div class='clear'></div></div>"; include_once('admin-footer.php'); else : ?> <script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script> diff --git a/wp-admin/users.php b/wp-admin/users.php index 45f7156..96e9730 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -64,8 +64,6 @@ class WP_User_Search { } $this->query_from_where = "FROM $wpdb->users, $wpdb->usermeta WHERE $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '".$wpdb->prefix."capabilities' $search_sql"; - if ( !$_GET['update'] && !$this->search_term && !$this->raw_page && $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users, $wpdb->usermeta WHERE $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '".$wpdb->prefix."capabilities'") > $this->users_per_page ) - $this->too_many_total_users = sprintf(__('Because this blog has more than %s users, they cannot all be shown on one page. Use the paging or search functionality in order to find the user you want to edit.'), $this->users_per_page); } function query() { @@ -465,7 +463,7 @@ default: <?php endif; ?> <form action="" method="get" name="search" id="search"> - <p><input type="text" name="usersearch" id="usersearch" value="<?php echo wp_specialchars($wp_user_search->search_term, 1); ?>" /> <input type="submit" value="<?php _e('Search for users »'); ?>" /></p> + <p><input type="text" name="usersearch" id="usersearch" value="<?php echo wp_specialchars($wp_user_search->search_term, 1); ?>" /> <input type="submit" value="<?php _e('Search users »'); ?>" class="button" /></p> </form> <?php if ( is_wp_error( $wp_user_search->search_errors ) ) : ?> @@ -486,10 +484,14 @@ default: <p><a href="users.php"><?php _e('« Back to All Users'); ?></a></p> <?php endif; ?> - <h3><?php printf(__('%1$s – %2$s of %3$s shown below'), $wp_user_search->first_user + 1, min($wp_user_search->first_user + $wp_user_search->users_per_page, $wp_user_search->total_users_for_query), $wp_user_search->total_users_for_query); ?></h3> + <h3><?php + if ( 0 == $wp_user_search->first_user && $wp_user_search->total_users_for_query <= 50 ) + printf(__('%3$s shown below'), $wp_user_search->first_user + 1, min($wp_user_search->first_user + $wp_user_search->users_per_page, $wp_user_search->total_users_for_query), $wp_user_search->total_users_for_query); + else + printf(__('%1$s – %2$s of %3$s shown below'), $wp_user_search->first_user + 1, min($wp_user_search->first_user + $wp_user_search->users_per_page, $wp_user_search->total_users_for_query), $wp_user_search->total_users_for_query); ?></h3> <?php if ( $wp_user_search->results_are_paged() ) : ?> - <div class="user-paging-text"><?php $wp_user_search->page_links(); ?></p></div> + <div class="user-paging-text"><p><?php $wp_user_search->page_links(); ?></p></div> <?php endif; ?> <form action="" method="post" name="updateusers" id="updateusers"> @@ -529,7 +531,7 @@ foreach ( (array) $roleclass as $user_object ) { </table> <?php if ( $wp_user_search->results_are_paged() ) : ?> - <div class="user-paging-text"><?php $wp_user_search->page_links(); ?></div> + <div class="user-paging-text"><p><?php $wp_user_search->page_links(); ?></p></div> <?php endif; ?> <h3><?php _e('Update Selected'); ?></h3> @@ -560,6 +562,7 @@ foreach ( (array) $roleclass as $user_object ) { <div class="wrap"> <h2><?php _e('Add User From Community') ?></h2> +<div class="narrow"> <form action="" method="post" name="adduser" id="adduser"> <?php wp_nonce_field('add-user') ?> <input type='hidden' name='action' value='addexistinguser'> @@ -582,6 +585,7 @@ foreach ( (array) $roleclass as $user_object ) { <?php echo $referer; ?> <input name="adduser" type="submit" id="addusersub" value="<?php _e('Add User »') ?>" /> </p> +</div> </form> <?php if ( is_wp_error( $add_user_errors ) ) : ?> diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index f8e6351..241c627 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -20,6 +20,12 @@ a.delete:hover { color: #fff; } +#devnews h4 { + font-family: Georgia, "Times New Roman", Times, serif; + font-size: 18px; + font-weight: normal; +} + #planetnews ul { list-style: none; margin: 0; @@ -40,6 +46,23 @@ a.delete:hover { overflow: hidden; } +#planetnews li .post { + font-family: Georgia, "Times New Roman", Times, serif; + font-size: 18px; + display: block; + height: 60px; +} + +#planetnews .hidden { + display: none; +} + +.readmore { + clear: both; + text-align: right; + margin-right: 5em; +} + .widefat { width: 100%; } @@ -52,6 +75,15 @@ a.delete:hover { text-align: left; } +.plugins p { + margin: 4px; + padding: 0; +} + +.plugins .name { + font-size: 16px; +} + .import-system { font-size: 16px; } @@ -61,9 +93,9 @@ thead, .thead { } #import-upload-form { - width: 300px; margin: auto; - text-align: center; + background: #eee; + padding: 1em; } a.edit, a.delete, a.edit:hover, a.delete:hover { @@ -133,25 +165,12 @@ form, label input { } h2 { - border-bottom: .5em solid #f0f8ff; + border-bottom: .5em solid #e5f3ff; color: #333; - font: normal 30px/5px serif; + font: normal 32px/5px serif; margin: 5px 10px; } -h2 small.quickjump { - display: block; - text-align: right; -} - -h2 small.quickjump a { - text-decoration: none; - border-bottom: 0; - font-size: 15px; - background: #f0f8ff; - padding: 5px 10px; -} - img, #footer a { border: 0; } @@ -170,7 +189,7 @@ li, dd { } p, li, dl, dd, dt { - line-height: 130%; + line-height: 140%; } textarea, input, select { @@ -306,7 +325,7 @@ form#upload #post_content { font: 12px Georgia, "Times New Roman", Times, serif; } -.submit input, .submit input:focus, .button { +.submit input, .submit input:focus, .button, .button:focus { background: url( images/fade-butt.png ); border: 3px double #999; border-left-color: #ccc; @@ -322,6 +341,14 @@ form#upload #post_content { border-top-color: #999; } +.button, .button:focus { + padding: 0.15em; +} + +* html .button { + padding: 0; +} + .submit, .editform th, #postcustomsubmit { text-align: right; } @@ -388,14 +415,27 @@ form#upload #post_content { border: 1px solid #ccc; clear: both; margin: 15px 5%; - padding: .5em 1em; + padding: 1em; +} + +.narrow { + width: 450px; + margin: auto; +} + +.narrow p { + line-height: 150%; } .wrap h2 { - margin: .8em 0 .5em; + margin: .4em 0 .5em; clear: both; } +* html .wrap h2 { + margin-top: 1em; +} + table .vers { text-align: center; } @@ -411,6 +451,7 @@ textarea.all-options, input.all-options { padding: .2em .2em .3em 2em; } + #adminmenu .current, #submenu .current { font-weight: bold; text-decoration: none; @@ -422,7 +463,6 @@ textarea.all-options, input.all-options { font-weight: normal; margin: 0; padding: 3px 5px; - text-decoration: underline; border-bottom: none; } @@ -438,11 +478,24 @@ textarea.all-options, input.all-options { text-align: center; } -#submenu { +#adminmenu a.current { + background: #0d324f; + border-right: 2px solid #4f96c8; + border-top: 1px solid #96c0de; + color: #fff; + padding-bottom: 8px; +} + +#submenu, #minisub { background: #0d324f; border-bottom: none; margin: 0; padding: 3px 2em 0 3em; + height: 25px; +} + +#minisub { + height: 6px; } #submenu .current { @@ -456,7 +509,7 @@ textarea.all-options, input.all-options { border: none; color: #fff; font-size: 12px; - padding: .3em .4em .33em; + padding: .3em .4em .4em; } #submenu a:hover { @@ -465,7 +518,7 @@ textarea.all-options, input.all-options { } #submenu li { - line-height: 170%; + line-height: 180%; } @@ -493,6 +546,11 @@ textarea.all-options, input.all-options { width: 100%; } +#postdivrich #content { + padding: .7em; + line-height: 140%; +} + #titlediv input, #guiddiv input { margin: 0px; width: 100%; @@ -563,7 +621,8 @@ input.delete:hover { } #title { - font-size: 1.5em; + font-size: 1.7em; + padding: 4px; } #postexcerpt div, #attachmentlinks div { @@ -589,6 +648,23 @@ input.delete:hover { #footer { clear: both; text-align: center; + width: 500px; + margin: auto; + height: 100px; +} + +#footer .docs { + padding-top: 19px; + line-height: 160%; +} + +#footer .docs a { + text-decoration: underline; +} +#footer .logo { + float: left; + margin: 0; + padding: 0; } #login { @@ -698,6 +774,8 @@ input.delete:hover { margin: 0; font-size: 15px; } +.plugins p { +} #login .fullwidth { width: 320px; @@ -705,13 +783,13 @@ input.delete:hover { #searchform { float: left; - margin-right: 3em; - width: 16em; + margin-right: 1em; + width: 18em; } #viewarc { float: left; - width: 20em; + width: 23em; margin-bottom: 1em; } @@ -763,6 +841,7 @@ input.delete:hover { #templateside { float: right; width: 170px; + overflow: hidden; } #templateside h3, #postcustom p.submit { @@ -812,7 +891,7 @@ input.delete:hover { #zeitgeist { background: #eee; - border: 1px solid #69c; + border: 1px solid #c5c5c5; float: right; font-size: 90%; margin-bottom: .5em; @@ -826,6 +905,10 @@ input.delete:hover { border-bottom: none; } +* html #zeitgeist h2 { + padding-top: 10px; +} + #zeitgeist h2 { margin-top: .4em; } @@ -1216,3 +1299,22 @@ input #catadd { background: #fff url( images/fade-butt.png ) repeat-x 0px 15px; border-bottom: 1px solid #ccc; } + +.page-numbers { + padding: 4px 7px; + border: 1px solid #fff; + margin-right: 3px; +} + +a.page-numbers { + border: 1px solid #ccc; +} + +a.page-numbers:hover { + border: 1px solid #999; +} + +.page-numbers.current { + border: 1px solid #999; + font-weight: bold; +} diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index d153fb9..11f0067 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -1070,4 +1070,11 @@ function js_escape($text) { return preg_replace("/\r?\n/", "\\n", addslashes($text)); } +function wp_make_link_relative( $link, $base = '' ) { + if ( !$base ) + $base = get_option( 'home' ); + if ( 0 === strpos($link, $base) ) + $link = substr_replace($link, '', 0, strlen($base)); + return $link; +} ?> diff --git a/wp-includes/js/tinymce/plugins/wordpress/wordpress.css b/wp-includes/js/tinymce/plugins/wordpress/wordpress.css index 1b54bbb..cbc9bac 100644 --- a/wp-includes/js/tinymce/plugins/wordpress/wordpress.css +++ b/wp-includes/js/tinymce/plugins/wordpress/wordpress.css @@ -24,11 +24,9 @@ /* You can extend this CSS by adding your own CSS file with the the content_css option */
body {
- font-family: Georgia, "Times New Roman", Times, serif;
- font-size: 1em;
- line-height: 1.2em;
- padding: .3em;
- background-color: #fff;
+ background: #fff;
+ font: 1em/1.3em Georgia, "Times New Roman", Times, serif;
+ padding: .5em;
}
td {
|