diff --git a/index.php b/index.php deleted file mode 100644 index dd3d554472..0000000000 --- a/index.php +++ /dev/null @@ -1,17 +0,0 @@ - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. - -WRITTEN OFFER - -The source code for any program binaries or compressed scripts that are -included with WordPress can be freely obtained at the following URL: - - https://wordpress.org/download/source/ diff --git a/readme.html b/readme.html deleted file mode 100644 index e29c0929cb..0000000000 --- a/readme.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - WordPress › ReadMe - - - -

- WordPress -
Version 4.3 -

-

Semantic Personal Publishing Platform

- -

First Things First

-

Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I’m proud to be a part of. Thousands of hours have gone into WordPress, and we’re dedicated to making it better every day. Thank you for making it part of your world.

-

— Matt Mullenweg

- -

Installation: Famous 5-minute install

-
    -
  1. Unzip the package in an empty directory and upload everything.
  2. -
  3. Open wp-admin/install.php in your browser. It will take you through the process to set up a wp-config.php file with your database connection details. -
      -
    1. If for some reason this doesn’t work, don’t worry. It doesn’t work on all web hosts. Open up wp-config-sample.php with a text editor like WordPad or similar and fill in your database connection details.
    2. -
    3. Save the file as wp-config.php and upload it.
    4. -
    5. Open wp-admin/install.php in your browser.
    6. -
    -
  4. -
  5. Once the configuration file is set up, the installer will set up the tables needed for your blog. If there is an error, double check your wp-config.php file, and try again. If it fails again, please go to the support forums with as much data as you can gather.
  6. -
  7. If you did not enter a password, note the password given to you. If you did not provide a username, it will be admin.
  8. -
  9. The installer should then send you to the login page. Sign in with the username and password you chose during the installation. If a password was generated for you, you can then click on “Profile” to change the password.
  10. -
- -

Updating

-

Using the Automatic Updater

-

If you are updating from version 2.7 or higher, you can use the automatic updater:

-
    -
  1. Open wp-admin/update-core.php in your browser and follow the instructions.
  2. -
  3. You wanted more, perhaps? That’s it!
  4. -
- -

Updating Manually

-
    -
  1. Before you update anything, make sure you have backup copies of any files you may have modified such as index.php.
  2. -
  3. Delete your old WordPress files, saving ones you’ve modified.
  4. -
  5. Upload the new files.
  6. -
  7. Point your browser to /wp-admin/upgrade.php.
  8. -
- -

Migrating from other systems

-

WordPress can import from a number of systems. First you need to get WordPress installed and working as described above, before using our import tools.

- -

System Requirements

-
    -
  • PHP version 5.2.4 or higher.
  • -
  • MySQL version 5.0 or higher.
  • -
- -

Recommendations

- - -

Online Resources

-

If you have any questions that aren’t addressed in this document, please take advantage of WordPress’ numerous online resources:

-
-
The WordPress Codex
-
The Codex is the encyclopedia of all things WordPress. It is the most comprehensive source of information for WordPress available.
-
The WordPress Blog
-
This is where you’ll find the latest updates and news related to WordPress. Recent WordPress news appears in your administrative dashboard by default.
-
WordPress Planet
-
The WordPress Planet is a news aggregator that brings together posts from WordPress blogs around the web.
-
WordPress Support Forums
-
If you’ve looked everywhere and still can’t find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.
-
WordPress IRC Channel
-
There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (irc.freenode.net #wordpress)
-
- -

Final Notes

-
    -
  • If you have any suggestions, ideas, or comments, or if you (gasp!) found a bug, join us in the Support Forums.
  • -
  • WordPress has a robust plugin API that makes extending the code easy. If you are a developer interested in utilizing this, see the plugin documentation in the Codex. You shouldn’t modify any of the core code.
  • -
- -

Share the Love

-

WordPress has no multi-million dollar marketing campaign or celebrity sponsors, but we do have something even better—you. If you enjoy WordPress please consider telling a friend, setting it up for someone less knowledgable than yourself, or writing the author of a media article that overlooks us.

- -

WordPress is the official continuation of b2/cafélog, which came from Michel V. The work has been continued by the WordPress developers. If you would like to support WordPress, please consider donating.

- -

License

-

WordPress is free software, and is released under the terms of the GPL version 2 or (at your option) any later version. See license.txt.

- - - diff --git a/wp-activate.php b/wp-activate.php deleted file mode 100644 index a796cc5e48..0000000000 --- a/wp-activate.php +++ /dev/null @@ -1,131 +0,0 @@ -cache_enabled = false; - -// Fix for page title -$wp_query->is_404 = false; - -/** - * Fires before the Site Activation page is loaded. - * - * @since 3.0.0 - */ -do_action( 'activate_header' ); - -/** - * Adds an action hook specific to this page that fires on wp_head - * - * @since MU - */ -function do_activate_header() { - /** - * Fires before the Site Activation page is loaded, but on the wp_head action. - * - * @since 3.0.0 - */ - do_action( 'activate_wp_head' ); -} -add_action( 'wp_head', 'do_activate_header' ); - -/** - * Loads styles specific to this page. - * - * @since MU - */ -function wpmu_activate_stylesheet() { - ?> - - - -
- - -

-
-

- -
-

-

- -

-
- - get_error_code() || 'blog_taken' == $result->get_error_code() ) { - $signup = $result->get_error_data(); - ?> -

- '; - if ( $signup->domain . $signup->path == '' ) { - printf( __('Your account has been activated. You may now log in to the site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.'), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, $signup->user_email, wp_lostpassword_url() ); - } else { - printf( __('Your site at %2$s is active. You may now log in to your site using your chosen username of “%3$s”. Please check your email inbox at %4$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, wp_lostpassword_url() ); - } - echo '

'; - } else { - ?> -

- '.$result->get_error_message().'

'; - } - } else { - $url = isset( $result['blog_id'] ) ? get_blogaddress_by_id( (int) $result['blog_id'] ) : ''; - $user = get_userdata( (int) $result['user_id'] ); - ?> -

- -
-

user_login ?>

-

-
- - -

View your site or Log in'), $url, $url . 'wp-login.php' ); ?>

- -

Log in or go back to the homepage.' ), network_site_url('wp-login.php', 'login'), network_home_url() ); ?>

- -
- - includes_url( 'js/mediaelement/', 'relative' ), - 'pauseOtherPlayers' => '' -) ); - -$title = __( 'About' ); - -list( $display_version ) = explode( '-', $wp_version ); - -include( ABSPATH . 'wp-admin/admin-header.php' ); - -$video_url = 'https://videopress.com/embed/T54Iy7Tw'; -$locale = str_replace( '_', '-', get_locale() ); -if ( 'en-AU' !== $locale ) { - list( $locale ) = explode( '-', $locale ); -} -if ( 'en' !== $locale ) { - $video_url = add_query_arg( 'defaultLangCode', $locale, $video_url ); -} - -$major_features = array( - array( - 'src' => array( - 'mp4' => '//s.w.org/images/core/4.3/formatting.mp4', - 'ogv' => '//s.w.org/images/core/4.3/formatting.ogv', - 'webm' => '//s.w.org/images/core/4.3/formatting.webm', - ), - 'heading' => __( 'Formatting Shortcuts' ), - /* Translators: 1: asterisks; 2: number sign; */ - 'description' => sprintf( __( 'Your writing flow just got faster with new formatting shortcuts in WordPress 4.3. Use asterisks to create lists and number signs to make a heading. No more breaking your flow; your text looks great with a %1$s and a %2$s.' ), '*', '#' ), - ), - array( - 'src' => '//s.w.org/images/core/4.3/menu-customizer.png', - 'heading' => __( 'Menus in the Customizer' ), - 'description' => __( 'Create your menu, update it, and assign it, all while live-previewing in the customizer. The streamlined customizer design provides a mobile-friendly and accessible interface. With every release, it becomes easier and faster to make your site just the way you want it.' ), - ), - array( - 'src' => '//s.w.org/images/core/4.3/better-passwords.png', - 'heading' => __( 'Better Passwords' ), - 'description' => __( 'Keep your site more secure with WordPress’ improved approach to passwords. Instead of receiving passwords via email, you’ll get a password reset link. When you add new users to your site or edit a user profile, WordPress will automatically generate a secure password.' ), - ), - array( - 'src' => '//s.w.org/images/core/4.3/site-icon-customizer.png', - 'heading' => __( 'Site Icons' ), - 'description' => __( 'Site icons represent your site in browser tabs, bookmark menus, and on the home screen of mobile devices. Add your unique site icon in the customizer; it will even stay in place when you switch themes. Make your whole site reflect your brand.' ), - ), -); -shuffle( $major_features ); - -$minor_features = array( - array( - 'src' => 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBmaWxsPSIjMDBhMGQyIiBkPSJNNTAgMjE1aDI0MHYzMEg1MHpNNTAgMjc1aDI0MHYzMEg1MHpNNTAgMTU1aDI0MHYzMEg1MHpNNTAgOTVoMjQwdjMwSDUwek0zMTAuMSA5NWwxOS45IDMwIDIwLjEtMzAiLz48L3N2Zz4=', - 'heading' => __( 'A smoother admin experience' ), - 'description' => __( 'Refinements to the list view across the admin make your WordPress more accessible and easier to work with on any device.' ), - ), - array( - 'src' => 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iIzAwYTBkMiIgZD0iTTUgMmgxMHEuODIgMCAxLjQxLjU5VDE3IDR2OHEwIC44Mi0uNTkgMS40MVQxNSAxNGgtMmwtNSA1di01SDVxLS44MiAwLTEuNDEtLjU5VDMgMTJWNHEwLS44Mi41OS0xLjQxVDUgMnptOC41IDguNUwxMSA4bDIuNS0yLjUtMS0xTDEwIDcgNy41IDQuNWwtMSAxTDkgOGwtMi41IDIuNSAxIDFMMTAgOWwyLjUgMi41eiIvPjwvc3ZnPg==', - 'heading' => __( 'Comments turned off on pages' ), - 'description' => __( 'All new pages that you create will have comments turned off. Keep discussions to your blog, right where they’re supposed to happen.' ), - ), - array( - 'src' => 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZmlsbD0iIzAwYTBkMiIgZD0iTTI5LjMyOCA1LjcxMnEuMDQ4LS4xNDQuMDk2LS4zODR0LS4wNjQtLjgxNi0uNTI4LS45NzZxLS4zODQtLjM2OC0uODcyLS40NjR0LS43OTIgMGwtLjI4OC4wOHEtMS40NTYuNzItNS44OCAzLjczNnQtNi4zOTIgNS4xNzZxLS43MzYuODMyLTEuNDA4IDIuMzJ0LS44OCAzIC41NDQgMi4zOTJxLjgzMi43MzYgMi4zNDQuNTc2dDMuMDcyLS44MjQgMi4yNDgtMS4zNTJxMi4xNDQtMi4xNDQgNS4xNjgtNi42NTZ0My42MzItNS44MDh6TTIuMjQgMjguMjRxMS4wNTYtLjY4OCAxLjcxMi0xLjUyOHQuOTUyLTEuNjE2LjU0NC0xLjUyLjcyLTEuNDggMS4yNC0xLjI4cTEuMDg4LS44IDIuNTA0LS43MDR0Mi40MjQgMS4xNjhxLjgxNi44OC44MjQgMi42NHQtMS4wOCAyLjg5NnEtMS4yMTYgMS4xMi0yLjkwNCAxLjYyNHQtMy40MjQuNDI0LTMuNTEyLS42MjR6Ii8+PC9zdmc+', - 'heading' => __( 'Customize your site quickly' ), - 'description' => __( 'Wherever you are on the front-end, you can click the customize link in the toolbar to swiftly make changes to your site.' ), - ), -); - -$tech_features = array( - array( - 'heading' => __( 'Taxonomy Roadmap' ), - 'description' => __( 'Terms shared across multiple taxonomies are now split into separate terms.' ), - ), - array( - 'heading' => __( 'Template Hierarchy' ), - /* Translators: 1: singular.php; 2: single.php; 3:page.php */ - 'description' => sprintf( __( 'Added %1$s as a fallback for %2$s and %3$s' ), 'singular.php', 'single.php', 'page.php.' ), - ), - array( - 'heading' => 'WP_List_Table', - 'description' => __( 'List tables can and should designate a primary column.' ), - ), -); - -?> -
-

- -
-
- - - -
- - -
- -
- -
- -
-
- $feature['src']['mp4'], - 'ogv' => $feature['src']['ogv'], - 'webm' => $feature['src']['webm'], - 'loop' => true, - 'autoplay' => true, - 'width' => 500, - 'height' => 284 - ) ); - - // Image. - else: - ?> - - -
-

-

-
- -
- -
- -
-
- -
-

-

-
- -
- -
-

- -
- -
-

-

-
- -
- -
- - - - | - - -
- -
-
-Version %1$s addressed a security issue.', - 'Version %1$s addressed some security issues.' ); - -/* translators: 1: WordPress version number, 2: plural number of bugs. */ -_n_noop( 'Version %1$s addressed %2$s bug.', - 'Version %1$s addressed %2$s bugs.' ); - -/* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */ -_n_noop( 'Version %1$s addressed a security issue and fixed %2$s bug.', - 'Version %1$s addressed a security issue and fixed %2$s bugs.' ); - -/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */ -_n_noop( 'Version %1$s addressed some security issues and fixed %2$s bug.', - 'Version %1$s addressed some security issues and fixed %2$s bugs.' ); - -__( 'For more information, see the release notes.' ); diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php deleted file mode 100644 index 225272acbe..0000000000 --- a/wp-admin/admin-ajax.php +++ /dev/null @@ -1,102 +0,0 @@ - - -
-
-
- - - - -
- - - diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php deleted file mode 100644 index 11bd30cd19..0000000000 --- a/wp-admin/admin-functions.php +++ /dev/null @@ -1,15 +0,0 @@ -site_name ) ); -elseif ( is_user_admin() ) - $admin_title = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) ); -else - $admin_title = get_bloginfo( 'name' ); - -if ( $admin_title == $title ) - $admin_title = sprintf( __( '%1$s — WordPress' ), $title ); -else - $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $admin_title ); - -/** - * Filter the title tag content for an admin page. - * - * @since 3.1.0 - * - * @param string $admin_title The page title, with extra context added. - * @param string $title The original page title. - */ -$admin_title = apply_filters( 'admin_title', $admin_title, $title ); - -wp_user_settings(); - -_wp_admin_html_begin(); -?> -<?php echo $admin_title; ?> - - - -post_type ) - $admin_body_class .= ' post-type-' . $current_screen->post_type; - -if ( $current_screen->taxonomy ) - $admin_body_class .= ' taxonomy-' . $current_screen->taxonomy; - -$admin_body_class .= ' branch-' . str_replace( array( '.', ',' ), '-', floatval( $wp_version ) ); -$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) ); -$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' ); -$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); - -if ( wp_is_mobile() ) - $admin_body_class .= ' mobile'; - -if ( is_multisite() ) - $admin_body_class .= ' multisite'; - -if ( is_network_admin() ) - $admin_body_class .= ' network-admin'; - -$admin_body_class .= ' no-customize-support no-svg'; - -?> - - - - - - - -
- -
- - - -
-set_parentage( $parent_file ); - -?> - -
-render_screen_meta(); - -if ( is_network_admin() ) { - /** - * Print network admin screen notices. - * - * @since 3.1.0 - */ - do_action( 'network_admin_notices' ); -} elseif ( is_user_admin() ) { - /** - * Print user admin screen notices. - * - * @since 3.1.0 - */ - do_action( 'user_admin_notices' ); -} else { - /** - * Print admin screen notices. - * - * @since 3.1.0 - */ - do_action( 'admin_notices' ); -} - -/** - * Print generic admin screen notices. - * - * @since 3.1.0 - */ -do_action( 'all_admin_notices' ); - -if ( $parent_file == 'options-general.php' ) - require(ABSPATH . 'wp-admin/options-head.php'); diff --git a/wp-admin/admin-post.php b/wp-admin/admin-post.php deleted file mode 100644 index cb92699efd..0000000000 --- a/wp-admin/admin-post.php +++ /dev/null @@ -1,71 +0,0 @@ - 50 && mt_rand( 0, (int)( $c / 50 ) ) == 1 ) ) { - require_once( ABSPATH . WPINC . '/http.php' ); - $response = wp_remote_get( admin_url( 'upgrade.php?step=1' ), array( 'timeout' => 120, 'httpversion' => '1.1' ) ); - /** This action is documented in wp-admin/network/upgrade.php */ - do_action( 'after_mu_upgrade', $response ); - unset($response); - } - unset($c); - } -} - -require_once(ABSPATH . 'wp-admin/includes/admin.php'); - -auth_redirect(); - -// Schedule trash collection -if ( !wp_next_scheduled('wp_scheduled_delete') && !defined('WP_INSTALLING') ) - wp_schedule_event(time(), 'daily', 'wp_scheduled_delete'); - -set_screen_options(); - -$date_format = get_option('date_format'); -$time_format = get_option('time_format'); - -wp_enqueue_script( 'common' ); - - - - -/** - * $pagenow is set in vars.php - * $wp_importers is sometimes set in wp-admin/includes/import.php - * The remaining variables are imported as globals elsewhere, declared as globals here - * - * @global string $pagenow - * @global array $wp_importers - * @global string $hook_suffix - * @global string $plugin_page - * @global string $typenow - * @global string $taxnow - */ -global $pagenow, $wp_importers, $hook_suffix, $plugin_page, $typenow, $taxnow; - -$page_hook = null; - -$editing = false; - -if ( isset($_GET['page']) ) { - $plugin_page = wp_unslash( $_GET['page'] ); - $plugin_page = plugin_basename($plugin_page); -} - -if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) ) - $typenow = $_REQUEST['post_type']; -else - $typenow = ''; - -if ( isset( $_REQUEST['taxonomy'] ) && taxonomy_exists( $_REQUEST['taxonomy'] ) ) - $taxnow = $_REQUEST['taxonomy']; -else - $taxnow = ''; - -if ( WP_NETWORK_ADMIN ) - require(ABSPATH . 'wp-admin/network/menu.php'); -elseif ( WP_USER_ADMIN ) - require(ABSPATH . 'wp-admin/user/menu.php'); -else - require(ABSPATH . 'wp-admin/menu.php'); - -if ( current_user_can( 'manage_options' ) ) { - /** - * Filter the maximum memory limit available for administration screens. - * - * This only applies to administrators, who may require more memory for tasks like updates. - * Memory limits when processing images (uploaded or edited by users of any role) are - * handled separately. - * - * The WP_MAX_MEMORY_LIMIT constant specifically defines the maximum memory limit available - * when in the administration back-end. The default is 256M, or 256 megabytes of memory. - * - * @since 3.0.0 - * - * @param string 'WP_MAX_MEMORY_LIMIT' The maximum WordPress memory limit. Default 256M. - */ - @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) ); -} - -/** - * Fires as an admin screen or script is being initialized. - * - * Note, this does not just run on user-facing admin screens. - * It runs on admin-ajax.php and admin-post.php as well. - * - * This is roughly analgous to the more general 'init' hook, which fires earlier. - * - * @since 2.5.0 - */ -do_action( 'admin_init' ); - -if ( isset($plugin_page) ) { - if ( !empty($typenow) ) - $the_parent = $pagenow . '?post_type=' . $typenow; - else - $the_parent = $pagenow; - if ( ! $page_hook = get_plugin_page_hook($plugin_page, $the_parent) ) { - $page_hook = get_plugin_page_hook($plugin_page, $plugin_page); - - // Backwards compatibility for plugins using add_management_page(). - if ( empty( $page_hook ) && 'edit.php' == $pagenow && '' != get_plugin_page_hook($plugin_page, 'tools.php') ) { - // There could be plugin specific params on the URL, so we need the whole query string - if ( !empty($_SERVER[ 'QUERY_STRING' ]) ) - $query_string = $_SERVER[ 'QUERY_STRING' ]; - else - $query_string = 'page=' . $plugin_page; - wp_redirect( admin_url('tools.php?' . $query_string) ); - exit; - } - } - unset($the_parent); -} - -$hook_suffix = ''; -if ( isset( $page_hook ) ) { - $hook_suffix = $page_hook; -} elseif ( isset( $plugin_page ) ) { - $hook_suffix = $plugin_page; -} elseif ( isset( $pagenow ) ) { - $hook_suffix = $pagenow; -} - -set_current_screen(); - -// Handle plugin admin pages. -if ( isset($plugin_page) ) { - if ( $page_hook ) { - /** - * Fires before a particular screen is loaded. - * - * The load-* hook fires in a number of contexts. This hook is for plugin screens - * where a callback is provided when the screen is registered. - * - * The dynamic portion of the hook name, `$page_hook`, refers to a mixture of plugin - * page information including: - * 1. The page type. If the plugin page is registered as a submenu page, such as for - * Settings, the page type would be 'settings'. Otherwise the type is 'toplevel'. - * 2. A separator of '_page_'. - * 3. The plugin basename minus the file extension. - * - * Together, the three parts form the `$page_hook`. Citing the example above, - * the hook name used would be 'load-settings_page_pluginbasename'. - * - * @see get_plugin_page_hook() - * - * @since 2.1.0 - */ - do_action( 'load-' . $page_hook ); - if (! isset($_GET['noheader'])) - require_once(ABSPATH . 'wp-admin/admin-header.php'); - - /** - * Used to call the registered callback for a plugin screen. - * - * @ignore - * @since 1.5.0 - */ - do_action( $page_hook ); - } else { - if ( validate_file($plugin_page) ) - wp_die(__('Invalid plugin page')); - - if ( !( file_exists(WP_PLUGIN_DIR . "/$plugin_page") && is_file(WP_PLUGIN_DIR . "/$plugin_page") ) && !( file_exists(WPMU_PLUGIN_DIR . "/$plugin_page") && is_file(WPMU_PLUGIN_DIR . "/$plugin_page") ) ) - wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page))); - - /** - * Fires before a particular screen is loaded. - * - * The load-* hook fires in a number of contexts. This hook is for plugin screens - * where the file to load is directly included, rather than the use of a function. - * - * The dynamic portion of the hook name, `$plugin_page`, refers to the plugin basename. - * - * @see plugin_basename() - * - * @since 1.5.0 - */ - do_action( 'load-' . $plugin_page ); - - if ( !isset($_GET['noheader'])) - require_once(ABSPATH . 'wp-admin/admin-header.php'); - - if ( file_exists(WPMU_PLUGIN_DIR . "/$plugin_page") ) - include(WPMU_PLUGIN_DIR . "/$plugin_page"); - else - include(WP_PLUGIN_DIR . "/$plugin_page"); - } - - include(ABSPATH . 'wp-admin/admin-footer.php'); - - exit(); -} elseif ( isset( $_GET['import'] ) ) { - - $importer = $_GET['import']; - - if ( ! current_user_can('import') ) - wp_die(__('You are not allowed to import.')); - - if ( validate_file($importer) ) { - wp_redirect( admin_url( 'import.php?invalid=' . $importer ) ); - exit; - } - - if ( ! isset($wp_importers[$importer]) || ! is_callable($wp_importers[$importer][2]) ) { - wp_redirect( admin_url( 'import.php?invalid=' . $importer ) ); - exit; - } - - /** - * Fires before an importer screen is loaded. - * - * The dynamic portion of the hook name, `$importer`, refers to the importer slug. - * - * @since 3.5.0 - */ - do_action( 'load-importer-' . $importer ); - - $parent_file = 'tools.php'; - $submenu_file = 'import.php'; - $title = __('Import'); - - if (! isset($_GET['noheader'])) - require_once(ABSPATH . 'wp-admin/admin-header.php'); - - require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); - - define('WP_IMPORTING', true); - - /** - * Whether to filter imported data through kses on import. - * - * Multisite uses this hook to filter all data through kses by default, - * as a super administrator may be assisting an untrusted user. - * - * @since 3.1.0 - * - * @param bool false Whether to force data to be filtered through kses. Default false. - */ - if ( apply_filters( 'force_filtered_html_on_import', false ) ) { - kses_init_filters(); // Always filter imported data with kses on multisite. - } - - call_user_func($wp_importers[$importer][2]); - - include(ABSPATH . 'wp-admin/admin-footer.php'); - - // Make sure rules are flushed - flush_rewrite_rules(false); - - exit(); -} else { - /** - * Fires before a particular screen is loaded. - * - * The load-* hook fires in a number of contexts. This hook is for core screens. - * - * The dynamic portion of the hook name, `$pagenow`, is a global variable - * referring to the filename of the current page, such as 'admin.php', - * 'post-new.php' etc. A complete hook for the latter would be - * 'load-post-new.php'. - * - * @since 2.1.0 - */ - do_action( 'load-' . $pagenow ); - - /* - * The following hooks are fired to ensure backward compatibility. - * In all other cases, 'load-' . $pagenow should be used instead. - */ - if ( $typenow == 'page' ) { - if ( $pagenow == 'post-new.php' ) - do_action( 'load-page-new.php' ); - elseif ( $pagenow == 'post.php' ) - do_action( 'load-page.php' ); - } elseif ( $pagenow == 'edit-tags.php' ) { - if ( $taxnow == 'category' ) - do_action( 'load-categories.php' ); - elseif ( $taxnow == 'link_category' ) - do_action( 'load-edit-link-categories.php' ); - } -} - -if ( ! empty( $_REQUEST['action'] ) ) { - /** - * Fires when an 'action' request variable is sent. - * - * The dynamic portion of the hook name, `$_REQUEST['action']`, - * refers to the action derived from the `GET` or `POST` request. - * - * @since 2.6.0 - */ - do_action( 'admin_action_' . $_REQUEST['action'] ); -} diff --git a/wp-admin/async-upload.php b/wp-admin/async-upload.php deleted file mode 100644 index 4a18aa1449..0000000000 --- a/wp-admin/async-upload.php +++ /dev/null @@ -1,115 +0,0 @@ -post_type ) - wp_die( __( 'Unknown post type.' ) ); - if ( ! current_user_can( 'edit_post', $id ) ) - wp_die( __( 'You are not allowed to edit this item.' ) ); - - switch ( $_REQUEST['fetch'] ) { - case 3 : - if ( $thumb_url = wp_get_attachment_image_src( $id, 'thumbnail', true ) ) - echo ''; - echo '' . _x( 'Edit', 'media item' ) . ''; - $title = $post->post_title ? $post->post_title : wp_basename( $post->guid ); // title shouldn't ever be empty, but use filename just in cas.e - echo '
' . esc_html( wp_html_excerpt( $title, 60, '…' ) ) . '
'; - break; - case 2 : - add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2); - echo get_media_item($id, array( 'send' => false, 'delete' => true )); - break; - default: - add_filter('attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2); - echo get_media_item($id); - break; - } - exit; -} - -check_admin_referer('media-form'); - -$post_id = 0; -if ( isset( $_REQUEST['post_id'] ) ) { - $post_id = absint( $_REQUEST['post_id'] ); - if ( ! get_post( $post_id ) || ! current_user_can( 'edit_post', $post_id ) ) - $post_id = 0; -} - -$id = media_handle_upload( 'async-upload', $post_id ); -if ( is_wp_error($id) ) { - echo '
- ' . __('Dismiss') . ' - ' . sprintf(__('“%s” has failed to upload due to an error'), esc_html($_FILES['async-upload']['name']) ) . '
' . - esc_html($id->get_error_message()) . '
'; - exit; -} - -if ( $_REQUEST['short'] ) { - // Short form response - attachment ID only. - echo $id; -} else { - // Long form response - big chunk o html. - $type = $_REQUEST['type']; - - /** - * Filter the returned ID of an uploaded attachment. - * - * The dynamic portion of the hook name, `$type`, refers to the attachment type, - * such as 'image', 'audio', 'video', 'file', etc. - * - * @since 2.5.0 - * - * @param int $id Uploaded attachment ID. - */ - echo apply_filters( "async_upload_{$type}", $id ); -} diff --git a/wp-admin/comment.php b/wp-admin/comment.php deleted file mode 100644 index 7131a0c7f3..0000000000 --- a/wp-admin/comment.php +++ /dev/null @@ -1,333 +0,0 @@ -

$msg

"; - include( ABSPATH . 'wp-admin/admin-footer.php' ); - die; -} - -switch( $action ) { - -case 'editcomment' : - $title = __('Edit Comment'); - - get_current_screen()->add_help_tab( array( - 'id' => 'overview', - 'title' => __('Overview'), - 'content' => - '

' . __( 'You can edit the information left in a comment if needed. This is often useful when you notice that a commenter has made a typographical error.' ) . '

' . - '

' . __( 'You can also moderate the comment from this screen using the Status box, where you can also change the timestamp of the comment.' ) . '

' - ) ); - - get_current_screen()->set_help_sidebar( - '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Comments' ) . '

' . - '

' . __( 'Support Forums' ) . '

' - ); - - wp_enqueue_script('comment'); - require_once( ABSPATH . 'wp-admin/admin-header.php' ); - - $comment_id = absint( $_GET['c'] ); - - if ( !$comment = get_comment( $comment_id ) ) - comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' ' . __('Go back') . '.', 'javascript:history.go(-1)') ); - - if ( !current_user_can( 'edit_comment', $comment_id ) ) - comment_footer_die( __('You are not allowed to edit this comment.') ); - - if ( 'trash' == $comment->comment_approved ) - comment_footer_die( __('This comment is in the Trash. Please move it out of the Trash if you want to edit it.') ); - - $comment = get_comment_to_edit( $comment_id ); - - include( ABSPATH . 'wp-admin/edit-form-comment.php' ); - - break; - -case 'delete' : -case 'approve' : -case 'trash' : -case 'spam' : - - $title = __('Moderate Comment'); - - $comment_id = absint( $_GET['c'] ); - - if ( !$comment = get_comment_to_edit( $comment_id ) ) { - wp_redirect( admin_url('edit-comments.php?error=1') ); - die(); - } - - if ( !current_user_can( 'edit_comment', $comment->comment_ID ) ) { - wp_redirect( admin_url('edit-comments.php?error=2') ); - die(); - } - - // No need to re-approve/re-trash/re-spam a comment. - if ( $action == str_replace( '1', 'approve', $comment->comment_approved ) ) { - wp_redirect( admin_url( 'edit-comments.php?same=' . $comment_id ) ); - die(); - } - - require_once( ABSPATH . 'wp-admin/admin-header.php' ); - - $formaction = $action . 'comment'; - $nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_'; - $nonce_action .= $comment_id; - -?> -
- -

- -comment_approved != '0' ) { // if not unapproved - $message = ''; - switch ( $comment->comment_approved ) { - case '1' : - $message = __('This comment is currently approved.'); - break; - case 'spam' : - $message = __('This comment is currently marked as spam.'); - break; - case 'trash' : - $message = __('This comment is currently in the Trash.'); - break; - } - if ( $message ) { - echo '

' . $message . '

'; - } -} -?> -

- - - - - - -comment_author_email ) { ?> - - - - - -comment_author_url ) { ?> - - - - - - - - - - - - - - - - - -
comment_author; ?>
comment_author_email; ?>
comment_author_url; ?>
- comment_post_ID; - if ( current_user_can( 'edit_post', $post_id ) ) { - $post_link = ""; - $post_link .= esc_html( get_the_title( $post_id ) ) . ''; - } else { - $post_link = esc_html( get_the_title( $post_id ) ); - } - echo $post_link; - - if ( $comment->comment_parent ) { - $parent = get_comment( $comment->comment_parent ); - $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); - $name = get_comment_author( $parent->comment_ID ); - printf( ' | ' . __( 'In reply to %2$s.' ), $parent_link, $name ); - } - ?> -
- %2$s at %3$s' ), - esc_url( get_comment_link( $comment->comment_ID ) ), - /* translators: comment date format. See http://php.net/date */ - get_comment_date( __( 'Y/m/d' ) ), - get_comment_date( get_option( 'time_format' ) ) - ); - ?> -
comment_content; ?>
- -
- -

- - -

- - - - - -
- -
-' . __('Go back') . '.', 'edit-comments.php') ); - if ( !current_user_can( 'edit_comment', $comment->comment_ID ) ) - comment_footer_die( __('You are not allowed to edit comments on this post.') ); - - if ( '' != wp_get_referer() && ! $noredir && false === strpos(wp_get_referer(), 'comment.php') ) - $redir = wp_get_referer(); - elseif ( '' != wp_get_original_referer() && ! $noredir ) - $redir = wp_get_original_referer(); - elseif ( in_array( $action, array( 'approvecomment', 'unapprovecomment' ) ) ) - $redir = admin_url('edit-comments.php?p=' . absint( $comment->comment_post_ID ) ); - else - $redir = admin_url('edit-comments.php'); - - $redir = remove_query_arg( array('spammed', 'unspammed', 'trashed', 'untrashed', 'deleted', 'ids', 'approved', 'unapproved'), $redir ); - - switch ( $action ) { - case 'deletecomment' : - wp_delete_comment( $comment_id ); - $redir = add_query_arg( array('deleted' => '1'), $redir ); - break; - case 'trashcomment' : - wp_trash_comment($comment_id); - $redir = add_query_arg( array('trashed' => '1', 'ids' => $comment_id), $redir ); - break; - case 'untrashcomment' : - wp_untrash_comment($comment_id); - $redir = add_query_arg( array('untrashed' => '1'), $redir ); - break; - case 'spamcomment' : - wp_spam_comment($comment_id); - $redir = add_query_arg( array('spammed' => '1', 'ids' => $comment_id), $redir ); - break; - case 'unspamcomment' : - wp_unspam_comment($comment_id); - $redir = add_query_arg( array('unspammed' => '1'), $redir ); - break; - case 'approvecomment' : - wp_set_comment_status( $comment_id, 'approve' ); - $redir = add_query_arg( array( 'approved' => 1 ), $redir ); - break; - case 'unapprovecomment' : - wp_set_comment_status( $comment_id, 'hold' ); - $redir = add_query_arg( array( 'unapproved' => 1 ), $redir ); - break; - } - - wp_redirect( $redir ); - die; - -case 'editedcomment' : - - $comment_id = absint( $_POST['comment_ID'] ); - $comment_post_id = absint( $_POST['comment_post_ID'] ); - - check_admin_referer( 'update-comment_' . $comment_id ); - - edit_comment(); - - $location = ( empty( $_POST['referredby'] ) ? "edit-comments.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id; - - /** - * Filter the URI the user is redirected to after editing a comment in the admin. - * - * @since 2.1.0 - * - * @param string $location The URI the user will be redirected to. - * @param int $comment_id The ID of the comment being edited. - */ - $location = apply_filters( 'comment_edit_redirect', $location, $comment_id ); - wp_redirect( $location ); - - exit(); - -default: - wp_die( __('Unknown action.') ); - -} // end switch - -include( ABSPATH . 'wp-admin/admin-footer.php' ); diff --git a/wp-admin/credits.php b/wp-admin/credits.php deleted file mode 100644 index 33ae70813f..0000000000 --- a/wp-admin/credits.php +++ /dev/null @@ -1,191 +0,0 @@ -' . esc_html( $display_name ) . ''; -} - -/** - * Retrieve the link to an external library used in WordPress. - * - * @access private - * @since 3.2.0 - * - * @param string &$data External library data, passed by reference. - */ -function _wp_credits_build_object_link( &$data ) { - $data = '' . esc_html( $data[0] ) . ''; -} - -list( $display_version ) = explode( '-', $wp_version ); - -include( ABSPATH . 'wp-admin/admin-header.php' ); -?> -
- -

- -
- -
- - - -' . sprintf( __( 'WordPress is created by a worldwide team of passionate individuals. Get involved in WordPress.' ), - 'https://wordpress.org/about/', - /* translators: Url to the codex documentation on contributing to WordPress used on the credits page */ - __( 'https://codex.wordpress.org/Contributing_to_WordPress' ) ) . '

'; - include( ABSPATH . 'wp-admin/admin-footer.php' ); - exit; -} - -echo '

' . __( 'WordPress is created by a worldwide team of passionate individuals.' ) . "

\n"; - -foreach ( $credits['groups'] as $group_slug => $group_data ) { - if ( $group_data['name'] ) { - if ( 'Translators' == $group_data['name'] ) { - // Considered a special slug in the API response. (Also, will never be returned for en_US.) - $title = _x( 'Translators', 'Translate this to be the equivalent of English Translators in your language for the credits page Translators section' ); - } elseif ( isset( $group_data['placeholders'] ) ) { - $title = vsprintf( translate( $group_data['name'] ), $group_data['placeholders'] ); - } else { - $title = translate( $group_data['name'] ); - } - - echo '

' . esc_html( $title ) . "

\n"; - } - - if ( ! empty( $group_data['shuffle'] ) ) - shuffle( $group_data['data'] ); // We were going to sort by ability to pronounce "hierarchical," but that wouldn't be fair to Matt. - - switch ( $group_data['type'] ) { - case 'list' : - array_walk( $group_data['data'], '_wp_credits_add_profile_link', $credits['data']['profiles'] ); - echo '

' . wp_sprintf( '%l.', $group_data['data'] ) . "

\n\n"; - break; - case 'libraries' : - array_walk( $group_data['data'], '_wp_credits_build_object_link' ); - echo '

' . wp_sprintf( '%l.', $group_data['data'] ) . "

\n\n"; - break; - default: - $compact = 'compact' == $group_data['type']; - $classes = 'wp-people-group ' . ( $compact ? 'compact' : '' ); - echo '\n"; - break; - } -} - -?> -

Get involved in WordPress.' ), - /* translators: URL to the Make WordPress 'Get Involved' landing page used on the credits page */ - __( 'https://make.wordpress.org/' ) ); ?>

- -
- a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-submenu a:focus { - color: #00b9eb; -} - -#adminmenu li.menu-top { - border: none; - min-height: 34px; - position: relative; -} - -#adminmenu .wp-submenu { - list-style: none; - position: absolute; - top: -1000em; - right: 160px; - overflow: visible; - word-wrap: break-word; -} - -#adminmenu .wp-submenu, -.folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu { - padding: 7px 0 8px; - z-index: 9999; - background-color: #32373c; - -webkit-box-shadow: 0 3px 5px rgba(0,0,0,0.2); - box-shadow: 0 3px 5px rgba(0,0,0,0.2); -} - -.js #adminmenu .sub-open, -.js #adminmenu .opensub .wp-submenu, -#adminmenu a.menu-top:focus + .wp-submenu, -.no-js li.wp-has-submenu:hover .wp-submenu { - top: -1px; -} - -#adminmenu .wp-has-current-submenu .wp-submenu, -.no-js li.wp-has-current-submenu:hover .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu.sub-open, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu { - position: relative; - z-index: 3; - top: auto; - right: auto; - left: auto; - bottom: auto; - border: 0 none; - margin-top: 0; - -webkit-box-shadow: none; - box-shadow: none; - background-color: #32373c; -} - -/* ensure that wp-submenu's box shadow doesn't appear on top of the focused menu item's background. */ -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - position: relative; - background-color: #191e23; - color: #00b9eb; -} - -.folded #adminmenu li.menu-top:hover, -.folded #adminmenu li.opensub > a.menu-top, -.folded #adminmenu li > a.menu-top:focus { - z-index: 10000; -} - -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.current a.menu-top, -.folded #adminmenu li.wp-has-current-submenu, -.folded #adminmenu li.current.menu-top, -#adminmenu .wp-menu-arrow, -#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head, -#adminmenu .wp-menu-arrow div { - background: #0073aa; - color: #fff; -} - -.folded #adminmenu .wp-submenu.sub-open, -.folded #adminmenu .opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, -.folded #adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu a.menu-top:focus + .wp-submenu, -.folded #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu, -.no-js.folded #adminmenu .wp-has-submenu:hover .wp-submenu { - top: 0; - right: 36px; -} - -.folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu { - position: absolute; - top: -1000em; -} - -#adminmenu .wp-not-current-submenu .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu { - min-width: 160px; - width: auto; -} - -#adminmenu .wp-submenu a { - font-size: 13px; - line-height: 1.2; - margin: 0; - padding: 6px 0; -} - -#adminmenu .wp-submenu li.current, -#adminmenu .wp-submenu li.current a, -#adminmenu .opensub .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus { - color: #fff; -} - -#adminmenu .wp-not-current-submenu li > a, -.folded #adminmenu .wp-has-current-submenu li > a { - padding-left: 16px; - padding-right: 14px; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -#adminmenu .wp-has-current-submenu ul > li > a, -.folded #adminmenu li.menu-top .wp-submenu > li > a { - padding: 6px 12px; -} - -#adminmenu a.menu-top, -#adminmenu .wp-submenu-head { - font-size: 14px; - font-weight: 400; - line-height: 18px; - padding: 0; -} - -#adminmenu .wp-submenu-head { - display: none; -} - -.folded #adminmenu .wp-menu-name { - position: absolute; - right: -999px; -} - -.folded #adminmenu .wp-submenu-head { - display: block; -} - -#adminmenu .wp-submenu li { - padding: 0; - margin: 0; - overflow: hidden; -} - -#adminmenu .wp-menu-image img { - padding: 9px 0 0 0; - opacity: 0.6; - filter: alpha(opacity=60); -} - -#adminmenu div.wp-menu-name { - padding: 8px 0; -} - -#adminmenu div.wp-menu-image { - float: right; - width: 36px; - height: 34px; - margin: 0; - text-align: center; -} - -#adminmenu div.wp-menu-image.svg { - background-repeat: no-repeat; - background-position: center; - -webkit-background-size: 20px auto; - background-size: 20px auto; -} - -div.wp-menu-image:before { - color: #a0a5aa; - color: rgba(240,245,250,0.6); - padding: 7px 0; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -#adminmenu div.wp-menu-image:before { - color: #a0a5aa; - color: rgba(240,245,250,0.6); -} - -#adminmenu li.wp-has-current-submenu:hover div.wp-menu-image:before, -#adminmenu .wp-has-current-submenu div.wp-menu-image:before, -#adminmenu .current div.wp-menu-image:before, -#adminmenu a.wp-has-current-submenu:hover div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before { - color: #fff; -} - -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before { - color: #00b9eb; -} - -/* IE8 doesn't redraw the pseudo elements unless you make a change to the content, this restore the initial color after hover */ -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #a0a5aa; -} - -.folded #adminmenu div.wp-menu-image { - width: 35px; - height: 30px; - position: absolute; - z-index: 25; -} - -.folded #adminmenu a.menu-top { - height: 34px; -} - -/* No @font-face support */ -.no-font-face #adminmenu .wp-menu-image { - display: none; -} - -.no-font-face #adminmenu div.wp-menu-name { - padding: 8px 12px; -} - -.no-font-face.auto-fold #adminmenu .wp-menu-name { - margin-right: 0; -} -/* End no @font-face support */ - -/* Sticky admin menu */ -.sticky-menu #adminmenuwrap { - position: fixed; -} - -/* A new arrow */ - -.wp-menu-arrow { - display: none !important; -} - -ul#adminmenu a.wp-has-current-submenu { - position: relative; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - left: 0; - border: solid 8px transparent; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - border-left-color: #f1f1f1; - top: 50%; - margin-top: -8px; -} - -.folded ul#adminmenu li:hover a.wp-has-current-submenu:after { - display: none; -} - -.folded ul#adminmenu a.wp-has-current-submenu:after, -.folded ul#adminmenu > li a.current:after { - border-width: 4px; - margin-top: -4px; -} - -/* flyout menu arrow */ -#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after { - left: 0; - border: solid transparent; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - border-width: 8px; - top: 10px; - z-index: 10000; -} - -.folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after { - border-width: 4px; - margin-top: -4px; - top: 18px; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-left-color: #32373c; -} - -#adminmenu li.menu-top:hover .wp-menu-image img, -#adminmenu li.wp-has-current-submenu .wp-menu-image img { - opacity: 1; - filter: alpha(opacity=100); -} - -#adminmenu li.wp-menu-separator { - height: 5px; - padding: 0; - margin: 0 0 6px 0; - cursor: inherit; -} - -/* @todo: is this even needed given that it's nested beneath the above li.wp-menu-separator? */ -#adminmenu div.separator { - height: 2px; - padding: 0; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #fff; - font-weight: 400; - font-size: 14px; - padding: 8px 11px 8px 4px; - margin: -7px 0px 4px; -} - -#adminmenu li.current, -.folded #adminmenu li.wp-menu-open { - border: 0 none; -} - -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - display: inline-block; - background-color: #d54e21; - color: #fff; - font-size: 9px; - line-height: 17px; - font-weight: 600; - margin: 1px 2px 0 0; - vertical-align: top; - -webkit-border-radius: 10px; - border-radius: 10px; - z-index: 26; -} - -#adminmenu li .awaiting-mod span, -#adminmenu li span.update-plugins span { - display: block; - padding: 0 6px; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins { - background-color: #00b9eb; - color: #fff; -} - -#adminmenu li span.count-0 { - display: none; -} - -#collapse-menu { - font-size: 13px; - line-height: 34px; - margin-top: 10px; - color: #a0a5aa; - color: rgba(240,245,250,0.6); - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -#collapse-menu:hover, -#collapse-menu:hover #collapse-button div:after { - color: #00b9eb; -} - -.folded #collapse-menu span { - display: none; -} - -#collapse-button, -#collapse-button div { - width: 15px; - height: 15px; -} - -#collapse-button { - float: right; - height: 15px; - margin: 10px 11px 10px 8px; - width: 15px; - -webkit-border-radius: 10px; - border-radius: 10px; -} - -#wpwrap #collapse-button div { - padding: 0; -} - -#collapse-button div:after { - content: '\f148'; - display: block; - line-height: 15px; - right: -3px; - top: -3px; - color: #a0a5aa; - color: rgba(240,245,250,0.6); - font: normal 20px/1 'dashicons' !important; - speak: none; - margin: 0 auto; - padding: 0 !important; - position: relative; - text-align: center; - width: 20px; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -/* rtl:ignore */ -.folded #collapse-button div:after, -.rtl #collapse-button div:after { - -webkit-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); -} - -.rtl.folded #collapse-button div:after { - -webkit-transform: none; - -ms-transform: none; - transform: none; -} - -/** - * Toolbar menu toggle - */ -li#wp-admin-bar-menu-toggle { - display: none; -} - -/* Hide-if-customize for items we can't add classes to */ -.customize-support #menu-appearance a[href="themes.php?page=custom-header"], -.customize-support #menu-appearance a[href="themes.php?page=custom-background"] { - display: none; -} - -/* Auto-folding of the admin menu */ -@media only screen and (max-width: 960px) { - .auto-fold #wpcontent, - .auto-fold #wpfooter { - margin-right: 36px; - } - - .auto-fold #adminmenuback, - .auto-fold #adminmenuwrap, - .auto-fold #adminmenu, - .auto-fold #adminmenu li.menu-top { - width: 36px; - } - - .auto-fold #adminmenu .wp-submenu.sub-open, - .auto-fold #adminmenu .opensub .wp-submenu, - .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, - .auto-fold #adminmenu .wp-has-current-submenu.opensub .wp-submenu, - .auto-fold #adminmenu a.menu-top:focus + .wp-submenu, - .auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu { - top: 0px; - right: 36px; - } - - .auto-fold #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, - .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { - position: absolute; - top: -1000em; - margin-left: -1px; - padding: 7px 0 8px; - z-index: 9999; - } - - .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { - min-width: 150px; - width: auto; - } - - .auto-fold #adminmenu .wp-has-current-submenu li > a { - padding-left: 16px; - padding-right: 14px; - } - - - .auto-fold #adminmenu li.menu-top .wp-submenu > li > a { - padding-right: 12px; - } - - .auto-fold #adminmenu .wp-menu-name { - position: absolute; - right: -999px; - } - - .auto-fold #adminmenu .wp-submenu-head { - display: block; - } - - .auto-fold #adminmenu div.wp-menu-image { - height: 30px; - width: 34px; - position: absolute; - z-index: 25; - } - - .auto-fold #adminmenu a.menu-top { - height: 34px; - } - - .auto-fold #adminmenu li.wp-menu-open { - border: 0 none; - } - - .auto-fold #adminmenu .wp-has-current-submenu.menu-top-last { - margin-bottom: 0; - } - - .auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after { - display: none; - } - - .auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after { - border-width: 4px; - margin-top: -4px; - top: 16px; - } - - .auto-fold ul#adminmenu a.wp-has-current-submenu:after, - .auto-fold ul#adminmenu > li a.current:after { - border-width: 4px; - margin-top: -4px; - } - - .auto-fold #adminmenu li.menu-top:hover, - .auto-fold #adminmenu li.opensub > a.menu-top, - .auto-fold #adminmenu li > a.menu-top:focus { - z-index: 10000; - } - - .auto-fold #collapse-menu span { - display: none; - } - - .auto-fold #collapse-button div { - background: none; - } - - /* rtl:ignore */ - .auto-fold #collapse-button div:after { - -webkit-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); - } - - .rtl.auto-fold #collapse-button div:after { - -webkit-transform: none; - -ms-transform: none; - transform: none; - } - -} - -@media screen and ( max-width: 782px ) { - .auto-fold #wpcontent { - position: relative; - margin-right: 0; - padding-right: 10px; - } - - .sticky-menu #adminmenuwrap { - position: relative; - z-index: auto; - top: 0; - } - - /* Sidebar Adjustments */ - .auto-fold #adminmenu, - .auto-fold #adminmenuback, - .auto-fold #adminmenuwrap { - position: absolute; - width: 190px; - z-index: 100; - } - - .auto-fold #adminmenuback, - .auto-fold #adminmenuwrap { - display: none; - } - - .auto-fold .wp-responsive-open #adminmenuback, - .auto-fold .wp-responsive-open #adminmenuwrap { - display: block; - } - - .auto-fold #adminmenu li.menu-top { - width: 100%; - } - - /* Resize the admin menu items to a comfortable touch size */ - .auto-fold #adminmenu li a { - font-size: 16px; - padding: 5px; - } - - .auto-fold #adminmenu li.menu-top .wp-submenu > li > a { - padding: 10px 20px 10px 10px; - } - - /* Restore the menu names */ - .auto-fold #adminmenu .wp-menu-name { - position: static; - margin-right: 35px; - } - - /* Switch the arrow side */ - .auto-fold ul#adminmenu a.wp-has-current-submenu:after, - .auto-fold ul#adminmenu > li.current > a.current:after { - border-width: 8px; - margin-top: -8px; - } - - .auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after { - display: none; - } - - /* Make the submenus appear correctly when tapped. */ - #adminmenu .wp-submenu { - position: relative; - display: none; - } - - .auto-fold #adminmenu .selected .wp-submenu, - .auto-fold #adminmenu .wp-menu-open .wp-submenu { - position: relative; - display: block; - top: 0; - right: -1px; - -webkit-box-shadow: none; - box-shadow: none; - } - - .auto-fold #adminmenu .selected .wp-submenu:after, - .auto-fold #adminmenu .wp-menu-open .wp-submenu:after { - display: none; - } - - .auto-fold #adminmenu .opensub .wp-submenu { - display: none; - } - - .auto-fold #adminmenu .selected .wp-submenu { - display: block; - } - - .auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after { - display: block; - } - - .auto-fold #adminmenu a.menu-top:focus + .wp-submenu, - .auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu { - position: relative; - right: -1px; - left: 0; - top: 0; - } - - /* Remove submenu headers and adjust sub meu*/ - #adminmenu .wp-submenu .wp-submenu-head { - display: none; - } - - /* Toolbar menu toggle */ - #wp-responsive-toggle { - position: fixed; - top: 5px; - right: 4px; - padding-left: 10px; - z-index: 99999; - border: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - - #wpadminbar #wp-admin-bar-menu-toggle a { - display: block; - padding: 0; - overflow: hidden; - outline: none; - text-decoration: none; - border: 1px solid transparent; - background: none; - height: 44px; - margin-right: -1px; - } - - .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #32373c; - } - - li#wp-admin-bar-menu-toggle { - display: block; - } - - #wpadminbar #wp-admin-bar-menu-toggle a:hover { - border: 1px solid transparent; - } - - #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - content: '\f228'; - display: inline-block; - float: right; - font: normal 40px/45px 'Dashicons'; - vertical-align: middle; - outline: none; - margin: 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - height: 44px; - width: 50px; - padding: 0; - border: none; - text-align: center; - text-decoration: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - - .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #00b9eb; - } -} - -/* Smartphone */ -@media screen and (max-width: 600px) { - #adminmenuwrap, - #adminmenuback { - display: none; - } - - .wp-responsive-open #adminmenuwrap, - .wp-responsive-open #adminmenuback { - display: block; - } - - .auto-fold #adminmenu { - top: 46px; - } -} diff --git a/wp-admin/css/admin-menu.css b/wp-admin/css/admin-menu.css deleted file mode 100644 index 27ffc0996d..0000000000 --- a/wp-admin/css/admin-menu.css +++ /dev/null @@ -1,944 +0,0 @@ -#adminmenuback, -#adminmenuwrap, -#adminmenu, -#adminmenu .wp-submenu { - width: 160px; - background-color: #23282d; -} - -#adminmenuback { - position: fixed; - top: 0; - bottom: -120px; - z-index: 1; /* positive z-index to avoid elastic scrolling woes in Safari */ -} - -#adminmenu { - clear: left; - margin: 12px 0; - padding: 0; - list-style: none; -} - -.folded #adminmenuback, -.folded #adminmenuwrap, -.folded #adminmenu, -.folded #adminmenu li.menu-top { - width: 36px; -} - -.icon16 { - height: 18px; - width: 18px; - padding: 6px 6px; - margin: -6px 0 0 -8px; - float: left; -} - -/* New Menu icons */ - -.icon16:before { - color: #999; - font: normal 20px/1 'dashicons'; - speak: none; - padding: 6px 0; - height: 34px; - width: 20px; - display: inline-block; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -.icon16.icon-dashboard:before { - content: '\f226'; -} - -.icon16.icon-post:before { - content: '\f109'; -} - -.icon16.icon-media:before { - content: '\f104'; -} - -.icon16.icon-links:before { - content: '\f103'; -} - -.icon16.icon-page:before { - content: '\f105'; -} - -.icon16.icon-comments:before { - content: '\f101'; - margin-top: 1px; -} - -.icon16.icon-appearance:before { - content: '\f100'; -} - -.icon16.icon-plugins:before { - content: '\f106'; -} - -.icon16.icon-users:before { - content: '\f110'; -} - -.icon16.icon-tools:before { - content: '\f107'; -} - -.icon16.icon-settings:before { - content: '\f108'; -} - -.icon16.icon-site:before { - content: '\f112' -} - -.icon16.icon-generic:before { - content: '\f111'; -} - -/* hide background-image for icons above */ -.icon16.icon-dashboard, -.menu-icon-dashboard div.wp-menu-image, -.icon16.icon-post, -.menu-icon-post div.wp-menu-image, -.icon16.icon-media, -.menu-icon-media div.wp-menu-image, -.icon16.icon-links, -.menu-icon-links div.wp-menu-image, -.icon16.icon-page, -.menu-icon-page div.wp-menu-image, -.icon16.icon-comments, -.menu-icon-comments div.wp-menu-image, -.icon16.icon-appearance, -.menu-icon-appearance div.wp-menu-image, -.icon16.icon-plugins, -.menu-icon-plugins div.wp-menu-image, -.icon16.icon-users, -.menu-icon-users div.wp-menu-image, -.icon16.icon-tools, -.menu-icon-tools div.wp-menu-image, -.icon16.icon-settings, -.menu-icon-settings div.wp-menu-image, -.icon16.icon-site, -.menu-icon-site div.wp-menu-image, -.icon16.icon-generic, -.menu-icon-generic div.wp-menu-image { - background-image: none !important; -} - -/*------------------------------------------------------------------------------ - 7.0 - Main Navigation (Left Menu) -------------------------------------------------------------------------------*/ - -#adminmenuwrap { - position: relative; - float: left; - z-index: 9990; -} - -/* side admin menu */ -#adminmenu * { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -#adminmenu li { - margin: 0; - padding: 0; - cursor: pointer; -} - -#adminmenu a { - display: block; - line-height: 18px; - padding: 2px 5px; - color: #eee; -} - -#adminmenu .wp-submenu a { - color: #b4b9be; - color: rgba(240,245,250,0.7); -} - -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-submenu a:focus { - background: none; -} - -#adminmenu a:hover, -#adminmenu li.menu-top > a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-submenu a:focus { - color: #00b9eb; -} - -#adminmenu li.menu-top { - border: none; - min-height: 34px; - position: relative; -} - -#adminmenu .wp-submenu { - list-style: none; - position: absolute; - top: -1000em; - left: 160px; - overflow: visible; - word-wrap: break-word; -} - -#adminmenu .wp-submenu, -.folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu { - padding: 7px 0 8px; - z-index: 9999; - background-color: #32373c; - -webkit-box-shadow: 0 3px 5px rgba(0,0,0,0.2); - box-shadow: 0 3px 5px rgba(0,0,0,0.2); -} - -.js #adminmenu .sub-open, -.js #adminmenu .opensub .wp-submenu, -#adminmenu a.menu-top:focus + .wp-submenu, -.no-js li.wp-has-submenu:hover .wp-submenu { - top: -1px; -} - -#adminmenu .wp-has-current-submenu .wp-submenu, -.no-js li.wp-has-current-submenu:hover .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu.sub-open, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu { - position: relative; - z-index: 3; - top: auto; - left: auto; - right: auto; - bottom: auto; - border: 0 none; - margin-top: 0; - -webkit-box-shadow: none; - box-shadow: none; - background-color: #32373c; -} - -/* ensure that wp-submenu's box shadow doesn't appear on top of the focused menu item's background. */ -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - position: relative; - background-color: #191e23; - color: #00b9eb; -} - -.folded #adminmenu li.menu-top:hover, -.folded #adminmenu li.opensub > a.menu-top, -.folded #adminmenu li > a.menu-top:focus { - z-index: 10000; -} - -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.current a.menu-top, -.folded #adminmenu li.wp-has-current-submenu, -.folded #adminmenu li.current.menu-top, -#adminmenu .wp-menu-arrow, -#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head, -#adminmenu .wp-menu-arrow div { - background: #0073aa; - color: #fff; -} - -.folded #adminmenu .wp-submenu.sub-open, -.folded #adminmenu .opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, -.folded #adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu a.menu-top:focus + .wp-submenu, -.folded #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu, -.no-js.folded #adminmenu .wp-has-submenu:hover .wp-submenu { - top: 0; - left: 36px; -} - -.folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu { - position: absolute; - top: -1000em; -} - -#adminmenu .wp-not-current-submenu .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu { - min-width: 160px; - width: auto; -} - -#adminmenu .wp-submenu a { - font-size: 13px; - line-height: 1.2; - margin: 0; - padding: 6px 0; -} - -#adminmenu .wp-submenu li.current, -#adminmenu .wp-submenu li.current a, -#adminmenu .opensub .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus { - color: #fff; -} - -#adminmenu .wp-not-current-submenu li > a, -.folded #adminmenu .wp-has-current-submenu li > a { - padding-right: 16px; - padding-left: 14px; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -#adminmenu .wp-has-current-submenu ul > li > a, -.folded #adminmenu li.menu-top .wp-submenu > li > a { - padding: 6px 12px; -} - -#adminmenu a.menu-top, -#adminmenu .wp-submenu-head { - font-size: 14px; - font-weight: 400; - line-height: 18px; - padding: 0; -} - -#adminmenu .wp-submenu-head { - display: none; -} - -.folded #adminmenu .wp-menu-name { - position: absolute; - left: -999px; -} - -.folded #adminmenu .wp-submenu-head { - display: block; -} - -#adminmenu .wp-submenu li { - padding: 0; - margin: 0; - overflow: hidden; -} - -#adminmenu .wp-menu-image img { - padding: 9px 0 0 0; - opacity: 0.6; - filter: alpha(opacity=60); -} - -#adminmenu div.wp-menu-name { - padding: 8px 0; -} - -#adminmenu div.wp-menu-image { - float: left; - width: 36px; - height: 34px; - margin: 0; - text-align: center; -} - -#adminmenu div.wp-menu-image.svg { - background-repeat: no-repeat; - background-position: center; - -webkit-background-size: 20px auto; - background-size: 20px auto; -} - -div.wp-menu-image:before { - color: #a0a5aa; - color: rgba(240,245,250,0.6); - padding: 7px 0; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -#adminmenu div.wp-menu-image:before { - color: #a0a5aa; - color: rgba(240,245,250,0.6); -} - -#adminmenu li.wp-has-current-submenu:hover div.wp-menu-image:before, -#adminmenu .wp-has-current-submenu div.wp-menu-image:before, -#adminmenu .current div.wp-menu-image:before, -#adminmenu a.wp-has-current-submenu:hover div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before { - color: #fff; -} - -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before { - color: #00b9eb; -} - -/* IE8 doesn't redraw the pseudo elements unless you make a change to the content, this restore the initial color after hover */ -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #a0a5aa; -} - -.folded #adminmenu div.wp-menu-image { - width: 35px; - height: 30px; - position: absolute; - z-index: 25; -} - -.folded #adminmenu a.menu-top { - height: 34px; -} - -/* No @font-face support */ -.no-font-face #adminmenu .wp-menu-image { - display: none; -} - -.no-font-face #adminmenu div.wp-menu-name { - padding: 8px 12px; -} - -.no-font-face.auto-fold #adminmenu .wp-menu-name { - margin-left: 0; -} -/* End no @font-face support */ - -/* Sticky admin menu */ -.sticky-menu #adminmenuwrap { - position: fixed; -} - -/* A new arrow */ - -.wp-menu-arrow { - display: none !important; -} - -ul#adminmenu a.wp-has-current-submenu { - position: relative; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - right: 0; - border: solid 8px transparent; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - border-right-color: #f1f1f1; - top: 50%; - margin-top: -8px; -} - -.folded ul#adminmenu li:hover a.wp-has-current-submenu:after { - display: none; -} - -.folded ul#adminmenu a.wp-has-current-submenu:after, -.folded ul#adminmenu > li a.current:after { - border-width: 4px; - margin-top: -4px; -} - -/* flyout menu arrow */ -#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after { - right: 0; - border: solid transparent; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - border-width: 8px; - top: 10px; - z-index: 10000; -} - -.folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after { - border-width: 4px; - margin-top: -4px; - top: 18px; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-right-color: #32373c; -} - -#adminmenu li.menu-top:hover .wp-menu-image img, -#adminmenu li.wp-has-current-submenu .wp-menu-image img { - opacity: 1; - filter: alpha(opacity=100); -} - -#adminmenu li.wp-menu-separator { - height: 5px; - padding: 0; - margin: 0 0 6px 0; - cursor: inherit; -} - -/* @todo: is this even needed given that it's nested beneath the above li.wp-menu-separator? */ -#adminmenu div.separator { - height: 2px; - padding: 0; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #fff; - font-weight: 400; - font-size: 14px; - padding: 8px 4px 8px 11px; - margin: -7px 0px 4px; -} - -#adminmenu li.current, -.folded #adminmenu li.wp-menu-open { - border: 0 none; -} - -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - display: inline-block; - background-color: #d54e21; - color: #fff; - font-size: 9px; - line-height: 17px; - font-weight: 600; - margin: 1px 0 0 2px; - vertical-align: top; - -webkit-border-radius: 10px; - border-radius: 10px; - z-index: 26; -} - -#adminmenu li .awaiting-mod span, -#adminmenu li span.update-plugins span { - display: block; - padding: 0 6px; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins { - background-color: #00b9eb; - color: #fff; -} - -#adminmenu li span.count-0 { - display: none; -} - -#collapse-menu { - font-size: 13px; - line-height: 34px; - margin-top: 10px; - color: #a0a5aa; - color: rgba(240,245,250,0.6); - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -#collapse-menu:hover, -#collapse-menu:hover #collapse-button div:after { - color: #00b9eb; -} - -.folded #collapse-menu span { - display: none; -} - -#collapse-button, -#collapse-button div { - width: 15px; - height: 15px; -} - -#collapse-button { - float: left; - height: 15px; - margin: 10px 8px 10px 11px; - width: 15px; - -webkit-border-radius: 10px; - border-radius: 10px; -} - -#wpwrap #collapse-button div { - padding: 0; -} - -#collapse-button div:after { - content: '\f148'; - display: block; - line-height: 15px; - left: -3px; - top: -3px; - color: #a0a5aa; - color: rgba(240,245,250,0.6); - font: normal 20px/1 'dashicons' !important; - speak: none; - margin: 0 auto; - padding: 0 !important; - position: relative; - text-align: center; - width: 20px; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -/* rtl:ignore */ -.folded #collapse-button div:after, -.rtl #collapse-button div:after { - -webkit-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); -} - -.rtl.folded #collapse-button div:after { - -webkit-transform: none; - -ms-transform: none; - transform: none; -} - -/** - * Toolbar menu toggle - */ -li#wp-admin-bar-menu-toggle { - display: none; -} - -/* Hide-if-customize for items we can't add classes to */ -.customize-support #menu-appearance a[href="themes.php?page=custom-header"], -.customize-support #menu-appearance a[href="themes.php?page=custom-background"] { - display: none; -} - -/* Auto-folding of the admin menu */ -@media only screen and (max-width: 960px) { - .auto-fold #wpcontent, - .auto-fold #wpfooter { - margin-left: 36px; - } - - .auto-fold #adminmenuback, - .auto-fold #adminmenuwrap, - .auto-fold #adminmenu, - .auto-fold #adminmenu li.menu-top { - width: 36px; - } - - .auto-fold #adminmenu .wp-submenu.sub-open, - .auto-fold #adminmenu .opensub .wp-submenu, - .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, - .auto-fold #adminmenu .wp-has-current-submenu.opensub .wp-submenu, - .auto-fold #adminmenu a.menu-top:focus + .wp-submenu, - .auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu { - top: 0px; - left: 36px; - } - - .auto-fold #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, - .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { - position: absolute; - top: -1000em; - margin-right: -1px; - padding: 7px 0 8px; - z-index: 9999; - } - - .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { - min-width: 150px; - width: auto; - } - - .auto-fold #adminmenu .wp-has-current-submenu li > a { - padding-right: 16px; - padding-left: 14px; - } - - - .auto-fold #adminmenu li.menu-top .wp-submenu > li > a { - padding-left: 12px; - } - - .auto-fold #adminmenu .wp-menu-name { - position: absolute; - left: -999px; - } - - .auto-fold #adminmenu .wp-submenu-head { - display: block; - } - - .auto-fold #adminmenu div.wp-menu-image { - height: 30px; - width: 34px; - position: absolute; - z-index: 25; - } - - .auto-fold #adminmenu a.menu-top { - height: 34px; - } - - .auto-fold #adminmenu li.wp-menu-open { - border: 0 none; - } - - .auto-fold #adminmenu .wp-has-current-submenu.menu-top-last { - margin-bottom: 0; - } - - .auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after { - display: none; - } - - .auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after { - border-width: 4px; - margin-top: -4px; - top: 16px; - } - - .auto-fold ul#adminmenu a.wp-has-current-submenu:after, - .auto-fold ul#adminmenu > li a.current:after { - border-width: 4px; - margin-top: -4px; - } - - .auto-fold #adminmenu li.menu-top:hover, - .auto-fold #adminmenu li.opensub > a.menu-top, - .auto-fold #adminmenu li > a.menu-top:focus { - z-index: 10000; - } - - .auto-fold #collapse-menu span { - display: none; - } - - .auto-fold #collapse-button div { - background: none; - } - - /* rtl:ignore */ - .auto-fold #collapse-button div:after { - -webkit-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); - } - - .rtl.auto-fold #collapse-button div:after { - -webkit-transform: none; - -ms-transform: none; - transform: none; - } - -} - -@media screen and ( max-width: 782px ) { - .auto-fold #wpcontent { - position: relative; - margin-left: 0; - padding-left: 10px; - } - - .sticky-menu #adminmenuwrap { - position: relative; - z-index: auto; - top: 0; - } - - /* Sidebar Adjustments */ - .auto-fold #adminmenu, - .auto-fold #adminmenuback, - .auto-fold #adminmenuwrap { - position: absolute; - width: 190px; - z-index: 100; - } - - .auto-fold #adminmenuback, - .auto-fold #adminmenuwrap { - display: none; - } - - .auto-fold .wp-responsive-open #adminmenuback, - .auto-fold .wp-responsive-open #adminmenuwrap { - display: block; - } - - .auto-fold #adminmenu li.menu-top { - width: 100%; - } - - /* Resize the admin menu items to a comfortable touch size */ - .auto-fold #adminmenu li a { - font-size: 16px; - padding: 5px; - } - - .auto-fold #adminmenu li.menu-top .wp-submenu > li > a { - padding: 10px 10px 10px 20px; - } - - /* Restore the menu names */ - .auto-fold #adminmenu .wp-menu-name { - position: static; - margin-left: 35px; - } - - /* Switch the arrow side */ - .auto-fold ul#adminmenu a.wp-has-current-submenu:after, - .auto-fold ul#adminmenu > li.current > a.current:after { - border-width: 8px; - margin-top: -8px; - } - - .auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after { - display: none; - } - - /* Make the submenus appear correctly when tapped. */ - #adminmenu .wp-submenu { - position: relative; - display: none; - } - - .auto-fold #adminmenu .selected .wp-submenu, - .auto-fold #adminmenu .wp-menu-open .wp-submenu { - position: relative; - display: block; - top: 0; - left: -1px; - -webkit-box-shadow: none; - box-shadow: none; - } - - .auto-fold #adminmenu .selected .wp-submenu:after, - .auto-fold #adminmenu .wp-menu-open .wp-submenu:after { - display: none; - } - - .auto-fold #adminmenu .opensub .wp-submenu { - display: none; - } - - .auto-fold #adminmenu .selected .wp-submenu { - display: block; - } - - .auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after { - display: block; - } - - .auto-fold #adminmenu a.menu-top:focus + .wp-submenu, - .auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu { - position: relative; - left: -1px; - right: 0; - top: 0; - } - - /* Remove submenu headers and adjust sub meu*/ - #adminmenu .wp-submenu .wp-submenu-head { - display: none; - } - - /* Toolbar menu toggle */ - #wp-responsive-toggle { - position: fixed; - top: 5px; - left: 4px; - padding-right: 10px; - z-index: 99999; - border: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - - #wpadminbar #wp-admin-bar-menu-toggle a { - display: block; - padding: 0; - overflow: hidden; - outline: none; - text-decoration: none; - border: 1px solid transparent; - background: none; - height: 44px; - margin-left: -1px; - } - - .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #32373c; - } - - li#wp-admin-bar-menu-toggle { - display: block; - } - - #wpadminbar #wp-admin-bar-menu-toggle a:hover { - border: 1px solid transparent; - } - - #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - content: '\f228'; - display: inline-block; - float: left; - font: normal 40px/45px 'Dashicons'; - vertical-align: middle; - outline: none; - margin: 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - height: 44px; - width: 50px; - padding: 0; - border: none; - text-align: center; - text-decoration: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - - .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #00b9eb; - } -} - -/* Smartphone */ -@media screen and (max-width: 600px) { - #adminmenuwrap, - #adminmenuback { - display: none; - } - - .wp-responsive-open #adminmenuwrap, - .wp-responsive-open #adminmenuback { - display: block; - } - - .auto-fold #adminmenu { - top: 46px; - } -} diff --git a/wp-admin/css/color-picker-rtl.css b/wp-admin/css/color-picker-rtl.css deleted file mode 100644 index 954376ef5e..0000000000 --- a/wp-admin/css/color-picker-rtl.css +++ /dev/null @@ -1,127 +0,0 @@ -.wp-color-picker { - width: 80px; -} - -.wp-picker-container .hidden { - display: none; -} - -.wp-color-result { - background-color: #f7f7f7; - border: 1px solid #ccc; - -webkit-border-radius: 3px; - border-radius: 3px; - cursor: pointer; - display: inline-block; - height: 22px; - margin: 0 0px 6px 6px; - position: relative; - top: 1px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - vertical-align: bottom; - display: inline-block; - padding-right: 30px; - -webkit-box-shadow: 0 1px 0 rgba(0,0,0,.08); - box-shadow: 0 1px 0 rgba(0,0,0,.08); -} - -.wp-color-result:after { - background: #f7f7f7; - -webkit-border-radius: 2px 0 0 2px; - border-radius: 2px 0 0 2px; - border-right: 1px solid #ccc; - color: #555; - content: attr( title ); - display: block; - font-size: 11px; - line-height: 22px; - padding: 0 6px; - position: relative; - left: 0; - text-align: center; - top: 0; - -webkit-box-shadow: inset 0 1px 0 #fff; - box-shadow: inset 0 1px 0 #fff; -} - -.wp-color-result:hover, -.wp-color-result:focus { - background: #fafafa; - border-color: #999; - color: #23282d; -} - -.wp-color-result:hover:after, -.wp-color-result:focus:after { - color: #23282d; - border-color: #a0a5aa; - border-right: 1px solid #999; -} - -.wp-color-result { - top: 0; -} - -.wp-color-result.wp-picker-open:after { - content: attr( data-current ); -} - -.wp-picker-container, .wp-picker-container:active { - display: inline-block; - outline: 0; -} - -.wp-color-result:focus { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); -} - -.wp-picker-open + .wp-picker-input-wrap { - display: inline-block; - vertical-align: top; -} - -.wp-picker-container .button { - margin-right: 6px; -} - -.wp-picker-container .iris-square-slider .ui-slider-handle:focus { - background-color: #555 -} - -.wp-picker-container .iris-picker { - -webkit-border-radius: 0; - border-radius: 0; - border-color: #dfdfdf; - margin-top: 6px; -} - -.wp-picker-container input[type="text"].wp-color-picker { - width: 65px; - font-size: 12px; - font-family: monospace; - text-align: center; - line-height: 16px; - margin: 0; -} - -.wp-picker-container input[type="text"].wp-color-picker:focus::-webkit-input-placeholder { - color: transparent; -} - -.wp-picker-container input[type="text"].wp-color-picker:-moz-placeholder { - color: #999; -} - -.wp-picker-container input[type="text"].iris-error { - background-color: #ffebe8; - border-color: #c00; - color: #000; -} diff --git a/wp-admin/css/color-picker-rtl.min.css b/wp-admin/css/color-picker-rtl.min.css deleted file mode 100644 index a08ffc945f..0000000000 --- a/wp-admin/css/color-picker-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -.wp-color-picker{width:80px}.wp-picker-container .hidden{display:none}.wp-color-result{background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;height:22px;margin:0 0 6px 6px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;display:inline-block;padding-right:30px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.08);box-shadow:0 1px 0 rgba(0,0,0,.08);top:0}.wp-color-result:after{background:#f7f7f7;-webkit-border-radius:2px 0 0 2px;border-radius:2px 0 0 2px;border-right:1px solid #ccc;color:#555;content:attr(title);display:block;font-size:11px;line-height:22px;padding:0 6px;position:relative;left:0;text-align:center;top:0;-webkit-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff}.wp-color-result:focus,.wp-color-result:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#23282d;border-color:#a0a5aa;border-right:1px solid #999}.wp-color-result.wp-picker-open:after{content:attr(data-current)}.wp-picker-container,.wp-picker-container:active{display:inline-block;outline:0}.wp-color-result:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-container .button{margin-right:6px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{-webkit-border-radius:0;border-radius:0;border-color:#dfdfdf;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:65px;font-size:12px;font-family:monospace;text-align:center;line-height:16px;margin:0}.wp-picker-container input[type=text].wp-color-picker:focus::-webkit-input-placeholder{color:transparent}.wp-picker-container input[type=text].wp-color-picker:-moz-placeholder{color:#999}.wp-picker-container input[type=text].iris-error{background-color:#ffebe8;border-color:#c00;color:#000} \ No newline at end of file diff --git a/wp-admin/css/color-picker.css b/wp-admin/css/color-picker.css deleted file mode 100644 index 24873a035c..0000000000 --- a/wp-admin/css/color-picker.css +++ /dev/null @@ -1,127 +0,0 @@ -.wp-color-picker { - width: 80px; -} - -.wp-picker-container .hidden { - display: none; -} - -.wp-color-result { - background-color: #f7f7f7; - border: 1px solid #ccc; - -webkit-border-radius: 3px; - border-radius: 3px; - cursor: pointer; - display: inline-block; - height: 22px; - margin: 0 6px 6px 0px; - position: relative; - top: 1px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - vertical-align: bottom; - display: inline-block; - padding-left: 30px; - -webkit-box-shadow: 0 1px 0 rgba(0,0,0,.08); - box-shadow: 0 1px 0 rgba(0,0,0,.08); -} - -.wp-color-result:after { - background: #f7f7f7; - -webkit-border-radius: 0 2px 2px 0; - border-radius: 0 2px 2px 0; - border-left: 1px solid #ccc; - color: #555; - content: attr( title ); - display: block; - font-size: 11px; - line-height: 22px; - padding: 0 6px; - position: relative; - right: 0; - text-align: center; - top: 0; - -webkit-box-shadow: inset 0 1px 0 #fff; - box-shadow: inset 0 1px 0 #fff; -} - -.wp-color-result:hover, -.wp-color-result:focus { - background: #fafafa; - border-color: #999; - color: #23282d; -} - -.wp-color-result:hover:after, -.wp-color-result:focus:after { - color: #23282d; - border-color: #a0a5aa; - border-left: 1px solid #999; -} - -.wp-color-result { - top: 0; -} - -.wp-color-result.wp-picker-open:after { - content: attr( data-current ); -} - -.wp-picker-container, .wp-picker-container:active { - display: inline-block; - outline: 0; -} - -.wp-color-result:focus { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); -} - -.wp-picker-open + .wp-picker-input-wrap { - display: inline-block; - vertical-align: top; -} - -.wp-picker-container .button { - margin-left: 6px; -} - -.wp-picker-container .iris-square-slider .ui-slider-handle:focus { - background-color: #555 -} - -.wp-picker-container .iris-picker { - -webkit-border-radius: 0; - border-radius: 0; - border-color: #dfdfdf; - margin-top: 6px; -} - -.wp-picker-container input[type="text"].wp-color-picker { - width: 65px; - font-size: 12px; - font-family: monospace; - text-align: center; - line-height: 16px; - margin: 0; -} - -.wp-picker-container input[type="text"].wp-color-picker:focus::-webkit-input-placeholder { - color: transparent; -} - -.wp-picker-container input[type="text"].wp-color-picker:-moz-placeholder { - color: #999; -} - -.wp-picker-container input[type="text"].iris-error { - background-color: #ffebe8; - border-color: #c00; - color: #000; -} diff --git a/wp-admin/css/color-picker.min.css b/wp-admin/css/color-picker.min.css deleted file mode 100644 index f3c178d38f..0000000000 --- a/wp-admin/css/color-picker.min.css +++ /dev/null @@ -1 +0,0 @@ -.wp-color-picker{width:80px}.wp-picker-container .hidden{display:none}.wp-color-result{background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;height:22px;margin:0 6px 6px 0;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;display:inline-block;padding-left:30px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.08);box-shadow:0 1px 0 rgba(0,0,0,.08);top:0}.wp-color-result:after{background:#f7f7f7;-webkit-border-radius:0 2px 2px 0;border-radius:0 2px 2px 0;border-left:1px solid #ccc;color:#555;content:attr(title);display:block;font-size:11px;line-height:22px;padding:0 6px;position:relative;right:0;text-align:center;top:0;-webkit-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff}.wp-color-result:focus,.wp-color-result:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#23282d;border-color:#a0a5aa;border-left:1px solid #999}.wp-color-result.wp-picker-open:after{content:attr(data-current)}.wp-picker-container,.wp-picker-container:active{display:inline-block;outline:0}.wp-color-result:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-container .button{margin-left:6px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{-webkit-border-radius:0;border-radius:0;border-color:#dfdfdf;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:65px;font-size:12px;font-family:monospace;text-align:center;line-height:16px;margin:0}.wp-picker-container input[type=text].wp-color-picker:focus::-webkit-input-placeholder{color:transparent}.wp-picker-container input[type=text].wp-color-picker:-moz-placeholder{color:#999}.wp-picker-container input[type=text].iris-error{background-color:#ffebe8;border-color:#c00;color:#000} \ No newline at end of file diff --git a/wp-admin/css/colors/_admin.scss b/wp-admin/css/colors/_admin.scss deleted file mode 100644 index 6e396428f6..0000000000 --- a/wp-admin/css/colors/_admin.scss +++ /dev/null @@ -1,525 +0,0 @@ - -@import 'variables'; -@import 'mixins'; - - -html { - background: $body-background; -} - - -/* Links */ - -a { - color: $link; - - &:hover, - &:active, - &:focus { - color: $link-focus; - } -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: $link-focus; -} - - -/* Forms */ - -input[type=checkbox]:checked:before { - color: $form-checked; -} - -input[type=radio]:checked:before { - background: $form-checked; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: $link-focus; -} - - -/* Core UI */ - -.wp-core-ui { - .button-primary { - @include button( $button-color ); - } - - .wp-ui-primary { - color: $text-color; - background-color: $base-color; - } - .wp-ui-text-primary { - color: $base-color; - } - - .wp-ui-highlight { - color: $menu-highlight-text; - background-color: $menu-highlight-background; - } - .wp-ui-text-highlight { - color: $menu-highlight-background; - } - - .wp-ui-notification { - color: $menu-bubble-text; - background-color: $menu-bubble-background; - } - .wp-ui-text-notification { - color: $menu-bubble-background; - } - - .wp-ui-text-icon { - color: $menu-icon; - } -} - - -/* List tables */ - -.wrap .add-new-h2:hover, /* deprecated */ -.wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: $menu-text; - background-color: $menu-background; -} - -.view-switch a.current:before { - color: $menu-background; -} - -.view-switch a:hover:before { - color: $menu-bubble-background; -} - - -/* Admin Menu */ - -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: $menu-background; -} - -#adminmenu a { - color: $menu-text; -} - -#adminmenu div.wp-menu-image:before { - color: $menu-icon; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: $menu-highlight-text; - background-color: $menu-highlight-background; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: $menu-highlight-icon; -} - - -/* Active tabs use a bottom border color that matches the page background color. */ - -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: $body-background; - border-bottom-color: $body-background; -} - - -/* Admin Menu: submenu */ - -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: $menu-submenu-background; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-right-color: $menu-submenu-background; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: $menu-submenu-text; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: $menu-submenu-text; - - &:focus, &:hover { - color: $menu-submenu-focus-text; - } -} - - -/* Admin Menu: current */ - -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: $menu-submenu-current-text; - - &:hover, &:focus { - color: $menu-submenu-focus-text; - } -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-right-color: $body-background; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: $menu-current-text; - background: $menu-current-background; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: $menu-current-icon; -} - - -/* Admin Menu: bubble */ - -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: $menu-bubble-text; - background: $menu-bubble-background; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: $menu-bubble-current-text; - background: $menu-bubble-current-background; -} - - -/* Admin Menu: collapse button */ - -#collapse-menu { - color: $menu-collapse-text; -} - -#collapse-menu:hover { - color: $menu-collapse-focus-text; -} - -#collapse-button div:after { - color: $menu-collapse-icon; -} - -#collapse-menu:hover #collapse-button div:after { - color: $menu-collapse-focus-icon; -} - - -/* Admin Bar */ - -#wpadminbar { - color: $menu-text; - background: $menu-background; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: $menu-text; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: $menu-icon; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: $menu-submenu-focus-text; - background: $menu-submenu-background; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: $menu-submenu-focus-text; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: $menu-highlight-icon; -} - - -/* Admin Bar: submenu */ - -#wpadminbar .menupop .ab-sub-wrapper { - background: $menu-submenu-background; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: $menu-submenu-background-alt; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: $menu-submenu-text; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: $menu-icon; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: $menu-submenu-focus-text; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: $menu-submenu-focus-text; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: $menu-icon; -} - - -/* Admin Bar: search */ - -#wpadminbar #adminbarsearch:before { - color: $menu-icon; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: $menu-text; - background: $adminbar-input-background; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { color: $menu-text; opacity: 0.7; } -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { color: $menu-text; opacity: 0.7; } -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { color: $menu-text; opacity: 0.7; } -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { color: $menu-text; opacity: 0.7; } - - -/* Admin Bar: my account */ - -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: $adminbar-avatar-frame; - background-color: $adminbar-avatar-frame; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: $menu-text; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: $menu-submenu-focus-text; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: $menu-submenu-text; -} - - -/* Pointers */ - -.wp-pointer .wp-pointer-content h3 { - background-color: $highlight-color; - border-color: darken( $highlight-color, 5% ); -} - -.wp-pointer .wp-pointer-content h3:before { - color: $highlight-color; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: $highlight-color; -} - - -/* Media */ - -.media-item .bar, -.media-progress-bar div { - background-color: $highlight-color; -} - -.details.attachment { - box-shadow: - inset 0 0 0 3px #fff, - inset 0 0 0 7px $highlight-color; -} - -.attachment.details .check { - background-color: $highlight-color; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px $highlight-color; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: - 0px 0px 0px 1px #fff, - 0px 0px 0px 3px $highlight-color; - box-shadow: - 0px 0px 0px 1px #fff, - 0px 0px 0px 3px $highlight-color; -} - - -/* Themes */ - -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: $highlight-color; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: $highlight-color; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: $menu-background; -} - -body.more-filters-opened .more-filters { - color: $menu-text; - background-color: $menu-background; -} - -body.more-filters-opened .more-filters:before { - color: $menu-text; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: $menu-highlight-background; - color: $menu-highlight-text; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: $menu-highlight-text; -} - -/* Widgets */ - -.widgets-chooser li.widgets-chooser-selected { - background-color: $menu-highlight-background; - color: $menu-highlight-text; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: $menu-highlight-text; -} - -/* Customize */ - -#customize-theme-controls .widget-area-select .selected { - background-color: $menu-highlight-background; - color: $menu-highlight-text; -} - -/* jQuery UI Slider */ - -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: $button-color; - border-color: darken( $button-color, 10% ); - box-shadow: inset 0 1px 0 lighten( $button-color, 15% ), 0 1px 0 rgba(0,0,0,.15); -} - -/* Responsive Component */ - -div#wp-responsive-toggle a:before { - color: $menu-icon; -} - -.wp-responsive-open div#wp-responsive-toggle a { - // ToDo: make inset border - border-color: transparent; - background: $menu-highlight-background; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: $menu-submenu-background; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: $menu-icon; -} - -/* TinyMCE */ - -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: $highlight-color; -} diff --git a/wp-admin/css/colors/_mixins.scss b/wp-admin/css/colors/_mixins.scss deleted file mode 100644 index 9c196e0f3b..0000000000 --- a/wp-admin/css/colors/_mixins.scss +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -@mixin button( $button-color, $text-color: white ) { - background: $button-color; - border-color: darken( $button-color, 10% ); - color: $text-color; - box-shadow: inset 0 1px 0 lighten( $button-color, 15% ), 0 1px 0 rgba(0,0,0,.15); - - &:hover, - &:focus { - background: darken( $button-color, 5% ); - border-color: darken( $button-color, 15% ); - color: $text-color; - box-shadow: inset 0 1px 0 lighten( $button-color, 10% ); - } - - &:focus { - box-shadow: inset 0 1px 0 lighten( $button-color, 10% ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, .8 ); - } - - &:active { - background: darken( $button-color, 10% ); - border-color: darken( $button-color, 15% ); - color: $text-color; - box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, .8 ); - } - - &[disabled], - &:disabled, - &.button-primary-disabled, - &.disabled { - color: hsl( hue( $button-color ), 10%, 80% ) !important; - background: darken( $button-color, 8% ) !important; - border-color: darken( $button-color, 15% ) !important; - text-shadow: none !important; - } -} diff --git a/wp-admin/css/colors/_variables.scss b/wp-admin/css/colors/_variables.scss deleted file mode 100644 index c203f1b2d5..0000000000 --- a/wp-admin/css/colors/_variables.scss +++ /dev/null @@ -1,58 +0,0 @@ -// assign default value to all undefined variables - - -// core variables - -$text-color: #fff !default; -$base-color: #23282d !default; -$icon-color: hsl( hue( $base-color ), 7%, 95% ) !default; -$highlight-color: #0073aa !default; -$notification-color: #d54e21 !default; - - -// global - -$body-background: #f1f1f1 !default; - -$link: #0073aa !default; -$link-focus: lighten( $link, 10% ) !default; - -$button-color: $highlight-color !default; -$form-checked: $highlight-color !default; - - -// admin menu & admin-bar - -$menu-text: $text-color !default; -$menu-icon: $icon-color !default; -$menu-background: $base-color !default; - -$menu-highlight-text: $text-color !default; -$menu-highlight-icon: $text-color !default; -$menu-highlight-background: $highlight-color !default; - -$menu-current-text: $menu-highlight-text !default; -$menu-current-icon: $menu-highlight-icon !default; -$menu-current-background: $menu-highlight-background !default; - -$menu-submenu-text: mix( $base-color, $text-color, 30% ) !default; -$menu-submenu-background: darken( $base-color, 7% ) !default; -$menu-submenu-background-alt: desaturate( lighten( $menu-background, 7% ), 7% ) !default; - -$menu-submenu-focus-text: $highlight-color !default; -$menu-submenu-current-text: $text-color !default; - -$menu-bubble-text: $text-color !default; -$menu-bubble-background: $notification-color !default; -$menu-bubble-current-text: $text-color !default; -$menu-bubble-current-background: $menu-submenu-background !default; - -$menu-collapse-text: $menu-icon !default; -$menu-collapse-icon: $menu-icon !default; -$menu-collapse-focus-text: $text-color !default; -$menu-collapse-focus-icon: $menu-highlight-icon !default; - -$adminbar-avatar-frame: lighten( $menu-background, 7% ) !default; -$adminbar-input-background: lighten( $menu-background, 7% ) !default; - -$menu-customizer-text: mix( $base-color, $text-color, 40% ) !default; diff --git a/wp-admin/css/colors/blue/colors-rtl.css b/wp-admin/css/colors/blue/colors-rtl.css deleted file mode 100644 index 97a77a0ba4..0000000000 --- a/wp-admin/css/colors/blue/colors-rtl.css +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f1f1f1; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #096484; -} - -input[type=radio]:checked:before { - background: #096484; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #e1a948; - border-color: #d39323; - color: white; - -webkit-box-shadow: inset 0 1px 0 #ecc88a, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #ecc88a, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #dd9f32; - border-color: #bd831f; - color: white; - -webkit-box-shadow: inset 0 1px 0 #e8be74; - box-shadow: inset 0 1px 0 #e8be74; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #e8be74, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #e8be74, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #d39323; - border-color: #bd831f; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #d1cdc7 !important; - background: #db9925 !important; - border-color: #bd831f !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #fff; - background-color: #52accc; -} - -.wp-core-ui .wp-ui-text-primary { - color: #52accc; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #096484; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #096484; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #e1a948; -} - -.wp-core-ui .wp-ui-text-notification { - color: #e1a948; -} - -.wp-core-ui .wp-ui-text-icon { - color: #e5f8ff; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #fff; - background-color: #52accc; -} - -.view-switch a.current:before { - color: #52accc; -} - -.view-switch a:hover:before { - color: #e1a948; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #52accc; -} - -#adminmenu a { - color: #fff; -} - -#adminmenu div.wp-menu-image:before { - color: #e5f8ff; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #096484; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #fff; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f1f1f1; - border-bottom-color: #f1f1f1; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #4796b3; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-left-color: #4796b3; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #e2ecf1; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #e2ecf1; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #fff; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #fff; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #fff; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-left-color: #f1f1f1; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #096484; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #fff; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #e1a948; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #fff; - background: #4796b3; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #e5f8ff; -} - -#collapse-menu:hover { - color: #fff; -} - -#collapse-button div:after { - color: #e5f8ff; -} - -#collapse-menu:hover #collapse-button div:after { - color: #fff; -} - -/* Admin Bar */ -#wpadminbar { - color: #fff; - background: #52accc; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #fff; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #e5f8ff; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #fff; - background: #4796b3; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #fff; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #fff; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #4796b3; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #74b6ce; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #e2ecf1; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #e5f8ff; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #fff; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #fff; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #e5f8ff; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #e5f8ff; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #fff; - background: #6eb9d4; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #fff; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #6eb9d4; - background-color: #6eb9d4; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #e2ecf1; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #096484; - border-color: #07526c; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #096484; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #096484; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #096484; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #096484; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #096484; -} - -.attachment.details .check { - background-color: #096484; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #096484; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #096484; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #096484; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #096484; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #096484; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #096484; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #52accc; -} - -body.more-filters-opened .more-filters { - color: #fff; - background-color: #52accc; -} - -body.more-filters-opened .more-filters:before { - color: #fff; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #096484; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #096484; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #096484; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #e1a948; - border-color: #d39323; - -webkit-box-shadow: inset 0 1px 0 #ecc88a, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #ecc88a, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #e5f8ff; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #096484; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #4796b3; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #e5f8ff; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #096484; -} diff --git a/wp-admin/css/colors/blue/colors-rtl.min.css b/wp-admin/css/colors/blue/colors-rtl.min.css deleted file mode 100644 index 56d9e32040..0000000000 --- a/wp-admin/css/colors/blue/colors-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f1f1f1}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#096484}input[type=radio]:checked:before{background:#096484}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#e1a948;border-color:#d39323;color:#fff;-webkit-box-shadow:inset 0 1px 0 #ecc88a,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #ecc88a,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#dd9f32;border-color:#bd831f;color:#fff;-webkit-box-shadow:inset 0 1px 0 #e8be74;box-shadow:inset 0 1px 0 #e8be74}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #e8be74,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #e8be74,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#d39323;border-color:#bd831f;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#d1cdc7!important;background:#db9925!important;border-color:#bd831f!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#52accc}.wp-core-ui .wp-ui-text-primary{color:#52accc}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#096484}.wp-core-ui .wp-ui-text-highlight{color:#096484}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#e1a948}.wp-core-ui .wp-ui-text-notification{color:#e1a948}.wp-core-ui .wp-ui-text-icon{color:#e5f8ff}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:#52accc}.view-switch a.current:before{color:#52accc}.view-switch a:hover:before{color:#e1a948}#adminmenu,#adminmenuback,#adminmenuwrap{background:#52accc}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#e5f8ff}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#096484}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#4796b3}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-left-color:#4796b3}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#e2ecf1}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#fff}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f1f1f1}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#096484}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#e1a948}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#4796b3}#collapse-button div:after,#collapse-menu{color:#e5f8ff}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar{color:#fff;background:#52accc}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#e5f8ff}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#fff;background:#4796b3}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before,#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#4796b3}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#74b6ce}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#e2ecf1}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#e5f8ff}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#fff}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#e5f8ff}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:#6eb9d4}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#fff;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#6eb9d4;background-color:#6eb9d4}#wpadminbar #wp-admin-bar-user-info .display-name,#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info .username{color:#e2ecf1}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#096484}.wp-pointer .wp-pointer-content h3{background-color:#096484;border-color:#07526c}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#096484}.media-item .bar,.media-progress-bar div{background-color:#096484}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #096484;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #096484}.attachment.details .check{background-color:#096484;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #096484;box-shadow:0 0 0 1px #fff,0 0 0 2px #096484}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #096484;box-shadow:0 0 0 1px #fff,0 0 0 3px #096484}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#096484}.theme-filter.current,.theme-section.current{border-bottom-color:#52accc}body.more-filters-opened .more-filters{color:#fff;background-color:#52accc}#customize-theme-controls .widget-area-select .selected,.widgets-chooser li.widgets-chooser-selected,body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#096484;color:#fff}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#e5f8ff}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#e1a948;border-color:#d39323;-webkit-box-shadow:inset 0 1px 0 #ecc88a,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #ecc88a,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#096484}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#4796b3}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#096484} \ No newline at end of file diff --git a/wp-admin/css/colors/blue/colors.css b/wp-admin/css/colors/blue/colors.css deleted file mode 100644 index 8fb3d6104d..0000000000 --- a/wp-admin/css/colors/blue/colors.css +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f1f1f1; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #096484; -} - -input[type=radio]:checked:before { - background: #096484; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #e1a948; - border-color: #d39323; - color: white; - -webkit-box-shadow: inset 0 1px 0 #ecc88a, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #ecc88a, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #dd9f32; - border-color: #bd831f; - color: white; - -webkit-box-shadow: inset 0 1px 0 #e8be74; - box-shadow: inset 0 1px 0 #e8be74; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #e8be74, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #e8be74, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #d39323; - border-color: #bd831f; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #d1cdc7 !important; - background: #db9925 !important; - border-color: #bd831f !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #fff; - background-color: #52accc; -} - -.wp-core-ui .wp-ui-text-primary { - color: #52accc; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #096484; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #096484; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #e1a948; -} - -.wp-core-ui .wp-ui-text-notification { - color: #e1a948; -} - -.wp-core-ui .wp-ui-text-icon { - color: #e5f8ff; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #fff; - background-color: #52accc; -} - -.view-switch a.current:before { - color: #52accc; -} - -.view-switch a:hover:before { - color: #e1a948; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #52accc; -} - -#adminmenu a { - color: #fff; -} - -#adminmenu div.wp-menu-image:before { - color: #e5f8ff; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #096484; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #fff; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f1f1f1; - border-bottom-color: #f1f1f1; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #4796b3; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-right-color: #4796b3; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #e2ecf1; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #e2ecf1; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #fff; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #fff; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #fff; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-right-color: #f1f1f1; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #096484; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #fff; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #e1a948; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #fff; - background: #4796b3; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #e5f8ff; -} - -#collapse-menu:hover { - color: #fff; -} - -#collapse-button div:after { - color: #e5f8ff; -} - -#collapse-menu:hover #collapse-button div:after { - color: #fff; -} - -/* Admin Bar */ -#wpadminbar { - color: #fff; - background: #52accc; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #fff; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #e5f8ff; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #fff; - background: #4796b3; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #fff; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #fff; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #4796b3; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #74b6ce; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #e2ecf1; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #e5f8ff; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #fff; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #fff; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #e5f8ff; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #e5f8ff; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #fff; - background: #6eb9d4; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #fff; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #6eb9d4; - background-color: #6eb9d4; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #e2ecf1; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #096484; - border-color: #07526c; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #096484; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #096484; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #096484; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #096484; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #096484; -} - -.attachment.details .check { - background-color: #096484; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #096484; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #096484; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #096484; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #096484; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #096484; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #096484; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #52accc; -} - -body.more-filters-opened .more-filters { - color: #fff; - background-color: #52accc; -} - -body.more-filters-opened .more-filters:before { - color: #fff; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #096484; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #096484; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #096484; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #e1a948; - border-color: #d39323; - -webkit-box-shadow: inset 0 1px 0 #ecc88a, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #ecc88a, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #e5f8ff; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #096484; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #4796b3; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #e5f8ff; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #096484; -} diff --git a/wp-admin/css/colors/blue/colors.min.css b/wp-admin/css/colors/blue/colors.min.css deleted file mode 100644 index c5d45e3fea..0000000000 --- a/wp-admin/css/colors/blue/colors.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f1f1f1}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#096484}input[type=radio]:checked:before{background:#096484}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#e1a948;border-color:#d39323;color:#fff;-webkit-box-shadow:inset 0 1px 0 #ecc88a,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #ecc88a,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#dd9f32;border-color:#bd831f;color:#fff;-webkit-box-shadow:inset 0 1px 0 #e8be74;box-shadow:inset 0 1px 0 #e8be74}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #e8be74,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #e8be74,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#d39323;border-color:#bd831f;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#d1cdc7!important;background:#db9925!important;border-color:#bd831f!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#52accc}.wp-core-ui .wp-ui-text-primary{color:#52accc}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#096484}.wp-core-ui .wp-ui-text-highlight{color:#096484}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#e1a948}.wp-core-ui .wp-ui-text-notification{color:#e1a948}.wp-core-ui .wp-ui-text-icon{color:#e5f8ff}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:#52accc}.view-switch a.current:before{color:#52accc}.view-switch a:hover:before{color:#e1a948}#adminmenu,#adminmenuback,#adminmenuwrap{background:#52accc}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#e5f8ff}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#096484}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#4796b3}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-right-color:#4796b3}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#e2ecf1}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#fff}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f1f1f1}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#096484}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#e1a948}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#4796b3}#collapse-button div:after,#collapse-menu{color:#e5f8ff}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar{color:#fff;background:#52accc}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#e5f8ff}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#fff;background:#4796b3}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before,#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#4796b3}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#74b6ce}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#e2ecf1}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#e5f8ff}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#fff}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#e5f8ff}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:#6eb9d4}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#fff;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#6eb9d4;background-color:#6eb9d4}#wpadminbar #wp-admin-bar-user-info .display-name,#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info .username{color:#e2ecf1}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#096484}.wp-pointer .wp-pointer-content h3{background-color:#096484;border-color:#07526c}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#096484}.media-item .bar,.media-progress-bar div{background-color:#096484}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #096484;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #096484}.attachment.details .check{background-color:#096484;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #096484;box-shadow:0 0 0 1px #fff,0 0 0 2px #096484}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #096484;box-shadow:0 0 0 1px #fff,0 0 0 3px #096484}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#096484}.theme-filter.current,.theme-section.current{border-bottom-color:#52accc}body.more-filters-opened .more-filters{color:#fff;background-color:#52accc}#customize-theme-controls .widget-area-select .selected,.widgets-chooser li.widgets-chooser-selected,body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#096484;color:#fff}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#e5f8ff}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#e1a948;border-color:#d39323;-webkit-box-shadow:inset 0 1px 0 #ecc88a,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #ecc88a,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#096484}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#4796b3}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#096484} \ No newline at end of file diff --git a/wp-admin/css/colors/blue/colors.scss b/wp-admin/css/colors/blue/colors.scss deleted file mode 100644 index b254d73a8f..0000000000 --- a/wp-admin/css/colors/blue/colors.scss +++ /dev/null @@ -1,11 +0,0 @@ -$base-color: #52accc; -$icon-color: #e5f8ff; -$highlight-color: #096484; -$notification-color: #e1a948; -$button-color: #e1a948; - -$menu-submenu-text: #e2ecf1; -$menu-submenu-focus-text: #fff; -$menu-submenu-background: #4796b3; - -@import "../_admin.scss"; diff --git a/wp-admin/css/colors/coffee/colors-rtl.css b/wp-admin/css/colors/coffee/colors-rtl.css deleted file mode 100644 index 23866fc8cd..0000000000 --- a/wp-admin/css/colors/coffee/colors-rtl.css +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f1f1f1; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #59524c; -} - -input[type=radio]:checked:before { - background: #59524c; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #c7a589; - border-color: #b78b66; - color: white; - -webkit-box-shadow: inset 0 1px 0 #e0cdbd, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #e0cdbd, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #bf9878; - border-color: #ae7d55; - color: white; - -webkit-box-shadow: inset 0 1px 0 #d7bfac; - box-shadow: inset 0 1px 0 #d7bfac; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #d7bfac, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #d7bfac, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #b78b66; - border-color: #ae7d55; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #d1ccc7 !important; - background: #ba906d !important; - border-color: #ae7d55 !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #fff; - background-color: #59524c; -} - -.wp-core-ui .wp-ui-text-primary { - color: #59524c; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #c7a589; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #c7a589; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #9ea476; -} - -.wp-core-ui .wp-ui-text-notification { - color: #9ea476; -} - -.wp-core-ui .wp-ui-text-icon { - color: #f3f2f1; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #fff; - background-color: #59524c; -} - -.view-switch a.current:before { - color: #59524c; -} - -.view-switch a:hover:before { - color: #9ea476; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #59524c; -} - -#adminmenu a { - color: #fff; -} - -#adminmenu div.wp-menu-image:before { - color: #f3f2f1; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #c7a589; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #fff; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f1f1f1; - border-bottom-color: #f1f1f1; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #46403c; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-left-color: #46403c; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #cdcbc9; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #cdcbc9; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #c7a589; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #fff; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #c7a589; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-left-color: #f1f1f1; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #c7a589; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #fff; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #9ea476; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #fff; - background: #46403c; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #f3f2f1; -} - -#collapse-menu:hover { - color: #fff; -} - -#collapse-button div:after { - color: #f3f2f1; -} - -#collapse-menu:hover #collapse-button div:after { - color: #fff; -} - -/* Admin Bar */ -#wpadminbar { - color: #fff; - background: #59524c; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #fff; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #f3f2f1; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #c7a589; - background: #46403c; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #c7a589; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #fff; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #46403c; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #656463; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #cdcbc9; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #f3f2f1; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #c7a589; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #c7a589; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #f3f2f1; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #f3f2f1; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #fff; - background: #6c645c; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #fff; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #6c645c; - background-color: #6c645c; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #c7a589; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #cdcbc9; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #c7a589; - border-color: #bf9878; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #c7a589; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #c7a589; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #c7a589; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #c7a589; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #c7a589; -} - -.attachment.details .check { - background-color: #c7a589; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #c7a589; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #c7a589; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #c7a589; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #c7a589; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #c7a589; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #c7a589; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #59524c; -} - -body.more-filters-opened .more-filters { - color: #fff; - background-color: #59524c; -} - -body.more-filters-opened .more-filters:before { - color: #fff; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #c7a589; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #c7a589; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #c7a589; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #c7a589; - border-color: #b78b66; - -webkit-box-shadow: inset 0 1px 0 #e0cdbd, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #e0cdbd, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #f3f2f1; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #c7a589; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #46403c; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #f3f2f1; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #c7a589; -} diff --git a/wp-admin/css/colors/coffee/colors-rtl.min.css b/wp-admin/css/colors/coffee/colors-rtl.min.css deleted file mode 100644 index 39921d5b3a..0000000000 --- a/wp-admin/css/colors/coffee/colors-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f1f1f1}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#59524c}input[type=radio]:checked:before{background:#59524c}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#c7a589;border-color:#b78b66;color:#fff;-webkit-box-shadow:inset 0 1px 0 #e0cdbd,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #e0cdbd,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#bf9878;border-color:#ae7d55;color:#fff;-webkit-box-shadow:inset 0 1px 0 #d7bfac;box-shadow:inset 0 1px 0 #d7bfac}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #d7bfac,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #d7bfac,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#b78b66;border-color:#ae7d55;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#d1ccc7!important;background:#ba906d!important;border-color:#ae7d55!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#59524c}.wp-core-ui .wp-ui-text-primary{color:#59524c}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#c7a589}.wp-core-ui .wp-ui-text-highlight{color:#c7a589}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#9ea476}.wp-core-ui .wp-ui-text-notification{color:#9ea476}.wp-core-ui .wp-ui-text-icon{color:#f3f2f1}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:#59524c}.view-switch a.current:before{color:#59524c}.view-switch a:hover:before{color:#9ea476}#adminmenu,#adminmenuback,#adminmenuwrap{background:#59524c}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f3f2f1}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#c7a589}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#46403c}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-left-color:#46403c}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#cdcbc9}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#c7a589}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#c7a589}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f1f1f1}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#c7a589}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#9ea476}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#46403c}#collapse-button div:after,#collapse-menu{color:#f3f2f1}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar{color:#fff;background:#59524c}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#f3f2f1}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#c7a589;background:#46403c}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#c7a589}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#46403c}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#656463}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#cdcbc9}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#f3f2f1}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#c7a589}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#f3f2f1}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:#6c645c}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#fff;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#6c645c;background-color:#6c645c}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#c7a589}#wpadminbar #wp-admin-bar-user-info .username{color:#cdcbc9}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#c7a589}.wp-pointer .wp-pointer-content h3{background-color:#c7a589;border-color:#bf9878}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#c7a589}.media-item .bar,.media-progress-bar div{background-color:#c7a589}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #c7a589;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #c7a589}.attachment.details .check{background-color:#c7a589;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #c7a589;box-shadow:0 0 0 1px #fff,0 0 0 2px #c7a589}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #c7a589;box-shadow:0 0 0 1px #fff,0 0 0 3px #c7a589}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#c7a589}.theme-filter.current,.theme-section.current{border-bottom-color:#59524c}body.more-filters-opened .more-filters{color:#fff;background-color:#59524c}#customize-theme-controls .widget-area-select .selected,.widgets-chooser li.widgets-chooser-selected,body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#c7a589;color:#fff}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#f3f2f1}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#c7a589;border-color:#b78b66;-webkit-box-shadow:inset 0 1px 0 #e0cdbd,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #e0cdbd,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#c7a589}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#46403c}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#c7a589} \ No newline at end of file diff --git a/wp-admin/css/colors/coffee/colors.css b/wp-admin/css/colors/coffee/colors.css deleted file mode 100644 index 7d690f60c1..0000000000 --- a/wp-admin/css/colors/coffee/colors.css +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f1f1f1; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #59524c; -} - -input[type=radio]:checked:before { - background: #59524c; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #c7a589; - border-color: #b78b66; - color: white; - -webkit-box-shadow: inset 0 1px 0 #e0cdbd, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #e0cdbd, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #bf9878; - border-color: #ae7d55; - color: white; - -webkit-box-shadow: inset 0 1px 0 #d7bfac; - box-shadow: inset 0 1px 0 #d7bfac; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #d7bfac, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #d7bfac, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #b78b66; - border-color: #ae7d55; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #d1ccc7 !important; - background: #ba906d !important; - border-color: #ae7d55 !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #fff; - background-color: #59524c; -} - -.wp-core-ui .wp-ui-text-primary { - color: #59524c; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #c7a589; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #c7a589; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #9ea476; -} - -.wp-core-ui .wp-ui-text-notification { - color: #9ea476; -} - -.wp-core-ui .wp-ui-text-icon { - color: #f3f2f1; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #fff; - background-color: #59524c; -} - -.view-switch a.current:before { - color: #59524c; -} - -.view-switch a:hover:before { - color: #9ea476; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #59524c; -} - -#adminmenu a { - color: #fff; -} - -#adminmenu div.wp-menu-image:before { - color: #f3f2f1; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #c7a589; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #fff; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f1f1f1; - border-bottom-color: #f1f1f1; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #46403c; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-right-color: #46403c; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #cdcbc9; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #cdcbc9; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #c7a589; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #fff; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #c7a589; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-right-color: #f1f1f1; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #c7a589; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #fff; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #9ea476; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #fff; - background: #46403c; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #f3f2f1; -} - -#collapse-menu:hover { - color: #fff; -} - -#collapse-button div:after { - color: #f3f2f1; -} - -#collapse-menu:hover #collapse-button div:after { - color: #fff; -} - -/* Admin Bar */ -#wpadminbar { - color: #fff; - background: #59524c; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #fff; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #f3f2f1; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #c7a589; - background: #46403c; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #c7a589; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #fff; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #46403c; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #656463; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #cdcbc9; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #f3f2f1; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #c7a589; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #c7a589; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #f3f2f1; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #f3f2f1; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #fff; - background: #6c645c; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #fff; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #6c645c; - background-color: #6c645c; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #c7a589; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #cdcbc9; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #c7a589; - border-color: #bf9878; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #c7a589; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #c7a589; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #c7a589; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #c7a589; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #c7a589; -} - -.attachment.details .check { - background-color: #c7a589; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #c7a589; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #c7a589; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #c7a589; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #c7a589; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #c7a589; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #c7a589; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #59524c; -} - -body.more-filters-opened .more-filters { - color: #fff; - background-color: #59524c; -} - -body.more-filters-opened .more-filters:before { - color: #fff; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #c7a589; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #c7a589; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #c7a589; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #c7a589; - border-color: #b78b66; - -webkit-box-shadow: inset 0 1px 0 #e0cdbd, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #e0cdbd, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #f3f2f1; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #c7a589; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #46403c; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #f3f2f1; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #c7a589; -} diff --git a/wp-admin/css/colors/coffee/colors.min.css b/wp-admin/css/colors/coffee/colors.min.css deleted file mode 100644 index 6b4654110b..0000000000 --- a/wp-admin/css/colors/coffee/colors.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f1f1f1}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#59524c}input[type=radio]:checked:before{background:#59524c}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#c7a589;border-color:#b78b66;color:#fff;-webkit-box-shadow:inset 0 1px 0 #e0cdbd,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #e0cdbd,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#bf9878;border-color:#ae7d55;color:#fff;-webkit-box-shadow:inset 0 1px 0 #d7bfac;box-shadow:inset 0 1px 0 #d7bfac}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #d7bfac,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #d7bfac,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#b78b66;border-color:#ae7d55;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#d1ccc7!important;background:#ba906d!important;border-color:#ae7d55!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#59524c}.wp-core-ui .wp-ui-text-primary{color:#59524c}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#c7a589}.wp-core-ui .wp-ui-text-highlight{color:#c7a589}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#9ea476}.wp-core-ui .wp-ui-text-notification{color:#9ea476}.wp-core-ui .wp-ui-text-icon{color:#f3f2f1}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:#59524c}.view-switch a.current:before{color:#59524c}.view-switch a:hover:before{color:#9ea476}#adminmenu,#adminmenuback,#adminmenuwrap{background:#59524c}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f3f2f1}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#c7a589}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#46403c}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-right-color:#46403c}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#cdcbc9}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#c7a589}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#c7a589}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f1f1f1}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#c7a589}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#9ea476}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#46403c}#collapse-button div:after,#collapse-menu{color:#f3f2f1}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar{color:#fff;background:#59524c}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#f3f2f1}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#c7a589;background:#46403c}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#c7a589}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#46403c}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#656463}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#cdcbc9}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#f3f2f1}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#c7a589}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#f3f2f1}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:#6c645c}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#fff;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#6c645c;background-color:#6c645c}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#c7a589}#wpadminbar #wp-admin-bar-user-info .username{color:#cdcbc9}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#c7a589}.wp-pointer .wp-pointer-content h3{background-color:#c7a589;border-color:#bf9878}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#c7a589}.media-item .bar,.media-progress-bar div{background-color:#c7a589}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #c7a589;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #c7a589}.attachment.details .check{background-color:#c7a589;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #c7a589;box-shadow:0 0 0 1px #fff,0 0 0 2px #c7a589}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #c7a589;box-shadow:0 0 0 1px #fff,0 0 0 3px #c7a589}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#c7a589}.theme-filter.current,.theme-section.current{border-bottom-color:#59524c}body.more-filters-opened .more-filters{color:#fff;background-color:#59524c}#customize-theme-controls .widget-area-select .selected,.widgets-chooser li.widgets-chooser-selected,body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#c7a589;color:#fff}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#f3f2f1}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#c7a589;border-color:#b78b66;-webkit-box-shadow:inset 0 1px 0 #e0cdbd,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #e0cdbd,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#c7a589}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#46403c}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#c7a589} \ No newline at end of file diff --git a/wp-admin/css/colors/coffee/colors.scss b/wp-admin/css/colors/coffee/colors.scss deleted file mode 100644 index 49bee9be94..0000000000 --- a/wp-admin/css/colors/coffee/colors.scss +++ /dev/null @@ -1,7 +0,0 @@ -$base-color: #59524c; -$highlight-color: #c7a589; -$notification-color: #9ea476; - -$form-checked: $base-color; - -@import "../_admin.scss"; diff --git a/wp-admin/css/colors/ectoplasm/colors-rtl.css b/wp-admin/css/colors/ectoplasm/colors-rtl.css deleted file mode 100644 index 01f212f172..0000000000 --- a/wp-admin/css/colors/ectoplasm/colors-rtl.css +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f1f1f1; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #523f6d; -} - -input[type=radio]:checked:before { - background: #523f6d; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #a3b745; - border-color: #829237; - color: white; - -webkit-box-shadow: inset 0 1px 0 #bfcd7b, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #bfcd7b, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #93a43e; - border-color: #727f30; - color: white; - -webkit-box-shadow: inset 0 1px 0 #b6c669; - box-shadow: inset 0 1px 0 #b6c669; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #b6c669, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #b6c669, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #829237; - border-color: #727f30; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #cfd1c7 !important; - background: #89993a !important; - border-color: #727f30 !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #fff; - background-color: #523f6d; -} - -.wp-core-ui .wp-ui-text-primary { - color: #523f6d; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #a3b745; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #a3b745; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #d46f15; -} - -.wp-core-ui .wp-ui-text-notification { - color: #d46f15; -} - -.wp-core-ui .wp-ui-text-icon { - color: #ece6f6; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #fff; - background-color: #523f6d; -} - -.view-switch a.current:before { - color: #523f6d; -} - -.view-switch a:hover:before { - color: #d46f15; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #523f6d; -} - -#adminmenu a { - color: #fff; -} - -#adminmenu div.wp-menu-image:before { - color: #ece6f6; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #a3b745; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #fff; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f1f1f1; - border-bottom-color: #f1f1f1; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #413256; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-left-color: #413256; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #cbc5d3; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #cbc5d3; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #a3b745; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #fff; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #a3b745; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-left-color: #f1f1f1; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #a3b745; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #fff; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #d46f15; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #fff; - background: #413256; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #ece6f6; -} - -#collapse-menu:hover { - color: #fff; -} - -#collapse-button div:after { - color: #ece6f6; -} - -#collapse-menu:hover #collapse-button div:after { - color: #fff; -} - -/* Admin Bar */ -#wpadminbar { - color: #fff; - background: #523f6d; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #fff; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #ece6f6; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #a3b745; - background: #413256; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #a3b745; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #fff; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #413256; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #64537c; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #cbc5d3; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #ece6f6; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #a3b745; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #a3b745; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #ece6f6; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #ece6f6; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #fff; - background: #634c84; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #fff; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #634c84; - background-color: #634c84; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #a3b745; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #cbc5d3; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #a3b745; - border-color: #93a43e; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #a3b745; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #a3b745; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #a3b745; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #a3b745; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #a3b745; -} - -.attachment.details .check { - background-color: #a3b745; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #a3b745; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #a3b745; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #a3b745; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #a3b745; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #a3b745; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #a3b745; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #523f6d; -} - -body.more-filters-opened .more-filters { - color: #fff; - background-color: #523f6d; -} - -body.more-filters-opened .more-filters:before { - color: #fff; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #a3b745; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #a3b745; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #a3b745; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #a3b745; - border-color: #829237; - -webkit-box-shadow: inset 0 1px 0 #bfcd7b, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #bfcd7b, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #ece6f6; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #a3b745; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #413256; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #ece6f6; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #a3b745; -} diff --git a/wp-admin/css/colors/ectoplasm/colors-rtl.min.css b/wp-admin/css/colors/ectoplasm/colors-rtl.min.css deleted file mode 100644 index eaaa3cdead..0000000000 --- a/wp-admin/css/colors/ectoplasm/colors-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f1f1f1}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#523f6d}input[type=radio]:checked:before{background:#523f6d}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#a3b745;border-color:#829237;color:#fff;-webkit-box-shadow:inset 0 1px 0 #bfcd7b,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #bfcd7b,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#93a43e;border-color:#727f30;color:#fff;-webkit-box-shadow:inset 0 1px 0 #b6c669;box-shadow:inset 0 1px 0 #b6c669}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #b6c669,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #b6c669,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#829237;border-color:#727f30;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#cfd1c7!important;background:#89993a!important;border-color:#727f30!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#523f6d}.wp-core-ui .wp-ui-text-primary{color:#523f6d}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#a3b745}.wp-core-ui .wp-ui-text-highlight{color:#a3b745}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#d46f15}.wp-core-ui .wp-ui-text-notification{color:#d46f15}.wp-core-ui .wp-ui-text-icon{color:#ece6f6}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:#523f6d}.view-switch a.current:before{color:#523f6d}.view-switch a:hover:before{color:#d46f15}#adminmenu,#adminmenuback,#adminmenuwrap{background:#523f6d}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#ece6f6}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#a3b745}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#413256}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-left-color:#413256}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#cbc5d3}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#a3b745}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#a3b745}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f1f1f1}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#a3b745}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#d46f15}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#413256}#collapse-button div:after,#collapse-menu{color:#ece6f6}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar{color:#fff;background:#523f6d}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#ece6f6}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#a3b745;background:#413256}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#a3b745}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#413256}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#64537c}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#cbc5d3}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#ece6f6}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#a3b745}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#ece6f6}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:#634c84}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#fff;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#634c84;background-color:#634c84}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#a3b745}#wpadminbar #wp-admin-bar-user-info .username{color:#cbc5d3}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#a3b745}.wp-pointer .wp-pointer-content h3{background-color:#a3b745;border-color:#93a43e}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#a3b745}.media-item .bar,.media-progress-bar div{background-color:#a3b745}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #a3b745;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #a3b745}.attachment.details .check{background-color:#a3b745;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #a3b745;box-shadow:0 0 0 1px #fff,0 0 0 2px #a3b745}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #a3b745;box-shadow:0 0 0 1px #fff,0 0 0 3px #a3b745}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#a3b745}.theme-filter.current,.theme-section.current{border-bottom-color:#523f6d}body.more-filters-opened .more-filters{color:#fff;background-color:#523f6d}#customize-theme-controls .widget-area-select .selected,.widgets-chooser li.widgets-chooser-selected,body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#a3b745;color:#fff}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#ece6f6}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#a3b745;border-color:#829237;-webkit-box-shadow:inset 0 1px 0 #bfcd7b,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #bfcd7b,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#a3b745}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#413256}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#a3b745} \ No newline at end of file diff --git a/wp-admin/css/colors/ectoplasm/colors.css b/wp-admin/css/colors/ectoplasm/colors.css deleted file mode 100644 index f98d460f91..0000000000 --- a/wp-admin/css/colors/ectoplasm/colors.css +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f1f1f1; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #523f6d; -} - -input[type=radio]:checked:before { - background: #523f6d; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #a3b745; - border-color: #829237; - color: white; - -webkit-box-shadow: inset 0 1px 0 #bfcd7b, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #bfcd7b, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #93a43e; - border-color: #727f30; - color: white; - -webkit-box-shadow: inset 0 1px 0 #b6c669; - box-shadow: inset 0 1px 0 #b6c669; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #b6c669, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #b6c669, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #829237; - border-color: #727f30; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #cfd1c7 !important; - background: #89993a !important; - border-color: #727f30 !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #fff; - background-color: #523f6d; -} - -.wp-core-ui .wp-ui-text-primary { - color: #523f6d; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #a3b745; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #a3b745; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #d46f15; -} - -.wp-core-ui .wp-ui-text-notification { - color: #d46f15; -} - -.wp-core-ui .wp-ui-text-icon { - color: #ece6f6; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #fff; - background-color: #523f6d; -} - -.view-switch a.current:before { - color: #523f6d; -} - -.view-switch a:hover:before { - color: #d46f15; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #523f6d; -} - -#adminmenu a { - color: #fff; -} - -#adminmenu div.wp-menu-image:before { - color: #ece6f6; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #a3b745; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #fff; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f1f1f1; - border-bottom-color: #f1f1f1; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #413256; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-right-color: #413256; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #cbc5d3; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #cbc5d3; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #a3b745; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #fff; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #a3b745; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-right-color: #f1f1f1; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #a3b745; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #fff; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #d46f15; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #fff; - background: #413256; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #ece6f6; -} - -#collapse-menu:hover { - color: #fff; -} - -#collapse-button div:after { - color: #ece6f6; -} - -#collapse-menu:hover #collapse-button div:after { - color: #fff; -} - -/* Admin Bar */ -#wpadminbar { - color: #fff; - background: #523f6d; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #fff; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #ece6f6; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #a3b745; - background: #413256; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #a3b745; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #fff; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #413256; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #64537c; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #cbc5d3; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #ece6f6; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #a3b745; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #a3b745; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #ece6f6; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #ece6f6; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #fff; - background: #634c84; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #fff; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #634c84; - background-color: #634c84; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #a3b745; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #cbc5d3; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #a3b745; - border-color: #93a43e; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #a3b745; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #a3b745; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #a3b745; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #a3b745; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #a3b745; -} - -.attachment.details .check { - background-color: #a3b745; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #a3b745; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #a3b745; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #a3b745; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #a3b745; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #a3b745; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #a3b745; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #523f6d; -} - -body.more-filters-opened .more-filters { - color: #fff; - background-color: #523f6d; -} - -body.more-filters-opened .more-filters:before { - color: #fff; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #a3b745; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #a3b745; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #a3b745; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #a3b745; - border-color: #829237; - -webkit-box-shadow: inset 0 1px 0 #bfcd7b, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #bfcd7b, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #ece6f6; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #a3b745; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #413256; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #ece6f6; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #a3b745; -} diff --git a/wp-admin/css/colors/ectoplasm/colors.min.css b/wp-admin/css/colors/ectoplasm/colors.min.css deleted file mode 100644 index e98bf7bd99..0000000000 --- a/wp-admin/css/colors/ectoplasm/colors.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f1f1f1}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#523f6d}input[type=radio]:checked:before{background:#523f6d}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#a3b745;border-color:#829237;color:#fff;-webkit-box-shadow:inset 0 1px 0 #bfcd7b,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #bfcd7b,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#93a43e;border-color:#727f30;color:#fff;-webkit-box-shadow:inset 0 1px 0 #b6c669;box-shadow:inset 0 1px 0 #b6c669}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #b6c669,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #b6c669,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#829237;border-color:#727f30;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#cfd1c7!important;background:#89993a!important;border-color:#727f30!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#523f6d}.wp-core-ui .wp-ui-text-primary{color:#523f6d}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#a3b745}.wp-core-ui .wp-ui-text-highlight{color:#a3b745}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#d46f15}.wp-core-ui .wp-ui-text-notification{color:#d46f15}.wp-core-ui .wp-ui-text-icon{color:#ece6f6}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:#523f6d}.view-switch a.current:before{color:#523f6d}.view-switch a:hover:before{color:#d46f15}#adminmenu,#adminmenuback,#adminmenuwrap{background:#523f6d}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#ece6f6}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#a3b745}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#413256}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-right-color:#413256}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#cbc5d3}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#a3b745}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#a3b745}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f1f1f1}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#a3b745}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#d46f15}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#413256}#collapse-button div:after,#collapse-menu{color:#ece6f6}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar{color:#fff;background:#523f6d}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#ece6f6}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#a3b745;background:#413256}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#a3b745}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#413256}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#64537c}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#cbc5d3}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#ece6f6}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#a3b745}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#ece6f6}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:#634c84}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#fff;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#634c84;background-color:#634c84}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#a3b745}#wpadminbar #wp-admin-bar-user-info .username{color:#cbc5d3}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#a3b745}.wp-pointer .wp-pointer-content h3{background-color:#a3b745;border-color:#93a43e}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#a3b745}.media-item .bar,.media-progress-bar div{background-color:#a3b745}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #a3b745;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #a3b745}.attachment.details .check{background-color:#a3b745;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #a3b745;box-shadow:0 0 0 1px #fff,0 0 0 2px #a3b745}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #a3b745;box-shadow:0 0 0 1px #fff,0 0 0 3px #a3b745}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#a3b745}.theme-filter.current,.theme-section.current{border-bottom-color:#523f6d}body.more-filters-opened .more-filters{color:#fff;background-color:#523f6d}#customize-theme-controls .widget-area-select .selected,.widgets-chooser li.widgets-chooser-selected,body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#a3b745;color:#fff}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#ece6f6}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#a3b745;border-color:#829237;-webkit-box-shadow:inset 0 1px 0 #bfcd7b,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #bfcd7b,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#a3b745}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#413256}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#a3b745} \ No newline at end of file diff --git a/wp-admin/css/colors/ectoplasm/colors.scss b/wp-admin/css/colors/ectoplasm/colors.scss deleted file mode 100644 index 8d14570770..0000000000 --- a/wp-admin/css/colors/ectoplasm/colors.scss +++ /dev/null @@ -1,8 +0,0 @@ -$base-color: #523f6d; -$icon-color: #ece6f6; -$highlight-color: #a3b745; -$notification-color: #d46f15; - -$form-checked: $base-color; - -@import "../_admin.scss"; diff --git a/wp-admin/css/colors/light/colors-rtl.css b/wp-admin/css/colors/light/colors-rtl.css deleted file mode 100644 index c1ab81a436..0000000000 --- a/wp-admin/css/colors/light/colors-rtl.css +++ /dev/null @@ -1,562 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f5f5f5; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #04a4cc; -} - -input[type=radio]:checked:before { - background: #04a4cc; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #04a4cc; - border-color: #037c9a; - color: white; - -webkit-box-shadow: inset 0 1px 0 #22cffb, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #22cffb, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #0490b3; - border-color: #036881; - color: white; - -webkit-box-shadow: inset 0 1px 0 #09cafa; - box-shadow: inset 0 1px 0 #09cafa; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #09cafa, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #09cafa, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #037c9a; - border-color: #036881; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #c7cfd1 !important; - background: #0384a4 !important; - border-color: #036881 !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #333; - background-color: #e5e5e5; -} - -.wp-core-ui .wp-ui-text-primary { - color: #e5e5e5; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #888; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #888; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #d64e07; -} - -.wp-core-ui .wp-ui-text-notification { - color: #d64e07; -} - -.wp-core-ui .wp-ui-text-icon { - color: #999; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #333; - background-color: #e5e5e5; -} - -.view-switch a.current:before { - color: #e5e5e5; -} - -.view-switch a:hover:before { - color: #d64e07; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #e5e5e5; -} - -#adminmenu a { - color: #333; -} - -#adminmenu div.wp-menu-image:before { - color: #999; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #888; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #ccc; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f5f5f5; - border-bottom-color: #f5f5f5; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #fff; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-left-color: #fff; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #686868; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #686868; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #04a4cc; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #333; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #04a4cc; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-left-color: #f5f5f5; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #888; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #ccc; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #d64e07; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #333; - background: #fff; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #777; -} - -#collapse-menu:hover { - color: #333; -} - -#collapse-button div:after { - color: #999; -} - -#collapse-menu:hover #collapse-button div:after { - color: #555; -} - -/* Admin Bar */ -#wpadminbar { - color: #333; - background: #e5e5e5; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #333; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #999; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #04a4cc; - background: #fff; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #04a4cc; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #ccc; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #fff; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #f7f7f7; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #686868; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #999; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #04a4cc; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #04a4cc; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #999; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #999; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #333; - background: #f7f7f7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #333; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #333; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #333; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #333; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #f7f7f7; - background-color: #f7f7f7; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #333; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #04a4cc; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #686868; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #04a4cc; - border-color: #0490b3; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #04a4cc; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #04a4cc; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #04a4cc; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #04a4cc; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #04a4cc; -} - -.attachment.details .check { - background-color: #04a4cc; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #04a4cc; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #04a4cc; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #04a4cc; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #04a4cc; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #04a4cc; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #04a4cc; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #e5e5e5; -} - -body.more-filters-opened .more-filters { - color: #333; - background-color: #e5e5e5; -} - -body.more-filters-opened .more-filters:before { - color: #333; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #888; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #888; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #888; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #04a4cc; - border-color: #037c9a; - -webkit-box-shadow: inset 0 1px 0 #22cffb, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #22cffb, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #999; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #888; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #fff; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #999; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #04a4cc; -} - -/* temporary fix for admin-bar hover color */ -#wpadminbar .ab-top-menu > li:hover > .ab-item, -#wpadminbar .ab-top-menu > li.hover > .ab-item, -#wpadminbar > #wp-toolbar > #wp-admin-bar-root-default li:hover span.ab-label, -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary li.hover span.ab-label, -#wpadminbar .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #333; -} - -/* Override the theme filter highlight color for this scheme */ -.theme-section.current, -.theme-filter.current { - border-bottom-color: #04a4cc; -} diff --git a/wp-admin/css/colors/light/colors-rtl.min.css b/wp-admin/css/colors/light/colors-rtl.min.css deleted file mode 100644 index 8108994f23..0000000000 --- a/wp-admin/css/colors/light/colors-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f5f5f5}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#04a4cc}input[type=radio]:checked:before{background:#04a4cc}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#04a4cc;border-color:#037c9a;color:#fff;-webkit-box-shadow:inset 0 1px 0 #22cffb,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #22cffb,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#0490b3;border-color:#036881;color:#fff;-webkit-box-shadow:inset 0 1px 0 #09cafa;box-shadow:inset 0 1px 0 #09cafa}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #09cafa,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #09cafa,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#037c9a;border-color:#036881;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#c7cfd1!important;background:#0384a4!important;border-color:#036881!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#333;background-color:#e5e5e5}.wp-core-ui .wp-ui-text-primary{color:#e5e5e5}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#888}.wp-core-ui .wp-ui-text-highlight{color:#888}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#d64e07}.wp-core-ui .wp-ui-text-notification{color:#d64e07}.wp-core-ui .wp-ui-text-icon{color:#999}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#333;background-color:#e5e5e5}.view-switch a.current:before{color:#e5e5e5}.view-switch a:hover:before{color:#d64e07}#adminmenu,#adminmenuback,#adminmenuwrap{background:#e5e5e5}#adminmenu a{color:#333}#adminmenu div.wp-menu-image:before{color:#999}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#888}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#ccc}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f5f5f5;border-bottom-color:#f5f5f5}.theme-filter.current,.theme-section.current,.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#04a4cc}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#fff}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-left-color:#fff}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#686868}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#04a4cc}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#333}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#04a4cc}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f5f5f5}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#888}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#ccc}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#d64e07}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#333;background:#fff}#collapse-menu{color:#777}#collapse-menu:hover,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#333}#collapse-button div:after{color:#999}#collapse-menu:hover #collapse-button div:after{color:#555}#wpadminbar{color:#333;background:#e5e5e5}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#999}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#04a4cc;background:#fff}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#04a4cc}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#ccc}#wpadminbar .menupop .ab-sub-wrapper{background:#fff}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#f7f7f7}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#686868}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#999}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#04a4cc}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#999}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#333;background:#f7f7f7}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#333;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#333;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#333;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#333;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#f7f7f7;background-color:#f7f7f7}#wpadminbar #wp-admin-bar-user-info .display-name{color:#333}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#04a4cc}#wpadminbar #wp-admin-bar-user-info .username{color:#686868}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#04a4cc}.wp-pointer .wp-pointer-content h3{background-color:#04a4cc;border-color:#0490b3}.media-item .bar,.media-progress-bar div{background-color:#04a4cc}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #04a4cc;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #04a4cc}.attachment.details .check{background-color:#04a4cc;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #04a4cc;box-shadow:0 0 0 1px #fff,0 0 0 2px #04a4cc}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #04a4cc;box-shadow:0 0 0 1px #fff,0 0 0 3px #04a4cc}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#04a4cc}body.more-filters-opened .more-filters{color:#333;background-color:#e5e5e5}body.more-filters-opened .more-filters:before{color:#333}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#888;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#888;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}#customize-theme-controls .widget-area-select .selected{background-color:#888;color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#999}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#04a4cc;border-color:#037c9a;-webkit-box-shadow:inset 0 1px 0 #22cffb,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #22cffb,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#888}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#fff}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#04a4cc}#wpadminbar .ab-top-menu>li.hover>.ab-item,#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar .ab-top-menu>li:hover>.ab-item,#wpadminbar .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default li:hover span.ab-label,#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary li.hover span.ab-label{color:#333} \ No newline at end of file diff --git a/wp-admin/css/colors/light/colors.css b/wp-admin/css/colors/light/colors.css deleted file mode 100644 index 335e3f904b..0000000000 --- a/wp-admin/css/colors/light/colors.css +++ /dev/null @@ -1,562 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f5f5f5; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #04a4cc; -} - -input[type=radio]:checked:before { - background: #04a4cc; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #04a4cc; - border-color: #037c9a; - color: white; - -webkit-box-shadow: inset 0 1px 0 #22cffb, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #22cffb, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #0490b3; - border-color: #036881; - color: white; - -webkit-box-shadow: inset 0 1px 0 #09cafa; - box-shadow: inset 0 1px 0 #09cafa; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #09cafa, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #09cafa, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #037c9a; - border-color: #036881; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #c7cfd1 !important; - background: #0384a4 !important; - border-color: #036881 !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #333; - background-color: #e5e5e5; -} - -.wp-core-ui .wp-ui-text-primary { - color: #e5e5e5; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #888; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #888; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #d64e07; -} - -.wp-core-ui .wp-ui-text-notification { - color: #d64e07; -} - -.wp-core-ui .wp-ui-text-icon { - color: #999; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #333; - background-color: #e5e5e5; -} - -.view-switch a.current:before { - color: #e5e5e5; -} - -.view-switch a:hover:before { - color: #d64e07; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #e5e5e5; -} - -#adminmenu a { - color: #333; -} - -#adminmenu div.wp-menu-image:before { - color: #999; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #888; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #ccc; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f5f5f5; - border-bottom-color: #f5f5f5; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #fff; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-right-color: #fff; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #686868; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #686868; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #04a4cc; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #333; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #04a4cc; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-right-color: #f5f5f5; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #888; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #ccc; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #d64e07; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #333; - background: #fff; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #777; -} - -#collapse-menu:hover { - color: #333; -} - -#collapse-button div:after { - color: #999; -} - -#collapse-menu:hover #collapse-button div:after { - color: #555; -} - -/* Admin Bar */ -#wpadminbar { - color: #333; - background: #e5e5e5; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #333; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #999; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #04a4cc; - background: #fff; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #04a4cc; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #ccc; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #fff; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #f7f7f7; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #686868; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #999; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #04a4cc; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #04a4cc; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #999; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #999; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #333; - background: #f7f7f7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #333; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #333; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #333; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #333; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #f7f7f7; - background-color: #f7f7f7; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #333; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #04a4cc; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #686868; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #04a4cc; - border-color: #0490b3; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #04a4cc; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #04a4cc; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #04a4cc; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #04a4cc; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #04a4cc; -} - -.attachment.details .check { - background-color: #04a4cc; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #04a4cc; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #04a4cc; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #04a4cc; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #04a4cc; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #04a4cc; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #04a4cc; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #e5e5e5; -} - -body.more-filters-opened .more-filters { - color: #333; - background-color: #e5e5e5; -} - -body.more-filters-opened .more-filters:before { - color: #333; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #888; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #888; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #888; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #04a4cc; - border-color: #037c9a; - -webkit-box-shadow: inset 0 1px 0 #22cffb, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #22cffb, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #999; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #888; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #fff; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #999; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #04a4cc; -} - -/* temporary fix for admin-bar hover color */ -#wpadminbar .ab-top-menu > li:hover > .ab-item, -#wpadminbar .ab-top-menu > li.hover > .ab-item, -#wpadminbar > #wp-toolbar > #wp-admin-bar-root-default li:hover span.ab-label, -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary li.hover span.ab-label, -#wpadminbar .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #333; -} - -/* Override the theme filter highlight color for this scheme */ -.theme-section.current, -.theme-filter.current { - border-bottom-color: #04a4cc; -} diff --git a/wp-admin/css/colors/light/colors.min.css b/wp-admin/css/colors/light/colors.min.css deleted file mode 100644 index 417b5b9716..0000000000 --- a/wp-admin/css/colors/light/colors.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f5f5f5}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#04a4cc}input[type=radio]:checked:before{background:#04a4cc}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#04a4cc;border-color:#037c9a;color:#fff;-webkit-box-shadow:inset 0 1px 0 #22cffb,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #22cffb,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#0490b3;border-color:#036881;color:#fff;-webkit-box-shadow:inset 0 1px 0 #09cafa;box-shadow:inset 0 1px 0 #09cafa}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #09cafa,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #09cafa,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#037c9a;border-color:#036881;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#c7cfd1!important;background:#0384a4!important;border-color:#036881!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#333;background-color:#e5e5e5}.wp-core-ui .wp-ui-text-primary{color:#e5e5e5}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#888}.wp-core-ui .wp-ui-text-highlight{color:#888}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#d64e07}.wp-core-ui .wp-ui-text-notification{color:#d64e07}.wp-core-ui .wp-ui-text-icon{color:#999}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#333;background-color:#e5e5e5}.view-switch a.current:before{color:#e5e5e5}.view-switch a:hover:before{color:#d64e07}#adminmenu,#adminmenuback,#adminmenuwrap{background:#e5e5e5}#adminmenu a{color:#333}#adminmenu div.wp-menu-image:before{color:#999}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#888}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#ccc}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f5f5f5;border-bottom-color:#f5f5f5}.theme-filter.current,.theme-section.current,.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#04a4cc}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#fff}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-right-color:#fff}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#686868}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#04a4cc}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#333}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#04a4cc}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f5f5f5}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#888}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#ccc}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#d64e07}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#333;background:#fff}#collapse-menu{color:#777}#collapse-menu:hover,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#333}#collapse-button div:after{color:#999}#collapse-menu:hover #collapse-button div:after{color:#555}#wpadminbar{color:#333;background:#e5e5e5}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#999}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#04a4cc;background:#fff}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#04a4cc}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#ccc}#wpadminbar .menupop .ab-sub-wrapper{background:#fff}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#f7f7f7}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#686868}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#999}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#04a4cc}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#999}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#333;background:#f7f7f7}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#333;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#333;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#333;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#333;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#f7f7f7;background-color:#f7f7f7}#wpadminbar #wp-admin-bar-user-info .display-name{color:#333}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#04a4cc}#wpadminbar #wp-admin-bar-user-info .username{color:#686868}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#04a4cc}.wp-pointer .wp-pointer-content h3{background-color:#04a4cc;border-color:#0490b3}.media-item .bar,.media-progress-bar div{background-color:#04a4cc}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #04a4cc;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #04a4cc}.attachment.details .check{background-color:#04a4cc;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #04a4cc;box-shadow:0 0 0 1px #fff,0 0 0 2px #04a4cc}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #04a4cc;box-shadow:0 0 0 1px #fff,0 0 0 3px #04a4cc}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#04a4cc}body.more-filters-opened .more-filters{color:#333;background-color:#e5e5e5}body.more-filters-opened .more-filters:before{color:#333}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#888;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#888;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}#customize-theme-controls .widget-area-select .selected{background-color:#888;color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#999}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#04a4cc;border-color:#037c9a;-webkit-box-shadow:inset 0 1px 0 #22cffb,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #22cffb,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#888}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#fff}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#04a4cc}#wpadminbar .ab-top-menu>li.hover>.ab-item,#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar .ab-top-menu>li:hover>.ab-item,#wpadminbar .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default li:hover span.ab-label,#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary li.hover span.ab-label{color:#333} \ No newline at end of file diff --git a/wp-admin/css/colors/light/colors.scss b/wp-admin/css/colors/light/colors.scss deleted file mode 100644 index ab4230b9db..0000000000 --- a/wp-admin/css/colors/light/colors.scss +++ /dev/null @@ -1,38 +0,0 @@ -$base-color: #e5e5e5; -$icon-color: #999; -$text-color: #333; -$highlight-color: #04a4cc; -$notification-color: #d64e07; - -$body-background: #f5f5f5; - -$menu-highlight-text: #fff; -$menu-highlight-icon: #ccc; -$menu-highlight-background: #888; - -$menu-bubble-text: #fff; -$menu-avatar-frame: #aaa; -$menu-submenu-background: #fff; - -$menu-collapse-text: #777; -$menu-collapse-focus-icon: #555; - -@import "../_admin.scss"; - -/* temporary fix for admin-bar hover color */ -#wpadminbar .ab-top-menu > li:hover > .ab-item, -#wpadminbar .ab-top-menu > li.hover > .ab-item, -#wpadminbar > #wp-toolbar > #wp-admin-bar-root-default li:hover span.ab-label, -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary li.hover span.ab-label, -#wpadminbar .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: $text-color; -} - -/* Override the theme filter highlight color for this scheme */ -.theme-section.current, -.theme-filter.current { - border-bottom-color: $highlight-color; -} diff --git a/wp-admin/css/colors/midnight/colors-rtl.css b/wp-admin/css/colors/midnight/colors-rtl.css deleted file mode 100644 index a54bf44328..0000000000 --- a/wp-admin/css/colors/midnight/colors-rtl.css +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f1f1f1; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #e14d43; -} - -input[type=radio]:checked:before { - background: #e14d43; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #e14d43; - border-color: #d02c21; - color: white; - -webkit-box-shadow: inset 0 1px 0 #ec8b85, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #ec8b85, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #dd382d; - border-color: #ba281e; - color: white; - -webkit-box-shadow: inset 0 1px 0 #e8776f; - box-shadow: inset 0 1px 0 #e8776f; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #e8776f, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #e8776f, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #d02c21; - border-color: #ba281e; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #d1c8c7 !important; - background: #d92e23 !important; - border-color: #ba281e !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #fff; - background-color: #363b3f; -} - -.wp-core-ui .wp-ui-text-primary { - color: #363b3f; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #e14d43; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #e14d43; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #69a8bb; -} - -.wp-core-ui .wp-ui-text-notification { - color: #69a8bb; -} - -.wp-core-ui .wp-ui-text-icon { - color: #f1f2f3; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #fff; - background-color: #363b3f; -} - -.view-switch a.current:before { - color: #363b3f; -} - -.view-switch a:hover:before { - color: #69a8bb; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #363b3f; -} - -#adminmenu a { - color: #fff; -} - -#adminmenu div.wp-menu-image:before { - color: #f1f2f3; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #e14d43; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #fff; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f1f1f1; - border-bottom-color: #f1f1f1; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #26292c; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-left-color: #26292c; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #c3c4c5; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #c3c4c5; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #e14d43; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #fff; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #e14d43; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-left-color: #f1f1f1; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #e14d43; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #fff; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #69a8bb; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #fff; - background: #26292c; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #f1f2f3; -} - -#collapse-menu:hover { - color: #fff; -} - -#collapse-button div:after { - color: #f1f2f3; -} - -#collapse-menu:hover #collapse-button div:after { - color: #fff; -} - -/* Admin Bar */ -#wpadminbar { - color: #fff; - background: #363b3f; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #fff; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #f1f2f3; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #e14d43; - background: #26292c; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #e14d43; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #fff; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #26292c; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #4c4c4d; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #c3c4c5; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #f1f2f3; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #e14d43; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #e14d43; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #f1f2f3; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #f1f2f3; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #fff; - background: #464d52; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #fff; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #464d52; - background-color: #464d52; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #e14d43; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #c3c4c5; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #e14d43; - border-color: #dd382d; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #e14d43; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #e14d43; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #e14d43; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #e14d43; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #e14d43; -} - -.attachment.details .check { - background-color: #e14d43; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #e14d43; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #e14d43; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #e14d43; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #e14d43; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #e14d43; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #e14d43; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #363b3f; -} - -body.more-filters-opened .more-filters { - color: #fff; - background-color: #363b3f; -} - -body.more-filters-opened .more-filters:before { - color: #fff; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #e14d43; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #e14d43; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #e14d43; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #e14d43; - border-color: #d02c21; - -webkit-box-shadow: inset 0 1px 0 #ec8b85, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #ec8b85, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #f1f2f3; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #e14d43; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #26292c; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #f1f2f3; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #e14d43; -} diff --git a/wp-admin/css/colors/midnight/colors-rtl.min.css b/wp-admin/css/colors/midnight/colors-rtl.min.css deleted file mode 100644 index b5acc563a6..0000000000 --- a/wp-admin/css/colors/midnight/colors-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f1f1f1}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#e14d43}input[type=radio]:checked:before{background:#e14d43}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#e14d43;border-color:#d02c21;color:#fff;-webkit-box-shadow:inset 0 1px 0 #ec8b85,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #ec8b85,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#dd382d;border-color:#ba281e;color:#fff;-webkit-box-shadow:inset 0 1px 0 #e8776f;box-shadow:inset 0 1px 0 #e8776f}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #e8776f,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #e8776f,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#d02c21;border-color:#ba281e;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#d1c8c7!important;background:#d92e23!important;border-color:#ba281e!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#363b3f}.wp-core-ui .wp-ui-text-primary{color:#363b3f}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#e14d43}.wp-core-ui .wp-ui-text-highlight{color:#e14d43}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#69a8bb}.wp-core-ui .wp-ui-text-notification{color:#69a8bb}.wp-core-ui .wp-ui-text-icon{color:#f1f2f3}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:#363b3f}.view-switch a.current:before{color:#363b3f}.view-switch a:hover:before{color:#69a8bb}#adminmenu,#adminmenuback,#adminmenuwrap{background:#363b3f}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f1f2f3}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#e14d43}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#26292c}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-left-color:#26292c}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#c3c4c5}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#e14d43}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#e14d43}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f1f1f1}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#e14d43}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#69a8bb}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#26292c}#collapse-button div:after,#collapse-menu{color:#f1f2f3}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar{color:#fff;background:#363b3f}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#f1f2f3}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#e14d43;background:#26292c}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#e14d43}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#26292c}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#4c4c4d}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#c3c4c5}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#f1f2f3}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#e14d43}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#f1f2f3}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:#464d52}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#fff;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#464d52;background-color:#464d52}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#e14d43}#wpadminbar #wp-admin-bar-user-info .username{color:#c3c4c5}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#e14d43}.wp-pointer .wp-pointer-content h3{background-color:#e14d43;border-color:#dd382d}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#e14d43}.media-item .bar,.media-progress-bar div{background-color:#e14d43}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #e14d43;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #e14d43}.attachment.details .check{background-color:#e14d43;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #e14d43;box-shadow:0 0 0 1px #fff,0 0 0 2px #e14d43}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #e14d43;box-shadow:0 0 0 1px #fff,0 0 0 3px #e14d43}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#e14d43}.theme-filter.current,.theme-section.current{border-bottom-color:#363b3f}body.more-filters-opened .more-filters{color:#fff;background-color:#363b3f}#customize-theme-controls .widget-area-select .selected,.widgets-chooser li.widgets-chooser-selected,body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#e14d43;color:#fff}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#f1f2f3}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#e14d43;border-color:#d02c21;-webkit-box-shadow:inset 0 1px 0 #ec8b85,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #ec8b85,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#e14d43}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#26292c}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#e14d43} \ No newline at end of file diff --git a/wp-admin/css/colors/midnight/colors.css b/wp-admin/css/colors/midnight/colors.css deleted file mode 100644 index c9a0b8e375..0000000000 --- a/wp-admin/css/colors/midnight/colors.css +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f1f1f1; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #e14d43; -} - -input[type=radio]:checked:before { - background: #e14d43; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #e14d43; - border-color: #d02c21; - color: white; - -webkit-box-shadow: inset 0 1px 0 #ec8b85, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #ec8b85, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #dd382d; - border-color: #ba281e; - color: white; - -webkit-box-shadow: inset 0 1px 0 #e8776f; - box-shadow: inset 0 1px 0 #e8776f; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #e8776f, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #e8776f, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #d02c21; - border-color: #ba281e; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #d1c8c7 !important; - background: #d92e23 !important; - border-color: #ba281e !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #fff; - background-color: #363b3f; -} - -.wp-core-ui .wp-ui-text-primary { - color: #363b3f; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #e14d43; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #e14d43; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #69a8bb; -} - -.wp-core-ui .wp-ui-text-notification { - color: #69a8bb; -} - -.wp-core-ui .wp-ui-text-icon { - color: #f1f2f3; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #fff; - background-color: #363b3f; -} - -.view-switch a.current:before { - color: #363b3f; -} - -.view-switch a:hover:before { - color: #69a8bb; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #363b3f; -} - -#adminmenu a { - color: #fff; -} - -#adminmenu div.wp-menu-image:before { - color: #f1f2f3; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #e14d43; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #fff; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f1f1f1; - border-bottom-color: #f1f1f1; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #26292c; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-right-color: #26292c; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #c3c4c5; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #c3c4c5; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #e14d43; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #fff; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #e14d43; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-right-color: #f1f1f1; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #e14d43; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #fff; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #69a8bb; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #fff; - background: #26292c; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #f1f2f3; -} - -#collapse-menu:hover { - color: #fff; -} - -#collapse-button div:after { - color: #f1f2f3; -} - -#collapse-menu:hover #collapse-button div:after { - color: #fff; -} - -/* Admin Bar */ -#wpadminbar { - color: #fff; - background: #363b3f; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #fff; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #f1f2f3; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #e14d43; - background: #26292c; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #e14d43; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #fff; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #26292c; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #4c4c4d; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #c3c4c5; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #f1f2f3; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #e14d43; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #e14d43; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #f1f2f3; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #f1f2f3; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #fff; - background: #464d52; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #fff; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #464d52; - background-color: #464d52; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #e14d43; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #c3c4c5; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #e14d43; - border-color: #dd382d; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #e14d43; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #e14d43; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #e14d43; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #e14d43; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #e14d43; -} - -.attachment.details .check { - background-color: #e14d43; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #e14d43; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #e14d43; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #e14d43; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #e14d43; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #e14d43; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #e14d43; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #363b3f; -} - -body.more-filters-opened .more-filters { - color: #fff; - background-color: #363b3f; -} - -body.more-filters-opened .more-filters:before { - color: #fff; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #e14d43; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #e14d43; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #e14d43; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #e14d43; - border-color: #d02c21; - -webkit-box-shadow: inset 0 1px 0 #ec8b85, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #ec8b85, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #f1f2f3; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #e14d43; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #26292c; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #f1f2f3; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #e14d43; -} diff --git a/wp-admin/css/colors/midnight/colors.min.css b/wp-admin/css/colors/midnight/colors.min.css deleted file mode 100644 index 23dac64c29..0000000000 --- a/wp-admin/css/colors/midnight/colors.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f1f1f1}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#e14d43}input[type=radio]:checked:before{background:#e14d43}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#e14d43;border-color:#d02c21;color:#fff;-webkit-box-shadow:inset 0 1px 0 #ec8b85,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #ec8b85,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#dd382d;border-color:#ba281e;color:#fff;-webkit-box-shadow:inset 0 1px 0 #e8776f;box-shadow:inset 0 1px 0 #e8776f}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #e8776f,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #e8776f,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#d02c21;border-color:#ba281e;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#d1c8c7!important;background:#d92e23!important;border-color:#ba281e!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#363b3f}.wp-core-ui .wp-ui-text-primary{color:#363b3f}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#e14d43}.wp-core-ui .wp-ui-text-highlight{color:#e14d43}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#69a8bb}.wp-core-ui .wp-ui-text-notification{color:#69a8bb}.wp-core-ui .wp-ui-text-icon{color:#f1f2f3}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:#363b3f}.view-switch a.current:before{color:#363b3f}.view-switch a:hover:before{color:#69a8bb}#adminmenu,#adminmenuback,#adminmenuwrap{background:#363b3f}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f1f2f3}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#e14d43}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#26292c}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-right-color:#26292c}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#c3c4c5}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#e14d43}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#e14d43}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f1f1f1}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#e14d43}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#69a8bb}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#26292c}#collapse-button div:after,#collapse-menu{color:#f1f2f3}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar{color:#fff;background:#363b3f}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#f1f2f3}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#e14d43;background:#26292c}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#e14d43}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#26292c}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#4c4c4d}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#c3c4c5}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#f1f2f3}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#e14d43}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#f1f2f3}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:#464d52}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#fff;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#464d52;background-color:#464d52}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#e14d43}#wpadminbar #wp-admin-bar-user-info .username{color:#c3c4c5}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#e14d43}.wp-pointer .wp-pointer-content h3{background-color:#e14d43;border-color:#dd382d}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#e14d43}.media-item .bar,.media-progress-bar div{background-color:#e14d43}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #e14d43;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #e14d43}.attachment.details .check{background-color:#e14d43;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #e14d43;box-shadow:0 0 0 1px #fff,0 0 0 2px #e14d43}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #e14d43;box-shadow:0 0 0 1px #fff,0 0 0 3px #e14d43}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#e14d43}.theme-filter.current,.theme-section.current{border-bottom-color:#363b3f}body.more-filters-opened .more-filters{color:#fff;background-color:#363b3f}#customize-theme-controls .widget-area-select .selected,.widgets-chooser li.widgets-chooser-selected,body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#e14d43;color:#fff}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#f1f2f3}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#e14d43;border-color:#d02c21;-webkit-box-shadow:inset 0 1px 0 #ec8b85,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #ec8b85,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#e14d43}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#26292c}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#e14d43} \ No newline at end of file diff --git a/wp-admin/css/colors/midnight/colors.scss b/wp-admin/css/colors/midnight/colors.scss deleted file mode 100644 index 591232b708..0000000000 --- a/wp-admin/css/colors/midnight/colors.scss +++ /dev/null @@ -1,5 +0,0 @@ -$base-color: #363b3f; -$highlight-color: #e14d43; -$notification-color: #69a8bb; - -@import "../_admin.scss"; diff --git a/wp-admin/css/colors/ocean/colors-rtl.css b/wp-admin/css/colors/ocean/colors-rtl.css deleted file mode 100644 index cd056da494..0000000000 --- a/wp-admin/css/colors/ocean/colors-rtl.css +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f1f1f1; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #738e96; -} - -input[type=radio]:checked:before { - background: #738e96; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #9ebaa0; - border-color: #80a583; - color: white; - -webkit-box-shadow: inset 0 1px 0 #cbdacc, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #cbdacc, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #8faf91; - border-color: #719a74; - color: white; - -webkit-box-shadow: inset 0 1px 0 #bccfbd; - box-shadow: inset 0 1px 0 #bccfbd; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #bccfbd, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #bccfbd, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #80a583; - border-color: #719a74; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #c7d1c8 !important; - background: #86a989 !important; - border-color: #719a74 !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #fff; - background-color: #738e96; -} - -.wp-core-ui .wp-ui-text-primary { - color: #738e96; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #9ebaa0; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #9ebaa0; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #aa9d88; -} - -.wp-core-ui .wp-ui-text-notification { - color: #aa9d88; -} - -.wp-core-ui .wp-ui-text-icon { - color: #f2fcff; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #fff; - background-color: #738e96; -} - -.view-switch a.current:before { - color: #738e96; -} - -.view-switch a:hover:before { - color: #aa9d88; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #738e96; -} - -#adminmenu a { - color: #fff; -} - -#adminmenu div.wp-menu-image:before { - color: #f2fcff; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #9ebaa0; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #fff; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f1f1f1; - border-bottom-color: #f1f1f1; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #627c83; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-left-color: #627c83; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #d5dde0; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #d5dde0; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #9ebaa0; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #fff; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #9ebaa0; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-left-color: #f1f1f1; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #9ebaa0; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #fff; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #aa9d88; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #fff; - background: #627c83; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #f2fcff; -} - -#collapse-menu:hover { - color: #fff; -} - -#collapse-button div:after { - color: #f2fcff; -} - -#collapse-menu:hover #collapse-button div:after { - color: #fff; -} - -/* Admin Bar */ -#wpadminbar { - color: #fff; - background: #738e96; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #fff; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #f2fcff; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #9ebaa0; - background: #627c83; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #9ebaa0; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #fff; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #627c83; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #8f9a9e; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #d5dde0; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #f2fcff; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #9ebaa0; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #9ebaa0; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #f2fcff; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #f2fcff; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #fff; - background: #879ea5; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #fff; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #879ea5; - background-color: #879ea5; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #9ebaa0; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #d5dde0; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #9ebaa0; - border-color: #8faf91; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #9ebaa0; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #9ebaa0; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #9ebaa0; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #9ebaa0; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #9ebaa0; -} - -.attachment.details .check { - background-color: #9ebaa0; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #9ebaa0; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #9ebaa0; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #9ebaa0; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #9ebaa0; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #9ebaa0; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #9ebaa0; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #738e96; -} - -body.more-filters-opened .more-filters { - color: #fff; - background-color: #738e96; -} - -body.more-filters-opened .more-filters:before { - color: #fff; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #9ebaa0; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #9ebaa0; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #9ebaa0; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #9ebaa0; - border-color: #80a583; - -webkit-box-shadow: inset 0 1px 0 #cbdacc, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #cbdacc, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #f2fcff; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #9ebaa0; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #627c83; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #f2fcff; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #9ebaa0; -} diff --git a/wp-admin/css/colors/ocean/colors-rtl.min.css b/wp-admin/css/colors/ocean/colors-rtl.min.css deleted file mode 100644 index 223f6a64db..0000000000 --- a/wp-admin/css/colors/ocean/colors-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f1f1f1}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#738e96}input[type=radio]:checked:before{background:#738e96}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#9ebaa0;border-color:#80a583;color:#fff;-webkit-box-shadow:inset 0 1px 0 #cbdacc,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #cbdacc,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#8faf91;border-color:#719a74;color:#fff;-webkit-box-shadow:inset 0 1px 0 #bccfbd;box-shadow:inset 0 1px 0 #bccfbd}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #bccfbd,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #bccfbd,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#80a583;border-color:#719a74;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#c7d1c8!important;background:#86a989!important;border-color:#719a74!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#738e96}.wp-core-ui .wp-ui-text-primary{color:#738e96}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#9ebaa0}.wp-core-ui .wp-ui-text-highlight{color:#9ebaa0}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#aa9d88}.wp-core-ui .wp-ui-text-notification{color:#aa9d88}.wp-core-ui .wp-ui-text-icon{color:#f2fcff}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:#738e96}.view-switch a.current:before{color:#738e96}.view-switch a:hover:before{color:#aa9d88}#adminmenu,#adminmenuback,#adminmenuwrap{background:#738e96}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f2fcff}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#9ebaa0}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#627c83}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-left-color:#627c83}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#d5dde0}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#9ebaa0}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#9ebaa0}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f1f1f1}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#9ebaa0}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#aa9d88}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#627c83}#collapse-button div:after,#collapse-menu{color:#f2fcff}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar{color:#fff;background:#738e96}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#f2fcff}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#9ebaa0;background:#627c83}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#9ebaa0}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#627c83}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#8f9a9e}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#d5dde0}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#f2fcff}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#9ebaa0}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#f2fcff}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:#879ea5}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#fff;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#879ea5;background-color:#879ea5}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#9ebaa0}#wpadminbar #wp-admin-bar-user-info .username{color:#d5dde0}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#9ebaa0}.wp-pointer .wp-pointer-content h3{background-color:#9ebaa0;border-color:#8faf91}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#9ebaa0}.media-item .bar,.media-progress-bar div{background-color:#9ebaa0}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #9ebaa0;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #9ebaa0}.attachment.details .check{background-color:#9ebaa0;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #9ebaa0;box-shadow:0 0 0 1px #fff,0 0 0 2px #9ebaa0}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #9ebaa0;box-shadow:0 0 0 1px #fff,0 0 0 3px #9ebaa0}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#9ebaa0}.theme-filter.current,.theme-section.current{border-bottom-color:#738e96}body.more-filters-opened .more-filters{color:#fff;background-color:#738e96}#customize-theme-controls .widget-area-select .selected,.widgets-chooser li.widgets-chooser-selected,body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#9ebaa0;color:#fff}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#f2fcff}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#9ebaa0;border-color:#80a583;-webkit-box-shadow:inset 0 1px 0 #cbdacc,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #cbdacc,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#9ebaa0}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#627c83}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#9ebaa0} \ No newline at end of file diff --git a/wp-admin/css/colors/ocean/colors.css b/wp-admin/css/colors/ocean/colors.css deleted file mode 100644 index 0ab239dfdd..0000000000 --- a/wp-admin/css/colors/ocean/colors.css +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f1f1f1; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #738e96; -} - -input[type=radio]:checked:before { - background: #738e96; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #9ebaa0; - border-color: #80a583; - color: white; - -webkit-box-shadow: inset 0 1px 0 #cbdacc, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #cbdacc, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #8faf91; - border-color: #719a74; - color: white; - -webkit-box-shadow: inset 0 1px 0 #bccfbd; - box-shadow: inset 0 1px 0 #bccfbd; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #bccfbd, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #bccfbd, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #80a583; - border-color: #719a74; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #c7d1c8 !important; - background: #86a989 !important; - border-color: #719a74 !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #fff; - background-color: #738e96; -} - -.wp-core-ui .wp-ui-text-primary { - color: #738e96; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #9ebaa0; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #9ebaa0; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #aa9d88; -} - -.wp-core-ui .wp-ui-text-notification { - color: #aa9d88; -} - -.wp-core-ui .wp-ui-text-icon { - color: #f2fcff; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #fff; - background-color: #738e96; -} - -.view-switch a.current:before { - color: #738e96; -} - -.view-switch a:hover:before { - color: #aa9d88; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #738e96; -} - -#adminmenu a { - color: #fff; -} - -#adminmenu div.wp-menu-image:before { - color: #f2fcff; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #9ebaa0; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #fff; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f1f1f1; - border-bottom-color: #f1f1f1; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #627c83; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-right-color: #627c83; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #d5dde0; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #d5dde0; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #9ebaa0; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #fff; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #9ebaa0; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-right-color: #f1f1f1; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #9ebaa0; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #fff; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #aa9d88; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #fff; - background: #627c83; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #f2fcff; -} - -#collapse-menu:hover { - color: #fff; -} - -#collapse-button div:after { - color: #f2fcff; -} - -#collapse-menu:hover #collapse-button div:after { - color: #fff; -} - -/* Admin Bar */ -#wpadminbar { - color: #fff; - background: #738e96; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #fff; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #f2fcff; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #9ebaa0; - background: #627c83; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #9ebaa0; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #fff; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #627c83; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #8f9a9e; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #d5dde0; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #f2fcff; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #9ebaa0; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #9ebaa0; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #f2fcff; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #f2fcff; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #fff; - background: #879ea5; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #fff; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #879ea5; - background-color: #879ea5; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #9ebaa0; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #d5dde0; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #9ebaa0; - border-color: #8faf91; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #9ebaa0; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #9ebaa0; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #9ebaa0; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #9ebaa0; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #9ebaa0; -} - -.attachment.details .check { - background-color: #9ebaa0; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #9ebaa0; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #9ebaa0; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #9ebaa0; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #9ebaa0; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #9ebaa0; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #9ebaa0; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #738e96; -} - -body.more-filters-opened .more-filters { - color: #fff; - background-color: #738e96; -} - -body.more-filters-opened .more-filters:before { - color: #fff; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #9ebaa0; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #9ebaa0; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #9ebaa0; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #9ebaa0; - border-color: #80a583; - -webkit-box-shadow: inset 0 1px 0 #cbdacc, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #cbdacc, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #f2fcff; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #9ebaa0; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #627c83; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #f2fcff; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #9ebaa0; -} diff --git a/wp-admin/css/colors/ocean/colors.min.css b/wp-admin/css/colors/ocean/colors.min.css deleted file mode 100644 index c3d5eec01c..0000000000 --- a/wp-admin/css/colors/ocean/colors.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f1f1f1}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#738e96}input[type=radio]:checked:before{background:#738e96}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#9ebaa0;border-color:#80a583;color:#fff;-webkit-box-shadow:inset 0 1px 0 #cbdacc,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #cbdacc,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#8faf91;border-color:#719a74;color:#fff;-webkit-box-shadow:inset 0 1px 0 #bccfbd;box-shadow:inset 0 1px 0 #bccfbd}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #bccfbd,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #bccfbd,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#80a583;border-color:#719a74;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#c7d1c8!important;background:#86a989!important;border-color:#719a74!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#738e96}.wp-core-ui .wp-ui-text-primary{color:#738e96}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#9ebaa0}.wp-core-ui .wp-ui-text-highlight{color:#9ebaa0}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#aa9d88}.wp-core-ui .wp-ui-text-notification{color:#aa9d88}.wp-core-ui .wp-ui-text-icon{color:#f2fcff}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:#738e96}.view-switch a.current:before{color:#738e96}.view-switch a:hover:before{color:#aa9d88}#adminmenu,#adminmenuback,#adminmenuwrap{background:#738e96}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f2fcff}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#9ebaa0}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#627c83}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-right-color:#627c83}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#d5dde0}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#9ebaa0}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#9ebaa0}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f1f1f1}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#9ebaa0}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#aa9d88}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#627c83}#collapse-button div:after,#collapse-menu{color:#f2fcff}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar{color:#fff;background:#738e96}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#f2fcff}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#9ebaa0;background:#627c83}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#9ebaa0}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#627c83}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#8f9a9e}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#d5dde0}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#f2fcff}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#9ebaa0}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#f2fcff}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:#879ea5}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#fff;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#879ea5;background-color:#879ea5}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#9ebaa0}#wpadminbar #wp-admin-bar-user-info .username{color:#d5dde0}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#9ebaa0}.wp-pointer .wp-pointer-content h3{background-color:#9ebaa0;border-color:#8faf91}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#9ebaa0}.media-item .bar,.media-progress-bar div{background-color:#9ebaa0}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #9ebaa0;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #9ebaa0}.attachment.details .check{background-color:#9ebaa0;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #9ebaa0;box-shadow:0 0 0 1px #fff,0 0 0 2px #9ebaa0}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #9ebaa0;box-shadow:0 0 0 1px #fff,0 0 0 3px #9ebaa0}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#9ebaa0}.theme-filter.current,.theme-section.current{border-bottom-color:#738e96}body.more-filters-opened .more-filters{color:#fff;background-color:#738e96}#customize-theme-controls .widget-area-select .selected,.widgets-chooser li.widgets-chooser-selected,body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#9ebaa0;color:#fff}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#f2fcff}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#9ebaa0;border-color:#80a583;-webkit-box-shadow:inset 0 1px 0 #cbdacc,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #cbdacc,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#9ebaa0}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#627c83}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#9ebaa0} \ No newline at end of file diff --git a/wp-admin/css/colors/ocean/colors.scss b/wp-admin/css/colors/ocean/colors.scss deleted file mode 100644 index d52339c6fe..0000000000 --- a/wp-admin/css/colors/ocean/colors.scss +++ /dev/null @@ -1,8 +0,0 @@ -$base-color: #738e96; -$icon-color: #f2fcff; -$highlight-color: #9ebaa0; -$notification-color: #aa9d88; - -$form-checked: $base-color; - -@import "../_admin.scss"; diff --git a/wp-admin/css/colors/sunrise/colors-rtl.css b/wp-admin/css/colors/sunrise/colors-rtl.css deleted file mode 100644 index cd774e3d83..0000000000 --- a/wp-admin/css/colors/sunrise/colors-rtl.css +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f1f1f1; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #dd823b; -} - -input[type=radio]:checked:before { - background: #dd823b; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #dd823b; - border-color: #c36922; - color: white; - -webkit-box-shadow: inset 0 1px 0 #e8ac7c, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #e8ac7c, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #d97426; - border-color: #ad5d1e; - color: white; - -webkit-box-shadow: inset 0 1px 0 #e59e66; - box-shadow: inset 0 1px 0 #e59e66; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #e59e66, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #e59e66, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #c36922; - border-color: #ad5d1e; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #d1cbc7 !important; - background: #cc6d23 !important; - border-color: #ad5d1e !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #fff; - background-color: #cf4944; -} - -.wp-core-ui .wp-ui-text-primary { - color: #cf4944; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #dd823b; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #dd823b; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #ccaf0b; -} - -.wp-core-ui .wp-ui-text-notification { - color: #ccaf0b; -} - -.wp-core-ui .wp-ui-text-icon { - color: #f3f1f1; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #fff; - background-color: #cf4944; -} - -.view-switch a.current:before { - color: #cf4944; -} - -.view-switch a:hover:before { - color: #ccaf0b; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #cf4944; -} - -#adminmenu a { - color: #fff; -} - -#adminmenu div.wp-menu-image:before { - color: #f3f1f1; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #dd823b; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #fff; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f1f1f1; - border-bottom-color: #f1f1f1; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #be3631; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-left-color: #be3631; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #f1c8c7; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #f1c8c7; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #f7e3d3; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #fff; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #f7e3d3; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-left-color: #f1f1f1; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #dd823b; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #fff; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #ccaf0b; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #fff; - background: #be3631; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #f3f1f1; -} - -#collapse-menu:hover { - color: #fff; -} - -#collapse-button div:after { - color: #f3f1f1; -} - -#collapse-menu:hover #collapse-button div:after { - color: #fff; -} - -/* Admin Bar */ -#wpadminbar { - color: #fff; - background: #cf4944; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #fff; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #f3f1f1; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #f7e3d3; - background: #be3631; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #f7e3d3; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #fff; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #be3631; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #cf6b67; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #f1c8c7; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #f3f1f1; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #f7e3d3; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #f7e3d3; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #f3f1f1; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #f3f1f1; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #fff; - background: #d66560; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #fff; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #d66560; - background-color: #d66560; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #f7e3d3; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #f1c8c7; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #dd823b; - border-color: #d97426; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #dd823b; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #dd823b; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #dd823b; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #dd823b; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #dd823b; -} - -.attachment.details .check { - background-color: #dd823b; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #dd823b; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #dd823b; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #dd823b; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #dd823b; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #dd823b; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #dd823b; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #cf4944; -} - -body.more-filters-opened .more-filters { - color: #fff; - background-color: #cf4944; -} - -body.more-filters-opened .more-filters:before { - color: #fff; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #dd823b; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #dd823b; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #dd823b; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #dd823b; - border-color: #c36922; - -webkit-box-shadow: inset 0 1px 0 #e8ac7c, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #e8ac7c, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #f3f1f1; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #dd823b; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #be3631; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #f3f1f1; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #dd823b; -} diff --git a/wp-admin/css/colors/sunrise/colors-rtl.min.css b/wp-admin/css/colors/sunrise/colors-rtl.min.css deleted file mode 100644 index ab5d2553b0..0000000000 --- a/wp-admin/css/colors/sunrise/colors-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f1f1f1}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#dd823b}input[type=radio]:checked:before{background:#dd823b}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#dd823b;border-color:#c36922;color:#fff;-webkit-box-shadow:inset 0 1px 0 #e8ac7c,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #e8ac7c,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#d97426;border-color:#ad5d1e;color:#fff;-webkit-box-shadow:inset 0 1px 0 #e59e66;box-shadow:inset 0 1px 0 #e59e66}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #e59e66,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #e59e66,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#c36922;border-color:#ad5d1e;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#d1cbc7!important;background:#cc6d23!important;border-color:#ad5d1e!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#cf4944}.wp-core-ui .wp-ui-text-primary{color:#cf4944}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#dd823b}.wp-core-ui .wp-ui-text-highlight{color:#dd823b}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#ccaf0b}.wp-core-ui .wp-ui-text-notification{color:#ccaf0b}.wp-core-ui .wp-ui-text-icon{color:#f3f1f1}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:#cf4944}.view-switch a.current:before{color:#cf4944}.view-switch a:hover:before{color:#ccaf0b}#adminmenu,#adminmenuback,#adminmenuwrap{background:#cf4944}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f3f1f1}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#dd823b}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#be3631}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-left-color:#be3631}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#f1c8c7}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#f7e3d3}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#f7e3d3}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f1f1f1}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#dd823b}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#ccaf0b}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#be3631}#collapse-button div:after,#collapse-menu{color:#f3f1f1}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar{color:#fff;background:#cf4944}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#f3f1f1}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#f7e3d3;background:#be3631}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#f7e3d3}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#be3631}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#cf6b67}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#f1c8c7}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#f3f1f1}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#f7e3d3}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#f3f1f1}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:#d66560}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#fff;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#d66560;background-color:#d66560}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#f7e3d3}#wpadminbar #wp-admin-bar-user-info .username{color:#f1c8c7}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#dd823b}.wp-pointer .wp-pointer-content h3{background-color:#dd823b;border-color:#d97426}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#dd823b}.media-item .bar,.media-progress-bar div{background-color:#dd823b}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #dd823b;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #dd823b}.attachment.details .check{background-color:#dd823b;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #dd823b;box-shadow:0 0 0 1px #fff,0 0 0 2px #dd823b}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #dd823b;box-shadow:0 0 0 1px #fff,0 0 0 3px #dd823b}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#dd823b}.theme-filter.current,.theme-section.current{border-bottom-color:#cf4944}body.more-filters-opened .more-filters{color:#fff;background-color:#cf4944}#customize-theme-controls .widget-area-select .selected,.widgets-chooser li.widgets-chooser-selected,body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#dd823b;color:#fff}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#f3f1f1}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#dd823b;border-color:#c36922;-webkit-box-shadow:inset 0 1px 0 #e8ac7c,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #e8ac7c,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#dd823b}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#be3631}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#dd823b} \ No newline at end of file diff --git a/wp-admin/css/colors/sunrise/colors.css b/wp-admin/css/colors/sunrise/colors.css deleted file mode 100644 index 6828a96021..0000000000 --- a/wp-admin/css/colors/sunrise/colors.css +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Button mixin- creates 3d-ish button effect with correct - * highlights/shadows, based on a base color. - */ -html { - background: #f1f1f1; -} - -/* Links */ -a { - color: #0073aa; -} - -a:hover, -a:active, -a:focus { - color: #0096dd; -} - -#media-upload a.del-link:hover, -div.dashboard-widget-submit input:hover, -.subsubsub a:hover, -.subsubsub a.current:hover { - color: #0096dd; -} - -/* Forms */ -input[type=checkbox]:checked:before { - color: #dd823b; -} - -input[type=radio]:checked:before { - background: #dd823b; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #0096dd; -} - -/* Core UI */ -.wp-core-ui .button-primary { - background: #dd823b; - border-color: #c36922; - color: white; - -webkit-box-shadow: inset 0 1px 0 #e8ac7c, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #e8ac7c, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary:focus { - background: #d97426; - border-color: #ad5d1e; - color: white; - -webkit-box-shadow: inset 0 1px 0 #e59e66; - box-shadow: inset 0 1px 0 #e59e66; -} - -.wp-core-ui .button-primary:focus { - -webkit-box-shadow: inset 0 1px 0 #e59e66, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 1px 0 #e59e66, 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary:active { - background: #c36922; - border-color: #ad5d1e; - color: white; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary.button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #d1cbc7 !important; - background: #cc6d23 !important; - border-color: #ad5d1e !important; - text-shadow: none !important; -} - -.wp-core-ui .wp-ui-primary { - color: #fff; - background-color: #cf4944; -} - -.wp-core-ui .wp-ui-text-primary { - color: #cf4944; -} - -.wp-core-ui .wp-ui-highlight { - color: #fff; - background-color: #dd823b; -} - -.wp-core-ui .wp-ui-text-highlight { - color: #dd823b; -} - -.wp-core-ui .wp-ui-notification { - color: #fff; - background-color: #ccaf0b; -} - -.wp-core-ui .wp-ui-text-notification { - color: #ccaf0b; -} - -.wp-core-ui .wp-ui-text-icon { - color: #f3f1f1; -} - -/* List tables */ -.wrap .add-new-h2:hover, .wrap .page-title-action:hover, -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - color: #fff; - background-color: #cf4944; -} - -.view-switch a.current:before { - color: #cf4944; -} - -.view-switch a:hover:before { - color: #ccaf0b; -} - -/* Admin Menu */ -#adminmenuback, -#adminmenuwrap, -#adminmenu { - background: #cf4944; -} - -#adminmenu a { - color: #fff; -} - -#adminmenu div.wp-menu-image:before { - color: #f3f1f1; -} - -#adminmenu a:hover, -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - color: #fff; - background-color: #dd823b; -} - -#adminmenu li.menu-top:hover div.wp-menu-image:before, -#adminmenu li.opensub > a.menu-top div.wp-menu-image:before { - color: #fff; -} - -/* Active tabs use a bottom border color that matches the page background color. */ -.about-wrap h2 .nav-tab-active, -.nav-tab-active, -.nav-tab-active:hover { - background-color: #f1f1f1; - border-bottom-color: #f1f1f1; -} - -/* Admin Menu: submenu */ -#adminmenu .wp-submenu, -#adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu { - background: #be3631; -} - -#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { - border-right-color: #be3631; -} - -#adminmenu .wp-submenu .wp-submenu-head { - color: #f1c8c7; -} - -#adminmenu .wp-submenu a, -#adminmenu .wp-has-current-submenu .wp-submenu a, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a { - color: #f1c8c7; -} - -#adminmenu .wp-submenu a:focus, -#adminmenu .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu .wp-submenu a:focus, -#adminmenu .wp-has-current-submenu .wp-submenu a:hover, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, -.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { - color: #f7e3d3; -} - -/* Admin Menu: current */ -#adminmenu .wp-submenu li.current a, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #fff; -} - -#adminmenu .wp-submenu li.current a:hover, -#adminmenu .wp-submenu li.current a:focus, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, -#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, -#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { - color: #f7e3d3; -} - -ul#adminmenu a.wp-has-current-submenu:after, -ul#adminmenu > li.current > a.current:after { - border-right-color: #f1f1f1; -} - -#adminmenu li.current a.menu-top, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, -.folded #adminmenu li.current.menu-top { - color: #fff; - background: #dd823b; -} - -#adminmenu li.wp-has-current-submenu div.wp-menu-image:before, -#adminmenu a.current:hover div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, -#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, -#adminmenu li:hover div.wp-menu-image:before, -#adminmenu li a:focus div.wp-menu-image:before, -#adminmenu li.opensub div.wp-menu-image:before, -.ie8 #adminmenu li.opensub div.wp-menu-image:before { - color: #fff; -} - -/* Admin Menu: bubble */ -#adminmenu .awaiting-mod, -#adminmenu .update-plugins { - color: #fff; - background: #ccaf0b; -} - -#adminmenu li.current a .awaiting-mod, -#adminmenu li a.wp-has-current-submenu .update-plugins, -#adminmenu li:hover a .awaiting-mod, -#adminmenu li.menu-top:hover > a .update-plugins { - color: #fff; - background: #be3631; -} - -/* Admin Menu: collapse button */ -#collapse-menu { - color: #f3f1f1; -} - -#collapse-menu:hover { - color: #fff; -} - -#collapse-button div:after { - color: #f3f1f1; -} - -#collapse-menu:hover #collapse-button div:after { - color: #fff; -} - -/* Admin Bar */ -#wpadminbar { - color: #fff; - background: #cf4944; -} - -#wpadminbar .ab-item, -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #fff; -} - -#wpadminbar .ab-icon, -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar .ab-item:after { - color: #f3f1f1; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, -#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { - color: #f7e3d3; - background: #be3631; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #f7e3d3; -} - -#wpadminbar:not(.mobile) li:hover .ab-icon:before, -#wpadminbar:not(.mobile) li:hover .ab-item:before, -#wpadminbar:not(.mobile) li:hover .ab-item:after, -#wpadminbar:not(.mobile) li:hover #adminbarsearch:before { - color: #fff; -} - -/* Admin Bar: submenu */ -#wpadminbar .menupop .ab-sub-wrapper { - background: #be3631; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #cf6b67; -} - -#wpadminbar .ab-submenu .ab-item, -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #f1c8c7; -} - -#wpadminbar .quicklinks li .blavatar, -#wpadminbar .menupop .menupop > .ab-item:before { - color: #f3f1f1; -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #f7e3d3; -} - -#wpadminbar .quicklinks li a:hover .blavatar, -#wpadminbar .menupop .menupop > .ab-item:hover:before, -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #f7e3d3; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #f3f1f1; -} - -/* Admin Bar: search */ -#wpadminbar #adminbarsearch:before { - color: #f3f1f1; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - color: #fff; - background: #d66560; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #fff; - opacity: 0.7; -} - -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #fff; - opacity: 0.7; -} - -/* Admin Bar: my account */ -#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - border-color: #d66560; - background-color: #d66560; -} - -#wpadminbar #wp-admin-bar-user-info .display-name { - color: #fff; -} - -#wpadminbar #wp-admin-bar-user-info a:hover .display-name { - color: #f7e3d3; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #f1c8c7; -} - -/* Pointers */ -.wp-pointer .wp-pointer-content h3 { - background-color: #dd823b; - border-color: #d97426; -} - -.wp-pointer .wp-pointer-content h3:before { - color: #dd823b; -} - -.wp-pointer.wp-pointer-top .wp-pointer-arrow, -.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow, -.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { - border-bottom-color: #dd823b; -} - -/* Media */ -.media-item .bar, -.media-progress-bar div { - background-color: #dd823b; -} - -.details.attachment { - -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #dd823b; - box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #dd823b; -} - -.attachment.details .check { - background-color: #dd823b; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #dd823b; - box-shadow: 0 0 0 1px #fff, 0 0 0 2px #dd823b; -} - -.media-selection .attachment.selection.details .thumbnail { - -webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #dd823b; - box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #dd823b; -} - -/* Themes */ -.theme-browser .theme.active .theme-name, -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - background: #dd823b; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - color: #dd823b; -} - -.theme-section.current, -.theme-filter.current { - border-bottom-color: #cf4944; -} - -body.more-filters-opened .more-filters { - color: #fff; - background-color: #cf4944; -} - -body.more-filters-opened .more-filters:before { - color: #fff; -} - -body.more-filters-opened .more-filters:hover, -body.more-filters-opened .more-filters:focus { - background-color: #dd823b; - color: #fff; -} - -body.more-filters-opened .more-filters:hover:before, -body.more-filters-opened .more-filters:focus:before { - color: #fff; -} - -/* Widgets */ -.widgets-chooser li.widgets-chooser-selected { - background-color: #dd823b; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - color: #fff; -} - -/* Customize */ -#customize-theme-controls .widget-area-select .selected { - background-color: #dd823b; - color: #fff; -} - -/* jQuery UI Slider */ -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #dd823b; - border-color: #c36922; - -webkit-box-shadow: inset 0 1px 0 #e8ac7c, 0 1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 1px 0 #e8ac7c, 0 1px 0 rgba(0, 0, 0, 0.15); -} - -/* Responsive Component */ -div#wp-responsive-toggle a:before { - color: #f3f1f1; -} - -.wp-responsive-open div#wp-responsive-toggle a { - border-color: transparent; - background: #dd823b; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #be3631; -} - -.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { - color: #f3f1f1; -} - -/* TinyMCE */ -.mce-container.mce-menu .mce-menu-item:hover, -.mce-container.mce-menu .mce-menu-item.mce-selected, -.mce-container.mce-menu .mce-menu-item:focus, -.mce-container.mce-menu .mce-menu-item-normal.mce-active, -.mce-container.mce-menu .mce-menu-item-preview.mce-active { - background: #dd823b; -} diff --git a/wp-admin/css/colors/sunrise/colors.min.css b/wp-admin/css/colors/sunrise/colors.min.css deleted file mode 100644 index 7f60455bcc..0000000000 --- a/wp-admin/css/colors/sunrise/colors.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#f1f1f1}a{color:#0073aa}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,a:active,a:focus,a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:#dd823b}input[type=radio]:checked:before{background:#dd823b}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:#dd823b;border-color:#c36922;color:#fff;-webkit-box-shadow:inset 0 1px 0 #e8ac7c,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #e8ac7c,0 1px 0 rgba(0,0,0,.15)}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#d97426;border-color:#ad5d1e;color:#fff;-webkit-box-shadow:inset 0 1px 0 #e59e66;box-shadow:inset 0 1px 0 #e59e66}.wp-core-ui .button-primary:focus{-webkit-box-shadow:inset 0 1px 0 #e59e66,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 #e59e66,0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary:active{background:#c36922;border-color:#ad5d1e;color:#fff;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#d1cbc7!important;background:#cc6d23!important;border-color:#ad5d1e!important;text-shadow:none!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#cf4944}.wp-core-ui .wp-ui-text-primary{color:#cf4944}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#dd823b}.wp-core-ui .wp-ui-text-highlight{color:#dd823b}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#ccaf0b}.wp-core-ui .wp-ui-text-notification{color:#ccaf0b}.wp-core-ui .wp-ui-text-icon{color:#f3f1f1}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover,.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:#cf4944}.view-switch a.current:before{color:#cf4944}.view-switch a:hover:before{color:#ccaf0b}#adminmenu,#adminmenuback,#adminmenuwrap{background:#cf4944}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f3f1f1}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#dd823b}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap h2 .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:#be3631}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-right-color:#be3631}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu .wp-submenu-head,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#f1c8c7}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:#f7e3d3}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#f7e3d3}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f1f1f1}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#dd823b}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before,.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .update-plugins{color:#fff;background:#ccaf0b}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#be3631}#collapse-button div:after,#collapse-menu{color:#f3f1f1}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after,#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar{color:#fff;background:#cf4944}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#f3f1f1}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#f7e3d3;background:#be3631}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#f7e3d3}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#be3631}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#cf6b67}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#f1c8c7}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#f3f1f1}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#f7e3d3}#wpadminbar #adminbarsearch:before,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#f3f1f1}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:#d66560}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#fff;opacity:.7}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#fff;opacity:.7}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:#d66560;background-color:#d66560}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#f7e3d3}#wpadminbar #wp-admin-bar-user-info .username{color:#f1c8c7}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after,.wp-pointer .wp-pointer-content h3:before{color:#dd823b}.wp-pointer .wp-pointer-content h3{background-color:#dd823b;border-color:#d97426}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#dd823b}.media-item .bar,.media-progress-bar div{background-color:#dd823b}.details.attachment{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #dd823b;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #dd823b}.attachment.details .check{background-color:#dd823b;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #dd823b;box-shadow:0 0 0 1px #fff,0 0 0 2px #dd823b}.media-selection .attachment.selection.details .thumbnail{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #dd823b;box-shadow:0 0 0 1px #fff,0 0 0 3px #dd823b}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#dd823b}.theme-filter.current,.theme-section.current{border-bottom-color:#cf4944}body.more-filters-opened .more-filters{color:#fff;background-color:#cf4944}#customize-theme-controls .widget-area-select .selected,.widgets-chooser li.widgets-chooser-selected,body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#dd823b;color:#fff}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,div#wp-responsive-toggle a:before{color:#f3f1f1}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#dd823b;border-color:#c36922;-webkit-box-shadow:inset 0 1px 0 #e8ac7c,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #e8ac7c,0 1px 0 rgba(0,0,0,.15)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#dd823b}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#be3631}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#dd823b} \ No newline at end of file diff --git a/wp-admin/css/colors/sunrise/colors.scss b/wp-admin/css/colors/sunrise/colors.scss deleted file mode 100644 index 5dd8d82fc1..0000000000 --- a/wp-admin/css/colors/sunrise/colors.scss +++ /dev/null @@ -1,6 +0,0 @@ -$base-color: #cf4944; -$highlight-color: #dd823b; -$notification-color: #ccaf0b; -$menu-submenu-focus-text: lighten( $highlight-color, 35% ); - -@import "../_admin.scss"; diff --git a/wp-admin/css/common-rtl.css b/wp-admin/css/common-rtl.css deleted file mode 100644 index b009875106..0000000000 --- a/wp-admin/css/common-rtl.css +++ /dev/null @@ -1,3453 +0,0 @@ -/* 2 column liquid layout */ -#wpwrap { - height: auto; - min-height: 100%; - width: 100%; - position: relative; - -webkit-font-smoothing: subpixel-antialiased; -} - -#wpcontent { - height: 100%; - padding-right: 20px; -} - -#wpcontent, -#wpfooter { - margin-right: 160px; -} - -.folded #wpcontent, -.folded #wpfooter { - margin-right: 36px; -} - -#wpbody-content { - padding-bottom: 65px; - float: right; - width: 100%; - overflow: visible !important; -} - -/* inner 2 column liquid layout */ - -.inner-sidebar { - float: left; - clear: left; - display: none; - width: 281px; - position: relative; -} - -.columns-2 .inner-sidebar { - margin-left: auto; - width: 286px; - display: block; -} - -.inner-sidebar #side-sortables, -.columns-2 .inner-sidebar #side-sortables { - min-height: 300px; - width: 280px; - padding: 0; -} - -.has-right-sidebar .inner-sidebar { - display: block; -} - -.has-right-sidebar #post-body { - float: right; - clear: right; - width: 100%; - margin-left: -2000px; -} - -.has-right-sidebar #post-body-content { - margin-left: 300px; - float: none; - width: auto; -} - -/* 2 columns main area */ - -#col-container, -#col-left, -#col-right { - overflow: hidden; - padding: 0; - margin: 0; -} - -#col-left { - width: 35%; -} - -#col-right { - float: left; - clear: left; - width: 65%; -} - -.col-wrap { - padding: 0 7px; -} - -/* utility classes */ -.alignleft { - float: right; -} - -.alignright { - float: left; -} - -.textleft { - text-align: right; -} - -.textright { - text-align: left; -} - -.clear { - clear: both; -} - -/* Hide visually but not from screen readers */ -.screen-reader-text, -.screen-reader-text span, -.ui-helper-hidden-accessible { - position: absolute; - margin: -1px; - padding: 0; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(0 0 0 0); - border: 0; - word-wrap: normal !important; /* many screen reader and browser combinations announce broken words as they would appear visually */ -} - -.screen-reader-shortcut { - position: absolute; - top: -1000em; -} - -.screen-reader-shortcut:focus { - right: 6px; - top: -25px; - height: auto; - width: auto; - display: block; - font-size: 14px; - font-weight: 600; - padding: 15px 23px 14px; - background: #f1f1f1; - color: #21759b; - z-index: 100000; - line-height: normal; - -webkit-box-shadow: 0 0 2px 2px rgba(0,0,0,.6); - box-shadow: 0 0 2px 2px rgba(0,0,0,.6); - text-decoration: none; - outline: none; -} - -.hidden, -.js .closed .inside, -.js .hide-if-js, -.no-js .hide-if-no-js, -.js.wp-core-ui .hide-if-js, -.js .wp-core-ui .hide-if-js, -.no-js.wp-core-ui .hide-if-no-js, -.no-js .wp-core-ui .hide-if-no-js { - display: none; -} - -/* @todo: Take a second look. Large chunks of shared color, from the colors.css merge */ -.widget-top, -.menu-item-handle, -.widget-inside, -#menu-settings-column .accordion-container, -#menu-management .menu-edit, -.manage-menus, -table.widefat, -.stuffbox, -p.popular-tags, -.widgets-holder-wrap, -.wp-editor-container, -.popular-tags, -.feature-filter, -.imgedit-group, -.comment-ays { - border: 1px solid #e5e5e5; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); -} - -table.widefat, -.wp-editor-container, -.stuffbox, -p.popular-tags, -.widgets-holder-wrap, -.popular-tags, -.feature-filter, -.imgedit-group, -.comment-ays { - background: #fff; -} - -/* general */ -html, -body { - height: 100%; - margin: 0; - padding: 0; -} - -html { - background: #f1f1f1; -} - -body { - color: #444; - font-family: "Open Sans", sans-serif; - font-size: 13px; - line-height: 1.4em; - min-width: 600px; -} - -body.iframe { - min-width: 0; - padding-top: 1px; -} - -body.modal-open { - overflow: hidden; -} - -body.mobile.modal-open #wpwrap { - overflow: hidden; - position: fixed; - height: 100%; -} - -iframe, -img { - border: 0; -} - -td { - font-family: inherit; - font-size: inherit; - font-weight: inherit; - line-height: inherit; -} - -a { - color: #0073aa; - -webkit-transition-property: border, background, color; - transition-property: border, background, color; - -webkit-transition-duration: .05s; - transition-duration: .05s; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; -} - -a, -div { - outline: 0; -} - -a:hover, -a:active { - color: #00a0d2; -} - -a:focus, -a:focus .media-icon img { - color: #124964; - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.ie8 a:focus { - outline: #5b9dd9 solid 1px; -} - -#adminmenu a:focus, -.screen-reader-text:focus { - -webkit-box-shadow: none; - box-shadow: none; - outline: none; -} - -blockquote, -q { - quotes: none; -} - -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ''; - content: none; -} - -p { - font-size: 13px; - line-height: 1.5; - margin: 1em 0; -} - -blockquote { - margin: 1em; -} - -li, -dd { - margin-bottom: 6px; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - display: block; - font-weight: 600; -} - -h1 { - font-size: 2em; - margin: .67em 0; -} - -.wrap > h1, -h2 { - color: #23282d; - font-size: 1.5em; - margin: .83em 0; - font-weight: 400; -} - -h3 { - color: #23282d; - font-size: 1.3em; - margin: 1em 0; -} - -h4 { - font-size: 1em; - margin: 1.33em 0; -} - -h5 { - font-size: 0.83em; - margin: 1.67em 0; -} - -h6 { - font-size: 0.67em; - margin: 2.33em 0; -} - -ul, -ol { - padding: 0; -} - -ul { - list-style: none; -} - -ol { - list-style-type: decimal; - margin-right: 2em; -} - -ul.ul-disc { - list-style: disc outside; -} - -ul.ul-square { - list-style: square outside; -} - -ol.ol-decimal { - list-style: decimal outside; -} - -ul.ul-disc, -ul.ul-square, -ol.ol-decimal { - margin-right: 1.8em; -} - -ul.ul-disc > li, -ul.ul-square > li, -ol.ol-decimal > li { - margin: 0 0 0.5em; -} - -/* rtl:ignore */ -.ltr { - direction: ltr; -} - -/* rtl:ignore */ -.code, -code { - font-family: Consolas, Monaco, monospace; - direction: ltr; - unicode-bidi: embed; -} - -kbd, -code { - padding: 3px 5px 2px 5px; - margin: 0 1px; - background: #eaeaea; - background: rgba(0,0,0,0.07); - font-size: 13px; -} - -.subsubsub { - list-style: none; - margin: 8px 0 0; - padding: 0; - font-size: 13px; - float: right; - color: #666; -} - -.subsubsub a { - line-height: 2; - padding: .2em; - text-decoration: none; -} - -.subsubsub a .count, -.subsubsub a.current .count { - color: #999; - font-weight: normal; -} - -.subsubsub a.current { - font-weight: 600; - border: none; -} - -.subsubsub li { - display: inline-block; - margin: 0; - padding: 0; - white-space: nowrap; -} - -/* .widefat - main style for tables */ -.widefat { - border-spacing: 0; - width: 100%; - clear: both; - margin: 0; -} - -.widefat * { - word-wrap: break-word; -} - -.widefat a { - text-decoration: none; -} - -.widefat td, -.widefat th { - padding: 8px 10px; -} - -.widefat thead th, -.widefat thead td { - border-bottom: 1px solid #e1e1e1; -} - -.widefat tfoot th, -.widefat tfoot td { - border-top: 1px solid #e1e1e1; - border-bottom: none; -} - -.widefat .no-items td { - border-bottom-width: 0; -} - -.widefat td { - vertical-align: top; -} - -.widefat td, -.widefat td p, -.widefat td ol, -.widefat td ul { - font-size: 13px; - line-height: 1.5em; -} - -.widefat th, -.widefat thead td, -.widefat tfoot td { - text-align: right; - line-height: 1.3em; - font-size: 14px; -} - -.widefat th input, -.widefat thead td input, -.widefat tfoot td input { - margin: 0 8px 0 0; - padding: 0; - vertical-align: text-top; -} - -.widefat .check-column { - width: 2.2em; - padding: 6px 0 25px; - vertical-align: top; -} - -.widefat th input[type=checkbox], -.widefat thead td input[type=checkbox], -.widefat tfoot td input[type=checkbox] { - margin-top: -1px; -} - -.widefat tbody th.check-column { - padding: 9px 0 22px; -} - -.widefat thead td.check-column, -.widefat tbody th.check-column, -.widefat tfoot td.check-column { - padding: 11px 3px 0 0; -} - -.widefat thead td.check-column, -.widefat tfoot td.check-column { - padding-top: 10px; -} - -.update-php div.updated, -.update-php div.error { - margin-right: 0; -} - -.no-js .widefat thead .check-column input, -.no-js .widefat tfoot .check-column input { - display: none; -} - -.widefat .num, -.column-comments, -.column-links, -.column-posts { - text-align: center; -} - -.widefat th#comments { - vertical-align: middle; -} - -.wrap { - margin: 10px 2px 0 20px; -} - -.wrap h1, -.wrap h2, -.subtitle { - font-weight: normal; - margin: 0; -} - -.wrap h1, -.wrap h2 { - font-size: 23px; - font-weight: 400; - padding: 9px 0 4px 15px; - line-height: 29px; -} - -.subtitle { - color: #777; - font-size: 14px; - padding-right: 25px; -} - -.wrap .add-new-h2, /* deprecated */ -.wrap .add-new-h2:active, /* deprecated */ -.wrap .page-title-action, -.wrap .page-title-action:active { - margin-right: 4px; - padding: 4px 8px; - position: relative; - top: -3px; - text-decoration: none; - border: none; - -webkit-border-radius: 2px; - border-radius: 2px; - background: #e0e0e0; - text-shadow: none; - font-weight: 600; - font-size: 13px; -} - -.wrap .add-new-h2:hover, /* deprecated */ -.wrap .page-title-action:hover { - background: #00a0d2; - color: #fff; -} - -.wrap h1.long-header { - padding-left: 0; -} - -.wp-dialog { - background-color: #fff; -} - -.widgets-chooser ul, -#widgets-left .widget-in-question .widget-top, -#available-widgets .widget-top:hover, -div#widgets-right .widget-top:hover, -#widgets-left .widget-top:hover { - border-color: #999; - -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1); - box-shadow: 0 1px 2px rgba(0,0,0,0.1); -} - -.sorthelper { - background-color: #ccf3fa; -} - -.ac_match, -.subsubsub a.current { - color: #000; -} - -.striped > tbody > :nth-child(odd), -ul.striped > :nth-child(odd), -.alternate { - background-color: #f9f9f9; -} - -.bar { - background-color: #e8e8e8; - border-left-color: #99d; -} - -.media-upload-form label.form-help, -td.help { - color: #9a9a9a; -} - -/* Helper classes for plugins to leverage the active WordPress color scheme */ - -.highlight { - background-color: #e4f2fd; - color: #000; -} - -.wp-ui-primary { - color: #fff; - background-color: #32373c; -} -.wp-ui-text-primary { - color: #32373c; -} - -.wp-ui-highlight { - color: white; - background-color: #1e8cbe; -} -.wp-ui-text-highlight { - color: #1e8cbe; -} - -.wp-ui-notification { - color: #fff; - background-color: #d54e21; -} -.wp-ui-text-notification { - color: #d54e21; -} - -.wp-ui-text-icon { - color: #999; -} - -/* For emoji replacement images */ -img.emoji { - display: inline !important; - border: none !important; - height: 1em !important; - width: 1em !important; - margin: 0 .07em !important; - vertical-align: -0.1em !important; - background: none !important; - padding: 0 !important; - -webkit-box-shadow: none !important; - box-shadow: none !important; -} - -/*------------------------------------------------------------------------------ - 1.0 - Text Styles -------------------------------------------------------------------------------*/ - -.widget .widget-top, -.postbox .hndle, -.stuffbox .hndle, -.control-section .accordion-section-title, -.sidebar-name, -#nav-menu-header, -#nav-menu-footer, -.menu-item-handle, -.checkbox, -.side-info, -#your-profile #rich_editing, -.widefat thead th, -.widefat thead td, -.widefat tfoot th, -.widefat tfoot td { - line-height: 1.4em; -} - -.widget .widget-top, -.menu-item-handle { - background: #fafafa; - color: #23282d; -} - -.postbox .hndle, -.stuffbox .hndle { - border-bottom: 1px solid #eee; -} - -.quicktags, -.search { - background-color: #ccc; - color: #000; - font-size: 12px; -} - -.icon32 { - display: none; -} - -/* @todo can we combine these into a class or use an existing dashicon one? */ -.welcome-panel .welcome-panel-close:before, -.tagchecklist span a:before, -#bulk-titles div a:before, -.notice-dismiss:before { - background: none; - color: #b4b9be; - content: '\f153'; - display: block; - font: normal 16px/20px 'dashicons'; - speak: none; - height: 20px; - text-align: center; - width: 20px; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.welcome-panel .welcome-panel-close:before { - margin: 0; -} - -.tagchecklist span a:before, -#bulk-titles div a:before { - margin: 1px 0; -} - -.welcome-panel .welcome-panel-close:hover:before, -.welcome-panel .welcome-panel-close:focus:before, -.tagchecklist span a:hover:before, -#bulk-titles div a:hover:before { - color: #c00; -} - -.key-labels label { - line-height: 24px; -} - -strong, b { - font-weight: 600; -} - -.pre { - /* https://developer.mozilla.org/en-US/docs/CSS/white-space */ - white-space: pre-wrap; /* css-3 */ - word-wrap: break-word; /* IE 5.5 - 7 */ -} - -.howto { - color: #666; - font-style: italic; - display: block; -} - -p.install-help { - margin: 8px 0; - font-style: italic; -} - -.no-break { - white-space: nowrap; -} - -hr { - border: 0; - border-top: 1px solid #ddd; - border-bottom: 1px solid #fafafa; -} - -.row-actions span.delete a, -.row-actions span.trash a, -.row-actions span.spam a, -.plugins a.delete, -#all-plugins-table .plugins a.delete, -#search-plugins-table .plugins a.delete, -.submitbox .submitdelete, -#media-items a.delete, -#media-items a.delete-permanently, -#nav-menu-footer .menu-delete { - color: #a00; -} - -abbr.required, -.file-error, -.widget-control-remove:hover, -.row-actions .delete a:hover, -.row-actions .trash a:hover, -.row-actions .spam a:hover, -.plugins a.delete:hover, -#all-plugins-table .plugins a.delete:hover, -#search-plugins-table .plugins a.delete:hover, -.submitbox .submitdelete:hover, -#media-items a.delete:hover, -#media-items a.delete-permanently:hover, -#nav-menu-footer .menu-delete:hover { - color: #f00; - text-decoration: none; - border: none; -} - -/*------------------------------------------------------------------------------ - 3.0 - Actions -------------------------------------------------------------------------------*/ - -#major-publishing-actions { - padding: 10px; - clear: both; - border-top: 1px solid #ddd; - background: #f5f5f5; -} - -#delete-action { - line-height: 28px; - vertical-align: middle; - text-align: right; - float: right; -} - -#publishing-action { - text-align: left; - float: left; - line-height: 23px; -} - -#publishing-action .spinner { - float: right; -} - -#misc-publishing-actions { - padding: 6px 0 0; -} - -.misc-pub-section { - padding: 6px 10px 8px; -} - -#minor-publishing-actions { - padding: 10px 10px 0 10px; - text-align: left; -} - -#save-post { - float: right; -} - -.preview { - float: left; -} - -#sticky-span { - margin-right: 18px; -} - -.side-info { - margin: 0; - padding: 4px; - font-size: 11px; -} - -.side-info h5 { - padding-bottom: 7px; - font-size: 14px; - margin: 12px 2px 5px; - border-bottom: 1px solid #dadada; -} - -.side-info ul { - margin: 0; - padding-right: 18px; - list-style: square; - color: #666; -} - -.approve, -.unapproved .unapprove { - display: none; -} - -.unapproved .approve, -.spam .approve, -.trash .approve { - display: inline; -} - -td.action-links, -th.action-links { - text-align: left; -} - -/* Filter bar */ -.wp-filter { - display: inline-block; - position: relative; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin: 12px 0 25px; - padding: 0 10px; - width: 100%; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); - border: 1px solid #e5e5e5; - background: #fff; - color: #555; - font-size: 13px; -} - -.wp-filter a { - text-decoration: none; -} - -.filter-count { - display: inline-block; - vertical-align: middle; - min-width: 4em; -} - -.title-count, -.filter-count .count { - display: inline-block; - position: relative; - top: -1px; - padding: 4px 10px; - -webkit-border-radius: 30px; - border-radius: 30px; - background: #777; - color: #fff; - font-size: 14px; - font-weight: 600; -} - -/* not a part of filter bar, but derived from it, so here for now */ -.title-count { - display: inline; - top: -3px; - margin-right: 5px; - margin-left: 20px; -} - -.filter-items { - float: right; -} - -.filter-links { - display: inline-block; - margin: 0; -} - -.filter-links li { - display: inline-block; - margin: 0; -} - -.filter-links li > a { - display: inline-block; - margin: 0 10px; - padding: 15px 0; - border-bottom: 4px solid #fff; - color: #666; - cursor: pointer; -} - -.filter-links .current { - -webkit-box-shadow: none; - box-shadow: none; - border-bottom: 4px solid #666; - color: #23282d; -} - -.filter-links li > a:hover, -.filter-links li > a:focus, -.show-filters .filter-links a.current:hover, -.show-filters .filter-links a.current:focus { - color: #00a0d2; -} - -.wp-filter .search-form { - float: left; - margin: 10px 0; -} - -.wp-filter .search-form input[type="search"] { - margin: 0; - padding: 3px 5px; - width: 280px; - max-width: 100%; - font-size: 16px; - font-weight: 300; - line-height: 1.5; -} - -.wp-filter .search-form select { - margin: 0; - height: 32px; - vertical-align: top; -} - -.wp-filter .search-form.search-plugins { - display: inline-block; -} - -.wp-filter .drawer-toggle { - display: inline-block; - margin: 0 10px; - padding: 4px 6px; - color: #666; - cursor: pointer; -} - -.wp-filter .drawer-toggle:before { - display: inline-block; - vertical-align: top; - content: "\f111"; - margin: 0 0 0 5px; - width: 16px; - height: 16px; - color: #777; - -webkit-transition: color .1s ease-in 0; - transition: color .1s ease-in 0; - font-family: "dashicons"; - font-size: 16px; - line-height: 1; - text-align: center; - text-decoration: inherit; - font-weight: normal; - font-style: normal; - -webkit-font-smoothing: antialiased; -} - -.wp-filter .drawer-toggle:hover, -.wp-filter .drawer-toggle:hover:before { - color: #00a0d2; -} - -.wp-filter .drawer-toggle.current:before { - color: #fff; -} - -.filter-drawer { - display: none; - margin: 0 -20px; - padding: 20px; - border-top: 1px solid #eee; - background: #fafafa; -} - -.show-filters .filter-drawer { - display: block; - overflow: hidden; - width: 100%; -} - -.show-filters .wp-filter .drawer-toggle:hover, -.show-filters .wp-filter .drawer-toggle:focus { - background: rgb(46, 162, 204); -} - -.show-filters .filter-links a.current { - border-bottom: none; -} - -.show-filters .wp-filter .drawer-toggle { - -webkit-border-radius: 2px; - border-radius: 2px; - border: none; - background: #777; - color: #fff; -} - -.show-filters .wp-filter .drawer-toggle:before { - color: #fff; -} - -.filter-group { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - float: right; - margin: 0 0 0 1%; - padding: 10px; - width: 24%; - background: #fff; - border: 1px solid #e5e5e5; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); -} - -.filter-group h4 { - position: relative; - margin: 0; -} - -.filter-drawer ol { - margin: 20px 0 0; - list-style-type: none; - font-size: 12px; -} - -.filter-drawer li { - display: inline-block; - vertical-align: top; - margin: 5px 0; - padding-left: 25px; - width: 160px; - list-style-type: none; -} - -.filter-drawer .buttons { - margin-bottom: 20px; -} - -.filter-drawer .buttons .button span { - display: inline-block; - opacity: 0.8; - font-size: 12px; - text-indent: 10px; -} - -.wp-filter .button.clear-filters { - display: none; - margin-right: 10px; -} - -.filtered-by { - display: none; - margin: 0; -} - -.filtered-by > span { - font-weight: 600; -} - -.filtered-by a { - margin-right: 10px; -} - -.filtered-by .tags { - display: inline; -} - -.filtered-by .tag { - margin: 0 5px; - padding: 4px 8px; - border: 1px solid #e5e5e5; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); - background: #fff; - font-size: 11px; -} - -.filters-applied .filter-group, -.filters-applied .filter-drawer .buttons, -.filters-applied .filter-drawer br { - display: none !important; -} - -.filters-applied .filtered-by { - display: block; -} - -.filters-applied .filter-drawer { - padding: 20px; -} - -.show-filters .content-filterable, -.show-filters.filters-applied.loading-content .content-filterable, -.loading-content .content-filterable, -.error .content-filterable { - display: none; -} - -.show-filters.filters-applied .content-filterable { - display: block; -} - -.loading-content .spinner { - display: block; - margin: 40px auto 0; - float: none; -} - -@media only screen and (max-width: 1120px) { - .filter-drawer { - border-bottom: 1px solid #eee; - } - - .filter-group { - margin-bottom: 0; - margin-top: 5px; - width: 100%; - } - - .filter-group li { - margin: 10px 0; - } -} - -@media only screen and (max-width: 1000px) { - .filter-items { - float: none; - } - - .wp-filter .media-toolbar-primary, - .wp-filter .media-toolbar-secondary, - .wp-filter .search-form { - float: none; /* Remove float from media-views.css */ - position: relative; - max-width: 100%; - } -} - -@media only screen and (max-width: 782px) { - .filter-group li { - padding: 0; - width: 50%; - } -} - -@media only screen and (max-width: 320px) { - .filter-count { - display: none; - } - - .wp-filter .drawer-toggle { - margin: 10px 0; - } - - .filter-group li, - .wp-filter .search-form input[type="search"] { - width: 100%; - } -} - -/*------------------------------------------------------------------------------ - 4.0 - Notifications -------------------------------------------------------------------------------*/ - -.notice, -div.updated, -div.error { - background: #fff; - border-right: 4px solid #fff; - -webkit-box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); - box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); - margin: 5px 15px 2px; - padding: 1px 12px; -} - -.notice p, -div.updated p, -div.error p, -.form-table td .notice p { - margin: 0.5em 0; - padding: 2px; -} - -.wp-core-ui .notice.is-dismissible { - padding-left: 38px; - position: relative; -} - -.notice-dismiss { - position: absolute; - top: 0; - left: 1px; - border: none; - margin: 0; - padding: 9px; - background: none; - color: #b4b9be; - cursor: pointer; -} - -.notice-dismiss:hover:before, -.notice-dismiss:active:before, -.notice-dismiss:focus:before { - color: #c00; -} - -.notice-dismiss:focus { - outline: none; - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.ie8 .notice-dismiss:focus { - outline: 1px solid #5b9dd9; -} - -.notice-success, -div.updated { - border-color: #7ad03a; -} - -.notice-warning { - border-color: #ffba00; -} - -.notice-error, -div.error { - border-color: #dd3d36; -} - -.notice-info { - border-color: #00a0d2; -} - -.wrap .notice, -.wrap div.updated, -.wrap div.error, -.media-upload-form .notice, -.media-upload-form div.error { - margin: 5px 0 15px; -} - -#update-nag, -.update-nag { - display: inline-block; - line-height: 19px; - padding: 11px 15px; - font-size: 14px; - text-align: right; - margin: 25px 2px 0 20px; - background-color: #fff; - border-right: 4px solid #ffba00; - -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); - box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); -} - -.update-message { - color: #000; -} - -ul#dismissed-updates { - display: none; -} - -form.upgrade { - margin-top: 8px; -} - -form.upgrade .hint { - font-style: italic; - font-size: 85%; - margin: -0.5em 0 2em 0; -} - -.update-php .spinner { - float: none; - margin: -4px 0; -} - -#ajax-loading, -.ajax-loading, -.ajax-feedback, -.imgedit-wait-spin, -.list-ajax-loading { /* deprecated */ - visibility: hidden; -} - -#ajax-response.alignleft { - margin-right: 2em; -} - -/* @todo: this does not need its own section anymore */ -/*------------------------------------------------------------------------------ - 6.0 - Admin Header -------------------------------------------------------------------------------*/ -#adminmenu a, -#taglist a, -#catlist a { - text-decoration: none; -} - -/*------------------------------------------------------------------------------ - 6.1 - Screen Options Tabs -------------------------------------------------------------------------------*/ - -#screen-options-wrap, -#contextual-help-wrap { - margin: 0; - padding: 8px 20px 12px; - position: relative; -} - -#contextual-help-wrap { - overflow: auto; - margin-right: 0 !important; -} - -#screen-meta .screen-reader-text { - visibility: hidden; -} - -#screen-meta-links { - margin: 0 0 0 20px; -} - -/* screen options and help tabs revert */ -#screen-meta { - display: none; - margin: 0 0px -1px 20px; - position: relative; - background-color: #fff; - border: 1px solid #ddd; - border-top: none; - -webkit-box-shadow: 0 1px 0 rgba(0,0,0,.025); - box-shadow: 0 1px 0 rgba(0,0,0,.025); -} - -#screen-options-link-wrap, -#contextual-help-link-wrap { - float: left; - height: 28px; - margin: 0 6px 0 0; - border: 1px solid #ddd; - border-top: none; - background: #fff; - -webkit-box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); - box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); -} - -#screen-meta-links .screen-meta-toggle { - position: relative; - top: 0; -} - -#screen-meta-links .show-settings { - border: 0; - background: none; - -webkit-border-radius: 0; - border-radius: 0; - color: #777; - line-height: 1.7; - padding: 3px 16px 3px 6px; -} - -#screen-meta-links .show-settings:hover, -#screen-meta-links .show-settings:active, -#screen-meta-links .show-settings:focus { - color: #32373c; -} - -#screen-meta-links .show-settings:after { - left: 0; - content: '\f140'; - font: normal 20px/1 'dashicons'; - speak: none; - display: inline-block; - padding: 0 0 0 5px; - bottom: 2px; - position: relative; - vertical-align: bottom; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; - color: #b4b9be; -} - -#screen-meta-links .screen-meta-active:after { - content: '\f142'; -} - -/* end screen options and help tabs */ - -.toggle-arrow { - background-repeat: no-repeat; - background-position: top left; - background-color: transparent; - height: 22px; - line-height: 22px; - display: block; -} - -.toggle-arrow-active { - background-position: bottom left; -} - -#screen-options-wrap h5, -#contextual-help-wrap h5 { - margin: 8px 0; - font-size: 13px; -} - -.metabox-prefs label { - display: inline-block; - padding-left: 15px; - line-height: 30px; -} - -.metabox-prefs label input[type=checkbox] { - margin-top: -4px; - margin-left: 6px; -} - -.metabox-prefs label input { - margin: 0 2px 0 5px; -} - -.metabox-prefs .columns-prefs label input { - margin: 0 2px; -} - -.metabox-prefs label a { - display: none; -} - -.metabox-prefs .screen-options { - padding-top: 10px; -} - -.metabox-prefs .screen-options input, -.metabox-prefs .screen-options label { - margin-top: 0; - margin-bottom: 0; - vertical-align: middle; -} - -.metabox-prefs .screen-options .screen-per-page { - margin-left: 15px; -} - -.metabox-prefs .screen-options label { - line-height: 28px; - padding-left: 0; -} - -/*------------------------------------------------------------------------------ - 6.2 - Help Menu -------------------------------------------------------------------------------*/ - -#contextual-help-wrap { - padding: 0; -} - -#contextual-help-columns { - position: relative; -} - -#contextual-help-back { - position: absolute; - top: 0; - bottom: 0; - right: 150px; - left: 170px; - border: 1px solid #e1e1e1; - border-top: none; - border-bottom: none; - background: #f6fbfd; -} - -#contextual-help-wrap.no-sidebar #contextual-help-back { - left: 0; - border-left-width: 0; - -webkit-border-bottom-left-radius: 2px; - border-bottom-left-radius: 2px; -} - -.contextual-help-tabs { - float: right; - width: 150px; - margin: 0; -} - -.contextual-help-tabs ul { - margin: 1em 0; -} - -.contextual-help-tabs li { - margin-bottom: 0; - list-style-type: none; - border-style: solid; - border-width: 0 2px 0 0; - border-color: transparent; -} - -.contextual-help-tabs a { - display: block; - padding: 5px 12px 5px 5px; - line-height: 18px; - text-decoration: none; - border: 1px solid transparent; - border-left: none; - border-right: none; -} - -.contextual-help-tabs a:hover { - color: #32373c; -} - -.contextual-help-tabs .active { - padding: 0; - margin: 0 0 0 -1px; - border-right: 2px solid #00a0d2; - background: #f6fbfd; - -webkit-box-shadow: 0 2px 0 rgba(0,0,0,0.02), 0 1px 0 rgba(0,0,0,0.02); - box-shadow: 0 2px 0 rgba(0,0,0,0.02), 0 1px 0 rgba(0,0,0,0.02); -} - -.contextual-help-tabs .active a { - border-color: #e1e1e1; - color: #32373c; -} - -.contextual-help-tabs-wrap { - padding: 0 20px; - overflow: auto; -} - -.help-tab-content { - display: none; - margin: 0 0 12px 22px; - line-height: 1.6em; -} - -.help-tab-content.active { - display: block; -} - -.help-tab-content ul li { - list-style-type: disc; - margin-right: 18px; -} - -.contextual-help-sidebar { - width: 150px; - float: left; - padding: 0 12px 0 8px; - overflow: auto; -} - -/*------------------------------------------------------------------------------ - 8.0 - Layout Blocks -------------------------------------------------------------------------------*/ - -html.wp-toolbar { - padding-top: 32px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.widefat th, -.widefat td { - color: #555; -} - -.widefat th, -.widefat thead td, -.widefat tfoot td { - font-weight: normal; -} - -.widefat thead tr th, -.widefat thead tr td, -.widefat tfoot tr th, -.widefat tfoot tr td { - color: #32373c; -} - -.widefat td p { - margin: 2px 0 0.8em; -} - -.widefat p, -.widefat ol, -.widefat ul { - color: #32373c; -} - -.widefat .column-comment p { - margin: 0.6em 0; -} - -/* Screens with postboxes */ -.postbox-container { - float: right; -} - -.postbox-container .meta-box-sortables { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -#wpbody-content .metabox-holder { - padding-top: 10px; -} - -.metabox-holder .postbox-container .empty-container { - border: 3px dashed #b4b9be; - height: 250px; -} - -.metabox-holder.columns-1 .postbox-container .empty-container, -.columns-2 #postbox-container-3 .empty-container, -.columns-2 #postbox-container-4 .empty-container, -.columns-3 #postbox-container-4 .empty-container { - border: 0 none; - height: 0; - min-height: 0; -} - -#post-body-content { - width: 100%; - min-width: 463px; - float: right; -} - -#post-body.columns-2 #postbox-container-1 { - float: left; - margin-left: -300px; - width: 280px; -} - -#post-body.columns-2 #side-sortables { - min-height: 250px; -} - -/* one column on the dash */ -@media only screen and (max-width: 799px) { - #wpbody-content .metabox-holder .postbox-container .empty-container { - border: 0 none; - height: 0; - min-height: 0; - } -} - -.js .widget .widget-top, -.js .postbox .hndle { - cursor: move; -} - -.hndle a { - font-size: 11px; - font-weight: normal; -} - -.postbox .handlediv { - float: left; - width: 27px; - height: 30px; -} - -.js .postbox .handlediv { - cursor: pointer; -} - -.sortable-placeholder { - border: 1px dashed #b4b9be; - margin-bottom: 20px; -} - -.postbox, -.stuffbox { - margin-bottom: 20px; - padding: 0; - line-height: 1; -} - -/* user-select is not a part of the CSS standard - may change behavior in the future */ -.postbox .hndle, -.stuffbox .hndle { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.postbox .inside, -.stuffbox .inside { - padding: 0 12px 12px; - line-height: 1.4em; - font-size: 13px; -} - -.postbox .inside { - margin: 11px 0; - position: relative; -} - -.postbox .inside > p:last-child, -.rss-widget ul li:last-child { - margin-bottom: 1px !important; -} - -.postbox.closed h3 { - border: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.postbox table.form-table { - margin-bottom: 0; -} - -.postbox table.widefat { - -webkit-box-shadow: none; - box-shadow: none; -} - -.temp-border { - border: 1px dotted #ccc; -} - -.columns-prefs label { - padding: 0 5px; -} - -/* @todo: what is this doing here */ -#dashboard_right_now .versions .b, -#post-status-display, -#post-visibility-display, -#adminmenu .wp-submenu li.current, -#adminmenu .wp-submenu li.current a, -#adminmenu .wp-submenu li.current a:hover, -.media-item .percent, -.plugins .name, -#pass-strength-result.strong, -#pass-strength-result.short, -#ed_reply_toolbar #ed_reply_strong, -.item-controls .item-order a, -.feature-filter .feature-name { - font-weight: 600; -} - -/*------------------------------------------------------------------------------ - 21.0 - Admin Footer -------------------------------------------------------------------------------*/ - -#wpfooter { - position: absolute; - bottom: 0; - right: 0; - left: 0; - padding: 10px 20px; - color: #777; -} - -#wpfooter p { - font-size: 13px; - margin: 0; - line-height: 20px; -} - -#footer-thankyou { - font-style: italic; -} - -#wpfooter a { - text-decoration: none; -} - -#wpfooter a:hover { - text-decoration: underline; -} - -/*------------------------------------------------------------------------------ - 25.0 - Tabbed Admin Screen Interface (Experimental) -------------------------------------------------------------------------------*/ - -.nav-tab { - border: 1px solid #ccc; - border-bottom: none; - background: #e4e4e4; - color: #555; - font-size: 12px; - line-height: 16px; - display: inline-block; - padding: 4px 14px 6px; - text-decoration: none; - margin: -4px 0 -1px 4px; -} - -.nav-tab:hover { - background-color: #fff; - color: #464646; -} - -.nav-tab-active { - color: #464646; -} - -.nav-tab-active, -.nav-tab-active:hover { - border-bottom: 1px solid #f1f1f1; - background: #f1f1f1; - color: #000; -} - -h1.nav-tab-wrapper, -h2.nav-tab-wrapper, -h3.nav-tab-wrapper { - border-bottom: 1px solid #ccc; - padding-bottom: 0; - padding-right: 10px; -} - -h1 .nav-tab, -h2 .nav-tab { - padding: 6px 10px; - font-weight: bold; - font-size: 15px; - line-height: 24px; -} - - -/*------------------------------------------------------------------------------ - 26.0 - Misc -------------------------------------------------------------------------------*/ - -.spinner { - background: url(../images/spinner.gif) no-repeat; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - display: inline-block; - visibility: hidden; - float: left; - vertical-align: middle; - opacity: 0.7; - filter: alpha(opacity=70); - width: 20px; - height: 20px; - margin: 4px 10px 0; -} - -.spinner.is-active { - visibility: visible; -} - -#template div { - margin-left: 190px; -} - -.metabox-holder h3 { - font-size: 14px; - padding: 8px 12px; - margin: 0; - line-height: 1.4; -} - -#templateside ul li a { - text-decoration: none; -} - -.plugin-install #description, -.plugin-install-network #description { - width: 60%; -} - -table .vers, -table .column-visible, -table .column-rating { - text-align: right; -} - -.attention, -.error-message { - color: red; - font-weight: 600; -} - -/* Scrollbar fix for bulk upgrade iframe */ -body.iframe { - height: 98%; -} - -/* Upgrader styles, Specific to Language Packs */ -.lp-show-latest p { - display: none; -} -.lp-show-latest p:last-child, -.lp-show-latest .lp-error p { - display: block; -} - -/* - Only used once or twice in all of WP - deprecate for global style -------------------------------------------------------------------------------*/ -.media-icon { - width: 62px; /* icon + border */ - text-align: center; -} - -.media-icon img { - border: 1px solid #e7e7e7; - border: 1px solid rgba(0, 0, 0, 0.07); -} - -#howto { - font-size: 11px; - margin: 0 5px; - display: block; -} - -.importers td { - padding-left: 14px; -} - -.importers { - font-size: 16px; - width: auto; -} - -#post-body #post-body-content #namediv h3 { - margin-top: 0; -} - -.edit-comment-author { - font-size: 14px; - line-height: 1.4; - font-weight: 600; - color: #222; - margin: 2px 9px 0 0; -} - -#namediv h3 label { - vertical-align: baseline; -} - -#namediv table { - width: 100%; -} - -#namediv td.first { - width: 10px; - white-space: nowrap; -} - -#namediv input { - width: 98%; -} - -#namediv p { - margin: 10px 0; -} - -#submitdiv h3 { - margin-bottom: 0 !important; -} - -/* - Used - but could/should be deprecated with a CSS reset -------------------------------------------------------------------------------*/ -.zerosize { - height: 0; - width: 0; - margin: 0; - border: 0; - padding: 0; - overflow: hidden; - position: absolute; -} - -br.clear { - height: 2px; - line-height: 2px; -} - -.checkbox { - border: none; - margin: 0; - padding: 0; -} - -fieldset { - border: 0; - padding: 0; - margin: 0; -} - -.post-categories { - display: inline; - margin: 0; - padding: 0; -} - -.post-categories li { - display: inline; -} - -/* Star Ratings - Back-compat for pre-3.8 */ -div.star-holder { - position: relative; - height: 17px; - width: 100px; - background: url(../images/stars.png?ver=20121108) repeat-x bottom left; -} - -div.star-holder .star-rating { - background: url(../images/stars.png?ver=20121108) repeat-x top left; - height: 17px; - float: right; -} - -/* Star Ratings */ -.star-rating { - white-space: nowrap; -} -.star-rating .star { - display: inline-block; - width: 20px; - height: 20px; - -webkit-font-smoothing: antialiased; - font-size: 20px; - line-height: 1; - font-family: 'dashicons'; - text-decoration: inherit; - font-weight: normal; - font-style: normal; - vertical-align: top; - -webkit-transition: color .1s ease-in 0; - transition: color .1s ease-in 0; - text-align: center; - color: #ffb900; -} - -.star-rating .star-full:before { - content:'\f155'; -} - -.star-rating .star-half:before { - content:'\f459'; -} - -.rtl .star-rating .star-half { - -webkit-transform: rotateY(180deg); - -ms-transform: rotateY(180deg); - transform: rotateY(180deg); -} - -.star-rating .star-empty:before { - content:'\f154'; -} - -div.action-links { - font-weight: normal; - margin: 6px 0 0; -} - -/* Plugin install thickbox */ -#plugin-information { - background: #fff; - position: fixed; - top: 0; - left: 0; - bottom: 0; - right: 0; - height: 100%; - padding: 0; -} - -#plugin-information-scrollable { - overflow: auto; - -webkit-overflow-scrolling: touch; - height: 100%; -} - -#plugin-information-title { - padding: 0 20px; - background: #f5f5f5; - font-size: 22px; - font-weight: 600; - line-height: 56px; - position: relative; - top: 0; - left: 0; - right: 0; - height: 56px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -#plugin-information-title.with-banner { - margin-left: 0; - height: 250px; - bottom: 250px; - -webkit-background-size: cover; - background-size: cover; -} - -#plugin-information-title h2 { - font-size: 1em; - font-weight: bold; - padding: 0; - margin: 0; - max-width: 680px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -#plugin-information-title.with-banner h2 { - font-family: "Helvetica Neue", sans-serif; - display: inline-block; - font-size: 30px; - line-height: 50px; - padding: 0 15px; - margin: 174px 10px 0 0; - color: #fff; - background: rgba( 30, 30, 30, 0.9 ); - text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.4 ); - -webkit-box-shadow: 0 0 30px rgba( 255, 255, 255, 0.1 ); - box-shadow: 0 0 30px rgba( 255, 255, 255, 0.1 ); - -webkit-border-radius: 8px; - border-radius: 8px; -} - -#plugin-information-title div.vignette { - display: none; -} - -#plugin-information-title.with-banner div.vignette { - display: block; - float: left; - top: 0; - height: 250px; - width: 772px; - margin: 0 -20px; - background: transparent; - -webkit-box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 ); -} - -#plugin-information-tabs { - padding: 0 16px; - position: relative; - left: 0; - right: 0; - height: 36px; - z-index: 1; - border-bottom: 1px solid #ddd; - background: #f3f3f3; -} - -#plugin-information-tabs a { - position: relative; - float: right; - padding: 9px 10px; - margin: 0; - height: 18px; - line-height: 18px; - font-size: 14px; - text-decoration: none; - -webkit-transition: none; - transition: none; -} - -#plugin-information-tabs a.current { - margin: 0 -1px 0; - background: #fff; - border: 1px solid #ddd; - border-bottom-color: #fff; - padding-top: 8px; - color: #32373c; -} - -#plugin-information-tabs.with-banner a.current { - border-top: none; - padding-top: 9px; -} - -#plugin-information-tabs a:active, -#plugin-information-tabs a:focus { - outline: none; -} - -#plugin-information-content { - overflow: hidden; /* equal height column trick */ - background: #fff; - position: relative; - top: 0; - left: 0; - right: 0; - min-height: 100%; - /* Height of title + tabs + install now */ - min-height: -webkit-calc( 100% - 152px ); - min-height: calc( 100% - 152px ); -} - -#plugin-information-content.with-banner { - /* Height of banner + tabs + install now */ - min-height: -webkit-calc( 100% - 346px ); - min-height: calc( 100% - 346px ); -} - -#section-holder { - position: relative; - top: 0; - left: 250px; - bottom: 0; - right: 0; - margin-left: 250px; /* FYI box */ - padding: 10px 26px; - margin-bottom: -99930px; /* a bit less than the padding below to accommodate footer */ - padding-bottom: 99999px; /* equal height column trick */ -} - -#section-holder .updated { - margin: 16px 0; -} - -#plugin-information .fyi { - display: block; - float: left; - position: relative; - top: 0; - left: 0; - padding: 16px; - margin-bottom: -99930px; /* slightly less than the padding below to accommodate footer */ - padding-bottom: 99999px; /* equal height column trick */ - width: 217px; - border-right: 1px solid #ddd; - background: #f3f3f3; - color: #666; -} - -#plugin-information .fyi strong { - color: #464646; -} - -#plugin-information .fyi h3 { - font-weight: bold; - text-transform: uppercase; - font-size: 12px; - color: #666; - margin: 24px 0 8px; -} - -#plugin-information .fyi h2 { - font-size: 0.9em; - margin-bottom: 0; - margin-left: 0; -} - -#plugin-information .fyi ul { - padding: 0; - margin: 0; - list-style: none; -} - -#plugin-information .fyi li { - margin: 0 0 10px; -} - -#plugin-information .counter-container { - margin: 3px 0; -} - -#plugin-information .counter-label { - float: right; - margin-left: 5px; - min-width: 55px; -} - -#plugin-information .counter-back { - height: 17px; - width: 92px; - background-color: #ececec; - float: right; -} - -#plugin-information .counter-bar { - height: 17px; - background-color: #ffc733; /* slightly lighter than stars due to larger expanse */ - float: right; -} - -#plugin-information .counter-count { - margin-right: 5px; -} - -#plugin-information .fyi ul.contributors { - margin-top: 10px; -} - -#plugin-information .fyi ul.contributors li { - display: inline-block; - margin-left: 8px; - vertical-align: middle; -} - -#plugin-information .fyi ul.contributors li { - display: inline-block; - margin-left: 8px; - vertical-align: middle; -} - -#plugin-information .fyi ul.contributors li img { - vertical-align: middle; - margin-left: 4px; -} - -#plugin-information-footer { - padding: 15px 16px; - position: absolute; - left: 0; - bottom: 0; - right: 0; - height: 28px; - border-top: 1px solid #ddd; - background: #f3f3f3; -} - -/* rtl:ignore */ -#plugin-information .section { - direction: ltr; -} - -/* rtl:ignore */ -#plugin-information .section ul, -#plugin-information .section ol { - list-style-type: disc; - margin-left: 24px; -} - -#plugin-information .section, -#plugin-information .section p { - font-size: 14px; - line-height: 1.7; -} - -#plugin-information #section-screenshots ol { - list-style: none; - margin: 0; -} - -#plugin-information #section-screenshots li img { - vertical-align: text-top; - margin-top: 16px; - max-width: 100%; - width: auto; - height: auto; - -webkit-box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.3 ); -} - -/* rtl:ignore */ -#plugin-information #section-screenshots li p { - font-style: italic; - padding-left: 20px; -} - -#plugin-information pre { - padding: 7px; - overflow: auto; - border: 1px solid #ccc; -} - -/* rtl:ignore */ -#plugin-information .review { - overflow: hidden; /* clearfix */ - width: 100%; - margin-bottom: 20px; - border-bottom: 1px solid #e6e6e6; -} - -#plugin-information .review-title-section { - overflow: hidden; /* clearfix */ -} - -/* rtl:ignore */ -#plugin-information .review-title-section h4 { - display: inline-block; - float: left; - margin: 0 6px 0 0; -} - -#plugin-information .reviewer-info p { - clear: both; - margin: 0; - padding-top: 2px; -} - -/* rtl:ignore */ -#plugin-information .reviewer-info .avatar { - float: left; - margin: 4px 6px 0 0; -} - -/* rtl:ignore */ -#plugin-information .reviewer-info .star-rating { - float: left; -} - -/* rtl:ignore */ -#plugin-information .review-meta { - float: left; - margin-left: 0.75em; -} - -/* rtl:ignore */ -#plugin-information .review-body { - float: left; - width: 100%; -} - -.plugin-version-author-uri { - font-size: 13px; -} - -@media screen and ( max-width: 771px ) { - #plugin-information-title.with-banner { - height: 100px; - bottom: 100px; - } - - #plugin-information-title.with-banner h2 { - margin-top: 30px; - font-size: 20px; - line-height: 40px; - max-width: 85%; - } - - #plugin-information-title.with-banner div.vignette { - height: 100px; - bottom: 100px; - width: 800%; - } - - #plugin-information-tabs { - overflow: hidden; /* clearfix */ - padding: 0; - height: auto; /* let tabs wrap */ - } - - #plugin-information-tabs a.current { - margin-bottom: 0; - border-bottom: none; - } - - #plugin-information .fyi { - float: none; - border: 1px solid #ddd; - position: static; - width: auto; - margin: 26px 26px 0; - padding-bottom: 0; /* reset from the two column height fix */ - } - - #section-holder { - position: static; - margin: 0; - padding-bottom: 70px; /* reset from the two column height fix, plus accomodate footer */ - } - - #plugin-information .fyi h3, - #plugin-information .fyi small { - display: none; - } - - #plugin-information-footer { - padding: 12px 16px 0; - height: 46px; - } -} - -/* Thickbox for Plugin Install screen */ -body.plugin-install-php #TB_window, -body.import-php #TB_window, -body.plugins-php #TB_window, -body.update-core-php #TB_window, -body.index-php #TB_window { - background: #fcfcfc url( ../images/spinner.gif ) no-repeat center; -} - -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - - body.plugin-install-php #TB_window, - body.import-php #TB_window, - body.plugins-php #TB_window, - body.update-core-php #TB_window, - body.index-php #TB_window { - background: #fcfcfc url( ../images/spinner-2x.gif ) no-repeat center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - } -} - -body.plugin-install-php #TB_title, -body.import-php #TB_title, -body.plugins-php #TB_title, -body.update-core-php #TB_title, -body.index-php #TB_title { - float: right; - height: 1px; -} - -body.plugin-install-php #TB_ajaxWindowTitle, -body.import-php #TB_ajaxWindowTitle, -body.plugins-php #TB_ajaxWindowTitle, -body.update-core-php #TB_ajaxWindowTitle, -body.index-php #TB_ajaxWindowTitle { - display: none; -} - -body.plugin-install-php .tb-close-icon, -body.import-php .tb-close-icon, -body.plugins-php .tb-close-icon, -body.update-core-php .tb-close-icon, -body.index-php .tb-close-icon { - right: auto; - left: -30px; - color: #eee; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; -} - -body.plugin-install-php #TB_closeWindowButton:focus, -body.plugin-install-php #TB_closeWindowButton:focus .tb-close-icon, -body.plugin-install-php .tb-close-icon:focus, -body.plugin-install-php .tb-close-icon:hover, -body.import-php #TB_closeWindowButton:focus, -body.import-php #TB_closeWindowButton:focus .tb-close-icon, -body.import-php .tb-close-icon:focus, -body.import-php .tb-close-icon:hover, -body.plugins-php #TB_closeWindowButton:focus, -body.plugins-php #TB_closeWindowButton:focus .tb-close-icon, -body.plugins-php .tb-close-icon:focus, -body.plugins-php .tb-close-icon:hover, -body.update-core-php #TB_closeWindowButton:focus, -body.update-core-php #TB_closeWindowButton:focus .tb-close-icon, -body.update-core-php .tb-close-icon:focus, -body.update-core-php .tb-close-icon:hover, -body.index-php #TB_closeWindowButton:focus, -body.index-php #TB_closeWindowButton:focus .tb-close-icon, -body.index-php .tb-close-icon:focus, -body.index-php .tb-close-icon:hover { - color: #00a0d2; - outline: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -body.plugin-install-php .tb-close-icon:before, -body.import-php .tb-close-icon:before, -body.plugins-php .tb-close-icon:before, -body.update-core-php .tb-close-icon:before, -body.index-php .tb-close-icon:before { - content: "\f335"; - font-size: 32px; -} - -/* move plugin install close icon to top on narrow screens */ -@media screen and ( max-width: 830px ) { - body.plugin-install-php .tb-close-icon, - body.import-php .tb-close-icon, - body.plugins-php .tb-close-icon, - body.update-core-php .tb-close-icon, - body.index-php .tb-close-icon { - left: 0; - top: -30px; - } -} - -/* @todo: move this. */ -img { - border: none; -} - -/* Header */ -/* @todo: are these also specific to Press This? */ -#wphead { - border-bottom: 1px solid #dfdfdf; -} - -#wphead h1 a { - color: #464646; -} - -/* @todo: these seem misplaced */ -.js .meta-box-sortables .postbox:hover .handlediv { - margin-left: 0 !important; -} - -/* Metabox collapse arrow indicators */ -.js .sidebar-name .sidebar-name-arrow:before, -.js .meta-box-sortables .postbox .handlediv:before { - left: 12px; - font: normal 20px/1 'dashicons'; - speak: none; - display: inline-block; - padding: 8px 10px; - top: 0; - position: relative; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; -} - -.js #widgets-left .sidebar-name .sidebar-name-arrow { - display: none; -} - -.js #widgets-left .widgets-holder-wrap.closed .sidebar-name .sidebar-name-arrow, -.js #widgets-left .sidebar-name:hover .sidebar-name-arrow { - display: block; -} - -/* Show the arrow only on hover */ -.js .sidebar-name .sidebar-name-arrow:before, -.js .meta-box-sortables .postbox .handlediv:before { - content: '\f142'; -} - -.js .widgets-holder-wrap.closed .sidebar-name-arrow:before, -.js .meta-box-sortables .postbox.closed .handlediv:before { - content: '\f140'; -} - -.error a { - text-decoration: underline; -} - -.updated a { - text-decoration: none; - padding-bottom: 2px; -} - -/* @todo: appears to be Press This only and overridden */ -#photo-add-url-div input[type="text"] { - width: 300px; -} - -/* Theme/Plugin Editor */ -.alignleft h3 { - margin: 0; -} - -#template textarea { - font-family: Consolas, Monaco, monospace; - font-size: 13px; - width: 97%; - background: #f9f9f9; - outline: none; -} - -/* rtl:ignore */ -#template textarea, -#docs-list { - direction: ltr; -} - -#template p { - width: 97%; -} - -#templateside { - float: left; - width: 190px; - word-wrap: break-word; -} - -#templateside h3, -#postcustomstuff p.submit { - margin: 0; -} - -#templateside h4 { - margin: 1em 0 0; -} - -#templateside ol, -#templateside ul { - margin: .5em 0; - padding: 0; -} - -#templateside li { - margin: 4px 0; -} - -#templateside li a, -.theme-editor-php .highlight { - display: block; - padding: 3px 12px 3px 3px; - text-decoration: none; -} - -.theme-editor-php .highlight { - margin: -3px -12px -3px 3px; -} - -#templateside .highlight { - border: none; - font-weight: bold; -} - -.nonessential { - color: #666; - font-size: 11px; - font-style: italic; - padding-right: 12px; -} - -#documentation { - margin-top: 10px; -} - -#documentation label { - line-height: 22px; - vertical-align: baseline; - font-weight: 600; -} - -.fileedit-sub { - padding: 10px 0 8px; - line-height: 180%; -} - -/* @todo: can we use a common class for these? */ -.nav-menus-php .item-edit:before, -.widget-top a.widget-action:after, -.control-section .accordion-section-title:after, -.accordion-section-title:after { - left: 0; - content: '\f140'; - border: none; - background: none; - font: normal 20px/1 'dashicons'; - speak: none; - display: block; - padding: 0; - text-indent: 0; - text-align: center; - position: relative; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; -} - -.widget-action, -.handlediv, -.item-edit, -.sidebar-name-arrow, -.accordion-section-title:after { - color: #a0a5aa; -} - -.widget-action:hover, -.handlediv:hover, -.item-edit:hover, -.sidebar-name:hover .sidebar-name-arrow, -.accordion-section-title:hover:after { - color: #777; -} - -.widget-top a.widget-action:after { - padding: 12px 12px 11px; -} - -.widget-top a.widget-action:focus:after { - -webkit-box-shadow: 0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8); - box-shadow: 0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8); -} - -.nav-menus-php .item-edit:before { - line-height: 2.1; -} - -.control-section .accordion-section-title:after, -.accordion-section-title:after { - float: left; - left: 20px; - top: -2px; -} - -.control-section.open .accordion-section-title:after, -#customize-info.open .accordion-section-title:after, -.nav-menus-php .menu-item-edit-active .item-edit:before, -.widget.open .widget-top a.widget-action:after { - content: '\f142'; -} - -/*! - * jQuery UI Draggable/Sortable 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ -.ui-draggable-handle, -.ui-sortable-handle { - -ms-touch-action: none; - touch-action: none; -} - -/* Accordion */ -.accordion-section { - border-bottom: 1px solid #dfdfdf; - margin: 0; -} - -.accordion-section.open .accordion-section-content, -.no-js .accordion-section .accordion-section-content { - display: block; -} - -.accordion-section.open:hover { - border-bottom-color: #dfdfdf; -} - -.accordion-section-content { - display: none; - padding: 10px 20px 15px; - overflow: hidden; - background: #fff; -} - -.accordion-section-title { - margin: 0; - padding: 12px 15px 15px; - position: relative; - border-right: 1px solid #dfdfdf; - border-left: 1px solid #dfdfdf; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.js .accordion-section-title { - cursor: pointer; -} - -.js .accordion-section-title:after { - position: absolute; - top: 12px; - left: 10px; - z-index: 1; -} - -.accordion-section-title:focus { - outline: none; -} - -.accordion-section-title:hover:after, -.accordion-section-title:focus:after { - border-color: #a0a5aa transparent; -} - -.cannot-expand .accordion-section-title { - cursor: auto; -} - -.cannot-expand .accordion-section-title:after { - display: none; -} - -.control-section .accordion-section-title { - border-right: none; - border-left: none; - padding: 10px 14px 11px 10px; - line-height: 21px; - background: #fff; -} - -.control-section .accordion-section-title:after { - top: 11px; -} - -.js .control-section:hover .accordion-section-title, -.js .control-section .accordion-section-title:hover, -.js .control-section.open .accordion-section-title, -.js .control-section .accordion-section-title:focus { - color: #23282d; - background: #f5f5f5; -} - -.control-section.open .accordion-section-title { - /* When expanded */ - border-bottom: 1px solid #dfdfdf; -} - -/* Edit Site */ -.network-admin .edit-site-actions { - margin-top: 0; -} - -/* My Sites */ -.my-sites { - display: block; - overflow: auto; - zoom: 1; -} - -.my-sites li { - display: block; - padding: 8px 3%; - min-height: 130px; - margin: 0; -} - -@media only screen and (max-width: 599px) { - .my-sites li { - min-height: 0; - } -} - -@media only screen and (min-width: 600px) { - .my-sites.striped li { - background-color: #fff; - position: relative; - } - .my-sites.striped li:after { - content: ""; - width: 1px; - height: 100%; - position: absolute; - top: 0; - left: 0; - background: #ccc; - } - -} -@media only screen and (min-width: 600px) and (max-width: 699px) { - .my-sites li{ - float: right; - width: 44%; - } - .my-sites.striped li { - background-color: #fff; - } - .my-sites.striped li:nth-of-type(2n+1) { - clear: right; - } - .my-sites.striped li:nth-of-type(2n+2):after { - content: none; - } - .my-sites li:nth-of-type(4n+1), - .my-sites li:nth-of-type(4n+2) { - background-color: #f9f9f9; - } - -} - -@media only screen and (min-width: 700px) and (max-width: 1199px) { - .my-sites li { - float: right; - width: 27.333333%; - background-color: #fff; - } - .my-sites.striped li:nth-of-type(3n+3):after { - content: none; - } - .my-sites li:nth-of-type(6n+1), - .my-sites li:nth-of-type(6n+2), - .my-sites li:nth-of-type(6n+3) { - background-color: #f9f9f9; - } -} - -@media only screen and (min-width: 1200px) and (max-width: 1399px) { - .my-sites li { - float: right; - width: 21%; - padding: 8px 2%; - background-color: #fff; - } - .my-sites.striped li:nth-of-type(4n+1) { - clear: right; - } - .my-sites.striped li:nth-of-type(4n+4):after { - content: none; - } - .my-sites li:nth-of-type(8n+1), - .my-sites li:nth-of-type(8n+2), - .my-sites li:nth-of-type(8n+3), - .my-sites li:nth-of-type(8n+4) { - background-color: #f9f9f9; - } -} - -@media only screen and (min-width: 1400px) and (max-width: 1599px) { - .my-sites li { - float: right; - width: 16%; - padding: 8px 2%; - background-color: #fff; - } - .my-sites.striped li:nth-of-type(5n+1) { - clear: right; - } - .my-sites.striped li:nth-of-type(5n+5):after { - content: none; - } - .my-sites li:nth-of-type(10n+1), - .my-sites li:nth-of-type(10n+2), - .my-sites li:nth-of-type(10n+3), - .my-sites li:nth-of-type(10n+4), - .my-sites li:nth-of-type(10n+5) { - background-color: #f9f9f9; - } -} - -@media only screen and (min-width: 1600px) { - .my-sites li { - float: right; - width: 12.666666%; - padding: 8px 2%; - background-color: #fff; - } - .my-sites.striped li:nth-of-type(6n+1) { - clear: right; - } - .my-sites.striped li:nth-of-type(6n+6):after { - content: none; - } - .my-sites li:nth-of-type(12n+1), - .my-sites li:nth-of-type(12n+2), - .my-sites li:nth-of-type(12n+3), - .my-sites li:nth-of-type(12n+4), - .my-sites li:nth-of-type(12n+5), - .my-sites li:nth-of-type(12n+6) { - background-color: #f9f9f9; - } -} - -.my-sites li a { - text-decoration: none; -} - -/* =Media Queries --------------------------------------------------------------- */ - -/* @todo: de-duplication */ -@media only screen and (min-width: 769px) { - /* categories */ - #col-left { - width: 35%; - } - - #col-right { - width: 65%; - } -} - -@media only screen and (max-width: 860px) { - - /* categories */ - #col-left { - width: 35%; - } - - #col-right { - width: 65%; - } -} - -@media only screen and (min-width: 980px) { - - /* categories */ - #col-left { - width: 35%; - } - - #col-right { - width: 65%; - } -} - -@media only screen and (max-width: 768px) { - /* categories */ - #col-left { - width: 100%; - } - - #col-right { - width: 100%; - } -} - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - /* Back-compat for pre-3.8 */ - div.star-holder, - div.star-holder .star-rating { - background: url(../images/stars-2x.png?ver=20121108) repeat-x bottom left; - -webkit-background-size: 21px 37px; - background-size: 21px 37px; - } - - .spinner { - background-image: url(../images/spinner-2x.gif); - } - - /* @todo: evaluate - most of these were likely replaced by dashicons */ - .curtime #timestamp, - #screen-meta-links a.show-settings, - .widget-top a.widget-action, - .widget-top a.widget-action:hover, - .sidebar-name-arrow, - .sidebar-name:hover .sidebar-name-arrow, - .meta-box-sortables .postbox:hover .handlediv, - .tagchecklist span a, - #bulk-titles div a, - .tagchecklist span a:hover, - #bulk-titles div a:hover { - background: none !important; - } - -} - -@-ms-viewport { - width: device-width; -} - -@media screen and ( max-width: 782px ) { - html.wp-toolbar { - padding-top: 46px; - } - - body { - min-width: 240px; - overflow-x: hidden; - } - - body * { - -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important; - } - - #wpcontent { - position: relative; - margin-right: 0; - padding-right: 10px; - } - - #wpbody-content { - padding-bottom: 100px; - } - - .wrap { - margin-left: 12px; - margin-right: 0; - } - - .col-wrap { - padding: 0; - } - - /* Hidden Elements */ - #screen-meta, - #screen-meta-links, - #collapse-menu, - .post-format-select { - display: none !important; - } - - .wrap .add-new-h2, /* deprecated */ - .wrap .add-new-h2:active, /* deprecated */ - .wrap .page-title-action, - .wrap .page-title-action:active { - padding: 10px 15px; - font-size: 14px; - white-space: nowrap; - } - - .wp-color-result { - height: auto; - padding-right: 45px; - } - - .wp-color-result:after { - font-size: 14px; - height: auto; - padding: 6px 14px; - } - - /* Feedback Messages */ - .notice, - .wrap div.updated, - .wrap div.error, - .media-upload-form div.error { - margin: 20px 0 10px 0; - padding: 5px 10px; - font-size: 14px; - line-height: 175%; - } - - .wp-core-ui .notice.is-dismissible { - padding-left: 46px; - } - - .notice-dismiss { - padding: 13px; - } - - .wrap .icon32 + h2 { - margin-top: -2px; - } - - .wp-responsive-open #wpbody { - left: -190px; - } - - code { - word-wrap: break-word; - } - - /* General Metabox */ - .postbox { - font-size: 14px; - } - - .metabox-holder h3 { - padding: 12px; - } - - .postbox .handlediv { - margin-top: 3px; - } - - /* Subsubsub Nav */ - .subsubsub { - font-size: 16px; - text-align: center; - margin-bottom: 15px; - } - - /* Theme/Plugin File Editor */ - #templateside { - float: none; - width: auto; - } - - #templateside li { - margin: 0; - } - - #templateside li a { - display: block; - padding: 5px; - } - - #templateside .highlight { - padding: 5px; - margin-right: -5px; - margin-top: -5px; - } - - #template div { - float: none; - margin: 0; - width: auto; - } - - #template textarea { - width: 100%; - } - - .fileedit-sub .alignright { - margin-top: 15px; - } - - #wpfooter { - display: none; - } - - #comments-form .checkforspam { - display: none; - } - - .edit-comment-author { - margin: 2px 0 0; - } -} - -/* Smartphone */ -@media screen and (max-width: 600px) { - /* Disable horizontal scroll when responsive menu is open - since we push the main content off to the right. */ - #wpwrap.wp-responsive-open { - overflow-x: hidden; - } - - html.wp-toolbar { - padding-top: 0; - } - - #wpbody { - padding-top: 46px; - } - - /* Keep full-width boxes on Edit Post page from causing horizontal scroll */ - div#post-body.metabox-holder.columns-1 { - overflow-x: hidden; - } -} - -@media screen and (max-width: 320px) { - /* Prevent default center alignment and larger font for the Right Now widget when - the network dashboard is viewed on a small mobile device. */ - #network_dashboard_right_now .subsubsub { - font-size: 14px; - text-align: right; - } -} diff --git a/wp-admin/css/common.css b/wp-admin/css/common.css deleted file mode 100644 index d3765d9d02..0000000000 --- a/wp-admin/css/common.css +++ /dev/null @@ -1,3453 +0,0 @@ -/* 2 column liquid layout */ -#wpwrap { - height: auto; - min-height: 100%; - width: 100%; - position: relative; - -webkit-font-smoothing: subpixel-antialiased; -} - -#wpcontent { - height: 100%; - padding-left: 20px; -} - -#wpcontent, -#wpfooter { - margin-left: 160px; -} - -.folded #wpcontent, -.folded #wpfooter { - margin-left: 36px; -} - -#wpbody-content { - padding-bottom: 65px; - float: left; - width: 100%; - overflow: visible !important; -} - -/* inner 2 column liquid layout */ - -.inner-sidebar { - float: right; - clear: right; - display: none; - width: 281px; - position: relative; -} - -.columns-2 .inner-sidebar { - margin-right: auto; - width: 286px; - display: block; -} - -.inner-sidebar #side-sortables, -.columns-2 .inner-sidebar #side-sortables { - min-height: 300px; - width: 280px; - padding: 0; -} - -.has-right-sidebar .inner-sidebar { - display: block; -} - -.has-right-sidebar #post-body { - float: left; - clear: left; - width: 100%; - margin-right: -2000px; -} - -.has-right-sidebar #post-body-content { - margin-right: 300px; - float: none; - width: auto; -} - -/* 2 columns main area */ - -#col-container, -#col-left, -#col-right { - overflow: hidden; - padding: 0; - margin: 0; -} - -#col-left { - width: 35%; -} - -#col-right { - float: right; - clear: right; - width: 65%; -} - -.col-wrap { - padding: 0 7px; -} - -/* utility classes */ -.alignleft { - float: left; -} - -.alignright { - float: right; -} - -.textleft { - text-align: left; -} - -.textright { - text-align: right; -} - -.clear { - clear: both; -} - -/* Hide visually but not from screen readers */ -.screen-reader-text, -.screen-reader-text span, -.ui-helper-hidden-accessible { - position: absolute; - margin: -1px; - padding: 0; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(0 0 0 0); - border: 0; - word-wrap: normal !important; /* many screen reader and browser combinations announce broken words as they would appear visually */ -} - -.screen-reader-shortcut { - position: absolute; - top: -1000em; -} - -.screen-reader-shortcut:focus { - left: 6px; - top: -25px; - height: auto; - width: auto; - display: block; - font-size: 14px; - font-weight: 600; - padding: 15px 23px 14px; - background: #f1f1f1; - color: #21759b; - z-index: 100000; - line-height: normal; - -webkit-box-shadow: 0 0 2px 2px rgba(0,0,0,.6); - box-shadow: 0 0 2px 2px rgba(0,0,0,.6); - text-decoration: none; - outline: none; -} - -.hidden, -.js .closed .inside, -.js .hide-if-js, -.no-js .hide-if-no-js, -.js.wp-core-ui .hide-if-js, -.js .wp-core-ui .hide-if-js, -.no-js.wp-core-ui .hide-if-no-js, -.no-js .wp-core-ui .hide-if-no-js { - display: none; -} - -/* @todo: Take a second look. Large chunks of shared color, from the colors.css merge */ -.widget-top, -.menu-item-handle, -.widget-inside, -#menu-settings-column .accordion-container, -#menu-management .menu-edit, -.manage-menus, -table.widefat, -.stuffbox, -p.popular-tags, -.widgets-holder-wrap, -.wp-editor-container, -.popular-tags, -.feature-filter, -.imgedit-group, -.comment-ays { - border: 1px solid #e5e5e5; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); -} - -table.widefat, -.wp-editor-container, -.stuffbox, -p.popular-tags, -.widgets-holder-wrap, -.popular-tags, -.feature-filter, -.imgedit-group, -.comment-ays { - background: #fff; -} - -/* general */ -html, -body { - height: 100%; - margin: 0; - padding: 0; -} - -html { - background: #f1f1f1; -} - -body { - color: #444; - font-family: "Open Sans", sans-serif; - font-size: 13px; - line-height: 1.4em; - min-width: 600px; -} - -body.iframe { - min-width: 0; - padding-top: 1px; -} - -body.modal-open { - overflow: hidden; -} - -body.mobile.modal-open #wpwrap { - overflow: hidden; - position: fixed; - height: 100%; -} - -iframe, -img { - border: 0; -} - -td { - font-family: inherit; - font-size: inherit; - font-weight: inherit; - line-height: inherit; -} - -a { - color: #0073aa; - -webkit-transition-property: border, background, color; - transition-property: border, background, color; - -webkit-transition-duration: .05s; - transition-duration: .05s; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; -} - -a, -div { - outline: 0; -} - -a:hover, -a:active { - color: #00a0d2; -} - -a:focus, -a:focus .media-icon img { - color: #124964; - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.ie8 a:focus { - outline: #5b9dd9 solid 1px; -} - -#adminmenu a:focus, -.screen-reader-text:focus { - -webkit-box-shadow: none; - box-shadow: none; - outline: none; -} - -blockquote, -q { - quotes: none; -} - -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ''; - content: none; -} - -p { - font-size: 13px; - line-height: 1.5; - margin: 1em 0; -} - -blockquote { - margin: 1em; -} - -li, -dd { - margin-bottom: 6px; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - display: block; - font-weight: 600; -} - -h1 { - font-size: 2em; - margin: .67em 0; -} - -.wrap > h1, -h2 { - color: #23282d; - font-size: 1.5em; - margin: .83em 0; - font-weight: 400; -} - -h3 { - color: #23282d; - font-size: 1.3em; - margin: 1em 0; -} - -h4 { - font-size: 1em; - margin: 1.33em 0; -} - -h5 { - font-size: 0.83em; - margin: 1.67em 0; -} - -h6 { - font-size: 0.67em; - margin: 2.33em 0; -} - -ul, -ol { - padding: 0; -} - -ul { - list-style: none; -} - -ol { - list-style-type: decimal; - margin-left: 2em; -} - -ul.ul-disc { - list-style: disc outside; -} - -ul.ul-square { - list-style: square outside; -} - -ol.ol-decimal { - list-style: decimal outside; -} - -ul.ul-disc, -ul.ul-square, -ol.ol-decimal { - margin-left: 1.8em; -} - -ul.ul-disc > li, -ul.ul-square > li, -ol.ol-decimal > li { - margin: 0 0 0.5em; -} - -/* rtl:ignore */ -.ltr { - direction: ltr; -} - -/* rtl:ignore */ -.code, -code { - font-family: Consolas, Monaco, monospace; - direction: ltr; - unicode-bidi: embed; -} - -kbd, -code { - padding: 3px 5px 2px 5px; - margin: 0 1px; - background: #eaeaea; - background: rgba(0,0,0,0.07); - font-size: 13px; -} - -.subsubsub { - list-style: none; - margin: 8px 0 0; - padding: 0; - font-size: 13px; - float: left; - color: #666; -} - -.subsubsub a { - line-height: 2; - padding: .2em; - text-decoration: none; -} - -.subsubsub a .count, -.subsubsub a.current .count { - color: #999; - font-weight: normal; -} - -.subsubsub a.current { - font-weight: 600; - border: none; -} - -.subsubsub li { - display: inline-block; - margin: 0; - padding: 0; - white-space: nowrap; -} - -/* .widefat - main style for tables */ -.widefat { - border-spacing: 0; - width: 100%; - clear: both; - margin: 0; -} - -.widefat * { - word-wrap: break-word; -} - -.widefat a { - text-decoration: none; -} - -.widefat td, -.widefat th { - padding: 8px 10px; -} - -.widefat thead th, -.widefat thead td { - border-bottom: 1px solid #e1e1e1; -} - -.widefat tfoot th, -.widefat tfoot td { - border-top: 1px solid #e1e1e1; - border-bottom: none; -} - -.widefat .no-items td { - border-bottom-width: 0; -} - -.widefat td { - vertical-align: top; -} - -.widefat td, -.widefat td p, -.widefat td ol, -.widefat td ul { - font-size: 13px; - line-height: 1.5em; -} - -.widefat th, -.widefat thead td, -.widefat tfoot td { - text-align: left; - line-height: 1.3em; - font-size: 14px; -} - -.widefat th input, -.widefat thead td input, -.widefat tfoot td input { - margin: 0 0 0 8px; - padding: 0; - vertical-align: text-top; -} - -.widefat .check-column { - width: 2.2em; - padding: 6px 0 25px; - vertical-align: top; -} - -.widefat th input[type=checkbox], -.widefat thead td input[type=checkbox], -.widefat tfoot td input[type=checkbox] { - margin-top: -1px; -} - -.widefat tbody th.check-column { - padding: 9px 0 22px; -} - -.widefat thead td.check-column, -.widefat tbody th.check-column, -.widefat tfoot td.check-column { - padding: 11px 0 0 3px; -} - -.widefat thead td.check-column, -.widefat tfoot td.check-column { - padding-top: 10px; -} - -.update-php div.updated, -.update-php div.error { - margin-left: 0; -} - -.no-js .widefat thead .check-column input, -.no-js .widefat tfoot .check-column input { - display: none; -} - -.widefat .num, -.column-comments, -.column-links, -.column-posts { - text-align: center; -} - -.widefat th#comments { - vertical-align: middle; -} - -.wrap { - margin: 10px 20px 0 2px; -} - -.wrap h1, -.wrap h2, -.subtitle { - font-weight: normal; - margin: 0; -} - -.wrap h1, -.wrap h2 { - font-size: 23px; - font-weight: 400; - padding: 9px 15px 4px 0; - line-height: 29px; -} - -.subtitle { - color: #777; - font-size: 14px; - padding-left: 25px; -} - -.wrap .add-new-h2, /* deprecated */ -.wrap .add-new-h2:active, /* deprecated */ -.wrap .page-title-action, -.wrap .page-title-action:active { - margin-left: 4px; - padding: 4px 8px; - position: relative; - top: -3px; - text-decoration: none; - border: none; - -webkit-border-radius: 2px; - border-radius: 2px; - background: #e0e0e0; - text-shadow: none; - font-weight: 600; - font-size: 13px; -} - -.wrap .add-new-h2:hover, /* deprecated */ -.wrap .page-title-action:hover { - background: #00a0d2; - color: #fff; -} - -.wrap h1.long-header { - padding-right: 0; -} - -.wp-dialog { - background-color: #fff; -} - -.widgets-chooser ul, -#widgets-left .widget-in-question .widget-top, -#available-widgets .widget-top:hover, -div#widgets-right .widget-top:hover, -#widgets-left .widget-top:hover { - border-color: #999; - -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1); - box-shadow: 0 1px 2px rgba(0,0,0,0.1); -} - -.sorthelper { - background-color: #ccf3fa; -} - -.ac_match, -.subsubsub a.current { - color: #000; -} - -.striped > tbody > :nth-child(odd), -ul.striped > :nth-child(odd), -.alternate { - background-color: #f9f9f9; -} - -.bar { - background-color: #e8e8e8; - border-right-color: #99d; -} - -.media-upload-form label.form-help, -td.help { - color: #9a9a9a; -} - -/* Helper classes for plugins to leverage the active WordPress color scheme */ - -.highlight { - background-color: #e4f2fd; - color: #000; -} - -.wp-ui-primary { - color: #fff; - background-color: #32373c; -} -.wp-ui-text-primary { - color: #32373c; -} - -.wp-ui-highlight { - color: white; - background-color: #1e8cbe; -} -.wp-ui-text-highlight { - color: #1e8cbe; -} - -.wp-ui-notification { - color: #fff; - background-color: #d54e21; -} -.wp-ui-text-notification { - color: #d54e21; -} - -.wp-ui-text-icon { - color: #999; -} - -/* For emoji replacement images */ -img.emoji { - display: inline !important; - border: none !important; - height: 1em !important; - width: 1em !important; - margin: 0 .07em !important; - vertical-align: -0.1em !important; - background: none !important; - padding: 0 !important; - -webkit-box-shadow: none !important; - box-shadow: none !important; -} - -/*------------------------------------------------------------------------------ - 1.0 - Text Styles -------------------------------------------------------------------------------*/ - -.widget .widget-top, -.postbox .hndle, -.stuffbox .hndle, -.control-section .accordion-section-title, -.sidebar-name, -#nav-menu-header, -#nav-menu-footer, -.menu-item-handle, -.checkbox, -.side-info, -#your-profile #rich_editing, -.widefat thead th, -.widefat thead td, -.widefat tfoot th, -.widefat tfoot td { - line-height: 1.4em; -} - -.widget .widget-top, -.menu-item-handle { - background: #fafafa; - color: #23282d; -} - -.postbox .hndle, -.stuffbox .hndle { - border-bottom: 1px solid #eee; -} - -.quicktags, -.search { - background-color: #ccc; - color: #000; - font-size: 12px; -} - -.icon32 { - display: none; -} - -/* @todo can we combine these into a class or use an existing dashicon one? */ -.welcome-panel .welcome-panel-close:before, -.tagchecklist span a:before, -#bulk-titles div a:before, -.notice-dismiss:before { - background: none; - color: #b4b9be; - content: '\f153'; - display: block; - font: normal 16px/20px 'dashicons'; - speak: none; - height: 20px; - text-align: center; - width: 20px; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.welcome-panel .welcome-panel-close:before { - margin: 0; -} - -.tagchecklist span a:before, -#bulk-titles div a:before { - margin: 1px 0; -} - -.welcome-panel .welcome-panel-close:hover:before, -.welcome-panel .welcome-panel-close:focus:before, -.tagchecklist span a:hover:before, -#bulk-titles div a:hover:before { - color: #c00; -} - -.key-labels label { - line-height: 24px; -} - -strong, b { - font-weight: 600; -} - -.pre { - /* https://developer.mozilla.org/en-US/docs/CSS/white-space */ - white-space: pre-wrap; /* css-3 */ - word-wrap: break-word; /* IE 5.5 - 7 */ -} - -.howto { - color: #666; - font-style: italic; - display: block; -} - -p.install-help { - margin: 8px 0; - font-style: italic; -} - -.no-break { - white-space: nowrap; -} - -hr { - border: 0; - border-top: 1px solid #ddd; - border-bottom: 1px solid #fafafa; -} - -.row-actions span.delete a, -.row-actions span.trash a, -.row-actions span.spam a, -.plugins a.delete, -#all-plugins-table .plugins a.delete, -#search-plugins-table .plugins a.delete, -.submitbox .submitdelete, -#media-items a.delete, -#media-items a.delete-permanently, -#nav-menu-footer .menu-delete { - color: #a00; -} - -abbr.required, -.file-error, -.widget-control-remove:hover, -.row-actions .delete a:hover, -.row-actions .trash a:hover, -.row-actions .spam a:hover, -.plugins a.delete:hover, -#all-plugins-table .plugins a.delete:hover, -#search-plugins-table .plugins a.delete:hover, -.submitbox .submitdelete:hover, -#media-items a.delete:hover, -#media-items a.delete-permanently:hover, -#nav-menu-footer .menu-delete:hover { - color: #f00; - text-decoration: none; - border: none; -} - -/*------------------------------------------------------------------------------ - 3.0 - Actions -------------------------------------------------------------------------------*/ - -#major-publishing-actions { - padding: 10px; - clear: both; - border-top: 1px solid #ddd; - background: #f5f5f5; -} - -#delete-action { - line-height: 28px; - vertical-align: middle; - text-align: left; - float: left; -} - -#publishing-action { - text-align: right; - float: right; - line-height: 23px; -} - -#publishing-action .spinner { - float: left; -} - -#misc-publishing-actions { - padding: 6px 0 0; -} - -.misc-pub-section { - padding: 6px 10px 8px; -} - -#minor-publishing-actions { - padding: 10px 10px 0 10px; - text-align: right; -} - -#save-post { - float: left; -} - -.preview { - float: right; -} - -#sticky-span { - margin-left: 18px; -} - -.side-info { - margin: 0; - padding: 4px; - font-size: 11px; -} - -.side-info h5 { - padding-bottom: 7px; - font-size: 14px; - margin: 12px 2px 5px; - border-bottom: 1px solid #dadada; -} - -.side-info ul { - margin: 0; - padding-left: 18px; - list-style: square; - color: #666; -} - -.approve, -.unapproved .unapprove { - display: none; -} - -.unapproved .approve, -.spam .approve, -.trash .approve { - display: inline; -} - -td.action-links, -th.action-links { - text-align: right; -} - -/* Filter bar */ -.wp-filter { - display: inline-block; - position: relative; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin: 12px 0 25px; - padding: 0 10px; - width: 100%; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); - border: 1px solid #e5e5e5; - background: #fff; - color: #555; - font-size: 13px; -} - -.wp-filter a { - text-decoration: none; -} - -.filter-count { - display: inline-block; - vertical-align: middle; - min-width: 4em; -} - -.title-count, -.filter-count .count { - display: inline-block; - position: relative; - top: -1px; - padding: 4px 10px; - -webkit-border-radius: 30px; - border-radius: 30px; - background: #777; - color: #fff; - font-size: 14px; - font-weight: 600; -} - -/* not a part of filter bar, but derived from it, so here for now */ -.title-count { - display: inline; - top: -3px; - margin-left: 5px; - margin-right: 20px; -} - -.filter-items { - float: left; -} - -.filter-links { - display: inline-block; - margin: 0; -} - -.filter-links li { - display: inline-block; - margin: 0; -} - -.filter-links li > a { - display: inline-block; - margin: 0 10px; - padding: 15px 0; - border-bottom: 4px solid #fff; - color: #666; - cursor: pointer; -} - -.filter-links .current { - -webkit-box-shadow: none; - box-shadow: none; - border-bottom: 4px solid #666; - color: #23282d; -} - -.filter-links li > a:hover, -.filter-links li > a:focus, -.show-filters .filter-links a.current:hover, -.show-filters .filter-links a.current:focus { - color: #00a0d2; -} - -.wp-filter .search-form { - float: right; - margin: 10px 0; -} - -.wp-filter .search-form input[type="search"] { - margin: 0; - padding: 3px 5px; - width: 280px; - max-width: 100%; - font-size: 16px; - font-weight: 300; - line-height: 1.5; -} - -.wp-filter .search-form select { - margin: 0; - height: 32px; - vertical-align: top; -} - -.wp-filter .search-form.search-plugins { - display: inline-block; -} - -.wp-filter .drawer-toggle { - display: inline-block; - margin: 0 10px; - padding: 4px 6px; - color: #666; - cursor: pointer; -} - -.wp-filter .drawer-toggle:before { - display: inline-block; - vertical-align: top; - content: "\f111"; - margin: 0 5px 0 0; - width: 16px; - height: 16px; - color: #777; - -webkit-transition: color .1s ease-in 0; - transition: color .1s ease-in 0; - font-family: "dashicons"; - font-size: 16px; - line-height: 1; - text-align: center; - text-decoration: inherit; - font-weight: normal; - font-style: normal; - -webkit-font-smoothing: antialiased; -} - -.wp-filter .drawer-toggle:hover, -.wp-filter .drawer-toggle:hover:before { - color: #00a0d2; -} - -.wp-filter .drawer-toggle.current:before { - color: #fff; -} - -.filter-drawer { - display: none; - margin: 0 -20px; - padding: 20px; - border-top: 1px solid #eee; - background: #fafafa; -} - -.show-filters .filter-drawer { - display: block; - overflow: hidden; - width: 100%; -} - -.show-filters .wp-filter .drawer-toggle:hover, -.show-filters .wp-filter .drawer-toggle:focus { - background: rgb(46, 162, 204); -} - -.show-filters .filter-links a.current { - border-bottom: none; -} - -.show-filters .wp-filter .drawer-toggle { - -webkit-border-radius: 2px; - border-radius: 2px; - border: none; - background: #777; - color: #fff; -} - -.show-filters .wp-filter .drawer-toggle:before { - color: #fff; -} - -.filter-group { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - float: left; - margin: 0 1% 0 0; - padding: 10px; - width: 24%; - background: #fff; - border: 1px solid #e5e5e5; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); -} - -.filter-group h4 { - position: relative; - margin: 0; -} - -.filter-drawer ol { - margin: 20px 0 0; - list-style-type: none; - font-size: 12px; -} - -.filter-drawer li { - display: inline-block; - vertical-align: top; - margin: 5px 0; - padding-right: 25px; - width: 160px; - list-style-type: none; -} - -.filter-drawer .buttons { - margin-bottom: 20px; -} - -.filter-drawer .buttons .button span { - display: inline-block; - opacity: 0.8; - font-size: 12px; - text-indent: 10px; -} - -.wp-filter .button.clear-filters { - display: none; - margin-left: 10px; -} - -.filtered-by { - display: none; - margin: 0; -} - -.filtered-by > span { - font-weight: 600; -} - -.filtered-by a { - margin-left: 10px; -} - -.filtered-by .tags { - display: inline; -} - -.filtered-by .tag { - margin: 0 5px; - padding: 4px 8px; - border: 1px solid #e5e5e5; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); - background: #fff; - font-size: 11px; -} - -.filters-applied .filter-group, -.filters-applied .filter-drawer .buttons, -.filters-applied .filter-drawer br { - display: none !important; -} - -.filters-applied .filtered-by { - display: block; -} - -.filters-applied .filter-drawer { - padding: 20px; -} - -.show-filters .content-filterable, -.show-filters.filters-applied.loading-content .content-filterable, -.loading-content .content-filterable, -.error .content-filterable { - display: none; -} - -.show-filters.filters-applied .content-filterable { - display: block; -} - -.loading-content .spinner { - display: block; - margin: 40px auto 0; - float: none; -} - -@media only screen and (max-width: 1120px) { - .filter-drawer { - border-bottom: 1px solid #eee; - } - - .filter-group { - margin-bottom: 0; - margin-top: 5px; - width: 100%; - } - - .filter-group li { - margin: 10px 0; - } -} - -@media only screen and (max-width: 1000px) { - .filter-items { - float: none; - } - - .wp-filter .media-toolbar-primary, - .wp-filter .media-toolbar-secondary, - .wp-filter .search-form { - float: none; /* Remove float from media-views.css */ - position: relative; - max-width: 100%; - } -} - -@media only screen and (max-width: 782px) { - .filter-group li { - padding: 0; - width: 50%; - } -} - -@media only screen and (max-width: 320px) { - .filter-count { - display: none; - } - - .wp-filter .drawer-toggle { - margin: 10px 0; - } - - .filter-group li, - .wp-filter .search-form input[type="search"] { - width: 100%; - } -} - -/*------------------------------------------------------------------------------ - 4.0 - Notifications -------------------------------------------------------------------------------*/ - -.notice, -div.updated, -div.error { - background: #fff; - border-left: 4px solid #fff; - -webkit-box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); - box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); - margin: 5px 15px 2px; - padding: 1px 12px; -} - -.notice p, -div.updated p, -div.error p, -.form-table td .notice p { - margin: 0.5em 0; - padding: 2px; -} - -.wp-core-ui .notice.is-dismissible { - padding-right: 38px; - position: relative; -} - -.notice-dismiss { - position: absolute; - top: 0; - right: 1px; - border: none; - margin: 0; - padding: 9px; - background: none; - color: #b4b9be; - cursor: pointer; -} - -.notice-dismiss:hover:before, -.notice-dismiss:active:before, -.notice-dismiss:focus:before { - color: #c00; -} - -.notice-dismiss:focus { - outline: none; - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.ie8 .notice-dismiss:focus { - outline: 1px solid #5b9dd9; -} - -.notice-success, -div.updated { - border-color: #7ad03a; -} - -.notice-warning { - border-color: #ffba00; -} - -.notice-error, -div.error { - border-color: #dd3d36; -} - -.notice-info { - border-color: #00a0d2; -} - -.wrap .notice, -.wrap div.updated, -.wrap div.error, -.media-upload-form .notice, -.media-upload-form div.error { - margin: 5px 0 15px; -} - -#update-nag, -.update-nag { - display: inline-block; - line-height: 19px; - padding: 11px 15px; - font-size: 14px; - text-align: left; - margin: 25px 20px 0 2px; - background-color: #fff; - border-left: 4px solid #ffba00; - -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); - box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); -} - -.update-message { - color: #000; -} - -ul#dismissed-updates { - display: none; -} - -form.upgrade { - margin-top: 8px; -} - -form.upgrade .hint { - font-style: italic; - font-size: 85%; - margin: -0.5em 0 2em 0; -} - -.update-php .spinner { - float: none; - margin: -4px 0; -} - -#ajax-loading, -.ajax-loading, -.ajax-feedback, -.imgedit-wait-spin, -.list-ajax-loading { /* deprecated */ - visibility: hidden; -} - -#ajax-response.alignleft { - margin-left: 2em; -} - -/* @todo: this does not need its own section anymore */ -/*------------------------------------------------------------------------------ - 6.0 - Admin Header -------------------------------------------------------------------------------*/ -#adminmenu a, -#taglist a, -#catlist a { - text-decoration: none; -} - -/*------------------------------------------------------------------------------ - 6.1 - Screen Options Tabs -------------------------------------------------------------------------------*/ - -#screen-options-wrap, -#contextual-help-wrap { - margin: 0; - padding: 8px 20px 12px; - position: relative; -} - -#contextual-help-wrap { - overflow: auto; - margin-left: 0 !important; -} - -#screen-meta .screen-reader-text { - visibility: hidden; -} - -#screen-meta-links { - margin: 0 20px 0 0; -} - -/* screen options and help tabs revert */ -#screen-meta { - display: none; - margin: 0 20px -1px 0px; - position: relative; - background-color: #fff; - border: 1px solid #ddd; - border-top: none; - -webkit-box-shadow: 0 1px 0 rgba(0,0,0,.025); - box-shadow: 0 1px 0 rgba(0,0,0,.025); -} - -#screen-options-link-wrap, -#contextual-help-link-wrap { - float: right; - height: 28px; - margin: 0 0 0 6px; - border: 1px solid #ddd; - border-top: none; - background: #fff; - -webkit-box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); - box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); -} - -#screen-meta-links .screen-meta-toggle { - position: relative; - top: 0; -} - -#screen-meta-links .show-settings { - border: 0; - background: none; - -webkit-border-radius: 0; - border-radius: 0; - color: #777; - line-height: 1.7; - padding: 3px 6px 3px 16px; -} - -#screen-meta-links .show-settings:hover, -#screen-meta-links .show-settings:active, -#screen-meta-links .show-settings:focus { - color: #32373c; -} - -#screen-meta-links .show-settings:after { - right: 0; - content: '\f140'; - font: normal 20px/1 'dashicons'; - speak: none; - display: inline-block; - padding: 0 5px 0 0; - bottom: 2px; - position: relative; - vertical-align: bottom; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; - color: #b4b9be; -} - -#screen-meta-links .screen-meta-active:after { - content: '\f142'; -} - -/* end screen options and help tabs */ - -.toggle-arrow { - background-repeat: no-repeat; - background-position: top left; - background-color: transparent; - height: 22px; - line-height: 22px; - display: block; -} - -.toggle-arrow-active { - background-position: bottom left; -} - -#screen-options-wrap h5, -#contextual-help-wrap h5 { - margin: 8px 0; - font-size: 13px; -} - -.metabox-prefs label { - display: inline-block; - padding-right: 15px; - line-height: 30px; -} - -.metabox-prefs label input[type=checkbox] { - margin-top: -4px; - margin-right: 6px; -} - -.metabox-prefs label input { - margin: 0 5px 0 2px; -} - -.metabox-prefs .columns-prefs label input { - margin: 0 2px; -} - -.metabox-prefs label a { - display: none; -} - -.metabox-prefs .screen-options { - padding-top: 10px; -} - -.metabox-prefs .screen-options input, -.metabox-prefs .screen-options label { - margin-top: 0; - margin-bottom: 0; - vertical-align: middle; -} - -.metabox-prefs .screen-options .screen-per-page { - margin-right: 15px; -} - -.metabox-prefs .screen-options label { - line-height: 28px; - padding-right: 0; -} - -/*------------------------------------------------------------------------------ - 6.2 - Help Menu -------------------------------------------------------------------------------*/ - -#contextual-help-wrap { - padding: 0; -} - -#contextual-help-columns { - position: relative; -} - -#contextual-help-back { - position: absolute; - top: 0; - bottom: 0; - left: 150px; - right: 170px; - border: 1px solid #e1e1e1; - border-top: none; - border-bottom: none; - background: #f6fbfd; -} - -#contextual-help-wrap.no-sidebar #contextual-help-back { - right: 0; - border-right-width: 0; - -webkit-border-bottom-right-radius: 2px; - border-bottom-right-radius: 2px; -} - -.contextual-help-tabs { - float: left; - width: 150px; - margin: 0; -} - -.contextual-help-tabs ul { - margin: 1em 0; -} - -.contextual-help-tabs li { - margin-bottom: 0; - list-style-type: none; - border-style: solid; - border-width: 0 0 0 2px; - border-color: transparent; -} - -.contextual-help-tabs a { - display: block; - padding: 5px 5px 5px 12px; - line-height: 18px; - text-decoration: none; - border: 1px solid transparent; - border-right: none; - border-left: none; -} - -.contextual-help-tabs a:hover { - color: #32373c; -} - -.contextual-help-tabs .active { - padding: 0; - margin: 0 -1px 0 0; - border-left: 2px solid #00a0d2; - background: #f6fbfd; - -webkit-box-shadow: 0 2px 0 rgba(0,0,0,0.02), 0 1px 0 rgba(0,0,0,0.02); - box-shadow: 0 2px 0 rgba(0,0,0,0.02), 0 1px 0 rgba(0,0,0,0.02); -} - -.contextual-help-tabs .active a { - border-color: #e1e1e1; - color: #32373c; -} - -.contextual-help-tabs-wrap { - padding: 0 20px; - overflow: auto; -} - -.help-tab-content { - display: none; - margin: 0 22px 12px 0; - line-height: 1.6em; -} - -.help-tab-content.active { - display: block; -} - -.help-tab-content ul li { - list-style-type: disc; - margin-left: 18px; -} - -.contextual-help-sidebar { - width: 150px; - float: right; - padding: 0 8px 0 12px; - overflow: auto; -} - -/*------------------------------------------------------------------------------ - 8.0 - Layout Blocks -------------------------------------------------------------------------------*/ - -html.wp-toolbar { - padding-top: 32px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.widefat th, -.widefat td { - color: #555; -} - -.widefat th, -.widefat thead td, -.widefat tfoot td { - font-weight: normal; -} - -.widefat thead tr th, -.widefat thead tr td, -.widefat tfoot tr th, -.widefat tfoot tr td { - color: #32373c; -} - -.widefat td p { - margin: 2px 0 0.8em; -} - -.widefat p, -.widefat ol, -.widefat ul { - color: #32373c; -} - -.widefat .column-comment p { - margin: 0.6em 0; -} - -/* Screens with postboxes */ -.postbox-container { - float: left; -} - -.postbox-container .meta-box-sortables { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -#wpbody-content .metabox-holder { - padding-top: 10px; -} - -.metabox-holder .postbox-container .empty-container { - border: 3px dashed #b4b9be; - height: 250px; -} - -.metabox-holder.columns-1 .postbox-container .empty-container, -.columns-2 #postbox-container-3 .empty-container, -.columns-2 #postbox-container-4 .empty-container, -.columns-3 #postbox-container-4 .empty-container { - border: 0 none; - height: 0; - min-height: 0; -} - -#post-body-content { - width: 100%; - min-width: 463px; - float: left; -} - -#post-body.columns-2 #postbox-container-1 { - float: right; - margin-right: -300px; - width: 280px; -} - -#post-body.columns-2 #side-sortables { - min-height: 250px; -} - -/* one column on the dash */ -@media only screen and (max-width: 799px) { - #wpbody-content .metabox-holder .postbox-container .empty-container { - border: 0 none; - height: 0; - min-height: 0; - } -} - -.js .widget .widget-top, -.js .postbox .hndle { - cursor: move; -} - -.hndle a { - font-size: 11px; - font-weight: normal; -} - -.postbox .handlediv { - float: right; - width: 27px; - height: 30px; -} - -.js .postbox .handlediv { - cursor: pointer; -} - -.sortable-placeholder { - border: 1px dashed #b4b9be; - margin-bottom: 20px; -} - -.postbox, -.stuffbox { - margin-bottom: 20px; - padding: 0; - line-height: 1; -} - -/* user-select is not a part of the CSS standard - may change behavior in the future */ -.postbox .hndle, -.stuffbox .hndle { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.postbox .inside, -.stuffbox .inside { - padding: 0 12px 12px; - line-height: 1.4em; - font-size: 13px; -} - -.postbox .inside { - margin: 11px 0; - position: relative; -} - -.postbox .inside > p:last-child, -.rss-widget ul li:last-child { - margin-bottom: 1px !important; -} - -.postbox.closed h3 { - border: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.postbox table.form-table { - margin-bottom: 0; -} - -.postbox table.widefat { - -webkit-box-shadow: none; - box-shadow: none; -} - -.temp-border { - border: 1px dotted #ccc; -} - -.columns-prefs label { - padding: 0 5px; -} - -/* @todo: what is this doing here */ -#dashboard_right_now .versions .b, -#post-status-display, -#post-visibility-display, -#adminmenu .wp-submenu li.current, -#adminmenu .wp-submenu li.current a, -#adminmenu .wp-submenu li.current a:hover, -.media-item .percent, -.plugins .name, -#pass-strength-result.strong, -#pass-strength-result.short, -#ed_reply_toolbar #ed_reply_strong, -.item-controls .item-order a, -.feature-filter .feature-name { - font-weight: 600; -} - -/*------------------------------------------------------------------------------ - 21.0 - Admin Footer -------------------------------------------------------------------------------*/ - -#wpfooter { - position: absolute; - bottom: 0; - left: 0; - right: 0; - padding: 10px 20px; - color: #777; -} - -#wpfooter p { - font-size: 13px; - margin: 0; - line-height: 20px; -} - -#footer-thankyou { - font-style: italic; -} - -#wpfooter a { - text-decoration: none; -} - -#wpfooter a:hover { - text-decoration: underline; -} - -/*------------------------------------------------------------------------------ - 25.0 - Tabbed Admin Screen Interface (Experimental) -------------------------------------------------------------------------------*/ - -.nav-tab { - border: 1px solid #ccc; - border-bottom: none; - background: #e4e4e4; - color: #555; - font-size: 12px; - line-height: 16px; - display: inline-block; - padding: 4px 14px 6px; - text-decoration: none; - margin: -4px 4px -1px 0; -} - -.nav-tab:hover { - background-color: #fff; - color: #464646; -} - -.nav-tab-active { - color: #464646; -} - -.nav-tab-active, -.nav-tab-active:hover { - border-bottom: 1px solid #f1f1f1; - background: #f1f1f1; - color: #000; -} - -h1.nav-tab-wrapper, -h2.nav-tab-wrapper, -h3.nav-tab-wrapper { - border-bottom: 1px solid #ccc; - padding-bottom: 0; - padding-left: 10px; -} - -h1 .nav-tab, -h2 .nav-tab { - padding: 6px 10px; - font-weight: bold; - font-size: 15px; - line-height: 24px; -} - - -/*------------------------------------------------------------------------------ - 26.0 - Misc -------------------------------------------------------------------------------*/ - -.spinner { - background: url(../images/spinner.gif) no-repeat; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - display: inline-block; - visibility: hidden; - float: right; - vertical-align: middle; - opacity: 0.7; - filter: alpha(opacity=70); - width: 20px; - height: 20px; - margin: 4px 10px 0; -} - -.spinner.is-active { - visibility: visible; -} - -#template div { - margin-right: 190px; -} - -.metabox-holder h3 { - font-size: 14px; - padding: 8px 12px; - margin: 0; - line-height: 1.4; -} - -#templateside ul li a { - text-decoration: none; -} - -.plugin-install #description, -.plugin-install-network #description { - width: 60%; -} - -table .vers, -table .column-visible, -table .column-rating { - text-align: left; -} - -.attention, -.error-message { - color: red; - font-weight: 600; -} - -/* Scrollbar fix for bulk upgrade iframe */ -body.iframe { - height: 98%; -} - -/* Upgrader styles, Specific to Language Packs */ -.lp-show-latest p { - display: none; -} -.lp-show-latest p:last-child, -.lp-show-latest .lp-error p { - display: block; -} - -/* - Only used once or twice in all of WP - deprecate for global style -------------------------------------------------------------------------------*/ -.media-icon { - width: 62px; /* icon + border */ - text-align: center; -} - -.media-icon img { - border: 1px solid #e7e7e7; - border: 1px solid rgba(0, 0, 0, 0.07); -} - -#howto { - font-size: 11px; - margin: 0 5px; - display: block; -} - -.importers td { - padding-right: 14px; -} - -.importers { - font-size: 16px; - width: auto; -} - -#post-body #post-body-content #namediv h3 { - margin-top: 0; -} - -.edit-comment-author { - font-size: 14px; - line-height: 1.4; - font-weight: 600; - color: #222; - margin: 2px 0 0 9px; -} - -#namediv h3 label { - vertical-align: baseline; -} - -#namediv table { - width: 100%; -} - -#namediv td.first { - width: 10px; - white-space: nowrap; -} - -#namediv input { - width: 98%; -} - -#namediv p { - margin: 10px 0; -} - -#submitdiv h3 { - margin-bottom: 0 !important; -} - -/* - Used - but could/should be deprecated with a CSS reset -------------------------------------------------------------------------------*/ -.zerosize { - height: 0; - width: 0; - margin: 0; - border: 0; - padding: 0; - overflow: hidden; - position: absolute; -} - -br.clear { - height: 2px; - line-height: 2px; -} - -.checkbox { - border: none; - margin: 0; - padding: 0; -} - -fieldset { - border: 0; - padding: 0; - margin: 0; -} - -.post-categories { - display: inline; - margin: 0; - padding: 0; -} - -.post-categories li { - display: inline; -} - -/* Star Ratings - Back-compat for pre-3.8 */ -div.star-holder { - position: relative; - height: 17px; - width: 100px; - background: url(../images/stars.png?ver=20121108) repeat-x bottom left; -} - -div.star-holder .star-rating { - background: url(../images/stars.png?ver=20121108) repeat-x top left; - height: 17px; - float: left; -} - -/* Star Ratings */ -.star-rating { - white-space: nowrap; -} -.star-rating .star { - display: inline-block; - width: 20px; - height: 20px; - -webkit-font-smoothing: antialiased; - font-size: 20px; - line-height: 1; - font-family: 'dashicons'; - text-decoration: inherit; - font-weight: normal; - font-style: normal; - vertical-align: top; - -webkit-transition: color .1s ease-in 0; - transition: color .1s ease-in 0; - text-align: center; - color: #ffb900; -} - -.star-rating .star-full:before { - content:'\f155'; -} - -.star-rating .star-half:before { - content:'\f459'; -} - -.rtl .star-rating .star-half { - -webkit-transform: rotateY(180deg); - -ms-transform: rotateY(180deg); - transform: rotateY(180deg); -} - -.star-rating .star-empty:before { - content:'\f154'; -} - -div.action-links { - font-weight: normal; - margin: 6px 0 0; -} - -/* Plugin install thickbox */ -#plugin-information { - background: #fff; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - height: 100%; - padding: 0; -} - -#plugin-information-scrollable { - overflow: auto; - -webkit-overflow-scrolling: touch; - height: 100%; -} - -#plugin-information-title { - padding: 0 20px; - background: #f5f5f5; - font-size: 22px; - font-weight: 600; - line-height: 56px; - position: relative; - top: 0; - right: 0; - left: 0; - height: 56px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -#plugin-information-title.with-banner { - margin-right: 0; - height: 250px; - bottom: 250px; - -webkit-background-size: cover; - background-size: cover; -} - -#plugin-information-title h2 { - font-size: 1em; - font-weight: bold; - padding: 0; - margin: 0; - max-width: 680px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -#plugin-information-title.with-banner h2 { - font-family: "Helvetica Neue", sans-serif; - display: inline-block; - font-size: 30px; - line-height: 50px; - padding: 0 15px; - margin: 174px 0 0 10px; - color: #fff; - background: rgba( 30, 30, 30, 0.9 ); - text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.4 ); - -webkit-box-shadow: 0 0 30px rgba( 255, 255, 255, 0.1 ); - box-shadow: 0 0 30px rgba( 255, 255, 255, 0.1 ); - -webkit-border-radius: 8px; - border-radius: 8px; -} - -#plugin-information-title div.vignette { - display: none; -} - -#plugin-information-title.with-banner div.vignette { - display: block; - float: right; - top: 0; - height: 250px; - width: 772px; - margin: 0 -20px; - background: transparent; - -webkit-box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 ); -} - -#plugin-information-tabs { - padding: 0 16px; - position: relative; - right: 0; - left: 0; - height: 36px; - z-index: 1; - border-bottom: 1px solid #ddd; - background: #f3f3f3; -} - -#plugin-information-tabs a { - position: relative; - float: left; - padding: 9px 10px; - margin: 0; - height: 18px; - line-height: 18px; - font-size: 14px; - text-decoration: none; - -webkit-transition: none; - transition: none; -} - -#plugin-information-tabs a.current { - margin: 0 -1px 0; - background: #fff; - border: 1px solid #ddd; - border-bottom-color: #fff; - padding-top: 8px; - color: #32373c; -} - -#plugin-information-tabs.with-banner a.current { - border-top: none; - padding-top: 9px; -} - -#plugin-information-tabs a:active, -#plugin-information-tabs a:focus { - outline: none; -} - -#plugin-information-content { - overflow: hidden; /* equal height column trick */ - background: #fff; - position: relative; - top: 0; - right: 0; - left: 0; - min-height: 100%; - /* Height of title + tabs + install now */ - min-height: -webkit-calc( 100% - 152px ); - min-height: calc( 100% - 152px ); -} - -#plugin-information-content.with-banner { - /* Height of banner + tabs + install now */ - min-height: -webkit-calc( 100% - 346px ); - min-height: calc( 100% - 346px ); -} - -#section-holder { - position: relative; - top: 0; - right: 250px; - bottom: 0; - left: 0; - margin-right: 250px; /* FYI box */ - padding: 10px 26px; - margin-bottom: -99930px; /* a bit less than the padding below to accommodate footer */ - padding-bottom: 99999px; /* equal height column trick */ -} - -#section-holder .updated { - margin: 16px 0; -} - -#plugin-information .fyi { - display: block; - float: right; - position: relative; - top: 0; - right: 0; - padding: 16px; - margin-bottom: -99930px; /* slightly less than the padding below to accommodate footer */ - padding-bottom: 99999px; /* equal height column trick */ - width: 217px; - border-left: 1px solid #ddd; - background: #f3f3f3; - color: #666; -} - -#plugin-information .fyi strong { - color: #464646; -} - -#plugin-information .fyi h3 { - font-weight: bold; - text-transform: uppercase; - font-size: 12px; - color: #666; - margin: 24px 0 8px; -} - -#plugin-information .fyi h2 { - font-size: 0.9em; - margin-bottom: 0; - margin-right: 0; -} - -#plugin-information .fyi ul { - padding: 0; - margin: 0; - list-style: none; -} - -#plugin-information .fyi li { - margin: 0 0 10px; -} - -#plugin-information .counter-container { - margin: 3px 0; -} - -#plugin-information .counter-label { - float: left; - margin-right: 5px; - min-width: 55px; -} - -#plugin-information .counter-back { - height: 17px; - width: 92px; - background-color: #ececec; - float: left; -} - -#plugin-information .counter-bar { - height: 17px; - background-color: #ffc733; /* slightly lighter than stars due to larger expanse */ - float: left; -} - -#plugin-information .counter-count { - margin-left: 5px; -} - -#plugin-information .fyi ul.contributors { - margin-top: 10px; -} - -#plugin-information .fyi ul.contributors li { - display: inline-block; - margin-right: 8px; - vertical-align: middle; -} - -#plugin-information .fyi ul.contributors li { - display: inline-block; - margin-right: 8px; - vertical-align: middle; -} - -#plugin-information .fyi ul.contributors li img { - vertical-align: middle; - margin-right: 4px; -} - -#plugin-information-footer { - padding: 15px 16px; - position: absolute; - right: 0; - bottom: 0; - left: 0; - height: 28px; - border-top: 1px solid #ddd; - background: #f3f3f3; -} - -/* rtl:ignore */ -#plugin-information .section { - direction: ltr; -} - -/* rtl:ignore */ -#plugin-information .section ul, -#plugin-information .section ol { - list-style-type: disc; - margin-left: 24px; -} - -#plugin-information .section, -#plugin-information .section p { - font-size: 14px; - line-height: 1.7; -} - -#plugin-information #section-screenshots ol { - list-style: none; - margin: 0; -} - -#plugin-information #section-screenshots li img { - vertical-align: text-top; - margin-top: 16px; - max-width: 100%; - width: auto; - height: auto; - -webkit-box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.3 ); -} - -/* rtl:ignore */ -#plugin-information #section-screenshots li p { - font-style: italic; - padding-left: 20px; -} - -#plugin-information pre { - padding: 7px; - overflow: auto; - border: 1px solid #ccc; -} - -/* rtl:ignore */ -#plugin-information .review { - overflow: hidden; /* clearfix */ - width: 100%; - margin-bottom: 20px; - border-bottom: 1px solid #e6e6e6; -} - -#plugin-information .review-title-section { - overflow: hidden; /* clearfix */ -} - -/* rtl:ignore */ -#plugin-information .review-title-section h4 { - display: inline-block; - float: left; - margin: 0 6px 0 0; -} - -#plugin-information .reviewer-info p { - clear: both; - margin: 0; - padding-top: 2px; -} - -/* rtl:ignore */ -#plugin-information .reviewer-info .avatar { - float: left; - margin: 4px 6px 0 0; -} - -/* rtl:ignore */ -#plugin-information .reviewer-info .star-rating { - float: left; -} - -/* rtl:ignore */ -#plugin-information .review-meta { - float: left; - margin-left: 0.75em; -} - -/* rtl:ignore */ -#plugin-information .review-body { - float: left; - width: 100%; -} - -.plugin-version-author-uri { - font-size: 13px; -} - -@media screen and ( max-width: 771px ) { - #plugin-information-title.with-banner { - height: 100px; - bottom: 100px; - } - - #plugin-information-title.with-banner h2 { - margin-top: 30px; - font-size: 20px; - line-height: 40px; - max-width: 85%; - } - - #plugin-information-title.with-banner div.vignette { - height: 100px; - bottom: 100px; - width: 800%; - } - - #plugin-information-tabs { - overflow: hidden; /* clearfix */ - padding: 0; - height: auto; /* let tabs wrap */ - } - - #plugin-information-tabs a.current { - margin-bottom: 0; - border-bottom: none; - } - - #plugin-information .fyi { - float: none; - border: 1px solid #ddd; - position: static; - width: auto; - margin: 26px 26px 0; - padding-bottom: 0; /* reset from the two column height fix */ - } - - #section-holder { - position: static; - margin: 0; - padding-bottom: 70px; /* reset from the two column height fix, plus accomodate footer */ - } - - #plugin-information .fyi h3, - #plugin-information .fyi small { - display: none; - } - - #plugin-information-footer { - padding: 12px 16px 0; - height: 46px; - } -} - -/* Thickbox for Plugin Install screen */ -body.plugin-install-php #TB_window, -body.import-php #TB_window, -body.plugins-php #TB_window, -body.update-core-php #TB_window, -body.index-php #TB_window { - background: #fcfcfc url( ../images/spinner.gif ) no-repeat center; -} - -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - - body.plugin-install-php #TB_window, - body.import-php #TB_window, - body.plugins-php #TB_window, - body.update-core-php #TB_window, - body.index-php #TB_window { - background: #fcfcfc url( ../images/spinner-2x.gif ) no-repeat center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - } -} - -body.plugin-install-php #TB_title, -body.import-php #TB_title, -body.plugins-php #TB_title, -body.update-core-php #TB_title, -body.index-php #TB_title { - float: left; - height: 1px; -} - -body.plugin-install-php #TB_ajaxWindowTitle, -body.import-php #TB_ajaxWindowTitle, -body.plugins-php #TB_ajaxWindowTitle, -body.update-core-php #TB_ajaxWindowTitle, -body.index-php #TB_ajaxWindowTitle { - display: none; -} - -body.plugin-install-php .tb-close-icon, -body.import-php .tb-close-icon, -body.plugins-php .tb-close-icon, -body.update-core-php .tb-close-icon, -body.index-php .tb-close-icon { - left: auto; - right: -30px; - color: #eee; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; -} - -body.plugin-install-php #TB_closeWindowButton:focus, -body.plugin-install-php #TB_closeWindowButton:focus .tb-close-icon, -body.plugin-install-php .tb-close-icon:focus, -body.plugin-install-php .tb-close-icon:hover, -body.import-php #TB_closeWindowButton:focus, -body.import-php #TB_closeWindowButton:focus .tb-close-icon, -body.import-php .tb-close-icon:focus, -body.import-php .tb-close-icon:hover, -body.plugins-php #TB_closeWindowButton:focus, -body.plugins-php #TB_closeWindowButton:focus .tb-close-icon, -body.plugins-php .tb-close-icon:focus, -body.plugins-php .tb-close-icon:hover, -body.update-core-php #TB_closeWindowButton:focus, -body.update-core-php #TB_closeWindowButton:focus .tb-close-icon, -body.update-core-php .tb-close-icon:focus, -body.update-core-php .tb-close-icon:hover, -body.index-php #TB_closeWindowButton:focus, -body.index-php #TB_closeWindowButton:focus .tb-close-icon, -body.index-php .tb-close-icon:focus, -body.index-php .tb-close-icon:hover { - color: #00a0d2; - outline: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -body.plugin-install-php .tb-close-icon:before, -body.import-php .tb-close-icon:before, -body.plugins-php .tb-close-icon:before, -body.update-core-php .tb-close-icon:before, -body.index-php .tb-close-icon:before { - content: "\f335"; - font-size: 32px; -} - -/* move plugin install close icon to top on narrow screens */ -@media screen and ( max-width: 830px ) { - body.plugin-install-php .tb-close-icon, - body.import-php .tb-close-icon, - body.plugins-php .tb-close-icon, - body.update-core-php .tb-close-icon, - body.index-php .tb-close-icon { - right: 0; - top: -30px; - } -} - -/* @todo: move this. */ -img { - border: none; -} - -/* Header */ -/* @todo: are these also specific to Press This? */ -#wphead { - border-bottom: 1px solid #dfdfdf; -} - -#wphead h1 a { - color: #464646; -} - -/* @todo: these seem misplaced */ -.js .meta-box-sortables .postbox:hover .handlediv { - margin-right: 0 !important; -} - -/* Metabox collapse arrow indicators */ -.js .sidebar-name .sidebar-name-arrow:before, -.js .meta-box-sortables .postbox .handlediv:before { - right: 12px; - font: normal 20px/1 'dashicons'; - speak: none; - display: inline-block; - padding: 8px 10px; - top: 0; - position: relative; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; -} - -.js #widgets-left .sidebar-name .sidebar-name-arrow { - display: none; -} - -.js #widgets-left .widgets-holder-wrap.closed .sidebar-name .sidebar-name-arrow, -.js #widgets-left .sidebar-name:hover .sidebar-name-arrow { - display: block; -} - -/* Show the arrow only on hover */ -.js .sidebar-name .sidebar-name-arrow:before, -.js .meta-box-sortables .postbox .handlediv:before { - content: '\f142'; -} - -.js .widgets-holder-wrap.closed .sidebar-name-arrow:before, -.js .meta-box-sortables .postbox.closed .handlediv:before { - content: '\f140'; -} - -.error a { - text-decoration: underline; -} - -.updated a { - text-decoration: none; - padding-bottom: 2px; -} - -/* @todo: appears to be Press This only and overridden */ -#photo-add-url-div input[type="text"] { - width: 300px; -} - -/* Theme/Plugin Editor */ -.alignleft h3 { - margin: 0; -} - -#template textarea { - font-family: Consolas, Monaco, monospace; - font-size: 13px; - width: 97%; - background: #f9f9f9; - outline: none; -} - -/* rtl:ignore */ -#template textarea, -#docs-list { - direction: ltr; -} - -#template p { - width: 97%; -} - -#templateside { - float: right; - width: 190px; - word-wrap: break-word; -} - -#templateside h3, -#postcustomstuff p.submit { - margin: 0; -} - -#templateside h4 { - margin: 1em 0 0; -} - -#templateside ol, -#templateside ul { - margin: .5em 0; - padding: 0; -} - -#templateside li { - margin: 4px 0; -} - -#templateside li a, -.theme-editor-php .highlight { - display: block; - padding: 3px 3px 3px 12px; - text-decoration: none; -} - -.theme-editor-php .highlight { - margin: -3px 3px -3px -12px; -} - -#templateside .highlight { - border: none; - font-weight: bold; -} - -.nonessential { - color: #666; - font-size: 11px; - font-style: italic; - padding-left: 12px; -} - -#documentation { - margin-top: 10px; -} - -#documentation label { - line-height: 22px; - vertical-align: baseline; - font-weight: 600; -} - -.fileedit-sub { - padding: 10px 0 8px; - line-height: 180%; -} - -/* @todo: can we use a common class for these? */ -.nav-menus-php .item-edit:before, -.widget-top a.widget-action:after, -.control-section .accordion-section-title:after, -.accordion-section-title:after { - right: 0; - content: '\f140'; - border: none; - background: none; - font: normal 20px/1 'dashicons'; - speak: none; - display: block; - padding: 0; - text-indent: 0; - text-align: center; - position: relative; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; -} - -.widget-action, -.handlediv, -.item-edit, -.sidebar-name-arrow, -.accordion-section-title:after { - color: #a0a5aa; -} - -.widget-action:hover, -.handlediv:hover, -.item-edit:hover, -.sidebar-name:hover .sidebar-name-arrow, -.accordion-section-title:hover:after { - color: #777; -} - -.widget-top a.widget-action:after { - padding: 12px 12px 11px; -} - -.widget-top a.widget-action:focus:after { - -webkit-box-shadow: 0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8); - box-shadow: 0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8); -} - -.nav-menus-php .item-edit:before { - line-height: 2.1; -} - -.control-section .accordion-section-title:after, -.accordion-section-title:after { - float: right; - right: 20px; - top: -2px; -} - -.control-section.open .accordion-section-title:after, -#customize-info.open .accordion-section-title:after, -.nav-menus-php .menu-item-edit-active .item-edit:before, -.widget.open .widget-top a.widget-action:after { - content: '\f142'; -} - -/*! - * jQuery UI Draggable/Sortable 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ -.ui-draggable-handle, -.ui-sortable-handle { - -ms-touch-action: none; - touch-action: none; -} - -/* Accordion */ -.accordion-section { - border-bottom: 1px solid #dfdfdf; - margin: 0; -} - -.accordion-section.open .accordion-section-content, -.no-js .accordion-section .accordion-section-content { - display: block; -} - -.accordion-section.open:hover { - border-bottom-color: #dfdfdf; -} - -.accordion-section-content { - display: none; - padding: 10px 20px 15px; - overflow: hidden; - background: #fff; -} - -.accordion-section-title { - margin: 0; - padding: 12px 15px 15px; - position: relative; - border-left: 1px solid #dfdfdf; - border-right: 1px solid #dfdfdf; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.js .accordion-section-title { - cursor: pointer; -} - -.js .accordion-section-title:after { - position: absolute; - top: 12px; - right: 10px; - z-index: 1; -} - -.accordion-section-title:focus { - outline: none; -} - -.accordion-section-title:hover:after, -.accordion-section-title:focus:after { - border-color: #a0a5aa transparent; -} - -.cannot-expand .accordion-section-title { - cursor: auto; -} - -.cannot-expand .accordion-section-title:after { - display: none; -} - -.control-section .accordion-section-title { - border-left: none; - border-right: none; - padding: 10px 10px 11px 14px; - line-height: 21px; - background: #fff; -} - -.control-section .accordion-section-title:after { - top: 11px; -} - -.js .control-section:hover .accordion-section-title, -.js .control-section .accordion-section-title:hover, -.js .control-section.open .accordion-section-title, -.js .control-section .accordion-section-title:focus { - color: #23282d; - background: #f5f5f5; -} - -.control-section.open .accordion-section-title { - /* When expanded */ - border-bottom: 1px solid #dfdfdf; -} - -/* Edit Site */ -.network-admin .edit-site-actions { - margin-top: 0; -} - -/* My Sites */ -.my-sites { - display: block; - overflow: auto; - zoom: 1; -} - -.my-sites li { - display: block; - padding: 8px 3%; - min-height: 130px; - margin: 0; -} - -@media only screen and (max-width: 599px) { - .my-sites li { - min-height: 0; - } -} - -@media only screen and (min-width: 600px) { - .my-sites.striped li { - background-color: #fff; - position: relative; - } - .my-sites.striped li:after { - content: ""; - width: 1px; - height: 100%; - position: absolute; - top: 0; - right: 0; - background: #ccc; - } - -} -@media only screen and (min-width: 600px) and (max-width: 699px) { - .my-sites li{ - float: left; - width: 44%; - } - .my-sites.striped li { - background-color: #fff; - } - .my-sites.striped li:nth-of-type(2n+1) { - clear: left; - } - .my-sites.striped li:nth-of-type(2n+2):after { - content: none; - } - .my-sites li:nth-of-type(4n+1), - .my-sites li:nth-of-type(4n+2) { - background-color: #f9f9f9; - } - -} - -@media only screen and (min-width: 700px) and (max-width: 1199px) { - .my-sites li { - float: left; - width: 27.333333%; - background-color: #fff; - } - .my-sites.striped li:nth-of-type(3n+3):after { - content: none; - } - .my-sites li:nth-of-type(6n+1), - .my-sites li:nth-of-type(6n+2), - .my-sites li:nth-of-type(6n+3) { - background-color: #f9f9f9; - } -} - -@media only screen and (min-width: 1200px) and (max-width: 1399px) { - .my-sites li { - float: left; - width: 21%; - padding: 8px 2%; - background-color: #fff; - } - .my-sites.striped li:nth-of-type(4n+1) { - clear: left; - } - .my-sites.striped li:nth-of-type(4n+4):after { - content: none; - } - .my-sites li:nth-of-type(8n+1), - .my-sites li:nth-of-type(8n+2), - .my-sites li:nth-of-type(8n+3), - .my-sites li:nth-of-type(8n+4) { - background-color: #f9f9f9; - } -} - -@media only screen and (min-width: 1400px) and (max-width: 1599px) { - .my-sites li { - float: left; - width: 16%; - padding: 8px 2%; - background-color: #fff; - } - .my-sites.striped li:nth-of-type(5n+1) { - clear: left; - } - .my-sites.striped li:nth-of-type(5n+5):after { - content: none; - } - .my-sites li:nth-of-type(10n+1), - .my-sites li:nth-of-type(10n+2), - .my-sites li:nth-of-type(10n+3), - .my-sites li:nth-of-type(10n+4), - .my-sites li:nth-of-type(10n+5) { - background-color: #f9f9f9; - } -} - -@media only screen and (min-width: 1600px) { - .my-sites li { - float: left; - width: 12.666666%; - padding: 8px 2%; - background-color: #fff; - } - .my-sites.striped li:nth-of-type(6n+1) { - clear: left; - } - .my-sites.striped li:nth-of-type(6n+6):after { - content: none; - } - .my-sites li:nth-of-type(12n+1), - .my-sites li:nth-of-type(12n+2), - .my-sites li:nth-of-type(12n+3), - .my-sites li:nth-of-type(12n+4), - .my-sites li:nth-of-type(12n+5), - .my-sites li:nth-of-type(12n+6) { - background-color: #f9f9f9; - } -} - -.my-sites li a { - text-decoration: none; -} - -/* =Media Queries --------------------------------------------------------------- */ - -/* @todo: de-duplication */ -@media only screen and (min-width: 769px) { - /* categories */ - #col-left { - width: 35%; - } - - #col-right { - width: 65%; - } -} - -@media only screen and (max-width: 860px) { - - /* categories */ - #col-left { - width: 35%; - } - - #col-right { - width: 65%; - } -} - -@media only screen and (min-width: 980px) { - - /* categories */ - #col-left { - width: 35%; - } - - #col-right { - width: 65%; - } -} - -@media only screen and (max-width: 768px) { - /* categories */ - #col-left { - width: 100%; - } - - #col-right { - width: 100%; - } -} - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - /* Back-compat for pre-3.8 */ - div.star-holder, - div.star-holder .star-rating { - background: url(../images/stars-2x.png?ver=20121108) repeat-x bottom left; - -webkit-background-size: 21px 37px; - background-size: 21px 37px; - } - - .spinner { - background-image: url(../images/spinner-2x.gif); - } - - /* @todo: evaluate - most of these were likely replaced by dashicons */ - .curtime #timestamp, - #screen-meta-links a.show-settings, - .widget-top a.widget-action, - .widget-top a.widget-action:hover, - .sidebar-name-arrow, - .sidebar-name:hover .sidebar-name-arrow, - .meta-box-sortables .postbox:hover .handlediv, - .tagchecklist span a, - #bulk-titles div a, - .tagchecklist span a:hover, - #bulk-titles div a:hover { - background: none !important; - } - -} - -@-ms-viewport { - width: device-width; -} - -@media screen and ( max-width: 782px ) { - html.wp-toolbar { - padding-top: 46px; - } - - body { - min-width: 240px; - overflow-x: hidden; - } - - body * { - -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important; - } - - #wpcontent { - position: relative; - margin-left: 0; - padding-left: 10px; - } - - #wpbody-content { - padding-bottom: 100px; - } - - .wrap { - margin-right: 12px; - margin-left: 0; - } - - .col-wrap { - padding: 0; - } - - /* Hidden Elements */ - #screen-meta, - #screen-meta-links, - #collapse-menu, - .post-format-select { - display: none !important; - } - - .wrap .add-new-h2, /* deprecated */ - .wrap .add-new-h2:active, /* deprecated */ - .wrap .page-title-action, - .wrap .page-title-action:active { - padding: 10px 15px; - font-size: 14px; - white-space: nowrap; - } - - .wp-color-result { - height: auto; - padding-left: 45px; - } - - .wp-color-result:after { - font-size: 14px; - height: auto; - padding: 6px 14px; - } - - /* Feedback Messages */ - .notice, - .wrap div.updated, - .wrap div.error, - .media-upload-form div.error { - margin: 20px 0 10px 0; - padding: 5px 10px; - font-size: 14px; - line-height: 175%; - } - - .wp-core-ui .notice.is-dismissible { - padding-right: 46px; - } - - .notice-dismiss { - padding: 13px; - } - - .wrap .icon32 + h2 { - margin-top: -2px; - } - - .wp-responsive-open #wpbody { - right: -190px; - } - - code { - word-wrap: break-word; - } - - /* General Metabox */ - .postbox { - font-size: 14px; - } - - .metabox-holder h3 { - padding: 12px; - } - - .postbox .handlediv { - margin-top: 3px; - } - - /* Subsubsub Nav */ - .subsubsub { - font-size: 16px; - text-align: center; - margin-bottom: 15px; - } - - /* Theme/Plugin File Editor */ - #templateside { - float: none; - width: auto; - } - - #templateside li { - margin: 0; - } - - #templateside li a { - display: block; - padding: 5px; - } - - #templateside .highlight { - padding: 5px; - margin-left: -5px; - margin-top: -5px; - } - - #template div { - float: none; - margin: 0; - width: auto; - } - - #template textarea { - width: 100%; - } - - .fileedit-sub .alignright { - margin-top: 15px; - } - - #wpfooter { - display: none; - } - - #comments-form .checkforspam { - display: none; - } - - .edit-comment-author { - margin: 2px 0 0; - } -} - -/* Smartphone */ -@media screen and (max-width: 600px) { - /* Disable horizontal scroll when responsive menu is open - since we push the main content off to the right. */ - #wpwrap.wp-responsive-open { - overflow-x: hidden; - } - - html.wp-toolbar { - padding-top: 0; - } - - #wpbody { - padding-top: 46px; - } - - /* Keep full-width boxes on Edit Post page from causing horizontal scroll */ - div#post-body.metabox-holder.columns-1 { - overflow-x: hidden; - } -} - -@media screen and (max-width: 320px) { - /* Prevent default center alignment and larger font for the Right Now widget when - the network dashboard is viewed on a small mobile device. */ - #network_dashboard_right_now .subsubsub { - font-size: 14px; - text-align: left; - } -} diff --git a/wp-admin/css/customize-controls-rtl.css b/wp-admin/css/customize-controls-rtl.css deleted file mode 100644 index 4b67787045..0000000000 --- a/wp-admin/css/customize-controls-rtl.css +++ /dev/null @@ -1,1312 +0,0 @@ -body { - overflow: hidden; - -webkit-text-size-adjust: 100%; -} - -#customize-controls a { - text-decoration: none; -} - -#customize-controls h3 { - font-size: 14px; -} - -#customize-controls img { - max-width: 100%; -} - -#customize-controls .submit { - text-align: center; -} - -#customize-controls .description { - color: #555; -} - -#customize-header-actions .button-primary { - float: left; - margin-top: 9px; -} - -#customize-header-actions .spinner { - margin-top: 13px; - margin-left: 4px; -} - -.saving #customize-header-actions .spinner { - visibility: visible; -} - -#customize-header-actions { - border-bottom: 1px solid #ddd; -} - -#customize-controls .wp-full-overlay-sidebar-content { - overflow-y: auto; - overflow-x: hidden; -} - -#customize-controls .customize-info { - border: none; - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin-bottom: 15px; -} - -#customize-controls .customize-info .accordion-section-title { - background: #fff; - color: #555; - border-right: none; - border-left: none; - border-bottom: none; - cursor: default; -} - -#customize-controls .customize-info.open .accordion-section-title:after, -#customize-controls .customize-info .accordion-section-title:hover:after, -#customize-controls .customize-info .accordion-section-title:focus:after { - color: #333; -} - -#customize-controls .customize-info .accordion-section-title:after { - display: none; -} - -#customize-controls .customize-info .preview-notice { - font-size: 13px; - line-height: 24px; -} - -#customize-controls .control-section .customize-section-title h3, -#customize-controls .control-section h3.customize-section-title, -#customize-controls .customize-info .panel-title { - font-size: 20px; - font-weight: 200; - line-height: 24px; - display: block; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} - -#customize-controls .customize-section-title span.customize-action { - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} - -#customize-controls .customize-info .customize-help-toggle { - position: absolute; - top: 4px; - left: 1px; - padding: 20px 10px 10px 20px; - width: 20px; - height: 20px; - cursor: pointer; - -webkit-box-shadow: none; - box-shadow: none; - -webkit-appearance: none; - background: transparent; - color: #555; - border: none; -} - -#customize-controls .customize-info .customize-help-toggle:before { - position: absolute; - top: 5px; - right: 6px; -} - -#customize-controls .customize-info.open .customize-help-toggle, -#customize-controls .customize-info .customize-help-toggle:focus, -#customize-controls .customize-info .customize-help-toggle:hover { - color: #0073aa; -} - -#customize-controls .customize-info .customize-panel-description { - color: #555; - display: none; - background: #fff; - padding: 12px 15px; - border-top: 1px solid #ddd; -} - -#customize-controls .customize-info .customize-panel-description p:first-child { - margin-top: 0; -} - -#customize-controls .customize-info .customize-panel-description p:last-child { - margin-bottom: 0; -} - -#customize-controls .current-panel .control-section > h3.accordion-section-title { - padding-left: 30px; -} - -#customize-theme-controls .control-section { - border: none; -} - -#customize-theme-controls .accordion-section-title { - color: #555; - background-color: #fff; - border-bottom: 1px solid #eee; -} - -#customize-theme-controls .accordion-section-title:after { - content: "\f341"; -} - -#customize-theme-controls .accordion-section-content { - color: #555; - background: transparent; -} - -#customize-controls .control-section:hover > .accordion-section-title, -#customize-controls .control-section .accordion-section-title:hover, -#customize-controls .control-section.open .accordion-section-title, -#customize-controls .control-section .accordion-section-title:focus { - color: #23282d; - background: #f5f5f5; -} - -.js .control-section:hover .accordion-section-title, -.js .control-section .accordion-section-title:hover, -.js .control-section.open .accordion-section-title, -.js .control-section .accordion-section-title:focus { - background: #f5f5f5; -} - -#customize-theme-controls .control-section:hover > .accordion-section-title:after, -#customize-theme-controls .control-section .accordion-section-title:hover:after, -#customize-theme-controls .control-section.open .accordion-section-title:after, -#customize-theme-controls .control-section .accordion-section-title:focus:after { - color: #23282d; -} - -#customize-theme-controls .control-section.open { - border-bottom: 1px solid #eee; -} - -#customize-theme-controls .control-section.open .accordion-section-title { - border-bottom-color: #eee !important; -} - -#customize-theme-controls .control-section:last-of-type.open, -#customize-theme-controls .control-section:last-of-type > .accordion-section-title { - border-bottom-color: #ddd; -} - -#customize-theme-controls > ul { - margin: 0; -} - -#customize-theme-controls .accordion-section-content { - position: absolute; - top: 0; - right: 100%; - width: 100%; - margin: 0; - padding: 12px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.customize-section-description-container { - margin-bottom: 15px; -} - -.customize-section-title { - margin: -12px -12px 0 -12px; - border-bottom: 1px solid #ddd; - background: #fff; -} - -div.customize-section-description { - margin-top: 22px; -} - -div.customize-section-description p:first-child { - margin-top: 0; -} - -div.customize-section-description p:last-child { - margin-bottom: 0; -} - -#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { - border-bottom: 1px solid #ddd; - padding: 12px 12px 12px 12px; -} - -.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { - padding: 12px 12px 13px 12px; -} - -.customize-section-title h3, -h3.customize-section-title { - padding: 10px 14px 12px 10px; - margin: 0; - line-height: 21px; - color: #555; -} - -#customize-theme-controls { - position: relative; - right: 0; - -webkit-transition: .18s right ease-in-out; - transition: .18s right ease-in-out; -} - -.ios #customize-theme-controls { - -webkit-transition: right 0s; - transition: right 0s; -} - -.section-open #customize-info, -.section-open #customize-theme-controls { - right: -100%; -} - -.accordion-sub-container.control-panel-content { - display: none; - position: absolute; - right: 300px; - top: 0; - width: 300px; - -webkit-transition: right ease-in-out .18s; - transition: right ease-in-out .18s; -} - -.ios .accordion-sub-container.control-panel-content { - -webkit-transition: right 0s; - transition: right 0s; -} - -.accordion-sub-container.control-panel-content.animating { - display: block; -} - -.current-panel .accordion-sub-container.control-panel-content { - width: 100%; -} - -.customize-controls-close { - display: block; - position: absolute; - top: 0; - right: 0; - width: 45px; - height: 45px; - padding: 0 0 0 2px; - background: #eee; - border: none; - border-left: 1px solid #ddd; - color: #444; - text-align: right; - cursor: pointer; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} - -.customize-panel-back, -.customize-section-back { - display: block; - float: right; - width: 48px; - height: 69px; - padding: 0 0 0 24px; - margin: 0; - background: #fff; - border: none; - border-left: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - cursor: pointer; - -webkit-transition: right .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; - transition: right .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; -} - -.customize-section-back { - height: 70px; -} - -.ios .customize-panel-back, -.ios .customize-section-back { - -webkit-transition: right 0s; - transition: right 0s; -} - -.ios .customize-panel-back { - display: none; -} - -.ios .expanded.in-sub-panel .customize-panel-back { - display: block; -} - -.panel-meta.customize-info .accordion-section-title { - margin-right: 48px; -} - -#customize-controls .panel-meta.customize-info .accordion-section-title:hover { - background: #fff; - color: #555; -} - -.customize-controls-close:focus, -.customize-controls-close:hover, -.customize-controls-preview-toggle:focus, -.customize-controls-preview-toggle:hover { - background: #ddd; - border-color: #ccc; - color: #000; - outline: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.customize-panel-back:hover, -.customize-panel-back:focus, -.customize-section-back:hover, -.customize-section-back:focus { - color: #23282d; - background: #f5f5f5; - outline: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.customize-controls-close:before { - font: normal 22px/45px dashicons; - content: "\f335"; - position: relative; - top: 1px; - right: 13px; -} - -.customize-panel-back:before, -.customize-section-back:before { - font: normal 20px/69px dashicons; - content: "\f345"; - position: relative; - right: 13px; -} - -.wp-full-overlay-sidebar .wp-full-overlay-header { - -webkit-transition: padding ease-in-out .18s; - transition: padding ease-in-out .18s; -} - -.in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header { - padding-right: 62px; -} - -#customize-info, -#customize-theme-controls > ul > .accordion-section { - position: relative; - right: 0; - -webkit-transition: right ease-in-out .18s; - transition: right ease-in-out .18s; -} - -.ios #customize-info, -.ios #customize-theme-controls > ul > .accordion-section { - -webkit-transition: right 0s; - transition: right 0s; -} - -.in-sub-panel #customize-info, -.in-sub-panel #customize-theme-controls > ul > .accordion-section { - right: -300px; - width: 300px; -} - -.in-sub-panel #customize-theme-controls .accordion-section.current-panel { - width: 100%; -} - -#customize-theme-controls .control-section.current-panel { - padding: 0; -} - -#customize-theme-controls .control-section > h3.accordion-section-title { - position: relative; - right: 0; -} - -#customize-theme-controls .control-section.current-panel > h3.accordion-section-title { - right: -354px; - -webkit-transition: right ease-in-out .18s; - transition: right ease-in-out .18s; -} - -.ios #customize-theme-controls .control-section.current-panel > h3.accordion-section-title { - -webkit-transition: right 0s; - transition: right 0s; -} - -.wp-full-overlay.section-open #customize-controls .wp-full-overlay-sidebar-content { - visibility: hidden; - overflow-y: hidden; -} - -.wp-full-overlay.section-open .wp-full-overlay-sidebar-content .accordion-section.open { - visibility: visible; -} - -.wp-full-overlay.section-open .wp-full-overlay-sidebar-content .accordion-section.open .accordion-section-content { - overflow-y: auto; -} - -p.customize-section-description { - font-style: normal; - margin-top: 22px; - margin-bottom: 0; -} - -.customize-control { - width: 100%; - float: right; - clear: both; - margin-bottom: 12px; -} - -.customize-control select, -.customize-control input[type="radio"], -.customize-control input[type="checkbox"] { - line-height: 28px; -} - -.customize-control input[type="text"], -.customize-control input[type="password"], -.customize-control input[type="email"], -.customize-control input[type="number"], -.customize-control input[type="search"], -.customize-control input[type="tel"], -.customize-control input[type="url"] { - width: 98%; - line-height: 18px; - margin: 0; -} - -.customize-control-hidden { - margin: 0; -} - -.customize-control-textarea textarea { - width: 100%; - resize: vertical; -} - -.customize-control select { - min-width: 50%; - max-width: 100%; - height: 28px; - line-height: 28px; -} - -.customize-control select[multiple] { - height: auto; -} - -.customize-control-title { - display: block; - font-size: 14px; - line-height: 24px; - font-weight: 600; - margin-bottom: 5px; -} - -.customize-control-description { - display: block; - font-style: italic; - line-height: 18px; - margin-bottom: 5px; -} - -.customize-control-color .color-picker, -.customize-control-checkbox label, -.customize-control-upload div { - line-height: 28px; -} - -.customize-control-checkbox input { - margin-left: 5px; -} - -.customize-control-radio { - padding: 5px 0 10px; -} - -.customize-control-radio .customize-control-title { - margin-bottom: 0; - line-height: 22px; -} - -.customize-control-radio .customize-control-title + .customize-control-description { - margin-top: 7px; -} - -.customize-control-radio label { - line-height: 32px; -} - -.customize-control-radio input { - margin-left: 5px; -} - -.customize-control .attachment-thumb.type-icon { - float: right; - margin: 10px; - width: auto; -} - -.customize-control .attachment-title { - font-weight: bold; - margin: 0; - padding: 5px 10px; -} - -.customize-control .attachment-meta { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - margin: 0; - padding: 0 10px; -} - -.customize-control .attachment-meta-title { - padding-top: 7px; -} - -.customize-control .thumbnail-image { - line-height: 0; -} - -.customize-control .thumbnail-image img { - cursor: pointer; -} - -#customize-controls .thumbnail-audio .thumbnail { - max-width: 64px; - max-height: 64px; - margin: 10px; - float: right; -} - -#customize-preview iframe { - width: 100%; - height: 100%; -} - -.wp-full-overlay-sidebar { - background: #eee; - border-left: 1px solid #ddd; -} - -/* Style for custom settings */ - -/* - * Dropdowns - */ -.accordion-section .dropdown { - float: right; - display: block; - position: relative; - cursor: pointer; -} - -.accordion-section .dropdown-content { - overflow: hidden; - float: right; - min-width: 30px; - height: 16px; - line-height: 16px; - margin-left: 16px; - padding: 4px 5px; - border: 2px solid #eee; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.customize-control .dropdown-arrow { - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 20px; - background: #eee; -} - -.customize-control .dropdown-arrow:after { - content: "\f140"; - font: normal 20px/1 'dashicons'; - speak: none; - display: block; - padding: 0; - text-indent: 0; - text-align: center; - position: relative; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; - color: #32373c; -} - -.customize-control .dropdown-status { - color: #32373c; - background: #eee; - display: none; - max-width: 112px; -} - -/* Color Picker */ -.customize-control-color .color-picker-hex { - display: none; -} - -.customize-control-color.open .color-picker-hex { - display: block; -} - -.customize-control-color .dropdown { - margin-left: 5px; - margin-bottom: 5px; -} - -.customize-control-color .dropdown .dropdown-content { - background-color: #555; - border: 1px solid rgba(0, 0, 0, 0.15); -} - -.customize-control-color .dropdown:hover .dropdown-content { - border-color: rgba(0, 0, 0, 0.25); -} - -/** - * iOS can't scroll iframes, - * instead it expands the iframe size to match the size of the content - */ -.ios .wp-full-overlay { - position: relative; -} - -.ios #customize-preview { - position: relative; -} - -.ios #customize-controls .wp-full-overlay-sidebar-content { - -webkit-overflow-scrolling: touch; -} - -/** Media controls **/ - -.customize-control-media .current, -.customize-control-upload .current, -.customize-control-image .current, -.customize-control-background .current, -.customize-control-cropped_image .current, -.customize-control-site_icon .current, -.customize-control-header .current { - margin-bottom: 8px; -} - -.customize-control-header .uploaded { - margin-bottom: 18px; -} - -.customize-control-header .uploaded button:not(.random), -.customize-control-header .default button:not(.random) { - width: 100%; - padding: 0; - margin: 0; - background: none; - border: none; - color: inherit; - cursor: pointer; -} - -.customize-control-header button img { - display: block; -} - -.customize-control-media .remove-button, -.customize-control-media .default-button, -.customize-control-media .upload-button, -.customize-control-upload .remove-button, -.customize-control-upload .default-button, -.customize-control-upload .upload-button, -.customize-control-image .remove-button, -.customize-control-image .default-button, -.customize-control-image .upload-button, -.customize-control-background .remove-button, -.customize-control-background .default-button, -.customize-control-background .upload-button, -.customize-control-cropped_image .remove-button, -.customize-control-cropped_image .default-button, -.customize-control-cropped_image .upload-button, -.customize-control-site_icon .remove-button, -.customize-control-site_icon .default-button, -.customize-control-site_icon .upload-button, -.customize-control-header button.new, -.customize-control-header button.remove { - white-space: normal; - width: 48%; - height: auto; -} - -.customize-control-media .current .container, -.customize-control-upload .current .container, -.customize-control-image .current .container, -.customize-control-background .current .container, -.customize-control-cropped_image .current .container, -.customize-control-site_icon .current .container, -.customize-control-header .current .container { - overflow: hidden; - -webkit-border-radius: 2px; - border: 1px solid #eee; - -webkit-border-radius: 2px; - border-radius: 2px; -} - -.customize-control-media .current .container, -.customize-control-upload .current .container, -.customize-control-background .current .container, -.customize-control-cropped_image .current .container, -.customize-control-site_icon .current .container, -.customize-control-image .current .container { - min-height: 40px; -} - -.customize-control-media .placeholder, -.customize-control-upload .placeholder, -.customize-control-image .placeholder, -.customize-control-background .placeholder, -.customize-control-cropped_image .placeholder, -.customize-control-site_icon .placeholder, -.customize-control-header .placeholder { - width: 100%; - position: relative; - text-align: center; - cursor: default; -} - -.customize-control-media .inner, -.customize-control-upload .inner, -.customize-control-image .inner, -.customize-control-background .inner, -.customize-control-cropped_image .inner, -.customize-control-site_icon .inner, -.customize-control-header .inner { - display: none; - position: absolute; - width: 100%; - color: #555; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; -} - -.customize-control-media .inner, -.customize-control-upload .inner, -.customize-control-background .inner, -.customize-control-cropped_image .inner, -.customize-control-site_icon .inner, -.customize-control-image .inner { - display: block; - min-height: 40px; -} - -.customize-control-media .inner, -.customize-control-upload .inner, -.customize-control-image .inner, -.customize-control-background .inner, -.customize-control-cropped_image .inner, -.customize-control-site_icon .inner, -.customize-control-header .inner, -.customize-control-header .inner .dashicons { - line-height: 20px; - top: 10px; -} - -.customize-control-header .list .inner, -.customize-control-header .list .inner .dashicons { - top: 9px; -} - -.customize-control-header .header-view { - position: relative; - width: 100%; - margin-bottom: 5px; -} - -.customize-control-header .header-view:last-child { - margin-bottom: 0px; -} - -/* Convoluted, but 'outline' support isn't good enough yet */ -.customize-control-header .header-view:after { - border: 0; -} -.customize-control-header .header-view.selected:after { - content: ''; - position: absolute; - height: auto; - top: 0; right: 0; bottom: 0; left: 0; - border: 4px solid #00a0d2; - -webkit-border-radius: 2px; - border-radius: 2px; -} -.customize-control-header .header-view.button.selected { - border: 0; -} - -/* Header control: overlay "close" button */ - -.customize-control-header .uploaded .header-view .close { - font-size: 20px; - color: #fff; - background: #555; - background: rgba(0, 0, 0, 0.5); - position: absolute; - top: 10px; - left: -999px; - z-index: 1; - width: 26px; - height: 26px; - cursor: pointer; -} - -.customize-control-header .header-view:hover .close, -.customize-control-header .header-view .close:focus { - left: 10px; -} - -/* Header control: randomiz(s)er */ - -.customize-control-header .random.placeholder { - cursor: pointer; - -webkit-border-radius: 2px; - border-radius: 2px; - height: 40px; -} - -.customize-control-header button.random { - width: 100%; - height: auto; - min-height: 40px; - white-space: normal; -} - -.customize-control-header button.random .dice { - margin-top: 4px; -} - -.customize-control-header .placeholder:hover .dice, -.customize-control-header .header-view:hover > button.random .dice { - -webkit-animation: dice-color-change 3s infinite; - animation: dice-color-change 3s infinite; -} - -@-webkit-keyframes dice-color-change { - 0% { color: #d4b146; } - 50% { color: #ef54b0; } - 75% { color: #7190d3; } - 100% { color: #d4b146; } -} - -@keyframes dice-color-change { - 0% { color: #d4b146; } - 50% { color: #ef54b0; } - 75% { color: #7190d3; } - 100% { color: #d4b146; } -} - -.customize-control-media .actions, -.customize-control-upload .actions, -.customize-control-image .actions, -.customize-control-background .actions, -.customize-control-cropped_image .actions, -.customize-control-site_icon .actions, -.customize-control-header .actions { - margin-bottom: 32px; -} - -.customize-control-header .choice { - position: relative; - display: block; - margin-bottom: 9px; -} - -.customize-control-header .uploaded div:last-child > .choice { - margin-bottom: 0; -} - -.customize-control-media img, -.customize-control-upload img, -.customize-control-image img, -.customize-control-background img, -.customize-control-cropped_image img, -.customize-control-site_icon img, -.customize-control-header img { - width: 100%; - -webkit-border-radius: 2px; - border-radius: 2px; -} - -.customize-control-media .remove-button, -.customize-control-media .default-button, -.customize-control-upload .remove-button, -.customize-control-upload .default-button, -.customize-control-image .remove-button, -.customize-control-image .default-button, -.customize-control-background .remove-button, -.customize-control-background .default-button, -.customize-control-cropped_image .remove-button, -.customize-control-cropped_image .default-button, -.customize-control-site_icon .remove-button, -.customize-control-site_icon .default-button, -.customize-control-header .remove { - float: right; - margin-left: 3px; -} - -.customize-control-media .upload-button, -.customize-control-upload .upload-button, -.customize-control-image .upload-button, -.customize-control-background .upload-button, -.customize-control-cropped_image .upload-button, -.customize-control-site_icon .upload-button, -.customize-control-header .new { - float: left; -} - -/** - * Themes - */ -@-webkit-keyframes customize-reload { - 0% { opacity: 0; } - 100% { opacity: 1; } -} - -@keyframes customize-reload { - 0% { opacity: 0; } - 100% { opacity: 1; } -} - -/* #customize-container is reused from customize-loader.js, hence the naming. */ -.wp-customizer .customize-loading #customize-container { - display: block; - -webkit-animation: customize-reload .75s; /* Can't use `transition` because `display` changes here. */ - animation: customize-reload .75s; -} - -.control-section-themes .accordion-section-title { - cursor: default; -} - -#customize-theme-controls .control-section-themes .accordion-section-title:hover, -#customize-theme-controls .control-section-themes .accordion-section-title:focus { - color: #555; - background-color: #fff; -} - -.control-section-themes .accordion-section-title { - margin: 15px 0; -} - -.customize-themes-panel .accordion-section-title { - margin: 15px -8px; -} - -.control-section-themes .accordion-section-title { - padding-left: 100px; /* Space for the button */ -} - -.control-section-themes .accordion-section-title span.customize-action, -#customize-controls .customize-section-title span.customize-action { - font-size: 13px; - display: block; - font-weight: 400; -} - -.control-section-themes .accordion-section-title .change-theme, -.control-section-themes .accordion-section-title .customize-theme { - position: absolute; - left: 10px; - top: 50%; - margin-top: -14px; - font-weight: normal; -} - -.control-section-themes .accordion-section-title:before { - display: none; -} - -.customize-themes-panel { - display: none; - padding: 0 8px; - background: #f1f1f1; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.customize-themes-panel .accordion-section-title:first-child { - margin-top: 0; -} - -#customize-controls .customize-themes-panel .accordion-section-title:nth-child(2) { - font-size: 14px; - font-weight: 600; -} - -.customize-themes-panel > h2 { - padding: 15px 8px 0 8px; -} - -.control-section.open .customize-themes-panel { - display: block; -} - -#customize-theme-controls .customize-themes-panel .accordion-section-content { - background: transparent; - display: block; -} - -.customize-control.customize-control-theme { - margin-bottom: 8px; -} - -#customize-theme-controls .themes.accordion-section-content { - position: relative; - right: 0; - padding: 0; - width: 100%; -} - -.wp-customizer .theme-browser .themes { - padding-bottom: 8px; -} - -.wp-customizer .theme-browser .theme { - margin: 0; - width: 100%; -} - -.wp-customizer .theme-browser .theme .theme-actions { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - opacity: 1; -} - -#customize-controls h3.theme-name { - font-size: 15px; -} - -#customize-controls .theme-overlay .theme-name { - font-size: 32px; -} - -.wp-customizer #themes-filter { - font-size: 16px; - font-weight: 300; - line-height: 1.5; - width: 100%; -} - -#accordion-section-themes .accordion-section-title:after { - display: none; -} - -#customize-theme-controls .control-section-themes.current-panel > h3.accordion-section-title { - right: 0; -} - -.customize-themes-panel.control-panel-content { - position: absolute; - right: -100%; - top: 0; - width: 100%; - border-top: 1px solid #ddd; -} - -.in-themes-panel #customize-info, -.in-themes-panel #customize-theme-controls > ul > .accordion-section { - right: 100%; -} - -/* Details View */ -.wp-customizer .theme-overlay { - display: none; -} - -.wp-customizer.modal-open .theme-overlay { - position: fixed; - right: 0; - top: 0; - left: 0; - bottom: 0; - z-index: 109; -} - -.wp-customizer .theme-overlay .theme-backdrop { - background: rgba( 238, 238, 238, 0.75 ); - position: fixed; - z-index: 110; -} - -.wp-customizer .theme-overlay .theme-wrap { - right: 90px; - left: 90px; - top: 45px; - bottom: 45px; - z-index: 120; - max-width: 1740px; /* To ensure that theme screenshots are not displayed larger than 880px wide. */ -} - -.wp-customizer .theme-overlay .theme-actions { - text-align: left; /* Because there's only one action, match the pattern of media modals and right-align the action. */ -} - -.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content { - overflow: visible; /* Prevent the top-level Customizer controls from becoming visible when elements on the right of the details modal are focused. */ -} - -.ie8 .wp-customizer .theme-overlay .theme-header, -.ie8 .wp-customizer .theme-overlay .theme-about, -.ie8 .wp-customizer .theme-overlay .theme-actions { - position: static; -} - -/* Small Screens */ -@media (max-width:850px), (max-height:472px) { - .wp-customizer .theme-overlay .theme-wrap { - right: 0; - left: 0; - top: 0; - bottom: 0; - } -} - -/* Handle cheaters. */ -body.cheatin { - font-size: medium; - height: auto; - background: #fff; - margin: 50px auto 2em; - padding: 1em 2em; - max-width: 700px; - min-width: 0; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13); - box-shadow: 0 1px 3px rgba(0,0,0,0.13); -} - -body.cheatin p { - font-size: 14px; - line-height: 1.5; - margin: 25px 0 20px; -} - -/* Responsive */ -.customize-controls-preview-toggle { - display: none; -} - -@media only screen and (max-width: 780px) { - .wp-customizer .theme:not(.active):hover .theme-actions, - .wp-customizer .theme:not(.active):focus .theme-actions { - display: block; - } - - .wp-customizer .theme-browser .theme.active .theme-name span { - display: inline; - } -} - -@media screen and ( max-width: 640px ) { - #customize-controls { - width: 100%; - } - - .wp-full-overlay.expanded { - margin-right: 0; - } - - .wp-full-overlay-sidebar .wp-full-overlay-sidebar-content { - bottom: 0; - } - - .customize-controls-preview-toggle { - display: block; - position: absolute; - top: 0; - right: 48px; - line-height: 45px; - font-size: 14px; - padding: 0 12px 0 12px; - margin: 0; - height: 45px; - background: #eee; - border-left: 1px solid #ddd; - color: #444; - cursor: pointer; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; - } - - #customize-footer-actions, - #customize-preview, - .customize-controls-preview-toggle .controls, - .preview-only .wp-full-overlay-sidebar-content, - .preview-only .customize-controls-preview-toggle .preview { - display: none; - } - - .customize-controls-preview-toggle .preview:before, - .customize-controls-preview-toggle .controls:before { - font: normal 20px/1 dashicons; - content: "\f177"; - position: relative; - top: 4px; - margin-left: 6px; - } - - .customize-controls-preview-toggle .controls:before { - content: "\f540"; - } - - .preview-only #customize-controls { - height: 45px; - } - - .preview-only #customize-preview, - .preview-only .customize-controls-preview-toggle .controls { - display: block; - } - - #customize-preview { - top: 45px; - bottom: 0; - height: auto; - } - - .wp-core-ui.wp-customizer .button { - padding: 6px 14px; - line-height: normal; - font-size: 14px; - vertical-align: middle; - height: auto; - margin-bottom: 4px; - } - - #customize-header-actions .button-primary { - margin-top: 6px; - } -} diff --git a/wp-admin/css/customize-controls-rtl.min.css b/wp-admin/css/customize-controls-rtl.min.css deleted file mode 100644 index 5a935c3963..0000000000 --- a/wp-admin/css/customize-controls-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -body{overflow:hidden;-webkit-text-size-adjust:100%}#customize-controls a{text-decoration:none}#customize-controls h3{font-size:14px}#customize-controls img{max-width:100%}#customize-controls .submit{text-align:center}#customize-controls .description{color:#555}#customize-header-actions .button-primary{float:left;margin-top:9px}#customize-header-actions .spinner{margin-top:13px;margin-left:4px}.saving #customize-header-actions .spinner{visibility:visible}#customize-header-actions{border-bottom:1px solid #ddd}#customize-controls .wp-full-overlay-sidebar-content{overflow-y:auto;overflow-x:hidden}#customize-controls .customize-info{border:none;border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin-bottom:15px}#customize-controls .customize-info .accordion-section-title{background:#fff;color:#555;border-right:none;border-left:none;border-bottom:none;cursor:default}#customize-controls .customize-info .accordion-section-title:focus:after,#customize-controls .customize-info .accordion-section-title:hover:after,#customize-controls .customize-info.open .accordion-section-title:after{color:#333}#customize-controls .customize-info .accordion-section-title:after{display:none}#customize-controls .customize-info .preview-notice{font-size:13px;line-height:24px}#customize-controls .control-section .customize-section-title h3,#customize-controls .control-section h3.customize-section-title,#customize-controls .customize-info .panel-title{font-size:20px;font-weight:200;line-height:24px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-section-title span.customize-action{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-info .customize-help-toggle{position:absolute;top:4px;left:1px;padding:20px 10px 10px 20px;width:20px;height:20px;cursor:pointer;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;background:0 0;color:#555;border:none}#customize-controls .customize-info .customize-help-toggle:before{position:absolute;top:5px;right:6px}#customize-controls .customize-info .customize-help-toggle:focus,#customize-controls .customize-info .customize-help-toggle:hover,#customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}#customize-controls .customize-info .customize-panel-description{color:#555;display:none;background:#fff;padding:12px 15px;border-top:1px solid #ddd}#customize-controls .customize-info .customize-panel-description p:first-child{margin-top:0}#customize-controls .customize-info .customize-panel-description p:last-child{margin-bottom:0}#customize-controls .current-panel .control-section>h3.accordion-section-title{padding-left:30px}#customize-theme-controls .control-section{border:none}#customize-theme-controls .accordion-section-title{color:#555;background-color:#fff;border-bottom:1px solid #eee}#customize-theme-controls .accordion-section-title:after{content:"\f341"}#customize-theme-controls .accordion-section-content{color:#555;background:0 0;position:absolute;top:0;right:100%;width:100%;margin:0;padding:12px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#customize-controls .control-section .accordion-section-title:focus,#customize-controls .control-section .accordion-section-title:hover,#customize-controls .control-section.open .accordion-section-title,#customize-controls .control-section:hover>.accordion-section-title{color:#23282d;background:#f5f5f5}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{background:#f5f5f5}#customize-theme-controls .control-section .accordion-section-title:focus:after,#customize-theme-controls .control-section .accordion-section-title:hover:after,#customize-theme-controls .control-section.open .accordion-section-title:after,#customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#23282d}#customize-theme-controls .control-section.open{border-bottom:1px solid #eee}#customize-theme-controls .control-section.open .accordion-section-title{border-bottom-color:#eee!important}#customize-theme-controls .control-section:last-of-type.open,#customize-theme-controls .control-section:last-of-type>.accordion-section-title{border-bottom-color:#ddd}#customize-theme-controls>ul{margin:0}.customize-section-description-container{margin-bottom:15px}.customize-section-title{margin:-12px -12px 0;border-bottom:1px solid #ddd;background:#fff}div.customize-section-description{margin-top:22px}div.customize-section-description p:first-child{margin-top:0}div.customize-section-description p:last-child{margin-bottom:0}#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{border-bottom:1px solid #ddd;padding:12px}.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{padding:12px 12px 13px}.customize-section-title h3,h3.customize-section-title{padding:10px 14px 12px 10px;margin:0;line-height:21px;color:#555}#customize-theme-controls{position:relative;right:0;-webkit-transition:.18s right ease-in-out;transition:.18s right ease-in-out}.ios #customize-theme-controls{-webkit-transition:right 0s;transition:right 0s}.section-open #customize-info,.section-open #customize-theme-controls{right:-100%}.accordion-sub-container.control-panel-content{display:none;position:absolute;right:300px;top:0;width:300px;-webkit-transition:right ease-in-out .18s;transition:right ease-in-out .18s}.ios .accordion-sub-container.control-panel-content{-webkit-transition:right 0s;transition:right 0s}.accordion-sub-container.control-panel-content.animating{display:block}.current-panel .accordion-sub-container.control-panel-content{width:100%}.customize-controls-close{display:block;position:absolute;top:0;right:0;width:45px;height:45px;padding:0 0 0 2px;background:#eee;border:none;border-left:1px solid #ddd;color:#444;text-align:right;cursor:pointer;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.customize-panel-back,.customize-section-back{display:block;float:right;width:48px;height:69px;padding:0 0 0 24px;margin:0;background:#fff;border:none;border-left:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;cursor:pointer;-webkit-transition:right .18s ease-in-out,color .1s ease-in-out,background .1s ease-in-out;transition:right .18s ease-in-out,color .1s ease-in-out,background .1s ease-in-out}.customize-section-back{height:70px}.ios .customize-panel-back,.ios .customize-section-back{-webkit-transition:right 0s;transition:right 0s}.ios .customize-panel-back{display:none}.ios .expanded.in-sub-panel .customize-panel-back{display:block}.panel-meta.customize-info .accordion-section-title{margin-right:48px}#customize-controls .panel-meta.customize-info .accordion-section-title:hover{background:#fff;color:#555}.customize-controls-close:focus,.customize-controls-close:hover,.customize-controls-preview-toggle:focus,.customize-controls-preview-toggle:hover{background:#ddd;border-color:#ccc;color:#000;outline:0;-webkit-box-shadow:none;box-shadow:none}.customize-panel-back:focus,.customize-panel-back:hover,.customize-section-back:focus,.customize-section-back:hover{color:#23282d;background:#f5f5f5;outline:0;-webkit-box-shadow:none;box-shadow:none}.customize-controls-close:before{font:400 22px/45px dashicons;content:"\f335";position:relative;top:1px;right:13px}.customize-panel-back:before,.customize-section-back:before{font:400 20px/69px dashicons;content:"\f345";position:relative;right:13px}.wp-full-overlay-sidebar .wp-full-overlay-header{-webkit-transition:padding ease-in-out .18s;transition:padding ease-in-out .18s}.in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header{padding-right:62px}#customize-info,#customize-theme-controls>ul>.accordion-section{position:relative;right:0;-webkit-transition:right ease-in-out .18s;transition:right ease-in-out .18s}.ios #customize-info,.ios #customize-theme-controls>ul>.accordion-section{-webkit-transition:right 0s;transition:right 0s}.in-sub-panel #customize-info,.in-sub-panel #customize-theme-controls>ul>.accordion-section{right:-300px;width:300px}.in-sub-panel #customize-theme-controls .accordion-section.current-panel{width:100%}#customize-theme-controls .control-section.current-panel{padding:0}#customize-theme-controls .control-section>h3.accordion-section-title{position:relative;right:0}#customize-theme-controls .control-section.current-panel>h3.accordion-section-title{right:-354px;-webkit-transition:right ease-in-out .18s;transition:right ease-in-out .18s}.ios #customize-theme-controls .control-section.current-panel>h3.accordion-section-title{-webkit-transition:right 0s;transition:right 0s}.wp-full-overlay.section-open #customize-controls .wp-full-overlay-sidebar-content{visibility:hidden;overflow-y:hidden}.wp-full-overlay.section-open .wp-full-overlay-sidebar-content .accordion-section.open{visibility:visible}.wp-full-overlay.section-open .wp-full-overlay-sidebar-content .accordion-section.open .accordion-section-content{overflow-y:auto}p.customize-section-description{font-style:normal;margin-top:22px;margin-bottom:0}.customize-control{width:100%;float:right;clear:both;margin-bottom:12px}.customize-control input[type=radio],.customize-control input[type=checkbox],.customize-control select{line-height:28px}.customize-control input[type=tel],.customize-control input[type=url],.customize-control input[type=text],.customize-control input[type=password],.customize-control input[type=email],.customize-control input[type=number],.customize-control input[type=search]{width:98%;line-height:18px;margin:0}.customize-control-hidden{margin:0}.customize-control-checkbox input,.customize-control-radio input{margin-left:5px}.customize-control-textarea textarea{width:100%;resize:vertical}.customize-control select{min-width:50%;max-width:100%;height:28px;line-height:28px}.customize-control select[multiple]{height:auto}.customize-control-title{display:block;font-size:14px;line-height:24px;font-weight:600;margin-bottom:5px}.customize-control-description{display:block;font-style:italic;line-height:18px;margin-bottom:5px}.customize-control-checkbox label,.customize-control-color .color-picker,.customize-control-upload div{line-height:28px}.customize-control-radio{padding:5px 0 10px}.customize-control-radio .customize-control-title{margin-bottom:0;line-height:22px}.customize-control-radio .customize-control-title+.customize-control-description{margin-top:7px}.customize-control-radio label{line-height:32px}.customize-control .attachment-thumb.type-icon{float:right;margin:10px;width:auto}.customize-control .attachment-title{font-weight:700;margin:0;padding:5px 10px}.customize-control .attachment-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;padding:0 10px}.customize-control .attachment-meta-title{padding-top:7px}.customize-control .thumbnail-image{line-height:0}.customize-control .thumbnail-image img{cursor:pointer}#customize-controls .thumbnail-audio .thumbnail{max-width:64px;max-height:64px;margin:10px;float:right}#customize-preview iframe{width:100%;height:100%}.wp-full-overlay-sidebar{background:#eee;border-left:1px solid #ddd}.accordion-section .dropdown{float:right;display:block;position:relative;cursor:pointer}.accordion-section .dropdown-content{overflow:hidden;float:right;min-width:30px;height:16px;line-height:16px;margin-left:16px;padding:4px 5px;border:2px solid #eee;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.customize-control .dropdown-arrow{position:absolute;top:0;bottom:0;left:0;width:20px;background:#eee}.customize-control .dropdown-arrow:after{content:"\f140";font:400 20px/1 dashicons;speak:none;display:block;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#32373c}.customize-control .dropdown-status{color:#32373c;background:#eee;display:none;max-width:112px}.customize-control-color .color-picker-hex{display:none}.customize-control-color.open .color-picker-hex,.customize-control-header button img{display:block}.customize-control-color .dropdown{margin-left:5px;margin-bottom:5px}.customize-control-color .dropdown .dropdown-content{background-color:#555;border:1px solid rgba(0,0,0,.15)}.customize-control-color .dropdown:hover .dropdown-content{border-color:rgba(0,0,0,.25)}.ios #customize-preview,.ios .wp-full-overlay{position:relative}.ios #customize-controls .wp-full-overlay-sidebar-content{-webkit-overflow-scrolling:touch}.customize-control-background .current,.customize-control-cropped_image .current,.customize-control-header .current,.customize-control-image .current,.customize-control-media .current,.customize-control-site_icon .current,.customize-control-upload .current{margin-bottom:8px}.customize-control-header .uploaded{margin-bottom:18px}.customize-control-header .default button:not(.random),.customize-control-header .uploaded button:not(.random){width:100%;padding:0;margin:0;background:0 0;border:none;color:inherit;cursor:pointer}.customize-control-background .default-button,.customize-control-background .remove-button,.customize-control-background .upload-button,.customize-control-cropped_image .default-button,.customize-control-cropped_image .remove-button,.customize-control-cropped_image .upload-button,.customize-control-header button.new,.customize-control-header button.remove,.customize-control-image .default-button,.customize-control-image .remove-button,.customize-control-image .upload-button,.customize-control-media .default-button,.customize-control-media .remove-button,.customize-control-media .upload-button,.customize-control-site_icon .default-button,.customize-control-site_icon .remove-button,.customize-control-site_icon .upload-button,.customize-control-upload .default-button,.customize-control-upload .remove-button,.customize-control-upload .upload-button{white-space:normal;width:48%;height:auto}.customize-control-background .current .container,.customize-control-cropped_image .current .container,.customize-control-header .current .container,.customize-control-image .current .container,.customize-control-media .current .container,.customize-control-site_icon .current .container,.customize-control-upload .current .container{overflow:hidden;border:1px solid #eee;-webkit-border-radius:2px;border-radius:2px}.customize-control-background .current .container,.customize-control-cropped_image .current .container,.customize-control-image .current .container,.customize-control-media .current .container,.customize-control-site_icon .current .container,.customize-control-upload .current .container{min-height:40px}.customize-control-background .placeholder,.customize-control-cropped_image .placeholder,.customize-control-header .placeholder,.customize-control-image .placeholder,.customize-control-media .placeholder,.customize-control-site_icon .placeholder,.customize-control-upload .placeholder{width:100%;position:relative;text-align:center;cursor:default}.customize-control-background .inner,.customize-control-cropped_image .inner,.customize-control-header .inner,.customize-control-image .inner,.customize-control-media .inner,.customize-control-site_icon .inner,.customize-control-upload .inner{display:none;position:absolute;width:100%;color:#555;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.customize-control-background .inner,.customize-control-cropped_image .inner,.customize-control-image .inner,.customize-control-media .inner,.customize-control-site_icon .inner,.customize-control-upload .inner{display:block;min-height:40px}.customize-control-background .inner,.customize-control-cropped_image .inner,.customize-control-header .inner,.customize-control-header .inner .dashicons,.customize-control-image .inner,.customize-control-media .inner,.customize-control-site_icon .inner,.customize-control-upload .inner{line-height:20px;top:10px}.customize-control-header .list .inner,.customize-control-header .list .inner .dashicons{top:9px}.customize-control-header .header-view{position:relative;width:100%;margin-bottom:5px}.customize-control-header .header-view:last-child{margin-bottom:0}.customize-control-header .header-view:after{border:0}.customize-control-header .header-view.selected:after{content:'';position:absolute;height:auto;top:0;right:0;bottom:0;left:0;border:4px solid #00a0d2;-webkit-border-radius:2px;border-radius:2px}.customize-control-header .header-view.button.selected{border:0}.customize-control-header .uploaded .header-view .close{font-size:20px;color:#fff;background:#555;background:rgba(0,0,0,.5);position:absolute;top:10px;left:-999px;z-index:1;width:26px;height:26px;cursor:pointer}.customize-control-header .header-view .close:focus,.customize-control-header .header-view:hover .close{left:10px}.customize-control-header .random.placeholder{cursor:pointer;-webkit-border-radius:2px;border-radius:2px;height:40px}.customize-control-header button.random{width:100%;height:auto;min-height:40px;white-space:normal}.customize-control-header button.random .dice{margin-top:4px}.customize-control-header .header-view:hover>button.random .dice,.customize-control-header .placeholder:hover .dice{-webkit-animation:dice-color-change 3s infinite;animation:dice-color-change 3s infinite}@-webkit-keyframes dice-color-change{0%,100%{color:#d4b146}50%{color:#ef54b0}75%{color:#7190d3}}@keyframes dice-color-change{0%,100%{color:#d4b146}50%{color:#ef54b0}75%{color:#7190d3}}.customize-control-background .actions,.customize-control-cropped_image .actions,.customize-control-header .actions,.customize-control-image .actions,.customize-control-media .actions,.customize-control-site_icon .actions,.customize-control-upload .actions{margin-bottom:32px}.customize-control-header .choice{position:relative;display:block;margin-bottom:9px}.customize-control-header .uploaded div:last-child>.choice{margin-bottom:0}.customize-control-background img,.customize-control-cropped_image img,.customize-control-header img,.customize-control-image img,.customize-control-media img,.customize-control-site_icon img,.customize-control-upload img{width:100%;-webkit-border-radius:2px;border-radius:2px}.customize-control-background .default-button,.customize-control-background .remove-button,.customize-control-cropped_image .default-button,.customize-control-cropped_image .remove-button,.customize-control-header .remove,.customize-control-image .default-button,.customize-control-image .remove-button,.customize-control-media .default-button,.customize-control-media .remove-button,.customize-control-site_icon .default-button,.customize-control-site_icon .remove-button,.customize-control-upload .default-button,.customize-control-upload .remove-button{float:right;margin-left:3px}.customize-control-background .upload-button,.customize-control-cropped_image .upload-button,.customize-control-header .new,.customize-control-image .upload-button,.customize-control-media .upload-button,.customize-control-site_icon .upload-button,.customize-control-upload .upload-button{float:left}@-webkit-keyframes customize-reload{0%{opacity:0}100%{opacity:1}}@keyframes customize-reload{0%{opacity:0}100%{opacity:1}}.wp-customizer .customize-loading #customize-container{display:block;-webkit-animation:customize-reload .75s;animation:customize-reload .75s}.control-section-themes .accordion-section-title{cursor:default;margin:15px 0;padding-left:100px}#customize-theme-controls .control-section-themes .accordion-section-title:focus,#customize-theme-controls .control-section-themes .accordion-section-title:hover{color:#555;background-color:#fff}.customize-themes-panel .accordion-section-title{margin:15px -8px}#customize-controls .customize-section-title span.customize-action,.control-section-themes .accordion-section-title span.customize-action{font-size:13px;display:block;font-weight:400}.control-section-themes .accordion-section-title .change-theme,.control-section-themes .accordion-section-title .customize-theme{position:absolute;left:10px;top:50%;margin-top:-14px;font-weight:400}.control-section-themes .accordion-section-title:before{display:none}.customize-themes-panel{display:none;padding:0 8px;background:#f1f1f1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.customize-themes-panel .accordion-section-title:first-child{margin-top:0}#customize-controls .customize-themes-panel .accordion-section-title:nth-child(2){font-size:14px;font-weight:600}.customize-themes-panel>h2{padding:15px 8px 0}.control-section.open .customize-themes-panel{display:block}#customize-theme-controls .customize-themes-panel .accordion-section-content{background:0 0;display:block}#accordion-section-themes .accordion-section-title:after,.customize-controls-preview-toggle,.wp-customizer .theme-overlay{display:none}.customize-control.customize-control-theme{margin-bottom:8px}#customize-theme-controls .themes.accordion-section-content{position:relative;right:0;padding:0;width:100%}.wp-customizer .theme-browser .themes{padding-bottom:8px}.wp-customizer .theme-browser .theme{margin:0;width:100%}.wp-customizer .theme-browser .theme .theme-actions{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}#customize-controls h3.theme-name{font-size:15px}#customize-controls .theme-overlay .theme-name{font-size:32px}.wp-customizer #themes-filter{font-size:16px;font-weight:300;line-height:1.5;width:100%}#customize-theme-controls .control-section-themes.current-panel>h3.accordion-section-title{right:0}.customize-themes-panel.control-panel-content{position:absolute;right:-100%;top:0;width:100%;border-top:1px solid #ddd}.in-themes-panel #customize-info,.in-themes-panel #customize-theme-controls>ul>.accordion-section{right:100%}.wp-customizer.modal-open .theme-overlay{position:fixed;right:0;top:0;left:0;bottom:0;z-index:109}.wp-customizer .theme-overlay .theme-backdrop{background:rgba(238,238,238,.75);position:fixed;z-index:110}.wp-customizer .theme-overlay .theme-wrap{right:90px;left:90px;top:45px;bottom:45px;z-index:120;max-width:1740px}.wp-customizer .theme-overlay .theme-actions{text-align:left}.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.ie8 .wp-customizer .theme-overlay .theme-about,.ie8 .wp-customizer .theme-overlay .theme-actions,.ie8 .wp-customizer .theme-overlay .theme-header{position:static}@media (max-width:850px),(max-height:472px){.wp-customizer .theme-overlay .theme-wrap{right:0;left:0;top:0;bottom:0}}body.cheatin{font-size:medium;height:auto;background:#fff;margin:50px auto 2em;padding:1em 2em;max-width:700px;min-width:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.13);box-shadow:0 1px 3px rgba(0,0,0,.13)}body.cheatin p{font-size:14px;line-height:1.5;margin:25px 0 20px}@media only screen and (max-width:780px){.wp-customizer .theme:not(.active):focus .theme-actions,.wp-customizer .theme:not(.active):hover .theme-actions{display:block}.wp-customizer .theme-browser .theme.active .theme-name span{display:inline}}@media screen and (max-width:640px){#customize-controls{width:100%}.wp-full-overlay.expanded{margin-right:0}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:0}.customize-controls-preview-toggle{display:block;position:absolute;top:0;right:48px;line-height:45px;font-size:14px;padding:0 12px;margin:0;height:45px;background:#eee;border-left:1px solid #ddd;color:#444;cursor:pointer;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}#customize-footer-actions,#customize-preview,.customize-controls-preview-toggle .controls,.preview-only .customize-controls-preview-toggle .preview,.preview-only .wp-full-overlay-sidebar-content{display:none}.customize-controls-preview-toggle .controls:before,.customize-controls-preview-toggle .preview:before{font:400 20px/1 dashicons;content:"\f177";position:relative;top:4px;margin-left:6px}.customize-controls-preview-toggle .controls:before{content:"\f540"}.preview-only #customize-controls{height:45px}.preview-only #customize-preview,.preview-only .customize-controls-preview-toggle .controls{display:block}#customize-preview{top:45px;bottom:0;height:auto}.wp-core-ui.wp-customizer .button{padding:6px 14px;line-height:normal;font-size:14px;vertical-align:middle;height:auto;margin-bottom:4px}#customize-header-actions .button-primary{margin-top:6px}} \ No newline at end of file diff --git a/wp-admin/css/customize-controls.css b/wp-admin/css/customize-controls.css deleted file mode 100644 index 46c4170bff..0000000000 --- a/wp-admin/css/customize-controls.css +++ /dev/null @@ -1,1312 +0,0 @@ -body { - overflow: hidden; - -webkit-text-size-adjust: 100%; -} - -#customize-controls a { - text-decoration: none; -} - -#customize-controls h3 { - font-size: 14px; -} - -#customize-controls img { - max-width: 100%; -} - -#customize-controls .submit { - text-align: center; -} - -#customize-controls .description { - color: #555; -} - -#customize-header-actions .button-primary { - float: right; - margin-top: 9px; -} - -#customize-header-actions .spinner { - margin-top: 13px; - margin-right: 4px; -} - -.saving #customize-header-actions .spinner { - visibility: visible; -} - -#customize-header-actions { - border-bottom: 1px solid #ddd; -} - -#customize-controls .wp-full-overlay-sidebar-content { - overflow-y: auto; - overflow-x: hidden; -} - -#customize-controls .customize-info { - border: none; - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin-bottom: 15px; -} - -#customize-controls .customize-info .accordion-section-title { - background: #fff; - color: #555; - border-left: none; - border-right: none; - border-bottom: none; - cursor: default; -} - -#customize-controls .customize-info.open .accordion-section-title:after, -#customize-controls .customize-info .accordion-section-title:hover:after, -#customize-controls .customize-info .accordion-section-title:focus:after { - color: #333; -} - -#customize-controls .customize-info .accordion-section-title:after { - display: none; -} - -#customize-controls .customize-info .preview-notice { - font-size: 13px; - line-height: 24px; -} - -#customize-controls .control-section .customize-section-title h3, -#customize-controls .control-section h3.customize-section-title, -#customize-controls .customize-info .panel-title { - font-size: 20px; - font-weight: 200; - line-height: 24px; - display: block; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} - -#customize-controls .customize-section-title span.customize-action { - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} - -#customize-controls .customize-info .customize-help-toggle { - position: absolute; - top: 4px; - right: 1px; - padding: 20px 20px 10px 10px; - width: 20px; - height: 20px; - cursor: pointer; - -webkit-box-shadow: none; - box-shadow: none; - -webkit-appearance: none; - background: transparent; - color: #555; - border: none; -} - -#customize-controls .customize-info .customize-help-toggle:before { - position: absolute; - top: 5px; - left: 6px; -} - -#customize-controls .customize-info.open .customize-help-toggle, -#customize-controls .customize-info .customize-help-toggle:focus, -#customize-controls .customize-info .customize-help-toggle:hover { - color: #0073aa; -} - -#customize-controls .customize-info .customize-panel-description { - color: #555; - display: none; - background: #fff; - padding: 12px 15px; - border-top: 1px solid #ddd; -} - -#customize-controls .customize-info .customize-panel-description p:first-child { - margin-top: 0; -} - -#customize-controls .customize-info .customize-panel-description p:last-child { - margin-bottom: 0; -} - -#customize-controls .current-panel .control-section > h3.accordion-section-title { - padding-right: 30px; -} - -#customize-theme-controls .control-section { - border: none; -} - -#customize-theme-controls .accordion-section-title { - color: #555; - background-color: #fff; - border-bottom: 1px solid #eee; -} - -#customize-theme-controls .accordion-section-title:after { - content: "\f345"; -} - -#customize-theme-controls .accordion-section-content { - color: #555; - background: transparent; -} - -#customize-controls .control-section:hover > .accordion-section-title, -#customize-controls .control-section .accordion-section-title:hover, -#customize-controls .control-section.open .accordion-section-title, -#customize-controls .control-section .accordion-section-title:focus { - color: #23282d; - background: #f5f5f5; -} - -.js .control-section:hover .accordion-section-title, -.js .control-section .accordion-section-title:hover, -.js .control-section.open .accordion-section-title, -.js .control-section .accordion-section-title:focus { - background: #f5f5f5; -} - -#customize-theme-controls .control-section:hover > .accordion-section-title:after, -#customize-theme-controls .control-section .accordion-section-title:hover:after, -#customize-theme-controls .control-section.open .accordion-section-title:after, -#customize-theme-controls .control-section .accordion-section-title:focus:after { - color: #23282d; -} - -#customize-theme-controls .control-section.open { - border-bottom: 1px solid #eee; -} - -#customize-theme-controls .control-section.open .accordion-section-title { - border-bottom-color: #eee !important; -} - -#customize-theme-controls .control-section:last-of-type.open, -#customize-theme-controls .control-section:last-of-type > .accordion-section-title { - border-bottom-color: #ddd; -} - -#customize-theme-controls > ul { - margin: 0; -} - -#customize-theme-controls .accordion-section-content { - position: absolute; - top: 0; - left: 100%; - width: 100%; - margin: 0; - padding: 12px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.customize-section-description-container { - margin-bottom: 15px; -} - -.customize-section-title { - margin: -12px -12px 0 -12px; - border-bottom: 1px solid #ddd; - background: #fff; -} - -div.customize-section-description { - margin-top: 22px; -} - -div.customize-section-description p:first-child { - margin-top: 0; -} - -div.customize-section-description p:last-child { - margin-bottom: 0; -} - -#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { - border-bottom: 1px solid #ddd; - padding: 12px 12px 12px 12px; -} - -.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { - padding: 12px 12px 13px 12px; -} - -.customize-section-title h3, -h3.customize-section-title { - padding: 10px 10px 12px 14px; - margin: 0; - line-height: 21px; - color: #555; -} - -#customize-theme-controls { - position: relative; - left: 0; - -webkit-transition: .18s left ease-in-out; - transition: .18s left ease-in-out; -} - -.ios #customize-theme-controls { - -webkit-transition: left 0s; - transition: left 0s; -} - -.section-open #customize-info, -.section-open #customize-theme-controls { - left: -100%; -} - -.accordion-sub-container.control-panel-content { - display: none; - position: absolute; - left: 300px; - top: 0; - width: 300px; - -webkit-transition: left ease-in-out .18s; - transition: left ease-in-out .18s; -} - -.ios .accordion-sub-container.control-panel-content { - -webkit-transition: left 0s; - transition: left 0s; -} - -.accordion-sub-container.control-panel-content.animating { - display: block; -} - -.current-panel .accordion-sub-container.control-panel-content { - width: 100%; -} - -.customize-controls-close { - display: block; - position: absolute; - top: 0; - left: 0; - width: 45px; - height: 45px; - padding: 0 2px 0 0; - background: #eee; - border: none; - border-right: 1px solid #ddd; - color: #444; - text-align: left; - cursor: pointer; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} - -.customize-panel-back, -.customize-section-back { - display: block; - float: left; - width: 48px; - height: 69px; - padding: 0 24px 0 0; - margin: 0; - background: #fff; - border: none; - border-right: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - cursor: pointer; - -webkit-transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; - transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; -} - -.customize-section-back { - height: 70px; -} - -.ios .customize-panel-back, -.ios .customize-section-back { - -webkit-transition: left 0s; - transition: left 0s; -} - -.ios .customize-panel-back { - display: none; -} - -.ios .expanded.in-sub-panel .customize-panel-back { - display: block; -} - -.panel-meta.customize-info .accordion-section-title { - margin-left: 48px; -} - -#customize-controls .panel-meta.customize-info .accordion-section-title:hover { - background: #fff; - color: #555; -} - -.customize-controls-close:focus, -.customize-controls-close:hover, -.customize-controls-preview-toggle:focus, -.customize-controls-preview-toggle:hover { - background: #ddd; - border-color: #ccc; - color: #000; - outline: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.customize-panel-back:hover, -.customize-panel-back:focus, -.customize-section-back:hover, -.customize-section-back:focus { - color: #23282d; - background: #f5f5f5; - outline: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.customize-controls-close:before { - font: normal 22px/45px dashicons; - content: "\f335"; - position: relative; - top: 1px; - left: 13px; -} - -.customize-panel-back:before, -.customize-section-back:before { - font: normal 20px/69px dashicons; - content: "\f341"; - position: relative; - left: 13px; -} - -.wp-full-overlay-sidebar .wp-full-overlay-header { - -webkit-transition: padding ease-in-out .18s; - transition: padding ease-in-out .18s; -} - -.in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header { - padding-left: 62px; -} - -#customize-info, -#customize-theme-controls > ul > .accordion-section { - position: relative; - left: 0; - -webkit-transition: left ease-in-out .18s; - transition: left ease-in-out .18s; -} - -.ios #customize-info, -.ios #customize-theme-controls > ul > .accordion-section { - -webkit-transition: left 0s; - transition: left 0s; -} - -.in-sub-panel #customize-info, -.in-sub-panel #customize-theme-controls > ul > .accordion-section { - left: -300px; - width: 300px; -} - -.in-sub-panel #customize-theme-controls .accordion-section.current-panel { - width: 100%; -} - -#customize-theme-controls .control-section.current-panel { - padding: 0; -} - -#customize-theme-controls .control-section > h3.accordion-section-title { - position: relative; - left: 0; -} - -#customize-theme-controls .control-section.current-panel > h3.accordion-section-title { - left: -354px; - -webkit-transition: left ease-in-out .18s; - transition: left ease-in-out .18s; -} - -.ios #customize-theme-controls .control-section.current-panel > h3.accordion-section-title { - -webkit-transition: left 0s; - transition: left 0s; -} - -.wp-full-overlay.section-open #customize-controls .wp-full-overlay-sidebar-content { - visibility: hidden; - overflow-y: hidden; -} - -.wp-full-overlay.section-open .wp-full-overlay-sidebar-content .accordion-section.open { - visibility: visible; -} - -.wp-full-overlay.section-open .wp-full-overlay-sidebar-content .accordion-section.open .accordion-section-content { - overflow-y: auto; -} - -p.customize-section-description { - font-style: normal; - margin-top: 22px; - margin-bottom: 0; -} - -.customize-control { - width: 100%; - float: left; - clear: both; - margin-bottom: 12px; -} - -.customize-control select, -.customize-control input[type="radio"], -.customize-control input[type="checkbox"] { - line-height: 28px; -} - -.customize-control input[type="text"], -.customize-control input[type="password"], -.customize-control input[type="email"], -.customize-control input[type="number"], -.customize-control input[type="search"], -.customize-control input[type="tel"], -.customize-control input[type="url"] { - width: 98%; - line-height: 18px; - margin: 0; -} - -.customize-control-hidden { - margin: 0; -} - -.customize-control-textarea textarea { - width: 100%; - resize: vertical; -} - -.customize-control select { - min-width: 50%; - max-width: 100%; - height: 28px; - line-height: 28px; -} - -.customize-control select[multiple] { - height: auto; -} - -.customize-control-title { - display: block; - font-size: 14px; - line-height: 24px; - font-weight: 600; - margin-bottom: 5px; -} - -.customize-control-description { - display: block; - font-style: italic; - line-height: 18px; - margin-bottom: 5px; -} - -.customize-control-color .color-picker, -.customize-control-checkbox label, -.customize-control-upload div { - line-height: 28px; -} - -.customize-control-checkbox input { - margin-right: 5px; -} - -.customize-control-radio { - padding: 5px 0 10px; -} - -.customize-control-radio .customize-control-title { - margin-bottom: 0; - line-height: 22px; -} - -.customize-control-radio .customize-control-title + .customize-control-description { - margin-top: 7px; -} - -.customize-control-radio label { - line-height: 32px; -} - -.customize-control-radio input { - margin-right: 5px; -} - -.customize-control .attachment-thumb.type-icon { - float: left; - margin: 10px; - width: auto; -} - -.customize-control .attachment-title { - font-weight: bold; - margin: 0; - padding: 5px 10px; -} - -.customize-control .attachment-meta { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - margin: 0; - padding: 0 10px; -} - -.customize-control .attachment-meta-title { - padding-top: 7px; -} - -.customize-control .thumbnail-image { - line-height: 0; -} - -.customize-control .thumbnail-image img { - cursor: pointer; -} - -#customize-controls .thumbnail-audio .thumbnail { - max-width: 64px; - max-height: 64px; - margin: 10px; - float: left; -} - -#customize-preview iframe { - width: 100%; - height: 100%; -} - -.wp-full-overlay-sidebar { - background: #eee; - border-right: 1px solid #ddd; -} - -/* Style for custom settings */ - -/* - * Dropdowns - */ -.accordion-section .dropdown { - float: left; - display: block; - position: relative; - cursor: pointer; -} - -.accordion-section .dropdown-content { - overflow: hidden; - float: left; - min-width: 30px; - height: 16px; - line-height: 16px; - margin-right: 16px; - padding: 4px 5px; - border: 2px solid #eee; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.customize-control .dropdown-arrow { - position: absolute; - top: 0; - bottom: 0; - right: 0; - width: 20px; - background: #eee; -} - -.customize-control .dropdown-arrow:after { - content: "\f140"; - font: normal 20px/1 'dashicons'; - speak: none; - display: block; - padding: 0; - text-indent: 0; - text-align: center; - position: relative; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; - color: #32373c; -} - -.customize-control .dropdown-status { - color: #32373c; - background: #eee; - display: none; - max-width: 112px; -} - -/* Color Picker */ -.customize-control-color .color-picker-hex { - display: none; -} - -.customize-control-color.open .color-picker-hex { - display: block; -} - -.customize-control-color .dropdown { - margin-right: 5px; - margin-bottom: 5px; -} - -.customize-control-color .dropdown .dropdown-content { - background-color: #555; - border: 1px solid rgba(0, 0, 0, 0.15); -} - -.customize-control-color .dropdown:hover .dropdown-content { - border-color: rgba(0, 0, 0, 0.25); -} - -/** - * iOS can't scroll iframes, - * instead it expands the iframe size to match the size of the content - */ -.ios .wp-full-overlay { - position: relative; -} - -.ios #customize-preview { - position: relative; -} - -.ios #customize-controls .wp-full-overlay-sidebar-content { - -webkit-overflow-scrolling: touch; -} - -/** Media controls **/ - -.customize-control-media .current, -.customize-control-upload .current, -.customize-control-image .current, -.customize-control-background .current, -.customize-control-cropped_image .current, -.customize-control-site_icon .current, -.customize-control-header .current { - margin-bottom: 8px; -} - -.customize-control-header .uploaded { - margin-bottom: 18px; -} - -.customize-control-header .uploaded button:not(.random), -.customize-control-header .default button:not(.random) { - width: 100%; - padding: 0; - margin: 0; - background: none; - border: none; - color: inherit; - cursor: pointer; -} - -.customize-control-header button img { - display: block; -} - -.customize-control-media .remove-button, -.customize-control-media .default-button, -.customize-control-media .upload-button, -.customize-control-upload .remove-button, -.customize-control-upload .default-button, -.customize-control-upload .upload-button, -.customize-control-image .remove-button, -.customize-control-image .default-button, -.customize-control-image .upload-button, -.customize-control-background .remove-button, -.customize-control-background .default-button, -.customize-control-background .upload-button, -.customize-control-cropped_image .remove-button, -.customize-control-cropped_image .default-button, -.customize-control-cropped_image .upload-button, -.customize-control-site_icon .remove-button, -.customize-control-site_icon .default-button, -.customize-control-site_icon .upload-button, -.customize-control-header button.new, -.customize-control-header button.remove { - white-space: normal; - width: 48%; - height: auto; -} - -.customize-control-media .current .container, -.customize-control-upload .current .container, -.customize-control-image .current .container, -.customize-control-background .current .container, -.customize-control-cropped_image .current .container, -.customize-control-site_icon .current .container, -.customize-control-header .current .container { - overflow: hidden; - -webkit-border-radius: 2px; - border: 1px solid #eee; - -webkit-border-radius: 2px; - border-radius: 2px; -} - -.customize-control-media .current .container, -.customize-control-upload .current .container, -.customize-control-background .current .container, -.customize-control-cropped_image .current .container, -.customize-control-site_icon .current .container, -.customize-control-image .current .container { - min-height: 40px; -} - -.customize-control-media .placeholder, -.customize-control-upload .placeholder, -.customize-control-image .placeholder, -.customize-control-background .placeholder, -.customize-control-cropped_image .placeholder, -.customize-control-site_icon .placeholder, -.customize-control-header .placeholder { - width: 100%; - position: relative; - text-align: center; - cursor: default; -} - -.customize-control-media .inner, -.customize-control-upload .inner, -.customize-control-image .inner, -.customize-control-background .inner, -.customize-control-cropped_image .inner, -.customize-control-site_icon .inner, -.customize-control-header .inner { - display: none; - position: absolute; - width: 100%; - color: #555; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; -} - -.customize-control-media .inner, -.customize-control-upload .inner, -.customize-control-background .inner, -.customize-control-cropped_image .inner, -.customize-control-site_icon .inner, -.customize-control-image .inner { - display: block; - min-height: 40px; -} - -.customize-control-media .inner, -.customize-control-upload .inner, -.customize-control-image .inner, -.customize-control-background .inner, -.customize-control-cropped_image .inner, -.customize-control-site_icon .inner, -.customize-control-header .inner, -.customize-control-header .inner .dashicons { - line-height: 20px; - top: 10px; -} - -.customize-control-header .list .inner, -.customize-control-header .list .inner .dashicons { - top: 9px; -} - -.customize-control-header .header-view { - position: relative; - width: 100%; - margin-bottom: 5px; -} - -.customize-control-header .header-view:last-child { - margin-bottom: 0px; -} - -/* Convoluted, but 'outline' support isn't good enough yet */ -.customize-control-header .header-view:after { - border: 0; -} -.customize-control-header .header-view.selected:after { - content: ''; - position: absolute; - height: auto; - top: 0; left: 0; bottom: 0; right: 0; - border: 4px solid #00a0d2; - -webkit-border-radius: 2px; - border-radius: 2px; -} -.customize-control-header .header-view.button.selected { - border: 0; -} - -/* Header control: overlay "close" button */ - -.customize-control-header .uploaded .header-view .close { - font-size: 20px; - color: #fff; - background: #555; - background: rgba(0, 0, 0, 0.5); - position: absolute; - top: 10px; - right: -999px; - z-index: 1; - width: 26px; - height: 26px; - cursor: pointer; -} - -.customize-control-header .header-view:hover .close, -.customize-control-header .header-view .close:focus { - right: 10px; -} - -/* Header control: randomiz(s)er */ - -.customize-control-header .random.placeholder { - cursor: pointer; - -webkit-border-radius: 2px; - border-radius: 2px; - height: 40px; -} - -.customize-control-header button.random { - width: 100%; - height: auto; - min-height: 40px; - white-space: normal; -} - -.customize-control-header button.random .dice { - margin-top: 4px; -} - -.customize-control-header .placeholder:hover .dice, -.customize-control-header .header-view:hover > button.random .dice { - -webkit-animation: dice-color-change 3s infinite; - animation: dice-color-change 3s infinite; -} - -@-webkit-keyframes dice-color-change { - 0% { color: #d4b146; } - 50% { color: #ef54b0; } - 75% { color: #7190d3; } - 100% { color: #d4b146; } -} - -@keyframes dice-color-change { - 0% { color: #d4b146; } - 50% { color: #ef54b0; } - 75% { color: #7190d3; } - 100% { color: #d4b146; } -} - -.customize-control-media .actions, -.customize-control-upload .actions, -.customize-control-image .actions, -.customize-control-background .actions, -.customize-control-cropped_image .actions, -.customize-control-site_icon .actions, -.customize-control-header .actions { - margin-bottom: 32px; -} - -.customize-control-header .choice { - position: relative; - display: block; - margin-bottom: 9px; -} - -.customize-control-header .uploaded div:last-child > .choice { - margin-bottom: 0; -} - -.customize-control-media img, -.customize-control-upload img, -.customize-control-image img, -.customize-control-background img, -.customize-control-cropped_image img, -.customize-control-site_icon img, -.customize-control-header img { - width: 100%; - -webkit-border-radius: 2px; - border-radius: 2px; -} - -.customize-control-media .remove-button, -.customize-control-media .default-button, -.customize-control-upload .remove-button, -.customize-control-upload .default-button, -.customize-control-image .remove-button, -.customize-control-image .default-button, -.customize-control-background .remove-button, -.customize-control-background .default-button, -.customize-control-cropped_image .remove-button, -.customize-control-cropped_image .default-button, -.customize-control-site_icon .remove-button, -.customize-control-site_icon .default-button, -.customize-control-header .remove { - float: left; - margin-right: 3px; -} - -.customize-control-media .upload-button, -.customize-control-upload .upload-button, -.customize-control-image .upload-button, -.customize-control-background .upload-button, -.customize-control-cropped_image .upload-button, -.customize-control-site_icon .upload-button, -.customize-control-header .new { - float: right; -} - -/** - * Themes - */ -@-webkit-keyframes customize-reload { - 0% { opacity: 0; } - 100% { opacity: 1; } -} - -@keyframes customize-reload { - 0% { opacity: 0; } - 100% { opacity: 1; } -} - -/* #customize-container is reused from customize-loader.js, hence the naming. */ -.wp-customizer .customize-loading #customize-container { - display: block; - -webkit-animation: customize-reload .75s; /* Can't use `transition` because `display` changes here. */ - animation: customize-reload .75s; -} - -.control-section-themes .accordion-section-title { - cursor: default; -} - -#customize-theme-controls .control-section-themes .accordion-section-title:hover, -#customize-theme-controls .control-section-themes .accordion-section-title:focus { - color: #555; - background-color: #fff; -} - -.control-section-themes .accordion-section-title { - margin: 15px 0; -} - -.customize-themes-panel .accordion-section-title { - margin: 15px -8px; -} - -.control-section-themes .accordion-section-title { - padding-right: 100px; /* Space for the button */ -} - -.control-section-themes .accordion-section-title span.customize-action, -#customize-controls .customize-section-title span.customize-action { - font-size: 13px; - display: block; - font-weight: 400; -} - -.control-section-themes .accordion-section-title .change-theme, -.control-section-themes .accordion-section-title .customize-theme { - position: absolute; - right: 10px; - top: 50%; - margin-top: -14px; - font-weight: normal; -} - -.control-section-themes .accordion-section-title:before { - display: none; -} - -.customize-themes-panel { - display: none; - padding: 0 8px; - background: #f1f1f1; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.customize-themes-panel .accordion-section-title:first-child { - margin-top: 0; -} - -#customize-controls .customize-themes-panel .accordion-section-title:nth-child(2) { - font-size: 14px; - font-weight: 600; -} - -.customize-themes-panel > h2 { - padding: 15px 8px 0 8px; -} - -.control-section.open .customize-themes-panel { - display: block; -} - -#customize-theme-controls .customize-themes-panel .accordion-section-content { - background: transparent; - display: block; -} - -.customize-control.customize-control-theme { - margin-bottom: 8px; -} - -#customize-theme-controls .themes.accordion-section-content { - position: relative; - left: 0; - padding: 0; - width: 100%; -} - -.wp-customizer .theme-browser .themes { - padding-bottom: 8px; -} - -.wp-customizer .theme-browser .theme { - margin: 0; - width: 100%; -} - -.wp-customizer .theme-browser .theme .theme-actions { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - opacity: 1; -} - -#customize-controls h3.theme-name { - font-size: 15px; -} - -#customize-controls .theme-overlay .theme-name { - font-size: 32px; -} - -.wp-customizer #themes-filter { - font-size: 16px; - font-weight: 300; - line-height: 1.5; - width: 100%; -} - -#accordion-section-themes .accordion-section-title:after { - display: none; -} - -#customize-theme-controls .control-section-themes.current-panel > h3.accordion-section-title { - left: 0; -} - -.customize-themes-panel.control-panel-content { - position: absolute; - left: -100%; - top: 0; - width: 100%; - border-top: 1px solid #ddd; -} - -.in-themes-panel #customize-info, -.in-themes-panel #customize-theme-controls > ul > .accordion-section { - left: 100%; -} - -/* Details View */ -.wp-customizer .theme-overlay { - display: none; -} - -.wp-customizer.modal-open .theme-overlay { - position: fixed; - left: 0; - top: 0; - right: 0; - bottom: 0; - z-index: 109; -} - -.wp-customizer .theme-overlay .theme-backdrop { - background: rgba( 238, 238, 238, 0.75 ); - position: fixed; - z-index: 110; -} - -.wp-customizer .theme-overlay .theme-wrap { - left: 90px; - right: 90px; - top: 45px; - bottom: 45px; - z-index: 120; - max-width: 1740px; /* To ensure that theme screenshots are not displayed larger than 880px wide. */ -} - -.wp-customizer .theme-overlay .theme-actions { - text-align: right; /* Because there's only one action, match the pattern of media modals and right-align the action. */ -} - -.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content { - overflow: visible; /* Prevent the top-level Customizer controls from becoming visible when elements on the right of the details modal are focused. */ -} - -.ie8 .wp-customizer .theme-overlay .theme-header, -.ie8 .wp-customizer .theme-overlay .theme-about, -.ie8 .wp-customizer .theme-overlay .theme-actions { - position: static; -} - -/* Small Screens */ -@media (max-width:850px), (max-height:472px) { - .wp-customizer .theme-overlay .theme-wrap { - left: 0; - right: 0; - top: 0; - bottom: 0; - } -} - -/* Handle cheaters. */ -body.cheatin { - font-size: medium; - height: auto; - background: #fff; - margin: 50px auto 2em; - padding: 1em 2em; - max-width: 700px; - min-width: 0; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13); - box-shadow: 0 1px 3px rgba(0,0,0,0.13); -} - -body.cheatin p { - font-size: 14px; - line-height: 1.5; - margin: 25px 0 20px; -} - -/* Responsive */ -.customize-controls-preview-toggle { - display: none; -} - -@media only screen and (max-width: 780px) { - .wp-customizer .theme:not(.active):hover .theme-actions, - .wp-customizer .theme:not(.active):focus .theme-actions { - display: block; - } - - .wp-customizer .theme-browser .theme.active .theme-name span { - display: inline; - } -} - -@media screen and ( max-width: 640px ) { - #customize-controls { - width: 100%; - } - - .wp-full-overlay.expanded { - margin-left: 0; - } - - .wp-full-overlay-sidebar .wp-full-overlay-sidebar-content { - bottom: 0; - } - - .customize-controls-preview-toggle { - display: block; - position: absolute; - top: 0; - left: 48px; - line-height: 45px; - font-size: 14px; - padding: 0 12px 0 12px; - margin: 0; - height: 45px; - background: #eee; - border-right: 1px solid #ddd; - color: #444; - cursor: pointer; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; - } - - #customize-footer-actions, - #customize-preview, - .customize-controls-preview-toggle .controls, - .preview-only .wp-full-overlay-sidebar-content, - .preview-only .customize-controls-preview-toggle .preview { - display: none; - } - - .customize-controls-preview-toggle .preview:before, - .customize-controls-preview-toggle .controls:before { - font: normal 20px/1 dashicons; - content: "\f177"; - position: relative; - top: 4px; - margin-right: 6px; - } - - .customize-controls-preview-toggle .controls:before { - content: "\f540"; - } - - .preview-only #customize-controls { - height: 45px; - } - - .preview-only #customize-preview, - .preview-only .customize-controls-preview-toggle .controls { - display: block; - } - - #customize-preview { - top: 45px; - bottom: 0; - height: auto; - } - - .wp-core-ui.wp-customizer .button { - padding: 6px 14px; - line-height: normal; - font-size: 14px; - vertical-align: middle; - height: auto; - margin-bottom: 4px; - } - - #customize-header-actions .button-primary { - margin-top: 6px; - } -} diff --git a/wp-admin/css/customize-controls.min.css b/wp-admin/css/customize-controls.min.css deleted file mode 100644 index 159987bdca..0000000000 --- a/wp-admin/css/customize-controls.min.css +++ /dev/null @@ -1 +0,0 @@ -body{overflow:hidden;-webkit-text-size-adjust:100%}#customize-controls a{text-decoration:none}#customize-controls h3{font-size:14px}#customize-controls img{max-width:100%}#customize-controls .submit{text-align:center}#customize-controls .description{color:#555}#customize-header-actions .button-primary{float:right;margin-top:9px}#customize-header-actions .spinner{margin-top:13px;margin-right:4px}.saving #customize-header-actions .spinner{visibility:visible}#customize-header-actions{border-bottom:1px solid #ddd}#customize-controls .wp-full-overlay-sidebar-content{overflow-y:auto;overflow-x:hidden}#customize-controls .customize-info{border:none;border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin-bottom:15px}#customize-controls .customize-info .accordion-section-title{background:#fff;color:#555;border-left:none;border-right:none;border-bottom:none;cursor:default}#customize-controls .customize-info .accordion-section-title:focus:after,#customize-controls .customize-info .accordion-section-title:hover:after,#customize-controls .customize-info.open .accordion-section-title:after{color:#333}#customize-controls .customize-info .accordion-section-title:after{display:none}#customize-controls .customize-info .preview-notice{font-size:13px;line-height:24px}#customize-controls .control-section .customize-section-title h3,#customize-controls .control-section h3.customize-section-title,#customize-controls .customize-info .panel-title{font-size:20px;font-weight:200;line-height:24px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-section-title span.customize-action{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-info .customize-help-toggle{position:absolute;top:4px;right:1px;padding:20px 20px 10px 10px;width:20px;height:20px;cursor:pointer;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;background:0 0;color:#555;border:none}#customize-controls .customize-info .customize-help-toggle:before{position:absolute;top:5px;left:6px}#customize-controls .customize-info .customize-help-toggle:focus,#customize-controls .customize-info .customize-help-toggle:hover,#customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}#customize-controls .customize-info .customize-panel-description{color:#555;display:none;background:#fff;padding:12px 15px;border-top:1px solid #ddd}#customize-controls .customize-info .customize-panel-description p:first-child{margin-top:0}#customize-controls .customize-info .customize-panel-description p:last-child{margin-bottom:0}#customize-controls .current-panel .control-section>h3.accordion-section-title{padding-right:30px}#customize-theme-controls .control-section{border:none}#customize-theme-controls .accordion-section-title{color:#555;background-color:#fff;border-bottom:1px solid #eee}#customize-theme-controls .accordion-section-title:after{content:"\f345"}#customize-theme-controls .accordion-section-content{color:#555;background:0 0;position:absolute;top:0;left:100%;width:100%;margin:0;padding:12px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#customize-controls .control-section .accordion-section-title:focus,#customize-controls .control-section .accordion-section-title:hover,#customize-controls .control-section.open .accordion-section-title,#customize-controls .control-section:hover>.accordion-section-title{color:#23282d;background:#f5f5f5}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{background:#f5f5f5}#customize-theme-controls .control-section .accordion-section-title:focus:after,#customize-theme-controls .control-section .accordion-section-title:hover:after,#customize-theme-controls .control-section.open .accordion-section-title:after,#customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#23282d}#customize-theme-controls .control-section.open{border-bottom:1px solid #eee}#customize-theme-controls .control-section.open .accordion-section-title{border-bottom-color:#eee!important}#customize-theme-controls .control-section:last-of-type.open,#customize-theme-controls .control-section:last-of-type>.accordion-section-title{border-bottom-color:#ddd}#customize-theme-controls>ul{margin:0}.customize-section-description-container{margin-bottom:15px}.customize-section-title{margin:-12px -12px 0;border-bottom:1px solid #ddd;background:#fff}div.customize-section-description{margin-top:22px}div.customize-section-description p:first-child{margin-top:0}div.customize-section-description p:last-child{margin-bottom:0}#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{border-bottom:1px solid #ddd;padding:12px}.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{padding:12px 12px 13px}.customize-section-title h3,h3.customize-section-title{padding:10px 10px 12px 14px;margin:0;line-height:21px;color:#555}#customize-theme-controls{position:relative;left:0;-webkit-transition:.18s left ease-in-out;transition:.18s left ease-in-out}.ios #customize-theme-controls{-webkit-transition:left 0s;transition:left 0s}.section-open #customize-info,.section-open #customize-theme-controls{left:-100%}.accordion-sub-container.control-panel-content{display:none;position:absolute;left:300px;top:0;width:300px;-webkit-transition:left ease-in-out .18s;transition:left ease-in-out .18s}.ios .accordion-sub-container.control-panel-content{-webkit-transition:left 0s;transition:left 0s}.accordion-sub-container.control-panel-content.animating{display:block}.current-panel .accordion-sub-container.control-panel-content{width:100%}.customize-controls-close{display:block;position:absolute;top:0;left:0;width:45px;height:45px;padding:0 2px 0 0;background:#eee;border:none;border-right:1px solid #ddd;color:#444;text-align:left;cursor:pointer;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.customize-panel-back,.customize-section-back{display:block;float:left;width:48px;height:69px;padding:0 24px 0 0;margin:0;background:#fff;border:none;border-right:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;cursor:pointer;-webkit-transition:left .18s ease-in-out,color .1s ease-in-out,background .1s ease-in-out;transition:left .18s ease-in-out,color .1s ease-in-out,background .1s ease-in-out}.customize-section-back{height:70px}.ios .customize-panel-back,.ios .customize-section-back{-webkit-transition:left 0s;transition:left 0s}.ios .customize-panel-back{display:none}.ios .expanded.in-sub-panel .customize-panel-back{display:block}.panel-meta.customize-info .accordion-section-title{margin-left:48px}#customize-controls .panel-meta.customize-info .accordion-section-title:hover{background:#fff;color:#555}.customize-controls-close:focus,.customize-controls-close:hover,.customize-controls-preview-toggle:focus,.customize-controls-preview-toggle:hover{background:#ddd;border-color:#ccc;color:#000;outline:0;-webkit-box-shadow:none;box-shadow:none}.customize-panel-back:focus,.customize-panel-back:hover,.customize-section-back:focus,.customize-section-back:hover{color:#23282d;background:#f5f5f5;outline:0;-webkit-box-shadow:none;box-shadow:none}.customize-controls-close:before{font:400 22px/45px dashicons;content:"\f335";position:relative;top:1px;left:13px}.customize-panel-back:before,.customize-section-back:before{font:400 20px/69px dashicons;content:"\f341";position:relative;left:13px}.wp-full-overlay-sidebar .wp-full-overlay-header{-webkit-transition:padding ease-in-out .18s;transition:padding ease-in-out .18s}.in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header{padding-left:62px}#customize-info,#customize-theme-controls>ul>.accordion-section{position:relative;left:0;-webkit-transition:left ease-in-out .18s;transition:left ease-in-out .18s}.ios #customize-info,.ios #customize-theme-controls>ul>.accordion-section{-webkit-transition:left 0s;transition:left 0s}.in-sub-panel #customize-info,.in-sub-panel #customize-theme-controls>ul>.accordion-section{left:-300px;width:300px}.in-sub-panel #customize-theme-controls .accordion-section.current-panel{width:100%}#customize-theme-controls .control-section.current-panel{padding:0}#customize-theme-controls .control-section>h3.accordion-section-title{position:relative;left:0}#customize-theme-controls .control-section.current-panel>h3.accordion-section-title{left:-354px;-webkit-transition:left ease-in-out .18s;transition:left ease-in-out .18s}.ios #customize-theme-controls .control-section.current-panel>h3.accordion-section-title{-webkit-transition:left 0s;transition:left 0s}.wp-full-overlay.section-open #customize-controls .wp-full-overlay-sidebar-content{visibility:hidden;overflow-y:hidden}.wp-full-overlay.section-open .wp-full-overlay-sidebar-content .accordion-section.open{visibility:visible}.wp-full-overlay.section-open .wp-full-overlay-sidebar-content .accordion-section.open .accordion-section-content{overflow-y:auto}p.customize-section-description{font-style:normal;margin-top:22px;margin-bottom:0}.customize-control{width:100%;float:left;clear:both;margin-bottom:12px}.customize-control input[type=radio],.customize-control input[type=checkbox],.customize-control select{line-height:28px}.customize-control input[type=tel],.customize-control input[type=url],.customize-control input[type=text],.customize-control input[type=password],.customize-control input[type=email],.customize-control input[type=number],.customize-control input[type=search]{width:98%;line-height:18px;margin:0}.customize-control-hidden{margin:0}.customize-control-checkbox input,.customize-control-radio input{margin-right:5px}.customize-control-textarea textarea{width:100%;resize:vertical}.customize-control select{min-width:50%;max-width:100%;height:28px;line-height:28px}.customize-control select[multiple]{height:auto}.customize-control-title{display:block;font-size:14px;line-height:24px;font-weight:600;margin-bottom:5px}.customize-control-description{display:block;font-style:italic;line-height:18px;margin-bottom:5px}.customize-control-checkbox label,.customize-control-color .color-picker,.customize-control-upload div{line-height:28px}.customize-control-radio{padding:5px 0 10px}.customize-control-radio .customize-control-title{margin-bottom:0;line-height:22px}.customize-control-radio .customize-control-title+.customize-control-description{margin-top:7px}.customize-control-radio label{line-height:32px}.customize-control .attachment-thumb.type-icon{float:left;margin:10px;width:auto}.customize-control .attachment-title{font-weight:700;margin:0;padding:5px 10px}.customize-control .attachment-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;padding:0 10px}.customize-control .attachment-meta-title{padding-top:7px}.customize-control .thumbnail-image{line-height:0}.customize-control .thumbnail-image img{cursor:pointer}#customize-controls .thumbnail-audio .thumbnail{max-width:64px;max-height:64px;margin:10px;float:left}#customize-preview iframe{width:100%;height:100%}.wp-full-overlay-sidebar{background:#eee;border-right:1px solid #ddd}.accordion-section .dropdown{float:left;display:block;position:relative;cursor:pointer}.accordion-section .dropdown-content{overflow:hidden;float:left;min-width:30px;height:16px;line-height:16px;margin-right:16px;padding:4px 5px;border:2px solid #eee;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.customize-control .dropdown-arrow{position:absolute;top:0;bottom:0;right:0;width:20px;background:#eee}.customize-control .dropdown-arrow:after{content:"\f140";font:400 20px/1 dashicons;speak:none;display:block;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#32373c}.customize-control .dropdown-status{color:#32373c;background:#eee;display:none;max-width:112px}.customize-control-color .color-picker-hex{display:none}.customize-control-color.open .color-picker-hex,.customize-control-header button img{display:block}.customize-control-color .dropdown{margin-right:5px;margin-bottom:5px}.customize-control-color .dropdown .dropdown-content{background-color:#555;border:1px solid rgba(0,0,0,.15)}.customize-control-color .dropdown:hover .dropdown-content{border-color:rgba(0,0,0,.25)}.ios #customize-preview,.ios .wp-full-overlay{position:relative}.ios #customize-controls .wp-full-overlay-sidebar-content{-webkit-overflow-scrolling:touch}.customize-control-background .current,.customize-control-cropped_image .current,.customize-control-header .current,.customize-control-image .current,.customize-control-media .current,.customize-control-site_icon .current,.customize-control-upload .current{margin-bottom:8px}.customize-control-header .uploaded{margin-bottom:18px}.customize-control-header .default button:not(.random),.customize-control-header .uploaded button:not(.random){width:100%;padding:0;margin:0;background:0 0;border:none;color:inherit;cursor:pointer}.customize-control-background .default-button,.customize-control-background .remove-button,.customize-control-background .upload-button,.customize-control-cropped_image .default-button,.customize-control-cropped_image .remove-button,.customize-control-cropped_image .upload-button,.customize-control-header button.new,.customize-control-header button.remove,.customize-control-image .default-button,.customize-control-image .remove-button,.customize-control-image .upload-button,.customize-control-media .default-button,.customize-control-media .remove-button,.customize-control-media .upload-button,.customize-control-site_icon .default-button,.customize-control-site_icon .remove-button,.customize-control-site_icon .upload-button,.customize-control-upload .default-button,.customize-control-upload .remove-button,.customize-control-upload .upload-button{white-space:normal;width:48%;height:auto}.customize-control-background .current .container,.customize-control-cropped_image .current .container,.customize-control-header .current .container,.customize-control-image .current .container,.customize-control-media .current .container,.customize-control-site_icon .current .container,.customize-control-upload .current .container{overflow:hidden;border:1px solid #eee;-webkit-border-radius:2px;border-radius:2px}.customize-control-background .current .container,.customize-control-cropped_image .current .container,.customize-control-image .current .container,.customize-control-media .current .container,.customize-control-site_icon .current .container,.customize-control-upload .current .container{min-height:40px}.customize-control-background .placeholder,.customize-control-cropped_image .placeholder,.customize-control-header .placeholder,.customize-control-image .placeholder,.customize-control-media .placeholder,.customize-control-site_icon .placeholder,.customize-control-upload .placeholder{width:100%;position:relative;text-align:center;cursor:default}.customize-control-background .inner,.customize-control-cropped_image .inner,.customize-control-header .inner,.customize-control-image .inner,.customize-control-media .inner,.customize-control-site_icon .inner,.customize-control-upload .inner{display:none;position:absolute;width:100%;color:#555;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.customize-control-background .inner,.customize-control-cropped_image .inner,.customize-control-image .inner,.customize-control-media .inner,.customize-control-site_icon .inner,.customize-control-upload .inner{display:block;min-height:40px}.customize-control-background .inner,.customize-control-cropped_image .inner,.customize-control-header .inner,.customize-control-header .inner .dashicons,.customize-control-image .inner,.customize-control-media .inner,.customize-control-site_icon .inner,.customize-control-upload .inner{line-height:20px;top:10px}.customize-control-header .list .inner,.customize-control-header .list .inner .dashicons{top:9px}.customize-control-header .header-view{position:relative;width:100%;margin-bottom:5px}.customize-control-header .header-view:last-child{margin-bottom:0}.customize-control-header .header-view:after{border:0}.customize-control-header .header-view.selected:after{content:'';position:absolute;height:auto;top:0;left:0;bottom:0;right:0;border:4px solid #00a0d2;-webkit-border-radius:2px;border-radius:2px}.customize-control-header .header-view.button.selected{border:0}.customize-control-header .uploaded .header-view .close{font-size:20px;color:#fff;background:#555;background:rgba(0,0,0,.5);position:absolute;top:10px;right:-999px;z-index:1;width:26px;height:26px;cursor:pointer}.customize-control-header .header-view .close:focus,.customize-control-header .header-view:hover .close{right:10px}.customize-control-header .random.placeholder{cursor:pointer;-webkit-border-radius:2px;border-radius:2px;height:40px}.customize-control-header button.random{width:100%;height:auto;min-height:40px;white-space:normal}.customize-control-header button.random .dice{margin-top:4px}.customize-control-header .header-view:hover>button.random .dice,.customize-control-header .placeholder:hover .dice{-webkit-animation:dice-color-change 3s infinite;animation:dice-color-change 3s infinite}@-webkit-keyframes dice-color-change{0%,100%{color:#d4b146}50%{color:#ef54b0}75%{color:#7190d3}}@keyframes dice-color-change{0%,100%{color:#d4b146}50%{color:#ef54b0}75%{color:#7190d3}}.customize-control-background .actions,.customize-control-cropped_image .actions,.customize-control-header .actions,.customize-control-image .actions,.customize-control-media .actions,.customize-control-site_icon .actions,.customize-control-upload .actions{margin-bottom:32px}.customize-control-header .choice{position:relative;display:block;margin-bottom:9px}.customize-control-header .uploaded div:last-child>.choice{margin-bottom:0}.customize-control-background img,.customize-control-cropped_image img,.customize-control-header img,.customize-control-image img,.customize-control-media img,.customize-control-site_icon img,.customize-control-upload img{width:100%;-webkit-border-radius:2px;border-radius:2px}.customize-control-background .default-button,.customize-control-background .remove-button,.customize-control-cropped_image .default-button,.customize-control-cropped_image .remove-button,.customize-control-header .remove,.customize-control-image .default-button,.customize-control-image .remove-button,.customize-control-media .default-button,.customize-control-media .remove-button,.customize-control-site_icon .default-button,.customize-control-site_icon .remove-button,.customize-control-upload .default-button,.customize-control-upload .remove-button{float:left;margin-right:3px}.customize-control-background .upload-button,.customize-control-cropped_image .upload-button,.customize-control-header .new,.customize-control-image .upload-button,.customize-control-media .upload-button,.customize-control-site_icon .upload-button,.customize-control-upload .upload-button{float:right}@-webkit-keyframes customize-reload{0%{opacity:0}100%{opacity:1}}@keyframes customize-reload{0%{opacity:0}100%{opacity:1}}.wp-customizer .customize-loading #customize-container{display:block;-webkit-animation:customize-reload .75s;animation:customize-reload .75s}.control-section-themes .accordion-section-title{cursor:default;margin:15px 0;padding-right:100px}#customize-theme-controls .control-section-themes .accordion-section-title:focus,#customize-theme-controls .control-section-themes .accordion-section-title:hover{color:#555;background-color:#fff}.customize-themes-panel .accordion-section-title{margin:15px -8px}#customize-controls .customize-section-title span.customize-action,.control-section-themes .accordion-section-title span.customize-action{font-size:13px;display:block;font-weight:400}.control-section-themes .accordion-section-title .change-theme,.control-section-themes .accordion-section-title .customize-theme{position:absolute;right:10px;top:50%;margin-top:-14px;font-weight:400}.control-section-themes .accordion-section-title:before{display:none}.customize-themes-panel{display:none;padding:0 8px;background:#f1f1f1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.customize-themes-panel .accordion-section-title:first-child{margin-top:0}#customize-controls .customize-themes-panel .accordion-section-title:nth-child(2){font-size:14px;font-weight:600}.customize-themes-panel>h2{padding:15px 8px 0}.control-section.open .customize-themes-panel{display:block}#customize-theme-controls .customize-themes-panel .accordion-section-content{background:0 0;display:block}#accordion-section-themes .accordion-section-title:after,.customize-controls-preview-toggle,.wp-customizer .theme-overlay{display:none}.customize-control.customize-control-theme{margin-bottom:8px}#customize-theme-controls .themes.accordion-section-content{position:relative;left:0;padding:0;width:100%}.wp-customizer .theme-browser .themes{padding-bottom:8px}.wp-customizer .theme-browser .theme{margin:0;width:100%}.wp-customizer .theme-browser .theme .theme-actions{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}#customize-controls h3.theme-name{font-size:15px}#customize-controls .theme-overlay .theme-name{font-size:32px}.wp-customizer #themes-filter{font-size:16px;font-weight:300;line-height:1.5;width:100%}#customize-theme-controls .control-section-themes.current-panel>h3.accordion-section-title{left:0}.customize-themes-panel.control-panel-content{position:absolute;left:-100%;top:0;width:100%;border-top:1px solid #ddd}.in-themes-panel #customize-info,.in-themes-panel #customize-theme-controls>ul>.accordion-section{left:100%}.wp-customizer.modal-open .theme-overlay{position:fixed;left:0;top:0;right:0;bottom:0;z-index:109}.wp-customizer .theme-overlay .theme-backdrop{background:rgba(238,238,238,.75);position:fixed;z-index:110}.wp-customizer .theme-overlay .theme-wrap{left:90px;right:90px;top:45px;bottom:45px;z-index:120;max-width:1740px}.wp-customizer .theme-overlay .theme-actions{text-align:right}.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.ie8 .wp-customizer .theme-overlay .theme-about,.ie8 .wp-customizer .theme-overlay .theme-actions,.ie8 .wp-customizer .theme-overlay .theme-header{position:static}@media (max-width:850px),(max-height:472px){.wp-customizer .theme-overlay .theme-wrap{left:0;right:0;top:0;bottom:0}}body.cheatin{font-size:medium;height:auto;background:#fff;margin:50px auto 2em;padding:1em 2em;max-width:700px;min-width:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.13);box-shadow:0 1px 3px rgba(0,0,0,.13)}body.cheatin p{font-size:14px;line-height:1.5;margin:25px 0 20px}@media only screen and (max-width:780px){.wp-customizer .theme:not(.active):focus .theme-actions,.wp-customizer .theme:not(.active):hover .theme-actions{display:block}.wp-customizer .theme-browser .theme.active .theme-name span{display:inline}}@media screen and (max-width:640px){#customize-controls{width:100%}.wp-full-overlay.expanded{margin-left:0}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:0}.customize-controls-preview-toggle{display:block;position:absolute;top:0;left:48px;line-height:45px;font-size:14px;padding:0 12px;margin:0;height:45px;background:#eee;border-right:1px solid #ddd;color:#444;cursor:pointer;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}#customize-footer-actions,#customize-preview,.customize-controls-preview-toggle .controls,.preview-only .customize-controls-preview-toggle .preview,.preview-only .wp-full-overlay-sidebar-content{display:none}.customize-controls-preview-toggle .controls:before,.customize-controls-preview-toggle .preview:before{font:400 20px/1 dashicons;content:"\f177";position:relative;top:4px;margin-right:6px}.customize-controls-preview-toggle .controls:before{content:"\f540"}.preview-only #customize-controls{height:45px}.preview-only #customize-preview,.preview-only .customize-controls-preview-toggle .controls{display:block}#customize-preview{top:45px;bottom:0;height:auto}.wp-core-ui.wp-customizer .button{padding:6px 14px;line-height:normal;font-size:14px;vertical-align:middle;height:auto;margin-bottom:4px}#customize-header-actions .button-primary{margin-top:6px}} \ No newline at end of file diff --git a/wp-admin/css/customize-nav-menus-rtl.css b/wp-admin/css/customize-nav-menus-rtl.css deleted file mode 100644 index 726a1611a8..0000000000 --- a/wp-admin/css/customize-nav-menus-rtl.css +++ /dev/null @@ -1,1091 +0,0 @@ -#accordion-section-menu_locations { - position: relative; - margin-bottom: 15px; -} - -.menu-in-location, -.menu-in-locations { - display: block; - font-weight: 600; - font-size: 10px; -} - -#customize-controls .theme-location-set, -#customize-controls .control-section .accordion-section-title:focus .menu-in-location, -#customize-controls .control-section .accordion-section-title:hover .menu-in-location, -#customize-controls .control-section .accordion-section-title:focus .menu-in-locations, -#customize-controls .control-section .accordion-section-title:hover .menu-in-locations { - color: #555; -} - -.wp-customizer .menu-item-bar .menu-item-handle, -.wp-customizer .menu-item-settings, -.wp-customizer .menu-item-settings .description-thin { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.wp-customizer .menu-item-bar { - margin: 0; -} - -.wp-customizer .menu-item-bar .menu-item-handle { - width: 100%; - background: #fff; -} - -.wp-customizer .menu-item-handle .item-title { - margin-left: 0; -} - -.wp-customizer .menu-item-handle .item-type { - padding: 1px 5px 0 21px; - float: left; - text-align: left; -} - -.wp-customizer .menu-item-settings { - max-width: 100%; - overflow: hidden; - padding: 10px; - background: #eee; - border: 1px solid #999; - border-top: none; -} - -.wp-customizer .menu-item-settings .description-thin { - width: 100%; - height: auto; - margin: 0 0 8px 0; -} - -.wp-customizer .menu-item-settings input[type="text"] { - width: 100%; -} - -.wp-customizer .menu-item-settings .submitbox { - margin: 0; - padding: 0; -} - -.wp-customizer .menu-item-settings .link-to-original { - padding: 5px 0; - border: none; - font-style: normal; - margin: 0; - width: 100%; -} - -.wp-customizer .menu-item .submitbox .submitdelete { - display: block; - float: right; - margin: 6px 0 0; - padding: 0; - cursor: pointer; -} - -.wp-customizer .menu-item .submitbox .submitdelete:focus { - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -/* Menu-item reordering nav. */ -.customize-control-nav_menu .reordering .reorder, -.customize-control-nav_menu .reorder-done { - display: none; -} - -.customize-control-nav_menu .reorder, -.customize-control-nav_menu .reordering .reorder-done { - display: inline-block; - padding: 5px 8px; -} - -.menu-item-reorder-nav { - display: none; - background-color: #fff; - position: absolute; - top: 0; - left: 0; -} - -.customize-control-nav_menu .reordering .add-new-menu-item { - opacity: 0.2; - pointer-events: none; - cursor: not-allowed; -} - -.menu-item-reorder-nav button { - position: relative; - overflow: hidden; - float: right; - display: block; - width: 30px; - height: 40px; - color: #82878c; - text-indent: -9999px; - cursor: pointer; - background: transparent; - border: none; - -webkit-box-shadow: none; - box-shadow: none; - outline: none; -} - -.menu-item-reorder-nav button:before { - display: inline-block; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - font: normal 20px/40px dashicons; - text-align: center; - text-indent: 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.menu-item-reorder-nav button:hover, -.menu-item-reorder-nav button:focus { - color: #191e23; - background: #eee; -} - -.menus-move-down:before { - content: '\f347'; -} - -.menus-move-up:before { - content: '\f343'; -} - -.menus-move-left:before { - content: '\f341'; -} - -.menus-move-right:before { - content: '\f345'; -} - -.move-up-disabled .menus-move-up, -.move-down-disabled .menus-move-down, -.move-right-disabled .menus-move-right, -.move-left-disabled .menus-move-left { - color: #d5d5d5 !important; - background-color: #fff !important; - cursor: default; - pointer-events: none; -} - -.menu-item-reorder-nav:before { - content: ""; - display: block; - position: absolute; - right: -10px; - width: 10px; - height: 40px; - background: -webkit-linear-gradient(right, rgba(250,250,250,0) 0%,rgba(250,250,250,1) 100%); - background: -webkit-gradient(linear, right top, left top, from(rgba(250,250,250,0)), to(rgba(250,250,250,1))); - background: -webkit-linear-gradient(right, rgba(250,250,250,0) 0%, rgba(250,250,250,1) 100%); - background: linear-gradient(to left, rgba(250,250,250,0) 0%,rgba(250,250,250,1) 100%); -} - -.reordering .menu-item .item-controls, -.reordering .menu-item .item-type { - display: none; -} - -.reordering .menu-item-reorder-nav { - display: block; -} - -.customize-control input.menu-name-field { - width: 100%; /* Override the 98% default for customizer inputs, to align with the size of menu items. */ - margin: 12px 0; -} - -.wp-customizer .menu-item .item-edit { - position: absolute; - left: -19px; - top: 2px; - display: block; - width: 30px; - height: 38px; - margin-left: 0 !important; - outline: none; - overflow: hidden; - cursor: pointer; -} - -.customize-control-nav_menu_item .item-edit:focus { - color: #0073aa; - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -/* rework the arrow indicator implementation for NVDA bug same as #32715 */ -.wp-customizer .menu-item .item-edit .toggle-indicator { - display: inline-block; - font-size: 20px; - line-height: 1; -} - -.wp-customizer .menu-item .item-edit .toggle-indicator:after { - content: '\f140'; - font: normal 20px/1 dashicons; - color: #a0a5aa; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; -} - -.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after { - content: '\f142'; -} - -.wp-customizer .menu-item-settings p.description { - font-style: normal; -} - -.wp-customizer .menu-settings dl { - margin: 12px 0 0 0; - padding: 0; -} - -.wp-customizer .menu-settings .checkbox-input { - margin-top: 8px; -} - -.wp-customizer .menu-settings .menu-theme-locations { - border-top: 1px solid #ccc; -} - -.wp-customizer .menu-settings { - margin-top: 36px; - border-top: none; -} - -.menu-settings .customize-control-checkbox label { - line-height: 1; -} - -/* @todo update selector or potentially remove */ -.menu-settings .customize-control.customize-control-checkbox { - margin-bottom: 8px; /* Override collapsing at smaller viewports. */ -} - -.customize-control-menu { - margin-top: 4px; -} - -#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle { - color: #555; -} - -/* Screen Options */ -.customize-screen-options-toggle { - background: none; - border: none; - color: #555; - cursor: pointer; - margin: 0; - padding: 20px; - position: absolute; - left: 0; - top: 30px; -} - -#customize-controls .customize-info .customize-help-toggle { - padding: 20px; -} - -#customize-controls .customize-info .customize-help-toggle:before { - padding: 4px; -} - -.customize-screen-options-toggle:hover, -.customize-screen-options-toggle:active, -.customize-screen-options-toggle:focus, -.active-menu-screen-options .customize-screen-options-toggle, -#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, -#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, -#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { - color: #0073aa; -} - -.customize-screen-options-toggle:focus, -#customize-controls .customize-info .customize-help-toggle:focus { - outline: none; -} - -.customize-screen-options-toggle:before { - -moz-osx-font-smoothing: grayscale; - border: none; - content: "\f111"; - display: block; - font: 18px/1 "dashicons"; - padding: 5px; - text-align: center; - text-decoration: none !important; - text-indent: 0; - right: 6px; - position: absolute; - top: 6px; -} - -.customize-screen-options-toggle:focus:before, -#customize-controls .customize-info .customize-help-toggle:focus:before { - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - -webkit-border-radius: 100%; - border-radius: 100%; -} - -.wp-customizer #screen-options-wrap { - display: none; - background: #fff; - border-top: 1px solid #ddd; - padding: 4px 15px 0; -} - -.wp-customizer .metabox-prefs label { - display: block; - padding-left: 0; - line-height: 30px; -} - -#accordion-panel-nav_menus .field-link-target, -#accordion-panel-nav_menus .field-attr-title, -#accordion-panel-nav_menus .field-css-classes, -#accordion-panel-nav_menus .field-xfn, -#accordion-panel-nav_menus .field-description { - display: none; -} - -#accordion-panel-nav_menus.field-link-target-active .field-link-target, -#accordion-panel-nav_menus.field-attr-title-active .field-attr-title, -#accordion-panel-nav_menus.field-css-classes-active .field-css-classes, -#accordion-panel-nav_menus.field-xfn-active .field-xfn, -#accordion-panel-nav_menus.field-description-active .field-description { - display: block; -} - -/* WARNING: The 20px factor is hard-coded in JS. */ -.menu-item-depth-0 { margin-right: 0; } -.menu-item-depth-1 { margin-right: 20px; } -.menu-item-depth-2 { margin-right: 40px; } -.menu-item-depth-3 { margin-right: 60px; } -.menu-item-depth-4 { margin-right: 80px; } -.menu-item-depth-5 { margin-right: 100px; } -.menu-item-depth-6 { margin-right: 120px; } -.menu-item-depth-7 { margin-right: 140px; } -.menu-item-depth-8 { margin-right: 160px; } /* Not likely to be used or useful beyond this depth */ -.menu-item-depth-9 { margin-right: 180px; } -.menu-item-depth-10 { margin-right: 200px; } -.menu-item-depth-11 { margin-right: 220px; } - -/* @todo handle .menu-item-settings width */ -.menu-item-depth-0 > .menu-item-bar { margin-left: 0; } -.menu-item-depth-1 > .menu-item-bar { margin-left: 20px; } -.menu-item-depth-2 > .menu-item-bar { margin-left: 40px; } -.menu-item-depth-3 > .menu-item-bar { margin-left: 60px; } -.menu-item-depth-4 > .menu-item-bar { margin-left: 80px; } -.menu-item-depth-5 > .menu-item-bar { margin-left: 100px; } -.menu-item-depth-6 > .menu-item-bar { margin-left: 120px; } -.menu-item-depth-7 > .menu-item-bar { margin-left: 140px; } -.menu-item-depth-8 > .menu-item-bar { margin-left: 160px; } -.menu-item-depth-9 > .menu-item-bar { margin-left: 180px; } -.menu-item-depth-10 > .menu-item-bar { margin-left: 200px; } -.menu-item-depth-11 > .menu-item-bar { margin-left: 220px; } - -/* Submenu left margin. */ -.menu-item-depth-0 .menu-item-transport { margin-right: 0; } -.menu-item-depth-1 .menu-item-transport { margin-right: -20px; } -.menu-item-depth-3 .menu-item-transport { margin-right: -60px; } -.menu-item-depth-4 .menu-item-transport { margin-right: -80px; } -.menu-item-depth-2 .menu-item-transport { margin-right: -40px; } -.menu-item-depth-5 .menu-item-transport { margin-right: -100px; } -.menu-item-depth-6 .menu-item-transport { margin-right: -120px; } -.menu-item-depth-7 .menu-item-transport { margin-right: -140px; } -.menu-item-depth-8 .menu-item-transport { margin-right: -160px; } -.menu-item-depth-9 .menu-item-transport { margin-right: -180px; } -.menu-item-depth-10 .menu-item-transport { margin-right: -200px; } -.menu-item-depth-11 .menu-item-transport { margin-right: -220px; } - -/* WARNING: The 20px factor is hard-coded in JS. */ -.reordering .menu-item-depth-0 { margin-right: 0; } -.reordering .menu-item-depth-1 { margin-right: 15px; } -.reordering .menu-item-depth-2 { margin-right: 30px; } -.reordering .menu-item-depth-3 { margin-right: 45px; } -.reordering .menu-item-depth-4 { margin-right: 60px; } -.reordering .menu-item-depth-5 { margin-right: 75px; } -.reordering .menu-item-depth-6 { margin-right: 90px; } -.reordering .menu-item-depth-7 { margin-right: 105px; } -.reordering .menu-item-depth-8 { margin-right: 120px; } /* Not likely to be used or useful beyond this depth */ -.reordering .menu-item-depth-9 { margin-right: 135px; } -.reordering .menu-item-depth-10 { margin-right: 150px; } -.reordering .menu-item-depth-11 { margin-right: 165px; } - -.reordering .menu-item-depth-0 > .menu-item-bar { margin-left: 0; } -.reordering .menu-item-depth-1 > .menu-item-bar { margin-left: 15px; } -.reordering .menu-item-depth-2 > .menu-item-bar { margin-left: 30px; } -.reordering .menu-item-depth-3 > .menu-item-bar { margin-left: 45px; } -.reordering .menu-item-depth-4 > .menu-item-bar { margin-left: 60px; } -.reordering .menu-item-depth-5 > .menu-item-bar { margin-left: 75px; } -.reordering .menu-item-depth-6 > .menu-item-bar { margin-left: 90px; } -.reordering .menu-item-depth-7 > .menu-item-bar { margin-left: 105px; } -.reordering .menu-item-depth-8 > .menu-item-bar { margin-left: 120px; } -.reordering .menu-item-depth-9 > .menu-item-bar { margin-left: 135px; } -.reordering .menu-item-depth-10 > .menu-item-bar { margin-left: 150px; } -.reordering .menu-item-depth-11 > .menu-item-bar { margin-left: 165px; } - -.control-section-nav_menu .menu .menu-item-edit-active { - margin-right: 0; -} - -.control-section-nav_menu .menu .menu-item-edit-active .menu-item-bar { - margin-left: 0; -} - -.control-section-nav_menu .menu .sortable-placeholder { - margin-top: 0; - margin-bottom: 1px; - max-width: -webkit-calc(100% - 2px); - max-width: calc(100% - 2px); - float: right; - display: list-item; - border-color: #a0a5aa; -} - -.menu-item-transport li.customize-control { - float: none; -} - -.control-section-nav_menu .menu ul.menu-item-transport .menu-item-bar { - margin-top: 0; -} - -/* - * Add-menu-items mode. - */ -.wp-full-overlay-main { - left: auto; /* This overrides a right: 0; which causes the preview to resize rather than slide off screen at the normal size. */ - width: 100%; -} - -.adding-menu-items .control-section { - opacity: .4; -} - -.adding-menu-items .control-panel.control-section, -.adding-menu-items .control-section.open { - opacity: 1; -} - -/* Add-new button. */ -#customize-theme-controls .add-new-menu-item { - cursor: pointer; - float: left; - margin-right: 10px; - -webkit-transition: all 0.2s; - transition: all 0.2s; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - outline: none; -} - -.add-new-menu-item:before { - content: "\f132"; - display: inline-block; - position: relative; - right: -2px; - top: -1px; - font: normal 20px/1 'dashicons'; - vertical-align: middle; - -webkit-transition: all 0.2s; - transition: all 0.2s; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.adding-menu-items .add-new-menu-item, -.adding-menu-items .add-new-menu-item:hover, -.add-menu-toggle.open, -.add-menu-toggle.open:hover { - background: #eee; - border-color: #929793; - color: #32373c; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); -} - -.adding-menu-items .add-new-menu-item:before, -#accordion-section-add_menu .add-new-menu-item.open:before { - -webkit-transform: rotate(-45deg); - -ms-transform: rotate(-45deg); - transform: rotate(-45deg); -} - -.menu-item-bar .item-delete { - color: #a00; - position: absolute; - top: 2px; - left: -19px; - width: 30px; - height: 38px; - cursor: pointer; - display: none; -} - -.menu-item-bar .item-delete:before { - content: "\f335"; - font: normal 20px/1 dashicons; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - position: absolute; - top: 9px; - right: 5px; -} - -.ie8 .menu-item-bar .item-delete:before { - top: -10px; -} - -.menu-item-bar .item-delete:hover, -.menu-item-bar .item-delete:focus { - color: #f00; -} - -.menu-item-bar .item-delete:focus { - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.adding-menu-items .menu-item-bar .item-edit { - display: none; -} - -.adding-menu-items .menu-item-bar .item-delete { - display: block; -} - -#available-menu-items .item { - position: static; -} - -#available-menu-items { - position: absolute; - top: 0; - bottom: 0; - right: -301px; - visibility: hidden; - overflow-x: hidden; - overflow-y: auto; - width: 300px; - margin: 0; - z-index: 4; - background: #eee; - -webkit-transition: right .18s; - transition: right .18s; - border-left: 1px solid #ddd; -} - -#available-menu-items.opening { - overflow-y: hidden; /* avoid scrollbar jitter with animating heights */ -} - -#available-menu-items #available-menu-items-search.open { - height: 100%; - border-bottom: none; -} - -#available-menu-items .accordion-section-title { - border-right: none; - border-left: none; - background: #fff; -} - -#available-menu-items .open .accordion-section-title, -#available-menu-items #available-menu-items-search .accordion-section-title { - background: #eee; -} - -/* rework the arrow indicator implementation for NVDA bug see #32715 */ -#available-menu-items .accordion-section-title:after { - content: none !important; -} - -#available-menu-items .accordion-section-title .toggle-indicator { - display: inline-block; - font-size: 20px; - line-height: 1; -} - -#available-menu-items .accordion-section-title .toggle-indicator:after { - content: '\f140'; - font: normal 20px/1 'dashicons'; - color: #a0a5aa; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; -} - -#available-menu-items .accordion-section-title:hover .toggle-indicator:after { - color: #777; -} - -#available-menu-items .open .accordion-section-title .toggle-indicator:after { - content: '\f142'; -} - -#available-menu-items .accordion-section-content { - overflow-y: auto; - max-height: 200px; /* This gets set in JS to fit the screen size, and based on # of sections. */ - background: transparent; -} - -button.not-a-button { - background: transparent; - border: none; - -webkit-box-shadow: none; - box-shadow: none; - -webkit-border-radius: 0; - border-radius: 0; - outline: 0; - padding: 0; - margin: 0; -} - -#available-menu-items .accordion-section-title button { - display: block; - width: 28px; - height: 35px; - position: absolute; - top: 5px; - left: 5px; - cursor: pointer; -} - -#available-menu-items .accordion-section-title button:focus { - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -#available-menu-items .accordion-section-title .no-items, -#available-menu-items .cannot-expand .accordion-section-title .spinner, -#available-menu-items .cannot-expand .accordion-section-title > button { - display: none; -} - -#available-menu-items-search.cannot-expand .accordion-section-title .spinner { - display: block; -} - -#available-menu-items .cannot-expand .accordion-section-title .no-items { - display: block; - color: #777; - font-weight: normal; - float: left; - margin-right: 5px; -} - -#available-menu-items .accordion-section-content { - padding: 1px 15px 15px 15px; - margin: 0; - min-height: 120px; - max-height: 290px; -} - -#available-menu-items #available-menu-items-search .accordion-section-content { - position: absolute; - right: 1px; - top: 60px; /* below title div / search input */ - bottom: 0px; /* 100% height that still triggers lazy load */ - max-height: none; - width: 100%; - padding: 1px 15px 15px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -#available-menu-items .menu-item-tpl { - margin: 0; -} - -#custom-menu-item-name.invalid, -#custom-menu-item-url.invalid, -.menu-name-field.invalid, -.menu-name-field.invalid:focus { - border: 1px solid #f00; -} - -#available-menu-items .item-tpl { - position: relative; - padding: 20px 60px 20px 15px; - border-bottom: 1px solid #e4e4e4; - cursor: pointer; - display: none; -} - -#available-menu-items .item-tpl:hover, -#available-menu-items .item-tpl.selected { - background: #eee; -} - -#available-menu-items .menu-item-handle .item-type { - padding-left: 0; -} - -#available-menu-items .menu-item-handle .item-title { - padding-right: 20px; -} - -#available-menu-items .menu-item-handle { - cursor: pointer; -} - -#available-menu-items .item-top, -#available-menu-items .item-top:hover { - border: none; - background: transparent; - -webkit-box-shadow: none; - box-shadow: none; -} - -#available-menu-items .menu-item-handle { - -webkit-box-shadow: none; - box-shadow: none; - margin-top: -1px; -} - -#available-menu-items .menu-item-handle:hover { - z-index: 1; -} - -#available-menu-items .item-title h4 { - padding: 0 0 5px; - font-size: 14px; -} - -#available-menu-items .item-add { - position: absolute; - top: 1px; - right: 1px; - color: #82878c; - width: 30px; - height: 38px; - cursor: pointer; -} - -#available-menu-items .menu-item-handle .item-add:focus { - color: #23282d; - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -#available-menu-items .item-add:before { - content: "\f543"; - font: normal 20px/1 dashicons; - position: relative; - right: 2px; - top: 3px; -} - -#available-menu-items .menu-item-handle.item-added .item-type, -#available-menu-items .menu-item-handle.item-added .item-title, -#available-menu-items .menu-item-handle.item-added:hover .item-add, -#available-menu-items .menu-item-handle.item-added .item-add:focus { - color: #82878c; -} - -#available-menu-items .menu-item-handle.item-added .item-add:before { - content: "\f147"; -} - -#available-menu-items .accordion-section-title.loading .spinner, -#available-menu-items-search.loading .accordion-section-title .spinner { - visibility: visible; - margin: 0 20px; -} - -#available-menu-items-search .clear-results { - position: absolute; - top: 20px; - left: 20px; - width: 20px; - height: 20px; - cursor: pointer; - color: #a00; - text-decoration: none; -} - -#available-menu-items-search .clear-results, -#available-menu-items-search.loading .clear-results.is-visible { - display: none; -} - -#available-menu-items-search .clear-results.is-visible { - display: block; -} - -#available-menu-items-search .clear-results:before { - content: "\f335"; - font: normal 20px/1 dashicons; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -#available-menu-items-search .clear-results:hover, -#available-menu-items-search .clear-results:focus { - color: #f00; -} - -#available-menu-items-search .clear-results:focus { - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -#available-menu-items-search .spinner { - position: absolute; - top: 20px; - margin: 0 !important; - left: 20px; -} - -#available-menu-items-search input { - padding: 6px 10px; - width: 100%; -} - -#available-menu-items-search .accordion-section-title { - padding: 12px 15px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -#available-menu-items-search .accordion-section-title:after { - display: none; -} - -#available-menu-items-search .accordion-section-content:empty { - min-height: 0; - padding: 0; -} - -#available-menu-items-search.loading .accordion-section-content div { - opacity: .5; -} - -#available-menu-items-search.loading.loading-more .accordion-section-content div { - opacity: 1; -} - -#customize-preview { - -webkit-transition: all 0.2s; - transition: all 0.2s; -} - -body.adding-menu-items #available-menu-items { - right: 0; - visibility: visible; -} - -body.adding-menu-items .wp-full-overlay-main { - right: 300px; -} - -body.adding-menu-items #customize-preview { - opacity: 0.4; -} - -.menu-item-handle .spinner { - display: none; - float: right; - margin: 0 0 0 8px; -} - -.nav-menu-inserted-item-loading .spinner { - display: block; -} - -.nav-menu-inserted-item-loading .menu-item-handle .item-type { - padding: 0 8px 0 0; -} - -.nav-menu-inserted-item-loading .menu-item-handle, -.added-menu-item .menu-item-handle.loading { - padding: 10px 8px 10px 15px; - cursor: default; - opacity: .5; - background: #fff; - color: #727773; -} - -.added-menu-item .menu-item-handle { - -webkit-transition-property: opacity, background, color; - transition-property: opacity, background, color; - -webkit-transition-duration: 1.25s; - transition-duration: 1.25s; - -webkit-transition-timing-function: cubic-bezier( .25, -2.5, .75, 8 ); - transition-timing-function: cubic-bezier( .25, -2.5, .75, 8 ); /* Replacement for .hide().fadeIn('slow') in JS to add emphasis when it's loaded. */ -} - -/* Add/delete Menus */ - -/* @todo update selector */ -#accordion-section-add_menu { - margin: 15px 12px; -} - -.new-menu-section-content { - display: none; - padding: 15px 0 0 0; - clear: both; -} - -/* @todo update selector */ -#accordion-section-add_menu .accordion-section-title { - padding-right: 45px; -} - -/* @todo update selector */ -#accordion-section-add_menu .accordion-section-title:before { - font: normal 20px/1 dashicons; - position: absolute; - top: 12px; - right: 14px; - content: "\f132"; -} - -#create-new-menu-submit { - float: left; - margin: 0 0 12px 0; -} - -.menu-delete-item { - display: block; - float: right; - padding: 1em 0; - width: 100%; -} - -li.assigned-to-menu-location .menu-delete-item { - display: none; -} - -li.assigned-to-menu-location .add-new-menu-item { - margin-bottom: 1em; -} - -.menu-delete { - color: #a00; - cursor: pointer; - text-decoration: underline; -} - -.menu-delete:hover, -.menu-delete:focus { - color: #f00; - text-decoration: none; -} - -.menu-delete:focus { - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.menu-item-handle { - margin-top: -1px; -} -.ui-sortable-disabled .menu-item-handle { - cursor: default; -} - -.menu-item-handle:hover { - position: relative; - z-index: 10; - color: #0073aa; -} - -.menu-item-handle:hover .item-type, -.menu-item-handle:hover .item-edit, -#available-menu-items .menu-item-handle:hover .item-add { - color: #0073aa; -} - -.menu-item-edit-active .menu-item-handle { - border-color: #999; - border-bottom: none; -} - -.customize-control-nav_menu_item { - margin-bottom: 0; -} - -.customize-control-nav_menu { - margin-top: 12px; -} - -#available-menu-items .customize-section-title { - display: none; -} - -@media screen and ( max-width: 782px ) { - #available-menu-items #available-menu-items-search .accordion-section-content { - top: 63px; - } -} - -@media screen and ( max-width: 640px ) { - body.adding-menu-items div#available-menu-items { - top: 46px; - right: 0; - z-index: 10; - width: 100%; - } - - #available-menu-items #available-menu-items-search .accordion-section-content { - top: 133px; - } - - #available-menu-items .customize-section-title { - display: block; - margin: 0; - } - - #available-menu-items .customize-section-back { - height: 69px; - } - - #available-menu-items .customize-section-title h3 { - font-size: 20px; - font-weight: 200; - padding: 9px 14px 12px 10px; - margin: 0; - line-height: 24px; - color: #555; - display: block; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - - #available-menu-items .customize-section-title .customize-action { - font-size: 13px; - display: block; - font-weight: 400; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } -} diff --git a/wp-admin/css/customize-nav-menus-rtl.min.css b/wp-admin/css/customize-nav-menus-rtl.min.css deleted file mode 100644 index 76bbb43b0d..0000000000 --- a/wp-admin/css/customize-nav-menus-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -#accordion-section-menu_locations{position:relative;margin-bottom:15px}.menu-in-location,.menu-in-locations{display:block;font-weight:600;font-size:10px}#customize-controls .control-section .accordion-section-title:focus .menu-in-location,#customize-controls .control-section .accordion-section-title:focus .menu-in-locations,#customize-controls .control-section .accordion-section-title:hover .menu-in-location,#customize-controls .control-section .accordion-section-title:hover .menu-in-locations,#customize-controls .theme-location-set{color:#555}.wp-customizer .menu-item-bar .menu-item-handle,.wp-customizer .menu-item-settings,.wp-customizer .menu-item-settings .description-thin{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-customizer .menu-item-bar{margin:0}.wp-customizer .menu-item-bar .menu-item-handle{width:100%;background:#fff}.wp-customizer .menu-item-handle .item-title{margin-left:0}.wp-customizer .menu-item-handle .item-type{padding:1px 5px 0 21px;float:left;text-align:left}.wp-customizer .menu-item-settings{max-width:100%;overflow:hidden;padding:10px;background:#eee;border:1px solid #999;border-top:none}.wp-customizer .menu-item-settings .description-thin{width:100%;height:auto;margin:0 0 8px}.wp-customizer .menu-item-settings input[type=text]{width:100%}.wp-customizer .menu-item-settings .submitbox{margin:0;padding:0}.wp-customizer .menu-item-settings .link-to-original{padding:5px 0;border:none;font-style:normal;margin:0;width:100%}.wp-customizer .menu-item .submitbox .submitdelete{display:block;float:right;margin:6px 0 0;padding:0;cursor:pointer}.wp-customizer .menu-item .submitbox .submitdelete:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.customize-control-nav_menu .reorder-done,.customize-control-nav_menu .reordering .reorder{display:none}.customize-control-nav_menu .reorder,.customize-control-nav_menu .reordering .reorder-done{display:inline-block;padding:5px 8px}.menu-item-reorder-nav{display:none;background-color:#fff;position:absolute;top:0;left:0}.customize-control-nav_menu .reordering .add-new-menu-item{opacity:.2;pointer-events:none;cursor:not-allowed}.menu-item-reorder-nav button{position:relative;overflow:hidden;float:right;display:block;width:30px;height:40px;color:#82878c;text-indent:-9999px;cursor:pointer;background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;outline:0}.menu-item-reorder-nav button:before{display:inline-block;position:absolute;top:0;left:0;width:100%;height:100%;font:400 20px/40px dashicons;text-align:center;text-indent:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-reorder-nav button:focus,.menu-item-reorder-nav button:hover{color:#191e23;background:#eee}.menus-move-down:before{content:'\f347'}.menus-move-up:before{content:'\f343'}.menus-move-left:before{content:'\f341'}.menus-move-right:before{content:'\f345'}.move-down-disabled .menus-move-down,.move-left-disabled .menus-move-left,.move-right-disabled .menus-move-right,.move-up-disabled .menus-move-up{color:#d5d5d5!important;background-color:#fff!important;cursor:default;pointer-events:none}.menu-item-reorder-nav:before{content:"";display:block;position:absolute;right:-10px;width:10px;height:40px;background:-webkit-linear-gradient(right,rgba(250,250,250,0) 0,rgba(250,250,250,1) 100%);background:-webkit-gradient(linear,right top,left top,from(rgba(250,250,250,0)),to(rgba(250,250,250,1)));background:-webkit-linear-gradient(right,rgba(250,250,250,0) 0,rgba(250,250,250,1) 100%);background:linear-gradient(to left,rgba(250,250,250,0) 0,rgba(250,250,250,1) 100%)}.reordering .menu-item .item-controls,.reordering .menu-item .item-type{display:none}.reordering .menu-item-reorder-nav{display:block}.customize-control input.menu-name-field{width:100%;margin:12px 0}.wp-customizer .menu-item .item-edit{position:absolute;left:-19px;top:2px;display:block;width:30px;height:38px;margin-left:0!important;outline:0;overflow:hidden;cursor:pointer}.customize-control-nav_menu_item .item-edit:focus{color:#0073aa;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-customizer .menu-item .item-edit .toggle-indicator{display:inline-block;font-size:20px;line-height:1}.wp-customizer .menu-item .item-edit .toggle-indicator:after{content:'\f140';font:400 20px/1 dashicons;color:#a0a5aa;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after{content:'\f142'}.wp-customizer .menu-item-settings p.description{font-style:normal}.wp-customizer .menu-settings dl{margin:12px 0 0;padding:0}.wp-customizer .menu-settings .checkbox-input{margin-top:8px}.wp-customizer .menu-settings .menu-theme-locations{border-top:1px solid #ccc}.wp-customizer .menu-settings{margin-top:36px;border-top:none}.menu-settings .customize-control-checkbox label{line-height:1}.menu-settings .customize-control.customize-control-checkbox{margin-bottom:8px}.customize-control-menu{margin-top:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle{color:#555}.customize-screen-options-toggle{background:0 0;border:none;color:#555;cursor:pointer;margin:0;padding:20px;position:absolute;left:0;top:30px}#customize-controls .customize-info .customize-help-toggle{padding:20px}#customize-controls .customize-info .customize-help-toggle:before{padding:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:#0073aa}#customize-controls .customize-info .customize-help-toggle:focus,.customize-screen-options-toggle:focus{outline:0}.customize-screen-options-toggle:before{-moz-osx-font-smoothing:grayscale;border:none;content:"\f111";display:block;font:18px/1 dashicons;padding:5px;text-align:center;text-decoration:none!important;text-indent:0;right:6px;position:absolute;top:6px}#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);-webkit-border-radius:100%;border-radius:100%}.wp-customizer #screen-options-wrap{display:none;background:#fff;border-top:1px solid #ddd;padding:4px 15px 0}.wp-customizer .metabox-prefs label{display:block;padding-left:0;line-height:30px}#accordion-panel-nav_menus .field-attr-title,#accordion-panel-nav_menus .field-css-classes,#accordion-panel-nav_menus .field-description,#accordion-panel-nav_menus .field-link-target,#accordion-panel-nav_menus .field-xfn{display:none}#accordion-panel-nav_menus.field-attr-title-active .field-attr-title,#accordion-panel-nav_menus.field-css-classes-active .field-css-classes,#accordion-panel-nav_menus.field-description-active .field-description,#accordion-panel-nav_menus.field-link-target-active .field-link-target,#accordion-panel-nav_menus.field-xfn-active .field-xfn{display:block}.menu-item-depth-0{margin-right:0}.menu-item-depth-1{margin-right:20px}.menu-item-depth-2{margin-right:40px}.menu-item-depth-3{margin-right:60px}.menu-item-depth-4{margin-right:80px}.menu-item-depth-5{margin-right:100px}.menu-item-depth-6{margin-right:120px}.menu-item-depth-7{margin-right:140px}.menu-item-depth-8{margin-right:160px}.menu-item-depth-9{margin-right:180px}.menu-item-depth-10{margin-right:200px}.menu-item-depth-11{margin-right:220px}.menu-item-depth-0>.menu-item-bar{margin-left:0}.menu-item-depth-1>.menu-item-bar{margin-left:20px}.menu-item-depth-2>.menu-item-bar{margin-left:40px}.menu-item-depth-3>.menu-item-bar{margin-left:60px}.menu-item-depth-4>.menu-item-bar{margin-left:80px}.menu-item-depth-5>.menu-item-bar{margin-left:100px}.menu-item-depth-6>.menu-item-bar{margin-left:120px}.menu-item-depth-7>.menu-item-bar{margin-left:140px}.menu-item-depth-8>.menu-item-bar{margin-left:160px}.menu-item-depth-9>.menu-item-bar{margin-left:180px}.menu-item-depth-10>.menu-item-bar{margin-left:200px}.menu-item-depth-11>.menu-item-bar{margin-left:220px}.menu-item-depth-0 .menu-item-transport{margin-right:0}.menu-item-depth-1 .menu-item-transport{margin-right:-20px}.menu-item-depth-3 .menu-item-transport{margin-right:-60px}.menu-item-depth-4 .menu-item-transport{margin-right:-80px}.menu-item-depth-2 .menu-item-transport{margin-right:-40px}.menu-item-depth-5 .menu-item-transport{margin-right:-100px}.menu-item-depth-6 .menu-item-transport{margin-right:-120px}.menu-item-depth-7 .menu-item-transport{margin-right:-140px}.menu-item-depth-8 .menu-item-transport{margin-right:-160px}.menu-item-depth-9 .menu-item-transport{margin-right:-180px}.menu-item-depth-10 .menu-item-transport{margin-right:-200px}.menu-item-depth-11 .menu-item-transport{margin-right:-220px}.reordering .menu-item-depth-0{margin-right:0}.reordering .menu-item-depth-1{margin-right:15px}.reordering .menu-item-depth-2{margin-right:30px}.reordering .menu-item-depth-3{margin-right:45px}.reordering .menu-item-depth-4{margin-right:60px}.reordering .menu-item-depth-5{margin-right:75px}.reordering .menu-item-depth-6{margin-right:90px}.reordering .menu-item-depth-7{margin-right:105px}.reordering .menu-item-depth-8{margin-right:120px}.reordering .menu-item-depth-9{margin-right:135px}.reordering .menu-item-depth-10{margin-right:150px}.reordering .menu-item-depth-11{margin-right:165px}.reordering .menu-item-depth-0>.menu-item-bar{margin-left:0}.reordering .menu-item-depth-1>.menu-item-bar{margin-left:15px}.reordering .menu-item-depth-2>.menu-item-bar{margin-left:30px}.reordering .menu-item-depth-3>.menu-item-bar{margin-left:45px}.reordering .menu-item-depth-4>.menu-item-bar{margin-left:60px}.reordering .menu-item-depth-5>.menu-item-bar{margin-left:75px}.reordering .menu-item-depth-6>.menu-item-bar{margin-left:90px}.reordering .menu-item-depth-7>.menu-item-bar{margin-left:105px}.reordering .menu-item-depth-8>.menu-item-bar{margin-left:120px}.reordering .menu-item-depth-9>.menu-item-bar{margin-left:135px}.reordering .menu-item-depth-10>.menu-item-bar{margin-left:150px}.reordering .menu-item-depth-11>.menu-item-bar{margin-left:165px}.control-section-nav_menu .menu .menu-item-edit-active{margin-right:0}.control-section-nav_menu .menu .menu-item-edit-active .menu-item-bar{margin-left:0}.control-section-nav_menu .menu .sortable-placeholder{margin-top:0;margin-bottom:1px;max-width:-webkit-calc(100% - 2px);max-width:calc(100% - 2px);float:right;display:list-item;border-color:#a0a5aa}.menu-item-transport li.customize-control{float:none}.control-section-nav_menu .menu ul.menu-item-transport .menu-item-bar{margin-top:0}.wp-full-overlay-main{left:auto;width:100%}.adding-menu-items .control-section{opacity:.4}.adding-menu-items .control-panel.control-section,.adding-menu-items .control-section.open{opacity:1}#customize-theme-controls .add-new-menu-item{cursor:pointer;float:left;margin-right:10px;-webkit-transition:all .2s;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}.add-new-menu-item:before{content:"\f132";display:inline-block;position:relative;right:-2px;top:-1px;font:400 20px/1 dashicons;vertical-align:middle;-webkit-transition:all .2s;transition:all .2s;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.add-menu-toggle.open,.add-menu-toggle.open:hover,.adding-menu-items .add-new-menu-item,.adding-menu-items .add-new-menu-item:hover{background:#eee;border-color:#929793;color:#32373c;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}#accordion-section-add_menu .add-new-menu-item.open:before,.adding-menu-items .add-new-menu-item:before{-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.menu-item-bar .item-delete{color:#a00;position:absolute;top:2px;left:-19px;width:30px;height:38px;cursor:pointer;display:none}.menu-item-bar .item-delete:before{content:"\f335";font:400 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:9px;right:5px}.ie8 .menu-item-bar .item-delete:before{top:-10px}.menu-item-bar .item-delete:focus,.menu-item-bar .item-delete:hover{color:red}.menu-item-bar .item-delete:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.adding-menu-items .menu-item-bar .item-edit{display:none}.adding-menu-items .menu-item-bar .item-delete{display:block}#available-menu-items .item{position:static}#available-menu-items{position:absolute;top:0;bottom:0;right:-301px;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:300px;margin:0;z-index:4;background:#eee;-webkit-transition:right .18s;transition:right .18s;border-left:1px solid #ddd}#available-menu-items.opening{overflow-y:hidden}#available-menu-items #available-menu-items-search.open{height:100%;border-bottom:none}#available-menu-items .accordion-section-title{border-right:none;border-left:none;background:#fff}#available-menu-items #available-menu-items-search .accordion-section-title,#available-menu-items .open .accordion-section-title{background:#eee}#available-menu-items .accordion-section-title:after{content:none!important}#available-menu-items .accordion-section-title .toggle-indicator{display:inline-block;font-size:20px;line-height:1}#available-menu-items .accordion-section-title .toggle-indicator:after{content:'\f140';font:400 20px/1 dashicons;color:#a0a5aa;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}#available-menu-items .accordion-section-title:hover .toggle-indicator:after{color:#777}#available-menu-items .open .accordion-section-title .toggle-indicator:after{content:'\f142'}button.not-a-button{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;-webkit-border-radius:0;border-radius:0;outline:0;padding:0;margin:0}#available-menu-items .accordion-section-title button{display:block;width:28px;height:35px;position:absolute;top:5px;left:5px;cursor:pointer}#available-menu-items .accordion-section-title button:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#available-menu-items .accordion-section-title .no-items,#available-menu-items .cannot-expand .accordion-section-title .spinner,#available-menu-items .cannot-expand .accordion-section-title>button{display:none}#available-menu-items-search.cannot-expand .accordion-section-title .spinner{display:block}#available-menu-items .cannot-expand .accordion-section-title .no-items{display:block;color:#777;font-weight:400;float:left;margin-right:5px}#available-menu-items .accordion-section-content{overflow-y:auto;background:0 0;padding:1px 15px 15px;margin:0;min-height:120px;max-height:290px}#available-menu-items #available-menu-items-search .accordion-section-content{position:absolute;right:1px;top:60px;bottom:0;max-height:none;width:100%;padding:1px 15px 15px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#available-menu-items .menu-item-tpl{margin:0}#custom-menu-item-name.invalid,#custom-menu-item-url.invalid,.menu-name-field.invalid,.menu-name-field.invalid:focus{border:1px solid red}#available-menu-items .item-tpl{position:relative;padding:20px 60px 20px 15px;border-bottom:1px solid #e4e4e4;cursor:pointer;display:none}#available-menu-items .item-tpl.selected,#available-menu-items .item-tpl:hover{background:#eee}#available-menu-items .menu-item-handle .item-type{padding-left:0}#available-menu-items .menu-item-handle .item-title{padding-right:20px}#available-menu-items .item-top,#available-menu-items .item-top:hover{border:none;background:0 0;-webkit-box-shadow:none;box-shadow:none}#available-menu-items .menu-item-handle{cursor:pointer;-webkit-box-shadow:none;box-shadow:none;margin-top:-1px}#available-menu-items .menu-item-handle:hover{z-index:1}#available-menu-items .item-title h4{padding:0 0 5px;font-size:14px}#available-menu-items .item-add{position:absolute;top:1px;right:1px;color:#82878c;width:30px;height:38px;cursor:pointer}#available-menu-items .menu-item-handle .item-add:focus{color:#23282d;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#available-menu-items .item-add:before{content:"\f543";font:400 20px/1 dashicons;position:relative;right:2px;top:3px}#available-menu-items .menu-item-handle.item-added .item-add:focus,#available-menu-items .menu-item-handle.item-added .item-title,#available-menu-items .menu-item-handle.item-added .item-type,#available-menu-items .menu-item-handle.item-added:hover .item-add{color:#82878c}#available-menu-items .menu-item-handle.item-added .item-add:before{content:"\f147"}#available-menu-items .accordion-section-title.loading .spinner,#available-menu-items-search.loading .accordion-section-title .spinner{visibility:visible;margin:0 20px}#available-menu-items-search .clear-results{position:absolute;top:20px;left:20px;width:20px;height:20px;cursor:pointer;color:#a00;text-decoration:none}#available-menu-items-search .clear-results,#available-menu-items-search.loading .clear-results.is-visible{display:none}#available-menu-items-search .clear-results.is-visible{display:block}#available-menu-items-search .clear-results:before{content:"\f335";font:400 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#available-menu-items-search .clear-results:focus,#available-menu-items-search .clear-results:hover{color:red}#available-menu-items-search .clear-results:focus{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#available-menu-items-search .clear-results:focus,.menu-delete:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#available-menu-items-search .spinner{position:absolute;top:20px;margin:0!important;left:20px}#available-menu-items-search input{padding:6px 10px;width:100%}#available-menu-items-search .accordion-section-title{padding:12px 15px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#available-menu-items-search .accordion-section-title:after{display:none}#available-menu-items-search .accordion-section-content:empty{min-height:0;padding:0}#available-menu-items-search.loading .accordion-section-content div{opacity:.5}#available-menu-items-search.loading.loading-more .accordion-section-content div{opacity:1}#customize-preview{-webkit-transition:all .2s;transition:all .2s}body.adding-menu-items #available-menu-items{right:0;visibility:visible}body.adding-menu-items .wp-full-overlay-main{right:300px}body.adding-menu-items #customize-preview{opacity:.4}.menu-item-handle .spinner{display:none;float:right;margin:0 0 0 8px}.nav-menu-inserted-item-loading .spinner{display:block}.nav-menu-inserted-item-loading .menu-item-handle .item-type{padding:0 8px 0 0}.added-menu-item .menu-item-handle.loading,.nav-menu-inserted-item-loading .menu-item-handle{padding:10px 8px 10px 15px;cursor:default;opacity:.5;background:#fff;color:#727773}.added-menu-item .menu-item-handle{-webkit-transition-property:opacity,background,color;transition-property:opacity,background,color;-webkit-transition-duration:1.25s;transition-duration:1.25s;-webkit-transition-timing-function:cubic-bezier(.25,-2.5,.75,8);transition-timing-function:cubic-bezier(.25,-2.5,.75,8)}#accordion-section-add_menu{margin:15px 12px}.new-menu-section-content{display:none;padding:15px 0 0;clear:both}#accordion-section-add_menu .accordion-section-title{padding-right:45px}#accordion-section-add_menu .accordion-section-title:before{font:400 20px/1 dashicons;position:absolute;top:12px;right:14px;content:"\f132"}#create-new-menu-submit{float:left;margin:0 0 12px}.menu-delete-item{display:block;float:right;padding:1em 0;width:100%}#available-menu-items .customize-section-title,li.assigned-to-menu-location .menu-delete-item{display:none}li.assigned-to-menu-location .add-new-menu-item{margin-bottom:1em}.menu-delete{color:#a00;cursor:pointer;text-decoration:underline}.menu-delete:focus,.menu-delete:hover{color:red;text-decoration:none}.menu-delete:focus{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.menu-item-handle{margin-top:-1px}.ui-sortable-disabled .menu-item-handle{cursor:default}.menu-item-handle:hover{position:relative;z-index:10;color:#0073aa}#available-menu-items .menu-item-handle:hover .item-add,.menu-item-handle:hover .item-edit,.menu-item-handle:hover .item-type{color:#0073aa}.menu-item-edit-active .menu-item-handle{border-color:#999;border-bottom:none}.customize-control-nav_menu_item{margin-bottom:0}.customize-control-nav_menu{margin-top:12px}@media screen and (max-width:782px){#available-menu-items #available-menu-items-search .accordion-section-content{top:63px}}@media screen and (max-width:640px){body.adding-menu-items div#available-menu-items{top:46px;right:0;z-index:10;width:100%}#available-menu-items #available-menu-items-search .accordion-section-content{top:133px}#available-menu-items .customize-section-title{display:block;margin:0}#available-menu-items .customize-section-back{height:69px}#available-menu-items .customize-section-title h3{font-size:20px;font-weight:200;padding:9px 14px 12px 10px;margin:0;line-height:24px;color:#555;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-menu-items .customize-section-title .customize-action{font-size:13px;display:block;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}} \ No newline at end of file diff --git a/wp-admin/css/customize-nav-menus.css b/wp-admin/css/customize-nav-menus.css deleted file mode 100644 index 7d25c7f58d..0000000000 --- a/wp-admin/css/customize-nav-menus.css +++ /dev/null @@ -1,1091 +0,0 @@ -#accordion-section-menu_locations { - position: relative; - margin-bottom: 15px; -} - -.menu-in-location, -.menu-in-locations { - display: block; - font-weight: 600; - font-size: 10px; -} - -#customize-controls .theme-location-set, -#customize-controls .control-section .accordion-section-title:focus .menu-in-location, -#customize-controls .control-section .accordion-section-title:hover .menu-in-location, -#customize-controls .control-section .accordion-section-title:focus .menu-in-locations, -#customize-controls .control-section .accordion-section-title:hover .menu-in-locations { - color: #555; -} - -.wp-customizer .menu-item-bar .menu-item-handle, -.wp-customizer .menu-item-settings, -.wp-customizer .menu-item-settings .description-thin { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.wp-customizer .menu-item-bar { - margin: 0; -} - -.wp-customizer .menu-item-bar .menu-item-handle { - width: 100%; - background: #fff; -} - -.wp-customizer .menu-item-handle .item-title { - margin-right: 0; -} - -.wp-customizer .menu-item-handle .item-type { - padding: 1px 21px 0 5px; - float: right; - text-align: right; -} - -.wp-customizer .menu-item-settings { - max-width: 100%; - overflow: hidden; - padding: 10px; - background: #eee; - border: 1px solid #999; - border-top: none; -} - -.wp-customizer .menu-item-settings .description-thin { - width: 100%; - height: auto; - margin: 0 0 8px 0; -} - -.wp-customizer .menu-item-settings input[type="text"] { - width: 100%; -} - -.wp-customizer .menu-item-settings .submitbox { - margin: 0; - padding: 0; -} - -.wp-customizer .menu-item-settings .link-to-original { - padding: 5px 0; - border: none; - font-style: normal; - margin: 0; - width: 100%; -} - -.wp-customizer .menu-item .submitbox .submitdelete { - display: block; - float: left; - margin: 6px 0 0; - padding: 0; - cursor: pointer; -} - -.wp-customizer .menu-item .submitbox .submitdelete:focus { - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -/* Menu-item reordering nav. */ -.customize-control-nav_menu .reordering .reorder, -.customize-control-nav_menu .reorder-done { - display: none; -} - -.customize-control-nav_menu .reorder, -.customize-control-nav_menu .reordering .reorder-done { - display: inline-block; - padding: 5px 8px; -} - -.menu-item-reorder-nav { - display: none; - background-color: #fff; - position: absolute; - top: 0; - right: 0; -} - -.customize-control-nav_menu .reordering .add-new-menu-item { - opacity: 0.2; - pointer-events: none; - cursor: not-allowed; -} - -.menu-item-reorder-nav button { - position: relative; - overflow: hidden; - float: left; - display: block; - width: 30px; - height: 40px; - color: #82878c; - text-indent: -9999px; - cursor: pointer; - background: transparent; - border: none; - -webkit-box-shadow: none; - box-shadow: none; - outline: none; -} - -.menu-item-reorder-nav button:before { - display: inline-block; - position: absolute; - top: 0; - right: 0; - width: 100%; - height: 100%; - font: normal 20px/40px dashicons; - text-align: center; - text-indent: 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.menu-item-reorder-nav button:hover, -.menu-item-reorder-nav button:focus { - color: #191e23; - background: #eee; -} - -.menus-move-down:before { - content: '\f347'; -} - -.menus-move-up:before { - content: '\f343'; -} - -.menus-move-left:before { - content: '\f341'; -} - -.menus-move-right:before { - content: '\f345'; -} - -.move-up-disabled .menus-move-up, -.move-down-disabled .menus-move-down, -.move-right-disabled .menus-move-right, -.move-left-disabled .menus-move-left { - color: #d5d5d5 !important; - background-color: #fff !important; - cursor: default; - pointer-events: none; -} - -.menu-item-reorder-nav:before { - content: ""; - display: block; - position: absolute; - left: -10px; - width: 10px; - height: 40px; - background: -webkit-linear-gradient(left, rgba(250,250,250,0) 0%,rgba(250,250,250,1) 100%); - background: -webkit-gradient(linear, left top, right top, from(rgba(250,250,250,0)), to(rgba(250,250,250,1))); - background: -webkit-linear-gradient(left, rgba(250,250,250,0) 0%, rgba(250,250,250,1) 100%); - background: linear-gradient(to right, rgba(250,250,250,0) 0%,rgba(250,250,250,1) 100%); -} - -.reordering .menu-item .item-controls, -.reordering .menu-item .item-type { - display: none; -} - -.reordering .menu-item-reorder-nav { - display: block; -} - -.customize-control input.menu-name-field { - width: 100%; /* Override the 98% default for customizer inputs, to align with the size of menu items. */ - margin: 12px 0; -} - -.wp-customizer .menu-item .item-edit { - position: absolute; - right: -19px; - top: 2px; - display: block; - width: 30px; - height: 38px; - margin-right: 0 !important; - outline: none; - overflow: hidden; - cursor: pointer; -} - -.customize-control-nav_menu_item .item-edit:focus { - color: #0073aa; - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -/* rework the arrow indicator implementation for NVDA bug same as #32715 */ -.wp-customizer .menu-item .item-edit .toggle-indicator { - display: inline-block; - font-size: 20px; - line-height: 1; -} - -.wp-customizer .menu-item .item-edit .toggle-indicator:after { - content: '\f140'; - font: normal 20px/1 dashicons; - color: #a0a5aa; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; -} - -.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after { - content: '\f142'; -} - -.wp-customizer .menu-item-settings p.description { - font-style: normal; -} - -.wp-customizer .menu-settings dl { - margin: 12px 0 0 0; - padding: 0; -} - -.wp-customizer .menu-settings .checkbox-input { - margin-top: 8px; -} - -.wp-customizer .menu-settings .menu-theme-locations { - border-top: 1px solid #ccc; -} - -.wp-customizer .menu-settings { - margin-top: 36px; - border-top: none; -} - -.menu-settings .customize-control-checkbox label { - line-height: 1; -} - -/* @todo update selector or potentially remove */ -.menu-settings .customize-control.customize-control-checkbox { - margin-bottom: 8px; /* Override collapsing at smaller viewports. */ -} - -.customize-control-menu { - margin-top: 4px; -} - -#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle { - color: #555; -} - -/* Screen Options */ -.customize-screen-options-toggle { - background: none; - border: none; - color: #555; - cursor: pointer; - margin: 0; - padding: 20px; - position: absolute; - right: 0; - top: 30px; -} - -#customize-controls .customize-info .customize-help-toggle { - padding: 20px; -} - -#customize-controls .customize-info .customize-help-toggle:before { - padding: 4px; -} - -.customize-screen-options-toggle:hover, -.customize-screen-options-toggle:active, -.customize-screen-options-toggle:focus, -.active-menu-screen-options .customize-screen-options-toggle, -#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, -#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, -#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { - color: #0073aa; -} - -.customize-screen-options-toggle:focus, -#customize-controls .customize-info .customize-help-toggle:focus { - outline: none; -} - -.customize-screen-options-toggle:before { - -moz-osx-font-smoothing: grayscale; - border: none; - content: "\f111"; - display: block; - font: 18px/1 "dashicons"; - padding: 5px; - text-align: center; - text-decoration: none !important; - text-indent: 0; - left: 6px; - position: absolute; - top: 6px; -} - -.customize-screen-options-toggle:focus:before, -#customize-controls .customize-info .customize-help-toggle:focus:before { - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - -webkit-border-radius: 100%; - border-radius: 100%; -} - -.wp-customizer #screen-options-wrap { - display: none; - background: #fff; - border-top: 1px solid #ddd; - padding: 4px 15px 0; -} - -.wp-customizer .metabox-prefs label { - display: block; - padding-right: 0; - line-height: 30px; -} - -#accordion-panel-nav_menus .field-link-target, -#accordion-panel-nav_menus .field-attr-title, -#accordion-panel-nav_menus .field-css-classes, -#accordion-panel-nav_menus .field-xfn, -#accordion-panel-nav_menus .field-description { - display: none; -} - -#accordion-panel-nav_menus.field-link-target-active .field-link-target, -#accordion-panel-nav_menus.field-attr-title-active .field-attr-title, -#accordion-panel-nav_menus.field-css-classes-active .field-css-classes, -#accordion-panel-nav_menus.field-xfn-active .field-xfn, -#accordion-panel-nav_menus.field-description-active .field-description { - display: block; -} - -/* WARNING: The 20px factor is hard-coded in JS. */ -.menu-item-depth-0 { margin-left: 0; } -.menu-item-depth-1 { margin-left: 20px; } -.menu-item-depth-2 { margin-left: 40px; } -.menu-item-depth-3 { margin-left: 60px; } -.menu-item-depth-4 { margin-left: 80px; } -.menu-item-depth-5 { margin-left: 100px; } -.menu-item-depth-6 { margin-left: 120px; } -.menu-item-depth-7 { margin-left: 140px; } -.menu-item-depth-8 { margin-left: 160px; } /* Not likely to be used or useful beyond this depth */ -.menu-item-depth-9 { margin-left: 180px; } -.menu-item-depth-10 { margin-left: 200px; } -.menu-item-depth-11 { margin-left: 220px; } - -/* @todo handle .menu-item-settings width */ -.menu-item-depth-0 > .menu-item-bar { margin-right: 0; } -.menu-item-depth-1 > .menu-item-bar { margin-right: 20px; } -.menu-item-depth-2 > .menu-item-bar { margin-right: 40px; } -.menu-item-depth-3 > .menu-item-bar { margin-right: 60px; } -.menu-item-depth-4 > .menu-item-bar { margin-right: 80px; } -.menu-item-depth-5 > .menu-item-bar { margin-right: 100px; } -.menu-item-depth-6 > .menu-item-bar { margin-right: 120px; } -.menu-item-depth-7 > .menu-item-bar { margin-right: 140px; } -.menu-item-depth-8 > .menu-item-bar { margin-right: 160px; } -.menu-item-depth-9 > .menu-item-bar { margin-right: 180px; } -.menu-item-depth-10 > .menu-item-bar { margin-right: 200px; } -.menu-item-depth-11 > .menu-item-bar { margin-right: 220px; } - -/* Submenu left margin. */ -.menu-item-depth-0 .menu-item-transport { margin-left: 0; } -.menu-item-depth-1 .menu-item-transport { margin-left: -20px; } -.menu-item-depth-3 .menu-item-transport { margin-left: -60px; } -.menu-item-depth-4 .menu-item-transport { margin-left: -80px; } -.menu-item-depth-2 .menu-item-transport { margin-left: -40px; } -.menu-item-depth-5 .menu-item-transport { margin-left: -100px; } -.menu-item-depth-6 .menu-item-transport { margin-left: -120px; } -.menu-item-depth-7 .menu-item-transport { margin-left: -140px; } -.menu-item-depth-8 .menu-item-transport { margin-left: -160px; } -.menu-item-depth-9 .menu-item-transport { margin-left: -180px; } -.menu-item-depth-10 .menu-item-transport { margin-left: -200px; } -.menu-item-depth-11 .menu-item-transport { margin-left: -220px; } - -/* WARNING: The 20px factor is hard-coded in JS. */ -.reordering .menu-item-depth-0 { margin-left: 0; } -.reordering .menu-item-depth-1 { margin-left: 15px; } -.reordering .menu-item-depth-2 { margin-left: 30px; } -.reordering .menu-item-depth-3 { margin-left: 45px; } -.reordering .menu-item-depth-4 { margin-left: 60px; } -.reordering .menu-item-depth-5 { margin-left: 75px; } -.reordering .menu-item-depth-6 { margin-left: 90px; } -.reordering .menu-item-depth-7 { margin-left: 105px; } -.reordering .menu-item-depth-8 { margin-left: 120px; } /* Not likely to be used or useful beyond this depth */ -.reordering .menu-item-depth-9 { margin-left: 135px; } -.reordering .menu-item-depth-10 { margin-left: 150px; } -.reordering .menu-item-depth-11 { margin-left: 165px; } - -.reordering .menu-item-depth-0 > .menu-item-bar { margin-right: 0; } -.reordering .menu-item-depth-1 > .menu-item-bar { margin-right: 15px; } -.reordering .menu-item-depth-2 > .menu-item-bar { margin-right: 30px; } -.reordering .menu-item-depth-3 > .menu-item-bar { margin-right: 45px; } -.reordering .menu-item-depth-4 > .menu-item-bar { margin-right: 60px; } -.reordering .menu-item-depth-5 > .menu-item-bar { margin-right: 75px; } -.reordering .menu-item-depth-6 > .menu-item-bar { margin-right: 90px; } -.reordering .menu-item-depth-7 > .menu-item-bar { margin-right: 105px; } -.reordering .menu-item-depth-8 > .menu-item-bar { margin-right: 120px; } -.reordering .menu-item-depth-9 > .menu-item-bar { margin-right: 135px; } -.reordering .menu-item-depth-10 > .menu-item-bar { margin-right: 150px; } -.reordering .menu-item-depth-11 > .menu-item-bar { margin-right: 165px; } - -.control-section-nav_menu .menu .menu-item-edit-active { - margin-left: 0; -} - -.control-section-nav_menu .menu .menu-item-edit-active .menu-item-bar { - margin-right: 0; -} - -.control-section-nav_menu .menu .sortable-placeholder { - margin-top: 0; - margin-bottom: 1px; - max-width: -webkit-calc(100% - 2px); - max-width: calc(100% - 2px); - float: left; - display: list-item; - border-color: #a0a5aa; -} - -.menu-item-transport li.customize-control { - float: none; -} - -.control-section-nav_menu .menu ul.menu-item-transport .menu-item-bar { - margin-top: 0; -} - -/* - * Add-menu-items mode. - */ -.wp-full-overlay-main { - right: auto; /* This overrides a right: 0; which causes the preview to resize rather than slide off screen at the normal size. */ - width: 100%; -} - -.adding-menu-items .control-section { - opacity: .4; -} - -.adding-menu-items .control-panel.control-section, -.adding-menu-items .control-section.open { - opacity: 1; -} - -/* Add-new button. */ -#customize-theme-controls .add-new-menu-item { - cursor: pointer; - float: right; - margin-left: 10px; - -webkit-transition: all 0.2s; - transition: all 0.2s; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - outline: none; -} - -.add-new-menu-item:before { - content: "\f132"; - display: inline-block; - position: relative; - left: -2px; - top: -1px; - font: normal 20px/1 'dashicons'; - vertical-align: middle; - -webkit-transition: all 0.2s; - transition: all 0.2s; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.adding-menu-items .add-new-menu-item, -.adding-menu-items .add-new-menu-item:hover, -.add-menu-toggle.open, -.add-menu-toggle.open:hover { - background: #eee; - border-color: #929793; - color: #32373c; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); -} - -.adding-menu-items .add-new-menu-item:before, -#accordion-section-add_menu .add-new-menu-item.open:before { - -webkit-transform: rotate(45deg); - -ms-transform: rotate(45deg); - transform: rotate(45deg); -} - -.menu-item-bar .item-delete { - color: #a00; - position: absolute; - top: 2px; - right: -19px; - width: 30px; - height: 38px; - cursor: pointer; - display: none; -} - -.menu-item-bar .item-delete:before { - content: "\f335"; - font: normal 20px/1 dashicons; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - position: absolute; - top: 9px; - left: 5px; -} - -.ie8 .menu-item-bar .item-delete:before { - top: -10px; -} - -.menu-item-bar .item-delete:hover, -.menu-item-bar .item-delete:focus { - color: #f00; -} - -.menu-item-bar .item-delete:focus { - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.adding-menu-items .menu-item-bar .item-edit { - display: none; -} - -.adding-menu-items .menu-item-bar .item-delete { - display: block; -} - -#available-menu-items .item { - position: static; -} - -#available-menu-items { - position: absolute; - top: 0; - bottom: 0; - left: -301px; - visibility: hidden; - overflow-x: hidden; - overflow-y: auto; - width: 300px; - margin: 0; - z-index: 4; - background: #eee; - -webkit-transition: left .18s; - transition: left .18s; - border-right: 1px solid #ddd; -} - -#available-menu-items.opening { - overflow-y: hidden; /* avoid scrollbar jitter with animating heights */ -} - -#available-menu-items #available-menu-items-search.open { - height: 100%; - border-bottom: none; -} - -#available-menu-items .accordion-section-title { - border-left: none; - border-right: none; - background: #fff; -} - -#available-menu-items .open .accordion-section-title, -#available-menu-items #available-menu-items-search .accordion-section-title { - background: #eee; -} - -/* rework the arrow indicator implementation for NVDA bug see #32715 */ -#available-menu-items .accordion-section-title:after { - content: none !important; -} - -#available-menu-items .accordion-section-title .toggle-indicator { - display: inline-block; - font-size: 20px; - line-height: 1; -} - -#available-menu-items .accordion-section-title .toggle-indicator:after { - content: '\f140'; - font: normal 20px/1 'dashicons'; - color: #a0a5aa; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; -} - -#available-menu-items .accordion-section-title:hover .toggle-indicator:after { - color: #777; -} - -#available-menu-items .open .accordion-section-title .toggle-indicator:after { - content: '\f142'; -} - -#available-menu-items .accordion-section-content { - overflow-y: auto; - max-height: 200px; /* This gets set in JS to fit the screen size, and based on # of sections. */ - background: transparent; -} - -button.not-a-button { - background: transparent; - border: none; - -webkit-box-shadow: none; - box-shadow: none; - -webkit-border-radius: 0; - border-radius: 0; - outline: 0; - padding: 0; - margin: 0; -} - -#available-menu-items .accordion-section-title button { - display: block; - width: 28px; - height: 35px; - position: absolute; - top: 5px; - right: 5px; - cursor: pointer; -} - -#available-menu-items .accordion-section-title button:focus { - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -#available-menu-items .accordion-section-title .no-items, -#available-menu-items .cannot-expand .accordion-section-title .spinner, -#available-menu-items .cannot-expand .accordion-section-title > button { - display: none; -} - -#available-menu-items-search.cannot-expand .accordion-section-title .spinner { - display: block; -} - -#available-menu-items .cannot-expand .accordion-section-title .no-items { - display: block; - color: #777; - font-weight: normal; - float: right; - margin-left: 5px; -} - -#available-menu-items .accordion-section-content { - padding: 1px 15px 15px 15px; - margin: 0; - min-height: 120px; - max-height: 290px; -} - -#available-menu-items #available-menu-items-search .accordion-section-content { - position: absolute; - left: 1px; - top: 60px; /* below title div / search input */ - bottom: 0px; /* 100% height that still triggers lazy load */ - max-height: none; - width: 100%; - padding: 1px 15px 15px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -#available-menu-items .menu-item-tpl { - margin: 0; -} - -#custom-menu-item-name.invalid, -#custom-menu-item-url.invalid, -.menu-name-field.invalid, -.menu-name-field.invalid:focus { - border: 1px solid #f00; -} - -#available-menu-items .item-tpl { - position: relative; - padding: 20px 15px 20px 60px; - border-bottom: 1px solid #e4e4e4; - cursor: pointer; - display: none; -} - -#available-menu-items .item-tpl:hover, -#available-menu-items .item-tpl.selected { - background: #eee; -} - -#available-menu-items .menu-item-handle .item-type { - padding-right: 0; -} - -#available-menu-items .menu-item-handle .item-title { - padding-left: 20px; -} - -#available-menu-items .menu-item-handle { - cursor: pointer; -} - -#available-menu-items .item-top, -#available-menu-items .item-top:hover { - border: none; - background: transparent; - -webkit-box-shadow: none; - box-shadow: none; -} - -#available-menu-items .menu-item-handle { - -webkit-box-shadow: none; - box-shadow: none; - margin-top: -1px; -} - -#available-menu-items .menu-item-handle:hover { - z-index: 1; -} - -#available-menu-items .item-title h4 { - padding: 0 0 5px; - font-size: 14px; -} - -#available-menu-items .item-add { - position: absolute; - top: 1px; - left: 1px; - color: #82878c; - width: 30px; - height: 38px; - cursor: pointer; -} - -#available-menu-items .menu-item-handle .item-add:focus { - color: #23282d; - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -#available-menu-items .item-add:before { - content: "\f543"; - font: normal 20px/1 dashicons; - position: relative; - left: 2px; - top: 3px; -} - -#available-menu-items .menu-item-handle.item-added .item-type, -#available-menu-items .menu-item-handle.item-added .item-title, -#available-menu-items .menu-item-handle.item-added:hover .item-add, -#available-menu-items .menu-item-handle.item-added .item-add:focus { - color: #82878c; -} - -#available-menu-items .menu-item-handle.item-added .item-add:before { - content: "\f147"; -} - -#available-menu-items .accordion-section-title.loading .spinner, -#available-menu-items-search.loading .accordion-section-title .spinner { - visibility: visible; - margin: 0 20px; -} - -#available-menu-items-search .clear-results { - position: absolute; - top: 20px; - right: 20px; - width: 20px; - height: 20px; - cursor: pointer; - color: #a00; - text-decoration: none; -} - -#available-menu-items-search .clear-results, -#available-menu-items-search.loading .clear-results.is-visible { - display: none; -} - -#available-menu-items-search .clear-results.is-visible { - display: block; -} - -#available-menu-items-search .clear-results:before { - content: "\f335"; - font: normal 20px/1 dashicons; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -#available-menu-items-search .clear-results:hover, -#available-menu-items-search .clear-results:focus { - color: #f00; -} - -#available-menu-items-search .clear-results:focus { - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -#available-menu-items-search .spinner { - position: absolute; - top: 20px; - margin: 0 !important; - right: 20px; -} - -#available-menu-items-search input { - padding: 6px 10px; - width: 100%; -} - -#available-menu-items-search .accordion-section-title { - padding: 12px 15px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -#available-menu-items-search .accordion-section-title:after { - display: none; -} - -#available-menu-items-search .accordion-section-content:empty { - min-height: 0; - padding: 0; -} - -#available-menu-items-search.loading .accordion-section-content div { - opacity: .5; -} - -#available-menu-items-search.loading.loading-more .accordion-section-content div { - opacity: 1; -} - -#customize-preview { - -webkit-transition: all 0.2s; - transition: all 0.2s; -} - -body.adding-menu-items #available-menu-items { - left: 0; - visibility: visible; -} - -body.adding-menu-items .wp-full-overlay-main { - left: 300px; -} - -body.adding-menu-items #customize-preview { - opacity: 0.4; -} - -.menu-item-handle .spinner { - display: none; - float: left; - margin: 0 8px 0 0; -} - -.nav-menu-inserted-item-loading .spinner { - display: block; -} - -.nav-menu-inserted-item-loading .menu-item-handle .item-type { - padding: 0 0 0 8px; -} - -.nav-menu-inserted-item-loading .menu-item-handle, -.added-menu-item .menu-item-handle.loading { - padding: 10px 15px 10px 8px; - cursor: default; - opacity: .5; - background: #fff; - color: #727773; -} - -.added-menu-item .menu-item-handle { - -webkit-transition-property: opacity, background, color; - transition-property: opacity, background, color; - -webkit-transition-duration: 1.25s; - transition-duration: 1.25s; - -webkit-transition-timing-function: cubic-bezier( .25, -2.5, .75, 8 ); - transition-timing-function: cubic-bezier( .25, -2.5, .75, 8 ); /* Replacement for .hide().fadeIn('slow') in JS to add emphasis when it's loaded. */ -} - -/* Add/delete Menus */ - -/* @todo update selector */ -#accordion-section-add_menu { - margin: 15px 12px; -} - -.new-menu-section-content { - display: none; - padding: 15px 0 0 0; - clear: both; -} - -/* @todo update selector */ -#accordion-section-add_menu .accordion-section-title { - padding-left: 45px; -} - -/* @todo update selector */ -#accordion-section-add_menu .accordion-section-title:before { - font: normal 20px/1 dashicons; - position: absolute; - top: 12px; - left: 14px; - content: "\f132"; -} - -#create-new-menu-submit { - float: right; - margin: 0 0 12px 0; -} - -.menu-delete-item { - display: block; - float: left; - padding: 1em 0; - width: 100%; -} - -li.assigned-to-menu-location .menu-delete-item { - display: none; -} - -li.assigned-to-menu-location .add-new-menu-item { - margin-bottom: 1em; -} - -.menu-delete { - color: #a00; - cursor: pointer; - text-decoration: underline; -} - -.menu-delete:hover, -.menu-delete:focus { - color: #f00; - text-decoration: none; -} - -.menu-delete:focus { - -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.menu-item-handle { - margin-top: -1px; -} -.ui-sortable-disabled .menu-item-handle { - cursor: default; -} - -.menu-item-handle:hover { - position: relative; - z-index: 10; - color: #0073aa; -} - -.menu-item-handle:hover .item-type, -.menu-item-handle:hover .item-edit, -#available-menu-items .menu-item-handle:hover .item-add { - color: #0073aa; -} - -.menu-item-edit-active .menu-item-handle { - border-color: #999; - border-bottom: none; -} - -.customize-control-nav_menu_item { - margin-bottom: 0; -} - -.customize-control-nav_menu { - margin-top: 12px; -} - -#available-menu-items .customize-section-title { - display: none; -} - -@media screen and ( max-width: 782px ) { - #available-menu-items #available-menu-items-search .accordion-section-content { - top: 63px; - } -} - -@media screen and ( max-width: 640px ) { - body.adding-menu-items div#available-menu-items { - top: 46px; - left: 0; - z-index: 10; - width: 100%; - } - - #available-menu-items #available-menu-items-search .accordion-section-content { - top: 133px; - } - - #available-menu-items .customize-section-title { - display: block; - margin: 0; - } - - #available-menu-items .customize-section-back { - height: 69px; - } - - #available-menu-items .customize-section-title h3 { - font-size: 20px; - font-weight: 200; - padding: 9px 10px 12px 14px; - margin: 0; - line-height: 24px; - color: #555; - display: block; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - - #available-menu-items .customize-section-title .customize-action { - font-size: 13px; - display: block; - font-weight: 400; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } -} diff --git a/wp-admin/css/customize-nav-menus.min.css b/wp-admin/css/customize-nav-menus.min.css deleted file mode 100644 index 1702fba117..0000000000 --- a/wp-admin/css/customize-nav-menus.min.css +++ /dev/null @@ -1 +0,0 @@ -#accordion-section-menu_locations{position:relative;margin-bottom:15px}.menu-in-location,.menu-in-locations{display:block;font-weight:600;font-size:10px}#customize-controls .control-section .accordion-section-title:focus .menu-in-location,#customize-controls .control-section .accordion-section-title:focus .menu-in-locations,#customize-controls .control-section .accordion-section-title:hover .menu-in-location,#customize-controls .control-section .accordion-section-title:hover .menu-in-locations,#customize-controls .theme-location-set{color:#555}.wp-customizer .menu-item-bar .menu-item-handle,.wp-customizer .menu-item-settings,.wp-customizer .menu-item-settings .description-thin{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-customizer .menu-item-bar{margin:0}.wp-customizer .menu-item-bar .menu-item-handle{width:100%;background:#fff}.wp-customizer .menu-item-handle .item-title{margin-right:0}.wp-customizer .menu-item-handle .item-type{padding:1px 21px 0 5px;float:right;text-align:right}.wp-customizer .menu-item-settings{max-width:100%;overflow:hidden;padding:10px;background:#eee;border:1px solid #999;border-top:none}.wp-customizer .menu-item-settings .description-thin{width:100%;height:auto;margin:0 0 8px}.wp-customizer .menu-item-settings input[type=text]{width:100%}.wp-customizer .menu-item-settings .submitbox{margin:0;padding:0}.wp-customizer .menu-item-settings .link-to-original{padding:5px 0;border:none;font-style:normal;margin:0;width:100%}.wp-customizer .menu-item .submitbox .submitdelete{display:block;float:left;margin:6px 0 0;padding:0;cursor:pointer}.wp-customizer .menu-item .submitbox .submitdelete:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.customize-control-nav_menu .reorder-done,.customize-control-nav_menu .reordering .reorder{display:none}.customize-control-nav_menu .reorder,.customize-control-nav_menu .reordering .reorder-done{display:inline-block;padding:5px 8px}.menu-item-reorder-nav{display:none;background-color:#fff;position:absolute;top:0;right:0}.customize-control-nav_menu .reordering .add-new-menu-item{opacity:.2;pointer-events:none;cursor:not-allowed}.menu-item-reorder-nav button{position:relative;overflow:hidden;float:left;display:block;width:30px;height:40px;color:#82878c;text-indent:-9999px;cursor:pointer;background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;outline:0}.menu-item-reorder-nav button:before{display:inline-block;position:absolute;top:0;right:0;width:100%;height:100%;font:400 20px/40px dashicons;text-align:center;text-indent:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-reorder-nav button:focus,.menu-item-reorder-nav button:hover{color:#191e23;background:#eee}.menus-move-down:before{content:'\f347'}.menus-move-up:before{content:'\f343'}.menus-move-left:before{content:'\f341'}.menus-move-right:before{content:'\f345'}.move-down-disabled .menus-move-down,.move-left-disabled .menus-move-left,.move-right-disabled .menus-move-right,.move-up-disabled .menus-move-up{color:#d5d5d5!important;background-color:#fff!important;cursor:default;pointer-events:none}.menu-item-reorder-nav:before{content:"";display:block;position:absolute;left:-10px;width:10px;height:40px;background:-webkit-linear-gradient(left,rgba(250,250,250,0) 0,rgba(250,250,250,1) 100%);background:-webkit-gradient(linear,left top,right top,from(rgba(250,250,250,0)),to(rgba(250,250,250,1)));background:-webkit-linear-gradient(left,rgba(250,250,250,0) 0,rgba(250,250,250,1) 100%);background:linear-gradient(to right,rgba(250,250,250,0) 0,rgba(250,250,250,1) 100%)}.reordering .menu-item .item-controls,.reordering .menu-item .item-type{display:none}.reordering .menu-item-reorder-nav{display:block}.customize-control input.menu-name-field{width:100%;margin:12px 0}.wp-customizer .menu-item .item-edit{position:absolute;right:-19px;top:2px;display:block;width:30px;height:38px;margin-right:0!important;outline:0;overflow:hidden;cursor:pointer}.customize-control-nav_menu_item .item-edit:focus{color:#0073aa;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-customizer .menu-item .item-edit .toggle-indicator{display:inline-block;font-size:20px;line-height:1}.wp-customizer .menu-item .item-edit .toggle-indicator:after{content:'\f140';font:400 20px/1 dashicons;color:#a0a5aa;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after{content:'\f142'}.wp-customizer .menu-item-settings p.description{font-style:normal}.wp-customizer .menu-settings dl{margin:12px 0 0;padding:0}.wp-customizer .menu-settings .checkbox-input{margin-top:8px}.wp-customizer .menu-settings .menu-theme-locations{border-top:1px solid #ccc}.wp-customizer .menu-settings{margin-top:36px;border-top:none}.menu-settings .customize-control-checkbox label{line-height:1}.menu-settings .customize-control.customize-control-checkbox{margin-bottom:8px}.customize-control-menu{margin-top:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle{color:#555}.customize-screen-options-toggle{background:0 0;border:none;color:#555;cursor:pointer;margin:0;padding:20px;position:absolute;right:0;top:30px}#customize-controls .customize-info .customize-help-toggle{padding:20px}#customize-controls .customize-info .customize-help-toggle:before{padding:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:#0073aa}#customize-controls .customize-info .customize-help-toggle:focus,.customize-screen-options-toggle:focus{outline:0}.customize-screen-options-toggle:before{-moz-osx-font-smoothing:grayscale;border:none;content:"\f111";display:block;font:18px/1 dashicons;padding:5px;text-align:center;text-decoration:none!important;text-indent:0;left:6px;position:absolute;top:6px}#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);-webkit-border-radius:100%;border-radius:100%}.wp-customizer #screen-options-wrap{display:none;background:#fff;border-top:1px solid #ddd;padding:4px 15px 0}.wp-customizer .metabox-prefs label{display:block;padding-right:0;line-height:30px}#accordion-panel-nav_menus .field-attr-title,#accordion-panel-nav_menus .field-css-classes,#accordion-panel-nav_menus .field-description,#accordion-panel-nav_menus .field-link-target,#accordion-panel-nav_menus .field-xfn{display:none}#accordion-panel-nav_menus.field-attr-title-active .field-attr-title,#accordion-panel-nav_menus.field-css-classes-active .field-css-classes,#accordion-panel-nav_menus.field-description-active .field-description,#accordion-panel-nav_menus.field-link-target-active .field-link-target,#accordion-panel-nav_menus.field-xfn-active .field-xfn{display:block}.menu-item-depth-0{margin-left:0}.menu-item-depth-1{margin-left:20px}.menu-item-depth-2{margin-left:40px}.menu-item-depth-3{margin-left:60px}.menu-item-depth-4{margin-left:80px}.menu-item-depth-5{margin-left:100px}.menu-item-depth-6{margin-left:120px}.menu-item-depth-7{margin-left:140px}.menu-item-depth-8{margin-left:160px}.menu-item-depth-9{margin-left:180px}.menu-item-depth-10{margin-left:200px}.menu-item-depth-11{margin-left:220px}.menu-item-depth-0>.menu-item-bar{margin-right:0}.menu-item-depth-1>.menu-item-bar{margin-right:20px}.menu-item-depth-2>.menu-item-bar{margin-right:40px}.menu-item-depth-3>.menu-item-bar{margin-right:60px}.menu-item-depth-4>.menu-item-bar{margin-right:80px}.menu-item-depth-5>.menu-item-bar{margin-right:100px}.menu-item-depth-6>.menu-item-bar{margin-right:120px}.menu-item-depth-7>.menu-item-bar{margin-right:140px}.menu-item-depth-8>.menu-item-bar{margin-right:160px}.menu-item-depth-9>.menu-item-bar{margin-right:180px}.menu-item-depth-10>.menu-item-bar{margin-right:200px}.menu-item-depth-11>.menu-item-bar{margin-right:220px}.menu-item-depth-0 .menu-item-transport{margin-left:0}.menu-item-depth-1 .menu-item-transport{margin-left:-20px}.menu-item-depth-3 .menu-item-transport{margin-left:-60px}.menu-item-depth-4 .menu-item-transport{margin-left:-80px}.menu-item-depth-2 .menu-item-transport{margin-left:-40px}.menu-item-depth-5 .menu-item-transport{margin-left:-100px}.menu-item-depth-6 .menu-item-transport{margin-left:-120px}.menu-item-depth-7 .menu-item-transport{margin-left:-140px}.menu-item-depth-8 .menu-item-transport{margin-left:-160px}.menu-item-depth-9 .menu-item-transport{margin-left:-180px}.menu-item-depth-10 .menu-item-transport{margin-left:-200px}.menu-item-depth-11 .menu-item-transport{margin-left:-220px}.reordering .menu-item-depth-0{margin-left:0}.reordering .menu-item-depth-1{margin-left:15px}.reordering .menu-item-depth-2{margin-left:30px}.reordering .menu-item-depth-3{margin-left:45px}.reordering .menu-item-depth-4{margin-left:60px}.reordering .menu-item-depth-5{margin-left:75px}.reordering .menu-item-depth-6{margin-left:90px}.reordering .menu-item-depth-7{margin-left:105px}.reordering .menu-item-depth-8{margin-left:120px}.reordering .menu-item-depth-9{margin-left:135px}.reordering .menu-item-depth-10{margin-left:150px}.reordering .menu-item-depth-11{margin-left:165px}.reordering .menu-item-depth-0>.menu-item-bar{margin-right:0}.reordering .menu-item-depth-1>.menu-item-bar{margin-right:15px}.reordering .menu-item-depth-2>.menu-item-bar{margin-right:30px}.reordering .menu-item-depth-3>.menu-item-bar{margin-right:45px}.reordering .menu-item-depth-4>.menu-item-bar{margin-right:60px}.reordering .menu-item-depth-5>.menu-item-bar{margin-right:75px}.reordering .menu-item-depth-6>.menu-item-bar{margin-right:90px}.reordering .menu-item-depth-7>.menu-item-bar{margin-right:105px}.reordering .menu-item-depth-8>.menu-item-bar{margin-right:120px}.reordering .menu-item-depth-9>.menu-item-bar{margin-right:135px}.reordering .menu-item-depth-10>.menu-item-bar{margin-right:150px}.reordering .menu-item-depth-11>.menu-item-bar{margin-right:165px}.control-section-nav_menu .menu .menu-item-edit-active{margin-left:0}.control-section-nav_menu .menu .menu-item-edit-active .menu-item-bar{margin-right:0}.control-section-nav_menu .menu .sortable-placeholder{margin-top:0;margin-bottom:1px;max-width:-webkit-calc(100% - 2px);max-width:calc(100% - 2px);float:left;display:list-item;border-color:#a0a5aa}.menu-item-transport li.customize-control{float:none}.control-section-nav_menu .menu ul.menu-item-transport .menu-item-bar{margin-top:0}.wp-full-overlay-main{right:auto;width:100%}.adding-menu-items .control-section{opacity:.4}.adding-menu-items .control-panel.control-section,.adding-menu-items .control-section.open{opacity:1}#customize-theme-controls .add-new-menu-item{cursor:pointer;float:right;margin-left:10px;-webkit-transition:all .2s;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}.add-new-menu-item:before{content:"\f132";display:inline-block;position:relative;left:-2px;top:-1px;font:400 20px/1 dashicons;vertical-align:middle;-webkit-transition:all .2s;transition:all .2s;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.add-menu-toggle.open,.add-menu-toggle.open:hover,.adding-menu-items .add-new-menu-item,.adding-menu-items .add-new-menu-item:hover{background:#eee;border-color:#929793;color:#32373c;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}#accordion-section-add_menu .add-new-menu-item.open:before,.adding-menu-items .add-new-menu-item:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.menu-item-bar .item-delete{color:#a00;position:absolute;top:2px;right:-19px;width:30px;height:38px;cursor:pointer;display:none}.menu-item-bar .item-delete:before{content:"\f335";font:400 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:9px;left:5px}.ie8 .menu-item-bar .item-delete:before{top:-10px}.menu-item-bar .item-delete:focus,.menu-item-bar .item-delete:hover{color:red}.menu-item-bar .item-delete:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.adding-menu-items .menu-item-bar .item-edit{display:none}.adding-menu-items .menu-item-bar .item-delete{display:block}#available-menu-items .item{position:static}#available-menu-items{position:absolute;top:0;bottom:0;left:-301px;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:300px;margin:0;z-index:4;background:#eee;-webkit-transition:left .18s;transition:left .18s;border-right:1px solid #ddd}#available-menu-items.opening{overflow-y:hidden}#available-menu-items #available-menu-items-search.open{height:100%;border-bottom:none}#available-menu-items .accordion-section-title{border-left:none;border-right:none;background:#fff}#available-menu-items #available-menu-items-search .accordion-section-title,#available-menu-items .open .accordion-section-title{background:#eee}#available-menu-items .accordion-section-title:after{content:none!important}#available-menu-items .accordion-section-title .toggle-indicator{display:inline-block;font-size:20px;line-height:1}#available-menu-items .accordion-section-title .toggle-indicator:after{content:'\f140';font:400 20px/1 dashicons;color:#a0a5aa;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}#available-menu-items .accordion-section-title:hover .toggle-indicator:after{color:#777}#available-menu-items .open .accordion-section-title .toggle-indicator:after{content:'\f142'}button.not-a-button{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;-webkit-border-radius:0;border-radius:0;outline:0;padding:0;margin:0}#available-menu-items .accordion-section-title button{display:block;width:28px;height:35px;position:absolute;top:5px;right:5px;cursor:pointer}#available-menu-items .accordion-section-title button:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#available-menu-items .accordion-section-title .no-items,#available-menu-items .cannot-expand .accordion-section-title .spinner,#available-menu-items .cannot-expand .accordion-section-title>button{display:none}#available-menu-items-search.cannot-expand .accordion-section-title .spinner{display:block}#available-menu-items .cannot-expand .accordion-section-title .no-items{display:block;color:#777;font-weight:400;float:right;margin-left:5px}#available-menu-items .accordion-section-content{overflow-y:auto;background:0 0;padding:1px 15px 15px;margin:0;min-height:120px;max-height:290px}#available-menu-items #available-menu-items-search .accordion-section-content{position:absolute;left:1px;top:60px;bottom:0;max-height:none;width:100%;padding:1px 15px 15px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#available-menu-items .menu-item-tpl{margin:0}#custom-menu-item-name.invalid,#custom-menu-item-url.invalid,.menu-name-field.invalid,.menu-name-field.invalid:focus{border:1px solid red}#available-menu-items .item-tpl{position:relative;padding:20px 15px 20px 60px;border-bottom:1px solid #e4e4e4;cursor:pointer;display:none}#available-menu-items .item-tpl.selected,#available-menu-items .item-tpl:hover{background:#eee}#available-menu-items .menu-item-handle .item-type{padding-right:0}#available-menu-items .menu-item-handle .item-title{padding-left:20px}#available-menu-items .item-top,#available-menu-items .item-top:hover{border:none;background:0 0;-webkit-box-shadow:none;box-shadow:none}#available-menu-items .menu-item-handle{cursor:pointer;-webkit-box-shadow:none;box-shadow:none;margin-top:-1px}#available-menu-items .menu-item-handle:hover{z-index:1}#available-menu-items .item-title h4{padding:0 0 5px;font-size:14px}#available-menu-items .item-add{position:absolute;top:1px;left:1px;color:#82878c;width:30px;height:38px;cursor:pointer}#available-menu-items .menu-item-handle .item-add:focus{color:#23282d;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#available-menu-items .item-add:before{content:"\f543";font:400 20px/1 dashicons;position:relative;left:2px;top:3px}#available-menu-items .menu-item-handle.item-added .item-add:focus,#available-menu-items .menu-item-handle.item-added .item-title,#available-menu-items .menu-item-handle.item-added .item-type,#available-menu-items .menu-item-handle.item-added:hover .item-add{color:#82878c}#available-menu-items .menu-item-handle.item-added .item-add:before{content:"\f147"}#available-menu-items .accordion-section-title.loading .spinner,#available-menu-items-search.loading .accordion-section-title .spinner{visibility:visible;margin:0 20px}#available-menu-items-search .clear-results{position:absolute;top:20px;right:20px;width:20px;height:20px;cursor:pointer;color:#a00;text-decoration:none}#available-menu-items-search .clear-results,#available-menu-items-search.loading .clear-results.is-visible{display:none}#available-menu-items-search .clear-results.is-visible{display:block}#available-menu-items-search .clear-results:before{content:"\f335";font:400 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#available-menu-items-search .clear-results:focus,#available-menu-items-search .clear-results:hover{color:red}#available-menu-items-search .clear-results:focus{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#available-menu-items-search .clear-results:focus,.menu-delete:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#available-menu-items-search .spinner{position:absolute;top:20px;margin:0!important;right:20px}#available-menu-items-search input{padding:6px 10px;width:100%}#available-menu-items-search .accordion-section-title{padding:12px 15px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#available-menu-items-search .accordion-section-title:after{display:none}#available-menu-items-search .accordion-section-content:empty{min-height:0;padding:0}#available-menu-items-search.loading .accordion-section-content div{opacity:.5}#available-menu-items-search.loading.loading-more .accordion-section-content div{opacity:1}#customize-preview{-webkit-transition:all .2s;transition:all .2s}body.adding-menu-items #available-menu-items{left:0;visibility:visible}body.adding-menu-items .wp-full-overlay-main{left:300px}body.adding-menu-items #customize-preview{opacity:.4}.menu-item-handle .spinner{display:none;float:left;margin:0 8px 0 0}.nav-menu-inserted-item-loading .spinner{display:block}.nav-menu-inserted-item-loading .menu-item-handle .item-type{padding:0 0 0 8px}.added-menu-item .menu-item-handle.loading,.nav-menu-inserted-item-loading .menu-item-handle{padding:10px 15px 10px 8px;cursor:default;opacity:.5;background:#fff;color:#727773}.added-menu-item .menu-item-handle{-webkit-transition-property:opacity,background,color;transition-property:opacity,background,color;-webkit-transition-duration:1.25s;transition-duration:1.25s;-webkit-transition-timing-function:cubic-bezier(.25,-2.5,.75,8);transition-timing-function:cubic-bezier(.25,-2.5,.75,8)}#accordion-section-add_menu{margin:15px 12px}.new-menu-section-content{display:none;padding:15px 0 0;clear:both}#accordion-section-add_menu .accordion-section-title{padding-left:45px}#accordion-section-add_menu .accordion-section-title:before{font:400 20px/1 dashicons;position:absolute;top:12px;left:14px;content:"\f132"}#create-new-menu-submit{float:right;margin:0 0 12px}.menu-delete-item{display:block;float:left;padding:1em 0;width:100%}#available-menu-items .customize-section-title,li.assigned-to-menu-location .menu-delete-item{display:none}li.assigned-to-menu-location .add-new-menu-item{margin-bottom:1em}.menu-delete{color:#a00;cursor:pointer;text-decoration:underline}.menu-delete:focus,.menu-delete:hover{color:red;text-decoration:none}.menu-delete:focus{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.menu-item-handle{margin-top:-1px}.ui-sortable-disabled .menu-item-handle{cursor:default}.menu-item-handle:hover{position:relative;z-index:10;color:#0073aa}#available-menu-items .menu-item-handle:hover .item-add,.menu-item-handle:hover .item-edit,.menu-item-handle:hover .item-type{color:#0073aa}.menu-item-edit-active .menu-item-handle{border-color:#999;border-bottom:none}.customize-control-nav_menu_item{margin-bottom:0}.customize-control-nav_menu{margin-top:12px}@media screen and (max-width:782px){#available-menu-items #available-menu-items-search .accordion-section-content{top:63px}}@media screen and (max-width:640px){body.adding-menu-items div#available-menu-items{top:46px;left:0;z-index:10;width:100%}#available-menu-items #available-menu-items-search .accordion-section-content{top:133px}#available-menu-items .customize-section-title{display:block;margin:0}#available-menu-items .customize-section-back{height:69px}#available-menu-items .customize-section-title h3{font-size:20px;font-weight:200;padding:9px 10px 12px 14px;margin:0;line-height:24px;color:#555;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-menu-items .customize-section-title .customize-action{font-size:13px;display:block;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}} \ No newline at end of file diff --git a/wp-admin/css/customize-widgets-rtl.css b/wp-admin/css/customize-widgets-rtl.css deleted file mode 100644 index 95c682d3d6..0000000000 --- a/wp-admin/css/customize-widgets-rtl.css +++ /dev/null @@ -1,694 +0,0 @@ -.wp-full-overlay-sidebar { - overflow: visible; -} - -/** - * Hide all sidebar sections by default, only show them (via JS) once the - * preview loads and we know whether the sidebars are used in the template. - */ - -.control-section.control-section-sidebar, -.customize-control-sidebar_widgets label, -.customize-control-sidebar_widgets .hide-if-js { - /* The link in .customize-control-sidebar_widgets .hide-if-js will fail if it ever gets used. */ - display: none; -} - -.control-section.control-section-sidebar .accordion-section-content.ui-sortable { - overflow: visible; -} - -.customize-control-widget_form .widget-top { - -webkit-transition: opacity 0.5s; - transition: opacity 0.5s; -} - -.customize-control-widget_form:not(.widget-rendered) .widget-top { - opacity: 0.5; -} - -.customize-control-widget_form .widget-control-save { - display: none; -} - -.customize-control-widget_form .spinner { - visibility: hidden; - margin-top: 0; -} - -.customize-control-widget_form.previewer-loading .spinner { - visibility: visible; -} - -.customize-control-widget_form.widget-form-disabled .widget-content { - opacity: 0.7; - pointer-events: none; - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.customize-control-widget_form .widget { - margin-bottom: 0; -} - -.customize-control-widget_form.wide-widget-control .widget-inside { - position: fixed; - right: 299px; - top: 25%; - border: 1px solid rgb(229, 229, 229); - overflow: auto; -} -.customize-control-widget_form.wide-widget-control .widget-inside > .form { - padding: 20px; -} - -.customize-control-widget_form.wide-widget-control .widget-top { - -webkit-transition: background-color 0.4s; - transition: background-color 0.4s; -} -.customize-control-widget_form.wide-widget-control.expanding .widget-top, -.customize-control-widget_form.wide-widget-control.expanded:not(.collapsing) .widget-top { - background-color: rgb(227, 227, 227); -} - -.widget-inside { - padding: 1px 10px 10px 10px; - border-top: none; - line-height: 16px; -} - -.widget-top { - cursor: move; -} - -.customize-control-widget_form.expanded a.widget-action:after { - content: "\f142"; -} - -.customize-control-widget_form.wide-widget-control a.widget-action:after { - content: "\f141"; -} - -.customize-control-widget_form.wide-widget-control.expanded a.widget-action:after { - content: "\f139"; -} - -.widget-title-action { - cursor: pointer; -} - -.customize-control-widget_form .widget .customize-control-title { - cursor: move; -} - -.control-section.accordion-section.highlighted > .accordion-section-title, -.customize-control-widget_form.highlighted { - outline: none; - -webkit-box-shadow: 0 0 2px rgba(30,140,190,0.8); - box-shadow: 0 0 2px rgba(30,140,190,0.8); - position: relative; - z-index: 1; -} - -#widget-customizer-control-templates { - display: none; -} - -/** -* Widget reordering styles -**/ - -.reorder-toggle { - float: left; - padding: 5px 8px; - text-decoration: none; - cursor: pointer; - outline: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} -.reorder-toggle:focus { - outline: 1px dotted; -} - -.reorder-done, -.reordering .reorder { - display: none; -} - -.reordering .reorder-done { - display: block; - color: #0073aa; -} - -.reordering .reorder-done:hover, -.reordering .reorder-done:active { - color: #00a0d2; -} - -#customize-theme-controls .reordering .add-new-widget { - opacity: 0.2; - pointer-events: none; - cursor: not-allowed; -} - -#customize-theme-controls .widget-reorder-nav { - display: none; - float: left; - background-color: #fafafa; -} - -.widget-reorder-nav span { - position: relative; - overflow: hidden; - float: right; - display: block; - width: 33px; /* was 42px for mobile */ - height: 43px; - color: #82878c; - text-indent: -9999px; - cursor: pointer; - outline: none; -} - -.widget-reorder-nav span:before { - display: inline-block; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - font: normal 20px/43px 'dashicons'; - text-align: center; - text-indent: 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.widget-reorder-nav span:hover, -.widget-reorder-nav span:focus { - color: #444; - background: #eee; -} - -.move-widget:before { - content: '\f504'; -} - -.move-widget-down:before { - content: '\f347'; -} - -.move-widget-up:before { - content: '\f343'; -} - -#customize-theme-controls .first-widget .move-widget-up, -#customize-theme-controls .last-widget .move-widget-down { - color: #d5d5d5; - cursor: default; -} - -#customize-theme-controls .move-widget-area { - display: none; - background: #fff; - border: 1px solid #dedede; - border-top: none; - cursor: auto; -} - -#customize-theme-controls .reordering .move-widget-area.active { - display: block; -} - -#customize-theme-controls .move-widget-area .description { - margin: 0; - padding: 15px 20px; - font-weight: 400; -} - -#customize-theme-controls .widget-area-select { - margin: 0; - padding: 0; - list-style: none; -} - -#customize-theme-controls .widget-area-select li { - position: relative; - margin: 0; - padding: 13px 42px 15px 15px; - color: #555; - border-top: 1px solid #eee; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -#customize-theme-controls .widget-area-select li:before { - display: none; - content: '\f147'; - position: absolute; - top: 12px; - right: 10px; - font: normal 20px/1 'dashicons'; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -#customize-theme-controls .widget-area-select li:last-child { - border-bottom: 1px solid #eee; -} - -#customize-theme-controls .widget-area-select .selected { - color: #fff; - text-shadow: 0 -1px 0 rgba(0,0,0,.4); - background: #00a0d2; -} - -#customize-theme-controls .widget-area-select .selected:before { - display: block; -} - -#customize-theme-controls .move-widget-actions { - text-align: left; - padding: 12px; -} - -#customize-theme-controls .reordering .widget-title-action { - display: none; -} - -#customize-theme-controls .reordering .widget-reorder-nav { - display: block; -} - - -/** - * Styles for new widget addition panel - */ -.wp-full-overlay-main { - left: auto; /* this overrides a right: 0; which causes the preview to resize, I'd rather have it go off screen at the normal size. */ - width: 100%; -} - -#customize-theme-controls .add-new-widget { - cursor: pointer; - float: left; - margin-right: 10px; - -webkit-transition: all 0.2s; - transition: all 0.2s; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - outline: none; -} - -.add-new-widget:before { - content: "\f132"; - display: inline-block; - position: relative; - right: -2px; - top: -1px; - font: normal 20px/1 'dashicons'; - vertical-align: middle; - -webkit-transition: all 0.2s; - transition: all 0.2s; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -body.adding-widget .add-new-widget, -body.adding-widget .add-new-widget:hover { - background: #eee; - border-color: #999; - color: #32373c; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); -} -body.adding-widget .add-new-widget:before { - -webkit-transform: rotate(-45deg); - -ms-transform: rotate(-45deg); - transform: rotate(-45deg); -} - -#available-widgets .widget { - position: static; -} - -/* override widgets admin page rules in wp-admin/css/wp-admin.css */ -#widgets-left #available-widgets .widget { - float: none !important; - width: auto !important; -} - -#available-widgets { - position: absolute; - top: 0; - bottom: 0; - right: -301px; - visibility: hidden; - overflow: auto; - width: 300px; - margin: 0; - z-index: 1; - background: #eee !important; - -webkit-transition: right .18s; - transition: right .18s; - border-left: 1px solid #ddd; -} - -.ios #available-widgets { - -webkit-transition: right 0s; - transition: right 0s; -} - -#available-widgets-list { - top: 46px; - position: absolute; - overflow: auto; - bottom: 0; - width: 100%; -} - -#available-widgets-filter { - position: fixed; - top: 0; - z-index: 1; - width: 300px; - height: 46px; - padding: 8px 13px 7px 17px; - background: #eee; - border-bottom: 1px solid #e4e4e4; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -#available-widgets-filter input { - padding: 5px 10px 2px 10px; - width: 100%; -} - -#available-widgets .widget-tpl { - position: relative; - padding: 20px 60px 20px 15px; - background: #fff; - border-bottom: 1px solid #e4e4e4; - cursor: pointer; - display: none; -} - -#available-widgets .widget-tpl:hover, -#available-widgets .widget-tpl.selected { - background: #eee; - border-bottom-color: #ccc; -} - -#available-widgets .widget-top, -#available-widgets .widget-top:hover { - border: none; - background: transparent; - -webkit-box-shadow: none; - box-shadow: none; -} - -#available-widgets .widget-title h4 { - padding: 0 0 5px; - font-size: 14px; -} - -#available-widgets .widget .widget-description { - padding: 0; - color: #777; -} - -#customize-preview { - -webkit-transition: all 0.2s; - transition: all 0.2s; -} - -body.adding-widget #available-widgets { - right: 0; - visibility: visible; -} - -body.adding-widget .wp-full-overlay-main { - right: 300px; -} - -body.adding-widget #customize-preview { - opacity: 0.4; -} - - -/** - * Widget Icon styling - * No plurals in naming. - * Ordered from lowest to highest specificity. - **/ -#available-widgets .widget-title { - position: relative; -} - -#available-widgets .widget-title:before { - content: "\f132"; - position: absolute; - top: -3px; - left: 100%; - margin-left: 20px; - width: 20px; - height: 20px; - color: #32373c; - font: normal 20px/1 'dashicons'; - text-align: center; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -/* smiley */ -#available-widgets [class*="easy"] .widget-title:before { content: "\f328"; top: -4px; } - -/* star-filled */ -#available-widgets [class*="super"] .widget-title:before, -#available-widgets [class*="like"] .widget-title:before { content: "\f155"; top: -4px; } - -/* wordpress */ -#available-widgets [class*="meta"] .widget-title:before { content: "\f120"; } - -/* archive-box */ -#available-widgets [class*="archives"] .widget-title:before { content: "\f480"; top: -4px; } - -/* category */ -#available-widgets [class*="categor"] .widget-title:before { content: "\f318"; top: -4px; } - -/* comments */ -#available-widgets [class*="comment"] .widget-title:before, -#available-widgets [class*="testimonial"] .widget-title:before, -#available-widgets [class*="chat"] .widget-title:before { content: "\f101"; } - -/* post */ -#available-widgets [class*="post"] .widget-title:before { content: "\f109"; } - -/* admin-page */ -#available-widgets [class*="page"] .widget-title:before { content: "\f105"; } - -/* text */ -#available-widgets [class*="text"] .widget-title:before { content: "\f478"; } - -/* links */ -#available-widgets [class*="link"] .widget-title:before { content: "\f103"; } - -/* search */ -#available-widgets [class*="search"] .widget-title:before { content: "\f179"; } - -/* menu */ -#available-widgets [class*="menu"] .widget-title:before, -#available-widgets [class*="nav"] .widget-title:before { content: "\f333"; } - -/* tag-cloud */ -#available-widgets [class*="tag"] .widget-title:before { content: "\f479"; } - -/* rss */ -#available-widgets [class*="rss"] .widget-title:before { content: "\f303"; top: -6px; } - -/* calendar */ -#available-widgets [class*="event"] .widget-title:before, -#available-widgets [class*="calendar"] .widget-title:before { content: "\f145"; top: -4px;} - -/* format-image */ -#available-widgets [class*="image"] .widget-title:before, -#available-widgets [class*="photo"] .widget-title:before, -#available-widgets [class*="slide"] .widget-title:before, -#available-widgets [class*="instagram"] .widget-title:before { content: "\f128"; } - -/* format-gallery */ -#available-widgets [class*="album"] .widget-title:before, -#available-widgets [class*="galler"] .widget-title:before { content: "\f161"; } - -/* format-video */ -#available-widgets [class*="video"] .widget-title:before, -#available-widgets [class*="tube"] .widget-title:before { content: "\f126"; } - -/* format-audio */ -#available-widgets [class*="music"] .widget-title:before, -#available-widgets [class*="radio"] .widget-title:before, -#available-widgets [class*="audio"] .widget-title:before { content: "\f127"; } - -/* admin-users */ -#available-widgets [class*="login"] .widget-title:before, -#available-widgets [class*="user"] .widget-title:before, -#available-widgets [class*="member"] .widget-title:before, -#available-widgets [class*="avatar"] .widget-title:before, -#available-widgets [class*="subscriber"] .widget-title:before, -#available-widgets [class*="profile"] .widget-title:before, -#available-widgets [class*="grofile"] .widget-title:before { content: "\f110"; } - -/* cart */ -#available-widgets [class*="commerce"] .widget-title:before, -#available-widgets [class*="shop"] .widget-title:before, -#available-widgets [class*="cart"] .widget-title:before { content: "\f174"; top: -4px; } - -/* shield */ -#available-widgets [class*="secur"] .widget-title:before, -#available-widgets [class*="firewall"] .widget-title:before { content: "\f332"; } - -/* chart-bar */ -#available-widgets [class*="analytic"] .widget-title:before, -#available-widgets [class*="stat"] .widget-title:before, -#available-widgets [class*="poll"] .widget-title:before { content: "\f185"; } - -/* feedback */ -#available-widgets [class*="form"] .widget-title:before { content: "\f175"; } - -/* email-alt */ -#available-widgets [class*="subscribe"] .widget-title:before, -#available-widgets [class*="news"] .widget-title:before, -#available-widgets [class*="contact"] .widget-title:before, -#available-widgets [class*="mail"] .widget-title:before { content: "\f466"; } - -/* share */ -#available-widgets [class*="share"] .widget-title:before, -#available-widgets [class*="socia"] .widget-title:before { content: "\f237"; } - -/* translation */ -#available-widgets [class*="lang"] .widget-title:before, -#available-widgets [class*="translat"] .widget-title:before { content: "\f326"; } - -/* location-alt */ -#available-widgets [class*="locat"] .widget-title:before, -#available-widgets [class*="map"] .widget-title:before { content: "\f231"; } - -/* download */ -#available-widgets [class*="download"] .widget-title:before { content: "\f316"; } - -/* cloud */ -#available-widgets [class*="weather"] .widget-title:before { content: "\f176"; top: -4px;} - -/* facebook */ -#available-widgets [class*="facebook"] .widget-title:before { content: "\f304"; } - -/* twitter */ -#available-widgets [class*="tweet"] .widget-title:before, -#available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; } - -#available-widgets .customize-section-title { - display: none; -} - -@media screen and (max-height: 700px) and (min-width: 981px) { - .customize-control-widget { - margin-bottom: 0; - } - .widget-top { - -webkit-box-shadow: none; - box-shadow: none; - margin-top: -1px; - } - .widget-top:hover { - position: relative; - z-index: 1; - } - .last-widget { - margin-bottom: 15px; - } - .widget-title h4 { - padding: 13px 15px; - } - .widget-top a.widget-action:after { - padding-top: 9px; - } - .widget-reorder-nav span { - height: 39px; - } - .widget-reorder-nav span:before { - line-height: 39px; - } - #customize-theme-controls .widget-area-select li { - padding: 9px 42px 11px 15px; - } - #customize-theme-controls .widget-area-select li:before { - top: 8px; - } -} - -@media screen and ( max-width: 640px ) { - body.adding-widget div#available-widgets { - top: 46px; - right: 0; - z-index: 10; - width: 100%; - } - - #available-widgets .customize-section-title { - display: block; - margin: 0; - } - - #available-widgets .customize-section-back { - height: 69px; - } - - #available-widgets .customize-section-title h3 { - font-size: 20px; - font-weight: 200; - padding: 9px 14px 12px 10px; - margin: 0; - line-height: 24px; - color: #555; - display: block; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - - #available-widgets .customize-section-title .customize-action { - font-size: 13px; - display: block; - font-weight: 400; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - - #available-widgets-filter { - position: relative; - width: 100%; - background: #fff; - height: auto; - padding: 10px 15px; - } - - #available-widgets-list { - top: 140px; - } -} diff --git a/wp-admin/css/customize-widgets-rtl.min.css b/wp-admin/css/customize-widgets-rtl.min.css deleted file mode 100644 index 9d9cc391ca..0000000000 --- a/wp-admin/css/customize-widgets-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -.control-section.control-section-sidebar .accordion-section-content.ui-sortable,.wp-full-overlay-sidebar{overflow:visible}#widget-customizer-control-templates,.control-section.control-section-sidebar,.customize-control-sidebar_widgets .hide-if-js,.customize-control-sidebar_widgets label,.customize-control-widget_form .widget-control-save,.reorder-done,.reordering .reorder{display:none}.customize-control-widget_form .widget-top{-webkit-transition:opacity .5s;transition:opacity .5s}.customize-control-widget_form:not(.widget-rendered) .widget-top{opacity:.5}.customize-control-widget_form .spinner{visibility:hidden;margin-top:0}.customize-control-widget_form.previewer-loading .spinner{visibility:visible}.customize-control-widget_form.widget-form-disabled .widget-content{opacity:.7;pointer-events:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.customize-control-widget_form .widget{margin-bottom:0}.customize-control-widget_form.wide-widget-control .widget-inside{position:fixed;right:299px;top:25%;border:1px solid #e5e5e5;overflow:auto}.customize-control-widget_form.wide-widget-control .widget-inside>.form{padding:20px}.customize-control-widget_form.wide-widget-control .widget-top{-webkit-transition:background-color .4s;transition:background-color .4s}.customize-control-widget_form.wide-widget-control.expanded:not(.collapsing) .widget-top,.customize-control-widget_form.wide-widget-control.expanding .widget-top{background-color:#e3e3e3}.widget-inside{padding:1px 10px 10px;border-top:none;line-height:16px}.widget-top{cursor:move}.customize-control-widget_form.expanded a.widget-action:after{content:"\f142"}.customize-control-widget_form.wide-widget-control a.widget-action:after{content:"\f141"}.customize-control-widget_form.wide-widget-control.expanded a.widget-action:after{content:"\f139"}.widget-title-action{cursor:pointer}.customize-control-widget_form .widget .customize-control-title{cursor:move}.control-section.accordion-section.highlighted>.accordion-section-title,.customize-control-widget_form.highlighted{outline:0;-webkit-box-shadow:0 0 2px rgba(30,140,190,.8);box-shadow:0 0 2px rgba(30,140,190,.8);position:relative;z-index:1}.reorder-toggle{float:left;padding:5px 8px;text-decoration:none;cursor:pointer;outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reorder-toggle:focus{outline:dotted 1px}.reordering .reorder-done{display:block;color:#0073aa}.reordering .reorder-done:active,.reordering .reorder-done:hover{color:#00a0d2}#customize-theme-controls .reordering .add-new-widget{opacity:.2;pointer-events:none;cursor:not-allowed}#customize-theme-controls .widget-reorder-nav{display:none;float:left;background-color:#fafafa}.widget-reorder-nav span{position:relative;overflow:hidden;float:right;display:block;width:33px;height:43px;color:#82878c;text-indent:-9999px;cursor:pointer;outline:0}.widget-reorder-nav span:before{display:inline-block;position:absolute;top:0;left:0;width:100%;height:100%;font:400 20px/43px dashicons;text-align:center;text-indent:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.widget-reorder-nav span:focus,.widget-reorder-nav span:hover{color:#444;background:#eee}.move-widget:before{content:'\f504'}.move-widget-down:before{content:'\f347'}.move-widget-up:before{content:'\f343'}#customize-theme-controls .first-widget .move-widget-up,#customize-theme-controls .last-widget .move-widget-down{color:#d5d5d5;cursor:default}#customize-theme-controls .move-widget-area{display:none;background:#fff;border:1px solid #dedede;border-top:none;cursor:auto}#customize-theme-controls .reordering .move-widget-area.active{display:block}#customize-theme-controls .move-widget-area .description{margin:0;padding:15px 20px;font-weight:400}#customize-theme-controls .widget-area-select{margin:0;padding:0;list-style:none}#customize-theme-controls .widget-area-select li{position:relative;margin:0;padding:13px 42px 15px 15px;color:#555;border-top:1px solid #eee;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#customize-theme-controls .widget-area-select li:before{display:none;content:'\f147';position:absolute;top:12px;right:10px;font:400 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#available-widgets .widget-title:before,.add-new-widget:before{content:"\f132";-moz-osx-font-smoothing:grayscale}#customize-theme-controls .widget-area-select li:last-child{border-bottom:1px solid #eee}#customize-theme-controls .widget-area-select .selected{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.4);background:#00a0d2}#customize-theme-controls .widget-area-select .selected:before{display:block}#customize-theme-controls .move-widget-actions{text-align:left;padding:12px}#customize-theme-controls .reordering .widget-title-action{display:none}#customize-theme-controls .reordering .widget-reorder-nav{display:block}.wp-full-overlay-main{left:auto;width:100%}#customize-theme-controls .add-new-widget{cursor:pointer;float:left;margin-right:10px;-webkit-transition:all .2s;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}.add-new-widget:before{display:inline-block;position:relative;right:-2px;top:-1px;font:400 20px/1 dashicons;vertical-align:middle;-webkit-transition:all .2s;transition:all .2s;-webkit-font-smoothing:antialiased}body.adding-widget .add-new-widget,body.adding-widget .add-new-widget:hover{background:#eee;border-color:#999;color:#32373c;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}body.adding-widget .add-new-widget:before{-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}#available-widgets .widget{position:static}#widgets-left #available-widgets .widget{float:none!important;width:auto!important}#available-widgets{position:absolute;top:0;bottom:0;right:-301px;visibility:hidden;overflow:auto;width:300px;margin:0;z-index:1;background:#eee!important;-webkit-transition:right .18s;transition:right .18s;border-left:1px solid #ddd}.ios #available-widgets{-webkit-transition:right 0s;transition:right 0s}#available-widgets-list{top:46px;position:absolute;overflow:auto;bottom:0;width:100%}#available-widgets-filter{position:fixed;top:0;z-index:1;width:300px;height:46px;padding:8px 13px 7px 17px;background:#eee;border-bottom:1px solid #e4e4e4;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#available-widgets-filter input{padding:5px 10px 2px;width:100%}#available-widgets .widget-tpl{position:relative;padding:20px 60px 20px 15px;background:#fff;border-bottom:1px solid #e4e4e4;cursor:pointer;display:none}#available-widgets .widget-tpl.selected,#available-widgets .widget-tpl:hover{background:#eee;border-bottom-color:#ccc}#available-widgets .widget-top,#available-widgets .widget-top:hover{border:none;background:0 0;-webkit-box-shadow:none;box-shadow:none}#available-widgets .widget-title h4{padding:0 0 5px;font-size:14px}#available-widgets .widget .widget-description{padding:0;color:#777}#customize-preview{-webkit-transition:all .2s;transition:all .2s}body.adding-widget #available-widgets{right:0;visibility:visible}body.adding-widget .wp-full-overlay-main{right:300px}body.adding-widget #customize-preview{opacity:.4}#available-widgets .widget-title{position:relative}#available-widgets .widget-title:before{position:absolute;top:-3px;left:100%;margin-left:20px;width:20px;height:20px;color:#32373c;font:400 20px/1 dashicons;text-align:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-font-smoothing:antialiased}#available-widgets [class*=easy] .widget-title:before{content:"\f328";top:-4px}#available-widgets [class*=super] .widget-title:before,#available-widgets [class*=like] .widget-title:before{content:"\f155";top:-4px}#available-widgets [class*=meta] .widget-title:before{content:"\f120"}#available-widgets [class*=archives] .widget-title:before{content:"\f480";top:-4px}#available-widgets [class*=categor] .widget-title:before{content:"\f318";top:-4px}#available-widgets [class*=comment] .widget-title:before,#available-widgets [class*=testimonial] .widget-title:before,#available-widgets [class*=chat] .widget-title:before{content:"\f101"}#available-widgets [class*=post] .widget-title:before{content:"\f109"}#available-widgets [class*=page] .widget-title:before{content:"\f105"}#available-widgets [class*=text] .widget-title:before{content:"\f478"}#available-widgets [class*=link] .widget-title:before{content:"\f103"}#available-widgets [class*=search] .widget-title:before{content:"\f179"}#available-widgets [class*=menu] .widget-title:before,#available-widgets [class*=nav] .widget-title:before{content:"\f333"}#available-widgets [class*=tag] .widget-title:before{content:"\f479"}#available-widgets [class*=rss] .widget-title:before{content:"\f303";top:-6px}#available-widgets [class*=event] .widget-title:before,#available-widgets [class*=calendar] .widget-title:before{content:"\f145";top:-4px}#available-widgets [class*=image] .widget-title:before,#available-widgets [class*=photo] .widget-title:before,#available-widgets [class*=slide] .widget-title:before,#available-widgets [class*=instagram] .widget-title:before{content:"\f128"}#available-widgets [class*=album] .widget-title:before,#available-widgets [class*=galler] .widget-title:before{content:"\f161"}#available-widgets [class*=video] .widget-title:before,#available-widgets [class*=tube] .widget-title:before{content:"\f126"}#available-widgets [class*=music] .widget-title:before,#available-widgets [class*=radio] .widget-title:before,#available-widgets [class*=audio] .widget-title:before{content:"\f127"}#available-widgets [class*=login] .widget-title:before,#available-widgets [class*=user] .widget-title:before,#available-widgets [class*=member] .widget-title:before,#available-widgets [class*=avatar] .widget-title:before,#available-widgets [class*=subscriber] .widget-title:before,#available-widgets [class*=profile] .widget-title:before,#available-widgets [class*=grofile] .widget-title:before{content:"\f110"}#available-widgets [class*=commerce] .widget-title:before,#available-widgets [class*=shop] .widget-title:before,#available-widgets [class*=cart] .widget-title:before{content:"\f174";top:-4px}#available-widgets [class*=secur] .widget-title:before,#available-widgets [class*=firewall] .widget-title:before{content:"\f332"}#available-widgets [class*=analytic] .widget-title:before,#available-widgets [class*=stat] .widget-title:before,#available-widgets [class*=poll] .widget-title:before{content:"\f185"}#available-widgets [class*=form] .widget-title:before{content:"\f175"}#available-widgets [class*=subscribe] .widget-title:before,#available-widgets [class*=news] .widget-title:before,#available-widgets [class*=contact] .widget-title:before,#available-widgets [class*=mail] .widget-title:before{content:"\f466"}#available-widgets [class*=share] .widget-title:before,#available-widgets [class*=socia] .widget-title:before{content:"\f237"}#available-widgets [class*=lang] .widget-title:before,#available-widgets [class*=translat] .widget-title:before{content:"\f326"}#available-widgets [class*=locat] .widget-title:before,#available-widgets [class*=map] .widget-title:before{content:"\f231"}#available-widgets [class*=download] .widget-title:before{content:"\f316"}#available-widgets [class*=weather] .widget-title:before{content:"\f176";top:-4px}#available-widgets [class*=facebook] .widget-title:before{content:"\f304"}#available-widgets [class*=tweet] .widget-title:before,#available-widgets [class*=twitter] .widget-title:before{content:"\f301"}#available-widgets .customize-section-title{display:none}@media screen and (max-height:700px) and (min-width:981px){.customize-control-widget{margin-bottom:0}.widget-top{-webkit-box-shadow:none;box-shadow:none;margin-top:-1px}.widget-top:hover{position:relative;z-index:1}.last-widget{margin-bottom:15px}.widget-title h4{padding:13px 15px}.widget-top a.widget-action:after{padding-top:9px}.widget-reorder-nav span{height:39px}.widget-reorder-nav span:before{line-height:39px}#customize-theme-controls .widget-area-select li{padding:9px 42px 11px 15px}#customize-theme-controls .widget-area-select li:before{top:8px}}@media screen and (max-width:640px){body.adding-widget div#available-widgets{top:46px;right:0;z-index:10;width:100%}#available-widgets .customize-section-title{display:block;margin:0}#available-widgets .customize-section-back{height:69px}#available-widgets .customize-section-title h3{font-size:20px;font-weight:200;padding:9px 14px 12px 10px;margin:0;line-height:24px;color:#555;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-widgets .customize-section-title .customize-action{font-size:13px;display:block;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-widgets-filter{position:relative;width:100%;background:#fff;height:auto;padding:10px 15px}#available-widgets-list{top:140px}} \ No newline at end of file diff --git a/wp-admin/css/customize-widgets.css b/wp-admin/css/customize-widgets.css deleted file mode 100644 index 278c32fa21..0000000000 --- a/wp-admin/css/customize-widgets.css +++ /dev/null @@ -1,694 +0,0 @@ -.wp-full-overlay-sidebar { - overflow: visible; -} - -/** - * Hide all sidebar sections by default, only show them (via JS) once the - * preview loads and we know whether the sidebars are used in the template. - */ - -.control-section.control-section-sidebar, -.customize-control-sidebar_widgets label, -.customize-control-sidebar_widgets .hide-if-js { - /* The link in .customize-control-sidebar_widgets .hide-if-js will fail if it ever gets used. */ - display: none; -} - -.control-section.control-section-sidebar .accordion-section-content.ui-sortable { - overflow: visible; -} - -.customize-control-widget_form .widget-top { - -webkit-transition: opacity 0.5s; - transition: opacity 0.5s; -} - -.customize-control-widget_form:not(.widget-rendered) .widget-top { - opacity: 0.5; -} - -.customize-control-widget_form .widget-control-save { - display: none; -} - -.customize-control-widget_form .spinner { - visibility: hidden; - margin-top: 0; -} - -.customize-control-widget_form.previewer-loading .spinner { - visibility: visible; -} - -.customize-control-widget_form.widget-form-disabled .widget-content { - opacity: 0.7; - pointer-events: none; - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.customize-control-widget_form .widget { - margin-bottom: 0; -} - -.customize-control-widget_form.wide-widget-control .widget-inside { - position: fixed; - left: 299px; - top: 25%; - border: 1px solid rgb(229, 229, 229); - overflow: auto; -} -.customize-control-widget_form.wide-widget-control .widget-inside > .form { - padding: 20px; -} - -.customize-control-widget_form.wide-widget-control .widget-top { - -webkit-transition: background-color 0.4s; - transition: background-color 0.4s; -} -.customize-control-widget_form.wide-widget-control.expanding .widget-top, -.customize-control-widget_form.wide-widget-control.expanded:not(.collapsing) .widget-top { - background-color: rgb(227, 227, 227); -} - -.widget-inside { - padding: 1px 10px 10px 10px; - border-top: none; - line-height: 16px; -} - -.widget-top { - cursor: move; -} - -.customize-control-widget_form.expanded a.widget-action:after { - content: "\f142"; -} - -.customize-control-widget_form.wide-widget-control a.widget-action:after { - content: "\f139"; -} - -.customize-control-widget_form.wide-widget-control.expanded a.widget-action:after { - content: "\f141"; -} - -.widget-title-action { - cursor: pointer; -} - -.customize-control-widget_form .widget .customize-control-title { - cursor: move; -} - -.control-section.accordion-section.highlighted > .accordion-section-title, -.customize-control-widget_form.highlighted { - outline: none; - -webkit-box-shadow: 0 0 2px rgba(30,140,190,0.8); - box-shadow: 0 0 2px rgba(30,140,190,0.8); - position: relative; - z-index: 1; -} - -#widget-customizer-control-templates { - display: none; -} - -/** -* Widget reordering styles -**/ - -.reorder-toggle { - float: right; - padding: 5px 8px; - text-decoration: none; - cursor: pointer; - outline: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} -.reorder-toggle:focus { - outline: 1px dotted; -} - -.reorder-done, -.reordering .reorder { - display: none; -} - -.reordering .reorder-done { - display: block; - color: #0073aa; -} - -.reordering .reorder-done:hover, -.reordering .reorder-done:active { - color: #00a0d2; -} - -#customize-theme-controls .reordering .add-new-widget { - opacity: 0.2; - pointer-events: none; - cursor: not-allowed; -} - -#customize-theme-controls .widget-reorder-nav { - display: none; - float: right; - background-color: #fafafa; -} - -.widget-reorder-nav span { - position: relative; - overflow: hidden; - float: left; - display: block; - width: 33px; /* was 42px for mobile */ - height: 43px; - color: #82878c; - text-indent: -9999px; - cursor: pointer; - outline: none; -} - -.widget-reorder-nav span:before { - display: inline-block; - position: absolute; - top: 0; - right: 0; - width: 100%; - height: 100%; - font: normal 20px/43px 'dashicons'; - text-align: center; - text-indent: 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.widget-reorder-nav span:hover, -.widget-reorder-nav span:focus { - color: #444; - background: #eee; -} - -.move-widget:before { - content: '\f504'; -} - -.move-widget-down:before { - content: '\f347'; -} - -.move-widget-up:before { - content: '\f343'; -} - -#customize-theme-controls .first-widget .move-widget-up, -#customize-theme-controls .last-widget .move-widget-down { - color: #d5d5d5; - cursor: default; -} - -#customize-theme-controls .move-widget-area { - display: none; - background: #fff; - border: 1px solid #dedede; - border-top: none; - cursor: auto; -} - -#customize-theme-controls .reordering .move-widget-area.active { - display: block; -} - -#customize-theme-controls .move-widget-area .description { - margin: 0; - padding: 15px 20px; - font-weight: 400; -} - -#customize-theme-controls .widget-area-select { - margin: 0; - padding: 0; - list-style: none; -} - -#customize-theme-controls .widget-area-select li { - position: relative; - margin: 0; - padding: 13px 15px 15px 42px; - color: #555; - border-top: 1px solid #eee; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -#customize-theme-controls .widget-area-select li:before { - display: none; - content: '\f147'; - position: absolute; - top: 12px; - left: 10px; - font: normal 20px/1 'dashicons'; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -#customize-theme-controls .widget-area-select li:last-child { - border-bottom: 1px solid #eee; -} - -#customize-theme-controls .widget-area-select .selected { - color: #fff; - text-shadow: 0 -1px 0 rgba(0,0,0,.4); - background: #00a0d2; -} - -#customize-theme-controls .widget-area-select .selected:before { - display: block; -} - -#customize-theme-controls .move-widget-actions { - text-align: right; - padding: 12px; -} - -#customize-theme-controls .reordering .widget-title-action { - display: none; -} - -#customize-theme-controls .reordering .widget-reorder-nav { - display: block; -} - - -/** - * Styles for new widget addition panel - */ -.wp-full-overlay-main { - right: auto; /* this overrides a right: 0; which causes the preview to resize, I'd rather have it go off screen at the normal size. */ - width: 100%; -} - -#customize-theme-controls .add-new-widget { - cursor: pointer; - float: right; - margin-left: 10px; - -webkit-transition: all 0.2s; - transition: all 0.2s; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - outline: none; -} - -.add-new-widget:before { - content: "\f132"; - display: inline-block; - position: relative; - left: -2px; - top: -1px; - font: normal 20px/1 'dashicons'; - vertical-align: middle; - -webkit-transition: all 0.2s; - transition: all 0.2s; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -body.adding-widget .add-new-widget, -body.adding-widget .add-new-widget:hover { - background: #eee; - border-color: #999; - color: #32373c; - -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); - box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); -} -body.adding-widget .add-new-widget:before { - -webkit-transform: rotate(45deg); - -ms-transform: rotate(45deg); - transform: rotate(45deg); -} - -#available-widgets .widget { - position: static; -} - -/* override widgets admin page rules in wp-admin/css/wp-admin.css */ -#widgets-left #available-widgets .widget { - float: none !important; - width: auto !important; -} - -#available-widgets { - position: absolute; - top: 0; - bottom: 0; - left: -301px; - visibility: hidden; - overflow: auto; - width: 300px; - margin: 0; - z-index: 1; - background: #eee !important; - -webkit-transition: left .18s; - transition: left .18s; - border-right: 1px solid #ddd; -} - -.ios #available-widgets { - -webkit-transition: left 0s; - transition: left 0s; -} - -#available-widgets-list { - top: 46px; - position: absolute; - overflow: auto; - bottom: 0; - width: 100%; -} - -#available-widgets-filter { - position: fixed; - top: 0; - z-index: 1; - width: 300px; - height: 46px; - padding: 8px 17px 7px 13px; - background: #eee; - border-bottom: 1px solid #e4e4e4; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -#available-widgets-filter input { - padding: 5px 10px 2px 10px; - width: 100%; -} - -#available-widgets .widget-tpl { - position: relative; - padding: 20px 15px 20px 60px; - background: #fff; - border-bottom: 1px solid #e4e4e4; - cursor: pointer; - display: none; -} - -#available-widgets .widget-tpl:hover, -#available-widgets .widget-tpl.selected { - background: #eee; - border-bottom-color: #ccc; -} - -#available-widgets .widget-top, -#available-widgets .widget-top:hover { - border: none; - background: transparent; - -webkit-box-shadow: none; - box-shadow: none; -} - -#available-widgets .widget-title h4 { - padding: 0 0 5px; - font-size: 14px; -} - -#available-widgets .widget .widget-description { - padding: 0; - color: #777; -} - -#customize-preview { - -webkit-transition: all 0.2s; - transition: all 0.2s; -} - -body.adding-widget #available-widgets { - left: 0; - visibility: visible; -} - -body.adding-widget .wp-full-overlay-main { - left: 300px; -} - -body.adding-widget #customize-preview { - opacity: 0.4; -} - - -/** - * Widget Icon styling - * No plurals in naming. - * Ordered from lowest to highest specificity. - **/ -#available-widgets .widget-title { - position: relative; -} - -#available-widgets .widget-title:before { - content: "\f132"; - position: absolute; - top: -3px; - right: 100%; - margin-right: 20px; - width: 20px; - height: 20px; - color: #32373c; - font: normal 20px/1 'dashicons'; - text-align: center; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -/* smiley */ -#available-widgets [class*="easy"] .widget-title:before { content: "\f328"; top: -4px; } - -/* star-filled */ -#available-widgets [class*="super"] .widget-title:before, -#available-widgets [class*="like"] .widget-title:before { content: "\f155"; top: -4px; } - -/* wordpress */ -#available-widgets [class*="meta"] .widget-title:before { content: "\f120"; } - -/* archive-box */ -#available-widgets [class*="archives"] .widget-title:before { content: "\f480"; top: -4px; } - -/* category */ -#available-widgets [class*="categor"] .widget-title:before { content: "\f318"; top: -4px; } - -/* comments */ -#available-widgets [class*="comment"] .widget-title:before, -#available-widgets [class*="testimonial"] .widget-title:before, -#available-widgets [class*="chat"] .widget-title:before { content: "\f101"; } - -/* post */ -#available-widgets [class*="post"] .widget-title:before { content: "\f109"; } - -/* admin-page */ -#available-widgets [class*="page"] .widget-title:before { content: "\f105"; } - -/* text */ -#available-widgets [class*="text"] .widget-title:before { content: "\f478"; } - -/* links */ -#available-widgets [class*="link"] .widget-title:before { content: "\f103"; } - -/* search */ -#available-widgets [class*="search"] .widget-title:before { content: "\f179"; } - -/* menu */ -#available-widgets [class*="menu"] .widget-title:before, -#available-widgets [class*="nav"] .widget-title:before { content: "\f333"; } - -/* tag-cloud */ -#available-widgets [class*="tag"] .widget-title:before { content: "\f479"; } - -/* rss */ -#available-widgets [class*="rss"] .widget-title:before { content: "\f303"; top: -6px; } - -/* calendar */ -#available-widgets [class*="event"] .widget-title:before, -#available-widgets [class*="calendar"] .widget-title:before { content: "\f145"; top: -4px;} - -/* format-image */ -#available-widgets [class*="image"] .widget-title:before, -#available-widgets [class*="photo"] .widget-title:before, -#available-widgets [class*="slide"] .widget-title:before, -#available-widgets [class*="instagram"] .widget-title:before { content: "\f128"; } - -/* format-gallery */ -#available-widgets [class*="album"] .widget-title:before, -#available-widgets [class*="galler"] .widget-title:before { content: "\f161"; } - -/* format-video */ -#available-widgets [class*="video"] .widget-title:before, -#available-widgets [class*="tube"] .widget-title:before { content: "\f126"; } - -/* format-audio */ -#available-widgets [class*="music"] .widget-title:before, -#available-widgets [class*="radio"] .widget-title:before, -#available-widgets [class*="audio"] .widget-title:before { content: "\f127"; } - -/* admin-users */ -#available-widgets [class*="login"] .widget-title:before, -#available-widgets [class*="user"] .widget-title:before, -#available-widgets [class*="member"] .widget-title:before, -#available-widgets [class*="avatar"] .widget-title:before, -#available-widgets [class*="subscriber"] .widget-title:before, -#available-widgets [class*="profile"] .widget-title:before, -#available-widgets [class*="grofile"] .widget-title:before { content: "\f110"; } - -/* cart */ -#available-widgets [class*="commerce"] .widget-title:before, -#available-widgets [class*="shop"] .widget-title:before, -#available-widgets [class*="cart"] .widget-title:before { content: "\f174"; top: -4px; } - -/* shield */ -#available-widgets [class*="secur"] .widget-title:before, -#available-widgets [class*="firewall"] .widget-title:before { content: "\f332"; } - -/* chart-bar */ -#available-widgets [class*="analytic"] .widget-title:before, -#available-widgets [class*="stat"] .widget-title:before, -#available-widgets [class*="poll"] .widget-title:before { content: "\f185"; } - -/* feedback */ -#available-widgets [class*="form"] .widget-title:before { content: "\f175"; } - -/* email-alt */ -#available-widgets [class*="subscribe"] .widget-title:before, -#available-widgets [class*="news"] .widget-title:before, -#available-widgets [class*="contact"] .widget-title:before, -#available-widgets [class*="mail"] .widget-title:before { content: "\f466"; } - -/* share */ -#available-widgets [class*="share"] .widget-title:before, -#available-widgets [class*="socia"] .widget-title:before { content: "\f237"; } - -/* translation */ -#available-widgets [class*="lang"] .widget-title:before, -#available-widgets [class*="translat"] .widget-title:before { content: "\f326"; } - -/* location-alt */ -#available-widgets [class*="locat"] .widget-title:before, -#available-widgets [class*="map"] .widget-title:before { content: "\f231"; } - -/* download */ -#available-widgets [class*="download"] .widget-title:before { content: "\f316"; } - -/* cloud */ -#available-widgets [class*="weather"] .widget-title:before { content: "\f176"; top: -4px;} - -/* facebook */ -#available-widgets [class*="facebook"] .widget-title:before { content: "\f304"; } - -/* twitter */ -#available-widgets [class*="tweet"] .widget-title:before, -#available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; } - -#available-widgets .customize-section-title { - display: none; -} - -@media screen and (max-height: 700px) and (min-width: 981px) { - .customize-control-widget { - margin-bottom: 0; - } - .widget-top { - -webkit-box-shadow: none; - box-shadow: none; - margin-top: -1px; - } - .widget-top:hover { - position: relative; - z-index: 1; - } - .last-widget { - margin-bottom: 15px; - } - .widget-title h4 { - padding: 13px 15px; - } - .widget-top a.widget-action:after { - padding-top: 9px; - } - .widget-reorder-nav span { - height: 39px; - } - .widget-reorder-nav span:before { - line-height: 39px; - } - #customize-theme-controls .widget-area-select li { - padding: 9px 15px 11px 42px; - } - #customize-theme-controls .widget-area-select li:before { - top: 8px; - } -} - -@media screen and ( max-width: 640px ) { - body.adding-widget div#available-widgets { - top: 46px; - left: 0; - z-index: 10; - width: 100%; - } - - #available-widgets .customize-section-title { - display: block; - margin: 0; - } - - #available-widgets .customize-section-back { - height: 69px; - } - - #available-widgets .customize-section-title h3 { - font-size: 20px; - font-weight: 200; - padding: 9px 10px 12px 14px; - margin: 0; - line-height: 24px; - color: #555; - display: block; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - - #available-widgets .customize-section-title .customize-action { - font-size: 13px; - display: block; - font-weight: 400; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - - #available-widgets-filter { - position: relative; - width: 100%; - background: #fff; - height: auto; - padding: 10px 15px; - } - - #available-widgets-list { - top: 140px; - } -} diff --git a/wp-admin/css/customize-widgets.min.css b/wp-admin/css/customize-widgets.min.css deleted file mode 100644 index 40bfd22e42..0000000000 --- a/wp-admin/css/customize-widgets.min.css +++ /dev/null @@ -1 +0,0 @@ -.control-section.control-section-sidebar .accordion-section-content.ui-sortable,.wp-full-overlay-sidebar{overflow:visible}#widget-customizer-control-templates,.control-section.control-section-sidebar,.customize-control-sidebar_widgets .hide-if-js,.customize-control-sidebar_widgets label,.customize-control-widget_form .widget-control-save,.reorder-done,.reordering .reorder{display:none}.customize-control-widget_form .widget-top{-webkit-transition:opacity .5s;transition:opacity .5s}.customize-control-widget_form:not(.widget-rendered) .widget-top{opacity:.5}.customize-control-widget_form .spinner{visibility:hidden;margin-top:0}.customize-control-widget_form.previewer-loading .spinner{visibility:visible}.customize-control-widget_form.widget-form-disabled .widget-content{opacity:.7;pointer-events:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.customize-control-widget_form .widget{margin-bottom:0}.customize-control-widget_form.wide-widget-control .widget-inside{position:fixed;left:299px;top:25%;border:1px solid #e5e5e5;overflow:auto}.customize-control-widget_form.wide-widget-control .widget-inside>.form{padding:20px}.customize-control-widget_form.wide-widget-control .widget-top{-webkit-transition:background-color .4s;transition:background-color .4s}.customize-control-widget_form.wide-widget-control.expanded:not(.collapsing) .widget-top,.customize-control-widget_form.wide-widget-control.expanding .widget-top{background-color:#e3e3e3}.widget-inside{padding:1px 10px 10px;border-top:none;line-height:16px}.widget-top{cursor:move}.customize-control-widget_form.expanded a.widget-action:after{content:"\f142"}.customize-control-widget_form.wide-widget-control a.widget-action:after{content:"\f139"}.customize-control-widget_form.wide-widget-control.expanded a.widget-action:after{content:"\f141"}.widget-title-action{cursor:pointer}.customize-control-widget_form .widget .customize-control-title{cursor:move}.control-section.accordion-section.highlighted>.accordion-section-title,.customize-control-widget_form.highlighted{outline:0;-webkit-box-shadow:0 0 2px rgba(30,140,190,.8);box-shadow:0 0 2px rgba(30,140,190,.8);position:relative;z-index:1}.reorder-toggle{float:right;padding:5px 8px;text-decoration:none;cursor:pointer;outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reorder-toggle:focus{outline:dotted 1px}.reordering .reorder-done{display:block;color:#0073aa}.reordering .reorder-done:active,.reordering .reorder-done:hover{color:#00a0d2}#customize-theme-controls .reordering .add-new-widget{opacity:.2;pointer-events:none;cursor:not-allowed}#customize-theme-controls .widget-reorder-nav{display:none;float:right;background-color:#fafafa}.widget-reorder-nav span{position:relative;overflow:hidden;float:left;display:block;width:33px;height:43px;color:#82878c;text-indent:-9999px;cursor:pointer;outline:0}.widget-reorder-nav span:before{display:inline-block;position:absolute;top:0;right:0;width:100%;height:100%;font:400 20px/43px dashicons;text-align:center;text-indent:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.widget-reorder-nav span:focus,.widget-reorder-nav span:hover{color:#444;background:#eee}.move-widget:before{content:'\f504'}.move-widget-down:before{content:'\f347'}.move-widget-up:before{content:'\f343'}#customize-theme-controls .first-widget .move-widget-up,#customize-theme-controls .last-widget .move-widget-down{color:#d5d5d5;cursor:default}#customize-theme-controls .move-widget-area{display:none;background:#fff;border:1px solid #dedede;border-top:none;cursor:auto}#customize-theme-controls .reordering .move-widget-area.active{display:block}#customize-theme-controls .move-widget-area .description{margin:0;padding:15px 20px;font-weight:400}#customize-theme-controls .widget-area-select{margin:0;padding:0;list-style:none}#customize-theme-controls .widget-area-select li{position:relative;margin:0;padding:13px 15px 15px 42px;color:#555;border-top:1px solid #eee;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#customize-theme-controls .widget-area-select li:before{display:none;content:'\f147';position:absolute;top:12px;left:10px;font:400 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#available-widgets .widget-title:before,.add-new-widget:before{content:"\f132";-moz-osx-font-smoothing:grayscale}#customize-theme-controls .widget-area-select li:last-child{border-bottom:1px solid #eee}#customize-theme-controls .widget-area-select .selected{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.4);background:#00a0d2}#customize-theme-controls .widget-area-select .selected:before{display:block}#customize-theme-controls .move-widget-actions{text-align:right;padding:12px}#customize-theme-controls .reordering .widget-title-action{display:none}#customize-theme-controls .reordering .widget-reorder-nav{display:block}.wp-full-overlay-main{right:auto;width:100%}#customize-theme-controls .add-new-widget{cursor:pointer;float:right;margin-left:10px;-webkit-transition:all .2s;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}.add-new-widget:before{display:inline-block;position:relative;left:-2px;top:-1px;font:400 20px/1 dashicons;vertical-align:middle;-webkit-transition:all .2s;transition:all .2s;-webkit-font-smoothing:antialiased}body.adding-widget .add-new-widget,body.adding-widget .add-new-widget:hover{background:#eee;border-color:#999;color:#32373c;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}body.adding-widget .add-new-widget:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}#available-widgets .widget{position:static}#widgets-left #available-widgets .widget{float:none!important;width:auto!important}#available-widgets{position:absolute;top:0;bottom:0;left:-301px;visibility:hidden;overflow:auto;width:300px;margin:0;z-index:1;background:#eee!important;-webkit-transition:left .18s;transition:left .18s;border-right:1px solid #ddd}.ios #available-widgets{-webkit-transition:left 0s;transition:left 0s}#available-widgets-list{top:46px;position:absolute;overflow:auto;bottom:0;width:100%}#available-widgets-filter{position:fixed;top:0;z-index:1;width:300px;height:46px;padding:8px 17px 7px 13px;background:#eee;border-bottom:1px solid #e4e4e4;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#available-widgets-filter input{padding:5px 10px 2px;width:100%}#available-widgets .widget-tpl{position:relative;padding:20px 15px 20px 60px;background:#fff;border-bottom:1px solid #e4e4e4;cursor:pointer;display:none}#available-widgets .widget-tpl.selected,#available-widgets .widget-tpl:hover{background:#eee;border-bottom-color:#ccc}#available-widgets .widget-top,#available-widgets .widget-top:hover{border:none;background:0 0;-webkit-box-shadow:none;box-shadow:none}#available-widgets .widget-title h4{padding:0 0 5px;font-size:14px}#available-widgets .widget .widget-description{padding:0;color:#777}#customize-preview{-webkit-transition:all .2s;transition:all .2s}body.adding-widget #available-widgets{left:0;visibility:visible}body.adding-widget .wp-full-overlay-main{left:300px}body.adding-widget #customize-preview{opacity:.4}#available-widgets .widget-title{position:relative}#available-widgets .widget-title:before{position:absolute;top:-3px;right:100%;margin-right:20px;width:20px;height:20px;color:#32373c;font:400 20px/1 dashicons;text-align:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-font-smoothing:antialiased}#available-widgets [class*=easy] .widget-title:before{content:"\f328";top:-4px}#available-widgets [class*=super] .widget-title:before,#available-widgets [class*=like] .widget-title:before{content:"\f155";top:-4px}#available-widgets [class*=meta] .widget-title:before{content:"\f120"}#available-widgets [class*=archives] .widget-title:before{content:"\f480";top:-4px}#available-widgets [class*=categor] .widget-title:before{content:"\f318";top:-4px}#available-widgets [class*=comment] .widget-title:before,#available-widgets [class*=testimonial] .widget-title:before,#available-widgets [class*=chat] .widget-title:before{content:"\f101"}#available-widgets [class*=post] .widget-title:before{content:"\f109"}#available-widgets [class*=page] .widget-title:before{content:"\f105"}#available-widgets [class*=text] .widget-title:before{content:"\f478"}#available-widgets [class*=link] .widget-title:before{content:"\f103"}#available-widgets [class*=search] .widget-title:before{content:"\f179"}#available-widgets [class*=menu] .widget-title:before,#available-widgets [class*=nav] .widget-title:before{content:"\f333"}#available-widgets [class*=tag] .widget-title:before{content:"\f479"}#available-widgets [class*=rss] .widget-title:before{content:"\f303";top:-6px}#available-widgets [class*=event] .widget-title:before,#available-widgets [class*=calendar] .widget-title:before{content:"\f145";top:-4px}#available-widgets [class*=image] .widget-title:before,#available-widgets [class*=photo] .widget-title:before,#available-widgets [class*=slide] .widget-title:before,#available-widgets [class*=instagram] .widget-title:before{content:"\f128"}#available-widgets [class*=album] .widget-title:before,#available-widgets [class*=galler] .widget-title:before{content:"\f161"}#available-widgets [class*=video] .widget-title:before,#available-widgets [class*=tube] .widget-title:before{content:"\f126"}#available-widgets [class*=music] .widget-title:before,#available-widgets [class*=radio] .widget-title:before,#available-widgets [class*=audio] .widget-title:before{content:"\f127"}#available-widgets [class*=login] .widget-title:before,#available-widgets [class*=user] .widget-title:before,#available-widgets [class*=member] .widget-title:before,#available-widgets [class*=avatar] .widget-title:before,#available-widgets [class*=subscriber] .widget-title:before,#available-widgets [class*=profile] .widget-title:before,#available-widgets [class*=grofile] .widget-title:before{content:"\f110"}#available-widgets [class*=commerce] .widget-title:before,#available-widgets [class*=shop] .widget-title:before,#available-widgets [class*=cart] .widget-title:before{content:"\f174";top:-4px}#available-widgets [class*=secur] .widget-title:before,#available-widgets [class*=firewall] .widget-title:before{content:"\f332"}#available-widgets [class*=analytic] .widget-title:before,#available-widgets [class*=stat] .widget-title:before,#available-widgets [class*=poll] .widget-title:before{content:"\f185"}#available-widgets [class*=form] .widget-title:before{content:"\f175"}#available-widgets [class*=subscribe] .widget-title:before,#available-widgets [class*=news] .widget-title:before,#available-widgets [class*=contact] .widget-title:before,#available-widgets [class*=mail] .widget-title:before{content:"\f466"}#available-widgets [class*=share] .widget-title:before,#available-widgets [class*=socia] .widget-title:before{content:"\f237"}#available-widgets [class*=lang] .widget-title:before,#available-widgets [class*=translat] .widget-title:before{content:"\f326"}#available-widgets [class*=locat] .widget-title:before,#available-widgets [class*=map] .widget-title:before{content:"\f231"}#available-widgets [class*=download] .widget-title:before{content:"\f316"}#available-widgets [class*=weather] .widget-title:before{content:"\f176";top:-4px}#available-widgets [class*=facebook] .widget-title:before{content:"\f304"}#available-widgets [class*=tweet] .widget-title:before,#available-widgets [class*=twitter] .widget-title:before{content:"\f301"}#available-widgets .customize-section-title{display:none}@media screen and (max-height:700px) and (min-width:981px){.customize-control-widget{margin-bottom:0}.widget-top{-webkit-box-shadow:none;box-shadow:none;margin-top:-1px}.widget-top:hover{position:relative;z-index:1}.last-widget{margin-bottom:15px}.widget-title h4{padding:13px 15px}.widget-top a.widget-action:after{padding-top:9px}.widget-reorder-nav span{height:39px}.widget-reorder-nav span:before{line-height:39px}#customize-theme-controls .widget-area-select li{padding:9px 15px 11px 42px}#customize-theme-controls .widget-area-select li:before{top:8px}}@media screen and (max-width:640px){body.adding-widget div#available-widgets{top:46px;left:0;z-index:10;width:100%}#available-widgets .customize-section-title{display:block;margin:0}#available-widgets .customize-section-back{height:69px}#available-widgets .customize-section-title h3{font-size:20px;font-weight:200;padding:9px 10px 12px 14px;margin:0;line-height:24px;color:#555;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-widgets .customize-section-title .customize-action{font-size:13px;display:block;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-widgets-filter{position:relative;width:100%;background:#fff;height:auto;padding:10px 15px}#available-widgets-list{top:140px}} \ No newline at end of file diff --git a/wp-admin/css/dashboard-rtl.css b/wp-admin/css/dashboard-rtl.css deleted file mode 100644 index d04ae1ce97..0000000000 --- a/wp-admin/css/dashboard-rtl.css +++ /dev/null @@ -1,1107 +0,0 @@ -#wpbody-content #dashboard-widgets.columns-1 .postbox-container { - width: 100%; -} - -#wpbody-content #dashboard-widgets.columns-2 .postbox-container { - width: 49.5%; -} - -#wpbody-content #dashboard-widgets.columns-2 #postbox-container-2, -#wpbody-content #dashboard-widgets.columns-2 #postbox-container-3, -#wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 { - float: left; - width: 50.5%; -} - -#wpbody-content #dashboard-widgets.columns-3 .postbox-container { - width: 33.5%; -} - -#wpbody-content #dashboard-widgets.columns-3 #postbox-container-1 { - width: 33%; -} - -#wpbody-content #dashboard-widgets.columns-3 #postbox-container-3, -#wpbody-content #dashboard-widgets.columns-3 #postbox-container-4 { - float: left; -} - -#wpbody-content #dashboard-widgets.columns-4 .postbox-container { - width: 25%; -} - -#dashboard-widgets .postbox-container { - width: 25%; -} - -#dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container { - border: none !important; -} - -.ie8 #wpbody-content #dashboard-widgets .postbox-container { - width: 49.5%; -} - -.ie8 #wpbody-content #dashboard-widgets #postbox-container-2, -.ie8 #wpbody-content #dashboard-widgets #postbox-container-3, -.ie8 #wpbody-content #dashboard-widgets #postbox-container-4 { - float: left; - width: 50.5%; -} - -.ie8 #dashboard-widgets #postbox-container-3 .empty-container, -.ie8 #dashboard-widgets #postbox-container-4 .empty-container { - border: 0 none; - height: 0; - min-height: 0; -} - -/*------------------------------------------------------------------------------ - 9.0 - Dashboard -------------------------------------------------------------------------------*/ - -#dashboard-widgets-wrap { - overflow: hidden; - margin: 0 -8px; -} - -#dashboard-widgets .postbox .inside { - margin-bottom: 0; -} - -#dashboard-widgets .meta-box-sortables { - margin: 0 8px; - min-height: 100px; -} - -/* @todo: this was originally in this section, but likely belongs elsewhere */ -#the-comment-list td.comment p.comment-author { - margin-top: 0; - margin-right: 0; -} - -#the-comment-list p.comment-author img { - float: right; - margin-left: 8px; -} - -#the-comment-list p.comment-author strong a { - border: none; -} - -#the-comment-list td { - vertical-align: top; -} - -#the-comment-list td.comment { - word-wrap: break-word; -} - -#the-comment-list td.comment img { - max-width: 100%; -} - -/* Welcome Panel */ -.welcome-panel { - position: relative; - overflow: auto; - margin: 16px 0; - padding: 23px 10px 0; - border: 1px solid #e5e5e5; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); - background: #fff; - font-size: 13px; - line-height: 2.1em; -} - -.welcome-panel h3 { - margin: 0; - font-size: 21px; - font-weight: normal; - line-height: 1.2; -} - -.welcome-panel h4 { - margin: 1.33em 0 0; - font-size: 16px; -} - -.welcome-panel li { - font-size: 14px; -} - -.welcome-panel p { - color: #777; -} - -.welcome-panel a { - text-decoration: none; -} - -.welcome-panel .about-description { - font-size: 16px; - margin: 0; -} - -.welcome-panel .welcome-panel-close { - position: absolute; - top: 10px; - left: 10px; - padding: 10px 21px 10px 15px; - font-size: 13px; - line-height: 1.23076923; /* Chrome rounding, needs to be 16px equivalent */ - text-decoration: none; -} - -.welcome-panel .welcome-panel-close:before { - position: absolute; - top: 8px; - right: 0; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -.wp-core-ui .welcome-panel .button.button-hero { - margin: 15px 0 3px 13px; - padding: 12px 36px; - height: auto; - line-height: 1.4285714; - white-space: normal; -} - -.welcome-panel-content { - margin-right: 13px; - max-width: 1500px; -} - -.welcome-panel .welcome-panel-column-container { - clear: both; - position: relative; -} - -.welcome-panel .welcome-panel-column { - width: 32%; - min-width: 200px; - float: right; -} - -.ie8 .welcome-panel .welcome-panel-column { - min-width: 230px; -} - -.welcome-panel .welcome-panel-column:first-child { - width: 36%; -} - -.welcome-panel-column p.hide-if-no-customize { - margin-top: 10px; -} - -.welcome-panel-column p { - margin-top: 7px; - color: #464646; -} - -.welcome-panel .welcome-icon { - background: transparent !important; -} - -.welcome-panel .welcome-icon:before { - color: #82878c; - font: normal 20px/1 'dashicons'; - speak: none; - display: inline-block; - padding: 0 0 0 10px; - top: -1px; - position: relative; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; - vertical-align: top; -} - -.welcome-panel .welcome-write-blog:before, -.welcome-panel .welcome-edit-page:before { - content:'\f119'; - top: -3px; -} - -.welcome-panel .welcome-add-page:before { - content:'\f132'; -} - -.welcome-panel .welcome-view-site:before { - content:'\f115'; - top: -2px; -} - -.welcome-panel .welcome-widgets-menus:before { - content:'\f116'; - top: -2px; -} - -.welcome-panel .welcome-comments:before { - content:'\f117'; - top: -1px; -} - -.welcome-panel .welcome-learn-more:before { - content:'\f118'; - top: -1px; -} - -.welcome-panel .welcome-widgets-menus { - line-height: 16px; -} - -.welcome-panel .welcome-panel-column ul { - margin: 0.8em 0 1em 1em; -} - -.welcome-panel .welcome-panel-column li { - line-height: 16px; - list-style-type: none; - padding: 0 0 8px; -} - -/* Dashboard WordPress news */ - -#dashboard_primary .inside { - margin: 0; - padding: 0; -} - -#dashboard_primary .widget-loading, -#dashboard_primary .dashboard-widget-control-form { - padding: 12px 12px 0; -} - -body #dashboard-widgets .postbox form .submit { - margin: 0; -} - -.dashboard-widget-control-form { - overflow: hidden; -} - -.dashboard-widget-control-form p { - margin-top: 0; -} - -.rssSummary { - color: #777; - margin-top: 4px; -} - -#dashboard_primary .rss-widget { - border-bottom: 1px solid #eee; - font-size: 13px; - padding: 8px 12px 10px; -} - -#dashboard_primary .rss-widget:last-child { - border-bottom: none; - padding-bottom: 8px; -} - -#dashboard_primary .rss-widget a { - font-weight: normal; -} - -#dashboard_primary .rss-widget span, -#dashboard_primary .rss-widget span.rss-date { - color: #777; -} - -#dashboard_primary .rss-widget span.rss-date { - margin-right: 12px; -} - -#dashboard_primary .rss-widget ul li { - margin-bottom: 8px; -} - -/* Dashboard right now */ - -#dashboard_right_now ul { - margin: 0; - /* contain floats but don't use overflow: hidden */ - display: inline-block; - width: 100%; -} - -#dashboard_right_now li { - width: 50%; - float: right; - margin-bottom: 10px; -} - -#dashboard_right_now .inside { - padding: 0; -} - -#dashboard_right_now .main { - padding: 0 12px 11px; -} - -#dashboard_right_now .main p { - margin: 0; -} - -#dashboard_right_now #wp-version-message .button { - float: left; - position: relative; - top: -5px; - margin-right: 5px; -} - -.mu-storage { - overflow: hidden; -} - -#dashboard-widgets h4.mu-storage { - margin-bottom: 10px; -} - -/* Dashboard right now - Colors */ - -#dashboard_right_now li a:before, -#dashboard_right_now li span:before { - color: #82878c; -} - -#dashboard_right_now .sub { - color: #777; - background: #f5f5f5; - border-top: 1px solid #eee; - padding: 10px 12px 6px 12px; -} - -#dashboard_right_now .sub h4 { - color: #555; -} - -#dashboard_right_now .sub p { - margin: 0 0 1em; -} - -#dashboard_right_now .warning a:before, -#dashboard_right_now .warning span:before { - color: #d54e21; -} - -/* Dashboard right now - Icons */ -#dashboard_right_now li a:before, -#dashboard_right_now li span:before { - content: '\f159'; - font: normal 20px/1 'dashicons'; - speak: none; - display: block; - float: right; - margin: 0 0 0 5px; - padding: 0; - text-indent: 0; - text-align: center; - position: relative; - -webkit-font-smoothing: antialiased; - text-decoration: none !important; -} - -#dashboard_right_now .page-count a:before, -#dashboard_right_now .page-count span:before { - content: '\f105'; -} - -#dashboard_right_now .post-count a:before, -#dashboard_right_now .post-count span:before { - content: '\f109'; -} - -#dashboard_right_now .comment-count a:before { - content: '\f101'; -} - -#dashboard_right_now .comment-mod-count a:before { - content: '\f125'; -} - -#dashboard_right_now .storage-count a:before { - content: '\f104'; -} - -#dashboard_right_now .storage-count.warning a:before { - content: '\f153'; -} - -/* Dashboard Quick Draft */ - -#dashboard_quick_press .inside { - margin: 0; - padding: 0; -} - -#dashboard_quick_press div.updated { - margin-bottom: 10px; - border: 1px solid #eee; - border-width: 1px 0 1px 1px; -} - -#dashboard_quick_press form { - margin: 12px; -} - -#dashboard_quick_press .drafts, -#dashboard_quick_press .easy-blogging { - padding: 10px 0 0; -} - -/* Dashboard Quick Draft - Form styling */ - -input#save-post { - float: right; -} - -form.initial-form.quickpress-open label.prompt { - font-style: normal; -} - -form.initial-form.quickpress-open input#title { - height: auto; -} - -#dashboard_quick_press input, -#dashboard_quick_press textarea { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin: 0; -} - -#dashboard_quick_press textarea { - resize: vertical; -} - -#dashboard-widgets .postbox form .submit { - margin: -39px 0; - float: left; -} - -#description-wrap { - margin-top: 12px; -} - -#title-wrap #title-prompt-text, -.textarea-wrap #content-prompt-text { - color: #777; -} - -#title-wrap #title-prompt-text { - font-size: 1.1em; - padding: 7px 8px; -} - -.input-text-wrap, -.textarea-wrap { - position: relative; -} - -.input-text-wrap .prompt, -.textarea-wrap .prompt { - position: absolute; -} - -.textarea-wrap #content-prompt-text { - font-size: 1.1em; - padding: 7px 8px; -} - -.textarea-wrap textarea#content { - margin: 0 0 8px; - padding: 6px 7px; -} - -#quick-press textarea#content { - min-height: 90px; - max-height: 1300px; - resize: none; -} - -/* Dashboard Quick Draft - Drafts list */ - -.js #dashboard_quick_press .drafts { - border-top: 1px solid #eee; -} - -#dashboard_quick_press .drafts abbr { - border: none; -} - -#dashboard_quick_press .drafts h4 { - margin: 0 12px 8px; - font-weight: normal; -} - -#dashboard_quick_press .drafts .view-all { - float: left; - margin: 0 0 0 12px; -} - -#dashboard_primary a.rsswidget { - font-weight: normal; -} - -#dashboard_quick_press .drafts ul { - margin: 0 12px; -} - -#dashboard_quick_press .drafts li { - margin-bottom: 1em; -} -#dashboard_quick_press .drafts li time { - color: #777; -} - -#dashboard_quick_press .drafts p { - margin: 0; - word-wrap: break-word; -} - -#dashboard_quick_press .draft-title { - word-wrap: break-word; -} - -#dashboard_quick_press .draft-title a, -#dashboard_quick_press .draft-title time { - margin: 0 0 0 5px; -} - -/* Dashboard activity widget */ - -#dashboard-widgets #dashboard_activity h4 { - margin: 0 12px 8px 0; - font-weight: normal; -} - -#dashboard-widgets #dashboard_activity h4.comment-meta { - margin: 0; -} - -#dashboard_activity h4.comment-meta { - margin-bottom: 4px; -} - -#dashboard_activity ul { - padding: 0 12px; -} - -#dashboard_activity .comment-meta span.approve:before { - content: '\f227'; - font: 20px/.5 "dashicons"; - margin-right: 12px; - vertical-align: middle; - position: relative; - top: -1px; - margin-left: 2px; -} - -#dashboard_activity .inside { - padding: 0; - margin: 0; -} - -#dashboard_activity .no-activity { - overflow: hidden; - padding: 0 12px 12px; - text-align: center; -} - -#dashboard_activity .no-activity p { - color: #999; - font-size: 16px; -} - -#dashboard_activity .no-activity .smiley { - margin-top: 0; -} - -#dashboard_activity .no-activity .smiley:before { - content: '\f328'; - font: normal 120px/1 'dashicons'; - speak: none; - display: block; - margin: 0 0 0 5px; - padding: 0; - text-indent: 0; - text-align: center; - position: relative; - -webkit-font-smoothing: antialiased; - text-decoration: none !important; -} - -#dashboard_activity .subsubsub { - float: none; - border-top: 1px solid #eeeeee; - margin-top: 0; - padding: 8px 12px 4px; -} - -#future-posts ul, -#published-posts ul { - clear: both; - margin-bottom: 0; -} - -#future-posts li, -#published-posts li { - margin-bottom: 8px; -} - -#future-posts ul span, -#published-posts ul span { - display: inline-block; - margin-left: 5px; - min-width: 150px; - color: #777; -} - -.activity-block { - border-bottom: 1px solid #eee; - overflow: hidden; - padding: 8px 0 4px; -} - -.activity-block:last-child { - border-bottom: none; -} - -.activity-block .subsubsub li { - color: #ddd; -} - -/* Dashboard activity widget - Comments */ -/* @todo: needs serious de-duplication */ - -#activity-widget #the-comment-list tr.undo, -#activity-widget #the-comment-list div.undo { - background: none; - padding: 6px 0; - margin-right: 12px; -} - -#activity-widget #the-comment-list .comment-item { - background: #fafafa; - padding: 12px; - position: relative; -} - -#activity-widget #the-comment-list .avatar { - position: absolute; - top: 13px; -} - -#activity-widget #the-comment-list .dashboard-comment-wrap { - padding-right: 63px; -} - -#activity-widget #the-comment-list .dashboard-comment-wrap blockquote { - margin: 1em 0; -} - -#activity-widget #the-comment-list .comment-item h4 { - font-size: 13px; - color: #999; -} - -#activity-widget #the-comment-list .comment-item p.row-actions { - margin: 4px 0 0 0; -} - -#activity-widget #the-comment-list .comment-item:first-child { - border-top: 1px solid #eeeeee; -} - -#activity-widget #the-comment-list .unapproved { - background-color: #fef7f1; -} - -#activity-widget #the-comment-list .unapproved:before { - content: ""; - display: block; - position: absolute; - right: 0; - top: 0; - bottom: 0; - background: #d54e21; - width: 4px; -} - -#activity-widget #the-comment-list .spam-undo-inside .avatar, -#activity-widget #the-comment-list .trash-undo-inside .avatar { - position: relative; - top: 0; -} - -/* Browse happy box */ - -#dashboard-widgets #dashboard_browser_nag.postbox .inside { - margin: 10px; -} - -.edit-box { - display: none; -} - -h3:hover .edit-box { - display: inline; -} - -#dashboard-widgets form .input-text-wrap input { - width: 100%; -} - -#dashboard-widgets form .textarea-wrap textarea { - width: 100%; -} - -#dashboard-widgets .postbox form .submit { - float: none; - margin: .5em 0 0; - padding: 0; - border: none; -} - -#dashboard-widgets-wrap #dashboard-widgets .postbox form .submit #publish { - min-width: 0; -} - -#dashboard-widgets a { - text-decoration: none; -} - -#dashboard-widgets h3 a { - text-decoration: underline; -} - -#dashboard-widgets h3 .postbox-title-action { - position: absolute; - left: 10px; - padding: 0; - top: 5px; -} - -.js #dashboard-widgets h3 .postbox-title-action { - left: 33px; -} - -#dashboard-widgets h4 { - color: #23282d; - font-weight: normal; - font-size: 14px; - margin: 0 0 .2em; - padding: 0; -} - -#dashboard_plugins h5 { - font-size: 14px; -} - -/* Recent Comments */ - -#latest-comments #the-comment-list { - position: relative; -} - -#activity-widget #the-comment-list .comment, -#activity-widget #the-comment-list .pingback { - -webkit-box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06); - box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06); -} - -#activity-widget .comments #the-comment-list .alt { - background-color: transparent; -} - -#activity-widget #latest-comments #the-comment-list .comment-item { - padding: 1em 12px; -} - -#latest-comments #the-comment-list .pingback { - padding-right: 12px !important; -} - -#latest-comments #the-comment-list .comment-item:first-child { - border-top: none; -} - -#latest-comments #the-comment-list .comment-item h4 { - line-height: 1.5em; - margin-top: 0; - color: #666; -} - -#latest-comments #the-comment-list .comment-item h4 cite { - font-style: normal; - font-weight: normal; -} - -#latest-comments #the-comment-list .comment-item blockquote, -#latest-comments #the-comment-list .comment-item blockquote p { - margin: 0; - padding: 0; - display: inline; -} - -#latest-comments #the-comment-list .comment-item p.row-actions { - margin: 3px 0 0; - padding: 0; - font-size: 13px; -} - -/* QuickDraft */ - -#title-wrap label, -#description-wrap label { - cursor: text; -} - -#title-wrap #title { - padding: 2px 6px; - font-size: 1.3em; - outline: none; -} - -#title-wrap #title-prompt-text { - font-size: 1.1em; - padding: 5px 8px; -} - -/* Feeds */ -.rss-widget ul { - margin: 0; - padding: 0; - list-style: none; -} - -a.rsswidget { - font-size: 14px; - font-weight: 600; - line-height: 1.7em; -} - -.rss-widget ul li { - line-height: 1.5em; - margin-bottom: 12px; -} - -.rss-widget span.rss-date { - color: #999; - font-size: 13px; - margin-right: 3px; -} - -.rss-widget cite { - display: block; - text-align: left; - margin: 0 0 1em; - padding: 0; -} - -.rss-widget cite:before { - content: '\2014'; -} - -.dashboard-comment-wrap { - word-wrap: break-word; -} - -/* Browser Nag */ -#dashboard_browser_nag a.update-browser-link { - font-size: 1.2em; - font-weight: 600; -} - -#dashboard_browser_nag a { - text-decoration: underline; -} - -#dashboard_browser_nag p.browser-update-nag.has-browser-icon { - padding-left: 125px; -} - -#dashboard_browser_nag .browser-icon { - margin-top: -35px; -} - -#dashboard_browser_nag.postbox.browser-insecure { - background-color: #ac1b1b; - border-color: #ac1b1b; -} - -#dashboard_browser_nag.postbox { - background-color: #e29808; - background-image: none; - border-color: #edc048; - color: #fff; - -webkit-box-shadow: none; - box-shadow: none; -} - -#dashboard_browser_nag.postbox.browser-insecure h3 { - border-bottom-color: #cd5a5a; - color: #fff; -} - -#dashboard_browser_nag.postbox h3 { - border-bottom-color: #f6e2ac; - background: transparent none; - color: #fff; - -webkit-box-shadow: none; - box-shadow: none; -} - -#dashboard_browser_nag a { - color: #fff; -} - -/* Make the browser nags easier to read with Open Sans */ - -#dashboard_browser_nag h3.hndle { - border: none; - font-weight: 600; - font-size: 20px; - padding-top: 10px; -} - -.postbox#dashboard_browser_nag p a.dismiss { - font-size: 14px; -} - -.postbox#dashboard_browser_nag p, -.postbox#dashboard_browser_nag a, -.postbox#dashboard_browser_nag p.browser-update-nag { - font-size: 16px; -} - -/* =Media Queries --------------------------------------------------------------- */ - -/* one column on the dash */ -@media only screen and (max-width: 799px) { - #wpbody-content #dashboard-widgets .postbox-container { - width: 100%; - } -} - -/* two columns on the dash, but keep the setting if one is selected */ -@media only screen and (min-width: 800px) and (max-width: 1499px) { - #wpbody-content #dashboard-widgets .postbox-container { - width: 49.5%; - } - - #wpbody-content #dashboard-widgets #postbox-container-2, - #wpbody-content #dashboard-widgets #postbox-container-3, - #wpbody-content #dashboard-widgets #postbox-container-4 { - float: left; - width: 50.5%; - } - - #dashboard-widgets #postbox-container-3 .empty-container, - #dashboard-widgets #postbox-container-4 .empty-container { - border: 0 none; - height: 0; - min-height: 0; - } - - #wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container { - width: 100%; - } - - #wpbody #wpbody-content .metabox-holder.columns-1 .postbox-container .empty-container { - border: 0 none; - height: 0; - min-height: 0; - } - - /* show the radio buttons for column prefs only for one or two columns */ - .index-php .screen-layout, - .index-php .columns-prefs { - display: block; - } - - .columns-prefs .columns-prefs-3, - .columns-prefs .columns-prefs-4 { - display: none; - } -} - -/* three columns on the dash */ -@media only screen and (min-width: 1500px) and (max-width: 1800px) { - #wpbody-content #dashboard-widgets .postbox-container { - width: 33.5%; - } - - #wpbody-content #dashboard-widgets #postbox-container-1 { - width: 33%; - } - - #wpbody-content #dashboard-widgets #postbox-container-3, - #wpbody-content #dashboard-widgets #postbox-container-4 { - float: left; - } - - #dashboard-widgets #postbox-container-4 .empty-container { - border: 0 none; - height: 0; - min-height: 0; - } -} - -@media screen and (max-width: 870px) { - .welcome-panel .welcome-panel-column, - .welcome-panel .welcome-panel-column:first-child { - display: block; - float: none; - width: 100%; - } - - .welcome-panel .welcome-panel-column li { - display: inline-block; - margin-left: 13px; - } - - .welcome-panel .welcome-panel-column ul { - margin: 0.4em 0 0; - } - -} - -@media screen and ( max-width: 782px ) { - #dashboard_recent_comments #the-comment-list .comment-item .avatar { - height: 30px; - width: 30px; - margin: 4px 0 5px 10px; - } -} - -/* Smartphone */ -@media screen and (max-width: 600px) { - /* Keep the close icon from overlapping the Welcome text. */ - .welcome-panel .welcome-panel-close { - overflow: hidden; - text-indent: 40px; - white-space: nowrap; - width: 20px; - height: 20px; - padding: 5px; - top: 5px; - left: 5px; - } - - /* Make the close icon larger for tappability. */ - .welcome-panel .welcome-panel-close:before { - font-size: 20px; - top: 5px; - right: -35px; - } -} diff --git a/wp-admin/css/dashboard.css b/wp-admin/css/dashboard.css deleted file mode 100644 index 2fb891a46c..0000000000 --- a/wp-admin/css/dashboard.css +++ /dev/null @@ -1,1107 +0,0 @@ -#wpbody-content #dashboard-widgets.columns-1 .postbox-container { - width: 100%; -} - -#wpbody-content #dashboard-widgets.columns-2 .postbox-container { - width: 49.5%; -} - -#wpbody-content #dashboard-widgets.columns-2 #postbox-container-2, -#wpbody-content #dashboard-widgets.columns-2 #postbox-container-3, -#wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 { - float: right; - width: 50.5%; -} - -#wpbody-content #dashboard-widgets.columns-3 .postbox-container { - width: 33.5%; -} - -#wpbody-content #dashboard-widgets.columns-3 #postbox-container-1 { - width: 33%; -} - -#wpbody-content #dashboard-widgets.columns-3 #postbox-container-3, -#wpbody-content #dashboard-widgets.columns-3 #postbox-container-4 { - float: right; -} - -#wpbody-content #dashboard-widgets.columns-4 .postbox-container { - width: 25%; -} - -#dashboard-widgets .postbox-container { - width: 25%; -} - -#dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container { - border: none !important; -} - -.ie8 #wpbody-content #dashboard-widgets .postbox-container { - width: 49.5%; -} - -.ie8 #wpbody-content #dashboard-widgets #postbox-container-2, -.ie8 #wpbody-content #dashboard-widgets #postbox-container-3, -.ie8 #wpbody-content #dashboard-widgets #postbox-container-4 { - float: right; - width: 50.5%; -} - -.ie8 #dashboard-widgets #postbox-container-3 .empty-container, -.ie8 #dashboard-widgets #postbox-container-4 .empty-container { - border: 0 none; - height: 0; - min-height: 0; -} - -/*------------------------------------------------------------------------------ - 9.0 - Dashboard -------------------------------------------------------------------------------*/ - -#dashboard-widgets-wrap { - overflow: hidden; - margin: 0 -8px; -} - -#dashboard-widgets .postbox .inside { - margin-bottom: 0; -} - -#dashboard-widgets .meta-box-sortables { - margin: 0 8px; - min-height: 100px; -} - -/* @todo: this was originally in this section, but likely belongs elsewhere */ -#the-comment-list td.comment p.comment-author { - margin-top: 0; - margin-left: 0; -} - -#the-comment-list p.comment-author img { - float: left; - margin-right: 8px; -} - -#the-comment-list p.comment-author strong a { - border: none; -} - -#the-comment-list td { - vertical-align: top; -} - -#the-comment-list td.comment { - word-wrap: break-word; -} - -#the-comment-list td.comment img { - max-width: 100%; -} - -/* Welcome Panel */ -.welcome-panel { - position: relative; - overflow: auto; - margin: 16px 0; - padding: 23px 10px 0; - border: 1px solid #e5e5e5; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); - background: #fff; - font-size: 13px; - line-height: 2.1em; -} - -.welcome-panel h3 { - margin: 0; - font-size: 21px; - font-weight: normal; - line-height: 1.2; -} - -.welcome-panel h4 { - margin: 1.33em 0 0; - font-size: 16px; -} - -.welcome-panel li { - font-size: 14px; -} - -.welcome-panel p { - color: #777; -} - -.welcome-panel a { - text-decoration: none; -} - -.welcome-panel .about-description { - font-size: 16px; - margin: 0; -} - -.welcome-panel .welcome-panel-close { - position: absolute; - top: 10px; - right: 10px; - padding: 10px 15px 10px 21px; - font-size: 13px; - line-height: 1.23076923; /* Chrome rounding, needs to be 16px equivalent */ - text-decoration: none; -} - -.welcome-panel .welcome-panel-close:before { - position: absolute; - top: 8px; - left: 0; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -.wp-core-ui .welcome-panel .button.button-hero { - margin: 15px 13px 3px 0; - padding: 12px 36px; - height: auto; - line-height: 1.4285714; - white-space: normal; -} - -.welcome-panel-content { - margin-left: 13px; - max-width: 1500px; -} - -.welcome-panel .welcome-panel-column-container { - clear: both; - position: relative; -} - -.welcome-panel .welcome-panel-column { - width: 32%; - min-width: 200px; - float: left; -} - -.ie8 .welcome-panel .welcome-panel-column { - min-width: 230px; -} - -.welcome-panel .welcome-panel-column:first-child { - width: 36%; -} - -.welcome-panel-column p.hide-if-no-customize { - margin-top: 10px; -} - -.welcome-panel-column p { - margin-top: 7px; - color: #464646; -} - -.welcome-panel .welcome-icon { - background: transparent !important; -} - -.welcome-panel .welcome-icon:before { - color: #82878c; - font: normal 20px/1 'dashicons'; - speak: none; - display: inline-block; - padding: 0 10px 0 0; - top: -1px; - position: relative; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; - vertical-align: top; -} - -.welcome-panel .welcome-write-blog:before, -.welcome-panel .welcome-edit-page:before { - content:'\f119'; - top: -3px; -} - -.welcome-panel .welcome-add-page:before { - content:'\f132'; -} - -.welcome-panel .welcome-view-site:before { - content:'\f115'; - top: -2px; -} - -.welcome-panel .welcome-widgets-menus:before { - content:'\f116'; - top: -2px; -} - -.welcome-panel .welcome-comments:before { - content:'\f117'; - top: -1px; -} - -.welcome-panel .welcome-learn-more:before { - content:'\f118'; - top: -1px; -} - -.welcome-panel .welcome-widgets-menus { - line-height: 16px; -} - -.welcome-panel .welcome-panel-column ul { - margin: 0.8em 1em 1em 0; -} - -.welcome-panel .welcome-panel-column li { - line-height: 16px; - list-style-type: none; - padding: 0 0 8px; -} - -/* Dashboard WordPress news */ - -#dashboard_primary .inside { - margin: 0; - padding: 0; -} - -#dashboard_primary .widget-loading, -#dashboard_primary .dashboard-widget-control-form { - padding: 12px 12px 0; -} - -body #dashboard-widgets .postbox form .submit { - margin: 0; -} - -.dashboard-widget-control-form { - overflow: hidden; -} - -.dashboard-widget-control-form p { - margin-top: 0; -} - -.rssSummary { - color: #777; - margin-top: 4px; -} - -#dashboard_primary .rss-widget { - border-bottom: 1px solid #eee; - font-size: 13px; - padding: 8px 12px 10px; -} - -#dashboard_primary .rss-widget:last-child { - border-bottom: none; - padding-bottom: 8px; -} - -#dashboard_primary .rss-widget a { - font-weight: normal; -} - -#dashboard_primary .rss-widget span, -#dashboard_primary .rss-widget span.rss-date { - color: #777; -} - -#dashboard_primary .rss-widget span.rss-date { - margin-left: 12px; -} - -#dashboard_primary .rss-widget ul li { - margin-bottom: 8px; -} - -/* Dashboard right now */ - -#dashboard_right_now ul { - margin: 0; - /* contain floats but don't use overflow: hidden */ - display: inline-block; - width: 100%; -} - -#dashboard_right_now li { - width: 50%; - float: left; - margin-bottom: 10px; -} - -#dashboard_right_now .inside { - padding: 0; -} - -#dashboard_right_now .main { - padding: 0 12px 11px; -} - -#dashboard_right_now .main p { - margin: 0; -} - -#dashboard_right_now #wp-version-message .button { - float: right; - position: relative; - top: -5px; - margin-left: 5px; -} - -.mu-storage { - overflow: hidden; -} - -#dashboard-widgets h4.mu-storage { - margin-bottom: 10px; -} - -/* Dashboard right now - Colors */ - -#dashboard_right_now li a:before, -#dashboard_right_now li span:before { - color: #82878c; -} - -#dashboard_right_now .sub { - color: #777; - background: #f5f5f5; - border-top: 1px solid #eee; - padding: 10px 12px 6px 12px; -} - -#dashboard_right_now .sub h4 { - color: #555; -} - -#dashboard_right_now .sub p { - margin: 0 0 1em; -} - -#dashboard_right_now .warning a:before, -#dashboard_right_now .warning span:before { - color: #d54e21; -} - -/* Dashboard right now - Icons */ -#dashboard_right_now li a:before, -#dashboard_right_now li span:before { - content: '\f159'; - font: normal 20px/1 'dashicons'; - speak: none; - display: block; - float: left; - margin: 0 5px 0 0; - padding: 0; - text-indent: 0; - text-align: center; - position: relative; - -webkit-font-smoothing: antialiased; - text-decoration: none !important; -} - -#dashboard_right_now .page-count a:before, -#dashboard_right_now .page-count span:before { - content: '\f105'; -} - -#dashboard_right_now .post-count a:before, -#dashboard_right_now .post-count span:before { - content: '\f109'; -} - -#dashboard_right_now .comment-count a:before { - content: '\f101'; -} - -#dashboard_right_now .comment-mod-count a:before { - content: '\f125'; -} - -#dashboard_right_now .storage-count a:before { - content: '\f104'; -} - -#dashboard_right_now .storage-count.warning a:before { - content: '\f153'; -} - -/* Dashboard Quick Draft */ - -#dashboard_quick_press .inside { - margin: 0; - padding: 0; -} - -#dashboard_quick_press div.updated { - margin-bottom: 10px; - border: 1px solid #eee; - border-width: 1px 1px 1px 0; -} - -#dashboard_quick_press form { - margin: 12px; -} - -#dashboard_quick_press .drafts, -#dashboard_quick_press .easy-blogging { - padding: 10px 0 0; -} - -/* Dashboard Quick Draft - Form styling */ - -input#save-post { - float: left; -} - -form.initial-form.quickpress-open label.prompt { - font-style: normal; -} - -form.initial-form.quickpress-open input#title { - height: auto; -} - -#dashboard_quick_press input, -#dashboard_quick_press textarea { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin: 0; -} - -#dashboard_quick_press textarea { - resize: vertical; -} - -#dashboard-widgets .postbox form .submit { - margin: -39px 0; - float: right; -} - -#description-wrap { - margin-top: 12px; -} - -#title-wrap #title-prompt-text, -.textarea-wrap #content-prompt-text { - color: #777; -} - -#title-wrap #title-prompt-text { - font-size: 1.1em; - padding: 7px 8px; -} - -.input-text-wrap, -.textarea-wrap { - position: relative; -} - -.input-text-wrap .prompt, -.textarea-wrap .prompt { - position: absolute; -} - -.textarea-wrap #content-prompt-text { - font-size: 1.1em; - padding: 7px 8px; -} - -.textarea-wrap textarea#content { - margin: 0 0 8px; - padding: 6px 7px; -} - -#quick-press textarea#content { - min-height: 90px; - max-height: 1300px; - resize: none; -} - -/* Dashboard Quick Draft - Drafts list */ - -.js #dashboard_quick_press .drafts { - border-top: 1px solid #eee; -} - -#dashboard_quick_press .drafts abbr { - border: none; -} - -#dashboard_quick_press .drafts h4 { - margin: 0 12px 8px; - font-weight: normal; -} - -#dashboard_quick_press .drafts .view-all { - float: right; - margin: 0 12px 0 0; -} - -#dashboard_primary a.rsswidget { - font-weight: normal; -} - -#dashboard_quick_press .drafts ul { - margin: 0 12px; -} - -#dashboard_quick_press .drafts li { - margin-bottom: 1em; -} -#dashboard_quick_press .drafts li time { - color: #777; -} - -#dashboard_quick_press .drafts p { - margin: 0; - word-wrap: break-word; -} - -#dashboard_quick_press .draft-title { - word-wrap: break-word; -} - -#dashboard_quick_press .draft-title a, -#dashboard_quick_press .draft-title time { - margin: 0 5px 0 0; -} - -/* Dashboard activity widget */ - -#dashboard-widgets #dashboard_activity h4 { - margin: 0 0 8px 12px; - font-weight: normal; -} - -#dashboard-widgets #dashboard_activity h4.comment-meta { - margin: 0; -} - -#dashboard_activity h4.comment-meta { - margin-bottom: 4px; -} - -#dashboard_activity ul { - padding: 0 12px; -} - -#dashboard_activity .comment-meta span.approve:before { - content: '\f227'; - font: 20px/.5 "dashicons"; - margin-left: 12px; - vertical-align: middle; - position: relative; - top: -1px; - margin-right: 2px; -} - -#dashboard_activity .inside { - padding: 0; - margin: 0; -} - -#dashboard_activity .no-activity { - overflow: hidden; - padding: 0 12px 12px; - text-align: center; -} - -#dashboard_activity .no-activity p { - color: #999; - font-size: 16px; -} - -#dashboard_activity .no-activity .smiley { - margin-top: 0; -} - -#dashboard_activity .no-activity .smiley:before { - content: '\f328'; - font: normal 120px/1 'dashicons'; - speak: none; - display: block; - margin: 0 5px 0 0; - padding: 0; - text-indent: 0; - text-align: center; - position: relative; - -webkit-font-smoothing: antialiased; - text-decoration: none !important; -} - -#dashboard_activity .subsubsub { - float: none; - border-top: 1px solid #eeeeee; - margin-top: 0; - padding: 8px 12px 4px; -} - -#future-posts ul, -#published-posts ul { - clear: both; - margin-bottom: 0; -} - -#future-posts li, -#published-posts li { - margin-bottom: 8px; -} - -#future-posts ul span, -#published-posts ul span { - display: inline-block; - margin-right: 5px; - min-width: 150px; - color: #777; -} - -.activity-block { - border-bottom: 1px solid #eee; - overflow: hidden; - padding: 8px 0 4px; -} - -.activity-block:last-child { - border-bottom: none; -} - -.activity-block .subsubsub li { - color: #ddd; -} - -/* Dashboard activity widget - Comments */ -/* @todo: needs serious de-duplication */ - -#activity-widget #the-comment-list tr.undo, -#activity-widget #the-comment-list div.undo { - background: none; - padding: 6px 0; - margin-left: 12px; -} - -#activity-widget #the-comment-list .comment-item { - background: #fafafa; - padding: 12px; - position: relative; -} - -#activity-widget #the-comment-list .avatar { - position: absolute; - top: 13px; -} - -#activity-widget #the-comment-list .dashboard-comment-wrap { - padding-left: 63px; -} - -#activity-widget #the-comment-list .dashboard-comment-wrap blockquote { - margin: 1em 0; -} - -#activity-widget #the-comment-list .comment-item h4 { - font-size: 13px; - color: #999; -} - -#activity-widget #the-comment-list .comment-item p.row-actions { - margin: 4px 0 0 0; -} - -#activity-widget #the-comment-list .comment-item:first-child { - border-top: 1px solid #eeeeee; -} - -#activity-widget #the-comment-list .unapproved { - background-color: #fef7f1; -} - -#activity-widget #the-comment-list .unapproved:before { - content: ""; - display: block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - background: #d54e21; - width: 4px; -} - -#activity-widget #the-comment-list .spam-undo-inside .avatar, -#activity-widget #the-comment-list .trash-undo-inside .avatar { - position: relative; - top: 0; -} - -/* Browse happy box */ - -#dashboard-widgets #dashboard_browser_nag.postbox .inside { - margin: 10px; -} - -.edit-box { - display: none; -} - -h3:hover .edit-box { - display: inline; -} - -#dashboard-widgets form .input-text-wrap input { - width: 100%; -} - -#dashboard-widgets form .textarea-wrap textarea { - width: 100%; -} - -#dashboard-widgets .postbox form .submit { - float: none; - margin: .5em 0 0; - padding: 0; - border: none; -} - -#dashboard-widgets-wrap #dashboard-widgets .postbox form .submit #publish { - min-width: 0; -} - -#dashboard-widgets a { - text-decoration: none; -} - -#dashboard-widgets h3 a { - text-decoration: underline; -} - -#dashboard-widgets h3 .postbox-title-action { - position: absolute; - right: 10px; - padding: 0; - top: 5px; -} - -.js #dashboard-widgets h3 .postbox-title-action { - right: 33px; -} - -#dashboard-widgets h4 { - color: #23282d; - font-weight: normal; - font-size: 14px; - margin: 0 0 .2em; - padding: 0; -} - -#dashboard_plugins h5 { - font-size: 14px; -} - -/* Recent Comments */ - -#latest-comments #the-comment-list { - position: relative; -} - -#activity-widget #the-comment-list .comment, -#activity-widget #the-comment-list .pingback { - -webkit-box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06); - box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06); -} - -#activity-widget .comments #the-comment-list .alt { - background-color: transparent; -} - -#activity-widget #latest-comments #the-comment-list .comment-item { - padding: 1em 12px; -} - -#latest-comments #the-comment-list .pingback { - padding-left: 12px !important; -} - -#latest-comments #the-comment-list .comment-item:first-child { - border-top: none; -} - -#latest-comments #the-comment-list .comment-item h4 { - line-height: 1.5em; - margin-top: 0; - color: #666; -} - -#latest-comments #the-comment-list .comment-item h4 cite { - font-style: normal; - font-weight: normal; -} - -#latest-comments #the-comment-list .comment-item blockquote, -#latest-comments #the-comment-list .comment-item blockquote p { - margin: 0; - padding: 0; - display: inline; -} - -#latest-comments #the-comment-list .comment-item p.row-actions { - margin: 3px 0 0; - padding: 0; - font-size: 13px; -} - -/* QuickDraft */ - -#title-wrap label, -#description-wrap label { - cursor: text; -} - -#title-wrap #title { - padding: 2px 6px; - font-size: 1.3em; - outline: none; -} - -#title-wrap #title-prompt-text { - font-size: 1.1em; - padding: 5px 8px; -} - -/* Feeds */ -.rss-widget ul { - margin: 0; - padding: 0; - list-style: none; -} - -a.rsswidget { - font-size: 14px; - font-weight: 600; - line-height: 1.7em; -} - -.rss-widget ul li { - line-height: 1.5em; - margin-bottom: 12px; -} - -.rss-widget span.rss-date { - color: #999; - font-size: 13px; - margin-left: 3px; -} - -.rss-widget cite { - display: block; - text-align: right; - margin: 0 0 1em; - padding: 0; -} - -.rss-widget cite:before { - content: '\2014'; -} - -.dashboard-comment-wrap { - word-wrap: break-word; -} - -/* Browser Nag */ -#dashboard_browser_nag a.update-browser-link { - font-size: 1.2em; - font-weight: 600; -} - -#dashboard_browser_nag a { - text-decoration: underline; -} - -#dashboard_browser_nag p.browser-update-nag.has-browser-icon { - padding-right: 125px; -} - -#dashboard_browser_nag .browser-icon { - margin-top: -35px; -} - -#dashboard_browser_nag.postbox.browser-insecure { - background-color: #ac1b1b; - border-color: #ac1b1b; -} - -#dashboard_browser_nag.postbox { - background-color: #e29808; - background-image: none; - border-color: #edc048; - color: #fff; - -webkit-box-shadow: none; - box-shadow: none; -} - -#dashboard_browser_nag.postbox.browser-insecure h3 { - border-bottom-color: #cd5a5a; - color: #fff; -} - -#dashboard_browser_nag.postbox h3 { - border-bottom-color: #f6e2ac; - background: transparent none; - color: #fff; - -webkit-box-shadow: none; - box-shadow: none; -} - -#dashboard_browser_nag a { - color: #fff; -} - -/* Make the browser nags easier to read with Open Sans */ - -#dashboard_browser_nag h3.hndle { - border: none; - font-weight: 600; - font-size: 20px; - padding-top: 10px; -} - -.postbox#dashboard_browser_nag p a.dismiss { - font-size: 14px; -} - -.postbox#dashboard_browser_nag p, -.postbox#dashboard_browser_nag a, -.postbox#dashboard_browser_nag p.browser-update-nag { - font-size: 16px; -} - -/* =Media Queries --------------------------------------------------------------- */ - -/* one column on the dash */ -@media only screen and (max-width: 799px) { - #wpbody-content #dashboard-widgets .postbox-container { - width: 100%; - } -} - -/* two columns on the dash, but keep the setting if one is selected */ -@media only screen and (min-width: 800px) and (max-width: 1499px) { - #wpbody-content #dashboard-widgets .postbox-container { - width: 49.5%; - } - - #wpbody-content #dashboard-widgets #postbox-container-2, - #wpbody-content #dashboard-widgets #postbox-container-3, - #wpbody-content #dashboard-widgets #postbox-container-4 { - float: right; - width: 50.5%; - } - - #dashboard-widgets #postbox-container-3 .empty-container, - #dashboard-widgets #postbox-container-4 .empty-container { - border: 0 none; - height: 0; - min-height: 0; - } - - #wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container { - width: 100%; - } - - #wpbody #wpbody-content .metabox-holder.columns-1 .postbox-container .empty-container { - border: 0 none; - height: 0; - min-height: 0; - } - - /* show the radio buttons for column prefs only for one or two columns */ - .index-php .screen-layout, - .index-php .columns-prefs { - display: block; - } - - .columns-prefs .columns-prefs-3, - .columns-prefs .columns-prefs-4 { - display: none; - } -} - -/* three columns on the dash */ -@media only screen and (min-width: 1500px) and (max-width: 1800px) { - #wpbody-content #dashboard-widgets .postbox-container { - width: 33.5%; - } - - #wpbody-content #dashboard-widgets #postbox-container-1 { - width: 33%; - } - - #wpbody-content #dashboard-widgets #postbox-container-3, - #wpbody-content #dashboard-widgets #postbox-container-4 { - float: right; - } - - #dashboard-widgets #postbox-container-4 .empty-container { - border: 0 none; - height: 0; - min-height: 0; - } -} - -@media screen and (max-width: 870px) { - .welcome-panel .welcome-panel-column, - .welcome-panel .welcome-panel-column:first-child { - display: block; - float: none; - width: 100%; - } - - .welcome-panel .welcome-panel-column li { - display: inline-block; - margin-right: 13px; - } - - .welcome-panel .welcome-panel-column ul { - margin: 0.4em 0 0; - } - -} - -@media screen and ( max-width: 782px ) { - #dashboard_recent_comments #the-comment-list .comment-item .avatar { - height: 30px; - width: 30px; - margin: 4px 10px 5px 0; - } -} - -/* Smartphone */ -@media screen and (max-width: 600px) { - /* Keep the close icon from overlapping the Welcome text. */ - .welcome-panel .welcome-panel-close { - overflow: hidden; - text-indent: 40px; - white-space: nowrap; - width: 20px; - height: 20px; - padding: 5px; - top: 5px; - right: 5px; - } - - /* Make the close icon larger for tappability. */ - .welcome-panel .welcome-panel-close:before { - font-size: 20px; - top: 5px; - left: -35px; - } -} diff --git a/wp-admin/css/deprecated-media-rtl.css b/wp-admin/css/deprecated-media-rtl.css deleted file mode 100644 index ddf4edd080..0000000000 --- a/wp-admin/css/deprecated-media-rtl.css +++ /dev/null @@ -1,407 +0,0 @@ -/* Styles for the media library iframe (not used on the Library screen) */ - -div#media-upload-header { - margin: 0; - padding: 5px 5px 0; - font-weight: bold; - position: relative; - border-bottom: 1px solid #dfdfdf; - background: #f9f9f9; -} - -#sidemenu { - overflow: hidden; - float: none; - position: relative; - right: 0; - bottom: -1px; - margin: 0 5px; - padding-right: 10px; - list-style: none; - font-size: 12px; - font-weight: normal; -} - -#sidemenu a { - padding: 0 7px; - display: block; - float: right; - line-height: 28px; - border-top: 1px solid #f9f9f9; - border-bottom: 1px solid #dfdfdf; - background-color: #f9f9f9; - text-decoration: none; - -webkit-transition: none; - transition: none; -} - -#sidemenu li { - display: inline; - line-height: 200%; - list-style: none; - text-align: center; - white-space: nowrap; - margin: 0; - padding: 0; -} - -#sidemenu a.current { - font-weight: normal; - padding-right: 6px; - padding-left: 6px; - border: 1px solid #dfdfdf; - border-bottom-color: #f1f1f1; - background-color: #f1f1f1; - color: #000; -} - -#media-upload:after { /* clearfix */ - content: ""; - display: table; - clear: both; -} - -#media-upload .slidetoggle { - border-top-color: #dfdfdf; -} - -#media-upload input[type="radio"] { - padding: 0; -} - -form { - margin: 1em; -} - -#search-filter { - text-align: left; -} - -th { - position: relative; -} - -.media-upload-form label.form-help, td.help { - font-family: sans-serif; - font-style: italic; - font-weight: normal; -} - -.media-upload-form p.help { - margin: 0; - padding: 0; -} - -.media-upload-form fieldset { - width: 100%; - border: none; - text-align: justify; - margin: 0 0 1em 0; - padding: 0; -} - -/* specific to the image upload form */ - -.image-align-none-label { - background: url(../images/align-none.png) no-repeat center left; -} - -.image-align-left-label { - background: url(../images/align-left.png) no-repeat center left; -} - -.image-align-center-label { - background: url(../images/align-center.png) no-repeat center left; -} - -.image-align-right-label { - background: url(../images/align-right.png) no-repeat center left; -} - -tr.image-size td { - width: 460px; -} - -tr.image-size div.image-size-item { - margin: 0 0 5px; -} - -#library-form .progress, -#gallery-form .progress, -.insert-gallery, -.describe.startopen, -.describe.startclosed { - display: none; -} - -.media-item .thumbnail { - max-width: 128px; - max-height: 128px; -} - -thead.media-item-info tr { - background-color: transparent; -} - -.form-table thead.media-item-info { - border: 8px solid #fff; -} - -abbr.required { - text-decoration: none; - border: none; -} - -.describe label { - display: inline; -} - -.describe td.error { - padding: 2px 8px; -} - -.describe td.A1 { - width: 132px; -} - -.describe input[type="text"], -.describe textarea { - width: 460px; - border-width: 1px; - border-style: solid; -} - -/* Specific to Uploader */ - -#media-upload p.ml-submit { - padding: 1em 0; -} - -#media-upload p.help, -#media-upload label.help { - font-family: sans-serif; - font-style: italic; - font-weight: normal; -} - -#media-upload .ui-sortable .media-item { - cursor: move; -} - -#media-upload tr.image-size { - margin-bottom: 1em; - height: 3em; -} - -#media-upload #filter { - width: 623px; -} - -#media-upload #filter .subsubsub { - margin: 8px 0; -} - -#filter .tablenav select { - border-style: solid; - border-width: 1px; - padding: 2px; - vertical-align: top; - width: auto; -} - -#media-upload .del-attachment { - display: none; - margin: 5px 0; -} - -.menu_order { - float: left; - font-size: 11px; - margin: 8px 10px 0; -} - -.menu_order_input { - border: 1px solid #ddd; - font-size: 10px; - padding: 1px; - width: 23px; -} - -.ui-sortable-helper { - background-color: #fff; - border: 1px solid #a0a5aa; - opacity: 0.6; - filter: alpha(opacity=60); -} - -#media-upload th.order-head { - width: 20%; - text-align: center; -} - -#media-upload th.actions-head { - width: 25%; - text-align: center; -} - -#media-upload a.wp-post-thumbnail { - margin: 0 20px; -} - -#media-upload .widefat { - border-style: solid solid none; -} - -.sorthelper { - height: 37px; - width: 623px; - display: block; -} - -#gallery-settings th.label { - width: 160px; -} - -#gallery-settings #basic th.label { - padding: 5px 0 5px 5px; -} - -#gallery-settings .title { - clear: both; - padding: 0 0 3px; - font-size: 1.6em; - border-bottom: 1px solid #DADADA; -} - -h3.media-title { - font-size: 1.6em; -} - -h4.media-sub-title { - border-bottom: 1px solid #DADADA; - font-size: 1.3em; - margin: 12px; - padding: 0 0 3px; -} - -#gallery-settings .title, -h3.media-title, -h4.media-sub-title { - font-family: Georgia,"Times New Roman",Times,serif; - font-weight: normal; - color: #5A5A5A; -} - -#gallery-settings .describe td { - vertical-align: middle; - height: 3em; -} - -#gallery-settings .describe th.label { - padding-top: .5em; - text-align: right; -} - -#gallery-settings .describe { - padding: 5px; - width: 100%; - clear: both; - cursor: default; - background: #fff; -} - -#gallery-settings .describe select { - width: 15em; -} - -#gallery-settings .describe select option, -#gallery-settings .describe td { - padding: 0; -} - -#gallery-settings label, -#gallery-settings legend { - font-size: 13px; - color: #464646; - margin-left: 15px; -} - -#gallery-settings .align .field label { - margin: 0 3px 0 1em; -} - -#gallery-settings p.ml-submit { - border-top: 1px solid #dfdfdf; -} - -#gallery-settings select#columns { - width: 6em; -} - -#sort-buttons { - font-size: 0.8em; - margin: 3px 0 -8px 25px; - text-align: left; - max-width: 625px; -} - -#sort-buttons a { - text-decoration: none; -} - -#sort-buttons #asc, -#sort-buttons #showall { - padding-right: 5px; -} - -#sort-buttons span { - margin-left: 25px; -} - -p.media-types { - padding: 1em; -} - -tr.not-image { - display: none; -} - -table.not-image tr.not-image { - display: table-row; -} - -table.not-image tr.image-only { - display: none; -} - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - - .image-align-none-label { - background-image: url(../images/align-none-2x.png?ver=20120916); - -webkit-background-size: 21px 15px; - background-size: 21px 15px; - } - - .image-align-left-label { - background-image: url(../images/align-left-2x.png?ver=20120916); - -webkit-background-size: 22px 15px; - background-size: 22px 15px; - } - - .image-align-center-label { - background-image: url(../images/align-center-2x.png?ver=20120916); - -webkit-background-size: 21px 15px; - background-size: 21px 15px; - } - - .image-align-right-label { - background-image: url(../images/align-right-2x.png?ver=20120916); - -webkit-background-size: 22px 15px; - background-size: 22px 15px; - } -} diff --git a/wp-admin/css/deprecated-media-rtl.min.css b/wp-admin/css/deprecated-media-rtl.min.css deleted file mode 100644 index 103e9f6985..0000000000 --- a/wp-admin/css/deprecated-media-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -#sidemenu,th{position:relative}#sidemenu a,#sort-buttons a,abbr.required{text-decoration:none}div#media-upload-header{margin:0;padding:5px 5px 0;font-weight:700;position:relative;border-bottom:1px solid #dfdfdf;background:#f9f9f9}#sidemenu{overflow:hidden;float:none;right:0;bottom:-1px;margin:0 5px;padding-right:10px;list-style:none;font-size:12px;font-weight:400}#sidemenu a{padding:0 7px;display:block;float:right;line-height:28px;border-top:1px solid #f9f9f9;border-bottom:1px solid #dfdfdf;background-color:#f9f9f9;-webkit-transition:none;transition:none}#sidemenu li{display:inline;line-height:200%;list-style:none;text-align:center;white-space:nowrap;margin:0;padding:0}#sidemenu a.current{font-weight:400;padding-right:6px;padding-left:6px;border:1px solid #dfdfdf;border-bottom-color:#f1f1f1;background-color:#f1f1f1;color:#000}#media-upload:after{content:"";display:table;clear:both}#media-upload .slidetoggle{border-top-color:#dfdfdf}#media-upload input[type=radio]{padding:0}form{margin:1em}#search-filter{text-align:left}.media-upload-form label.form-help,td.help{font-family:sans-serif;font-style:italic;font-weight:400}.media-upload-form p.help{margin:0;padding:0}.media-upload-form fieldset{width:100%;border:none;text-align:justify;margin:0 0 1em;padding:0}.image-align-none-label{background:url(../images/align-none.png) center left no-repeat}.image-align-left-label{background:url(../images/align-left.png) center left no-repeat}.image-align-center-label{background:url(../images/align-center.png) center left no-repeat}.image-align-right-label{background:url(../images/align-right.png) center left no-repeat}tr.image-size td{width:460px}tr.image-size div.image-size-item{margin:0 0 5px}#gallery-form .progress,#library-form .progress,.describe.startclosed,.describe.startopen,.insert-gallery{display:none}.media-item .thumbnail{max-width:128px;max-height:128px}thead.media-item-info tr{background-color:transparent}.form-table thead.media-item-info{border:8px solid #fff}abbr.required{border:none}.describe label{display:inline}.describe td.error{padding:2px 8px}.describe td.A1{width:132px}.describe input[type=text],.describe textarea{width:460px;border-width:1px;border-style:solid}#media-upload p.ml-submit{padding:1em 0}#media-upload label.help,#media-upload p.help{font-family:sans-serif;font-style:italic;font-weight:400}#media-upload .ui-sortable .media-item{cursor:move}#media-upload tr.image-size{margin-bottom:1em;height:3em}#media-upload #filter{width:623px}#media-upload #filter .subsubsub{margin:8px 0}#filter .tablenav select{border-style:solid;border-width:1px;padding:2px;vertical-align:top;width:auto}#media-upload .del-attachment{display:none;margin:5px 0}.menu_order{float:left;font-size:11px;margin:8px 10px 0}.menu_order_input{border:1px solid #ddd;font-size:10px;padding:1px;width:23px}.ui-sortable-helper{background-color:#fff;border:1px solid #a0a5aa;opacity:.6;filter:alpha(opacity=60)}#media-upload th.order-head{width:20%;text-align:center}#media-upload th.actions-head{width:25%;text-align:center}#media-upload a.wp-post-thumbnail{margin:0 20px}#media-upload .widefat{border-style:solid solid none}.sorthelper{height:37px;width:623px;display:block}#gallery-settings th.label{width:160px}#gallery-settings #basic th.label{padding:5px 0 5px 5px}#gallery-settings .title,h4.media-sub-title{border-bottom:1px solid #DADADA;padding:0 0 3px}#gallery-settings .title{clear:both;font-size:1.6em}h3.media-title{font-size:1.6em}h4.media-sub-title{font-size:1.3em;margin:12px}#gallery-settings .title,h3.media-title,h4.media-sub-title{font-family:Georgia,"Times New Roman",Times,serif;font-weight:400;color:#5A5A5A}#gallery-settings .describe td{vertical-align:middle;height:3em}#gallery-settings .describe th.label{padding-top:.5em;text-align:right}#gallery-settings .describe{padding:5px;width:100%;clear:both;cursor:default;background:#fff}#gallery-settings .describe select{width:15em}#gallery-settings .describe select option,#gallery-settings .describe td{padding:0}#gallery-settings label,#gallery-settings legend{font-size:13px;color:#464646;margin-left:15px}#gallery-settings .align .field label{margin:0 3px 0 1em}#gallery-settings p.ml-submit{border-top:1px solid #dfdfdf}#gallery-settings select#columns{width:6em}#sort-buttons{font-size:.8em;margin:3px 0 -8px 25px;text-align:left;max-width:625px}#sort-buttons #asc,#sort-buttons #showall{padding-right:5px}#sort-buttons span{margin-left:25px}p.media-types{padding:1em}tr.not-image{display:none}table.not-image tr.not-image{display:table-row}table.not-image tr.image-only{display:none}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.image-align-none-label{background-image:url(../images/align-none-2x.png?ver=20120916);-webkit-background-size:21px 15px;background-size:21px 15px}.image-align-left-label{background-image:url(../images/align-left-2x.png?ver=20120916);-webkit-background-size:22px 15px;background-size:22px 15px}.image-align-center-label{background-image:url(../images/align-center-2x.png?ver=20120916);-webkit-background-size:21px 15px;background-size:21px 15px}.image-align-right-label{background-image:url(../images/align-right-2x.png?ver=20120916);-webkit-background-size:22px 15px;background-size:22px 15px}} \ No newline at end of file diff --git a/wp-admin/css/deprecated-media.css b/wp-admin/css/deprecated-media.css deleted file mode 100644 index 833512de17..0000000000 --- a/wp-admin/css/deprecated-media.css +++ /dev/null @@ -1,407 +0,0 @@ -/* Styles for the media library iframe (not used on the Library screen) */ - -div#media-upload-header { - margin: 0; - padding: 5px 5px 0; - font-weight: bold; - position: relative; - border-bottom: 1px solid #dfdfdf; - background: #f9f9f9; -} - -#sidemenu { - overflow: hidden; - float: none; - position: relative; - left: 0; - bottom: -1px; - margin: 0 5px; - padding-left: 10px; - list-style: none; - font-size: 12px; - font-weight: normal; -} - -#sidemenu a { - padding: 0 7px; - display: block; - float: left; - line-height: 28px; - border-top: 1px solid #f9f9f9; - border-bottom: 1px solid #dfdfdf; - background-color: #f9f9f9; - text-decoration: none; - -webkit-transition: none; - transition: none; -} - -#sidemenu li { - display: inline; - line-height: 200%; - list-style: none; - text-align: center; - white-space: nowrap; - margin: 0; - padding: 0; -} - -#sidemenu a.current { - font-weight: normal; - padding-left: 6px; - padding-right: 6px; - border: 1px solid #dfdfdf; - border-bottom-color: #f1f1f1; - background-color: #f1f1f1; - color: #000; -} - -#media-upload:after { /* clearfix */ - content: ""; - display: table; - clear: both; -} - -#media-upload .slidetoggle { - border-top-color: #dfdfdf; -} - -#media-upload input[type="radio"] { - padding: 0; -} - -form { - margin: 1em; -} - -#search-filter { - text-align: right; -} - -th { - position: relative; -} - -.media-upload-form label.form-help, td.help { - font-family: sans-serif; - font-style: italic; - font-weight: normal; -} - -.media-upload-form p.help { - margin: 0; - padding: 0; -} - -.media-upload-form fieldset { - width: 100%; - border: none; - text-align: justify; - margin: 0 0 1em 0; - padding: 0; -} - -/* specific to the image upload form */ - -.image-align-none-label { - background: url(../images/align-none.png) no-repeat center left; -} - -.image-align-left-label { - background: url(../images/align-left.png) no-repeat center left; -} - -.image-align-center-label { - background: url(../images/align-center.png) no-repeat center left; -} - -.image-align-right-label { - background: url(../images/align-right.png) no-repeat center left; -} - -tr.image-size td { - width: 460px; -} - -tr.image-size div.image-size-item { - margin: 0 0 5px; -} - -#library-form .progress, -#gallery-form .progress, -.insert-gallery, -.describe.startopen, -.describe.startclosed { - display: none; -} - -.media-item .thumbnail { - max-width: 128px; - max-height: 128px; -} - -thead.media-item-info tr { - background-color: transparent; -} - -.form-table thead.media-item-info { - border: 8px solid #fff; -} - -abbr.required { - text-decoration: none; - border: none; -} - -.describe label { - display: inline; -} - -.describe td.error { - padding: 2px 8px; -} - -.describe td.A1 { - width: 132px; -} - -.describe input[type="text"], -.describe textarea { - width: 460px; - border-width: 1px; - border-style: solid; -} - -/* Specific to Uploader */ - -#media-upload p.ml-submit { - padding: 1em 0; -} - -#media-upload p.help, -#media-upload label.help { - font-family: sans-serif; - font-style: italic; - font-weight: normal; -} - -#media-upload .ui-sortable .media-item { - cursor: move; -} - -#media-upload tr.image-size { - margin-bottom: 1em; - height: 3em; -} - -#media-upload #filter { - width: 623px; -} - -#media-upload #filter .subsubsub { - margin: 8px 0; -} - -#filter .tablenav select { - border-style: solid; - border-width: 1px; - padding: 2px; - vertical-align: top; - width: auto; -} - -#media-upload .del-attachment { - display: none; - margin: 5px 0; -} - -.menu_order { - float: right; - font-size: 11px; - margin: 8px 10px 0; -} - -.menu_order_input { - border: 1px solid #ddd; - font-size: 10px; - padding: 1px; - width: 23px; -} - -.ui-sortable-helper { - background-color: #fff; - border: 1px solid #a0a5aa; - opacity: 0.6; - filter: alpha(opacity=60); -} - -#media-upload th.order-head { - width: 20%; - text-align: center; -} - -#media-upload th.actions-head { - width: 25%; - text-align: center; -} - -#media-upload a.wp-post-thumbnail { - margin: 0 20px; -} - -#media-upload .widefat { - border-style: solid solid none; -} - -.sorthelper { - height: 37px; - width: 623px; - display: block; -} - -#gallery-settings th.label { - width: 160px; -} - -#gallery-settings #basic th.label { - padding: 5px 5px 5px 0; -} - -#gallery-settings .title { - clear: both; - padding: 0 0 3px; - font-size: 1.6em; - border-bottom: 1px solid #DADADA; -} - -h3.media-title { - font-size: 1.6em; -} - -h4.media-sub-title { - border-bottom: 1px solid #DADADA; - font-size: 1.3em; - margin: 12px; - padding: 0 0 3px; -} - -#gallery-settings .title, -h3.media-title, -h4.media-sub-title { - font-family: Georgia,"Times New Roman",Times,serif; - font-weight: normal; - color: #5A5A5A; -} - -#gallery-settings .describe td { - vertical-align: middle; - height: 3em; -} - -#gallery-settings .describe th.label { - padding-top: .5em; - text-align: left; -} - -#gallery-settings .describe { - padding: 5px; - width: 100%; - clear: both; - cursor: default; - background: #fff; -} - -#gallery-settings .describe select { - width: 15em; -} - -#gallery-settings .describe select option, -#gallery-settings .describe td { - padding: 0; -} - -#gallery-settings label, -#gallery-settings legend { - font-size: 13px; - color: #464646; - margin-right: 15px; -} - -#gallery-settings .align .field label { - margin: 0 1em 0 3px; -} - -#gallery-settings p.ml-submit { - border-top: 1px solid #dfdfdf; -} - -#gallery-settings select#columns { - width: 6em; -} - -#sort-buttons { - font-size: 0.8em; - margin: 3px 25px -8px 0; - text-align: right; - max-width: 625px; -} - -#sort-buttons a { - text-decoration: none; -} - -#sort-buttons #asc, -#sort-buttons #showall { - padding-left: 5px; -} - -#sort-buttons span { - margin-right: 25px; -} - -p.media-types { - padding: 1em; -} - -tr.not-image { - display: none; -} - -table.not-image tr.not-image { - display: table-row; -} - -table.not-image tr.image-only { - display: none; -} - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - - .image-align-none-label { - background-image: url(../images/align-none-2x.png?ver=20120916); - -webkit-background-size: 21px 15px; - background-size: 21px 15px; - } - - .image-align-left-label { - background-image: url(../images/align-left-2x.png?ver=20120916); - -webkit-background-size: 22px 15px; - background-size: 22px 15px; - } - - .image-align-center-label { - background-image: url(../images/align-center-2x.png?ver=20120916); - -webkit-background-size: 21px 15px; - background-size: 21px 15px; - } - - .image-align-right-label { - background-image: url(../images/align-right-2x.png?ver=20120916); - -webkit-background-size: 22px 15px; - background-size: 22px 15px; - } -} diff --git a/wp-admin/css/deprecated-media.min.css b/wp-admin/css/deprecated-media.min.css deleted file mode 100644 index 130c42061f..0000000000 --- a/wp-admin/css/deprecated-media.min.css +++ /dev/null @@ -1 +0,0 @@ -#sidemenu,th{position:relative}#sidemenu a,#sort-buttons a,abbr.required{text-decoration:none}div#media-upload-header{margin:0;padding:5px 5px 0;font-weight:700;position:relative;border-bottom:1px solid #dfdfdf;background:#f9f9f9}#sidemenu{overflow:hidden;float:none;left:0;bottom:-1px;margin:0 5px;padding-left:10px;list-style:none;font-size:12px;font-weight:400}#sidemenu a{padding:0 7px;display:block;float:left;line-height:28px;border-top:1px solid #f9f9f9;border-bottom:1px solid #dfdfdf;background-color:#f9f9f9;-webkit-transition:none;transition:none}#sidemenu li{display:inline;line-height:200%;list-style:none;text-align:center;white-space:nowrap;margin:0;padding:0}#sidemenu a.current{font-weight:400;padding-left:6px;padding-right:6px;border:1px solid #dfdfdf;border-bottom-color:#f1f1f1;background-color:#f1f1f1;color:#000}#media-upload:after{content:"";display:table;clear:both}#media-upload .slidetoggle{border-top-color:#dfdfdf}#media-upload input[type=radio]{padding:0}form{margin:1em}#search-filter{text-align:right}.media-upload-form label.form-help,td.help{font-family:sans-serif;font-style:italic;font-weight:400}.media-upload-form p.help{margin:0;padding:0}.media-upload-form fieldset{width:100%;border:none;text-align:justify;margin:0 0 1em;padding:0}.image-align-none-label{background:url(../images/align-none.png) center left no-repeat}.image-align-left-label{background:url(../images/align-left.png) center left no-repeat}.image-align-center-label{background:url(../images/align-center.png) center left no-repeat}.image-align-right-label{background:url(../images/align-right.png) center left no-repeat}tr.image-size td{width:460px}tr.image-size div.image-size-item{margin:0 0 5px}#gallery-form .progress,#library-form .progress,.describe.startclosed,.describe.startopen,.insert-gallery{display:none}.media-item .thumbnail{max-width:128px;max-height:128px}thead.media-item-info tr{background-color:transparent}.form-table thead.media-item-info{border:8px solid #fff}abbr.required{border:none}.describe label{display:inline}.describe td.error{padding:2px 8px}.describe td.A1{width:132px}.describe input[type=text],.describe textarea{width:460px;border-width:1px;border-style:solid}#media-upload p.ml-submit{padding:1em 0}#media-upload label.help,#media-upload p.help{font-family:sans-serif;font-style:italic;font-weight:400}#media-upload .ui-sortable .media-item{cursor:move}#media-upload tr.image-size{margin-bottom:1em;height:3em}#media-upload #filter{width:623px}#media-upload #filter .subsubsub{margin:8px 0}#filter .tablenav select{border-style:solid;border-width:1px;padding:2px;vertical-align:top;width:auto}#media-upload .del-attachment{display:none;margin:5px 0}.menu_order{float:right;font-size:11px;margin:8px 10px 0}.menu_order_input{border:1px solid #ddd;font-size:10px;padding:1px;width:23px}.ui-sortable-helper{background-color:#fff;border:1px solid #a0a5aa;opacity:.6;filter:alpha(opacity=60)}#media-upload th.order-head{width:20%;text-align:center}#media-upload th.actions-head{width:25%;text-align:center}#media-upload a.wp-post-thumbnail{margin:0 20px}#media-upload .widefat{border-style:solid solid none}.sorthelper{height:37px;width:623px;display:block}#gallery-settings th.label{width:160px}#gallery-settings #basic th.label{padding:5px 5px 5px 0}#gallery-settings .title,h4.media-sub-title{border-bottom:1px solid #DADADA;padding:0 0 3px}#gallery-settings .title{clear:both;font-size:1.6em}h3.media-title{font-size:1.6em}h4.media-sub-title{font-size:1.3em;margin:12px}#gallery-settings .title,h3.media-title,h4.media-sub-title{font-family:Georgia,"Times New Roman",Times,serif;font-weight:400;color:#5A5A5A}#gallery-settings .describe td{vertical-align:middle;height:3em}#gallery-settings .describe th.label{padding-top:.5em;text-align:left}#gallery-settings .describe{padding:5px;width:100%;clear:both;cursor:default;background:#fff}#gallery-settings .describe select{width:15em}#gallery-settings .describe select option,#gallery-settings .describe td{padding:0}#gallery-settings label,#gallery-settings legend{font-size:13px;color:#464646;margin-right:15px}#gallery-settings .align .field label{margin:0 1em 0 3px}#gallery-settings p.ml-submit{border-top:1px solid #dfdfdf}#gallery-settings select#columns{width:6em}#sort-buttons{font-size:.8em;margin:3px 25px -8px 0;text-align:right;max-width:625px}#sort-buttons #asc,#sort-buttons #showall{padding-left:5px}#sort-buttons span{margin-right:25px}p.media-types{padding:1em}tr.not-image{display:none}table.not-image tr.not-image{display:table-row}table.not-image tr.image-only{display:none}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.image-align-none-label{background-image:url(../images/align-none-2x.png?ver=20120916);-webkit-background-size:21px 15px;background-size:21px 15px}.image-align-left-label{background-image:url(../images/align-left-2x.png?ver=20120916);-webkit-background-size:22px 15px;background-size:22px 15px}.image-align-center-label{background-image:url(../images/align-center-2x.png?ver=20120916);-webkit-background-size:21px 15px;background-size:21px 15px}.image-align-right-label{background-image:url(../images/align-right-2x.png?ver=20120916);-webkit-background-size:22px 15px;background-size:22px 15px}} \ No newline at end of file diff --git a/wp-admin/css/edit-rtl.css b/wp-admin/css/edit-rtl.css deleted file mode 100644 index 8ab7388fcc..0000000000 --- a/wp-admin/css/edit-rtl.css +++ /dev/null @@ -1,1565 +0,0 @@ -#poststuff { - padding-top: 10px; - min-width: 763px; -} - -#poststuff #post-body { - padding: 0; -} - -#poststuff .postbox-container { - width: 100%; -} - -#poststuff #post-body.columns-2 { - margin-left: 300px; -} - -/*------------------------------------------------------------------------------ - 11.0 - Write/Edit Post Screen -------------------------------------------------------------------------------*/ - -#show-comments { - overflow: hidden; -} - -#save-action .spinner, -#show-comments a, -#show-comments .spinner { - float: right; -} - -#lost-connection-notice .spinner { - visibility: visible; - float: right; - margin: 0 0 0 5px; -} - -#titlediv { - position: relative; -} - -#titlediv label { - cursor: text; -} - -#titlediv div.inside { - margin: 0; -} - -#poststuff #titlewrap { - border: 0; - padding: 0; -} - -#titlediv #title { - padding: 3px 8px; - font-size: 1.7em; - line-height: 100%; - height: 1.7em; - width: 100%; - outline: none; - margin: 0 0 3px; - background-color: #fff; -} - -#titlediv #title-prompt-text { - color: #777; - position: absolute; - font-size: 1.7em; - padding: 11px 10px; -} - -#poststuff .inside-submitbox, -#side-sortables .inside-submitbox { - margin: 0 3px; - font-size: 11px; -} - -input#link_description, -input#link_url { - width: 98%; -} - -#pending { - background: 100% none; - border: 0 none; - padding: 0; - font-size: 11px; - margin-top: -1px; -} - -#edit-slug-box { - line-height: 24px; - min-height: 25px; /* Yes, line-height + 1 */ - margin-top: 5px; - padding: 0 10px; - color: #666; -} - -#edit-slug-box .cancel { - margin-left: 10px; - font-size: 11px; -} - -#editable-post-name-full { - display: none; -} - -#editable-post-name { - background-color: #fffbcc; -} - -#editable-post-name input { - font-size: 13px; - height: 22px; - margin: 0; - width: 16em; -} - -.postarea h3 label { - float: right; -} - -.submitbox .submit { - text-align: right; - padding: 12px 10px 10px; - font-size: 11px; - background-color: #464646; - color: #ccc; -} - -.submitbox .submitdelete { - text-decoration: none; - padding: 1px 2px; -} - -/* @todo: do we really need this? word on the street is we don't and this -stray rule may actually be compensated for elsewhere. */ -#normal-sortables .submitbox .submitdelete:hover { - color: #000; - background-color: #f00; - border-bottom-color: #f00; -} - -.submitbox .submit a:hover { - text-decoration: underline; -} - -.submitbox .submit input { - margin-bottom: 8px; - margin-left: 4px; - padding: 6px; -} - -.inside-submitbox #post_status { - margin: 2px -2px 2px 0; -} - -#post-status-select { - margin-top: 3px; -} - -/* Post Screen */ -#post-body #normal-sortables { - min-height: 50px; -} - -.postbox { - position: relative; - min-width: 255px; - border: 1px solid #e5e5e5; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); - background: #fff; -} - -#trackback_url { - width: 99%; -} - -#normal-sortables .postbox .submit { - background: transparent none; - border: 0 none; - float: left; - padding: 0 12px; - margin:0; -} - -.category-add input[type="text"], -.category-add select { - width: 100%; - max-width: 260px; - vertical-align: baseline; -} - -#side-sortables .category-add input[type="text"], -#side-sortables .category-add select { - margin: 0 0 1em; -} - -ul.category-tabs li, -#side-sortables .add-menu-item-tabs li, -.wp-tab-bar li { - display: inline; - line-height: 1.35em; -} - -.no-js .category-tabs li.hide-if-no-js { - display: none; -} - -.category-tabs a, -#side-sortables .add-menu-item-tabs a, -.wp-tab-bar a { - text-decoration: none; -} - -/* @todo: do these really need to be so specific? */ -#side-sortables .category-tabs .tabs a, -#side-sortables .add-menu-item-tabs .tabs a, -.wp-tab-bar .wp-tab-active a, -#post-body ul.category-tabs li.tabs a, -#post-body ul.add-menu-item-tabs li.tabs a { - color: #32373c; -} - -.category-tabs { - margin: 8px 0 5px; -} - -#category-adder h4 { - margin: 10px 0; -} - -#side-sortables .add-menu-item-tabs, -.wp-tab-bar { - margin-bottom: 3px; -} - -#normal-sortables .postbox #replyrow .submit { - float: none; - margin: 0; - padding: 0 7px 5px; -} - -#side-sortables .submitbox .submit input, -#side-sortables .submitbox .submit .preview, -#side-sortables .submitbox .submit a.preview:hover { - border: 0 none; -} - -#side-sortables .inside-submitbox .insidebox, -.stuffbox .insidebox { - margin: 11px 0; -} - -/* @todo: make this a more generic class */ -ul.category-tabs, -ul.add-menu-item-tabs, -ul.wp-tab-bar { - margin-top: 12px; -} - -ul.category-tabs li, -ul.add-menu-item-tabs li { - border: solid 1px transparent; - position: relative; -} - -ul.category-tabs li.tabs, -ul.add-menu-item-tabs li.tabs, -.wp-tab-active { - border: 1px solid #dfdfdf; - border-bottom-color: #fdfdfd; - background-color: #fdfdfd; -} - -ul.category-tabs li, -ul.add-menu-item-tabs li, -ul.wp-tab-bar li { - padding: 3px 5px 5px; -} - -#postimagediv .inside img { - max-width: 100%; - height: auto; - width: auto; -} - -form#tags-filter { - position: relative; -} - -/* Global classes */ -.wp-hidden-children .wp-hidden-child, -.ui-tabs-hide { - display: none; -} - -#post-body .tagsdiv #newtag { - margin-left: 5px; - width: 16em; -} - -#side-sortables input#post_password { - width: 94% -} - -#side-sortables .tagsdiv #newtag { - width: 68%; -} - -#post-status-info { - width: 100%; - border-spacing: 0; - border: 1px solid #e5e5e5; - border-top: none; - background-color: #f7f7f7; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); - z-index: 999; -} - -#post-status-info td { - font-size: 12px; -} - -.autosave-info { - padding: 2px 10px; - text-align: left; -} - -#editorcontent #post-status-info { - border: none; -} - -#content-resize-handle { - background: transparent url(../images/resize.gif) no-repeat scroll left bottom; - width: 12px; - cursor: row-resize; -} - -.rtl #content-resize-handle { - background: transparent url(../images/resize-rtl.gif) no-repeat scroll right bottom; -} - -.wp-editor-expand #content-resize-handle { - display: none; -} - -#postdivrich #content { - resize: none; -} - -#wp-word-count { - display: block; - padding: 2px 10px; -} - -#wp-content-editor-container { - position: relative; -} - -#content-textarea-clone { - z-index: -1; - position: absolute; - top: 0; - visibility: hidden; - overflow: hidden; - max-width: 100%; - border: 1px solid transparent; -} - -.wp-editor-expand #wp-content-editor-tools { - z-index: 1000; - border-bottom: 1px solid #e5e5e5; -} - -.wp-editor-expand #wp-content-editor-container { - -webkit-box-shadow: none; - box-shadow: none; - margin-top: -1px; -} - -.wp-editor-expand #wp-content-editor-container { - border-bottom: 0 none; -} - -.wp-editor-expand div.mce-statusbar { - z-index: 1; -} - -.wp-editor-expand #post-status-info { - border-top: 1px solid #e5e5e5; -} - -.wp-editor-expand div.mce-toolbar-grp { - z-index: 999; -} - -/* TinyMCE native fullscreen mode override */ -.mce-fullscreen #wp-content-wrap .mce-menubar, -.mce-fullscreen #wp-content-wrap .mce-toolbar-grp, -.mce-fullscreen #wp-content-wrap .mce-edit-area, -.mce-fullscreen #wp-content-wrap .mce-statusbar { - position: static !important; - width: auto !important; - padding: 0 !important; -} - -.mce-fullscreen #wp-content-wrap .mce-statusbar { - visibility: visible !important; -} - -.mce-fullscreen #wp-content-wrap .mce-tinymce .mce-wp-dfw { - display: none; -} - -.post-php.mce-fullscreen #wpadminbar, -.mce-fullscreen #wp-content-wrap .mce-wp-dfw { - display: none; -} -/* End TinyMCE native fullscreen mode override */ - -#wp-content-editor-tools { - background-color: #f1f1f1; - padding-top: 20px; -} - -#poststuff #post-body.columns-2 #side-sortables { - width: 280px; -} - -#timestampdiv select { - height: 21px; - line-height: 14px; - padding: 0; - vertical-align: top; - font-size: 12px; -} - -#aa, #jj, #hh, #mn { - padding: 1px; - font-size: 12px; -} - -#jj, #hh, #mn { - width: 2em; -} - -#aa { - width: 3.4em; -} - -.curtime #timestamp { - padding: 2px 0 1px 0; - display: inline !important; - height: auto !important; -} - -#misc-publishing-actions label[for="post_status"]:before, -#post-body #visibility:before, -.curtime #timestamp:before, -#post-body .misc-pub-revisions:before, -span.wp-media-buttons-icon:before { - color: #82878c; -} - -#post-body #visibility:before, -.curtime #timestamp:before, -#post-body .misc-pub-revisions:before { - font: normal 20px/1 'dashicons'; - speak: none; - display: inline-block; - padding: 0 0 0 2px; - top: 0; - right: -1px; - position: relative; - vertical-align: top; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; -} - -#post-body #visibility:before { - content: '\f177'; -} - -.curtime #timestamp:before { - content: '\f145'; - top: -1px; -} - -#post-body .misc-pub-revisions:before { - content: '\f321'; -} - -#timestampdiv { - padding-top: 5px; - line-height: 23px; -} - -#timestampdiv p { - margin: 8px 0 6px; -} - -#timestampdiv input { - border-width: 1px; - border-style: solid; -} - -.notification-dialog { - position: fixed; - top: 30%; - max-height: 70%; - right: 50%; - width: 450px; - margin-right: -225px; - background: #fff; - -webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - line-height: 1.5; - z-index: 1000005; - overflow-y: auto; -} - -.notification-dialog-background { - position: fixed; - top: 0; - right: 0; - left: 0; - bottom: 0; - background: #000; - opacity: 0.7; - filter: alpha(opacity=70); - z-index: 1000000; -} - -#post-lock-dialog .post-locked-message, -#post-lock-dialog .post-taken-over { - margin: 25px; -} - -#post-lock-dialog .post-locked-message a.button { - margin-left: 10px; -} - -#post-lock-dialog .post-locked-avatar { - float: right; - margin: 0 0 20px 20px; -} - -#post-lock-dialog .wp-tab-first { - outline: 0; -} - -#post-lock-dialog .locked-saving img { - float: right; - margin-left: 3px; -} - -#post-lock-dialog.saving .locked-saving, -#post-lock-dialog.saved .locked-saved { - display: inline; -} - -#excerpt { - display: block; - margin: 12px 0 0; - height: 4em; - width: 100%; -} - -.tagchecklist { - margin-right: 14px; - font-size: 12px; - overflow: auto; -} - -.tagchecklist br { - display: none; -} - -.tagchecklist strong { - margin-right: -8px; - position: absolute; -} - -.tagchecklist span { - margin-left: 25px; - display: block; - float: right; - font-size: 13px; - line-height: 1.8em; - cursor: default; - max-width: 100%; - overflow: hidden; - text-overflow: ellipsis; -} - -.tagchecklist span a { - margin: 1px -17px 0 0; - cursor: pointer; - width: 20px; - height: 20px; - display: block; - float: right; - text-indent: 0; - overflow: hidden; - position: absolute; -} - -#poststuff h2 { - margin-top: 20px; - font-size: 1.5em; - margin-bottom: 15px; - padding: 0 0 3px; - clear: right; -} - -#poststuff h3 { - font-size: 14px; - padding: 8px 12px; - margin: 0; - line-height: 1.4; -} - -#poststuff .inside { - margin: 6px 0 0 0; -} - -#poststuff .inside #parent_id, -#poststuff .inside #page_template { - max-width: 100%; -} - -#poststuff .inside label.spam, -#poststuff .inside label.deleted { - color: red; -} - -#poststuff .inside label.waiting { - color: orange; -} - -#poststuff .inside label.approved { - color: green; -} - -.ie8 #poststuff .inside #parent_id, -.ie8 #poststuff .inside #page_template { - width: 250px; -} - -#post-visibility-select { - line-height: 1.5em; - margin-top: 3px; -} - -#poststuff #submitdiv .inside { - margin: 0; - padding: 0; -} - -#post-body-content, -.edit-form-section { - margin-bottom: 20px; -} - -/*------------------------------------------------------------------------------ - 11.1 - Custom Fields -------------------------------------------------------------------------------*/ - -#postcustomstuff thead th { - padding: 5px 8px 8px; - background-color: #f1f1f1; -} - -#postcustom #postcustomstuff .submit { - border: 0 none; - float: none; - padding: 0 8px 8px; -} - -#side-sortables #postcustom #postcustomstuff .submit { - margin: 0; - padding: 0; -} - -#side-sortables #postcustom #postcustomstuff #the-list textarea { - height: 85px; -} - -#side-sortables #postcustom #postcustomstuff td.left input, -#side-sortables #postcustom #postcustomstuff td.left select, -#side-sortables #postcustomstuff #newmetaleft a { - margin: 3px 3px 0; -} - -#postcustomstuff table { - margin: 0; - width: 100%; - border: 1px solid #dfdfdf; - border-spacing: 0; - background-color: #f9f9f9; -} - -#postcustomstuff tr { - vertical-align: top; -} - -#postcustomstuff table input, -#postcustomstuff table select, -#postcustomstuff table textarea { - width: 96%; - margin: 8px; -} - -#side-sortables #postcustomstuff table input, -#side-sortables #postcustomstuff table select, -#side-sortables #postcustomstuff table textarea { - margin: 3px; -} - -#postcustomstuff th.left, -#postcustomstuff td.left { - width: 38%; -} - -#postcustomstuff .submit input { - margin: 0; - width: auto; -} - -#postcustomstuff #newmetaleft a { - display: inline-block; - margin: 0 8px 8px; - text-decoration: none; -} - -.no-js #postcustomstuff #enternew { - display: none; -} - -#post-body-content .compat-attachment-fields { - margin-bottom: 20px; -} - -.compat-attachment-fields th { - padding-top: 5px; - padding-left: 10px; -} - -/*------------------------------------------------------------------------------ - 11.3 - Featured Images -------------------------------------------------------------------------------*/ - -#select-featured-image { - padding: 4px 0; - overflow: hidden; -} - -#select-featured-image img { - max-width: 100%; - height: auto; - margin-bottom: 10px; -} - -#select-featured-image a { - float: right; - clear: both; -} - -#select-featured-image .remove { - display: none; - margin-top: 10px; -} - -.js #select-featured-image.has-featured-image .remove { - display: inline-block; -} - -.no-js #select-featured-image .choose { - display: none; -} - -/*------------------------------------------------------------------------------ - 11.4 - Post formats -------------------------------------------------------------------------------*/ - -.post-state-format { - overflow: hidden; - display: inline-block; - vertical-align: middle; - height: 20px; - width: 20px; - margin-left: 5px; - margin-top: -4px; -} - -.post-state-format:before { - display: block; - height: 20px; - width: 20px; - font: normal 20px/1 'dashicons' !important; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.post-state-format:before, -.post-format-icon:before { - color: #ddd; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -a.post-state-format:hover:before, -a.post-format-icon:hover:before { - color: #00a0d2; -} - -#post-formats-select { - line-height: 2em; -} - -#post-formats-select .post-format-icon:before { - top: 5px; -} - -input.post-format { - margin-top: 1px; -} - -label.post-format-icon { - margin-right: 0px; - padding: 2px 0px 2px 0; -} - -.post-format-icon:before { - position: relative; - display: inline-block; - margin-left: 7px; - font: normal 20px/1 'dashicons'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.post-state-format.post-format-standard:before, -.post-format-icon.post-format-standard:before, -a.post-state-format.format-standard:before { - content: '\f109'; -} - -.post-state-format.post-format-image:before, -.post-format-icon.post-format-image:before, -a.post-state-format.format-image:before { - content: '\f128'; -} - -.post-state-format.post-format-gallery:before, -.post-format-icon.post-format-gallery:before, -a.post-state-format.format-gallery:before { - content: '\f161'; -} - -.post-state-format.post-format-audio:before, -.post-format-icon.post-format-audio:before, -a.post-state-format.format-audio:before { - content: '\f127'; -} - -.post-state-format.post-format-video:before, -.post-format-icon.post-format-video:before, -a.post-state-format.format-video:before { - content: '\f126'; -} - -.post-state-format.post-format-chat:before, -.post-format-icon.post-format-chat:before, -a.post-state-format.format-chat:before { - content: '\f125'; -} - -.post-state-format.post-format-status:before, -.post-format-icon.post-format-status:before, -a.post-state-format.format-status:before { - content: '\f130'; -} - -.post-state-format.post-format-aside:before, -.post-format-icon.post-format-aside:before, -a.post-state-format.format-aside:before { - content: '\f123'; -} - -.post-state-format.post-format-quote:before, -.post-format-icon.post-format-quote:before, -a.post-state-format.format-quote:before { - content: '\f122'; -} - -.post-state-format.post-format-link:before, -.post-format-icon.post-format-link:before, -a.post-state-format.format-link:before { - content: '\f103'; -} - -/*------------------------------------------------------------------------------ - 12.0 - Categories -------------------------------------------------------------------------------*/ - -.category-adder { - margin-right: 120px; - padding: 4px 0; -} - -.category-adder h4 { - margin: 0 0 8px; -} - -#side-sortables .category-adder { - margin: 0; -} - -.wp-tab-panel, -.categorydiv div.tabs-panel, -.customlinkdiv div.tabs-panel, -.posttypediv div.tabs-panel, -.taxonomydiv div.tabs-panel { - min-height: 42px; - max-height: 200px; - overflow: auto; - padding: 0 0.9em; - border: solid 1px #dfdfdf; - background-color: #fdfdfd; -} - -div.tabs-panel-active { - display:block; -} - -div.tabs-panel-inactive { - display:none; -} - -#front-page-warning, -#front-static-pages ul, -ul.export-filters, -.inline-editor ul.cat-checklist ul, -.categorydiv ul.categorychecklist ul, -.customlinkdiv ul.categorychecklist ul, -.posttypediv ul.categorychecklist ul, -.taxonomydiv ul.categorychecklist ul { - margin-right: 18px; -} - -ul.categorychecklist li { - margin: 0; - padding: 0; - line-height: 22px; - word-wrap: break-word; -} - -.categorydiv .tabs-panel, -.customlinkdiv .tabs-panel, -.posttypediv .tabs-panel, -.taxonomydiv .tabs-panel { - border-width: 3px; - border-style: solid; -} - -.form-wrap p, -.form-wrap label { - font-size: 11px; -} - -.form-wrap label { - display: block; - padding: 2px; - font-size: 12px; -} - -.form-field input[type="text"], -.form-field input[type="password"], -.form-field input[type="email"], -.form-field input[type="number"], -.form-field input[type="search"], -.form-field input[type="tel"], -.form-field input[type="url"], -.form-field textarea { - border-style: solid; - border-width: 1px; - width: 95%; -} - -p.description, -.form-wrap p { - margin: 2px 0 5px; - color: #666; -} - -p.help, -p.description, -span.description, -.form-wrap p { - font-size: 13px; - font-style: italic; -} - -.form-wrap .form-field { - margin: 0 0 10px; - padding: 8px 0; -} - -.form-wrap .form-field #parent { - max-width: 100%; -} - -.col-wrap h3 { - margin: 12px 0; - font-size: 1.1em; -} - -.col-wrap p.submit { - margin-top: -10px; -} - - -/*------------------------------------------------------------------------------ - 13.0 - Tags -------------------------------------------------------------------------------*/ - -#poststuff .tagsdiv .howto { - margin: 0 0 6px 0; -} - -.ajaxtag .newtag { - position: relative; -} - -.tagsdiv .newtag { - width: 180px; -} - -.tagsdiv .the-tags { - display: block; - height: 60px; - margin: 0 auto; - overflow: auto; - width: 260px; -} - -#post-body-content .tagsdiv .the-tags { - margin: 0 5px; -} - -p.popular-tags { - border: none; - line-height: 2em; - padding: 8px 12px 12px; - text-align: justify; -} - -p.popular-tags a { - padding: 0 3px; -} - -.tagcloud { - width: 97%; - margin: 0 0 40px; - text-align: justify; -} - -.tagcloud h3 { - margin: 2px 0 12px; -} - -.ac_results { - padding: 0; - margin: 0; - list-style: none; - position: absolute; - z-index: 10000; - display: none; - border: 1px solid #808080; - background-color: #fff; -} - -.wp-customizer .ac_results { - z-index: 500000; -} - -.ac_results li { - padding: 2px 5px; - white-space: nowrap; - color: #101010; - text-align: right; -} - -.ac_over { - background-color: #f0f0b8; - cursor: pointer; -} - -.ac_match { - text-decoration: underline; -} - -/* Comments */ - -.comment-php .wp-editor-area { - height: 200px; -} - -.comment-ays th, -.comment-ays td { - padding: 10px 15px; -} - -.comment-ays-submit .button-cancel { - margin-right: 1em; -} - -.trash-undo-inside, -.spam-undo-inside { - margin: 1px 0 1px 8px; - line-height: 16px; -} - -.spam-undo-inside .avatar, -.trash-undo-inside .avatar { - height: 20px; - width: 20px; - margin-left: 8px; - vertical-align: middle; -} - -.stuffbox .editcomment { - clear: none; -} - -#comment-status-radio p { - margin: 3px 0 5px; -} - -#comment-status-radio input { - margin: 2px 0 5px 3px; - vertical-align: middle; -} - -#comment-status-radio label { - padding: 5px 0; -} - -/* links tables */ -table.links-table { - width: 100%; - border-spacing: 0; -} - -.links-table th { - font-weight: normal; - text-align: right; - vertical-align: top; - min-width: 80px; - width: 20%; - word-wrap: break-word; -} - -.links-table th, -.links-table td { - padding: 5px 0; -} - -.links-table td label { - margin-left: 8px; -} - -.links-table td input[type="text"], -.links-table td textarea { - width: 100%; -} - -.links-table #link_rel { - max-width: 280px; -} - -/* DFW 2 --------------------------------------------------------------- */ - -#wp-content-wrap .mce-wp-dfw, -#qt_content_dfw { - display: none; -} - -.wp-editor-expand #wp-content-wrap .mce-wp-dfw, -.wp-editor-expand #qt_content_dfw { - display: inline-block; -} - -.focus-on .wrap > h1, -.focus-on #wpfooter, -.focus-on .postbox-container > *, -.focus-on div.updated, -.focus-on div.error, -.focus-on div.notice, -.focus-on .update-nag, -.focus-on #wp-toolbar, -.focus-on #screen-meta-links, -.focus-on #screen-meta { - opacity: 0; - -webkit-transition-duration: 0.6s; - transition-duration: 0.6s; - -webkit-transition-property: opacity; - transition-property: opacity; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; -} - -.focus-on #wp-toolbar { - opacity: 0.3; -} - -.focus-off .wrap > h1, -.focus-off #wpfooter, -.focus-off .postbox-container > *, -.focus-off div.updated, -.focus-off div.error, -.focus-off div.notice, -.focus-off .update-nag, -.focus-off #wp-toolbar, -.focus-off #screen-meta-links, -.focus-off #screen-meta { - opacity: 1; - -webkit-transition-duration: 0.2s; - transition-duration: 0.2s; - -webkit-transition-property: opacity; - transition-property: opacity; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; -} - -.focus-off #wp-toolbar { - -webkit-transform: translate(0, 0); -} - -.focus-on #adminmenuback, -.focus-on #adminmenuwrap { - -webkit-transition-duration: 0.6s; - transition-duration: 0.6s; - -webkit-transition-property: -webkit-transform; - transition-property: transform; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; -} - -.focus-on #adminmenuback, -.focus-on #adminmenuwrap { - -webkit-transform: translateX( 100% ); - -ms-transform: translateX( 100% ); - transform: translateX( 100% ); -} - -.focus-off #adminmenuback, -.focus-off #adminmenuwrap { - -webkit-transform: translateX( 0 ); - -ms-transform: translateX( 0 ); - transform: translateX( 0 ); - -webkit-transition-duration: 0.2s; - transition-duration: 0.2s; - -webkit-transition-property: -webkit-transform; - transition-property: transform; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; -} - -/* =Media Queries --------------------------------------------------------------- */ - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - #content-resize-handle, - #post-body .wp_themeSkin .mceStatusbar a.mceResize { - background: transparent url(../images/resize-2x.gif) no-repeat scroll left bottom; - -webkit-background-size: 11px 11px; - background-size: 11px 11px; - } - - .rtl #content-resize-handle, - .rtl #post-body .wp_themeSkin .mceStatusbar a.mceResize { - background: transparent url(../images/resize-rtl-2x.gif) no-repeat scroll left bottom; - } -} - -/* one column on the post write/edit screen */ -@media only screen and (max-width: 850px) { - #poststuff { - min-width: 0; - } - - #wpbody-content #poststuff #post-body { - margin: 0; - } - - #wpbody-content #post-body.columns-2 #postbox-container-1 { - margin-left: 0; - width: 100%; - } - - #poststuff #postbox-container-1 .empty-container, - #poststuff #postbox-container-1 #side-sortables:empty { - border: 0 none; - height: 0; - min-height: 0; - } - - #poststuff #post-body.columns-2 #side-sortables { - min-height: 0; - width: auto; - } - - /* hide the radio buttons for column prefs */ - .screen-layout, - .columns-prefs { - display: none; - } -} - -@media screen and ( max-width: 782px ) { - #post-body-content { - min-width: 0; - } - - #titlediv #title-prompt-text { - padding: 10px 10px; - } - - #poststuff h3 { - padding: 12px; - } - - .post-format-options { - padding-left: 0; - } - - .post-format-options a { - margin-left: 5px; - margin-bottom: 5px; - min-width: 52px; - } - - .post-format-options .post-format-title { - font-size: 11px; - } - - .post-format-options a div { - height: 28px; - width: 28px; - } - - .post-format-options a div:before { - font-size: 26px !important; - } - - /* Publish Metabox Options */ - #post-visibility-select { - line-height: 280%; - } - - .wp-core-ui .save-post-visibility, - .wp-core-ui .save-timestamp { - vertical-align: middle; - margin-left: 15px; - } - - .timestamp-wrap select#mm { - display: block; - width: 100%; - margin-bottom: 10px; - } - - .timestamp-wrap #jj, - .timestamp-wrap #aa, - .timestamp-wrap #hh, - .timestamp-wrap #mn { - padding: 12px 3px; - font-size: 14px; - margin-bottom: 5px; - width: auto; - text-align: center; - } - - /* Categories Metabox */ - ul.category-tabs { - margin: 30px 0 15px; - } - - ul.category-tabs li.tabs { - padding: 15px; - } - - ul.categorychecklist li { - margin-bottom: 15px; - } - - ul.categorychecklist ul { - margin-top: 15px; - } - - .category-add input[type=text], - .category-add select { - max-width: none; - margin-bottom: 15px; - } - - /* Tags Metabox */ - .tagsdiv .newtag { - width: 100%; - height: auto; - margin-bottom: 15px; - } - - .tagchecklist { - margin: 25px 10px; - } - - .tagchecklist span { - font-size: 16px; - line-height: 1.4; - } - - /* Discussion */ - #commentstatusdiv p { - line-height: 2.8; - } - - /* TinyMCE Adjustments */ - .mceToolbar * { - white-space: normal !important; - } - - .mceToolbar tr, - .mceToolbar td { - float: right !important; - } - - .wp_themeSkin a.mceButton { - width: 30px; - height: 30px; - } - - .wp_themeSkin .mceButton .mceIcon { - margin-top: 5px; - margin-right: 5px; - } - - .wp_themeSkin .mceSplitButton { - margin-top: 1px; - } - - .wp_themeSkin .mceSplitButton td a.mceAction { - padding-top: 6px; - padding-bottom: 6px; - padding-right: 6px; - padding-left: 3px; - } - - .wp_themeSkin .mceSplitButton td a.mceOpen, - .wp_themeSkin .mceSplitButtonEnabled:hover td a.mceOpen { - padding-top: 6px; - padding-bottom: 6px; - background-position: 1px 6px; - } - - .wp_themeSkin table.mceListBox { - margin: 5px; - } - - div.quicktags-toolbar input { - padding: 10px 20px; - } - - button.wp-switch-editor { - font-size: 16px; - line-height: 1em; - margin: 7px 7px 0 0; - padding: 8px 12px; - } - - #wp-content-media-buttons a { - font-size: 16px; - line-height: 37px; - height: 39px; - padding: 0 15px 0 20px; - } - - .wp-media-buttons span.wp-media-buttons-icon, - .wp-media-buttons span.jetpack-contact-form-icon { - width: 22px !important; - margin-top: -3px !important; - margin-right: -5px !important; - } - - .wp-media-buttons .add_media span.wp-media-buttons-icon:before, - .wp-media-buttons #insert-jetpack-contact-form span.jetpack-contact-form-icon:before { - font-size: 20px !important; - } - - #content_wp_fullscreen { - display: none; - } - - .misc-pub-section { - padding: 20px 10px 20px; - } - - .misc-pub-section > a { - float: left; - font-size: 16px; - } - - #delete-action, - #publishing-action { - line-height: 47px; - } - - #publishing-action .spinner { - float: none; - margin-top: -2px; /* Half of the Publish button's bottom margin. */ - } - - /* Moderate Comment */ - .comment-ays th, - .comment-ays td { - padding-bottom: 0; - } - - .comment-ays td { - padding-top: 6px; - } - - /* Links */ - .links-table #link_rel { - max-width: none; - } - - .links-table th, - .links-table td { - padding: 10px 0; - } -} - -@media only screen and (max-width: 500px) { - /* Align Add Media + Visual + Text tabs */ - #wp-content-media-buttons a { - font-size: 14px; - padding: 0 10px 0 10px; - } -} diff --git a/wp-admin/css/edit.css b/wp-admin/css/edit.css deleted file mode 100644 index b2f57ef451..0000000000 --- a/wp-admin/css/edit.css +++ /dev/null @@ -1,1565 +0,0 @@ -#poststuff { - padding-top: 10px; - min-width: 763px; -} - -#poststuff #post-body { - padding: 0; -} - -#poststuff .postbox-container { - width: 100%; -} - -#poststuff #post-body.columns-2 { - margin-right: 300px; -} - -/*------------------------------------------------------------------------------ - 11.0 - Write/Edit Post Screen -------------------------------------------------------------------------------*/ - -#show-comments { - overflow: hidden; -} - -#save-action .spinner, -#show-comments a, -#show-comments .spinner { - float: left; -} - -#lost-connection-notice .spinner { - visibility: visible; - float: left; - margin: 0 5px 0 0; -} - -#titlediv { - position: relative; -} - -#titlediv label { - cursor: text; -} - -#titlediv div.inside { - margin: 0; -} - -#poststuff #titlewrap { - border: 0; - padding: 0; -} - -#titlediv #title { - padding: 3px 8px; - font-size: 1.7em; - line-height: 100%; - height: 1.7em; - width: 100%; - outline: none; - margin: 0 0 3px; - background-color: #fff; -} - -#titlediv #title-prompt-text { - color: #777; - position: absolute; - font-size: 1.7em; - padding: 11px 10px; -} - -#poststuff .inside-submitbox, -#side-sortables .inside-submitbox { - margin: 0 3px; - font-size: 11px; -} - -input#link_description, -input#link_url { - width: 98%; -} - -#pending { - background: 0 none; - border: 0 none; - padding: 0; - font-size: 11px; - margin-top: -1px; -} - -#edit-slug-box { - line-height: 24px; - min-height: 25px; /* Yes, line-height + 1 */ - margin-top: 5px; - padding: 0 10px; - color: #666; -} - -#edit-slug-box .cancel { - margin-right: 10px; - font-size: 11px; -} - -#editable-post-name-full { - display: none; -} - -#editable-post-name { - background-color: #fffbcc; -} - -#editable-post-name input { - font-size: 13px; - height: 22px; - margin: 0; - width: 16em; -} - -.postarea h3 label { - float: left; -} - -.submitbox .submit { - text-align: left; - padding: 12px 10px 10px; - font-size: 11px; - background-color: #464646; - color: #ccc; -} - -.submitbox .submitdelete { - text-decoration: none; - padding: 1px 2px; -} - -/* @todo: do we really need this? word on the street is we don't and this -stray rule may actually be compensated for elsewhere. */ -#normal-sortables .submitbox .submitdelete:hover { - color: #000; - background-color: #f00; - border-bottom-color: #f00; -} - -.submitbox .submit a:hover { - text-decoration: underline; -} - -.submitbox .submit input { - margin-bottom: 8px; - margin-right: 4px; - padding: 6px; -} - -.inside-submitbox #post_status { - margin: 2px 0 2px -2px; -} - -#post-status-select { - margin-top: 3px; -} - -/* Post Screen */ -#post-body #normal-sortables { - min-height: 50px; -} - -.postbox { - position: relative; - min-width: 255px; - border: 1px solid #e5e5e5; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); - background: #fff; -} - -#trackback_url { - width: 99%; -} - -#normal-sortables .postbox .submit { - background: transparent none; - border: 0 none; - float: right; - padding: 0 12px; - margin:0; -} - -.category-add input[type="text"], -.category-add select { - width: 100%; - max-width: 260px; - vertical-align: baseline; -} - -#side-sortables .category-add input[type="text"], -#side-sortables .category-add select { - margin: 0 0 1em; -} - -ul.category-tabs li, -#side-sortables .add-menu-item-tabs li, -.wp-tab-bar li { - display: inline; - line-height: 1.35em; -} - -.no-js .category-tabs li.hide-if-no-js { - display: none; -} - -.category-tabs a, -#side-sortables .add-menu-item-tabs a, -.wp-tab-bar a { - text-decoration: none; -} - -/* @todo: do these really need to be so specific? */ -#side-sortables .category-tabs .tabs a, -#side-sortables .add-menu-item-tabs .tabs a, -.wp-tab-bar .wp-tab-active a, -#post-body ul.category-tabs li.tabs a, -#post-body ul.add-menu-item-tabs li.tabs a { - color: #32373c; -} - -.category-tabs { - margin: 8px 0 5px; -} - -#category-adder h4 { - margin: 10px 0; -} - -#side-sortables .add-menu-item-tabs, -.wp-tab-bar { - margin-bottom: 3px; -} - -#normal-sortables .postbox #replyrow .submit { - float: none; - margin: 0; - padding: 0 7px 5px; -} - -#side-sortables .submitbox .submit input, -#side-sortables .submitbox .submit .preview, -#side-sortables .submitbox .submit a.preview:hover { - border: 0 none; -} - -#side-sortables .inside-submitbox .insidebox, -.stuffbox .insidebox { - margin: 11px 0; -} - -/* @todo: make this a more generic class */ -ul.category-tabs, -ul.add-menu-item-tabs, -ul.wp-tab-bar { - margin-top: 12px; -} - -ul.category-tabs li, -ul.add-menu-item-tabs li { - border: solid 1px transparent; - position: relative; -} - -ul.category-tabs li.tabs, -ul.add-menu-item-tabs li.tabs, -.wp-tab-active { - border: 1px solid #dfdfdf; - border-bottom-color: #fdfdfd; - background-color: #fdfdfd; -} - -ul.category-tabs li, -ul.add-menu-item-tabs li, -ul.wp-tab-bar li { - padding: 3px 5px 5px; -} - -#postimagediv .inside img { - max-width: 100%; - height: auto; - width: auto; -} - -form#tags-filter { - position: relative; -} - -/* Global classes */ -.wp-hidden-children .wp-hidden-child, -.ui-tabs-hide { - display: none; -} - -#post-body .tagsdiv #newtag { - margin-right: 5px; - width: 16em; -} - -#side-sortables input#post_password { - width: 94% -} - -#side-sortables .tagsdiv #newtag { - width: 68%; -} - -#post-status-info { - width: 100%; - border-spacing: 0; - border: 1px solid #e5e5e5; - border-top: none; - background-color: #f7f7f7; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); - z-index: 999; -} - -#post-status-info td { - font-size: 12px; -} - -.autosave-info { - padding: 2px 10px; - text-align: right; -} - -#editorcontent #post-status-info { - border: none; -} - -#content-resize-handle { - background: transparent url(../images/resize.gif) no-repeat scroll right bottom; - width: 12px; - cursor: row-resize; -} - -.rtl #content-resize-handle { - background: transparent url(../images/resize-rtl.gif) no-repeat scroll left bottom; -} - -.wp-editor-expand #content-resize-handle { - display: none; -} - -#postdivrich #content { - resize: none; -} - -#wp-word-count { - display: block; - padding: 2px 10px; -} - -#wp-content-editor-container { - position: relative; -} - -#content-textarea-clone { - z-index: -1; - position: absolute; - top: 0; - visibility: hidden; - overflow: hidden; - max-width: 100%; - border: 1px solid transparent; -} - -.wp-editor-expand #wp-content-editor-tools { - z-index: 1000; - border-bottom: 1px solid #e5e5e5; -} - -.wp-editor-expand #wp-content-editor-container { - -webkit-box-shadow: none; - box-shadow: none; - margin-top: -1px; -} - -.wp-editor-expand #wp-content-editor-container { - border-bottom: 0 none; -} - -.wp-editor-expand div.mce-statusbar { - z-index: 1; -} - -.wp-editor-expand #post-status-info { - border-top: 1px solid #e5e5e5; -} - -.wp-editor-expand div.mce-toolbar-grp { - z-index: 999; -} - -/* TinyMCE native fullscreen mode override */ -.mce-fullscreen #wp-content-wrap .mce-menubar, -.mce-fullscreen #wp-content-wrap .mce-toolbar-grp, -.mce-fullscreen #wp-content-wrap .mce-edit-area, -.mce-fullscreen #wp-content-wrap .mce-statusbar { - position: static !important; - width: auto !important; - padding: 0 !important; -} - -.mce-fullscreen #wp-content-wrap .mce-statusbar { - visibility: visible !important; -} - -.mce-fullscreen #wp-content-wrap .mce-tinymce .mce-wp-dfw { - display: none; -} - -.post-php.mce-fullscreen #wpadminbar, -.mce-fullscreen #wp-content-wrap .mce-wp-dfw { - display: none; -} -/* End TinyMCE native fullscreen mode override */ - -#wp-content-editor-tools { - background-color: #f1f1f1; - padding-top: 20px; -} - -#poststuff #post-body.columns-2 #side-sortables { - width: 280px; -} - -#timestampdiv select { - height: 21px; - line-height: 14px; - padding: 0; - vertical-align: top; - font-size: 12px; -} - -#aa, #jj, #hh, #mn { - padding: 1px; - font-size: 12px; -} - -#jj, #hh, #mn { - width: 2em; -} - -#aa { - width: 3.4em; -} - -.curtime #timestamp { - padding: 2px 0 1px 0; - display: inline !important; - height: auto !important; -} - -#misc-publishing-actions label[for="post_status"]:before, -#post-body #visibility:before, -.curtime #timestamp:before, -#post-body .misc-pub-revisions:before, -span.wp-media-buttons-icon:before { - color: #82878c; -} - -#post-body #visibility:before, -.curtime #timestamp:before, -#post-body .misc-pub-revisions:before { - font: normal 20px/1 'dashicons'; - speak: none; - display: inline-block; - padding: 0 2px 0 0; - top: 0; - left: -1px; - position: relative; - vertical-align: top; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; -} - -#post-body #visibility:before { - content: '\f177'; -} - -.curtime #timestamp:before { - content: '\f145'; - top: -1px; -} - -#post-body .misc-pub-revisions:before { - content: '\f321'; -} - -#timestampdiv { - padding-top: 5px; - line-height: 23px; -} - -#timestampdiv p { - margin: 8px 0 6px; -} - -#timestampdiv input { - border-width: 1px; - border-style: solid; -} - -.notification-dialog { - position: fixed; - top: 30%; - max-height: 70%; - left: 50%; - width: 450px; - margin-left: -225px; - background: #fff; - -webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - line-height: 1.5; - z-index: 1000005; - overflow-y: auto; -} - -.notification-dialog-background { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: #000; - opacity: 0.7; - filter: alpha(opacity=70); - z-index: 1000000; -} - -#post-lock-dialog .post-locked-message, -#post-lock-dialog .post-taken-over { - margin: 25px; -} - -#post-lock-dialog .post-locked-message a.button { - margin-right: 10px; -} - -#post-lock-dialog .post-locked-avatar { - float: left; - margin: 0 20px 20px 0; -} - -#post-lock-dialog .wp-tab-first { - outline: 0; -} - -#post-lock-dialog .locked-saving img { - float: left; - margin-right: 3px; -} - -#post-lock-dialog.saving .locked-saving, -#post-lock-dialog.saved .locked-saved { - display: inline; -} - -#excerpt { - display: block; - margin: 12px 0 0; - height: 4em; - width: 100%; -} - -.tagchecklist { - margin-left: 14px; - font-size: 12px; - overflow: auto; -} - -.tagchecklist br { - display: none; -} - -.tagchecklist strong { - margin-left: -8px; - position: absolute; -} - -.tagchecklist span { - margin-right: 25px; - display: block; - float: left; - font-size: 13px; - line-height: 1.8em; - cursor: default; - max-width: 100%; - overflow: hidden; - text-overflow: ellipsis; -} - -.tagchecklist span a { - margin: 1px 0 0 -17px; - cursor: pointer; - width: 20px; - height: 20px; - display: block; - float: left; - text-indent: 0; - overflow: hidden; - position: absolute; -} - -#poststuff h2 { - margin-top: 20px; - font-size: 1.5em; - margin-bottom: 15px; - padding: 0 0 3px; - clear: left; -} - -#poststuff h3 { - font-size: 14px; - padding: 8px 12px; - margin: 0; - line-height: 1.4; -} - -#poststuff .inside { - margin: 6px 0 0 0; -} - -#poststuff .inside #parent_id, -#poststuff .inside #page_template { - max-width: 100%; -} - -#poststuff .inside label.spam, -#poststuff .inside label.deleted { - color: red; -} - -#poststuff .inside label.waiting { - color: orange; -} - -#poststuff .inside label.approved { - color: green; -} - -.ie8 #poststuff .inside #parent_id, -.ie8 #poststuff .inside #page_template { - width: 250px; -} - -#post-visibility-select { - line-height: 1.5em; - margin-top: 3px; -} - -#poststuff #submitdiv .inside { - margin: 0; - padding: 0; -} - -#post-body-content, -.edit-form-section { - margin-bottom: 20px; -} - -/*------------------------------------------------------------------------------ - 11.1 - Custom Fields -------------------------------------------------------------------------------*/ - -#postcustomstuff thead th { - padding: 5px 8px 8px; - background-color: #f1f1f1; -} - -#postcustom #postcustomstuff .submit { - border: 0 none; - float: none; - padding: 0 8px 8px; -} - -#side-sortables #postcustom #postcustomstuff .submit { - margin: 0; - padding: 0; -} - -#side-sortables #postcustom #postcustomstuff #the-list textarea { - height: 85px; -} - -#side-sortables #postcustom #postcustomstuff td.left input, -#side-sortables #postcustom #postcustomstuff td.left select, -#side-sortables #postcustomstuff #newmetaleft a { - margin: 3px 3px 0; -} - -#postcustomstuff table { - margin: 0; - width: 100%; - border: 1px solid #dfdfdf; - border-spacing: 0; - background-color: #f9f9f9; -} - -#postcustomstuff tr { - vertical-align: top; -} - -#postcustomstuff table input, -#postcustomstuff table select, -#postcustomstuff table textarea { - width: 96%; - margin: 8px; -} - -#side-sortables #postcustomstuff table input, -#side-sortables #postcustomstuff table select, -#side-sortables #postcustomstuff table textarea { - margin: 3px; -} - -#postcustomstuff th.left, -#postcustomstuff td.left { - width: 38%; -} - -#postcustomstuff .submit input { - margin: 0; - width: auto; -} - -#postcustomstuff #newmetaleft a { - display: inline-block; - margin: 0 8px 8px; - text-decoration: none; -} - -.no-js #postcustomstuff #enternew { - display: none; -} - -#post-body-content .compat-attachment-fields { - margin-bottom: 20px; -} - -.compat-attachment-fields th { - padding-top: 5px; - padding-right: 10px; -} - -/*------------------------------------------------------------------------------ - 11.3 - Featured Images -------------------------------------------------------------------------------*/ - -#select-featured-image { - padding: 4px 0; - overflow: hidden; -} - -#select-featured-image img { - max-width: 100%; - height: auto; - margin-bottom: 10px; -} - -#select-featured-image a { - float: left; - clear: both; -} - -#select-featured-image .remove { - display: none; - margin-top: 10px; -} - -.js #select-featured-image.has-featured-image .remove { - display: inline-block; -} - -.no-js #select-featured-image .choose { - display: none; -} - -/*------------------------------------------------------------------------------ - 11.4 - Post formats -------------------------------------------------------------------------------*/ - -.post-state-format { - overflow: hidden; - display: inline-block; - vertical-align: middle; - height: 20px; - width: 20px; - margin-right: 5px; - margin-top: -4px; -} - -.post-state-format:before { - display: block; - height: 20px; - width: 20px; - font: normal 20px/1 'dashicons' !important; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.post-state-format:before, -.post-format-icon:before { - color: #ddd; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -a.post-state-format:hover:before, -a.post-format-icon:hover:before { - color: #00a0d2; -} - -#post-formats-select { - line-height: 2em; -} - -#post-formats-select .post-format-icon:before { - top: 5px; -} - -input.post-format { - margin-top: 1px; -} - -label.post-format-icon { - margin-left: 0px; - padding: 2px 0 2px 0px; -} - -.post-format-icon:before { - position: relative; - display: inline-block; - margin-right: 7px; - font: normal 20px/1 'dashicons'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.post-state-format.post-format-standard:before, -.post-format-icon.post-format-standard:before, -a.post-state-format.format-standard:before { - content: '\f109'; -} - -.post-state-format.post-format-image:before, -.post-format-icon.post-format-image:before, -a.post-state-format.format-image:before { - content: '\f128'; -} - -.post-state-format.post-format-gallery:before, -.post-format-icon.post-format-gallery:before, -a.post-state-format.format-gallery:before { - content: '\f161'; -} - -.post-state-format.post-format-audio:before, -.post-format-icon.post-format-audio:before, -a.post-state-format.format-audio:before { - content: '\f127'; -} - -.post-state-format.post-format-video:before, -.post-format-icon.post-format-video:before, -a.post-state-format.format-video:before { - content: '\f126'; -} - -.post-state-format.post-format-chat:before, -.post-format-icon.post-format-chat:before, -a.post-state-format.format-chat:before { - content: '\f125'; -} - -.post-state-format.post-format-status:before, -.post-format-icon.post-format-status:before, -a.post-state-format.format-status:before { - content: '\f130'; -} - -.post-state-format.post-format-aside:before, -.post-format-icon.post-format-aside:before, -a.post-state-format.format-aside:before { - content: '\f123'; -} - -.post-state-format.post-format-quote:before, -.post-format-icon.post-format-quote:before, -a.post-state-format.format-quote:before { - content: '\f122'; -} - -.post-state-format.post-format-link:before, -.post-format-icon.post-format-link:before, -a.post-state-format.format-link:before { - content: '\f103'; -} - -/*------------------------------------------------------------------------------ - 12.0 - Categories -------------------------------------------------------------------------------*/ - -.category-adder { - margin-left: 120px; - padding: 4px 0; -} - -.category-adder h4 { - margin: 0 0 8px; -} - -#side-sortables .category-adder { - margin: 0; -} - -.wp-tab-panel, -.categorydiv div.tabs-panel, -.customlinkdiv div.tabs-panel, -.posttypediv div.tabs-panel, -.taxonomydiv div.tabs-panel { - min-height: 42px; - max-height: 200px; - overflow: auto; - padding: 0 0.9em; - border: solid 1px #dfdfdf; - background-color: #fdfdfd; -} - -div.tabs-panel-active { - display:block; -} - -div.tabs-panel-inactive { - display:none; -} - -#front-page-warning, -#front-static-pages ul, -ul.export-filters, -.inline-editor ul.cat-checklist ul, -.categorydiv ul.categorychecklist ul, -.customlinkdiv ul.categorychecklist ul, -.posttypediv ul.categorychecklist ul, -.taxonomydiv ul.categorychecklist ul { - margin-left: 18px; -} - -ul.categorychecklist li { - margin: 0; - padding: 0; - line-height: 22px; - word-wrap: break-word; -} - -.categorydiv .tabs-panel, -.customlinkdiv .tabs-panel, -.posttypediv .tabs-panel, -.taxonomydiv .tabs-panel { - border-width: 3px; - border-style: solid; -} - -.form-wrap p, -.form-wrap label { - font-size: 11px; -} - -.form-wrap label { - display: block; - padding: 2px; - font-size: 12px; -} - -.form-field input[type="text"], -.form-field input[type="password"], -.form-field input[type="email"], -.form-field input[type="number"], -.form-field input[type="search"], -.form-field input[type="tel"], -.form-field input[type="url"], -.form-field textarea { - border-style: solid; - border-width: 1px; - width: 95%; -} - -p.description, -.form-wrap p { - margin: 2px 0 5px; - color: #666; -} - -p.help, -p.description, -span.description, -.form-wrap p { - font-size: 13px; - font-style: italic; -} - -.form-wrap .form-field { - margin: 0 0 10px; - padding: 8px 0; -} - -.form-wrap .form-field #parent { - max-width: 100%; -} - -.col-wrap h3 { - margin: 12px 0; - font-size: 1.1em; -} - -.col-wrap p.submit { - margin-top: -10px; -} - - -/*------------------------------------------------------------------------------ - 13.0 - Tags -------------------------------------------------------------------------------*/ - -#poststuff .tagsdiv .howto { - margin: 0 0 6px 0; -} - -.ajaxtag .newtag { - position: relative; -} - -.tagsdiv .newtag { - width: 180px; -} - -.tagsdiv .the-tags { - display: block; - height: 60px; - margin: 0 auto; - overflow: auto; - width: 260px; -} - -#post-body-content .tagsdiv .the-tags { - margin: 0 5px; -} - -p.popular-tags { - border: none; - line-height: 2em; - padding: 8px 12px 12px; - text-align: justify; -} - -p.popular-tags a { - padding: 0 3px; -} - -.tagcloud { - width: 97%; - margin: 0 0 40px; - text-align: justify; -} - -.tagcloud h3 { - margin: 2px 0 12px; -} - -.ac_results { - padding: 0; - margin: 0; - list-style: none; - position: absolute; - z-index: 10000; - display: none; - border: 1px solid #808080; - background-color: #fff; -} - -.wp-customizer .ac_results { - z-index: 500000; -} - -.ac_results li { - padding: 2px 5px; - white-space: nowrap; - color: #101010; - text-align: left; -} - -.ac_over { - background-color: #f0f0b8; - cursor: pointer; -} - -.ac_match { - text-decoration: underline; -} - -/* Comments */ - -.comment-php .wp-editor-area { - height: 200px; -} - -.comment-ays th, -.comment-ays td { - padding: 10px 15px; -} - -.comment-ays-submit .button-cancel { - margin-left: 1em; -} - -.trash-undo-inside, -.spam-undo-inside { - margin: 1px 8px 1px 0; - line-height: 16px; -} - -.spam-undo-inside .avatar, -.trash-undo-inside .avatar { - height: 20px; - width: 20px; - margin-right: 8px; - vertical-align: middle; -} - -.stuffbox .editcomment { - clear: none; -} - -#comment-status-radio p { - margin: 3px 0 5px; -} - -#comment-status-radio input { - margin: 2px 3px 5px 0; - vertical-align: middle; -} - -#comment-status-radio label { - padding: 5px 0; -} - -/* links tables */ -table.links-table { - width: 100%; - border-spacing: 0; -} - -.links-table th { - font-weight: normal; - text-align: left; - vertical-align: top; - min-width: 80px; - width: 20%; - word-wrap: break-word; -} - -.links-table th, -.links-table td { - padding: 5px 0; -} - -.links-table td label { - margin-right: 8px; -} - -.links-table td input[type="text"], -.links-table td textarea { - width: 100%; -} - -.links-table #link_rel { - max-width: 280px; -} - -/* DFW 2 --------------------------------------------------------------- */ - -#wp-content-wrap .mce-wp-dfw, -#qt_content_dfw { - display: none; -} - -.wp-editor-expand #wp-content-wrap .mce-wp-dfw, -.wp-editor-expand #qt_content_dfw { - display: inline-block; -} - -.focus-on .wrap > h1, -.focus-on #wpfooter, -.focus-on .postbox-container > *, -.focus-on div.updated, -.focus-on div.error, -.focus-on div.notice, -.focus-on .update-nag, -.focus-on #wp-toolbar, -.focus-on #screen-meta-links, -.focus-on #screen-meta { - opacity: 0; - -webkit-transition-duration: 0.6s; - transition-duration: 0.6s; - -webkit-transition-property: opacity; - transition-property: opacity; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; -} - -.focus-on #wp-toolbar { - opacity: 0.3; -} - -.focus-off .wrap > h1, -.focus-off #wpfooter, -.focus-off .postbox-container > *, -.focus-off div.updated, -.focus-off div.error, -.focus-off div.notice, -.focus-off .update-nag, -.focus-off #wp-toolbar, -.focus-off #screen-meta-links, -.focus-off #screen-meta { - opacity: 1; - -webkit-transition-duration: 0.2s; - transition-duration: 0.2s; - -webkit-transition-property: opacity; - transition-property: opacity; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; -} - -.focus-off #wp-toolbar { - -webkit-transform: translate(0, 0); -} - -.focus-on #adminmenuback, -.focus-on #adminmenuwrap { - -webkit-transition-duration: 0.6s; - transition-duration: 0.6s; - -webkit-transition-property: -webkit-transform; - transition-property: transform; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; -} - -.focus-on #adminmenuback, -.focus-on #adminmenuwrap { - -webkit-transform: translateX( -100% ); - -ms-transform: translateX( -100% ); - transform: translateX( -100% ); -} - -.focus-off #adminmenuback, -.focus-off #adminmenuwrap { - -webkit-transform: translateX( 0 ); - -ms-transform: translateX( 0 ); - transform: translateX( 0 ); - -webkit-transition-duration: 0.2s; - transition-duration: 0.2s; - -webkit-transition-property: -webkit-transform; - transition-property: transform; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; -} - -/* =Media Queries --------------------------------------------------------------- */ - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - #content-resize-handle, - #post-body .wp_themeSkin .mceStatusbar a.mceResize { - background: transparent url(../images/resize-2x.gif) no-repeat scroll right bottom; - -webkit-background-size: 11px 11px; - background-size: 11px 11px; - } - - .rtl #content-resize-handle, - .rtl #post-body .wp_themeSkin .mceStatusbar a.mceResize { - background: transparent url(../images/resize-rtl-2x.gif) no-repeat scroll right bottom; - } -} - -/* one column on the post write/edit screen */ -@media only screen and (max-width: 850px) { - #poststuff { - min-width: 0; - } - - #wpbody-content #poststuff #post-body { - margin: 0; - } - - #wpbody-content #post-body.columns-2 #postbox-container-1 { - margin-right: 0; - width: 100%; - } - - #poststuff #postbox-container-1 .empty-container, - #poststuff #postbox-container-1 #side-sortables:empty { - border: 0 none; - height: 0; - min-height: 0; - } - - #poststuff #post-body.columns-2 #side-sortables { - min-height: 0; - width: auto; - } - - /* hide the radio buttons for column prefs */ - .screen-layout, - .columns-prefs { - display: none; - } -} - -@media screen and ( max-width: 782px ) { - #post-body-content { - min-width: 0; - } - - #titlediv #title-prompt-text { - padding: 10px 10px; - } - - #poststuff h3 { - padding: 12px; - } - - .post-format-options { - padding-right: 0; - } - - .post-format-options a { - margin-right: 5px; - margin-bottom: 5px; - min-width: 52px; - } - - .post-format-options .post-format-title { - font-size: 11px; - } - - .post-format-options a div { - height: 28px; - width: 28px; - } - - .post-format-options a div:before { - font-size: 26px !important; - } - - /* Publish Metabox Options */ - #post-visibility-select { - line-height: 280%; - } - - .wp-core-ui .save-post-visibility, - .wp-core-ui .save-timestamp { - vertical-align: middle; - margin-right: 15px; - } - - .timestamp-wrap select#mm { - display: block; - width: 100%; - margin-bottom: 10px; - } - - .timestamp-wrap #jj, - .timestamp-wrap #aa, - .timestamp-wrap #hh, - .timestamp-wrap #mn { - padding: 12px 3px; - font-size: 14px; - margin-bottom: 5px; - width: auto; - text-align: center; - } - - /* Categories Metabox */ - ul.category-tabs { - margin: 30px 0 15px; - } - - ul.category-tabs li.tabs { - padding: 15px; - } - - ul.categorychecklist li { - margin-bottom: 15px; - } - - ul.categorychecklist ul { - margin-top: 15px; - } - - .category-add input[type=text], - .category-add select { - max-width: none; - margin-bottom: 15px; - } - - /* Tags Metabox */ - .tagsdiv .newtag { - width: 100%; - height: auto; - margin-bottom: 15px; - } - - .tagchecklist { - margin: 25px 10px; - } - - .tagchecklist span { - font-size: 16px; - line-height: 1.4; - } - - /* Discussion */ - #commentstatusdiv p { - line-height: 2.8; - } - - /* TinyMCE Adjustments */ - .mceToolbar * { - white-space: normal !important; - } - - .mceToolbar tr, - .mceToolbar td { - float: left !important; - } - - .wp_themeSkin a.mceButton { - width: 30px; - height: 30px; - } - - .wp_themeSkin .mceButton .mceIcon { - margin-top: 5px; - margin-left: 5px; - } - - .wp_themeSkin .mceSplitButton { - margin-top: 1px; - } - - .wp_themeSkin .mceSplitButton td a.mceAction { - padding-top: 6px; - padding-bottom: 6px; - padding-left: 6px; - padding-right: 3px; - } - - .wp_themeSkin .mceSplitButton td a.mceOpen, - .wp_themeSkin .mceSplitButtonEnabled:hover td a.mceOpen { - padding-top: 6px; - padding-bottom: 6px; - background-position: 1px 6px; - } - - .wp_themeSkin table.mceListBox { - margin: 5px; - } - - div.quicktags-toolbar input { - padding: 10px 20px; - } - - button.wp-switch-editor { - font-size: 16px; - line-height: 1em; - margin: 7px 0 0 7px; - padding: 8px 12px; - } - - #wp-content-media-buttons a { - font-size: 16px; - line-height: 37px; - height: 39px; - padding: 0 20px 0 15px; - } - - .wp-media-buttons span.wp-media-buttons-icon, - .wp-media-buttons span.jetpack-contact-form-icon { - width: 22px !important; - margin-top: -3px !important; - margin-left: -5px !important; - } - - .wp-media-buttons .add_media span.wp-media-buttons-icon:before, - .wp-media-buttons #insert-jetpack-contact-form span.jetpack-contact-form-icon:before { - font-size: 20px !important; - } - - #content_wp_fullscreen { - display: none; - } - - .misc-pub-section { - padding: 20px 10px 20px; - } - - .misc-pub-section > a { - float: right; - font-size: 16px; - } - - #delete-action, - #publishing-action { - line-height: 47px; - } - - #publishing-action .spinner { - float: none; - margin-top: -2px; /* Half of the Publish button's bottom margin. */ - } - - /* Moderate Comment */ - .comment-ays th, - .comment-ays td { - padding-bottom: 0; - } - - .comment-ays td { - padding-top: 6px; - } - - /* Links */ - .links-table #link_rel { - max-width: none; - } - - .links-table th, - .links-table td { - padding: 10px 0; - } -} - -@media only screen and (max-width: 500px) { - /* Align Add Media + Visual + Text tabs */ - #wp-content-media-buttons a { - font-size: 14px; - padding: 0 10px 0 10px; - } -} diff --git a/wp-admin/css/farbtastic-rtl.css b/wp-admin/css/farbtastic-rtl.css deleted file mode 100644 index b7aebadc6e..0000000000 --- a/wp-admin/css/farbtastic-rtl.css +++ /dev/null @@ -1,41 +0,0 @@ - -.farbtastic { - position: relative; -} - -.farbtastic * { - position: absolute; - cursor: crosshair; -} - -.farbtastic, -.farbtastic .wheel { - width: 195px; - height: 195px; -} - -.farbtastic .color, -.farbtastic .overlay { - top: 47px; - right: 47px; - width: 101px; - height: 101px; -} - -.farbtastic .wheel { - background: url(../images/wheel.png) no-repeat; - width: 195px; - height: 195px; -} - -.farbtastic .overlay { - background: url(../images/mask.png) no-repeat; -} - -.farbtastic .marker { - width: 17px; - height: 17px; - margin: -8px -8px 0 0; - overflow: hidden; - background: url(../images/marker.png) no-repeat; -} diff --git a/wp-admin/css/farbtastic.css b/wp-admin/css/farbtastic.css deleted file mode 100644 index 2bb73bfc7c..0000000000 --- a/wp-admin/css/farbtastic.css +++ /dev/null @@ -1,41 +0,0 @@ - -.farbtastic { - position: relative; -} - -.farbtastic * { - position: absolute; - cursor: crosshair; -} - -.farbtastic, -.farbtastic .wheel { - width: 195px; - height: 195px; -} - -.farbtastic .color, -.farbtastic .overlay { - top: 47px; - left: 47px; - width: 101px; - height: 101px; -} - -.farbtastic .wheel { - background: url(../images/wheel.png) no-repeat; - width: 195px; - height: 195px; -} - -.farbtastic .overlay { - background: url(../images/mask.png) no-repeat; -} - -.farbtastic .marker { - width: 17px; - height: 17px; - margin: -8px 0 0 -8px; - overflow: hidden; - background: url(../images/marker.png) no-repeat; -} diff --git a/wp-admin/css/forms-rtl.css b/wp-admin/css/forms-rtl.css deleted file mode 100644 index 4799c71c69..0000000000 --- a/wp-admin/css/forms-rtl.css +++ /dev/null @@ -1,1296 +0,0 @@ -/* Include margin and padding in the width calculation of input and textarea. */ -input, -textarea { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -input[type="text"], -input[type="password"], -input[type="checkbox"], -input[type="color"], -input[type="date"], -input[type="datetime"], -input[type="datetime-local"], -input[type="email"], -input[type="month"], -input[type="number"], -input[type="password"], -input[type="search"], -input[type="radio"], -input[type="tel"], -input[type="text"], -input[type="time"], -input[type="url"], -input[type="week"], -select, -textarea { - border: 1px solid #ddd; - -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); - box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); - background-color: #fff; - color: #32373c; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} - -input[type="text"]:focus, -input[type="password"]:focus, -input[type="color"]:focus, -input[type="date"]:focus, -input[type="datetime"]:focus, -input[type="datetime-local"]:focus, -input[type="email"]:focus, -input[type="month"]:focus, -input[type="number"]:focus, -input[type="password"]:focus, -input[type="search"]:focus, -input[type="tel"]:focus, -input[type="text"]:focus, -input[type="time"]:focus, -input[type="url"]:focus, -input[type="week"]:focus, -input[type="checkbox"]:focus, -input[type="radio"]:focus, -select:focus, -textarea:focus { - border-color: #5b9dd9; - -webkit-box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); - box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); -} - -/* rtl:ignore */ -input[type="email"], -input[type="url"] { - direction: ltr; -} - -input[type="checkbox"], -input[type="radio"] { - border: 1px solid #b4b9be; - background: #fff; - color: #555; - clear: none; - cursor: pointer; - display: inline-block; - line-height: 0; - height: 16px; - margin: -4px 0 0 4px; - outline: 0; - padding: 0 !important; - text-align: center; - vertical-align: middle; - width: 16px; - min-width: 16px; - -webkit-appearance: none; - -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.1 ); - -webkit-transition: .05s border-color ease-in-out; - transition: .05s border-color ease-in-out; -} - -input[type="radio"]:checked + label:before { - color: #82878c; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #00a0d2; -} - -td > input[type="checkbox"], -.wp-admin p input[type="checkbox"], -.wp-admin p input[type="radio"] { - margin-top: 0; -} - -.wp-admin p label input[type="checkbox"] { - margin-top: -4px; -} - -.wp-admin p label input[type="radio"] { - margin-top: -2px; -} - -input[type="radio"] { - -webkit-border-radius: 50%; - border-radius: 50%; - margin-left: 4px; - line-height: 10px; -} - -input[type="checkbox"]:checked:before, -input[type="radio"]:checked:before { - float: right; - display: inline-block; - vertical-align: middle; - width: 16px; - font: normal 21px/1 'dashicons'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -input[type="checkbox"]:checked:before { - content: '\f147'; - margin: -3px -4px 0 0; - color: #1e8cbe; -} - -input[type="radio"]:checked:before { - content: '\2022'; - text-indent: -9999px; - -webkit-border-radius: 50px; - border-radius: 50px; - font-size: 24px; - width: 6px; - height: 6px; - margin: 4px; - line-height: 16px; - background-color: #1e8cbe; -} - -@-moz-document url-prefix() { - input[type="checkbox"], - input[type="radio"], - .form-table input.tog { - margin-bottom: -1px; - } -} - -/* Search */ -input[type="search"] { - -webkit-appearance: textfield; -} - -input[type="search"]::-webkit-search-decoration { - display: none; -} - -.ie8 input[type="password"] { - font-family: sans-serif; -} - -textarea, -input, -select, -button { - font-family: inherit; - font-size: inherit; - font-weight: inherit; -} - -textarea, -input, -select { - font-size: 14px; - padding: 3px 5px; - -webkit-border-radius: 0; - border-radius: 0; /* Reset mobile webkit's default element styling */ -} - -textarea { - overflow: auto; - padding: 2px 6px; - line-height: 1.4; -} - -.wp-admin input[type="file"] { - padding: 3px 0; -} - -label { - cursor: pointer; -} - -input, -select { - margin: 1px; - padding: 3px 5px; -} - -input.code { - padding-top: 6px; -} - -textarea.code { - line-height: 1.4; - padding: 4px 6px 1px 6px; -} - -input.readonly, -input[readonly], -textarea.readonly, -textarea[readonly] { - background-color: #eee; -} - -:-moz-placeholder, -.wp-core-ui :-moz-placeholder { - color: #a9a9a9; -} - -.form-invalid input, .form-invalid input:focus, -.form-invalid select, .form-invalid select:focus { - border-color: #dc3232 !important; - -webkit-box-shadow: 0 0 2px rgba( 204, 0, 0, 0.8 ); - box-shadow: 0 0 2px rgba( 204, 0, 0, 0.8 ); -} - -.form-table .form-required.form-invalid td:after { - content: '\f534'; - font: normal 20px/1 dashicons; - color: #dc3232; - margin-right: -25px; - vertical-align: middle; -} - -.form-input-tip { - color: #666; -} - -input:disabled, -input.disabled, -select:disabled, -select.disabled, -textarea:disabled, -textarea.disabled { - background: rgba( 255, 255, 255, 0.5 ); - border-color: rgba( 222, 222, 222, 0.75 ); - -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.04 ); - box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.04 ); - color: rgba( 51, 51, 51, 0.5 ); -} - -input[type="file"]:disabled, -input[type="file"].disabled, -input[type="range"]:disabled, -input[type="range"].disabled { - background: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -input[type="checkbox"]:disabled, -input[type="checkbox"].disabled, -input[type="radio"]:disabled, -input[type="radio"].disabled, -input[type="checkbox"]:disabled:checked:before, -input[type="checkbox"].disabled:checked:before, -input[type="radio"]:disabled:checked:before, -input[type="radio"].disabled:checked:before { - opacity: 0.7; -} - -/*------------------------------------------------------------------------------ - 2.0 - Forms -------------------------------------------------------------------------------*/ - - -.wp-admin select { - padding: 2px; - line-height: 28px; - height: 28px; - vertical-align: middle; -} - -.wp-admin .button-cancel { - padding: 0 5px; - line-height: 2; -} - -.meta-box-sortables select { - max-width: 100%; -} - -.wp-admin select[multiple] { - height: auto; -} - -.submit { - padding: 1.5em 0; - margin: 5px 0; - -webkit-border-bottom-right-radius: 3px; - border-bottom-right-radius: 3px; - -webkit-border-bottom-left-radius: 3px; - border-bottom-left-radius: 3px; - border: none; -} - -form p.submit a.cancel:hover { - text-decoration: none; -} - -p.submit { - text-align: right; - max-width: 100%; - margin-top: 20px; - padding-top: 10px; -} - -.textright p.submit { - border: none; - text-align: left; -} - -table.form-table + p.submit, -table.form-table + input + p.submit, -table.form-table + input + input + p.submit { - border-top: none; - padding-top: 0; -} - -#minor-publishing-actions input, -#major-publishing-actions input, -#minor-publishing-actions .preview { - text-align: center; -} - -textarea.all-options, -input.all-options { - width: 250px; -} - -input.large-text, -textarea.large-text { - width: 99%; -} - -input.regular-text { - width: 25em; -} - -input.small-text { - width: 50px; - padding: 1px 6px; -} - -input[type="number"].small-text { - width: 65px; -} - -#doaction, -#doaction2, -#post-query-submit { - margin: 1px 0 0 8px; -} - -.tablenav #changeit, -.tablenav #delete_all, -.tablenav #clear-recent-list, -.wp-filter #delete_all { - margin-top: 1px; -} - -.tablenav .actions select { - float: right; - margin-left: 6px; - max-width: 200px; -} - -.ie8 .tablenav .actions select { - width: 155px; -} - -.ie8 .tablenav .actions select#cat { - width: 200px; -} - -#timezone_string option { - margin-right: 1em; -} - -#upload-form label { - color: #777; -} - -button.wp-hide-pw > .dashicons { - position: relative; - top: 3px; -} - -label, -#your-profile label + a { - vertical-align: middle; -} - -fieldset label, -#your-profile label + a { - vertical-align: middle; -} - -.options-media-php label[for*="_size_"], -#misc-publishing-actions label { - vertical-align: baseline; -} - -#misc-publishing-actions label[for="post_status"]:before { - content: '\f173'; - display: inline-block; - font: normal 20px/1 'dashicons'; - speak: none; - right: -1px; - padding: 0 0 0 5px; - position: relative; - top: 0; - text-decoration: none !important; - vertical-align: top; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -#pass-strength-result { - background-color: #eee; - border: 1px solid #ddd; - color: #23282d; - margin: -2px 1px 5px 5px; - padding: 3px 5px; - text-align: center; - width: 25em; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - opacity: 0; -} - -#pass-strength-result.short { - background-color: #f1adad; - border-color: #e35b5b; - opacity: 1; -} - -#pass-strength-result.bad { - background-color: #fbc5a9; - border-color: #f78b53; - opacity: 1; -} - -#pass-strength-result.good { - background-color: #ffe399; - border-color: #ffc733; - opacity: 1; -} - -#pass-strength-result.strong { - background-color: #c1e1b9; - border-color: #83c373; - opacity: 1; -} - -#pass1.short, #pass1-text.short { - border-color: #e35b5b; -} - -#pass1.bad, #pass1-text.bad { - border-color: #f78b53; -} - -#pass1.good, #pass1-text.good { - border-color: #ffc733; -} - -#pass1.strong, #pass1-text.strong { - border-color: #83c373; -} - -.pw-weak { - display:none; -} - -.indicator-hint { - padding-top: 8px; -} - -#pass1-text, -.show-password #pass1 { - display: none; -} - -.show-password #pass1-text -{ - display: inline-block; -} - -.form-table span.description.important { - font-size: 12px; -} - -p.search-box { - float: left; - margin: 0; -} - -.network-admin.themes-php p.search-box { - clear: right; -} - -.search-box input[name="s"], -.tablenav .search-plugins input[name="s"], -.tagsdiv .newtag { - float: right; - height: 28px; - margin: 0 0 0 4px; -} - -input[type="text"].ui-autocomplete-loading, -input[type="email"].ui-autocomplete-loading { - background-image: url(../images/loading.gif); - background-repeat: no-repeat; - background-position: left center; - visibility: visible; -} - -input.ui-autocomplete-input.open { - border-bottom-color: transparent; -} - -ul#add-to-blog-users { - margin: 0 14px 0 0; -} - -.ui-autocomplete { - padding: 0; - margin: 0; - list-style: none; - position: absolute; - z-index: 10000; - border: 1px solid #5b9dd9; - -webkit-box-shadow: 0 1px 2px rgba( 30, 140, 190, 0.8 ); - box-shadow: 0 1px 2px rgba( 30, 140, 190, 0.8 ); - background-color: #fff; -} - -.ui-autocomplete li { - margin-bottom: 0; - padding: 4px 10px; - white-space: nowrap; - text-align: right; -} - -.ui-autocomplete li.ui-state-focus { - background-color: #ddd; - cursor: pointer; -} - -/*------------------------------------------------------------------------------ - 15.0 - Comments Screen -------------------------------------------------------------------------------*/ - -.form-table { - border-collapse: collapse; - margin-top: 0.5em; - width: 100%; - clear: both; -} - -.form-table, -.form-table td, -.form-table th, -.form-table td p, -.form-wrap label { - font-size: 14px; -} - -.form-table td { - margin-bottom: 9px; - padding: 15px 10px; - line-height: 1.3; - vertical-align: middle; -} - -.form-table th, -.form-wrap label { - color: #23282d; - font-weight: normal; - text-shadow: none; - vertical-align: baseline; -} - -.form-table th { - vertical-align: top; - text-align: right; - padding: 20px 0 20px 10px; - width: 200px; - line-height: 1.3; - font-weight: 600; -} - -.form-table th.th-full { - width: auto; - font-weight: 400; -} - -.form-table td p { - margin-top: 4px; - margin-bottom: 0; -} - -.form-table td fieldset label { - margin: 0.25em 0 0.5em !important; - display: inline-block; -} - -.form-table td fieldset label, -.form-table td fieldset p, -.form-table td fieldset li { - line-height: 1.4em; -} - -.form-table input.tog, -.form-table input[type="radio"] { - margin-top: -4px; - margin-left: 4px; - float: none; -} - -.form-table .pre { - padding: 8px; - margin: 0; -} - -table.form-table td .updated { - font-size: 13px; -} - -table.form-table td .updated p { - font-size: 13px; - margin: 0.3em 0; -} - -/*------------------------------------------------------------------------------ - 18.0 - Users -------------------------------------------------------------------------------*/ - -#profile-page .form-table textarea { - width: 500px; - margin-bottom: 6px; -} - -#profile-page .form-table #rich_editing { - margin-left: 5px -} - -#your-profile legend { - font-size: 22px; -} - -#display_name { - width: 15em; -} - -#adduser .form-field input, -#createuser .form-field input { - width: 25em; -} - -.color-option { - display: inline-block; - width: 24%; - padding: 5px 15px 15px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin-bottom: 3px; -} - -.color-option:hover, -.color-option.selected { - background: #ddd; -} - -.color-palette { - width: 100%; - border-spacing: 0; - border-collapse: collapse; -} -.color-palette td { - height: 20px; - padding: 0; - border: none; -} - -.color-option { - cursor: pointer; -} - -/*------------------------------------------------------------------------------ - 19.0 - Tools -------------------------------------------------------------------------------*/ - -.tool-box .title { - margin: 8px 0; - font-size: 18px; - font-weight: normal; - line-height: 24px; -} - -/* Card styles */ - -.card { - position: relative; - margin-top: 20px; - padding: 0.7em 2em 1em; - min-width: 255px; - max-width: 520px; - border: 1px solid #e5e5e5; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); - background: #fff; -} - -/* Press this styles */ - -.pressthis h4 { - margin: 2em 0 1em; -} - -.pressthis textarea { - width: 100%; - font-size: 1em; -} - -#pressthis-code-wrap { - overflow: auto; -} - -.pressthis-bookmarklet-wrapper { - margin: 20px 0 8px; - vertical-align: top; - position: relative; - z-index: 1; -} - -.pressthis-bookmarklet, -.pressthis-bookmarklet:hover, -.pressthis-bookmarklet:focus, -.pressthis-bookmarklet:active { - display: inline-block; - position: relative; - cursor: move; - color: #32373c; - background: #e6e6e6; - -webkit-border-radius: 5px; - border-radius: 5px; - border: 1px solid #b4b4b4; - font-style: normal; - line-height: 16px; - font-size: 14px; - text-decoration: none; -} - -.pressthis-bookmarklet:active { - outline: none; -} - -.pressthis-bookmarklet:after { - content: ''; - width: 70%; - height: 55%; - z-index: -1; - position: absolute; - left: 10px; - bottom: 9px; - background: transparent; - -webkit-transform: skew(-20deg) rotate(-6deg); - -ms-transform: skew(-20deg) rotate(-6deg); - transform: skew(-20deg) rotate(-6deg); - -webkit-box-shadow: 0 10px 8px rgba(0, 0, 0, 0.6); - box-shadow: 0 10px 8px rgba(0, 0, 0, 0.6); -} - -.pressthis-bookmarklet:hover:after { - -webkit-transform: skew(-20deg) rotate(-9deg); - -ms-transform: skew(-20deg) rotate(-9deg); - transform: skew(-20deg) rotate(-9deg); - -webkit-box-shadow: 0 10px 8px rgba(0, 0, 0, 0.7); - box-shadow: 0 10px 8px rgba(0, 0, 0, 0.7); -} - -.pressthis-bookmarklet span { - display: inline-block; - margin: 0px 0 0; - padding: 0px 9px 8px 12px; -} - -.pressthis-bookmarklet span:before { - color: #777; - font: normal 20px/1 'dashicons'; - content:'\f157'; - position: relative; - display: inline-block; - top: 4px; - margin-left: 4px; -} - -.pressthis-js-toggle { - margin-right: 10px; - padding: 0; - height: auto; - vertical-align: top; -} - -.pressthis-js-toggle .dashicons { - margin: 5px 7px 6px 8px; - color: #777; -} - -/* to override the button class being applied */ -.pressthis-js-toggle.button.button { - margin-right: 10px; - padding: 0; - height: auto; - vertical-align: top; -} - -.pressthis-js-toggle .dashicons { - margin: 5px 7px 6px 8px; - color: #777; -} - -/*------------------------------------------------------------------------------ - 20.0 - Settings -------------------------------------------------------------------------------*/ - -#utc-time, #local-time { - padding-right: 25px; - font-style: italic; -} - -.defaultavatarpicker .avatar { - margin: 2px 0; - vertical-align: middle; -} - -.options-general-php input.small-text { - width: 56px; -} - -.options-general-php .spinner { - float: none; - margin: 0 3px; -} - -.settings-php .language-install-spinner, -.options-general-php .language-install-spinner { - display: inline-block; - float: none; - margin: -3px 5px 0; - vertical-align: middle; -} - -/*------------------------------------------------------------------------------ - 21.0 - Network Admin -------------------------------------------------------------------------------*/ - -.setup-php textarea { - max-width: 100%; -} - -.form-field #site-address { - max-width: 25em; -} - -.form-field #domain { - max-width: 22em; -} - -.form-field #site-title, -.form-field #admin-email, -.form-field #path, -.form-field #blog_registered, -.form-field #blog_last_updated { - max-width: 25em; -} - -.form-field #path { - margin-bottom: 5px; -} - -#search-users, -#search-sites { - max-width: 100%; -} - -/*------------------------------------------------------------------------------ - Credentials check dialog for Install and Updates -------------------------------------------------------------------------------*/ - -.request-filesystem-credentials-dialog { - display: none; -} - -.request-filesystem-credentials-dialog .notification-dialog { - top: 15%; - max-height: 85%; -} - -.request-filesystem-credentials-dialog-content { - margin: 25px; -} - -.request-filesystem-credentials-form input[type="text"], -.request-filesystem-credentials-form input[type="password"] { - display: block; -} - -.request-filesystem-credentials-dialog input[type="text"], -.request-filesystem-credentials-dialog input[type="password"] { - width: 100%; -} - -.request-filesystem-credentials-form .field-title { - font-weight: 600; -} - -.request-filesystem-credentials-dialog label[for="hostname"], -.request-filesystem-credentials-dialog label[for="public_key"], -.request-filesystem-credentials-dialog label[for="private_key"] { - display: block; - margin-bottom: 1em; -} - -.request-filesystem-credentials-dialog .ftp-username, -.request-filesystem-credentials-dialog .ftp-password { - float: right; - width: 48%; -} - -.request-filesystem-credentials-dialog .ftp-password { - margin-right: 4%; -} - -.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons { - text-align: left; -} - -.request-filesystem-credentials-dialog label[for="ftp"] { - margin-left: 10px; -} - -#request-filesystem-credentials-dialog .button:not(:last-child) { - margin-left: 10px; -} - -#request-filesystem-credentials-form .cancel-button { - display: none; -} - -#request-filesystem-credentials-dialog .cancel-button { - display: inline; -} - - -/* =Media Queries --------------------------------------------------------------- */ - -@media screen and ( max-width: 782px ) { - /* Input Elements */ - textarea { - -webkit-appearance: none; - } - - input[type="text"], - input[type="email"], - input[type="search"], - input[type="password"], - input[type="number"] { - -webkit-appearance: none; - padding: 6px 10px; - } - - input.code { - padding-bottom: 5px; - padding-top: 10px; - } - - input[type="checkbox"], - .widefat th input[type="checkbox"], - .widefat thead td input[type="checkbox"], - .widefat tfoot td input[type="checkbox"] { - -webkit-appearance: none; - padding: 10px; - } - - .widefat th input[type="checkbox"], - .widefat thead td input[type="checkbox"], - .widefat tfoot td input[type="checkbox"] { - margin-bottom: 8px; - } - - input[type="checkbox"]:checked:before, - .widefat th input[type="checkbox"]:before, - .widefat thead td input[type="checkbox"]:before, - .widefat tfoot td input[type="checkbox"]:before { - font: normal 30px/1 'Dashicons'; - margin: -3px -5px; - } - - input[type="radio"], - input[type="checkbox"] { - height: 25px; - width: 25px; - } - - .wp-admin p input[type="checkbox"], - .wp-admin p input[type="radio"] { - margin-top: -3px; - } - - input[type="radio"]:checked:before { - vertical-align: middle; - width: 9px; - height: 9px; - margin: 7px; - line-height: 16px; - } - - .wp-upload-form input[type="submit"] { - margin-top: 10px; - } - - #wpbody select { - height: 36px; - font-size: 16px; - } - - .wp-admin .button-cancel { - padding: 0; - font-size: 14px; - } - - #adduser .form-field input, - #createuser .form-field input { - width: 100%; - } - - .form-table { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - - .form-table th, - .form-table td { - display: block; - width: auto; - vertical-align: middle; - } - - .form-table .color-palette td { - display: table-cell; - width: 15px; - } - - .form-table table.color-palette { - margin-left: 10px; - } - - textarea, - input { - font-size: 16px; - } - - .form-table td input[type="text"], - .form-table td input[type="email"], - .form-table td input[type="password"], - .form-table td select, - .form-table td textarea, - .form-table span.description, - #profile-page .form-table textarea { - width: 100%; - font-size: 16px; - line-height: 1.5; - padding: 7px 10px; - display: block; - max-width: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - - .form-table .form-required.form-invalid td:after { - float: left; - margin: -30px 0 0 3px; - } - - #wpbody .form-table td select { - height: 40px; - } - - input[type="text"].small-text, - input[type="search"].small-text, - input[type="password"].small-text, - input[type="number"].small-text, - input[type="number"].small-text, - .form-table input[type="text"].small-text { - width: auto; - max-width: 55px; - display: inline; - padding: 3px 6px; - margin: 0 3px; - } - - #pass-strength-result { - width: 100%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - padding: 8px; - } - - p.search-box { - float: none; - position: absolute; - bottom: 0; - width: 98%; - height: 90px; - margin-bottom: 20px; - } - - p.search-box input[name="s"] { - height: auto; - float: none; - width: 100%; - margin-bottom: 10px; - vertical-align: middle; - -webkit-appearance: none; - } - - p.search-box input[type="submit"] { - margin-bottom: 10px; - } - - .form-table span.description { - display: inline; - padding: 4px 0 0; - line-height: 1.4em; - font-size: 14px; - } - - .form-table th { - padding-top: 10px; - padding-bottom: 0; - border-bottom: 0; - } - - .form-table td { - margin-bottom: 0; - padding-bottom: 6px; - padding-top: 4px; - padding-right: 0; - } - - .form-table.permalink-structure td code { - margin-right: 32px; - } - - .form-table.permalink-structure td input[type="text"] { - margin-right: 32px; - margin-top: 4px; - width: 96%; - } - - .form-table input.regular-text { - width: 100%; - } - - .form-table label { - font-size: 14px; - } - - .form-table fieldset label { - display: block; - } - - #utc-time { - margin-top: 10px; - } - - #utc-time, - #local-time { - display: block; - float: none; - padding: 0; - line-height: 2; - } - - .form-field #domain { - max-width: none; - } - - /* New Password */ - .wp-pwd { - position: relative; - } - - .wp-pwd [type="text"], - .wp-pwd [type="password"] { - padding-left: 40px; - } - - .wp-pwd button.button { - background: transparent; - border: none; - -webkit-box-shadow: none; - box-shadow: none; - line-height: 2; - margin: 0; - padding: 5px 10px; - position: absolute; - left: 0; - top: 0; - } - - .wp-pwd button.button:hover, - .wp-pwd button.button:focus, - .wp-pwd button.button:active { - background: transparent; - } - - .wp-pwd .button .text { - display: none; - } -} - -@media only screen and (max-width: 768px) { - .form-field input[type="text"], - .form-field input[type="email"], - .form-field input[type="password"], - .form-field select, - .form-field textarea { - width: 99%; - } - - .form-wrap .form-field { - padding:0; - } - - /* users */ - #profile-page .form-table textarea { - max-width: 400px; - width: auto; - } -} - -@media only screen and (max-height: 480px) { - /* Request Credentials */ - .request-filesystem-credentials-dialog .notification-dialog{ - width: 100%; - height: 100%; - max-height: 100%; - position: fixed; - top: 0; - margin: 0; - right: 0; - } -} - -/* Smartphone */ -@media screen and (max-width: 600px) { - /* Color Picker Options */ - .color-option { - width: 49%; - } -} diff --git a/wp-admin/css/forms.css b/wp-admin/css/forms.css deleted file mode 100644 index 785f3ea377..0000000000 --- a/wp-admin/css/forms.css +++ /dev/null @@ -1,1296 +0,0 @@ -/* Include margin and padding in the width calculation of input and textarea. */ -input, -textarea { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -input[type="text"], -input[type="password"], -input[type="checkbox"], -input[type="color"], -input[type="date"], -input[type="datetime"], -input[type="datetime-local"], -input[type="email"], -input[type="month"], -input[type="number"], -input[type="password"], -input[type="search"], -input[type="radio"], -input[type="tel"], -input[type="text"], -input[type="time"], -input[type="url"], -input[type="week"], -select, -textarea { - border: 1px solid #ddd; - -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); - box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); - background-color: #fff; - color: #32373c; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} - -input[type="text"]:focus, -input[type="password"]:focus, -input[type="color"]:focus, -input[type="date"]:focus, -input[type="datetime"]:focus, -input[type="datetime-local"]:focus, -input[type="email"]:focus, -input[type="month"]:focus, -input[type="number"]:focus, -input[type="password"]:focus, -input[type="search"]:focus, -input[type="tel"]:focus, -input[type="text"]:focus, -input[type="time"]:focus, -input[type="url"]:focus, -input[type="week"]:focus, -input[type="checkbox"]:focus, -input[type="radio"]:focus, -select:focus, -textarea:focus { - border-color: #5b9dd9; - -webkit-box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); - box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); -} - -/* rtl:ignore */ -input[type="email"], -input[type="url"] { - direction: ltr; -} - -input[type="checkbox"], -input[type="radio"] { - border: 1px solid #b4b9be; - background: #fff; - color: #555; - clear: none; - cursor: pointer; - display: inline-block; - line-height: 0; - height: 16px; - margin: -4px 4px 0 0; - outline: 0; - padding: 0 !important; - text-align: center; - vertical-align: middle; - width: 16px; - min-width: 16px; - -webkit-appearance: none; - -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.1 ); - -webkit-transition: .05s border-color ease-in-out; - transition: .05s border-color ease-in-out; -} - -input[type="radio"]:checked + label:before { - color: #82878c; -} - -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active { - color: #00a0d2; -} - -td > input[type="checkbox"], -.wp-admin p input[type="checkbox"], -.wp-admin p input[type="radio"] { - margin-top: 0; -} - -.wp-admin p label input[type="checkbox"] { - margin-top: -4px; -} - -.wp-admin p label input[type="radio"] { - margin-top: -2px; -} - -input[type="radio"] { - -webkit-border-radius: 50%; - border-radius: 50%; - margin-right: 4px; - line-height: 10px; -} - -input[type="checkbox"]:checked:before, -input[type="radio"]:checked:before { - float: left; - display: inline-block; - vertical-align: middle; - width: 16px; - font: normal 21px/1 'dashicons'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -input[type="checkbox"]:checked:before { - content: '\f147'; - margin: -3px 0 0 -4px; - color: #1e8cbe; -} - -input[type="radio"]:checked:before { - content: '\2022'; - text-indent: -9999px; - -webkit-border-radius: 50px; - border-radius: 50px; - font-size: 24px; - width: 6px; - height: 6px; - margin: 4px; - line-height: 16px; - background-color: #1e8cbe; -} - -@-moz-document url-prefix() { - input[type="checkbox"], - input[type="radio"], - .form-table input.tog { - margin-bottom: -1px; - } -} - -/* Search */ -input[type="search"] { - -webkit-appearance: textfield; -} - -input[type="search"]::-webkit-search-decoration { - display: none; -} - -.ie8 input[type="password"] { - font-family: sans-serif; -} - -textarea, -input, -select, -button { - font-family: inherit; - font-size: inherit; - font-weight: inherit; -} - -textarea, -input, -select { - font-size: 14px; - padding: 3px 5px; - -webkit-border-radius: 0; - border-radius: 0; /* Reset mobile webkit's default element styling */ -} - -textarea { - overflow: auto; - padding: 2px 6px; - line-height: 1.4; -} - -.wp-admin input[type="file"] { - padding: 3px 0; -} - -label { - cursor: pointer; -} - -input, -select { - margin: 1px; - padding: 3px 5px; -} - -input.code { - padding-top: 6px; -} - -textarea.code { - line-height: 1.4; - padding: 4px 6px 1px 6px; -} - -input.readonly, -input[readonly], -textarea.readonly, -textarea[readonly] { - background-color: #eee; -} - -:-moz-placeholder, -.wp-core-ui :-moz-placeholder { - color: #a9a9a9; -} - -.form-invalid input, .form-invalid input:focus, -.form-invalid select, .form-invalid select:focus { - border-color: #dc3232 !important; - -webkit-box-shadow: 0 0 2px rgba( 204, 0, 0, 0.8 ); - box-shadow: 0 0 2px rgba( 204, 0, 0, 0.8 ); -} - -.form-table .form-required.form-invalid td:after { - content: '\f534'; - font: normal 20px/1 dashicons; - color: #dc3232; - margin-left: -25px; - vertical-align: middle; -} - -.form-input-tip { - color: #666; -} - -input:disabled, -input.disabled, -select:disabled, -select.disabled, -textarea:disabled, -textarea.disabled { - background: rgba( 255, 255, 255, 0.5 ); - border-color: rgba( 222, 222, 222, 0.75 ); - -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.04 ); - box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.04 ); - color: rgba( 51, 51, 51, 0.5 ); -} - -input[type="file"]:disabled, -input[type="file"].disabled, -input[type="range"]:disabled, -input[type="range"].disabled { - background: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -input[type="checkbox"]:disabled, -input[type="checkbox"].disabled, -input[type="radio"]:disabled, -input[type="radio"].disabled, -input[type="checkbox"]:disabled:checked:before, -input[type="checkbox"].disabled:checked:before, -input[type="radio"]:disabled:checked:before, -input[type="radio"].disabled:checked:before { - opacity: 0.7; -} - -/*------------------------------------------------------------------------------ - 2.0 - Forms -------------------------------------------------------------------------------*/ - - -.wp-admin select { - padding: 2px; - line-height: 28px; - height: 28px; - vertical-align: middle; -} - -.wp-admin .button-cancel { - padding: 0 5px; - line-height: 2; -} - -.meta-box-sortables select { - max-width: 100%; -} - -.wp-admin select[multiple] { - height: auto; -} - -.submit { - padding: 1.5em 0; - margin: 5px 0; - -webkit-border-bottom-left-radius: 3px; - border-bottom-left-radius: 3px; - -webkit-border-bottom-right-radius: 3px; - border-bottom-right-radius: 3px; - border: none; -} - -form p.submit a.cancel:hover { - text-decoration: none; -} - -p.submit { - text-align: left; - max-width: 100%; - margin-top: 20px; - padding-top: 10px; -} - -.textright p.submit { - border: none; - text-align: right; -} - -table.form-table + p.submit, -table.form-table + input + p.submit, -table.form-table + input + input + p.submit { - border-top: none; - padding-top: 0; -} - -#minor-publishing-actions input, -#major-publishing-actions input, -#minor-publishing-actions .preview { - text-align: center; -} - -textarea.all-options, -input.all-options { - width: 250px; -} - -input.large-text, -textarea.large-text { - width: 99%; -} - -input.regular-text { - width: 25em; -} - -input.small-text { - width: 50px; - padding: 1px 6px; -} - -input[type="number"].small-text { - width: 65px; -} - -#doaction, -#doaction2, -#post-query-submit { - margin: 1px 8px 0 0; -} - -.tablenav #changeit, -.tablenav #delete_all, -.tablenav #clear-recent-list, -.wp-filter #delete_all { - margin-top: 1px; -} - -.tablenav .actions select { - float: left; - margin-right: 6px; - max-width: 200px; -} - -.ie8 .tablenav .actions select { - width: 155px; -} - -.ie8 .tablenav .actions select#cat { - width: 200px; -} - -#timezone_string option { - margin-left: 1em; -} - -#upload-form label { - color: #777; -} - -button.wp-hide-pw > .dashicons { - position: relative; - top: 3px; -} - -label, -#your-profile label + a { - vertical-align: middle; -} - -fieldset label, -#your-profile label + a { - vertical-align: middle; -} - -.options-media-php label[for*="_size_"], -#misc-publishing-actions label { - vertical-align: baseline; -} - -#misc-publishing-actions label[for="post_status"]:before { - content: '\f173'; - display: inline-block; - font: normal 20px/1 'dashicons'; - speak: none; - left: -1px; - padding: 0 5px 0 0; - position: relative; - top: 0; - text-decoration: none !important; - vertical-align: top; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -#pass-strength-result { - background-color: #eee; - border: 1px solid #ddd; - color: #23282d; - margin: -2px 5px 5px 1px; - padding: 3px 5px; - text-align: center; - width: 25em; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - opacity: 0; -} - -#pass-strength-result.short { - background-color: #f1adad; - border-color: #e35b5b; - opacity: 1; -} - -#pass-strength-result.bad { - background-color: #fbc5a9; - border-color: #f78b53; - opacity: 1; -} - -#pass-strength-result.good { - background-color: #ffe399; - border-color: #ffc733; - opacity: 1; -} - -#pass-strength-result.strong { - background-color: #c1e1b9; - border-color: #83c373; - opacity: 1; -} - -#pass1.short, #pass1-text.short { - border-color: #e35b5b; -} - -#pass1.bad, #pass1-text.bad { - border-color: #f78b53; -} - -#pass1.good, #pass1-text.good { - border-color: #ffc733; -} - -#pass1.strong, #pass1-text.strong { - border-color: #83c373; -} - -.pw-weak { - display:none; -} - -.indicator-hint { - padding-top: 8px; -} - -#pass1-text, -.show-password #pass1 { - display: none; -} - -.show-password #pass1-text -{ - display: inline-block; -} - -.form-table span.description.important { - font-size: 12px; -} - -p.search-box { - float: right; - margin: 0; -} - -.network-admin.themes-php p.search-box { - clear: left; -} - -.search-box input[name="s"], -.tablenav .search-plugins input[name="s"], -.tagsdiv .newtag { - float: left; - height: 28px; - margin: 0 4px 0 0; -} - -input[type="text"].ui-autocomplete-loading, -input[type="email"].ui-autocomplete-loading { - background-image: url(../images/loading.gif); - background-repeat: no-repeat; - background-position: right center; - visibility: visible; -} - -input.ui-autocomplete-input.open { - border-bottom-color: transparent; -} - -ul#add-to-blog-users { - margin: 0 0 0 14px; -} - -.ui-autocomplete { - padding: 0; - margin: 0; - list-style: none; - position: absolute; - z-index: 10000; - border: 1px solid #5b9dd9; - -webkit-box-shadow: 0 1px 2px rgba( 30, 140, 190, 0.8 ); - box-shadow: 0 1px 2px rgba( 30, 140, 190, 0.8 ); - background-color: #fff; -} - -.ui-autocomplete li { - margin-bottom: 0; - padding: 4px 10px; - white-space: nowrap; - text-align: left; -} - -.ui-autocomplete li.ui-state-focus { - background-color: #ddd; - cursor: pointer; -} - -/*------------------------------------------------------------------------------ - 15.0 - Comments Screen -------------------------------------------------------------------------------*/ - -.form-table { - border-collapse: collapse; - margin-top: 0.5em; - width: 100%; - clear: both; -} - -.form-table, -.form-table td, -.form-table th, -.form-table td p, -.form-wrap label { - font-size: 14px; -} - -.form-table td { - margin-bottom: 9px; - padding: 15px 10px; - line-height: 1.3; - vertical-align: middle; -} - -.form-table th, -.form-wrap label { - color: #23282d; - font-weight: normal; - text-shadow: none; - vertical-align: baseline; -} - -.form-table th { - vertical-align: top; - text-align: left; - padding: 20px 10px 20px 0; - width: 200px; - line-height: 1.3; - font-weight: 600; -} - -.form-table th.th-full { - width: auto; - font-weight: 400; -} - -.form-table td p { - margin-top: 4px; - margin-bottom: 0; -} - -.form-table td fieldset label { - margin: 0.25em 0 0.5em !important; - display: inline-block; -} - -.form-table td fieldset label, -.form-table td fieldset p, -.form-table td fieldset li { - line-height: 1.4em; -} - -.form-table input.tog, -.form-table input[type="radio"] { - margin-top: -4px; - margin-right: 4px; - float: none; -} - -.form-table .pre { - padding: 8px; - margin: 0; -} - -table.form-table td .updated { - font-size: 13px; -} - -table.form-table td .updated p { - font-size: 13px; - margin: 0.3em 0; -} - -/*------------------------------------------------------------------------------ - 18.0 - Users -------------------------------------------------------------------------------*/ - -#profile-page .form-table textarea { - width: 500px; - margin-bottom: 6px; -} - -#profile-page .form-table #rich_editing { - margin-right: 5px -} - -#your-profile legend { - font-size: 22px; -} - -#display_name { - width: 15em; -} - -#adduser .form-field input, -#createuser .form-field input { - width: 25em; -} - -.color-option { - display: inline-block; - width: 24%; - padding: 5px 15px 15px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin-bottom: 3px; -} - -.color-option:hover, -.color-option.selected { - background: #ddd; -} - -.color-palette { - width: 100%; - border-spacing: 0; - border-collapse: collapse; -} -.color-palette td { - height: 20px; - padding: 0; - border: none; -} - -.color-option { - cursor: pointer; -} - -/*------------------------------------------------------------------------------ - 19.0 - Tools -------------------------------------------------------------------------------*/ - -.tool-box .title { - margin: 8px 0; - font-size: 18px; - font-weight: normal; - line-height: 24px; -} - -/* Card styles */ - -.card { - position: relative; - margin-top: 20px; - padding: 0.7em 2em 1em; - min-width: 255px; - max-width: 520px; - border: 1px solid #e5e5e5; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); - background: #fff; -} - -/* Press this styles */ - -.pressthis h4 { - margin: 2em 0 1em; -} - -.pressthis textarea { - width: 100%; - font-size: 1em; -} - -#pressthis-code-wrap { - overflow: auto; -} - -.pressthis-bookmarklet-wrapper { - margin: 20px 0 8px; - vertical-align: top; - position: relative; - z-index: 1; -} - -.pressthis-bookmarklet, -.pressthis-bookmarklet:hover, -.pressthis-bookmarklet:focus, -.pressthis-bookmarklet:active { - display: inline-block; - position: relative; - cursor: move; - color: #32373c; - background: #e6e6e6; - -webkit-border-radius: 5px; - border-radius: 5px; - border: 1px solid #b4b4b4; - font-style: normal; - line-height: 16px; - font-size: 14px; - text-decoration: none; -} - -.pressthis-bookmarklet:active { - outline: none; -} - -.pressthis-bookmarklet:after { - content: ''; - width: 70%; - height: 55%; - z-index: -1; - position: absolute; - right: 10px; - bottom: 9px; - background: transparent; - -webkit-transform: skew(20deg) rotate(6deg); - -ms-transform: skew(20deg) rotate(6deg); - transform: skew(20deg) rotate(6deg); - -webkit-box-shadow: 0 10px 8px rgba(0, 0, 0, 0.6); - box-shadow: 0 10px 8px rgba(0, 0, 0, 0.6); -} - -.pressthis-bookmarklet:hover:after { - -webkit-transform: skew(20deg) rotate(9deg); - -ms-transform: skew(20deg) rotate(9deg); - transform: skew(20deg) rotate(9deg); - -webkit-box-shadow: 0 10px 8px rgba(0, 0, 0, 0.7); - box-shadow: 0 10px 8px rgba(0, 0, 0, 0.7); -} - -.pressthis-bookmarklet span { - display: inline-block; - margin: 0px 0 0; - padding: 0px 12px 8px 9px; -} - -.pressthis-bookmarklet span:before { - color: #777; - font: normal 20px/1 'dashicons'; - content:'\f157'; - position: relative; - display: inline-block; - top: 4px; - margin-right: 4px; -} - -.pressthis-js-toggle { - margin-left: 10px; - padding: 0; - height: auto; - vertical-align: top; -} - -.pressthis-js-toggle .dashicons { - margin: 5px 8px 6px 7px; - color: #777; -} - -/* to override the button class being applied */ -.pressthis-js-toggle.button.button { - margin-left: 10px; - padding: 0; - height: auto; - vertical-align: top; -} - -.pressthis-js-toggle .dashicons { - margin: 5px 8px 6px 7px; - color: #777; -} - -/*------------------------------------------------------------------------------ - 20.0 - Settings -------------------------------------------------------------------------------*/ - -#utc-time, #local-time { - padding-left: 25px; - font-style: italic; -} - -.defaultavatarpicker .avatar { - margin: 2px 0; - vertical-align: middle; -} - -.options-general-php input.small-text { - width: 56px; -} - -.options-general-php .spinner { - float: none; - margin: 0 3px; -} - -.settings-php .language-install-spinner, -.options-general-php .language-install-spinner { - display: inline-block; - float: none; - margin: -3px 5px 0; - vertical-align: middle; -} - -/*------------------------------------------------------------------------------ - 21.0 - Network Admin -------------------------------------------------------------------------------*/ - -.setup-php textarea { - max-width: 100%; -} - -.form-field #site-address { - max-width: 25em; -} - -.form-field #domain { - max-width: 22em; -} - -.form-field #site-title, -.form-field #admin-email, -.form-field #path, -.form-field #blog_registered, -.form-field #blog_last_updated { - max-width: 25em; -} - -.form-field #path { - margin-bottom: 5px; -} - -#search-users, -#search-sites { - max-width: 100%; -} - -/*------------------------------------------------------------------------------ - Credentials check dialog for Install and Updates -------------------------------------------------------------------------------*/ - -.request-filesystem-credentials-dialog { - display: none; -} - -.request-filesystem-credentials-dialog .notification-dialog { - top: 15%; - max-height: 85%; -} - -.request-filesystem-credentials-dialog-content { - margin: 25px; -} - -.request-filesystem-credentials-form input[type="text"], -.request-filesystem-credentials-form input[type="password"] { - display: block; -} - -.request-filesystem-credentials-dialog input[type="text"], -.request-filesystem-credentials-dialog input[type="password"] { - width: 100%; -} - -.request-filesystem-credentials-form .field-title { - font-weight: 600; -} - -.request-filesystem-credentials-dialog label[for="hostname"], -.request-filesystem-credentials-dialog label[for="public_key"], -.request-filesystem-credentials-dialog label[for="private_key"] { - display: block; - margin-bottom: 1em; -} - -.request-filesystem-credentials-dialog .ftp-username, -.request-filesystem-credentials-dialog .ftp-password { - float: left; - width: 48%; -} - -.request-filesystem-credentials-dialog .ftp-password { - margin-left: 4%; -} - -.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons { - text-align: right; -} - -.request-filesystem-credentials-dialog label[for="ftp"] { - margin-right: 10px; -} - -#request-filesystem-credentials-dialog .button:not(:last-child) { - margin-right: 10px; -} - -#request-filesystem-credentials-form .cancel-button { - display: none; -} - -#request-filesystem-credentials-dialog .cancel-button { - display: inline; -} - - -/* =Media Queries --------------------------------------------------------------- */ - -@media screen and ( max-width: 782px ) { - /* Input Elements */ - textarea { - -webkit-appearance: none; - } - - input[type="text"], - input[type="email"], - input[type="search"], - input[type="password"], - input[type="number"] { - -webkit-appearance: none; - padding: 6px 10px; - } - - input.code { - padding-bottom: 5px; - padding-top: 10px; - } - - input[type="checkbox"], - .widefat th input[type="checkbox"], - .widefat thead td input[type="checkbox"], - .widefat tfoot td input[type="checkbox"] { - -webkit-appearance: none; - padding: 10px; - } - - .widefat th input[type="checkbox"], - .widefat thead td input[type="checkbox"], - .widefat tfoot td input[type="checkbox"] { - margin-bottom: 8px; - } - - input[type="checkbox"]:checked:before, - .widefat th input[type="checkbox"]:before, - .widefat thead td input[type="checkbox"]:before, - .widefat tfoot td input[type="checkbox"]:before { - font: normal 30px/1 'Dashicons'; - margin: -3px -5px; - } - - input[type="radio"], - input[type="checkbox"] { - height: 25px; - width: 25px; - } - - .wp-admin p input[type="checkbox"], - .wp-admin p input[type="radio"] { - margin-top: -3px; - } - - input[type="radio"]:checked:before { - vertical-align: middle; - width: 9px; - height: 9px; - margin: 7px; - line-height: 16px; - } - - .wp-upload-form input[type="submit"] { - margin-top: 10px; - } - - #wpbody select { - height: 36px; - font-size: 16px; - } - - .wp-admin .button-cancel { - padding: 0; - font-size: 14px; - } - - #adduser .form-field input, - #createuser .form-field input { - width: 100%; - } - - .form-table { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - - .form-table th, - .form-table td { - display: block; - width: auto; - vertical-align: middle; - } - - .form-table .color-palette td { - display: table-cell; - width: 15px; - } - - .form-table table.color-palette { - margin-right: 10px; - } - - textarea, - input { - font-size: 16px; - } - - .form-table td input[type="text"], - .form-table td input[type="email"], - .form-table td input[type="password"], - .form-table td select, - .form-table td textarea, - .form-table span.description, - #profile-page .form-table textarea { - width: 100%; - font-size: 16px; - line-height: 1.5; - padding: 7px 10px; - display: block; - max-width: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - - .form-table .form-required.form-invalid td:after { - float: right; - margin: -30px 3px 0 0; - } - - #wpbody .form-table td select { - height: 40px; - } - - input[type="text"].small-text, - input[type="search"].small-text, - input[type="password"].small-text, - input[type="number"].small-text, - input[type="number"].small-text, - .form-table input[type="text"].small-text { - width: auto; - max-width: 55px; - display: inline; - padding: 3px 6px; - margin: 0 3px; - } - - #pass-strength-result { - width: 100%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - padding: 8px; - } - - p.search-box { - float: none; - position: absolute; - bottom: 0; - width: 98%; - height: 90px; - margin-bottom: 20px; - } - - p.search-box input[name="s"] { - height: auto; - float: none; - width: 100%; - margin-bottom: 10px; - vertical-align: middle; - -webkit-appearance: none; - } - - p.search-box input[type="submit"] { - margin-bottom: 10px; - } - - .form-table span.description { - display: inline; - padding: 4px 0 0; - line-height: 1.4em; - font-size: 14px; - } - - .form-table th { - padding-top: 10px; - padding-bottom: 0; - border-bottom: 0; - } - - .form-table td { - margin-bottom: 0; - padding-bottom: 6px; - padding-top: 4px; - padding-left: 0; - } - - .form-table.permalink-structure td code { - margin-left: 32px; - } - - .form-table.permalink-structure td input[type="text"] { - margin-left: 32px; - margin-top: 4px; - width: 96%; - } - - .form-table input.regular-text { - width: 100%; - } - - .form-table label { - font-size: 14px; - } - - .form-table fieldset label { - display: block; - } - - #utc-time { - margin-top: 10px; - } - - #utc-time, - #local-time { - display: block; - float: none; - padding: 0; - line-height: 2; - } - - .form-field #domain { - max-width: none; - } - - /* New Password */ - .wp-pwd { - position: relative; - } - - .wp-pwd [type="text"], - .wp-pwd [type="password"] { - padding-right: 40px; - } - - .wp-pwd button.button { - background: transparent; - border: none; - -webkit-box-shadow: none; - box-shadow: none; - line-height: 2; - margin: 0; - padding: 5px 10px; - position: absolute; - right: 0; - top: 0; - } - - .wp-pwd button.button:hover, - .wp-pwd button.button:focus, - .wp-pwd button.button:active { - background: transparent; - } - - .wp-pwd .button .text { - display: none; - } -} - -@media only screen and (max-width: 768px) { - .form-field input[type="text"], - .form-field input[type="email"], - .form-field input[type="password"], - .form-field select, - .form-field textarea { - width: 99%; - } - - .form-wrap .form-field { - padding:0; - } - - /* users */ - #profile-page .form-table textarea { - max-width: 400px; - width: auto; - } -} - -@media only screen and (max-height: 480px) { - /* Request Credentials */ - .request-filesystem-credentials-dialog .notification-dialog{ - width: 100%; - height: 100%; - max-height: 100%; - position: fixed; - top: 0; - margin: 0; - left: 0; - } -} - -/* Smartphone */ -@media screen and (max-width: 600px) { - /* Color Picker Options */ - .color-option { - width: 49%; - } -} diff --git a/wp-admin/css/ie-rtl.css b/wp-admin/css/ie-rtl.css deleted file mode 100644 index d3705d0f8a..0000000000 --- a/wp-admin/css/ie-rtl.css +++ /dev/null @@ -1,776 +0,0 @@ -/* Fixes for IE 7 bugs */ - -#dashboard-widgets form .input-text-wrap input, -#dashboard-widgets form .textarea-wrap textarea { - width: 99%; -} - -#dashboard-widgets form #title { - width: 98%; -} - -#wpbody-content #dashboard-widgets .postbox-container { - width: 49.5%; -} - -#wpbody-content #dashboard-widgets #postbox-container-2, -#wpbody-content #dashboard-widgets #postbox-container-3, -#wpbody-content #dashboard-widgets #postbox-container-4 { - float: left; - width: 50.5%; -} - -#dashboard-widgets #postbox-container-3 .empty-container, -#dashboard-widgets #postbox-container-4 .empty-container { - border: 0 none; - height: 0; - min-height: 0; -} - -.wp-editor-wrap .wp-editor-tools, -.wp-editor-wrap .wp-switch-editor, -.wp-editor-wrap .wp-editor-tabs, -.wp-editor-wrap .wp-editor-container { - zoom: 100%; -} - -.wp-editor-wrap .wp-editor-container textarea.wp-editor-area { - width: 97%; -} - -#post-body.columns-2 #postbox-container-1 { - padding-right: 19px; -} - -.welcome-panel .wp-badge { - position: absolute; -} - -.welcome-panel .welcome-panel-column:first-child { - width: 35%; -} - -#adminmenuback { - right: 0; - background-image: none; -} - -#adminmenuwrap { - position: static; -} - -#adminmenu { - position: relative; -} - -#adminmenu, -#adminmenu a { - cursor: pointer; -} - -#adminmenu li.wp-menu-separator, -#adminmenu li.wp-menu-separator-last { - font-size: 1px; - line-height: 1; -} - -#adminmenu a.menu-top { - border-bottom: 0 none; - border-top: 1px solid #ddd; -} - -#adminmenu .separator { - font-size: 1px; - line-height: 1px; -} - -#adminmenu .wp-submenu { - right: 110px; -} - -#adminmenu .wp-submenu ul { - margin: 0; -} - -.folded #wpcontent, -.folded #wpfooter { - margin-right: 170px; -} - -.folded #adminmenuback, -.folded #adminmenuwrap, -.folded #adminmenu, -.folded #adminmenu li.menu-top { - width: 150px; -} - -.folded #adminmenu .wp-submenu { - border-top-color: transparent; -} - -.folded #adminmenu .wp-menu-name { - display: block; -} - -.folded #adminmenu .wp-submenu.sub-open, -.folded #adminmenu .opensub .wp-submenu { - right: 110px; -} - -.folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu { - top: -1px; - position: relative; -} - -.folded #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head { - background-color: transparent; -} - -#adminmenu .wp-submenu .wp-submenu-head { - border-top-color: #ddd; -} - -.folded #adminmenu .wp-submenu ul { - margin-right: 5px; -} - -#adminmenu li.menu-top { - margin-bottom: -2px; -} - -#adminmenu .wp-menu-arrow { - display: none !important; -} - -.js.folded #adminmenu li.menu-top { - display: block; - zoom: 100%; -} - -ul#adminmenu { - z-index: 99; -} - -#adminmenu li.menu-top a.menu-top { - min-width: auto; - width: auto; -} - -#wpcontent #adminmenu li.wp-has-current-submenu a.wp-has-submenu { - font-style: normal; -} - -#wpcontent #adminmenu .wp-submenu li { - padding: 0; -} - -#adminmenu li.wp-has-current-submenu .wp-submenu { - right: -40px; -} - -#adminmenu .wp-menu-image { - display: none !important; -} - -#adminmenu a.menu-top .wp-menu-name { - padding-right: 8px; -} - -#collapse-menu { - line-height: 23px; -} - -#wpadminbar .ab-comments-icon { - padding-top: 7px; -} - - -.theme-browser .theme { - width: 30%; - margin: 0 0 4% 3%; - cursor: auto; -} - -.theme-browser .theme:hover, -.theme-browser .theme:focus { - cursor: auto; -} - -.theme-browser .theme .theme-screenshot { - height: 180px; -} - -.theme-browser .theme .theme-actions { - position: static; - background-color: #e8e8e8; -} - -.theme-browser .theme .more-details { - display: none; -} - -.plugins td, -.plugins th { - border-top: 1px solid #ddd; -} - -table.fixed th, -table.fixed td { - border-top: 1px solid #ddd; -} - -#wpbody-content input.button, -#wpbody-content input.button-primary, -#wpbody-content input.button-secondary { - overflow: visible; -} - -#dashboard-widgets h3 a { - height: 14px; - line-height: 14px; -} - -#dashboard_browser_nag { - color: #fff; -} - -#dashboard_browser_nag .browser-icon { - position: relative; -} - -.tablenav-pages .current-page { - vertical-align: middle; -} - -#wpbody-content .postbox { - border: 1px solid #dfdfdf; -} - -#wpbody-content .postbox .hndle { - margin-bottom: -1px; -} - -.major-publishing-actions, -.wp-submenu, -.wp-submenu li, -#template, -#template div, -#editcat, -#addcat { - zoom: 100%; -} - -.wp-menu-arrow { - height: 28px; -} - -.submitbox { - margin-top: 10px; -} - -/* Inline Editor */ -#wpbody-content .quick-edit-row-post .inline-edit-col-left { - width: 39%; -} - -#wpbody-content .inline-edit-row-post .inline-edit-col-center { - width: 19%; -} - -#wpbody-content .quick-edit-row-page .inline-edit-col-left { - width: 49%; -} - -#wpbody-content .bulk-edit-row .inline-edit-col-left { - width: 29%; -} - -.inline-edit-row p.submit { - zoom: 100%; -} - -.inline-edit-row fieldset label span.title { - display: block; - float: right; - width: 5em; -} - -.inline-edit-row fieldset label span.input-text-wrap { - margin-right: 0; - zoom: 100%; -} - -#wpbody-content .inline-edit-row fieldset label span.input-text-wrap input { - line-height: 130%; -} - -#wpbody-content .inline-edit-row .input-text-wrap input { - width: 95%; -} - -#wpbody-content .inline-edit-row .input-text-wrap input.inline-edit-password-input { - width: 8em; -} -/* end Inline Editor */ - -#titlediv #title { - width: 98%; -} - -.button, -input[type="reset"], -input[type="button"], -input[type="submit"] { - padding: 0 8px; - line-height: 20px; - height: auto; -} - -.button.button-large, -input[type="reset"].button-large, -input[type="button"].button-large, -input[type="submit"].button-large { - padding: 0 10px; - line-height: 24px; - height: auto; -} - -.button.button-small, -input[type="reset"].button-small, -input[type="button"].button-small, -input[type="submit"].button-small { - padding: 0 6px; - line-height: 16px; - height: auto; -} - -a.button { - margin: 1px; - padding: 1px 9px 2px; -} - -a.button.button-large { - padding: 1px 11px 2px; -} - -a.button.button-small { - padding: 1px 7px 2px; -} - -#screen-options-wrap { - overflow: hidden; -} - -#the-comment-list .comment-item, -#post-status-info, -#wpwrap, -#wrap, -#postdivrich, -#postdiv, -#poststuff, -.metabox-holder, -#titlediv, -#post-body, -#editorcontainer, -.tablenav, -.widget-liquid-left, -.widget-liquid-right, -#widgets-left, -.widgets-sortables, -#dragHelper, -.widget .widget-top, -.widget-control-actions, -.tagchecklist, -#col-container, -#col-left, -#col-right, -.fileedit-sub { - display: block; - zoom: 100%; -} - -p.search-box { - position: static; - float: left; - margin: -3px 0 4px; -} - -#widget-list .widget, -.feature-filter .feature-group li { - display: inline; -} - -.feature-filter .feature-group li input { - vertical-align: middle; -} - -#editorcontainer #content { - overflow: auto; - margin: auto; - width: 98%; -} - -form#template div { - width: 100%; -} - -.wp-editor-container .quicktags-toolbar input { - overflow: visible; - padding: 0 4px; -} - -#poststuff h2 { - font-size: 1.6em; -} - -#poststuff .inside #parent_id, -#poststuff .inside #page_template, -.inline-edit-row #post_parent, -.inline-edit-row select[name="page_template"] { - width: 250px; -} - -#submitdiv input, -#submitdiv select, -#submitdiv a.button { - position: relative; -} - -#bh { - margin: 7px 0 0 10px; - float: left; -} - -/* without this dashboard widgets appear in one column for some screen widths */ -div#dashboard-widgets { - padding-left: 1px; -} - -.tagchecklist span, .tagchecklist span a { - display: inline-block; - display: block; -} - -.tablenav .button-secondary, -.nav .button-secondary { - padding-top: 2px; - padding-bottom: 2px; -} - -.tablenav select { - font-size: 13px; - display: inline-block; - vertical-align: top; - margin-top: 2px; -} - -.tablenav .actions select { - width: 155px; -} - -.subsubsub li { - display: inline; -} - -a.post-state-format { - text-indent: 0; - line-height: 0; - font-size: 0; -} - -table.ie-fixed { - table-layout: fixed; -} - -.widefat tr, -.widefat th, -.widefat thead td, -.widefat tfoot td { - margin-bottom: 0; - border-spacing: 0; -} - -.widefat th input, -.widefat thead td input, -.widefat tfoot td input { - margin: 0 5px 0 0; -} - -.widefat thead .check-column, -.widefat tfoot .check-column { - padding-top: 6px; -} - -.widefat tbody th.check-column, -.media.widefat tbody th.check-column { - padding: 4px 0 0; -} - -.widefat { - empty-cells: show; - border-collapse: collapse; -} - -.tablenav a.button-secondary { - display: inline-block; - padding: 2px 5px; -} - -.inactive-sidebar .widgets-sortables { - padding-bottom: 8px; -} - -#available-widgets .widget-holder { - padding-bottom: 65px; -} - -#widgets-left .inactive { - padding-bottom: 10px; -} - -.widget-liquid-right .widget, -.inactive-sidebar .widget { - position: relative; -} - -.inactive-sidebar .widget { - display: block; - float: right; -} - -#wpcontent .button-primary-disabled { - color: #9FD0D5; - background: #298CBA; -} - -#the-comment-list .unapproved tr, -#the-comment-list .unapproved td { - background-color: #ffffe0; -} - -.imgedit-submit { - width: 300px; -} - -#nav-menus-frame, -#wpbody, -.menu li { - zoom: 100%; -} - -#update-nav-menu #post-body { - overflow:hidden; -} - -.menu li { - min-width: 100%; -} - -.menu li.sortable-placeholder { - min-width: 400px; -} - -.available-theme { - display: inline; -} - -.available-theme ul { - margin: 0; -} - -.available-theme .action-links li { - padding-left: 7px; - margin-left: 7px; -} - -.about-wrap .three-col.about-updates .col-2 { - width: 15%; -} - -.about-wrap .about-password-meter input { - width: 98%; -} - -.revisions-tickmarks, -.revisions-tooltip { - display: none !important; -} - -.revisions.pinned .revisions-controls { - position: relative; -} - -input[type="password"], -.login form .input { - font-family: sans-serif; -} - -/* TinyMCE icons */ -.mce-btn i.mce-i-bold, -.mce-btn i.mce-i-italic, -.mce-btn i.mce-i-bullist, -.mce-btn i.mce-i-numlist, -.mce-btn i.mce-i-blockquote, -.mce-btn i.mce-i-alignleft, -.mce-btn i.mce-i-aligncenter, -.mce-btn i.mce-i-alignright, -.mce-btn i.mce-i-link, -.mce-btn i.mce-i-unlink, -.mce-btn i.mce-i-wp_more, -.mce-btn i.mce-i-strikethrough, -.mce-btn i.mce-i-spellchecker, -.mce-btn i.mce-i-fullscreen, -.mce-btn i.mce-i-wp_fullscreen, -.mce-btn i.mce-i-wp_adv, -.mce-btn i.mce-i-underline, -.mce-btn i.mce-i-alignjustify, -.mce-btn i.mce-i-forecolor, -.mce-btn i.mce-i-pastetext, -.mce-btn i.mce-i-pasteword, -.mce-btn i.mce-i-removeformat, -.mce-btn i.mce-i-charmap, -.mce-btn i.mce-i-outdent, -.mce-btn i.mce-i-indent, -.mce-btn i.mce-i-undo, -.mce-btn i.mce-i-redo, -.mce-btn i.mce-i-help, -.mce-btn i.mce-i-wp_help, -.mce-btn i.mce-i-wp-media-library, -.mce-btn i.mce-i-ltr, -.mce-btn i.mce-i-wp_page, -.mce-btn i.mce-i-hr, -.mce-close { - font-family: 'tinymce', Arial; - font-style: normal; - font-weight: normal; - font-variant: normal; - font-size: 16px; - margin-right: 0; - padding-left: 0; -} - -.mce-btn i.mce-i-wp_fullscreen, -.qt-fullscreen { - -ie7-icon: '\e023'; -} - -.mce-btn i.mce-i-wp_more, -.mce-btn i.mce-i-wp_page { - -ie7-icon: '\e027'; -} - -.mce-btn i.mce-i-wp_adv { - background-color: #a0a5aa; -} - -.mce-btn i.mce-i-help, -.mce-btn i.mce-i-wp_help { - -ie7-icon: '\e016'; -} - - -/* IE6 leftovers */ -* html .row-actions { - visibility: visible; -} - -* html div.widget-liquid-left, -* html div.widget-liquid-right { - display: block; - position: relative; -} - -* html #editorcontainer { - padding: 0; -} - -* html #poststuff h2 { - margin-right: 0; -} - -* html .stuffbox, -* html .stuffbox input, -* html .stuffbox textarea { - border: 1px solid #DFDFDF; -} - -* html .feature-filter .feature-group li { - width: 145px; -} - -* html div.widget-liquid-left { - width: 99%; -} - -* html .widgets-sortables { - height: 50px; -} - -* html a#content_resize { - left: -2px; -} - -* html .widget-title h4 { - width: 205px; -} - -* html #removing-widget .in-widget-title { - display: none; -} - -* html .media-item .pinkynail { - height: 32px; - width: 40px; -} - -* html .describe .field input.text, -* html .describe .field textarea { - width: 440px; -} - -* html input { - border: 1px solid #dfdfdf; -} - -* html .edit-box { - display: inline; -} - -* html .postbox-container .meta-box-sortables { - height: 300px; -} - -* html #wpbody-content #screen-options-link-wrap { - display: inline-block; - width: 150px; - text-align: center; -} - -* html #wpbody-content #contextual-help-link-wrap { - display: inline-block; - width: 100px; - text-align: center; -} - -* html #adminmenu { - margin-right: -80px; -} - -* html .folded #adminmenu { - margin-right: -22px; -} - -* html #wpcontent #adminmenu li.menu-top { - display: inline; - padding: 0; - margin: 0; -} - -* html #wpfooter { - margin: 0; -} - -* html #adminmenu div.wp-menu-image { - height: 29px; -} diff --git a/wp-admin/css/ie-rtl.min.css b/wp-admin/css/ie-rtl.min.css deleted file mode 100644 index 66af3bd5bd..0000000000 --- a/wp-admin/css/ie-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -.feature-filter .feature-group li input,.tablenav-pages .current-page{vertical-align:middle}#dashboard-widgets form .input-text-wrap input,#dashboard-widgets form .textarea-wrap textarea{width:99%}#dashboard-widgets form #title{width:98%}#wpbody-content #dashboard-widgets .postbox-container{width:49.5%}#wpbody-content #dashboard-widgets #postbox-container-2,#wpbody-content #dashboard-widgets #postbox-container-3,#wpbody-content #dashboard-widgets #postbox-container-4{float:left;width:50.5%}#dashboard-widgets #postbox-container-3 .empty-container,#dashboard-widgets #postbox-container-4 .empty-container{border:0;height:0;min-height:0}.wp-editor-wrap .wp-editor-container,.wp-editor-wrap .wp-editor-tabs,.wp-editor-wrap .wp-editor-tools,.wp-editor-wrap .wp-switch-editor{zoom:100%}.wp-editor-wrap .wp-editor-container textarea.wp-editor-area{width:97%}#post-body.columns-2 #postbox-container-1{padding-right:19px}.welcome-panel .wp-badge{position:absolute}.welcome-panel .welcome-panel-column:first-child{width:35%}#adminmenuback{right:0;background-image:none}#adminmenu .wp-submenu,.folded #adminmenu .opensub .wp-submenu,.folded #adminmenu .wp-submenu.sub-open{right:110px}#adminmenuwrap{position:static}#adminmenu{position:relative}#adminmenu,#adminmenu a{cursor:pointer}#adminmenu li.wp-menu-separator,#adminmenu li.wp-menu-separator-last{font-size:1px;line-height:1}#adminmenu a.menu-top{border-bottom:0 none;border-top:1px solid #ddd}#adminmenu .separator{font-size:1px;line-height:1px}#adminmenu .wp-submenu ul{margin:0}.folded #wpcontent,.folded #wpfooter{margin-right:170px}.folded #adminmenu,.folded #adminmenu li.menu-top,.folded #adminmenuback,.folded #adminmenuwrap{width:150px}.folded #adminmenu .wp-submenu{border-top-color:transparent}.folded #adminmenu .wp-menu-name{display:block}.folded #adminmenu .wp-has-current-submenu .wp-submenu,.folded #adminmenu a.wp-has-current-submenu:focus+.wp-submenu{top:-1px;position:relative}.folded #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head{background-color:transparent}#adminmenu .wp-submenu .wp-submenu-head{border-top-color:#ddd}.folded #adminmenu .wp-submenu ul{margin-right:5px}#adminmenu li.menu-top{margin-bottom:-2px}#adminmenu .wp-menu-arrow{display:none!important}.js.folded #adminmenu li.menu-top{display:block;zoom:100%}ul#adminmenu{z-index:99}#adminmenu li.menu-top a.menu-top{min-width:auto;width:auto}#wpcontent #adminmenu li.wp-has-current-submenu a.wp-has-submenu{font-style:normal}#wpcontent #adminmenu .wp-submenu li{padding:0}#adminmenu li.wp-has-current-submenu .wp-submenu{right:-40px}#adminmenu .wp-menu-image{display:none!important}#adminmenu a.menu-top .wp-menu-name{padding-right:8px}#collapse-menu{line-height:23px}#wpadminbar .ab-comments-icon{padding-top:7px}.theme-browser .theme{width:30%;margin:0 0 4% 3%;cursor:auto}.theme-browser .theme:focus,.theme-browser .theme:hover{cursor:auto}.theme-browser .theme .theme-screenshot{height:180px}.theme-browser .theme .theme-actions{position:static;background-color:#e8e8e8}.theme-browser .theme .more-details{display:none}.plugins td,.plugins th,table.fixed td,table.fixed th{border-top:1px solid #ddd}#wpbody-content input.button,#wpbody-content input.button-primary,#wpbody-content input.button-secondary{overflow:visible}#dashboard-widgets h3 a{height:14px;line-height:14px}#dashboard_browser_nag{color:#fff}#dashboard_browser_nag .browser-icon{position:relative}#wpbody-content .postbox{border:1px solid #dfdfdf}#wpbody-content .postbox .hndle{margin-bottom:-1px}#addcat,#editcat,#template,#template div,.major-publishing-actions,.wp-submenu,.wp-submenu li{zoom:100%}.wp-menu-arrow{height:28px}.submitbox{margin-top:10px}#wpbody-content .quick-edit-row-post .inline-edit-col-left{width:39%}#wpbody-content .inline-edit-row-post .inline-edit-col-center{width:19%}#wpbody-content .quick-edit-row-page .inline-edit-col-left{width:49%}#wpbody-content .bulk-edit-row .inline-edit-col-left{width:29%}.inline-edit-row p.submit{zoom:100%}.inline-edit-row fieldset label span.title{display:block;float:right;width:5em}.inline-edit-row fieldset label span.input-text-wrap{margin-right:0;zoom:100%}#wpbody-content .inline-edit-row fieldset label span.input-text-wrap input{line-height:130%}#wpbody-content .inline-edit-row .input-text-wrap input{width:95%}#wpbody-content .inline-edit-row .input-text-wrap input.inline-edit-password-input{width:8em}#titlediv #title{width:98%}.button,input[type=reset],input[type=button],input[type=submit]{padding:0 8px;line-height:20px;height:auto}.button.button-large,input[type=reset].button-large,input[type=button].button-large,input[type=submit].button-large{padding:0 10px;line-height:24px;height:auto}.button.button-small,input[type=reset].button-small,input[type=button].button-small,input[type=submit].button-small{padding:0 6px;line-height:16px;height:auto}a.button{margin:1px;padding:1px 9px 2px}a.button.button-large{padding:1px 11px 2px}a.button.button-small{padding:1px 7px 2px}#screen-options-wrap{overflow:hidden}#col-container,#col-left,#col-right,#dragHelper,#editorcontainer,#post-body,#post-status-info,#postdiv,#postdivrich,#poststuff,#the-comment-list .comment-item,#titlediv,#widgets-left,#wpwrap,#wrap,.fileedit-sub,.metabox-holder,.tablenav,.tagchecklist,.widget .widget-top,.widget-control-actions,.widget-liquid-left,.widget-liquid-right,.widgets-sortables{display:block;zoom:100%}p.search-box{position:static;float:left;margin:-3px 0 4px}#submitdiv a.button,#submitdiv input,#submitdiv select,.inactive-sidebar .widget,.revisions.pinned .revisions-controls,.widget-liquid-right .widget{position:relative}#widget-list .widget,.feature-filter .feature-group li{display:inline}#editorcontainer #content{overflow:auto;margin:auto;width:98%}form#template div{width:100%}.wp-editor-container .quicktags-toolbar input{overflow:visible;padding:0 4px}#poststuff h2{font-size:1.6em}#poststuff .inside #page_template,#poststuff .inside #parent_id,.inline-edit-row #post_parent,.inline-edit-row select[name=page_template]{width:250px}#bh{margin:7px 0 0 10px;float:left}div#dashboard-widgets{padding-left:1px}.tagchecklist span,.tagchecklist span a{display:inline-block;display:block}.nav .button-secondary,.tablenav .button-secondary{padding-top:2px;padding-bottom:2px}.tablenav select{font-size:13px;display:inline-block;vertical-align:top;margin-top:2px}.tablenav .actions select{width:155px}.subsubsub li{display:inline}a.post-state-format{text-indent:0;line-height:0;font-size:0}table.ie-fixed{table-layout:fixed}.widefat tfoot td,.widefat th,.widefat thead td,.widefat tr{margin-bottom:0;border-spacing:0}.widefat tfoot td input,.widefat th input,.widefat thead td input{margin:0 5px 0 0}.widefat tfoot .check-column,.widefat thead .check-column{padding-top:6px}.media.widefat tbody th.check-column,.widefat tbody th.check-column{padding:4px 0 0}.widefat{empty-cells:show;border-collapse:collapse}.tablenav a.button-secondary{display:inline-block;padding:2px 5px}.inactive-sidebar .widgets-sortables{padding-bottom:8px}#available-widgets .widget-holder{padding-bottom:65px}#widgets-left .inactive{padding-bottom:10px}.inactive-sidebar .widget{display:block;float:right}#wpcontent .button-primary-disabled{color:#9FD0D5;background:#298CBA}#the-comment-list .unapproved td,#the-comment-list .unapproved tr{background-color:#ffffe0}.imgedit-submit{width:300px}#nav-menus-frame,#wpbody,.menu li{zoom:100%}#update-nav-menu #post-body{overflow:hidden}.menu li{min-width:100%}.menu li.sortable-placeholder{min-width:400px}.available-theme{display:inline}.available-theme ul{margin:0}.available-theme .action-links li{padding-left:7px;margin-left:7px}.about-wrap .three-col.about-updates .col-2{width:15%}.about-wrap .about-password-meter input{width:98%}.revisions-tickmarks,.revisions-tooltip{display:none!important}.login form .input,input[type=password]{font-family:sans-serif}.mce-btn i.mce-i-aligncenter,.mce-btn i.mce-i-alignjustify,.mce-btn i.mce-i-alignleft,.mce-btn i.mce-i-alignright,.mce-btn i.mce-i-blockquote,.mce-btn i.mce-i-bold,.mce-btn i.mce-i-bullist,.mce-btn i.mce-i-charmap,.mce-btn i.mce-i-forecolor,.mce-btn i.mce-i-fullscreen,.mce-btn i.mce-i-help,.mce-btn i.mce-i-hr,.mce-btn i.mce-i-indent,.mce-btn i.mce-i-italic,.mce-btn i.mce-i-link,.mce-btn i.mce-i-ltr,.mce-btn i.mce-i-numlist,.mce-btn i.mce-i-outdent,.mce-btn i.mce-i-pastetext,.mce-btn i.mce-i-pasteword,.mce-btn i.mce-i-redo,.mce-btn i.mce-i-removeformat,.mce-btn i.mce-i-spellchecker,.mce-btn i.mce-i-strikethrough,.mce-btn i.mce-i-underline,.mce-btn i.mce-i-undo,.mce-btn i.mce-i-unlink,.mce-btn i.mce-i-wp-media-library,.mce-btn i.mce-i-wp_adv,.mce-btn i.mce-i-wp_fullscreen,.mce-btn i.mce-i-wp_help,.mce-btn i.mce-i-wp_more,.mce-btn i.mce-i-wp_page,.mce-close{font-family:tinymce,Arial;font-style:normal;font-weight:400;font-variant:normal;font-size:16px;margin-right:0;padding-left:0}.mce-btn i.mce-i-wp_fullscreen,.qt-fullscreen{-ie7-icon:'\e023'}.mce-btn i.mce-i-wp_more,.mce-btn i.mce-i-wp_page{-ie7-icon:'\e027'}.mce-btn i.mce-i-wp_adv{background-color:#a0a5aa}.mce-btn i.mce-i-help,.mce-btn i.mce-i-wp_help{-ie7-icon:'\e016'}* html .row-actions{visibility:visible}* html div.widget-liquid-left,* html div.widget-liquid-right{display:block;position:relative}* html #editorcontainer{padding:0}* html #poststuff h2{margin-right:0}* html .stuffbox,* html .stuffbox input,* html .stuffbox textarea{border:1px solid #DFDFDF}* html .feature-filter .feature-group li{width:145px}* html div.widget-liquid-left{width:99%}* html .widgets-sortables{height:50px}* html a#content_resize{left:-2px}* html .widget-title h4{width:205px}* html #removing-widget .in-widget-title{display:none}* html .media-item .pinkynail{height:32px;width:40px}* html .describe .field input.text,* html .describe .field textarea{width:440px}* html input{border:1px solid #dfdfdf}* html .edit-box{display:inline}* html .postbox-container .meta-box-sortables{height:300px}* html #wpbody-content #screen-options-link-wrap{display:inline-block;width:150px;text-align:center}* html #wpbody-content #contextual-help-link-wrap{display:inline-block;width:100px;text-align:center}* html #adminmenu{margin-right:-80px}* html .folded #adminmenu{margin-right:-22px}* html #wpcontent #adminmenu li.menu-top{display:inline;padding:0;margin:0}* html #wpfooter{margin:0}* html #adminmenu div.wp-menu-image{height:29px} \ No newline at end of file diff --git a/wp-admin/css/ie.css b/wp-admin/css/ie.css deleted file mode 100644 index 1fa160f8e4..0000000000 --- a/wp-admin/css/ie.css +++ /dev/null @@ -1,776 +0,0 @@ -/* Fixes for IE 7 bugs */ - -#dashboard-widgets form .input-text-wrap input, -#dashboard-widgets form .textarea-wrap textarea { - width: 99%; -} - -#dashboard-widgets form #title { - width: 98%; -} - -#wpbody-content #dashboard-widgets .postbox-container { - width: 49.5%; -} - -#wpbody-content #dashboard-widgets #postbox-container-2, -#wpbody-content #dashboard-widgets #postbox-container-3, -#wpbody-content #dashboard-widgets #postbox-container-4 { - float: right; - width: 50.5%; -} - -#dashboard-widgets #postbox-container-3 .empty-container, -#dashboard-widgets #postbox-container-4 .empty-container { - border: 0 none; - height: 0; - min-height: 0; -} - -.wp-editor-wrap .wp-editor-tools, -.wp-editor-wrap .wp-switch-editor, -.wp-editor-wrap .wp-editor-tabs, -.wp-editor-wrap .wp-editor-container { - zoom: 100%; -} - -.wp-editor-wrap .wp-editor-container textarea.wp-editor-area { - width: 97%; -} - -#post-body.columns-2 #postbox-container-1 { - padding-left: 19px; -} - -.welcome-panel .wp-badge { - position: absolute; -} - -.welcome-panel .welcome-panel-column:first-child { - width: 35%; -} - -#adminmenuback { - left: 0; - background-image: none; -} - -#adminmenuwrap { - position: static; -} - -#adminmenu { - position: relative; -} - -#adminmenu, -#adminmenu a { - cursor: pointer; -} - -#adminmenu li.wp-menu-separator, -#adminmenu li.wp-menu-separator-last { - font-size: 1px; - line-height: 1; -} - -#adminmenu a.menu-top { - border-bottom: 0 none; - border-top: 1px solid #ddd; -} - -#adminmenu .separator { - font-size: 1px; - line-height: 1px; -} - -#adminmenu .wp-submenu { - left: 110px; -} - -#adminmenu .wp-submenu ul { - margin: 0; -} - -.folded #wpcontent, -.folded #wpfooter { - margin-left: 170px; -} - -.folded #adminmenuback, -.folded #adminmenuwrap, -.folded #adminmenu, -.folded #adminmenu li.menu-top { - width: 150px; -} - -.folded #adminmenu .wp-submenu { - border-top-color: transparent; -} - -.folded #adminmenu .wp-menu-name { - display: block; -} - -.folded #adminmenu .wp-submenu.sub-open, -.folded #adminmenu .opensub .wp-submenu { - left: 110px; -} - -.folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, -.folded #adminmenu .wp-has-current-submenu .wp-submenu { - top: -1px; - position: relative; -} - -.folded #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head { - background-color: transparent; -} - -#adminmenu .wp-submenu .wp-submenu-head { - border-top-color: #ddd; -} - -.folded #adminmenu .wp-submenu ul { - margin-left: 5px; -} - -#adminmenu li.menu-top { - margin-bottom: -2px; -} - -#adminmenu .wp-menu-arrow { - display: none !important; -} - -.js.folded #adminmenu li.menu-top { - display: block; - zoom: 100%; -} - -ul#adminmenu { - z-index: 99; -} - -#adminmenu li.menu-top a.menu-top { - min-width: auto; - width: auto; -} - -#wpcontent #adminmenu li.wp-has-current-submenu a.wp-has-submenu { - font-style: normal; -} - -#wpcontent #adminmenu .wp-submenu li { - padding: 0; -} - -#adminmenu li.wp-has-current-submenu .wp-submenu { - left: -40px; -} - -#adminmenu .wp-menu-image { - display: none !important; -} - -#adminmenu a.menu-top .wp-menu-name { - padding-left: 8px; -} - -#collapse-menu { - line-height: 23px; -} - -#wpadminbar .ab-comments-icon { - padding-top: 7px; -} - - -.theme-browser .theme { - width: 30%; - margin: 0 3% 4% 0; - cursor: auto; -} - -.theme-browser .theme:hover, -.theme-browser .theme:focus { - cursor: auto; -} - -.theme-browser .theme .theme-screenshot { - height: 180px; -} - -.theme-browser .theme .theme-actions { - position: static; - background-color: #e8e8e8; -} - -.theme-browser .theme .more-details { - display: none; -} - -.plugins td, -.plugins th { - border-top: 1px solid #ddd; -} - -table.fixed th, -table.fixed td { - border-top: 1px solid #ddd; -} - -#wpbody-content input.button, -#wpbody-content input.button-primary, -#wpbody-content input.button-secondary { - overflow: visible; -} - -#dashboard-widgets h3 a { - height: 14px; - line-height: 14px; -} - -#dashboard_browser_nag { - color: #fff; -} - -#dashboard_browser_nag .browser-icon { - position: relative; -} - -.tablenav-pages .current-page { - vertical-align: middle; -} - -#wpbody-content .postbox { - border: 1px solid #dfdfdf; -} - -#wpbody-content .postbox .hndle { - margin-bottom: -1px; -} - -.major-publishing-actions, -.wp-submenu, -.wp-submenu li, -#template, -#template div, -#editcat, -#addcat { - zoom: 100%; -} - -.wp-menu-arrow { - height: 28px; -} - -.submitbox { - margin-top: 10px; -} - -/* Inline Editor */ -#wpbody-content .quick-edit-row-post .inline-edit-col-left { - width: 39%; -} - -#wpbody-content .inline-edit-row-post .inline-edit-col-center { - width: 19%; -} - -#wpbody-content .quick-edit-row-page .inline-edit-col-left { - width: 49%; -} - -#wpbody-content .bulk-edit-row .inline-edit-col-left { - width: 29%; -} - -.inline-edit-row p.submit { - zoom: 100%; -} - -.inline-edit-row fieldset label span.title { - display: block; - float: left; - width: 5em; -} - -.inline-edit-row fieldset label span.input-text-wrap { - margin-left: 0; - zoom: 100%; -} - -#wpbody-content .inline-edit-row fieldset label span.input-text-wrap input { - line-height: 130%; -} - -#wpbody-content .inline-edit-row .input-text-wrap input { - width: 95%; -} - -#wpbody-content .inline-edit-row .input-text-wrap input.inline-edit-password-input { - width: 8em; -} -/* end Inline Editor */ - -#titlediv #title { - width: 98%; -} - -.button, -input[type="reset"], -input[type="button"], -input[type="submit"] { - padding: 0 8px; - line-height: 20px; - height: auto; -} - -.button.button-large, -input[type="reset"].button-large, -input[type="button"].button-large, -input[type="submit"].button-large { - padding: 0 10px; - line-height: 24px; - height: auto; -} - -.button.button-small, -input[type="reset"].button-small, -input[type="button"].button-small, -input[type="submit"].button-small { - padding: 0 6px; - line-height: 16px; - height: auto; -} - -a.button { - margin: 1px; - padding: 1px 9px 2px; -} - -a.button.button-large { - padding: 1px 11px 2px; -} - -a.button.button-small { - padding: 1px 7px 2px; -} - -#screen-options-wrap { - overflow: hidden; -} - -#the-comment-list .comment-item, -#post-status-info, -#wpwrap, -#wrap, -#postdivrich, -#postdiv, -#poststuff, -.metabox-holder, -#titlediv, -#post-body, -#editorcontainer, -.tablenav, -.widget-liquid-left, -.widget-liquid-right, -#widgets-left, -.widgets-sortables, -#dragHelper, -.widget .widget-top, -.widget-control-actions, -.tagchecklist, -#col-container, -#col-left, -#col-right, -.fileedit-sub { - display: block; - zoom: 100%; -} - -p.search-box { - position: static; - float: right; - margin: -3px 0 4px; -} - -#widget-list .widget, -.feature-filter .feature-group li { - display: inline; -} - -.feature-filter .feature-group li input { - vertical-align: middle; -} - -#editorcontainer #content { - overflow: auto; - margin: auto; - width: 98%; -} - -form#template div { - width: 100%; -} - -.wp-editor-container .quicktags-toolbar input { - overflow: visible; - padding: 0 4px; -} - -#poststuff h2 { - font-size: 1.6em; -} - -#poststuff .inside #parent_id, -#poststuff .inside #page_template, -.inline-edit-row #post_parent, -.inline-edit-row select[name="page_template"] { - width: 250px; -} - -#submitdiv input, -#submitdiv select, -#submitdiv a.button { - position: relative; -} - -#bh { - margin: 7px 10px 0 0; - float: right; -} - -/* without this dashboard widgets appear in one column for some screen widths */ -div#dashboard-widgets { - padding-right: 1px; -} - -.tagchecklist span, .tagchecklist span a { - display: inline-block; - display: block; -} - -.tablenav .button-secondary, -.nav .button-secondary { - padding-top: 2px; - padding-bottom: 2px; -} - -.tablenav select { - font-size: 13px; - display: inline-block; - vertical-align: top; - margin-top: 2px; -} - -.tablenav .actions select { - width: 155px; -} - -.subsubsub li { - display: inline; -} - -a.post-state-format { - text-indent: 0; - line-height: 0; - font-size: 0; -} - -table.ie-fixed { - table-layout: fixed; -} - -.widefat tr, -.widefat th, -.widefat thead td, -.widefat tfoot td { - margin-bottom: 0; - border-spacing: 0; -} - -.widefat th input, -.widefat thead td input, -.widefat tfoot td input { - margin: 0 0 0 5px; -} - -.widefat thead .check-column, -.widefat tfoot .check-column { - padding-top: 6px; -} - -.widefat tbody th.check-column, -.media.widefat tbody th.check-column { - padding: 4px 0 0; -} - -.widefat { - empty-cells: show; - border-collapse: collapse; -} - -.tablenav a.button-secondary { - display: inline-block; - padding: 2px 5px; -} - -.inactive-sidebar .widgets-sortables { - padding-bottom: 8px; -} - -#available-widgets .widget-holder { - padding-bottom: 65px; -} - -#widgets-left .inactive { - padding-bottom: 10px; -} - -.widget-liquid-right .widget, -.inactive-sidebar .widget { - position: relative; -} - -.inactive-sidebar .widget { - display: block; - float: left; -} - -#wpcontent .button-primary-disabled { - color: #9FD0D5; - background: #298CBA; -} - -#the-comment-list .unapproved tr, -#the-comment-list .unapproved td { - background-color: #ffffe0; -} - -.imgedit-submit { - width: 300px; -} - -#nav-menus-frame, -#wpbody, -.menu li { - zoom: 100%; -} - -#update-nav-menu #post-body { - overflow:hidden; -} - -.menu li { - min-width: 100%; -} - -.menu li.sortable-placeholder { - min-width: 400px; -} - -.available-theme { - display: inline; -} - -.available-theme ul { - margin: 0; -} - -.available-theme .action-links li { - padding-right: 7px; - margin-right: 7px; -} - -.about-wrap .three-col.about-updates .col-2 { - width: 15%; -} - -.about-wrap .about-password-meter input { - width: 98%; -} - -.revisions-tickmarks, -.revisions-tooltip { - display: none !important; -} - -.revisions.pinned .revisions-controls { - position: relative; -} - -input[type="password"], -.login form .input { - font-family: sans-serif; -} - -/* TinyMCE icons */ -.mce-btn i.mce-i-bold, -.mce-btn i.mce-i-italic, -.mce-btn i.mce-i-bullist, -.mce-btn i.mce-i-numlist, -.mce-btn i.mce-i-blockquote, -.mce-btn i.mce-i-alignleft, -.mce-btn i.mce-i-aligncenter, -.mce-btn i.mce-i-alignright, -.mce-btn i.mce-i-link, -.mce-btn i.mce-i-unlink, -.mce-btn i.mce-i-wp_more, -.mce-btn i.mce-i-strikethrough, -.mce-btn i.mce-i-spellchecker, -.mce-btn i.mce-i-fullscreen, -.mce-btn i.mce-i-wp_fullscreen, -.mce-btn i.mce-i-wp_adv, -.mce-btn i.mce-i-underline, -.mce-btn i.mce-i-alignjustify, -.mce-btn i.mce-i-forecolor, -.mce-btn i.mce-i-pastetext, -.mce-btn i.mce-i-pasteword, -.mce-btn i.mce-i-removeformat, -.mce-btn i.mce-i-charmap, -.mce-btn i.mce-i-outdent, -.mce-btn i.mce-i-indent, -.mce-btn i.mce-i-undo, -.mce-btn i.mce-i-redo, -.mce-btn i.mce-i-help, -.mce-btn i.mce-i-wp_help, -.mce-btn i.mce-i-wp-media-library, -.mce-btn i.mce-i-ltr, -.mce-btn i.mce-i-wp_page, -.mce-btn i.mce-i-hr, -.mce-close { - font-family: 'tinymce', Arial; - font-style: normal; - font-weight: normal; - font-variant: normal; - font-size: 16px; - margin-left: 0; - padding-right: 0; -} - -.mce-btn i.mce-i-wp_fullscreen, -.qt-fullscreen { - -ie7-icon: '\e023'; -} - -.mce-btn i.mce-i-wp_more, -.mce-btn i.mce-i-wp_page { - -ie7-icon: '\e027'; -} - -.mce-btn i.mce-i-wp_adv { - background-color: #a0a5aa; -} - -.mce-btn i.mce-i-help, -.mce-btn i.mce-i-wp_help { - -ie7-icon: '\e016'; -} - - -/* IE6 leftovers */ -* html .row-actions { - visibility: visible; -} - -* html div.widget-liquid-left, -* html div.widget-liquid-right { - display: block; - position: relative; -} - -* html #editorcontainer { - padding: 0; -} - -* html #poststuff h2 { - margin-left: 0; -} - -* html .stuffbox, -* html .stuffbox input, -* html .stuffbox textarea { - border: 1px solid #DFDFDF; -} - -* html .feature-filter .feature-group li { - width: 145px; -} - -* html div.widget-liquid-left { - width: 99%; -} - -* html .widgets-sortables { - height: 50px; -} - -* html a#content_resize { - right: -2px; -} - -* html .widget-title h4 { - width: 205px; -} - -* html #removing-widget .in-widget-title { - display: none; -} - -* html .media-item .pinkynail { - height: 32px; - width: 40px; -} - -* html .describe .field input.text, -* html .describe .field textarea { - width: 440px; -} - -* html input { - border: 1px solid #dfdfdf; -} - -* html .edit-box { - display: inline; -} - -* html .postbox-container .meta-box-sortables { - height: 300px; -} - -* html #wpbody-content #screen-options-link-wrap { - display: inline-block; - width: 150px; - text-align: center; -} - -* html #wpbody-content #contextual-help-link-wrap { - display: inline-block; - width: 100px; - text-align: center; -} - -* html #adminmenu { - margin-left: -80px; -} - -* html .folded #adminmenu { - margin-left: -22px; -} - -* html #wpcontent #adminmenu li.menu-top { - display: inline; - padding: 0; - margin: 0; -} - -* html #wpfooter { - margin: 0; -} - -* html #adminmenu div.wp-menu-image { - height: 29px; -} diff --git a/wp-admin/css/ie.min.css b/wp-admin/css/ie.min.css deleted file mode 100644 index 3b5059b57c..0000000000 --- a/wp-admin/css/ie.min.css +++ /dev/null @@ -1 +0,0 @@ -.feature-filter .feature-group li input,.tablenav-pages .current-page{vertical-align:middle}#dashboard-widgets form .input-text-wrap input,#dashboard-widgets form .textarea-wrap textarea{width:99%}#dashboard-widgets form #title{width:98%}#wpbody-content #dashboard-widgets .postbox-container{width:49.5%}#wpbody-content #dashboard-widgets #postbox-container-2,#wpbody-content #dashboard-widgets #postbox-container-3,#wpbody-content #dashboard-widgets #postbox-container-4{float:right;width:50.5%}#dashboard-widgets #postbox-container-3 .empty-container,#dashboard-widgets #postbox-container-4 .empty-container{border:0;height:0;min-height:0}.wp-editor-wrap .wp-editor-container,.wp-editor-wrap .wp-editor-tabs,.wp-editor-wrap .wp-editor-tools,.wp-editor-wrap .wp-switch-editor{zoom:100%}.wp-editor-wrap .wp-editor-container textarea.wp-editor-area{width:97%}#post-body.columns-2 #postbox-container-1{padding-left:19px}.welcome-panel .wp-badge{position:absolute}.welcome-panel .welcome-panel-column:first-child{width:35%}#adminmenuback{left:0;background-image:none}#adminmenu .wp-submenu,.folded #adminmenu .opensub .wp-submenu,.folded #adminmenu .wp-submenu.sub-open{left:110px}#adminmenuwrap{position:static}#adminmenu{position:relative}#adminmenu,#adminmenu a{cursor:pointer}#adminmenu li.wp-menu-separator,#adminmenu li.wp-menu-separator-last{font-size:1px;line-height:1}#adminmenu a.menu-top{border-bottom:0 none;border-top:1px solid #ddd}#adminmenu .separator{font-size:1px;line-height:1px}#adminmenu .wp-submenu ul{margin:0}.folded #wpcontent,.folded #wpfooter{margin-left:170px}.folded #adminmenu,.folded #adminmenu li.menu-top,.folded #adminmenuback,.folded #adminmenuwrap{width:150px}.folded #adminmenu .wp-submenu{border-top-color:transparent}.folded #adminmenu .wp-menu-name{display:block}.folded #adminmenu .wp-has-current-submenu .wp-submenu,.folded #adminmenu a.wp-has-current-submenu:focus+.wp-submenu{top:-1px;position:relative}.folded #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head{background-color:transparent}#adminmenu .wp-submenu .wp-submenu-head{border-top-color:#ddd}.folded #adminmenu .wp-submenu ul{margin-left:5px}#adminmenu li.menu-top{margin-bottom:-2px}#adminmenu .wp-menu-arrow{display:none!important}.js.folded #adminmenu li.menu-top{display:block;zoom:100%}ul#adminmenu{z-index:99}#adminmenu li.menu-top a.menu-top{min-width:auto;width:auto}#wpcontent #adminmenu li.wp-has-current-submenu a.wp-has-submenu{font-style:normal}#wpcontent #adminmenu .wp-submenu li{padding:0}#adminmenu li.wp-has-current-submenu .wp-submenu{left:-40px}#adminmenu .wp-menu-image{display:none!important}#adminmenu a.menu-top .wp-menu-name{padding-left:8px}#collapse-menu{line-height:23px}#wpadminbar .ab-comments-icon{padding-top:7px}.theme-browser .theme{width:30%;margin:0 3% 4% 0;cursor:auto}.theme-browser .theme:focus,.theme-browser .theme:hover{cursor:auto}.theme-browser .theme .theme-screenshot{height:180px}.theme-browser .theme .theme-actions{position:static;background-color:#e8e8e8}.theme-browser .theme .more-details{display:none}.plugins td,.plugins th,table.fixed td,table.fixed th{border-top:1px solid #ddd}#wpbody-content input.button,#wpbody-content input.button-primary,#wpbody-content input.button-secondary{overflow:visible}#dashboard-widgets h3 a{height:14px;line-height:14px}#dashboard_browser_nag{color:#fff}#dashboard_browser_nag .browser-icon{position:relative}#wpbody-content .postbox{border:1px solid #dfdfdf}#wpbody-content .postbox .hndle{margin-bottom:-1px}#addcat,#editcat,#template,#template div,.major-publishing-actions,.wp-submenu,.wp-submenu li{zoom:100%}.wp-menu-arrow{height:28px}.submitbox{margin-top:10px}#wpbody-content .quick-edit-row-post .inline-edit-col-left{width:39%}#wpbody-content .inline-edit-row-post .inline-edit-col-center{width:19%}#wpbody-content .quick-edit-row-page .inline-edit-col-left{width:49%}#wpbody-content .bulk-edit-row .inline-edit-col-left{width:29%}.inline-edit-row p.submit{zoom:100%}.inline-edit-row fieldset label span.title{display:block;float:left;width:5em}.inline-edit-row fieldset label span.input-text-wrap{margin-left:0;zoom:100%}#wpbody-content .inline-edit-row fieldset label span.input-text-wrap input{line-height:130%}#wpbody-content .inline-edit-row .input-text-wrap input{width:95%}#wpbody-content .inline-edit-row .input-text-wrap input.inline-edit-password-input{width:8em}#titlediv #title{width:98%}.button,input[type=reset],input[type=button],input[type=submit]{padding:0 8px;line-height:20px;height:auto}.button.button-large,input[type=reset].button-large,input[type=button].button-large,input[type=submit].button-large{padding:0 10px;line-height:24px;height:auto}.button.button-small,input[type=reset].button-small,input[type=button].button-small,input[type=submit].button-small{padding:0 6px;line-height:16px;height:auto}a.button{margin:1px;padding:1px 9px 2px}a.button.button-large{padding:1px 11px 2px}a.button.button-small{padding:1px 7px 2px}#screen-options-wrap{overflow:hidden}#col-container,#col-left,#col-right,#dragHelper,#editorcontainer,#post-body,#post-status-info,#postdiv,#postdivrich,#poststuff,#the-comment-list .comment-item,#titlediv,#widgets-left,#wpwrap,#wrap,.fileedit-sub,.metabox-holder,.tablenav,.tagchecklist,.widget .widget-top,.widget-control-actions,.widget-liquid-left,.widget-liquid-right,.widgets-sortables{display:block;zoom:100%}p.search-box{position:static;float:right;margin:-3px 0 4px}#submitdiv a.button,#submitdiv input,#submitdiv select,.inactive-sidebar .widget,.revisions.pinned .revisions-controls,.widget-liquid-right .widget{position:relative}#widget-list .widget,.feature-filter .feature-group li{display:inline}#editorcontainer #content{overflow:auto;margin:auto;width:98%}form#template div{width:100%}.wp-editor-container .quicktags-toolbar input{overflow:visible;padding:0 4px}#poststuff h2{font-size:1.6em}#poststuff .inside #page_template,#poststuff .inside #parent_id,.inline-edit-row #post_parent,.inline-edit-row select[name=page_template]{width:250px}#bh{margin:7px 10px 0 0;float:right}div#dashboard-widgets{padding-right:1px}.tagchecklist span,.tagchecklist span a{display:inline-block;display:block}.nav .button-secondary,.tablenav .button-secondary{padding-top:2px;padding-bottom:2px}.tablenav select{font-size:13px;display:inline-block;vertical-align:top;margin-top:2px}.tablenav .actions select{width:155px}.subsubsub li{display:inline}a.post-state-format{text-indent:0;line-height:0;font-size:0}table.ie-fixed{table-layout:fixed}.widefat tfoot td,.widefat th,.widefat thead td,.widefat tr{margin-bottom:0;border-spacing:0}.widefat tfoot td input,.widefat th input,.widefat thead td input{margin:0 0 0 5px}.widefat tfoot .check-column,.widefat thead .check-column{padding-top:6px}.media.widefat tbody th.check-column,.widefat tbody th.check-column{padding:4px 0 0}.widefat{empty-cells:show;border-collapse:collapse}.tablenav a.button-secondary{display:inline-block;padding:2px 5px}.inactive-sidebar .widgets-sortables{padding-bottom:8px}#available-widgets .widget-holder{padding-bottom:65px}#widgets-left .inactive{padding-bottom:10px}.inactive-sidebar .widget{display:block;float:left}#wpcontent .button-primary-disabled{color:#9FD0D5;background:#298CBA}#the-comment-list .unapproved td,#the-comment-list .unapproved tr{background-color:#ffffe0}.imgedit-submit{width:300px}#nav-menus-frame,#wpbody,.menu li{zoom:100%}#update-nav-menu #post-body{overflow:hidden}.menu li{min-width:100%}.menu li.sortable-placeholder{min-width:400px}.available-theme{display:inline}.available-theme ul{margin:0}.available-theme .action-links li{padding-right:7px;margin-right:7px}.about-wrap .three-col.about-updates .col-2{width:15%}.about-wrap .about-password-meter input{width:98%}.revisions-tickmarks,.revisions-tooltip{display:none!important}.login form .input,input[type=password]{font-family:sans-serif}.mce-btn i.mce-i-aligncenter,.mce-btn i.mce-i-alignjustify,.mce-btn i.mce-i-alignleft,.mce-btn i.mce-i-alignright,.mce-btn i.mce-i-blockquote,.mce-btn i.mce-i-bold,.mce-btn i.mce-i-bullist,.mce-btn i.mce-i-charmap,.mce-btn i.mce-i-forecolor,.mce-btn i.mce-i-fullscreen,.mce-btn i.mce-i-help,.mce-btn i.mce-i-hr,.mce-btn i.mce-i-indent,.mce-btn i.mce-i-italic,.mce-btn i.mce-i-link,.mce-btn i.mce-i-ltr,.mce-btn i.mce-i-numlist,.mce-btn i.mce-i-outdent,.mce-btn i.mce-i-pastetext,.mce-btn i.mce-i-pasteword,.mce-btn i.mce-i-redo,.mce-btn i.mce-i-removeformat,.mce-btn i.mce-i-spellchecker,.mce-btn i.mce-i-strikethrough,.mce-btn i.mce-i-underline,.mce-btn i.mce-i-undo,.mce-btn i.mce-i-unlink,.mce-btn i.mce-i-wp-media-library,.mce-btn i.mce-i-wp_adv,.mce-btn i.mce-i-wp_fullscreen,.mce-btn i.mce-i-wp_help,.mce-btn i.mce-i-wp_more,.mce-btn i.mce-i-wp_page,.mce-close{font-family:tinymce,Arial;font-style:normal;font-weight:400;font-variant:normal;font-size:16px;margin-left:0;padding-right:0}.mce-btn i.mce-i-wp_fullscreen,.qt-fullscreen{-ie7-icon:'\e023'}.mce-btn i.mce-i-wp_more,.mce-btn i.mce-i-wp_page{-ie7-icon:'\e027'}.mce-btn i.mce-i-wp_adv{background-color:#a0a5aa}.mce-btn i.mce-i-help,.mce-btn i.mce-i-wp_help{-ie7-icon:'\e016'}* html .row-actions{visibility:visible}* html div.widget-liquid-left,* html div.widget-liquid-right{display:block;position:relative}* html #editorcontainer{padding:0}* html #poststuff h2{margin-left:0}* html .stuffbox,* html .stuffbox input,* html .stuffbox textarea{border:1px solid #DFDFDF}* html .feature-filter .feature-group li{width:145px}* html div.widget-liquid-left{width:99%}* html .widgets-sortables{height:50px}* html a#content_resize{right:-2px}* html .widget-title h4{width:205px}* html #removing-widget .in-widget-title{display:none}* html .media-item .pinkynail{height:32px;width:40px}* html .describe .field input.text,* html .describe .field textarea{width:440px}* html input{border:1px solid #dfdfdf}* html .edit-box{display:inline}* html .postbox-container .meta-box-sortables{height:300px}* html #wpbody-content #screen-options-link-wrap{display:inline-block;width:150px;text-align:center}* html #wpbody-content #contextual-help-link-wrap{display:inline-block;width:100px;text-align:center}* html #adminmenu{margin-left:-80px}* html .folded #adminmenu{margin-left:-22px}* html #wpcontent #adminmenu li.menu-top{display:inline;padding:0;margin:0}* html #wpfooter{margin:0}* html #adminmenu div.wp-menu-image{height:29px} \ No newline at end of file diff --git a/wp-admin/css/install-rtl.css b/wp-admin/css/install-rtl.css deleted file mode 100644 index 8211e82a81..0000000000 --- a/wp-admin/css/install-rtl.css +++ /dev/null @@ -1,436 +0,0 @@ -html { - background: #f1f1f1; - margin: 0 20px; -} - -body { - background: #fff; - color: #444; - font-family: "Open Sans", sans-serif; - margin: 140px auto 25px; - padding: 20px 20px 10px 20px; - max-width: 700px; - -webkit-font-smoothing: subpixel-antialiased; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13); - box-shadow: 0 1px 3px rgba(0,0,0,0.13); -} - -a { - color: #0073aa; - text-decoration: none; -} - -a:hover { - color: #00a0d2; -} - -h1 { - border-bottom: 1px solid #dedede; - clear: both; - color: #666; - font-size: 24px; - margin: 30px 0; - padding: 0; - padding-bottom: 7px; - font-weight: normal; -} - -h2 { - font-size: 16px; -} - -p, li, dd, dt { - padding-bottom: 2px; - font-size: 14px; - line-height: 1.5; -} - -code, .code { - font-family: Consolas, Monaco, monospace; -} - -ul, ol, dl { - padding: 5px 22px 5px 5px; -} - -a img { - border:0 -} -abbr { - border: 0; - font-variant: normal; -} - -label { - cursor: pointer; -} - -#logo { - margin: 6px 0 14px 0; - border-bottom: none; - text-align:center -} -#logo a { - background-image: url(../images/w-logo-blue.png?ver=20131202); - background-image: none, url(../images/wordpress-logo.svg?ver=20131107); - -webkit-background-size: 84px; - background-size: 84px; - background-position: center top; - background-repeat: no-repeat; - color: #999; - height: 84px; - font-size: 20px; - font-weight: normal; - line-height: 1.3em; - margin: -130px auto 25px; - padding: 0; - text-decoration: none; - width: 84px; - text-indent: -9999px; - outline: none; - overflow: hidden; - display: block; -} -.step { - margin: 20px 0 15px; -} -.step, th { - text-align: right; - padding: 0; -} -.language-chooser.wp-core-ui .step .button.button-large { - height: 36px; - vertical-align: middle; - font-size: 14px; -} -textarea { - border: 1px solid #dfdfdf; - font-family: "Open Sans", sans-serif; - width: 100%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.form-table { - border-collapse: collapse; - margin-top: 1em; - width: 100%; -} - -.form-table td { - margin-bottom: 9px; - padding: 10px 0 10px 20px; - font-size: 14px; - vertical-align: top -} - -.form-table th { - font-size: 14px; - text-align: right; - padding: 10px 0 10px 20px; - width: 140px; - vertical-align: top; -} - -.form-table code { - line-height: 18px; - font-size: 14px; -} - -.form-table p { - margin: 4px 0 0 0; - font-size: 11px; -} - -.form-table input { - line-height: 20px; - font-size: 15px; - padding: 3px 5px; - border: 1px solid #ddd; - -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.07); - box-shadow: inset 0 1px 2px rgba(0,0,0,0.07); -} - -input, -submit { - font-family: "Open Sans", sans-serif; -} - -.form-table input[type=text], -.form-table input[type=email], -.form-table input[type=url], -.form-table input[type=password] { - width: 206px; -} - -.form-table th p { - font-weight: normal; -} - -.form-table.install-success td { - vertical-align: middle; - padding: 16px 0 16px 20px; -} - -.form-table.install-success td p { - margin: 0; - font-size: 14px; -} - -.form-table.install-success td code { - margin: 0; - font-size: 18px; -} - -#error-page { - margin-top: 50px; -} - -#error-page p { - font-size: 14px; - line-height: 18px; - margin: 25px 0 20px; -} - -#error-page code, .code { - font-family: Consolas, Monaco, monospace; -} - -.wp-hide-pw > .dashicons { - line-height: inherit; -} - -#pass-strength-result { - background-color: #eee; - border: 1px solid #ddd; - color: #23282d; - margin: -2px 0px 5px 5px; - padding: 3px 5px; - text-align: center; - width: 218px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - opacity: 0; -} - -#pass-strength-result.short { - background-color: #f1adad; - border-color: #e35b5b; - opacity: 1; -} - -#pass-strength-result.bad { - background-color: #fbc5a9; - border-color: #f78b53; - opacity: 1; -} - -#pass-strength-result.good { - background-color: #ffe399; - border-color: #ffc733; - opacity: 1; -} - -#pass-strength-result.strong { - background-color: #c1e1b9; - border-color: #83c373; - opacity: 1; -} - -#pass1.short, #pass1-text.short { - border-color: #e35b5b; -} - -#pass1.bad, #pass1-text.bad { - border-color: #f78b53; -} - -#pass1.good, #pass1-text.good { - border-color: #ffc733; -} - -#pass1.strong, #pass1-text.strong { - border-color: #83c373; -} - -.pw-weak { - display: none; -} - -.message { - border: 1px solid #c00; - padding: 0.5em 0.7em; - margin: 5px 0 15px; - background-color: #ffebe8; -} - -/* rtl:ignore */ -#dbname, -#uname, -#pwd, -#dbhost, -#prefix, -#user_login, -#admin_email, -#pass1, -#pass2 { - direction: ltr; -} - -#pass1-text, -.show-password #pass1 { - display: none; -} - -.show-password #pass1-text -{ - display: inline-block; -} - -.form-table span.description.important { - font-size: 12px; -} - - -/* localization */ -body.rtl, -.rtl textarea, -.rtl input, -.rtl submit { - font-family: Tahoma, sans-serif; -} - -:lang(he-il) body.rtl, -:lang(he-il) .rtl textarea, -:lang(he-il) .rtl input, -:lang(he-il) .rtl submit { - font-family: Arial, sans-serif; -} - -@media only screen and (max-width: 799px) { - body { - margin-top: 115px; - } - #logo a { - margin: -125px auto 30px; - } -} - -@media screen and ( max-width: 782px ) { - - .form-table { - margin-top: 0; - } - - .form-table th, - .form-table td { - display: block; - width: auto; - vertical-align: middle; - } - - .form-table th { - padding: 20px 0 0; - } - - .form-table td { - padding: 5px 0; - border: 0; - margin: 0; - } - - textarea, - input { - font-size: 16px; - } - - .form-table td input[type="text"], - .form-table td input[type="email"], - .form-table td input[type="url"], - .form-table td input[type="password"], - .form-table td select, - .form-table td textarea, - .form-table span.description { - width: 100%; - font-size: 16px; - line-height: 1.5; - padding: 7px 10px; - display: block; - max-width: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - -} - -body.language-chooser { - max-width: 300px; -} - -.language-chooser select { - padding: 8px; - width: 100%; - display: block; - border: 1px solid #ddd; - background-color: #fff; - color: #32373c; - font-size: 16px; - font-family: Arial, sans-serif; - font-weight: normal; -} - -.language-chooser p { - text-align: left; -} - -.screen-reader-input, -.screen-reader-text { - position: absolute; - margin: -1px; - padding: 0; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(0 0 0 0); - border: 0; -} - -.spinner { - background: url(../images/spinner.gif) no-repeat; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - visibility: hidden; - opacity: 0.7; - filter: alpha(opacity=70); - width: 20px; - height: 20px; - margin: 2px 5px 0; -} - -.step .spinner { - display: inline-block; - margin-top: 8px; - margin-left: 15px; - vertical-align: top; -} - -.button-secondary.hide-if-no-js, -.hide-if-no-js { - display: none; -} - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - - .spinner { - background-image: url(../images/spinner-2x.gif); - } - -} diff --git a/wp-admin/css/install-rtl.min.css b/wp-admin/css/install-rtl.min.css deleted file mode 100644 index 9b4383f7d2..0000000000 --- a/wp-admin/css/install-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -a img,abbr{border:0}#logo a,a{text-decoration:none}#logo a,.form-table th p,h1{font-weight:400}html{background:#f1f1f1;margin:0 20px}body{background:#fff;color:#444;font-family:"Open Sans",sans-serif;margin:140px auto 25px;padding:20px 20px 10px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.13);box-shadow:0 1px 3px rgba(0,0,0,.13)}a{color:#0073aa}a:hover{color:#00a0d2}h1{border-bottom:1px solid #dedede;clear:both;color:#666;font-size:24px;margin:30px 0;padding:0 0 7px}h2{font-size:16px}dd,dt,li,p{padding-bottom:2px;font-size:14px;line-height:1.5}.code,code{font-family:Consolas,Monaco,monospace}input,submit,textarea{font-family:"Open Sans",sans-serif}dl,ol,ul{padding:5px 22px 5px 5px}abbr{font-variant:normal}label{cursor:pointer}#logo{margin:6px 0 14px;border-bottom:none;text-align:center}#logo a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);-webkit-background-size:84px;background-size:84px;background-position:center top;background-repeat:no-repeat;color:#999;height:84px;font-size:20px;line-height:1.3em;margin:-130px auto 25px;padding:0;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#pass1-text,.pw-weak,.show-password #pass1{display:none}.step{margin:20px 0 15px}.step,th{text-align:right;padding:0}.language-chooser.wp-core-ui .step .button.button-large{height:36px;vertical-align:middle;font-size:14px}.form-table td,.form-table th{font-size:14px;padding:10px 0 10px 20px;vertical-align:top}textarea{border:1px solid #dfdfdf;width:100%;box-sizing:border-box}#pass-strength-result,textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px}.form-table th{text-align:right;width:140px}.form-table code{line-height:18px;font-size:14px}.form-table p{margin:4px 0 0;font-size:11px}.form-table input{line-height:20px;font-size:15px;padding:3px 5px;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}.form-table input[type=email],.form-table input[type=password],.form-table input[type=text],.form-table input[type=url]{width:206px}.form-table.install-success td{vertical-align:middle;padding:16px 0 16px 20px}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:18px;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}.wp-hide-pw>.dashicons{line-height:inherit}#pass-strength-result{background-color:#eee;border:1px solid #ddd;color:#23282d;margin:-2px 0 5px 5px;padding:3px 5px;text-align:center;width:218px;box-sizing:border-box;opacity:0}#pass-strength-result.short{background-color:#f1adad;border-color:#e35b5b;opacity:1}#pass-strength-result.bad{background-color:#fbc5a9;border-color:#f78b53;opacity:1}#pass-strength-result.good{background-color:#ffe399;border-color:#ffc733;opacity:1}#pass-strength-result.strong{background-color:#c1e1b9;border-color:#83c373;opacity:1}#pass1-text.short,#pass1.short{border-color:#e35b5b}#pass1-text.bad,#pass1.bad{border-color:#f78b53}#pass1-text.good,#pass1.good{border-color:#ffc733}#pass1-text.strong,#pass1.strong{border-color:#83c373}.message{border:1px solid #c00;padding:.5em .7em;margin:5px 0 15px;background-color:#ffebe8}#admin_email,#dbhost,#dbname,#pass1,#pass2,#prefix,#pwd,#uname,#user_login{direction:ltr}.show-password #pass1-text{display:inline-block}.form-table span.description.important{font-size:12px}.rtl input,.rtl submit,.rtl textarea,body.rtl{font-family:Tahoma,sans-serif}.language-chooser select,:lang(he-il) .rtl input,:lang(he-il) .rtl submit,:lang(he-il) .rtl textarea,:lang(he-il) body.rtl{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}input,textarea{font-size:16px}.form-table span.description,.form-table td input[type=text],.form-table td input[type=email],.form-table td input[type=url],.form-table td input[type=password],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}}body.language-chooser{max-width:300px}.language-chooser select{padding:8px;width:100%;display:block;border:1px solid #ddd;background-color:#fff;color:#32373c;font-size:16px;font-weight:400}.language-chooser p{text-align:left}.screen-reader-input,.screen-reader-text{position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.spinner{background:url(../images/spinner.gif) no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;visibility:hidden;opacity:.7;filter:alpha(opacity=70);width:20px;height:20px;margin:2px 5px 0}.step .spinner{display:inline-block;margin-top:8px;margin-left:15px;vertical-align:top}.button-secondary.hide-if-no-js,.hide-if-no-js{display:none}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.spinner{background-image:url(../images/spinner-2x.gif)}} \ No newline at end of file diff --git a/wp-admin/css/install.css b/wp-admin/css/install.css deleted file mode 100644 index 76793ab77b..0000000000 --- a/wp-admin/css/install.css +++ /dev/null @@ -1,436 +0,0 @@ -html { - background: #f1f1f1; - margin: 0 20px; -} - -body { - background: #fff; - color: #444; - font-family: "Open Sans", sans-serif; - margin: 140px auto 25px; - padding: 20px 20px 10px 20px; - max-width: 700px; - -webkit-font-smoothing: subpixel-antialiased; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13); - box-shadow: 0 1px 3px rgba(0,0,0,0.13); -} - -a { - color: #0073aa; - text-decoration: none; -} - -a:hover { - color: #00a0d2; -} - -h1 { - border-bottom: 1px solid #dedede; - clear: both; - color: #666; - font-size: 24px; - margin: 30px 0; - padding: 0; - padding-bottom: 7px; - font-weight: normal; -} - -h2 { - font-size: 16px; -} - -p, li, dd, dt { - padding-bottom: 2px; - font-size: 14px; - line-height: 1.5; -} - -code, .code { - font-family: Consolas, Monaco, monospace; -} - -ul, ol, dl { - padding: 5px 5px 5px 22px; -} - -a img { - border:0 -} -abbr { - border: 0; - font-variant: normal; -} - -label { - cursor: pointer; -} - -#logo { - margin: 6px 0 14px 0; - border-bottom: none; - text-align:center -} -#logo a { - background-image: url(../images/w-logo-blue.png?ver=20131202); - background-image: none, url(../images/wordpress-logo.svg?ver=20131107); - -webkit-background-size: 84px; - background-size: 84px; - background-position: center top; - background-repeat: no-repeat; - color: #999; - height: 84px; - font-size: 20px; - font-weight: normal; - line-height: 1.3em; - margin: -130px auto 25px; - padding: 0; - text-decoration: none; - width: 84px; - text-indent: -9999px; - outline: none; - overflow: hidden; - display: block; -} -.step { - margin: 20px 0 15px; -} -.step, th { - text-align: left; - padding: 0; -} -.language-chooser.wp-core-ui .step .button.button-large { - height: 36px; - vertical-align: middle; - font-size: 14px; -} -textarea { - border: 1px solid #dfdfdf; - font-family: "Open Sans", sans-serif; - width: 100%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.form-table { - border-collapse: collapse; - margin-top: 1em; - width: 100%; -} - -.form-table td { - margin-bottom: 9px; - padding: 10px 20px 10px 0; - font-size: 14px; - vertical-align: top -} - -.form-table th { - font-size: 14px; - text-align: left; - padding: 10px 20px 10px 0; - width: 140px; - vertical-align: top; -} - -.form-table code { - line-height: 18px; - font-size: 14px; -} - -.form-table p { - margin: 4px 0 0 0; - font-size: 11px; -} - -.form-table input { - line-height: 20px; - font-size: 15px; - padding: 3px 5px; - border: 1px solid #ddd; - -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.07); - box-shadow: inset 0 1px 2px rgba(0,0,0,0.07); -} - -input, -submit { - font-family: "Open Sans", sans-serif; -} - -.form-table input[type=text], -.form-table input[type=email], -.form-table input[type=url], -.form-table input[type=password] { - width: 206px; -} - -.form-table th p { - font-weight: normal; -} - -.form-table.install-success td { - vertical-align: middle; - padding: 16px 20px 16px 0; -} - -.form-table.install-success td p { - margin: 0; - font-size: 14px; -} - -.form-table.install-success td code { - margin: 0; - font-size: 18px; -} - -#error-page { - margin-top: 50px; -} - -#error-page p { - font-size: 14px; - line-height: 18px; - margin: 25px 0 20px; -} - -#error-page code, .code { - font-family: Consolas, Monaco, monospace; -} - -.wp-hide-pw > .dashicons { - line-height: inherit; -} - -#pass-strength-result { - background-color: #eee; - border: 1px solid #ddd; - color: #23282d; - margin: -2px 5px 5px 0px; - padding: 3px 5px; - text-align: center; - width: 218px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - opacity: 0; -} - -#pass-strength-result.short { - background-color: #f1adad; - border-color: #e35b5b; - opacity: 1; -} - -#pass-strength-result.bad { - background-color: #fbc5a9; - border-color: #f78b53; - opacity: 1; -} - -#pass-strength-result.good { - background-color: #ffe399; - border-color: #ffc733; - opacity: 1; -} - -#pass-strength-result.strong { - background-color: #c1e1b9; - border-color: #83c373; - opacity: 1; -} - -#pass1.short, #pass1-text.short { - border-color: #e35b5b; -} - -#pass1.bad, #pass1-text.bad { - border-color: #f78b53; -} - -#pass1.good, #pass1-text.good { - border-color: #ffc733; -} - -#pass1.strong, #pass1-text.strong { - border-color: #83c373; -} - -.pw-weak { - display: none; -} - -.message { - border: 1px solid #c00; - padding: 0.5em 0.7em; - margin: 5px 0 15px; - background-color: #ffebe8; -} - -/* rtl:ignore */ -#dbname, -#uname, -#pwd, -#dbhost, -#prefix, -#user_login, -#admin_email, -#pass1, -#pass2 { - direction: ltr; -} - -#pass1-text, -.show-password #pass1 { - display: none; -} - -.show-password #pass1-text -{ - display: inline-block; -} - -.form-table span.description.important { - font-size: 12px; -} - - -/* localization */ -body.rtl, -.rtl textarea, -.rtl input, -.rtl submit { - font-family: Tahoma, sans-serif; -} - -:lang(he-il) body.rtl, -:lang(he-il) .rtl textarea, -:lang(he-il) .rtl input, -:lang(he-il) .rtl submit { - font-family: Arial, sans-serif; -} - -@media only screen and (max-width: 799px) { - body { - margin-top: 115px; - } - #logo a { - margin: -125px auto 30px; - } -} - -@media screen and ( max-width: 782px ) { - - .form-table { - margin-top: 0; - } - - .form-table th, - .form-table td { - display: block; - width: auto; - vertical-align: middle; - } - - .form-table th { - padding: 20px 0 0; - } - - .form-table td { - padding: 5px 0; - border: 0; - margin: 0; - } - - textarea, - input { - font-size: 16px; - } - - .form-table td input[type="text"], - .form-table td input[type="email"], - .form-table td input[type="url"], - .form-table td input[type="password"], - .form-table td select, - .form-table td textarea, - .form-table span.description { - width: 100%; - font-size: 16px; - line-height: 1.5; - padding: 7px 10px; - display: block; - max-width: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - -} - -body.language-chooser { - max-width: 300px; -} - -.language-chooser select { - padding: 8px; - width: 100%; - display: block; - border: 1px solid #ddd; - background-color: #fff; - color: #32373c; - font-size: 16px; - font-family: Arial, sans-serif; - font-weight: normal; -} - -.language-chooser p { - text-align: right; -} - -.screen-reader-input, -.screen-reader-text { - position: absolute; - margin: -1px; - padding: 0; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(0 0 0 0); - border: 0; -} - -.spinner { - background: url(../images/spinner.gif) no-repeat; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - visibility: hidden; - opacity: 0.7; - filter: alpha(opacity=70); - width: 20px; - height: 20px; - margin: 2px 5px 0; -} - -.step .spinner { - display: inline-block; - margin-top: 8px; - margin-right: 15px; - vertical-align: top; -} - -.button-secondary.hide-if-no-js, -.hide-if-no-js { - display: none; -} - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - - .spinner { - background-image: url(../images/spinner-2x.gif); - } - -} diff --git a/wp-admin/css/install.min.css b/wp-admin/css/install.min.css deleted file mode 100644 index 13cbe9d5cb..0000000000 --- a/wp-admin/css/install.min.css +++ /dev/null @@ -1 +0,0 @@ -a img,abbr{border:0}#logo a,a{text-decoration:none}#logo a,.form-table th p,h1{font-weight:400}html{background:#f1f1f1;margin:0 20px}body{background:#fff;color:#444;font-family:"Open Sans",sans-serif;margin:140px auto 25px;padding:20px 20px 10px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.13);box-shadow:0 1px 3px rgba(0,0,0,.13)}a{color:#0073aa}a:hover{color:#00a0d2}h1{border-bottom:1px solid #dedede;clear:both;color:#666;font-size:24px;margin:30px 0;padding:0 0 7px}h2{font-size:16px}dd,dt,li,p{padding-bottom:2px;font-size:14px;line-height:1.5}.code,code{font-family:Consolas,Monaco,monospace}input,submit,textarea{font-family:"Open Sans",sans-serif}dl,ol,ul{padding:5px 5px 5px 22px}abbr{font-variant:normal}label{cursor:pointer}#logo{margin:6px 0 14px;border-bottom:none;text-align:center}#logo a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);-webkit-background-size:84px;background-size:84px;background-position:center top;background-repeat:no-repeat;color:#999;height:84px;font-size:20px;line-height:1.3em;margin:-130px auto 25px;padding:0;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#pass1-text,.pw-weak,.show-password #pass1{display:none}.step{margin:20px 0 15px}.step,th{text-align:left;padding:0}.language-chooser.wp-core-ui .step .button.button-large{height:36px;vertical-align:middle;font-size:14px}.form-table td,.form-table th{font-size:14px;padding:10px 20px 10px 0;vertical-align:top}textarea{border:1px solid #dfdfdf;width:100%;box-sizing:border-box}#pass-strength-result,textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px}.form-table th{text-align:left;width:140px}.form-table code{line-height:18px;font-size:14px}.form-table p{margin:4px 0 0;font-size:11px}.form-table input{line-height:20px;font-size:15px;padding:3px 5px;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}.form-table input[type=email],.form-table input[type=password],.form-table input[type=text],.form-table input[type=url]{width:206px}.form-table.install-success td{vertical-align:middle;padding:16px 20px 16px 0}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:18px;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}.wp-hide-pw>.dashicons{line-height:inherit}#pass-strength-result{background-color:#eee;border:1px solid #ddd;color:#23282d;margin:-2px 5px 5px 0;padding:3px 5px;text-align:center;width:218px;box-sizing:border-box;opacity:0}#pass-strength-result.short{background-color:#f1adad;border-color:#e35b5b;opacity:1}#pass-strength-result.bad{background-color:#fbc5a9;border-color:#f78b53;opacity:1}#pass-strength-result.good{background-color:#ffe399;border-color:#ffc733;opacity:1}#pass-strength-result.strong{background-color:#c1e1b9;border-color:#83c373;opacity:1}#pass1-text.short,#pass1.short{border-color:#e35b5b}#pass1-text.bad,#pass1.bad{border-color:#f78b53}#pass1-text.good,#pass1.good{border-color:#ffc733}#pass1-text.strong,#pass1.strong{border-color:#83c373}.message{border:1px solid #c00;padding:.5em .7em;margin:5px 0 15px;background-color:#ffebe8}#admin_email,#dbhost,#dbname,#pass1,#pass2,#prefix,#pwd,#uname,#user_login{direction:ltr}.show-password #pass1-text{display:inline-block}.form-table span.description.important{font-size:12px}.rtl input,.rtl submit,.rtl textarea,body.rtl{font-family:Tahoma,sans-serif}.language-chooser select,:lang(he-il) .rtl input,:lang(he-il) .rtl submit,:lang(he-il) .rtl textarea,:lang(he-il) body.rtl{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}input,textarea{font-size:16px}.form-table span.description,.form-table td input[type=text],.form-table td input[type=email],.form-table td input[type=url],.form-table td input[type=password],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}}body.language-chooser{max-width:300px}.language-chooser select{padding:8px;width:100%;display:block;border:1px solid #ddd;background-color:#fff;color:#32373c;font-size:16px;font-weight:400}.language-chooser p{text-align:right}.screen-reader-input,.screen-reader-text{position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.spinner{background:url(../images/spinner.gif) no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;visibility:hidden;opacity:.7;filter:alpha(opacity=70);width:20px;height:20px;margin:2px 5px 0}.step .spinner{display:inline-block;margin-top:8px;margin-right:15px;vertical-align:top}.button-secondary.hide-if-no-js,.hide-if-no-js{display:none}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.spinner{background-image:url(../images/spinner-2x.gif)}} \ No newline at end of file diff --git a/wp-admin/css/l10n-rtl.css b/wp-admin/css/l10n-rtl.css deleted file mode 100644 index 6ede0d3f4d..0000000000 --- a/wp-admin/css/l10n-rtl.css +++ /dev/null @@ -1,113 +0,0 @@ -/*------------------------------------------------------------------------------ - 27.0 - Localization -------------------------------------------------------------------------------*/ - -/* RTL except Hebrew (see below): Tahoma as the first font; */ -body.rtl, -body.rtl .press-this a.wp-switch-editor { - font-family: Tahoma, Arial, sans-serif; -} - -/* Arial is best for RTL headings. */ -.rtl h1, -.rtl h2, -.rtl h3, -.rtl h4, -.rtl h5, -.rtl h6 { - font-family: Arial, sans-serif; - font-weight: bold; -} - -/* he_IL: Remove Tahoma from the font stack. Arial is best for Hebrew. */ -body.locale-he-il, -body.locale-he-il .press-this a.wp-switch-editor { - font-family: Arial, sans-serif; -} - -/* he_IL: Have be bold rather than italic. */ -.locale-he-il em { - font-style: normal; - font-weight: bold; -} - -/* zh_CN: Remove italic properties. */ -.locale-zh-cn .howto, -.locale-zh-cn .tablenav .displaying-num, -.locale-zh-cn .js .input-with-default-title, -.locale-zh-cn .link-to-original, -.locale-zh-cn .inline-edit-row fieldset span.title, -.locale-zh-cn .inline-edit-row fieldset span.checkbox-title, -.locale-zh-cn #utc-time, -.locale-zh-cn #local-time, -.locale-zh-cn p.install-help, -.locale-zh-cn p.help, -.locale-zh-cn p.description, -.locale-zh-cn span.description, -.locale-zh-cn .form-wrap p { - font-style: normal; -} - -/* zh_CN: Enlarge dashboard widget 'Configure' link */ -.locale-zh-cn .hdnle a { font-size: 12px; } - -/* zn_CH: Enlarge font size, set font-size: normal */ -.locale-zh-cn form.upgrade .hint { font-style: normal; font-size: 100%; } - -/* zh_CN: Enlarge font-size. */ -.locale-zh-cn #sort-buttons { font-size: 1em !important; } - -/* de_DE: Text needs more space for translation */ -.locale-de-de #customize-header-actions .button, -.locale-de-de-formal #customize-header-actions .button { - padding: 0 5px 1px; /* default 0 10px 1px */ -} -.locale-de-de #customize-header-actions .spinner, -.locale-de-de-formal #customize-header-actions .spinner { - margin: 16px 3px 0; /* default 16px 4px 0 5px */ -} - -/* ru_RU: Text needs more room to breathe. */ -.locale-ru-ru .inline-edit-row fieldset label span.title, -.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend { - width: 8em; /* default 6em */ -} -.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap, -.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap { - margin-right: 8em; /* default 6em */ -} -.locale-ru-ru.post-php .tagsdiv .newtag, -.locale-ru-ru.post-new-php .tagsdiv .newtag { - width: 165px; /* default 180px - 15px */ -} -.locale-ru-ru.press-this .posting { - margin-left: 277px; /* default 252px + 25px */ -} -.locale-ru-ru .press-this-sidebar { - width: 265px; /* default 240px + 25px */ -} -.locale-ru-ru #customize-header-actions .button { - padding: 0 5px 1px; /* default 0 10px 1px */ -} -.locale-ru-ru #customize-header-actions .spinner { - margin: 16px 3px 0; /* default 16px 4px 0 5px */ -} - -/* lt_LT: QuickEdit */ -.locale-lt-lt .inline-edit-row fieldset label span.title, -.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend { - width: 8em; /* default 6em */ -} -.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap, -.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap { - margin-right: 8em; /* default 6em */ -} - -@media screen and (max-width: 782px) { - .locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap, - .locale-ru-ru .inline-edit-row fieldset .timestamp-wrap, - .locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap, - .locale-lt-lt .inline-edit-row fieldset .timestamp-wrap { - margin-right: 0; - } -} diff --git a/wp-admin/css/l10n.css b/wp-admin/css/l10n.css deleted file mode 100644 index 8b81ebab17..0000000000 --- a/wp-admin/css/l10n.css +++ /dev/null @@ -1,113 +0,0 @@ -/*------------------------------------------------------------------------------ - 27.0 - Localization -------------------------------------------------------------------------------*/ - -/* RTL except Hebrew (see below): Tahoma as the first font; */ -body.rtl, -body.rtl .press-this a.wp-switch-editor { - font-family: Tahoma, Arial, sans-serif; -} - -/* Arial is best for RTL headings. */ -.rtl h1, -.rtl h2, -.rtl h3, -.rtl h4, -.rtl h5, -.rtl h6 { - font-family: Arial, sans-serif; - font-weight: bold; -} - -/* he_IL: Remove Tahoma from the font stack. Arial is best for Hebrew. */ -body.locale-he-il, -body.locale-he-il .press-this a.wp-switch-editor { - font-family: Arial, sans-serif; -} - -/* he_IL: Have be bold rather than italic. */ -.locale-he-il em { - font-style: normal; - font-weight: bold; -} - -/* zh_CN: Remove italic properties. */ -.locale-zh-cn .howto, -.locale-zh-cn .tablenav .displaying-num, -.locale-zh-cn .js .input-with-default-title, -.locale-zh-cn .link-to-original, -.locale-zh-cn .inline-edit-row fieldset span.title, -.locale-zh-cn .inline-edit-row fieldset span.checkbox-title, -.locale-zh-cn #utc-time, -.locale-zh-cn #local-time, -.locale-zh-cn p.install-help, -.locale-zh-cn p.help, -.locale-zh-cn p.description, -.locale-zh-cn span.description, -.locale-zh-cn .form-wrap p { - font-style: normal; -} - -/* zh_CN: Enlarge dashboard widget 'Configure' link */ -.locale-zh-cn .hdnle a { font-size: 12px; } - -/* zn_CH: Enlarge font size, set font-size: normal */ -.locale-zh-cn form.upgrade .hint { font-style: normal; font-size: 100%; } - -/* zh_CN: Enlarge font-size. */ -.locale-zh-cn #sort-buttons { font-size: 1em !important; } - -/* de_DE: Text needs more space for translation */ -.locale-de-de #customize-header-actions .button, -.locale-de-de-formal #customize-header-actions .button { - padding: 0 5px 1px; /* default 0 10px 1px */ -} -.locale-de-de #customize-header-actions .spinner, -.locale-de-de-formal #customize-header-actions .spinner { - margin: 16px 3px 0; /* default 16px 4px 0 5px */ -} - -/* ru_RU: Text needs more room to breathe. */ -.locale-ru-ru .inline-edit-row fieldset label span.title, -.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend { - width: 8em; /* default 6em */ -} -.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap, -.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap { - margin-left: 8em; /* default 6em */ -} -.locale-ru-ru.post-php .tagsdiv .newtag, -.locale-ru-ru.post-new-php .tagsdiv .newtag { - width: 165px; /* default 180px - 15px */ -} -.locale-ru-ru.press-this .posting { - margin-right: 277px; /* default 252px + 25px */ -} -.locale-ru-ru .press-this-sidebar { - width: 265px; /* default 240px + 25px */ -} -.locale-ru-ru #customize-header-actions .button { - padding: 0 5px 1px; /* default 0 10px 1px */ -} -.locale-ru-ru #customize-header-actions .spinner { - margin: 16px 3px 0; /* default 16px 4px 0 5px */ -} - -/* lt_LT: QuickEdit */ -.locale-lt-lt .inline-edit-row fieldset label span.title, -.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend { - width: 8em; /* default 6em */ -} -.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap, -.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap { - margin-left: 8em; /* default 6em */ -} - -@media screen and (max-width: 782px) { - .locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap, - .locale-ru-ru .inline-edit-row fieldset .timestamp-wrap, - .locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap, - .locale-lt-lt .inline-edit-row fieldset .timestamp-wrap { - margin-left: 0; - } -} diff --git a/wp-admin/css/list-tables-rtl.css b/wp-admin/css/list-tables-rtl.css deleted file mode 100644 index 87a01dde94..0000000000 --- a/wp-admin/css/list-tables-rtl.css +++ /dev/null @@ -1,2113 +0,0 @@ -.response-links { - display: block; - margin-bottom: 1em; -} - -.response-links a { - display: block; -} - -.response-links a.comments-edit-item-link { - font-weight: 600; -} - -.response-links a.comments-view-item-link { - font-size: 12px; -} - -.post-com-count-wrapper strong { - font-weight: 400; -} - -.comments-view-item-link { - display: inline-block; - clear: both; -} - -.column-response .post-com-count-wrapper, -.column-comments .post-com-count-wrapper { - white-space: nowrap; - word-wrap: normal; -} - -/* comments bubble common */ -.column-response .post-com-count, -.column-comments .post-com-count { - display: inline-block; - vertical-align: top; -} - -/* comments bubble approved */ -.column-response .post-com-count-no-comments, -.column-response .post-com-count-approved, -.column-comments .post-com-count-no-comments, -.column-comments .post-com-count-approved { - margin-top: 5px; -} - -.column-response .comment-count-no-comments, -.column-response .comment-count-approved, -.column-comments .comment-count-no-comments, -.column-comments .comment-count-approved { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - display: block; - padding: 0 8px; - min-width: 24px; - height: 2em; - -webkit-border-radius: 5px; - border-radius: 5px; - background-color: #72777c; - color: #fff; - font-size: 11px; - line-height: 21px; - text-align: center; -} - -.ie8 .column-response .comment-count-no-comments, -.ie8 .column-response .comment-count-approved, -.ie8 .column-comments .comment-count-no-comments, -.ie8 .column-comments .comment-count-approved { - min-width: 0; -} - -.column-response .post-com-count-no-comments:after, -.column-response .post-com-count-approved:after, -.column-comments .post-com-count-no-comments:after, -.column-comments .post-com-count-approved:after { - content: ""; - display: block; - margin-right: 8px; - width: 0; - height: 0; - border-top: 5px solid #72777c; - border-left: 5px solid transparent; -} - -.column-response .post-com-count-approved:hover .comment-count-approved, -.column-response .post-com-count-approved:focus .comment-count-approved, -.column-comments .post-com-count-approved:hover .comment-count-approved, -.column-comments .post-com-count-approved:focus .comment-count-approved { - background: #0073aa; -} - -.column-response .post-com-count-approved:hover:after, -.column-response .post-com-count-approved:focus:after, -.column-comments .post-com-count-approved:hover:after, -.column-comments .post-com-count-approved:focus:after { - border-top-color: #0073aa; -} - -/* comments bubble pending */ -.column-response .post-com-count-pending, -.column-comments .post-com-count-pending { - position: relative; - right: -3px; - padding: 0 5px; - min-width: 7px; - height: 17px; - border: 2px solid #fff; - -webkit-border-radius: 11px; - border-radius: 11px; - background: #ca4a1f; - color: #fff; - font-size: 9px; - line-height: 17px; - text-align: center; -} - -/* comments */ - -.commentlist li { - padding: 1em 1em .2em; - margin: 0; - border-bottom: 1px solid #ccc; -} - -.commentlist li li { - border-bottom: 0; - padding: 0; -} - -.commentlist p { - padding: 0; - margin: 0 0 .8em; -} - -#submitted-on, -.submitted-on { - color: #777; -} - -/* reply to comments */ -#replyrow td { - padding: 2px; -} - -#replysubmit { - margin: 0; - padding: 0 5px 3px; - text-align: center; -} - -#replysubmit .button { - margin-left: 5px; -} - -#replysubmit .error { - color: red; - line-height: 21px; - text-align: center; -} - -#replyrow h5 { - margin: .2em 0 0; - padding: 0 5px; - line-height: 1.4em; - font-size: 1em; -} - -#edithead .inside, -#commentsdiv #edithead .inside { - float: right; - padding: 3px 5px 2px 0; - margin: 0; - text-align: center; -} - -#edithead .inside input { - width: 180px; -} - -#edithead label { - padding: 2px 0; -} - -#replycontainer { - padding: 5px; -} - -#replycontent { - height: 120px; - -webkit-box-shadow: none; - box-shadow: none; -} - -#replyerror { - border-color: #ddd; - background-color: #f9f9f9; -} - -/* @todo: is this used? */ -.commentlist .avatar { - vertical-align: text-top; -} - -#the-comment-list tr.undo, -#the-comment-list div.undo { - background-color: #f4f4f4; -} - -#the-comment-list .unapproved th, -#the-comment-list .unapproved td { - background-color: #fef7f1; -} - -#the-comment-list .unapproved th.check-column { - border-right: 4px solid #d54e21; -} - -#the-comment-list .unapproved th.check-column input { - margin-right: 4px; -} - -#the-comment-list .approve a { - color: #006505; -} - -#the-comment-list .unapprove a { - color: #d98500; -} - -#the-comment-list th, -#the-comment-list td { - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); -} - -#the-comment-list tr:last-child th, -#the-comment-list tr:last-child td { - -webkit-box-shadow: none; - box-shadow: none; -} - -#the-comment-list tr.unapproved + tr.approved th, -#the-comment-list tr.unapproved + tr.approved td { - border-top: 1px solid rgba(0, 0, 0, 0.03); -} - -/* table vim shortcuts */ -.vim-current, -.vim-current th, -.vim-current td { - background-color: #e4f2fd !important; -} - -th .comment-grey-bubble { - height: 16px; - width: 16px; -} - -th .comment-grey-bubble:before { - content: '\f101'; - font: normal 20px/.5 'dashicons'; - speak: none; - display: inline-block; - padding: 0; - top: 4px; - right: -4px; - position: relative; - vertical-align: top; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; - color: #444; -} - -/*------------------------------------------------------------------------------ - 10.0 - List Posts (/Pages/etc) -------------------------------------------------------------------------------*/ - -table.fixed { - table-layout: fixed; -} - -.fixed .column-rating, -.fixed .column-visible { - width: 8%; -} - -.fixed .column-posts, -.fixed .column-date, -.fixed .column-parent, -.fixed .column-links, -.fixed .column-author, -.fixed .column-format { - width: 10%; -} - -.fixed .column-posts { - width: 74px; -} - -.fixed .column-comment .comment-author { - display: none; -} - -.fixed .column-response, -.fixed .column-categories, -.fixed .column-tags, -.fixed .column-rel, -.fixed .column-role { - width: 15%; -} - -.fixed .column-slug { - width: 25%; -} - -.fixed .column-locations { - width: 35%; -} - -.fixed .column-comments { - width: 5.5em; - padding: 8px 0; - text-align: right; -} - -.fixed .column-comments .vers { - padding-right: 3px; -} - -td.column-title strong, -td.plugin-title strong { - display: block; - margin-bottom: .2em; - font-size: 14px; -} - -td.column-title p, -td.plugin-title p { - margin: 6px 0; -} - -/* Media file column */ -table.media .column-title .media-icon { - float: right; - min-height: 60px; - margin: 0 0 0 9px; -} - -table.media .column-title .media-icon img { - max-width: 60px; - height: auto; - vertical-align: top; /* Remove descender white-space. */ -} - -table.media .column-title .has-media-icon ~ .row-actions { - margin-right: 70px; /* 60px image + margin */ -} - -table.media .column-title .filename { - margin-bottom: 0.2em; -} - -/* @todo: pick a consistent list table selector */ -.wp-list-table a { - -webkit-transition: none; - transition: none; -} - -#the-list tr:last-child td, -#the-list tr:last-child th { - border-bottom: none !important; - -webkit-box-shadow: none; - box-shadow: none; -} - -#comments-form .fixed .column-author { - width: 20%; -} - -#commentsdiv.postbox .inside { - margin: 0; - padding: 0; -} - -#commentsdiv .inside .row-actions { - line-height:18px; -} - -#commentsdiv .inside .column-author { - width: 25%; -} - -#commentsdiv .column-comment p { - margin: 0.6em 0; - padding: 0; -} - -#commentsdiv #replyrow td { - padding: 0; -} - -#commentsdiv p { - padding: 8px 10px; - margin: 0; -} - -#commentsdiv .comments-box { - border: 0 none; -} - -#commentsdiv .comments-box thead th, -#commentsdiv .comments-box thead td { - background: transparent; - padding: 0 7px 4px; - font-style: italic; -} - -#commentsdiv .comments-box tr:last-child td { - border-bottom: 0 none; -} - -#commentsdiv #edithead .inside input { - vertical-align: middle; - width: 160px; -} - -.sorting-indicator { - display: none; - width: 10px; - height: 4px; - margin-top: 8px; - margin-right: 7px; -} - -.sorting-indicator:before { - content: '\f142'; - font: normal 20px/1 'dashicons'; - speak: none; - display: inline-block; - padding: 0; - top: -4px; - right: -8px; - color: #444; - line-height: 10px; - position: relative; - vertical-align: top; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; - color: #444; -} - -.column-comments .sorting-indicator:before { - top: 0; - right: -10px; -} - -th.sorted.asc .sorting-indicator:before, -th.desc:hover span.sorting-indicator:before, -th.desc a:focus span.sorting-indicator:before { - content: '\f142'; -} - -th.sorted.desc .sorting-indicator:before, -th.asc:hover span.sorting-indicator:before, -th.asc a:focus span.sorting-indicator:before { - content: '\f140'; -} - -.wp-list-table .toggle-row { - position: absolute; - left: 8px; - top: 10px; - display: none; - padding: 0; - width: 40px; - height: 40px; - border: none; - outline: none; - background: transparent; -} - -.wp-list-table .toggle-row:hover { - cursor: pointer; -} - -.wp-list-table .toggle-row:focus:before { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.ie8 .wp-list-table .toggle-row:focus:before { - outline: #5b9dd9 solid 1px; -} - -.wp-list-table .toggle-row:active { - -webkit-box-shadow: none; - box-shadow: none; -} - -.wp-list-table .toggle-row:before { - position: absolute; - top: -5px; - right: 10px; - -webkit-border-radius: 50%; - border-radius: 50%; - display: block; - padding: 1px 0 1px 2px; - color: #666; - content: '\f140'; - font: normal 20px/1 'dashicons'; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - speak: none; -} - -.wp-list-table .is-expanded .toggle-row:before { - content: '\f142'; -} - -tr.wp-locked .locked-indicator { - margin-right: 6px; - height: 20px; - width: 16px; -} - -tr.wp-locked .locked-indicator:before { - color: #82878c; - content: '\f160'; - display: inline-block; - float: right; - font: normal 20px/1 'dashicons'; - speak: none; - vertical-align: middle; - margin-right: 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -tr.wp-locked .check-column label, -tr.wp-locked .check-column input[type="checkbox"], -tr.wp-locked .row-actions .inline, -tr.wp-locked .row-actions .trash { - display: none; -} - -tr .locked-info { - height: 0; - opacity: 0; -} - -tr.wp-locked .locked-info { - margin-top: 8px; - height: auto; - opacity: 1; -} - -.locked-text { - vertical-align: top; -} - -tr.locked-info, tr.wp-locked .locked-info { - -webkit-transition: height 1s, opacity 0.5s; - transition: height 1s, opacity 0.5s; -} - -.fixed .column-comments .sorting-indicator { - margin-top: 3px; -} - -#menu-locations-wrap .widefat { - width: 60%; -} - -.widefat th.sortable, -.widefat th.sorted { - padding: 0; -} - -th.sortable a, -th.sorted a { - display: block; - overflow: hidden; - padding: 7px 10px 8px 7px; -} - -.fixed .column-comments.sortable a, -.fixed .column-comments.sorted a { - padding: 8px 0; -} - -th.sortable a span, -th.sorted a span { - float: right; - cursor: pointer; -} - -th.sorted .sorting-indicator, -th.desc:hover span.sorting-indicator, -th.desc a:focus span.sorting-indicator, -th.asc:hover span.sorting-indicator, -th.asc a:focus span.sorting-indicator { - display: block; -} - -/* Bulk Actions */ -.tablenav-pages a, -.tablenav-pages-navspan { - font-weight: 600; - padding: 0 2px; -} - -.tablenav-pages .current-page { - margin: 0 0 0 2px; - padding-bottom: 5px; - font-size: 13px; - text-align: center; -} - -.tablenav .total-pages { - margin-left: 2px; -} - -.tablenav #table-paging { - margin-right: 2px; -} - -.tablenav a.button-secondary { - display: block; - margin: 3px 0 0 8px; -} - -.tablenav { - clear: both; - height: 30px; - margin: 6px 0 4px; - vertical-align: middle; -} - -.tablenav.themes { - max-width: 98%; -} - -.tablenav .tablenav-pages { - float: left; - height: 28px; - margin-top: 3px; - cursor: default; - color: #555; -} - -.tablenav .no-pages, -.tablenav .one-page .pagination-links { - display: none; -} - -.tablenav .tablenav-pages a, -.tablenav-pages span.current { - text-decoration: none; - padding: 3px 6px; -} - -.tablenav .tablenav-pages a, -.tablenav-pages-navspan { - display: inline-block; - min-width: 17px; - border: 1px solid #d2d2d2; - padding: 3px 5px 7px; - background: #e4e4e4; - font-size: 16px; - line-height: 1; - font-weight: normal; - text-align: center; -} - -.tablenav-pages-navspan { - height: 16px; - border-color: #e8e8e8; - background: #ebebeb; - color: #b4b4b4; -} - -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - border-color: #5b9dd9; - color: #fff; - background: #00a0d2; - -webkit-box-shadow: none; - box-shadow: none; - outline: none; /* IE8 */ -} - -.tablenav .displaying-num { - margin-left: 7px; -} - -.tablenav .one-page .displaying-num { - display: inline-block; - margin-top: 5px; - margin-left: 0; -} - -.tablenav .actions { - overflow: hidden; - padding: 2px 0 0 8px; -} - -.wp-filter .actions { - display: inline-block; - vertical-align: middle; -} - -.tablenav .delete { - margin-left: 20px; -} - -/* @todo: unclear if the following tablenav rules are actually used. -classes exist in paginate_links() but not seen in list table output. */ -.tablenav .dots { - border-color: transparent; -} - -.tablenav .next, -.tablenav .prev { - border-color: transparent; - color: #0073aa; -} - -.tablenav .next:hover, -.tablenav .prev:hover { - border-color: transparent; - color: #00a0d2; -} - -.tablenav .view-switch { - float: left; - margin: 0 5px; - padding-top: 3px; -} - -.wp-filter .view-switch { - display: inline-block; - vertical-align: middle; - padding: 12px 0; - margin: 0 2px 0 8px; -} - -.media-toolbar.wp-filter .view-switch { - margin: 0 2px 0 12px; -} - -.view-switch a { - float: right; - width: 28px; - height: 28px; - text-align: center; - line-height: 24px; - text-decoration: none; -} - -.view-switch a:before { - color: #b4b9be; - display: inline-block; - font: normal 20px/1 'dashicons'; - speak: none; - vertical-align: middle; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.view-switch a:hover:before, -.view-switch a:focus:before { - color: #727272; -} - -.view-switch a.current:before { - color: #0073aa; -} - -.view-switch .view-list:before { - content: '\f163'; -} - -.view-switch .view-excerpt:before { - content: '\f164'; -} - -.view-switch .view-grid:before { - content: '\f509'; -} - -.filter { - float: right; - margin: -5px 10px 0 0; -} - -.filter .subsubsub { - margin-right: -10px; - margin-top: 13px; -} -.screen-per-page { - width: 4em; -} - -#posts-filter .wp-filter { - margin-bottom: 0; -} - -#posts-filter fieldset { - float: right; - margin: 0 0 1em 1.5ex; - padding: 0; -} - -#posts-filter fieldset legend { - padding: 0 1px .2em 0; -} - -p.pagenav { - margin: 0; - display: inline; -} - -.pagenav span { - font-weight: 600; - margin: 0 6px; -} - -.row-title { - font-size: 14px !important; - font-weight: 600; -} - -.column-comment .comment-author { - margin-bottom: 0.6em; -} - -.column-author img, -.column-username img, -.column-comment .comment-author img { - float: right; - margin-left: 10px; - margin-top: 1px; -} - -.row-actions { - color: #ddd; - font-size: 13px; - visibility: hidden; - padding: 2px 0 0; -} - -tr:hover .row-actions, -.mobile .row-actions, -.row-actions.visible, -div.comment-item:hover .row-actions { - visibility: visible; -} - -/* deprecated */ -.row-actions-visible { - padding: 2px 0 0; -} - - -/*------------------------------------------------------------------------------ - 10.1 - Inline Editing -------------------------------------------------------------------------------*/ - -/* -.quick-edit* is for Quick Edit -.bulk-edit* is for Bulk Edit -.inline-edit* is for everything -*/ - -/* Layout */ - -#wpbody-content .inline-edit-row fieldset { - font-size: 12px; - float: right; - margin: 0; - padding: 0; - width: 100%; -} - -tr.inline-edit-row td, -#wpbody-content .inline-edit-row fieldset .inline-edit-col { - padding: 0 0.5em; -} - -#wpbody-content .quick-edit-row-post .inline-edit-col-left { - width: 40%; -} - -#wpbody-content .quick-edit-row-post .inline-edit-col-right { - width: 39%; -} - -#wpbody-content .inline-edit-row-post .inline-edit-col-center { - width: 20%; -} - -#wpbody-content .quick-edit-row-page .inline-edit-col-left { - width: 50%; -} - -#wpbody-content .quick-edit-row-page .inline-edit-col-right, -#wpbody-content .bulk-edit-row-post .inline-edit-col-right { - width: 49%; -} - -#wpbody-content .bulk-edit-row .inline-edit-col-left { - width: 30%; -} - -#wpbody-content .bulk-edit-row-page .inline-edit-col-right { - width: 69%; -} - -#wpbody-content .bulk-edit-row .inline-edit-col-bottom { - float: left; - width: 69%; -} - -#wpbody-content .inline-edit-row-page .inline-edit-col-right { - margin-top: 27px; -} - -.inline-edit-row fieldset .inline-edit-group { - clear: both; - line-height: 2.5; -} - -.inline-edit-row fieldset .inline-edit-group:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -.inline-edit-row p.submit { - clear: both; - padding: 0.5em; - margin: 0.5em 0 0; -} - -.inline-edit-row span.error { - line-height: 22px; - margin: 0 15px; - padding: 3px 5px; -} - -/* Positioning */ -.inline-edit-row h4 { - margin: .2em 0; - padding: 0; - line-height: 2.5; -} -.inline-edit-row fieldset span.title, -.inline-edit-row fieldset span.checkbox-title { - margin: 0; - padding: 0; -} - -.inline-edit-row fieldset label, -.inline-edit-row fieldset span.inline-edit-categories-label { - display: block; - margin: .2em 0; - line-height: 2.5; -} - -.inline-edit-row fieldset.inline-edit-date label { - display: inline-block; - margin: 0; - line-height: 1.5; - vertical-align: baseline; -} - -.inline-edit-row fieldset label.inline-edit-tags { - margin-top: 0; -} - -.inline-edit-row fieldset label.inline-edit-tags span.title { - margin: .2em 0; - width: auto; -} - -.inline-edit-row fieldset label span.title, -.inline-edit-row fieldset.inline-edit-date legend { - display: block; - float: right; - width: 6em; - line-height: 2.5; -} - -#posts-filter fieldset.inline-edit-date legend { - padding: 0; -} - -.inline-edit-row fieldset.inline-edit-date select { - margin: 1px; - line-height: 28px; -} - -.inline-edit-row fieldset label span.input-text-wrap, -.inline-edit-row fieldset .timestamp-wrap { - display: block; - margin-right: 6em; -} - -.quick-edit-row-post fieldset.inline-edit-col-right label span.title { - width: auto; - padding-left: 0.5em; -} - -.inline-edit-row .inline-edit-or { - margin: .2em 0 .2em 6px; - line-height: 2.5; -} - -.inline-edit-row .input-text-wrap input[type=text] { - width: 100%; -} - -.inline-edit-row fieldset label input[type=checkbox] { - vertical-align: middle; -} - -.inline-edit-row fieldset label textarea { - width: 100%; - height: 4em; - vertical-align: top; -} - -#wpbody-content .bulk-edit-row fieldset .inline-edit-group label { - max-width: 50%; -} - -#wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child { - margin-left: 0.5em -} - -.inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input { - width: 6em; -} - -/* Styling */ -.inline-edit-row h4 { - text-transform: uppercase; -} - -.inline-edit-row fieldset span.title, -.inline-edit-row fieldset span.checkbox-title { - font-style: italic; -} - -/* Specific Elements */ -.inline-edit-row fieldset .inline-edit-date { - float: right; -} - -.inline-edit-row fieldset input[name=jj], -.inline-edit-row fieldset input[name=hh], -.inline-edit-row fieldset input[name=mn] { - font-size: 12px; - width: 2.3em; -} - -.inline-edit-row fieldset input[name=aa] { - font-size: 12px; - width: 3.5em; -} - -.inline-edit-row fieldset label input.inline-edit-password-input { - width: 8em; -} - -ul.cat-checklist { - height: 12em; - border: solid 1px #ddd; - overflow-y: scroll; - padding: 0 5px; - margin: 0; - background-color: #fff; -} - -#bulk-titles { - display: block; - height: 12em; - border: 1px solid #ddd; - overflow-y: scroll; - padding: 0 5px; - margin: 0 0 5px; -} - -.inline-edit-row fieldset ul.cat-checklist li, -.inline-edit-row fieldset ul.cat-checklist input { - margin: 0; - position: relative; /* RTL fix, #WP27629 */ -} - -.inline-edit-row fieldset ul.cat-checklist label, -.inline-edit-row #bulk-titles div { - font-style: normal; - font-size: 11px; -} - -.inline-edit-row fieldset label input.inline-edit-menu-order-input { - width: 3em; -} - -.inline-edit-row fieldset label input.inline-edit-slug-input { - width: 75%; -} - -.inline-edit-row #post_parent, -.inline-edit-row select[name="page_template"] { - max-width: 80%; -} - -.ie8 .inline-edit-row #post_parent, -.ie8 .inline-edit-row select[name="page_template"] { - width: 250px; -} - -.quick-edit-row-post fieldset label.inline-edit-status { - float: right; -} - -#bulk-titles { - line-height: 140%; -} -#bulk-titles div { - margin: 0.2em 0.3em; -} - -#bulk-titles div a { - cursor: pointer; - display: block; - float: right; - height: 18px; - margin: 0 -2px 0 3px; - overflow: hidden; - position: relative; - width: 20px; -} - -#bulk-titles div a:before { - position: relative; - top: -3px; -} - -/*------------------------------------------------------------------------------ - 17.0 - Plugins -------------------------------------------------------------------------------*/ - -.plugins tbody th.check-column, -.plugins tbody { - padding: 8px 2px 0 0; -} - -.plugins tbody th.check-column input[type=checkbox] { - margin-top: 4px; -} - -#update-plugins-table tbody td p { - margin-top: 0; -} - -#update-plugins-table tbody td p strong { - font-size: 14px; -} - -.plugins thead td.check-column, -.plugins tfoot td.check-column, -.plugins .inactive th.check-column { - padding-right: 6px; -} - -#update-plugins-table thead td.check-column, -#update-plugins-table tfoot td.check-column { - padding-top: 11px; -} - -.plugins, -.plugins th, -.plugins td { - color: #000; -} - -.plugins tr { - background: #fff; -} - -.plugins p { - margin: 0 4px; - padding: 0; -} - -.plugins .desc p { - margin: 0 0 8px; -} - -.plugins td.desc { - line-height: 1.5em; -} - -.plugins .desc ul, -.plugins .desc ol { - margin: 0 2em 0 0; -} - -.plugins .desc ul { - list-style-type: disc; -} - -.plugins .row-actions { - font-size: 13px; - padding: 0; -} - -.plugins .inactive td, -.plugins .inactive th, -.plugins .active td, -.plugins .active th { - padding: 10px 9px; -} - -.plugins .active td, -.plugins .active th { - background-color: #f7fcfe; -} - -.plugins .update th, -.plugins .update td { - border-bottom: 0; -} - -.plugin-update-tr td { - border-top: 0; -} - -.plugins .inactive td, -.plugins .inactive th, -.plugins .active td, -.plugins .active th, -.plugin-install #the-list td, -.upgrade .plugins td, -.upgrade .plugins th { - -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); - box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); -} - -.plugins tr.active.plugin-update-tr + tr.inactive th, -.plugins tr.active.plugin-update-tr + tr.inactive td, -.plugins tr.active + tr.inactive th, -.plugins tr.active + tr.inactive td { - border-top: 1px solid rgba(0,0,0,0.03); - -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.02), inset 0 -1px 0 #e1e1e1; - box-shadow: inset 0 1px 0 rgba(0,0,0,0.02), inset 0 -1px 0 #e1e1e1; -} - -.plugins .update td, -.plugins .update th, -.upgrade .plugins tr:last-of-type td, -.upgrade .plugins tr:last-of-type th, -.plugins tr.active + tr.inactive.update th, -.plugins tr.active + tr.inactive.update td, -.plugins .updated td, -.plugins .updated th, -.plugins tr.active + tr.inactive.updated th, -.plugins tr.active + tr.inactive.updated td { - -webkit-box-shadow: none; - box-shadow: none; -} - -.plugins .active.update td, -.plugins .active.update th, -tr.active.update + tr.plugin-update-tr .plugin-update { - background-color: #fef7f1; -} - -.plugins .active th.check-column, -.plugin-update-tr.active td { - border-right: 4px solid #00a0d2; -} - -.plugins .active.update th.check-column, -.plugins .active.update + .plugin-update-tr .plugin-update { - border-right: 4px solid #d54e21; -} - -#wpbody-content .plugins .plugin-title, -#wpbody-content .plugins .theme-title { - padding-left: 12px; - white-space:nowrap; -} - -.plugins .inactive .plugin-title strong { - font-weight: 400; -} - -.plugins .second, -.plugins .row-actions { - padding: 0 0 5px; -} - -.plugins .update .second, -.plugins .update .row-actions, -.plugins .updated .second, -.plugins .updated .row-actions { - padding-bottom: 0; -} - -.plugins-php .widefat tfoot th, -.plugins-php .widefat tfoot td { - border-top-style: solid; - border-top-width: 1px; -} - -.plugin-update-tr .update-message { - font-size: 13px; - font-weight: normal; - margin: 0 31px 8px 10px; - padding: 6px 40px 8px 12px; - background-color: #f7f7f7; - background-color: rgba(0,0,0,0.03); -} - -.plugin-update-tr .update-message:before, -.plugin-card .update-now:before, -.plugin-card .install-now:before { - color: #d54e21; - display: inline-block; - font: normal 20px/1 'dashicons'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - vertical-align: top; -} - -.plugin-update-tr .update-message:before, -.plugin-card .update-now:before { - content: '\f463'; -} - -.plugin-update-tr .update-message:before { - margin: 0 -30px 0 10px; -} - -.plugin-card .update-now:before, -.plugin-card .install-now:before { - margin: 3px -2px 0 5px; -} - -.plugin-update-tr .updating-message:before, -.plugin-card .updating-message:before { - content: '\f463'; - -webkit-animation: rotation 2s infinite linear; - animation: rotation 2s infinite linear; -} - -@-webkit-keyframes rotation { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(-359deg); - transform: rotate(-359deg); - } -} - -@keyframes rotation { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(-359deg); - transform: rotate(-359deg); - } -} - -.plugin-update-tr .updated-message:before, -.plugin-card .updated-message:before { - color: #79ba49; - content: '\f147'; -} - -.wp-list-table.plugins tbody tr.plugin-update-tr td.plugin-update { - overflow: hidden; /* clearfix */ - padding: 0; - -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); - box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); -} - -/* update notices for active plugins */ -tr.active + tr.plugin-update-tr .plugin-update { - background-color: #f7fcfe; -} - -tr.active + tr.plugin-update-tr:not(.updated) .plugin-update .update-message { - background-color: #fcf3ef; -} - -.plugin-install-php h3 { - clear: both; -} - -.plugin-install-php h4 { - margin: 2.5em 0 8px; -} - -.plugin-install-php .wp-filter { - margin-bottom: 0; -} - -/* Plugin card table view */ -.plugin-group { - overflow: hidden; /* clearfix */ - margin-top: 1.5em; -} - -.plugin-group h3 { - margin-top: 0; -} - -.plugin-card { - float: right; - margin: 0 8px 16px; - width: 48.5%; - width: -webkit-calc( 50% - 8px ); - width: calc( 50% - 8px ); - background-color: #fff; - border: 1px solid #dedede; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.plugin-card:nth-child(odd) { - clear: both; - margin-right: 0; -} - -.plugin-card:nth-child(even) { - margin-left: 0; -} - -@media screen and ( min-width: 1600px ) { - .plugin-card { - width: 30%; - width: -webkit-calc( 33.1% - 8px ); - width: calc( 33.1% - 8px ); - } - - .plugin-card:nth-child(odd) { - clear: none; - margin-right: 8px; - } - - .plugin-card:nth-child(even) { - margin-left: 8px; - } - - .plugin-card:nth-child(3n+1) { - clear: both; - margin-right: 0; - } - - .plugin-card:nth-child(3n) { - margin-left: 0; - } -} - -.plugin-card-top { - position: relative; - padding: 20px 20px 10px; - min-height: 135px; -} - -div.action-links, -.plugin-action-buttons { - margin: 0; /* Override existing margins */ -} - -.plugin-card h4 { - margin: 0 0 12px; - font-size: 18px; - line-height: 1.3; -} - -.plugin-card .name, -.plugin-card .desc { - margin-right: 148px; /* icon + margin */ - margin-left: 120px; /* action links */ -} - -.plugin-card .action-links { - position: absolute; - top: 20px; - left: 20px; - width: 120px; -} - -.plugin-action-buttons { - clear: left; - float: left; - margin-right: 2em; - margin-bottom: 1em; - text-align: left; -} - -.plugin-action-buttons li { - margin-bottom: 10px; -} - -.plugin-card-bottom { - clear: both; - padding: 12px 20px; - background-color: #fafafa; - border-top: 1px solid #dedede; - overflow: hidden; -} - -.plugin-card-bottom .star-rating { - display: inline; -} - -.plugin-card .column-rating { - line-height: 23px; -} - -.plugin-card .column-rating, -.plugin-card .column-updated { - margin-bottom: 4px; -} - -.plugin-card .column-rating, -.plugin-card .column-downloaded { - float: right; - clear: right; - max-width: 180px; -} - -.plugin-card .column-updated, -.plugin-card .column-compatibility { - text-align: left; - float: left; - clear: left; - width: 65%; - width: -webkit-calc( 100% - 180px ); - width: calc( 100% - 180px ); -} - -.plugin-card .column-compatibility span:before { - font: normal 20px/.5 'dashicons'; - speak: none; - display: inline-block; - padding: 0; - top: 4px; - right: -2px; - position: relative; - vertical-align: top; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; - color: #444; -} - -.plugin-card .compatibility-incompatible:before { - content: '\f158'; -} - -.plugin-card .compatibility-compatible:before { - content: '\f147'; -} - -.plugin-icon { - position: absolute; - top: 20px; - right: 20px; - width: 128px; - height: 128px; - margin: 0 0 20px 20px; -} - -.plugin-icon img { - width: 128px; - height: 128px; -} - -.no-plugin-results { - color: #999; - font-size: 18px; - font-style: normal; - margin: 0; - padding: 100px 0 0; - text-align: center; -} - -/* ms */ -/* Background Color for Site Status */ -.wp-list-table tr.site-deleted { - background: #ff8573; -} -.wp-list-table tr.site-spammed { - background: #faafaa; -} -.wp-list-table tr.site-archived { - background: #ffebe8; -} -.wp-list-table tr.site-mature { - background: #fecac2; -} - -.sites.fixed .column-lastupdated, -.sites.fixed .column-registered { - width: 20%; -} - -.sites.fixed .column-users { - width: 80px; -} - -/* =Media Queries --------------------------------------------------------------- */ - -@media screen and ( max-width: 1100px ) and ( min-width: 782px ), ( max-width: 480px ) { - .plugin-card .action-links { - position: static; - margin-right: 148px; - width: auto; - } - - .plugin-action-buttons { - float: none; - margin: 1em 0 0; - text-align: right; - } - - .plugin-action-buttons li { - display: inline-block; - vertical-align: middle; - } - - .plugin-action-buttons li .button { - margin-left: 20px; - } - - .plugin-card .name, - .plugin-card .desc { - margin-left: 0; - } - - .plugin-card .desc p:first-of-type { - margin-top: 0; - } -} - -@media screen and ( max-width: 782px ) { - /* WP List Table Options & Filters */ - .tablenav { - height: auto; - } - - .tablenav.top { - margin: 20px 0 5px 0; - } - - .tablenav.bottom { - position: relative; - margin-top: 15px; - } - - .tablenav br { - display: none; - } - - .tablenav br.clear { - display: block; - } - - .tablenav.top .actions, - .tablenav .view-switch { - display: none; - } - - .view-switch a { - width: 36px; - height: 36px; - line-height: 33px; - } - - /* Pagination */ - .tablenav.top .displaying-num { - display: none; - } - - .tablenav.bottom .displaying-num { - position: absolute; - left: 0; - top: 11px; - margin: 0; - font-size: 14px; - } - - .tablenav .tablenav-pages { - width: 100%; - height: auto; - text-align: center; - margin: 0 0 25px; - } - - .tablenav.bottom .tablenav-pages { - margin-top: 25px; - } - - .tablenav.top .tablenav-pages.one-page { - display: none; - } - - .tablenav.bottom .tablenav-pages.one-page { - margin: 15px 0 0 0; - height: 0; - } - - .tablenav-pages .pagination-links { - font-size: 16px; - } - - .tablenav-pages .pagination-links a, - .tablenav-pages-navspan { - padding: 9px 16px 12px; - font-size: 18px; - } - - .tablenav-pages-navspan { - height: 18px; - } - - .tablenav-pages .pagination-links .current-page { - padding: 8px 9px 9px; - font-size: 16px; - } - - /* WP List Table Adjustments: General */ - .form-wrap > p { - display: none; - } - - .comment-count { - font-size: 14px; - } - - .wp-list-table th.column-primary ~ th, - .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) { - display: none; - } - - .wp-list-table thead th.column-primary { - width: 100%; - } - - /* Checkboxes need to show */ - .wp-list-table tr th.check-column { - display: table-cell; - width: 35px; - } - - .wp-list-table .column-primary .toggle-row { - display: block; - } - - .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) { - position: relative; - clear: both; - display: block; - width: auto !important; /* needs to override some columns that are more specifically targeted */ - } - - .wp-list-table td.column-primary { - padding-left: 50px; /* space for toggle button */ - } - - .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) { - padding: 3px 35% 3px 8px; - } - - .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before { - position: absolute; - right: 10px; /* match padding of regular table cell */ - display: block; - overflow: hidden; - width: 32%; /* leave a little space for a gutter */ - content: attr(data-colname); - white-space: nowrap; - text-overflow: ellipsis; - } - - .wp-list-table .is-expanded td:not(.hidden) { - display: block !important; - overflow: hidden; /* clearfix */ - } - - /* Special cases */ - .widefat .num, - .column-posts { - text-align: right; - } - - #comments-form .fixed .column-author { - display: none !important; - } - - .fixed .column-comment .comment-author { - display: block; - } - - #the-comment-list .is-expanded td { - -webkit-box-shadow: none; - box-shadow: none; - } - - #the-comment-list .is-expanded td:last-child { - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); - } - - /* Show comment bubble as text instead */ - .post-com-count .screen-reader-text { - position: static; - width: auto; - height: auto; - margin: 0; - } - - .column-response .post-com-count-no-comments:after, - .column-response .post-com-count-approved:after, - .column-comments .post-com-count-no-comments:after, - .column-comments .post-com-count-approved:after { - content: none; - } - - .column-response .post-com-count [aria-hidden="true"], - .column-comments .post-com-count [aria-hidden="true"] { - display: none; - } - - .column-response .post-com-count-wrapper, - .column-comments .post-com-count-wrapper { - white-space: normal; - } - - .column-response .post-com-count-wrapper > a, - .column-comments .post-com-count-wrapper > a { - display: block; - } - - .column-response .post-com-count-no-comments, - .column-response .post-com-count-approved, - .column-comments .post-com-count-no-comments, - .column-comments .post-com-count-approved { - margin-top: 0; - margin-left: 0.5em; - } - - .column-response .post-com-count-pending, - .column-comments .post-com-count-pending { - position: static; - height: auto; - min-width: 0; - padding: 0; - border: none; - -webkit-border-radius: 0; - border-radius: 0; - background: none; - color: #bb2a2a; - font-size: inherit; - line-height: inherit; - text-align: right; - } - - .column-response .post-com-count-pending:hover, - .column-comments .post-com-count-pending:hover { - color: #dc3232; - } - - .widefat thead .check-column, .widefat tfoot .check-column { - padding: 10px 0 10px; - } - - .widefat * { - word-wrap: normal; - } - - /* Quick Edit and Bulk Edit */ - #wpbody-content .quick-edit-row-post .inline-edit-col-left, - #wpbody-content .quick-edit-row-post .inline-edit-col-right, - #wpbody-content .inline-edit-row-post .inline-edit-col-center, - #wpbody-content .quick-edit-row-page .inline-edit-col-left, - #wpbody-content .quick-edit-row-page .inline-edit-col-right, - #wpbody-content .bulk-edit-row-post .inline-edit-col-right, - #wpbody-content .bulk-edit-row .inline-edit-col-left, - #wpbody-content .bulk-edit-row-page .inline-edit-col-right, - #wpbody-content .bulk-edit-row .inline-edit-col-bottom { - float: none; - width: 100%; - } - - #wpbody-content .quick-edit-row fieldset .inline-edit-col label, - #wpbody-content .quick-edit-row fieldset .inline-edit-group label, - #wpbody-content .bulk-edit-row fieldset .inline-edit-col label, - #wpbody-content .bulk-edit-row fieldset .inline-edit-group label { - max-width: none; - float: none; - margin-bottom: 5px; - } - - #wpbody .bulk-edit-row fieldset select { - display: block; - width: 100%; - max-width: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - - .inline-edit-row fieldset ul.cat-checklist label, - .inline-edit-row #bulk-titles div { - font-size: 16px; - } - - .inline-edit-row fieldset label span.title, - .inline-edit-row fieldset.inline-edit-date legend { - float: none; - } - - .inline-edit-row fieldset label.inline-edit-tags { - padding: 0 0.5em; - } - - .inline-edit-row fieldset .inline-edit-col label.inline-edit-tags { - padding: 0; - } - - .inline-edit-row fieldset label span.input-text-wrap, - .inline-edit-row fieldset .timestamp-wrap { - margin-right: 0; - } - - .inline-edit-row fieldset input[name=jj], - .inline-edit-row fieldset input[name=hh], - .inline-edit-row fieldset input[name=mn] { - width: 3em; - } - - .inline-edit-row fieldset input[name=aa] { - width: 4.5em; - } - - .inline-edit-row .inline-edit-or { - margin: 0 0 0 6px; - } - - #bulk-titles div { - margin: 0.8em 0.3em; - } - - #bulk-titles div a { - height: 22px; - } - - /* Updates */ - #wpbody-content #update-themes-table .plugin-title { - width: auto; - } - - /* Links */ - .link-manager-php #posts-filter { - margin-top: 25px; - } - - .link-manager-php .tablenav.bottom { - overflow: hidden; - } - - /* List tables that don't toggle rows */ - .comments-box .toggle-row, - .wp-list-table.plugins .toggle-row { - display: none; - } - - /* Plugin/Theme Management */ - #wpbody-content .wp-list-table.plugins td { - display: block; - width: auto; - padding: 10px 9px; /* reset from other list tables that have a label at this width */ - } - - #wpbody-content .wp-list-table.plugins .column-description { - padding-top: 2px; - } - - .wp-list-table.plugins .plugin-title, - .wp-list-table.plugins .theme-title { - padding-top: 13px; - padding-bottom: 4px; - } - - .plugins #the-list tr > td:not(:last-child), - .plugins #the-list .update th, - .plugins #the-list .update td, - .wp-list-table.plugins #the-list .theme-title { - -webkit-box-shadow: none; - box-shadow: none; - border-top: none; - } - - .plugins #the-list tr td { - border-top: none; - } - - .plugins tbody { - padding: 1px 0 0; - } - - .plugins tr.active + tr.inactive th.check-column, - .plugins tr.active + tr.inactive td.column-description, - .plugins .plugin-update-tr:before { - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); - } - - .plugins tr.active + tr.inactive th.check-column, - .plugins tr.active + tr.inactive td { - border-top: none; - } - - /* mimic the checkbox th */ - .plugins .plugin-update-tr:before { - content: ''; - display: table-cell; - } - - .plugins .active.update + .plugin-update-tr:before { - border-right: 4px solid #d54e21; - background-color: #fef7f1; - } - - .plugins #the-list .plugin-update-tr .plugin-update { - border-right: none; - } - - .plugin-update-tr .update-message { - margin-right: 0; - } - - .wp-list-table.plugins .plugin-title strong, - .wp-list-table.plugins .theme-title strong { - font-size: 1.4em; - line-height: 1.6em; - } - - /* Add New plugins page */ - table.plugin-install .column-name, - table.plugin-install .column-version, - table.plugin-install .column-rating, - table.plugin-install .column-description { - display: block; - width: auto; - } - - table.plugin-install th.column-name, - table.plugin-install th.column-version, - table.plugin-install th.column-rating, - table.plugin-install th.column-description { - display: none; - } - - table.plugin-install td.column-name strong { - font-size: 1.4em; - line-height: 1.6em; - } - - table.plugin-install #the-list td { - -webkit-box-shadow: none; - box-shadow: none; - } - - table.plugin-install #the-list tr { - display: block; - -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); - box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); - } - - .plugin-card { - margin-right: 0; - margin-left: 0; - width: 100%; - } -} diff --git a/wp-admin/css/list-tables.css b/wp-admin/css/list-tables.css deleted file mode 100644 index fdaa733abe..0000000000 --- a/wp-admin/css/list-tables.css +++ /dev/null @@ -1,2113 +0,0 @@ -.response-links { - display: block; - margin-bottom: 1em; -} - -.response-links a { - display: block; -} - -.response-links a.comments-edit-item-link { - font-weight: 600; -} - -.response-links a.comments-view-item-link { - font-size: 12px; -} - -.post-com-count-wrapper strong { - font-weight: 400; -} - -.comments-view-item-link { - display: inline-block; - clear: both; -} - -.column-response .post-com-count-wrapper, -.column-comments .post-com-count-wrapper { - white-space: nowrap; - word-wrap: normal; -} - -/* comments bubble common */ -.column-response .post-com-count, -.column-comments .post-com-count { - display: inline-block; - vertical-align: top; -} - -/* comments bubble approved */ -.column-response .post-com-count-no-comments, -.column-response .post-com-count-approved, -.column-comments .post-com-count-no-comments, -.column-comments .post-com-count-approved { - margin-top: 5px; -} - -.column-response .comment-count-no-comments, -.column-response .comment-count-approved, -.column-comments .comment-count-no-comments, -.column-comments .comment-count-approved { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - display: block; - padding: 0 8px; - min-width: 24px; - height: 2em; - -webkit-border-radius: 5px; - border-radius: 5px; - background-color: #72777c; - color: #fff; - font-size: 11px; - line-height: 21px; - text-align: center; -} - -.ie8 .column-response .comment-count-no-comments, -.ie8 .column-response .comment-count-approved, -.ie8 .column-comments .comment-count-no-comments, -.ie8 .column-comments .comment-count-approved { - min-width: 0; -} - -.column-response .post-com-count-no-comments:after, -.column-response .post-com-count-approved:after, -.column-comments .post-com-count-no-comments:after, -.column-comments .post-com-count-approved:after { - content: ""; - display: block; - margin-left: 8px; - width: 0; - height: 0; - border-top: 5px solid #72777c; - border-right: 5px solid transparent; -} - -.column-response .post-com-count-approved:hover .comment-count-approved, -.column-response .post-com-count-approved:focus .comment-count-approved, -.column-comments .post-com-count-approved:hover .comment-count-approved, -.column-comments .post-com-count-approved:focus .comment-count-approved { - background: #0073aa; -} - -.column-response .post-com-count-approved:hover:after, -.column-response .post-com-count-approved:focus:after, -.column-comments .post-com-count-approved:hover:after, -.column-comments .post-com-count-approved:focus:after { - border-top-color: #0073aa; -} - -/* comments bubble pending */ -.column-response .post-com-count-pending, -.column-comments .post-com-count-pending { - position: relative; - left: -3px; - padding: 0 5px; - min-width: 7px; - height: 17px; - border: 2px solid #fff; - -webkit-border-radius: 11px; - border-radius: 11px; - background: #ca4a1f; - color: #fff; - font-size: 9px; - line-height: 17px; - text-align: center; -} - -/* comments */ - -.commentlist li { - padding: 1em 1em .2em; - margin: 0; - border-bottom: 1px solid #ccc; -} - -.commentlist li li { - border-bottom: 0; - padding: 0; -} - -.commentlist p { - padding: 0; - margin: 0 0 .8em; -} - -#submitted-on, -.submitted-on { - color: #777; -} - -/* reply to comments */ -#replyrow td { - padding: 2px; -} - -#replysubmit { - margin: 0; - padding: 0 5px 3px; - text-align: center; -} - -#replysubmit .button { - margin-right: 5px; -} - -#replysubmit .error { - color: red; - line-height: 21px; - text-align: center; -} - -#replyrow h5 { - margin: .2em 0 0; - padding: 0 5px; - line-height: 1.4em; - font-size: 1em; -} - -#edithead .inside, -#commentsdiv #edithead .inside { - float: left; - padding: 3px 0 2px 5px; - margin: 0; - text-align: center; -} - -#edithead .inside input { - width: 180px; -} - -#edithead label { - padding: 2px 0; -} - -#replycontainer { - padding: 5px; -} - -#replycontent { - height: 120px; - -webkit-box-shadow: none; - box-shadow: none; -} - -#replyerror { - border-color: #ddd; - background-color: #f9f9f9; -} - -/* @todo: is this used? */ -.commentlist .avatar { - vertical-align: text-top; -} - -#the-comment-list tr.undo, -#the-comment-list div.undo { - background-color: #f4f4f4; -} - -#the-comment-list .unapproved th, -#the-comment-list .unapproved td { - background-color: #fef7f1; -} - -#the-comment-list .unapproved th.check-column { - border-left: 4px solid #d54e21; -} - -#the-comment-list .unapproved th.check-column input { - margin-left: 4px; -} - -#the-comment-list .approve a { - color: #006505; -} - -#the-comment-list .unapprove a { - color: #d98500; -} - -#the-comment-list th, -#the-comment-list td { - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); -} - -#the-comment-list tr:last-child th, -#the-comment-list tr:last-child td { - -webkit-box-shadow: none; - box-shadow: none; -} - -#the-comment-list tr.unapproved + tr.approved th, -#the-comment-list tr.unapproved + tr.approved td { - border-top: 1px solid rgba(0, 0, 0, 0.03); -} - -/* table vim shortcuts */ -.vim-current, -.vim-current th, -.vim-current td { - background-color: #e4f2fd !important; -} - -th .comment-grey-bubble { - height: 16px; - width: 16px; -} - -th .comment-grey-bubble:before { - content: '\f101'; - font: normal 20px/.5 'dashicons'; - speak: none; - display: inline-block; - padding: 0; - top: 4px; - left: -4px; - position: relative; - vertical-align: top; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; - color: #444; -} - -/*------------------------------------------------------------------------------ - 10.0 - List Posts (/Pages/etc) -------------------------------------------------------------------------------*/ - -table.fixed { - table-layout: fixed; -} - -.fixed .column-rating, -.fixed .column-visible { - width: 8%; -} - -.fixed .column-posts, -.fixed .column-date, -.fixed .column-parent, -.fixed .column-links, -.fixed .column-author, -.fixed .column-format { - width: 10%; -} - -.fixed .column-posts { - width: 74px; -} - -.fixed .column-comment .comment-author { - display: none; -} - -.fixed .column-response, -.fixed .column-categories, -.fixed .column-tags, -.fixed .column-rel, -.fixed .column-role { - width: 15%; -} - -.fixed .column-slug { - width: 25%; -} - -.fixed .column-locations { - width: 35%; -} - -.fixed .column-comments { - width: 5.5em; - padding: 8px 0; - text-align: left; -} - -.fixed .column-comments .vers { - padding-left: 3px; -} - -td.column-title strong, -td.plugin-title strong { - display: block; - margin-bottom: .2em; - font-size: 14px; -} - -td.column-title p, -td.plugin-title p { - margin: 6px 0; -} - -/* Media file column */ -table.media .column-title .media-icon { - float: left; - min-height: 60px; - margin: 0 9px 0 0; -} - -table.media .column-title .media-icon img { - max-width: 60px; - height: auto; - vertical-align: top; /* Remove descender white-space. */ -} - -table.media .column-title .has-media-icon ~ .row-actions { - margin-left: 70px; /* 60px image + margin */ -} - -table.media .column-title .filename { - margin-bottom: 0.2em; -} - -/* @todo: pick a consistent list table selector */ -.wp-list-table a { - -webkit-transition: none; - transition: none; -} - -#the-list tr:last-child td, -#the-list tr:last-child th { - border-bottom: none !important; - -webkit-box-shadow: none; - box-shadow: none; -} - -#comments-form .fixed .column-author { - width: 20%; -} - -#commentsdiv.postbox .inside { - margin: 0; - padding: 0; -} - -#commentsdiv .inside .row-actions { - line-height:18px; -} - -#commentsdiv .inside .column-author { - width: 25%; -} - -#commentsdiv .column-comment p { - margin: 0.6em 0; - padding: 0; -} - -#commentsdiv #replyrow td { - padding: 0; -} - -#commentsdiv p { - padding: 8px 10px; - margin: 0; -} - -#commentsdiv .comments-box { - border: 0 none; -} - -#commentsdiv .comments-box thead th, -#commentsdiv .comments-box thead td { - background: transparent; - padding: 0 7px 4px; - font-style: italic; -} - -#commentsdiv .comments-box tr:last-child td { - border-bottom: 0 none; -} - -#commentsdiv #edithead .inside input { - vertical-align: middle; - width: 160px; -} - -.sorting-indicator { - display: none; - width: 10px; - height: 4px; - margin-top: 8px; - margin-left: 7px; -} - -.sorting-indicator:before { - content: '\f142'; - font: normal 20px/1 'dashicons'; - speak: none; - display: inline-block; - padding: 0; - top: -4px; - left: -8px; - color: #444; - line-height: 10px; - position: relative; - vertical-align: top; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; - color: #444; -} - -.column-comments .sorting-indicator:before { - top: 0; - left: -10px; -} - -th.sorted.asc .sorting-indicator:before, -th.desc:hover span.sorting-indicator:before, -th.desc a:focus span.sorting-indicator:before { - content: '\f142'; -} - -th.sorted.desc .sorting-indicator:before, -th.asc:hover span.sorting-indicator:before, -th.asc a:focus span.sorting-indicator:before { - content: '\f140'; -} - -.wp-list-table .toggle-row { - position: absolute; - right: 8px; - top: 10px; - display: none; - padding: 0; - width: 40px; - height: 40px; - border: none; - outline: none; - background: transparent; -} - -.wp-list-table .toggle-row:hover { - cursor: pointer; -} - -.wp-list-table .toggle-row:focus:before { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.ie8 .wp-list-table .toggle-row:focus:before { - outline: #5b9dd9 solid 1px; -} - -.wp-list-table .toggle-row:active { - -webkit-box-shadow: none; - box-shadow: none; -} - -.wp-list-table .toggle-row:before { - position: absolute; - top: -5px; - left: 10px; - -webkit-border-radius: 50%; - border-radius: 50%; - display: block; - padding: 1px 2px 1px 0; - color: #666; - content: '\f140'; - font: normal 20px/1 'dashicons'; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - speak: none; -} - -.wp-list-table .is-expanded .toggle-row:before { - content: '\f142'; -} - -tr.wp-locked .locked-indicator { - margin-left: 6px; - height: 20px; - width: 16px; -} - -tr.wp-locked .locked-indicator:before { - color: #82878c; - content: '\f160'; - display: inline-block; - float: left; - font: normal 20px/1 'dashicons'; - speak: none; - vertical-align: middle; - margin-left: 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -tr.wp-locked .check-column label, -tr.wp-locked .check-column input[type="checkbox"], -tr.wp-locked .row-actions .inline, -tr.wp-locked .row-actions .trash { - display: none; -} - -tr .locked-info { - height: 0; - opacity: 0; -} - -tr.wp-locked .locked-info { - margin-top: 8px; - height: auto; - opacity: 1; -} - -.locked-text { - vertical-align: top; -} - -tr.locked-info, tr.wp-locked .locked-info { - -webkit-transition: height 1s, opacity 0.5s; - transition: height 1s, opacity 0.5s; -} - -.fixed .column-comments .sorting-indicator { - margin-top: 3px; -} - -#menu-locations-wrap .widefat { - width: 60%; -} - -.widefat th.sortable, -.widefat th.sorted { - padding: 0; -} - -th.sortable a, -th.sorted a { - display: block; - overflow: hidden; - padding: 7px 7px 8px 10px; -} - -.fixed .column-comments.sortable a, -.fixed .column-comments.sorted a { - padding: 8px 0; -} - -th.sortable a span, -th.sorted a span { - float: left; - cursor: pointer; -} - -th.sorted .sorting-indicator, -th.desc:hover span.sorting-indicator, -th.desc a:focus span.sorting-indicator, -th.asc:hover span.sorting-indicator, -th.asc a:focus span.sorting-indicator { - display: block; -} - -/* Bulk Actions */ -.tablenav-pages a, -.tablenav-pages-navspan { - font-weight: 600; - padding: 0 2px; -} - -.tablenav-pages .current-page { - margin: 0 2px 0 0; - padding-bottom: 5px; - font-size: 13px; - text-align: center; -} - -.tablenav .total-pages { - margin-right: 2px; -} - -.tablenav #table-paging { - margin-left: 2px; -} - -.tablenav a.button-secondary { - display: block; - margin: 3px 8px 0 0; -} - -.tablenav { - clear: both; - height: 30px; - margin: 6px 0 4px; - vertical-align: middle; -} - -.tablenav.themes { - max-width: 98%; -} - -.tablenav .tablenav-pages { - float: right; - height: 28px; - margin-top: 3px; - cursor: default; - color: #555; -} - -.tablenav .no-pages, -.tablenav .one-page .pagination-links { - display: none; -} - -.tablenav .tablenav-pages a, -.tablenav-pages span.current { - text-decoration: none; - padding: 3px 6px; -} - -.tablenav .tablenav-pages a, -.tablenav-pages-navspan { - display: inline-block; - min-width: 17px; - border: 1px solid #d2d2d2; - padding: 3px 5px 7px; - background: #e4e4e4; - font-size: 16px; - line-height: 1; - font-weight: normal; - text-align: center; -} - -.tablenav-pages-navspan { - height: 16px; - border-color: #e8e8e8; - background: #ebebeb; - color: #b4b4b4; -} - -.tablenav .tablenav-pages a:hover, -.tablenav .tablenav-pages a:focus { - border-color: #5b9dd9; - color: #fff; - background: #00a0d2; - -webkit-box-shadow: none; - box-shadow: none; - outline: none; /* IE8 */ -} - -.tablenav .displaying-num { - margin-right: 7px; -} - -.tablenav .one-page .displaying-num { - display: inline-block; - margin-top: 5px; - margin-right: 0; -} - -.tablenav .actions { - overflow: hidden; - padding: 2px 8px 0 0; -} - -.wp-filter .actions { - display: inline-block; - vertical-align: middle; -} - -.tablenav .delete { - margin-right: 20px; -} - -/* @todo: unclear if the following tablenav rules are actually used. -classes exist in paginate_links() but not seen in list table output. */ -.tablenav .dots { - border-color: transparent; -} - -.tablenav .next, -.tablenav .prev { - border-color: transparent; - color: #0073aa; -} - -.tablenav .next:hover, -.tablenav .prev:hover { - border-color: transparent; - color: #00a0d2; -} - -.tablenav .view-switch { - float: right; - margin: 0 5px; - padding-top: 3px; -} - -.wp-filter .view-switch { - display: inline-block; - vertical-align: middle; - padding: 12px 0; - margin: 0 8px 0 2px; -} - -.media-toolbar.wp-filter .view-switch { - margin: 0 12px 0 2px; -} - -.view-switch a { - float: left; - width: 28px; - height: 28px; - text-align: center; - line-height: 24px; - text-decoration: none; -} - -.view-switch a:before { - color: #b4b9be; - display: inline-block; - font: normal 20px/1 'dashicons'; - speak: none; - vertical-align: middle; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.view-switch a:hover:before, -.view-switch a:focus:before { - color: #727272; -} - -.view-switch a.current:before { - color: #0073aa; -} - -.view-switch .view-list:before { - content: '\f163'; -} - -.view-switch .view-excerpt:before { - content: '\f164'; -} - -.view-switch .view-grid:before { - content: '\f509'; -} - -.filter { - float: left; - margin: -5px 0 0 10px; -} - -.filter .subsubsub { - margin-left: -10px; - margin-top: 13px; -} -.screen-per-page { - width: 4em; -} - -#posts-filter .wp-filter { - margin-bottom: 0; -} - -#posts-filter fieldset { - float: left; - margin: 0 1.5ex 1em 0; - padding: 0; -} - -#posts-filter fieldset legend { - padding: 0 0 .2em 1px; -} - -p.pagenav { - margin: 0; - display: inline; -} - -.pagenav span { - font-weight: 600; - margin: 0 6px; -} - -.row-title { - font-size: 14px !important; - font-weight: 600; -} - -.column-comment .comment-author { - margin-bottom: 0.6em; -} - -.column-author img, -.column-username img, -.column-comment .comment-author img { - float: left; - margin-right: 10px; - margin-top: 1px; -} - -.row-actions { - color: #ddd; - font-size: 13px; - visibility: hidden; - padding: 2px 0 0; -} - -tr:hover .row-actions, -.mobile .row-actions, -.row-actions.visible, -div.comment-item:hover .row-actions { - visibility: visible; -} - -/* deprecated */ -.row-actions-visible { - padding: 2px 0 0; -} - - -/*------------------------------------------------------------------------------ - 10.1 - Inline Editing -------------------------------------------------------------------------------*/ - -/* -.quick-edit* is for Quick Edit -.bulk-edit* is for Bulk Edit -.inline-edit* is for everything -*/ - -/* Layout */ - -#wpbody-content .inline-edit-row fieldset { - font-size: 12px; - float: left; - margin: 0; - padding: 0; - width: 100%; -} - -tr.inline-edit-row td, -#wpbody-content .inline-edit-row fieldset .inline-edit-col { - padding: 0 0.5em; -} - -#wpbody-content .quick-edit-row-post .inline-edit-col-left { - width: 40%; -} - -#wpbody-content .quick-edit-row-post .inline-edit-col-right { - width: 39%; -} - -#wpbody-content .inline-edit-row-post .inline-edit-col-center { - width: 20%; -} - -#wpbody-content .quick-edit-row-page .inline-edit-col-left { - width: 50%; -} - -#wpbody-content .quick-edit-row-page .inline-edit-col-right, -#wpbody-content .bulk-edit-row-post .inline-edit-col-right { - width: 49%; -} - -#wpbody-content .bulk-edit-row .inline-edit-col-left { - width: 30%; -} - -#wpbody-content .bulk-edit-row-page .inline-edit-col-right { - width: 69%; -} - -#wpbody-content .bulk-edit-row .inline-edit-col-bottom { - float: right; - width: 69%; -} - -#wpbody-content .inline-edit-row-page .inline-edit-col-right { - margin-top: 27px; -} - -.inline-edit-row fieldset .inline-edit-group { - clear: both; - line-height: 2.5; -} - -.inline-edit-row fieldset .inline-edit-group:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -.inline-edit-row p.submit { - clear: both; - padding: 0.5em; - margin: 0.5em 0 0; -} - -.inline-edit-row span.error { - line-height: 22px; - margin: 0 15px; - padding: 3px 5px; -} - -/* Positioning */ -.inline-edit-row h4 { - margin: .2em 0; - padding: 0; - line-height: 2.5; -} -.inline-edit-row fieldset span.title, -.inline-edit-row fieldset span.checkbox-title { - margin: 0; - padding: 0; -} - -.inline-edit-row fieldset label, -.inline-edit-row fieldset span.inline-edit-categories-label { - display: block; - margin: .2em 0; - line-height: 2.5; -} - -.inline-edit-row fieldset.inline-edit-date label { - display: inline-block; - margin: 0; - line-height: 1.5; - vertical-align: baseline; -} - -.inline-edit-row fieldset label.inline-edit-tags { - margin-top: 0; -} - -.inline-edit-row fieldset label.inline-edit-tags span.title { - margin: .2em 0; - width: auto; -} - -.inline-edit-row fieldset label span.title, -.inline-edit-row fieldset.inline-edit-date legend { - display: block; - float: left; - width: 6em; - line-height: 2.5; -} - -#posts-filter fieldset.inline-edit-date legend { - padding: 0; -} - -.inline-edit-row fieldset.inline-edit-date select { - margin: 1px; - line-height: 28px; -} - -.inline-edit-row fieldset label span.input-text-wrap, -.inline-edit-row fieldset .timestamp-wrap { - display: block; - margin-left: 6em; -} - -.quick-edit-row-post fieldset.inline-edit-col-right label span.title { - width: auto; - padding-right: 0.5em; -} - -.inline-edit-row .inline-edit-or { - margin: .2em 6px .2em 0; - line-height: 2.5; -} - -.inline-edit-row .input-text-wrap input[type=text] { - width: 100%; -} - -.inline-edit-row fieldset label input[type=checkbox] { - vertical-align: middle; -} - -.inline-edit-row fieldset label textarea { - width: 100%; - height: 4em; - vertical-align: top; -} - -#wpbody-content .bulk-edit-row fieldset .inline-edit-group label { - max-width: 50%; -} - -#wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child { - margin-right: 0.5em -} - -.inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input { - width: 6em; -} - -/* Styling */ -.inline-edit-row h4 { - text-transform: uppercase; -} - -.inline-edit-row fieldset span.title, -.inline-edit-row fieldset span.checkbox-title { - font-style: italic; -} - -/* Specific Elements */ -.inline-edit-row fieldset .inline-edit-date { - float: left; -} - -.inline-edit-row fieldset input[name=jj], -.inline-edit-row fieldset input[name=hh], -.inline-edit-row fieldset input[name=mn] { - font-size: 12px; - width: 2.3em; -} - -.inline-edit-row fieldset input[name=aa] { - font-size: 12px; - width: 3.5em; -} - -.inline-edit-row fieldset label input.inline-edit-password-input { - width: 8em; -} - -ul.cat-checklist { - height: 12em; - border: solid 1px #ddd; - overflow-y: scroll; - padding: 0 5px; - margin: 0; - background-color: #fff; -} - -#bulk-titles { - display: block; - height: 12em; - border: 1px solid #ddd; - overflow-y: scroll; - padding: 0 5px; - margin: 0 0 5px; -} - -.inline-edit-row fieldset ul.cat-checklist li, -.inline-edit-row fieldset ul.cat-checklist input { - margin: 0; - position: relative; /* RTL fix, #WP27629 */ -} - -.inline-edit-row fieldset ul.cat-checklist label, -.inline-edit-row #bulk-titles div { - font-style: normal; - font-size: 11px; -} - -.inline-edit-row fieldset label input.inline-edit-menu-order-input { - width: 3em; -} - -.inline-edit-row fieldset label input.inline-edit-slug-input { - width: 75%; -} - -.inline-edit-row #post_parent, -.inline-edit-row select[name="page_template"] { - max-width: 80%; -} - -.ie8 .inline-edit-row #post_parent, -.ie8 .inline-edit-row select[name="page_template"] { - width: 250px; -} - -.quick-edit-row-post fieldset label.inline-edit-status { - float: left; -} - -#bulk-titles { - line-height: 140%; -} -#bulk-titles div { - margin: 0.2em 0.3em; -} - -#bulk-titles div a { - cursor: pointer; - display: block; - float: left; - height: 18px; - margin: 0 3px 0 -2px; - overflow: hidden; - position: relative; - width: 20px; -} - -#bulk-titles div a:before { - position: relative; - top: -3px; -} - -/*------------------------------------------------------------------------------ - 17.0 - Plugins -------------------------------------------------------------------------------*/ - -.plugins tbody th.check-column, -.plugins tbody { - padding: 8px 0 0 2px; -} - -.plugins tbody th.check-column input[type=checkbox] { - margin-top: 4px; -} - -#update-plugins-table tbody td p { - margin-top: 0; -} - -#update-plugins-table tbody td p strong { - font-size: 14px; -} - -.plugins thead td.check-column, -.plugins tfoot td.check-column, -.plugins .inactive th.check-column { - padding-left: 6px; -} - -#update-plugins-table thead td.check-column, -#update-plugins-table tfoot td.check-column { - padding-top: 11px; -} - -.plugins, -.plugins th, -.plugins td { - color: #000; -} - -.plugins tr { - background: #fff; -} - -.plugins p { - margin: 0 4px; - padding: 0; -} - -.plugins .desc p { - margin: 0 0 8px; -} - -.plugins td.desc { - line-height: 1.5em; -} - -.plugins .desc ul, -.plugins .desc ol { - margin: 0 0 0 2em; -} - -.plugins .desc ul { - list-style-type: disc; -} - -.plugins .row-actions { - font-size: 13px; - padding: 0; -} - -.plugins .inactive td, -.plugins .inactive th, -.plugins .active td, -.plugins .active th { - padding: 10px 9px; -} - -.plugins .active td, -.plugins .active th { - background-color: #f7fcfe; -} - -.plugins .update th, -.plugins .update td { - border-bottom: 0; -} - -.plugin-update-tr td { - border-top: 0; -} - -.plugins .inactive td, -.plugins .inactive th, -.plugins .active td, -.plugins .active th, -.plugin-install #the-list td, -.upgrade .plugins td, -.upgrade .plugins th { - -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); - box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); -} - -.plugins tr.active.plugin-update-tr + tr.inactive th, -.plugins tr.active.plugin-update-tr + tr.inactive td, -.plugins tr.active + tr.inactive th, -.plugins tr.active + tr.inactive td { - border-top: 1px solid rgba(0,0,0,0.03); - -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.02), inset 0 -1px 0 #e1e1e1; - box-shadow: inset 0 1px 0 rgba(0,0,0,0.02), inset 0 -1px 0 #e1e1e1; -} - -.plugins .update td, -.plugins .update th, -.upgrade .plugins tr:last-of-type td, -.upgrade .plugins tr:last-of-type th, -.plugins tr.active + tr.inactive.update th, -.plugins tr.active + tr.inactive.update td, -.plugins .updated td, -.plugins .updated th, -.plugins tr.active + tr.inactive.updated th, -.plugins tr.active + tr.inactive.updated td { - -webkit-box-shadow: none; - box-shadow: none; -} - -.plugins .active.update td, -.plugins .active.update th, -tr.active.update + tr.plugin-update-tr .plugin-update { - background-color: #fef7f1; -} - -.plugins .active th.check-column, -.plugin-update-tr.active td { - border-left: 4px solid #00a0d2; -} - -.plugins .active.update th.check-column, -.plugins .active.update + .plugin-update-tr .plugin-update { - border-left: 4px solid #d54e21; -} - -#wpbody-content .plugins .plugin-title, -#wpbody-content .plugins .theme-title { - padding-right: 12px; - white-space:nowrap; -} - -.plugins .inactive .plugin-title strong { - font-weight: 400; -} - -.plugins .second, -.plugins .row-actions { - padding: 0 0 5px; -} - -.plugins .update .second, -.plugins .update .row-actions, -.plugins .updated .second, -.plugins .updated .row-actions { - padding-bottom: 0; -} - -.plugins-php .widefat tfoot th, -.plugins-php .widefat tfoot td { - border-top-style: solid; - border-top-width: 1px; -} - -.plugin-update-tr .update-message { - font-size: 13px; - font-weight: normal; - margin: 0 10px 8px 31px; - padding: 6px 12px 8px 40px; - background-color: #f7f7f7; - background-color: rgba(0,0,0,0.03); -} - -.plugin-update-tr .update-message:before, -.plugin-card .update-now:before, -.plugin-card .install-now:before { - color: #d54e21; - display: inline-block; - font: normal 20px/1 'dashicons'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - vertical-align: top; -} - -.plugin-update-tr .update-message:before, -.plugin-card .update-now:before { - content: '\f463'; -} - -.plugin-update-tr .update-message:before { - margin: 0 10px 0 -30px; -} - -.plugin-card .update-now:before, -.plugin-card .install-now:before { - margin: 3px 5px 0 -2px; -} - -.plugin-update-tr .updating-message:before, -.plugin-card .updating-message:before { - content: '\f463'; - -webkit-animation: rotation 2s infinite linear; - animation: rotation 2s infinite linear; -} - -@-webkit-keyframes rotation { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} - -@keyframes rotation { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} - -.plugin-update-tr .updated-message:before, -.plugin-card .updated-message:before { - color: #79ba49; - content: '\f147'; -} - -.wp-list-table.plugins tbody tr.plugin-update-tr td.plugin-update { - overflow: hidden; /* clearfix */ - padding: 0; - -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); - box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); -} - -/* update notices for active plugins */ -tr.active + tr.plugin-update-tr .plugin-update { - background-color: #f7fcfe; -} - -tr.active + tr.plugin-update-tr:not(.updated) .plugin-update .update-message { - background-color: #fcf3ef; -} - -.plugin-install-php h3 { - clear: both; -} - -.plugin-install-php h4 { - margin: 2.5em 0 8px; -} - -.plugin-install-php .wp-filter { - margin-bottom: 0; -} - -/* Plugin card table view */ -.plugin-group { - overflow: hidden; /* clearfix */ - margin-top: 1.5em; -} - -.plugin-group h3 { - margin-top: 0; -} - -.plugin-card { - float: left; - margin: 0 8px 16px; - width: 48.5%; - width: -webkit-calc( 50% - 8px ); - width: calc( 50% - 8px ); - background-color: #fff; - border: 1px solid #dedede; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.plugin-card:nth-child(odd) { - clear: both; - margin-left: 0; -} - -.plugin-card:nth-child(even) { - margin-right: 0; -} - -@media screen and ( min-width: 1600px ) { - .plugin-card { - width: 30%; - width: -webkit-calc( 33.1% - 8px ); - width: calc( 33.1% - 8px ); - } - - .plugin-card:nth-child(odd) { - clear: none; - margin-left: 8px; - } - - .plugin-card:nth-child(even) { - margin-right: 8px; - } - - .plugin-card:nth-child(3n+1) { - clear: both; - margin-left: 0; - } - - .plugin-card:nth-child(3n) { - margin-right: 0; - } -} - -.plugin-card-top { - position: relative; - padding: 20px 20px 10px; - min-height: 135px; -} - -div.action-links, -.plugin-action-buttons { - margin: 0; /* Override existing margins */ -} - -.plugin-card h4 { - margin: 0 0 12px; - font-size: 18px; - line-height: 1.3; -} - -.plugin-card .name, -.plugin-card .desc { - margin-left: 148px; /* icon + margin */ - margin-right: 120px; /* action links */ -} - -.plugin-card .action-links { - position: absolute; - top: 20px; - right: 20px; - width: 120px; -} - -.plugin-action-buttons { - clear: right; - float: right; - margin-left: 2em; - margin-bottom: 1em; - text-align: right; -} - -.plugin-action-buttons li { - margin-bottom: 10px; -} - -.plugin-card-bottom { - clear: both; - padding: 12px 20px; - background-color: #fafafa; - border-top: 1px solid #dedede; - overflow: hidden; -} - -.plugin-card-bottom .star-rating { - display: inline; -} - -.plugin-card .column-rating { - line-height: 23px; -} - -.plugin-card .column-rating, -.plugin-card .column-updated { - margin-bottom: 4px; -} - -.plugin-card .column-rating, -.plugin-card .column-downloaded { - float: left; - clear: left; - max-width: 180px; -} - -.plugin-card .column-updated, -.plugin-card .column-compatibility { - text-align: right; - float: right; - clear: right; - width: 65%; - width: -webkit-calc( 100% - 180px ); - width: calc( 100% - 180px ); -} - -.plugin-card .column-compatibility span:before { - font: normal 20px/.5 'dashicons'; - speak: none; - display: inline-block; - padding: 0; - top: 4px; - left: -2px; - position: relative; - vertical-align: top; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none !important; - color: #444; -} - -.plugin-card .compatibility-incompatible:before { - content: '\f158'; -} - -.plugin-card .compatibility-compatible:before { - content: '\f147'; -} - -.plugin-icon { - position: absolute; - top: 20px; - left: 20px; - width: 128px; - height: 128px; - margin: 0 20px 20px 0; -} - -.plugin-icon img { - width: 128px; - height: 128px; -} - -.no-plugin-results { - color: #999; - font-size: 18px; - font-style: normal; - margin: 0; - padding: 100px 0 0; - text-align: center; -} - -/* ms */ -/* Background Color for Site Status */ -.wp-list-table tr.site-deleted { - background: #ff8573; -} -.wp-list-table tr.site-spammed { - background: #faafaa; -} -.wp-list-table tr.site-archived { - background: #ffebe8; -} -.wp-list-table tr.site-mature { - background: #fecac2; -} - -.sites.fixed .column-lastupdated, -.sites.fixed .column-registered { - width: 20%; -} - -.sites.fixed .column-users { - width: 80px; -} - -/* =Media Queries --------------------------------------------------------------- */ - -@media screen and ( max-width: 1100px ) and ( min-width: 782px ), ( max-width: 480px ) { - .plugin-card .action-links { - position: static; - margin-left: 148px; - width: auto; - } - - .plugin-action-buttons { - float: none; - margin: 1em 0 0; - text-align: left; - } - - .plugin-action-buttons li { - display: inline-block; - vertical-align: middle; - } - - .plugin-action-buttons li .button { - margin-right: 20px; - } - - .plugin-card .name, - .plugin-card .desc { - margin-right: 0; - } - - .plugin-card .desc p:first-of-type { - margin-top: 0; - } -} - -@media screen and ( max-width: 782px ) { - /* WP List Table Options & Filters */ - .tablenav { - height: auto; - } - - .tablenav.top { - margin: 20px 0 5px 0; - } - - .tablenav.bottom { - position: relative; - margin-top: 15px; - } - - .tablenav br { - display: none; - } - - .tablenav br.clear { - display: block; - } - - .tablenav.top .actions, - .tablenav .view-switch { - display: none; - } - - .view-switch a { - width: 36px; - height: 36px; - line-height: 33px; - } - - /* Pagination */ - .tablenav.top .displaying-num { - display: none; - } - - .tablenav.bottom .displaying-num { - position: absolute; - right: 0; - top: 11px; - margin: 0; - font-size: 14px; - } - - .tablenav .tablenav-pages { - width: 100%; - height: auto; - text-align: center; - margin: 0 0 25px; - } - - .tablenav.bottom .tablenav-pages { - margin-top: 25px; - } - - .tablenav.top .tablenav-pages.one-page { - display: none; - } - - .tablenav.bottom .tablenav-pages.one-page { - margin: 15px 0 0 0; - height: 0; - } - - .tablenav-pages .pagination-links { - font-size: 16px; - } - - .tablenav-pages .pagination-links a, - .tablenav-pages-navspan { - padding: 9px 16px 12px; - font-size: 18px; - } - - .tablenav-pages-navspan { - height: 18px; - } - - .tablenav-pages .pagination-links .current-page { - padding: 8px 9px 9px; - font-size: 16px; - } - - /* WP List Table Adjustments: General */ - .form-wrap > p { - display: none; - } - - .comment-count { - font-size: 14px; - } - - .wp-list-table th.column-primary ~ th, - .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) { - display: none; - } - - .wp-list-table thead th.column-primary { - width: 100%; - } - - /* Checkboxes need to show */ - .wp-list-table tr th.check-column { - display: table-cell; - width: 35px; - } - - .wp-list-table .column-primary .toggle-row { - display: block; - } - - .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) { - position: relative; - clear: both; - display: block; - width: auto !important; /* needs to override some columns that are more specifically targeted */ - } - - .wp-list-table td.column-primary { - padding-right: 50px; /* space for toggle button */ - } - - .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) { - padding: 3px 8px 3px 35%; - } - - .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before { - position: absolute; - left: 10px; /* match padding of regular table cell */ - display: block; - overflow: hidden; - width: 32%; /* leave a little space for a gutter */ - content: attr(data-colname); - white-space: nowrap; - text-overflow: ellipsis; - } - - .wp-list-table .is-expanded td:not(.hidden) { - display: block !important; - overflow: hidden; /* clearfix */ - } - - /* Special cases */ - .widefat .num, - .column-posts { - text-align: left; - } - - #comments-form .fixed .column-author { - display: none !important; - } - - .fixed .column-comment .comment-author { - display: block; - } - - #the-comment-list .is-expanded td { - -webkit-box-shadow: none; - box-shadow: none; - } - - #the-comment-list .is-expanded td:last-child { - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); - } - - /* Show comment bubble as text instead */ - .post-com-count .screen-reader-text { - position: static; - width: auto; - height: auto; - margin: 0; - } - - .column-response .post-com-count-no-comments:after, - .column-response .post-com-count-approved:after, - .column-comments .post-com-count-no-comments:after, - .column-comments .post-com-count-approved:after { - content: none; - } - - .column-response .post-com-count [aria-hidden="true"], - .column-comments .post-com-count [aria-hidden="true"] { - display: none; - } - - .column-response .post-com-count-wrapper, - .column-comments .post-com-count-wrapper { - white-space: normal; - } - - .column-response .post-com-count-wrapper > a, - .column-comments .post-com-count-wrapper > a { - display: block; - } - - .column-response .post-com-count-no-comments, - .column-response .post-com-count-approved, - .column-comments .post-com-count-no-comments, - .column-comments .post-com-count-approved { - margin-top: 0; - margin-right: 0.5em; - } - - .column-response .post-com-count-pending, - .column-comments .post-com-count-pending { - position: static; - height: auto; - min-width: 0; - padding: 0; - border: none; - -webkit-border-radius: 0; - border-radius: 0; - background: none; - color: #bb2a2a; - font-size: inherit; - line-height: inherit; - text-align: left; - } - - .column-response .post-com-count-pending:hover, - .column-comments .post-com-count-pending:hover { - color: #dc3232; - } - - .widefat thead .check-column, .widefat tfoot .check-column { - padding: 10px 0 10px; - } - - .widefat * { - word-wrap: normal; - } - - /* Quick Edit and Bulk Edit */ - #wpbody-content .quick-edit-row-post .inline-edit-col-left, - #wpbody-content .quick-edit-row-post .inline-edit-col-right, - #wpbody-content .inline-edit-row-post .inline-edit-col-center, - #wpbody-content .quick-edit-row-page .inline-edit-col-left, - #wpbody-content .quick-edit-row-page .inline-edit-col-right, - #wpbody-content .bulk-edit-row-post .inline-edit-col-right, - #wpbody-content .bulk-edit-row .inline-edit-col-left, - #wpbody-content .bulk-edit-row-page .inline-edit-col-right, - #wpbody-content .bulk-edit-row .inline-edit-col-bottom { - float: none; - width: 100%; - } - - #wpbody-content .quick-edit-row fieldset .inline-edit-col label, - #wpbody-content .quick-edit-row fieldset .inline-edit-group label, - #wpbody-content .bulk-edit-row fieldset .inline-edit-col label, - #wpbody-content .bulk-edit-row fieldset .inline-edit-group label { - max-width: none; - float: none; - margin-bottom: 5px; - } - - #wpbody .bulk-edit-row fieldset select { - display: block; - width: 100%; - max-width: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - - .inline-edit-row fieldset ul.cat-checklist label, - .inline-edit-row #bulk-titles div { - font-size: 16px; - } - - .inline-edit-row fieldset label span.title, - .inline-edit-row fieldset.inline-edit-date legend { - float: none; - } - - .inline-edit-row fieldset label.inline-edit-tags { - padding: 0 0.5em; - } - - .inline-edit-row fieldset .inline-edit-col label.inline-edit-tags { - padding: 0; - } - - .inline-edit-row fieldset label span.input-text-wrap, - .inline-edit-row fieldset .timestamp-wrap { - margin-left: 0; - } - - .inline-edit-row fieldset input[name=jj], - .inline-edit-row fieldset input[name=hh], - .inline-edit-row fieldset input[name=mn] { - width: 3em; - } - - .inline-edit-row fieldset input[name=aa] { - width: 4.5em; - } - - .inline-edit-row .inline-edit-or { - margin: 0 6px 0 0; - } - - #bulk-titles div { - margin: 0.8em 0.3em; - } - - #bulk-titles div a { - height: 22px; - } - - /* Updates */ - #wpbody-content #update-themes-table .plugin-title { - width: auto; - } - - /* Links */ - .link-manager-php #posts-filter { - margin-top: 25px; - } - - .link-manager-php .tablenav.bottom { - overflow: hidden; - } - - /* List tables that don't toggle rows */ - .comments-box .toggle-row, - .wp-list-table.plugins .toggle-row { - display: none; - } - - /* Plugin/Theme Management */ - #wpbody-content .wp-list-table.plugins td { - display: block; - width: auto; - padding: 10px 9px; /* reset from other list tables that have a label at this width */ - } - - #wpbody-content .wp-list-table.plugins .column-description { - padding-top: 2px; - } - - .wp-list-table.plugins .plugin-title, - .wp-list-table.plugins .theme-title { - padding-top: 13px; - padding-bottom: 4px; - } - - .plugins #the-list tr > td:not(:last-child), - .plugins #the-list .update th, - .plugins #the-list .update td, - .wp-list-table.plugins #the-list .theme-title { - -webkit-box-shadow: none; - box-shadow: none; - border-top: none; - } - - .plugins #the-list tr td { - border-top: none; - } - - .plugins tbody { - padding: 1px 0 0; - } - - .plugins tr.active + tr.inactive th.check-column, - .plugins tr.active + tr.inactive td.column-description, - .plugins .plugin-update-tr:before { - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); - } - - .plugins tr.active + tr.inactive th.check-column, - .plugins tr.active + tr.inactive td { - border-top: none; - } - - /* mimic the checkbox th */ - .plugins .plugin-update-tr:before { - content: ''; - display: table-cell; - } - - .plugins .active.update + .plugin-update-tr:before { - border-left: 4px solid #d54e21; - background-color: #fef7f1; - } - - .plugins #the-list .plugin-update-tr .plugin-update { - border-left: none; - } - - .plugin-update-tr .update-message { - margin-left: 0; - } - - .wp-list-table.plugins .plugin-title strong, - .wp-list-table.plugins .theme-title strong { - font-size: 1.4em; - line-height: 1.6em; - } - - /* Add New plugins page */ - table.plugin-install .column-name, - table.plugin-install .column-version, - table.plugin-install .column-rating, - table.plugin-install .column-description { - display: block; - width: auto; - } - - table.plugin-install th.column-name, - table.plugin-install th.column-version, - table.plugin-install th.column-rating, - table.plugin-install th.column-description { - display: none; - } - - table.plugin-install td.column-name strong { - font-size: 1.4em; - line-height: 1.6em; - } - - table.plugin-install #the-list td { - -webkit-box-shadow: none; - box-shadow: none; - } - - table.plugin-install #the-list tr { - display: block; - -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); - box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); - } - - .plugin-card { - margin-left: 0; - margin-right: 0; - width: 100%; - } -} diff --git a/wp-admin/css/login-rtl.css b/wp-admin/css/login-rtl.css deleted file mode 100644 index 7bb3692535..0000000000 --- a/wp-admin/css/login-rtl.css +++ /dev/null @@ -1,282 +0,0 @@ -@import url(forms-rtl.css); -@import url(l10n-rtl.css); - -html, -body { - height: 100%; - margin: 0; - padding: 0; -} - -html { - background: #f1f1f1; -} - -body { - background: #f1f1f1; - min-width: 0; - color: #444; - font-family: "Open Sans", sans-serif; - font-size: 13px; - line-height: 1.4em; -} - -a { - color: #0073aa; - -webkit-transition-property: border, background, color; - transition-property: border, background, color; - -webkit-transition-duration: .05s; - transition-duration: .05s; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; -} - -a { - outline: 0; -} - -a:hover, -a:active { - color: #00a0d2; -} - -a:focus { - color: #124964; - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.ie8 a:focus { - outline: #5b9dd9 solid 1px; -} - -p { - line-height: 1.5; -} - -.login .message { - border-right: 4px solid #00a0d2; - padding: 1px 12px; - background-color: #fff; - -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); - box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); -} - -.login #login_error { - border-right: 4px solid #dd3d36; - background: #fff; - -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); - box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); -} - -#loginform p.submit, -.login-action-lostpassword p.submit { - border: none; - margin: -10px 0 20px; /* May want to revisit this */ -} - -.login * { - margin: 0; - padding: 0; -} - -.login form { - margin-top: 20px; - margin-right: 0; - padding: 26px 24px 46px; - font-weight: normal; - overflow: hidden; - background: #fff; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13); - box-shadow: 0 1px 3px rgba(0,0,0,0.13); -} - -.login form .forgetmenot { - font-weight: normal; - float: right; - margin-bottom: 0; -} - -.login .button-primary { - float: left; -} - -#login form p { - margin-bottom: 0; -} - -#login form p.submit { - margin: 0; - padding: 0; -} - -.login label { - color: #777; - font-size: 14px; -} - -.login form .forgetmenot label { - font-size: 12px; - line-height: 19px; -} - -.login h1 { - text-align: center; -} - -.login h1 a { - background-image: url(../images/w-logo-blue.png?ver=20131202); - background-image: none, url(../images/wordpress-logo.svg?ver=20131107); - -webkit-background-size: 84px; - background-size: 84px; - background-position: center top; - background-repeat: no-repeat; - color: #999; - height: 84px; - font-size: 20px; - font-weight: normal; - line-height: 1.3em; - margin: 0 auto 25px; - padding: 0; - text-decoration: none; - width: 84px; - text-indent: -9999px; - outline: none; - overflow: hidden; - display: block; -} - -#login { - width: 320px; - padding: 8% 0 0; - margin: auto; -} - -#login_error, -.login .message { - margin-right: 0; - padding: 12px; -} - -.login #nav, -.login #backtoblog { - font-size: 13px; - padding: 0 24px 0; -} - -.login #nav { - margin: 24px 0 0 0; -} - -#backtoblog { - margin: 16px 0 0 0; -} - -.login #nav a, -.login #backtoblog a { - text-decoration: none; - color: #999; -} - -.login #nav a:hover, -.login #backtoblog a:hover, -.login h1 a:hover { - color: #00a0d2; -} - -.login #nav a:focus, -.login #backtoblog a:focus, -.login h1 a:focus { - color: #124964; -} - -.login form .input, -.login input[type="text"] { - font-size: 24px; - width: 100%; - padding: 3px; - margin: 2px 0 16px 6px; -} - -.login form .input, -.login input[type="text"], -.login form input[type="checkbox"] { - background: #fbfbfb; -} - -.ie7 .login form .input, -.ie8 .login form .input { - font-family: sans-serif; -} - -.login-action-rp input[type="text"] { - -webkit-box-shadow: none; - box-shadow: none; - margin: 0; -} - -.login #pass-strength-result { - font-weight: 600; - margin: -1px 0 16px 5px; - padding: 6px 5px; - text-align: center; - width: 100%; -} - -.mobile #login { - padding: 20px 0; -} - -.mobile #login form, -.mobile #login .message, -.mobile #login_error { - margin-right: 0; -} - -.mobile #login #nav, -.mobile #login #backtoblog { - margin-right: 8px; -} - -body.interim-login { - height: auto; -} - -.interim-login #login { - padding: 0; - margin: 5px auto 20px; -} - -.interim-login.login h1 a { - width: auto; -} - -.interim-login #login_error, -.interim-login.login .message { - margin: 0 0 16px; -} - -.interim-login.login form { - margin: 0; -} - -@-ms-viewport { - width: device-width; -} - -@media screen and ( max-width: 782px ) { - .interim-login input[type=checkbox] { - height: 16px; - width: 16px; - } - - .interim-login input[type=checkbox]:checked:before { - width: 16px; - font: normal 21px/1 'dashicons'; - margin: -3px -4px 0 0; - } -} diff --git a/wp-admin/css/login-rtl.min.css b/wp-admin/css/login-rtl.min.css deleted file mode 100644 index f457080709..0000000000 --- a/wp-admin/css/login-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -.meta-box-sortables select,p.submit{max-width:100%}#pressthis-code-wrap,textarea{overflow:auto}input,textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=text],input[type=search],input[type=radio],input[type=tel],input[type=time],input[type=url],input[type=week],input[type=password],input[type=checkbox],input[type=color],input[type=date],input[type=datetime],input[type=datetime-local],input[type=email],input[type=month],input[type=number],select,textarea{border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07);background-color:#fff;color:#32373c;outline:0;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=text]:focus,input[type=search]:focus,input[type=radio]:focus,input[type=tel]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,input[type=password]:focus,input[type=checkbox]:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,select:focus,textarea:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 2px rgba(30,140,190,.8);box-shadow:0 0 2px rgba(30,140,190,.8)}input[type=url],input[type=email]{direction:ltr}input[type=radio],input[type=checkbox]{border:1px solid #b4b9be;background:#fff;color:#555;clear:none;cursor:pointer;display:inline-block;line-height:0;height:16px;margin:-4px 0 0 4px;outline:0;padding:0!important;text-align:center;vertical-align:middle;width:16px;min-width:16px;-webkit-appearance:none;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=radio]:checked+label:before{color:#82878c}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#00a0d2}.wp-admin p input[type=radio],.wp-admin p input[type=checkbox],td>input[type=checkbox]{margin-top:0}.wp-admin p label input[type=checkbox]{margin-top:-4px}.wp-admin p label input[type=radio]{margin-top:-2px}input[type=radio]{-webkit-border-radius:50%;border-radius:50%;margin-left:4px;line-height:10px}input[type=radio]:checked:before,input[type=checkbox]:checked:before{float:right;display:inline-block;vertical-align:middle;width:16px;font:400 21px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=checkbox]:checked:before{content:'\f147';margin:-3px -4px 0 0;color:#1e8cbe}input[type=radio]:checked:before{content:'\2022';text-indent:-9999px;-webkit-border-radius:50px;border-radius:50px;font-size:24px;width:6px;height:6px;margin:4px;line-height:16px;background-color:#1e8cbe}@-moz-document url-prefix(){.form-table input.tog,input[type=radio],input[type=checkbox]{margin-bottom:-1px}}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration{display:none}.ie8 input[type=password]{font-family:sans-serif}button,input,select,textarea{font-family:inherit;font-size:inherit;font-weight:inherit}input,select,textarea{font-size:14px;-webkit-border-radius:0;border-radius:0}textarea{padding:2px 6px;line-height:1.4}.wp-admin input[type=file]{padding:3px 0}label{cursor:pointer}input,select{margin:1px;padding:3px 5px}input.code{padding-top:6px}textarea.code{line-height:1.4;padding:4px 6px 1px}input.readonly,input[readonly],textarea.readonly,textarea[readonly]{background-color:#eee}.wp-core-ui :-moz-placeholder,:-moz-placeholder{color:#a9a9a9}.form-invalid input,.form-invalid input:focus,.form-invalid select,.form-invalid select:focus{border-color:#dc3232!important;-webkit-box-shadow:0 0 2px rgba(204,0,0,.8);box-shadow:0 0 2px rgba(204,0,0,.8)}.form-table .form-required.form-invalid td:after{content:'\f534';font:400 20px/1 dashicons;color:#dc3232;margin-right:-25px;vertical-align:middle}.form-input-tip{color:#666}input.disabled,input:disabled,select.disabled,select:disabled,textarea.disabled,textarea:disabled{background:rgba(255,255,255,.5);border-color:rgba(222,222,222,.75);-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.04);box-shadow:inset 0 1px 2px rgba(0,0,0,.04);color:rgba(51,51,51,.5)}input[type=file].disabled,input[type=file]:disabled,input[type=range].disabled,input[type=range]:disabled{background:0 0;-webkit-box-shadow:none;box-shadow:none}input[type=radio].disabled,input[type=radio].disabled:checked:before,input[type=radio]:disabled,input[type=radio]:disabled:checked:before,input[type=checkbox].disabled,input[type=checkbox].disabled:checked:before,input[type=checkbox]:disabled,input[type=checkbox]:disabled:checked:before{opacity:.7}.wp-admin select{padding:2px;line-height:28px;height:28px;vertical-align:middle}.wp-admin .button-cancel{padding:0 5px;line-height:2}.wp-admin select[multiple]{height:auto}.submit{padding:1.5em 0;margin:5px 0;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;border:none}form p.submit a.cancel:hover{text-decoration:none}p.submit{text-align:right;margin-top:20px;padding-top:10px}.textright p.submit{border:none;text-align:left}table.form-table+input+input+p.submit,table.form-table+input+p.submit,table.form-table+p.submit{border-top:none;padding-top:0}#major-publishing-actions input,#minor-publishing-actions .preview,#minor-publishing-actions input{text-align:center}input.all-options,textarea.all-options{width:250px}input.large-text,textarea.large-text{width:99%}input.regular-text{width:25em}input.small-text{width:50px;padding:1px 6px}input[type=number].small-text{width:65px}#doaction,#doaction2,#post-query-submit{margin:1px 0 0 8px}.tablenav #changeit,.tablenav #clear-recent-list,.tablenav #delete_all,.wp-filter #delete_all{margin-top:1px}.tablenav .actions select{float:right;margin-left:6px;max-width:200px}.ie8 .tablenav .actions select{width:155px}.ie8 .tablenav .actions select#cat{width:200px}#timezone_string option{margin-right:1em}#upload-form label{color:#777}button.wp-hide-pw>.dashicons{position:relative;top:3px}#your-profile label+a,fieldset label,label{vertical-align:middle}#misc-publishing-actions label,.options-media-php label[for*="_size_"]{vertical-align:baseline}#misc-publishing-actions label[for=post_status]:before{content:'\f173';display:inline-block;font:400 20px/1 dashicons;speak:none;right:-1px;padding:0 0 0 5px;position:relative;top:0;text-decoration:none!important;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#pass1-text,.pw-weak,.show-password #pass1{display:none}#pass-strength-result{background-color:#eee;border:1px solid #ddd;color:#23282d;margin:-2px 1px 5px 5px;padding:3px 5px;text-align:center;width:25em;box-sizing:border-box;opacity:0}#pass-strength-result,.color-option{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}#pass-strength-result.short{background-color:#f1adad;border-color:#e35b5b;opacity:1}#pass-strength-result.bad{background-color:#fbc5a9;border-color:#f78b53;opacity:1}#pass-strength-result.good{background-color:#ffe399;border-color:#ffc733;opacity:1}#pass-strength-result.strong{background-color:#c1e1b9;border-color:#83c373;opacity:1}#pass1-text.short,#pass1.short{border-color:#e35b5b}#pass1-text.bad,#pass1.bad{border-color:#f78b53}#pass1-text.good,#pass1.good{border-color:#ffc733}#pass1-text.strong,#pass1.strong{border-color:#83c373}.indicator-hint{padding-top:8px}.show-password #pass1-text{display:inline-block}.form-table span.description.important{font-size:12px}p.search-box{float:left;margin:0}.network-admin.themes-php p.search-box{clear:right}.search-box input[name="s"],.tablenav .search-plugins input[name="s"],.tagsdiv .newtag{float:right;height:28px;margin:0 0 0 4px}input[type=text].ui-autocomplete-loading,input[type=email].ui-autocomplete-loading{background-image:url(../images/loading.gif);background-repeat:no-repeat;background-position:left center;visibility:visible}input.ui-autocomplete-input.open{border-bottom-color:transparent}ul#add-to-blog-users{margin:0 14px 0 0}.ui-autocomplete{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;border:1px solid #5b9dd9;-webkit-box-shadow:0 1px 2px rgba(30,140,190,.8);box-shadow:0 1px 2px rgba(30,140,190,.8);background-color:#fff}.ui-autocomplete li{margin-bottom:0;padding:4px 10px;white-space:nowrap;text-align:right}.ui-autocomplete li.ui-state-focus{background-color:#ddd;cursor:pointer}.form-table{border-collapse:collapse;margin-top:.5em;width:100%;clear:both}.form-table,.form-table td,.form-table td p,.form-table th,.form-wrap label{font-size:14px}.form-table td{margin-bottom:9px;padding:15px 10px;line-height:1.3;vertical-align:middle}.form-table th,.form-wrap label{color:#23282d;font-weight:400;text-shadow:none;vertical-align:baseline}.form-table th{vertical-align:top;text-align:right;padding:20px 0 20px 10px;width:200px;line-height:1.3;font-weight:600}.form-table th.th-full{width:auto;font-weight:400}.form-table td p{margin-top:4px;margin-bottom:0}.form-table td fieldset label{margin:.25em 0 .5em!important;display:inline-block}.form-table td fieldset label,.form-table td fieldset li,.form-table td fieldset p{line-height:1.4em}.form-table input.tog,.form-table input[type=radio]{margin-top:-4px;margin-left:4px;float:none}.form-table .pre{padding:8px;margin:0}table.form-table td .updated{font-size:13px}table.form-table td .updated p{font-size:13px;margin:.3em 0}#profile-page .form-table textarea{width:500px;margin-bottom:6px}#profile-page .form-table #rich_editing{margin-left:5px}#your-profile legend{font-size:22px}#display_name{width:15em}#adduser .form-field input,#createuser .form-field input{width:25em}.color-option{display:inline-block;width:24%;padding:5px 15px 15px;box-sizing:border-box;margin-bottom:3px;cursor:pointer}.color-option.selected,.color-option:hover{background:#ddd}.color-palette{width:100%;border-spacing:0;border-collapse:collapse}.color-palette td{height:20px;padding:0;border:none}.tool-box .title{margin:8px 0;font-size:18px;font-weight:400;line-height:24px}.card{position:relative;margin-top:20px;padding:.7em 2em 1em;min-width:255px;max-width:520px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff}.pressthis h4{margin:2em 0 1em}.pressthis textarea{width:100%;font-size:1em}.login form,.login h1 a{font-weight:400;overflow:hidden}.pressthis-bookmarklet-wrapper{margin:20px 0 8px;vertical-align:top;position:relative;z-index:1}.pressthis-bookmarklet,.pressthis-bookmarklet:active,.pressthis-bookmarklet:focus,.pressthis-bookmarklet:hover{display:inline-block;position:relative;cursor:move;color:#32373c;background:#e6e6e6;-webkit-border-radius:5px;border-radius:5px;border:1px solid #b4b4b4;font-style:normal;line-height:16px;font-size:14px;text-decoration:none}.pressthis-bookmarklet:active{outline:0}.pressthis-bookmarklet:after{content:'';width:70%;height:55%;z-index:-1;position:absolute;left:10px;bottom:9px;background:0 0;-webkit-transform:skew(-20deg) rotate(-6deg);-ms-transform:skew(-20deg) rotate(-6deg);transform:skew(-20deg) rotate(-6deg);-webkit-box-shadow:0 10px 8px rgba(0,0,0,.6);box-shadow:0 10px 8px rgba(0,0,0,.6)}.pressthis-bookmarklet:hover:after{-webkit-transform:skew(-20deg) rotate(-9deg);-ms-transform:skew(-20deg) rotate(-9deg);transform:skew(-20deg) rotate(-9deg);-webkit-box-shadow:0 10px 8px rgba(0,0,0,.7);box-shadow:0 10px 8px rgba(0,0,0,.7)}.pressthis-bookmarklet span{display:inline-block;margin:0;padding:0 9px 8px 12px}.pressthis-js-toggle,.pressthis-js-toggle.button.button{margin-right:10px;padding:0;height:auto;vertical-align:top}.pressthis-bookmarklet span:before{color:#777;font:400 20px/1 dashicons;content:'\f157';position:relative;display:inline-block;top:4px;margin-left:4px}.pressthis-js-toggle .dashicons{margin:5px 7px 6px 8px;color:#777}#local-time,#utc-time{padding-right:25px;font-style:italic}.defaultavatarpicker .avatar{margin:2px 0;vertical-align:middle}.options-general-php input.small-text{width:56px}.options-general-php .spinner{float:none;margin:0 3px}.options-general-php .language-install-spinner,.settings-php .language-install-spinner{display:inline-block;float:none;margin:-3px 5px 0;vertical-align:middle}.setup-php textarea{max-width:100%}.form-field #site-address{max-width:25em}.form-field #domain{max-width:22em}.form-field #admin-email,.form-field #blog_last_updated,.form-field #blog_registered,.form-field #path,.form-field #site-title{max-width:25em}.form-field #path{margin-bottom:5px}#search-sites,#search-users{max-width:100%}.request-filesystem-credentials-dialog{display:none}.request-filesystem-credentials-dialog .notification-dialog{top:15%;max-height:85%}.request-filesystem-credentials-dialog-content{margin:25px}.request-filesystem-credentials-form input[type=text],.request-filesystem-credentials-form input[type=password]{display:block}.request-filesystem-credentials-dialog input[type=text],.request-filesystem-credentials-dialog input[type=password]{width:100%}.request-filesystem-credentials-form .field-title{font-weight:600}.request-filesystem-credentials-dialog label[for=hostname],.request-filesystem-credentials-dialog label[for=public_key],.request-filesystem-credentials-dialog label[for=private_key]{display:block;margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:right;width:48%}.request-filesystem-credentials-dialog .ftp-password{margin-right:4%}.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons{text-align:left}#request-filesystem-credentials-dialog .button:not(:last-child),.request-filesystem-credentials-dialog label[for=ftp]{margin-left:10px}#request-filesystem-credentials-form .cancel-button{display:none}#request-filesystem-credentials-dialog .cancel-button{display:inline}@media screen and (max-width:782px){textarea{-webkit-appearance:none}input[type=text],input[type=search],input[type=password],input[type=email],input[type=number]{-webkit-appearance:none;padding:6px 10px}input.code{padding-bottom:5px;padding-top:10px}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox],input[type=checkbox]{-webkit-appearance:none;padding:10px}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-bottom:8px}.widefat tfoot td input[type=checkbox]:before,.widefat th input[type=checkbox]:before,.widefat thead td input[type=checkbox]:before,input[type=checkbox]:checked:before{font:400 30px/1 Dashicons;margin:-3px -5px}input[type=radio],input[type=checkbox]{height:25px;width:25px}.wp-admin p input[type=radio],.wp-admin p input[type=checkbox]{margin-top:-3px}input[type=radio]:checked:before{vertical-align:middle;width:9px;height:9px;margin:7px;line-height:16px}.wp-upload-form input[type=submit]{margin-top:10px}#wpbody select{height:36px;font-size:16px}.wp-admin .button-cancel{padding:0;font-size:14px}#adduser .form-field input,#createuser .form-field input{width:100%}.form-table{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table .color-palette td{display:table-cell;width:15px}.form-table table.color-palette{margin-left:10px}input,textarea{font-size:16px}#profile-page .form-table textarea,.form-table span.description,.form-table td input[type=text],.form-table td input[type=password],.form-table td input[type=email],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.form-table .form-required.form-invalid td:after{float:left;margin:-30px 0 0 3px}#wpbody .form-table td select{height:40px}.form-table input[type=text].small-text,input[type=text].small-text,input[type=search].small-text,input[type=password].small-text,input[type=number].small-text{width:auto;max-width:55px;display:inline;padding:3px 6px;margin:0 3px}#pass-strength-result{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:8px}p.search-box{float:none;position:absolute;bottom:0;width:98%;height:90px;margin-bottom:20px}p.search-box input[name="s"]{height:auto;float:none;width:100%;margin-bottom:10px;vertical-align:middle;-webkit-appearance:none}p.search-box input[type=submit]{margin-bottom:10px}.form-table span.description{display:inline;padding:4px 0 0;line-height:1.4em;font-size:14px}.form-table th{padding-top:10px;padding-bottom:0;border-bottom:0}.form-table td{margin-bottom:0;padding-bottom:6px;padding-top:4px;padding-right:0}.form-table.permalink-structure td code{margin-right:32px}.form-table.permalink-structure td input[type=text]{margin-right:32px;margin-top:4px;width:96%}.form-table input.regular-text{width:100%}.form-table label{font-size:14px}.form-table fieldset label{display:block}#utc-time{margin-top:10px}#local-time,#utc-time{display:block;float:none;padding:0;line-height:2}.form-field #domain{max-width:none}.wp-pwd{position:relative}.wp-pwd [type=text],.wp-pwd [type=password]{padding-left:40px}.wp-pwd button.button{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;line-height:2;margin:0;padding:5px 10px;position:absolute;left:0;top:0}.wp-pwd button.button:active,.wp-pwd button.button:focus,.wp-pwd button.button:hover{background:0 0}.wp-pwd .button .text{display:none}}body,html{background:#f1f1f1}.locale-he-il em,.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}@media only screen and (max-width:768px){.form-field input[type=text],.form-field input[type=password],.form-field input[type=email],.form-field select,.form-field textarea{width:99%}.form-wrap .form-field{padding:0}#profile-page .form-table textarea{max-width:400px;width:auto}}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button,.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}@media only screen and (max-height:480px){.request-filesystem-credentials-dialog .notification-dialog{width:100%;height:100%;max-height:100%;position:fixed;top:0;margin:0;right:0}}@media screen and (max-width:600px){.color-option{width:49%}}body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:700}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-weight:700}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-left:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-right:0}}body,html{height:100%;margin:0;padding:0}body{min-width:0;color:#444;font-family:"Open Sans",sans-serif;font-size:13px;line-height:1.4em}a{color:#0073aa;-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;outline:0}a:active,a:hover{color:#00a0d2}a:focus{color:#124964;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ie8 a:focus{outline:#5b9dd9 solid 1px}p{line-height:1.5}.login .message{border-right:4px solid #00a0d2;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.login #login_error,.login .message{-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.login #login_error{border-right:4px solid #dd3d36;background:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}#loginform p.submit,.login-action-lostpassword p.submit{border:none;margin:-10px 0 20px}.login *{margin:0;padding:0}.login form{margin-top:20px;margin-right:0;padding:26px 24px 46px;background:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.13);box-shadow:0 1px 3px rgba(0,0,0,.13)}.login form .forgetmenot{font-weight:400;float:right;margin-bottom:0}.login .button-primary{float:left}#login form p{margin-bottom:0}#login form p.submit{margin:0;padding:0}.login label{color:#777;font-size:14px}.login #backtoblog a,.login #nav a,.login h1 a{text-decoration:none;color:#999}.login form .forgetmenot label{font-size:12px;line-height:19px}.login h1{text-align:center}.login h1 a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);-webkit-background-size:84px;background-size:84px;background-position:center top;background-repeat:no-repeat;height:84px;font-size:20px;line-height:1.3em;margin:0 auto 25px;padding:0;width:84px;text-indent:-9999px;outline:0;display:block}#login{width:320px;padding:8% 0 0;margin:auto}#login_error,.login .message{margin-right:0;padding:12px}.login #backtoblog,.login #nav{font-size:13px;padding:0 24px}.login #nav{margin:24px 0 0}#backtoblog{margin:16px 0 0}.login #backtoblog a:hover,.login #nav a:hover,.login h1 a:hover{color:#00a0d2}.login #backtoblog a:focus,.login #nav a:focus,.login h1 a:focus{color:#124964}.login form .input,.login input[type=text]{font-size:24px;width:100%;padding:3px;margin:2px 0 16px 6px}.login form .input,.login form input[type=checkbox],.login input[type=text]{background:#fbfbfb}.ie7 .login form .input,.ie8 .login form .input{font-family:sans-serif}.login-action-rp input[type=text]{-webkit-box-shadow:none;box-shadow:none;margin:0}.login #pass-strength-result{font-weight:600;margin:-1px 0 16px 5px;padding:6px 5px;text-align:center;width:100%}.mobile #login{padding:20px 0}.mobile #login .message,.mobile #login form,.mobile #login_error{margin-right:0}.mobile #login #backtoblog,.mobile #login #nav{margin-right:8px}body.interim-login{height:auto}.interim-login #login{padding:0;margin:5px auto 20px}.interim-login.login h1 a{width:auto}.interim-login #login_error,.interim-login.login .message{margin:0 0 16px}.interim-login.login form{margin:0}@-ms-viewport{width:device-width}@media screen and (max-width:782px){.interim-login input[type=checkbox]{height:16px;width:16px}.interim-login input[type=checkbox]:checked:before{width:16px;font:400 21px/1 dashicons;margin:-3px -4px 0 0}} \ No newline at end of file diff --git a/wp-admin/css/login.css b/wp-admin/css/login.css deleted file mode 100644 index 6c4d7024fb..0000000000 --- a/wp-admin/css/login.css +++ /dev/null @@ -1,282 +0,0 @@ -@import url(forms.css); -@import url(l10n.css); - -html, -body { - height: 100%; - margin: 0; - padding: 0; -} - -html { - background: #f1f1f1; -} - -body { - background: #f1f1f1; - min-width: 0; - color: #444; - font-family: "Open Sans", sans-serif; - font-size: 13px; - line-height: 1.4em; -} - -a { - color: #0073aa; - -webkit-transition-property: border, background, color; - transition-property: border, background, color; - -webkit-transition-duration: .05s; - transition-duration: .05s; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; -} - -a { - outline: 0; -} - -a:hover, -a:active { - color: #00a0d2; -} - -a:focus { - color: #124964; - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.ie8 a:focus { - outline: #5b9dd9 solid 1px; -} - -p { - line-height: 1.5; -} - -.login .message { - border-left: 4px solid #00a0d2; - padding: 1px 12px; - background-color: #fff; - -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); - box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); -} - -.login #login_error { - border-left: 4px solid #dd3d36; - background: #fff; - -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); - box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); -} - -#loginform p.submit, -.login-action-lostpassword p.submit { - border: none; - margin: -10px 0 20px; /* May want to revisit this */ -} - -.login * { - margin: 0; - padding: 0; -} - -.login form { - margin-top: 20px; - margin-left: 0; - padding: 26px 24px 46px; - font-weight: normal; - overflow: hidden; - background: #fff; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13); - box-shadow: 0 1px 3px rgba(0,0,0,0.13); -} - -.login form .forgetmenot { - font-weight: normal; - float: left; - margin-bottom: 0; -} - -.login .button-primary { - float: right; -} - -#login form p { - margin-bottom: 0; -} - -#login form p.submit { - margin: 0; - padding: 0; -} - -.login label { - color: #777; - font-size: 14px; -} - -.login form .forgetmenot label { - font-size: 12px; - line-height: 19px; -} - -.login h1 { - text-align: center; -} - -.login h1 a { - background-image: url(../images/w-logo-blue.png?ver=20131202); - background-image: none, url(../images/wordpress-logo.svg?ver=20131107); - -webkit-background-size: 84px; - background-size: 84px; - background-position: center top; - background-repeat: no-repeat; - color: #999; - height: 84px; - font-size: 20px; - font-weight: normal; - line-height: 1.3em; - margin: 0 auto 25px; - padding: 0; - text-decoration: none; - width: 84px; - text-indent: -9999px; - outline: none; - overflow: hidden; - display: block; -} - -#login { - width: 320px; - padding: 8% 0 0; - margin: auto; -} - -#login_error, -.login .message { - margin-left: 0; - padding: 12px; -} - -.login #nav, -.login #backtoblog { - font-size: 13px; - padding: 0 24px 0; -} - -.login #nav { - margin: 24px 0 0 0; -} - -#backtoblog { - margin: 16px 0 0 0; -} - -.login #nav a, -.login #backtoblog a { - text-decoration: none; - color: #999; -} - -.login #nav a:hover, -.login #backtoblog a:hover, -.login h1 a:hover { - color: #00a0d2; -} - -.login #nav a:focus, -.login #backtoblog a:focus, -.login h1 a:focus { - color: #124964; -} - -.login form .input, -.login input[type="text"] { - font-size: 24px; - width: 100%; - padding: 3px; - margin: 2px 6px 16px 0; -} - -.login form .input, -.login input[type="text"], -.login form input[type="checkbox"] { - background: #fbfbfb; -} - -.ie7 .login form .input, -.ie8 .login form .input { - font-family: sans-serif; -} - -.login-action-rp input[type="text"] { - -webkit-box-shadow: none; - box-shadow: none; - margin: 0; -} - -.login #pass-strength-result { - font-weight: 600; - margin: -1px 5px 16px 0; - padding: 6px 5px; - text-align: center; - width: 100%; -} - -.mobile #login { - padding: 20px 0; -} - -.mobile #login form, -.mobile #login .message, -.mobile #login_error { - margin-left: 0; -} - -.mobile #login #nav, -.mobile #login #backtoblog { - margin-left: 8px; -} - -body.interim-login { - height: auto; -} - -.interim-login #login { - padding: 0; - margin: 5px auto 20px; -} - -.interim-login.login h1 a { - width: auto; -} - -.interim-login #login_error, -.interim-login.login .message { - margin: 0 0 16px; -} - -.interim-login.login form { - margin: 0; -} - -@-ms-viewport { - width: device-width; -} - -@media screen and ( max-width: 782px ) { - .interim-login input[type=checkbox] { - height: 16px; - width: 16px; - } - - .interim-login input[type=checkbox]:checked:before { - width: 16px; - font: normal 21px/1 'dashicons'; - margin: -3px 0 0 -4px; - } -} diff --git a/wp-admin/css/login.min.css b/wp-admin/css/login.min.css deleted file mode 100644 index 6289d33546..0000000000 --- a/wp-admin/css/login.min.css +++ /dev/null @@ -1 +0,0 @@ -.meta-box-sortables select,p.submit{max-width:100%}#pressthis-code-wrap,textarea{overflow:auto}input,textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=text],input[type=search],input[type=radio],input[type=tel],input[type=time],input[type=url],input[type=week],input[type=password],input[type=checkbox],input[type=color],input[type=date],input[type=datetime],input[type=datetime-local],input[type=email],input[type=month],input[type=number],select,textarea{border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07);background-color:#fff;color:#32373c;outline:0;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=text]:focus,input[type=search]:focus,input[type=radio]:focus,input[type=tel]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,input[type=password]:focus,input[type=checkbox]:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,select:focus,textarea:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 2px rgba(30,140,190,.8);box-shadow:0 0 2px rgba(30,140,190,.8)}input[type=url],input[type=email]{direction:ltr}input[type=radio],input[type=checkbox]{border:1px solid #b4b9be;background:#fff;color:#555;clear:none;cursor:pointer;display:inline-block;line-height:0;height:16px;margin:-4px 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:middle;width:16px;min-width:16px;-webkit-appearance:none;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=radio]:checked+label:before{color:#82878c}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#00a0d2}.wp-admin p input[type=radio],.wp-admin p input[type=checkbox],td>input[type=checkbox]{margin-top:0}.wp-admin p label input[type=checkbox]{margin-top:-4px}.wp-admin p label input[type=radio]{margin-top:-2px}input[type=radio]{-webkit-border-radius:50%;border-radius:50%;margin-right:4px;line-height:10px}input[type=radio]:checked:before,input[type=checkbox]:checked:before{float:left;display:inline-block;vertical-align:middle;width:16px;font:400 21px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=checkbox]:checked:before{content:'\f147';margin:-3px 0 0 -4px;color:#1e8cbe}input[type=radio]:checked:before{content:'\2022';text-indent:-9999px;-webkit-border-radius:50px;border-radius:50px;font-size:24px;width:6px;height:6px;margin:4px;line-height:16px;background-color:#1e8cbe}@-moz-document url-prefix(){.form-table input.tog,input[type=radio],input[type=checkbox]{margin-bottom:-1px}}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration{display:none}.ie8 input[type=password]{font-family:sans-serif}button,input,select,textarea{font-family:inherit;font-size:inherit;font-weight:inherit}input,select,textarea{font-size:14px;-webkit-border-radius:0;border-radius:0}textarea{padding:2px 6px;line-height:1.4}.wp-admin input[type=file]{padding:3px 0}label{cursor:pointer}input,select{margin:1px;padding:3px 5px}input.code{padding-top:6px}textarea.code{line-height:1.4;padding:4px 6px 1px}input.readonly,input[readonly],textarea.readonly,textarea[readonly]{background-color:#eee}.wp-core-ui :-moz-placeholder,:-moz-placeholder{color:#a9a9a9}.form-invalid input,.form-invalid input:focus,.form-invalid select,.form-invalid select:focus{border-color:#dc3232!important;-webkit-box-shadow:0 0 2px rgba(204,0,0,.8);box-shadow:0 0 2px rgba(204,0,0,.8)}.form-table .form-required.form-invalid td:after{content:'\f534';font:400 20px/1 dashicons;color:#dc3232;margin-left:-25px;vertical-align:middle}.form-input-tip{color:#666}input.disabled,input:disabled,select.disabled,select:disabled,textarea.disabled,textarea:disabled{background:rgba(255,255,255,.5);border-color:rgba(222,222,222,.75);-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.04);box-shadow:inset 0 1px 2px rgba(0,0,0,.04);color:rgba(51,51,51,.5)}input[type=file].disabled,input[type=file]:disabled,input[type=range].disabled,input[type=range]:disabled{background:0 0;-webkit-box-shadow:none;box-shadow:none}input[type=radio].disabled,input[type=radio].disabled:checked:before,input[type=radio]:disabled,input[type=radio]:disabled:checked:before,input[type=checkbox].disabled,input[type=checkbox].disabled:checked:before,input[type=checkbox]:disabled,input[type=checkbox]:disabled:checked:before{opacity:.7}.wp-admin select{padding:2px;line-height:28px;height:28px;vertical-align:middle}.wp-admin .button-cancel{padding:0 5px;line-height:2}.wp-admin select[multiple]{height:auto}.submit{padding:1.5em 0;margin:5px 0;-webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px;border:none}form p.submit a.cancel:hover{text-decoration:none}p.submit{text-align:left;margin-top:20px;padding-top:10px}.textright p.submit{border:none;text-align:right}table.form-table+input+input+p.submit,table.form-table+input+p.submit,table.form-table+p.submit{border-top:none;padding-top:0}#major-publishing-actions input,#minor-publishing-actions .preview,#minor-publishing-actions input{text-align:center}input.all-options,textarea.all-options{width:250px}input.large-text,textarea.large-text{width:99%}input.regular-text{width:25em}input.small-text{width:50px;padding:1px 6px}input[type=number].small-text{width:65px}#doaction,#doaction2,#post-query-submit{margin:1px 8px 0 0}.tablenav #changeit,.tablenav #clear-recent-list,.tablenav #delete_all,.wp-filter #delete_all{margin-top:1px}.tablenav .actions select{float:left;margin-right:6px;max-width:200px}.ie8 .tablenav .actions select{width:155px}.ie8 .tablenav .actions select#cat{width:200px}#timezone_string option{margin-left:1em}#upload-form label{color:#777}button.wp-hide-pw>.dashicons{position:relative;top:3px}#your-profile label+a,fieldset label,label{vertical-align:middle}#misc-publishing-actions label,.options-media-php label[for*="_size_"]{vertical-align:baseline}#misc-publishing-actions label[for=post_status]:before{content:'\f173';display:inline-block;font:400 20px/1 dashicons;speak:none;left:-1px;padding:0 5px 0 0;position:relative;top:0;text-decoration:none!important;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#pass1-text,.pw-weak,.show-password #pass1{display:none}#pass-strength-result{background-color:#eee;border:1px solid #ddd;color:#23282d;margin:-2px 5px 5px 1px;padding:3px 5px;text-align:center;width:25em;box-sizing:border-box;opacity:0}#pass-strength-result,.color-option{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}#pass-strength-result.short{background-color:#f1adad;border-color:#e35b5b;opacity:1}#pass-strength-result.bad{background-color:#fbc5a9;border-color:#f78b53;opacity:1}#pass-strength-result.good{background-color:#ffe399;border-color:#ffc733;opacity:1}#pass-strength-result.strong{background-color:#c1e1b9;border-color:#83c373;opacity:1}#pass1-text.short,#pass1.short{border-color:#e35b5b}#pass1-text.bad,#pass1.bad{border-color:#f78b53}#pass1-text.good,#pass1.good{border-color:#ffc733}#pass1-text.strong,#pass1.strong{border-color:#83c373}.indicator-hint{padding-top:8px}.show-password #pass1-text{display:inline-block}.form-table span.description.important{font-size:12px}p.search-box{float:right;margin:0}.network-admin.themes-php p.search-box{clear:left}.search-box input[name="s"],.tablenav .search-plugins input[name="s"],.tagsdiv .newtag{float:left;height:28px;margin:0 4px 0 0}input[type=text].ui-autocomplete-loading,input[type=email].ui-autocomplete-loading{background-image:url(../images/loading.gif);background-repeat:no-repeat;background-position:right center;visibility:visible}input.ui-autocomplete-input.open{border-bottom-color:transparent}ul#add-to-blog-users{margin:0 0 0 14px}.ui-autocomplete{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;border:1px solid #5b9dd9;-webkit-box-shadow:0 1px 2px rgba(30,140,190,.8);box-shadow:0 1px 2px rgba(30,140,190,.8);background-color:#fff}.ui-autocomplete li{margin-bottom:0;padding:4px 10px;white-space:nowrap;text-align:left}.ui-autocomplete li.ui-state-focus{background-color:#ddd;cursor:pointer}.form-table{border-collapse:collapse;margin-top:.5em;width:100%;clear:both}.form-table,.form-table td,.form-table td p,.form-table th,.form-wrap label{font-size:14px}.form-table td{margin-bottom:9px;padding:15px 10px;line-height:1.3;vertical-align:middle}.form-table th,.form-wrap label{color:#23282d;font-weight:400;text-shadow:none;vertical-align:baseline}.form-table th{vertical-align:top;text-align:left;padding:20px 10px 20px 0;width:200px;line-height:1.3;font-weight:600}.form-table th.th-full{width:auto;font-weight:400}.form-table td p{margin-top:4px;margin-bottom:0}.form-table td fieldset label{margin:.25em 0 .5em!important;display:inline-block}.form-table td fieldset label,.form-table td fieldset li,.form-table td fieldset p{line-height:1.4em}.form-table input.tog,.form-table input[type=radio]{margin-top:-4px;margin-right:4px;float:none}.form-table .pre{padding:8px;margin:0}table.form-table td .updated{font-size:13px}table.form-table td .updated p{font-size:13px;margin:.3em 0}#profile-page .form-table textarea{width:500px;margin-bottom:6px}#profile-page .form-table #rich_editing{margin-right:5px}#your-profile legend{font-size:22px}#display_name{width:15em}#adduser .form-field input,#createuser .form-field input{width:25em}.color-option{display:inline-block;width:24%;padding:5px 15px 15px;box-sizing:border-box;margin-bottom:3px;cursor:pointer}.color-option.selected,.color-option:hover{background:#ddd}.color-palette{width:100%;border-spacing:0;border-collapse:collapse}.color-palette td{height:20px;padding:0;border:none}.tool-box .title{margin:8px 0;font-size:18px;font-weight:400;line-height:24px}.card{position:relative;margin-top:20px;padding:.7em 2em 1em;min-width:255px;max-width:520px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff}.pressthis h4{margin:2em 0 1em}.pressthis textarea{width:100%;font-size:1em}.login form,.login h1 a{font-weight:400;overflow:hidden}.pressthis-bookmarklet-wrapper{margin:20px 0 8px;vertical-align:top;position:relative;z-index:1}.pressthis-bookmarklet,.pressthis-bookmarklet:active,.pressthis-bookmarklet:focus,.pressthis-bookmarklet:hover{display:inline-block;position:relative;cursor:move;color:#32373c;background:#e6e6e6;-webkit-border-radius:5px;border-radius:5px;border:1px solid #b4b4b4;font-style:normal;line-height:16px;font-size:14px;text-decoration:none}.pressthis-bookmarklet:active{outline:0}.pressthis-bookmarklet:after{content:'';width:70%;height:55%;z-index:-1;position:absolute;right:10px;bottom:9px;background:0 0;-webkit-transform:skew(20deg) rotate(6deg);-ms-transform:skew(20deg) rotate(6deg);transform:skew(20deg) rotate(6deg);-webkit-box-shadow:0 10px 8px rgba(0,0,0,.6);box-shadow:0 10px 8px rgba(0,0,0,.6)}.pressthis-bookmarklet:hover:after{-webkit-transform:skew(20deg) rotate(9deg);-ms-transform:skew(20deg) rotate(9deg);transform:skew(20deg) rotate(9deg);-webkit-box-shadow:0 10px 8px rgba(0,0,0,.7);box-shadow:0 10px 8px rgba(0,0,0,.7)}.pressthis-bookmarklet span{display:inline-block;margin:0;padding:0 12px 8px 9px}.pressthis-js-toggle,.pressthis-js-toggle.button.button{margin-left:10px;padding:0;height:auto;vertical-align:top}.pressthis-bookmarklet span:before{color:#777;font:400 20px/1 dashicons;content:'\f157';position:relative;display:inline-block;top:4px;margin-right:4px}.pressthis-js-toggle .dashicons{margin:5px 8px 6px 7px;color:#777}#local-time,#utc-time{padding-left:25px;font-style:italic}.defaultavatarpicker .avatar{margin:2px 0;vertical-align:middle}.options-general-php input.small-text{width:56px}.options-general-php .spinner{float:none;margin:0 3px}.options-general-php .language-install-spinner,.settings-php .language-install-spinner{display:inline-block;float:none;margin:-3px 5px 0;vertical-align:middle}.setup-php textarea{max-width:100%}.form-field #site-address{max-width:25em}.form-field #domain{max-width:22em}.form-field #admin-email,.form-field #blog_last_updated,.form-field #blog_registered,.form-field #path,.form-field #site-title{max-width:25em}.form-field #path{margin-bottom:5px}#search-sites,#search-users{max-width:100%}.request-filesystem-credentials-dialog{display:none}.request-filesystem-credentials-dialog .notification-dialog{top:15%;max-height:85%}.request-filesystem-credentials-dialog-content{margin:25px}.request-filesystem-credentials-form input[type=text],.request-filesystem-credentials-form input[type=password]{display:block}.request-filesystem-credentials-dialog input[type=text],.request-filesystem-credentials-dialog input[type=password]{width:100%}.request-filesystem-credentials-form .field-title{font-weight:600}.request-filesystem-credentials-dialog label[for=hostname],.request-filesystem-credentials-dialog label[for=public_key],.request-filesystem-credentials-dialog label[for=private_key]{display:block;margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:left;width:48%}.request-filesystem-credentials-dialog .ftp-password{margin-left:4%}.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons{text-align:right}#request-filesystem-credentials-dialog .button:not(:last-child),.request-filesystem-credentials-dialog label[for=ftp]{margin-right:10px}#request-filesystem-credentials-form .cancel-button{display:none}#request-filesystem-credentials-dialog .cancel-button{display:inline}@media screen and (max-width:782px){textarea{-webkit-appearance:none}input[type=text],input[type=search],input[type=password],input[type=email],input[type=number]{-webkit-appearance:none;padding:6px 10px}input.code{padding-bottom:5px;padding-top:10px}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox],input[type=checkbox]{-webkit-appearance:none;padding:10px}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-bottom:8px}.widefat tfoot td input[type=checkbox]:before,.widefat th input[type=checkbox]:before,.widefat thead td input[type=checkbox]:before,input[type=checkbox]:checked:before{font:400 30px/1 Dashicons;margin:-3px -5px}input[type=radio],input[type=checkbox]{height:25px;width:25px}.wp-admin p input[type=radio],.wp-admin p input[type=checkbox]{margin-top:-3px}input[type=radio]:checked:before{vertical-align:middle;width:9px;height:9px;margin:7px;line-height:16px}.wp-upload-form input[type=submit]{margin-top:10px}#wpbody select{height:36px;font-size:16px}.wp-admin .button-cancel{padding:0;font-size:14px}#adduser .form-field input,#createuser .form-field input{width:100%}.form-table{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table .color-palette td{display:table-cell;width:15px}.form-table table.color-palette{margin-right:10px}input,textarea{font-size:16px}#profile-page .form-table textarea,.form-table span.description,.form-table td input[type=text],.form-table td input[type=password],.form-table td input[type=email],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.form-table .form-required.form-invalid td:after{float:right;margin:-30px 3px 0 0}#wpbody .form-table td select{height:40px}.form-table input[type=text].small-text,input[type=text].small-text,input[type=search].small-text,input[type=password].small-text,input[type=number].small-text{width:auto;max-width:55px;display:inline;padding:3px 6px;margin:0 3px}#pass-strength-result{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:8px}p.search-box{float:none;position:absolute;bottom:0;width:98%;height:90px;margin-bottom:20px}p.search-box input[name="s"]{height:auto;float:none;width:100%;margin-bottom:10px;vertical-align:middle;-webkit-appearance:none}p.search-box input[type=submit]{margin-bottom:10px}.form-table span.description{display:inline;padding:4px 0 0;line-height:1.4em;font-size:14px}.form-table th{padding-top:10px;padding-bottom:0;border-bottom:0}.form-table td{margin-bottom:0;padding-bottom:6px;padding-top:4px;padding-left:0}.form-table.permalink-structure td code{margin-left:32px}.form-table.permalink-structure td input[type=text]{margin-left:32px;margin-top:4px;width:96%}.form-table input.regular-text{width:100%}.form-table label{font-size:14px}.form-table fieldset label{display:block}#utc-time{margin-top:10px}#local-time,#utc-time{display:block;float:none;padding:0;line-height:2}.form-field #domain{max-width:none}.wp-pwd{position:relative}.wp-pwd [type=text],.wp-pwd [type=password]{padding-right:40px}.wp-pwd button.button{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;line-height:2;margin:0;padding:5px 10px;position:absolute;right:0;top:0}.wp-pwd button.button:active,.wp-pwd button.button:focus,.wp-pwd button.button:hover{background:0 0}.wp-pwd .button .text{display:none}}body,html{background:#f1f1f1}.locale-he-il em,.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}@media only screen and (max-width:768px){.form-field input[type=text],.form-field input[type=password],.form-field input[type=email],.form-field select,.form-field textarea{width:99%}.form-wrap .form-field{padding:0}#profile-page .form-table textarea{max-width:400px;width:auto}}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button,.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}@media only screen and (max-height:480px){.request-filesystem-credentials-dialog .notification-dialog{width:100%;height:100%;max-height:100%;position:fixed;top:0;margin:0;left:0}}@media screen and (max-width:600px){.color-option{width:49%}}body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:700}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-weight:700}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-right:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-left:0}}body,html{height:100%;margin:0;padding:0}body{min-width:0;color:#444;font-family:"Open Sans",sans-serif;font-size:13px;line-height:1.4em}a{color:#0073aa;-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;outline:0}a:active,a:hover{color:#00a0d2}a:focus{color:#124964;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ie8 a:focus{outline:#5b9dd9 solid 1px}p{line-height:1.5}.login .message{border-left:4px solid #00a0d2;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.login #login_error,.login .message{-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.login #login_error{border-left:4px solid #dd3d36;background:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}#loginform p.submit,.login-action-lostpassword p.submit{border:none;margin:-10px 0 20px}.login *{margin:0;padding:0}.login form{margin-top:20px;margin-left:0;padding:26px 24px 46px;background:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.13);box-shadow:0 1px 3px rgba(0,0,0,.13)}.login form .forgetmenot{font-weight:400;float:left;margin-bottom:0}.login .button-primary{float:right}#login form p{margin-bottom:0}#login form p.submit{margin:0;padding:0}.login label{color:#777;font-size:14px}.login #backtoblog a,.login #nav a,.login h1 a{text-decoration:none;color:#999}.login form .forgetmenot label{font-size:12px;line-height:19px}.login h1{text-align:center}.login h1 a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);-webkit-background-size:84px;background-size:84px;background-position:center top;background-repeat:no-repeat;height:84px;font-size:20px;line-height:1.3em;margin:0 auto 25px;padding:0;width:84px;text-indent:-9999px;outline:0;display:block}#login{width:320px;padding:8% 0 0;margin:auto}#login_error,.login .message{margin-left:0;padding:12px}.login #backtoblog,.login #nav{font-size:13px;padding:0 24px}.login #nav{margin:24px 0 0}#backtoblog{margin:16px 0 0}.login #backtoblog a:hover,.login #nav a:hover,.login h1 a:hover{color:#00a0d2}.login #backtoblog a:focus,.login #nav a:focus,.login h1 a:focus{color:#124964}.login form .input,.login input[type=text]{font-size:24px;width:100%;padding:3px;margin:2px 6px 16px 0}.login form .input,.login form input[type=checkbox],.login input[type=text]{background:#fbfbfb}.ie7 .login form .input,.ie8 .login form .input{font-family:sans-serif}.login-action-rp input[type=text]{-webkit-box-shadow:none;box-shadow:none;margin:0}.login #pass-strength-result{font-weight:600;margin:-1px 5px 16px 0;padding:6px 5px;text-align:center;width:100%}.mobile #login{padding:20px 0}.mobile #login .message,.mobile #login form,.mobile #login_error{margin-left:0}.mobile #login #backtoblog,.mobile #login #nav{margin-left:8px}body.interim-login{height:auto}.interim-login #login{padding:0;margin:5px auto 20px}.interim-login.login h1 a{width:auto}.interim-login #login_error,.interim-login.login .message{margin:0 0 16px}.interim-login.login form{margin:0}@-ms-viewport{width:device-width}@media screen and (max-width:782px){.interim-login input[type=checkbox]{height:16px;width:16px}.interim-login input[type=checkbox]:checked:before{width:16px;font:400 21px/1 dashicons;margin:-3px 0 0 -4px}} \ No newline at end of file diff --git a/wp-admin/css/media-rtl.css b/wp-admin/css/media-rtl.css deleted file mode 100644 index 20c69fc904..0000000000 --- a/wp-admin/css/media-rtl.css +++ /dev/null @@ -1,1191 +0,0 @@ -/*------------------------------------------------------------------------------ - 14.0 - Media Screen -------------------------------------------------------------------------------*/ - -.media-item .describe { - border-collapse: collapse; - width: 100%; - border-top: 1px solid #dfdfdf; - clear: both; - cursor: default; -} - -.media-item.media-blank .describe { - border: 0; -} - -.media-item .describe th { - vertical-align: top; - text-align: right; - padding: 5px 10px 10px; - width: 140px; -} - -.media-item .describe .align th { - padding-top: 0; -} - -.media-item .media-item-info tr { - background-color: transparent; -} - -.media-item .describe td { - padding: 0 0 8px 8px; - vertical-align: top; -} - -.media-item thead.media-item-info td { - padding: 4px 10px 0; -} - -.media-item .media-item-info .A1B1 { - padding: 0 10px 0 0; -} - -.media-item td.savesend { - padding-bottom: 15px; -} - -.media-item .thumbnail { - max-height: 128px; - max-width: 128px; -} - -#wpbody-content #async-upload-wrap a { - display: none; -} - -.media-upload-form { - margin-top: 20px; -} - -.media-upload-form td label { - margin-left: 6px; - margin-right: 2px; -} - -.media-upload-form .align .field label { - display: inline; - padding: 0 23px 0 0; - margin: 0 3px 0 1em; - font-weight: 600; -} - -.media-upload-form tr.image-size label { - margin: 0 5px 0 0; - font-weight: 600; -} - -.media-upload-form th.label label { - font-weight: 600; - margin: 0.5em; - font-size: 13px; -} - -.media-upload-form th.label label span { - padding: 0 5px; -} - -.media-item .describe input[type="text"], -.media-item .describe textarea { - width: 460px; -} - -.media-item .describe p.help { - margin: 0; - padding: 0 5px 0 0; -} - -.media-item .edit-attachment, -.describe-toggle-on, -.describe-toggle-off { - display: block; - line-height: 36px; - float: left; - margin-left: 10px; -} - -.media-item .describe-toggle-off, -.media-item.open .describe-toggle-on { - display: none; -} - -.media-item.open .describe-toggle-off { - display: block; -} - -.media-upload-form .media-item { - min-height: 36px; - margin-bottom: 1px; - position: relative; - width: 100%; - background: #fff; -} - -.media-upload-form .media-item, -.media-upload-form .media-item .error { - -webkit-box-shadow: 0 1px 0 #dfdfdf; - box-shadow: 0 1px 0 #dfdfdf; -} - -#media-items:empty { - border: 0 none; -} - -.media-item .filename { - line-height: 36px; - overflow: hidden; - margin-right: 6px; -} - -.media-item .pinkynail { - float: right; - margin: 2px 3px 0 10px; - max-width: 40px; - max-height: 32px; -} - -.media-item .startopen, -.media-item .startclosed { - display: none; -} - -.media-item .original { - position: relative; - height: 34px; -} - -.media-item .progress { - float: left; - height: 22px; - margin: 7px 6px; - width: 200px; - line-height: 2em; - padding: 0; - overflow: hidden; - -webkit-border-radius: 22px; - border-radius: 22px; - background: #ddd; - -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); - box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); -} - -.media-item .bar { - z-index: 9; - width: 0; - height: 100%; - margin-top: -22px; - -webkit-border-radius: 22px; - border-radius: 22px; - background-color: #0073aa; - -webkit-box-shadow: inset 0 0 2px rgba(0,0,0,0.3); - box-shadow: inset 0 0 2px rgba(0,0,0,0.3); -} - -.media-item .progress .percent { - z-index: 10; - position: relative; - width: 200px; - padding: 0; - color: #fff; - text-align: center; - line-height: 22px; - font-weight: 400; - text-shadow: 0 1px 2px rgba(0,0,0,0.2); -} - -.upload-php .fixed .column-parent { - width: 15%; -} - -.js .html-uploader #plupload-upload-ui { - display: none; -} - -.js .html-uploader #html-upload-ui { - display: block; -} - -.media-upload-form .media-item.error, -.media-upload-form .media-item .error { - width: auto; - margin: 0 0 1px 0; -} - -.media-upload-form .media-item .error { - padding: 10px 14px 10px 0; -} - -.media-item .error-div a.dismiss { - display: block; - float: left; - margin: 0 15px 0 10px; -} - -/*------------------------------------------------------------------------------ - 14.1 - Media Library -------------------------------------------------------------------------------*/ - -.find-box { - background-color: #fff; - -webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - width: 600px; - overflow: hidden; - margin-right: -300px; - position: fixed; - top: 30px; - bottom: 30px; - right: 50%; - z-index: 100105; -} - -.find-box-head { - background: #fcfcfc; - border-bottom: 1px solid #dfdfdf; - height: 36px; - font-size: 18px; - font-weight: 600; - line-height: 36px; - padding: 0 16px 0 36px; - position: absolute; - top: 0; - right: 0; - left: 0; -} - -.find-box-inside { - overflow: auto; - padding: 16px; - background-color: #fff; - position: absolute; - top: 37px; - bottom: 45px; - overflow-y: scroll; - width: 100%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.find-box-search { - padding-bottom: 16px; -} - -.find-box-search .spinner { - float: none; - right: 105px; - position: absolute; -} - -.find-box-search, -#find-posts-response { - position: relative; /* RTL fix, #WP28010 */ -} - -#find-posts-input, -#find-posts-search { - float: right; -} - -#find-posts-input { - width: 140px; - height: 28px; - margin: 0 0 0 4px; -} - -.widefat .found-radio { - padding-left: 0; - width: 16px; -} - -#find-posts-close { - width: 36px; - height: 36px; - position: absolute; - top: 0; - left: 0; - cursor: pointer; - text-align: center; - color: #666; -} - -#find-posts-close:hover { - color: #00a0d2; -} - -#find-posts-close:before { - font: normal 20px/36px 'dashicons'; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - content: '\f158'; -} - -.find-box-buttons { - padding: 8px 16px; - background: #fcfcfc; - border-top: 1px solid #dfdfdf; - position: absolute; - bottom: 0; - right: 0; - left: 0; -} - -@media screen and ( max-width: 782px ) { - .find-box-inside { - bottom: 57px; - } -} - -@media screen and ( max-width: 660px ) { - - .find-box { - top: 0; - bottom: 0; - right: 0; - left: 0; - margin: 0; - width: 100%; - } - -} - -.ui-find-overlay { - position: fixed; - top: 0; - right: 0; - left: 0; - bottom: 0; - background: #000; - opacity: 0.7; - filter: alpha(opacity=70); - z-index: 100100; -} - -ul#dismissed-updates { - display: none; -} - -form.upgrade { - margin-top: 8px; -} - -form.upgrade .hint { - font-style: italic; - font-size: 85%; - margin: -0.5em 0 2em 0; -} - -#poststuff .inside .the-tagcloud { - margin: 5px 0 10px; - padding: 8px; - border: 1px solid #ddd; - line-height: 1.8em; - word-spacing: 3px; - -webkit-border-radius: 6px; - border-radius: 6px; -} - -.drag-drop #drag-drop-area { - border: 4px dashed #b4b9be; - height: 200px; -} - -.drag-drop .drag-drop-inside { - margin: 70px auto 0; - width: 250px; -} - -.drag-drop-inside p { - color: #a0a5aa; - font-size: 14px; - margin: 5px 0; - display: none; -} - -.drag-drop .drag-drop-inside p { - text-align: center; -} - -.drag-drop-inside p.drag-drop-info { - font-size: 20px; -} - -.drag-drop .drag-drop-inside p, -.drag-drop-inside p.drag-drop-buttons { - display: block; -} - -/* -#drag-drop-area:-moz-drag-over { - border-color: #83b4d8; -} -border color while dragging a file over the uploader drop area */ -.drag-drop.drag-over #drag-drop-area { - border-color: #83b4d8; -} - -#plupload-upload-ui { - position: relative; -} - -/** - * Media Library grid view - */ - -.media-frame.mode-grid, -.media-frame.mode-grid .media-frame-content, -.media-frame.mode-grid .attachments-browser .attachments, -.media-frame.mode-grid .uploader-inline-content { - position: static; -} - -/* Regions we don't use at all */ -.media-frame.mode-grid .media-frame-title, -.media-frame.mode-grid .media-frame-router, -.media-frame.mode-grid .media-frame-menu { - display: none; -} - -.media-frame.mode-grid .media-frame-content { - background-color: transparent; - border: none; -} - -.upload-php .mode-grid .media-sidebar { - position: relative; - width: auto; - margin-bottom: 16px; - padding: 0 16px; - border-right: 4px solid #dd3d36; - -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); - background-color: #fff; -} - -.upload-php .mode-grid .hide-sidebar .media-sidebar { - display: none; -} - -.upload-php .mode-grid .media-sidebar .media-uploader-status { - border-bottom: none; - padding-bottom: 0; - max-width: 100%; -} - -.upload-php .mode-grid .media-sidebar .upload-error { - margin: 12px 0; - padding: 4px 0 0; - border: none; - -webkit-box-shadow: none; - box-shadow: none; - background: none; -} - -.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors { - top: -10px; - left: -14px; - padding: 10px; -} - -.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:before { - content: "\f153"; - display: block; - font: normal 16px/1 dashicons; - color: #bbb; -} - -.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:focus:before, -.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:hover:before { - color: #c00; -} - -.upload-php .mode-grid .media-sidebar .media-uploader-status.errors h3 { - display: none; -} - -.media-frame.mode-grid .uploader-inline { - position: relative; - top: auto; - left: auto; - right: auto; - bottom: auto; - padding-top: 0; - margin-top: 0; - border: 4px dashed #b4b9be; -} - -.media-frame.mode-select .attachments-browser.fixed .attachments { - position: relative; - top: 94px; /* prevent jumping up when the toolbar becomes fixed */ - padding-bottom: 94px; /* offset for above so the bottom doesn't get cut off */ -} - -.media-frame.mode-grid .attachment:focus, -.media-frame.mode-grid .selected.attachment:focus, -.media-frame.mode-grid .attachment.details:focus { - -webkit-box-shadow: - inset 0 0 2px 3px #f1f1f1, - inset 0 0 0 7px #5b9dd9; - box-shadow: - inset 0 0 2px 3px #f1f1f1, - inset 0 0 0 7px #5b9dd9; - outline: none; -} - -.media-frame.mode-grid .selected.attachment { - -webkit-box-shadow: - inset 0 0 0 5px #f1f1f1, - inset 0 0 0 7px #ccc; - box-shadow: - inset 0 0 0 5px #f1f1f1, - inset 0 0 0 7px #ccc; -} - -.media-frame.mode-grid .attachment.details { - -webkit-box-shadow: - inset 0 0 0 3px #f1f1f1, - inset 0 0 0 7px #1e8cbe; - box-shadow: - inset 0 0 0 3px #f1f1f1, - inset 0 0 0 7px #1e8cbe; -} - -.media-frame.mode-grid.mode-select .attachment .thumbnail { - opacity: 0.65; -} - -.media-frame.mode-select .attachment.selected .thumbnail { - opacity: 1; -} - -.media-frame.mode-grid .media-toolbar { - margin-bottom: 15px; - height: auto; -} - -.media-frame.mode-grid .media-toolbar select { - margin: 0 0 0 10px; - font-size: 14px; -} - -.media-frame.mode-grid.mode-edit .media-toolbar-secondary > .select-mode-toggle-button { - margin: 0 0 0 8px; - vertical-align: middle; -} - -.media-frame.mode-grid .attachments-browser .bulk-select { - display: inline-block; - margin: 0 0 0 10px; -} - -.media-frame.mode-grid .search { - margin-top: 0; -} - -.media-frame.mode-grid .spinner { - margin-top: 16px; -} - -.attachments-browser .media-toolbar-secondary > .media-button { - margin-left: 10px; -} - -.media-frame.mode-select .attachments-browser.fixed .media-toolbar { - position: fixed; - top: 32px; - right: auto; - left: 20px; - margin-top: 0; -} - -.media-frame.mode-grid .attachments-browser { - padding: 0; -} - -.media-frame.mode-grid .attachments-browser .attachments { - padding: 2px; -} - -.media-frame.mode-grid .attachments-browser .no-media { - color: #999; - font-size: 18px; - font-style: normal; - margin: 0; - padding: 100px 0 0; - text-align: center; -} - -/** - * Attachment details modal - */ - -.edit-attachment-frame { - display: block; - height: 100%; - width: 100%; -} - -.edit-attachment-frame .edit-media-header { - overflow: hidden; -} - -.upload-php .media-modal-close .media-modal-icon:before { - content: '\f335'; - font-size: 22px; -} - -.upload-php .media-modal-close, -.edit-attachment-frame .edit-media-header .left, -.edit-attachment-frame .edit-media-header .right { - cursor: pointer; - color: #777; - background-color: transparent; - height: 50px; - width: 50px; - padding: 0; - position: absolute; - text-align: center; - border: 0; - border-right: 1px solid #ddd; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; -} - -.upload-php .media-modal-close { - top: 0; - left: 0; -} - -.edit-attachment-frame .edit-media-header .left { - left: 102px; -} - -.edit-attachment-frame .edit-media-header .right { - left: 51px; -} - -.edit-attachment-frame .media-frame-title { - right: 0; - left: 150px; /* leave space for prev/next/close */ -} - -.edit-attachment-frame .edit-media-header .right:before, -.edit-attachment-frame .edit-media-header .left:before { - font: normal 20px/50px 'dashicons' !important; - display: inline; - font-weight: 300; -} - -.upload-php .media-modal-close:hover, -.upload-php .media-modal-close:focus, -.edit-attachment-frame .edit-media-header .left:hover, -.edit-attachment-frame .edit-media-header .right:hover, -.edit-attachment-frame .edit-media-header .left:focus, -.edit-attachment-frame .edit-media-header .right:focus { - background: #ddd; - border-color: #ccc; - color: #000; - outline: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.upload-php .media-modal-close:focus .media-modal-icon:before, -.upload-php .media-modal-close:hover .media-modal-icon:before { - color: #000; -} - -.edit-attachment-frame .edit-media-header .left:before, -.rtl .edit-attachment-frame .edit-media-header .right:before { - content: '\f341'; -} - -.edit-attachment-frame .edit-media-header .right:before, -.rtl .edit-attachment-frame .edit-media-header .left:before { - content: '\f345'; -} - -.edit-attachment-frame .edit-media-header .left.disabled, -.edit-attachment-frame .edit-media-header .right.disabled, -.edit-attachment-frame .edit-media-header .left.disabled:hover, -.edit-attachment-frame .edit-media-header .right.disabled:hover { - color: #ccc; - background: inherit; - cursor: default; - pointer-events: none; -} - -.edit-attachment-frame .media-frame-content, -.edit-attachment-frame .media-frame-router { - right: 0; -} - -.edit-attachment-frame .media-frame-content { - border-bottom: none; - bottom: 0; - top: 50px; -} - -.edit-attachment-frame .attachment-details { - position: absolute; - overflow: auto; - top: 0; - bottom: 0; - left: 0; - right: 0; - -webkit-box-shadow: inset 0px 4px 4px -4px rgba(0, 0, 0, 0.1); - box-shadow: inset 0px 4px 4px -4px rgba(0, 0, 0, 0.1); -} - -.edit-attachment-frame .attachment-media-view { - float: right; - width: 65%; - height: 100%; -} - -.edit-attachment-frame .attachment-media-view .thumbnail { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - padding: 16px; - height: 100%; -} - -.edit-attachment-frame .attachment-media-view .details-image { - display: block; - margin-bottom: 16px; - max-width: 100%; - max-height: 90%; - max-height: -webkit-calc( 100% - 42px ); - max-height: calc( 100% - 42px ); /* leave space for actions underneath */ -} - -.edit-attachment-frame .wp-media-wrapper { - margin-bottom: 12px; -} - -.edit-attachment-frame input, -.edit-attachment-frame textarea { - padding: 6px 8px; - line-height: 16px; -} - -.edit-attachment-frame .attachment-info { - overflow: auto; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin-bottom: 0; - padding: 12px 16px 0; - width: 35%; - height: 100%; - -webkit-box-shadow: inset 0px 4px 4px -4px rgba(0, 0, 0, 0.1); - box-shadow: inset 0px 4px 4px -4px rgba(0, 0, 0, 0.1); - border-bottom: 0; - border-right: 1px solid #ddd; - background: #f3f3f3; -} - -.edit-attachment-frame .attachment-info .details, -.edit-attachment-frame .attachment-info .settings { - position: relative; /* RTL fix, #WP29352 */ - overflow: hidden; - float: none; - margin-bottom: 15px; - padding-bottom: 15px; - border-bottom: 1px solid #ddd; -} - -.edit-attachment-frame .attachment-info .filename { - font-weight: normal; - color: #666; -} - -.edit-attachment-frame .attachment-info .thumbnail { - margin-bottom: 12px; -} - -.attachment-info .actions { - margin-bottom: 16px; -} - -.attachment-info .actions a { - display: inline; - text-decoration: none; -} - - -/*------------------------------------------------------------------------------ - 14.2 - Image Editor -------------------------------------------------------------------------------*/ - -.wp_attachment_details label[for="content"] { - font-size: 13px; - line-height: 1.5; - margin: 1em 0; -} - -.wp_attachment_details #attachment_caption { - height: 4em; -} - -.describe .image-editor { - vertical-align: top; -} - -.imgedit-wrap { - position: relative; -} - -.imgedit-settings p { - margin: 8px 0 0; -} - -.describe .imgedit-wrap .imgedit-settings { - padding: 0 5px; -} - -.wp_attachment_holder div.updated { - margin-top: 0; -} - -.wp_attachment_holder .imgedit-wrap > div { - height: auto; - overflow: hidden; -} - -.wp_attachment_holder .imgedit-wrap .imgedit-panel-content { - padding-left: 16px; - width: auto; - overflow: hidden; -} - -.wp_attachment_holder .imgedit-wrap .imgedit-settings { - float: left; - width: 250px; -} - -.imgedit-settings input { - margin-top: 0; - vertical-align: middle; -} - -.imgedit-wait { - position: absolute; - top: 0; - background: #fff url(../images/spinner.gif) no-repeat center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - opacity: 0.7; - filter: alpha(opacity=70); - width: 100%; - height: 500px; - display: none; -} - -.no-float { - float: none; -} - -.media-disabled, -.imgedit-settings .disabled { - color: grey; -} - -.wp_attachment_image, -.A1B1 { - overflow: hidden; -} - -.wp_attachment_image .button, -.A1B1 .button { - float: right; -} - -.no-js .wp_attachment_image .button { - display: none; -} - -.wp_attachment_image .spinner, -.A1B1 .spinner { - float: right; -} - -.imgedit-menu { - margin: 0 0 12px; - min-width: 300px; -} - -.imgedit-menu div { - float: right; - width: 32px; - border: 1px solid #d5d5d5; - background: #f1f1f1; - margin: 0 0 0 8px; - height: 32px; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-align: center; - line-height: 28px; - color: #777; - cursor: pointer; -} - -.imgedit-menu div:before { - font: normal 20px/1 'dashicons'; - speak: none; - vertical-align: middle; -} - -.imgedit-menu div:hover { - border-color: #c1c1c1; - background-color: #eaeaea; - color: #32373c; -} - -.imgedit-menu div.disabled { - border-color: #ccc; - background-color: #ddd; - color: #777; - filter: alpha(opacity=50); - opacity: 0.5; - cursor: default; -} - -.imgedit-crop:before { - content:'\f165'; -} - -.imgedit-rleft:before { - content:'\f166'; -} - -.imgedit-rright:before { - content:'\f167'; -} - -.imgedit-flipv:before { - content:'\f168'; -} - -.imgedit-fliph:before { - content:'\f169'; -} - -.imgedit-undo:before { - content:'\f171'; -} - -.imgedit-redo:before { - content:'\f172'; -} - -.imgedit-crop-wrap { - position: relative; -} - -.imgedit-crop { - margin: 0 0 0 8px; -} - -.imgedit-rleft { - margin: 0 3px; -} - -.imgedit-rright { - margin: 0 3px 0 8px; -} - -.imgedit-flipv { - margin: 0 3px; -} - -.imgedit-fliph { - margin: 0 3px 0 8px; -} - -.imgedit-undo { - margin: 0 3px; -} - -.imgedit-redo { - margin: 0 3px 0 8px; -} - -.imgedit-applyto img { - margin: 0 0 0 8px; -} - -#poststuff .imgedit-group-top h3 { - padding: 0; -} - -.imgedit-group-top h3 a { - text-decoration: none; -} - -.imgedit-applyto .imgedit-label { - padding: 2px 0 0; - display: block; -} - -.imgedit-help { - display: none; - font-style: italic; -} - -a.imgedit-help-toggle { - text-decoration: none; -} - -.form-table td.imgedit-response { - padding: 0; -} - -.imgedit-submit { - margin: 8px 0 0; -} - -.imgedit-submit-btn { - margin-right: 20px; -} - -.imgedit-wrap .nowrap { - white-space: nowrap; -} - -span.imgedit-scale-warn { - color: red; - font-size: 20px; - font-style: normal; - visibility: hidden; - vertical-align: middle; -} - -.imgedit-group { - margin-bottom: 8px; - padding: 10px; -} - -audio, video { - display: inline-block; - max-width: 100%; -} - -.mejs-container { - width: 100%; - max-width: 100%; -} - -/* =Media Queries --------------------------------------------------------------- */ - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - .imgedit-wait { - background-image: url(../images/spinner-2x.gif); - } -} - -@media screen and ( max-width: 782px ) { - .wp_attachment_details label[for="content"] { - font-size: 14px; - line-height: 1.5em; - } - - .media-upload-form .media-item.error, - .media-upload-form .media-item .error { - font-size: 13px; - line-height: 1.5; - } - - .media-upload-form .media-item.error { - padding: 1px 10px; - } - - .media-upload-form .media-item .error { - padding: 10px 12px 10px 0; - } -} - -/** - * Media queries for media grid. - */ - -@media only screen and (max-width: 1120px) { - /* override for media-views.css */ - #wp-media-grid .wp-filter .attachment-filters { - max-width: 100%; - } -} - -@media only screen and ( max-width: 782px ) { - .media-frame.mode-select .attachments-browser.fixed .media-toolbar { - top: 46px; - left: 10px; - } -} - -@media only screen and (max-width: 600px) { - .media-frame.mode-select .attachments-browser.fixed .media-toolbar { - top: 0; - } -} - -@media only screen and (max-width: 480px) { - .edit-attachment-frame .media-frame-title { - left: 110px; - } - - .upload-php .media-modal-close, - .edit-attachment-frame .edit-media-header .left, - .edit-attachment-frame .edit-media-header .right { - width: 40px; - height: 40px; - } - - .upload-php .media-modal-close .media-modal-icon { - margin: 9px 10px; - } - - .edit-attachment-frame .edit-media-header .right:before, - .edit-attachment-frame .edit-media-header .left:before { - line-height: 40px !important; - } - - .edit-attachment-frame .edit-media-header .left { - left: 82px; - } - - .edit-attachment-frame .edit-media-header .right { - left: 41px; - } - - .edit-attachment-frame .media-frame-content { - top: 40px; - } - - .edit-attachment-frame .attachment-media-view { - float: none; - height: auto; - width: 100%; - } - - .edit-attachment-frame .attachment-info { - height: auto; - width: 100%; - } -} - -@media only screen and (max-width: 640px), screen and (max-height: 400px) { - .upload-php .mode-grid .media-sidebar{ - max-width: 100%; - } -} diff --git a/wp-admin/css/media.css b/wp-admin/css/media.css deleted file mode 100644 index 27916542a6..0000000000 --- a/wp-admin/css/media.css +++ /dev/null @@ -1,1191 +0,0 @@ -/*------------------------------------------------------------------------------ - 14.0 - Media Screen -------------------------------------------------------------------------------*/ - -.media-item .describe { - border-collapse: collapse; - width: 100%; - border-top: 1px solid #dfdfdf; - clear: both; - cursor: default; -} - -.media-item.media-blank .describe { - border: 0; -} - -.media-item .describe th { - vertical-align: top; - text-align: left; - padding: 5px 10px 10px; - width: 140px; -} - -.media-item .describe .align th { - padding-top: 0; -} - -.media-item .media-item-info tr { - background-color: transparent; -} - -.media-item .describe td { - padding: 0 8px 8px 0; - vertical-align: top; -} - -.media-item thead.media-item-info td { - padding: 4px 10px 0; -} - -.media-item .media-item-info .A1B1 { - padding: 0 0 0 10px; -} - -.media-item td.savesend { - padding-bottom: 15px; -} - -.media-item .thumbnail { - max-height: 128px; - max-width: 128px; -} - -#wpbody-content #async-upload-wrap a { - display: none; -} - -.media-upload-form { - margin-top: 20px; -} - -.media-upload-form td label { - margin-right: 6px; - margin-left: 2px; -} - -.media-upload-form .align .field label { - display: inline; - padding: 0 0 0 23px; - margin: 0 1em 0 3px; - font-weight: 600; -} - -.media-upload-form tr.image-size label { - margin: 0 0 0 5px; - font-weight: 600; -} - -.media-upload-form th.label label { - font-weight: 600; - margin: 0.5em; - font-size: 13px; -} - -.media-upload-form th.label label span { - padding: 0 5px; -} - -.media-item .describe input[type="text"], -.media-item .describe textarea { - width: 460px; -} - -.media-item .describe p.help { - margin: 0; - padding: 0 0 0 5px; -} - -.media-item .edit-attachment, -.describe-toggle-on, -.describe-toggle-off { - display: block; - line-height: 36px; - float: right; - margin-right: 10px; -} - -.media-item .describe-toggle-off, -.media-item.open .describe-toggle-on { - display: none; -} - -.media-item.open .describe-toggle-off { - display: block; -} - -.media-upload-form .media-item { - min-height: 36px; - margin-bottom: 1px; - position: relative; - width: 100%; - background: #fff; -} - -.media-upload-form .media-item, -.media-upload-form .media-item .error { - -webkit-box-shadow: 0 1px 0 #dfdfdf; - box-shadow: 0 1px 0 #dfdfdf; -} - -#media-items:empty { - border: 0 none; -} - -.media-item .filename { - line-height: 36px; - overflow: hidden; - margin-left: 6px; -} - -.media-item .pinkynail { - float: left; - margin: 2px 10px 0 3px; - max-width: 40px; - max-height: 32px; -} - -.media-item .startopen, -.media-item .startclosed { - display: none; -} - -.media-item .original { - position: relative; - height: 34px; -} - -.media-item .progress { - float: right; - height: 22px; - margin: 7px 6px; - width: 200px; - line-height: 2em; - padding: 0; - overflow: hidden; - -webkit-border-radius: 22px; - border-radius: 22px; - background: #ddd; - -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); - box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); -} - -.media-item .bar { - z-index: 9; - width: 0; - height: 100%; - margin-top: -22px; - -webkit-border-radius: 22px; - border-radius: 22px; - background-color: #0073aa; - -webkit-box-shadow: inset 0 0 2px rgba(0,0,0,0.3); - box-shadow: inset 0 0 2px rgba(0,0,0,0.3); -} - -.media-item .progress .percent { - z-index: 10; - position: relative; - width: 200px; - padding: 0; - color: #fff; - text-align: center; - line-height: 22px; - font-weight: 400; - text-shadow: 0 1px 2px rgba(0,0,0,0.2); -} - -.upload-php .fixed .column-parent { - width: 15%; -} - -.js .html-uploader #plupload-upload-ui { - display: none; -} - -.js .html-uploader #html-upload-ui { - display: block; -} - -.media-upload-form .media-item.error, -.media-upload-form .media-item .error { - width: auto; - margin: 0 0 1px 0; -} - -.media-upload-form .media-item .error { - padding: 10px 0 10px 14px; -} - -.media-item .error-div a.dismiss { - display: block; - float: right; - margin: 0 10px 0 15px; -} - -/*------------------------------------------------------------------------------ - 14.1 - Media Library -------------------------------------------------------------------------------*/ - -.find-box { - background-color: #fff; - -webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - width: 600px; - overflow: hidden; - margin-left: -300px; - position: fixed; - top: 30px; - bottom: 30px; - left: 50%; - z-index: 100105; -} - -.find-box-head { - background: #fcfcfc; - border-bottom: 1px solid #dfdfdf; - height: 36px; - font-size: 18px; - font-weight: 600; - line-height: 36px; - padding: 0 36px 0 16px; - position: absolute; - top: 0; - left: 0; - right: 0; -} - -.find-box-inside { - overflow: auto; - padding: 16px; - background-color: #fff; - position: absolute; - top: 37px; - bottom: 45px; - overflow-y: scroll; - width: 100%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.find-box-search { - padding-bottom: 16px; -} - -.find-box-search .spinner { - float: none; - left: 105px; - position: absolute; -} - -.find-box-search, -#find-posts-response { - position: relative; /* RTL fix, #WP28010 */ -} - -#find-posts-input, -#find-posts-search { - float: left; -} - -#find-posts-input { - width: 140px; - height: 28px; - margin: 0 4px 0 0; -} - -.widefat .found-radio { - padding-right: 0; - width: 16px; -} - -#find-posts-close { - width: 36px; - height: 36px; - position: absolute; - top: 0; - right: 0; - cursor: pointer; - text-align: center; - color: #666; -} - -#find-posts-close:hover { - color: #00a0d2; -} - -#find-posts-close:before { - font: normal 20px/36px 'dashicons'; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - content: '\f158'; -} - -.find-box-buttons { - padding: 8px 16px; - background: #fcfcfc; - border-top: 1px solid #dfdfdf; - position: absolute; - bottom: 0; - left: 0; - right: 0; -} - -@media screen and ( max-width: 782px ) { - .find-box-inside { - bottom: 57px; - } -} - -@media screen and ( max-width: 660px ) { - - .find-box { - top: 0; - bottom: 0; - left: 0; - right: 0; - margin: 0; - width: 100%; - } - -} - -.ui-find-overlay { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: #000; - opacity: 0.7; - filter: alpha(opacity=70); - z-index: 100100; -} - -ul#dismissed-updates { - display: none; -} - -form.upgrade { - margin-top: 8px; -} - -form.upgrade .hint { - font-style: italic; - font-size: 85%; - margin: -0.5em 0 2em 0; -} - -#poststuff .inside .the-tagcloud { - margin: 5px 0 10px; - padding: 8px; - border: 1px solid #ddd; - line-height: 1.8em; - word-spacing: 3px; - -webkit-border-radius: 6px; - border-radius: 6px; -} - -.drag-drop #drag-drop-area { - border: 4px dashed #b4b9be; - height: 200px; -} - -.drag-drop .drag-drop-inside { - margin: 70px auto 0; - width: 250px; -} - -.drag-drop-inside p { - color: #a0a5aa; - font-size: 14px; - margin: 5px 0; - display: none; -} - -.drag-drop .drag-drop-inside p { - text-align: center; -} - -.drag-drop-inside p.drag-drop-info { - font-size: 20px; -} - -.drag-drop .drag-drop-inside p, -.drag-drop-inside p.drag-drop-buttons { - display: block; -} - -/* -#drag-drop-area:-moz-drag-over { - border-color: #83b4d8; -} -border color while dragging a file over the uploader drop area */ -.drag-drop.drag-over #drag-drop-area { - border-color: #83b4d8; -} - -#plupload-upload-ui { - position: relative; -} - -/** - * Media Library grid view - */ - -.media-frame.mode-grid, -.media-frame.mode-grid .media-frame-content, -.media-frame.mode-grid .attachments-browser .attachments, -.media-frame.mode-grid .uploader-inline-content { - position: static; -} - -/* Regions we don't use at all */ -.media-frame.mode-grid .media-frame-title, -.media-frame.mode-grid .media-frame-router, -.media-frame.mode-grid .media-frame-menu { - display: none; -} - -.media-frame.mode-grid .media-frame-content { - background-color: transparent; - border: none; -} - -.upload-php .mode-grid .media-sidebar { - position: relative; - width: auto; - margin-bottom: 16px; - padding: 0 16px; - border-left: 4px solid #dd3d36; - -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); - background-color: #fff; -} - -.upload-php .mode-grid .hide-sidebar .media-sidebar { - display: none; -} - -.upload-php .mode-grid .media-sidebar .media-uploader-status { - border-bottom: none; - padding-bottom: 0; - max-width: 100%; -} - -.upload-php .mode-grid .media-sidebar .upload-error { - margin: 12px 0; - padding: 4px 0 0; - border: none; - -webkit-box-shadow: none; - box-shadow: none; - background: none; -} - -.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors { - top: -10px; - right: -14px; - padding: 10px; -} - -.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:before { - content: "\f153"; - display: block; - font: normal 16px/1 dashicons; - color: #bbb; -} - -.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:focus:before, -.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:hover:before { - color: #c00; -} - -.upload-php .mode-grid .media-sidebar .media-uploader-status.errors h3 { - display: none; -} - -.media-frame.mode-grid .uploader-inline { - position: relative; - top: auto; - right: auto; - left: auto; - bottom: auto; - padding-top: 0; - margin-top: 0; - border: 4px dashed #b4b9be; -} - -.media-frame.mode-select .attachments-browser.fixed .attachments { - position: relative; - top: 94px; /* prevent jumping up when the toolbar becomes fixed */ - padding-bottom: 94px; /* offset for above so the bottom doesn't get cut off */ -} - -.media-frame.mode-grid .attachment:focus, -.media-frame.mode-grid .selected.attachment:focus, -.media-frame.mode-grid .attachment.details:focus { - -webkit-box-shadow: - inset 0 0 2px 3px #f1f1f1, - inset 0 0 0 7px #5b9dd9; - box-shadow: - inset 0 0 2px 3px #f1f1f1, - inset 0 0 0 7px #5b9dd9; - outline: none; -} - -.media-frame.mode-grid .selected.attachment { - -webkit-box-shadow: - inset 0 0 0 5px #f1f1f1, - inset 0 0 0 7px #ccc; - box-shadow: - inset 0 0 0 5px #f1f1f1, - inset 0 0 0 7px #ccc; -} - -.media-frame.mode-grid .attachment.details { - -webkit-box-shadow: - inset 0 0 0 3px #f1f1f1, - inset 0 0 0 7px #1e8cbe; - box-shadow: - inset 0 0 0 3px #f1f1f1, - inset 0 0 0 7px #1e8cbe; -} - -.media-frame.mode-grid.mode-select .attachment .thumbnail { - opacity: 0.65; -} - -.media-frame.mode-select .attachment.selected .thumbnail { - opacity: 1; -} - -.media-frame.mode-grid .media-toolbar { - margin-bottom: 15px; - height: auto; -} - -.media-frame.mode-grid .media-toolbar select { - margin: 0 10px 0 0; - font-size: 14px; -} - -.media-frame.mode-grid.mode-edit .media-toolbar-secondary > .select-mode-toggle-button { - margin: 0 8px 0 0; - vertical-align: middle; -} - -.media-frame.mode-grid .attachments-browser .bulk-select { - display: inline-block; - margin: 0 10px 0 0; -} - -.media-frame.mode-grid .search { - margin-top: 0; -} - -.media-frame.mode-grid .spinner { - margin-top: 16px; -} - -.attachments-browser .media-toolbar-secondary > .media-button { - margin-right: 10px; -} - -.media-frame.mode-select .attachments-browser.fixed .media-toolbar { - position: fixed; - top: 32px; - left: auto; - right: 20px; - margin-top: 0; -} - -.media-frame.mode-grid .attachments-browser { - padding: 0; -} - -.media-frame.mode-grid .attachments-browser .attachments { - padding: 2px; -} - -.media-frame.mode-grid .attachments-browser .no-media { - color: #999; - font-size: 18px; - font-style: normal; - margin: 0; - padding: 100px 0 0; - text-align: center; -} - -/** - * Attachment details modal - */ - -.edit-attachment-frame { - display: block; - height: 100%; - width: 100%; -} - -.edit-attachment-frame .edit-media-header { - overflow: hidden; -} - -.upload-php .media-modal-close .media-modal-icon:before { - content: '\f335'; - font-size: 22px; -} - -.upload-php .media-modal-close, -.edit-attachment-frame .edit-media-header .left, -.edit-attachment-frame .edit-media-header .right { - cursor: pointer; - color: #777; - background-color: transparent; - height: 50px; - width: 50px; - padding: 0; - position: absolute; - text-align: center; - border: 0; - border-left: 1px solid #ddd; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; -} - -.upload-php .media-modal-close { - top: 0; - right: 0; -} - -.edit-attachment-frame .edit-media-header .left { - right: 102px; -} - -.edit-attachment-frame .edit-media-header .right { - right: 51px; -} - -.edit-attachment-frame .media-frame-title { - left: 0; - right: 150px; /* leave space for prev/next/close */ -} - -.edit-attachment-frame .edit-media-header .right:before, -.edit-attachment-frame .edit-media-header .left:before { - font: normal 20px/50px 'dashicons' !important; - display: inline; - font-weight: 300; -} - -.upload-php .media-modal-close:hover, -.upload-php .media-modal-close:focus, -.edit-attachment-frame .edit-media-header .left:hover, -.edit-attachment-frame .edit-media-header .right:hover, -.edit-attachment-frame .edit-media-header .left:focus, -.edit-attachment-frame .edit-media-header .right:focus { - background: #ddd; - border-color: #ccc; - color: #000; - outline: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.upload-php .media-modal-close:focus .media-modal-icon:before, -.upload-php .media-modal-close:hover .media-modal-icon:before { - color: #000; -} - -.edit-attachment-frame .edit-media-header .left:before, -.rtl .edit-attachment-frame .edit-media-header .right:before { - content: '\f341'; -} - -.edit-attachment-frame .edit-media-header .right:before, -.rtl .edit-attachment-frame .edit-media-header .left:before { - content: '\f345'; -} - -.edit-attachment-frame .edit-media-header .left.disabled, -.edit-attachment-frame .edit-media-header .right.disabled, -.edit-attachment-frame .edit-media-header .left.disabled:hover, -.edit-attachment-frame .edit-media-header .right.disabled:hover { - color: #ccc; - background: inherit; - cursor: default; - pointer-events: none; -} - -.edit-attachment-frame .media-frame-content, -.edit-attachment-frame .media-frame-router { - left: 0; -} - -.edit-attachment-frame .media-frame-content { - border-bottom: none; - bottom: 0; - top: 50px; -} - -.edit-attachment-frame .attachment-details { - position: absolute; - overflow: auto; - top: 0; - bottom: 0; - right: 0; - left: 0; - -webkit-box-shadow: inset 0px 4px 4px -4px rgba(0, 0, 0, 0.1); - box-shadow: inset 0px 4px 4px -4px rgba(0, 0, 0, 0.1); -} - -.edit-attachment-frame .attachment-media-view { - float: left; - width: 65%; - height: 100%; -} - -.edit-attachment-frame .attachment-media-view .thumbnail { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - padding: 16px; - height: 100%; -} - -.edit-attachment-frame .attachment-media-view .details-image { - display: block; - margin-bottom: 16px; - max-width: 100%; - max-height: 90%; - max-height: -webkit-calc( 100% - 42px ); - max-height: calc( 100% - 42px ); /* leave space for actions underneath */ -} - -.edit-attachment-frame .wp-media-wrapper { - margin-bottom: 12px; -} - -.edit-attachment-frame input, -.edit-attachment-frame textarea { - padding: 6px 8px; - line-height: 16px; -} - -.edit-attachment-frame .attachment-info { - overflow: auto; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin-bottom: 0; - padding: 12px 16px 0; - width: 35%; - height: 100%; - -webkit-box-shadow: inset 0px 4px 4px -4px rgba(0, 0, 0, 0.1); - box-shadow: inset 0px 4px 4px -4px rgba(0, 0, 0, 0.1); - border-bottom: 0; - border-left: 1px solid #ddd; - background: #f3f3f3; -} - -.edit-attachment-frame .attachment-info .details, -.edit-attachment-frame .attachment-info .settings { - position: relative; /* RTL fix, #WP29352 */ - overflow: hidden; - float: none; - margin-bottom: 15px; - padding-bottom: 15px; - border-bottom: 1px solid #ddd; -} - -.edit-attachment-frame .attachment-info .filename { - font-weight: normal; - color: #666; -} - -.edit-attachment-frame .attachment-info .thumbnail { - margin-bottom: 12px; -} - -.attachment-info .actions { - margin-bottom: 16px; -} - -.attachment-info .actions a { - display: inline; - text-decoration: none; -} - - -/*------------------------------------------------------------------------------ - 14.2 - Image Editor -------------------------------------------------------------------------------*/ - -.wp_attachment_details label[for="content"] { - font-size: 13px; - line-height: 1.5; - margin: 1em 0; -} - -.wp_attachment_details #attachment_caption { - height: 4em; -} - -.describe .image-editor { - vertical-align: top; -} - -.imgedit-wrap { - position: relative; -} - -.imgedit-settings p { - margin: 8px 0 0; -} - -.describe .imgedit-wrap .imgedit-settings { - padding: 0 5px; -} - -.wp_attachment_holder div.updated { - margin-top: 0; -} - -.wp_attachment_holder .imgedit-wrap > div { - height: auto; - overflow: hidden; -} - -.wp_attachment_holder .imgedit-wrap .imgedit-panel-content { - padding-right: 16px; - width: auto; - overflow: hidden; -} - -.wp_attachment_holder .imgedit-wrap .imgedit-settings { - float: right; - width: 250px; -} - -.imgedit-settings input { - margin-top: 0; - vertical-align: middle; -} - -.imgedit-wait { - position: absolute; - top: 0; - background: #fff url(../images/spinner.gif) no-repeat center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - opacity: 0.7; - filter: alpha(opacity=70); - width: 100%; - height: 500px; - display: none; -} - -.no-float { - float: none; -} - -.media-disabled, -.imgedit-settings .disabled { - color: grey; -} - -.wp_attachment_image, -.A1B1 { - overflow: hidden; -} - -.wp_attachment_image .button, -.A1B1 .button { - float: left; -} - -.no-js .wp_attachment_image .button { - display: none; -} - -.wp_attachment_image .spinner, -.A1B1 .spinner { - float: left; -} - -.imgedit-menu { - margin: 0 0 12px; - min-width: 300px; -} - -.imgedit-menu div { - float: left; - width: 32px; - border: 1px solid #d5d5d5; - background: #f1f1f1; - margin: 0 8px 0 0; - height: 32px; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-align: center; - line-height: 28px; - color: #777; - cursor: pointer; -} - -.imgedit-menu div:before { - font: normal 20px/1 'dashicons'; - speak: none; - vertical-align: middle; -} - -.imgedit-menu div:hover { - border-color: #c1c1c1; - background-color: #eaeaea; - color: #32373c; -} - -.imgedit-menu div.disabled { - border-color: #ccc; - background-color: #ddd; - color: #777; - filter: alpha(opacity=50); - opacity: 0.5; - cursor: default; -} - -.imgedit-crop:before { - content:'\f165'; -} - -.imgedit-rleft:before { - content:'\f166'; -} - -.imgedit-rright:before { - content:'\f167'; -} - -.imgedit-flipv:before { - content:'\f168'; -} - -.imgedit-fliph:before { - content:'\f169'; -} - -.imgedit-undo:before { - content:'\f171'; -} - -.imgedit-redo:before { - content:'\f172'; -} - -.imgedit-crop-wrap { - position: relative; -} - -.imgedit-crop { - margin: 0 8px 0 0; -} - -.imgedit-rleft { - margin: 0 3px; -} - -.imgedit-rright { - margin: 0 8px 0 3px; -} - -.imgedit-flipv { - margin: 0 3px; -} - -.imgedit-fliph { - margin: 0 8px 0 3px; -} - -.imgedit-undo { - margin: 0 3px; -} - -.imgedit-redo { - margin: 0 8px 0 3px; -} - -.imgedit-applyto img { - margin: 0 8px 0 0; -} - -#poststuff .imgedit-group-top h3 { - padding: 0; -} - -.imgedit-group-top h3 a { - text-decoration: none; -} - -.imgedit-applyto .imgedit-label { - padding: 2px 0 0; - display: block; -} - -.imgedit-help { - display: none; - font-style: italic; -} - -a.imgedit-help-toggle { - text-decoration: none; -} - -.form-table td.imgedit-response { - padding: 0; -} - -.imgedit-submit { - margin: 8px 0 0; -} - -.imgedit-submit-btn { - margin-left: 20px; -} - -.imgedit-wrap .nowrap { - white-space: nowrap; -} - -span.imgedit-scale-warn { - color: red; - font-size: 20px; - font-style: normal; - visibility: hidden; - vertical-align: middle; -} - -.imgedit-group { - margin-bottom: 8px; - padding: 10px; -} - -audio, video { - display: inline-block; - max-width: 100%; -} - -.mejs-container { - width: 100%; - max-width: 100%; -} - -/* =Media Queries --------------------------------------------------------------- */ - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - .imgedit-wait { - background-image: url(../images/spinner-2x.gif); - } -} - -@media screen and ( max-width: 782px ) { - .wp_attachment_details label[for="content"] { - font-size: 14px; - line-height: 1.5em; - } - - .media-upload-form .media-item.error, - .media-upload-form .media-item .error { - font-size: 13px; - line-height: 1.5; - } - - .media-upload-form .media-item.error { - padding: 1px 10px; - } - - .media-upload-form .media-item .error { - padding: 10px 0 10px 12px; - } -} - -/** - * Media queries for media grid. - */ - -@media only screen and (max-width: 1120px) { - /* override for media-views.css */ - #wp-media-grid .wp-filter .attachment-filters { - max-width: 100%; - } -} - -@media only screen and ( max-width: 782px ) { - .media-frame.mode-select .attachments-browser.fixed .media-toolbar { - top: 46px; - right: 10px; - } -} - -@media only screen and (max-width: 600px) { - .media-frame.mode-select .attachments-browser.fixed .media-toolbar { - top: 0; - } -} - -@media only screen and (max-width: 480px) { - .edit-attachment-frame .media-frame-title { - right: 110px; - } - - .upload-php .media-modal-close, - .edit-attachment-frame .edit-media-header .left, - .edit-attachment-frame .edit-media-header .right { - width: 40px; - height: 40px; - } - - .upload-php .media-modal-close .media-modal-icon { - margin: 9px 10px; - } - - .edit-attachment-frame .edit-media-header .right:before, - .edit-attachment-frame .edit-media-header .left:before { - line-height: 40px !important; - } - - .edit-attachment-frame .edit-media-header .left { - right: 82px; - } - - .edit-attachment-frame .edit-media-header .right { - right: 41px; - } - - .edit-attachment-frame .media-frame-content { - top: 40px; - } - - .edit-attachment-frame .attachment-media-view { - float: none; - height: auto; - width: 100%; - } - - .edit-attachment-frame .attachment-info { - height: auto; - width: 100%; - } -} - -@media only screen and (max-width: 640px), screen and (max-height: 400px) { - .upload-php .mode-grid .media-sidebar{ - max-width: 100%; - } -} diff --git a/wp-admin/css/nav-menus-rtl.css b/wp-admin/css/nav-menus-rtl.css deleted file mode 100644 index a9b0133bf6..0000000000 --- a/wp-admin/css/nav-menus-rtl.css +++ /dev/null @@ -1,870 +0,0 @@ -/* nav-menu */ - -/* @todo: determine if this is truly for nav menus only */ -.no-js #message { - display: block; -} - -ul.add-menu-item-tabs li { - padding: 3px 8px 3px 5px; -} - -.accordion-section ul.category-tabs, -.accordion-section ul.add-menu-item-tabs, -.accordion-section ul.wp-tab-bar { - margin: 0; -} - -.accordion-section .categorychecklist { - margin: 13px 0; -} - -#nav-menu-meta .accordion-section-content { - padding: 18px 13px; -} - -#nav-menu-meta .button-controls { - margin-bottom: 0; -} - -#nav-menus-frame { - margin-right: 300px; - margin-top: 23px; -} - -#wpbody-content #menu-settings-column { - display:inline; - width:281px; - margin-right: -300px; - clear: both; - float: right; - padding-top: 0; -} - -#menu-settings-column .inside { - clear: both; - margin: 10px 0 0; -} - -.metabox-holder-disabled .postbox, -.metabox-holder-disabled .accordion-section-content, -.metabox-holder-disabled .accordion-section-title { - opacity: 0.5; - filter: alpha(opacity=50); -} - -.metabox-holder-disabled .button-controls .select-all { - display: none; -} - -#wpbody { - position: relative; -} - -.blank-slate .menu-name { - height: 2em; -} - -.blank-slate .menu-settings { - border: none; - margin-top: 0; - padding-top: 0; - overflow: hidden; -} - -.is-submenu { - color: #999; - font-style: italic; - font-weight: normal; - margin-right: 4px; -} - -.manage-menus { - margin-top: 23px; - padding: 10px; - overflow: hidden; - background: #fbfbfb; -} - -.manage-menus select { - float: right; - margin-left: 6px; -} - -.manage-menus .selected-menu { - float: right; - margin: 5px 0 0 6px; -} - -.manage-menus .submit-btn { - float: right; - margin-top: 1px; -} - -.menu-edit #post-body-content h3 { - margin: 1em 0 10px; -} - -.menu-settings { - border-top: 1px solid #eee; - margin-top: 2em; -} - -.menu-settings dl { - margin: 0 0 10px; - overflow: hidden; - padding-right: 18%; -} - -.menu-settings dd { - float: right; - margin: 0; - width: 100%; -} - -.menu-settings dt { - float: right; - clear: both; - width: 21.951%; - padding: 3px 0 0; - margin-right: -21.951%; -} - -.menu-settings label { - vertical-align: baseline; -} - -.menu-edit .checkbox-input { - margin-top: 4px; -} - -.theme-location-set { - color: #999; - font-size: 11px; -} - -/* Menu Container */ -#menu-management-liquid { - float: right; - min-width: 100%; - margin-top: 3px; -} - -#menu-management { - position: relative; - margin-left: 20px; - margin-top: -3px; - width: 100%; - background: #f5f5f5; -} - -#menu-management .menu-edit { - margin-bottom: 20px; -} - -.nav-menus-php #post-body { - padding: 0 10px 10px; - border-top: 1px solid #fff; - border-bottom: 1px solid #dfdfdf; - background: #fff; -} - -#nav-menu-header, -#nav-menu-footer { - padding: 0 10px; -} - -#nav-menu-header { - border-bottom: 1px solid #dfdfdf; - margin-bottom: 0; -} - -#nav-menu-header .menu-name-label { - margin-top: 4px; -} - -.nav-menus-php #post-body div.updated, -.nav-menus-php #post-body div.error { - margin: 0; -} - -.nav-menus-php #post-body-content { - position: relative; - float: none; -} - -#menu-management .menu-add-new abbr { - font-weight:600; -} - -#select-nav-menu-container { - text-align: left; - padding: 0 10px 3px 10px; - margin-bottom: 5px; -} - -#select-nav-menu { - width: 100px; - display: inline; -} - -#menu-name-label { - margin-top: -2px; -} - -.widefat .menu-locations tr + tr td { - padding-top: 0; -} - -.widefat .menu-locations td { - vertical-align: middle; -} - -.menu-location-title label { - font-weight: bold; -} - -.menu-location-menus select { - float: right; -} - -#locations-nav-menu-wrapper { - padding: 5px 0; -} - -.locations-nav-menu-select select { - float: right; - width: 160px; - margin-left: 5px; -} - -.locations-row-links { - float: right; - margin: 6px 6px 0 0; -} - -.locations-edit-menu-link, -.locations-add-menu-link { - margin: 0 3px; -} - -.locations-edit-menu-link { - padding-left: 3px; - border-left: 1px solid #ccc; -} - -#wpbody .open-label { - display: block; - float:right; -} - -#wpbody .open-label span { - padding-left: 10px; -} - -.js .input-with-default-title { - color: #a0a5aa; - font-style: italic; -} - -#menu-management .inside { - padding: 0 10px; -} - -/* Add Menu Item Boxes */ -.postbox .howto input, -.accordion-container .howto input { - width: 180px; - float: left; -} - -.accordion-container .outer-border { - margin: 0; -} - -.customlinkdiv .howto input { - width: 180px; -} - -.customlinkdiv p { - margin-top: 0 -} - -#nav-menu-theme-locations .howto select { - width: 100%; -} - -#nav-menu-theme-locations .button-controls { - text-align: left; -} - -.add-menu-item-view-all { - height: 400px; -} - -/* Button Primary Actions */ -#menu-container .submit { - margin: 0 0 10px; - padding: 0; -} - -.nav-menus-php .add-new-menu-action { - float: right; - margin: 6px 6px 0 0; - line-height: 15px; -} - -.nav-menus-php .meta-sep, -.nav-menus-php .submitdelete, -.nav-menus-php .submitcancel { - display: block; - float: right; - margin: 6px 0; - line-height: 15px; -} - -.meta-sep { - padding: 0 2px; -} - -/* @todo: is this actually used? */ -#cancel-save { - text-decoration: underline; - font-size: 12px; - margin-right: 20px; - margin-top: 5px; -} - -.button.right, .button-secondary.right, .button-primary.right { - float: left; -} - -/* Button Secondary Actions */ -.list-controls { - float: right; - margin-top: 5px; -} - -.add-to-menu { - float: left; -} - -.button-controls { - clear:both; - margin: 10px 0; -} - -.show-all, -.hide-all { - cursor: pointer; -} - -.hide-all { - display: none; -} - -/* Create Menu */ -#menu-name { - width: 270px; -} - -#manage-menu .inside { - padding: 0px 0px; -} - -/* Custom Links */ -#available-links dt { - display: block; -} - -#add-custom-link .howto { - font-size: 12px; -} - -#add-custom-link label span { - display: block; - float: right; - margin-top: 5px; - padding-left: 5px; -} - -.menu-item-textbox { - width: 180px; -} - -.nav-menus-php .howto span { - margin-top: 6px; - display: block; - float: right; -} - -/* Menu item types */ -.quick-search { - width: 190px; -} - -.quick-search-wrap .spinner { - float: none; - margin: 0 5px; -} - -.nav-menus-php .list-wrap { - display: none; - clear: both; - margin-bottom: 10px; -} - -.nav-menus-php .postbox p.submit { - margin-bottom: 0; -} - -/* Listings */ -.nav-menus-php .list li { - display: none; - margin: 0; - margin-bottom: 5px; -} - -.nav-menus-php .list li .menu-item-title { - cursor: pointer; - display: block; -} - -.nav-menus-php .list li .menu-item-title input { - margin-left: 3px; - margin-top: -3px; -} - -.menu-item-title input[type=checkbox] { - display: inline-block; - margin-top: -4px; -} - -/* Nav Menu */ -#menu-container .inside { - padding-bottom: 10px; -} - -.menu { - padding-top:1em; -} - -#menu-to-edit { - margin: 0; - padding: 0.1em 0; -} - -.menu ul { - width: 100%; -} - -.menu li { - margin-bottom: 0; - position:relative; -} - -.menu-item-bar { - clear:both; - line-height:1.5em; - position:relative; - margin: 9px 0 0; -} - -.menu-item-bar .menu-item-handle { - border: 1px solid #dfdfdf; - position: relative; - padding: 10px 15px; - height: auto; - min-height: 20px; - width: 382px; - line-height: 30px; - overflow: hidden; - word-wrap: break-word; -} - -.menu-item-bar .menu-item-handle:hover { - border-color: #999; -} - -#menu-to-edit .menu-item-invalid .menu-item-handle { - background: #f6c9cc; - border-color: #f1acb1; -} - -.no-js .menu-item-edit-active .item-edit { - display: none; -} - -.js .menu-item-handle { - cursor: move; -} - -.menu li.deleting .menu-item-handle { - background-image: none; - background-color: #f66; -} - -.menu-item-handle .item-title { - font-size: 13px; - font-weight: 600; - line-height: 20px; - display: block; - margin-left: 13em; -} - -.menu-item-handle .menu-item-title.no-title { - color: #999; -} - -/* Sortables */ -li.menu-item.ui-sortable-helper .menu-item-bar { - margin-top: 0; -} - -li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar { - margin-top: 13px; -} - -.menu .sortable-placeholder { - height: 35px; - width: 410px; - margin-top: 13px; -} - -/* Hide the transport list when it's empty */ -.menu-item .menu-item-transport:empty { - display: none; -} - -/* WARNING: The factor of 30px is hardcoded into the nav-menus JavaScript. */ -.menu-item-depth-0 { margin-right: 0px; } -.menu-item-depth-1 { margin-right: 30px; } -.menu-item-depth-2 { margin-right: 60px; } -.menu-item-depth-3 { margin-right: 90px; } -.menu-item-depth-4 { margin-right: 120px; } -.menu-item-depth-5 { margin-right: 150px; } -.menu-item-depth-6 { margin-right: 180px; } -.menu-item-depth-7 { margin-right: 210px; } -.menu-item-depth-8 { margin-right: 240px; } -.menu-item-depth-9 { margin-right: 270px; } -.menu-item-depth-10 { margin-right: 300px; } -.menu-item-depth-11 { margin-right: 330px; } - -.menu-item-depth-0 .menu-item-transport { margin-right: 0px; } -.menu-item-depth-1 .menu-item-transport { margin-right: -30px; } -.menu-item-depth-2 .menu-item-transport { margin-right: -60px; } -.menu-item-depth-3 .menu-item-transport { margin-right: -90px; } -.menu-item-depth-4 .menu-item-transport { margin-right: -120px; } -.menu-item-depth-5 .menu-item-transport { margin-right: -150px; } -.menu-item-depth-6 .menu-item-transport { margin-right: -180px; } -.menu-item-depth-7 .menu-item-transport { margin-right: -210px; } -.menu-item-depth-8 .menu-item-transport { margin-right: -240px; } -.menu-item-depth-9 .menu-item-transport { margin-right: -270px; } -.menu-item-depth-10 .menu-item-transport { margin-right: -300px; } -.menu-item-depth-11 .menu-item-transport { margin-right: -330px; } - -body.menu-max-depth-0 { min-width: 950px !important; } -body.menu-max-depth-1 { min-width: 980px !important; } -body.menu-max-depth-2 { min-width: 1010px !important; } -body.menu-max-depth-3 { min-width: 1040px !important; } -body.menu-max-depth-4 { min-width: 1070px !important; } -body.menu-max-depth-5 { min-width: 1100px !important; } -body.menu-max-depth-6 { min-width: 1130px !important; } -body.menu-max-depth-7 { min-width: 1160px !important; } -body.menu-max-depth-8 { min-width: 1190px !important; } -body.menu-max-depth-9 { min-width: 1220px !important; } -body.menu-max-depth-10 { min-width: 1250px !important; } -body.menu-max-depth-11 { min-width: 1280px !important; } - -/* Menu item controls */ -.item-type { - display: inline-block; - padding: 12px 10px; - color: #666; - font-size: 12px; - line-height: 18px; -} - -.item-controls { - font-size: 12px; - position: absolute; - left: 20px; - top: -1px; -} - -.item-controls a { - text-decoration: none; -} - -.item-controls a:hover { - cursor: pointer; -} - -.item-controls .item-order { - padding-left: 10px; -} - -.nav-menus-php .item-edit { - position: absolute; - left: -20px; - top: 0; - display: block; - width: 30px; - height: 40px; - margin-left: 0 !important; - text-indent: 100%; - outline: none; - overflow: hidden; - white-space: nowrap; -} - -/* Menu editing */ -.menu-instructions-inactive { - display: none; -} - -.menu-item-settings { - display: block; - width: 402px; - padding: 10px 10px 10px 0; - position: relative; - z-index: 10; /* Keep .item-title's shadow from appearing on top of .menu-item-settings */ - border: 1px solid #e5e5e5; - border-top: none; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); -} - -.menu-item-settings .field-move a { - display: none; - margin: 0 2px; -} - -.menu-item-edit-active .menu-item-settings { - display: block; -} - -.menu-item-edit-inactive .menu-item-settings { - display: none; -} - -.add-menu-item-pagelinks { - margin: .5em auto; - text-align: center; -} - -.link-to-original { - display: block; - margin: 0 0 10px; - padding: 3px 5px 5px; - border: 1px solid #dfdfdf; - color: #777; - font-size: 12px; - font-style: italic; -} - -.link-to-original a { - padding-right: 4px; - font-style: normal; -} - -.hidden-field { - display: none; -} - -.menu-item-settings .description-thin, -.menu-item-settings .description-wide { - margin-left: 10px; - float: right; -} - -.description-thin { - width: 190px; -} - -.description-wide { - width: 390px; -} - -.menu-item-actions { - padding-top: 15px; -} - -#cancel-save { - cursor: pointer; -} - -/* Major/minor publishing actions (classes) */ -.nav-menus-php .major-publishing-actions { - clear: both; - padding: 3px 0 6px; -} - -.nav-menus-php .major-publishing-actions .publishing-action { - text-align: left; - float: left; - line-height: 23px; - margin: 4px 0 1px; -} - -.nav-menus-php .blank-slate .menu-settings { - display: none; -} - -.nav-menus-php .delete-action { - float: right; - margin-top: 2px; -} - -.nav-menus-php .submitbox .submitcancel { - border-bottom: 1px solid #0073aa; - padding: 1px 2px; - color: #0073aa; - text-decoration: none; -} - -.nav-menus-php .submitbox .submitcancel:hover { - background: #0073aa; - color: #fff; -} - -.nav-menus-php .major-publishing-actions .form-invalid { - padding-right: 4px; - margin-right: -4px; -} - -/* Clearfix */ -#menu-item-name-wrap:after, -#menu-item-url-wrap:after, -#menu-name-label:after, -#menu-settings-column .inside:after, -#nav-menus-frame:after, -.nav-menus-php #post-body-content:after, -.nav-menus-php .button-controls:after, -.nav-menus-php .major-publishing-actions:after, -.nav-menus-php .menu-item-settings:after { - clear: both; - content: "."; - display: block; - height: 0; - visibility: hidden; -} - -#nav-menus-frame, -.button-controls, -#menu-item-url-wrap, -#menu-item-name-wrap { - display: block; -} - -/* =Media Queries --------------------------------------------------------------- */ - -@media screen and ( max-width: 782px ) { - body.nav-menus-php { - min-width: 0 !important; - } - - #nav-menus-frame { - margin-right: 0; - float: none; - width: 100%; - } - - #wpbody-content #menu-settings-column { - display: block; - width: 100%; - float: none; - margin-right: 0; - } - - #side-sortables .add-menu-item-tabs { - margin: 15px 0 14px; - } - - ul.add-menu-item-tabs li.tabs { - padding: 13px 15px 14px; - } - - .nav-menus-php .item-controls .item-type { - margin-top: 2px; - } - - .nav-menus-php .customlinkdiv .howto input { - width: 65%; - } - - .nav-menus-php .quick-search { - width: 85%; - } - - #menu-management-liquid { - margin-top: 25px; - } - - .nav-menus-php .menu-name-label.howto span { - margin-top: 13px - } - - .menu-name-label #menu-name { - margin-top: 4px; - } - - .nav-menus-php .major-publishing-actions .publishing-action { - margin-top: 6px; - } - - .nav-menus-php .delete-action { - font-size: 14px; - line-height: 50px; - margin-top: 12px; - } - - .menu-item-bar .menu-item-handle, - .menu-item-settings, - .description-wide { - width: auto; - } - - .menu-item-settings { - padding: 10px; - } - - .menu-item-settings .description-thin, - .menu-item-settings .description-wide { - width: 100%; - } - - .menu-item-settings input { - width: 100%; - } - - .menu-item-settings input[type="checkbox"], - .menu-item-settings input[type="radio"] { - width: 25px; - } - - .menu-settings dl { - padding-right: 0; - } - - .menu-settings dd { - float: none; - width: 100%; - margin-bottom: 15px; - } - - .menu-settings dt { - float: none; - width: auto; - margin-right: 0; - margin-bottom: 15px; - } -} - -@media only screen and (max-width: 768px) { - /* menu locations */ - #menu-locations-wrap .widefat { - width: 100%; - } -} diff --git a/wp-admin/css/nav-menus.css b/wp-admin/css/nav-menus.css deleted file mode 100644 index 2483113697..0000000000 --- a/wp-admin/css/nav-menus.css +++ /dev/null @@ -1,870 +0,0 @@ -/* nav-menu */ - -/* @todo: determine if this is truly for nav menus only */ -.no-js #message { - display: block; -} - -ul.add-menu-item-tabs li { - padding: 3px 5px 3px 8px; -} - -.accordion-section ul.category-tabs, -.accordion-section ul.add-menu-item-tabs, -.accordion-section ul.wp-tab-bar { - margin: 0; -} - -.accordion-section .categorychecklist { - margin: 13px 0; -} - -#nav-menu-meta .accordion-section-content { - padding: 18px 13px; -} - -#nav-menu-meta .button-controls { - margin-bottom: 0; -} - -#nav-menus-frame { - margin-left: 300px; - margin-top: 23px; -} - -#wpbody-content #menu-settings-column { - display:inline; - width:281px; - margin-left: -300px; - clear: both; - float: left; - padding-top: 0; -} - -#menu-settings-column .inside { - clear: both; - margin: 10px 0 0; -} - -.metabox-holder-disabled .postbox, -.metabox-holder-disabled .accordion-section-content, -.metabox-holder-disabled .accordion-section-title { - opacity: 0.5; - filter: alpha(opacity=50); -} - -.metabox-holder-disabled .button-controls .select-all { - display: none; -} - -#wpbody { - position: relative; -} - -.blank-slate .menu-name { - height: 2em; -} - -.blank-slate .menu-settings { - border: none; - margin-top: 0; - padding-top: 0; - overflow: hidden; -} - -.is-submenu { - color: #999; - font-style: italic; - font-weight: normal; - margin-left: 4px; -} - -.manage-menus { - margin-top: 23px; - padding: 10px; - overflow: hidden; - background: #fbfbfb; -} - -.manage-menus select { - float: left; - margin-right: 6px; -} - -.manage-menus .selected-menu { - float: left; - margin: 5px 6px 0 0; -} - -.manage-menus .submit-btn { - float: left; - margin-top: 1px; -} - -.menu-edit #post-body-content h3 { - margin: 1em 0 10px; -} - -.menu-settings { - border-top: 1px solid #eee; - margin-top: 2em; -} - -.menu-settings dl { - margin: 0 0 10px; - overflow: hidden; - padding-left: 18%; -} - -.menu-settings dd { - float: left; - margin: 0; - width: 100%; -} - -.menu-settings dt { - float: left; - clear: both; - width: 21.951%; - padding: 3px 0 0; - margin-left: -21.951%; -} - -.menu-settings label { - vertical-align: baseline; -} - -.menu-edit .checkbox-input { - margin-top: 4px; -} - -.theme-location-set { - color: #999; - font-size: 11px; -} - -/* Menu Container */ -#menu-management-liquid { - float: left; - min-width: 100%; - margin-top: 3px; -} - -#menu-management { - position: relative; - margin-right: 20px; - margin-top: -3px; - width: 100%; - background: #f5f5f5; -} - -#menu-management .menu-edit { - margin-bottom: 20px; -} - -.nav-menus-php #post-body { - padding: 0 10px 10px; - border-top: 1px solid #fff; - border-bottom: 1px solid #dfdfdf; - background: #fff; -} - -#nav-menu-header, -#nav-menu-footer { - padding: 0 10px; -} - -#nav-menu-header { - border-bottom: 1px solid #dfdfdf; - margin-bottom: 0; -} - -#nav-menu-header .menu-name-label { - margin-top: 4px; -} - -.nav-menus-php #post-body div.updated, -.nav-menus-php #post-body div.error { - margin: 0; -} - -.nav-menus-php #post-body-content { - position: relative; - float: none; -} - -#menu-management .menu-add-new abbr { - font-weight:600; -} - -#select-nav-menu-container { - text-align: right; - padding: 0 10px 3px 10px; - margin-bottom: 5px; -} - -#select-nav-menu { - width: 100px; - display: inline; -} - -#menu-name-label { - margin-top: -2px; -} - -.widefat .menu-locations tr + tr td { - padding-top: 0; -} - -.widefat .menu-locations td { - vertical-align: middle; -} - -.menu-location-title label { - font-weight: bold; -} - -.menu-location-menus select { - float: left; -} - -#locations-nav-menu-wrapper { - padding: 5px 0; -} - -.locations-nav-menu-select select { - float: left; - width: 160px; - margin-right: 5px; -} - -.locations-row-links { - float: left; - margin: 6px 0 0 6px; -} - -.locations-edit-menu-link, -.locations-add-menu-link { - margin: 0 3px; -} - -.locations-edit-menu-link { - padding-right: 3px; - border-right: 1px solid #ccc; -} - -#wpbody .open-label { - display: block; - float:left; -} - -#wpbody .open-label span { - padding-right: 10px; -} - -.js .input-with-default-title { - color: #a0a5aa; - font-style: italic; -} - -#menu-management .inside { - padding: 0 10px; -} - -/* Add Menu Item Boxes */ -.postbox .howto input, -.accordion-container .howto input { - width: 180px; - float: right; -} - -.accordion-container .outer-border { - margin: 0; -} - -.customlinkdiv .howto input { - width: 180px; -} - -.customlinkdiv p { - margin-top: 0 -} - -#nav-menu-theme-locations .howto select { - width: 100%; -} - -#nav-menu-theme-locations .button-controls { - text-align: right; -} - -.add-menu-item-view-all { - height: 400px; -} - -/* Button Primary Actions */ -#menu-container .submit { - margin: 0 0 10px; - padding: 0; -} - -.nav-menus-php .add-new-menu-action { - float: left; - margin: 6px 0 0 6px; - line-height: 15px; -} - -.nav-menus-php .meta-sep, -.nav-menus-php .submitdelete, -.nav-menus-php .submitcancel { - display: block; - float: left; - margin: 6px 0; - line-height: 15px; -} - -.meta-sep { - padding: 0 2px; -} - -/* @todo: is this actually used? */ -#cancel-save { - text-decoration: underline; - font-size: 12px; - margin-left: 20px; - margin-top: 5px; -} - -.button.right, .button-secondary.right, .button-primary.right { - float: right; -} - -/* Button Secondary Actions */ -.list-controls { - float: left; - margin-top: 5px; -} - -.add-to-menu { - float: right; -} - -.button-controls { - clear:both; - margin: 10px 0; -} - -.show-all, -.hide-all { - cursor: pointer; -} - -.hide-all { - display: none; -} - -/* Create Menu */ -#menu-name { - width: 270px; -} - -#manage-menu .inside { - padding: 0px 0px; -} - -/* Custom Links */ -#available-links dt { - display: block; -} - -#add-custom-link .howto { - font-size: 12px; -} - -#add-custom-link label span { - display: block; - float: left; - margin-top: 5px; - padding-right: 5px; -} - -.menu-item-textbox { - width: 180px; -} - -.nav-menus-php .howto span { - margin-top: 6px; - display: block; - float: left; -} - -/* Menu item types */ -.quick-search { - width: 190px; -} - -.quick-search-wrap .spinner { - float: none; - margin: 0 5px; -} - -.nav-menus-php .list-wrap { - display: none; - clear: both; - margin-bottom: 10px; -} - -.nav-menus-php .postbox p.submit { - margin-bottom: 0; -} - -/* Listings */ -.nav-menus-php .list li { - display: none; - margin: 0; - margin-bottom: 5px; -} - -.nav-menus-php .list li .menu-item-title { - cursor: pointer; - display: block; -} - -.nav-menus-php .list li .menu-item-title input { - margin-right: 3px; - margin-top: -3px; -} - -.menu-item-title input[type=checkbox] { - display: inline-block; - margin-top: -4px; -} - -/* Nav Menu */ -#menu-container .inside { - padding-bottom: 10px; -} - -.menu { - padding-top:1em; -} - -#menu-to-edit { - margin: 0; - padding: 0.1em 0; -} - -.menu ul { - width: 100%; -} - -.menu li { - margin-bottom: 0; - position:relative; -} - -.menu-item-bar { - clear:both; - line-height:1.5em; - position:relative; - margin: 9px 0 0; -} - -.menu-item-bar .menu-item-handle { - border: 1px solid #dfdfdf; - position: relative; - padding: 10px 15px; - height: auto; - min-height: 20px; - width: 382px; - line-height: 30px; - overflow: hidden; - word-wrap: break-word; -} - -.menu-item-bar .menu-item-handle:hover { - border-color: #999; -} - -#menu-to-edit .menu-item-invalid .menu-item-handle { - background: #f6c9cc; - border-color: #f1acb1; -} - -.no-js .menu-item-edit-active .item-edit { - display: none; -} - -.js .menu-item-handle { - cursor: move; -} - -.menu li.deleting .menu-item-handle { - background-image: none; - background-color: #f66; -} - -.menu-item-handle .item-title { - font-size: 13px; - font-weight: 600; - line-height: 20px; - display: block; - margin-right: 13em; -} - -.menu-item-handle .menu-item-title.no-title { - color: #999; -} - -/* Sortables */ -li.menu-item.ui-sortable-helper .menu-item-bar { - margin-top: 0; -} - -li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar { - margin-top: 13px; -} - -.menu .sortable-placeholder { - height: 35px; - width: 410px; - margin-top: 13px; -} - -/* Hide the transport list when it's empty */ -.menu-item .menu-item-transport:empty { - display: none; -} - -/* WARNING: The factor of 30px is hardcoded into the nav-menus JavaScript. */ -.menu-item-depth-0 { margin-left: 0px; } -.menu-item-depth-1 { margin-left: 30px; } -.menu-item-depth-2 { margin-left: 60px; } -.menu-item-depth-3 { margin-left: 90px; } -.menu-item-depth-4 { margin-left: 120px; } -.menu-item-depth-5 { margin-left: 150px; } -.menu-item-depth-6 { margin-left: 180px; } -.menu-item-depth-7 { margin-left: 210px; } -.menu-item-depth-8 { margin-left: 240px; } -.menu-item-depth-9 { margin-left: 270px; } -.menu-item-depth-10 { margin-left: 300px; } -.menu-item-depth-11 { margin-left: 330px; } - -.menu-item-depth-0 .menu-item-transport { margin-left: 0px; } -.menu-item-depth-1 .menu-item-transport { margin-left: -30px; } -.menu-item-depth-2 .menu-item-transport { margin-left: -60px; } -.menu-item-depth-3 .menu-item-transport { margin-left: -90px; } -.menu-item-depth-4 .menu-item-transport { margin-left: -120px; } -.menu-item-depth-5 .menu-item-transport { margin-left: -150px; } -.menu-item-depth-6 .menu-item-transport { margin-left: -180px; } -.menu-item-depth-7 .menu-item-transport { margin-left: -210px; } -.menu-item-depth-8 .menu-item-transport { margin-left: -240px; } -.menu-item-depth-9 .menu-item-transport { margin-left: -270px; } -.menu-item-depth-10 .menu-item-transport { margin-left: -300px; } -.menu-item-depth-11 .menu-item-transport { margin-left: -330px; } - -body.menu-max-depth-0 { min-width: 950px !important; } -body.menu-max-depth-1 { min-width: 980px !important; } -body.menu-max-depth-2 { min-width: 1010px !important; } -body.menu-max-depth-3 { min-width: 1040px !important; } -body.menu-max-depth-4 { min-width: 1070px !important; } -body.menu-max-depth-5 { min-width: 1100px !important; } -body.menu-max-depth-6 { min-width: 1130px !important; } -body.menu-max-depth-7 { min-width: 1160px !important; } -body.menu-max-depth-8 { min-width: 1190px !important; } -body.menu-max-depth-9 { min-width: 1220px !important; } -body.menu-max-depth-10 { min-width: 1250px !important; } -body.menu-max-depth-11 { min-width: 1280px !important; } - -/* Menu item controls */ -.item-type { - display: inline-block; - padding: 12px 10px; - color: #666; - font-size: 12px; - line-height: 18px; -} - -.item-controls { - font-size: 12px; - position: absolute; - right: 20px; - top: -1px; -} - -.item-controls a { - text-decoration: none; -} - -.item-controls a:hover { - cursor: pointer; -} - -.item-controls .item-order { - padding-right: 10px; -} - -.nav-menus-php .item-edit { - position: absolute; - right: -20px; - top: 0; - display: block; - width: 30px; - height: 40px; - margin-right: 0 !important; - text-indent: 100%; - outline: none; - overflow: hidden; - white-space: nowrap; -} - -/* Menu editing */ -.menu-instructions-inactive { - display: none; -} - -.menu-item-settings { - display: block; - width: 402px; - padding: 10px 0 10px 10px; - position: relative; - z-index: 10; /* Keep .item-title's shadow from appearing on top of .menu-item-settings */ - border: 1px solid #e5e5e5; - border-top: none; - -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); - box-shadow: 0 1px 1px rgba(0,0,0,0.04); -} - -.menu-item-settings .field-move a { - display: none; - margin: 0 2px; -} - -.menu-item-edit-active .menu-item-settings { - display: block; -} - -.menu-item-edit-inactive .menu-item-settings { - display: none; -} - -.add-menu-item-pagelinks { - margin: .5em auto; - text-align: center; -} - -.link-to-original { - display: block; - margin: 0 0 10px; - padding: 3px 5px 5px; - border: 1px solid #dfdfdf; - color: #777; - font-size: 12px; - font-style: italic; -} - -.link-to-original a { - padding-left: 4px; - font-style: normal; -} - -.hidden-field { - display: none; -} - -.menu-item-settings .description-thin, -.menu-item-settings .description-wide { - margin-right: 10px; - float: left; -} - -.description-thin { - width: 190px; -} - -.description-wide { - width: 390px; -} - -.menu-item-actions { - padding-top: 15px; -} - -#cancel-save { - cursor: pointer; -} - -/* Major/minor publishing actions (classes) */ -.nav-menus-php .major-publishing-actions { - clear: both; - padding: 3px 0 6px; -} - -.nav-menus-php .major-publishing-actions .publishing-action { - text-align: right; - float: right; - line-height: 23px; - margin: 4px 0 1px; -} - -.nav-menus-php .blank-slate .menu-settings { - display: none; -} - -.nav-menus-php .delete-action { - float: left; - margin-top: 2px; -} - -.nav-menus-php .submitbox .submitcancel { - border-bottom: 1px solid #0073aa; - padding: 1px 2px; - color: #0073aa; - text-decoration: none; -} - -.nav-menus-php .submitbox .submitcancel:hover { - background: #0073aa; - color: #fff; -} - -.nav-menus-php .major-publishing-actions .form-invalid { - padding-left: 4px; - margin-left: -4px; -} - -/* Clearfix */ -#menu-item-name-wrap:after, -#menu-item-url-wrap:after, -#menu-name-label:after, -#menu-settings-column .inside:after, -#nav-menus-frame:after, -.nav-menus-php #post-body-content:after, -.nav-menus-php .button-controls:after, -.nav-menus-php .major-publishing-actions:after, -.nav-menus-php .menu-item-settings:after { - clear: both; - content: "."; - display: block; - height: 0; - visibility: hidden; -} - -#nav-menus-frame, -.button-controls, -#menu-item-url-wrap, -#menu-item-name-wrap { - display: block; -} - -/* =Media Queries --------------------------------------------------------------- */ - -@media screen and ( max-width: 782px ) { - body.nav-menus-php { - min-width: 0 !important; - } - - #nav-menus-frame { - margin-left: 0; - float: none; - width: 100%; - } - - #wpbody-content #menu-settings-column { - display: block; - width: 100%; - float: none; - margin-left: 0; - } - - #side-sortables .add-menu-item-tabs { - margin: 15px 0 14px; - } - - ul.add-menu-item-tabs li.tabs { - padding: 13px 15px 14px; - } - - .nav-menus-php .item-controls .item-type { - margin-top: 2px; - } - - .nav-menus-php .customlinkdiv .howto input { - width: 65%; - } - - .nav-menus-php .quick-search { - width: 85%; - } - - #menu-management-liquid { - margin-top: 25px; - } - - .nav-menus-php .menu-name-label.howto span { - margin-top: 13px - } - - .menu-name-label #menu-name { - margin-top: 4px; - } - - .nav-menus-php .major-publishing-actions .publishing-action { - margin-top: 6px; - } - - .nav-menus-php .delete-action { - font-size: 14px; - line-height: 50px; - margin-top: 12px; - } - - .menu-item-bar .menu-item-handle, - .menu-item-settings, - .description-wide { - width: auto; - } - - .menu-item-settings { - padding: 10px; - } - - .menu-item-settings .description-thin, - .menu-item-settings .description-wide { - width: 100%; - } - - .menu-item-settings input { - width: 100%; - } - - .menu-item-settings input[type="checkbox"], - .menu-item-settings input[type="radio"] { - width: 25px; - } - - .menu-settings dl { - padding-left: 0; - } - - .menu-settings dd { - float: none; - width: 100%; - margin-bottom: 15px; - } - - .menu-settings dt { - float: none; - width: auto; - margin-left: 0; - margin-bottom: 15px; - } -} - -@media only screen and (max-width: 768px) { - /* menu locations */ - #menu-locations-wrap .widefat { - width: 100%; - } -} diff --git a/wp-admin/css/press-this-editor-rtl.css b/wp-admin/css/press-this-editor-rtl.css deleted file mode 100644 index 90d8cdcf50..0000000000 --- a/wp-admin/css/press-this-editor-rtl.css +++ /dev/null @@ -1,122 +0,0 @@ -/* -Press This TinyMCE editor styles :) -*/ - - -/** -* Links -*/ -a { - color: #0073aa; -} - -a:visited { - color: #0073aa; -} - -a:hover, -a:focus, -a:active { - color: #00a0d2; -} - - -/** -* Lists -*/ -ul, -ol { - margin: 0 3em 1.5em 0; -} - -ul { - list-style: disc; -} - -ol { - list-style: decimal; -} - -li > ul, -li > ol { - margin-bottom: 0; - margin-right: 1.5em; -} - -dt { - font-weight: 700; -} - -dd { - margin: 0 1.5em 1.5em; -} - - -/** -* Media -* -* Basic image and object styles -*/ -img { - max-width: 100%; - height: auto; -} - -/* Makes sure embeds and iframes fit inside their containers */ -embed, -iframe, -object { - max-width: 100%; -} - - -/** -* TinyMCE styles -* -* Pretty dang good. -*/ -body { - color: #404040; - font-family: "Open Sans", Helvetica, Arial, sans-serif; - font-size: 20px; - font-weight: 400; - line-height: 1.6; -} -@media (max-width: 900px) { - body#tinymce { - padding-top: 30px !important; - } -} -@media (max-width: 640px) { - body { - font-size: 16px; - } -} -@media (max-width: 320px) { - body { - margin: 0 15px; - } -} - -#tinymce b, -#tinymce strong { - /* overrides TinyMCE's !important. Woohoo. */ - font-weight: 700 !important; -} - -blockquote { - margin: 1em 1.5em; - color: #9ea7af; - font-size: em(25px); - font-style: italic; -} -@media (max-width: 900px) { - blockquote { - margin: 1.5em 1em; - } -} - -ul, -ol { - margin: 0 .75em 1.5em 0; -} diff --git a/wp-admin/css/press-this-editor.css b/wp-admin/css/press-this-editor.css deleted file mode 100644 index 96ff426168..0000000000 --- a/wp-admin/css/press-this-editor.css +++ /dev/null @@ -1,122 +0,0 @@ -/* -Press This TinyMCE editor styles :) -*/ - - -/** -* Links -*/ -a { - color: #0073aa; -} - -a:visited { - color: #0073aa; -} - -a:hover, -a:focus, -a:active { - color: #00a0d2; -} - - -/** -* Lists -*/ -ul, -ol { - margin: 0 0 1.5em 3em; -} - -ul { - list-style: disc; -} - -ol { - list-style: decimal; -} - -li > ul, -li > ol { - margin-bottom: 0; - margin-left: 1.5em; -} - -dt { - font-weight: 700; -} - -dd { - margin: 0 1.5em 1.5em; -} - - -/** -* Media -* -* Basic image and object styles -*/ -img { - max-width: 100%; - height: auto; -} - -/* Makes sure embeds and iframes fit inside their containers */ -embed, -iframe, -object { - max-width: 100%; -} - - -/** -* TinyMCE styles -* -* Pretty dang good. -*/ -body { - color: #404040; - font-family: "Open Sans", Helvetica, Arial, sans-serif; - font-size: 20px; - font-weight: 400; - line-height: 1.6; -} -@media (max-width: 900px) { - body#tinymce { - padding-top: 30px !important; - } -} -@media (max-width: 640px) { - body { - font-size: 16px; - } -} -@media (max-width: 320px) { - body { - margin: 0 15px; - } -} - -#tinymce b, -#tinymce strong { - /* overrides TinyMCE's !important. Woohoo. */ - font-weight: 700 !important; -} - -blockquote { - margin: 1em 1.5em; - color: #9ea7af; - font-size: em(25px); - font-style: italic; -} -@media (max-width: 900px) { - blockquote { - margin: 1.5em 1em; - } -} - -ul, -ol { - margin: 0 0 1.5em .75em; -} diff --git a/wp-admin/css/press-this-rtl.css b/wp-admin/css/press-this-rtl.css deleted file mode 100644 index 17c688ceb9..0000000000 --- a/wp-admin/css/press-this-rtl.css +++ /dev/null @@ -1,2215 +0,0 @@ -/* -Press This styles :) -*/ - - -/** -* Normalize -* -* normalize.css v3.0.0 | MIT License | git.io/normalize -*/ -html { - font-family: sans-serif; - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; -} - -body { - margin: 0; -} - -*, -*:before, -*:after { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { - *, - *:before, - *:after { - -webkit-font-smoothing: antialiased; - } -} - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -main, -nav, -section, -summary { - display: block; -} - -audio, -canvas, -progress, -video { - display: inline-block; - vertical-align: baseline; -} - -audio:not([controls]) { - display: none; - height: 0; -} - -[hidden], -template { - display: none; -} - -a { - background: transparent; -} - -a:active, -a:hover { - outline: 0; -} - -abbr[title] { - border-bottom: 1px dotted; -} - -b, -strong { - font-weight: bold; -} - -dfn { - font-style: italic; -} - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -mark { - background: #ff0; - color: #000; -} - -small { - font-size: 80%; -} - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -img { - border: 0; -} - -svg:not(:root) { - overflow: hidden; -} - -figure { - margin: 1em 40px; -} - -hr { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; -} - -pre { - overflow: auto; -} - -code, -kbd, -pre, -samp { - font-family: monospace, monospace; - font-size: 1em; -} - -button, -input, -optgroup, -select, -textarea { - color: inherit; - font: inherit; - margin: 0; -} - -button { - overflow: visible; -} - -button, -select { - text-transform: none; -} - -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; - cursor: pointer; -} - -button[disabled], -html input[disabled] { - cursor: default; -} - -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} - -input { - line-height: normal; -} - -input[type="checkbox"], -input[type="radio"] { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - padding: 0; -} - -input[type="number"]::-webkit-inner-spin-button, -input[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -input[type="search"] { - -webkit-appearance: textfield; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} - -input[type="search"]::-webkit-search-cancel-button, -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -fieldset { - border: 0; - margin: 0; - padding: 0; -} - -legend { - border: 0; - padding: 0; -} - -textarea { - overflow: auto; -} - -optgroup { - font-weight: bold; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -td, -th { - padding: 0; -} - -.clearfix:before, -.clearfix:after { - content: ""; - display: table; -} -.clearfix:after { - clear: both; -} - -.hide-if-js { - display: none; -} - -.screen-reader-text { - position: absolute; - margin: -1px; - padding: 0; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(0 0 0 0); - border: 0; -} - - -/** -* Typography -* -* Base element typographic styles. -*/ -body, -button, -input, -select, -textarea { - color: #404040; - font-family: "Open Sans", Helvetica, Arial, sans-serif; - font-size: 20px; - font-weight: 400; - line-height: 1.6; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - clear: both; -} - -p { - margin-bottom: 1.5em; -} - -b, -strong { - font-weight: 700; -} - - -/** -* Buttons -* -* Pushing buttons is what I do. -*/ - -.button-subtle, -.scan-submit { - display: inline-block; - margin: 0; - padding: 0 10px 1px; - border-width: 1px; - border-style: solid; - -webkit-border-radius: 3px; - border-radius: 3px; - font-size: 13px; - line-height: 2; - text-decoration: none; - white-space: nowrap; - cursor: pointer; - -webkit-appearance: none; -} - -.button-subtle { - background: none; - border: 0; - color: #0073aa; -} - -.button-subtle:visited { - color: #0073aa; -} - -.button-subtle:focus, -.button-subtle:hover, -.button-subtle:active, -.edit-post-link:focus, -.edit-post-link:hover, -.edit-post-link:active { - color: #00a0d2; -} - -.button-subtle:focus, -.button-subtle:active, -.edit-post-link:focus, -.edit-post-link:active { - outline: 0; - text-decoration: underline; -} - -.preview-button { - margin-left: 5px; -} - -.button-reset { - margin: 0; - padding: 0; - border: 0; - background: none; - cursor: pointer; - -webkit-appearance: none; -} - -.button-reset:focus { - outline: 0; -} - -.button-link { - margin: 0; - padding: 0; - border: 0; - background: none; - color: #0073aa; - cursor: pointer; - -webkit-appearance: none; -} - -.button-link:hover, -.button-link:active, -.button-link:focus { - color: #00a0d2; - text-decoration: underline; -} - -.split-button { - position: relative; - display: inline-block; - vertical-align: middle; -} - -.split-button-body { - display: none; - position: absolute; - bottom: 39px; - left: 0; - border: 1px solid #ddd; - background-color: #fff; - min-width: 180px; - max-width: 100%; - margin: 0; - padding: 8px; - list-style: none; - -webkit-box-shadow: -1px 0 4px rgba( 0, 0, 0, 0.15 ); - box-shadow: -1px 0 4px rgba( 0, 0, 0, 0.15 ); -} - -.split-button-body:before, -.split-button-body:after { - position: absolute; - left: 12px; - display: block; - width: 0; - height: 0; - border-style: solid; - border-color: transparent; - content: ''; -} - -.split-button-body:before { - bottom: -18px; - border-top-color: #ccc; - border-width: 9px; - left: 11px; -} - -.split-button-body:after { - bottom: -16px; - border-top-color: #fff; - border-width: 8px; -} - -.split-button-body .split-button-option { - display: block; - padding: 5px 15px; - margin: 0; - width: 100%; - text-align: right; -} - -.is-open .split-button-body { - display: block; -} - -.split-button-primary, -.split-button-toggle { - -webkit-border-radius: 0; - border-radius: 0; - display: block; - margin: 0; - font-size: 13px; - text-decoration: none; - white-space: nowrap; - cursor: pointer; - -webkit-appearance: none; - line-height: 2; - padding: 0 10px 1px; - background: #00a0d2; - border-color: #0073aa; - border-width: 1px; - border-style: solid; - -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5), 0 1px 0 rgba( 0, 0, 0, 0.15 ); - box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5 ), 0 1px 0 rgba( 0, 0, 0, 0.15 ); - color: #fff; -} - -.split-button-primary { - -webkit-border-top-right-radius: 3px; - border-top-right-radius: 3px; - -webkit-border-bottom-right-radius: 3px; - border-bottom-right-radius: 3px; - border-left: 0 none; - float: right; -} - -.split-button-toggle { - padding: 0; - -webkit-border-top-left-radius: 3px; - border-top-left-radius: 3px; - -webkit-border-bottom-left-radius: 3px; - border-bottom-left-radius: 3px; - border-right: 0 none; - float: left; -} - -.split-button-toggle i { - margin: 4px 0 3px 20px; - padding: 0 10px; - border-right: 1px solid #fff; -} - -.split-button-primary:hover, -.split-button-toggle:hover { - outline: none; - background: #0091cd; - border-color: #0073aa; -} - -.split-button-primary:focus, -.split-button-toggle:focus { - outline: none; - border-color: #0e3950; - -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.split-button-primary:active, -.split-button-toggle:active { - background: #0073aa; - border-color: #005082; - color: rgba( 255, 255, 255, 0.95 ); - -webkit-box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 ); -} - -/** -* Forms -* -* So many input types. -*/ -button, -input, -select, -textarea { - font-size: 100%; - margin: 0; - vertical-align: baseline; - *vertical-align: middle; -} - -[type="checkbox"], -[type="radio"] { - padding: 0; -} - -[type="search"] { - -webkit-appearance: textfield; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} - -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} - -[type="text"], -[type="email"], -[type="url"], -[type="password"], -[type="search"], -textarea { - padding: 0.4em 0.75em; - color: #32373c; - border: 1px solid #ccc; -} - -[type="text"]:focus, -[type="email"]:focus, -[type="url"]:focus, -[type="password"]:focus, -[type="search"]:focus, -textarea:focus { - color: #32373c; - outline: 0; -} - -textarea { - overflow: auto; - padding-right: 3px; - vertical-align: top; -} - - -/** -* Links -*/ -a { - color: #0073aa; -} - -a:visited { - color: #0073aa; -} - -a:hover, -a:focus, -a:active { - color: #00a0d2; -} - - -/** -* Lists -*/ -ul, -ol { - margin: 0 3em 1.5em 0; -} - -ul { - list-style: disc; -} - -ol { - list-style: decimal; -} - -li > ul, -li > ol { - margin-bottom: 0; - margin-right: 1.5em; -} - -dt { - font-weight: 700; -} - -dd { - margin: 0 1.5em 1.5em; -} - - -/** -* Post formats -* -* Complete styles for post formats UI -*/ -/* TODO if we remove the
during merge, this can go. */ -#post-formats-select br { - display: none; -} - -.post-format { - width: 1px; - height: 1px; - position: absolute; - top: -9999px; -} - -.lt-ie9 .post-format { - margin: 17px 13px 0 12px; - width: auto; - height: auto; - position: static; - top: auto; - float: right; - width: 16px; - height: 16px; -} - -.post-format-icon { - position: relative; - display: block; - padding: 13px 13px 14px 2px; - cursor: pointer; -} - -.post-format-icon:before, -.post-format-icon:after { - content: ""; - display: inline-block; - width: 20px; - height: 20px; - margin-left: 10px; - font-size: 20px; - line-height: 1; - font-family: dashicons; - text-decoration: inherit; - color: #9ea7af; - font-weight: 400; - font-style: normal; - vertical-align: top; - text-align: center; - -webkit-transition: color .1s ease-in 0; - transition: color .1s ease-in 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.post-format-icon:before { - content: "\f109"; -} - -.post-format-icon:after { - display: none; - content: "\f147"; - float: left; -} - -.post-format:checked + .post-format-icon { - -webkit-box-shadow: inset -6px 0 0 #00a0d2; - box-shadow: inset -6px 0 0 #00a0d2; - background: rgba(46, 162, 204, 0.1); -} - -.post-format:checked + .post-format-icon:before, -.post-format:checked + .post-format-icon:after { - color: #32373c; -} - -.post-format:focus + .post-format-icon { - background: #00a0d2; - color: #fff; -} - -.post-format:focus + .post-format-icon:before, -.post-format:focus + .post-format-icon:after { - color: #fff; -} - -.post-format:checked + .post-format-icon:after { - display: block; -} - -.lt-ie9 .post-format-icon { - margin-right: 16px; -} - -.post-format-aside:before { - content: "\f123"; -} - -.post-format-image:before { - content: "\f128"; -} - -.post-format-video:before { - content: "\f126"; -} - -.post-format-audio:before { - content: "\f127"; -} - -.post-format-quote:before { - content: "\f122"; -} - -.post-format-link:before { - content: "\f103"; -} - -.post-format-gallery:before { - content: "\f161"; -} - - -/** -* Tags -* -* Complete styles for tags UI -*/ -.tagsdiv p { - margin: 0; -} - -.tagsdiv .ajaxtag { - position: relative; -} - -.tagsdiv .newtag { - display: block; - position: relative; - padding: 11px 16px 11px 58px; - width: 100%; - border: 0; - border-bottom: 1px solid #e5e5e5; - font-size: 16px; -} - -.tagsdiv .tagadd { - position: absolute; - top: 0; - left: 0; - bottom: 1px; - border: 0; - -webkit-border-radius: 0; - border-radius: 0; - margin: 0; - padding: 0 16px; - background: #f7f7f7; - border-right: 1px solid #f1f1f1; - -webkit-box-shadow: none; - box-shadow: none; -} - -.tagsdiv .tagadd:hover, -.tagsdiv .tagadd:active, -.tagsdiv .tagadd:focus { - outline: 0; - background: #2991b7; - border-color: #20708e; - color: #fff; - -webkit-box-shadow: none; - box-shadow: none; -} - -.tagsdiv .howto { - color: #727272; - font-style: italic; - margin: 10px 16px 6px 0; -} - - -/* Tag hint TODO needed? */ -/* Tag suggestions */ -.ac_results { - padding: 0; - margin: -1px -1px 0 0; - list-style: none; - position: absolute; - z-index: 10000; - display: none; - border: 1px solid #d8d8d8; - background-color: #fff; - font-size: 14px; -} - -.ac_results li { - padding: 6px 16px; - white-space: nowrap; - color: #101010; - text-align: right; -} - -.ac_results .ac_over { - background-color: #e5e5e5; - background-color: #00a0d2; - color: #fff; - cursor: pointer; -} - -.ac_match { - text-decoration: underline; -} - -/* Tags */ -.tagchecklist { - padding: 16px 28px 5px; -} - -.tagchecklist:before, -.tagchecklist:after { - content: ""; - display: table; -} - -.tagchecklist:after { - clear: both; -} - -.tagchecklist span { - display: block; - margin-left: 25px; - float: right; - font-size: 13px; - line-height: 1.8; - white-space: nowrap; - cursor: default; -} - -@media (max-width: 600px) { - .tagchecklist span { - margin-bottom: 15px; - font-size: 16px; - line-height: 1.3; - } -} - -.tagchecklist .ntdelbutton { - margin: 1px -17px 0 0; - cursor: pointer; - width: 20px; - height: 20px; - display: block; - float: right; - text-indent: 0; - overflow: hidden; - position: absolute; - outline: 0; -} - -.tagchecklist .ntdelbutton:before { - content: '\f153'; - display: block; - margin: 2px 0; - height: 20px; - width: 20px; - background: 100% 0; - color: #9ea7af; - font: 400 16px/1 dashicons; - text-align: center; - speak: none; - -webkit-font-smoothing: antialiased; -} - -.tagchecklist .ntdelbutton:focus:before { - color: #00a0d2; -} - - -/* THE TAG CLOUD. */ -.tagsdiv + p { - margin: 0; -} - -.tagcloud-link { - display: block; - padding: 0 16px; - text-decoration: none; - outline: 0; -} - -.tagcloud-link:focus { - text-decoration: underline; -} - -.popular-tags { - border: none; - line-height: 2em; - padding: 8px 12px 12px; - text-align: justify; -} - -.popular-tags a { - padding: 0 3px; -} - -.the-tagcloud { - margin: 0; - padding: 16px; -} - -.the-tagcloud a { - text-decoration: none; - outline: 0; -} - -.the-tagcloud a:focus { - text-decoration: underline; -} - -.tagcloud h3 { - margin: 2px 0 12px; -} - - -/** -* Categories -* -* Complete styles for post categories UI -*/ -input[type="search"].categories-search, -.add-category-name { - display: block; - width: 100%; - padding: 0.85714em 1.07143em; - border: 0; - -webkit-border-radius: 0; - border-radius: 0; - border-bottom: 1px solid #e5e5e5; - font-size: 14px; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -@media (max-width: 600px) { - input[type="search"].categories-search, - .add-category-name { - /* Needs to be 16px to prevent zooming on iOS. Guh. */ - font-size: 16px; - } -} - -.add-cat-toggle { - float: left; - margin-top: -45px; - line-height: 20px; - padding: 12px 10px 8px; -} - -.add-cat-toggle:focus { - text-decoration: none; - color: #00a0d2; -} - -.add-cat-toggle.is-toggled { - padding: 10px; -} - -.add-cat-toggle.is-toggled .dashicons:before { - content: "\f179"; -} - -.add-category { - position: relative; - border-bottom: 1px solid #e5e5e5; -} - -.add-category.is-hidden { - display: none; -} - -.add-category .add-cat-submit { - position: absolute; - top: 0; - left: 0; - border: 0; - -webkit-border-radius: 0; - border-radius: 0; - padding: 12px 16px; - background: #f7f7f7; - border-right: 1px solid #f1f1f1; -} - -.add-category .add-cat-submit:hover, -.add-category .add-cat-submit:active, -.add-category .add-cat-submit:focus { - outline: 0; - background: #2991b7; - border-color: #20708e; - color: #fff; -} - -/* Parent category select */ -.postform-wrapper { - padding: 12px; -} - -.postform { - display: block; - margin: 0; - width: 100%; - height: 34px; - border: 0; - -webkit-border-radius: 0; - border-radius: 0; - border: 1px solid #e5e5e5; - background: #fff; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - overflow: hidden; - line-height: 21px; - text-overflow: ellipsis; - text-decoration: none; - vertical-align: top; - white-space: nowrap; - cursor: pointer; - outline: 0; -} - -.postform:focus { - border-color: #0073aa; - -webkit-box-shadow: 0 0 0 3px #00a0d2; - box-shadow: 0 0 0 3px #00a0d2; - outline: 0; - -moz-outline: none; - -moz-user-focus: ignore; -} - -.postform::-ms-expand { - display: none; -} - -.postform::-ms-value { - background: none; - color: #727272; -} - -.postform:-moz-focusring { - color: transparent; - text-shadow: 0 0 0 #727272; -} - -/* Category list */ -.categories-select { - margin: 0; - padding: 0; - list-style: none; -} - -.categories-select ul { - margin: 0; - padding: 0; - list-style: none; -} - -.category { - position: relative; - display: block; - padding: 13px 16px 14px 16px; - cursor: pointer; - background: #fff; -} - -.category:focus, -.category.selected:focus { - outline: 0; - background: #00a0d2; - color: #fff; -} - -.category.selected { - -webkit-box-shadow: inset -6px 0 0 #00a0d2; - box-shadow: inset -6px 0 0 #00a0d2; - background: #E9F5F9; -} - -.category.selected:after { - display: inline-block; - content: "\f147"; - position: absolute; - top: 13px; - left: 0; - width: 20px; - height: 20px; - margin-left: 10px; - font-size: 20px; - line-height: 1; - font-family: dashicons; - text-decoration: inherit; - color: #23282d; - font-weight: 400; - font-style: normal; - vertical-align: top; - text-align: center; - -webkit-transition: color .1s ease-in 0; - transition: color .1s ease-in 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.category.selected:focus:after { - color: #fff; -} - -.categories-select ul .category { - padding-right: 24px; -} - -.categories-select ul ul .category { - padding-right: 32px; -} - -.categories-select ul ul ul .category { - padding-right: 40px; -} - -.categories-select ul ul ul ul .category { - padding-right: 48px; -} - -.categories-select ul ul ul ul ul .category { - padding-right: 56px; -} - -.categories-select ul ul ul ul ul ul .category { - padding-right: 64px; -} - -.categories-select .is-hidden { - display: none; -} - -.categories-select .is-hidden.searched-parent { - display: block; -} - -/* Category search */ -.categories-search-wrapper { - position: relative; -} - -.categories-search-wrapper.is-hidden { - display: none; -} - -.categories-search-wrapper label { - position: absolute; - top: 50%; - left: 10px; - margin-top: -10px; - color: #9ea7af; -} - - -/** -* Main -*/ -html { - overflow: auto; -} - -body { - overflow-x: hidden; - height: 100%; -} - -html { - background: #fff; - -webkit-box-shadow: 10px 0 0 rgba(0, 0, 0, 0.3); - box-shadow: 10px 0 0 rgba(0, 0, 0, 0.3); -} - -@media (max-width: 900px) { - body { - font-size: 16px; - } -} - -@media (max-width: 320px) { - body { - font-size: 14px; - } -} - -.lt-ie9 { - overflow: visible; -} - -.adminbar { - position: relative; - width: 100%; - padding: 0 0.8em; - min-height: 3.2em; - background: #23282d; - color: #fff; - z-index: 9999; -} - -.adminbar:before, -.adminbar:after { - content: ""; - display: table; -} - -.adminbar:after { - clear: both; -} - -.adminbar .dashicons { - color: #999; -} - -.adminbar button { - position: absolute; - top: 50%; - left: 6px; - margin-top: -13px; -} - -@media (max-width: 320px) { - .adminbar { - min-height: 45px; - } -} - -.current-site { - margin-top: 0.5625em; - font-size: 16px; - line-height: 44px; - font-weight: 400; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} - -@media (max-width: 600px) { - .current-site { - margin: 3px 0 0; - } -} - -@media (max-width: 320px) { - .current-site { - margin: 0; - font-size: 14px; - } -} - -.current-site-link { - text-decoration: none; -} - -.current-site-link:focus { - outline: 0; -} - -.current-site-link:focus .current-site-name{ - text-decoration: underline; -} - -.current-site-name { - color: #ededed; -} - -@media (max-width: 320px) { - .current-site-name { - font-weight: 600; - } -} - -.current-site .dashicons-wordpress { - position: relative; - top: -1px; - margin-left: 10px; - vertical-align: middle; -} - -.options, -.options.open .on-closed, -.options.closed .on-open { - display: none; -} - -@media (max-width: 900px) { - .options { - display: block; - } -} - -.options-panel-back.is-hidden { - display: none; -} - -.options:focus .dashicons { - color: #fff; - text-decoration: none; -} - -.options .dashicons { - margin-top: 3px; -} - -.options { - color: #00a0d2; -} - -.alert { - position: relative; - margin: 0; - padding: 16px 50px; - border-bottom: 1px solid #e5e5e5; - font-size: 14px; -} - -.alert:before { - content: ''; - position: absolute; - top: 50%; - right: 30px; - width: 8px; - height: 8px; - margin-top: -4px; - -webkit-border-radius: 50%; - border-radius: 50%; - background: #00a0d2; -} - -@media (max-width: 600px) { - .alert { - padding: 16px 35px; - } - .alert:before { - right: 15px; - } -} - -.alert.is-error:before { - background: red; -} - -.scan { - position: relative; - border-bottom: 1px solid #e5e5e5; -} - -@media (max-width: 900px) { - .scan form { - -webkit-transition: opacity .3s ease-in-out; - transition: opacity .3s ease-in-out; - } - .scan.is-hidden form { - opacity: .2; - pointer-events: none; - } -} - -.scan-url { - display: block; - border: 0; - padding: 0.85714em 1.07143em; - font-size: 14px; - width: 100%; -} - -@media (max-width: 600px) { - .scan-url { - font-size: 16px; - } -} - -.scan-submit { - position: absolute; - top: 0; - left: 0; - bottom: 0; - padding: 0 1.07143em; - background: #f7f7f7; - border-color: #dedede; - border: 0; - border-right: 1px solid #f1f1f1; - -webkit-border-radius: 0; - border-radius: 0; - color: #555; - font-size: 14px; - line-height: 1.6; -} - -.scan-submit:hover, -.scan-submit:focus { - background: #2991b7; - border-color: #20708e; - color: #fff; - outline: 0; -} - -.scan-submit:active { - background: #2581a2; - border-color: #20708e; - color: #fff; -} - -.scan-submit:visited { - color: #555; -} - -.wrapper { - position: relative; - margin-bottom: 60px; - margin-left: 320px; -} - -.wrapper:before, -.wrapper:after { - content: ""; - display: table; -} - -.wrapper:after { - clear: both; -} - -@media (max-width: 900px) { - .wrapper { - margin: 0; - width: 100%; - } -} - -.editor-wrapper { - overflow: auto; - float: right; - width: 100%; -} - -.editor-wrapper:before, -.editor-wrapper:after { - content: ""; - display: table; -} - -.editor-wrapper:after { - clear: both; -} - -.editor { - padding: 0 1.5em 4.75em; - max-width: 700px; - margin: 0 auto; -} - -.spinner { - height: 20px; - width: 20px; - display: inline-block; - visibility: hidden; - background: url(../images/spinner.gif) no-repeat center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - opacity: 0.7; - filter: alpha(opacity=70); - line-height: 1; - vertical-align: middle; -} - -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - - .spinner { - background-image: url(../images/spinner-2x.gif); - } -} - -.spinner.is-active { - visibility: visible; -} - -/* Make the text inside the editor textarea white. Prevents a "flash" on loading the page */ -#pressthis { - color: #fff; -} - -@media (min-width: 901px) { - .editor { - max-width: 760px; - } -} - -@media (max-width: 320px) { - .editor { - padding: 0; - } -} - -.post-title, -.post-title-placeholder { - margin: 0; - padding: .83em 0; - width: 100%; - border-bottom: 1px solid #e5e5e5; - font-size: 32px; - line-height: 1.4; - font-weight: 700; -} - -.post-title:active, -.post-title:focus, -.post-title-placeholder:active, -.post-title-placeholder:focus { - outline: 0; - -webkit-box-shadow: inset 0px -3px 0 #00a0d2; - box-shadow: inset 0px -3px 0 #00a0d2; - border-color: #00a0d2; -} - -@media (max-width: 900px) { - .post-title, - .post-title-placeholder { - font-size: 24px; - } -} - -@media (max-height: 400px) { - .post-title, - .post-title-placeholder { - padding: 15px 0; - font-size: 16px; - } -} - -@media (max-width: 320px) { - .post-title, - .post-title-placeholder { - font-size: 16px; - font-weight: 600; - padding: 1.14286em 1.42857em; - } -} - -.post-title { - /* IE8 fallback */ - background: url(data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///////wAAACH5BAEHAAIALAAAAAABAAEAAAICVAEAOw==); - background: none, none; -} - -.post-title:before { - /* Keeps empty container from collapsing */ - content: '\a0'; - display: inline-block; - width: 0; - speak: none; -} - -.post-title-placeholder { - position: absolute; - border: 0; - color: #9ea7af; - z-index: -1; -} - -.post-title-placeholder.is-hidden { - display: none; -} - -/* Suggested images */ -.media-list-container { - position: relative; - padding: 2px 0; - border-bottom: 1px solid #e5e5e5; - display: none; -} - -.media-list-inner-container { - overflow: auto; - max-height: 150px; - max-height: 40vw; -} - -.media-list-container.has-media { - display: block; -} - -.media-list-inner-container:before, -.media-list-inner-container:after { - content: ""; - display: table; -} - -.media-list-inner-container:after { - clear: both; -} - -.media-list { - margin: 0; - padding: 0; -} - -@media (min-width: 321px) { - .media-list-inner-container { - max-height: 250px; - max-height: 40vw; - } -} - -@media (min-width: 601px) { - .media-list-inner-container { - max-height: 200px; - max-height: 18.75vw; - } -} - -.wppt-all-media-list { - list-style: none; - margin: 0; - padding: 0; -} - -.suggested-media-thumbnail:focus, -.is-embed:focus { - outline: 0; - -webkit-box-shadow: inset 0 0 0 3px #00a0d2; - box-shadow: inset 0 0 0 3px #00a0d2; -} - -.suggested-media-thumbnail { - position: relative; - display: block; - float: right; - width: 16.66%; - padding: 16.66% 16.66% 0 0; - background-position: center; - background-repeat: no-repeat; - -webkit-background-size: cover; - background-size: cover; - background-color: #d8d8d8; - color: #fff; - color: rgba(255, 255, 255, 0.6); - cursor: pointer; -} - -.suggested-media-thumbnail:hover, -.suggested-media-thumbnail:active, -.suggested-media-thumbnail:focus { - color: #fff; -} - -.suggested-media-thumbnail:before, -.suggested-media-thumbnail:after { - display: inline-block; - position: absolute; - font-size: 20px; - line-height: 1; - font-family: dashicons; - text-decoration: inherit; - font-weight: 400; - font-style: normal; - -webkit-transition: color .1s ease-in 0; - transition: color .1s ease-in 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.suggested-media-thumbnail:before { - right: 50%; - top: 50%; - margin: -20px -20px 0 0; - font-size: 40px; -} - -.suggested-media-thumbnail:after { - content: "\f132"; - left: 3%; - bottom: 2%; -} - -@media (min-width: 601px) { - .suggested-media-thumbnail { - width: 12.5%; - padding: 12.5% 12.5% 0 0; - } -} - -.is-embed:before { - content: "\f104"; - color: #fff; - color: rgba(255, 255, 255, 0.9); -} - -.is-embed.is-audio:hover:before, -.is-embed.is-audio:active:before, -.is-embed.is-audio:focus:before, -.is-embed.is-tweet:hover:before, -.is-embed.is-tweet:active:before, -.is-embed.is-tweet:focus:before { - color: #fff; -} - -.is-embed.is-video { - background-color: #23282d; -} - -.is-embed.is-video:hover:before, -.is-embed.is-video:active:before, -.is-embed.is-video:focus:before { - color: rgba(255, 255, 255, 0.2); -} - -.is-embed.is-video:before { - content: "\f236"; -} - -.is-embed.is-audio { - background-color: #ff7d44; -} - -.is-embed.is-audio:before { - content: "\f127"; -} - -.is-embed.is-tweet { - background-color: #55acee; -} - -.is-embed.is-tweet:before { - content: "\f301"; -} - -.no-media { - margin: 0; - padding: 0; - border: 0; -} - -/* Actions bar */ -.press-this-actions { - position: fixed; - bottom: 0; - right: 0; - width: 100%; - background: #f1f1f1; - background: rgba(241, 241, 241, 0.9); - border-top: 1px solid #e5e5e5; -} - -@media (max-width: 900px) { - .press-this-actions { - -webkit-transform: translateY(0); - -ms-transform: translateY(0); - transform: translateY(0); - -webkit-transition: -webkit-transform .3s ease-in-out; - transition: transform .3s ease-in-out; - } - .press-this-actions.is-hidden { - -webkit-transform: translateY(100%); - -ms-transform: translateY(100%); - transform: translateY(100%); - } -} - -.add-media { - float: right; - margin: 14px 30px 14px 0; - font-size: 0; -} - -@media (max-width: 320px) { - .add-media { - margin: 10px 10px 10px 0; - } -} - -.insert-media { - color: #9ea7af; - float: right; - margin: 0; - padding: 0; - border: 0; - border-left: 1px solid #e5e5e5; - -webkit-border-radius: 0; - border-radius: 0; - background: none; - -webkit-box-shadow: none; - box-shadow: none; - overflow: hidden; -} - -.insert-media:hover, -.insert-media:focus, -.insert-media:active { - margin: 0; - background: none; - border-color: #e5e5e5; - color: #23282d; -} - -.insert-media:focus, -.insert-media:active { - outline: 0; - color: #00a0d2; - text-decoration: none; -} - -.insert-media .dashicons { - padding: 11px; - width: 63px; - height: 58px; - font-size: 40px; -} - -@media (max-width: 320px) { - .insert-media .dashicons { - width: 55px; - height: 49px; - padding: 14px; - font-size: 20px; - } -} - -.post-actions { - float: left; - margin: 14px 0 14px 30px; - font-size: 13px; -} - -@media (max-width: 320px) { - .post-actions { - margin: 10px 0 10px 10px; - } -} - -.edit-post-link { - font-size: 13px; - display: inline-block; - text-decoration: none; - padding: 0 10px; -} - -.publish-button .saving-draft, -.publish-button.is-saving .publish { - display: none; -} - -.publish-button.is-saving .saving-draft { - display: inline; -} - -/* TinyMCE styles */ -.editor .wp-media-buttons { - float: none; -} - -.editor div.mce-toolbar-grp { - padding: 0.71429em 0; - background: none; - border: 0; -} - -@media (max-height: 400px), (max-width: 320px) { - .editor div.mce-toolbar-grp { - padding: 0; - } -} - -.mce-stack-layout:before, -.mce-stack-layout:after { - content: ""; - display: table; -} - -.mce-stack-layout:after { - clear: both; -} - -.mce-container.mce-toolbar { - float: right; -} - -.mce-container.mce-toolbar:nth-child(2) { - float: left; -} - -@media (max-width: 600px) { - .mce-first .mce-btn:nth-child(3), - .mce-first .mce-btn:nth-child(4) { - position: absolute; - margin: -1px; - padding: 0; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(0 0 0 0); - border: 0; - } - - .mce-first .mce-btn:nth-child(3):focus, - .mce-first .mce-btn:nth-child(4):focus { - position: static; - margin: 1px; - padding: inherit; - height: auto; - width: auto; - overflow: visible; - clip: auto; - border: 1px solid #999; - } -} - -#wp-link-wrap { - font-size: 13px; -} - -#wp-link-wrap input[type="text"] { - padding: 3px 5px; - margin: 1px; -} - -@media screen and (max-width: 782px) { - #wp-link-wrap { - font-size: 14px; - } - - #wp-link-wrap input[type="text"] { - padding: 6px 10px; - } -} - -#wp-link-wrap .howto { - color: #666; - font-style: italic; -} - -/* Options panel (sidebar) */ -.options-panel { - position: relative; - float: left; - margin-left: -320px; - width: 320px; - border-right: 1px solid #e5e5e5; - font-size: 14px; - /* Keeps background the full height of the screen, but only visually. Clicks go through. */ - -webkit-box-shadow: -5001px 5000px 0 5000px #fff, -5000px 5000px 0 5000px #e5e5e5; - box-shadow: -5001px 5000px 0 5000px #fff, -5000px 5000px 0 5000px #e5e5e5; - outline: 0; -} - -.options-panel-back { - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 320px; - outline: 0; -} - -@media (max-width: 900px) { - .options-panel { - background: #fff; - -webkit-transform: translateX(100%); - -ms-transform: translateX(100%); - transform: translateX(100%); - -webkit-transition: -webkit-transform .3s ease-in-out; - transition: transform .3s ease-in-out; - } - - .options-panel.is-hidden { - visibility: hidden; - } - - .options-panel.is-off-screen { - -webkit-transform: translateX(0); - -ms-transform: translateX(0); - transform: translateX(0); - } -} - -@media (max-width: 320px) { - .options-panel { - margin-left: -100%; - width: 100%; - border: 0; - -webkit-box-shadow: -5001px 5000px 0 5000px #fff; - box-shadow: -5001px 5000px 0 5000px #fff; - } - - .options-panel-back { - width: 100%; - } -} - -.post-options { - background: #fff; - position: absolute; - left: 0; - width: 100%; - overflow-x: hidden; -} - -.post-options .post-option-contents { - margin-right: 3px; - color: #32373c; -} - -.post-option-forward:before { - position: absolute; - top: 50%; - left: 8px; - margin-top: -10px; - content: "\f341" -} - -.post-option-back:before { - content: "\f345"; -} - -.lt-ie9 .options-panel, -.lt-ie9 .post-options { - border-right: 1px solid #e5e5e5; -} - -.lt-ie9 .post-options.is-off-screen { - border: 0; -} - -.post-option { - position: relative; -} - -.post-options .post-option { - display: block; - width: 100%; - padding: 13px 14px 13px 37px; - border-bottom: 1px solid #e5e5e5; - text-decoration: none; - text-align: right; - color: #9ea7af; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - -webkit-transition: -webkit-transform .3s ease-in-out; - transition: transform .3s ease-in-out; -} - -.post-options .post-option:focus { - outline: 0; - -webkit-box-shadow: inset -5px 0 0 #00a0d2; - box-shadow: inset -5px 0 0 #00a0d2; -} - -.is-off-screen > .post-option { - left: 100%; -} - -.is-hidden > .post-option { - visibility: hidden; -} - -@media (min-width: 1px) { - .is-off-screen > .post-option { - left: auto; - -webkit-transform: translateX(100%); - -ms-transform: translateX(100%); - transform: translateX(100%); - } -} - -.post-option-title { - display: inline-block; - margin: 0 8px 0 0; - font-size: 14px; - font-weight: normal; -} - -.setting-modal { - position: relative; - top: 0; - right: 0; - width: 100%; - overflow: hidden; - -webkit-transition: -webkit-transform .3s ease-in-out; - transition: transform .3s ease-in-out; -} - -.setting-modal.is-hidden { - visibility: hidden; - height: 0; -} - -.setting-modal.is-off-screen { - right: 100%; -} - -@media (min-width: 1px) { - .setting-modal.is-off-screen { - right: 0; - -webkit-transform: translateX(-100%); - -ms-transform: translateX(-100%); - transform: translateX(-100%); - } -} - -.modal-close { - display: block; - width: 100%; - padding: 13px 14px; - border-bottom: 1px solid #e5e5e5; - color: #00a0d2; - text-decoration: none; - text-align: right; -} - -.modal-close:focus { - outline: 0; - -webkit-box-shadow: inset -5px 0 0 #00a0d2; - box-shadow: inset -5px 0 0 #00a0d2; -} - -.setting-title { - position: relative; - top: -1px; - margin-right: 11px; -} - -/* Text editor */ -#pressthis { - color: #404040; - resize: none; - padding-top: 30px; - font-size: 16px; -} - -.wp-editor-wrap .quicktags-toolbar { - background: transparent; - border: none; -} - -/* Switch editor buttons */ -.wp-editor-wrap .wp-editor-tools { - z-index: 0; -} - -.wp-editor-wrap .wp-editor-tabs { - padding: 2px; -} - -.wp-editor-wrap .wp-switch-editor { - top: 0; - margin: 3px 5px 0 0; - padding: 3px 8px; - background: #f5f5f5; - color: #555; - border-color: #ccc; -} - -.wp-editor-wrap .wp-switch-editor:hover { - background: #fafafa; - border-color: #999; - color: #23282d; -} - -.wp-editor-wrap.tmce-active .switch-tmce, -.wp-editor-wrap.html-active .switch-html { - background: #fff; - border-color: #d8d8d8; -} diff --git a/wp-admin/css/press-this-rtl.min.css b/wp-admin/css/press-this-rtl.min.css deleted file mode 100644 index a051a71933..0000000000 --- a/wp-admin/css/press-this-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -pre,textarea{overflow:auto}body,fieldset{margin:0}.screen-reader-text,fieldset,legend,td,th{padding:0}.adminbar:after,.clearfix:after,.editor-wrapper:after,.mce-stack-layout:after,.media-list-inner-container:after,.tagchecklist:after,.wrapper:after,h1,h2,h3,h4,h5,h6{clear:both}b,dt,optgroup,strong{font-weight:700}.current-site,.post-options .post-option,.postform{text-overflow:ellipsis;white-space:nowrap}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min-resolution:144dpi){*,:after,:before{-webkit-font-smoothing:antialiased}}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}fieldset,img,legend{border:0}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}.clearfix:after,.clearfix:before{content:"";display:table}.hide-if-js{display:none}.screen-reader-text{position:absolute;margin:-1px;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0}body,button,input,select,textarea{color:#404040;font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:20px;font-weight:400;line-height:1.6}p{margin-bottom:1.5em}.button-subtle,.scan-submit{display:inline-block;margin:0;padding:0 10px 1px;border-width:1px;border-style:solid;-webkit-border-radius:3px;border-radius:3px;font-size:13px;line-height:2;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-appearance:none}.button-link,.button-reset{cursor:pointer;-webkit-appearance:none;padding:0;border:0;background:0 0}.button-subtle{background:0 0;border:0;color:#0073aa}.button-subtle:visited{color:#0073aa}.button-subtle:active,.button-subtle:focus,.button-subtle:hover,.edit-post-link:active,.edit-post-link:focus,.edit-post-link:hover{color:#00a0d2}.button-subtle:active,.button-subtle:focus,.edit-post-link:active,.edit-post-link:focus{outline:0;text-decoration:underline}.preview-button{margin-left:5px}.button-reset{margin:0}.button-reset:focus{outline:0}.button-link{margin:0;color:#0073aa}.button-link:active,.button-link:focus,.button-link:hover{color:#00a0d2;text-decoration:underline}.split-button{position:relative;display:inline-block;vertical-align:middle}.split-button-body{display:none;position:absolute;bottom:39px;left:0;border:1px solid #ddd;background-color:#fff;min-width:180px;max-width:100%;margin:0;padding:8px;list-style:none;-webkit-box-shadow:-1px 0 4px rgba(0,0,0,.15);box-shadow:-1px 0 4px rgba(0,0,0,.15)}.split-button-body:after,.split-button-body:before{position:absolute;left:12px;display:block;width:0;height:0;border-style:solid;border-color:transparent;content:''}.split-button-body:before{bottom:-18px;border-top-color:#ccc;border-width:9px;left:11px}.split-button-body:after{bottom:-16px;border-top-color:#fff;border-width:8px}.split-button-body .split-button-option{display:block;padding:5px 15px;margin:0;width:100%;text-align:right}.is-open .split-button-body{display:block}.split-button-primary,.split-button-toggle{-webkit-border-radius:0;border-radius:0;display:block;margin:0;font-size:13px;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-appearance:none;line-height:2;padding:0 10px 1px;background:#00a0d2;border-color:#0073aa;border-width:1px;border-style:solid;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);color:#fff}.split-button-primary{-webkit-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px;border-left:0 none;float:right}.split-button-toggle{padding:0;-webkit-border-top-left-radius:3px;border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;border-right:0 none;float:left}.split-button-toggle i{margin:4px 0 3px 20px;padding:0 10px;border-right:1px solid #fff}.split-button-primary:hover,.split-button-toggle:hover{outline:0;background:#0091cd;border-color:#0073aa}.split-button-primary:focus,.split-button-toggle:focus{outline:0;border-color:#0e3950;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.6),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 rgba(120,200,230,.6),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.split-button-primary:active,.split-button-toggle:active{background:#0073aa;border-color:#005082;color:rgba(255,255,255,.95);-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline}[type=checkbox],[type=radio]{padding:0}[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}[type=text],[type=email],[type=url],[type=password],[type=search],textarea{padding:.4em .75em;color:#32373c;border:1px solid #ccc}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=search]:focus,textarea:focus{color:#32373c;outline:0}textarea{padding-right:3px;vertical-align:top}a,a:visited{color:#0073aa}a:active,a:focus,a:hover{color:#00a0d2}ol,ul{margin:0 3em 1.5em 0}ul{list-style:disc}ol{list-style:decimal}li>ol,li>ul{margin-bottom:0;margin-right:1.5em}dd{margin:0 1.5em 1.5em}#post-formats-select br{display:none}.post-format{width:1px;height:1px;position:absolute;top:-9999px}.lt-ie9 .post-format{margin:17px 13px 0 12px;position:static;top:auto;float:right;width:16px;height:16px}.add-category,.post-format-icon,.tagsdiv .ajaxtag,.tagsdiv .newtag{position:relative}.post-format-icon{display:block;padding:13px 13px 14px 2px;cursor:pointer}.post-format-icon:after,.post-format-icon:before{content:"";display:inline-block;width:20px;height:20px;margin-left:10px;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;color:#9ea7af;font-style:normal;text-align:center;transition:color .1s ease-in 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.category.selected:after,.post-format-icon:after,.post-format-icon:before{font-weight:400;vertical-align:top;-webkit-transition:color .1s ease-in 0}.post-format-icon:before{content:"\f109"}.post-format-icon:after{display:none;content:"\f147";float:left}.post-format:checked+.post-format-icon{-webkit-box-shadow:inset -6px 0 0 #00a0d2;box-shadow:inset -6px 0 0 #00a0d2;background:rgba(46,162,204,.1)}.post-format:checked+.post-format-icon:after,.post-format:checked+.post-format-icon:before{color:#32373c}.post-format:focus+.post-format-icon{background:#00a0d2;color:#fff}.post-format:focus+.post-format-icon:after,.post-format:focus+.post-format-icon:before{color:#fff}.post-format:checked+.post-format-icon:after{display:block}.lt-ie9 .post-format-icon{margin-right:16px}.post-format-aside:before{content:"\f123"}.post-format-image:before{content:"\f128"}.post-format-video:before{content:"\f126"}.post-format-audio:before{content:"\f127"}.post-format-quote:before{content:"\f122"}.post-format-link:before{content:"\f103"}.post-format-gallery:before{content:"\f161"}.tagsdiv p{margin:0}.tagsdiv .newtag{display:block;padding:11px 16px 11px 58px;width:100%;border:0;border-bottom:1px solid #e5e5e5;font-size:16px}.tagsdiv .tagadd{position:absolute;top:0;left:0;bottom:1px;border:0;-webkit-border-radius:0;border-radius:0;margin:0;padding:0 16px;background:#f7f7f7;border-right:1px solid #f1f1f1;-webkit-box-shadow:none;box-shadow:none}.tagsdiv .tagadd:active,.tagsdiv .tagadd:focus,.tagsdiv .tagadd:hover{outline:0;background:#2991b7;border-color:#20708e;color:#fff;-webkit-box-shadow:none;box-shadow:none}.tagsdiv .howto{color:#727272;font-style:italic;margin:10px 16px 6px 0}.ac_results{padding:0;margin:-1px -1px 0 0;list-style:none;position:absolute;z-index:10000;display:none;border:1px solid #d8d8d8;background-color:#fff;font-size:14px}.ac_results li{padding:6px 16px;white-space:nowrap;color:#101010;text-align:right}.ac_results .ac_over{background-color:#00a0d2;color:#fff;cursor:pointer}.ac_match{text-decoration:underline}.tagchecklist{padding:16px 28px 5px}.tagchecklist:after,.tagchecklist:before{content:"";display:table}.tagchecklist span{display:block;margin-left:25px;float:right;font-size:13px;line-height:1.8;white-space:nowrap;cursor:default}@media (max-width:600px){.tagchecklist span{margin-bottom:15px;font-size:16px;line-height:1.3}}.tagchecklist .ntdelbutton{margin:1px -17px 0 0;cursor:pointer;width:20px;height:20px;display:block;float:right;text-indent:0;overflow:hidden;position:absolute;outline:0}.tagchecklist .ntdelbutton:before{content:'\f153';display:block;margin:2px 0;height:20px;width:20px;background:100% 0;color:#9ea7af;font:400 16px/1 dashicons;text-align:center;speak:none;-webkit-font-smoothing:antialiased}.category.selected:after,.suggested-media-thumbnail:after,.suggested-media-thumbnail:before{font-family:dashicons;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tagchecklist .ntdelbutton:focus:before{color:#00a0d2}.tagsdiv+p{margin:0}.tagcloud-link{display:block;padding:0 16px;text-decoration:none;outline:0}.tagcloud-link:focus{text-decoration:underline}.popular-tags{border:none;line-height:2em;padding:8px 12px 12px;text-align:justify}.popular-tags a{padding:0 3px}.the-tagcloud{margin:0;padding:16px}.the-tagcloud a{text-decoration:none;outline:0}.the-tagcloud a:focus{text-decoration:underline}.tagcloud h3{margin:2px 0 12px}.add-category-name,input[type=search].categories-search{display:block;width:100%;padding:.85714em 1.07143em;border:0;-webkit-border-radius:0;border-radius:0;border-bottom:1px solid #e5e5e5;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (max-width:600px){.add-category-name,input[type=search].categories-search{font-size:16px}}.add-cat-toggle{float:left;margin-top:-45px;line-height:20px;padding:12px 10px 8px}.add-cat-toggle:focus{text-decoration:none;color:#00a0d2}.add-cat-toggle.is-toggled{padding:10px}.add-cat-toggle.is-toggled .dashicons:before{content:"\f179"}.add-category{border-bottom:1px solid #e5e5e5}.add-category.is-hidden{display:none}.add-category .add-cat-submit{position:absolute;top:0;left:0;border:0;-webkit-border-radius:0;border-radius:0;padding:12px 16px;background:#f7f7f7;border-right:1px solid #f1f1f1}.alert,.scan{border-bottom:1px solid #e5e5e5}.add-category .add-cat-submit:active,.add-category .add-cat-submit:focus,.add-category .add-cat-submit:hover{outline:0;background:#2991b7;border-color:#20708e;color:#fff}.postform-wrapper{padding:12px}.postform{display:block;margin:0;width:100%;height:34px;-webkit-border-radius:0;border-radius:0;border:1px solid #e5e5e5;background:#fff;-webkit-background-size:20px 20px;background-size:20px 20px;overflow:hidden;line-height:21px;text-decoration:none;vertical-align:top;cursor:pointer;outline:0}.postform:focus{border-color:#0073aa;-webkit-box-shadow:0 0 0 3px #00a0d2;box-shadow:0 0 0 3px #00a0d2;outline:0;-moz-outline:none;-moz-user-focus:ignore}.postform::-ms-expand{display:none}.postform::-ms-value{background:0 0;color:#727272}.postform:-moz-focusring{color:transparent;text-shadow:0 0 0 #727272}.categories-select,.categories-select ul{margin:0;padding:0;list-style:none}.category{position:relative;display:block;padding:13px 16px 14px;cursor:pointer;background:#fff}.category.selected:focus,.category:focus{outline:0;background:#00a0d2;color:#fff}.category.selected{-webkit-box-shadow:inset -6px 0 0 #00a0d2;box-shadow:inset -6px 0 0 #00a0d2;background:#E9F5F9}.category.selected:after{display:inline-block;content:"\f147";position:absolute;top:13px;left:0;width:20px;height:20px;margin-left:10px;font-size:20px;line-height:1;text-decoration:inherit;color:#23282d;text-align:center;transition:color .1s ease-in 0}.category.selected:focus:after{color:#fff}.categories-select ul .category{padding-right:24px}.categories-select ul ul .category{padding-right:32px}.categories-select ul ul ul .category{padding-right:40px}.categories-select ul ul ul ul .category{padding-right:48px}.categories-select ul ul ul ul ul .category{padding-right:56px}.categories-select ul ul ul ul ul ul .category{padding-right:64px}.categories-select .is-hidden{display:none}.categories-select .is-hidden.searched-parent{display:block}.categories-search-wrapper{position:relative}.categories-search-wrapper.is-hidden{display:none}.categories-search-wrapper label{position:absolute;top:50%;left:10px;margin-top:-10px;color:#9ea7af}html{overflow:auto;background:#fff;-webkit-box-shadow:10px 0 0 rgba(0,0,0,.3);box-shadow:10px 0 0 rgba(0,0,0,.3)}body{overflow-x:hidden;height:100%}@media (max-width:900px){body{font-size:16px}}.lt-ie9{overflow:visible}.adminbar{position:relative;width:100%;padding:0 .8em;min-height:3.2em;background:#23282d;color:#fff;z-index:9999}.adminbar:after,.adminbar:before{content:"";display:table}.adminbar .dashicons{color:#999}.adminbar button{position:absolute;top:50%;left:6px;margin-top:-13px}@media (max-width:320px){body{font-size:14px}.adminbar{min-height:45px}}.current-site{margin-top:.5625em;font-size:16px;line-height:44px;font-weight:400;overflow:hidden}@media (max-width:600px){.current-site{margin:3px 0 0}}.current-site-link{text-decoration:none}.current-site-link:focus{outline:0}.current-site-link:focus .current-site-name{text-decoration:underline}.current-site-name{color:#ededed}@media (max-width:320px){.current-site{margin:0;font-size:14px}.current-site-name{font-weight:600}}.current-site .dashicons-wordpress{position:relative;top:-1px;margin-left:10px;vertical-align:middle}.options,.options.closed .on-open,.options.open .on-closed{display:none}@media (max-width:900px){.options{display:block}}.options-panel-back.is-hidden{display:none}.options:focus .dashicons{color:#fff;text-decoration:none}.options .dashicons{margin-top:3px}.options{color:#00a0d2}.alert{position:relative;margin:0;padding:16px 50px;font-size:14px}.alert:before{content:'';position:absolute;top:50%;right:30px;width:8px;height:8px;margin-top:-4px;-webkit-border-radius:50%;border-radius:50%;background:#00a0d2}@media (max-width:600px){.alert{padding:16px 35px}.alert:before{right:15px}}.alert.is-error:before{background:red}.scan{position:relative}.scan-url{display:block;border:0;padding:.85714em 1.07143em;font-size:14px;width:100%}.editor-wrapper:after,.editor-wrapper:before,.wrapper:after,.wrapper:before{content:"";display:table}@media (max-width:600px){.scan-url{font-size:16px}}.scan-submit{position:absolute;top:0;left:0;bottom:0;padding:0 1.07143em;background:#f7f7f7;border:0;border-right:1px solid #f1f1f1;-webkit-border-radius:0;border-radius:0;color:#555;font-size:14px;line-height:1.6}.scan-submit:focus,.scan-submit:hover{background:#2991b7;border-color:#20708e;color:#fff;outline:0}.scan-submit:active{background:#2581a2;border-color:#20708e;color:#fff}.scan-submit:visited{color:#555}.wrapper{position:relative;margin-bottom:60px;margin-left:320px}@media (max-width:900px){.scan form{-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.scan.is-hidden form{opacity:.2;pointer-events:none}.wrapper{margin:0;width:100%}}.editor-wrapper{overflow:auto;float:right;width:100%}.editor{padding:0 1.5em 4.75em;max-width:700px;margin:0 auto}.spinner{height:20px;width:20px;display:inline-block;visibility:hidden;background:url(../images/spinner.gif) center no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;opacity:.7;filter:alpha(opacity=70);line-height:1;vertical-align:middle}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.spinner{background-image:url(../images/spinner-2x.gif)}}.spinner.is-active{visibility:visible}@media (min-width:901px){.editor{max-width:760px}}@media (max-width:320px){.editor{padding:0}}.post-title,.post-title-placeholder{margin:0;padding:.83em 0;width:100%;border-bottom:1px solid #e5e5e5;font-size:32px;line-height:1.4;font-weight:700}.post-title-placeholder:active,.post-title-placeholder:focus,.post-title:active,.post-title:focus{outline:0;-webkit-box-shadow:inset 0 -3px 0 #00a0d2;box-shadow:inset 0 -3px 0 #00a0d2;border-color:#00a0d2}@media (max-width:900px){.post-title,.post-title-placeholder{font-size:24px}}@media (max-height:400px){.post-title,.post-title-placeholder{padding:15px 0;font-size:16px}}@media (max-width:320px){.post-title,.post-title-placeholder{font-size:16px;font-weight:600;padding:1.14286em 1.42857em}}.post-title{background:url(data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///////wAAACH5BAEHAAIALAAAAAABAAEAAAICVAEAOw==);background:0 0,none}.post-title:before{content:'\a0';display:inline-block;width:0;speak:none}.post-title-placeholder{position:absolute;border:0;color:#9ea7af;z-index:-1}.is-embed.is-audio:active:before,.is-embed.is-audio:focus:before,.is-embed.is-audio:hover:before,.is-embed.is-tweet:active:before,.is-embed.is-tweet:focus:before,.is-embed.is-tweet:hover:before,.is-embed:before,.suggested-media-thumbnail:active,.suggested-media-thumbnail:focus,.suggested-media-thumbnail:hover{color:#fff}.post-title-placeholder.is-hidden{display:none}.media-list-container{position:relative;padding:2px 0;border-bottom:1px solid #e5e5e5;display:none}.media-list-inner-container{overflow:auto;max-height:150px;max-height:40vw}.media-list-container.has-media{display:block}.media-list-inner-container:after,.media-list-inner-container:before{content:"";display:table}.media-list{margin:0;padding:0}@media (min-width:321px){.media-list-inner-container{max-height:250px;max-height:40vw}}.wppt-all-media-list{list-style:none;margin:0;padding:0}.is-embed:focus,.suggested-media-thumbnail:focus{outline:0;-webkit-box-shadow:inset 0 0 0 3px #00a0d2;box-shadow:inset 0 0 0 3px #00a0d2}.suggested-media-thumbnail{position:relative;display:block;float:right;width:16.66%;padding:16.66% 16.66% 0 0;background-position:center;background-repeat:no-repeat;-webkit-background-size:cover;background-size:cover;background-color:#d8d8d8;color:#fff;color:rgba(255,255,255,.6);cursor:pointer}.suggested-media-thumbnail:after,.suggested-media-thumbnail:before{display:inline-block;position:absolute;font-size:20px;line-height:1;text-decoration:inherit;font-weight:400;-webkit-transition:color .1s ease-in 0;transition:color .1s ease-in 0}.suggested-media-thumbnail:before{right:50%;top:50%;margin:-20px -20px 0 0;font-size:40px}.suggested-media-thumbnail:after{content:"\f132";left:3%;bottom:2%}@media (min-width:601px){.media-list-inner-container{max-height:200px;max-height:18.75vw}.suggested-media-thumbnail{width:12.5%;padding:12.5% 12.5% 0 0}}.is-embed:before{content:"\f104";color:rgba(255,255,255,.9)}.is-embed.is-video{background-color:#23282d}.is-embed.is-video:active:before,.is-embed.is-video:focus:before,.is-embed.is-video:hover:before{color:rgba(255,255,255,.2)}.is-embed.is-video:before{content:"\f236"}.is-embed.is-audio{background-color:#ff7d44}.is-embed.is-audio:before{content:"\f127"}.is-embed.is-tweet{background-color:#55acee}.is-embed.is-tweet:before{content:"\f301"}.no-media{margin:0;padding:0;border:0}.press-this-actions{position:fixed;bottom:0;right:0;width:100%;background:#f1f1f1;background:rgba(241,241,241,.9);border-top:1px solid #e5e5e5}.add-media{float:right;margin:14px 30px 14px 0;font-size:0}@media (max-width:320px){.add-media{margin:10px 10px 10px 0}}.insert-media{color:#9ea7af;float:right;margin:0;padding:0;border:0;border-left:1px solid #e5e5e5;-webkit-border-radius:0;border-radius:0;background:0 0;-webkit-box-shadow:none;box-shadow:none;overflow:hidden}.insert-media:active,.insert-media:focus,.insert-media:hover{margin:0;background:0 0;border-color:#e5e5e5;color:#23282d}.insert-media:active,.insert-media:focus{outline:0;color:#00a0d2;text-decoration:none}.insert-media .dashicons{padding:11px;width:63px;height:58px;font-size:40px}@media (max-width:320px){.insert-media .dashicons{width:55px;height:49px;padding:14px;font-size:20px}}#wp-link-wrap,.post-actions{font-size:13px}.post-actions{float:left;margin:14px 0 14px 30px}@media (max-width:320px){.post-actions{margin:10px 0 10px 10px}}.edit-post-link{font-size:13px;display:inline-block;text-decoration:none;padding:0 10px}.publish-button .saving-draft,.publish-button.is-saving .publish{display:none}.publish-button.is-saving .saving-draft{display:inline}.editor .wp-media-buttons{float:none}.editor div.mce-toolbar-grp{padding:.71429em 0;background:0 0;border:0}@media (max-height:400px),(max-width:320px){.editor div.mce-toolbar-grp{padding:0}}.mce-stack-layout:after,.mce-stack-layout:before{content:"";display:table}.mce-container.mce-toolbar{float:right}.mce-container.mce-toolbar:nth-child(2){float:left}@media (max-width:600px){.mce-first .mce-btn:nth-child(3),.mce-first .mce-btn:nth-child(4){position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.mce-first .mce-btn:nth-child(3):focus,.mce-first .mce-btn:nth-child(4):focus{position:static;margin:1px;padding:inherit;height:auto;width:auto;overflow:visible;clip:auto;border:1px solid #999}}#wp-link-wrap input[type=text]{padding:3px 5px;margin:1px}@media screen and (max-width:782px){#wp-link-wrap{font-size:14px}#wp-link-wrap input[type=text]{padding:6px 10px}}#wp-link-wrap .howto{color:#666;font-style:italic}.options-panel{position:relative;float:left;margin-left:-320px;width:320px;border-right:1px solid #e5e5e5;font-size:14px;-webkit-box-shadow:-5001px 5000px 0 5000px #fff,-5000px 5000px 0 5000px #e5e5e5;box-shadow:-5001px 5000px 0 5000px #fff,-5000px 5000px 0 5000px #e5e5e5;outline:0}.options-panel-back{position:absolute;top:0;left:0;bottom:0;width:320px;outline:0}@media (max-width:900px){.press-this-actions{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);-webkit-transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out}.press-this-actions.is-hidden{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%)}.options-panel{background:#fff;-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);-webkit-transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out}.options-panel.is-hidden{visibility:hidden}.options-panel.is-off-screen{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}}@media (max-width:320px){.options-panel{margin-left:-100%;width:100%;border:0;-webkit-box-shadow:-5001px 5000px 0 5000px #fff;box-shadow:-5001px 5000px 0 5000px #fff}.options-panel-back{width:100%}}.post-options{background:#fff;position:absolute;left:0;width:100%;overflow-x:hidden}.post-options .post-option-contents{margin-right:3px;color:#32373c}.post-option-forward:before{position:absolute;top:50%;left:8px;margin-top:-10px;content:"\f341"}.post-option,.setting-modal,.setting-title{position:relative}.post-option-back:before{content:"\f345"}.lt-ie9 .options-panel,.lt-ie9 .post-options{border-right:1px solid #e5e5e5}.lt-ie9 .post-options.is-off-screen{border:0}.modal-close,.post-options .post-option{border-bottom:1px solid #e5e5e5;text-decoration:none;text-align:right}.post-options .post-option{display:block;padding:13px 14px 13px 37px;color:#9ea7af;transition:transform .3s ease-in-out}.post-options .post-option,.setting-modal{width:100%;overflow:hidden;-webkit-transition:-webkit-transform .3s ease-in-out}.post-options .post-option:focus{box-shadow:inset -5px 0 0 #00a0d2}.modal-close:focus,.post-options .post-option:focus{outline:0;-webkit-box-shadow:inset -5px 0 0 #00a0d2}.is-off-screen>.post-option{left:100%}.is-hidden>.post-option{visibility:hidden}.post-option-title{display:inline-block;margin:0 8px 0 0;font-size:14px;font-weight:400}.setting-modal{top:0;right:0;transition:transform .3s ease-in-out}.setting-modal.is-hidden{visibility:hidden;height:0}.setting-modal.is-off-screen{right:100%}@media (min-width:1px){.is-off-screen>.post-option{left:auto;-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%)}.setting-modal.is-off-screen{right:0;-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%)}}.modal-close{display:block;width:100%;padding:13px 14px;color:#00a0d2}.modal-close:focus{box-shadow:inset -5px 0 0 #00a0d2}.setting-title{top:-1px;margin-right:11px}#pressthis{color:#404040;resize:none;padding-top:30px;font-size:16px}.wp-editor-wrap .quicktags-toolbar{background:0 0;border:none}.wp-editor-wrap .wp-editor-tools{z-index:0}.wp-editor-wrap .wp-editor-tabs{padding:2px}.wp-editor-wrap .wp-switch-editor{top:0;margin:3px 5px 0 0;padding:3px 8px;background:#f5f5f5;color:#555;border-color:#ccc}.wp-editor-wrap .wp-switch-editor:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-editor-wrap.html-active .switch-html,.wp-editor-wrap.tmce-active .switch-tmce{background:#fff;border-color:#d8d8d8} \ No newline at end of file diff --git a/wp-admin/css/press-this.css b/wp-admin/css/press-this.css deleted file mode 100644 index b99ba1a7e0..0000000000 --- a/wp-admin/css/press-this.css +++ /dev/null @@ -1,2215 +0,0 @@ -/* -Press This styles :) -*/ - - -/** -* Normalize -* -* normalize.css v3.0.0 | MIT License | git.io/normalize -*/ -html { - font-family: sans-serif; - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; -} - -body { - margin: 0; -} - -*, -*:before, -*:after { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { - *, - *:before, - *:after { - -webkit-font-smoothing: antialiased; - } -} - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -main, -nav, -section, -summary { - display: block; -} - -audio, -canvas, -progress, -video { - display: inline-block; - vertical-align: baseline; -} - -audio:not([controls]) { - display: none; - height: 0; -} - -[hidden], -template { - display: none; -} - -a { - background: transparent; -} - -a:active, -a:hover { - outline: 0; -} - -abbr[title] { - border-bottom: 1px dotted; -} - -b, -strong { - font-weight: bold; -} - -dfn { - font-style: italic; -} - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -mark { - background: #ff0; - color: #000; -} - -small { - font-size: 80%; -} - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -img { - border: 0; -} - -svg:not(:root) { - overflow: hidden; -} - -figure { - margin: 1em 40px; -} - -hr { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; -} - -pre { - overflow: auto; -} - -code, -kbd, -pre, -samp { - font-family: monospace, monospace; - font-size: 1em; -} - -button, -input, -optgroup, -select, -textarea { - color: inherit; - font: inherit; - margin: 0; -} - -button { - overflow: visible; -} - -button, -select { - text-transform: none; -} - -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; - cursor: pointer; -} - -button[disabled], -html input[disabled] { - cursor: default; -} - -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} - -input { - line-height: normal; -} - -input[type="checkbox"], -input[type="radio"] { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - padding: 0; -} - -input[type="number"]::-webkit-inner-spin-button, -input[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -input[type="search"] { - -webkit-appearance: textfield; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} - -input[type="search"]::-webkit-search-cancel-button, -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -fieldset { - border: 0; - margin: 0; - padding: 0; -} - -legend { - border: 0; - padding: 0; -} - -textarea { - overflow: auto; -} - -optgroup { - font-weight: bold; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -td, -th { - padding: 0; -} - -.clearfix:before, -.clearfix:after { - content: ""; - display: table; -} -.clearfix:after { - clear: both; -} - -.hide-if-js { - display: none; -} - -.screen-reader-text { - position: absolute; - margin: -1px; - padding: 0; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(0 0 0 0); - border: 0; -} - - -/** -* Typography -* -* Base element typographic styles. -*/ -body, -button, -input, -select, -textarea { - color: #404040; - font-family: "Open Sans", Helvetica, Arial, sans-serif; - font-size: 20px; - font-weight: 400; - line-height: 1.6; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - clear: both; -} - -p { - margin-bottom: 1.5em; -} - -b, -strong { - font-weight: 700; -} - - -/** -* Buttons -* -* Pushing buttons is what I do. -*/ - -.button-subtle, -.scan-submit { - display: inline-block; - margin: 0; - padding: 0 10px 1px; - border-width: 1px; - border-style: solid; - -webkit-border-radius: 3px; - border-radius: 3px; - font-size: 13px; - line-height: 2; - text-decoration: none; - white-space: nowrap; - cursor: pointer; - -webkit-appearance: none; -} - -.button-subtle { - background: none; - border: 0; - color: #0073aa; -} - -.button-subtle:visited { - color: #0073aa; -} - -.button-subtle:focus, -.button-subtle:hover, -.button-subtle:active, -.edit-post-link:focus, -.edit-post-link:hover, -.edit-post-link:active { - color: #00a0d2; -} - -.button-subtle:focus, -.button-subtle:active, -.edit-post-link:focus, -.edit-post-link:active { - outline: 0; - text-decoration: underline; -} - -.preview-button { - margin-right: 5px; -} - -.button-reset { - margin: 0; - padding: 0; - border: 0; - background: none; - cursor: pointer; - -webkit-appearance: none; -} - -.button-reset:focus { - outline: 0; -} - -.button-link { - margin: 0; - padding: 0; - border: 0; - background: none; - color: #0073aa; - cursor: pointer; - -webkit-appearance: none; -} - -.button-link:hover, -.button-link:active, -.button-link:focus { - color: #00a0d2; - text-decoration: underline; -} - -.split-button { - position: relative; - display: inline-block; - vertical-align: middle; -} - -.split-button-body { - display: none; - position: absolute; - bottom: 39px; - right: 0; - border: 1px solid #ddd; - background-color: #fff; - min-width: 180px; - max-width: 100%; - margin: 0; - padding: 8px; - list-style: none; - -webkit-box-shadow: 1px 0 4px rgba( 0, 0, 0, 0.15 ); - box-shadow: 1px 0 4px rgba( 0, 0, 0, 0.15 ); -} - -.split-button-body:before, -.split-button-body:after { - position: absolute; - right: 12px; - display: block; - width: 0; - height: 0; - border-style: solid; - border-color: transparent; - content: ''; -} - -.split-button-body:before { - bottom: -18px; - border-top-color: #ccc; - border-width: 9px; - right: 11px; -} - -.split-button-body:after { - bottom: -16px; - border-top-color: #fff; - border-width: 8px; -} - -.split-button-body .split-button-option { - display: block; - padding: 5px 15px; - margin: 0; - width: 100%; - text-align: left; -} - -.is-open .split-button-body { - display: block; -} - -.split-button-primary, -.split-button-toggle { - -webkit-border-radius: 0; - border-radius: 0; - display: block; - margin: 0; - font-size: 13px; - text-decoration: none; - white-space: nowrap; - cursor: pointer; - -webkit-appearance: none; - line-height: 2; - padding: 0 10px 1px; - background: #00a0d2; - border-color: #0073aa; - border-width: 1px; - border-style: solid; - -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5), 0 1px 0 rgba( 0, 0, 0, 0.15 ); - box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5 ), 0 1px 0 rgba( 0, 0, 0, 0.15 ); - color: #fff; -} - -.split-button-primary { - -webkit-border-top-left-radius: 3px; - border-top-left-radius: 3px; - -webkit-border-bottom-left-radius: 3px; - border-bottom-left-radius: 3px; - border-right: 0 none; - float: left; -} - -.split-button-toggle { - padding: 0; - -webkit-border-top-right-radius: 3px; - border-top-right-radius: 3px; - -webkit-border-bottom-right-radius: 3px; - border-bottom-right-radius: 3px; - border-left: 0 none; - float: right; -} - -.split-button-toggle i { - margin: 4px 20px 3px 0; - padding: 0 10px; - border-left: 1px solid #fff; -} - -.split-button-primary:hover, -.split-button-toggle:hover { - outline: none; - background: #0091cd; - border-color: #0073aa; -} - -.split-button-primary:focus, -.split-button-toggle:focus { - outline: none; - border-color: #0e3950; - -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.split-button-primary:active, -.split-button-toggle:active { - background: #0073aa; - border-color: #005082; - color: rgba( 255, 255, 255, 0.95 ); - -webkit-box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 ); -} - -/** -* Forms -* -* So many input types. -*/ -button, -input, -select, -textarea { - font-size: 100%; - margin: 0; - vertical-align: baseline; - *vertical-align: middle; -} - -[type="checkbox"], -[type="radio"] { - padding: 0; -} - -[type="search"] { - -webkit-appearance: textfield; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} - -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} - -[type="text"], -[type="email"], -[type="url"], -[type="password"], -[type="search"], -textarea { - padding: 0.4em 0.75em; - color: #32373c; - border: 1px solid #ccc; -} - -[type="text"]:focus, -[type="email"]:focus, -[type="url"]:focus, -[type="password"]:focus, -[type="search"]:focus, -textarea:focus { - color: #32373c; - outline: 0; -} - -textarea { - overflow: auto; - padding-left: 3px; - vertical-align: top; -} - - -/** -* Links -*/ -a { - color: #0073aa; -} - -a:visited { - color: #0073aa; -} - -a:hover, -a:focus, -a:active { - color: #00a0d2; -} - - -/** -* Lists -*/ -ul, -ol { - margin: 0 0 1.5em 3em; -} - -ul { - list-style: disc; -} - -ol { - list-style: decimal; -} - -li > ul, -li > ol { - margin-bottom: 0; - margin-left: 1.5em; -} - -dt { - font-weight: 700; -} - -dd { - margin: 0 1.5em 1.5em; -} - - -/** -* Post formats -* -* Complete styles for post formats UI -*/ -/* TODO if we remove the
during merge, this can go. */ -#post-formats-select br { - display: none; -} - -.post-format { - width: 1px; - height: 1px; - position: absolute; - top: -9999px; -} - -.lt-ie9 .post-format { - margin: 17px 12px 0 13px; - width: auto; - height: auto; - position: static; - top: auto; - float: left; - width: 16px; - height: 16px; -} - -.post-format-icon { - position: relative; - display: block; - padding: 13px 2px 14px 13px; - cursor: pointer; -} - -.post-format-icon:before, -.post-format-icon:after { - content: ""; - display: inline-block; - width: 20px; - height: 20px; - margin-right: 10px; - font-size: 20px; - line-height: 1; - font-family: dashicons; - text-decoration: inherit; - color: #9ea7af; - font-weight: 400; - font-style: normal; - vertical-align: top; - text-align: center; - -webkit-transition: color .1s ease-in 0; - transition: color .1s ease-in 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.post-format-icon:before { - content: "\f109"; -} - -.post-format-icon:after { - display: none; - content: "\f147"; - float: right; -} - -.post-format:checked + .post-format-icon { - -webkit-box-shadow: inset 6px 0 0 #00a0d2; - box-shadow: inset 6px 0 0 #00a0d2; - background: rgba(46, 162, 204, 0.1); -} - -.post-format:checked + .post-format-icon:before, -.post-format:checked + .post-format-icon:after { - color: #32373c; -} - -.post-format:focus + .post-format-icon { - background: #00a0d2; - color: #fff; -} - -.post-format:focus + .post-format-icon:before, -.post-format:focus + .post-format-icon:after { - color: #fff; -} - -.post-format:checked + .post-format-icon:after { - display: block; -} - -.lt-ie9 .post-format-icon { - margin-left: 16px; -} - -.post-format-aside:before { - content: "\f123"; -} - -.post-format-image:before { - content: "\f128"; -} - -.post-format-video:before { - content: "\f126"; -} - -.post-format-audio:before { - content: "\f127"; -} - -.post-format-quote:before { - content: "\f122"; -} - -.post-format-link:before { - content: "\f103"; -} - -.post-format-gallery:before { - content: "\f161"; -} - - -/** -* Tags -* -* Complete styles for tags UI -*/ -.tagsdiv p { - margin: 0; -} - -.tagsdiv .ajaxtag { - position: relative; -} - -.tagsdiv .newtag { - display: block; - position: relative; - padding: 11px 58px 11px 16px; - width: 100%; - border: 0; - border-bottom: 1px solid #e5e5e5; - font-size: 16px; -} - -.tagsdiv .tagadd { - position: absolute; - top: 0; - right: 0; - bottom: 1px; - border: 0; - -webkit-border-radius: 0; - border-radius: 0; - margin: 0; - padding: 0 16px; - background: #f7f7f7; - border-left: 1px solid #f1f1f1; - -webkit-box-shadow: none; - box-shadow: none; -} - -.tagsdiv .tagadd:hover, -.tagsdiv .tagadd:active, -.tagsdiv .tagadd:focus { - outline: 0; - background: #2991b7; - border-color: #20708e; - color: #fff; - -webkit-box-shadow: none; - box-shadow: none; -} - -.tagsdiv .howto { - color: #727272; - font-style: italic; - margin: 10px 0 6px 16px; -} - - -/* Tag hint TODO needed? */ -/* Tag suggestions */ -.ac_results { - padding: 0; - margin: -1px 0 0 -1px; - list-style: none; - position: absolute; - z-index: 10000; - display: none; - border: 1px solid #d8d8d8; - background-color: #fff; - font-size: 14px; -} - -.ac_results li { - padding: 6px 16px; - white-space: nowrap; - color: #101010; - text-align: left; -} - -.ac_results .ac_over { - background-color: #e5e5e5; - background-color: #00a0d2; - color: #fff; - cursor: pointer; -} - -.ac_match { - text-decoration: underline; -} - -/* Tags */ -.tagchecklist { - padding: 16px 28px 5px; -} - -.tagchecklist:before, -.tagchecklist:after { - content: ""; - display: table; -} - -.tagchecklist:after { - clear: both; -} - -.tagchecklist span { - display: block; - margin-right: 25px; - float: left; - font-size: 13px; - line-height: 1.8; - white-space: nowrap; - cursor: default; -} - -@media (max-width: 600px) { - .tagchecklist span { - margin-bottom: 15px; - font-size: 16px; - line-height: 1.3; - } -} - -.tagchecklist .ntdelbutton { - margin: 1px 0 0 -17px; - cursor: pointer; - width: 20px; - height: 20px; - display: block; - float: left; - text-indent: 0; - overflow: hidden; - position: absolute; - outline: 0; -} - -.tagchecklist .ntdelbutton:before { - content: '\f153'; - display: block; - margin: 2px 0; - height: 20px; - width: 20px; - background: 0 0; - color: #9ea7af; - font: 400 16px/1 dashicons; - text-align: center; - speak: none; - -webkit-font-smoothing: antialiased; -} - -.tagchecklist .ntdelbutton:focus:before { - color: #00a0d2; -} - - -/* THE TAG CLOUD. */ -.tagsdiv + p { - margin: 0; -} - -.tagcloud-link { - display: block; - padding: 0 16px; - text-decoration: none; - outline: 0; -} - -.tagcloud-link:focus { - text-decoration: underline; -} - -.popular-tags { - border: none; - line-height: 2em; - padding: 8px 12px 12px; - text-align: justify; -} - -.popular-tags a { - padding: 0 3px; -} - -.the-tagcloud { - margin: 0; - padding: 16px; -} - -.the-tagcloud a { - text-decoration: none; - outline: 0; -} - -.the-tagcloud a:focus { - text-decoration: underline; -} - -.tagcloud h3 { - margin: 2px 0 12px; -} - - -/** -* Categories -* -* Complete styles for post categories UI -*/ -input[type="search"].categories-search, -.add-category-name { - display: block; - width: 100%; - padding: 0.85714em 1.07143em; - border: 0; - -webkit-border-radius: 0; - border-radius: 0; - border-bottom: 1px solid #e5e5e5; - font-size: 14px; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -@media (max-width: 600px) { - input[type="search"].categories-search, - .add-category-name { - /* Needs to be 16px to prevent zooming on iOS. Guh. */ - font-size: 16px; - } -} - -.add-cat-toggle { - float: right; - margin-top: -45px; - line-height: 20px; - padding: 12px 10px 8px; -} - -.add-cat-toggle:focus { - text-decoration: none; - color: #00a0d2; -} - -.add-cat-toggle.is-toggled { - padding: 10px; -} - -.add-cat-toggle.is-toggled .dashicons:before { - content: "\f179"; -} - -.add-category { - position: relative; - border-bottom: 1px solid #e5e5e5; -} - -.add-category.is-hidden { - display: none; -} - -.add-category .add-cat-submit { - position: absolute; - top: 0; - right: 0; - border: 0; - -webkit-border-radius: 0; - border-radius: 0; - padding: 12px 16px; - background: #f7f7f7; - border-left: 1px solid #f1f1f1; -} - -.add-category .add-cat-submit:hover, -.add-category .add-cat-submit:active, -.add-category .add-cat-submit:focus { - outline: 0; - background: #2991b7; - border-color: #20708e; - color: #fff; -} - -/* Parent category select */ -.postform-wrapper { - padding: 12px; -} - -.postform { - display: block; - margin: 0; - width: 100%; - height: 34px; - border: 0; - -webkit-border-radius: 0; - border-radius: 0; - border: 1px solid #e5e5e5; - background: #fff; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - overflow: hidden; - line-height: 21px; - text-overflow: ellipsis; - text-decoration: none; - vertical-align: top; - white-space: nowrap; - cursor: pointer; - outline: 0; -} - -.postform:focus { - border-color: #0073aa; - -webkit-box-shadow: 0 0 0 3px #00a0d2; - box-shadow: 0 0 0 3px #00a0d2; - outline: 0; - -moz-outline: none; - -moz-user-focus: ignore; -} - -.postform::-ms-expand { - display: none; -} - -.postform::-ms-value { - background: none; - color: #727272; -} - -.postform:-moz-focusring { - color: transparent; - text-shadow: 0 0 0 #727272; -} - -/* Category list */ -.categories-select { - margin: 0; - padding: 0; - list-style: none; -} - -.categories-select ul { - margin: 0; - padding: 0; - list-style: none; -} - -.category { - position: relative; - display: block; - padding: 13px 16px 14px 16px; - cursor: pointer; - background: #fff; -} - -.category:focus, -.category.selected:focus { - outline: 0; - background: #00a0d2; - color: #fff; -} - -.category.selected { - -webkit-box-shadow: inset 6px 0 0 #00a0d2; - box-shadow: inset 6px 0 0 #00a0d2; - background: #E9F5F9; -} - -.category.selected:after { - display: inline-block; - content: "\f147"; - position: absolute; - top: 13px; - right: 0; - width: 20px; - height: 20px; - margin-right: 10px; - font-size: 20px; - line-height: 1; - font-family: dashicons; - text-decoration: inherit; - color: #23282d; - font-weight: 400; - font-style: normal; - vertical-align: top; - text-align: center; - -webkit-transition: color .1s ease-in 0; - transition: color .1s ease-in 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.category.selected:focus:after { - color: #fff; -} - -.categories-select ul .category { - padding-left: 24px; -} - -.categories-select ul ul .category { - padding-left: 32px; -} - -.categories-select ul ul ul .category { - padding-left: 40px; -} - -.categories-select ul ul ul ul .category { - padding-left: 48px; -} - -.categories-select ul ul ul ul ul .category { - padding-left: 56px; -} - -.categories-select ul ul ul ul ul ul .category { - padding-left: 64px; -} - -.categories-select .is-hidden { - display: none; -} - -.categories-select .is-hidden.searched-parent { - display: block; -} - -/* Category search */ -.categories-search-wrapper { - position: relative; -} - -.categories-search-wrapper.is-hidden { - display: none; -} - -.categories-search-wrapper label { - position: absolute; - top: 50%; - right: 10px; - margin-top: -10px; - color: #9ea7af; -} - - -/** -* Main -*/ -html { - overflow: auto; -} - -body { - overflow-x: hidden; - height: 100%; -} - -html { - background: #fff; - -webkit-box-shadow: -10px 0 0 rgba(0, 0, 0, 0.3); - box-shadow: -10px 0 0 rgba(0, 0, 0, 0.3); -} - -@media (max-width: 900px) { - body { - font-size: 16px; - } -} - -@media (max-width: 320px) { - body { - font-size: 14px; - } -} - -.lt-ie9 { - overflow: visible; -} - -.adminbar { - position: relative; - width: 100%; - padding: 0 0.8em; - min-height: 3.2em; - background: #23282d; - color: #fff; - z-index: 9999; -} - -.adminbar:before, -.adminbar:after { - content: ""; - display: table; -} - -.adminbar:after { - clear: both; -} - -.adminbar .dashicons { - color: #999; -} - -.adminbar button { - position: absolute; - top: 50%; - right: 6px; - margin-top: -13px; -} - -@media (max-width: 320px) { - .adminbar { - min-height: 45px; - } -} - -.current-site { - margin-top: 0.5625em; - font-size: 16px; - line-height: 44px; - font-weight: 400; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} - -@media (max-width: 600px) { - .current-site { - margin: 3px 0 0; - } -} - -@media (max-width: 320px) { - .current-site { - margin: 0; - font-size: 14px; - } -} - -.current-site-link { - text-decoration: none; -} - -.current-site-link:focus { - outline: 0; -} - -.current-site-link:focus .current-site-name{ - text-decoration: underline; -} - -.current-site-name { - color: #ededed; -} - -@media (max-width: 320px) { - .current-site-name { - font-weight: 600; - } -} - -.current-site .dashicons-wordpress { - position: relative; - top: -1px; - margin-right: 10px; - vertical-align: middle; -} - -.options, -.options.open .on-closed, -.options.closed .on-open { - display: none; -} - -@media (max-width: 900px) { - .options { - display: block; - } -} - -.options-panel-back.is-hidden { - display: none; -} - -.options:focus .dashicons { - color: #fff; - text-decoration: none; -} - -.options .dashicons { - margin-top: 3px; -} - -.options { - color: #00a0d2; -} - -.alert { - position: relative; - margin: 0; - padding: 16px 50px; - border-bottom: 1px solid #e5e5e5; - font-size: 14px; -} - -.alert:before { - content: ''; - position: absolute; - top: 50%; - left: 30px; - width: 8px; - height: 8px; - margin-top: -4px; - -webkit-border-radius: 50%; - border-radius: 50%; - background: #00a0d2; -} - -@media (max-width: 600px) { - .alert { - padding: 16px 35px; - } - .alert:before { - left: 15px; - } -} - -.alert.is-error:before { - background: red; -} - -.scan { - position: relative; - border-bottom: 1px solid #e5e5e5; -} - -@media (max-width: 900px) { - .scan form { - -webkit-transition: opacity .3s ease-in-out; - transition: opacity .3s ease-in-out; - } - .scan.is-hidden form { - opacity: .2; - pointer-events: none; - } -} - -.scan-url { - display: block; - border: 0; - padding: 0.85714em 1.07143em; - font-size: 14px; - width: 100%; -} - -@media (max-width: 600px) { - .scan-url { - font-size: 16px; - } -} - -.scan-submit { - position: absolute; - top: 0; - right: 0; - bottom: 0; - padding: 0 1.07143em; - background: #f7f7f7; - border-color: #dedede; - border: 0; - border-left: 1px solid #f1f1f1; - -webkit-border-radius: 0; - border-radius: 0; - color: #555; - font-size: 14px; - line-height: 1.6; -} - -.scan-submit:hover, -.scan-submit:focus { - background: #2991b7; - border-color: #20708e; - color: #fff; - outline: 0; -} - -.scan-submit:active { - background: #2581a2; - border-color: #20708e; - color: #fff; -} - -.scan-submit:visited { - color: #555; -} - -.wrapper { - position: relative; - margin-bottom: 60px; - margin-right: 320px; -} - -.wrapper:before, -.wrapper:after { - content: ""; - display: table; -} - -.wrapper:after { - clear: both; -} - -@media (max-width: 900px) { - .wrapper { - margin: 0; - width: 100%; - } -} - -.editor-wrapper { - overflow: auto; - float: left; - width: 100%; -} - -.editor-wrapper:before, -.editor-wrapper:after { - content: ""; - display: table; -} - -.editor-wrapper:after { - clear: both; -} - -.editor { - padding: 0 1.5em 4.75em; - max-width: 700px; - margin: 0 auto; -} - -.spinner { - height: 20px; - width: 20px; - display: inline-block; - visibility: hidden; - background: url(../images/spinner.gif) no-repeat center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - opacity: 0.7; - filter: alpha(opacity=70); - line-height: 1; - vertical-align: middle; -} - -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - - .spinner { - background-image: url(../images/spinner-2x.gif); - } -} - -.spinner.is-active { - visibility: visible; -} - -/* Make the text inside the editor textarea white. Prevents a "flash" on loading the page */ -#pressthis { - color: #fff; -} - -@media (min-width: 901px) { - .editor { - max-width: 760px; - } -} - -@media (max-width: 320px) { - .editor { - padding: 0; - } -} - -.post-title, -.post-title-placeholder { - margin: 0; - padding: .83em 0; - width: 100%; - border-bottom: 1px solid #e5e5e5; - font-size: 32px; - line-height: 1.4; - font-weight: 700; -} - -.post-title:active, -.post-title:focus, -.post-title-placeholder:active, -.post-title-placeholder:focus { - outline: 0; - -webkit-box-shadow: inset 0px -3px 0 #00a0d2; - box-shadow: inset 0px -3px 0 #00a0d2; - border-color: #00a0d2; -} - -@media (max-width: 900px) { - .post-title, - .post-title-placeholder { - font-size: 24px; - } -} - -@media (max-height: 400px) { - .post-title, - .post-title-placeholder { - padding: 15px 0; - font-size: 16px; - } -} - -@media (max-width: 320px) { - .post-title, - .post-title-placeholder { - font-size: 16px; - font-weight: 600; - padding: 1.14286em 1.42857em; - } -} - -.post-title { - /* IE8 fallback */ - background: url(data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///////wAAACH5BAEHAAIALAAAAAABAAEAAAICVAEAOw==); - background: none, none; -} - -.post-title:before { - /* Keeps empty container from collapsing */ - content: '\a0'; - display: inline-block; - width: 0; - speak: none; -} - -.post-title-placeholder { - position: absolute; - border: 0; - color: #9ea7af; - z-index: -1; -} - -.post-title-placeholder.is-hidden { - display: none; -} - -/* Suggested images */ -.media-list-container { - position: relative; - padding: 2px 0; - border-bottom: 1px solid #e5e5e5; - display: none; -} - -.media-list-inner-container { - overflow: auto; - max-height: 150px; - max-height: 40vw; -} - -.media-list-container.has-media { - display: block; -} - -.media-list-inner-container:before, -.media-list-inner-container:after { - content: ""; - display: table; -} - -.media-list-inner-container:after { - clear: both; -} - -.media-list { - margin: 0; - padding: 0; -} - -@media (min-width: 321px) { - .media-list-inner-container { - max-height: 250px; - max-height: 40vw; - } -} - -@media (min-width: 601px) { - .media-list-inner-container { - max-height: 200px; - max-height: 18.75vw; - } -} - -.wppt-all-media-list { - list-style: none; - margin: 0; - padding: 0; -} - -.suggested-media-thumbnail:focus, -.is-embed:focus { - outline: 0; - -webkit-box-shadow: inset 0 0 0 3px #00a0d2; - box-shadow: inset 0 0 0 3px #00a0d2; -} - -.suggested-media-thumbnail { - position: relative; - display: block; - float: left; - width: 16.66%; - padding: 16.66% 0 0 16.66%; - background-position: center; - background-repeat: no-repeat; - -webkit-background-size: cover; - background-size: cover; - background-color: #d8d8d8; - color: #fff; - color: rgba(255, 255, 255, 0.6); - cursor: pointer; -} - -.suggested-media-thumbnail:hover, -.suggested-media-thumbnail:active, -.suggested-media-thumbnail:focus { - color: #fff; -} - -.suggested-media-thumbnail:before, -.suggested-media-thumbnail:after { - display: inline-block; - position: absolute; - font-size: 20px; - line-height: 1; - font-family: dashicons; - text-decoration: inherit; - font-weight: 400; - font-style: normal; - -webkit-transition: color .1s ease-in 0; - transition: color .1s ease-in 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.suggested-media-thumbnail:before { - left: 50%; - top: 50%; - margin: -20px 0 0 -20px; - font-size: 40px; -} - -.suggested-media-thumbnail:after { - content: "\f132"; - right: 3%; - bottom: 2%; -} - -@media (min-width: 601px) { - .suggested-media-thumbnail { - width: 12.5%; - padding: 12.5% 0 0 12.5%; - } -} - -.is-embed:before { - content: "\f104"; - color: #fff; - color: rgba(255, 255, 255, 0.9); -} - -.is-embed.is-audio:hover:before, -.is-embed.is-audio:active:before, -.is-embed.is-audio:focus:before, -.is-embed.is-tweet:hover:before, -.is-embed.is-tweet:active:before, -.is-embed.is-tweet:focus:before { - color: #fff; -} - -.is-embed.is-video { - background-color: #23282d; -} - -.is-embed.is-video:hover:before, -.is-embed.is-video:active:before, -.is-embed.is-video:focus:before { - color: rgba(255, 255, 255, 0.2); -} - -.is-embed.is-video:before { - content: "\f236"; -} - -.is-embed.is-audio { - background-color: #ff7d44; -} - -.is-embed.is-audio:before { - content: "\f127"; -} - -.is-embed.is-tweet { - background-color: #55acee; -} - -.is-embed.is-tweet:before { - content: "\f301"; -} - -.no-media { - margin: 0; - padding: 0; - border: 0; -} - -/* Actions bar */ -.press-this-actions { - position: fixed; - bottom: 0; - left: 0; - width: 100%; - background: #f1f1f1; - background: rgba(241, 241, 241, 0.9); - border-top: 1px solid #e5e5e5; -} - -@media (max-width: 900px) { - .press-this-actions { - -webkit-transform: translateY(0); - -ms-transform: translateY(0); - transform: translateY(0); - -webkit-transition: -webkit-transform .3s ease-in-out; - transition: transform .3s ease-in-out; - } - .press-this-actions.is-hidden { - -webkit-transform: translateY(100%); - -ms-transform: translateY(100%); - transform: translateY(100%); - } -} - -.add-media { - float: left; - margin: 14px 0 14px 30px; - font-size: 0; -} - -@media (max-width: 320px) { - .add-media { - margin: 10px 0 10px 10px; - } -} - -.insert-media { - color: #9ea7af; - float: left; - margin: 0; - padding: 0; - border: 0; - border-right: 1px solid #e5e5e5; - -webkit-border-radius: 0; - border-radius: 0; - background: none; - -webkit-box-shadow: none; - box-shadow: none; - overflow: hidden; -} - -.insert-media:hover, -.insert-media:focus, -.insert-media:active { - margin: 0; - background: none; - border-color: #e5e5e5; - color: #23282d; -} - -.insert-media:focus, -.insert-media:active { - outline: 0; - color: #00a0d2; - text-decoration: none; -} - -.insert-media .dashicons { - padding: 11px; - width: 63px; - height: 58px; - font-size: 40px; -} - -@media (max-width: 320px) { - .insert-media .dashicons { - width: 55px; - height: 49px; - padding: 14px; - font-size: 20px; - } -} - -.post-actions { - float: right; - margin: 14px 30px 14px 0; - font-size: 13px; -} - -@media (max-width: 320px) { - .post-actions { - margin: 10px 10px 10px 0; - } -} - -.edit-post-link { - font-size: 13px; - display: inline-block; - text-decoration: none; - padding: 0 10px; -} - -.publish-button .saving-draft, -.publish-button.is-saving .publish { - display: none; -} - -.publish-button.is-saving .saving-draft { - display: inline; -} - -/* TinyMCE styles */ -.editor .wp-media-buttons { - float: none; -} - -.editor div.mce-toolbar-grp { - padding: 0.71429em 0; - background: none; - border: 0; -} - -@media (max-height: 400px), (max-width: 320px) { - .editor div.mce-toolbar-grp { - padding: 0; - } -} - -.mce-stack-layout:before, -.mce-stack-layout:after { - content: ""; - display: table; -} - -.mce-stack-layout:after { - clear: both; -} - -.mce-container.mce-toolbar { - float: left; -} - -.mce-container.mce-toolbar:nth-child(2) { - float: right; -} - -@media (max-width: 600px) { - .mce-first .mce-btn:nth-child(3), - .mce-first .mce-btn:nth-child(4) { - position: absolute; - margin: -1px; - padding: 0; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(0 0 0 0); - border: 0; - } - - .mce-first .mce-btn:nth-child(3):focus, - .mce-first .mce-btn:nth-child(4):focus { - position: static; - margin: 1px; - padding: inherit; - height: auto; - width: auto; - overflow: visible; - clip: auto; - border: 1px solid #999; - } -} - -#wp-link-wrap { - font-size: 13px; -} - -#wp-link-wrap input[type="text"] { - padding: 3px 5px; - margin: 1px; -} - -@media screen and (max-width: 782px) { - #wp-link-wrap { - font-size: 14px; - } - - #wp-link-wrap input[type="text"] { - padding: 6px 10px; - } -} - -#wp-link-wrap .howto { - color: #666; - font-style: italic; -} - -/* Options panel (sidebar) */ -.options-panel { - position: relative; - float: right; - margin-right: -320px; - width: 320px; - border-left: 1px solid #e5e5e5; - font-size: 14px; - /* Keeps background the full height of the screen, but only visually. Clicks go through. */ - -webkit-box-shadow: 5001px 5000px 0 5000px #fff, 5000px 5000px 0 5000px #e5e5e5; - box-shadow: 5001px 5000px 0 5000px #fff, 5000px 5000px 0 5000px #e5e5e5; - outline: 0; -} - -.options-panel-back { - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 320px; - outline: 0; -} - -@media (max-width: 900px) { - .options-panel { - background: #fff; - -webkit-transform: translateX(-100%); - -ms-transform: translateX(-100%); - transform: translateX(-100%); - -webkit-transition: -webkit-transform .3s ease-in-out; - transition: transform .3s ease-in-out; - } - - .options-panel.is-hidden { - visibility: hidden; - } - - .options-panel.is-off-screen { - -webkit-transform: translateX(0); - -ms-transform: translateX(0); - transform: translateX(0); - } -} - -@media (max-width: 320px) { - .options-panel { - margin-right: -100%; - width: 100%; - border: 0; - -webkit-box-shadow: 5001px 5000px 0 5000px #fff; - box-shadow: 5001px 5000px 0 5000px #fff; - } - - .options-panel-back { - width: 100%; - } -} - -.post-options { - background: #fff; - position: absolute; - right: 0; - width: 100%; - overflow-x: hidden; -} - -.post-options .post-option-contents { - margin-left: 3px; - color: #32373c; -} - -.post-option-forward:before { - position: absolute; - top: 50%; - right: 8px; - margin-top: -10px; - content: "\f345" -} - -.post-option-back:before { - content: "\f341"; -} - -.lt-ie9 .options-panel, -.lt-ie9 .post-options { - border-left: 1px solid #e5e5e5; -} - -.lt-ie9 .post-options.is-off-screen { - border: 0; -} - -.post-option { - position: relative; -} - -.post-options .post-option { - display: block; - width: 100%; - padding: 13px 37px 13px 14px; - border-bottom: 1px solid #e5e5e5; - text-decoration: none; - text-align: left; - color: #9ea7af; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - -webkit-transition: -webkit-transform .3s ease-in-out; - transition: transform .3s ease-in-out; -} - -.post-options .post-option:focus { - outline: 0; - -webkit-box-shadow: inset 5px 0 0 #00a0d2; - box-shadow: inset 5px 0 0 #00a0d2; -} - -.is-off-screen > .post-option { - right: 100%; -} - -.is-hidden > .post-option { - visibility: hidden; -} - -@media (min-width: 1px) { - .is-off-screen > .post-option { - right: auto; - -webkit-transform: translateX(-100%); - -ms-transform: translateX(-100%); - transform: translateX(-100%); - } -} - -.post-option-title { - display: inline-block; - margin: 0 0 0 8px; - font-size: 14px; - font-weight: normal; -} - -.setting-modal { - position: relative; - top: 0; - left: 0; - width: 100%; - overflow: hidden; - -webkit-transition: -webkit-transform .3s ease-in-out; - transition: transform .3s ease-in-out; -} - -.setting-modal.is-hidden { - visibility: hidden; - height: 0; -} - -.setting-modal.is-off-screen { - left: 100%; -} - -@media (min-width: 1px) { - .setting-modal.is-off-screen { - left: 0; - -webkit-transform: translateX(100%); - -ms-transform: translateX(100%); - transform: translateX(100%); - } -} - -.modal-close { - display: block; - width: 100%; - padding: 13px 14px; - border-bottom: 1px solid #e5e5e5; - color: #00a0d2; - text-decoration: none; - text-align: left; -} - -.modal-close:focus { - outline: 0; - -webkit-box-shadow: inset 5px 0 0 #00a0d2; - box-shadow: inset 5px 0 0 #00a0d2; -} - -.setting-title { - position: relative; - top: -1px; - margin-left: 11px; -} - -/* Text editor */ -#pressthis { - color: #404040; - resize: none; - padding-top: 30px; - font-size: 16px; -} - -.wp-editor-wrap .quicktags-toolbar { - background: transparent; - border: none; -} - -/* Switch editor buttons */ -.wp-editor-wrap .wp-editor-tools { - z-index: 0; -} - -.wp-editor-wrap .wp-editor-tabs { - padding: 2px; -} - -.wp-editor-wrap .wp-switch-editor { - top: 0; - margin: 3px 0 0 5px; - padding: 3px 8px; - background: #f5f5f5; - color: #555; - border-color: #ccc; -} - -.wp-editor-wrap .wp-switch-editor:hover { - background: #fafafa; - border-color: #999; - color: #23282d; -} - -.wp-editor-wrap.tmce-active .switch-tmce, -.wp-editor-wrap.html-active .switch-html { - background: #fff; - border-color: #d8d8d8; -} diff --git a/wp-admin/css/press-this.min.css b/wp-admin/css/press-this.min.css deleted file mode 100644 index 67e59e1341..0000000000 --- a/wp-admin/css/press-this.min.css +++ /dev/null @@ -1 +0,0 @@ -pre,textarea{overflow:auto}body,fieldset{margin:0}.screen-reader-text,fieldset,legend,td,th{padding:0}.adminbar:after,.clearfix:after,.editor-wrapper:after,.mce-stack-layout:after,.media-list-inner-container:after,.tagchecklist:after,.wrapper:after,h1,h2,h3,h4,h5,h6{clear:both}b,dt,optgroup,strong{font-weight:700}.current-site,.post-options .post-option,.postform{text-overflow:ellipsis;white-space:nowrap}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min-resolution:144dpi){*,:after,:before{-webkit-font-smoothing:antialiased}}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}fieldset,img,legend{border:0}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}.clearfix:after,.clearfix:before{content:"";display:table}.hide-if-js{display:none}.screen-reader-text{position:absolute;margin:-1px;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0}body,button,input,select,textarea{color:#404040;font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:20px;font-weight:400;line-height:1.6}p{margin-bottom:1.5em}.button-subtle,.scan-submit{display:inline-block;margin:0;padding:0 10px 1px;border-width:1px;border-style:solid;-webkit-border-radius:3px;border-radius:3px;font-size:13px;line-height:2;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-appearance:none}.button-link,.button-reset{cursor:pointer;-webkit-appearance:none;padding:0;border:0;background:0 0}.button-subtle{background:0 0;border:0;color:#0073aa}.button-subtle:visited{color:#0073aa}.button-subtle:active,.button-subtle:focus,.button-subtle:hover,.edit-post-link:active,.edit-post-link:focus,.edit-post-link:hover{color:#00a0d2}.button-subtle:active,.button-subtle:focus,.edit-post-link:active,.edit-post-link:focus{outline:0;text-decoration:underline}.preview-button{margin-right:5px}.button-reset{margin:0}.button-reset:focus{outline:0}.button-link{margin:0;color:#0073aa}.button-link:active,.button-link:focus,.button-link:hover{color:#00a0d2;text-decoration:underline}.split-button{position:relative;display:inline-block;vertical-align:middle}.split-button-body{display:none;position:absolute;bottom:39px;right:0;border:1px solid #ddd;background-color:#fff;min-width:180px;max-width:100%;margin:0;padding:8px;list-style:none;-webkit-box-shadow:1px 0 4px rgba(0,0,0,.15);box-shadow:1px 0 4px rgba(0,0,0,.15)}.split-button-body:after,.split-button-body:before{position:absolute;right:12px;display:block;width:0;height:0;border-style:solid;border-color:transparent;content:''}.split-button-body:before{bottom:-18px;border-top-color:#ccc;border-width:9px;right:11px}.split-button-body:after{bottom:-16px;border-top-color:#fff;border-width:8px}.split-button-body .split-button-option{display:block;padding:5px 15px;margin:0;width:100%;text-align:left}.is-open .split-button-body{display:block}.split-button-primary,.split-button-toggle{-webkit-border-radius:0;border-radius:0;display:block;margin:0;font-size:13px;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-appearance:none;line-height:2;padding:0 10px 1px;background:#00a0d2;border-color:#0073aa;border-width:1px;border-style:solid;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);color:#fff}.split-button-primary{-webkit-border-top-left-radius:3px;border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;border-right:0 none;float:left}.split-button-toggle{padding:0;-webkit-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px;border-left:0 none;float:right}.split-button-toggle i{margin:4px 20px 3px 0;padding:0 10px;border-left:1px solid #fff}.split-button-primary:hover,.split-button-toggle:hover{outline:0;background:#0091cd;border-color:#0073aa}.split-button-primary:focus,.split-button-toggle:focus{outline:0;border-color:#0e3950;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.6),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 rgba(120,200,230,.6),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.split-button-primary:active,.split-button-toggle:active{background:#0073aa;border-color:#005082;color:rgba(255,255,255,.95);-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline}[type=checkbox],[type=radio]{padding:0}[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}[type=text],[type=email],[type=url],[type=password],[type=search],textarea{padding:.4em .75em;color:#32373c;border:1px solid #ccc}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=search]:focus,textarea:focus{color:#32373c;outline:0}textarea{padding-left:3px;vertical-align:top}a,a:visited{color:#0073aa}a:active,a:focus,a:hover{color:#00a0d2}ol,ul{margin:0 0 1.5em 3em}ul{list-style:disc}ol{list-style:decimal}li>ol,li>ul{margin-bottom:0;margin-left:1.5em}dd{margin:0 1.5em 1.5em}#post-formats-select br{display:none}.post-format{width:1px;height:1px;position:absolute;top:-9999px}.lt-ie9 .post-format{margin:17px 12px 0 13px;position:static;top:auto;float:left;width:16px;height:16px}.add-category,.post-format-icon,.tagsdiv .ajaxtag,.tagsdiv .newtag{position:relative}.post-format-icon{display:block;padding:13px 2px 14px 13px;cursor:pointer}.post-format-icon:after,.post-format-icon:before{content:"";display:inline-block;width:20px;height:20px;margin-right:10px;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;color:#9ea7af;font-style:normal;text-align:center;transition:color .1s ease-in 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.category.selected:after,.post-format-icon:after,.post-format-icon:before{font-weight:400;vertical-align:top;-webkit-transition:color .1s ease-in 0}.post-format-icon:before{content:"\f109"}.post-format-icon:after{display:none;content:"\f147";float:right}.post-format:checked+.post-format-icon{-webkit-box-shadow:inset 6px 0 0 #00a0d2;box-shadow:inset 6px 0 0 #00a0d2;background:rgba(46,162,204,.1)}.post-format:checked+.post-format-icon:after,.post-format:checked+.post-format-icon:before{color:#32373c}.post-format:focus+.post-format-icon{background:#00a0d2;color:#fff}.post-format:focus+.post-format-icon:after,.post-format:focus+.post-format-icon:before{color:#fff}.post-format:checked+.post-format-icon:after{display:block}.lt-ie9 .post-format-icon{margin-left:16px}.post-format-aside:before{content:"\f123"}.post-format-image:before{content:"\f128"}.post-format-video:before{content:"\f126"}.post-format-audio:before{content:"\f127"}.post-format-quote:before{content:"\f122"}.post-format-link:before{content:"\f103"}.post-format-gallery:before{content:"\f161"}.tagsdiv p{margin:0}.tagsdiv .newtag{display:block;padding:11px 58px 11px 16px;width:100%;border:0;border-bottom:1px solid #e5e5e5;font-size:16px}.tagsdiv .tagadd{position:absolute;top:0;right:0;bottom:1px;border:0;-webkit-border-radius:0;border-radius:0;margin:0;padding:0 16px;background:#f7f7f7;border-left:1px solid #f1f1f1;-webkit-box-shadow:none;box-shadow:none}.tagsdiv .tagadd:active,.tagsdiv .tagadd:focus,.tagsdiv .tagadd:hover{outline:0;background:#2991b7;border-color:#20708e;color:#fff;-webkit-box-shadow:none;box-shadow:none}.tagsdiv .howto{color:#727272;font-style:italic;margin:10px 0 6px 16px}.ac_results{padding:0;margin:-1px 0 0 -1px;list-style:none;position:absolute;z-index:10000;display:none;border:1px solid #d8d8d8;background-color:#fff;font-size:14px}.ac_results li{padding:6px 16px;white-space:nowrap;color:#101010;text-align:left}.ac_results .ac_over{background-color:#00a0d2;color:#fff;cursor:pointer}.ac_match{text-decoration:underline}.tagchecklist{padding:16px 28px 5px}.tagchecklist:after,.tagchecklist:before{content:"";display:table}.tagchecklist span{display:block;margin-right:25px;float:left;font-size:13px;line-height:1.8;white-space:nowrap;cursor:default}@media (max-width:600px){.tagchecklist span{margin-bottom:15px;font-size:16px;line-height:1.3}}.tagchecklist .ntdelbutton{margin:1px 0 0 -17px;cursor:pointer;width:20px;height:20px;display:block;float:left;text-indent:0;overflow:hidden;position:absolute;outline:0}.tagchecklist .ntdelbutton:before{content:'\f153';display:block;margin:2px 0;height:20px;width:20px;background:0 0;color:#9ea7af;font:400 16px/1 dashicons;text-align:center;speak:none;-webkit-font-smoothing:antialiased}.category.selected:after,.suggested-media-thumbnail:after,.suggested-media-thumbnail:before{font-family:dashicons;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tagchecklist .ntdelbutton:focus:before{color:#00a0d2}.tagsdiv+p{margin:0}.tagcloud-link{display:block;padding:0 16px;text-decoration:none;outline:0}.tagcloud-link:focus{text-decoration:underline}.popular-tags{border:none;line-height:2em;padding:8px 12px 12px;text-align:justify}.popular-tags a{padding:0 3px}.the-tagcloud{margin:0;padding:16px}.the-tagcloud a{text-decoration:none;outline:0}.the-tagcloud a:focus{text-decoration:underline}.tagcloud h3{margin:2px 0 12px}.add-category-name,input[type=search].categories-search{display:block;width:100%;padding:.85714em 1.07143em;border:0;-webkit-border-radius:0;border-radius:0;border-bottom:1px solid #e5e5e5;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (max-width:600px){.add-category-name,input[type=search].categories-search{font-size:16px}}.add-cat-toggle{float:right;margin-top:-45px;line-height:20px;padding:12px 10px 8px}.add-cat-toggle:focus{text-decoration:none;color:#00a0d2}.add-cat-toggle.is-toggled{padding:10px}.add-cat-toggle.is-toggled .dashicons:before{content:"\f179"}.add-category{border-bottom:1px solid #e5e5e5}.add-category.is-hidden{display:none}.add-category .add-cat-submit{position:absolute;top:0;right:0;border:0;-webkit-border-radius:0;border-radius:0;padding:12px 16px;background:#f7f7f7;border-left:1px solid #f1f1f1}.alert,.scan{border-bottom:1px solid #e5e5e5}.add-category .add-cat-submit:active,.add-category .add-cat-submit:focus,.add-category .add-cat-submit:hover{outline:0;background:#2991b7;border-color:#20708e;color:#fff}.postform-wrapper{padding:12px}.postform{display:block;margin:0;width:100%;height:34px;-webkit-border-radius:0;border-radius:0;border:1px solid #e5e5e5;background:#fff;-webkit-background-size:20px 20px;background-size:20px 20px;overflow:hidden;line-height:21px;text-decoration:none;vertical-align:top;cursor:pointer;outline:0}.postform:focus{border-color:#0073aa;-webkit-box-shadow:0 0 0 3px #00a0d2;box-shadow:0 0 0 3px #00a0d2;outline:0;-moz-outline:none;-moz-user-focus:ignore}.postform::-ms-expand{display:none}.postform::-ms-value{background:0 0;color:#727272}.postform:-moz-focusring{color:transparent;text-shadow:0 0 0 #727272}.categories-select,.categories-select ul{margin:0;padding:0;list-style:none}.category{position:relative;display:block;padding:13px 16px 14px;cursor:pointer;background:#fff}.category.selected:focus,.category:focus{outline:0;background:#00a0d2;color:#fff}.category.selected{-webkit-box-shadow:inset 6px 0 0 #00a0d2;box-shadow:inset 6px 0 0 #00a0d2;background:#E9F5F9}.category.selected:after{display:inline-block;content:"\f147";position:absolute;top:13px;right:0;width:20px;height:20px;margin-right:10px;font-size:20px;line-height:1;text-decoration:inherit;color:#23282d;text-align:center;transition:color .1s ease-in 0}.category.selected:focus:after{color:#fff}.categories-select ul .category{padding-left:24px}.categories-select ul ul .category{padding-left:32px}.categories-select ul ul ul .category{padding-left:40px}.categories-select ul ul ul ul .category{padding-left:48px}.categories-select ul ul ul ul ul .category{padding-left:56px}.categories-select ul ul ul ul ul ul .category{padding-left:64px}.categories-select .is-hidden{display:none}.categories-select .is-hidden.searched-parent{display:block}.categories-search-wrapper{position:relative}.categories-search-wrapper.is-hidden{display:none}.categories-search-wrapper label{position:absolute;top:50%;right:10px;margin-top:-10px;color:#9ea7af}html{overflow:auto;background:#fff;-webkit-box-shadow:-10px 0 0 rgba(0,0,0,.3);box-shadow:-10px 0 0 rgba(0,0,0,.3)}body{overflow-x:hidden;height:100%}@media (max-width:900px){body{font-size:16px}}.lt-ie9{overflow:visible}.adminbar{position:relative;width:100%;padding:0 .8em;min-height:3.2em;background:#23282d;color:#fff;z-index:9999}.adminbar:after,.adminbar:before{content:"";display:table}.adminbar .dashicons{color:#999}.adminbar button{position:absolute;top:50%;right:6px;margin-top:-13px}@media (max-width:320px){body{font-size:14px}.adminbar{min-height:45px}}.current-site{margin-top:.5625em;font-size:16px;line-height:44px;font-weight:400;overflow:hidden}@media (max-width:600px){.current-site{margin:3px 0 0}}.current-site-link{text-decoration:none}.current-site-link:focus{outline:0}.current-site-link:focus .current-site-name{text-decoration:underline}.current-site-name{color:#ededed}@media (max-width:320px){.current-site{margin:0;font-size:14px}.current-site-name{font-weight:600}}.current-site .dashicons-wordpress{position:relative;top:-1px;margin-right:10px;vertical-align:middle}.options,.options.closed .on-open,.options.open .on-closed{display:none}@media (max-width:900px){.options{display:block}}.options-panel-back.is-hidden{display:none}.options:focus .dashicons{color:#fff;text-decoration:none}.options .dashicons{margin-top:3px}.options{color:#00a0d2}.alert{position:relative;margin:0;padding:16px 50px;font-size:14px}.alert:before{content:'';position:absolute;top:50%;left:30px;width:8px;height:8px;margin-top:-4px;-webkit-border-radius:50%;border-radius:50%;background:#00a0d2}@media (max-width:600px){.alert{padding:16px 35px}.alert:before{left:15px}}.alert.is-error:before{background:red}.scan{position:relative}.scan-url{display:block;border:0;padding:.85714em 1.07143em;font-size:14px;width:100%}.editor-wrapper:after,.editor-wrapper:before,.wrapper:after,.wrapper:before{content:"";display:table}@media (max-width:600px){.scan-url{font-size:16px}}.scan-submit{position:absolute;top:0;right:0;bottom:0;padding:0 1.07143em;background:#f7f7f7;border:0;border-left:1px solid #f1f1f1;-webkit-border-radius:0;border-radius:0;color:#555;font-size:14px;line-height:1.6}.scan-submit:focus,.scan-submit:hover{background:#2991b7;border-color:#20708e;color:#fff;outline:0}.scan-submit:active{background:#2581a2;border-color:#20708e;color:#fff}.scan-submit:visited{color:#555}.wrapper{position:relative;margin-bottom:60px;margin-right:320px}@media (max-width:900px){.scan form{-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.scan.is-hidden form{opacity:.2;pointer-events:none}.wrapper{margin:0;width:100%}}.editor-wrapper{overflow:auto;float:left;width:100%}.editor{padding:0 1.5em 4.75em;max-width:700px;margin:0 auto}.spinner{height:20px;width:20px;display:inline-block;visibility:hidden;background:url(../images/spinner.gif) center no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;opacity:.7;filter:alpha(opacity=70);line-height:1;vertical-align:middle}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.spinner{background-image:url(../images/spinner-2x.gif)}}.spinner.is-active{visibility:visible}@media (min-width:901px){.editor{max-width:760px}}@media (max-width:320px){.editor{padding:0}}.post-title,.post-title-placeholder{margin:0;padding:.83em 0;width:100%;border-bottom:1px solid #e5e5e5;font-size:32px;line-height:1.4;font-weight:700}.post-title-placeholder:active,.post-title-placeholder:focus,.post-title:active,.post-title:focus{outline:0;-webkit-box-shadow:inset 0 -3px 0 #00a0d2;box-shadow:inset 0 -3px 0 #00a0d2;border-color:#00a0d2}@media (max-width:900px){.post-title,.post-title-placeholder{font-size:24px}}@media (max-height:400px){.post-title,.post-title-placeholder{padding:15px 0;font-size:16px}}@media (max-width:320px){.post-title,.post-title-placeholder{font-size:16px;font-weight:600;padding:1.14286em 1.42857em}}.post-title{background:url(data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///////wAAACH5BAEHAAIALAAAAAABAAEAAAICVAEAOw==);background:0 0,none}.post-title:before{content:'\a0';display:inline-block;width:0;speak:none}.post-title-placeholder{position:absolute;border:0;color:#9ea7af;z-index:-1}.is-embed.is-audio:active:before,.is-embed.is-audio:focus:before,.is-embed.is-audio:hover:before,.is-embed.is-tweet:active:before,.is-embed.is-tweet:focus:before,.is-embed.is-tweet:hover:before,.is-embed:before,.suggested-media-thumbnail:active,.suggested-media-thumbnail:focus,.suggested-media-thumbnail:hover{color:#fff}.post-title-placeholder.is-hidden{display:none}.media-list-container{position:relative;padding:2px 0;border-bottom:1px solid #e5e5e5;display:none}.media-list-inner-container{overflow:auto;max-height:150px;max-height:40vw}.media-list-container.has-media{display:block}.media-list-inner-container:after,.media-list-inner-container:before{content:"";display:table}.media-list{margin:0;padding:0}@media (min-width:321px){.media-list-inner-container{max-height:250px;max-height:40vw}}.wppt-all-media-list{list-style:none;margin:0;padding:0}.is-embed:focus,.suggested-media-thumbnail:focus{outline:0;-webkit-box-shadow:inset 0 0 0 3px #00a0d2;box-shadow:inset 0 0 0 3px #00a0d2}.suggested-media-thumbnail{position:relative;display:block;float:left;width:16.66%;padding:16.66% 0 0 16.66%;background-position:center;background-repeat:no-repeat;-webkit-background-size:cover;background-size:cover;background-color:#d8d8d8;color:#fff;color:rgba(255,255,255,.6);cursor:pointer}.suggested-media-thumbnail:after,.suggested-media-thumbnail:before{display:inline-block;position:absolute;font-size:20px;line-height:1;text-decoration:inherit;font-weight:400;-webkit-transition:color .1s ease-in 0;transition:color .1s ease-in 0}.suggested-media-thumbnail:before{left:50%;top:50%;margin:-20px 0 0 -20px;font-size:40px}.suggested-media-thumbnail:after{content:"\f132";right:3%;bottom:2%}@media (min-width:601px){.media-list-inner-container{max-height:200px;max-height:18.75vw}.suggested-media-thumbnail{width:12.5%;padding:12.5% 0 0 12.5%}}.is-embed:before{content:"\f104";color:rgba(255,255,255,.9)}.is-embed.is-video{background-color:#23282d}.is-embed.is-video:active:before,.is-embed.is-video:focus:before,.is-embed.is-video:hover:before{color:rgba(255,255,255,.2)}.is-embed.is-video:before{content:"\f236"}.is-embed.is-audio{background-color:#ff7d44}.is-embed.is-audio:before{content:"\f127"}.is-embed.is-tweet{background-color:#55acee}.is-embed.is-tweet:before{content:"\f301"}.no-media{margin:0;padding:0;border:0}.press-this-actions{position:fixed;bottom:0;left:0;width:100%;background:#f1f1f1;background:rgba(241,241,241,.9);border-top:1px solid #e5e5e5}.add-media{float:left;margin:14px 0 14px 30px;font-size:0}@media (max-width:320px){.add-media{margin:10px 0 10px 10px}}.insert-media{color:#9ea7af;float:left;margin:0;padding:0;border:0;border-right:1px solid #e5e5e5;-webkit-border-radius:0;border-radius:0;background:0 0;-webkit-box-shadow:none;box-shadow:none;overflow:hidden}.insert-media:active,.insert-media:focus,.insert-media:hover{margin:0;background:0 0;border-color:#e5e5e5;color:#23282d}.insert-media:active,.insert-media:focus{outline:0;color:#00a0d2;text-decoration:none}.insert-media .dashicons{padding:11px;width:63px;height:58px;font-size:40px}@media (max-width:320px){.insert-media .dashicons{width:55px;height:49px;padding:14px;font-size:20px}}#wp-link-wrap,.post-actions{font-size:13px}.post-actions{float:right;margin:14px 30px 14px 0}@media (max-width:320px){.post-actions{margin:10px 10px 10px 0}}.edit-post-link{font-size:13px;display:inline-block;text-decoration:none;padding:0 10px}.publish-button .saving-draft,.publish-button.is-saving .publish{display:none}.publish-button.is-saving .saving-draft{display:inline}.editor .wp-media-buttons{float:none}.editor div.mce-toolbar-grp{padding:.71429em 0;background:0 0;border:0}@media (max-height:400px),(max-width:320px){.editor div.mce-toolbar-grp{padding:0}}.mce-stack-layout:after,.mce-stack-layout:before{content:"";display:table}.mce-container.mce-toolbar{float:left}.mce-container.mce-toolbar:nth-child(2){float:right}@media (max-width:600px){.mce-first .mce-btn:nth-child(3),.mce-first .mce-btn:nth-child(4){position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.mce-first .mce-btn:nth-child(3):focus,.mce-first .mce-btn:nth-child(4):focus{position:static;margin:1px;padding:inherit;height:auto;width:auto;overflow:visible;clip:auto;border:1px solid #999}}#wp-link-wrap input[type=text]{padding:3px 5px;margin:1px}@media screen and (max-width:782px){#wp-link-wrap{font-size:14px}#wp-link-wrap input[type=text]{padding:6px 10px}}#wp-link-wrap .howto{color:#666;font-style:italic}.options-panel{position:relative;float:right;margin-right:-320px;width:320px;border-left:1px solid #e5e5e5;font-size:14px;-webkit-box-shadow:5001px 5000px 0 5000px #fff,5000px 5000px 0 5000px #e5e5e5;box-shadow:5001px 5000px 0 5000px #fff,5000px 5000px 0 5000px #e5e5e5;outline:0}.options-panel-back{position:absolute;top:0;right:0;bottom:0;width:320px;outline:0}@media (max-width:900px){.press-this-actions{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);-webkit-transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out}.press-this-actions.is-hidden{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%)}.options-panel{background:#fff;-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);-webkit-transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out}.options-panel.is-hidden{visibility:hidden}.options-panel.is-off-screen{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}}@media (max-width:320px){.options-panel{margin-right:-100%;width:100%;border:0;-webkit-box-shadow:5001px 5000px 0 5000px #fff;box-shadow:5001px 5000px 0 5000px #fff}.options-panel-back{width:100%}}.post-options{background:#fff;position:absolute;right:0;width:100%;overflow-x:hidden}.post-options .post-option-contents{margin-left:3px;color:#32373c}.post-option-forward:before{position:absolute;top:50%;right:8px;margin-top:-10px;content:"\f345"}.post-option,.setting-modal,.setting-title{position:relative}.post-option-back:before{content:"\f341"}.lt-ie9 .options-panel,.lt-ie9 .post-options{border-left:1px solid #e5e5e5}.lt-ie9 .post-options.is-off-screen{border:0}.modal-close,.post-options .post-option{border-bottom:1px solid #e5e5e5;text-decoration:none;text-align:left}.post-options .post-option{display:block;padding:13px 37px 13px 14px;color:#9ea7af;transition:transform .3s ease-in-out}.post-options .post-option,.setting-modal{width:100%;overflow:hidden;-webkit-transition:-webkit-transform .3s ease-in-out}.post-options .post-option:focus{outline:0;-webkit-box-shadow:inset 5px 0 0 #00a0d2;box-shadow:inset 5px 0 0 #00a0d2}.is-off-screen>.post-option{right:100%}.is-hidden>.post-option{visibility:hidden}.post-option-title{display:inline-block;margin:0 0 0 8px;font-size:14px;font-weight:400}.setting-modal{top:0;left:0;transition:transform .3s ease-in-out}.setting-modal.is-hidden{visibility:hidden;height:0}.setting-modal.is-off-screen{left:100%}@media (min-width:1px){.is-off-screen>.post-option{right:auto;-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%)}.setting-modal.is-off-screen{left:0;-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%)}}.modal-close{display:block;width:100%;padding:13px 14px;color:#00a0d2}.modal-close:focus{outline:0;-webkit-box-shadow:inset 5px 0 0 #00a0d2;box-shadow:inset 5px 0 0 #00a0d2}.setting-title{top:-1px;margin-left:11px}#pressthis{color:#404040;resize:none;padding-top:30px;font-size:16px}.wp-editor-wrap .quicktags-toolbar{background:0 0;border:none}.wp-editor-wrap .wp-editor-tools{z-index:0}.wp-editor-wrap .wp-editor-tabs{padding:2px}.wp-editor-wrap .wp-switch-editor{top:0;margin:3px 0 0 5px;padding:3px 8px;background:#f5f5f5;color:#555;border-color:#ccc}.wp-editor-wrap .wp-switch-editor:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-editor-wrap.html-active .switch-html,.wp-editor-wrap.tmce-active .switch-tmce{background:#fff;border-color:#d8d8d8} \ No newline at end of file diff --git a/wp-admin/css/revisions-rtl.css b/wp-admin/css/revisions-rtl.css deleted file mode 100644 index 829044af67..0000000000 --- a/wp-admin/css/revisions-rtl.css +++ /dev/null @@ -1,575 +0,0 @@ -/*------------------------------------------------------------------------------ - 11.2 - Post Revisions -------------------------------------------------------------------------------*/ -.revisions-control-frame, -.revisions-diff-frame { - position: relative; -} - -.revisions-controls { - padding-top: 40px; - height: 100px; - z-index: 1; -} - -.revisions-controls input[type="checkbox"] { - position: relative; - top: -1px; - vertical-align: text-bottom; -} - -.revisions.pinned .revisions-controls { - position: fixed; - top: 0; - height: 82px; - background: #fff; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1); - box-shadow: 0 1px 3px rgba(0,0,0,0.1); -} - -.revisions-tickmarks { - position: relative; - margin: 0 auto; - height: 0.7em; - top: 7px; - max-width: 70%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - background-color: #fff; -} - -.revisions-tickmarks > div { - position: absolute; - height: 100%; - border-right: 1px solid #a0a5aa; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.revisions-tickmarks > div:first-child { - border-width: 0; -} - -.comparing-two-revisions .revisions-controls { - height: 140px; -} - -.comparing-two-revisions.pinned .revisions-controls { - height: 124px; -} - -.revisions .diff-error { - position: absolute; - text-align: center; - margin: 0 auto; - width: 100%; - display: none; -} - -.revisions.diff-error .diff-error { - display: block; -} - -.revisions .loading-indicator { - position: absolute; - vertical-align: middle; - opacity: 0; - width: 100%; - width: -webkit-calc( 100% - 30px ); - width: calc( 100% - 30px ); - top: 50%; - top: -webkit-calc( 50% - 10px ); - top: calc( 50% - 10px ); - -webkit-transition: opacity 0.5s; - transition: opacity 0.5s; - filter: alpha(opacity=0); /* ie8 and earlier */ -} - -body.folded .revisions .loading-indicator { - margin-right: -32px; -} - -.revisions .loading-indicator span.spinner { - display: block; - margin: 0 auto; - float: none; -} - -.revisions.loading .loading-indicator { - opacity: 1; - filter: alpha(opacity=100); /* ie8 and earlier */ -} - -.revisions .diff { - -webkit-transition: opacity 0.5s; - transition: opacity 0.5s; -} - -.revisions.loading .diff { - opacity: 0.5; - filter: alpha(opacity=50); /* ie8 and earlier */ -} - -.revisions.diff-error .diff { - visibility: hidden; -} - -.revisions-meta { - margin-top: 20px; - background-color: #fff; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1); - box-shadow: 0 1px 3px rgba(0,0,0,0.1); -} - -.revisions.pinned .revisions-meta { - -webkit-box-shadow: none; - box-shadow: none; -} - -.revision-toggle-compare-mode { - position: absolute; - top: 0; - left: 0; -} - -.comparing-two-revisions .revisions-previous, -.comparing-two-revisions .revisions-next, -.revisions-meta .diff-meta-to strong { - display: none; -} - -.revisions-controls .author-card .date { - color: #777; -} - -.revisions-controls .author-card.autosave { - color: #d54e21; -} - -.revisions-controls .author-card .author-name { - font-weight: bold; -} - -.comparing-two-revisions .diff-meta-to strong { - display: block; -} - -.revisions.pinned .revisions-buttons { - padding: 0 11px; -} - -.revisions-previous, -.revisions-next { - position: relative; - z-index: 1; -} - -.revisions-previous { - float: right; -} - -.revisions-next { - float: left; -} - -.revisions-controls .wp-slider { - max-width: 70%; - margin: 0 auto; - top: -3px; -} - -.revisions-diff { - padding: 15px; - background-color: #fff; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1); - box-shadow: 0 1px 3px rgba(0,0,0,0.1); -} - -.revisions-diff h3:first-child { - margin-top: 0; -} - -/* Revision meta box */ -.post-revisions li img, -#revisions-meta-restored img { - vertical-align: middle; -} - -table.diff tbody tr td:nth-child(2) { - width: 4%; -} - -table.diff { - table-layout: fixed; - width: 100%; - white-space: pre-wrap; -} - -table.diff col.content { - width: auto; -} - -table.diff col.content.diffsplit { - width: 48%; -} - -table.diff col.diffsplit.middle { - width: auto; -} - -table.diff col.ltype { - width: 30px; -} - -table.diff tr { - background-color: transparent; -} - -table.diff td, -table.diff th { - font-family: Consolas, Monaco, monospace; - font-size: 14px; - line-height: 1.618; - padding: .5em; - vertical-align: top; - word-wrap: break-word; -} - -table.diff td h1, -table.diff td h2, -table.diff td h3, -table.diff td h4, -table.diff td h5, -table.diff td h6 { - margin: 0; -} - -table.diff .diff-deletedline del, -table.diff .diff-addedline ins { - text-decoration: none; -} - -table.diff .diff-deletedline { - background-color: #ffe9e9; -} - -table.diff .diff-deletedline del { - background-color: #faa; -} - -table.diff .diff-addedline { - background-color: #e9ffe9; -} - -table.diff .diff-addedline ins { - background-color: #afa; -} - -.diff-meta { - padding: 5px; - clear: both; - min-height: 32px; -} - -.diff-title strong { - line-height: 32px; - min-width: 60px; - text-align: left; - float: right; - margin-left: 5px; -} - -.revisions-controls .author-card .author-info { - font-size: 12px; - line-height: 16px; -} - -.revisions-controls .author-card .avatar, -.revisions-controls .author-card .author-info { - float: right; - margin-right: 6px; - margin-left: 6px; -} - -.revisions-controls .author-card .byline { - display: block; - font-size: 12px; -} - -.revisions-controls .author-card .avatar { - vertical-align: middle; -} - -.diff-meta input.restore-revision { - float: left; - margin-right: 6px; - margin-left: 6px; - margin-top: 4px; -} - -.diff-meta-from { - display: none; -} - -.comparing-two-revisions .diff-meta-from { - display: block; -} - -.revisions-tooltip { - position: absolute; - bottom: 105px; - margin-left: 0; - margin-right: -69px; - z-index: 0; - max-width: 350px; - min-width: 130px; - padding: 8px 4px; - display: none; - opacity: 0; -} - -.revisions-tooltip.flipped { - margin-right: 0; - margin-left: -70px; -} - -.revisions.pinned .revisions-tooltip { - display: none !important; -} - -.comparing-two-revisions .revisions-tooltip { - bottom: 145px; -} - -.revisions-tooltip-arrow { - width: 70px; - height: 15px; - overflow: hidden; - position: absolute; - right: 0; - margin-right: 35px; - bottom: -15px; -} - -.revisions-tooltip.flipped .revisions-tooltip-arrow { - margin-right: 0; - margin-left: 35px; - right: auto; - left: 0; -} - -.revisions-tooltip-arrow > span { - content: ""; - position: absolute; - right: 20px; - top: -20px; - width: 25px; - height: 25px; - -webkit-transform: rotate(-45deg); - -ms-transform: rotate(-45deg); - transform: rotate(-45deg); -} - -.revisions-tooltip.flipped .revisions-tooltip-arrow > span { - right: auto; - left: 20px; -} - -.ie8 .revisions-tooltip-arrow > span { - right: 15px; - top: -25px; - -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)"; -} - -.ie8 .revisions-tooltip.flipped .revisions-tooltip-arrow > span { - left: 25px; -} - -.revisions-tooltip, -.revisions-tooltip-arrow > span { - border: 1px solid #d7d7d7; - background-color: #fff; -} - -.revisions-tooltip { - display: none; -} - -.arrow { - width: 70px; - height: 16px; - overflow: hidden; - position: absolute; - right: 0; - margin-right: -35px; - bottom: 90px; - z-index: 10000; -} - -.arrow:after { - z-index: 9999; - background-color: #fff; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1); - box-shadow: 0 1px 3px rgba(0,0,0,0.1); -} - -.arrow.top { - top: -16px; - bottom: auto; -} - -.arrow.left { - right: 20%; -} - -.arrow:after { - content: ""; - position: absolute; - right: 20px; - top: -20px; - width: 25px; - height: 25px; - -webkit-transform: rotate(-45deg); - -ms-transform: rotate(-45deg); - transform: rotate(-45deg); -} - -.revisions-tooltip, -.revisions-tooltip-arrow:after { - border-width: 1px; - border-style: solid; -} - -div.revisions-controls > .wp-slider > .ui-slider-handle { - margin-right: -10px; -} - -.rtl div.revisions-controls > .wp-slider > .ui-slider-handle { - margin-left: -10px; -} - -/* jQuery UI Slider */ -.wp-slider.ui-slider { - position: relative; - border: 1px solid #d7d7d7; - text-align: right; - cursor: pointer; -} - -.wp-slider .ui-slider-handle { - -webkit-border-radius: 50%; - border-radius: 50%; - height: 18px; - margin-top: -3px; - outline: none; - position: absolute; - width: 18px; - z-index: 2; - -ms-touch-action: none; - touch-action: none; -} - -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #00a0d2; - border: 1px solid #0073aa; - -webkit-box-shadow: inset 0 1px 0 #78c8e6, 0 1px 0 rgba(0,0,0,.15); - box-shadow: inset 0 1px 0 #78c8e6, 0 1px 0 rgba(0,0,0,.15); -} - -.wp-slider .ui-slider-handle:before { - background: none; - position: absolute; - top: 0; - right: 0; - color: #fff; - content: "\f229"; - font: normal 18px/1 'dashicons'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.wp-slider .ui-slider-handle.from-handle:before, -.wp-slider .ui-slider-handle.to-handle:before { - font-size: 20px !important; - margin: -1px -1px 0 0; -} - -.wp-slider .ui-slider-handle.from-handle:before { - content: '\f139'; -} - -.wp-slider .ui-slider-handle.to-handle:before { - content: '\f141'; -} - -.rtl .wp-slider .ui-slider-handle.from-handle:before { - content: '\f141'; -} - -.rtl .wp-slider .ui-slider-handle.to-handle:before { - content: '\f139'; - left: -1px; -} - -.wp-slider .ui-slider-range { - position: absolute; - font-size: .7em; - display: block; - border: 0; - background-color: transparent; - background-image: none; -} - -.wp-slider.ui-slider-horizontal { - height: .7em; -} - -.wp-slider.ui-slider-horizontal .ui-slider-handle { - top: -.25em; - margin-right: -.6em; -} - -.wp-slider.ui-slider-horizontal .ui-slider-range { - top: 0; - height: 100%; -} - -.wp-slider.ui-slider-horizontal .ui-slider-range-min { - right: 0; -} - -.wp-slider.ui-slider-horizontal .ui-slider-range-max { - left: 0; -} - -/* =Media Queries --------------------------------------------------------------- */ - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - .revision-tick.completed-false { - background-image: url(../images/spinner-2x.gif); - } -} - -@media screen and ( max-width: 782px ) { - #diff-next-revision, - #diff-previous-revision { - margin-top: -1em; - } - - table.diff { - -ms-word-break: break-all; - word-break: break-all; - word-wrap: break-word; - } -} diff --git a/wp-admin/css/revisions.css b/wp-admin/css/revisions.css deleted file mode 100644 index d2652e38d2..0000000000 --- a/wp-admin/css/revisions.css +++ /dev/null @@ -1,575 +0,0 @@ -/*------------------------------------------------------------------------------ - 11.2 - Post Revisions -------------------------------------------------------------------------------*/ -.revisions-control-frame, -.revisions-diff-frame { - position: relative; -} - -.revisions-controls { - padding-top: 40px; - height: 100px; - z-index: 1; -} - -.revisions-controls input[type="checkbox"] { - position: relative; - top: -1px; - vertical-align: text-bottom; -} - -.revisions.pinned .revisions-controls { - position: fixed; - top: 0; - height: 82px; - background: #fff; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1); - box-shadow: 0 1px 3px rgba(0,0,0,0.1); -} - -.revisions-tickmarks { - position: relative; - margin: 0 auto; - height: 0.7em; - top: 7px; - max-width: 70%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - background-color: #fff; -} - -.revisions-tickmarks > div { - position: absolute; - height: 100%; - border-left: 1px solid #a0a5aa; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.revisions-tickmarks > div:first-child { - border-width: 0; -} - -.comparing-two-revisions .revisions-controls { - height: 140px; -} - -.comparing-two-revisions.pinned .revisions-controls { - height: 124px; -} - -.revisions .diff-error { - position: absolute; - text-align: center; - margin: 0 auto; - width: 100%; - display: none; -} - -.revisions.diff-error .diff-error { - display: block; -} - -.revisions .loading-indicator { - position: absolute; - vertical-align: middle; - opacity: 0; - width: 100%; - width: -webkit-calc( 100% - 30px ); - width: calc( 100% - 30px ); - top: 50%; - top: -webkit-calc( 50% - 10px ); - top: calc( 50% - 10px ); - -webkit-transition: opacity 0.5s; - transition: opacity 0.5s; - filter: alpha(opacity=0); /* ie8 and earlier */ -} - -body.folded .revisions .loading-indicator { - margin-left: -32px; -} - -.revisions .loading-indicator span.spinner { - display: block; - margin: 0 auto; - float: none; -} - -.revisions.loading .loading-indicator { - opacity: 1; - filter: alpha(opacity=100); /* ie8 and earlier */ -} - -.revisions .diff { - -webkit-transition: opacity 0.5s; - transition: opacity 0.5s; -} - -.revisions.loading .diff { - opacity: 0.5; - filter: alpha(opacity=50); /* ie8 and earlier */ -} - -.revisions.diff-error .diff { - visibility: hidden; -} - -.revisions-meta { - margin-top: 20px; - background-color: #fff; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1); - box-shadow: 0 1px 3px rgba(0,0,0,0.1); -} - -.revisions.pinned .revisions-meta { - -webkit-box-shadow: none; - box-shadow: none; -} - -.revision-toggle-compare-mode { - position: absolute; - top: 0; - right: 0; -} - -.comparing-two-revisions .revisions-previous, -.comparing-two-revisions .revisions-next, -.revisions-meta .diff-meta-to strong { - display: none; -} - -.revisions-controls .author-card .date { - color: #777; -} - -.revisions-controls .author-card.autosave { - color: #d54e21; -} - -.revisions-controls .author-card .author-name { - font-weight: bold; -} - -.comparing-two-revisions .diff-meta-to strong { - display: block; -} - -.revisions.pinned .revisions-buttons { - padding: 0 11px; -} - -.revisions-previous, -.revisions-next { - position: relative; - z-index: 1; -} - -.revisions-previous { - float: left; -} - -.revisions-next { - float: right; -} - -.revisions-controls .wp-slider { - max-width: 70%; - margin: 0 auto; - top: -3px; -} - -.revisions-diff { - padding: 15px; - background-color: #fff; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1); - box-shadow: 0 1px 3px rgba(0,0,0,0.1); -} - -.revisions-diff h3:first-child { - margin-top: 0; -} - -/* Revision meta box */ -.post-revisions li img, -#revisions-meta-restored img { - vertical-align: middle; -} - -table.diff tbody tr td:nth-child(2) { - width: 4%; -} - -table.diff { - table-layout: fixed; - width: 100%; - white-space: pre-wrap; -} - -table.diff col.content { - width: auto; -} - -table.diff col.content.diffsplit { - width: 48%; -} - -table.diff col.diffsplit.middle { - width: auto; -} - -table.diff col.ltype { - width: 30px; -} - -table.diff tr { - background-color: transparent; -} - -table.diff td, -table.diff th { - font-family: Consolas, Monaco, monospace; - font-size: 14px; - line-height: 1.618; - padding: .5em; - vertical-align: top; - word-wrap: break-word; -} - -table.diff td h1, -table.diff td h2, -table.diff td h3, -table.diff td h4, -table.diff td h5, -table.diff td h6 { - margin: 0; -} - -table.diff .diff-deletedline del, -table.diff .diff-addedline ins { - text-decoration: none; -} - -table.diff .diff-deletedline { - background-color: #ffe9e9; -} - -table.diff .diff-deletedline del { - background-color: #faa; -} - -table.diff .diff-addedline { - background-color: #e9ffe9; -} - -table.diff .diff-addedline ins { - background-color: #afa; -} - -.diff-meta { - padding: 5px; - clear: both; - min-height: 32px; -} - -.diff-title strong { - line-height: 32px; - min-width: 60px; - text-align: right; - float: left; - margin-right: 5px; -} - -.revisions-controls .author-card .author-info { - font-size: 12px; - line-height: 16px; -} - -.revisions-controls .author-card .avatar, -.revisions-controls .author-card .author-info { - float: left; - margin-left: 6px; - margin-right: 6px; -} - -.revisions-controls .author-card .byline { - display: block; - font-size: 12px; -} - -.revisions-controls .author-card .avatar { - vertical-align: middle; -} - -.diff-meta input.restore-revision { - float: right; - margin-left: 6px; - margin-right: 6px; - margin-top: 4px; -} - -.diff-meta-from { - display: none; -} - -.comparing-two-revisions .diff-meta-from { - display: block; -} - -.revisions-tooltip { - position: absolute; - bottom: 105px; - margin-right: 0; - margin-left: -69px; - z-index: 0; - max-width: 350px; - min-width: 130px; - padding: 8px 4px; - display: none; - opacity: 0; -} - -.revisions-tooltip.flipped { - margin-left: 0; - margin-right: -70px; -} - -.revisions.pinned .revisions-tooltip { - display: none !important; -} - -.comparing-two-revisions .revisions-tooltip { - bottom: 145px; -} - -.revisions-tooltip-arrow { - width: 70px; - height: 15px; - overflow: hidden; - position: absolute; - left: 0; - margin-left: 35px; - bottom: -15px; -} - -.revisions-tooltip.flipped .revisions-tooltip-arrow { - margin-left: 0; - margin-right: 35px; - left: auto; - right: 0; -} - -.revisions-tooltip-arrow > span { - content: ""; - position: absolute; - left: 20px; - top: -20px; - width: 25px; - height: 25px; - -webkit-transform: rotate(45deg); - -ms-transform: rotate(45deg); - transform: rotate(45deg); -} - -.revisions-tooltip.flipped .revisions-tooltip-arrow > span { - left: auto; - right: 20px; -} - -.ie8 .revisions-tooltip-arrow > span { - left: 15px; - top: -25px; - -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)"; -} - -.ie8 .revisions-tooltip.flipped .revisions-tooltip-arrow > span { - right: 25px; -} - -.revisions-tooltip, -.revisions-tooltip-arrow > span { - border: 1px solid #d7d7d7; - background-color: #fff; -} - -.revisions-tooltip { - display: none; -} - -.arrow { - width: 70px; - height: 16px; - overflow: hidden; - position: absolute; - left: 0; - margin-left: -35px; - bottom: 90px; - z-index: 10000; -} - -.arrow:after { - z-index: 9999; - background-color: #fff; - -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1); - box-shadow: 0 1px 3px rgba(0,0,0,0.1); -} - -.arrow.top { - top: -16px; - bottom: auto; -} - -.arrow.left { - left: 20%; -} - -.arrow:after { - content: ""; - position: absolute; - left: 20px; - top: -20px; - width: 25px; - height: 25px; - -webkit-transform: rotate(45deg); - -ms-transform: rotate(45deg); - transform: rotate(45deg); -} - -.revisions-tooltip, -.revisions-tooltip-arrow:after { - border-width: 1px; - border-style: solid; -} - -div.revisions-controls > .wp-slider > .ui-slider-handle { - margin-left: -10px; -} - -.rtl div.revisions-controls > .wp-slider > .ui-slider-handle { - margin-right: -10px; -} - -/* jQuery UI Slider */ -.wp-slider.ui-slider { - position: relative; - border: 1px solid #d7d7d7; - text-align: left; - cursor: pointer; -} - -.wp-slider .ui-slider-handle { - -webkit-border-radius: 50%; - border-radius: 50%; - height: 18px; - margin-top: -3px; - outline: none; - position: absolute; - width: 18px; - z-index: 2; - -ms-touch-action: none; - touch-action: none; -} - -.wp-slider .ui-slider-handle, -.wp-slider .ui-slider-handle.ui-state-hover, -.wp-slider .ui-slider-handle.focus { - background: #00a0d2; - border: 1px solid #0073aa; - -webkit-box-shadow: inset 0 1px 0 #78c8e6, 0 1px 0 rgba(0,0,0,.15); - box-shadow: inset 0 1px 0 #78c8e6, 0 1px 0 rgba(0,0,0,.15); -} - -.wp-slider .ui-slider-handle:before { - background: none; - position: absolute; - top: 0; - left: 0; - color: #fff; - content: "\f229"; - font: normal 18px/1 'dashicons'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.wp-slider .ui-slider-handle.from-handle:before, -.wp-slider .ui-slider-handle.to-handle:before { - font-size: 20px !important; - margin: -1px 0 0 -1px; -} - -.wp-slider .ui-slider-handle.from-handle:before { - content: '\f139'; -} - -.wp-slider .ui-slider-handle.to-handle:before { - content: '\f141'; -} - -.rtl .wp-slider .ui-slider-handle.from-handle:before { - content: '\f141'; -} - -.rtl .wp-slider .ui-slider-handle.to-handle:before { - content: '\f139'; - right: -1px; -} - -.wp-slider .ui-slider-range { - position: absolute; - font-size: .7em; - display: block; - border: 0; - background-color: transparent; - background-image: none; -} - -.wp-slider.ui-slider-horizontal { - height: .7em; -} - -.wp-slider.ui-slider-horizontal .ui-slider-handle { - top: -.25em; - margin-left: -.6em; -} - -.wp-slider.ui-slider-horizontal .ui-slider-range { - top: 0; - height: 100%; -} - -.wp-slider.ui-slider-horizontal .ui-slider-range-min { - left: 0; -} - -.wp-slider.ui-slider-horizontal .ui-slider-range-max { - right: 0; -} - -/* =Media Queries --------------------------------------------------------------- */ - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - .revision-tick.completed-false { - background-image: url(../images/spinner-2x.gif); - } -} - -@media screen and ( max-width: 782px ) { - #diff-next-revision, - #diff-previous-revision { - margin-top: -1em; - } - - table.diff { - -ms-word-break: break-all; - word-break: break-all; - word-wrap: break-word; - } -} diff --git a/wp-admin/css/site-icon-rtl.css b/wp-admin/css/site-icon-rtl.css deleted file mode 100644 index e76bd426a9..0000000000 --- a/wp-admin/css/site-icon-rtl.css +++ /dev/null @@ -1,37 +0,0 @@ -/*------------------------------------------------------------------------------ - 28.0 - Site Icon -------------------------------------------------------------------------------*/ - -.site-icon-preview .favicon-preview { - margin: 5px 0 20px; - overflow: hidden; - position: relative; - max-width: 180px; -} - -.site-icon-preview .favicon, -.site-icon-preview .browser-title { - height: 16px; - right: 88px; - overflow: hidden; - position: absolute; - top: 16px; -} - -.site-icon-preview .favicon { - width: 16px; -} - -.site-icon-preview .browser-title { - right: 109px; -} - -.site-icon-preview .app-icon-preview { - background-color: #000; - -webkit-border-radius: 16px; - border-radius: 16px; - height: 64px; - overflow: hidden; - width: 64px; - margin-top: 5px; -} diff --git a/wp-admin/css/site-icon.css b/wp-admin/css/site-icon.css deleted file mode 100644 index a612e0eaaa..0000000000 --- a/wp-admin/css/site-icon.css +++ /dev/null @@ -1,37 +0,0 @@ -/*------------------------------------------------------------------------------ - 28.0 - Site Icon -------------------------------------------------------------------------------*/ - -.site-icon-preview .favicon-preview { - margin: 5px 0 20px; - overflow: hidden; - position: relative; - max-width: 180px; -} - -.site-icon-preview .favicon, -.site-icon-preview .browser-title { - height: 16px; - left: 88px; - overflow: hidden; - position: absolute; - top: 16px; -} - -.site-icon-preview .favicon { - width: 16px; -} - -.site-icon-preview .browser-title { - left: 109px; -} - -.site-icon-preview .app-icon-preview { - background-color: #000; - -webkit-border-radius: 16px; - border-radius: 16px; - height: 64px; - overflow: hidden; - width: 64px; - margin-top: 5px; -} diff --git a/wp-admin/css/themes-rtl.css b/wp-admin/css/themes-rtl.css deleted file mode 100644 index ba7003c518..0000000000 --- a/wp-admin/css/themes-rtl.css +++ /dev/null @@ -1,1740 +0,0 @@ -/*------------------------------------------------------------------------------ - 16.0 - Themes -------------------------------------------------------------------------------*/ - - -/*------------------------------------------------------------------------------ - 16.1 - Manage Themes -------------------------------------------------------------------------------*/ - -.theme-browser .themes { - clear: both; - padding: 0 0 100px; -} - -.themes-php .wrap h1 { - float: right; - margin-bottom: 15px; -} - -.network-admin.themes-php .wrap h1 { - margin-bottom: 0; -} - -.themes-php .wrap h1 .button { - margin-right: 20px; -} - -/* Search form */ -.themes-php .wp-filter-search { - position: relative; - top: -2px; - right: 20px; - margin: 0; - width: 280px; - font-size: 16px; - font-weight: 300; - line-height: 1.5; -} - -/* Position admin messages */ -.themes-php div.updated, -.themes-php div.error, -.themes-php div.notice { - margin: 0 0 20px 0; - clear: both; -} - -.themes-php div.updated a { - text-decoration: underline; -} - -/** - * Main theme element - * (has flexible margins) - */ -.theme-browser .theme { - cursor: pointer; - float: right; - margin: 0 0 4% 4%; - position: relative; - width: 30.6%; - border: 1px solid #dedede; - -webkit-box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); - box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.ie8 .theme-browser .theme { - width: 30%; - margin: 0 0 4% 3%; -} - -.theme-browser .theme:nth-child(3n) { - margin-left: 0; -} - -.theme-browser .theme:hover, -.theme-browser .theme:focus { - cursor: pointer; -} - -.theme-browser .theme .theme-name { - font-size: 15px; - font-weight: 600; - height: 18px; - margin: 0; - padding: 15px; - -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.1); - box-shadow: inset 0 1px 0 rgba(0,0,0,0.1); - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - background: #fff; - background: rgba(255,255,255,0.65); -} - -/* Activate and Customize buttons, shown on hover and focus */ -.theme-browser .theme .theme-actions { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - opacity: 0; - -webkit-transition: opacity 0.1s ease-in-out; - transition: opacity 0.1s ease-in-out; - position: absolute; - bottom: 0; - left: 0; - height: 38px; - padding: 9px 10px 0 10px; - background: rgba(244, 244, 244, 0.7); - border-right: 1px solid rgba(0,0,0,0.05); -} - -.theme-browser .theme:hover .theme-actions, -.theme-browser .theme.focus .theme-actions, -.theme-browser .theme:focus .theme-actions { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - opacity: 1; -} - -.theme-browser .theme .theme-actions .button-primary { - margin-left: 3px; -} - -.theme-browser .theme .theme-actions .button-secondary { - float: none; - margin-right: 3px; -} - -/** - * Theme Screenshot - * - * Has a fixed aspect ratio of 1.5 to 1 regardless of screenshot size - * It is also responsive. - */ -.theme-browser .theme .theme-screenshot { - display: block; - overflow: hidden; - position: relative; - -webkit-transition: opacity 0.2s ease-in-out; - transition: opacity 0.2s ease-in-out; -} - -.theme-browser .theme .theme-screenshot:after { - content: ''; - display: block; - padding-top: 66.66666%; /* using a 3/2 aspect ratio */ -} - -.theme-browser .theme .theme-screenshot img { - height: auto; - position: absolute; - right: 0; - top: 0; - width: 100%; - -webkit-transition: opacity 0.2s ease-in-out; - transition: opacity 0.2s ease-in-out; -} - -.theme-browser .theme:hover .theme-screenshot, -.theme-browser .theme:focus .theme-screenshot { - background: #fff; -} - -.theme-browser.rendered .theme:hover .theme-screenshot img, -.theme-browser.rendered .theme:focus .theme-screenshot img { - opacity: 0.4; -} - -.theme-browser .theme .more-details { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - opacity: 0; - position: absolute; - top: 35%; - left: 25%; - right: 25%; - background: #23282d; - background: rgba(0,0,0,0.7); - color: #fff; - font-size: 15px; - text-shadow: 0 1px 0 rgba(0,0,0,0.6); - -webkit-font-smoothing: antialiased; - font-weight: 600; - padding: 15px 12px; - text-align: center; - -webkit-border-radius: 3px; - border-radius: 3px; - -webkit-transition: opacity 0.1s ease-in-out; - transition: opacity 0.1s ease-in-out; -} - -.theme-browser .theme:focus { - border-color: #5b9dd9; - -webkit-box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); - box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); -} - -.theme-browser .theme:focus .more-details { - opacity: 1; -} - -/* Current theme needs to have its action always on view */ -.theme-browser .theme.active:focus .theme-actions { - display: block; -} - -.theme-browser.rendered .theme:hover .more-details, -.theme-browser.rendered .theme:focus .more-details { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - opacity: 1; -} - -/** - * Displays a theme update notice - * when an update is available. - */ -.theme-browser .theme .theme-update, -.theme-browser .theme .theme-installed { - background: #d54e21; - background: rgba(213, 78, 33, 0.95); - color: #fff; - display: block; - font-size: 13px; - font-weight: 400; - height: 48px; - line-height: 48px; - padding: 0 10px; - position: absolute; - top: 0; - left: 0; - right: 0; - border-bottom: 1px solid rgba(0,0,0,0.25); - overflow: hidden; -} - -.theme-browser .theme .theme-update:before, -.theme-browser .theme .theme-installed:before { - content: '\f463'; - display: inline-block; - font: normal 20px/1 'dashicons'; - margin: 0 0 0 6px; - opacity: 0.8; - position: relative; - top: 5px; - speak: none; - -webkit-font-smoothing: antialiased; -} - - -/** - * The currently active theme - */ -.theme-browser .theme.active .theme-name { - background: #2f2f2f; - color: #fff; - padding-left: 110px; - font-weight: 300; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.5); - box-shadow: inset 0 1px 1px rgba(0,0,0,0.5); -} - -.theme-browser .customize-control .theme.active .theme-name { - padding-left: 15px; -} - -.theme-browser .theme.active .theme-name span { - font-weight: 600; -} - -.theme-browser .theme.active .theme-actions { - background: rgba(49,49,49,0.7); - border-right: none; - opacity: 1; -} - -.theme-browser .theme.active .theme-actions .button-primary { - margin-left: 0; -} - -.theme-browser .theme .theme-author { - background: #23282d; - color: #eee; - display: none; - font-size: 14px; - margin: 0 10px; - padding: 5px 10px; - position: absolute; - bottom: 56px; -} - -.theme-browser .theme.display-author .theme-author { - display: block; -} - -.theme-browser .theme.display-author .theme-author a { - color: inherit; - text-decoration: none; -} - -/** - * Add new theme - */ -.theme-browser .theme.add-new-theme { - border: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.theme-browser .theme.add-new-theme a { - color: #999; - text-decoration: none; - display: block; - position: relative; - z-index: 1; -} - -.theme-browser .theme.add-new-theme a:after { - display: block; - content: ''; - background: transparent; - background: rgba(0, 0, 0, 0); - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; - padding: 0; - text-shadow: none; - border: 5px dashed #d5d2ca; - border: 5px dashed rgba(0, 0, 0, 0.1); - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.theme-browser .theme.add-new-theme span:after { - background: #e5e5e5; - background: rgba(153, 153, 153, 0.1); - -webkit-border-radius: 50%; - border-radius: 50%; - display: inline-block; - content: '\f132'; - -webkit-font-smoothing: antialiased; - font: normal 74px/115px 'dashicons'; - width: 100px; - height: 100px; - vertical-align: middle; - text-align: center; - color: rgb(153, 153, 153); - position: absolute; - top: 30%; - right: 50%; - margin-right: -50px; - text-indent: -4px; - padding: 0; - text-shadow: none; - z-index:4; -} - -.rtl .theme-browser .theme.add-new-theme span:after { - text-indent: 4px; -} - -.theme-browser .theme.add-new-theme a:hover .theme-screenshot, -.theme-browser .theme.add-new-theme a:focus .theme-screenshot { - background: none; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - background: #fff; - color: #0073aa; -} - -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - border-color: transparent; - color: #fff; - background: #0073aa; - content: ''; -} - -.theme-browser .theme.add-new-theme .theme-name { - background: none; - text-align: center; - -webkit-box-shadow: none; - box-shadow: none; - font-weight: 400; - position: relative; - top: 0; - margin-top: -18px; - padding-top: 0; - padding-bottom: 48px; -} - -.theme-browser .theme.add-new-theme a:hover .theme-name, -.theme-browser .theme.add-new-theme a:focus .theme-name { - color: #fff; - z-index: 2; -} - -/** - * Theme Overlay - * Shown when clicking a theme - */ -.theme-overlay .theme-backdrop { - position: absolute; - right: -20px; - left: 0; - top: 0; - bottom: 0; - background: #f1f1f1; - background: rgba( 238, 238, 238, 0.9 ); - z-index: 10000; /* Over WP Pointers. */ -} - -.theme-overlay .theme-header { - position: absolute; - top: 0; - right: 0; - left: 0; - height: 48px; - border-bottom: 1px solid #ddd; -} - -.theme-overlay .theme-header button { - padding: 0; -} - -.theme-overlay .theme-header .close { - cursor: pointer; - height: 48px; - width: 50px; - text-align: center; - float: left; - border: 0; - border-right: 1px solid #ddd; - background-color: transparent; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; -} - -.theme-overlay .theme-header .close:before { - font: normal 22px/50px 'dashicons' !important; - color: #777; - display: inline-block; - content: '\f335'; - font-weight: 300; -} - -/* Left and right navigation */ -.theme-overlay .theme-header .right, -.theme-overlay .theme-header .left { - cursor: pointer; - color: #777; - background-color: transparent; - height: 48px; - width: 54px; - float: right; - text-align: center; - border: 0; - border-left: 1px solid #ddd; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; -} - -.theme-overlay .theme-header .close:focus, -.theme-overlay .theme-header .close:hover, -.theme-overlay .theme-header .right:focus, -.theme-overlay .theme-header .right:hover, -.theme-overlay .theme-header .left:focus, -.theme-overlay .theme-header .left:hover { - background: #ddd; - border-color: #ccc; - color: #000; -} - -.theme-overlay .theme-header .close:focus:before, -.theme-overlay .theme-header .close:hover:before { - color: #000; -} - -.theme-overlay .theme-header .close:focus, -.theme-overlay .theme-header .right:focus, -.theme-overlay .theme-header .left:focus { - -webkit-box-shadow: none; - box-shadow: none; - outline: none; -} - -.theme-overlay .theme-header .left.disabled, -.theme-overlay .theme-header .right.disabled, -.theme-overlay .theme-header .left.disabled:hover, -.theme-overlay .theme-header .right.disabled:hover { - color: #ccc; - background: inherit; - cursor: inherit; -} - -.theme-overlay .theme-header .right:before, -.theme-overlay .theme-header .left:before { - font: normal 20px/50px 'dashicons' !important; - display: inline; - font-weight: 300; -} - -.theme-overlay .theme-header .left:before { - content: "\f345"; -} - -.theme-overlay .theme-header .right:before { - content: "\f341"; -} - -.theme-overlay .theme-wrap { - clear: both; - position: fixed; - top: 9%; - right: 190px; - left: 30px; - bottom: 3%; - background: #fff; - -webkit-box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1); - box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1); - z-index: 10000; /* Over WP Pointers. */ - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - -webkit-overflow-scrolling: touch; -} - -.theme-overlay .theme-wrap:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -body.folded .theme-overlay .theme-wrap { - right: 70px; -} - -.theme-overlay .theme-about { - position: absolute; - top: 49px; - bottom: 57px; - right: 0; - left: 0; - overflow: auto; - padding: 2% 4%; -} -.theme-overlay .theme-about:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -.theme-overlay .theme-actions { - position: absolute; - text-align: center; - bottom: 0; - right: 0; - left: 0; - padding: 10px 25px 5px; - background: #f3f3f3; - z-index: 30; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - border-top: 1px solid #eee; -} - -.ie8 .theme-overlay .theme-actions { - border: 1px solid #eee; -} - -.theme-overlay .theme-actions a { - margin-left: 5px; - margin-bottom: 5px; -} - -/* Hide-if-customize for items we can't add classes to */ -.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"], -.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"] { - display: none; -} - -.broken-themes a.delete-theme, -.theme-overlay .theme-actions .delete-theme { - color: #a00; - text-decoration: none; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - background: transparent; -} - -.theme-overlay .theme-actions .delete-theme { - position: absolute; - left: 10px; - bottom: 5px; -} - -.broken-themes a.delete-theme:hover, -.broken-themes a.delete-theme:focus, -.theme-overlay .theme-actions .delete-theme:hover, -.theme-overlay .theme-actions .delete-theme:focus { - background: #d54e21; - color: #fff; - border-color: #d54e21; -} - -.theme-overlay .theme-actions .active-theme, -.theme-overlay.active .theme-actions .inactive-theme { - display: none; -} - -.theme-overlay .theme-actions .inactive-theme, -.theme-overlay.active .theme-actions .active-theme { - display: block; -} - -/** - * Theme Screenshots gallery - */ -.theme-overlay .theme-screenshots { - float: right; - margin: 0 0 0 30px; - width: 55%; - max-width: 880px; - text-align: center; -} - -/* First screenshot, shown big */ -.theme-overlay .screenshot { - border: 1px solid #fff; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - overflow: hidden; - position: relative; - -webkit-box-shadow: 0 0 0 1px rgba(0,0,0,0.2); - box-shadow: 0 0 0 1px rgba(0,0,0,0.2); -} - -.theme-overlay .screenshot:after { - content: ''; - display: block; - padding-top: 75%; /* using a 4/3 aspect ratio */ -} - -.theme-overlay .screenshot img { - height: auto; - position: absolute; - right: 0; - top: 0; - width: 100%; -} -/* Handles old 300px screenshots */ -.theme-overlay.small-screenshot .theme-screenshots { - position: absolute; - width: 302px; -} -.theme-overlay.small-screenshot .theme-info { - margin-right: 350px; - width: auto; -} - -/* Other screenshots, shown small and square */ -.theme-overlay .screenshot.thumb { - background: #ccc; - border: 1px solid #eee; - float: none; - display: inline-block; - margin: 10px 5px 0; - width: 140px; - height: 80px; - cursor: pointer; -} - -.theme-overlay .screenshot.thumb:after { - content: ''; - display: block; - padding-top: 100%; /* using a 1/1 aspect ratio */ -} - -.theme-overlay .screenshot.thumb img { - cursor: pointer; - height: auto; - position: absolute; - right: 0; - top: 0; - width: 100%; - height: auto; -} - -.theme-overlay .screenshot.selected { - background: transparent; - border: 2px solid #00a0d2; -} - -.theme-overlay .screenshot.selected img { - opacity: 0.8; -} - -/* No screenshot placeholder */ -.theme-browser .theme .theme-screenshot.blank, -.theme-overlay .screenshot.blank { - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=); -} - -/** - * Theme heading information - */ -.theme-overlay .theme-info { - width: 40%; - float: right; -} - -.theme-overlay .current-label { - background: #32373c; - color: #fff; - font-size: 11px; - display: inline-block; - padding: 2px 8px; - -webkit-border-radius: 2px; - border-radius: 2px; - margin: 0 0 -10px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.theme-overlay .theme-name { - color: #23282d; - font-size: 32px; - font-weight: 100; - margin: 10px 0 0; - line-height: 1.3; -} - -.theme-overlay .theme-version { - color: #999; - font-size: 13px; - font-weight: 400; - float: none; - display: inline-block; - margin-right: 10px; -} - -.theme-overlay .theme-author { - color: #686868; - font-size: 16px; - font-weight: 400; - margin: 15px 0 25px; -} - -.theme-overlay .theme-author a { - text-decoration: none; -} - -.theme-overlay .theme-description { - color: #555; - font-size: 15px; - font-weight: 400; - line-height: 1.5; - margin: 30px 0 0 0; -} - -.theme-overlay .theme-tags { - border-top: 3px solid #eee; - color: #82878c; - font-size: 13px; - font-weight: 400; - margin: 30px 0 0 0; - padding-top: 20px; -} - -.theme-overlay .theme-tags span { - color: #444; - font-weight: bold; - margin-left: 5px; -} - -/* Theme Updates info */ -.theme-overlay .theme-update-message { - background: #fef7f1; - border: 1px solid #eee; - border-right: 4px solid #d54e21; - -webkit-border-radius: 3px; - border-radius: 3px; - padding: 5px 20px 10px; -} - -.theme-overlay .theme-update { - color: #23282d; - font-size: 18px; - display: inline-block; - line-height: 40px; - margin: 0; -} - -.theme-overlay .parent-theme { - background: #f7fcfe; - border: 1px solid #eee; - border-right: 4px solid #00a0d2; - font-size: 14px; - font-weight: normal; - margin-top: 30px; - padding: 10px 20px 10px 10px; -} - -.theme-overlay .parent-theme strong { - font-weight: 700; -} - -/** - * Single Theme Mode - * Displays detailed view inline when a user has no switch capabilities - */ -.single-theme .theme-overlay .theme-backdrop, -.single-theme .theme-overlay .theme-header, -.single-theme .theme { - display: none; -} - -.single-theme .theme-overlay .theme-wrap { - clear: both; - min-height: 330px; - position: relative; - right: auto; - left: auto; - top: auto; - bottom: auto; - z-index: 10; -} - -.single-theme .theme-overlay .theme-about { - padding: 30px 30px 70px; - position: static; -} - -.single-theme .theme-overlay .theme-actions { - position: absolute; -} - -/** - * Basic Responsive structure... - * - * Shuffles theme columns around based on screen width - */ - -@media only screen and (min-width: 2000px) { - #wpwrap .theme-browser .theme { - width: 17.6%; - margin: 0 0 3% 3%; - } - - #wpwrap .theme-browser .theme:nth-child(3n), - #wpwrap .theme-browser .theme:nth-child(4n) { - margin-left: 3%; - } - - #wpwrap .theme-browser .theme:nth-child(5n) { - margin-left: 0; - } -} - -@media only screen and (min-width: 1680px) { - .theme-overlay .theme-wrap { - width: 1450px; - margin: 0 auto; - } -} - -/* Maximum screenshot width reaches 440px */ -@media only screen and (min-width: 1640px) { - .theme-browser .theme { - width: 22.7%; - margin: 0 0 3% 3%; - } - .theme-browser .theme .theme-screenshot:after { - padding-top: 75%; /* using a 4/3 aspect ratio */ - } - - .theme-browser .theme:nth-child(3n) { - margin-left: 3%; - } - - .theme-browser .theme:nth-child(4n) { - margin-left: 0; - } -} -/* Maximum screenshot width reaches 440px */ -@media only screen and (max-width: 1120px) { - .theme-browser .theme { - width: 47.5%; - margin-left: 0; - } - - .theme-browser .theme:nth-child(even) { - margin-left: 0; - } - - .theme-browser .theme:nth-child(odd) { - margin-left: 5%; - } -} - -/* Admin menu is folded */ -@media only screen and (max-width: 900px) { - .theme-overlay .theme-wrap { - right: 65px; - } -} - -@media only screen and (max-width: 780px) { - body.folded .theme-overlay .theme-wrap, - .theme-overlay .theme-wrap { - top: 0; /* The adminmenu isn't fixed on mobile, so this can use the full viewport height */ - left: 0; - bottom: 0; - right: 0; - padding: 70px 20px 20px; - border: none; - z-index: 100000; /* should overlap #wpadminbar. */ - position: fixed; - } - - .theme-browser .theme.active .theme-name span { - /* Hide the "Active: " label on smaller screens. */ - display: none; - } - - .theme-overlay .theme-screenshots { - width: 40%; - } - - .theme-overlay .theme-info { - width: 50%; - } - .single-theme .theme-wrap { - padding: 10px; - } - - .theme-browser .theme .theme-actions { - padding: 5px 10px 4px 10px; - } - - .theme-overlay.small-screenshot .theme-screenshots { - position: static; - float: none; - max-width: 302px; - } - - .theme-overlay.small-screenshot .theme-info { - margin-right: 0; - width: auto; - } - - .theme:not(.active):hover .theme-actions, - .theme:not(.active):focus .theme-actions, - .theme:hover .more-details, - .theme:focus .more-details { - display: none; - } - - .theme-browser.rendered .theme:hover .theme-screenshot img, - .theme-browser.rendered .theme:focus .theme-screenshot img { - opacity: 1.0; - } -} - -@media only screen and (max-width: 480px) { - .theme-browser .theme { - width: 100%; - margin-left: 0; - } - - .theme-browser .theme:nth-child(2n), - .theme-browser .theme:nth-child(3n) { - margin-left: 0; - } -} - -@media only screen and (max-width: 650px) { - .theme-overlay .theme-update, - .theme-overlay .theme-description { - margin-right: 0; - } - - .theme-overlay .theme-actions .delete-theme { - position: relative; - left: auto; - bottom: auto; - } - - .theme-overlay .theme-actions .inactive-theme { - display: inline; - } - - .theme-overlay .theme-screenshots { - width: 100%; - float: none; - } - - .theme-overlay .theme-info { - width: 100%; - } - - .theme-overlay .theme-author { - margin: 5px 0 15px 0; - } - - .theme-overlay .current-label { - margin-top: 10px; - font-size: 13px; - } - - .themes-php .wp-filter-search { - float: none; - clear: both; - right: 0; - top: 0; - left: 0; - margin: 10px 0; - width: 100%; - max-width: 280px; - } - - .theme-browser .theme.add-new-theme span:after { - font: normal 60px/90px 'dashicons'; - width: 80px; - height: 80px; - top: 30%; - right: 50%; - text-indent: 0; - margin-right: -40px; - } - - .single-theme .theme-wrap { - margin: 0 -10px 0 -12px; - padding: 10px; - } - .single-theme .theme-overlay .theme-about { - padding: 10px; - overflow: visible; - } - .single-theme .current-label { - display: none; - } - .single-theme .theme-overlay .theme-actions { - position: static; - } -} - -.broken-themes { - clear: both; -} - -.broken-themes table { - text-align: right; - width: 50%; - border-spacing: 3px; - padding: 3px; -} - - -/*------------------------------------------------------------------------------ - 16.2 - Install Themes -------------------------------------------------------------------------------*/ - -/* Already installed theme */ -.theme-browser .theme .theme-installed { - background: #0073aa; -} -.theme-browser .theme .theme-installed:before { - content: '\f147'; -} -.theme-browser .theme.is-installed .theme-actions .button-primary { - display: none !important; -} - -.theme-install-php .wp-filter { - padding: 0 20px; -} - -.theme-install-php a.upload, -.theme-install-php a.browse-themes { - cursor: pointer; -} -.theme-install-php a.browse-themes, -.theme-install-php.show-upload-theme a.upload { - display: none; -} -.theme-install-php.show-upload-theme a.browse-themes { - display: inline; -} -.upload-theme, -.upload-plugin { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - display: none; - margin: 0; - padding: 0; - width: 100%; - overflow: hidden; - position: relative; - top: 10px; -} -body.show-upload-theme .upload-theme, -.upload-plugin { - display: block; -} -.upload-theme .wp-upload-form, -.upload-plugin .wp-upload-form { - background: #fafafa; - border: 1px solid #e5e5e5; - padding: 30px; - margin: 30px auto; - max-width: 380px; -} -.upload-theme .install-help, -.upload-plugin .install-help { - color: #999; - font-size: 18px; - font-style: normal; - margin: 0; - padding: 40px 0 0; - text-align: center; -} -body.show-upload-theme .upload-theme + .wp-filter, -body.show-upload-theme .upload-theme + .wp-filter + .theme-browser { - display: none; -} - -p.no-themes { - clear: both; - color: #666; - font-size: 18px; - font-style: normal; - margin: 0; - padding: 0; - text-align: center; - display: none; -} -body.no-results p.no-themes { - display: block; -} -body.show-upload-theme p.no-themes { - display: none !important; -} - -.theme-install-php .add-new-theme { - display: none !important; -} - -@media only screen and (max-width: 1120px) { - .upload-theme .wp-upload-form { - margin: 20px 0; - max-width: 100%; - } - .upload-theme .install-help { - font-size: 15px; - padding: 20px 0 0; - text-align: right; - } -} - -.theme-details .star-rating { - margin: 15px 0 0; -} - -.theme-details .star-rating span:before { - color: #ffb900; - content: "\f154"; - display: inline-block; - -webkit-font-smoothing: antialiased; - font: normal 20px/1 'dashicons'; - vertical-align: top; -} - -/* Half stars */ -.star-rating.rating-10 span.one:before, -.star-rating.rating-30 span.two:before, -.star-rating.rating-50 span.three:before, -.star-rating.rating-70 span.four:before, -.star-rating.rating-90 span.five:before { - content: "\f459"; -} - -/* Full stars */ -.star-rating.rating-20 span.one:before, -.star-rating.rating-30 span.one:before, -.star-rating.rating-40 span.one:before, -.star-rating.rating-40 span.two:before, -.star-rating.rating-50 span.one:before, -.star-rating.rating-50 span.two:before, -.star-rating.rating-60 span.one:before, -.star-rating.rating-60 span.two:before, -.star-rating.rating-60 span.three:before, -.star-rating.rating-70 span.one:before, -.star-rating.rating-70 span.two:before, -.star-rating.rating-70 span.three:before, -.star-rating.rating-80 span.one:before, -.star-rating.rating-80 span.two:before, -.star-rating.rating-80 span.three:before, -.star-rating.rating-80 span.four:before, -.star-rating.rating-90 span.one:before, -.star-rating.rating-90 span.two:before, -.star-rating.rating-90 span.three:before, -.star-rating.rating-90 span.four:before, -.star-rating.rating-100 > span:before { - content: "\f155"; -} - -.theme-details .star-rating .ratings { - display: block; - line-height: 20px; - color: #999; -} - -/*------------------------------------------------------------------------------ - 16.3 - Custom Header Screen -------------------------------------------------------------------------------*/ - -.appearance_page_custom-header #headimg { - border: 1px solid #DFDFDF; - overflow: hidden; - width: 100%; -} - -.appearance_page_custom-header #upload-form p label { - font-size: 12px; -} - -.appearance_page_custom-header .available-headers .default-header { - float: right; - margin: 0 0 20px 20px; -} - -.appearance_page_custom-header .random-header { - clear: both; - margin: 0 0 20px 20px; - vertical-align: middle; -} - -.appearance_page_custom-header .available-headers label input, -.appearance_page_custom-header .random-header label input { - margin-left: 10px; -} - -.appearance_page_custom-header .available-headers label img { - vertical-align: middle; -} - - -/*------------------------------------------------------------------------------ - 16.4 - Custom Background Screen -------------------------------------------------------------------------------*/ - -div#custom-background-image { - min-height: 100px; - border: 1px solid #dfdfdf; -} - -div#custom-background-image img { - max-width: 400px; - max-height: 300px; -} - -/*------------------------------------------------------------------------------ - 23.0 - Full Overlay w/ Sidebar -------------------------------------------------------------------------------*/ - -body.full-overlay-active { - overflow: hidden; -} - -.wp-full-overlay { - background: transparent; - z-index: 500000; - position: fixed; - overflow: visible; - top: 0; - bottom: 0; - right: 0; - left: 0; - height: 100%; - min-width: 0; -} - -.wp-full-overlay-sidebar { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - position: fixed; - width: 300px; - height: 100%; - top: 0; - bottom: 0; - right: 0; - padding: 0; - margin: 0; - z-index: 10; - background: #eee; - border-left: none; -} - -.wp-full-overlay.collapsed .wp-full-overlay-sidebar { - overflow: visible; -} - -.wp-full-overlay.collapsed, -.wp-full-overlay.expanded .wp-full-overlay-sidebar { - margin-right: 0 !important; -} - -.wp-full-overlay.expanded { - margin-right: 300px; -} - -.wp-full-overlay.collapsed .wp-full-overlay-sidebar { - margin-right: -300px; -} - -.wp-full-overlay-sidebar:after { - content: ''; - display: block; - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 3px; - z-index: 1000; -} - -.wp-full-overlay-main { - position: absolute; - right: 0; - left: 0; - top: 0; - bottom: 0; - height: 100%; -} - -#customize-preview.wp-full-overlay-main { - background: url(../images/spinner.gif) no-repeat center center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; -} - -#customize-preview.wp-full-overlay-main.iframe-ready { - background: none; -} - -.wp-full-overlay-sidebar .wp-full-overlay-header { - position: absolute; - right: 0; - left: 0; - height: 45px; - padding: 0 15px; - line-height: 45px; - z-index: 10; - margin: 0; - border-top: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.wp-full-overlay-sidebar .wp-full-overlay-header a.back { - margin-top: 9px; -} - -.wp-full-overlay-sidebar .wp-full-overlay-footer { - bottom: 0; - border-bottom: none; - border-top: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content { - position: absolute; - top: 45px; - bottom: 45px; - right: 0; - left: 0; - overflow: auto; -} - -/* Close & Navigation Links */ -.theme-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header { - padding: 0; -} - -.theme-install-overlay .close-full-overlay, -.theme-install-overlay .previous-theme, -.theme-install-overlay .next-theme { - display: block; - position: relative; - float: right; - width: 45px; - height: 45px; - padding-left: 2px; - background: #eee; - border-left: 1px solid #ddd; - color: #444; - cursor: pointer; - text-decoration: none; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; -} - -.theme-install-overlay .close-full-overlay:hover, -.theme-install-overlay .close-full-overlay:focus, -.theme-install-overlay .previous-theme:hover, -.theme-install-overlay .previous-theme:focus, -.theme-install-overlay .next-theme:hover, -.theme-install-overlay .next-theme:focus { - background: #ddd; - border-color: #ccc; - color: #000; - outline: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.theme-install-overlay .close-full-overlay:before { - font: normal 22px/1 dashicons; - content: "\f335"; - position: relative; - top: 7px; - right: 13px; -} - -.theme-install-overlay .previous-theme:before { - font: normal 20px/1 dashicons; - content: "\f345"; - position: relative; - top: 6px; - right: 14px; -} - -.theme-install-overlay .next-theme:before { - font: normal 20px/1 dashicons; - content: "\f341"; - position: relative; - top: 6px; - right: 13px; -} - -.theme-install-overlay .previous-theme.disabled, -.theme-install-overlay .next-theme.disabled, -.theme-install-overlay .previous-theme.disabled:hover, -.theme-install-overlay .previous-theme.disabled:focus, -.theme-install-overlay .next-theme.disabled:hover, -.theme-install-overlay .next-theme.disabled:focus { - color: #b4b9be; - background: #eee; - cursor: default; - pointer-events: none; -} - -/* Collapse Button */ -.wp-core-ui .wp-full-overlay .collapse-sidebar { - position: fixed; - bottom: 8px; - right: 10px; - padding: 0; - color: #656a6f; - outline: 0; - line-height: 1; - background-color: transparent !important; - border: none !important; - -webkit-box-shadow: none !important; - box-shadow: none !important; - -webkit-border-radius: 0 !important; - border-radius: 0 !important; -} - -.wp-core-ui .wp-full-overlay .collapse-sidebar:hover, -.wp-core-ui .wp-full-overlay .collapse-sidebar:focus { - color: #0073aa; -} - -.wp-full-overlay .collapse-sidebar-arrow, -.wp-full-overlay .collapse-sidebar-label { - display: inline-block; - vertical-align: middle; - line-height: 20px; -} - -.wp-full-overlay .collapse-sidebar-arrow { - width: 20px; - height: 20px; - margin: 0 2px; /* avoid the focus box-shadow to be cut-off */ - -webkit-border-radius: 50%; - border-radius: 50%; - overflow: hidden; -} - -.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, -.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.wp-full-overlay .collapse-sidebar-label { - margin-right: 3px; -} - -.wp-full-overlay.collapsed .collapse-sidebar-label { - display: none; -} - -.wp-full-overlay .collapse-sidebar-arrow:before { - display: block; - content: "\f148"; - background: #eee; - font: normal 20px/1 'dashicons'; - speak: none; - padding: 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -/* rtl:ignore */ -.wp-full-overlay.collapsed .collapse-sidebar-arrow:before, -.rtl .wp-full-overlay .collapse-sidebar-arrow:before { - -webkit-transform: rotate(180.001deg); - -ms-transform: rotate(180.001deg); - transform: rotate(180.001deg); /* Firefox: promoting to its own layer to trigger anti-aliasing */ -} - -.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before { - -webkit-transform: none; - -ms-transform: none; - transform: none; -} - -/* Animations */ -.wp-full-overlay, -.wp-full-overlay-sidebar, -.wp-full-overlay .collapse-sidebar, -.wp-full-overlay-main { - -webkit-transition-property: right, left, top, bottom, width, margin; - transition-property: right, left, top, bottom, width, margin; - -webkit-transition-duration: 0.2s; - transition-duration: 0.2s; -} - -/*------------------------------------------------------------------------------ - 24.0 - Customize Loader -------------------------------------------------------------------------------*/ - -.no-customize-support .hide-if-no-customize, -.customize-support .hide-if-customize, -.no-customize-support.wp-core-ui .hide-if-no-customize, -.no-customize-support .wp-core-ui .hide-if-no-customize, -.customize-support.wp-core-ui .hide-if-customize, -.customize-support .wp-core-ui .hide-if-customize { - display: none; -} - -#customize-container { - display: none; - background: #fff; - z-index: 500000; - position: fixed; - overflow: visible; - top: 0; - bottom: 0; - right: 0; - left: 0; - height: 100%; -} - -.customize-active #customize-container { - display: block; -} - -.customize-loading #customize-container iframe { - opacity: 0; -} - -.customize-loading #customize-container { - background: #fff url(../images/spinner.gif) no-repeat fixed center center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; -} - -#customize-container iframe, -.theme-install-overlay iframe { - height: 100%; - width: 100%; - z-index: 20; - -webkit-transition: opacity 0.3s; - transition: opacity 0.3s; -} - -#customize-controls { - margin-top: 0; -} - -.theme-install-overlay { - display: none; -} - -.theme-install-overlay.single-theme { - display: block; -} - -.install-theme-info { - display: none; - padding: 10px 20px 60px; -} - -.single-theme .install-theme-info { - padding-top: 15px; -} - -.theme-install-overlay .install-theme-info { - display: block; -} - -.install-theme-info .theme-install { - float: left; - margin-top: 18px; -} - -.install-theme-info .theme-name { - font-size: 16px; - line-height: 24px; - margin-bottom: 0; - margin-top: 0; -} - -.install-theme-info .theme-screenshot { - margin-top: 15px; - width: 258px; - border: 1px solid #ccc; -} - -.install-theme-info .theme-details { - overflow: hidden; -} - -.theme-details .theme-version { - margin: 15px 0; - float: right; -} - -.theme-details .theme-description { - float: right; - color: #777; - line-height: 20px; - max-width: 100%; -} - -.theme-install-overlay .wp-full-overlay-header .theme-install { - float: left; - margin: 8px 0 0 10px; - /* For when .theme-install is a span rather than a.button-primary (already installed theme) */ - line-height: 26px; -} - -.theme-install-overlay .wp-full-overlay-sidebar { - background: #eee; - border-left: 1px solid #ddd; -} - -.theme-install-overlay .wp-full-overlay-sidebar-content { - background: #fff; - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; -} - -.theme-install-overlay .wp-full-overlay-main { - background: #fff url(../images/spinner.gif) no-repeat center center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; -} - -/* =Media Queries --------------------------------------------------------------- */ - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - .wp-full-overlay .collapse-sidebar-arrow { - background-image: url(../images/arrows-2x.png); - -webkit-background-size: 15px 123px; - background-size: 15px 123px; - } - - #customize-preview.wp-full-overlay-main, - .customize-loading #customize-container, - .theme-install-overlay .wp-full-overlay-main { - background-image: url(../images/spinner-2x.gif); - } - - .theme-install-overlay .wp-full-overlay-header .theme-install { - margin-top: 2px; - } -} - -@media screen and ( max-width: 782px ) { - .available-theme .action-links .delete-theme { - float: none; - margin: 0; - padding: 0; - clear: both; - } - - .available-theme .action-links .delete-theme a { - padding: 0; - } - - .broken-themes table { - width: 100%; - } - - .theme-install-overlay .wp-full-overlay-header .theme-install { - margin-top: 6px; - line-height: normal; - } -} diff --git a/wp-admin/css/themes.css b/wp-admin/css/themes.css deleted file mode 100644 index 3121a1e408..0000000000 --- a/wp-admin/css/themes.css +++ /dev/null @@ -1,1740 +0,0 @@ -/*------------------------------------------------------------------------------ - 16.0 - Themes -------------------------------------------------------------------------------*/ - - -/*------------------------------------------------------------------------------ - 16.1 - Manage Themes -------------------------------------------------------------------------------*/ - -.theme-browser .themes { - clear: both; - padding: 0 0 100px; -} - -.themes-php .wrap h1 { - float: left; - margin-bottom: 15px; -} - -.network-admin.themes-php .wrap h1 { - margin-bottom: 0; -} - -.themes-php .wrap h1 .button { - margin-left: 20px; -} - -/* Search form */ -.themes-php .wp-filter-search { - position: relative; - top: -2px; - left: 20px; - margin: 0; - width: 280px; - font-size: 16px; - font-weight: 300; - line-height: 1.5; -} - -/* Position admin messages */ -.themes-php div.updated, -.themes-php div.error, -.themes-php div.notice { - margin: 0 0 20px 0; - clear: both; -} - -.themes-php div.updated a { - text-decoration: underline; -} - -/** - * Main theme element - * (has flexible margins) - */ -.theme-browser .theme { - cursor: pointer; - float: left; - margin: 0 4% 4% 0; - position: relative; - width: 30.6%; - border: 1px solid #dedede; - -webkit-box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); - box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.ie8 .theme-browser .theme { - width: 30%; - margin: 0 3% 4% 0; -} - -.theme-browser .theme:nth-child(3n) { - margin-right: 0; -} - -.theme-browser .theme:hover, -.theme-browser .theme:focus { - cursor: pointer; -} - -.theme-browser .theme .theme-name { - font-size: 15px; - font-weight: 600; - height: 18px; - margin: 0; - padding: 15px; - -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.1); - box-shadow: inset 0 1px 0 rgba(0,0,0,0.1); - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - background: #fff; - background: rgba(255,255,255,0.65); -} - -/* Activate and Customize buttons, shown on hover and focus */ -.theme-browser .theme .theme-actions { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - opacity: 0; - -webkit-transition: opacity 0.1s ease-in-out; - transition: opacity 0.1s ease-in-out; - position: absolute; - bottom: 0; - right: 0; - height: 38px; - padding: 9px 10px 0 10px; - background: rgba(244, 244, 244, 0.7); - border-left: 1px solid rgba(0,0,0,0.05); -} - -.theme-browser .theme:hover .theme-actions, -.theme-browser .theme.focus .theme-actions, -.theme-browser .theme:focus .theme-actions { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - opacity: 1; -} - -.theme-browser .theme .theme-actions .button-primary { - margin-right: 3px; -} - -.theme-browser .theme .theme-actions .button-secondary { - float: none; - margin-left: 3px; -} - -/** - * Theme Screenshot - * - * Has a fixed aspect ratio of 1.5 to 1 regardless of screenshot size - * It is also responsive. - */ -.theme-browser .theme .theme-screenshot { - display: block; - overflow: hidden; - position: relative; - -webkit-transition: opacity 0.2s ease-in-out; - transition: opacity 0.2s ease-in-out; -} - -.theme-browser .theme .theme-screenshot:after { - content: ''; - display: block; - padding-top: 66.66666%; /* using a 3/2 aspect ratio */ -} - -.theme-browser .theme .theme-screenshot img { - height: auto; - position: absolute; - left: 0; - top: 0; - width: 100%; - -webkit-transition: opacity 0.2s ease-in-out; - transition: opacity 0.2s ease-in-out; -} - -.theme-browser .theme:hover .theme-screenshot, -.theme-browser .theme:focus .theme-screenshot { - background: #fff; -} - -.theme-browser.rendered .theme:hover .theme-screenshot img, -.theme-browser.rendered .theme:focus .theme-screenshot img { - opacity: 0.4; -} - -.theme-browser .theme .more-details { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - opacity: 0; - position: absolute; - top: 35%; - right: 25%; - left: 25%; - background: #23282d; - background: rgba(0,0,0,0.7); - color: #fff; - font-size: 15px; - text-shadow: 0 1px 0 rgba(0,0,0,0.6); - -webkit-font-smoothing: antialiased; - font-weight: 600; - padding: 15px 12px; - text-align: center; - -webkit-border-radius: 3px; - border-radius: 3px; - -webkit-transition: opacity 0.1s ease-in-out; - transition: opacity 0.1s ease-in-out; -} - -.theme-browser .theme:focus { - border-color: #5b9dd9; - -webkit-box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); - box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); -} - -.theme-browser .theme:focus .more-details { - opacity: 1; -} - -/* Current theme needs to have its action always on view */ -.theme-browser .theme.active:focus .theme-actions { - display: block; -} - -.theme-browser.rendered .theme:hover .more-details, -.theme-browser.rendered .theme:focus .more-details { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - opacity: 1; -} - -/** - * Displays a theme update notice - * when an update is available. - */ -.theme-browser .theme .theme-update, -.theme-browser .theme .theme-installed { - background: #d54e21; - background: rgba(213, 78, 33, 0.95); - color: #fff; - display: block; - font-size: 13px; - font-weight: 400; - height: 48px; - line-height: 48px; - padding: 0 10px; - position: absolute; - top: 0; - right: 0; - left: 0; - border-bottom: 1px solid rgba(0,0,0,0.25); - overflow: hidden; -} - -.theme-browser .theme .theme-update:before, -.theme-browser .theme .theme-installed:before { - content: '\f463'; - display: inline-block; - font: normal 20px/1 'dashicons'; - margin: 0 6px 0 0; - opacity: 0.8; - position: relative; - top: 5px; - speak: none; - -webkit-font-smoothing: antialiased; -} - - -/** - * The currently active theme - */ -.theme-browser .theme.active .theme-name { - background: #2f2f2f; - color: #fff; - padding-right: 110px; - font-weight: 300; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.5); - box-shadow: inset 0 1px 1px rgba(0,0,0,0.5); -} - -.theme-browser .customize-control .theme.active .theme-name { - padding-right: 15px; -} - -.theme-browser .theme.active .theme-name span { - font-weight: 600; -} - -.theme-browser .theme.active .theme-actions { - background: rgba(49,49,49,0.7); - border-left: none; - opacity: 1; -} - -.theme-browser .theme.active .theme-actions .button-primary { - margin-right: 0; -} - -.theme-browser .theme .theme-author { - background: #23282d; - color: #eee; - display: none; - font-size: 14px; - margin: 0 10px; - padding: 5px 10px; - position: absolute; - bottom: 56px; -} - -.theme-browser .theme.display-author .theme-author { - display: block; -} - -.theme-browser .theme.display-author .theme-author a { - color: inherit; - text-decoration: none; -} - -/** - * Add new theme - */ -.theme-browser .theme.add-new-theme { - border: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.theme-browser .theme.add-new-theme a { - color: #999; - text-decoration: none; - display: block; - position: relative; - z-index: 1; -} - -.theme-browser .theme.add-new-theme a:after { - display: block; - content: ''; - background: transparent; - background: rgba(0, 0, 0, 0); - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - padding: 0; - text-shadow: none; - border: 5px dashed #d5d2ca; - border: 5px dashed rgba(0, 0, 0, 0.1); - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.theme-browser .theme.add-new-theme span:after { - background: #e5e5e5; - background: rgba(153, 153, 153, 0.1); - -webkit-border-radius: 50%; - border-radius: 50%; - display: inline-block; - content: '\f132'; - -webkit-font-smoothing: antialiased; - font: normal 74px/115px 'dashicons'; - width: 100px; - height: 100px; - vertical-align: middle; - text-align: center; - color: rgb(153, 153, 153); - position: absolute; - top: 30%; - left: 50%; - margin-left: -50px; - text-indent: -4px; - padding: 0; - text-shadow: none; - z-index:4; -} - -.rtl .theme-browser .theme.add-new-theme span:after { - text-indent: 4px; -} - -.theme-browser .theme.add-new-theme a:hover .theme-screenshot, -.theme-browser .theme.add-new-theme a:focus .theme-screenshot { - background: none; -} - -.theme-browser .theme.add-new-theme a:hover span:after, -.theme-browser .theme.add-new-theme a:focus span:after { - background: #fff; - color: #0073aa; -} - -.theme-browser .theme.add-new-theme a:hover:after, -.theme-browser .theme.add-new-theme a:focus:after { - border-color: transparent; - color: #fff; - background: #0073aa; - content: ''; -} - -.theme-browser .theme.add-new-theme .theme-name { - background: none; - text-align: center; - -webkit-box-shadow: none; - box-shadow: none; - font-weight: 400; - position: relative; - top: 0; - margin-top: -18px; - padding-top: 0; - padding-bottom: 48px; -} - -.theme-browser .theme.add-new-theme a:hover .theme-name, -.theme-browser .theme.add-new-theme a:focus .theme-name { - color: #fff; - z-index: 2; -} - -/** - * Theme Overlay - * Shown when clicking a theme - */ -.theme-overlay .theme-backdrop { - position: absolute; - left: -20px; - right: 0; - top: 0; - bottom: 0; - background: #f1f1f1; - background: rgba( 238, 238, 238, 0.9 ); - z-index: 10000; /* Over WP Pointers. */ -} - -.theme-overlay .theme-header { - position: absolute; - top: 0; - left: 0; - right: 0; - height: 48px; - border-bottom: 1px solid #ddd; -} - -.theme-overlay .theme-header button { - padding: 0; -} - -.theme-overlay .theme-header .close { - cursor: pointer; - height: 48px; - width: 50px; - text-align: center; - float: right; - border: 0; - border-left: 1px solid #ddd; - background-color: transparent; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; -} - -.theme-overlay .theme-header .close:before { - font: normal 22px/50px 'dashicons' !important; - color: #777; - display: inline-block; - content: '\f335'; - font-weight: 300; -} - -/* Left and right navigation */ -.theme-overlay .theme-header .right, -.theme-overlay .theme-header .left { - cursor: pointer; - color: #777; - background-color: transparent; - height: 48px; - width: 54px; - float: left; - text-align: center; - border: 0; - border-right: 1px solid #ddd; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; -} - -.theme-overlay .theme-header .close:focus, -.theme-overlay .theme-header .close:hover, -.theme-overlay .theme-header .right:focus, -.theme-overlay .theme-header .right:hover, -.theme-overlay .theme-header .left:focus, -.theme-overlay .theme-header .left:hover { - background: #ddd; - border-color: #ccc; - color: #000; -} - -.theme-overlay .theme-header .close:focus:before, -.theme-overlay .theme-header .close:hover:before { - color: #000; -} - -.theme-overlay .theme-header .close:focus, -.theme-overlay .theme-header .right:focus, -.theme-overlay .theme-header .left:focus { - -webkit-box-shadow: none; - box-shadow: none; - outline: none; -} - -.theme-overlay .theme-header .left.disabled, -.theme-overlay .theme-header .right.disabled, -.theme-overlay .theme-header .left.disabled:hover, -.theme-overlay .theme-header .right.disabled:hover { - color: #ccc; - background: inherit; - cursor: inherit; -} - -.theme-overlay .theme-header .right:before, -.theme-overlay .theme-header .left:before { - font: normal 20px/50px 'dashicons' !important; - display: inline; - font-weight: 300; -} - -.theme-overlay .theme-header .left:before { - content: "\f341"; -} - -.theme-overlay .theme-header .right:before { - content: "\f345"; -} - -.theme-overlay .theme-wrap { - clear: both; - position: fixed; - top: 9%; - left: 190px; - right: 30px; - bottom: 3%; - background: #fff; - -webkit-box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1); - box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1); - z-index: 10000; /* Over WP Pointers. */ - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - -webkit-overflow-scrolling: touch; -} - -.theme-overlay .theme-wrap:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -body.folded .theme-overlay .theme-wrap { - left: 70px; -} - -.theme-overlay .theme-about { - position: absolute; - top: 49px; - bottom: 57px; - left: 0; - right: 0; - overflow: auto; - padding: 2% 4%; -} -.theme-overlay .theme-about:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -.theme-overlay .theme-actions { - position: absolute; - text-align: center; - bottom: 0; - left: 0; - right: 0; - padding: 10px 25px 5px; - background: #f3f3f3; - z-index: 30; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - border-top: 1px solid #eee; -} - -.ie8 .theme-overlay .theme-actions { - border: 1px solid #eee; -} - -.theme-overlay .theme-actions a { - margin-right: 5px; - margin-bottom: 5px; -} - -/* Hide-if-customize for items we can't add classes to */ -.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"], -.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"] { - display: none; -} - -.broken-themes a.delete-theme, -.theme-overlay .theme-actions .delete-theme { - color: #a00; - text-decoration: none; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - background: transparent; -} - -.theme-overlay .theme-actions .delete-theme { - position: absolute; - right: 10px; - bottom: 5px; -} - -.broken-themes a.delete-theme:hover, -.broken-themes a.delete-theme:focus, -.theme-overlay .theme-actions .delete-theme:hover, -.theme-overlay .theme-actions .delete-theme:focus { - background: #d54e21; - color: #fff; - border-color: #d54e21; -} - -.theme-overlay .theme-actions .active-theme, -.theme-overlay.active .theme-actions .inactive-theme { - display: none; -} - -.theme-overlay .theme-actions .inactive-theme, -.theme-overlay.active .theme-actions .active-theme { - display: block; -} - -/** - * Theme Screenshots gallery - */ -.theme-overlay .theme-screenshots { - float: left; - margin: 0 30px 0 0; - width: 55%; - max-width: 880px; - text-align: center; -} - -/* First screenshot, shown big */ -.theme-overlay .screenshot { - border: 1px solid #fff; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - overflow: hidden; - position: relative; - -webkit-box-shadow: 0 0 0 1px rgba(0,0,0,0.2); - box-shadow: 0 0 0 1px rgba(0,0,0,0.2); -} - -.theme-overlay .screenshot:after { - content: ''; - display: block; - padding-top: 75%; /* using a 4/3 aspect ratio */ -} - -.theme-overlay .screenshot img { - height: auto; - position: absolute; - left: 0; - top: 0; - width: 100%; -} -/* Handles old 300px screenshots */ -.theme-overlay.small-screenshot .theme-screenshots { - position: absolute; - width: 302px; -} -.theme-overlay.small-screenshot .theme-info { - margin-left: 350px; - width: auto; -} - -/* Other screenshots, shown small and square */ -.theme-overlay .screenshot.thumb { - background: #ccc; - border: 1px solid #eee; - float: none; - display: inline-block; - margin: 10px 5px 0; - width: 140px; - height: 80px; - cursor: pointer; -} - -.theme-overlay .screenshot.thumb:after { - content: ''; - display: block; - padding-top: 100%; /* using a 1/1 aspect ratio */ -} - -.theme-overlay .screenshot.thumb img { - cursor: pointer; - height: auto; - position: absolute; - left: 0; - top: 0; - width: 100%; - height: auto; -} - -.theme-overlay .screenshot.selected { - background: transparent; - border: 2px solid #00a0d2; -} - -.theme-overlay .screenshot.selected img { - opacity: 0.8; -} - -/* No screenshot placeholder */ -.theme-browser .theme .theme-screenshot.blank, -.theme-overlay .screenshot.blank { - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=); -} - -/** - * Theme heading information - */ -.theme-overlay .theme-info { - width: 40%; - float: left; -} - -.theme-overlay .current-label { - background: #32373c; - color: #fff; - font-size: 11px; - display: inline-block; - padding: 2px 8px; - -webkit-border-radius: 2px; - border-radius: 2px; - margin: 0 0 -10px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.theme-overlay .theme-name { - color: #23282d; - font-size: 32px; - font-weight: 100; - margin: 10px 0 0; - line-height: 1.3; -} - -.theme-overlay .theme-version { - color: #999; - font-size: 13px; - font-weight: 400; - float: none; - display: inline-block; - margin-left: 10px; -} - -.theme-overlay .theme-author { - color: #686868; - font-size: 16px; - font-weight: 400; - margin: 15px 0 25px; -} - -.theme-overlay .theme-author a { - text-decoration: none; -} - -.theme-overlay .theme-description { - color: #555; - font-size: 15px; - font-weight: 400; - line-height: 1.5; - margin: 30px 0 0 0; -} - -.theme-overlay .theme-tags { - border-top: 3px solid #eee; - color: #82878c; - font-size: 13px; - font-weight: 400; - margin: 30px 0 0 0; - padding-top: 20px; -} - -.theme-overlay .theme-tags span { - color: #444; - font-weight: bold; - margin-right: 5px; -} - -/* Theme Updates info */ -.theme-overlay .theme-update-message { - background: #fef7f1; - border: 1px solid #eee; - border-left: 4px solid #d54e21; - -webkit-border-radius: 3px; - border-radius: 3px; - padding: 5px 20px 10px; -} - -.theme-overlay .theme-update { - color: #23282d; - font-size: 18px; - display: inline-block; - line-height: 40px; - margin: 0; -} - -.theme-overlay .parent-theme { - background: #f7fcfe; - border: 1px solid #eee; - border-left: 4px solid #00a0d2; - font-size: 14px; - font-weight: normal; - margin-top: 30px; - padding: 10px 10px 10px 20px; -} - -.theme-overlay .parent-theme strong { - font-weight: 700; -} - -/** - * Single Theme Mode - * Displays detailed view inline when a user has no switch capabilities - */ -.single-theme .theme-overlay .theme-backdrop, -.single-theme .theme-overlay .theme-header, -.single-theme .theme { - display: none; -} - -.single-theme .theme-overlay .theme-wrap { - clear: both; - min-height: 330px; - position: relative; - left: auto; - right: auto; - top: auto; - bottom: auto; - z-index: 10; -} - -.single-theme .theme-overlay .theme-about { - padding: 30px 30px 70px; - position: static; -} - -.single-theme .theme-overlay .theme-actions { - position: absolute; -} - -/** - * Basic Responsive structure... - * - * Shuffles theme columns around based on screen width - */ - -@media only screen and (min-width: 2000px) { - #wpwrap .theme-browser .theme { - width: 17.6%; - margin: 0 3% 3% 0; - } - - #wpwrap .theme-browser .theme:nth-child(3n), - #wpwrap .theme-browser .theme:nth-child(4n) { - margin-right: 3%; - } - - #wpwrap .theme-browser .theme:nth-child(5n) { - margin-right: 0; - } -} - -@media only screen and (min-width: 1680px) { - .theme-overlay .theme-wrap { - width: 1450px; - margin: 0 auto; - } -} - -/* Maximum screenshot width reaches 440px */ -@media only screen and (min-width: 1640px) { - .theme-browser .theme { - width: 22.7%; - margin: 0 3% 3% 0; - } - .theme-browser .theme .theme-screenshot:after { - padding-top: 75%; /* using a 4/3 aspect ratio */ - } - - .theme-browser .theme:nth-child(3n) { - margin-right: 3%; - } - - .theme-browser .theme:nth-child(4n) { - margin-right: 0; - } -} -/* Maximum screenshot width reaches 440px */ -@media only screen and (max-width: 1120px) { - .theme-browser .theme { - width: 47.5%; - margin-right: 0; - } - - .theme-browser .theme:nth-child(even) { - margin-right: 0; - } - - .theme-browser .theme:nth-child(odd) { - margin-right: 5%; - } -} - -/* Admin menu is folded */ -@media only screen and (max-width: 900px) { - .theme-overlay .theme-wrap { - left: 65px; - } -} - -@media only screen and (max-width: 780px) { - body.folded .theme-overlay .theme-wrap, - .theme-overlay .theme-wrap { - top: 0; /* The adminmenu isn't fixed on mobile, so this can use the full viewport height */ - right: 0; - bottom: 0; - left: 0; - padding: 70px 20px 20px; - border: none; - z-index: 100000; /* should overlap #wpadminbar. */ - position: fixed; - } - - .theme-browser .theme.active .theme-name span { - /* Hide the "Active: " label on smaller screens. */ - display: none; - } - - .theme-overlay .theme-screenshots { - width: 40%; - } - - .theme-overlay .theme-info { - width: 50%; - } - .single-theme .theme-wrap { - padding: 10px; - } - - .theme-browser .theme .theme-actions { - padding: 5px 10px 4px 10px; - } - - .theme-overlay.small-screenshot .theme-screenshots { - position: static; - float: none; - max-width: 302px; - } - - .theme-overlay.small-screenshot .theme-info { - margin-left: 0; - width: auto; - } - - .theme:not(.active):hover .theme-actions, - .theme:not(.active):focus .theme-actions, - .theme:hover .more-details, - .theme:focus .more-details { - display: none; - } - - .theme-browser.rendered .theme:hover .theme-screenshot img, - .theme-browser.rendered .theme:focus .theme-screenshot img { - opacity: 1.0; - } -} - -@media only screen and (max-width: 480px) { - .theme-browser .theme { - width: 100%; - margin-right: 0; - } - - .theme-browser .theme:nth-child(2n), - .theme-browser .theme:nth-child(3n) { - margin-right: 0; - } -} - -@media only screen and (max-width: 650px) { - .theme-overlay .theme-update, - .theme-overlay .theme-description { - margin-left: 0; - } - - .theme-overlay .theme-actions .delete-theme { - position: relative; - right: auto; - bottom: auto; - } - - .theme-overlay .theme-actions .inactive-theme { - display: inline; - } - - .theme-overlay .theme-screenshots { - width: 100%; - float: none; - } - - .theme-overlay .theme-info { - width: 100%; - } - - .theme-overlay .theme-author { - margin: 5px 0 15px 0; - } - - .theme-overlay .current-label { - margin-top: 10px; - font-size: 13px; - } - - .themes-php .wp-filter-search { - float: none; - clear: both; - left: 0; - top: 0; - right: 0; - margin: 10px 0; - width: 100%; - max-width: 280px; - } - - .theme-browser .theme.add-new-theme span:after { - font: normal 60px/90px 'dashicons'; - width: 80px; - height: 80px; - top: 30%; - left: 50%; - text-indent: 0; - margin-left: -40px; - } - - .single-theme .theme-wrap { - margin: 0 -12px 0 -10px; - padding: 10px; - } - .single-theme .theme-overlay .theme-about { - padding: 10px; - overflow: visible; - } - .single-theme .current-label { - display: none; - } - .single-theme .theme-overlay .theme-actions { - position: static; - } -} - -.broken-themes { - clear: both; -} - -.broken-themes table { - text-align: left; - width: 50%; - border-spacing: 3px; - padding: 3px; -} - - -/*------------------------------------------------------------------------------ - 16.2 - Install Themes -------------------------------------------------------------------------------*/ - -/* Already installed theme */ -.theme-browser .theme .theme-installed { - background: #0073aa; -} -.theme-browser .theme .theme-installed:before { - content: '\f147'; -} -.theme-browser .theme.is-installed .theme-actions .button-primary { - display: none !important; -} - -.theme-install-php .wp-filter { - padding: 0 20px; -} - -.theme-install-php a.upload, -.theme-install-php a.browse-themes { - cursor: pointer; -} -.theme-install-php a.browse-themes, -.theme-install-php.show-upload-theme a.upload { - display: none; -} -.theme-install-php.show-upload-theme a.browse-themes { - display: inline; -} -.upload-theme, -.upload-plugin { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - display: none; - margin: 0; - padding: 0; - width: 100%; - overflow: hidden; - position: relative; - top: 10px; -} -body.show-upload-theme .upload-theme, -.upload-plugin { - display: block; -} -.upload-theme .wp-upload-form, -.upload-plugin .wp-upload-form { - background: #fafafa; - border: 1px solid #e5e5e5; - padding: 30px; - margin: 30px auto; - max-width: 380px; -} -.upload-theme .install-help, -.upload-plugin .install-help { - color: #999; - font-size: 18px; - font-style: normal; - margin: 0; - padding: 40px 0 0; - text-align: center; -} -body.show-upload-theme .upload-theme + .wp-filter, -body.show-upload-theme .upload-theme + .wp-filter + .theme-browser { - display: none; -} - -p.no-themes { - clear: both; - color: #666; - font-size: 18px; - font-style: normal; - margin: 0; - padding: 0; - text-align: center; - display: none; -} -body.no-results p.no-themes { - display: block; -} -body.show-upload-theme p.no-themes { - display: none !important; -} - -.theme-install-php .add-new-theme { - display: none !important; -} - -@media only screen and (max-width: 1120px) { - .upload-theme .wp-upload-form { - margin: 20px 0; - max-width: 100%; - } - .upload-theme .install-help { - font-size: 15px; - padding: 20px 0 0; - text-align: left; - } -} - -.theme-details .star-rating { - margin: 15px 0 0; -} - -.theme-details .star-rating span:before { - color: #ffb900; - content: "\f154"; - display: inline-block; - -webkit-font-smoothing: antialiased; - font: normal 20px/1 'dashicons'; - vertical-align: top; -} - -/* Half stars */ -.star-rating.rating-10 span.one:before, -.star-rating.rating-30 span.two:before, -.star-rating.rating-50 span.three:before, -.star-rating.rating-70 span.four:before, -.star-rating.rating-90 span.five:before { - content: "\f459"; -} - -/* Full stars */ -.star-rating.rating-20 span.one:before, -.star-rating.rating-30 span.one:before, -.star-rating.rating-40 span.one:before, -.star-rating.rating-40 span.two:before, -.star-rating.rating-50 span.one:before, -.star-rating.rating-50 span.two:before, -.star-rating.rating-60 span.one:before, -.star-rating.rating-60 span.two:before, -.star-rating.rating-60 span.three:before, -.star-rating.rating-70 span.one:before, -.star-rating.rating-70 span.two:before, -.star-rating.rating-70 span.three:before, -.star-rating.rating-80 span.one:before, -.star-rating.rating-80 span.two:before, -.star-rating.rating-80 span.three:before, -.star-rating.rating-80 span.four:before, -.star-rating.rating-90 span.one:before, -.star-rating.rating-90 span.two:before, -.star-rating.rating-90 span.three:before, -.star-rating.rating-90 span.four:before, -.star-rating.rating-100 > span:before { - content: "\f155"; -} - -.theme-details .star-rating .ratings { - display: block; - line-height: 20px; - color: #999; -} - -/*------------------------------------------------------------------------------ - 16.3 - Custom Header Screen -------------------------------------------------------------------------------*/ - -.appearance_page_custom-header #headimg { - border: 1px solid #DFDFDF; - overflow: hidden; - width: 100%; -} - -.appearance_page_custom-header #upload-form p label { - font-size: 12px; -} - -.appearance_page_custom-header .available-headers .default-header { - float: left; - margin: 0 20px 20px 0; -} - -.appearance_page_custom-header .random-header { - clear: both; - margin: 0 20px 20px 0; - vertical-align: middle; -} - -.appearance_page_custom-header .available-headers label input, -.appearance_page_custom-header .random-header label input { - margin-right: 10px; -} - -.appearance_page_custom-header .available-headers label img { - vertical-align: middle; -} - - -/*------------------------------------------------------------------------------ - 16.4 - Custom Background Screen -------------------------------------------------------------------------------*/ - -div#custom-background-image { - min-height: 100px; - border: 1px solid #dfdfdf; -} - -div#custom-background-image img { - max-width: 400px; - max-height: 300px; -} - -/*------------------------------------------------------------------------------ - 23.0 - Full Overlay w/ Sidebar -------------------------------------------------------------------------------*/ - -body.full-overlay-active { - overflow: hidden; -} - -.wp-full-overlay { - background: transparent; - z-index: 500000; - position: fixed; - overflow: visible; - top: 0; - bottom: 0; - left: 0; - right: 0; - height: 100%; - min-width: 0; -} - -.wp-full-overlay-sidebar { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - position: fixed; - width: 300px; - height: 100%; - top: 0; - bottom: 0; - left: 0; - padding: 0; - margin: 0; - z-index: 10; - background: #eee; - border-right: none; -} - -.wp-full-overlay.collapsed .wp-full-overlay-sidebar { - overflow: visible; -} - -.wp-full-overlay.collapsed, -.wp-full-overlay.expanded .wp-full-overlay-sidebar { - margin-left: 0 !important; -} - -.wp-full-overlay.expanded { - margin-left: 300px; -} - -.wp-full-overlay.collapsed .wp-full-overlay-sidebar { - margin-left: -300px; -} - -.wp-full-overlay-sidebar:after { - content: ''; - display: block; - position: absolute; - top: 0; - bottom: 0; - right: 0; - width: 3px; - z-index: 1000; -} - -.wp-full-overlay-main { - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: 100%; -} - -#customize-preview.wp-full-overlay-main { - background: url(../images/spinner.gif) no-repeat center center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; -} - -#customize-preview.wp-full-overlay-main.iframe-ready { - background: none; -} - -.wp-full-overlay-sidebar .wp-full-overlay-header { - position: absolute; - left: 0; - right: 0; - height: 45px; - padding: 0 15px; - line-height: 45px; - z-index: 10; - margin: 0; - border-top: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.wp-full-overlay-sidebar .wp-full-overlay-header a.back { - margin-top: 9px; -} - -.wp-full-overlay-sidebar .wp-full-overlay-footer { - bottom: 0; - border-bottom: none; - border-top: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content { - position: absolute; - top: 45px; - bottom: 45px; - left: 0; - right: 0; - overflow: auto; -} - -/* Close & Navigation Links */ -.theme-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header { - padding: 0; -} - -.theme-install-overlay .close-full-overlay, -.theme-install-overlay .previous-theme, -.theme-install-overlay .next-theme { - display: block; - position: relative; - float: left; - width: 45px; - height: 45px; - padding-right: 2px; - background: #eee; - border-right: 1px solid #ddd; - color: #444; - cursor: pointer; - text-decoration: none; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; -} - -.theme-install-overlay .close-full-overlay:hover, -.theme-install-overlay .close-full-overlay:focus, -.theme-install-overlay .previous-theme:hover, -.theme-install-overlay .previous-theme:focus, -.theme-install-overlay .next-theme:hover, -.theme-install-overlay .next-theme:focus { - background: #ddd; - border-color: #ccc; - color: #000; - outline: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -.theme-install-overlay .close-full-overlay:before { - font: normal 22px/1 dashicons; - content: "\f335"; - position: relative; - top: 7px; - left: 13px; -} - -.theme-install-overlay .previous-theme:before { - font: normal 20px/1 dashicons; - content: "\f341"; - position: relative; - top: 6px; - left: 14px; -} - -.theme-install-overlay .next-theme:before { - font: normal 20px/1 dashicons; - content: "\f345"; - position: relative; - top: 6px; - left: 13px; -} - -.theme-install-overlay .previous-theme.disabled, -.theme-install-overlay .next-theme.disabled, -.theme-install-overlay .previous-theme.disabled:hover, -.theme-install-overlay .previous-theme.disabled:focus, -.theme-install-overlay .next-theme.disabled:hover, -.theme-install-overlay .next-theme.disabled:focus { - color: #b4b9be; - background: #eee; - cursor: default; - pointer-events: none; -} - -/* Collapse Button */ -.wp-core-ui .wp-full-overlay .collapse-sidebar { - position: fixed; - bottom: 8px; - left: 10px; - padding: 0; - color: #656a6f; - outline: 0; - line-height: 1; - background-color: transparent !important; - border: none !important; - -webkit-box-shadow: none !important; - box-shadow: none !important; - -webkit-border-radius: 0 !important; - border-radius: 0 !important; -} - -.wp-core-ui .wp-full-overlay .collapse-sidebar:hover, -.wp-core-ui .wp-full-overlay .collapse-sidebar:focus { - color: #0073aa; -} - -.wp-full-overlay .collapse-sidebar-arrow, -.wp-full-overlay .collapse-sidebar-label { - display: inline-block; - vertical-align: middle; - line-height: 20px; -} - -.wp-full-overlay .collapse-sidebar-arrow { - width: 20px; - height: 20px; - margin: 0 2px; /* avoid the focus box-shadow to be cut-off */ - -webkit-border-radius: 50%; - border-radius: 50%; - overflow: hidden; -} - -.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, -.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.wp-full-overlay .collapse-sidebar-label { - margin-left: 3px; -} - -.wp-full-overlay.collapsed .collapse-sidebar-label { - display: none; -} - -.wp-full-overlay .collapse-sidebar-arrow:before { - display: block; - content: "\f148"; - background: #eee; - font: normal 20px/1 'dashicons'; - speak: none; - padding: 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -/* rtl:ignore */ -.wp-full-overlay.collapsed .collapse-sidebar-arrow:before, -.rtl .wp-full-overlay .collapse-sidebar-arrow:before { - -webkit-transform: rotate(180.001deg); - -ms-transform: rotate(180.001deg); - transform: rotate(180.001deg); /* Firefox: promoting to its own layer to trigger anti-aliasing */ -} - -.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before { - -webkit-transform: none; - -ms-transform: none; - transform: none; -} - -/* Animations */ -.wp-full-overlay, -.wp-full-overlay-sidebar, -.wp-full-overlay .collapse-sidebar, -.wp-full-overlay-main { - -webkit-transition-property: left, right, top, bottom, width, margin; - transition-property: left, right, top, bottom, width, margin; - -webkit-transition-duration: 0.2s; - transition-duration: 0.2s; -} - -/*------------------------------------------------------------------------------ - 24.0 - Customize Loader -------------------------------------------------------------------------------*/ - -.no-customize-support .hide-if-no-customize, -.customize-support .hide-if-customize, -.no-customize-support.wp-core-ui .hide-if-no-customize, -.no-customize-support .wp-core-ui .hide-if-no-customize, -.customize-support.wp-core-ui .hide-if-customize, -.customize-support .wp-core-ui .hide-if-customize { - display: none; -} - -#customize-container { - display: none; - background: #fff; - z-index: 500000; - position: fixed; - overflow: visible; - top: 0; - bottom: 0; - left: 0; - right: 0; - height: 100%; -} - -.customize-active #customize-container { - display: block; -} - -.customize-loading #customize-container iframe { - opacity: 0; -} - -.customize-loading #customize-container { - background: #fff url(../images/spinner.gif) no-repeat fixed center center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; -} - -#customize-container iframe, -.theme-install-overlay iframe { - height: 100%; - width: 100%; - z-index: 20; - -webkit-transition: opacity 0.3s; - transition: opacity 0.3s; -} - -#customize-controls { - margin-top: 0; -} - -.theme-install-overlay { - display: none; -} - -.theme-install-overlay.single-theme { - display: block; -} - -.install-theme-info { - display: none; - padding: 10px 20px 60px; -} - -.single-theme .install-theme-info { - padding-top: 15px; -} - -.theme-install-overlay .install-theme-info { - display: block; -} - -.install-theme-info .theme-install { - float: right; - margin-top: 18px; -} - -.install-theme-info .theme-name { - font-size: 16px; - line-height: 24px; - margin-bottom: 0; - margin-top: 0; -} - -.install-theme-info .theme-screenshot { - margin-top: 15px; - width: 258px; - border: 1px solid #ccc; -} - -.install-theme-info .theme-details { - overflow: hidden; -} - -.theme-details .theme-version { - margin: 15px 0; - float: left; -} - -.theme-details .theme-description { - float: left; - color: #777; - line-height: 20px; - max-width: 100%; -} - -.theme-install-overlay .wp-full-overlay-header .theme-install { - float: right; - margin: 8px 10px 0 0; - /* For when .theme-install is a span rather than a.button-primary (already installed theme) */ - line-height: 26px; -} - -.theme-install-overlay .wp-full-overlay-sidebar { - background: #eee; - border-right: 1px solid #ddd; -} - -.theme-install-overlay .wp-full-overlay-sidebar-content { - background: #fff; - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; -} - -.theme-install-overlay .wp-full-overlay-main { - background: #fff url(../images/spinner.gif) no-repeat center center; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; -} - -/* =Media Queries --------------------------------------------------------------- */ - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - .wp-full-overlay .collapse-sidebar-arrow { - background-image: url(../images/arrows-2x.png); - -webkit-background-size: 15px 123px; - background-size: 15px 123px; - } - - #customize-preview.wp-full-overlay-main, - .customize-loading #customize-container, - .theme-install-overlay .wp-full-overlay-main { - background-image: url(../images/spinner-2x.gif); - } - - .theme-install-overlay .wp-full-overlay-header .theme-install { - margin-top: 2px; - } -} - -@media screen and ( max-width: 782px ) { - .available-theme .action-links .delete-theme { - float: none; - margin: 0; - padding: 0; - clear: both; - } - - .available-theme .action-links .delete-theme a { - padding: 0; - } - - .broken-themes table { - width: 100%; - } - - .theme-install-overlay .wp-full-overlay-header .theme-install { - margin-top: 6px; - line-height: normal; - } -} diff --git a/wp-admin/css/widgets-rtl.css b/wp-admin/css/widgets-rtl.css deleted file mode 100644 index 149c11717d..0000000000 --- a/wp-admin/css/widgets-rtl.css +++ /dev/null @@ -1,587 +0,0 @@ -/* General Widgets Styles */ - -.widget { - margin: 0 auto 10px; - position: relative; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.widget-top { - font-size: 13px; - font-weight: 600; - background: #f7f7f7; -} - -.widget-top a.widget-action, -.widget-top a.widget-action:hover { - -webkit-box-shadow: none; - box-shadow: none; - outline: none; - text-decoration: none; -} - -.widget-title h4 { - margin: 0; - padding: 15px; - line-height: 1; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.widgets-holder-wrap .widget-inside { - border-top: none; - padding: 1px 15px 15px 15px; - line-height: 16px; -} - -.in-widget-title, -#widgets-right a.widget-control-edit, -#available-widgets .widget-description { - color: #666; -} - -.deleting .widget-title, -.deleting .widget-top a.widget-action:after { - color: #a0a5aa; -} - -/* Widget Dragging Helpers */ -.widget.ui-draggable-dragging { - min-width: 100%; -} - -.widget.ui-sortable-helper { - opacity: 0.8; -} - -.widget-placeholder { - border: 1px dashed #b4b9be; - margin: 0 auto 10px; - height: 45px; - width: 100%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -#widgets-right .widget-placeholder { - margin-top: 0; -} - -#widgets-right .closed .widget-placeholder { - height: 0; - border: 0; - margin-top: -10px; -} - -/* Widget Sidebars */ -.sidebar-name { - position: relative; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.sidebar-name-arrow { - position: absolute; - top: 0; - left: 0; - bottom: 0; -} - -.js .sidebar-name { - cursor: pointer; -} - -.sidebar-name h3 { - margin: 0; - padding: 8px 10px; - overflow: hidden; - white-space: nowrap; -} - -.widgets-holder-wrap .description { - padding: 0 0 15px; - margin: 0; - font-style: normal; - color: #777; -} - -#widgets-right .widgets-holder-wrap .description { - padding-right: 7px; - padding-left: 7px; -} - -/* Widgets 2-col Layout */ -div.widget-liquid-left { - margin: 0; - width: 38%; - float: right; -} - -div.widget-liquid-right { - float: left; - width: 58%; -} - -/* Widgets Left - Available Widgets */ - -div#widgets-left { - padding-top: 12px; -} - -div#widgets-left .closed .sidebar-name, -div#widgets-left .inactive-sidebar.closed .sidebar-name { - margin-bottom: 10px; -} - -div#widgets-left .sidebar-name h3 { - padding: 10px 0; - margin: 0 0 0 10px; -} - -div#widgets-left .sidebar-name .sidebar-name-arrow:before { - left: 0; - top: 4px; - padding: 4px 4px 4px 6px; -} - -#widgets-left #available-widgets, -div#widgets-left .widget-holder { - background: transparent; - border: none; -} - -#widgets-left .widgets-holder-wrap { - border: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -#available-widgets .widget-action { - display: none; -} - -#available-widgets .widget { - margin: 0; -} - -#available-widgets .widget:nth-child(odd) { - clear: both; -} - -#available-widgets .widget .widget-description { - display: block; - padding: 10px 15px; - font-size: 12px; -} - -#available-widgets #widget-list { - position: relative; -} - -/* Inactive Sidebars */ -#widgets-left .inactive-sidebar { - clear: both; - width: 100%; - background: transparent; - padding: 0; - margin: 0 0 20px 0; - border: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -#widgets-left .inactive-sidebar.first { - margin-top: 40px; -} - -/* Not sure what this is for... */ -div#widgets-left .inactive-sidebar .widget.expanded { - right: auto; -} - -.widget-title-action { - float: left; - position: relative; -} - -div#widgets-left .inactive-sidebar .widgets-sortables { - min-height: 42px; - padding: 0; - background: transparent; - margin: 0; - position: relative; -} - -/* Widgets Right */ - -div#widgets-right:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -div#widgets-right .sidebars-column-1, -div#widgets-right .sidebars-column-2 { - max-width: 450px; -} - -div#widgets-right .widgets-holder-wrap { - margin: 10px 0 0 0; -} - -div#widgets-right .sidebar-description { - min-height: 20px; - margin-top: -5px; -} - -div#widgets-right .sidebar-name h3 { - padding: 15px 7px; -} - -div#widgets-right .sidebar-name .sidebar-name-arrow:before { - left: 0; - top: 4px; -} - -div#widgets-right .widget-top { - padding: 0; -} - -div#widgets-right .widgets-sortables { - padding: 0 8px; - margin-bottom: 9px; - position: relative; - min-height: 123px; -} - -div#widgets-right .closed .widgets-sortables { - min-height: 0; - margin-bottom: 0; -} - -.sidebar-name .spinner { - float: none; - position: relative; - top: -2px; - margin: -5px 5px; -} - -/* Dragging a widget over a closed sidebar */ -#widgets-right .widgets-holder-wrap.widget-hover { - border-color: #777; - -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.3); - box-shadow: 0 1px 2px rgba(0,0,0,0.3); -} - -/* Accessibility Mode */ -.widgets_access #widgets-left .widget .widget-top { - cursor: auto; -} - -.widgets_access #wpwrap .widgets-holder-wrap.closed .sidebar-description, -.widgets_access #wpwrap .widgets-holder-wrap.closed .widget, -.widgets_access #wpwrap .widget-control-edit { - display: block; -} - -.widgets_access #widgets-left .widget .widget-top:hover, -.widgets_access #widgets-right .widget .widget-top:hover { - border-color: #ddd; -} - -#available-widgets .widget-control-edit .edit, -#widgets-left .inactive-sidebar .widget-control-edit .add, -#widgets-right .widget-control-edit .add { - display: none; -} - -.widget-control-edit { - display: block; - color: #666; - background: #EEE; - padding: 0 15px; - line-height: 43px; - border-right: 1px solid #DDD; -} - -#widgets-left .widget-control-edit:hover, -#widgets-right .widget-control-edit:hover { - color: #fff; - background: #444; - border-right: 0; - outline: 1px solid #444; -} - -.widgets-holder-wrap .sidebar-name, -.widgets-holder-wrap .sidebar-description { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.editwidget { - margin: 0 auto; -} - -.editwidget .widget-inside { - display: block; - padding: 0 15px; -} - -.editwidget .widget-control-actions { - margin-top: 20px; -} - -.js .widgets-holder-wrap.closed .widget, -.js .widgets-holder-wrap.closed .sidebar-description, -.js .closed br.clear { - display: none; -} - -.js .widgets-holder-wrap.closed .widget.ui-sortable-helper { - display: block; -} - -/* Hide Widget Settings by Default */ -.widget-inside, -.widget-description { - display: none; -} - -.widget-inside { - background: #fff; -} - -/* Dragging widgets over the available widget area show's a "Deactivate" message */ -#removing-widget { - display: none; - font-weight: normal; - padding-right: 15px; - font-size: 12px; - line-height: 1; - color: black; -} - -.js #removing-widget { - color: #00a0d2; -} - -.widget-control-noform, -#access-off, -.widgets_access .widget-action, -.widgets_access .sidebar-name-arrow, -.widgets_access #access-on, -.widgets_access .widget-holder .description, -.no-js .widget-holder .description { - display: none; -} - -.widgets_access .widget-holder, -.widgets_access #widget-list { - padding-top: 10px; -} - -.widgets_access #access-off { - display: inline; -} - -.widgets_access .sidebar-name, -.widgets_access .widget .widget-top { - cursor: default; -} - - -/* Widgets Area Chooser */ -.widget-liquid-left #widgets-left.chooser #available-widgets .widget, -.widget-liquid-left #widgets-left.chooser .inactive-sidebar { - -webkit-transition: opacity 0.1s linear; - transition: opacity 0.1s linear; -} - -.widget-liquid-left #widgets-left.chooser #available-widgets .widget, -.widget-liquid-left #widgets-left.chooser .inactive-sidebar { - /* -webkit-filter: blur(1px); */ - opacity: 0.2; - pointer-events: none; -} - -.widget-liquid-left #widgets-left.chooser #available-widgets .widget-in-question { - /* -webkit-filter: none; */ - opacity: 1; - pointer-events: auto; -} - -.widgets-chooser ul, -#widgets-left .widget-in-question .widget-top, -#available-widgets .widget-top:hover, -div#widgets-right .widget-top:hover, -#widgets-left .widget-top:hover { - border-color: #999; - -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1); - box-shadow: 0 1px 2px rgba(0,0,0,0.1); -} - -.widgets-chooser ul.widgets-chooser-sidebars { - margin: 0; - list-style-type: none; - max-height: 300px; - overflow: auto; -} - -.widgets-chooser { - display: none; -} - -.widgets-chooser ul { - border: 1px solid #ccc; -} - -.widgets-chooser li { - padding: 10px 35px 10px 15px; - border-bottom: 1px solid #ccc; - background: #fff; - margin: 0; - cursor: pointer; - outline: none; - position: relative; - -webkit-transition: background 0.2s ease-in-out; - transition: background 0.2s ease-in-out; -} - -.widgets-chooser li:hover, -.widgets-chooser li:focus { - background: rgba(255,255,255,0.7); -} - -.widgets-chooser li:focus:before { - content: '\f147'; - display: block; - -webkit-font-smoothing: antialiased; - font: normal 26px/1 'dashicons'; - color: #999; - position: absolute; - top: 7px; - right: 5px; -} - -.widgets-chooser li:last-child { - border: none; -} - -.widgets-chooser li.widgets-chooser-selected { - background: #00a0d2; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - content: '\f147'; - display: block; - -webkit-font-smoothing: antialiased; - font: normal 26px/1 'dashicons'; - color: #fff; - position: absolute; - top: 7px; - right: 5px; -} - -.widgets-chooser .widgets-chooser-actions { - padding: 10px 0 12px 0; - text-align: center; -} - -.widgets-chooser button { - margin-left: 5px; -} - -#available-widgets .widget .widget-top { - cursor: pointer; -} - -#available-widgets .widget.ui-draggable-dragging .widget-top { - cursor: move; -} - -/* =Media Queries --------------------------------------------------------------- */ - -@media screen and (max-width: 480px) { - div.widget-liquid-left { - width: 100%; - float: none; - border-left: none; - padding-left: 0; - } - - #widgets-left .sidebar-name { - margin-left: 0; - } - - #widgets-left #available-widgets .widget-top { - margin-left: 0; - } - - #widgets-left .inactive-sidebar .widgets-sortables { - margin-left: 0; - } - - div.widget-liquid-right { - width: 100%; - float: none; - } - - div.widget { - margin: 0 auto 10px !important; - max-width: 480px; - } -} - -@media screen and (max-width: 320px) { - div.widget { - max-width: 320px; - } -} - -@media only screen and (min-width: 1250px) { - #widgets-left #available-widgets .widget { - width: 49%; - float: right; - } - - .widget.ui-draggable-dragging { - min-width: 49%; - } - - #widgets-left #available-widgets .widget:nth-child(even) { - float: left; - } - - #widgets-right .sidebars-column-1, - #widgets-right .sidebars-column-2 { - float: right; - width: 49%; - } - - #widgets-right .sidebars-column-1 { - margin-left: 2%; - } - - #widgets-right.single-sidebar .sidebars-column-1, - #widgets-right.single-sidebar .sidebars-column-2 { - float: none; - width: 100%; - margin: 0; - } -} diff --git a/wp-admin/css/widgets.css b/wp-admin/css/widgets.css deleted file mode 100644 index 3befaf29a8..0000000000 --- a/wp-admin/css/widgets.css +++ /dev/null @@ -1,587 +0,0 @@ -/* General Widgets Styles */ - -.widget { - margin: 0 auto 10px; - position: relative; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.widget-top { - font-size: 13px; - font-weight: 600; - background: #f7f7f7; -} - -.widget-top a.widget-action, -.widget-top a.widget-action:hover { - -webkit-box-shadow: none; - box-shadow: none; - outline: none; - text-decoration: none; -} - -.widget-title h4 { - margin: 0; - padding: 15px; - line-height: 1; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.widgets-holder-wrap .widget-inside { - border-top: none; - padding: 1px 15px 15px 15px; - line-height: 16px; -} - -.in-widget-title, -#widgets-right a.widget-control-edit, -#available-widgets .widget-description { - color: #666; -} - -.deleting .widget-title, -.deleting .widget-top a.widget-action:after { - color: #a0a5aa; -} - -/* Widget Dragging Helpers */ -.widget.ui-draggable-dragging { - min-width: 100%; -} - -.widget.ui-sortable-helper { - opacity: 0.8; -} - -.widget-placeholder { - border: 1px dashed #b4b9be; - margin: 0 auto 10px; - height: 45px; - width: 100%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -#widgets-right .widget-placeholder { - margin-top: 0; -} - -#widgets-right .closed .widget-placeholder { - height: 0; - border: 0; - margin-top: -10px; -} - -/* Widget Sidebars */ -.sidebar-name { - position: relative; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.sidebar-name-arrow { - position: absolute; - top: 0; - right: 0; - bottom: 0; -} - -.js .sidebar-name { - cursor: pointer; -} - -.sidebar-name h3 { - margin: 0; - padding: 8px 10px; - overflow: hidden; - white-space: nowrap; -} - -.widgets-holder-wrap .description { - padding: 0 0 15px; - margin: 0; - font-style: normal; - color: #777; -} - -#widgets-right .widgets-holder-wrap .description { - padding-left: 7px; - padding-right: 7px; -} - -/* Widgets 2-col Layout */ -div.widget-liquid-left { - margin: 0; - width: 38%; - float: left; -} - -div.widget-liquid-right { - float: right; - width: 58%; -} - -/* Widgets Left - Available Widgets */ - -div#widgets-left { - padding-top: 12px; -} - -div#widgets-left .closed .sidebar-name, -div#widgets-left .inactive-sidebar.closed .sidebar-name { - margin-bottom: 10px; -} - -div#widgets-left .sidebar-name h3 { - padding: 10px 0; - margin: 0 10px 0 0; -} - -div#widgets-left .sidebar-name .sidebar-name-arrow:before { - right: 0; - top: 4px; - padding: 4px 6px 4px 4px; -} - -#widgets-left #available-widgets, -div#widgets-left .widget-holder { - background: transparent; - border: none; -} - -#widgets-left .widgets-holder-wrap { - border: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -#available-widgets .widget-action { - display: none; -} - -#available-widgets .widget { - margin: 0; -} - -#available-widgets .widget:nth-child(odd) { - clear: both; -} - -#available-widgets .widget .widget-description { - display: block; - padding: 10px 15px; - font-size: 12px; -} - -#available-widgets #widget-list { - position: relative; -} - -/* Inactive Sidebars */ -#widgets-left .inactive-sidebar { - clear: both; - width: 100%; - background: transparent; - padding: 0; - margin: 0 0 20px 0; - border: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -#widgets-left .inactive-sidebar.first { - margin-top: 40px; -} - -/* Not sure what this is for... */ -div#widgets-left .inactive-sidebar .widget.expanded { - left: auto; -} - -.widget-title-action { - float: right; - position: relative; -} - -div#widgets-left .inactive-sidebar .widgets-sortables { - min-height: 42px; - padding: 0; - background: transparent; - margin: 0; - position: relative; -} - -/* Widgets Right */ - -div#widgets-right:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -div#widgets-right .sidebars-column-1, -div#widgets-right .sidebars-column-2 { - max-width: 450px; -} - -div#widgets-right .widgets-holder-wrap { - margin: 10px 0 0 0; -} - -div#widgets-right .sidebar-description { - min-height: 20px; - margin-top: -5px; -} - -div#widgets-right .sidebar-name h3 { - padding: 15px 7px; -} - -div#widgets-right .sidebar-name .sidebar-name-arrow:before { - right: 0; - top: 4px; -} - -div#widgets-right .widget-top { - padding: 0; -} - -div#widgets-right .widgets-sortables { - padding: 0 8px; - margin-bottom: 9px; - position: relative; - min-height: 123px; -} - -div#widgets-right .closed .widgets-sortables { - min-height: 0; - margin-bottom: 0; -} - -.sidebar-name .spinner { - float: none; - position: relative; - top: -2px; - margin: -5px 5px; -} - -/* Dragging a widget over a closed sidebar */ -#widgets-right .widgets-holder-wrap.widget-hover { - border-color: #777; - -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.3); - box-shadow: 0 1px 2px rgba(0,0,0,0.3); -} - -/* Accessibility Mode */ -.widgets_access #widgets-left .widget .widget-top { - cursor: auto; -} - -.widgets_access #wpwrap .widgets-holder-wrap.closed .sidebar-description, -.widgets_access #wpwrap .widgets-holder-wrap.closed .widget, -.widgets_access #wpwrap .widget-control-edit { - display: block; -} - -.widgets_access #widgets-left .widget .widget-top:hover, -.widgets_access #widgets-right .widget .widget-top:hover { - border-color: #ddd; -} - -#available-widgets .widget-control-edit .edit, -#widgets-left .inactive-sidebar .widget-control-edit .add, -#widgets-right .widget-control-edit .add { - display: none; -} - -.widget-control-edit { - display: block; - color: #666; - background: #EEE; - padding: 0 15px; - line-height: 43px; - border-left: 1px solid #DDD; -} - -#widgets-left .widget-control-edit:hover, -#widgets-right .widget-control-edit:hover { - color: #fff; - background: #444; - border-left: 0; - outline: 1px solid #444; -} - -.widgets-holder-wrap .sidebar-name, -.widgets-holder-wrap .sidebar-description { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.editwidget { - margin: 0 auto; -} - -.editwidget .widget-inside { - display: block; - padding: 0 15px; -} - -.editwidget .widget-control-actions { - margin-top: 20px; -} - -.js .widgets-holder-wrap.closed .widget, -.js .widgets-holder-wrap.closed .sidebar-description, -.js .closed br.clear { - display: none; -} - -.js .widgets-holder-wrap.closed .widget.ui-sortable-helper { - display: block; -} - -/* Hide Widget Settings by Default */ -.widget-inside, -.widget-description { - display: none; -} - -.widget-inside { - background: #fff; -} - -/* Dragging widgets over the available widget area show's a "Deactivate" message */ -#removing-widget { - display: none; - font-weight: normal; - padding-left: 15px; - font-size: 12px; - line-height: 1; - color: black; -} - -.js #removing-widget { - color: #00a0d2; -} - -.widget-control-noform, -#access-off, -.widgets_access .widget-action, -.widgets_access .sidebar-name-arrow, -.widgets_access #access-on, -.widgets_access .widget-holder .description, -.no-js .widget-holder .description { - display: none; -} - -.widgets_access .widget-holder, -.widgets_access #widget-list { - padding-top: 10px; -} - -.widgets_access #access-off { - display: inline; -} - -.widgets_access .sidebar-name, -.widgets_access .widget .widget-top { - cursor: default; -} - - -/* Widgets Area Chooser */ -.widget-liquid-left #widgets-left.chooser #available-widgets .widget, -.widget-liquid-left #widgets-left.chooser .inactive-sidebar { - -webkit-transition: opacity 0.1s linear; - transition: opacity 0.1s linear; -} - -.widget-liquid-left #widgets-left.chooser #available-widgets .widget, -.widget-liquid-left #widgets-left.chooser .inactive-sidebar { - /* -webkit-filter: blur(1px); */ - opacity: 0.2; - pointer-events: none; -} - -.widget-liquid-left #widgets-left.chooser #available-widgets .widget-in-question { - /* -webkit-filter: none; */ - opacity: 1; - pointer-events: auto; -} - -.widgets-chooser ul, -#widgets-left .widget-in-question .widget-top, -#available-widgets .widget-top:hover, -div#widgets-right .widget-top:hover, -#widgets-left .widget-top:hover { - border-color: #999; - -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1); - box-shadow: 0 1px 2px rgba(0,0,0,0.1); -} - -.widgets-chooser ul.widgets-chooser-sidebars { - margin: 0; - list-style-type: none; - max-height: 300px; - overflow: auto; -} - -.widgets-chooser { - display: none; -} - -.widgets-chooser ul { - border: 1px solid #ccc; -} - -.widgets-chooser li { - padding: 10px 15px 10px 35px; - border-bottom: 1px solid #ccc; - background: #fff; - margin: 0; - cursor: pointer; - outline: none; - position: relative; - -webkit-transition: background 0.2s ease-in-out; - transition: background 0.2s ease-in-out; -} - -.widgets-chooser li:hover, -.widgets-chooser li:focus { - background: rgba(255,255,255,0.7); -} - -.widgets-chooser li:focus:before { - content: '\f147'; - display: block; - -webkit-font-smoothing: antialiased; - font: normal 26px/1 'dashicons'; - color: #999; - position: absolute; - top: 7px; - left: 5px; -} - -.widgets-chooser li:last-child { - border: none; -} - -.widgets-chooser li.widgets-chooser-selected { - background: #00a0d2; - color: #fff; -} - -.widgets-chooser li.widgets-chooser-selected:before, -.widgets-chooser li.widgets-chooser-selected:focus:before { - content: '\f147'; - display: block; - -webkit-font-smoothing: antialiased; - font: normal 26px/1 'dashicons'; - color: #fff; - position: absolute; - top: 7px; - left: 5px; -} - -.widgets-chooser .widgets-chooser-actions { - padding: 10px 0 12px 0; - text-align: center; -} - -.widgets-chooser button { - margin-right: 5px; -} - -#available-widgets .widget .widget-top { - cursor: pointer; -} - -#available-widgets .widget.ui-draggable-dragging .widget-top { - cursor: move; -} - -/* =Media Queries --------------------------------------------------------------- */ - -@media screen and (max-width: 480px) { - div.widget-liquid-left { - width: 100%; - float: none; - border-right: none; - padding-right: 0; - } - - #widgets-left .sidebar-name { - margin-right: 0; - } - - #widgets-left #available-widgets .widget-top { - margin-right: 0; - } - - #widgets-left .inactive-sidebar .widgets-sortables { - margin-right: 0; - } - - div.widget-liquid-right { - width: 100%; - float: none; - } - - div.widget { - margin: 0 auto 10px !important; - max-width: 480px; - } -} - -@media screen and (max-width: 320px) { - div.widget { - max-width: 320px; - } -} - -@media only screen and (min-width: 1250px) { - #widgets-left #available-widgets .widget { - width: 49%; - float: left; - } - - .widget.ui-draggable-dragging { - min-width: 49%; - } - - #widgets-left #available-widgets .widget:nth-child(even) { - float: right; - } - - #widgets-right .sidebars-column-1, - #widgets-right .sidebars-column-2 { - float: left; - width: 49%; - } - - #widgets-right .sidebars-column-1 { - margin-right: 2%; - } - - #widgets-right.single-sidebar .sidebars-column-1, - #widgets-right.single-sidebar .sidebars-column-2 { - float: none; - width: 100%; - margin: 0; - } -} diff --git a/wp-admin/css/wp-admin-rtl.css b/wp-admin/css/wp-admin-rtl.css deleted file mode 100644 index 5e7c37d6d6..0000000000 --- a/wp-admin/css/wp-admin-rtl.css +++ /dev/null @@ -1,14 +0,0 @@ -@import url(common-rtl.css); -@import url(forms-rtl.css); -@import url(admin-menu-rtl.css); -@import url(dashboard-rtl.css); -@import url(list-tables-rtl.css); -@import url(edit-rtl.css); -@import url(revisions-rtl.css); -@import url(media-rtl.css); -@import url(themes-rtl.css); -@import url(about-rtl.css); -@import url(nav-menus-rtl.css); -@import url(widgets-rtl.css); -@import url(site-icon-rtl.css); -@import url(l10n-rtl.css); diff --git a/wp-admin/css/wp-admin-rtl.min.css b/wp-admin/css/wp-admin-rtl.min.css deleted file mode 100644 index 3ed8f6d477..0000000000 --- a/wp-admin/css/wp-admin-rtl.min.css +++ /dev/null @@ -1,8 +0,0 @@ -#ajax-loading,#screen-meta .screen-reader-text,.ajax-feedback,.ajax-loading,.imgedit-wait-spin,.list-ajax-loading,.row-actions,.spinner{visibility:hidden}.color-palette,.form-table,.media-item .describe{border-collapse:collapse}#wpwrap{height:auto;min-height:100%;width:100%;position:relative;-webkit-font-smoothing:subpixel-antialiased}#wpcontent{height:100%;padding-right:20px}#wpcontent,#wpfooter{margin-right:160px}.folded #wpcontent,.folded #wpfooter{margin-right:36px}#wpbody-content{padding-bottom:65px;float:right;width:100%;overflow:visible!important}.inner-sidebar{float:left;clear:left;display:none;width:281px;position:relative}.columns-2 .inner-sidebar{margin-left:auto;width:286px;display:block}.columns-2 .inner-sidebar #side-sortables,.inner-sidebar #side-sortables{min-height:300px;width:280px;padding:0}.has-right-sidebar .inner-sidebar{display:block}.has-right-sidebar #post-body{float:right;clear:right;width:100%;margin-left:-2000px}.has-right-sidebar #post-body-content{margin-left:300px;float:none;width:auto}#col-container,#col-left,#col-right{overflow:hidden;padding:0;margin:0}#col-left{width:35%}#col-right{float:left;clear:left;width:65%}.alignleft,.subsubsub{float:right}.col-wrap{padding:0 7px}.alignright{float:left}.textleft{text-align:right}.textright{text-align:left}.clear{clear:both}.screen-reader-text,.screen-reader-text span,.ui-helper-hidden-accessible{position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0;word-wrap:normal!important}#adminmenu .wp-submenu,#dashboard_quick_press .draft-title,#templateside,#the-comment-list td.comment,.dashboard-comment-wrap,.pre,.widefat *{word-wrap:break-word}.screen-reader-shortcut{position:absolute;top:-1000em}.screen-reader-shortcut:focus{right:6px;top:-25px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#21759b;z-index:100000;line-height:normal;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,.6);box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:0}body,p{font-size:13px}.hidden,.js .closed .inside,.js .hide-if-js,.js .wp-core-ui .hide-if-js,.js.wp-core-ui .hide-if-js,.no-js .hide-if-no-js,.no-js .wp-core-ui .hide-if-no-js,.no-js.wp-core-ui .hide-if-no-js{display:none}#menu-management .menu-edit,#menu-settings-column .accordion-container,.comment-ays,.feature-filter,.imgedit-group,.manage-menus,.menu-item-handle,.popular-tags,.stuffbox,.widget-inside,.widget-top,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04)}.comment-ays,.feature-filter,.imgedit-group,.popular-tags,.stuffbox,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{background:#fff}body,html{height:100%;margin:0;padding:0}html{background:#f1f1f1}body{color:#444;font-family:"Open Sans",sans-serif;line-height:1.4em;min-width:600px}body.iframe{min-width:0;padding-top:1px}body.modal-open{overflow:hidden}body.mobile.modal-open #wpwrap{overflow:hidden;position:fixed;height:100%}iframe,img{border:0}td{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit}a{color:#0073aa;-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}a,div{outline:0}a:active,a:hover{color:#00a0d2}a:focus,a:focus .media-icon img{color:#124964;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ie8 a:focus{outline:#5b9dd9 solid 1px}#adminmenu a:focus,.screen-reader-text:focus{-webkit-box-shadow:none;box-shadow:none;outline:0}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}p{line-height:1.5;margin:1em 0}blockquote{margin:1em}dd,li{margin-bottom:6px}h1,h2,h3,h4,h5,h6{display:block;font-weight:600}h1{font-size:2em;margin:.67em 0}.wrap>h1,h2{color:#23282d;font-size:1.5em;margin:.83em 0;font-weight:400}h3{color:#23282d;font-size:1.3em;margin:1em 0}h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.67em;margin:2.33em 0}ol,ul{padding:0}ul{list-style:none}ol{list-style-type:decimal;margin-right:2em}ul.ul-disc{list-style:disc}.side-info ul,ul.ul-square{list-style:square}ol.ol-decimal{list-style:decimal}ol.ol-decimal,ul.ul-disc,ul.ul-square{margin-right:1.8em}ol.ol-decimal>li,ul.ul-disc>li,ul.ul-square>li{margin:0 0 .5em}.ltr{direction:ltr}.code,code{font-family:Consolas,Monaco,monospace;direction:ltr;unicode-bidi:embed}code,kbd{padding:3px 5px 2px;margin:0 1px;background:#eaeaea;background:rgba(0,0,0,.07);font-size:13px}.subsubsub{list-style:none;margin:8px 0 0;padding:0;font-size:13px;color:#666}.subsubsub a{line-height:2;padding:.2em;text-decoration:none}.subsubsub a .count,.subsubsub a.current .count{color:#999;font-weight:400}.subsubsub a.current{font-weight:600;border:none}.subsubsub li{display:inline-block;margin:0;padding:0;white-space:nowrap}.widefat{border-spacing:0;width:100%;clear:both;margin:0}.widefat a{text-decoration:none}.widefat td,.widefat th{padding:8px 10px}.widefat thead td,.widefat thead th{border-bottom:1px solid #e1e1e1}.widefat tfoot td,.widefat tfoot th{border-top:1px solid #e1e1e1;border-bottom:none}.widefat .no-items td{border-bottom-width:0}.widefat td{vertical-align:top}.widefat td,.widefat td ol,.widefat td p,.widefat td ul{font-size:13px;line-height:1.5em}.widefat tfoot td,.widefat th,.widefat thead td{text-align:right;line-height:1.3em;font-size:14px}.widefat tfoot td input,.widefat th input,.widefat thead td input{margin:0 8px 0 0;padding:0;vertical-align:text-top}.widefat .check-column{width:2.2em;padding:6px 0 25px;vertical-align:top}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-top:-1px}.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column{padding:11px 3px 0 0}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:10px}.update-php div.error,.update-php div.updated{margin-right:0}.no-js .widefat tfoot .check-column input,.no-js .widefat thead .check-column input{display:none}.column-comments,.column-links,.column-posts,.widefat .num{text-align:center}.widefat th#comments{vertical-align:middle}.wrap{margin:10px 2px 0 20px}.subtitle,.wrap h1,.wrap h2{font-weight:400;margin:0}.wrap h1,.wrap h2{font-size:23px;font-weight:400;padding:9px 0 4px 15px;line-height:29px}.subtitle{color:#777;font-size:14px;padding-right:25px}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{margin-right:4px;padding:4px 8px;position:relative;top:-3px;text-decoration:none;border:none;-webkit-border-radius:2px;border-radius:2px;background:#e0e0e0;text-shadow:none;font-weight:600;font-size:13px}.wrap .add-new-h2:hover,.wrap .page-title-action:hover{background:#00a0d2;color:#fff}.wrap h1.long-header{padding-left:0}.wp-dialog{background-color:#fff}.sorthelper{background-color:#ccf3fa}.ac_match,.subsubsub a.current{color:#000}.alternate,.striped>tbody>:nth-child(odd),ul.striped>:nth-child(odd){background-color:#f9f9f9}.bar{background-color:#e8e8e8;border-left-color:#99d}.media-upload-form label.form-help,td.help{color:#9a9a9a}.highlight{background-color:#e4f2fd;color:#000}.wp-ui-primary{color:#fff;background-color:#32373c}.wp-ui-text-primary{color:#32373c}.wp-ui-highlight{color:#fff;background-color:#1e8cbe}.wp-ui-text-highlight{color:#1e8cbe}.wp-ui-notification{color:#fff;background-color:#d54e21}.wp-ui-text-notification{color:#d54e21}.wp-ui-text-icon{color:#999}img.emoji{display:inline!important;border:none!important;height:1em!important;width:1em!important;margin:0 .07em!important;vertical-align:-.1em!important;background:0 0!important;padding:0!important;-webkit-box-shadow:none!important;box-shadow:none!important}#nav-menu-footer,#nav-menu-header,#your-profile #rich_editing,.checkbox,.control-section .accordion-section-title,.menu-item-handle,.postbox .hndle,.side-info,.sidebar-name,.stuffbox .hndle,.widefat tfoot td,.widefat tfoot th,.widefat thead td,.widefat thead th,.widget .widget-top{line-height:1.4em}.menu-item-handle,.widget .widget-top{background:#fafafa;color:#23282d}.postbox .hndle,.stuffbox .hndle{border-bottom:1px solid #eee;user-select:none}.accordion-section-title,.postbox .hndle,.stuffbox .hndle{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.quicktags,.search{background-color:#ccc;color:#000;font-size:12px}.icon32{display:none}#bulk-titles div a:before,.notice-dismiss:before,.tagchecklist span a:before,.welcome-panel .welcome-panel-close:before{background:0 0;color:#b4b9be;content:'\f153';display:block;font:400 16px/20px dashicons;speak:none;height:20px;text-align:center;width:20px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.welcome-panel .welcome-panel-close:before{margin:0}#bulk-titles div a:before,.tagchecklist span a:before{margin:1px 0}#bulk-titles div a:hover:before,.tagchecklist span a:hover:before,.welcome-panel .welcome-panel-close:focus:before,.welcome-panel .welcome-panel-close:hover:before{color:#c00}.key-labels label{line-height:24px}b,strong{font-weight:600}.pre{white-space:pre-wrap}#namediv td.first,#plugin-information-title,.no-break,.star-rating,.ui-autocomplete li{white-space:nowrap}.howto{color:#666;font-style:italic;display:block}p.install-help{margin:8px 0;font-style:italic}hr{border:0;border-top:1px solid #ddd;border-bottom:1px solid #fafafa}#all-plugins-table .plugins a.delete,#media-items a.delete,#media-items a.delete-permanently,#nav-menu-footer .menu-delete,#search-plugins-table .plugins a.delete,.plugins a.delete,.row-actions span.delete a,.row-actions span.spam a,.row-actions span.trash a,.submitbox .submitdelete{color:#a00}#all-plugins-table .plugins a.delete:hover,#media-items a.delete-permanently:hover,#media-items a.delete:hover,#nav-menu-footer .menu-delete:hover,#search-plugins-table .plugins a.delete:hover,.file-error,.plugins a.delete:hover,.row-actions .delete a:hover,.row-actions .spam a:hover,.row-actions .trash a:hover,.submitbox .submitdelete:hover,.widget-control-remove:hover,abbr.required{color:red;text-decoration:none;border:none}#major-publishing-actions{padding:10px;clear:both;border-top:1px solid #ddd;background:#f5f5f5}#delete-action{line-height:28px;vertical-align:middle;text-align:right;float:right}#publishing-action{text-align:left;float:left;line-height:23px}#publishing-action .spinner,#save-post{float:right}#misc-publishing-actions{padding:6px 0 0}.misc-pub-section{padding:6px 10px 8px}#minor-publishing-actions{padding:10px 10px 0;text-align:left}.preview{float:left}#sticky-span{margin-right:18px}.side-info{margin:0;padding:4px;font-size:11px}.side-info h5{padding-bottom:7px;font-size:14px;margin:12px 2px 5px;border-bottom:1px solid #dadada}.side-info ul{margin:0;padding-right:18px;color:#666}.approve,.unapproved .unapprove{display:none}.spam .approve,.trash .approve,.unapproved .approve{display:inline}td.action-links,th.action-links{text-align:left}.wp-filter{display:inline-block;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:12px 0 25px;padding:0 10px;width:100%;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);border:1px solid #e5e5e5;background:#fff;color:#555;font-size:13px}.wp-filter a{text-decoration:none}.filter-count{display:inline-block;vertical-align:middle;min-width:4em}.filter-count .count,.title-count{display:inline-block;position:relative;top:-1px;padding:4px 10px;-webkit-border-radius:30px;border-radius:30px;background:#777;color:#fff;font-size:14px;font-weight:600}.title-count{display:inline;top:-3px;margin-right:5px;margin-left:20px}.filter-items{float:right}.filter-links,.filter-links li{display:inline-block;margin:0}.filter-links li>a{display:inline-block;margin:0 10px;padding:15px 0;border-bottom:4px solid #fff;color:#666;cursor:pointer}.filter-links .current{-webkit-box-shadow:none;box-shadow:none;border-bottom:4px solid #666;color:#23282d}.filter-links li>a:focus,.filter-links li>a:hover,.show-filters .filter-links a.current:focus,.show-filters .filter-links a.current:hover{color:#00a0d2}.wp-filter .search-form{float:left;margin:10px 0}.wp-filter .search-form input[type=search]{margin:0;padding:3px 5px;width:280px;max-width:100%;font-size:16px;font-weight:300;line-height:1.5}.wp-filter .search-form select{margin:0;height:32px;vertical-align:top}.wp-filter .search-form.search-plugins{display:inline-block}.wp-filter .drawer-toggle{display:inline-block;margin:0 10px;padding:4px 6px;color:#666;cursor:pointer}.wp-filter .drawer-toggle:before{display:inline-block;vertical-align:top;content:"\f111";margin:0 0 0 5px;width:16px;height:16px;color:#777;-webkit-transition:color .1s ease-in 0;transition:color .1s ease-in 0;font-family:dashicons;font-size:16px;line-height:1;text-align:center;text-decoration:inherit;font-weight:400;font-style:normal;-webkit-font-smoothing:antialiased}.wp-filter .drawer-toggle:hover,.wp-filter .drawer-toggle:hover:before{color:#00a0d2}.show-filters .wp-filter .drawer-toggle:before,.wp-filter .drawer-toggle.current:before{color:#fff}.filter-drawer{display:none;margin:0 -20px;padding:20px;border-top:1px solid #eee;background:#fafafa}.show-filters .filter-drawer{display:block;overflow:hidden;width:100%}.show-filters .wp-filter .drawer-toggle:focus,.show-filters .wp-filter .drawer-toggle:hover{background:#2ea2cc}.show-filters .filter-links a.current{border-bottom:none}.show-filters .wp-filter .drawer-toggle{-webkit-border-radius:2px;border-radius:2px;border:none;background:#777;color:#fff}.filter-group{box-sizing:border-box;float:right;margin:0 0 0 1%;padding:10px;width:24%;box-shadow:0 1px 1px rgba(0,0,0,.04)}.filter-group,.filtered-by .tag{background:#fff;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04)}.filter-group,html.wp-toolbar{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.filter-group h4{position:relative;margin:0}.filter-drawer ol{margin:20px 0 0;list-style-type:none;font-size:12px}.filter-drawer li{display:inline-block;vertical-align:top;margin:5px 0;padding-left:25px;width:160px;list-style-type:none}.filter-drawer .buttons{margin-bottom:20px}.filter-drawer .buttons .button span{display:inline-block;opacity:.8;font-size:12px;text-indent:10px}.spinner,input[type=checkbox].disabled,input[type=checkbox].disabled:checked:before,input[type=checkbox]:disabled,input[type=checkbox]:disabled:checked:before,input[type=radio].disabled,input[type=radio].disabled:checked:before,input[type=radio]:disabled,input[type=radio]:disabled:checked:before{opacity:.7}.wp-filter .button.clear-filters{display:none;margin-right:10px}.filtered-by{display:none;margin:0}.filtered-by>span{font-weight:600}.filtered-by a{margin-right:10px}.filtered-by .tags{display:inline}.filtered-by .tag{margin:0 5px;padding:4px 8px;box-shadow:0 1px 1px rgba(0,0,0,.04);font-size:11px}.filters-applied .filter-drawer .buttons,.filters-applied .filter-drawer br,.filters-applied .filter-group{display:none!important}.filters-applied .filtered-by{display:block}.filters-applied .filter-drawer{padding:20px}.error .content-filterable,.loading-content .content-filterable,.show-filters .content-filterable,.show-filters.filters-applied.loading-content .content-filterable{display:none}.show-filters.filters-applied .content-filterable{display:block}.loading-content .spinner{display:block;margin:40px auto 0;float:none}@media only screen and (max-width:1120px){.filter-drawer{border-bottom:1px solid #eee}.filter-group{margin-bottom:0;margin-top:5px;width:100%}.filter-group li{margin:10px 0}}@media only screen and (max-width:1000px){.filter-items{float:none}.wp-filter .media-toolbar-primary,.wp-filter .media-toolbar-secondary,.wp-filter .search-form{float:none;position:relative;max-width:100%}}@media only screen and (max-width:782px){.filter-group li{padding:0;width:50%}}@media only screen and (max-width:320px){.filter-count{display:none}.wp-filter .drawer-toggle{margin:10px 0}.filter-group li,.wp-filter .search-form input[type=search]{width:100%}}.notice,div.error,div.updated{background:#fff;border-right:4px solid #fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 15px 2px;padding:1px 12px}.notice-dismiss:focus,.widget-top a.widget-action:focus:after{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.form-table td .notice p,.notice p,div.error p,div.updated p{margin:.5em 0;padding:2px}.wp-core-ui .notice.is-dismissible{padding-left:38px;position:relative}.notice-dismiss{position:absolute;top:0;left:1px;border:none;margin:0;padding:9px;background:0 0;color:#b4b9be;cursor:pointer}.notice-dismiss:active:before,.notice-dismiss:focus:before,.notice-dismiss:hover:before{color:#c00}.notice-dismiss:focus{outline:0;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ie8 .notice-dismiss:focus{outline:#5b9dd9 solid 1px}.notice-success,div.updated{border-color:#7ad03a}.notice-warning{border-color:#ffba00}.notice-error,div.error{border-color:#dd3d36}.notice-info{border-color:#00a0d2}.media-upload-form .notice,.media-upload-form div.error,.wrap .notice,.wrap div.error,.wrap div.updated{margin:5px 0 15px}#update-nag,.update-nag{display:inline-block;line-height:19px;padding:11px 15px;font-size:14px;text-align:right;margin:25px 2px 0 20px;background-color:#fff;border-right:4px solid #ffba00;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.update-message{color:#000}.update-php .spinner{float:none;margin:-4px 0}#ajax-response.alignleft{margin-right:2em}#adminmenu a,#catlist a,#taglist a{text-decoration:none}#contextual-help-wrap,#screen-options-wrap{margin:0;padding:8px 20px 12px;position:relative}#contextual-help-wrap{overflow:auto;margin-right:0!important}#screen-meta-links{margin:0 0 0 20px}#screen-meta{display:none;margin:0 0 -1px 20px;position:relative;background-color:#fff;border:1px solid #ddd;border-top:none;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.025);box-shadow:0 1px 0 rgba(0,0,0,.025)}#contextual-help-link-wrap,#screen-options-link-wrap{float:left;height:28px;margin:0 6px 0 0;border:1px solid #ddd;border-top:none;background:#fff;-webkit-box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-shadow:0 1px 1px -1px rgba(0,0,0,.1)}#screen-meta-links .screen-meta-toggle{position:relative;top:0}#screen-meta-links .show-settings{border:0;background:0 0;-webkit-border-radius:0;border-radius:0;color:#777;line-height:1.7;padding:3px 16px 3px 6px}#screen-meta-links .show-settings:active,#screen-meta-links .show-settings:focus,#screen-meta-links .show-settings:hover{color:#32373c}#screen-meta-links .show-settings:after{left:0;content:'\f140';font:400 20px/1 dashicons;speak:none;display:inline-block;padding:0 0 0 5px;bottom:2px;position:relative;vertical-align:bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#b4b9be}.hndle a,.widefat tfoot td,.widefat th,.widefat thead td{font-weight:400}#screen-meta-links .screen-meta-active:after{content:'\f142'}.toggle-arrow{background-repeat:no-repeat;background-position:top left;background-color:transparent;height:22px;line-height:22px;display:block}.toggle-arrow-active{background-position:bottom left}#contextual-help-wrap h5,#screen-options-wrap h5{margin:8px 0;font-size:13px}.metabox-prefs label{display:inline-block;padding-left:15px;line-height:30px}.metabox-prefs label input[type=checkbox]{margin-top:-4px;margin-left:6px}.metabox-prefs label input{margin:0 2px 0 5px}.metabox-prefs .columns-prefs label input{margin:0 2px}.metabox-prefs label a{display:none}.metabox-prefs .screen-options{padding-top:10px}.metabox-prefs .screen-options input,.metabox-prefs .screen-options label{margin-top:0;margin-bottom:0;vertical-align:middle}.metabox-prefs .screen-options .screen-per-page{margin-left:15px}.metabox-prefs .screen-options label{line-height:28px;padding-left:0}#contextual-help-wrap{padding:0}#contextual-help-columns{position:relative}#contextual-help-back{position:absolute;top:0;bottom:0;right:150px;left:170px;border:1px solid #e1e1e1;border-top:none;border-bottom:none;background:#f6fbfd}#contextual-help-wrap.no-sidebar #contextual-help-back{left:0;border-left-width:0;-webkit-border-bottom-left-radius:2px;border-bottom-left-radius:2px}.contextual-help-tabs{float:right;width:150px;margin:0}.contextual-help-tabs ul{margin:1em 0}.contextual-help-tabs li{margin-bottom:0;list-style-type:none;border-style:solid;border-width:0 2px 0 0;border-color:transparent}.contextual-help-tabs a{display:block;padding:5px 12px 5px 5px;line-height:18px;text-decoration:none;border:1px solid transparent;border-left:none;border-right:none}.contextual-help-tabs a:hover{color:#32373c}.contextual-help-tabs .active{padding:0;margin:0 0 0 -1px;border-right:2px solid #00a0d2;background:#f6fbfd;-webkit-box-shadow:0 2px 0 rgba(0,0,0,.02),0 1px 0 rgba(0,0,0,.02);box-shadow:0 2px 0 rgba(0,0,0,.02),0 1px 0 rgba(0,0,0,.02)}.contextual-help-tabs .active a{border-color:#e1e1e1;color:#32373c}.contextual-help-tabs-wrap{padding:0 20px;overflow:auto}.help-tab-content{display:none;margin:0 0 12px 22px;line-height:1.6em}.help-tab-content.active{display:block}.nav-tab,.spinner{display:inline-block}.help-tab-content ul li{list-style-type:disc;margin-right:18px}.contextual-help-sidebar{width:150px;float:left;padding:0 12px 0 8px;overflow:auto}html.wp-toolbar{padding-top:32px;box-sizing:border-box}.widefat td,.widefat th{color:#555}.widefat ol,.widefat p,.widefat tfoot tr td,.widefat tfoot tr th,.widefat thead tr td,.widefat thead tr th,.widefat ul{color:#32373c}.widefat td p{margin:2px 0 .8em}.widefat .column-comment p{margin:.6em 0}.postbox-container{float:right}.postbox-container .meta-box-sortables{box-sizing:border-box}.postbox-container .meta-box-sortables,input,textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}#wpbody-content .metabox-holder{padding-top:10px}.metabox-holder .postbox-container .empty-container{border:3px dashed #b4b9be;height:250px}.columns-2 #postbox-container-3 .empty-container,.columns-2 #postbox-container-4 .empty-container,.columns-3 #postbox-container-4 .empty-container,.metabox-holder.columns-1 .postbox-container .empty-container{border:0;height:0;min-height:0}#post-body-content{width:100%;min-width:463px;float:right}#post-body.columns-2 #postbox-container-1{float:left;margin-left:-300px;width:280px}#post-body.columns-2 #side-sortables{min-height:250px}@media only screen and (max-width:799px){#wpbody-content .metabox-holder .postbox-container .empty-container{border:0;height:0;min-height:0}}.js .postbox .hndle,.js .widget .widget-top{cursor:move}.js .accordion-section-title,.js .postbox .handlediv{cursor:pointer}.hndle a{font-size:11px}.postbox .handlediv{float:left;width:27px;height:30px}.sortable-placeholder{border:1px dashed #b4b9be;margin-bottom:20px}.postbox,.stuffbox{margin-bottom:20px;padding:0;line-height:1}.postbox .inside,.stuffbox .inside{padding:0 12px 12px;line-height:1.4em;font-size:13px}.postbox .inside{margin:11px 0;position:relative}.postbox .inside>p:last-child,.rss-widget ul li:last-child{margin-bottom:1px!important}.postbox.closed h3{border:none;-webkit-box-shadow:none;box-shadow:none}.postbox table.form-table{margin-bottom:0}.postbox table.widefat{-webkit-box-shadow:none;box-shadow:none}.temp-border{border:1px dotted #ccc}.columns-prefs label{padding:0 5px}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover,#dashboard_right_now .versions .b,#ed_reply_toolbar #ed_reply_strong,#pass-strength-result.short,#pass-strength-result.strong,#post-status-display,#post-visibility-display,.feature-filter .feature-name,.item-controls .item-order a,.media-item .percent,.plugins .name{font-weight:600}#wpfooter{position:absolute;bottom:0;right:0;left:0;padding:10px 20px;color:#777}#wpfooter p{font-size:13px;margin:0;line-height:20px}#footer-thankyou{font-style:italic}#wpfooter a{text-decoration:none}#wpfooter a:hover{text-decoration:underline}#templateside ul li a,.nav-tab{text-decoration:none}.nav-tab{border:1px solid #ccc;border-bottom:none;background:#e4e4e4;color:#555;font-size:12px;line-height:16px;padding:4px 14px 6px;margin:-4px 0 -1px 4px}.nav-tab:hover{background-color:#fff;color:#464646}.nav-tab-active,.nav-tab-active:hover{border-bottom:1px solid #f1f1f1;background:#f1f1f1;color:#000}h1.nav-tab-wrapper,h2.nav-tab-wrapper,h3.nav-tab-wrapper{border-bottom:1px solid #ccc;padding-bottom:0;padding-right:10px}h1 .nav-tab,h2 .nav-tab{padding:6px 10px;font-weight:700;font-size:15px;line-height:24px}.spinner{background:url(../images/spinner.gif) no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;float:left;vertical-align:middle;filter:alpha(opacity=70);width:20px;height:20px;margin:4px 10px 0}.spinner.is-active{visibility:visible}#template div{margin-left:190px}.metabox-holder h3{font-size:14px;padding:8px 12px;margin:0;line-height:1.4}.plugin-install #description,.plugin-install-network #description{width:60%}table .column-rating,table .column-visible,table .vers{text-align:right}.attention,.error-message{color:red;font-weight:600}body.iframe{height:98%}.lp-show-latest p{display:none}#howto,.lp-show-latest .lp-error p,.lp-show-latest p:last-child{display:block}.media-icon{width:62px;text-align:center}.media-icon img{border:1px solid #e7e7e7;border:1px solid rgba(0,0,0,.07)}#howto{font-size:11px;margin:0 5px}.post-categories,.post-categories li{display:inline}.importers td{padding-left:14px}.checkbox,.post-categories,.zerosize,fieldset{margin:0;padding:0}.importers{font-size:16px;width:auto}#post-body #post-body-content #namediv h3{margin-top:0}.edit-comment-author{font-size:14px;line-height:1.4;font-weight:600;color:#222;margin:2px 9px 0 0}#namediv h3 label{vertical-align:baseline}#namediv table{width:100%}#namediv td.first{width:10px}#namediv input{width:98%}#namediv p{margin:10px 0}#submitdiv h3{margin-bottom:0!important}.zerosize{height:0;width:0;border:0;overflow:hidden;position:absolute}br.clear{height:2px;line-height:2px}.checkbox{border:none}fieldset{border:0}div.star-holder{position:relative;height:17px;width:100px;background:url(../images/stars.png?ver=20121108) bottom left repeat-x}div.star-holder .star-rating{background:url(../images/stars.png?ver=20121108) top left repeat-x;height:17px;float:right}.star-rating .star{display:inline-block;width:20px;height:20px;-webkit-font-smoothing:antialiased;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;font-weight:400;font-style:normal;vertical-align:top;-webkit-transition:color .1s ease-in 0;transition:color .1s ease-in 0;text-align:center;color:#ffb900}.star-rating .star-full:before{content:'\f155'}.star-rating .star-half:before{content:'\f459'}.rtl .star-rating .star-half{-webkit-transform:rotateY(180deg);-ms-transform:rotateY(180deg);transform:rotateY(180deg)}.star-rating .star-empty:before{content:'\f154'}div.action-links{font-weight:400}#plugin-information{background:#fff;position:fixed;top:0;left:0;bottom:0;right:0;height:100%;padding:0}#plugin-information-scrollable{overflow:auto;-webkit-overflow-scrolling:touch;height:100%}#plugin-information-title{padding:0 20px;background:#f5f5f5;font-size:22px;font-weight:600;line-height:56px;position:relative;top:0;left:0;right:0;height:56px;overflow:hidden;text-overflow:ellipsis}#plugin-information-title.with-banner{margin-left:0;height:250px;bottom:250px;-webkit-background-size:cover;background-size:cover}#plugin-information-title h2{font-size:1em;font-weight:700;padding:0;margin:0;max-width:680px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-box-sortables select,p.submit{max-width:100%}#plugin-information-title.with-banner h2{font-family:"Helvetica Neue",sans-serif;display:inline-block;font-size:30px;line-height:50px;padding:0 15px;margin:174px 10px 0 0;color:#fff;background:rgba(30,30,30,.9);text-shadow:0 1px 3px rgba(0,0,0,.4);-webkit-box-shadow:0 0 30px rgba(255,255,255,.1);box-shadow:0 0 30px rgba(255,255,255,.1);-webkit-border-radius:8px;border-radius:8px}#plugin-information-title div.vignette{display:none}#plugin-information-title.with-banner div.vignette{display:block;float:left;top:0;height:250px;width:772px;margin:0 -20px;background:0 0;-webkit-box-shadow:inset 0 0 50px 4px rgba(0,0,0,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 0 50px 4px rgba(0,0,0,.2),inset 0 -1px 0 rgba(0,0,0,.1)}#plugin-information-tabs{padding:0 16px;position:relative;left:0;right:0;height:36px;z-index:1;border-bottom:1px solid #ddd;background:#f3f3f3}#plugin-information-tabs a{position:relative;float:right;padding:9px 10px;margin:0;height:18px;line-height:18px;font-size:14px;text-decoration:none;-webkit-transition:none;transition:none}#plugin-information-tabs a.current{margin:0 -1px;background:#fff;border:1px solid #ddd;border-bottom-color:#fff;padding-top:8px;color:#32373c}#plugin-information-tabs.with-banner a.current{border-top:none;padding-top:9px}#plugin-information-tabs a:active,#plugin-information-tabs a:focus{outline:0}#plugin-information-content{overflow:hidden;background:#fff;position:relative;top:0;left:0;right:0;min-height:100%;min-height:-webkit-calc(100% - 152px);min-height:calc(100% - 152px)}#plugin-information-content.with-banner{min-height:-webkit-calc(100% - 346px);min-height:calc(100% - 346px)}#section-holder{position:relative;top:0;left:250px;bottom:0;right:0;margin-left:250px;padding:10px 26px 99999px;margin-bottom:-99930px}#section-holder .updated{margin:16px 0}#plugin-information .fyi{display:block;float:left;position:relative;top:0;left:0;padding:16px 16px 99999px;margin-bottom:-99930px;width:217px;border-right:1px solid #ddd;background:#f3f3f3;color:#666}#plugin-information .fyi strong{color:#464646}#plugin-information .fyi h3{font-weight:700;text-transform:uppercase;font-size:12px;color:#666;margin:24px 0 8px}#plugin-information .fyi h2{font-size:.9em;margin-bottom:0;margin-left:0}#plugin-information .fyi ul{padding:0;margin:0;list-style:none}#plugin-information .fyi li{margin:0 0 10px}#plugin-information .counter-container{margin:3px 0}#plugin-information .counter-label{float:right;margin-left:5px;min-width:55px}#plugin-information .counter-back{height:17px;width:92px;background-color:#ececec;float:right}#plugin-information .counter-bar{height:17px;background-color:#ffc733;float:right}#plugin-information .counter-count{margin-right:5px}#plugin-information .fyi ul.contributors{margin-top:10px}#plugin-information .fyi ul.contributors li{display:inline-block;margin-left:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li img{vertical-align:middle;margin-left:4px}#plugin-information-footer{padding:15px 16px;position:absolute;left:0;bottom:0;right:0;height:28px;border-top:1px solid #ddd;background:#f3f3f3}#plugin-information .section{direction:ltr}#plugin-information .section ol,#plugin-information .section ul{list-style-type:disc;margin-left:24px}#plugin-information .section,#plugin-information .section p{font-size:14px;line-height:1.7}#plugin-information #section-screenshots ol{list-style:none;margin:0}#plugin-information #section-screenshots li img{vertical-align:text-top;margin-top:16px;max-width:100%;width:auto;height:auto;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.3);box-shadow:0 1px 2px rgba(0,0,0,.3)}#plugin-information #section-screenshots li p{font-style:italic;padding-left:20px}#plugin-information pre{padding:7px;overflow:auto;border:1px solid #ccc}#plugin-information .review{overflow:hidden;width:100%;margin-bottom:20px;border-bottom:1px solid #e6e6e6}#plugin-information .review-title-section{overflow:hidden}#plugin-information .review-title-section h4{display:inline-block;float:left;margin:0 6px 0 0}#postcustomstuff p.submit,#templateside h3,.alignleft h3{margin:0}#plugin-information .reviewer-info p{clear:both;margin:0;padding-top:2px}#plugin-information .reviewer-info .avatar{float:left;margin:4px 6px 0 0}#plugin-information .reviewer-info .star-rating{float:left}#plugin-information .review-meta{float:left;margin-left:.75em}#plugin-information .review-body{float:left;width:100%}.plugin-version-author-uri{font-size:13px}@media screen and (max-width:771px){#plugin-information-title.with-banner{height:100px;bottom:100px}#plugin-information-title.with-banner h2{margin-top:30px;font-size:20px;line-height:40px;max-width:85%}#plugin-information-title.with-banner div.vignette{height:100px;bottom:100px;width:800%}#plugin-information-tabs{overflow:hidden;padding:0;height:auto}#plugin-information-tabs a.current{margin-bottom:0;border-bottom:none}#plugin-information .fyi{float:none;border:1px solid #ddd;position:static;width:auto;margin:26px 26px 0;padding-bottom:0}#section-holder{position:static;margin:0;padding-bottom:70px}#plugin-information .fyi h3,#plugin-information .fyi small{display:none}#plugin-information-footer{padding:12px 16px 0;height:46px}}body.import-php #TB_window,body.index-php #TB_window,body.plugin-install-php #TB_window,body.plugins-php #TB_window,body.update-core-php #TB_window{background:url(../images/spinner.gif) center no-repeat #fcfcfc}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){body.import-php #TB_window,body.index-php #TB_window,body.plugin-install-php #TB_window,body.plugins-php #TB_window,body.update-core-php #TB_window{background:url(../images/spinner-2x.gif) center no-repeat #fcfcfc;-webkit-background-size:20px 20px;background-size:20px 20px}}body.import-php #TB_title,body.index-php #TB_title,body.plugin-install-php #TB_title,body.plugins-php #TB_title,body.update-core-php #TB_title{float:right;height:1px}body.import-php #TB_ajaxWindowTitle,body.index-php #TB_ajaxWindowTitle,body.plugin-install-php #TB_ajaxWindowTitle,body.plugins-php #TB_ajaxWindowTitle,body.update-core-php #TB_ajaxWindowTitle{display:none}body.import-php .tb-close-icon,body.index-php .tb-close-icon,body.plugin-install-php .tb-close-icon,body.plugins-php .tb-close-icon,body.update-core-php .tb-close-icon{right:auto;left:-30px;color:#eee;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}body.import-php #TB_closeWindowButton:focus,body.import-php #TB_closeWindowButton:focus .tb-close-icon,body.import-php .tb-close-icon:focus,body.import-php .tb-close-icon:hover,body.index-php #TB_closeWindowButton:focus,body.index-php #TB_closeWindowButton:focus .tb-close-icon,body.index-php .tb-close-icon:focus,body.index-php .tb-close-icon:hover,body.plugin-install-php #TB_closeWindowButton:focus,body.plugin-install-php #TB_closeWindowButton:focus .tb-close-icon,body.plugin-install-php .tb-close-icon:focus,body.plugin-install-php .tb-close-icon:hover,body.plugins-php #TB_closeWindowButton:focus,body.plugins-php #TB_closeWindowButton:focus .tb-close-icon,body.plugins-php .tb-close-icon:focus,body.plugins-php .tb-close-icon:hover,body.update-core-php #TB_closeWindowButton:focus,body.update-core-php #TB_closeWindowButton:focus .tb-close-icon,body.update-core-php .tb-close-icon:focus,body.update-core-php .tb-close-icon:hover{color:#00a0d2;outline:0;-webkit-box-shadow:none;box-shadow:none}body.import-php .tb-close-icon:before,body.index-php .tb-close-icon:before,body.plugin-install-php .tb-close-icon:before,body.plugins-php .tb-close-icon:before,body.update-core-php .tb-close-icon:before{content:"\f335";font-size:32px}@media screen and (max-width:830px){body.import-php .tb-close-icon,body.index-php .tb-close-icon,body.plugin-install-php .tb-close-icon,body.plugins-php .tb-close-icon,body.update-core-php .tb-close-icon{left:0;top:-30px}}img{border:none}#wphead{border-bottom:1px solid #dfdfdf}#wphead h1 a{color:#464646}.js .meta-box-sortables .postbox:hover .handlediv{margin-left:0!important}.js .meta-box-sortables .postbox .handlediv:before,.js .sidebar-name .sidebar-name-arrow:before{left:12px;font:400 20px/1 dashicons;speak:none;display:inline-block;padding:8px 10px;top:0;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;content:'\f142'}.js #widgets-left .sidebar-name .sidebar-name-arrow{display:none}.js #widgets-left .sidebar-name:hover .sidebar-name-arrow,.js #widgets-left .widgets-holder-wrap.closed .sidebar-name .sidebar-name-arrow{display:block}.js .meta-box-sortables .postbox.closed .handlediv:before,.js .widgets-holder-wrap.closed .sidebar-name-arrow:before{content:'\f140'}.error a{text-decoration:underline}.updated a{text-decoration:none;padding-bottom:2px}#photo-add-url-div input[type=text]{width:300px}#template textarea{font-family:Consolas,Monaco,monospace;font-size:13px;width:97%;background:#f9f9f9;outline:0}#docs-list,#template textarea{direction:ltr}#template p{width:97%}#templateside{float:left;width:190px}#templateside h4{margin:1em 0 0}#templateside ol,#templateside ul{margin:.5em 0;padding:0}#templateside li{margin:4px 0}#templateside li a,.theme-editor-php .highlight{display:block;padding:3px 12px 3px 3px;text-decoration:none}.theme-editor-php .highlight{margin:-3px -12px -3px 3px}#templateside .highlight{border:none;font-weight:700}.nonessential{color:#666;font-size:11px;font-style:italic;padding-right:12px}#documentation{margin-top:10px}#documentation label{line-height:22px;vertical-align:baseline;font-weight:600}.fileedit-sub{padding:10px 0 8px;line-height:180%}.accordion-section-title:after,.control-section .accordion-section-title:after,.nav-menus-php .item-edit:before,.widget-top a.widget-action:after{left:0;content:'\f140';border:none;background:0 0;font:400 20px/1 dashicons;speak:none;display:block;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.my-sites li a,form p.submit a.cancel:hover{text-decoration:none}.accordion-section-title:after,.handlediv,.item-edit,.sidebar-name-arrow,.widget-action{color:#a0a5aa}.accordion-section-title:hover:after,.handlediv:hover,.item-edit:hover,.sidebar-name:hover .sidebar-name-arrow,.widget-action:hover{color:#777}.widget-top a.widget-action:after{padding:12px 12px 11px}.widget-top a.widget-action:focus:after{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.nav-menus-php .item-edit:before{line-height:2.1}.accordion-section-title:after,.control-section .accordion-section-title:after{float:left;left:20px;top:-2px}#customize-info.open .accordion-section-title:after,.control-section.open .accordion-section-title:after,.nav-menus-php .menu-item-edit-active .item-edit:before,.widget.open .widget-top a.widget-action:after{content:'\f142'}/*! - * jQuery UI Draggable/Sortable 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */.ui-draggable-handle,.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.accordion-section{border-bottom:1px solid #dfdfdf;margin:0}.accordion-section.open .accordion-section-content,.no-js .accordion-section .accordion-section-content{display:block}.accordion-section.open:hover{border-bottom-color:#dfdfdf}.accordion-section-content{display:none;padding:10px 20px 15px;overflow:hidden;background:#fff}.accordion-section-title{margin:0;padding:12px 15px 15px;position:relative;border-right:1px solid #dfdfdf;border-left:1px solid #dfdfdf;user-select:none}.js .accordion-section-title:after{position:absolute;top:12px;left:10px;z-index:1}.accordion-section-title:focus{outline:0}.accordion-section-title:focus:after,.accordion-section-title:hover:after{border-color:#a0a5aa transparent}.cannot-expand .accordion-section-title{cursor:auto}.cannot-expand .accordion-section-title:after{display:none}.control-section .accordion-section-title{border-right:none;border-left:none;padding:10px 14px 11px 10px;line-height:21px;background:#fff}.control-section .accordion-section-title:after{top:11px}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{color:#23282d;background:#f5f5f5}.control-section.open .accordion-section-title{border-bottom:1px solid #dfdfdf}.network-admin .edit-site-actions{margin-top:0}.my-sites{display:block;overflow:auto;zoom:1}.my-sites li{display:block;padding:8px 3%;min-height:130px;margin:0}@media only screen and (max-width:599px){.my-sites li{min-height:0}}@media only screen and (min-width:600px){.my-sites.striped li{background-color:#fff;position:relative}.my-sites.striped li:after{content:"";width:1px;height:100%;position:absolute;top:0;left:0;background:#ccc}}@media only screen and (min-width:600px) and (max-width:699px){.my-sites li{float:right;width:44%}.my-sites.striped li{background-color:#fff}.my-sites.striped li:nth-of-type(2n+1){clear:right}.my-sites.striped li:nth-of-type(2n+2):after{content:none}.my-sites li:nth-of-type(4n+1),.my-sites li:nth-of-type(4n+2){background-color:#f9f9f9}}@media only screen and (min-width:700px) and (max-width:1199px){.my-sites li{float:right;width:27.333333%;background-color:#fff}.my-sites.striped li:nth-of-type(3n+3):after{content:none}.my-sites li:nth-of-type(6n+1),.my-sites li:nth-of-type(6n+2),.my-sites li:nth-of-type(6n+3){background-color:#f9f9f9}}@media only screen and (min-width:1200px) and (max-width:1399px){.my-sites li{float:right;width:21%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(4n+1){clear:right}.my-sites.striped li:nth-of-type(4n+4):after{content:none}.my-sites li:nth-of-type(8n+1),.my-sites li:nth-of-type(8n+2),.my-sites li:nth-of-type(8n+3),.my-sites li:nth-of-type(8n+4){background-color:#f9f9f9}}@media only screen and (min-width:1400px) and (max-width:1599px){.my-sites li{float:right;width:16%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(5n+1){clear:right}.my-sites.striped li:nth-of-type(5n+5):after{content:none}.my-sites li:nth-of-type(10n+1),.my-sites li:nth-of-type(10n+2),.my-sites li:nth-of-type(10n+3),.my-sites li:nth-of-type(10n+4),.my-sites li:nth-of-type(10n+5){background-color:#f9f9f9}}@media only screen and (min-width:1600px){.my-sites li{float:right;width:12.666666%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(6n+1){clear:right}.my-sites.striped li:nth-of-type(6n+6):after{content:none}.my-sites li:nth-of-type(12n+1),.my-sites li:nth-of-type(12n+2),.my-sites li:nth-of-type(12n+3),.my-sites li:nth-of-type(12n+4),.my-sites li:nth-of-type(12n+5),.my-sites li:nth-of-type(12n+6){background-color:#f9f9f9}}@media only screen and (min-width:769px){#col-left{width:35%}#col-right{width:65%}}@media only screen and (max-width:860px){#col-left{width:35%}#col-right{width:65%}}@media only screen and (min-width:980px){#col-left{width:35%}#col-right{width:65%}}@media only screen and (max-width:768px){#col-left,#col-right{width:100%}}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){div.star-holder,div.star-holder .star-rating{background:url(../images/stars-2x.png?ver=20121108) bottom left repeat-x;-webkit-background-size:21px 37px;background-size:21px 37px}.spinner{background-image:url(../images/spinner-2x.gif)}#bulk-titles div a,#bulk-titles div a:hover,#screen-meta-links a.show-settings,.curtime #timestamp,.meta-box-sortables .postbox:hover .handlediv,.sidebar-name-arrow,.sidebar-name:hover .sidebar-name-arrow,.tagchecklist span a,.tagchecklist span a:hover,.widget-top a.widget-action,.widget-top a.widget-action:hover{background:0 0!important}}@-ms-viewport{width:device-width}@media screen and (max-width:782px){#template div,#templateside{float:none;width:auto}html.wp-toolbar{padding-top:46px}body{min-width:240px;overflow-x:hidden}body *{-webkit-tap-highlight-color:transparent!important}#wpcontent{position:relative;margin-right:0;padding-right:10px}#wpbody-content{padding-bottom:100px}.wrap{margin-left:12px;margin-right:0}.col-wrap{padding:0}#collapse-menu,#screen-meta,#screen-meta-links,.post-format-select{display:none!important}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{padding:10px 15px;font-size:14px;white-space:nowrap}.wp-color-result{height:auto;padding-right:45px}.wp-color-result:after{font-size:14px;height:auto;padding:6px 14px}.media-upload-form div.error,.notice,.wrap div.error,.wrap div.updated{margin:20px 0 10px;padding:5px 10px;font-size:14px;line-height:175%}.wp-core-ui .notice.is-dismissible{padding-left:46px}.notice-dismiss{padding:13px}.wrap .icon32+h2{margin-top:-2px}.wp-responsive-open #wpbody{left:-190px}code{word-wrap:break-word}.postbox{font-size:14px}.metabox-holder h3{padding:12px}.postbox .handlediv{margin-top:3px}.subsubsub{font-size:16px;text-align:center;margin-bottom:15px}#templateside li{margin:0}#templateside li a{display:block;padding:5px}#templateside .highlight{padding:5px;margin-right:-5px;margin-top:-5px}#template div{margin:0}#template textarea{width:100%}.fileedit-sub .alignright{margin-top:15px}#comments-form .checkforspam,#wpfooter{display:none}.edit-comment-author{margin:2px 0 0}}@media screen and (max-width:600px){#wpwrap.wp-responsive-open,div#post-body.metabox-holder.columns-1{overflow-x:hidden}html.wp-toolbar{padding-top:0}#wpbody{padding-top:46px}}#pressthis-code-wrap,textarea{overflow:auto}@media screen and (max-width:320px){#network_dashboard_right_now .subsubsub{font-size:14px;text-align:right}}input,textarea{box-sizing:border-box}input[type=text],input[type=password],input[type=checkbox],input[type=color],input[type=date],input[type=datetime],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=radio],input[type=tel],input[type=time],input[type=url],input[type=week],input[type=search],select,textarea{border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07);background-color:#fff;color:#32373c;outline:0;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=text]:focus,input[type=password]:focus,input[type=checkbox]:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=radio]:focus,input[type=tel]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,input[type=search]:focus,select:focus,textarea:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 2px rgba(30,140,190,.8);box-shadow:0 0 2px rgba(30,140,190,.8)}input[type=email],input[type=url]{direction:ltr}input[type=checkbox],input[type=radio]{border:1px solid #b4b9be;background:#fff;color:#555;clear:none;cursor:pointer;display:inline-block;line-height:0;height:16px;margin:-4px 0 0 4px;outline:0;padding:0!important;text-align:center;vertical-align:middle;width:16px;min-width:16px;-webkit-appearance:none;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}#adminmenu,.network-admin.themes-php p.search-box{clear:right}input[type=radio]:checked+label:before{color:#82878c}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#00a0d2}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio],td>input[type=checkbox]{margin-top:0}.wp-admin p label input[type=checkbox]{margin-top:-4px}.wp-admin p label input[type=radio]{margin-top:-2px}input[type=radio]{-webkit-border-radius:50%;border-radius:50%;margin-left:4px;line-height:10px}input[type=checkbox]:checked:before,input[type=radio]:checked:before{float:right;display:inline-block;vertical-align:middle;width:16px;font:400 21px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=checkbox]:checked:before{content:'\f147';margin:-3px -4px 0 0;color:#1e8cbe}input[type=radio]:checked:before{content:'\2022';text-indent:-9999px;-webkit-border-radius:50px;border-radius:50px;font-size:24px;width:6px;height:6px;margin:4px;line-height:16px;background-color:#1e8cbe}@-moz-document url-prefix(){.form-table input.tog,input[type=checkbox],input[type=radio]{margin-bottom:-1px}}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration{display:none}.ie8 input[type=password]{font-family:sans-serif}button,input,select,textarea{font-family:inherit;font-size:inherit;font-weight:inherit}input,select,textarea{font-size:14px;-webkit-border-radius:0;border-radius:0}textarea{padding:2px 6px;line-height:1.4}.wp-admin input[type=file]{padding:3px 0}label{cursor:pointer}input,select{margin:1px;padding:3px 5px}input.code{padding-top:6px}textarea.code{line-height:1.4;padding:4px 6px 1px}input.readonly,input[readonly],textarea.readonly,textarea[readonly]{background-color:#eee}.wp-core-ui :-moz-placeholder,:-moz-placeholder{color:#a9a9a9}.form-invalid input,.form-invalid input:focus,.form-invalid select,.form-invalid select:focus{border-color:#dc3232!important;-webkit-box-shadow:0 0 2px rgba(204,0,0,.8);box-shadow:0 0 2px rgba(204,0,0,.8)}.form-table .form-required.form-invalid td:after{content:'\f534';font:400 20px/1 dashicons;color:#dc3232;margin-right:-25px;vertical-align:middle}.form-input-tip{color:#666}input.disabled,input:disabled,select.disabled,select:disabled,textarea.disabled,textarea:disabled{background:rgba(255,255,255,.5);border-color:rgba(222,222,222,.75);-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.04);box-shadow:inset 0 1px 2px rgba(0,0,0,.04);color:rgba(51,51,51,.5)}input[type=file].disabled,input[type=file]:disabled,input[type=range].disabled,input[type=range]:disabled{background:0 0;-webkit-box-shadow:none;box-shadow:none}.wp-admin select{padding:2px;line-height:28px;height:28px;vertical-align:middle}.wp-admin .button-cancel{padding:0 5px;line-height:2}.wp-admin select[multiple]{height:auto}.submit{padding:1.5em 0;margin:5px 0;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;border:none}p.submit{text-align:right;margin-top:20px;padding-top:10px}.textright p.submit{border:none;text-align:left}table.form-table+input+input+p.submit,table.form-table+input+p.submit,table.form-table+p.submit{border-top:none;padding-top:0}#major-publishing-actions input,#minor-publishing-actions .preview,#minor-publishing-actions input{text-align:center}input.all-options,textarea.all-options{width:250px}input.large-text,textarea.large-text{width:99%}input.regular-text{width:25em}input.small-text{width:50px;padding:1px 6px}input[type=number].small-text{width:65px}#doaction,#doaction2,#post-query-submit{margin:1px 0 0 8px}.tablenav #changeit,.tablenav #clear-recent-list,.tablenav #delete_all,.wp-filter #delete_all{margin-top:1px}.tablenav .actions select{float:right;margin-left:6px;max-width:200px}.ie8 .tablenav .actions select{width:155px}.ie8 .tablenav .actions select#cat{width:200px}#timezone_string option{margin-right:1em}#upload-form label{color:#777}button.wp-hide-pw>.dashicons{position:relative;top:3px}#your-profile label+a,fieldset label,label{vertical-align:middle}#misc-publishing-actions label,.options-media-php label[for*="_size_"]{vertical-align:baseline}#misc-publishing-actions label[for=post_status]:before{content:'\f173';display:inline-block;font:400 20px/1 dashicons;speak:none;right:-1px;padding:0 0 0 5px;position:relative;top:0;text-decoration:none!important;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#pass1-text,.pw-weak,.show-password #pass1{display:none}#pass-strength-result{background-color:#eee;border:1px solid #ddd;color:#23282d;margin:-2px 1px 5px 5px;padding:3px 5px;text-align:center;width:25em;box-sizing:border-box;opacity:0}#pass-strength-result,.color-option{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}#pass-strength-result.short{background-color:#f1adad;border-color:#e35b5b;opacity:1}#pass-strength-result.bad{background-color:#fbc5a9;border-color:#f78b53;opacity:1}#pass-strength-result.good{background-color:#ffe399;border-color:#ffc733;opacity:1}#pass-strength-result.strong{background-color:#c1e1b9;border-color:#83c373;opacity:1}#pass1-text.short,#pass1.short{border-color:#e35b5b}#pass1-text.bad,#pass1.bad{border-color:#f78b53}#pass1-text.good,#pass1.good{border-color:#ffc733}#pass1-text.strong,#pass1.strong{border-color:#83c373}.indicator-hint{padding-top:8px}.show-password #pass1-text{display:inline-block}.form-table span.description.important{font-size:12px}p.search-box{float:left;margin:0}.search-box input[name="s"],.tablenav .search-plugins input[name="s"],.tagsdiv .newtag{float:right;height:28px;margin:0 0 0 4px}input[type=text].ui-autocomplete-loading,input[type=email].ui-autocomplete-loading{background-image:url(../images/loading.gif);background-repeat:no-repeat;background-position:left center;visibility:visible}input.ui-autocomplete-input.open{border-bottom-color:transparent}ul#add-to-blog-users{margin:0 14px 0 0}.ui-autocomplete{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;border:1px solid #5b9dd9;-webkit-box-shadow:0 1px 2px rgba(30,140,190,.8);box-shadow:0 1px 2px rgba(30,140,190,.8);background-color:#fff}.ui-autocomplete li{margin-bottom:0;padding:4px 10px;text-align:right}.ui-autocomplete li.ui-state-focus{background-color:#ddd;cursor:pointer}.form-table{margin-top:.5em;width:100%;clear:both}.form-table,.form-table td,.form-table td p,.form-table th,.form-wrap label{font-size:14px}.form-table td{margin-bottom:9px;padding:15px 10px;line-height:1.3;vertical-align:middle}.form-table th,.form-wrap label{color:#23282d;font-weight:400;text-shadow:none;vertical-align:baseline}.form-table th{vertical-align:top;text-align:right;padding:20px 0 20px 10px;width:200px;line-height:1.3;font-weight:600}.form-table th.th-full{width:auto;font-weight:400}.form-table td p{margin-top:4px;margin-bottom:0}.form-table td fieldset label{margin:.25em 0 .5em!important;display:inline-block}.form-table td fieldset label,.form-table td fieldset li,.form-table td fieldset p{line-height:1.4em}.form-table input.tog,.form-table input[type=radio]{margin-top:-4px;margin-left:4px;float:none}.form-table .pre{padding:8px;margin:0}table.form-table td .updated{font-size:13px}table.form-table td .updated p{font-size:13px;margin:.3em 0}#profile-page .form-table textarea{width:500px;margin-bottom:6px}#profile-page .form-table #rich_editing{margin-left:5px}#your-profile legend{font-size:22px}#display_name{width:15em}#adduser .form-field input,#createuser .form-field input{width:25em}.color-option{display:inline-block;width:24%;padding:5px 15px 15px;box-sizing:border-box;margin-bottom:3px;cursor:pointer}.color-option.selected,.color-option:hover{background:#ddd}.color-palette{width:100%;border-spacing:0}.color-palette td{height:20px;padding:0;border:none}.tool-box .title{margin:8px 0;font-size:18px;font-weight:400;line-height:24px}.card{position:relative;margin-top:20px;padding:.7em 2em 1em;min-width:255px;max-width:520px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff}.pressthis h4{margin:2em 0 1em}.pressthis textarea{width:100%;font-size:1em}.pressthis-bookmarklet-wrapper{margin:20px 0 8px;vertical-align:top;position:relative;z-index:1}.pressthis-bookmarklet,.pressthis-bookmarklet:active,.pressthis-bookmarklet:focus,.pressthis-bookmarklet:hover{display:inline-block;position:relative;cursor:move;color:#32373c;background:#e6e6e6;-webkit-border-radius:5px;border-radius:5px;border:1px solid #b4b4b4;font-style:normal;line-height:16px;font-size:14px;text-decoration:none}.pressthis-bookmarklet:active{outline:0}.pressthis-bookmarklet:after{content:'';width:70%;height:55%;z-index:-1;position:absolute;left:10px;bottom:9px;background:0 0;-webkit-transform:skew(-20deg) rotate(-6deg);-ms-transform:skew(-20deg) rotate(-6deg);transform:skew(-20deg) rotate(-6deg);-webkit-box-shadow:0 10px 8px rgba(0,0,0,.6);box-shadow:0 10px 8px rgba(0,0,0,.6)}.pressthis-bookmarklet:hover:after{-webkit-transform:skew(-20deg) rotate(-9deg);-ms-transform:skew(-20deg) rotate(-9deg);transform:skew(-20deg) rotate(-9deg);-webkit-box-shadow:0 10px 8px rgba(0,0,0,.7);box-shadow:0 10px 8px rgba(0,0,0,.7)}.pressthis-bookmarklet span{display:inline-block;margin:0;padding:0 9px 8px 12px}.pressthis-js-toggle,.pressthis-js-toggle.button.button{margin-right:10px;padding:0;height:auto;vertical-align:top}.pressthis-bookmarklet span:before{color:#777;font:400 20px/1 dashicons;content:'\f157';position:relative;display:inline-block;top:4px;margin-left:4px}.pressthis-js-toggle .dashicons{margin:5px 7px 6px 8px;color:#777}#local-time,#utc-time{padding-right:25px;font-style:italic}.defaultavatarpicker .avatar{margin:2px 0;vertical-align:middle}.options-general-php input.small-text{width:56px}.options-general-php .spinner{float:none;margin:0 3px}.options-general-php .language-install-spinner,.settings-php .language-install-spinner{display:inline-block;float:none;margin:-3px 5px 0;vertical-align:middle}.setup-php textarea{max-width:100%}.form-field #site-address{max-width:25em}.form-field #domain{max-width:22em}.form-field #admin-email,.form-field #blog_last_updated,.form-field #blog_registered,.form-field #path,.form-field #site-title{max-width:25em}.form-field #path{margin-bottom:5px}#search-sites,#search-users{max-width:100%}.request-filesystem-credentials-dialog{display:none}.request-filesystem-credentials-dialog .notification-dialog{top:15%;max-height:85%}.request-filesystem-credentials-dialog-content{margin:25px}.request-filesystem-credentials-form input[type=text],.request-filesystem-credentials-form input[type=password]{display:block}.request-filesystem-credentials-dialog input[type=text],.request-filesystem-credentials-dialog input[type=password]{width:100%}.request-filesystem-credentials-form .field-title{font-weight:600}.request-filesystem-credentials-dialog label[for=hostname],.request-filesystem-credentials-dialog label[for=public_key],.request-filesystem-credentials-dialog label[for=private_key]{display:block;margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:right;width:48%}.request-filesystem-credentials-dialog .ftp-password{margin-right:4%}.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons{text-align:left}#request-filesystem-credentials-dialog .button:not(:last-child),.request-filesystem-credentials-dialog label[for=ftp]{margin-left:10px}#request-filesystem-credentials-form .cancel-button{display:none}#request-filesystem-credentials-dialog .cancel-button{display:inline}@media screen and (max-width:782px){textarea{-webkit-appearance:none}input[type=text],input[type=password],input[type=email],input[type=number],input[type=search]{-webkit-appearance:none;padding:6px 10px}input.code{padding-bottom:5px;padding-top:10px}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox],input[type=checkbox]{-webkit-appearance:none;padding:10px}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-bottom:8px}.widefat tfoot td input[type=checkbox]:before,.widefat th input[type=checkbox]:before,.widefat thead td input[type=checkbox]:before,input[type=checkbox]:checked:before{font:400 30px/1 Dashicons;margin:-3px -5px}input[type=checkbox],input[type=radio]{height:25px;width:25px}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio]{margin-top:-3px}input[type=radio]:checked:before{vertical-align:middle;width:9px;height:9px;margin:7px;line-height:16px}.wp-upload-form input[type=submit]{margin-top:10px}#wpbody select{height:36px;font-size:16px}.wp-admin .button-cancel{padding:0;font-size:14px}#adduser .form-field input,#createuser .form-field input{width:100%}.form-table{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table .color-palette td{display:table-cell;width:15px}.form-table table.color-palette{margin-left:10px}input,textarea{font-size:16px}#profile-page .form-table textarea,.form-table span.description,.form-table td input[type=text],.form-table td input[type=password],.form-table td input[type=email],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.form-table .form-required.form-invalid td:after{float:left;margin:-30px 0 0 3px}#wpbody .form-table td select{height:40px}.form-table input[type=text].small-text,input[type=text].small-text,input[type=password].small-text,input[type=number].small-text,input[type=search].small-text{width:auto;max-width:55px;display:inline;padding:3px 6px;margin:0 3px}#pass-strength-result{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:8px}p.search-box{float:none;position:absolute;bottom:0;width:98%;height:90px;margin-bottom:20px}p.search-box input[name="s"]{height:auto;float:none;width:100%;margin-bottom:10px;vertical-align:middle;-webkit-appearance:none}p.search-box input[type=submit]{margin-bottom:10px}.form-table span.description{display:inline;padding:4px 0 0;line-height:1.4em;font-size:14px}.form-table th{padding-top:10px;padding-bottom:0;border-bottom:0}.form-table td{margin-bottom:0;padding-bottom:6px;padding-top:4px;padding-right:0}.form-table.permalink-structure td code{margin-right:32px}.form-table.permalink-structure td input[type=text]{margin-right:32px;margin-top:4px;width:96%}.form-table input.regular-text{width:100%}.form-table label{font-size:14px}.form-table fieldset label{display:block}#utc-time{margin-top:10px}#local-time,#utc-time{display:block;float:none;padding:0;line-height:2}.form-field #domain{max-width:none}.wp-pwd{position:relative}.wp-pwd [type=text],.wp-pwd [type=password]{padding-left:40px}.wp-pwd button.button{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;line-height:2;margin:0;padding:5px 10px;position:absolute;left:0;top:0}.wp-pwd button.button:active,.wp-pwd button.button:focus,.wp-pwd button.button:hover{background:0 0}.wp-pwd .button .text{display:none}}@media only screen and (max-width:768px){.form-field input[type=text],.form-field input[type=password],.form-field input[type=email],.form-field select,.form-field textarea{width:99%}.form-wrap .form-field{padding:0}#profile-page .form-table textarea{max-width:400px;width:auto}}@media only screen and (max-height:480px){.request-filesystem-credentials-dialog .notification-dialog{width:100%;height:100%;max-height:100%;position:fixed;top:0;margin:0;right:0}}@media screen and (max-width:600px){.color-option{width:49%}}#adminmenu,#adminmenu .wp-submenu,#adminmenuback,#adminmenuwrap{width:160px;background-color:#23282d}#adminmenuback{position:fixed;top:0;bottom:-120px;z-index:1}#adminmenu{margin:12px 0;padding:0;list-style:none}.folded #adminmenu,.folded #adminmenu li.menu-top,.folded #adminmenuback,.folded #adminmenuwrap{width:36px}.icon16{height:18px;width:18px;padding:6px;margin:-6px -8px 0 0;float:right}.icon16:before{color:#999;font:400 20px/1 dashicons;speak:none;padding:6px 0;height:34px;width:20px;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.icon16.icon-dashboard:before{content:'\f226'}.icon16.icon-post:before{content:'\f109'}.icon16.icon-media:before{content:'\f104'}.icon16.icon-links:before{content:'\f103'}.icon16.icon-page:before{content:'\f105'}.icon16.icon-comments:before{content:'\f101';margin-top:1px}.icon16.icon-appearance:before{content:'\f100'}.icon16.icon-plugins:before{content:'\f106'}.icon16.icon-users:before{content:'\f110'}.icon16.icon-tools:before{content:'\f107'}.icon16.icon-settings:before{content:'\f108'}.icon16.icon-site:before{content:'\f112'}.icon16.icon-generic:before{content:'\f111'}.icon16.icon-appearance,.icon16.icon-comments,.icon16.icon-dashboard,.icon16.icon-generic,.icon16.icon-links,.icon16.icon-media,.icon16.icon-page,.icon16.icon-plugins,.icon16.icon-post,.icon16.icon-settings,.icon16.icon-site,.icon16.icon-tools,.icon16.icon-users,.menu-icon-appearance div.wp-menu-image,.menu-icon-comments div.wp-menu-image,.menu-icon-dashboard div.wp-menu-image,.menu-icon-generic div.wp-menu-image,.menu-icon-links div.wp-menu-image,.menu-icon-media div.wp-menu-image,.menu-icon-page div.wp-menu-image,.menu-icon-plugins div.wp-menu-image,.menu-icon-post div.wp-menu-image,.menu-icon-settings div.wp-menu-image,.menu-icon-site div.wp-menu-image,.menu-icon-tools div.wp-menu-image,.menu-icon-users div.wp-menu-image{background-image:none!important}#adminmenuwrap{position:relative;float:right;z-index:9990}#adminmenu *{user-select:none}#adminmenu *,.theme-overlay .current-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}#adminmenu li{margin:0;padding:0;cursor:pointer}#adminmenu a{display:block;line-height:18px;padding:2px 5px;color:#eee}#adminmenu .wp-submenu a{color:#b4b9be;color:rgba(240,245,250,.7)}#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover{background:0 0}#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a:hover,#adminmenu li.menu-top>a:focus{color:#00b9eb}#adminmenu li.menu-top{border:none;min-height:34px;position:relative}#adminmenu .wp-submenu{list-style:none;position:absolute;top:-1000em;right:160px;overflow:visible}#adminmenu .wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu,.folded #adminmenu a.wp-has-current-submenu:focus+.wp-submenu{padding:7px 0 8px;z-index:9999;background-color:#32373c;-webkit-box-shadow:0 3px 5px rgba(0,0,0,.2);box-shadow:0 3px 5px rgba(0,0,0,.2)}#adminmenu a.menu-top:focus+.wp-submenu,.js #adminmenu .opensub .wp-submenu,.js #adminmenu .sub-open,.no-js li.wp-has-submenu:hover .wp-submenu{top:-1px}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu .wp-submenu.sub-open,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.no-js li.wp-has-current-submenu:hover .wp-submenu{position:relative;z-index:3;top:auto;right:auto;left:auto;bottom:auto;border:0;margin-top:0;-webkit-box-shadow:none;box-shadow:none;background-color:#32373c}#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{position:relative;background-color:#191e23;color:#00b9eb}.folded #adminmenu li.menu-top:hover,.folded #adminmenu li.opensub>a.menu-top,.folded #adminmenu li>a.menu-top:focus{z-index:10000}#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu .wp-menu-arrow,#adminmenu .wp-menu-arrow div,#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top,.folded #adminmenu li.wp-has-current-submenu{background:#0073aa;color:#fff}.folded #adminmenu .opensub .wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open,.folded #adminmenu .wp-has-current-submenu a.menu-top:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu.opensub .wp-submenu,.folded #adminmenu .wp-submenu.sub-open,.folded #adminmenu a.menu-top:focus+.wp-submenu,.no-js.folded #adminmenu .wp-has-submenu:hover .wp-submenu{top:0;right:36px}.folded #adminmenu .wp-has-current-submenu .wp-submenu,.folded #adminmenu a.wp-has-current-submenu:focus+.wp-submenu{position:absolute;top:-1000em}#adminmenu .wp-not-current-submenu .wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{min-width:160px;width:auto}#adminmenu .wp-submenu a{font-size:13px;line-height:1.2;margin:0;padding:6px 0}#adminmenu .opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-not-current-submenu li>a,.folded #adminmenu .wp-has-current-submenu li>a{padding-left:16px;padding-right:14px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}#adminmenu .wp-has-current-submenu ul>li>a,.folded #adminmenu li.menu-top .wp-submenu>li>a{padding:6px 12px}#adminmenu .wp-submenu-head,#adminmenu a.menu-top{font-size:14px;font-weight:400;line-height:18px;padding:0}#adminmenu .wp-submenu-head{display:none}.folded #adminmenu .wp-menu-name{position:absolute;right:-999px}.folded #adminmenu .wp-submenu-head{display:block}#adminmenu .wp-submenu li{padding:0;margin:0;overflow:hidden}#adminmenu .wp-menu-image img{padding:9px 0 0;opacity:.6;filter:alpha(opacity=60)}#adminmenu div.wp-menu-name{padding:8px 0}#adminmenu div.wp-menu-image{float:right;width:36px;height:34px;margin:0;text-align:center}#adminmenu div.wp-menu-image.svg{background-repeat:no-repeat;background-position:center;-webkit-background-size:20px auto;background-size:20px auto}div.wp-menu-image:before{color:#a0a5aa;color:rgba(240,245,250,.6);padding:7px 0;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}#adminmenu div.wp-menu-image:before{color:#a0a5aa;color:rgba(240,245,250,.6)}#adminmenu .current div.wp-menu-image:before,#adminmenu .wp-has-current-submenu div.wp-menu-image:before,#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu a.wp-has-current-submenu:hover div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu:hover div.wp-menu-image:before{color:#fff}#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#00b9eb}.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#a0a5aa}.folded #adminmenu div.wp-menu-image{width:35px;height:30px;position:absolute;z-index:25}.folded #adminmenu a.menu-top{height:34px}.no-font-face #adminmenu .wp-menu-image{display:none}.no-font-face #adminmenu div.wp-menu-name{padding:8px 12px}.no-font-face.auto-fold #adminmenu .wp-menu-name{margin-right:0}.sticky-menu #adminmenuwrap{position:fixed}.wp-menu-arrow{display:none!important}ul#adminmenu a.wp-has-current-submenu{position:relative}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{left:0;border:8px solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-left-color:#f1f1f1;top:50%;margin-top:-8px}.folded ul#adminmenu li:hover a.wp-has-current-submenu:after{display:none}.folded ul#adminmenu a.wp-has-current-submenu:after,.folded ul#adminmenu>li a.current:after{border-width:4px;margin-top:-4px}#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{left:0;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-width:8px;top:10px;z-index:10000}.folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{border-width:4px;margin-top:-4px;top:18px}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-left-color:#32373c}#adminmenu li.menu-top:hover .wp-menu-image img,#adminmenu li.wp-has-current-submenu .wp-menu-image img{opacity:1;filter:alpha(opacity=100)}#adminmenu li.wp-menu-separator{height:5px;padding:0;margin:0 0 6px;cursor:inherit}#adminmenu div.separator{height:2px;padding:0}#collapse-button,#collapse-button div{height:15px;width:15px}#adminmenu .wp-submenu .wp-submenu-head{color:#fff;font-weight:400;font-size:14px;padding:8px 11px 8px 4px;margin:-7px 0 4px}#adminmenu li.current,.folded #adminmenu li.wp-menu-open{border:0}#adminmenu .awaiting-mod,#adminmenu .update-plugins{display:inline-block;background-color:#d54e21;color:#fff;font-size:9px;line-height:17px;font-weight:600;margin:1px 2px 0 0;vertical-align:top;-webkit-border-radius:10px;border-radius:10px;z-index:26}#adminmenu li .awaiting-mod span,#adminmenu li span.update-plugins span{display:block;padding:0 6px}#adminmenu li span.count-0,.folded #collapse-menu span{display:none}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod{background-color:#00b9eb;color:#fff}#collapse-menu{font-size:13px;line-height:34px;margin-top:10px;color:#a0a5aa;color:rgba(240,245,250,.6);-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after{color:#00b9eb}#collapse-button{float:right;margin:10px 11px 10px 8px;-webkit-border-radius:10px;border-radius:10px}#wpwrap #collapse-button div{padding:0}#collapse-button div:after{content:'\f148';display:block;line-height:15px;right:-3px;top:-3px;color:#a0a5aa;color:rgba(240,245,250,.6);font:400 20px/1 dashicons!important;speak:none;margin:0 auto;padding:0!important;position:relative;text-align:center;width:20px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.folded #collapse-button div:after,.rtl #collapse-button div:after{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.rtl.folded #collapse-button div:after{-webkit-transform:none;-ms-transform:none;transform:none}.customize-support #menu-appearance a[href="themes.php?page=custom-header"],.customize-support #menu-appearance a[href="themes.php?page=custom-background"],li#wp-admin-bar-menu-toggle{display:none}@media only screen and (max-width:960px){.auto-fold #wpcontent,.auto-fold #wpfooter{margin-right:36px}.auto-fold #adminmenu,.auto-fold #adminmenu li.menu-top,.auto-fold #adminmenuback,.auto-fold #adminmenuwrap{width:36px}.auto-fold #adminmenu .opensub .wp-submenu,.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu.sub-open,.auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus+.wp-submenu,.auto-fold #adminmenu .wp-has-current-submenu.opensub .wp-submenu,.auto-fold #adminmenu .wp-submenu.sub-open,.auto-fold #adminmenu a.menu-top:focus+.wp-submenu{top:0;right:36px}.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu,.auto-fold #adminmenu a.wp-has-current-submenu:focus+.wp-submenu{position:absolute;top:-1000em;margin-left:-1px;padding:7px 0 8px;z-index:9999}.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu{min-width:150px;width:auto}.auto-fold #adminmenu .wp-has-current-submenu li>a{padding-left:16px;padding-right:14px}.auto-fold #adminmenu li.menu-top .wp-submenu>li>a{padding-right:12px}.auto-fold #adminmenu .wp-menu-name{position:absolute;right:-999px}.auto-fold #adminmenu .wp-submenu-head{display:block}.auto-fold #collapse-menu span,.auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after{display:none}.auto-fold #adminmenu div.wp-menu-image{height:30px;width:34px;position:absolute;z-index:25}.auto-fold #adminmenu a.menu-top{height:34px}.auto-fold #adminmenu li.wp-menu-open{border:0}.auto-fold #adminmenu .wp-has-current-submenu.menu-top-last{margin-bottom:0}.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{border-width:4px;margin-top:-4px;top:16px}.auto-fold ul#adminmenu a.wp-has-current-submenu:after,.auto-fold ul#adminmenu>li a.current:after{border-width:4px;margin-top:-4px}.auto-fold #adminmenu li.menu-top:hover,.auto-fold #adminmenu li.opensub>a.menu-top,.auto-fold #adminmenu li>a.menu-top:focus{z-index:10000}.auto-fold #collapse-button div{background:0 0}.auto-fold #collapse-button div:after{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.rtl.auto-fold #collapse-button div:after{-webkit-transform:none;-ms-transform:none;transform:none}}@media screen and (max-width:782px){.auto-fold #wpcontent{position:relative;margin-right:0;padding-right:10px}.sticky-menu #adminmenuwrap{position:relative;z-index:auto;top:0}.auto-fold #adminmenu,.auto-fold #adminmenuback,.auto-fold #adminmenuwrap{position:absolute;width:190px;z-index:100}.auto-fold #adminmenuback,.auto-fold #adminmenuwrap{display:none}.auto-fold .wp-responsive-open #adminmenuback,.auto-fold .wp-responsive-open #adminmenuwrap{display:block}.auto-fold #adminmenu li.menu-top{width:100%}.auto-fold #adminmenu li a{font-size:16px;padding:5px}.auto-fold #adminmenu li.menu-top .wp-submenu>li>a{padding:10px 20px 10px 10px}.auto-fold #adminmenu .wp-menu-name{position:static;margin-right:35px}.auto-fold ul#adminmenu a.wp-has-current-submenu:after,.auto-fold ul#adminmenu>li.current>a.current:after{border-width:8px;margin-top:-8px}.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{display:none}#adminmenu .wp-submenu{position:relative;display:none}.auto-fold #adminmenu .selected .wp-submenu,.auto-fold #adminmenu .wp-menu-open .wp-submenu{position:relative;display:block;top:0;right:-1px;-webkit-box-shadow:none;box-shadow:none}.auto-fold #adminmenu .opensub .wp-submenu,.auto-fold #adminmenu .selected .wp-submenu:after,.auto-fold #adminmenu .wp-menu-open .wp-submenu:after{display:none}.auto-fold #adminmenu .selected .wp-submenu,.auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after{display:block}.auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus+.wp-submenu,.auto-fold #adminmenu a.menu-top:focus+.wp-submenu{position:relative;right:-1px;left:0;top:0}#adminmenu .wp-submenu .wp-submenu-head{display:none}#wp-responsive-toggle{position:fixed;top:5px;right:4px;padding-left:10px;z-index:99999;border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wpadminbar #wp-admin-bar-menu-toggle a{display:block;padding:0;overflow:hidden;outline:0;text-decoration:none;border:1px solid transparent;background:0 0;height:44px;margin-right:-1px}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#32373c}li#wp-admin-bar-menu-toggle{display:block}#wpadminbar #wp-admin-bar-menu-toggle a:hover{border:1px solid transparent}#wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{content:'\f228';display:inline-block;float:right;font:400 40px/45px Dashicons;vertical-align:middle;outline:0;margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;height:44px;width:50px;padding:0;border:none;text-align:center;text-decoration:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#00b9eb}}@media screen and (max-width:600px){#adminmenuback,#adminmenuwrap{display:none}.wp-responsive-open #adminmenuback,.wp-responsive-open #adminmenuwrap{display:block}.auto-fold #adminmenu{top:46px}}#wpbody-content #dashboard-widgets.columns-1 .postbox-container{width:100%}#wpbody-content #dashboard-widgets.columns-2 .postbox-container{width:49.5%}#wpbody-content #dashboard-widgets.columns-2 #postbox-container-2,#wpbody-content #dashboard-widgets.columns-2 #postbox-container-3,#wpbody-content #dashboard-widgets.columns-2 #postbox-container-4{float:left;width:50.5%}#wpbody-content #dashboard-widgets.columns-3 .postbox-container{width:33.5%}#wpbody-content #dashboard-widgets.columns-3 #postbox-container-1{width:33%}#wpbody-content #dashboard-widgets.columns-3 #postbox-container-3,#wpbody-content #dashboard-widgets.columns-3 #postbox-container-4{float:left}#dashboard-widgets .postbox-container,#wpbody-content #dashboard-widgets.columns-4 .postbox-container{width:25%}#dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container{border:none!important}.ie8 #wpbody-content #dashboard-widgets .postbox-container{width:49.5%}.ie8 #wpbody-content #dashboard-widgets #postbox-container-2,.ie8 #wpbody-content #dashboard-widgets #postbox-container-3,.ie8 #wpbody-content #dashboard-widgets #postbox-container-4{float:left;width:50.5%}.ie8 #dashboard-widgets #postbox-container-3 .empty-container,.ie8 #dashboard-widgets #postbox-container-4 .empty-container{border:0;height:0;min-height:0}#dashboard-widgets-wrap{overflow:hidden;margin:0 -8px}#dashboard-widgets .postbox .inside{margin-bottom:0}#dashboard-widgets .meta-box-sortables{margin:0 8px;min-height:100px}#the-comment-list td.comment p.comment-author{margin-top:0;margin-right:0}#the-comment-list p.comment-author img{float:right;margin-left:8px}#the-comment-list p.comment-author strong a{border:none}#the-comment-list td{vertical-align:top}#the-comment-list td.comment img{max-width:100%}.welcome-panel{position:relative;overflow:auto;margin:16px 0;padding:23px 10px 0;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;font-size:13px;line-height:2.1em}#activity-widget #the-comment-list .comment-item:first-child,#dashboard_right_now .sub,.js #dashboard_quick_press .drafts{border-top:1px solid #eee}.activity-block,.dashboard-widget-control-form,.mu-storage,.tablenav .actions,th.sortable a,th.sorted a{overflow:hidden}.welcome-panel h3{margin:0;font-size:21px;font-weight:400;line-height:1.2}.welcome-panel h4{margin:1.33em 0 0;font-size:16px}.welcome-panel li{font-size:14px}.welcome-panel p{color:#777}.welcome-panel a{text-decoration:none}.welcome-panel .about-description{font-size:16px;margin:0}.welcome-panel .welcome-panel-close{position:absolute;top:10px;left:10px;padding:10px 21px 10px 15px;font-size:13px;line-height:1.23076923;text-decoration:none}.welcome-panel .welcome-panel-close:before{position:absolute;top:8px;right:0;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.wp-core-ui .welcome-panel .button.button-hero{margin:15px 0 3px 13px;padding:12px 36px;height:auto;line-height:1.4285714;white-space:normal}.welcome-panel-content{margin-right:13px;max-width:1500px}.welcome-panel .welcome-panel-column-container{clear:both;position:relative}.welcome-panel .welcome-panel-column{width:32%;min-width:200px;float:right}.ie8 .welcome-panel .welcome-panel-column{min-width:230px}.welcome-panel .welcome-panel-column:first-child{width:36%}.welcome-panel-column p.hide-if-no-customize{margin-top:10px}.welcome-panel-column p{margin-top:7px;color:#464646}.welcome-panel .welcome-icon{background:0 0!important}.welcome-panel .welcome-icon:before{color:#82878c;font:400 20px/1 dashicons;speak:none;display:inline-block;padding:0 0 0 10px;top:-1px;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;vertical-align:top}.welcome-panel .welcome-edit-page:before,.welcome-panel .welcome-write-blog:before{content:'\f119';top:-3px}.welcome-panel .welcome-add-page:before{content:'\f132'}.welcome-panel .welcome-view-site:before{content:'\f115';top:-2px}.welcome-panel .welcome-widgets-menus:before{content:'\f116';top:-2px}.welcome-panel .welcome-comments:before{content:'\f117';top:-1px}.welcome-panel .welcome-learn-more:before{content:'\f118';top:-1px}.welcome-panel .welcome-widgets-menus{line-height:16px}.welcome-panel .welcome-panel-column ul{margin:.8em 0 1em 1em}.welcome-panel .welcome-panel-column li{line-height:16px;list-style-type:none;padding:0 0 8px}#dashboard_primary .inside{margin:0;padding:0}#dashboard_primary .dashboard-widget-control-form,#dashboard_primary .widget-loading{padding:12px 12px 0}body #dashboard-widgets .postbox form .submit{margin:0}.dashboard-widget-control-form p{margin-top:0}.rssSummary{color:#777;margin-top:4px}#dashboard_primary .rss-widget{border-bottom:1px solid #eee;font-size:13px;padding:8px 12px 10px}#dashboard_primary .rss-widget:last-child{border-bottom:none;padding-bottom:8px}#dashboard_primary .rss-widget a{font-weight:400}#dashboard_primary .rss-widget span,#dashboard_primary .rss-widget span.rss-date{color:#777}#dashboard_primary .rss-widget span.rss-date{margin-right:12px}#dashboard_primary .rss-widget ul li{margin-bottom:8px}#dashboard_right_now ul{margin:0;display:inline-block;width:100%}#dashboard_right_now li{width:50%;float:right;margin-bottom:10px}#dashboard_right_now .inside{padding:0}#dashboard_right_now .main{padding:0 12px 11px}#dashboard_right_now .main p{margin:0}#dashboard_right_now #wp-version-message .button{float:left;position:relative;top:-5px;margin-right:5px}#dashboard-widgets h4.mu-storage{margin-bottom:10px}#dashboard_right_now li a:before,#dashboard_right_now li span:before{color:#82878c}#dashboard_right_now .sub{color:#777;background:#f5f5f5;padding:10px 12px 6px}#dashboard_right_now .sub h4{color:#555}#dashboard_right_now .sub p{margin:0 0 1em}#dashboard_right_now .warning a:before,#dashboard_right_now .warning span:before{color:#d54e21}#dashboard_quick_press .drafts li time,#title-wrap #title-prompt-text,.textarea-wrap #content-prompt-text{color:#777}#dashboard_right_now li a:before,#dashboard_right_now li span:before{content:'\f159';font:400 20px/1 dashicons;speak:none;display:block;float:right;margin:0 0 0 5px;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;text-decoration:none!important}#dashboard_right_now .page-count a:before,#dashboard_right_now .page-count span:before{content:'\f105'}#dashboard_right_now .post-count a:before,#dashboard_right_now .post-count span:before{content:'\f109'}#dashboard_right_now .comment-count a:before{content:'\f101'}#dashboard_right_now .comment-mod-count a:before{content:'\f125'}#dashboard_right_now .storage-count a:before{content:'\f104'}#dashboard_right_now .storage-count.warning a:before{content:'\f153'}#dashboard_quick_press .inside{margin:0;padding:0}#dashboard_quick_press div.updated{margin-bottom:10px;border:1px solid #eee;border-width:1px 0 1px 1px}#dashboard_quick_press form{margin:12px}#dashboard_quick_press .drafts,#dashboard_quick_press .easy-blogging{padding:10px 0 0}input#save-post{float:right}form.initial-form.quickpress-open label.prompt{font-style:normal}form.initial-form.quickpress-open input#title{height:auto}#dashboard_quick_press input,#dashboard_quick_press textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0}#dashboard_quick_press textarea{resize:vertical}#description-wrap{margin-top:12px}.input-text-wrap,.textarea-wrap{position:relative}.input-text-wrap .prompt,.textarea-wrap .prompt{position:absolute}.textarea-wrap #content-prompt-text{font-size:1.1em;padding:7px 8px}.textarea-wrap textarea#content{margin:0 0 8px;padding:6px 7px}#quick-press textarea#content{min-height:90px;max-height:1300px;resize:none}#dashboard_quick_press .drafts abbr{border:none}#dashboard_quick_press .drafts h4{margin:0 12px 8px;font-weight:400}#dashboard_quick_press .drafts .view-all{float:left;margin:0 0 0 12px}#dashboard_primary a.rsswidget{font-weight:400}#dashboard_quick_press .drafts ul{margin:0 12px}#dashboard_quick_press .drafts li{margin-bottom:1em}#dashboard_quick_press .drafts p{margin:0;word-wrap:break-word}#dashboard_quick_press .draft-title a,#dashboard_quick_press .draft-title time{margin:0 0 0 5px}#dashboard-widgets #dashboard_activity h4{margin:0 12px 8px 0;font-weight:400}#dashboard-widgets #dashboard_activity h4.comment-meta{margin:0}#dashboard_activity h4.comment-meta{margin-bottom:4px}#dashboard_activity ul{padding:0 12px}#dashboard_activity .comment-meta span.approve:before{content:'\f227';font:20px/.5 dashicons;margin-right:12px;vertical-align:middle;position:relative;top:-1px;margin-left:2px}#dashboard_activity .inside{padding:0;margin:0}#dashboard_activity .no-activity{overflow:hidden;padding:0 12px 12px;text-align:center}#dashboard_activity .no-activity p{color:#999;font-size:16px}#dashboard_activity .no-activity .smiley{margin-top:0}#dashboard_activity .no-activity .smiley:before{content:'\f328';font:400 120px/1 dashicons;speak:none;display:block;margin:0 0 0 5px;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;text-decoration:none!important}#dashboard_activity .subsubsub{float:none;border-top:1px solid #eee;margin-top:0;padding:8px 12px 4px}#future-posts ul,#published-posts ul{clear:both;margin-bottom:0}#future-posts li,#published-posts li{margin-bottom:8px}#future-posts ul span,#published-posts ul span{display:inline-block;margin-left:5px;min-width:150px;color:#777}.activity-block{border-bottom:1px solid #eee;padding:8px 0 4px}.activity-block:last-child{border-bottom:none}.activity-block .subsubsub li{color:#ddd}#activity-widget #the-comment-list div.undo,#activity-widget #the-comment-list tr.undo{background:0 0;padding:6px 0;margin-right:12px}#activity-widget #the-comment-list .comment-item{background:#fafafa;padding:12px;position:relative}#activity-widget #the-comment-list .avatar{position:absolute;top:13px}#activity-widget #the-comment-list .dashboard-comment-wrap{padding-right:63px}#activity-widget #the-comment-list .dashboard-comment-wrap blockquote{margin:1em 0}#activity-widget #the-comment-list .comment-item h4{font-size:13px;color:#999}#activity-widget #the-comment-list .comment-item p.row-actions{margin:4px 0 0}#activity-widget #the-comment-list .unapproved{background-color:#fef7f1}#activity-widget #the-comment-list .unapproved:before{content:"";display:block;position:absolute;right:0;top:0;bottom:0;background:#d54e21;width:4px}#activity-widget #the-comment-list .spam-undo-inside .avatar,#activity-widget #the-comment-list .trash-undo-inside .avatar{position:relative;top:0}#dashboard-widgets #dashboard_browser_nag.postbox .inside{margin:10px}.edit-box{display:none}h3:hover .edit-box{display:inline}#dashboard-widgets form .input-text-wrap input,#dashboard-widgets form .textarea-wrap textarea{width:100%}#dashboard-widgets .postbox form .submit{float:none;margin:.5em 0 0;padding:0;border:none}#dashboard-widgets-wrap #dashboard-widgets .postbox form .submit #publish{min-width:0}#dashboard-widgets a{text-decoration:none}#dashboard-widgets h3 a,#dashboard_browser_nag a{text-decoration:underline}#dashboard-widgets h3 .postbox-title-action{position:absolute;left:10px;padding:0;top:5px}.js #dashboard-widgets h3 .postbox-title-action{left:33px}#dashboard-widgets h4{color:#23282d;font-weight:400;font-size:14px;margin:0 0 .2em;padding:0}#dashboard_plugins h5{font-size:14px}#latest-comments #the-comment-list{position:relative}#activity-widget #the-comment-list .comment,#activity-widget #the-comment-list .pingback{-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.06);box-shadow:inset 0 1px 0 rgba(0,0,0,.06)}#activity-widget .comments #the-comment-list .alt{background-color:transparent}#activity-widget #latest-comments #the-comment-list .comment-item{padding:1em 12px}#latest-comments #the-comment-list .pingback{padding-right:12px!important}#latest-comments #the-comment-list .comment-item:first-child{border-top:none}#latest-comments #the-comment-list .comment-item h4{line-height:1.5em;margin-top:0;color:#666}#latest-comments #the-comment-list .comment-item h4 cite{font-style:normal;font-weight:400}#latest-comments #the-comment-list .comment-item blockquote,#latest-comments #the-comment-list .comment-item blockquote p{margin:0;padding:0;display:inline}#latest-comments #the-comment-list .comment-item p.row-actions{margin:3px 0 0;padding:0;font-size:13px}#description-wrap label,#title-wrap label{cursor:text}#title-wrap #title{padding:2px 6px;font-size:1.3em;outline:0}#title-wrap #title-prompt-text{font-size:1.1em;padding:5px 8px}.rss-widget ul{margin:0;padding:0;list-style:none}a.rsswidget{font-size:14px;font-weight:600;line-height:1.7em}.rss-widget ul li{line-height:1.5em;margin-bottom:12px}.rss-widget span.rss-date{color:#999;font-size:13px;margin-right:3px}.rss-widget cite{display:block;text-align:left;margin:0 0 1em;padding:0}.rss-widget cite:before{content:'\2014'}#dashboard_browser_nag a.update-browser-link{font-size:1.2em;font-weight:600}#dashboard_browser_nag a{color:#fff}#dashboard_browser_nag p.browser-update-nag.has-browser-icon{padding-left:125px}#dashboard_browser_nag .browser-icon{margin-top:-35px}#dashboard_browser_nag.postbox.browser-insecure{background-color:#ac1b1b;border-color:#ac1b1b}#dashboard_browser_nag.postbox{background-color:#e29808;background-image:none;border-color:#edc048;color:#fff;-webkit-box-shadow:none;box-shadow:none}#dashboard_browser_nag.postbox.browser-insecure h3{border-bottom-color:#cd5a5a;color:#fff}#dashboard_browser_nag.postbox h3{border-bottom-color:#f6e2ac;background:0 0;color:#fff;-webkit-box-shadow:none;box-shadow:none}#dashboard_browser_nag h3.hndle{border:none;font-weight:600;font-size:20px;padding-top:10px}.postbox#dashboard_browser_nag p a.dismiss{font-size:14px}.postbox#dashboard_browser_nag a,.postbox#dashboard_browser_nag p,.postbox#dashboard_browser_nag p.browser-update-nag{font-size:16px}@media only screen and (max-width:799px){#wpbody-content #dashboard-widgets .postbox-container{width:100%}}@media only screen and (min-width:800px) and (max-width:1499px){#dashboard-widgets #postbox-container-3 .empty-container,#dashboard-widgets #postbox-container-4 .empty-container,#wpbody #wpbody-content .metabox-holder.columns-1 .postbox-container .empty-container{border:0;height:0;min-height:0}#wpbody-content #dashboard-widgets .postbox-container{width:49.5%}#wpbody-content #dashboard-widgets #postbox-container-2,#wpbody-content #dashboard-widgets #postbox-container-3,#wpbody-content #dashboard-widgets #postbox-container-4{float:left;width:50.5%}#wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container{width:100%}.index-php .columns-prefs,.index-php .screen-layout{display:block}.columns-prefs .columns-prefs-3,.columns-prefs .columns-prefs-4{display:none}}@media only screen and (min-width:1500px) and (max-width:1800px){#wpbody-content #dashboard-widgets .postbox-container{width:33.5%}#wpbody-content #dashboard-widgets #postbox-container-1{width:33%}#wpbody-content #dashboard-widgets #postbox-container-3,#wpbody-content #dashboard-widgets #postbox-container-4{float:left}#dashboard-widgets #postbox-container-4 .empty-container{border:0;height:0;min-height:0}}@media screen and (max-width:870px){.welcome-panel .welcome-panel-column,.welcome-panel .welcome-panel-column:first-child{display:block;float:none;width:100%}.welcome-panel .welcome-panel-column li{display:inline-block;margin-left:13px}.welcome-panel .welcome-panel-column ul{margin:.4em 0 0}}@media screen and (max-width:782px){#dashboard_recent_comments #the-comment-list .comment-item .avatar{height:30px;width:30px;margin:4px 0 5px 10px}}@media screen and (max-width:600px){.welcome-panel .welcome-panel-close{overflow:hidden;text-indent:40px;white-space:nowrap;width:20px;height:20px;padding:5px;top:5px;left:5px}.welcome-panel .welcome-panel-close:before{font-size:20px;top:5px;right:-35px}}.response-links{display:block;margin-bottom:1em}.response-links a{display:block}.response-links a.comments-edit-item-link{font-weight:600}.response-links a.comments-view-item-link{font-size:12px}.post-com-count-wrapper strong{font-weight:400}.comments-view-item-link{display:inline-block;clear:both}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:nowrap;word-wrap:normal}.column-comments .post-com-count,.column-response .post-com-count{display:inline-block;vertical-align:top}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:5px}.column-comments .comment-count-approved,.column-comments .comment-count-no-comments,.column-response .comment-count-approved,.column-response .comment-count-no-comments{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;padding:0 8px;min-width:24px;height:2em;-webkit-border-radius:5px;border-radius:5px;background-color:#72777c;color:#fff;font-size:11px;line-height:21px;text-align:center}.ie8 .column-comments .comment-count-approved,.ie8 .column-comments .comment-count-no-comments,.ie8 .column-response .comment-count-approved,.ie8 .column-response .comment-count-no-comments{min-width:0}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:"";display:block;margin-right:8px;width:0;height:0;border-top:5px solid #72777c;border-left:5px solid transparent}.column-comments .post-com-count-approved:focus .comment-count-approved,.column-comments .post-com-count-approved:hover .comment-count-approved,.column-response .post-com-count-approved:focus .comment-count-approved,.column-response .post-com-count-approved:hover .comment-count-approved{background:#0073aa}.column-comments .post-com-count-approved:focus:after,.column-comments .post-com-count-approved:hover:after,.column-response .post-com-count-approved:focus:after,.column-response .post-com-count-approved:hover:after{border-top-color:#0073aa}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:relative;right:-3px;padding:0 5px;min-width:7px;height:17px;border:2px solid #fff;-webkit-border-radius:11px;border-radius:11px;background:#ca4a1f;color:#fff;font-size:9px;line-height:17px;text-align:center}.commentlist li{padding:1em 1em .2em;margin:0;border-bottom:1px solid #ccc}.commentlist li li{border-bottom:0;padding:0}.commentlist p{padding:0;margin:0 0 .8em}#submitted-on,.submitted-on{color:#777}#replyrow td{padding:2px}#replysubmit{margin:0;padding:0 5px 3px;text-align:center}#replysubmit .button{margin-left:5px}#replysubmit .error{color:red;line-height:21px;text-align:center}#replyrow h5{margin:.2em 0 0;padding:0 5px;line-height:1.4em;font-size:1em}#commentsdiv #edithead .inside,#edithead .inside{float:right;padding:3px 5px 2px 0;margin:0;text-align:center}#edithead .inside input{width:180px}#edithead label{padding:2px 0}#replycontainer{padding:5px}#replycontent{height:120px;-webkit-box-shadow:none;box-shadow:none}#replyerror{border-color:#ddd;background-color:#f9f9f9}.commentlist .avatar{vertical-align:text-top}#the-comment-list div.undo,#the-comment-list tr.undo{background-color:#f4f4f4}#the-comment-list .unapproved td,#the-comment-list .unapproved th{background-color:#fef7f1}#the-comment-list .unapproved th.check-column{border-right:4px solid #d54e21}#the-comment-list .unapproved th.check-column input{margin-right:4px}#the-comment-list .approve a{color:#006505}#the-comment-list .unapprove a{color:#d98500}.sorting-indicator:before,th .comment-grey-bubble:before{speak:none;-moz-osx-font-smoothing:grayscale;position:relative;text-decoration:none!important;color:#444}#the-comment-list td,#the-comment-list th{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}#the-comment-list tr:last-child td,#the-comment-list tr:last-child th{-webkit-box-shadow:none;box-shadow:none}#the-comment-list tr.unapproved+tr.approved td,#the-comment-list tr.unapproved+tr.approved th{border-top:1px solid rgba(0,0,0,.03)}.vim-current,.vim-current td,.vim-current th{background-color:#e4f2fd!important}th .comment-grey-bubble{height:16px;width:16px}th .comment-grey-bubble:before{content:'\f101';font:400 20px/.5 dashicons;display:inline-block;padding:0;top:4px;right:-4px;vertical-align:top;-webkit-font-smoothing:antialiased}.sorting-indicator:before,th.desc a:focus span.sorting-indicator:before,th.desc:hover span.sorting-indicator:before,th.sorted.asc .sorting-indicator:before{content:'\f142'}table.fixed{table-layout:fixed}.fixed .column-rating,.fixed .column-visible{width:8%}.fixed .column-author,.fixed .column-date,.fixed .column-format,.fixed .column-links,.fixed .column-parent,.fixed .column-posts{width:10%}.fixed .column-posts{width:74px}.fixed .column-comment .comment-author{display:none}.fixed .column-categories,.fixed .column-rel,.fixed .column-response,.fixed .column-role,.fixed .column-tags{width:15%}.fixed .column-slug{width:25%}.fixed .column-locations{width:35%}.fixed .column-comments{width:5.5em;padding:8px 0;text-align:right}.fixed .column-comments .vers{padding-right:3px}td.column-title strong,td.plugin-title strong{display:block;margin-bottom:.2em;font-size:14px}td.column-title p,td.plugin-title p{margin:6px 0}table.media .column-title .media-icon{float:right;min-height:60px;margin:0 0 0 9px}table.media .column-title .media-icon img{max-width:60px;height:auto;vertical-align:top}table.media .column-title .has-media-icon~.row-actions{margin-right:70px}table.media .column-title .filename{margin-bottom:.2em}.wp-list-table a{-webkit-transition:none;transition:none}#the-list tr:last-child td,#the-list tr:last-child th{border-bottom:none!important;-webkit-box-shadow:none;box-shadow:none}#comments-form .fixed .column-author{width:20%}#commentsdiv.postbox .inside{margin:0;padding:0}#commentsdiv .inside .row-actions{line-height:18px}#commentsdiv .inside .column-author{width:25%}#commentsdiv .column-comment p{margin:.6em 0;padding:0}#commentsdiv #replyrow td{padding:0}#commentsdiv p{padding:8px 10px;margin:0}#commentsdiv .comments-box{border:0}#commentsdiv .comments-box thead td,#commentsdiv .comments-box thead th{background:0 0;padding:0 7px 4px;font-style:italic}#commentsdiv .comments-box tr:last-child td{border-bottom:0 none}#commentsdiv #edithead .inside input{vertical-align:middle;width:160px}.sorting-indicator{display:none;width:10px;height:4px;margin-top:8px;margin-right:7px}.sorting-indicator:before{font:400 20px/1 dashicons;display:inline-block;padding:0;top:-4px;right:-8px;line-height:10px;vertical-align:top;-webkit-font-smoothing:antialiased}.column-comments .sorting-indicator:before{top:0;right:-10px}.wp-list-table .toggle-row:before,th.asc a:focus span.sorting-indicator:before,th.asc:hover span.sorting-indicator:before,th.sorted.desc .sorting-indicator:before{content:'\f140'}.wp-list-table .toggle-row{position:absolute;left:8px;top:10px;display:none;padding:0;width:40px;height:40px;border:none;outline:0;background:0 0}.wp-list-table .toggle-row:hover{cursor:pointer}.wp-list-table .toggle-row:focus:before{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ie8 .wp-list-table .toggle-row:focus:before{outline:#5b9dd9 solid 1px}.wp-list-table .toggle-row:active{-webkit-box-shadow:none;box-shadow:none}.wp-list-table .toggle-row:before{position:absolute;top:-5px;right:10px;-webkit-border-radius:50%;border-radius:50%;display:block;padding:1px 0 1px 2px;color:#666;font:400 20px/1 dashicons;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:none}.wp-list-table .is-expanded .toggle-row:before{content:'\f142'}tr.wp-locked .locked-indicator{margin-right:6px;height:20px;width:16px}tr.wp-locked .locked-indicator:before{color:#82878c;content:'\f160';display:inline-block;float:right;font:400 20px/1 dashicons;speak:none;vertical-align:middle;margin-right:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}tr.wp-locked .check-column input[type=checkbox],tr.wp-locked .check-column label,tr.wp-locked .row-actions .inline,tr.wp-locked .row-actions .trash{display:none}tr .locked-info{height:0;opacity:0}tr.wp-locked .locked-info{margin-top:8px;height:auto;opacity:1}.locked-text{vertical-align:top}tr.locked-info,tr.wp-locked .locked-info{-webkit-transition:height 1s,opacity .5s;transition:height 1s,opacity .5s}.fixed .column-comments .sorting-indicator{margin-top:3px}#menu-locations-wrap .widefat{width:60%}.widefat th.sortable,.widefat th.sorted{padding:0}th.sortable a,th.sorted a{display:block;padding:7px 10px 8px 7px}.fixed .column-comments.sortable a,.fixed .column-comments.sorted a{padding:8px 0}th.sortable a span,th.sorted a span{float:right;cursor:pointer}th.asc a:focus span.sorting-indicator,th.asc:hover span.sorting-indicator,th.desc a:focus span.sorting-indicator,th.desc:hover span.sorting-indicator,th.sorted .sorting-indicator{display:block}.tablenav-pages a,.tablenav-pages-navspan{font-weight:600;padding:0 2px}.tablenav-pages .current-page{margin:0 0 0 2px;padding-bottom:5px;font-size:13px;text-align:center}.tablenav .total-pages{margin-left:2px}.tablenav #table-paging{margin-right:2px}.tablenav a.button-secondary{display:block;margin:3px 0 0 8px}.tablenav{clear:both;height:30px;margin:6px 0 4px;vertical-align:middle}.tablenav.themes{max-width:98%}.tablenav .tablenav-pages{float:left;height:28px;margin-top:3px;cursor:default;color:#555}.tablenav .no-pages,.tablenav .one-page .pagination-links{display:none}.tablenav .tablenav-pages a,.tablenav-pages span.current{text-decoration:none;padding:3px 6px}.tablenav .tablenav-pages a,.tablenav-pages-navspan{display:inline-block;min-width:17px;border:1px solid #d2d2d2;padding:3px 5px 7px;background:#e4e4e4;font-size:16px;line-height:1;font-weight:400;text-align:center}.tablenav-pages-navspan{height:16px;border-color:#e8e8e8;background:#ebebeb;color:#b4b4b4}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover{border-color:#5b9dd9;color:#fff;background:#00a0d2;-webkit-box-shadow:none;box-shadow:none;outline:0}.tablenav .displaying-num{margin-left:7px}.tablenav .one-page .displaying-num{display:inline-block;margin-top:5px;margin-left:0}.tablenav .actions{padding:2px 0 0 8px}.wp-filter .actions{display:inline-block;vertical-align:middle}.tablenav .delete{margin-left:20px}.tablenav .dots{border-color:transparent}.tablenav .next,.tablenav .prev{border-color:transparent;color:#0073aa}.tablenav .next:hover,.tablenav .prev:hover{border-color:transparent;color:#00a0d2}.tablenav .view-switch{float:left;margin:0 5px;padding-top:3px}.wp-filter .view-switch{display:inline-block;vertical-align:middle;padding:12px 0;margin:0 2px 0 8px}.media-toolbar.wp-filter .view-switch{margin:0 2px 0 12px}.view-switch a{float:right;width:28px;height:28px;text-align:center;line-height:24px;text-decoration:none}.view-switch a:before{color:#b4b9be;display:inline-block;font:400 20px/1 dashicons;speak:none;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.view-switch a:focus:before,.view-switch a:hover:before{color:#727272}.view-switch a.current:before{color:#0073aa}.view-switch .view-list:before{content:'\f163'}.view-switch .view-excerpt:before{content:'\f164'}.view-switch .view-grid:before{content:'\f509'}.filter{float:right;margin:-5px 10px 0 0}.filter .subsubsub{margin-right:-10px;margin-top:13px}.screen-per-page{width:4em}#posts-filter .wp-filter{margin-bottom:0}#posts-filter fieldset{float:right;margin:0 0 1em 1.5ex;padding:0}#posts-filter fieldset legend{padding:0 1px .2em 0}.row-actions,.row-actions-visible{padding:2px 0 0}p.pagenav{margin:0;display:inline}.pagenav span{font-weight:600;margin:0 6px}.row-title{font-size:14px!important;font-weight:600}.column-comment .comment-author{margin-bottom:.6em}.column-author img,.column-comment .comment-author img,.column-username img{float:right;margin-left:10px;margin-top:1px}.row-actions{color:#ddd;font-size:13px}.mobile .row-actions,.row-actions.visible,div.comment-item:hover .row-actions,tr:hover .row-actions{visibility:visible}#wpbody-content .inline-edit-row fieldset{font-size:12px;float:right;margin:0;padding:0;width:100%}#wpbody-content .inline-edit-row fieldset .inline-edit-col,tr.inline-edit-row td{padding:0 .5em}#wpbody-content .quick-edit-row-post .inline-edit-col-left{width:40%}#wpbody-content .quick-edit-row-post .inline-edit-col-right{width:39%}#wpbody-content .inline-edit-row-post .inline-edit-col-center{width:20%}#wpbody-content .quick-edit-row-page .inline-edit-col-left{width:50%}#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .quick-edit-row-page .inline-edit-col-right{width:49%}#wpbody-content .bulk-edit-row .inline-edit-col-left{width:30%}#wpbody-content .bulk-edit-row-page .inline-edit-col-right{width:69%}#wpbody-content .bulk-edit-row .inline-edit-col-bottom{float:left;width:69%}#bulk-titles div a,.inline-edit-row fieldset .inline-edit-date,.plugin-card,.quick-edit-row-post fieldset label.inline-edit-status{float:right}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:27px}.inline-edit-row fieldset .inline-edit-group{clear:both;line-height:2.5}.inline-edit-row fieldset .inline-edit-group:after{content:".";display:block;height:0;clear:both;visibility:hidden}.inline-edit-row p.submit{clear:both;padding:.5em;margin:.5em 0 0}.inline-edit-row span.error{line-height:22px;margin:0 15px;padding:3px 5px}.inline-edit-row h4{margin:.2em 0;padding:0;line-height:2.5;text-transform:uppercase}.inline-edit-row fieldset span.checkbox-title,.inline-edit-row fieldset span.title{margin:0;padding:0;font-style:italic}.inline-edit-row fieldset label,.inline-edit-row fieldset span.inline-edit-categories-label{display:block;margin:.2em 0;line-height:2.5}.inline-edit-row fieldset.inline-edit-date label{display:inline-block;margin:0;line-height:1.5;vertical-align:baseline}.inline-edit-row fieldset label.inline-edit-tags{margin-top:0}.inline-edit-row fieldset label.inline-edit-tags span.title{margin:.2em 0;width:auto}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{display:block;float:right;width:6em;line-height:2.5}#posts-filter fieldset.inline-edit-date legend{padding:0}.inline-edit-row fieldset.inline-edit-date select{margin:1px;line-height:28px}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{display:block;margin-right:6em}.quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto;padding-left:.5em}.inline-edit-row .inline-edit-or{margin:.2em 0 .2em 6px;line-height:2.5}.inline-edit-row .input-text-wrap input[type=text]{width:100%}.inline-edit-row fieldset label input[type=checkbox]{vertical-align:middle}.inline-edit-row fieldset label textarea{width:100%;height:4em;vertical-align:top}#bulk-titles,ul.cat-checklist{height:12em;border:1px solid #ddd;overflow-y:scroll;padding:0 5px}#wpbody-content .bulk-edit-row fieldset .inline-edit-group label{max-width:50%}#wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child{margin-left:.5em}.inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input{width:6em}.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{font-size:12px;width:2.3em}.inline-edit-row fieldset input[name=aa]{font-size:12px;width:3.5em}.inline-edit-row fieldset label input.inline-edit-password-input{width:8em}ul.cat-checklist{margin:0;background-color:#fff}#bulk-titles{display:block;margin:0 0 5px;line-height:140%}.inline-edit-row fieldset ul.cat-checklist input,.inline-edit-row fieldset ul.cat-checklist li{margin:0;position:relative}.inline-edit-row #bulk-titles div,.inline-edit-row fieldset ul.cat-checklist label{font-style:normal;font-size:11px}.inline-edit-row fieldset label input.inline-edit-menu-order-input{width:3em}.inline-edit-row fieldset label input.inline-edit-slug-input{width:75%}.inline-edit-row #post_parent,.inline-edit-row select[name=page_template]{max-width:80%}.ie8 .inline-edit-row #post_parent,.ie8 .inline-edit-row select[name=page_template]{width:250px}#bulk-titles div{margin:.2em .3em}#bulk-titles div a{cursor:pointer;display:block;height:18px;margin:0 -2px 0 3px;overflow:hidden;position:relative;width:20px}#bulk-titles div a:before{position:relative;top:-3px}.plugins tbody,.plugins tbody th.check-column{padding:8px 2px 0 0}.plugins tbody th.check-column input[type=checkbox]{margin-top:4px}#update-plugins-table tbody td p{margin-top:0}#update-plugins-table tbody td p strong{font-size:14px}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-right:6px}#update-plugins-table tfoot td.check-column,#update-plugins-table thead td.check-column{padding-top:11px}.plugins,.plugins td,.plugins th{color:#000}.plugins tr{background:#fff}.plugins p{margin:0 4px;padding:0}.plugins .desc p{margin:0 0 8px}.plugins td.desc{line-height:1.5em}.plugins .desc ol,.plugins .desc ul{margin:0 2em 0 0}.plugins .desc ul{list-style-type:disc}.plugins .row-actions{font-size:13px}.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th{padding:10px 9px}.plugins .active td,.plugins .active th{background-color:#f7fcfe}.plugins .update td,.plugins .update th{border-bottom:0}.plugin-update-tr td{border-top:0}.plugin-install #the-list td,.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th,.upgrade .plugins td,.upgrade .plugins th{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th,.plugins tr.active.plugin-update-tr+tr.inactive td,.plugins tr.active.plugin-update-tr+tr.inactive th{border-top:1px solid rgba(0,0,0,.03);-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1;box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1}.plugins .update td,.plugins .update th,.plugins .updated td,.plugins .updated th,.plugins tr.active+tr.inactive.update td,.plugins tr.active+tr.inactive.update th,.plugins tr.active+tr.inactive.updated td,.plugins tr.active+tr.inactive.updated th,.upgrade .plugins tr:last-of-type td,.upgrade .plugins tr:last-of-type th{-webkit-box-shadow:none;box-shadow:none}.plugins .active.update td,.plugins .active.update th,tr.active.update+tr.plugin-update-tr .plugin-update{background-color:#fef7f1}.plugin-update-tr.active td,.plugins .active th.check-column{border-right:4px solid #00a0d2}.plugins .active.update th.check-column,.plugins .active.update+.plugin-update-tr .plugin-update{border-right:4px solid #d54e21}#wpbody-content .plugins .plugin-title,#wpbody-content .plugins .theme-title{padding-left:12px;white-space:nowrap}.plugins .inactive .plugin-title strong{font-weight:400}.plugins .row-actions,.plugins .second{padding:0 0 5px}.plugins .update .row-actions,.plugins .update .second,.plugins .updated .row-actions,.plugins .updated .second{padding-bottom:0}.plugins-php .widefat tfoot td,.plugins-php .widefat tfoot th{border-top-style:solid;border-top-width:1px}.plugin-update-tr .update-message{font-size:13px;font-weight:400;margin:0 31px 8px 10px;padding:6px 40px 8px 12px;background-color:#f7f7f7;background-color:rgba(0,0,0,.03)}.plugin-card .install-now:before,.plugin-card .update-now:before,.plugin-update-tr .update-message:before{color:#d54e21;display:inline-block;font:400 20px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.plugin-card .update-now:before,.plugin-update-tr .update-message:before{content:'\f463'}.plugin-update-tr .update-message:before{margin:0 -30px 0 10px}.plugin-card .install-now:before,.plugin-card .update-now:before{margin:3px -2px 0 5px}.plugin-card .updating-message:before,.plugin-update-tr .updating-message:before{content:'\f463';-webkit-animation:rotation 2s infinite linear;animation:rotation 2s infinite linear}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg)}}.plugin-card .updated-message:before,.plugin-update-tr .updated-message:before{color:#79ba49;content:'\f147'}.wp-list-table.plugins tbody tr.plugin-update-tr td.plugin-update{overflow:hidden;padding:0;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}tr.active+tr.plugin-update-tr .plugin-update{background-color:#f7fcfe}tr.active+tr.plugin-update-tr:not(.updated) .plugin-update .update-message{background-color:#fcf3ef}.plugin-install-php h3{clear:both}.plugin-install-php h4{margin:2.5em 0 8px}.plugin-install-php .wp-filter{margin-bottom:0}.plugin-group{overflow:hidden;margin-top:1.5em}.plugin-group h3{margin-top:0}.plugin-card{margin:0 8px 16px;width:48.5%;width:-webkit-calc(50% - 8px);width:calc(50% - 8px);background-color:#fff;border:1px solid #dedede;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.plugin-card:nth-child(odd){clear:both;margin-right:0}.plugin-card:nth-child(even){margin-left:0}@media screen and (min-width:1600px){.plugin-card{width:30%;width:-webkit-calc(33.1% - 8px);width:calc(33.1% - 8px)}.plugin-card:nth-child(odd){clear:none;margin-right:8px}.plugin-card:nth-child(even){margin-left:8px}.plugin-card:nth-child(3n+1){clear:both;margin-right:0}.plugin-card:nth-child(3n){margin-left:0}}.plugin-card-top{position:relative;padding:20px 20px 10px;min-height:135px}.plugin-action-buttons,div.action-links{margin:0}.plugin-card h4{margin:0 0 12px;font-size:18px;line-height:1.3}.plugin-card .desc,.plugin-card .name{margin-right:148px;margin-left:120px}.plugin-card .action-links{position:absolute;top:20px;left:20px;width:120px}.plugin-action-buttons{clear:left;float:left;margin-right:2em;margin-bottom:1em;text-align:left}.plugin-action-buttons li{margin-bottom:10px}.plugin-card-bottom{clear:both;padding:12px 20px;background-color:#fafafa;border-top:1px solid #dedede;overflow:hidden}.plugin-card-bottom .star-rating{display:inline}.plugin-card .column-rating{line-height:23px}.plugin-card .column-rating,.plugin-card .column-updated{margin-bottom:4px}.plugin-card .column-downloaded,.plugin-card .column-rating{float:right;clear:right;max-width:180px}.plugin-card .column-compatibility,.plugin-card .column-updated{text-align:left;float:left;clear:left;width:65%;width:-webkit-calc(100% - 180px);width:calc(100% - 180px)}.plugin-icon,.plugin-icon img{width:128px;height:128px}.plugin-card .column-compatibility span:before{font:400 20px/.5 dashicons;speak:none;display:inline-block;padding:0;top:4px;right:-2px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#444}.plugin-card .compatibility-incompatible:before{content:'\f158'}.plugin-card .compatibility-compatible:before{content:'\f147'}.plugin-icon{position:absolute;top:20px;right:20px;margin:0 0 20px 20px}.no-plugin-results{color:#999;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;text-align:center}.wp-list-table tr.site-deleted{background:#ff8573}.wp-list-table tr.site-spammed{background:#faafaa}.wp-list-table tr.site-archived{background:#ffebe8}.wp-list-table tr.site-mature{background:#fecac2}.sites.fixed .column-lastupdated,.sites.fixed .column-registered{width:20%}.sites.fixed .column-users{width:80px}@media screen and (max-width:1100px) and (min-width:782px),(max-width:480px){.plugin-card .action-links{position:static;margin-right:148px;width:auto}.plugin-action-buttons{float:none;margin:1em 0 0;text-align:right}.plugin-action-buttons li{display:inline-block;vertical-align:middle}.plugin-action-buttons li .button{margin-left:20px}.plugin-card .desc,.plugin-card .name{margin-left:0}.plugin-card .desc p:first-of-type{margin-top:0}}@media screen and (max-width:782px){.plugins #the-list tr td,.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th.check-column{border-top:none}.tablenav{height:auto}.tablenav.top{margin:20px 0 5px}.tablenav.bottom{position:relative;margin-top:15px}.tablenav br{display:none}.tablenav br.clear{display:block}.form-wrap>p,.tablenav .view-switch,.tablenav.top .actions,.tablenav.top .displaying-num,.tablenav.top .tablenav-pages.one-page,.wp-list-table th.column-primary~th,.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){display:none}.view-switch a{width:36px;height:36px;line-height:33px}.tablenav.bottom .displaying-num{position:absolute;left:0;top:11px;margin:0;font-size:14px}.tablenav .tablenav-pages{width:100%;height:auto;text-align:center;margin:0 0 25px}.tablenav.bottom .tablenav-pages{margin-top:25px}.tablenav.bottom .tablenav-pages.one-page{margin:15px 0 0;height:0}.tablenav-pages .pagination-links{font-size:16px}.tablenav-pages .pagination-links a,.tablenav-pages-navspan{padding:9px 16px 12px;font-size:18px}.tablenav-pages-navspan{height:18px}.tablenav-pages .pagination-links .current-page{padding:8px 9px 9px;font-size:16px}.comment-count{font-size:14px}.wp-list-table thead th.column-primary{width:100%}.wp-list-table tr th.check-column{display:table-cell;width:35px}.wp-list-table .column-primary .toggle-row{display:block}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){position:relative;clear:both;display:block;width:auto!important}.wp-list-table td.column-primary{padding-left:50px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){padding:3px 35% 3px 8px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{position:absolute;right:10px;display:block;overflow:hidden;width:32%;content:attr(data-colname);white-space:nowrap;text-overflow:ellipsis}.wp-list-table .is-expanded td:not(.hidden){display:block!important;overflow:hidden}.column-posts,.widefat .num{text-align:right}#comments-form .fixed .column-author{display:none!important}.fixed .column-comment .comment-author{display:block}#the-comment-list .is-expanded td{-webkit-box-shadow:none;box-shadow:none}#the-comment-list .is-expanded td:last-child{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.post-com-count .screen-reader-text{position:static;width:auto;height:auto;margin:0}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:none}.column-comments .post-com-count [aria-hidden=true],.column-response .post-com-count [aria-hidden=true]{display:none}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:normal}.column-comments .post-com-count-wrapper>a,.column-response .post-com-count-wrapper>a{display:block}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:0;margin-left:.5em}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:static;height:auto;min-width:0;padding:0;border:none;-webkit-border-radius:0;border-radius:0;background:0 0;color:#bb2a2a;font-size:inherit;line-height:inherit;text-align:right}.column-comments .post-com-count-pending:hover,.column-response .post-com-count-pending:hover{color:#dc3232}.widefat tfoot .check-column,.widefat thead .check-column{padding:10px 0}.widefat *{word-wrap:normal}#wpbody-content .bulk-edit-row .inline-edit-col-bottom,#wpbody-content .bulk-edit-row .inline-edit-col-left,#wpbody-content .bulk-edit-row-page .inline-edit-col-right,#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .inline-edit-row-post .inline-edit-col-center,#wpbody-content .quick-edit-row-page .inline-edit-col-left,#wpbody-content .quick-edit-row-page .inline-edit-col-right,#wpbody-content .quick-edit-row-post .inline-edit-col-left,#wpbody-content .quick-edit-row-post .inline-edit-col-right{float:none;width:100%}#wpbody-content .bulk-edit-row fieldset .inline-edit-col label,#wpbody-content .bulk-edit-row fieldset .inline-edit-group label,#wpbody-content .quick-edit-row fieldset .inline-edit-col label,#wpbody-content .quick-edit-row fieldset .inline-edit-group label{max-width:none;float:none;margin-bottom:5px}#wpbody .bulk-edit-row fieldset select{display:block;width:100%;max-width:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.inline-edit-row #bulk-titles div,.inline-edit-row fieldset ul.cat-checklist label{font-size:16px}.wp-list-table.plugins .plugin-title strong,.wp-list-table.plugins .theme-title strong,table.plugin-install td.column-name strong{font-size:1.4em;line-height:1.6em}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{float:none}.inline-edit-row fieldset label.inline-edit-tags{padding:0 .5em}.inline-edit-row fieldset .inline-edit-col label.inline-edit-tags{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{margin-right:0}.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{width:3em}.inline-edit-row fieldset input[name=aa]{width:4.5em}.inline-edit-row .inline-edit-or{margin:0 0 0 6px}#bulk-titles div{margin:.8em .3em}.plugin-card,.plugin-update-tr .update-message{margin-right:0}#bulk-titles div a{height:22px}#wpbody-content #update-themes-table .plugin-title{width:auto}.link-manager-php #posts-filter{margin-top:25px}.link-manager-php .tablenav.bottom{overflow:hidden}.comments-box .toggle-row,.wp-list-table.plugins .toggle-row{display:none}#wpbody-content .wp-list-table.plugins td{display:block;width:auto;padding:10px 9px}#wpbody-content .wp-list-table.plugins .column-description{padding-top:2px}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-top:13px;padding-bottom:4px}.plugins #the-list .update td,.plugins #the-list .update th,.plugins #the-list tr>td:not(:last-child),.wp-list-table.plugins #the-list .theme-title{-webkit-box-shadow:none;box-shadow:none;border-top:none}.plugins tbody{padding:1px 0 0}.plugins .plugin-update-tr:before,.plugins tr.active+tr.inactive td.column-description,.plugins tr.active+tr.inactive th.check-column{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins .plugin-update-tr:before{content:'';display:table-cell}.plugins .active.update+.plugin-update-tr:before{border-right:4px solid #d54e21;background-color:#fef7f1}.plugins #the-list .plugin-update-tr .plugin-update{border-right:none}table.plugin-install .column-description,table.plugin-install .column-name,table.plugin-install .column-rating,table.plugin-install .column-version{display:block;width:auto}table.plugin-install th.column-description,table.plugin-install th.column-name,table.plugin-install th.column-rating,table.plugin-install th.column-version{display:none}table.plugin-install #the-list td{-webkit-box-shadow:none;box-shadow:none}table.plugin-install #the-list tr{display:block;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugin-card{margin-left:0;width:100%}}#save-action .spinner,#show-comments .spinner,#show-comments a,.postarea h3 label{float:right}#poststuff{padding-top:10px;min-width:763px}#poststuff #post-body{padding:0}#poststuff .postbox-container{width:100%}#poststuff #post-body.columns-2{margin-left:300px}#show-comments{overflow:hidden}#lost-connection-notice .spinner{visibility:visible;float:right;margin:0 0 0 5px}#titlediv{position:relative}#titlediv label{cursor:text}#titlediv div.inside{margin:0}#poststuff #titlewrap{border:0;padding:0}#titlediv #title{padding:3px 8px;font-size:1.7em;line-height:100%;height:1.7em;width:100%;outline:0;margin:0 0 3px;background-color:#fff}#titlediv #title-prompt-text{color:#777;position:absolute;font-size:1.7em;padding:11px 10px}#wp-content-editor-container,.postbox,form#tags-filter{position:relative}#poststuff .inside-submitbox,#side-sortables .inside-submitbox{margin:0 3px;font-size:11px}input#link_description,input#link_url{width:98%}#pending{background:100% none;border:0;padding:0;font-size:11px;margin-top:-1px}#edit-slug-box{line-height:24px;min-height:25px;margin-top:5px;padding:0 10px;color:#666}#edit-slug-box .cancel{margin-left:10px;font-size:11px}#editable-post-name-full{display:none}#editable-post-name{background-color:#fffbcc}#editable-post-name input{font-size:13px;height:22px;margin:0;width:16em}.submitbox .submit{text-align:right;padding:12px 10px 10px;font-size:11px;background-color:#464646;color:#ccc}.submitbox .submitdelete{text-decoration:none;padding:1px 2px}#normal-sortables .submitbox .submitdelete:hover{color:#000;background-color:red;border-bottom-color:red}.submitbox .submit a:hover{text-decoration:underline}.submitbox .submit input{margin-bottom:8px;margin-left:4px;padding:6px}.inside-submitbox #post_status{margin:2px -2px 2px 0}#post-status-select{margin-top:3px}#post-body #normal-sortables{min-height:50px}.postbox{min-width:255px;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff}#post-status-info,.postbox{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04)}#trackback_url{width:99%}#normal-sortables .postbox .submit{background:0 0;border:0;float:left;padding:0 12px;margin:0}.category-add input[type=text],.category-add select{width:100%;max-width:260px;vertical-align:baseline}#side-sortables .category-add input[type=text],#side-sortables .category-add select{margin:0 0 1em}#side-sortables .add-menu-item-tabs li,.wp-tab-bar li,ul.category-tabs li{display:inline;line-height:1.35em}.no-js .category-tabs li.hide-if-no-js,.ui-tabs-hide,.wp-editor-expand #content-resize-handle,.wp-hidden-children .wp-hidden-child{display:none}#side-sortables .add-menu-item-tabs a,.category-tabs a,.wp-tab-bar a{text-decoration:none}#post-body ul.add-menu-item-tabs li.tabs a,#post-body ul.category-tabs li.tabs a,#side-sortables .add-menu-item-tabs .tabs a,#side-sortables .category-tabs .tabs a,.wp-tab-bar .wp-tab-active a{color:#32373c}.category-tabs{margin:8px 0 5px}#category-adder h4{margin:10px 0}#side-sortables .add-menu-item-tabs,.wp-tab-bar{margin-bottom:3px}#normal-sortables .postbox #replyrow .submit{float:none;margin:0;padding:0 7px 5px}#side-sortables .submitbox .submit .preview,#side-sortables .submitbox .submit a.preview:hover,#side-sortables .submitbox .submit input{border:0}#side-sortables .inside-submitbox .insidebox,.stuffbox .insidebox{margin:11px 0}ul.add-menu-item-tabs,ul.category-tabs,ul.wp-tab-bar{margin-top:12px}ul.add-menu-item-tabs li,ul.category-tabs li{border:1px solid transparent;position:relative}.wp-tab-active,ul.add-menu-item-tabs li.tabs,ul.category-tabs li.tabs{border:1px solid #dfdfdf;border-bottom-color:#fdfdfd;background-color:#fdfdfd}ul.add-menu-item-tabs li,ul.category-tabs li,ul.wp-tab-bar li{padding:3px 5px 5px}#postimagediv .inside img{max-width:100%;height:auto;width:auto}#post-body .tagsdiv #newtag{margin-left:5px;width:16em}#side-sortables input#post_password{width:94%}#side-sortables .tagsdiv #newtag{width:68%}#post-status-info{width:100%;border-spacing:0;border:1px solid #e5e5e5;border-top:none;background-color:#f7f7f7;box-shadow:0 1px 1px rgba(0,0,0,.04);z-index:999}#post-status-info td{font-size:12px}.autosave-info{padding:2px 10px;text-align:left}#editorcontent #post-status-info{border:none}#content-resize-handle{background:url(../images/resize.gif) left bottom no-repeat;width:12px;cursor:row-resize}.rtl #content-resize-handle{background:url(../images/resize-rtl.gif) right bottom no-repeat}#postdivrich #content{resize:none}#wp-word-count{display:block;padding:2px 10px}#content-textarea-clone{z-index:-1;position:absolute;top:0;visibility:hidden;overflow:hidden;max-width:100%;border:1px solid transparent}.wp-editor-expand #wp-content-editor-tools{z-index:1000;border-bottom:1px solid #e5e5e5}.wp-editor-expand #wp-content-editor-container{-webkit-box-shadow:none;box-shadow:none;margin-top:-1px;border-bottom:0 none}.wp-editor-expand div.mce-statusbar{z-index:1}.wp-editor-expand #post-status-info{border-top:1px solid #e5e5e5}.wp-editor-expand div.mce-toolbar-grp{z-index:999}.mce-fullscreen #wp-content-wrap .mce-edit-area,.mce-fullscreen #wp-content-wrap .mce-menubar,.mce-fullscreen #wp-content-wrap .mce-statusbar,.mce-fullscreen #wp-content-wrap .mce-toolbar-grp{position:static!important;width:auto!important;padding:0!important}.mce-fullscreen #wp-content-wrap .mce-statusbar{visibility:visible!important}.mce-fullscreen #wp-content-wrap .mce-tinymce .mce-wp-dfw,.mce-fullscreen #wp-content-wrap .mce-wp-dfw,.post-php.mce-fullscreen #wpadminbar{display:none}#wp-content-editor-tools{background-color:#f1f1f1;padding-top:20px}#poststuff #post-body.columns-2 #side-sortables{width:280px}#timestampdiv select{height:21px;line-height:14px;padding:0;vertical-align:top;font-size:12px}#aa,#hh,#jj,#mn{padding:1px;font-size:12px}#hh,#jj,#mn{width:2em}#aa{width:3.4em}.curtime #timestamp{padding:2px 0 1px;display:inline!important;height:auto!important}#misc-publishing-actions label[for=post_status]:before,#post-body #visibility:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:#82878c}#post-body #visibility:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before{font:400 20px/1 dashicons;speak:none;display:inline-block;padding:0 0 0 2px;top:0;right:-1px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}#post-body #visibility:before{content:'\f177'}.curtime #timestamp:before{content:'\f145';top:-1px}#post-body .misc-pub-revisions:before{content:'\f321'}#timestampdiv{padding-top:5px;line-height:23px}#timestampdiv p{margin:8px 0 6px}#timestampdiv input{border-width:1px;border-style:solid}.notification-dialog{position:fixed;top:30%;max-height:70%;right:50%;width:450px;margin-right:-225px;background:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3);line-height:1.5;z-index:1000005;overflow-y:auto}.notification-dialog-background{position:fixed;top:0;right:0;left:0;bottom:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000000}#post-lock-dialog .post-locked-message,#post-lock-dialog .post-taken-over{margin:25px}#post-lock-dialog .post-locked-message a.button{margin-left:10px}#post-lock-dialog .post-locked-avatar{float:right;margin:0 0 20px 20px}#post-lock-dialog .wp-tab-first{outline:0}#post-lock-dialog .locked-saving img{float:right;margin-left:3px}#post-lock-dialog.saved .locked-saved,#post-lock-dialog.saving .locked-saving{display:inline}#excerpt{display:block;margin:12px 0 0;height:4em;width:100%}.tagchecklist{margin-right:14px;font-size:12px;overflow:auto}.tagchecklist br{display:none}.tagchecklist span,.tagchecklist span a{overflow:hidden;display:block;float:right}.tagchecklist strong{margin-right:-8px;position:absolute}.tagchecklist span{margin-left:25px;font-size:13px;line-height:1.8em;cursor:default;max-width:100%;text-overflow:ellipsis}.tagchecklist span a{margin:1px -17px 0 0;cursor:pointer;width:20px;height:20px;text-indent:0;position:absolute}#poststuff h2{margin-top:20px;font-size:1.5em;margin-bottom:15px;padding:0 0 3px;clear:right}#poststuff h3{font-size:14px;padding:8px 12px;margin:0;line-height:1.4}#poststuff .inside{margin:6px 0 0}#poststuff .inside #page_template,#poststuff .inside #parent_id{max-width:100%}#poststuff .inside label.deleted,#poststuff .inside label.spam{color:red}#poststuff .inside label.waiting{color:orange}#poststuff .inside label.approved{color:green}.ie8 #poststuff .inside #page_template,.ie8 #poststuff .inside #parent_id{width:250px}#post-visibility-select{line-height:1.5em;margin-top:3px}#poststuff #submitdiv .inside{margin:0;padding:0}#post-body-content,.edit-form-section{margin-bottom:20px}#postcustomstuff thead th{padding:5px 8px 8px;background-color:#f1f1f1}#postcustom #postcustomstuff .submit{border:0;float:none;padding:0 8px 8px}#side-sortables #postcustom #postcustomstuff .submit{margin:0;padding:0}#side-sortables #postcustom #postcustomstuff #the-list textarea{height:85px}#side-sortables #postcustom #postcustomstuff td.left input,#side-sortables #postcustom #postcustomstuff td.left select,#side-sortables #postcustomstuff #newmetaleft a{margin:3px 3px 0}#postcustomstuff table{margin:0;width:100%;border:1px solid #dfdfdf;border-spacing:0;background-color:#f9f9f9}#postcustomstuff tr{vertical-align:top}#postcustomstuff table input,#postcustomstuff table select,#postcustomstuff table textarea{width:96%;margin:8px}#side-sortables #postcustomstuff table input,#side-sortables #postcustomstuff table select,#side-sortables #postcustomstuff table textarea{margin:3px}#postcustomstuff td.left,#postcustomstuff th.left{width:38%}#postcustomstuff .submit input{margin:0;width:auto}#postcustomstuff #newmetaleft a{display:inline-block;margin:0 8px 8px;text-decoration:none}.no-js #postcustomstuff #enternew{display:none}#post-body-content .compat-attachment-fields{margin-bottom:20px}.compat-attachment-fields th{padding-top:5px;padding-left:10px}#select-featured-image{padding:4px 0;overflow:hidden}#select-featured-image img{max-width:100%;height:auto;margin-bottom:10px}#select-featured-image a{float:right;clear:both}#select-featured-image .remove{display:none;margin-top:10px}.js #select-featured-image.has-featured-image .remove{display:inline-block}.no-js #select-featured-image .choose{display:none}.post-state-format{overflow:hidden;display:inline-block;vertical-align:middle;height:20px;width:20px;margin-left:5px;margin-top:-4px}.post-state-format:before{display:block;height:20px;width:20px;font:400 20px/1 dashicons!important;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.post-format-icon:before,.post-state-format:before{color:#ddd;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}a.post-format-icon:hover:before,a.post-state-format:hover:before{color:#00a0d2}#post-formats-select{line-height:2em}#post-formats-select .post-format-icon:before{top:5px}input.post-format{margin-top:1px}label.post-format-icon{margin-right:0;padding:2px 0}.post-format-icon:before{position:relative;display:inline-block;margin-left:7px;font:400 20px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.post-format-icon.post-format-standard:before,.post-state-format.post-format-standard:before,a.post-state-format.format-standard:before{content:'\f109'}.post-format-icon.post-format-image:before,.post-state-format.post-format-image:before,a.post-state-format.format-image:before{content:'\f128'}.post-format-icon.post-format-gallery:before,.post-state-format.post-format-gallery:before,a.post-state-format.format-gallery:before{content:'\f161'}.post-format-icon.post-format-audio:before,.post-state-format.post-format-audio:before,a.post-state-format.format-audio:before{content:'\f127'}.post-format-icon.post-format-video:before,.post-state-format.post-format-video:before,a.post-state-format.format-video:before{content:'\f126'}.post-format-icon.post-format-chat:before,.post-state-format.post-format-chat:before,a.post-state-format.format-chat:before{content:'\f125'}.post-format-icon.post-format-status:before,.post-state-format.post-format-status:before,a.post-state-format.format-status:before{content:'\f130'}.post-format-icon.post-format-aside:before,.post-state-format.post-format-aside:before,a.post-state-format.format-aside:before{content:'\f123'}.post-format-icon.post-format-quote:before,.post-state-format.post-format-quote:before,a.post-state-format.format-quote:before{content:'\f122'}.post-format-icon.post-format-link:before,.post-state-format.post-format-link:before,a.post-state-format.format-link:before{content:'\f103'}.category-adder{margin-right:120px;padding:4px 0}.category-adder h4{margin:0 0 8px}#side-sortables .category-adder{margin:0}.categorydiv div.tabs-panel,.customlinkdiv div.tabs-panel,.posttypediv div.tabs-panel,.taxonomydiv div.tabs-panel,.wp-tab-panel{min-height:42px;max-height:200px;overflow:auto;padding:0 .9em;border:1px solid #dfdfdf;background-color:#fdfdfd}.ac_results,.revisions-diff,.revisions-meta,.revisions-tickmarks{background-color:#fff}div.tabs-panel-active{display:block}div.tabs-panel-inactive{display:none}#front-page-warning,#front-static-pages ul,.categorydiv ul.categorychecklist ul,.customlinkdiv ul.categorychecklist ul,.inline-editor ul.cat-checklist ul,.posttypediv ul.categorychecklist ul,.taxonomydiv ul.categorychecklist ul,ul.export-filters{margin-right:18px}ul.categorychecklist li{margin:0;padding:0;line-height:22px;word-wrap:break-word}.categorydiv .tabs-panel,.customlinkdiv .tabs-panel,.posttypediv .tabs-panel,.taxonomydiv .tabs-panel{border-width:3px;border-style:solid}.form-wrap label{display:block;padding:2px;font-size:12px}.form-field input[type=text],.form-field input[type=password],.form-field input[type=email],.form-field input[type=number],.form-field input[type=tel],.form-field input[type=url],.form-field input[type=search],.form-field textarea{border-style:solid;border-width:1px;width:95%}.form-wrap p,p.description{margin:2px 0 5px;color:#666}.form-wrap p,p.description,p.help,span.description{font-size:13px;font-style:italic}.form-wrap .form-field{margin:0 0 10px;padding:8px 0}.form-wrap .form-field #parent{max-width:100%}.col-wrap h3{margin:12px 0;font-size:1.1em}.col-wrap p.submit{margin-top:-10px}#poststuff .tagsdiv .howto{margin:0 0 6px}.ajaxtag .newtag{position:relative}.tagsdiv .newtag{width:180px}.tagsdiv .the-tags{display:block;height:60px;margin:0 auto;overflow:auto;width:260px}#qt_content_dfw,#wp-content-wrap .mce-wp-dfw,.ac_results{display:none}#post-body-content .tagsdiv .the-tags{margin:0 5px}p.popular-tags{border:none;line-height:2em;padding:8px 12px 12px;text-align:justify}p.popular-tags a{padding:0 3px}.tagcloud{width:97%;margin:0 0 40px;text-align:justify}.tagcloud h3{margin:2px 0 12px}.ac_results{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;border:1px solid grey}.wp-customizer .ac_results{z-index:500000}.ac_results li{padding:2px 5px;white-space:nowrap;color:#101010;text-align:right}.ac_over{background-color:#f0f0b8;cursor:pointer}.ac_match{text-decoration:underline}.imgedit-group-top h3 a,a.imgedit-help-toggle,table.diff .diff-addedline ins,table.diff .diff-deletedline del{text-decoration:none}.comment-php .wp-editor-area{height:200px}.comment-ays td,.comment-ays th{padding:10px 15px}#comment-status-radio label,.links-table td,.links-table th{padding:5px 0}.comment-ays-submit .button-cancel{margin-right:1em}.spam-undo-inside,.trash-undo-inside{margin:1px 0 1px 8px;line-height:16px}.spam-undo-inside .avatar,.trash-undo-inside .avatar{height:20px;width:20px;margin-left:8px;vertical-align:middle}.stuffbox .editcomment{clear:none}#comment-status-radio p{margin:3px 0 5px}#comment-status-radio input{margin:2px 0 5px 3px;vertical-align:middle}table.links-table{width:100%;border-spacing:0}.links-table th{font-weight:400;text-align:right;vertical-align:top;min-width:80px;width:20%;word-wrap:break-word}.links-table td label{margin-left:8px}.links-table td input[type=text],.links-table td textarea{width:100%}.links-table #link_rel{max-width:280px}.wp-editor-expand #qt_content_dfw,.wp-editor-expand #wp-content-wrap .mce-wp-dfw{display:inline-block}.focus-on #screen-meta,.focus-on #screen-meta-links,.focus-on #wp-toolbar,.focus-on #wpfooter,.focus-on .postbox-container>*,.focus-on .update-nag,.focus-on .wrap>h1,.focus-on div.error,.focus-on div.notice,.focus-on div.updated{opacity:0;-webkit-transition-duration:.6s;transition-duration:.6s;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-on #wp-toolbar{opacity:.3}.focus-off #screen-meta,.focus-off #screen-meta-links,.focus-off #wp-toolbar,.focus-off #wpfooter,.focus-off .postbox-container>*,.focus-off .update-nag,.focus-off .wrap>h1,.focus-off div.error,.focus-off div.notice,.focus-off div.updated{opacity:1;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-off #wp-toolbar{-webkit-transform:translate(0,0)}.focus-on #adminmenuback,.focus-on #adminmenuwrap{-webkit-transition-duration:.6s;transition-duration:.6s;-webkit-transition-property:-webkit-transform;transition-property:transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%)}.focus-off #adminmenuback,.focus-off #adminmenuwrap{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:-webkit-transform;transition-property:transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){#content-resize-handle,#post-body .wp_themeSkin .mceStatusbar a.mceResize{background:url(../images/resize-2x.gif) left bottom no-repeat;-webkit-background-size:11px 11px;background-size:11px 11px}.rtl #content-resize-handle,.rtl #post-body .wp_themeSkin .mceStatusbar a.mceResize{background:url(../images/resize-rtl-2x.gif) left bottom no-repeat}}@media only screen and (max-width:850px){#poststuff{min-width:0}#wpbody-content #poststuff #post-body{margin:0}#wpbody-content #post-body.columns-2 #postbox-container-1{margin-left:0;width:100%}#poststuff #postbox-container-1 #side-sortables:empty,#poststuff #postbox-container-1 .empty-container{border:0;height:0;min-height:0}#poststuff #post-body.columns-2 #side-sortables{min-height:0;width:auto}.columns-prefs,.screen-layout{display:none}}@media screen and (max-width:782px){#post-body-content{min-width:0}#titlediv #title-prompt-text{padding:10px}#poststuff h3{padding:12px}.post-format-options{padding-left:0}.post-format-options a{margin-left:5px;margin-bottom:5px;min-width:52px}.post-format-options .post-format-title{font-size:11px}.post-format-options a div{height:28px;width:28px}.post-format-options a div:before{font-size:26px!important}#post-visibility-select{line-height:280%}.wp-core-ui .save-post-visibility,.wp-core-ui .save-timestamp{vertical-align:middle;margin-left:15px}.timestamp-wrap select#mm{display:block;width:100%;margin-bottom:10px}.timestamp-wrap #aa,.timestamp-wrap #hh,.timestamp-wrap #jj,.timestamp-wrap #mn{padding:12px 3px;font-size:14px;margin-bottom:5px;width:auto;text-align:center}ul.category-tabs{margin:30px 0 15px}.tagsdiv .newtag,ul.categorychecklist li{margin-bottom:15px}ul.category-tabs li.tabs{padding:15px}ul.categorychecklist ul{margin-top:15px}.category-add input[type=text],.category-add select{max-width:none;margin-bottom:15px}.tagsdiv .newtag{width:100%;height:auto}.tagchecklist{margin:25px 10px}.tagchecklist span{font-size:16px;line-height:1.4}#commentstatusdiv p{line-height:2.8}.mceToolbar *{white-space:normal!important}.mceToolbar td,.mceToolbar tr{float:right!important}.wp_themeSkin a.mceButton{width:30px;height:30px}.wp_themeSkin .mceButton .mceIcon{margin-top:5px;margin-right:5px}.wp_themeSkin .mceSplitButton{margin-top:1px}.wp_themeSkin .mceSplitButton td a.mceAction{padding:6px 6px 6px 3px}.wp_themeSkin .mceSplitButton td a.mceOpen,.wp_themeSkin .mceSplitButtonEnabled:hover td a.mceOpen{padding-top:6px;padding-bottom:6px;background-position:1px 6px}.wp_themeSkin table.mceListBox{margin:5px}div.quicktags-toolbar input{padding:10px 20px}button.wp-switch-editor{font-size:16px;line-height:1em;margin:7px 7px 0 0;padding:8px 12px}#wp-content-media-buttons a{font-size:16px;line-height:37px;height:39px;padding:0 15px 0 20px}.wp-media-buttons span.jetpack-contact-form-icon,.wp-media-buttons span.wp-media-buttons-icon{width:22px!important;margin-top:-3px!important;margin-right:-5px!important}.wp-media-buttons #insert-jetpack-contact-form span.jetpack-contact-form-icon:before,.wp-media-buttons .add_media span.wp-media-buttons-icon:before{font-size:20px!important}#content_wp_fullscreen{display:none}.misc-pub-section{padding:20px 10px}.misc-pub-section>a{float:left;font-size:16px}#delete-action,#publishing-action{line-height:47px}#publishing-action .spinner{float:none;margin-top:-2px}.comment-ays td,.comment-ays th{padding-bottom:0}.comment-ays td{padding-top:6px}.links-table #link_rel{max-width:none}.links-table td,.links-table th{padding:10px 0}}@media only screen and (max-width:500px){#wp-content-media-buttons a{font-size:14px;padding:0 10px}}.revisions-control-frame,.revisions-diff-frame{position:relative}.revisions-controls{padding-top:40px;height:100px;z-index:1}.revisions-controls input[type=checkbox]{position:relative;top:-1px;vertical-align:text-bottom}.revisions.pinned .revisions-controls{position:fixed;top:0;height:82px;background:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.1);box-shadow:0 1px 3px rgba(0,0,0,.1)}.revisions-tickmarks{position:relative;margin:0 auto;height:.7em;top:7px;max-width:70%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.revisions-tickmarks>div{position:absolute;height:100%;border-right:1px solid #a0a5aa;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.revisions-tickmarks>div:first-child{border-width:0}.comparing-two-revisions .revisions-controls{height:140px}.comparing-two-revisions.pinned .revisions-controls{height:124px}.revisions .diff-error{position:absolute;text-align:center;margin:0 auto;width:100%;display:none}.revisions.diff-error .diff-error{display:block}.revisions .loading-indicator{position:absolute;vertical-align:middle;opacity:0;width:100%;width:-webkit-calc(100% - 30px);width:calc(100% - 30px);top:50%;top:-webkit-calc(50% - 10px);top:calc(50% - 10px);-webkit-transition:opacity .5s;transition:opacity .5s;filter:alpha(opacity=0)}body.folded .revisions .loading-indicator{margin-right:-32px}.revisions .loading-indicator span.spinner{display:block;margin:0 auto;float:none}.revisions.loading .loading-indicator{opacity:1;filter:alpha(opacity=100)}.revisions .diff{-webkit-transition:opacity .5s;transition:opacity .5s}.revisions.loading .diff{opacity:.5;filter:alpha(opacity=50)}.revisions.diff-error .diff{visibility:hidden}.revisions-meta{margin-top:20px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.1);box-shadow:0 1px 3px rgba(0,0,0,.1)}.revisions.pinned .revisions-meta{-webkit-box-shadow:none;box-shadow:none}.revision-toggle-compare-mode{position:absolute;top:0;left:0}.comparing-two-revisions .revisions-next,.comparing-two-revisions .revisions-previous,.revisions-meta .diff-meta-to strong{display:none}.revisions-controls .author-card .date{color:#777}.revisions-controls .author-card.autosave{color:#d54e21}.revisions-controls .author-card .author-name{font-weight:700}.comparing-two-revisions .diff-meta-to strong{display:block}.revisions.pinned .revisions-buttons{padding:0 11px}.revisions-next,.revisions-previous{position:relative;z-index:1}.revisions-previous{float:right}.revisions-next{float:left}.revisions-controls .wp-slider{max-width:70%;margin:0 auto;top:-3px}.revisions-diff{padding:15px;box-shadow:0 1px 3px rgba(0,0,0,.1)}.arrow:after,.revisions-diff{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.1)}.revisions-diff h3:first-child{margin-top:0}#revisions-meta-restored img,.post-revisions li img{vertical-align:middle}table.diff tbody tr td:nth-child(2){width:4%}table.diff{table-layout:fixed;width:100%;white-space:pre-wrap}.about-wrap h2 .nav-tab,.about-wrap p.wp-credits-list a,.imgedit-wrap .nowrap,.nav-menus-php .item-edit,.sidebar-name h3,.widget-title h4{white-space:nowrap}table.diff col.content{width:auto}table.diff col.content.diffsplit{width:48%}table.diff col.diffsplit.middle{width:auto}table.diff col.ltype{width:30px}table.diff tr{background-color:transparent}table.diff td,table.diff th{font-family:Consolas,Monaco,monospace;font-size:14px;line-height:1.618;padding:.5em;vertical-align:top;word-wrap:break-word}table.diff td h1,table.diff td h2,table.diff td h3,table.diff td h4,table.diff td h5,table.diff td h6{margin:0}table.diff .diff-deletedline{background-color:#ffe9e9}table.diff .diff-deletedline del{background-color:#faa}table.diff .diff-addedline{background-color:#e9ffe9}table.diff .diff-addedline ins{background-color:#afa}.diff-meta{padding:5px;clear:both;min-height:32px}.diff-title strong{line-height:32px;min-width:60px;text-align:left;float:right;margin-left:5px}.revisions-controls .author-card .author-info{font-size:12px;line-height:16px}.revisions-controls .author-card .author-info,.revisions-controls .author-card .avatar{float:right;margin-right:6px;margin-left:6px}.revisions-controls .author-card .byline{display:block;font-size:12px}.revisions-controls .author-card .avatar{vertical-align:middle}.diff-meta input.restore-revision{float:left;margin-right:6px;margin-left:6px;margin-top:4px}.diff-meta-from{display:none}.comparing-two-revisions .diff-meta-from{display:block}.revisions-tooltip{position:absolute;bottom:105px;margin-left:0;margin-right:-69px;z-index:0;max-width:350px;min-width:130px;padding:8px 4px;opacity:0}.revisions-tooltip.flipped{margin-right:0;margin-left:-70px}.revisions.pinned .revisions-tooltip{display:none!important}.comparing-two-revisions .revisions-tooltip{bottom:145px}.revisions-tooltip-arrow{width:70px;height:15px;overflow:hidden;position:absolute;right:0;margin-right:35px;bottom:-15px}.revisions-tooltip.flipped .revisions-tooltip-arrow{margin-right:0;margin-left:35px;right:auto;left:0}.revisions-tooltip-arrow>span{right:20px;top:-20px;width:25px;height:25px;transform:rotate(-45deg)}.arrow:after,.revisions-tooltip-arrow>span{content:"";position:absolute;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg)}.revisions-tooltip.flipped .revisions-tooltip-arrow>span{right:auto;left:20px}.ie8 .revisions-tooltip-arrow>span{right:15px;top:-25px;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)"}.ie8 .revisions-tooltip.flipped .revisions-tooltip-arrow>span{left:25px}.revisions-tooltip,.revisions-tooltip-arrow>span{border:1px solid #d7d7d7;background-color:#fff}.revisions-tooltip{display:none}.arrow{width:70px;height:16px;overflow:hidden;position:absolute;right:0;margin-right:-35px;bottom:90px;z-index:10000}.arrow.top{top:-16px;bottom:auto}.arrow.left{right:20%}.arrow:after{z-index:9999;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1);right:20px;top:-20px;width:25px;height:25px;transform:rotate(-45deg)}.revisions-tooltip,.revisions-tooltip-arrow:after{border-width:1px;border-style:solid}div.revisions-controls>.wp-slider>.ui-slider-handle{margin-right:-10px}.rtl div.revisions-controls>.wp-slider>.ui-slider-handle{margin-left:-10px}.wp-slider.ui-slider{position:relative;border:1px solid #d7d7d7;text-align:right;cursor:pointer}.wp-slider .ui-slider-handle{-webkit-border-radius:50%;border-radius:50%;height:18px;margin-top:-3px;outline:0;position:absolute;width:18px;z-index:2;-ms-touch-action:none;touch-action:none}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#00a0d2;border:1px solid #0073aa;-webkit-box-shadow:inset 0 1px 0 #78c8e6,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #78c8e6,0 1px 0 rgba(0,0,0,.15)}.wp-slider .ui-slider-handle:before{background:0 0;position:absolute;top:0;right:0;color:#fff;content:"\f229";font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.media-item .media-item-info tr,.wp-slider .ui-slider-range{background-color:transparent}.wp-slider .ui-slider-handle.from-handle:before,.wp-slider .ui-slider-handle.to-handle:before{font-size:20px!important;margin:-1px -1px 0 0}.wp-slider .ui-slider-handle.from-handle:before{content:'\f139'}.rtl .wp-slider .ui-slider-handle.from-handle:before,.wp-slider .ui-slider-handle.to-handle:before{content:'\f141'}.rtl .wp-slider .ui-slider-handle.to-handle:before{content:'\f139';left:-1px}.wp-slider .ui-slider-range{position:absolute;font-size:.7em;display:block;border:0;background-image:none}.wp-slider.ui-slider-horizontal{height:.7em}.wp-slider.ui-slider-horizontal .ui-slider-handle{top:-.25em;margin-right:-.6em}.wp-slider.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.wp-slider.ui-slider-horizontal .ui-slider-range-min{right:0}.wp-slider.ui-slider-horizontal .ui-slider-range-max{left:0}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.revision-tick.completed-false{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){#diff-next-revision,#diff-previous-revision{margin-top:-1em}table.diff{-ms-word-break:break-all;word-break:break-all;word-wrap:break-word}}.media-item .describe{width:100%;border-top:1px solid #dfdfdf;clear:both;cursor:default}#media-items:empty,.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:right;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .describe td{padding:0 0 8px 8px;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 10px 0 0}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-left:6px;margin-right:2px}.media-upload-form .align .field label{display:inline;padding:0 23px 0 0;margin:0 3px 0 1em;font-weight:600}.media-upload-form tr.image-size label{margin:0 5px 0 0;font-weight:600}.media-upload-form th.label label{font-weight:600;margin:.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}.media-item .describe input[type=text],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 5px 0 0}.describe-toggle-off,.describe-toggle-on,.media-item .edit-attachment{display:block;line-height:36px;float:left;margin-left:10px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}.js .html-uploader #plupload-upload-ui,.media-item .startclosed,.media-item .startopen{display:none}.media-upload-form .media-item{min-height:36px;margin-bottom:1px;position:relative;width:100%;background:#fff}.media-upload-form .media-item,.media-upload-form .media-item .error{-webkit-box-shadow:0 1px 0 #dfdfdf;box-shadow:0 1px 0 #dfdfdf}.media-item .filename{line-height:36px;overflow:hidden;margin-right:6px}.media-item .pinkynail{float:right;margin:2px 3px 0 10px;max-width:40px;max-height:32px}.media-item .original{position:relative;height:34px}.media-item .progress{float:left;height:22px;margin:7px 6px;width:200px;line-height:2em;padding:0;overflow:hidden;-webkit-border-radius:22px;border-radius:22px;background:#ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-22px;-webkit-border-radius:22px;border-radius:22px;background-color:#0073aa;-webkit-box-shadow:inset 0 0 2px rgba(0,0,0,.3);box-shadow:inset 0 0 2px rgba(0,0,0,.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0;color:#fff;text-align:center;line-height:22px;font-weight:400;text-shadow:0 1px 2px rgba(0,0,0,.2)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #html-upload-ui{display:block}.media-upload-form .media-item .error,.media-upload-form .media-item.error{width:auto;margin:0 0 1px}.media-upload-form .media-item .error{padding:10px 14px 10px 0}.media-item .error-div a.dismiss{display:block;float:left;margin:0 15px 0 10px}.find-box{background-color:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3);width:600px;overflow:hidden;margin-right:-300px;position:fixed;top:30px;bottom:30px;right:50%;z-index:100105}.find-box-head{background:#fcfcfc;border-bottom:1px solid #dfdfdf;height:36px;font-size:18px;font-weight:600;line-height:36px;padding:0 16px 0 36px;position:absolute;top:0;right:0;left:0}.find-box-inside{overflow:auto;padding:16px;background-color:#fff;position:absolute;top:37px;bottom:45px;overflow-y:scroll;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.find-box-search{padding-bottom:16px}.find-box-search .spinner{float:none;right:105px;position:absolute}#find-posts-response,.find-box-search{position:relative}#find-posts-input,#find-posts-search{float:right}#find-posts-input{width:140px;height:28px;margin:0 0 0 4px}.widefat .found-radio{padding-left:0;width:16px}#find-posts-close{width:36px;height:36px;position:absolute;top:0;left:0;cursor:pointer;text-align:center;color:#666}#find-posts-close:hover{color:#00a0d2}#find-posts-close:before{font:400 20px/36px dashicons;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:'\f158'}.find-box-buttons{padding:8px 16px;background:#fcfcfc;border-top:1px solid #dfdfdf;position:absolute;bottom:0;right:0;left:0}@media screen and (max-width:782px){.find-box-inside{bottom:57px}}@media screen and (max-width:660px){.find-box{top:0;bottom:0;right:0;left:0;margin:0;width:100%}}.ui-find-overlay{position:fixed;top:0;right:0;left:0;bottom:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:100100}ul#dismissed-updates{display:none}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-.5em 0 2em}#poststuff .inside .the-tagcloud{margin:5px 0 10px;padding:8px;border:1px solid #ddd;line-height:1.8em;word-spacing:3px;-webkit-border-radius:6px;border-radius:6px}.drag-drop #drag-drop-area{border:4px dashed #b4b9be;height:200px}.drag-drop .drag-drop-inside{margin:70px auto 0;width:250px}.drag-drop-inside p{color:#a0a5aa;font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.media-frame.mode-grid .media-frame-menu,.media-frame.mode-grid .media-frame-router,.media-frame.mode-grid .media-frame-title,.upload-php .mode-grid .hide-sidebar .media-sidebar{display:none}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}#plupload-upload-ui{position:relative}.media-frame.mode-grid,.media-frame.mode-grid .attachments-browser .attachments,.media-frame.mode-grid .media-frame-content,.media-frame.mode-grid .uploader-inline-content{position:static}.media-frame.mode-grid .media-frame-content{background-color:transparent;border:none}.upload-php .mode-grid .media-sidebar{position:relative;width:auto;margin-bottom:16px;padding:0 16px;border-right:4px solid #dd3d36;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);background-color:#fff}.upload-php .mode-grid .media-sidebar .media-uploader-status{border-bottom:none;padding-bottom:0;max-width:100%}.upload-php .mode-grid .media-sidebar .upload-error{margin:12px 0;padding:4px 0 0;border:none;-webkit-box-shadow:none;box-shadow:none;background:0 0}.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors{top:-10px;left:-14px;padding:10px}.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:before{content:"\f153";display:block;font:400 16px/1 dashicons;color:#bbb}.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:focus:before,.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:hover:before{color:#c00}.upload-php .mode-grid .media-sidebar .media-uploader-status.errors h3{display:none}.media-frame.mode-grid .uploader-inline{position:relative;top:auto;left:auto;right:auto;bottom:auto;padding-top:0;margin-top:0;border:4px dashed #b4b9be}.media-frame.mode-select .attachments-browser.fixed .attachments{position:relative;top:94px;padding-bottom:94px}.media-frame.mode-grid .attachment.details:focus,.media-frame.mode-grid .attachment:focus,.media-frame.mode-grid .selected.attachment:focus{-webkit-box-shadow:inset 0 0 2px 3px #f1f1f1,inset 0 0 0 7px #5b9dd9;box-shadow:inset 0 0 2px 3px #f1f1f1,inset 0 0 0 7px #5b9dd9;outline:0}.media-frame.mode-grid .selected.attachment{-webkit-box-shadow:inset 0 0 0 5px #f1f1f1,inset 0 0 0 7px #ccc;box-shadow:inset 0 0 0 5px #f1f1f1,inset 0 0 0 7px #ccc}.media-frame.mode-grid .attachment.details{-webkit-box-shadow:inset 0 0 0 3px #f1f1f1,inset 0 0 0 7px #1e8cbe;box-shadow:inset 0 0 0 3px #f1f1f1,inset 0 0 0 7px #1e8cbe}.media-frame.mode-grid.mode-select .attachment .thumbnail{opacity:.65}.media-frame.mode-select .attachment.selected .thumbnail{opacity:1}.media-frame.mode-grid .media-toolbar{margin-bottom:15px;height:auto}.media-frame.mode-grid .media-toolbar select{margin:0 0 0 10px;font-size:14px}.media-frame.mode-grid.mode-edit .media-toolbar-secondary>.select-mode-toggle-button{margin:0 0 0 8px;vertical-align:middle}.media-frame.mode-grid .attachments-browser .bulk-select{display:inline-block;margin:0 0 0 10px}.media-frame.mode-grid .search{margin-top:0}.media-frame.mode-grid .spinner{margin-top:16px}.attachments-browser .media-toolbar-secondary>.media-button{margin-left:10px}.media-frame.mode-select .attachments-browser.fixed .media-toolbar{position:fixed;top:32px;right:auto;left:20px;margin-top:0}.media-frame.mode-grid .attachments-browser{padding:0}.media-frame.mode-grid .attachments-browser .attachments{padding:2px}.media-frame.mode-grid .attachments-browser .no-media{color:#999;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;text-align:center}.edit-attachment-frame{display:block;height:100%;width:100%}.edit-attachment-frame .edit-media-header{overflow:hidden}.upload-php .media-modal-close .media-modal-icon:before{content:'\f335';font-size:22px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{cursor:pointer;color:#777;background-color:transparent;height:50px;width:50px;padding:0;position:absolute;text-align:center;border:0;border-right:1px solid #ddd;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.upload-php .media-modal-close{top:0;left:0}.edit-attachment-frame .edit-media-header .left{left:102px}.edit-attachment-frame .edit-media-header .right{left:51px}.edit-attachment-frame .media-frame-title{right:0;left:150px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{font:400 20px/50px dashicons!important;display:inline;font-weight:300}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .left:hover,.edit-attachment-frame .edit-media-header .right:focus,.edit-attachment-frame .edit-media-header .right:hover,.upload-php .media-modal-close:focus,.upload-php .media-modal-close:hover{background:#ddd;border-color:#ccc;color:#000;outline:0;-webkit-box-shadow:none;box-shadow:none}.upload-php .media-modal-close:focus .media-modal-icon:before,.upload-php .media-modal-close:hover .media-modal-icon:before{color:#000}.edit-attachment-frame .edit-media-header .left:before,.rtl .edit-attachment-frame .edit-media-header .right:before{content:'\f341'}.edit-attachment-frame .edit-media-header .right:before,.rtl .edit-attachment-frame .edit-media-header .left:before{content:'\f345'}.edit-attachment-frame .edit-media-header .left.disabled,.edit-attachment-frame .edit-media-header .left.disabled:hover,.edit-attachment-frame .edit-media-header .right.disabled,.edit-attachment-frame .edit-media-header .right.disabled:hover{color:#ccc;background:inherit;cursor:default;pointer-events:none}.edit-attachment-frame .media-frame-content,.edit-attachment-frame .media-frame-router{right:0}.edit-attachment-frame .media-frame-content{border-bottom:none;bottom:0;top:50px}.edit-attachment-frame .attachment-details{position:absolute;overflow:auto;top:0;bottom:0;left:0;right:0;-webkit-box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1);box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1)}.edit-attachment-frame .attachment-media-view{float:right;width:65%;height:100%}.edit-attachment-frame .attachment-media-view .thumbnail{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:16px;height:100%}.edit-attachment-frame .attachment-media-view .details-image{display:block;margin-bottom:16px;max-width:100%;max-height:90%;max-height:-webkit-calc(100% - 42px);max-height:calc(100% - 42px)}.edit-attachment-frame .wp-media-wrapper{margin-bottom:12px}.edit-attachment-frame input,.edit-attachment-frame textarea{padding:6px 8px;line-height:16px}.edit-attachment-frame .attachment-info{overflow:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:0;padding:12px 16px 0;width:35%;height:100%;-webkit-box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1);box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1);border-bottom:0;border-right:1px solid #ddd;background:#f3f3f3}.edit-attachment-frame .attachment-info .details,.edit-attachment-frame .attachment-info .settings{position:relative;overflow:hidden;float:none;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #ddd}.edit-attachment-frame .attachment-info .filename{font-weight:400;color:#666}.edit-attachment-frame .attachment-info .thumbnail{margin-bottom:12px}.attachment-info .actions{margin-bottom:16px}.attachment-info .actions a{display:inline;text-decoration:none}.wp_attachment_details label[for=content]{font-size:13px;line-height:1.5;margin:1em 0}.wp_attachment_details #attachment_caption{height:4em}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative}.imgedit-settings p{margin:8px 0 0}.describe .imgedit-wrap .imgedit-settings{padding:0 5px}.wp_attachment_holder div.updated{margin-top:0}.wp_attachment_holder .imgedit-wrap>div{height:auto;overflow:hidden}.wp_attachment_holder .imgedit-wrap .imgedit-panel-content{padding-left:16px;width:auto;overflow:hidden}.wp_attachment_holder .imgedit-wrap .imgedit-settings{float:left;width:250px}.imgedit-settings input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;background:url(../images/spinner.gif) center no-repeat #fff;-webkit-background-size:20px 20px;background-size:20px 20px;opacity:.7;filter:alpha(opacity=70);width:100%;height:500px;display:none}.no-float{float:none}.A1B1 .button,.A1B1 .spinner,.wp_attachment_image .button,.wp_attachment_image .spinner{float:right}.imgedit-settings .disabled,.media-disabled{color:grey}.A1B1,.wp_attachment_image{overflow:hidden}.no-js .wp_attachment_image .button{display:none}.imgedit-menu{margin:0 0 12px;min-width:300px}.imgedit-menu div{float:right;width:32px;border:1px solid #d5d5d5;background:#f1f1f1;margin:0 0 0 8px;height:32px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;line-height:28px;color:#777;cursor:pointer}.imgedit-menu div:before{font:400 20px/1 dashicons;speak:none;vertical-align:middle}.imgedit-menu div:hover{border-color:#c1c1c1;background-color:#eaeaea;color:#32373c}.imgedit-menu div.disabled{border-color:#ccc;background-color:#ddd;color:#777;filter:alpha(opacity=50);opacity:.5;cursor:default}.imgedit-crop:before{content:'\f165'}.imgedit-rleft:before{content:'\f166'}.imgedit-rright:before{content:'\f167'}.imgedit-flipv:before{content:'\f168'}.imgedit-fliph:before{content:'\f169'}.imgedit-undo:before{content:'\f171'}.imgedit-redo:before{content:'\f172'}.imgedit-crop-wrap{position:relative}.imgedit-crop{margin:0 0 0 8px}.imgedit-rleft{margin:0 3px}.imgedit-rright{margin:0 3px 0 8px}.imgedit-flipv{margin:0 3px}.imgedit-fliph{margin:0 3px 0 8px}.imgedit-undo{margin:0 3px}.imgedit-redo{margin:0 3px 0 8px}.imgedit-applyto img{margin:0 0 0 8px}#poststuff .imgedit-group-top h3{padding:0}.imgedit-applyto .imgedit-label{padding:2px 0 0;display:block}.imgedit-help{display:none;font-style:italic}.form-table td.imgedit-response{padding:0}.imgedit-submit{margin:8px 0 0}.imgedit-submit-btn{margin-right:20px}span.imgedit-scale-warn{color:red;font-size:20px;font-style:normal;visibility:hidden;vertical-align:middle}.imgedit-group{margin-bottom:8px;padding:10px}audio,video{display:inline-block;max-width:100%}.mejs-container{width:100%;max-width:100%}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.imgedit-wait{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.wp_attachment_details label[for=content]{font-size:14px;line-height:1.5em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{font-size:13px;line-height:1.5}.media-upload-form .media-item.error{padding:1px 10px}.media-upload-form .media-item .error{padding:10px 12px 10px 0}}@media only screen and (max-width:1120px){#wp-media-grid .wp-filter .attachment-filters{max-width:100%}}@media only screen and (max-width:782px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:46px;left:10px}}@media only screen and (max-width:600px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:0}}@media only screen and (max-width:480px){.edit-attachment-frame .media-frame-title{left:110px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{width:40px;height:40px}.upload-php .media-modal-close .media-modal-icon{margin:9px 10px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{line-height:40px!important}.edit-attachment-frame .edit-media-header .left{left:82px}.edit-attachment-frame .edit-media-header .right{left:41px}.edit-attachment-frame .media-frame-content{top:40px}.edit-attachment-frame .attachment-media-view{float:none;height:auto;width:100%}.edit-attachment-frame .attachment-info{height:auto;width:100%}}@media only screen and (max-width:640px),screen and (max-height:400px){.upload-php .mode-grid .media-sidebar{max-width:100%}}.theme-browser .themes{clear:both;padding:0 0 100px}.themes-php .wrap h1{float:right;margin-bottom:15px}.network-admin.themes-php .wrap h1{margin-bottom:0}.themes-php .wrap h1 .button{margin-right:20px}.themes-php .wp-filter-search{position:relative;top:-2px;right:20px;margin:0;width:280px;font-size:16px;font-weight:300;line-height:1.5}.themes-php div.error,.themes-php div.notice,.themes-php div.updated{margin:0 0 20px;clear:both}.themes-php div.updated a{text-decoration:underline}.theme-browser .theme{cursor:pointer;float:right;margin:0 0 4% 4%;position:relative;width:30.6%;border:1px solid #dedede;-webkit-box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-shadow:0 1px 1px -1px rgba(0,0,0,.1);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ie8 .theme-browser .theme{width:30%;margin:0 0 4% 3%}.theme-browser .theme:nth-child(3n){margin-left:0}.theme-browser .theme:focus,.theme-browser .theme:hover{cursor:pointer}.theme-browser .theme .theme-name{font-size:15px;font-weight:600;height:18px;margin:0;padding:15px;-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#fff;background:rgba(255,255,255,.65)}.theme-browser .theme .theme-actions{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0;-webkit-transition:opacity .1s ease-in-out;transition:opacity .1s ease-in-out;position:absolute;bottom:0;left:0;height:38px;padding:9px 10px 0;background:rgba(244,244,244,.7);border-right:1px solid rgba(0,0,0,.05)}.theme-browser .theme.focus .theme-actions,.theme-browser .theme:focus .theme-actions,.theme-browser .theme:hover .theme-actions{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.theme-browser .theme .theme-actions .button-primary{margin-left:3px}.theme-browser .theme .theme-actions .button-secondary{float:none;margin-right:3px}.theme-browser .theme .theme-screenshot{display:block;overflow:hidden;position:relative;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.theme-browser .theme .theme-screenshot:after{content:'';display:block;padding-top:66.66666%}.theme-browser .theme .theme-screenshot img{height:auto;position:absolute;right:0;top:0;width:100%;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.theme-browser .theme:focus .theme-screenshot,.theme-browser .theme:hover .theme-screenshot{background:#fff}.theme-browser.rendered .theme:focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:.4}.theme-browser .theme .more-details{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0;position:absolute;top:35%;left:25%;right:25%;background:#23282d;background:rgba(0,0,0,.7);color:#fff;font-size:15px;text-shadow:0 1px 0 rgba(0,0,0,.6);-webkit-font-smoothing:antialiased;font-weight:600;padding:15px 12px;text-align:center;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:opacity .1s ease-in-out;transition:opacity .1s ease-in-out}.theme-browser .theme:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 2px rgba(30,140,190,.8);box-shadow:0 0 2px rgba(30,140,190,.8)}.theme-browser .theme:focus .more-details{opacity:1}.theme-browser .theme.active:focus .theme-actions{display:block}.theme-browser.rendered .theme:focus .more-details,.theme-browser.rendered .theme:hover .more-details{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.theme-browser .theme .theme-installed,.theme-browser .theme .theme-update{background:#d54e21;background:rgba(213,78,33,.95);color:#fff;display:block;font-size:13px;font-weight:400;height:48px;line-height:48px;padding:0 10px;position:absolute;top:0;left:0;right:0;border-bottom:1px solid rgba(0,0,0,.25);overflow:hidden}.theme-browser .theme .theme-installed:before,.theme-browser .theme .theme-update:before{content:'\f463';display:inline-block;font:400 20px/1 dashicons;margin:0 0 0 6px;opacity:.8;position:relative;top:5px;speak:none;-webkit-font-smoothing:antialiased}.theme-browser .theme.active .theme-name{background:#2f2f2f;color:#fff;padding-left:110px;font-weight:300;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.5)}.theme-browser .customize-control .theme.active .theme-name{padding-left:15px}.theme-browser .theme.active .theme-name span{font-weight:600}.theme-browser .theme.active .theme-actions{background:rgba(49,49,49,.7);border-right:none;opacity:1}.theme-browser .theme.active .theme-actions .button-primary{margin-left:0}.theme-browser .theme .theme-author{background:#23282d;color:#eee;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute;bottom:56px}.theme-browser .theme.display-author .theme-author{display:block}.theme-browser .theme.display-author .theme-author a{color:inherit;text-decoration:none}.theme-browser .theme.add-new-theme{border:none;-webkit-box-shadow:none;box-shadow:none}.theme-browser .theme.add-new-theme a{color:#999;text-decoration:none;display:block;position:relative;z-index:1}.theme-browser .theme.add-new-theme a:after{display:block;content:'';background:0 0;position:absolute;top:0;right:0;left:0;bottom:0;padding:0;text-shadow:none;border:5px dashed #d5d2ca;border:5px dashed rgba(0,0,0,.1);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.theme-browser .theme.add-new-theme span:after{background:#e5e5e5;background:rgba(153,153,153,.1);-webkit-border-radius:50%;border-radius:50%;display:inline-block;content:'\f132';-webkit-font-smoothing:antialiased;font:400 74px/115px dashicons;width:100px;height:100px;vertical-align:middle;text-align:center;color:#999;position:absolute;top:30%;right:50%;margin-right:-50px;text-indent:-4px;padding:0;text-shadow:none;z-index:4}.rtl .theme-browser .theme.add-new-theme span:after{text-indent:4px}.theme-browser .theme.add-new-theme a:focus .theme-screenshot,.theme-browser .theme.add-new-theme a:hover .theme-screenshot{background:0 0}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{background:#fff;color:#0073aa}.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{border-color:transparent;color:#fff;background:#0073aa;content:''}.theme-browser .theme.add-new-theme .theme-name{background:0 0;text-align:center;-webkit-box-shadow:none;box-shadow:none;font-weight:400;position:relative;top:0;margin-top:-18px;padding-top:0;padding-bottom:48px}.theme-browser .theme.add-new-theme a:focus .theme-name,.theme-browser .theme.add-new-theme a:hover .theme-name{color:#fff;z-index:2}.theme-overlay .theme-backdrop{position:absolute;right:-20px;left:0;top:0;bottom:0;background:#f1f1f1;background:rgba(238,238,238,.9);z-index:10000}.theme-overlay .theme-header{position:absolute;top:0;right:0;left:0;height:48px;border-bottom:1px solid #ddd}.theme-overlay .theme-header button{padding:0}.theme-overlay .theme-header .close{cursor:pointer;height:48px;width:50px;text-align:center;float:left;border:0;border-right:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:before{font:400 22px/50px dashicons!important;color:#777;display:inline-block;content:'\f335';font-weight:300}.theme-overlay .theme-header .left,.theme-overlay .theme-header .right{cursor:pointer;color:#777;background-color:transparent;height:48px;width:54px;float:right;text-align:center;border:0;border-left:1px solid #ddd;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .close:hover,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .left:hover,.theme-overlay .theme-header .right:focus,.theme-overlay .theme-header .right:hover{background:#ddd;border-color:#ccc;color:#000}.theme-overlay .theme-header .close:focus:before,.theme-overlay .theme-header .close:hover:before{color:#000}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .right:focus{-webkit-box-shadow:none;box-shadow:none;outline:0}.theme-overlay .theme-header .left.disabled,.theme-overlay .theme-header .left.disabled:hover,.theme-overlay .theme-header .right.disabled,.theme-overlay .theme-header .right.disabled:hover{color:#ccc;background:inherit;cursor:inherit}.theme-overlay .theme-header .left:before,.theme-overlay .theme-header .right:before{font:400 20px/50px dashicons!important;display:inline;font-weight:300}.theme-overlay .theme-header .left:before{content:"\f345"}.theme-overlay .theme-header .right:before{content:"\f341"}.theme-overlay .theme-about:after,.theme-overlay .theme-wrap:after{clear:both;visibility:hidden;content:".";display:block;height:0}.theme-overlay .theme-wrap{clear:both;position:fixed;top:9%;right:190px;left:30px;bottom:3%;background:#fff;-webkit-box-shadow:0 1px 20px 5px rgba(0,0,0,.1);box-shadow:0 1px 20px 5px rgba(0,0,0,.1);z-index:10000;box-sizing:border-box;-webkit-overflow-scrolling:touch}.theme-overlay .theme-actions,.theme-overlay .theme-wrap{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}body.folded .theme-overlay .theme-wrap{right:70px}.theme-overlay .theme-about{position:absolute;top:49px;bottom:57px;right:0;left:0;overflow:auto;padding:2% 4%}.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"],.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"],.theme-overlay .theme-actions .active-theme,.theme-overlay.active .theme-actions .inactive-theme{display:none}.theme-overlay .theme-actions{position:absolute;text-align:center;bottom:0;right:0;left:0;padding:10px 25px 5px;background:#f3f3f3;z-index:30;box-sizing:border-box;border-top:1px solid #eee}.ie8 .theme-overlay .theme-actions{border:1px solid #eee}.theme-overlay .theme-actions a{margin-left:5px;margin-bottom:5px}.broken-themes a.delete-theme,.theme-overlay .theme-actions .delete-theme{color:#a00;text-decoration:none;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;background:0 0}.theme-overlay .theme-actions .delete-theme{position:absolute;left:10px;bottom:5px}.broken-themes a.delete-theme:focus,.broken-themes a.delete-theme:hover,.theme-overlay .theme-actions .delete-theme:focus,.theme-overlay .theme-actions .delete-theme:hover{background:#d54e21;color:#fff;border-color:#d54e21}.theme-overlay .theme-actions .inactive-theme,.theme-overlay.active .theme-actions .active-theme{display:block}.theme-overlay .theme-screenshots{float:right;margin:0 0 0 30px;width:55%;max-width:880px;text-align:center}.theme-overlay .screenshot{border:1px solid #fff;box-sizing:border-box;overflow:hidden;position:relative;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px rgba(0,0,0,.2)}.theme-overlay .screenshot,.upload-plugin,.upload-theme{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.theme-overlay .screenshot:after{content:'';display:block;padding-top:75%}.theme-overlay .screenshot img{height:auto;position:absolute;right:0;top:0;width:100%}.theme-overlay.small-screenshot .theme-screenshots{position:absolute;width:302px}.theme-overlay.small-screenshot .theme-info{margin-right:350px;width:auto}.theme-overlay .screenshot.thumb{background:#ccc;border:1px solid #eee;float:none;display:inline-block;margin:10px 5px 0;width:140px;height:80px;cursor:pointer}.theme-overlay .screenshot.thumb:after{content:'';display:block;padding-top:100%}.theme-overlay .screenshot.thumb img{cursor:pointer;position:absolute;right:0;top:0;width:100%;height:auto}.theme-overlay .screenshot.selected{background:0 0;border:2px solid #00a0d2}.theme-overlay .screenshot.selected img{opacity:.8}.theme-browser .theme .theme-screenshot.blank,.theme-overlay .screenshot.blank{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=)}.theme-overlay .theme-info{width:40%;float:right}.theme-overlay .current-label{background:#32373c;color:#fff;font-size:11px;display:inline-block;padding:2px 8px;-webkit-border-radius:2px;border-radius:2px;margin:0 0 -10px;user-select:none}.theme-overlay .theme-name{color:#23282d;font-size:32px;font-weight:100;margin:10px 0 0;line-height:1.3}.theme-overlay .theme-version{color:#999;font-size:13px;font-weight:400;float:none;display:inline-block;margin-right:10px}.theme-overlay .theme-author{color:#686868;font-size:16px;font-weight:400;margin:15px 0 25px}.theme-overlay .theme-author a{text-decoration:none}.theme-overlay .theme-description{color:#555;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.theme-overlay .theme-tags{border-top:3px solid #eee;color:#82878c;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px}.theme-overlay .theme-tags span{color:#444;font-weight:700;margin-left:5px}.theme-overlay .theme-update-message{background:#fef7f1;border:1px solid #eee;border-right:4px solid #d54e21;-webkit-border-radius:3px;border-radius:3px;padding:5px 20px 10px}.theme-overlay .theme-update{color:#23282d;font-size:18px;display:inline-block;line-height:40px;margin:0}.theme-overlay .parent-theme{background:#f7fcfe;border:1px solid #eee;border-right:4px solid #00a0d2;font-size:14px;font-weight:400;margin-top:30px;padding:10px 20px 10px 10px}.theme-overlay .parent-theme strong{font-weight:700}.single-theme .theme,.single-theme .theme-overlay .theme-backdrop,.single-theme .theme-overlay .theme-header{display:none}.single-theme .theme-overlay .theme-wrap{clear:both;min-height:330px;position:relative;right:auto;left:auto;top:auto;bottom:auto;z-index:10}.single-theme .theme-overlay .theme-about{padding:30px 30px 70px;position:static}.single-theme .theme-overlay .theme-actions{position:absolute}@media only screen and (min-width:2000px){#wpwrap .theme-browser .theme{width:17.6%;margin:0 0 3% 3%}#wpwrap .theme-browser .theme:nth-child(3n),#wpwrap .theme-browser .theme:nth-child(4n){margin-left:3%}#wpwrap .theme-browser .theme:nth-child(5n){margin-left:0}}@media only screen and (min-width:1680px){.theme-overlay .theme-wrap{width:1450px;margin:0 auto}}@media only screen and (min-width:1640px){.theme-browser .theme{width:22.7%;margin:0 0 3% 3%}.theme-browser .theme .theme-screenshot:after{padding-top:75%}.theme-browser .theme:nth-child(3n){margin-left:3%}.theme-browser .theme:nth-child(4n){margin-left:0}}@media only screen and (max-width:1120px){.theme-browser .theme{width:47.5%;margin-left:0}.theme-browser .theme:nth-child(even){margin-left:0}.theme-browser .theme:nth-child(odd){margin-left:5%}}@media only screen and (max-width:900px){.theme-overlay .theme-wrap{right:65px}}@media only screen and (max-width:780px){.theme-browser .theme.active .theme-name span,.theme:focus .more-details,.theme:hover .more-details,.theme:not(.active):focus .theme-actions,.theme:not(.active):hover .theme-actions{display:none}.theme-overlay .theme-wrap,body.folded .theme-overlay .theme-wrap{top:0;left:0;bottom:0;right:0;padding:70px 20px 20px;border:none;z-index:100000;position:fixed}.theme-overlay .theme-screenshots{width:40%}.theme-overlay .theme-info{width:50%}.single-theme .theme-wrap{padding:10px}.theme-browser .theme .theme-actions{padding:5px 10px 4px}.theme-overlay.small-screenshot .theme-screenshots{position:static;float:none;max-width:302px}.theme-overlay.small-screenshot .theme-info{margin-right:0;width:auto}.theme-browser.rendered .theme:focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:1}}@media only screen and (max-width:480px){.theme-browser .theme{width:100%;margin-left:0}.theme-browser .theme:nth-child(2n),.theme-browser .theme:nth-child(3n){margin-left:0}}@media only screen and (max-width:650px){.theme-overlay .theme-description,.theme-overlay .theme-update{margin-right:0}.theme-overlay .theme-actions .delete-theme{position:relative;left:auto;bottom:auto}.theme-overlay .theme-actions .inactive-theme{display:inline}.theme-overlay .theme-screenshots{width:100%;float:none}.theme-overlay .theme-info{width:100%}.theme-overlay .theme-author{margin:5px 0 15px}.theme-overlay .current-label{margin-top:10px;font-size:13px}.themes-php .wp-filter-search{float:none;clear:both;right:0;top:0;left:0;margin:10px 0;width:100%;max-width:280px}.theme-browser .theme.add-new-theme span:after{font:400 60px/90px dashicons;width:80px;height:80px;top:30%;right:50%;text-indent:0;margin-right:-40px}.single-theme .theme-wrap{margin:0 -10px 0 -12px;padding:10px}.single-theme .theme-overlay .theme-about{padding:10px;overflow:visible}.single-theme .current-label{display:none}.single-theme .theme-overlay .theme-actions{position:static}}.broken-themes{clear:both}.broken-themes table{text-align:right;width:50%;border-spacing:3px;padding:3px}.theme-browser .theme .theme-installed{background:#0073aa}.theme-browser .theme .theme-installed:before{content:'\f147'}.theme-browser .theme.is-installed .theme-actions .button-primary{display:none!important}.theme-install-php .wp-filter{padding:0 20px}.theme-install-php a.browse-themes,.theme-install-php a.upload{cursor:pointer}.theme-install-php a.browse-themes,.theme-install-php.show-upload-theme a.upload{display:none}.theme-install-php.show-upload-theme a.browse-themes{display:inline}.upload-plugin,.upload-theme{box-sizing:border-box;display:none;margin:0;padding:0;width:100%;overflow:hidden;position:relative;top:10px}.wp-full-overlay,.wp-full-overlay-sidebar{right:0;bottom:0;top:0;height:100%;position:fixed}.upload-plugin,body.show-upload-theme .upload-theme{display:block}body.show-upload-theme .upload-theme+.wp-filter,body.show-upload-theme .upload-theme+.wp-filter+.theme-browser,p.no-themes{display:none}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{background:#fafafa;border:1px solid #e5e5e5;padding:30px;margin:30px auto;max-width:380px}.upload-plugin .install-help,.upload-theme .install-help{color:#999;font-size:18px;font-style:normal;margin:0;padding:40px 0 0;text-align:center}p.no-themes{clear:both;color:#666;font-size:18px;font-style:normal;margin:0;padding:0;text-align:center}body.no-results p.no-themes{display:block}.theme-install-php .add-new-theme,body.show-upload-theme p.no-themes{display:none!important}@media only screen and (max-width:1120px){.upload-theme .wp-upload-form{margin:20px 0;max-width:100%}.upload-theme .install-help{font-size:15px;padding:20px 0 0;text-align:right}}.theme-details .star-rating{margin:15px 0 0}.theme-details .star-rating span:before{color:#ffb900;content:"\f154";display:inline-block;-webkit-font-smoothing:antialiased;font:400 20px/1 dashicons;vertical-align:top}.star-rating.rating-10 span.one:before,.star-rating.rating-30 span.two:before,.star-rating.rating-50 span.three:before,.star-rating.rating-70 span.four:before,.star-rating.rating-90 span.five:before{content:"\f459"}.star-rating.rating-100>span:before,.star-rating.rating-20 span.one:before,.star-rating.rating-30 span.one:before,.star-rating.rating-40 span.one:before,.star-rating.rating-40 span.two:before,.star-rating.rating-50 span.one:before,.star-rating.rating-50 span.two:before,.star-rating.rating-60 span.one:before,.star-rating.rating-60 span.three:before,.star-rating.rating-60 span.two:before,.star-rating.rating-70 span.one:before,.star-rating.rating-70 span.three:before,.star-rating.rating-70 span.two:before,.star-rating.rating-80 span.four:before,.star-rating.rating-80 span.one:before,.star-rating.rating-80 span.three:before,.star-rating.rating-80 span.two:before,.star-rating.rating-90 span.four:before,.star-rating.rating-90 span.one:before,.star-rating.rating-90 span.three:before,.star-rating.rating-90 span.two:before{content:"\f155"}.theme-details .star-rating .ratings{display:block;line-height:20px;color:#999}.appearance_page_custom-header #headimg{border:1px solid #DFDFDF;overflow:hidden;width:100%}.appearance_page_custom-header #upload-form p label{font-size:12px}.appearance_page_custom-header .available-headers .default-header{float:right;margin:0 0 20px 20px}.appearance_page_custom-header .random-header{clear:both;margin:0 0 20px 20px;vertical-align:middle}.appearance_page_custom-header .available-headers label input,.appearance_page_custom-header .random-header label input{margin-left:10px}.appearance_page_custom-header .available-headers label img{vertical-align:middle}div#custom-background-image{min-height:100px;border:1px solid #dfdfdf}div#custom-background-image img{max-width:400px;max-height:300px}body.full-overlay-active{overflow:hidden}.wp-full-overlay{background:0 0;z-index:500000;overflow:visible;left:0;min-width:0}.wp-full-overlay-sidebar{box-sizing:border-box;width:300px;padding:0;margin:0;z-index:10;background:#eee;border-left:none}.widget,.wp-full-overlay-sidebar{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.wp-full-overlay.collapsed,.wp-full-overlay.expanded .wp-full-overlay-sidebar{margin-right:0!important}.wp-full-overlay.expanded{margin-right:300px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{overflow:visible;margin-right:-300px}.wp-full-overlay-sidebar:after{content:'';display:block;position:absolute;top:0;bottom:0;left:0;width:3px;z-index:1000}.wp-full-overlay-main{position:absolute;right:0;left:0;top:0;bottom:0;height:100%}#customize-preview.wp-full-overlay-main{background:url(../images/spinner.gif) center center no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px}#customize-preview.wp-full-overlay-main.iframe-ready{background:0 0}.wp-full-overlay-sidebar .wp-full-overlay-header{position:absolute;right:0;left:0;height:45px;padding:0 15px;line-height:45px;z-index:10;margin:0;border-top:none;-webkit-box-shadow:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-header a.back{margin-top:9px}.wp-full-overlay-sidebar .wp-full-overlay-footer{bottom:0;border-bottom:none;border-top:none;-webkit-box-shadow:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{position:absolute;top:45px;bottom:45px;right:0;left:0;overflow:auto}.theme-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header{padding:0}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{display:block;position:relative;float:right;width:45px;height:45px;padding-left:2px;background:#eee;border-left:1px solid #ddd;color:#444;cursor:pointer;text-decoration:none;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-install-overlay .close-full-overlay:focus,.theme-install-overlay .close-full-overlay:hover,.theme-install-overlay .next-theme:focus,.theme-install-overlay .next-theme:hover,.theme-install-overlay .previous-theme:focus,.theme-install-overlay .previous-theme:hover{background:#ddd;border-color:#ccc;color:#000;outline:0;-webkit-box-shadow:none;box-shadow:none}.theme-install-overlay .close-full-overlay:before{font:400 22px/1 dashicons;content:"\f335";position:relative;top:7px;right:13px}.theme-install-overlay .previous-theme:before{font:400 20px/1 dashicons;content:"\f345";position:relative;top:6px;right:14px}.theme-install-overlay .next-theme:before{font:400 20px/1 dashicons;content:"\f341";position:relative;top:6px;right:13px}.theme-install-overlay .next-theme.disabled,.theme-install-overlay .next-theme.disabled:focus,.theme-install-overlay .next-theme.disabled:hover,.theme-install-overlay .previous-theme.disabled,.theme-install-overlay .previous-theme.disabled:focus,.theme-install-overlay .previous-theme.disabled:hover{color:#b4b9be;background:#eee;cursor:default;pointer-events:none}.wp-core-ui .wp-full-overlay .collapse-sidebar{position:fixed;bottom:8px;right:10px;padding:0;color:#656a6f;outline:0;line-height:1;background-color:transparent!important;border:none!important;-webkit-box-shadow:none!important;box-shadow:none!important;-webkit-border-radius:0!important;border-radius:0!important}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#0073aa}.wp-full-overlay .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar-label{display:inline-block;vertical-align:middle;line-height:20px}.wp-full-overlay .collapse-sidebar-arrow{width:20px;height:20px;margin:0 2px;-webkit-border-radius:50%;border-radius:50%;overflow:hidden}.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-full-overlay .collapse-sidebar-label{margin-right:3px}.wp-full-overlay.collapsed .collapse-sidebar-label{display:none}.wp-full-overlay .collapse-sidebar-arrow:before{display:block;content:"\f148";background:#eee;font:400 20px/1 dashicons;speak:none;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.rtl .wp-full-overlay .collapse-sidebar-arrow:before,.wp-full-overlay.collapsed .collapse-sidebar-arrow:before{-webkit-transform:rotate(180.001deg);-ms-transform:rotate(180.001deg);transform:rotate(180.001deg)}.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before{-webkit-transform:none;-ms-transform:none;transform:none}.wp-full-overlay,.wp-full-overlay .collapse-sidebar,.wp-full-overlay-main,.wp-full-overlay-sidebar{-webkit-transition-property:right,left,top,bottom,width,margin;transition-property:right,left,top,bottom,width,margin;-webkit-transition-duration:.2s;transition-duration:.2s}.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#customize-container{display:none;background:#fff;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;right:0;left:0;height:100%}.customize-active #customize-container{display:block}.customize-loading #customize-container iframe{opacity:0}.customize-loading #customize-container{background:url(../images/spinner.gif) center center no-repeat fixed #fff;-webkit-background-size:20px 20px;background-size:20px 20px}#customize-container iframe,.theme-install-overlay iframe{height:100%;width:100%;z-index:20;-webkit-transition:opacity .3s;transition:opacity .3s}#customize-controls{margin-top:0}.theme-install-overlay{display:none}.theme-install-overlay.single-theme{display:block}.install-theme-info{display:none;padding:10px 20px 60px}.single-theme .install-theme-info{padding-top:15px}.theme-install-overlay .install-theme-info{display:block}.install-theme-info .theme-install{float:left;margin-top:18px}.install-theme-info .theme-name{font-size:16px;line-height:24px;margin-bottom:0;margin-top:0}.install-theme-info .theme-screenshot{margin-top:15px;width:258px;border:1px solid #ccc}.install-theme-info .theme-details{overflow:hidden}.theme-details .theme-version{margin:15px 0;float:right}.theme-details .theme-description{float:right;color:#777;line-height:20px;max-width:100%}.theme-install-overlay .wp-full-overlay-header .theme-install{float:left;margin:8px 0 0 10px;line-height:26px}.theme-install-overlay .wp-full-overlay-sidebar{background:#eee;border-left:1px solid #ddd}.theme-install-overlay .wp-full-overlay-sidebar-content{background:#fff;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.theme-install-overlay .wp-full-overlay-main{background:url(../images/spinner.gif) center center no-repeat #fff;-webkit-background-size:20px 20px;background-size:20px 20px}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.wp-full-overlay .collapse-sidebar-arrow{background-image:url(../images/arrows-2x.png);-webkit-background-size:15px 123px;background-size:15px 123px}#customize-preview.wp-full-overlay-main,.customize-loading #customize-container,.theme-install-overlay .wp-full-overlay-main{background-image:url(../images/spinner-2x.gif)}.theme-install-overlay .wp-full-overlay-header .theme-install{margin-top:2px}}@media screen and (max-width:782px){.available-theme .action-links .delete-theme{float:none;margin:0;padding:0;clear:both}.available-theme .action-links .delete-theme a{padding:0}.broken-themes table{width:100%}.theme-install-overlay .wp-full-overlay-header .theme-install{margin-top:6px;line-height:normal}}.about-wrap{position:relative;margin:25px 20px 0 40px;max-width:1050px;font-size:15px}.about-wrap .notice,.about-wrap div.error,.about-wrap div.updated{display:none!important}.about-wrap hr{border:0;height:0;margin:0;border-top:1px solid rgba(0,0,0,.1)}.about-wrap img{margin:0;max-width:100%;height:auto;vertical-align:middle}.about-wrap .jetpack-video-wrapper{margin-bottom:0}.wp-badge{background:url(../images/w-logo-white.png?ver=20131202) center 24px no-repeat #0073aa;-webkit-background-size:85px 85px;background-size:85px 85px;color:#78c8e6;font-size:14px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:40px;display:inline-block;width:150px;text-rendering:optimizeLegibility;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.2);box-shadow:0 1px 3px rgba(0,0,0,.2)}.svg .wp-badge{background-image:url(../images/wordpress-logo-white.svg?ver=20131110)}.about-wrap .wp-badge{position:absolute;top:0;left:0}.about-wrap h2.nav-tab-wrapper{padding-right:6px}.about-wrap h2 .nav-tab{padding:4px 15px 6px;margin:0 0 -1px 3px;font-size:18px;vertical-align:top;border-width:1px}.about-wrap p{line-height:1.6em;font-size:14px}.about-wrap h1{margin:.2em 0 0 200px;padding:0;color:#32373c;line-height:1.2em;font-size:2.8em;font-weight:400}.about-wrap h3{margin:1.25em 0 .6em;font-size:1.25em;line-height:1.5em}.about-wrap h4{color:#23282d}.about-wrap code,.about-wrap ol li p{font-size:14px;font-weight:400}.about-wrap .about-description,.about-wrap .about-text{margin-top:1.4em;font-weight:400;line-height:1.6em;font-size:19px}.about-wrap .about-text{margin:1em 0 1em 200px;min-height:60px;color:#777}.about-wrap [class$=col] .col{float:right;position:relative}.about-wrap .two-col .col{margin-left:4.799999999%;width:47.6%}.about-wrap .three-col .col{margin-left:4.999999999%;width:29.95%}.about-wrap .three-col .col:nth-of-type(3n),.about-wrap .two-col .col:nth-of-type(2n){margin-left:0}.about-wrap .point-releases{margin-top:5px;border-bottom:1px solid #dfdfdf}.about-wrap .changelog.point-releases h3{padding-top:35px}.about-wrap .changelog.point-releases h3:first-child{padding-top:7px}.about-wrap .headline-feature h2{margin:50px 0 30px;font-size:2.2em;font-weight:300;line-height:1.3;text-align:right}.about-wrap .headline-feature h3{margin-top:30px;text-align:center}.about-wrap .feature-list h2{margin:30px 0 15px;text-align:center}.about-wrap .feature-section h4{margin:1.4em 0 .6em;font-size:1em}.about-wrap .feature-section p{margin-top:.6em}.about-wrap .feature-video{position:relative;margin:40px 0;padding-bottom:56.25%;width:100%;height:0;text-align:center}.about-wrap .feature-video embed{position:absolute;top:0;right:0;width:100%;height:100%}.about-wrap .featured-image{text-align:center}.about-wrap .feature-section{overflow:hidden;padding:0 0 40px;border-bottom:1px solid rgba(0,0,0,.1)}.about-wrap .headline-feature .feature-section{margin:0 auto;max-width:95%}.about-wrap .changelog.feature-section .col,.about-wrap .feature-section:not(.under-the-hood) .col{margin-top:40px}.about-wrap .feature-section .media-container{border:1px solid #ddd;overflow:hidden}.about-wrap .feature-section .svg-container{padding:50px 0;text-align:center;background-color:#e1e1e3}.about-wrap .feature-section .svg-container img{max-width:150px}.about-wrap .changelog{margin-bottom:40px}.about-wrap .return-to-dashboard{margin:30px -5px 0 0;font-size:14px;font-weight:700}.about-wrap .return-to-dashboard a{text-decoration:none;padding:0 5px}.about-wrap .feature-list.finer-points h4,.about-wrap .feature-list.finer-points p{margin-right:115px}.about-wrap h4.wp-people-group{margin-top:2.6em;font-size:16px}.about-wrap ul.wp-people-group{overflow:hidden;padding:0 5px;margin:0 -5px 0 -15px}.about-wrap ul.compact{margin-bottom:0}.about-wrap li.wp-person{display:inline-block;vertical-align:top;margin-left:10px;padding-bottom:15px;height:70px;width:280px}.about-wrap ul.compact li.wp-person{height:auto;width:180px;padding-bottom:0;margin-bottom:0}.about-wrap li.wp-person img.gravatar{float:right;margin:0 0 10px 10px;padding:2px;width:60px;height:60px}.about-wrap ul.compact li.wp-person img.gravatar{width:30px;height:30px}.about-wrap li.wp-person a.web{display:block;margin:6px 0 2px;font-size:16px;font-weight:400;line-height:1.6em;text-decoration:none}.about-wrap #wp-people-group-validators+p.wp-credits-list{margin-top:0}.freedoms-php .about-wrap ol{margin:40px 60px}.freedoms-php .about-wrap ol li{list-style-type:decimal;font-weight:700}.freedoms-php .about-wrap ol p{font-weight:400;margin:.6em 0}@media screen and (max-width:782px){.about-wrap .feature-section{padding:0;border-bottom:none}.about-wrap [class$=col] .col{float:none;width:100%;margin:40px 0 0;padding:0 0 40px;border-bottom:1px solid rgba(0,0,0,.1)}.about-wrap .three-col img{display:block;margin:0 auto}.about-wrap .feature-list .col{margin:0;padding:0;border-bottom:none}.about-wrap .headline-feature .feature-section{max-width:100%}.about-wrap .feature-list .feature-section{padding:0 0 40px}}@media only screen and (max-width:500px){.about-wrap{margin-left:20px;margin-right:10px}.about-wrap .about-text,.about-wrap h1{margin-left:0}.about-wrap .about-text{margin-bottom:.25em}.about-wrap .wp-badge{position:relative;margin-bottom:1.5em;width:100%}.about-wrap h2.nav-tab-wrapper{padding-right:0;border-bottom:0}.about-wrap h2 .nav-tab{margin-top:10px;margin-left:10px;border-bottom:1px solid #ccc}.about-wrap .feature-section .svg-container{padding-top:20px;padding-bottom:20px}.about-wrap .headline-feature .feature-section .col,.about-wrap .three-col .col{width:100%!important;float:none!important}}@media only screen and (max-width:400px){.about-wrap .feature-list svg{margin-top:15px;height:65px;width:65px}.about-wrap .feature-list.finer-points h4,.about-wrap .feature-list.finer-points p{margin-right:80px}}.no-js #message{display:block}ul.add-menu-item-tabs li{padding:3px 8px 3px 5px}.accordion-section ul.add-menu-item-tabs,.accordion-section ul.category-tabs,.accordion-section ul.wp-tab-bar{margin:0}.accordion-section .categorychecklist{margin:13px 0}#nav-menu-meta .accordion-section-content{padding:18px 13px}#nav-menu-meta .button-controls{margin-bottom:0}#nav-menus-frame{margin-right:300px;margin-top:23px}#wpbody-content #menu-settings-column{display:inline;width:281px;margin-right:-300px;clear:both;float:right;padding-top:0}#menu-settings-column .inside{clear:both;margin:10px 0 0}.metabox-holder-disabled .accordion-section-content,.metabox-holder-disabled .accordion-section-title,.metabox-holder-disabled .postbox{opacity:.5;filter:alpha(opacity=50)}.metabox-holder-disabled .button-controls .select-all{display:none}#wpbody{position:relative}.blank-slate .menu-name{height:2em}.blank-slate .menu-settings{border:none;margin-top:0;padding-top:0;overflow:hidden}.is-submenu{color:#999;font-style:italic;font-weight:400;margin-right:4px}.manage-menus{margin-top:23px;padding:10px;overflow:hidden;background:#fbfbfb}.manage-menus select{float:right;margin-left:6px}.manage-menus .selected-menu{float:right;margin:5px 0 0 6px}.manage-menus .submit-btn{float:right;margin-top:1px}.menu-edit #post-body-content h3{margin:1em 0 10px}.menu-settings{border-top:1px solid #eee;margin-top:2em}.menu-settings dl{margin:0 0 10px;overflow:hidden;padding-right:18%}.menu-settings dd{float:right;margin:0;width:100%}.menu-settings dt{float:right;clear:both;width:21.951%;padding:3px 0 0;margin-right:-21.951%}.menu-settings label{vertical-align:baseline}.menu-edit .checkbox-input{margin-top:4px}.theme-location-set{color:#999;font-size:11px}#add-custom-link .howto,#cancel-save{font-size:12px}#menu-management-liquid{float:right;min-width:100%;margin-top:3px}#menu-management{position:relative;margin-left:20px;margin-top:-3px;width:100%;background:#f5f5f5}#menu-management .menu-edit{margin-bottom:20px}.nav-menus-php #post-body{padding:0 10px 10px;border-top:1px solid #fff;border-bottom:1px solid #dfdfdf;background:#fff}#nav-menu-footer,#nav-menu-header{padding:0 10px}#nav-menu-header{border-bottom:1px solid #dfdfdf;margin-bottom:0}#nav-menu-header .menu-name-label{margin-top:4px}.nav-menus-php #post-body div.error,.nav-menus-php #post-body div.updated{margin:0}.nav-menus-php #post-body-content{position:relative;float:none}#menu-management .menu-add-new abbr{font-weight:600}#select-nav-menu-container{text-align:left;padding:0 10px 3px;margin-bottom:5px}#select-nav-menu{width:100px;display:inline}#menu-name-label{margin-top:-2px}.widefat .menu-locations tr+tr td{padding-top:0}.widefat .menu-locations td{vertical-align:middle}.menu-location-title label{font-weight:700}.menu-location-menus select{float:right}#locations-nav-menu-wrapper{padding:5px 0}.locations-nav-menu-select select{float:right;width:160px;margin-left:5px}.locations-row-links{float:right;margin:6px 6px 0 0}.locations-add-menu-link,.locations-edit-menu-link{margin:0 3px}.locations-edit-menu-link{padding-left:3px;border-left:1px solid #ccc}#wpbody .open-label{display:block;float:right}#wpbody .open-label span{padding-left:10px}.js .input-with-default-title{color:#a0a5aa;font-style:italic}#menu-management .inside{padding:0 10px}.accordion-container .howto input,.postbox .howto input{width:180px;float:left}.accordion-container .outer-border{margin:0}.customlinkdiv .howto input{width:180px}.customlinkdiv p{margin-top:0}#nav-menu-theme-locations .howto select{width:100%}#nav-menu-theme-locations .button-controls{text-align:left}.add-menu-item-view-all{height:400px}#menu-container .submit{margin:0 0 10px;padding:0}.nav-menus-php .add-new-menu-action{float:right;margin:6px 6px 0 0;line-height:15px}.nav-menus-php .meta-sep,.nav-menus-php .submitcancel,.nav-menus-php .submitdelete{display:block;float:right;margin:6px 0;line-height:15px}.meta-sep{padding:0 2px}#cancel-save{text-decoration:underline;margin-right:20px;margin-top:5px}.button-primary.right,.button-secondary.right,.button.right{float:left}.list-controls{float:right;margin-top:5px}.add-to-menu{float:left}.button-controls{clear:both;margin:10px 0}.hide-all,.show-all{cursor:pointer}.hide-all{display:none}#menu-name{width:270px}#manage-menu .inside{padding:0}#available-links dt{display:block}#add-custom-link label span{display:block;float:right;margin-top:5px;padding-left:5px}.menu-item-textbox{width:180px}.nav-menus-php .howto span{margin-top:6px;display:block;float:right}.quick-search{width:190px}.quick-search-wrap .spinner{float:none;margin:0 5px}.nav-menus-php .list-wrap{display:none;clear:both;margin-bottom:10px}.nav-menus-php .postbox p.submit{margin-bottom:0}.nav-menus-php .list li{display:none;margin:0 0 5px}.nav-menus-php .list li .menu-item-title{cursor:pointer;display:block}.nav-menus-php .list li .menu-item-title input{margin-left:3px;margin-top:-3px}.menu-item-title input[type=checkbox]{display:inline-block;margin-top:-4px}#menu-container .inside{padding-bottom:10px}.menu{padding-top:1em}#menu-to-edit{margin:0;padding:.1em 0}.menu ul{width:100%}.menu li{margin-bottom:0;position:relative}.menu-item-bar{clear:both;line-height:1.5em;position:relative;margin:9px 0 0}.menu-item-bar .menu-item-handle{border:1px solid #dfdfdf;position:relative;padding:10px 15px;height:auto;min-height:20px;width:382px;line-height:30px;overflow:hidden;word-wrap:break-word}.menu-item-bar .menu-item-handle:hover{border-color:#999}#menu-to-edit .menu-item-invalid .menu-item-handle{background:#f6c9cc;border-color:#f1acb1}.no-js .menu-item-edit-active .item-edit{display:none}.js .menu-item-handle{cursor:move}#cancel-save,.item-controls a:hover,.js .sidebar-name{cursor:pointer}.menu li.deleting .menu-item-handle{background-image:none;background-color:#f66}.menu-item-handle .item-title{font-size:13px;font-weight:600;line-height:20px;display:block;margin-left:13em}.menu-item-handle .menu-item-title.no-title{color:#999}li.menu-item.ui-sortable-helper .menu-item-bar{margin-top:0}li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar{margin-top:13px}.menu .sortable-placeholder{height:35px;width:410px;margin-top:13px}.menu-item .menu-item-transport:empty{display:none}.menu-item-depth-0{margin-right:0}.menu-item-depth-1{margin-right:30px}.menu-item-depth-2{margin-right:60px}.menu-item-depth-3{margin-right:90px}.menu-item-depth-4{margin-right:120px}.menu-item-depth-5{margin-right:150px}.menu-item-depth-6{margin-right:180px}.menu-item-depth-7{margin-right:210px}.menu-item-depth-8{margin-right:240px}.menu-item-depth-9{margin-right:270px}.menu-item-depth-10{margin-right:300px}.menu-item-depth-11{margin-right:330px}.menu-item-depth-0 .menu-item-transport{margin-right:0}.menu-item-depth-1 .menu-item-transport{margin-right:-30px}.menu-item-depth-2 .menu-item-transport{margin-right:-60px}.menu-item-depth-3 .menu-item-transport{margin-right:-90px}.menu-item-depth-4 .menu-item-transport{margin-right:-120px}.menu-item-depth-5 .menu-item-transport{margin-right:-150px}.menu-item-depth-6 .menu-item-transport{margin-right:-180px}.menu-item-depth-7 .menu-item-transport{margin-right:-210px}.menu-item-depth-8 .menu-item-transport{margin-right:-240px}.menu-item-depth-9 .menu-item-transport{margin-right:-270px}.menu-item-depth-10 .menu-item-transport{margin-right:-300px}.menu-item-depth-11 .menu-item-transport{margin-right:-330px}body.menu-max-depth-0{min-width:950px!important}body.menu-max-depth-1{min-width:980px!important}body.menu-max-depth-2{min-width:1010px!important}body.menu-max-depth-3{min-width:1040px!important}body.menu-max-depth-4{min-width:1070px!important}body.menu-max-depth-5{min-width:1100px!important}body.menu-max-depth-6{min-width:1130px!important}body.menu-max-depth-7{min-width:1160px!important}body.menu-max-depth-8{min-width:1190px!important}body.menu-max-depth-9{min-width:1220px!important}body.menu-max-depth-10{min-width:1250px!important}body.menu-max-depth-11{min-width:1280px!important}.item-type{display:inline-block;padding:12px 10px;color:#666;font-size:12px;line-height:18px}.item-controls{font-size:12px;position:absolute;left:20px;top:-1px}.item-controls a{text-decoration:none}.item-controls .item-order{padding-left:10px}.nav-menus-php .item-edit{position:absolute;left:-20px;top:0;display:block;width:30px;height:40px;margin-left:0!important;text-indent:100%;outline:0;overflow:hidden}.menu-instructions-inactive{display:none}.menu-item-settings{display:block;width:402px;padding:10px 10px 10px 0;position:relative;z-index:10;border:1px solid #e5e5e5;border-top:none;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04)}.menu-item-settings .field-move a{display:none;margin:0 2px}.menu-item-edit-active .menu-item-settings{display:block}.menu-item-edit-inactive .menu-item-settings{display:none}.add-menu-item-pagelinks{margin:.5em auto;text-align:center}.link-to-original{display:block;margin:0 0 10px;padding:3px 5px 5px;border:1px solid #dfdfdf;color:#777;font-size:12px;font-style:italic}.hidden-field,.nav-menus-php .blank-slate .menu-settings{display:none}.link-to-original a{padding-right:4px;font-style:normal}.menu-item-settings .description-thin,.menu-item-settings .description-wide{margin-left:10px;float:right}.description-thin{width:190px}.description-wide{width:390px}.menu-item-actions{padding-top:15px}.nav-menus-php .major-publishing-actions{clear:both;padding:3px 0 6px}.nav-menus-php .major-publishing-actions .publishing-action{text-align:left;float:left;line-height:23px;margin:4px 0 1px}.nav-menus-php .delete-action{float:right;margin-top:2px}.nav-menus-php .submitbox .submitcancel{border-bottom:1px solid #0073aa;padding:1px 2px;color:#0073aa;text-decoration:none}.nav-menus-php .submitbox .submitcancel:hover{background:#0073aa;color:#fff}.nav-menus-php .major-publishing-actions .form-invalid{padding-right:4px;margin-right:-4px}#menu-item-name-wrap:after,#menu-item-url-wrap:after,#menu-name-label:after,#menu-settings-column .inside:after,#nav-menus-frame:after,.nav-menus-php #post-body-content:after,.nav-menus-php .button-controls:after,.nav-menus-php .major-publishing-actions:after,.nav-menus-php .menu-item-settings:after{clear:both;content:".";display:block;height:0;visibility:hidden}#menu-item-name-wrap,#menu-item-url-wrap,#nav-menus-frame,.button-controls{display:block}@media screen and (max-width:782px){body.nav-menus-php{min-width:0!important}#nav-menus-frame{margin-right:0;float:none;width:100%}#wpbody-content #menu-settings-column{display:block;width:100%;float:none;margin-right:0}#side-sortables .add-menu-item-tabs{margin:15px 0 14px}ul.add-menu-item-tabs li.tabs{padding:13px 15px 14px}.nav-menus-php .item-controls .item-type{margin-top:2px}.nav-menus-php .customlinkdiv .howto input{width:65%}.nav-menus-php .quick-search{width:85%}#menu-management-liquid{margin-top:25px}.nav-menus-php .menu-name-label.howto span{margin-top:13px}.menu-name-label #menu-name{margin-top:4px}.nav-menus-php .major-publishing-actions .publishing-action{margin-top:6px}.nav-menus-php .delete-action{font-size:14px;line-height:50px;margin-top:12px}.description-wide,.menu-item-bar .menu-item-handle,.menu-item-settings{width:auto}.menu-item-settings{padding:10px}.menu-item-settings .description-thin,.menu-item-settings .description-wide,.menu-item-settings input{width:100%}.menu-item-settings input[type=checkbox],.menu-item-settings input[type=radio]{width:25px}.menu-settings dl{padding-right:0}.menu-settings dd{float:none;width:100%;margin-bottom:15px}.menu-settings dt{float:none;width:auto;margin-right:0;margin-bottom:15px}}@media only screen and (max-width:768px){#menu-locations-wrap .widefat{width:100%}}.widget{margin:0 auto 10px;position:relative;box-sizing:border-box}.widget-top{font-size:13px;font-weight:600;background:#f7f7f7}.widget-top a.widget-action,.widget-top a.widget-action:hover{-webkit-box-shadow:none;box-shadow:none;outline:0;text-decoration:none}.widget-title h4{margin:0;padding:15px;line-height:1;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.widgets-holder-wrap .widget-inside{border-top:none;padding:1px 15px 15px;line-height:16px}#available-widgets .widget-description,#widgets-right a.widget-control-edit,.in-widget-title{color:#666}.deleting .widget-title,.deleting .widget-top a.widget-action:after{color:#a0a5aa}.widget.ui-draggable-dragging{min-width:100%}.widget.ui-sortable-helper{opacity:.8}.widget-placeholder{border:1px dashed #b4b9be;margin:0 auto 10px;height:45px;width:100%;box-sizing:border-box}.sidebar-name,.widget-placeholder{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}#widgets-right .widget-placeholder{margin-top:0}#widgets-right .closed .widget-placeholder{height:0;border:0;margin-top:-10px}.sidebar-name{position:relative;box-sizing:border-box}.sidebar-name-arrow{position:absolute;top:0;left:0;bottom:0}.sidebar-name h3{margin:0;padding:8px 10px;overflow:hidden}.widgets-holder-wrap .description{padding:0 0 15px;margin:0;font-style:normal;color:#777}#widgets-right .widgets-holder-wrap .description{padding-right:7px;padding-left:7px}div.widget-liquid-left{margin:0;width:38%;float:right}div.widget-liquid-right{float:left;width:58%}div#widgets-left{padding-top:12px}div#widgets-left .closed .sidebar-name,div#widgets-left .inactive-sidebar.closed .sidebar-name{margin-bottom:10px}div#widgets-left .sidebar-name h3{padding:10px 0;margin:0 0 0 10px}div#widgets-left .sidebar-name .sidebar-name-arrow:before{left:0;top:4px;padding:4px 4px 4px 6px}#widgets-left #available-widgets,div#widgets-left .widget-holder{background:0 0;border:none}#widgets-left .widgets-holder-wrap{border:none;-webkit-box-shadow:none;box-shadow:none}#available-widgets .widget-action{display:none}#available-widgets .widget{margin:0}#available-widgets .widget:nth-child(odd){clear:both}#available-widgets .widget .widget-description{display:block;padding:10px 15px;font-size:12px}#available-widgets #widget-list{position:relative}#widgets-left .inactive-sidebar{clear:both;width:100%;background:0 0;padding:0;margin:0 0 20px;border:none;-webkit-box-shadow:none;box-shadow:none}#widgets-left .inactive-sidebar.first{margin-top:40px}div#widgets-left .inactive-sidebar .widget.expanded{right:auto}.widget-title-action{float:left;position:relative}div#widgets-left .inactive-sidebar .widgets-sortables{min-height:42px;padding:0;background:0 0;margin:0;position:relative}div#widgets-right:after{content:".";display:block;height:0;clear:both;visibility:hidden}div#widgets-right .sidebars-column-1,div#widgets-right .sidebars-column-2{max-width:450px}div#widgets-right .widgets-holder-wrap{margin:10px 0 0}div#widgets-right .sidebar-description{min-height:20px;margin-top:-5px}div#widgets-right .sidebar-name h3{padding:15px 7px}div#widgets-right .sidebar-name .sidebar-name-arrow:before{left:0;top:4px}div#widgets-right .widget-top{padding:0}div#widgets-right .widgets-sortables{padding:0 8px;margin-bottom:9px;position:relative;min-height:123px}div#widgets-right .closed .widgets-sortables{min-height:0;margin-bottom:0}.sidebar-name .spinner{float:none;position:relative;top:-2px;margin:-5px 5px}#widgets-right .widgets-holder-wrap.widget-hover{border-color:#777;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.3);box-shadow:0 1px 2px rgba(0,0,0,.3)}.widgets_access #widgets-left .widget .widget-top{cursor:auto}.widgets_access #wpwrap .widget-control-edit,.widgets_access #wpwrap .widgets-holder-wrap.closed .sidebar-description,.widgets_access #wpwrap .widgets-holder-wrap.closed .widget{display:block}.widgets_access #widgets-left .widget .widget-top:hover,.widgets_access #widgets-right .widget .widget-top:hover{border-color:#ddd}#available-widgets .widget-control-edit .edit,#widgets-left .inactive-sidebar .widget-control-edit .add,#widgets-right .widget-control-edit .add{display:none}.editwidget .widget-inside,.widget-control-edit{display:block;padding:0 15px}.widget-control-edit{color:#666;background:#EEE;line-height:43px;border-right:1px solid #DDD}#widgets-left .widget-control-edit:hover,#widgets-right .widget-control-edit:hover{color:#fff;background:#444;border-right:0;outline:#444 solid 1px}.widgets-holder-wrap .sidebar-description,.widgets-holder-wrap .sidebar-name{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.editwidget{margin:0 auto}.editwidget .widget-control-actions{margin-top:20px}.js .closed br.clear,.js .widgets-holder-wrap.closed .sidebar-description,.js .widgets-holder-wrap.closed .widget{display:none}.js .widgets-holder-wrap.closed .widget.ui-sortable-helper{display:block}#access-off,.no-js .widget-holder .description,.widget-control-noform,.widget-description,.widget-inside,.widgets_access #access-on,.widgets_access .sidebar-name-arrow,.widgets_access .widget-action,.widgets_access .widget-holder .description{display:none}.widget-inside{background:#fff}#removing-widget{display:none;font-weight:400;padding-right:15px;font-size:12px;line-height:1;color:#000}.js #removing-widget{color:#00a0d2}.widgets_access #widget-list,.widgets_access .widget-holder{padding-top:10px}.widgets_access #access-off{display:inline}.widgets_access .sidebar-name,.widgets_access .widget .widget-top{cursor:default}.widget-liquid-left #widgets-left.chooser #available-widgets .widget,.widget-liquid-left #widgets-left.chooser .inactive-sidebar{-webkit-transition:opacity .1s linear;transition:opacity .1s linear;opacity:.2;pointer-events:none}.widget-liquid-left #widgets-left.chooser #available-widgets .widget-in-question{opacity:1;pointer-events:auto}#available-widgets .widget-top:hover,#widgets-left .widget-in-question .widget-top,#widgets-left .widget-top:hover,.widgets-chooser ul,div#widgets-right .widget-top:hover{border-color:#999;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1)}.widgets-chooser ul.widgets-chooser-sidebars{margin:0;list-style-type:none;max-height:300px;overflow:auto}.widgets-chooser{display:none}.widgets-chooser ul{border:1px solid #ccc}.widgets-chooser li{padding:10px 35px 10px 15px;border-bottom:1px solid #ccc;background:#fff;margin:0;cursor:pointer;outline:0;position:relative;-webkit-transition:background .2s ease-in-out;transition:background .2s ease-in-out}.widgets-chooser li:focus,.widgets-chooser li:hover{background:rgba(255,255,255,.7)}.widgets-chooser li:focus:before{content:'\f147';display:block;-webkit-font-smoothing:antialiased;font:400 26px/1 dashicons;color:#999;position:absolute;top:7px;right:5px}.widgets-chooser li:last-child{border:none}.widgets-chooser li.widgets-chooser-selected{background:#00a0d2;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{content:'\f147';display:block;-webkit-font-smoothing:antialiased;font:400 26px/1 dashicons;color:#fff;position:absolute;top:7px;right:5px}.locale-he-il em,.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}.widgets-chooser .widgets-chooser-actions{padding:10px 0 12px;text-align:center}.widgets-chooser button{margin-left:5px}#available-widgets .widget .widget-top{cursor:pointer}#available-widgets .widget.ui-draggable-dragging .widget-top{cursor:move}@media screen and (max-width:480px){div.widget-liquid-left{width:100%;float:none;border-left:none;padding-left:0}#widgets-left #available-widgets .widget-top,#widgets-left .inactive-sidebar .widgets-sortables,#widgets-left .sidebar-name{margin-left:0}div.widget-liquid-right{width:100%;float:none}div.widget{margin:0 auto 10px!important;max-width:480px}}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button,.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}@media screen and (max-width:320px){div.widget{max-width:320px}}@media only screen and (min-width:1250px){#widgets-left #available-widgets .widget{width:49%;float:right}.widget.ui-draggable-dragging{min-width:49%}#widgets-left #available-widgets .widget:nth-child(even){float:left}#widgets-right .sidebars-column-1,#widgets-right .sidebars-column-2{float:right;width:49%}#widgets-right .sidebars-column-1{margin-left:2%}#widgets-right.single-sidebar .sidebars-column-1,#widgets-right.single-sidebar .sidebars-column-2{float:none;width:100%;margin:0}}.site-icon-preview .favicon-preview{margin:5px 0 20px;overflow:hidden;position:relative;max-width:180px}.site-icon-preview .browser-title,.site-icon-preview .favicon{height:16px;right:88px;overflow:hidden;position:absolute;top:16px}.site-icon-preview .favicon{width:16px}.site-icon-preview .browser-title{right:109px}.site-icon-preview .app-icon-preview{background-color:#000;-webkit-border-radius:16px;border-radius:16px;height:64px;overflow:hidden;width:64px;margin-top:5px}body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:700}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-weight:700}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-left:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-right:0}} \ No newline at end of file diff --git a/wp-admin/css/wp-admin.css b/wp-admin/css/wp-admin.css deleted file mode 100644 index 14c10f9cd9..0000000000 --- a/wp-admin/css/wp-admin.css +++ /dev/null @@ -1,14 +0,0 @@ -@import url(common.css); -@import url(forms.css); -@import url(admin-menu.css); -@import url(dashboard.css); -@import url(list-tables.css); -@import url(edit.css); -@import url(revisions.css); -@import url(media.css); -@import url(themes.css); -@import url(about.css); -@import url(nav-menus.css); -@import url(widgets.css); -@import url(site-icon.css); -@import url(l10n.css); diff --git a/wp-admin/css/wp-admin.min.css b/wp-admin/css/wp-admin.min.css deleted file mode 100644 index 61f0bc17c5..0000000000 --- a/wp-admin/css/wp-admin.min.css +++ /dev/null @@ -1,8 +0,0 @@ -#ajax-loading,#screen-meta .screen-reader-text,.ajax-feedback,.ajax-loading,.imgedit-wait-spin,.list-ajax-loading,.row-actions,.spinner{visibility:hidden}.color-palette,.form-table,.media-item .describe{border-collapse:collapse}#wpwrap{height:auto;min-height:100%;width:100%;position:relative;-webkit-font-smoothing:subpixel-antialiased}#wpcontent{height:100%;padding-left:20px}#wpcontent,#wpfooter{margin-left:160px}.folded #wpcontent,.folded #wpfooter{margin-left:36px}#wpbody-content{padding-bottom:65px;float:left;width:100%;overflow:visible!important}.inner-sidebar{float:right;clear:right;display:none;width:281px;position:relative}.columns-2 .inner-sidebar{margin-right:auto;width:286px;display:block}.columns-2 .inner-sidebar #side-sortables,.inner-sidebar #side-sortables{min-height:300px;width:280px;padding:0}.has-right-sidebar .inner-sidebar{display:block}.has-right-sidebar #post-body{float:left;clear:left;width:100%;margin-right:-2000px}.has-right-sidebar #post-body-content{margin-right:300px;float:none;width:auto}#col-container,#col-left,#col-right{overflow:hidden;padding:0;margin:0}#col-left{width:35%}#col-right{float:right;clear:right;width:65%}.alignleft,.subsubsub{float:left}.col-wrap{padding:0 7px}.alignright{float:right}.textleft{text-align:left}.textright{text-align:right}.clear{clear:both}.screen-reader-text,.screen-reader-text span,.ui-helper-hidden-accessible{position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0;word-wrap:normal!important}#adminmenu .wp-submenu,#dashboard_quick_press .draft-title,#templateside,#the-comment-list td.comment,.dashboard-comment-wrap,.pre,.widefat *{word-wrap:break-word}.screen-reader-shortcut{position:absolute;top:-1000em}.screen-reader-shortcut:focus{left:6px;top:-25px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#21759b;z-index:100000;line-height:normal;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,.6);box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:0}body,p{font-size:13px}.hidden,.js .closed .inside,.js .hide-if-js,.js .wp-core-ui .hide-if-js,.js.wp-core-ui .hide-if-js,.no-js .hide-if-no-js,.no-js .wp-core-ui .hide-if-no-js,.no-js.wp-core-ui .hide-if-no-js{display:none}#menu-management .menu-edit,#menu-settings-column .accordion-container,.comment-ays,.feature-filter,.imgedit-group,.manage-menus,.menu-item-handle,.popular-tags,.stuffbox,.widget-inside,.widget-top,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04)}.comment-ays,.feature-filter,.imgedit-group,.popular-tags,.stuffbox,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{background:#fff}body,html{height:100%;margin:0;padding:0}html{background:#f1f1f1}body{color:#444;font-family:"Open Sans",sans-serif;line-height:1.4em;min-width:600px}body.iframe{min-width:0;padding-top:1px}body.modal-open{overflow:hidden}body.mobile.modal-open #wpwrap{overflow:hidden;position:fixed;height:100%}iframe,img{border:0}td{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit}a{color:#0073aa;-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}a,div{outline:0}a:active,a:hover{color:#00a0d2}a:focus,a:focus .media-icon img{color:#124964;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ie8 a:focus{outline:#5b9dd9 solid 1px}#adminmenu a:focus,.screen-reader-text:focus{-webkit-box-shadow:none;box-shadow:none;outline:0}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}p{line-height:1.5;margin:1em 0}blockquote{margin:1em}dd,li{margin-bottom:6px}h1,h2,h3,h4,h5,h6{display:block;font-weight:600}h1{font-size:2em;margin:.67em 0}.wrap>h1,h2{color:#23282d;font-size:1.5em;margin:.83em 0;font-weight:400}h3{color:#23282d;font-size:1.3em;margin:1em 0}h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.67em;margin:2.33em 0}ol,ul{padding:0}ul{list-style:none}ol{list-style-type:decimal;margin-left:2em}ul.ul-disc{list-style:disc}.side-info ul,ul.ul-square{list-style:square}ol.ol-decimal{list-style:decimal}ol.ol-decimal,ul.ul-disc,ul.ul-square{margin-left:1.8em}ol.ol-decimal>li,ul.ul-disc>li,ul.ul-square>li{margin:0 0 .5em}.ltr{direction:ltr}.code,code{font-family:Consolas,Monaco,monospace;direction:ltr;unicode-bidi:embed}code,kbd{padding:3px 5px 2px;margin:0 1px;background:#eaeaea;background:rgba(0,0,0,.07);font-size:13px}.subsubsub{list-style:none;margin:8px 0 0;padding:0;font-size:13px;color:#666}.subsubsub a{line-height:2;padding:.2em;text-decoration:none}.subsubsub a .count,.subsubsub a.current .count{color:#999;font-weight:400}.subsubsub a.current{font-weight:600;border:none}.subsubsub li{display:inline-block;margin:0;padding:0;white-space:nowrap}.widefat{border-spacing:0;width:100%;clear:both;margin:0}.widefat a{text-decoration:none}.widefat td,.widefat th{padding:8px 10px}.widefat thead td,.widefat thead th{border-bottom:1px solid #e1e1e1}.widefat tfoot td,.widefat tfoot th{border-top:1px solid #e1e1e1;border-bottom:none}.widefat .no-items td{border-bottom-width:0}.widefat td{vertical-align:top}.widefat td,.widefat td ol,.widefat td p,.widefat td ul{font-size:13px;line-height:1.5em}.widefat tfoot td,.widefat th,.widefat thead td{text-align:left;line-height:1.3em;font-size:14px}.widefat tfoot td input,.widefat th input,.widefat thead td input{margin:0 0 0 8px;padding:0;vertical-align:text-top}.widefat .check-column{width:2.2em;padding:6px 0 25px;vertical-align:top}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-top:-1px}.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column{padding:11px 0 0 3px}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:10px}.update-php div.error,.update-php div.updated{margin-left:0}.no-js .widefat tfoot .check-column input,.no-js .widefat thead .check-column input{display:none}.column-comments,.column-links,.column-posts,.widefat .num{text-align:center}.widefat th#comments{vertical-align:middle}.wrap{margin:10px 20px 0 2px}.subtitle,.wrap h1,.wrap h2{font-weight:400;margin:0}.wrap h1,.wrap h2{font-size:23px;font-weight:400;padding:9px 15px 4px 0;line-height:29px}.subtitle{color:#777;font-size:14px;padding-left:25px}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{margin-left:4px;padding:4px 8px;position:relative;top:-3px;text-decoration:none;border:none;-webkit-border-radius:2px;border-radius:2px;background:#e0e0e0;text-shadow:none;font-weight:600;font-size:13px}.wrap .add-new-h2:hover,.wrap .page-title-action:hover{background:#00a0d2;color:#fff}.wrap h1.long-header{padding-right:0}.wp-dialog{background-color:#fff}.sorthelper{background-color:#ccf3fa}.ac_match,.subsubsub a.current{color:#000}.alternate,.striped>tbody>:nth-child(odd),ul.striped>:nth-child(odd){background-color:#f9f9f9}.bar{background-color:#e8e8e8;border-right-color:#99d}.media-upload-form label.form-help,td.help{color:#9a9a9a}.highlight{background-color:#e4f2fd;color:#000}.wp-ui-primary{color:#fff;background-color:#32373c}.wp-ui-text-primary{color:#32373c}.wp-ui-highlight{color:#fff;background-color:#1e8cbe}.wp-ui-text-highlight{color:#1e8cbe}.wp-ui-notification{color:#fff;background-color:#d54e21}.wp-ui-text-notification{color:#d54e21}.wp-ui-text-icon{color:#999}img.emoji{display:inline!important;border:none!important;height:1em!important;width:1em!important;margin:0 .07em!important;vertical-align:-.1em!important;background:0 0!important;padding:0!important;-webkit-box-shadow:none!important;box-shadow:none!important}#nav-menu-footer,#nav-menu-header,#your-profile #rich_editing,.checkbox,.control-section .accordion-section-title,.menu-item-handle,.postbox .hndle,.side-info,.sidebar-name,.stuffbox .hndle,.widefat tfoot td,.widefat tfoot th,.widefat thead td,.widefat thead th,.widget .widget-top{line-height:1.4em}.menu-item-handle,.widget .widget-top{background:#fafafa;color:#23282d}.postbox .hndle,.stuffbox .hndle{border-bottom:1px solid #eee;user-select:none}.accordion-section-title,.postbox .hndle,.stuffbox .hndle{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.quicktags,.search{background-color:#ccc;color:#000;font-size:12px}.icon32{display:none}#bulk-titles div a:before,.notice-dismiss:before,.tagchecklist span a:before,.welcome-panel .welcome-panel-close:before{background:0 0;color:#b4b9be;content:'\f153';display:block;font:400 16px/20px dashicons;speak:none;height:20px;text-align:center;width:20px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.welcome-panel .welcome-panel-close:before{margin:0}#bulk-titles div a:before,.tagchecklist span a:before{margin:1px 0}#bulk-titles div a:hover:before,.tagchecklist span a:hover:before,.welcome-panel .welcome-panel-close:focus:before,.welcome-panel .welcome-panel-close:hover:before{color:#c00}.key-labels label{line-height:24px}b,strong{font-weight:600}.pre{white-space:pre-wrap}#namediv td.first,#plugin-information-title,.no-break,.star-rating,.ui-autocomplete li{white-space:nowrap}.howto{color:#666;font-style:italic;display:block}p.install-help{margin:8px 0;font-style:italic}hr{border:0;border-top:1px solid #ddd;border-bottom:1px solid #fafafa}#all-plugins-table .plugins a.delete,#media-items a.delete,#media-items a.delete-permanently,#nav-menu-footer .menu-delete,#search-plugins-table .plugins a.delete,.plugins a.delete,.row-actions span.delete a,.row-actions span.spam a,.row-actions span.trash a,.submitbox .submitdelete{color:#a00}#all-plugins-table .plugins a.delete:hover,#media-items a.delete-permanently:hover,#media-items a.delete:hover,#nav-menu-footer .menu-delete:hover,#search-plugins-table .plugins a.delete:hover,.file-error,.plugins a.delete:hover,.row-actions .delete a:hover,.row-actions .spam a:hover,.row-actions .trash a:hover,.submitbox .submitdelete:hover,.widget-control-remove:hover,abbr.required{color:red;text-decoration:none;border:none}#major-publishing-actions{padding:10px;clear:both;border-top:1px solid #ddd;background:#f5f5f5}#delete-action{line-height:28px;vertical-align:middle;text-align:left;float:left}#publishing-action{text-align:right;float:right;line-height:23px}#publishing-action .spinner,#save-post{float:left}#misc-publishing-actions{padding:6px 0 0}.misc-pub-section{padding:6px 10px 8px}#minor-publishing-actions{padding:10px 10px 0;text-align:right}.preview{float:right}#sticky-span{margin-left:18px}.side-info{margin:0;padding:4px;font-size:11px}.side-info h5{padding-bottom:7px;font-size:14px;margin:12px 2px 5px;border-bottom:1px solid #dadada}.side-info ul{margin:0;padding-left:18px;color:#666}.approve,.unapproved .unapprove{display:none}.spam .approve,.trash .approve,.unapproved .approve{display:inline}td.action-links,th.action-links{text-align:right}.wp-filter{display:inline-block;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:12px 0 25px;padding:0 10px;width:100%;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);border:1px solid #e5e5e5;background:#fff;color:#555;font-size:13px}.wp-filter a{text-decoration:none}.filter-count{display:inline-block;vertical-align:middle;min-width:4em}.filter-count .count,.title-count{display:inline-block;position:relative;top:-1px;padding:4px 10px;-webkit-border-radius:30px;border-radius:30px;background:#777;color:#fff;font-size:14px;font-weight:600}.title-count{display:inline;top:-3px;margin-left:5px;margin-right:20px}.filter-items{float:left}.filter-links,.filter-links li{display:inline-block;margin:0}.filter-links li>a{display:inline-block;margin:0 10px;padding:15px 0;border-bottom:4px solid #fff;color:#666;cursor:pointer}.filter-links .current{-webkit-box-shadow:none;box-shadow:none;border-bottom:4px solid #666;color:#23282d}.filter-links li>a:focus,.filter-links li>a:hover,.show-filters .filter-links a.current:focus,.show-filters .filter-links a.current:hover{color:#00a0d2}.wp-filter .search-form{float:right;margin:10px 0}.wp-filter .search-form input[type=search]{margin:0;padding:3px 5px;width:280px;max-width:100%;font-size:16px;font-weight:300;line-height:1.5}.wp-filter .search-form select{margin:0;height:32px;vertical-align:top}.wp-filter .search-form.search-plugins{display:inline-block}.wp-filter .drawer-toggle{display:inline-block;margin:0 10px;padding:4px 6px;color:#666;cursor:pointer}.wp-filter .drawer-toggle:before{display:inline-block;vertical-align:top;content:"\f111";margin:0 5px 0 0;width:16px;height:16px;color:#777;-webkit-transition:color .1s ease-in 0;transition:color .1s ease-in 0;font-family:dashicons;font-size:16px;line-height:1;text-align:center;text-decoration:inherit;font-weight:400;font-style:normal;-webkit-font-smoothing:antialiased}.wp-filter .drawer-toggle:hover,.wp-filter .drawer-toggle:hover:before{color:#00a0d2}.show-filters .wp-filter .drawer-toggle:before,.wp-filter .drawer-toggle.current:before{color:#fff}.filter-drawer{display:none;margin:0 -20px;padding:20px;border-top:1px solid #eee;background:#fafafa}.show-filters .filter-drawer{display:block;overflow:hidden;width:100%}.show-filters .wp-filter .drawer-toggle:focus,.show-filters .wp-filter .drawer-toggle:hover{background:#2ea2cc}.show-filters .filter-links a.current{border-bottom:none}.show-filters .wp-filter .drawer-toggle{-webkit-border-radius:2px;border-radius:2px;border:none;background:#777;color:#fff}.filter-group{box-sizing:border-box;float:left;margin:0 1% 0 0;padding:10px;width:24%;box-shadow:0 1px 1px rgba(0,0,0,.04)}.filter-group,.filtered-by .tag{background:#fff;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04)}.filter-group,html.wp-toolbar{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.filter-group h4{position:relative;margin:0}.filter-drawer ol{margin:20px 0 0;list-style-type:none;font-size:12px}.filter-drawer li{display:inline-block;vertical-align:top;margin:5px 0;padding-right:25px;width:160px;list-style-type:none}.filter-drawer .buttons{margin-bottom:20px}.filter-drawer .buttons .button span{display:inline-block;opacity:.8;font-size:12px;text-indent:10px}.spinner,input[type=checkbox].disabled,input[type=checkbox].disabled:checked:before,input[type=checkbox]:disabled,input[type=checkbox]:disabled:checked:before,input[type=radio].disabled,input[type=radio].disabled:checked:before,input[type=radio]:disabled,input[type=radio]:disabled:checked:before{opacity:.7}.wp-filter .button.clear-filters{display:none;margin-left:10px}.filtered-by{display:none;margin:0}.filtered-by>span{font-weight:600}.filtered-by a{margin-left:10px}.filtered-by .tags{display:inline}.filtered-by .tag{margin:0 5px;padding:4px 8px;box-shadow:0 1px 1px rgba(0,0,0,.04);font-size:11px}.filters-applied .filter-drawer .buttons,.filters-applied .filter-drawer br,.filters-applied .filter-group{display:none!important}.filters-applied .filtered-by{display:block}.filters-applied .filter-drawer{padding:20px}.error .content-filterable,.loading-content .content-filterable,.show-filters .content-filterable,.show-filters.filters-applied.loading-content .content-filterable{display:none}.show-filters.filters-applied .content-filterable{display:block}.loading-content .spinner{display:block;margin:40px auto 0;float:none}@media only screen and (max-width:1120px){.filter-drawer{border-bottom:1px solid #eee}.filter-group{margin-bottom:0;margin-top:5px;width:100%}.filter-group li{margin:10px 0}}@media only screen and (max-width:1000px){.filter-items{float:none}.wp-filter .media-toolbar-primary,.wp-filter .media-toolbar-secondary,.wp-filter .search-form{float:none;position:relative;max-width:100%}}@media only screen and (max-width:782px){.filter-group li{padding:0;width:50%}}@media only screen and (max-width:320px){.filter-count{display:none}.wp-filter .drawer-toggle{margin:10px 0}.filter-group li,.wp-filter .search-form input[type=search]{width:100%}}.notice,div.error,div.updated{background:#fff;border-left:4px solid #fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 15px 2px;padding:1px 12px}.notice-dismiss:focus,.widget-top a.widget-action:focus:after{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.form-table td .notice p,.notice p,div.error p,div.updated p{margin:.5em 0;padding:2px}.wp-core-ui .notice.is-dismissible{padding-right:38px;position:relative}.notice-dismiss{position:absolute;top:0;right:1px;border:none;margin:0;padding:9px;background:0 0;color:#b4b9be;cursor:pointer}.notice-dismiss:active:before,.notice-dismiss:focus:before,.notice-dismiss:hover:before{color:#c00}.notice-dismiss:focus{outline:0;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ie8 .notice-dismiss:focus{outline:#5b9dd9 solid 1px}.notice-success,div.updated{border-color:#7ad03a}.notice-warning{border-color:#ffba00}.notice-error,div.error{border-color:#dd3d36}.notice-info{border-color:#00a0d2}.media-upload-form .notice,.media-upload-form div.error,.wrap .notice,.wrap div.error,.wrap div.updated{margin:5px 0 15px}#update-nag,.update-nag{display:inline-block;line-height:19px;padding:11px 15px;font-size:14px;text-align:left;margin:25px 20px 0 2px;background-color:#fff;border-left:4px solid #ffba00;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.update-message{color:#000}.update-php .spinner{float:none;margin:-4px 0}#ajax-response.alignleft{margin-left:2em}#adminmenu a,#catlist a,#taglist a{text-decoration:none}#contextual-help-wrap,#screen-options-wrap{margin:0;padding:8px 20px 12px;position:relative}#contextual-help-wrap{overflow:auto;margin-left:0!important}#screen-meta-links{margin:0 20px 0 0}#screen-meta{display:none;margin:0 20px -1px 0;position:relative;background-color:#fff;border:1px solid #ddd;border-top:none;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.025);box-shadow:0 1px 0 rgba(0,0,0,.025)}#contextual-help-link-wrap,#screen-options-link-wrap{float:right;height:28px;margin:0 0 0 6px;border:1px solid #ddd;border-top:none;background:#fff;-webkit-box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-shadow:0 1px 1px -1px rgba(0,0,0,.1)}#screen-meta-links .screen-meta-toggle{position:relative;top:0}#screen-meta-links .show-settings{border:0;background:0 0;-webkit-border-radius:0;border-radius:0;color:#777;line-height:1.7;padding:3px 6px 3px 16px}#screen-meta-links .show-settings:active,#screen-meta-links .show-settings:focus,#screen-meta-links .show-settings:hover{color:#32373c}#screen-meta-links .show-settings:after{right:0;content:'\f140';font:400 20px/1 dashicons;speak:none;display:inline-block;padding:0 5px 0 0;bottom:2px;position:relative;vertical-align:bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#b4b9be}.hndle a,.widefat tfoot td,.widefat th,.widefat thead td{font-weight:400}#screen-meta-links .screen-meta-active:after{content:'\f142'}.toggle-arrow{background-repeat:no-repeat;background-position:top left;background-color:transparent;height:22px;line-height:22px;display:block}.toggle-arrow-active{background-position:bottom left}#contextual-help-wrap h5,#screen-options-wrap h5{margin:8px 0;font-size:13px}.metabox-prefs label{display:inline-block;padding-right:15px;line-height:30px}.metabox-prefs label input[type=checkbox]{margin-top:-4px;margin-right:6px}.metabox-prefs label input{margin:0 5px 0 2px}.metabox-prefs .columns-prefs label input{margin:0 2px}.metabox-prefs label a{display:none}.metabox-prefs .screen-options{padding-top:10px}.metabox-prefs .screen-options input,.metabox-prefs .screen-options label{margin-top:0;margin-bottom:0;vertical-align:middle}.metabox-prefs .screen-options .screen-per-page{margin-right:15px}.metabox-prefs .screen-options label{line-height:28px;padding-right:0}#contextual-help-wrap{padding:0}#contextual-help-columns{position:relative}#contextual-help-back{position:absolute;top:0;bottom:0;left:150px;right:170px;border:1px solid #e1e1e1;border-top:none;border-bottom:none;background:#f6fbfd}#contextual-help-wrap.no-sidebar #contextual-help-back{right:0;border-right-width:0;-webkit-border-bottom-right-radius:2px;border-bottom-right-radius:2px}.contextual-help-tabs{float:left;width:150px;margin:0}.contextual-help-tabs ul{margin:1em 0}.contextual-help-tabs li{margin-bottom:0;list-style-type:none;border-style:solid;border-width:0 0 0 2px;border-color:transparent}.contextual-help-tabs a{display:block;padding:5px 5px 5px 12px;line-height:18px;text-decoration:none;border:1px solid transparent;border-right:none;border-left:none}.contextual-help-tabs a:hover{color:#32373c}.contextual-help-tabs .active{padding:0;margin:0 -1px 0 0;border-left:2px solid #00a0d2;background:#f6fbfd;-webkit-box-shadow:0 2px 0 rgba(0,0,0,.02),0 1px 0 rgba(0,0,0,.02);box-shadow:0 2px 0 rgba(0,0,0,.02),0 1px 0 rgba(0,0,0,.02)}.contextual-help-tabs .active a{border-color:#e1e1e1;color:#32373c}.contextual-help-tabs-wrap{padding:0 20px;overflow:auto}.help-tab-content{display:none;margin:0 22px 12px 0;line-height:1.6em}.help-tab-content.active{display:block}.nav-tab,.spinner{display:inline-block}.help-tab-content ul li{list-style-type:disc;margin-left:18px}.contextual-help-sidebar{width:150px;float:right;padding:0 8px 0 12px;overflow:auto}html.wp-toolbar{padding-top:32px;box-sizing:border-box}.widefat td,.widefat th{color:#555}.widefat ol,.widefat p,.widefat tfoot tr td,.widefat tfoot tr th,.widefat thead tr td,.widefat thead tr th,.widefat ul{color:#32373c}.widefat td p{margin:2px 0 .8em}.widefat .column-comment p{margin:.6em 0}.postbox-container{float:left}.postbox-container .meta-box-sortables{box-sizing:border-box}.postbox-container .meta-box-sortables,input,textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}#wpbody-content .metabox-holder{padding-top:10px}.metabox-holder .postbox-container .empty-container{border:3px dashed #b4b9be;height:250px}.columns-2 #postbox-container-3 .empty-container,.columns-2 #postbox-container-4 .empty-container,.columns-3 #postbox-container-4 .empty-container,.metabox-holder.columns-1 .postbox-container .empty-container{border:0;height:0;min-height:0}#post-body-content{width:100%;min-width:463px;float:left}#post-body.columns-2 #postbox-container-1{float:right;margin-right:-300px;width:280px}#post-body.columns-2 #side-sortables{min-height:250px}@media only screen and (max-width:799px){#wpbody-content .metabox-holder .postbox-container .empty-container{border:0;height:0;min-height:0}}.js .postbox .hndle,.js .widget .widget-top{cursor:move}.js .accordion-section-title,.js .postbox .handlediv{cursor:pointer}.hndle a{font-size:11px}.postbox .handlediv{float:right;width:27px;height:30px}.sortable-placeholder{border:1px dashed #b4b9be;margin-bottom:20px}.postbox,.stuffbox{margin-bottom:20px;padding:0;line-height:1}.postbox .inside,.stuffbox .inside{padding:0 12px 12px;line-height:1.4em;font-size:13px}.postbox .inside{margin:11px 0;position:relative}.postbox .inside>p:last-child,.rss-widget ul li:last-child{margin-bottom:1px!important}.postbox.closed h3{border:none;-webkit-box-shadow:none;box-shadow:none}.postbox table.form-table{margin-bottom:0}.postbox table.widefat{-webkit-box-shadow:none;box-shadow:none}.temp-border{border:1px dotted #ccc}.columns-prefs label{padding:0 5px}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover,#dashboard_right_now .versions .b,#ed_reply_toolbar #ed_reply_strong,#pass-strength-result.short,#pass-strength-result.strong,#post-status-display,#post-visibility-display,.feature-filter .feature-name,.item-controls .item-order a,.media-item .percent,.plugins .name{font-weight:600}#wpfooter{position:absolute;bottom:0;left:0;right:0;padding:10px 20px;color:#777}#wpfooter p{font-size:13px;margin:0;line-height:20px}#footer-thankyou{font-style:italic}#wpfooter a{text-decoration:none}#wpfooter a:hover{text-decoration:underline}#templateside ul li a,.nav-tab{text-decoration:none}.nav-tab{border:1px solid #ccc;border-bottom:none;background:#e4e4e4;color:#555;font-size:12px;line-height:16px;padding:4px 14px 6px;margin:-4px 4px -1px 0}.nav-tab:hover{background-color:#fff;color:#464646}.nav-tab-active,.nav-tab-active:hover{border-bottom:1px solid #f1f1f1;background:#f1f1f1;color:#000}h1.nav-tab-wrapper,h2.nav-tab-wrapper,h3.nav-tab-wrapper{border-bottom:1px solid #ccc;padding-bottom:0;padding-left:10px}h1 .nav-tab,h2 .nav-tab{padding:6px 10px;font-weight:700;font-size:15px;line-height:24px}.spinner{background:url(../images/spinner.gif) no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;float:right;vertical-align:middle;filter:alpha(opacity=70);width:20px;height:20px;margin:4px 10px 0}.spinner.is-active{visibility:visible}#template div{margin-right:190px}.metabox-holder h3{font-size:14px;padding:8px 12px;margin:0;line-height:1.4}.plugin-install #description,.plugin-install-network #description{width:60%}table .column-rating,table .column-visible,table .vers{text-align:left}.attention,.error-message{color:red;font-weight:600}body.iframe{height:98%}.lp-show-latest p{display:none}#howto,.lp-show-latest .lp-error p,.lp-show-latest p:last-child{display:block}.media-icon{width:62px;text-align:center}.media-icon img{border:1px solid #e7e7e7;border:1px solid rgba(0,0,0,.07)}#howto{font-size:11px;margin:0 5px}.post-categories,.post-categories li{display:inline}.importers td{padding-right:14px}.checkbox,.post-categories,.zerosize,fieldset{margin:0;padding:0}.importers{font-size:16px;width:auto}#post-body #post-body-content #namediv h3{margin-top:0}.edit-comment-author{font-size:14px;line-height:1.4;font-weight:600;color:#222;margin:2px 0 0 9px}#namediv h3 label{vertical-align:baseline}#namediv table{width:100%}#namediv td.first{width:10px}#namediv input{width:98%}#namediv p{margin:10px 0}#submitdiv h3{margin-bottom:0!important}.zerosize{height:0;width:0;border:0;overflow:hidden;position:absolute}br.clear{height:2px;line-height:2px}.checkbox{border:none}fieldset{border:0}div.star-holder{position:relative;height:17px;width:100px;background:url(../images/stars.png?ver=20121108) bottom left repeat-x}div.star-holder .star-rating{background:url(../images/stars.png?ver=20121108) top left repeat-x;height:17px;float:left}.star-rating .star{display:inline-block;width:20px;height:20px;-webkit-font-smoothing:antialiased;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;font-weight:400;font-style:normal;vertical-align:top;-webkit-transition:color .1s ease-in 0;transition:color .1s ease-in 0;text-align:center;color:#ffb900}.star-rating .star-full:before{content:'\f155'}.star-rating .star-half:before{content:'\f459'}.rtl .star-rating .star-half{-webkit-transform:rotateY(180deg);-ms-transform:rotateY(180deg);transform:rotateY(180deg)}.star-rating .star-empty:before{content:'\f154'}div.action-links{font-weight:400}#plugin-information{background:#fff;position:fixed;top:0;right:0;bottom:0;left:0;height:100%;padding:0}#plugin-information-scrollable{overflow:auto;-webkit-overflow-scrolling:touch;height:100%}#plugin-information-title{padding:0 20px;background:#f5f5f5;font-size:22px;font-weight:600;line-height:56px;position:relative;top:0;right:0;left:0;height:56px;overflow:hidden;text-overflow:ellipsis}#plugin-information-title.with-banner{margin-right:0;height:250px;bottom:250px;-webkit-background-size:cover;background-size:cover}#plugin-information-title h2{font-size:1em;font-weight:700;padding:0;margin:0;max-width:680px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-box-sortables select,p.submit{max-width:100%}#plugin-information-title.with-banner h2{font-family:"Helvetica Neue",sans-serif;display:inline-block;font-size:30px;line-height:50px;padding:0 15px;margin:174px 0 0 10px;color:#fff;background:rgba(30,30,30,.9);text-shadow:0 1px 3px rgba(0,0,0,.4);-webkit-box-shadow:0 0 30px rgba(255,255,255,.1);box-shadow:0 0 30px rgba(255,255,255,.1);-webkit-border-radius:8px;border-radius:8px}#plugin-information-title div.vignette{display:none}#plugin-information-title.with-banner div.vignette{display:block;float:right;top:0;height:250px;width:772px;margin:0 -20px;background:0 0;-webkit-box-shadow:inset 0 0 50px 4px rgba(0,0,0,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 0 50px 4px rgba(0,0,0,.2),inset 0 -1px 0 rgba(0,0,0,.1)}#plugin-information-tabs{padding:0 16px;position:relative;right:0;left:0;height:36px;z-index:1;border-bottom:1px solid #ddd;background:#f3f3f3}#plugin-information-tabs a{position:relative;float:left;padding:9px 10px;margin:0;height:18px;line-height:18px;font-size:14px;text-decoration:none;-webkit-transition:none;transition:none}#plugin-information-tabs a.current{margin:0 -1px;background:#fff;border:1px solid #ddd;border-bottom-color:#fff;padding-top:8px;color:#32373c}#plugin-information-tabs.with-banner a.current{border-top:none;padding-top:9px}#plugin-information-tabs a:active,#plugin-information-tabs a:focus{outline:0}#plugin-information-content{overflow:hidden;background:#fff;position:relative;top:0;right:0;left:0;min-height:100%;min-height:-webkit-calc(100% - 152px);min-height:calc(100% - 152px)}#plugin-information-content.with-banner{min-height:-webkit-calc(100% - 346px);min-height:calc(100% - 346px)}#section-holder{position:relative;top:0;right:250px;bottom:0;left:0;margin-right:250px;padding:10px 26px 99999px;margin-bottom:-99930px}#section-holder .updated{margin:16px 0}#plugin-information .fyi{display:block;float:right;position:relative;top:0;right:0;padding:16px 16px 99999px;margin-bottom:-99930px;width:217px;border-left:1px solid #ddd;background:#f3f3f3;color:#666}#plugin-information .fyi strong{color:#464646}#plugin-information .fyi h3{font-weight:700;text-transform:uppercase;font-size:12px;color:#666;margin:24px 0 8px}#plugin-information .fyi h2{font-size:.9em;margin-bottom:0;margin-right:0}#plugin-information .fyi ul{padding:0;margin:0;list-style:none}#plugin-information .fyi li{margin:0 0 10px}#plugin-information .counter-container{margin:3px 0}#plugin-information .counter-label{float:left;margin-right:5px;min-width:55px}#plugin-information .counter-back{height:17px;width:92px;background-color:#ececec;float:left}#plugin-information .counter-bar{height:17px;background-color:#ffc733;float:left}#plugin-information .counter-count{margin-left:5px}#plugin-information .fyi ul.contributors{margin-top:10px}#plugin-information .fyi ul.contributors li{display:inline-block;margin-right:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li img{vertical-align:middle;margin-right:4px}#plugin-information-footer{padding:15px 16px;position:absolute;right:0;bottom:0;left:0;height:28px;border-top:1px solid #ddd;background:#f3f3f3}#plugin-information .section{direction:ltr}#plugin-information .section ol,#plugin-information .section ul{list-style-type:disc;margin-left:24px}#plugin-information .section,#plugin-information .section p{font-size:14px;line-height:1.7}#plugin-information #section-screenshots ol{list-style:none;margin:0}#plugin-information #section-screenshots li img{vertical-align:text-top;margin-top:16px;max-width:100%;width:auto;height:auto;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.3);box-shadow:0 1px 2px rgba(0,0,0,.3)}#plugin-information #section-screenshots li p{font-style:italic;padding-left:20px}#plugin-information pre{padding:7px;overflow:auto;border:1px solid #ccc}#plugin-information .review{overflow:hidden;width:100%;margin-bottom:20px;border-bottom:1px solid #e6e6e6}#plugin-information .review-title-section{overflow:hidden}#plugin-information .review-title-section h4{display:inline-block;float:left;margin:0 6px 0 0}#postcustomstuff p.submit,#templateside h3,.alignleft h3{margin:0}#plugin-information .reviewer-info p{clear:both;margin:0;padding-top:2px}#plugin-information .reviewer-info .avatar{float:left;margin:4px 6px 0 0}#plugin-information .reviewer-info .star-rating{float:left}#plugin-information .review-meta{float:left;margin-left:.75em}#plugin-information .review-body{float:left;width:100%}.plugin-version-author-uri{font-size:13px}@media screen and (max-width:771px){#plugin-information-title.with-banner{height:100px;bottom:100px}#plugin-information-title.with-banner h2{margin-top:30px;font-size:20px;line-height:40px;max-width:85%}#plugin-information-title.with-banner div.vignette{height:100px;bottom:100px;width:800%}#plugin-information-tabs{overflow:hidden;padding:0;height:auto}#plugin-information-tabs a.current{margin-bottom:0;border-bottom:none}#plugin-information .fyi{float:none;border:1px solid #ddd;position:static;width:auto;margin:26px 26px 0;padding-bottom:0}#section-holder{position:static;margin:0;padding-bottom:70px}#plugin-information .fyi h3,#plugin-information .fyi small{display:none}#plugin-information-footer{padding:12px 16px 0;height:46px}}body.import-php #TB_window,body.index-php #TB_window,body.plugin-install-php #TB_window,body.plugins-php #TB_window,body.update-core-php #TB_window{background:url(../images/spinner.gif) center no-repeat #fcfcfc}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){body.import-php #TB_window,body.index-php #TB_window,body.plugin-install-php #TB_window,body.plugins-php #TB_window,body.update-core-php #TB_window{background:url(../images/spinner-2x.gif) center no-repeat #fcfcfc;-webkit-background-size:20px 20px;background-size:20px 20px}}body.import-php #TB_title,body.index-php #TB_title,body.plugin-install-php #TB_title,body.plugins-php #TB_title,body.update-core-php #TB_title{float:left;height:1px}body.import-php #TB_ajaxWindowTitle,body.index-php #TB_ajaxWindowTitle,body.plugin-install-php #TB_ajaxWindowTitle,body.plugins-php #TB_ajaxWindowTitle,body.update-core-php #TB_ajaxWindowTitle{display:none}body.import-php .tb-close-icon,body.index-php .tb-close-icon,body.plugin-install-php .tb-close-icon,body.plugins-php .tb-close-icon,body.update-core-php .tb-close-icon{left:auto;right:-30px;color:#eee;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}body.import-php #TB_closeWindowButton:focus,body.import-php #TB_closeWindowButton:focus .tb-close-icon,body.import-php .tb-close-icon:focus,body.import-php .tb-close-icon:hover,body.index-php #TB_closeWindowButton:focus,body.index-php #TB_closeWindowButton:focus .tb-close-icon,body.index-php .tb-close-icon:focus,body.index-php .tb-close-icon:hover,body.plugin-install-php #TB_closeWindowButton:focus,body.plugin-install-php #TB_closeWindowButton:focus .tb-close-icon,body.plugin-install-php .tb-close-icon:focus,body.plugin-install-php .tb-close-icon:hover,body.plugins-php #TB_closeWindowButton:focus,body.plugins-php #TB_closeWindowButton:focus .tb-close-icon,body.plugins-php .tb-close-icon:focus,body.plugins-php .tb-close-icon:hover,body.update-core-php #TB_closeWindowButton:focus,body.update-core-php #TB_closeWindowButton:focus .tb-close-icon,body.update-core-php .tb-close-icon:focus,body.update-core-php .tb-close-icon:hover{color:#00a0d2;outline:0;-webkit-box-shadow:none;box-shadow:none}body.import-php .tb-close-icon:before,body.index-php .tb-close-icon:before,body.plugin-install-php .tb-close-icon:before,body.plugins-php .tb-close-icon:before,body.update-core-php .tb-close-icon:before{content:"\f335";font-size:32px}@media screen and (max-width:830px){body.import-php .tb-close-icon,body.index-php .tb-close-icon,body.plugin-install-php .tb-close-icon,body.plugins-php .tb-close-icon,body.update-core-php .tb-close-icon{right:0;top:-30px}}img{border:none}#wphead{border-bottom:1px solid #dfdfdf}#wphead h1 a{color:#464646}.js .meta-box-sortables .postbox:hover .handlediv{margin-right:0!important}.js .meta-box-sortables .postbox .handlediv:before,.js .sidebar-name .sidebar-name-arrow:before{right:12px;font:400 20px/1 dashicons;speak:none;display:inline-block;padding:8px 10px;top:0;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;content:'\f142'}.js #widgets-left .sidebar-name .sidebar-name-arrow{display:none}.js #widgets-left .sidebar-name:hover .sidebar-name-arrow,.js #widgets-left .widgets-holder-wrap.closed .sidebar-name .sidebar-name-arrow{display:block}.js .meta-box-sortables .postbox.closed .handlediv:before,.js .widgets-holder-wrap.closed .sidebar-name-arrow:before{content:'\f140'}.error a{text-decoration:underline}.updated a{text-decoration:none;padding-bottom:2px}#photo-add-url-div input[type=text]{width:300px}#template textarea{font-family:Consolas,Monaco,monospace;font-size:13px;width:97%;background:#f9f9f9;outline:0}#docs-list,#template textarea{direction:ltr}#template p{width:97%}#templateside{float:right;width:190px}#templateside h4{margin:1em 0 0}#templateside ol,#templateside ul{margin:.5em 0;padding:0}#templateside li{margin:4px 0}#templateside li a,.theme-editor-php .highlight{display:block;padding:3px 3px 3px 12px;text-decoration:none}.theme-editor-php .highlight{margin:-3px 3px -3px -12px}#templateside .highlight{border:none;font-weight:700}.nonessential{color:#666;font-size:11px;font-style:italic;padding-left:12px}#documentation{margin-top:10px}#documentation label{line-height:22px;vertical-align:baseline;font-weight:600}.fileedit-sub{padding:10px 0 8px;line-height:180%}.accordion-section-title:after,.control-section .accordion-section-title:after,.nav-menus-php .item-edit:before,.widget-top a.widget-action:after{right:0;content:'\f140';border:none;background:0 0;font:400 20px/1 dashicons;speak:none;display:block;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.my-sites li a,form p.submit a.cancel:hover{text-decoration:none}.accordion-section-title:after,.handlediv,.item-edit,.sidebar-name-arrow,.widget-action{color:#a0a5aa}.accordion-section-title:hover:after,.handlediv:hover,.item-edit:hover,.sidebar-name:hover .sidebar-name-arrow,.widget-action:hover{color:#777}.widget-top a.widget-action:after{padding:12px 12px 11px}.widget-top a.widget-action:focus:after{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.nav-menus-php .item-edit:before{line-height:2.1}.accordion-section-title:after,.control-section .accordion-section-title:after{float:right;right:20px;top:-2px}#customize-info.open .accordion-section-title:after,.control-section.open .accordion-section-title:after,.nav-menus-php .menu-item-edit-active .item-edit:before,.widget.open .widget-top a.widget-action:after{content:'\f142'}/*! - * jQuery UI Draggable/Sortable 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */.ui-draggable-handle,.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.accordion-section{border-bottom:1px solid #dfdfdf;margin:0}.accordion-section.open .accordion-section-content,.no-js .accordion-section .accordion-section-content{display:block}.accordion-section.open:hover{border-bottom-color:#dfdfdf}.accordion-section-content{display:none;padding:10px 20px 15px;overflow:hidden;background:#fff}.accordion-section-title{margin:0;padding:12px 15px 15px;position:relative;border-left:1px solid #dfdfdf;border-right:1px solid #dfdfdf;user-select:none}.js .accordion-section-title:after{position:absolute;top:12px;right:10px;z-index:1}.accordion-section-title:focus{outline:0}.accordion-section-title:focus:after,.accordion-section-title:hover:after{border-color:#a0a5aa transparent}.cannot-expand .accordion-section-title{cursor:auto}.cannot-expand .accordion-section-title:after{display:none}.control-section .accordion-section-title{border-left:none;border-right:none;padding:10px 10px 11px 14px;line-height:21px;background:#fff}.control-section .accordion-section-title:after{top:11px}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{color:#23282d;background:#f5f5f5}.control-section.open .accordion-section-title{border-bottom:1px solid #dfdfdf}.network-admin .edit-site-actions{margin-top:0}.my-sites{display:block;overflow:auto;zoom:1}.my-sites li{display:block;padding:8px 3%;min-height:130px;margin:0}@media only screen and (max-width:599px){.my-sites li{min-height:0}}@media only screen and (min-width:600px){.my-sites.striped li{background-color:#fff;position:relative}.my-sites.striped li:after{content:"";width:1px;height:100%;position:absolute;top:0;right:0;background:#ccc}}@media only screen and (min-width:600px) and (max-width:699px){.my-sites li{float:left;width:44%}.my-sites.striped li{background-color:#fff}.my-sites.striped li:nth-of-type(2n+1){clear:left}.my-sites.striped li:nth-of-type(2n+2):after{content:none}.my-sites li:nth-of-type(4n+1),.my-sites li:nth-of-type(4n+2){background-color:#f9f9f9}}@media only screen and (min-width:700px) and (max-width:1199px){.my-sites li{float:left;width:27.333333%;background-color:#fff}.my-sites.striped li:nth-of-type(3n+3):after{content:none}.my-sites li:nth-of-type(6n+1),.my-sites li:nth-of-type(6n+2),.my-sites li:nth-of-type(6n+3){background-color:#f9f9f9}}@media only screen and (min-width:1200px) and (max-width:1399px){.my-sites li{float:left;width:21%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(4n+1){clear:left}.my-sites.striped li:nth-of-type(4n+4):after{content:none}.my-sites li:nth-of-type(8n+1),.my-sites li:nth-of-type(8n+2),.my-sites li:nth-of-type(8n+3),.my-sites li:nth-of-type(8n+4){background-color:#f9f9f9}}@media only screen and (min-width:1400px) and (max-width:1599px){.my-sites li{float:left;width:16%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(5n+1){clear:left}.my-sites.striped li:nth-of-type(5n+5):after{content:none}.my-sites li:nth-of-type(10n+1),.my-sites li:nth-of-type(10n+2),.my-sites li:nth-of-type(10n+3),.my-sites li:nth-of-type(10n+4),.my-sites li:nth-of-type(10n+5){background-color:#f9f9f9}}@media only screen and (min-width:1600px){.my-sites li{float:left;width:12.666666%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(6n+1){clear:left}.my-sites.striped li:nth-of-type(6n+6):after{content:none}.my-sites li:nth-of-type(12n+1),.my-sites li:nth-of-type(12n+2),.my-sites li:nth-of-type(12n+3),.my-sites li:nth-of-type(12n+4),.my-sites li:nth-of-type(12n+5),.my-sites li:nth-of-type(12n+6){background-color:#f9f9f9}}@media only screen and (min-width:769px){#col-left{width:35%}#col-right{width:65%}}@media only screen and (max-width:860px){#col-left{width:35%}#col-right{width:65%}}@media only screen and (min-width:980px){#col-left{width:35%}#col-right{width:65%}}@media only screen and (max-width:768px){#col-left,#col-right{width:100%}}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){div.star-holder,div.star-holder .star-rating{background:url(../images/stars-2x.png?ver=20121108) bottom left repeat-x;-webkit-background-size:21px 37px;background-size:21px 37px}.spinner{background-image:url(../images/spinner-2x.gif)}#bulk-titles div a,#bulk-titles div a:hover,#screen-meta-links a.show-settings,.curtime #timestamp,.meta-box-sortables .postbox:hover .handlediv,.sidebar-name-arrow,.sidebar-name:hover .sidebar-name-arrow,.tagchecklist span a,.tagchecklist span a:hover,.widget-top a.widget-action,.widget-top a.widget-action:hover{background:0 0!important}}@-ms-viewport{width:device-width}@media screen and (max-width:782px){#template div,#templateside{float:none;width:auto}html.wp-toolbar{padding-top:46px}body{min-width:240px;overflow-x:hidden}body *{-webkit-tap-highlight-color:transparent!important}#wpcontent{position:relative;margin-left:0;padding-left:10px}#wpbody-content{padding-bottom:100px}.wrap{margin-right:12px;margin-left:0}.col-wrap{padding:0}#collapse-menu,#screen-meta,#screen-meta-links,.post-format-select{display:none!important}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{padding:10px 15px;font-size:14px;white-space:nowrap}.wp-color-result{height:auto;padding-left:45px}.wp-color-result:after{font-size:14px;height:auto;padding:6px 14px}.media-upload-form div.error,.notice,.wrap div.error,.wrap div.updated{margin:20px 0 10px;padding:5px 10px;font-size:14px;line-height:175%}.wp-core-ui .notice.is-dismissible{padding-right:46px}.notice-dismiss{padding:13px}.wrap .icon32+h2{margin-top:-2px}.wp-responsive-open #wpbody{right:-190px}code{word-wrap:break-word}.postbox{font-size:14px}.metabox-holder h3{padding:12px}.postbox .handlediv{margin-top:3px}.subsubsub{font-size:16px;text-align:center;margin-bottom:15px}#templateside li{margin:0}#templateside li a{display:block;padding:5px}#templateside .highlight{padding:5px;margin-left:-5px;margin-top:-5px}#template div{margin:0}#template textarea{width:100%}.fileedit-sub .alignright{margin-top:15px}#comments-form .checkforspam,#wpfooter{display:none}.edit-comment-author{margin:2px 0 0}}@media screen and (max-width:600px){#wpwrap.wp-responsive-open,div#post-body.metabox-holder.columns-1{overflow-x:hidden}html.wp-toolbar{padding-top:0}#wpbody{padding-top:46px}}#pressthis-code-wrap,textarea{overflow:auto}@media screen and (max-width:320px){#network_dashboard_right_now .subsubsub{font-size:14px;text-align:left}}input,textarea{box-sizing:border-box}input[type=text],input[type=password],input[type=checkbox],input[type=color],input[type=date],input[type=datetime],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=radio],input[type=tel],input[type=time],input[type=url],input[type=week],input[type=search],select,textarea{border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07);background-color:#fff;color:#32373c;outline:0;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=text]:focus,input[type=password]:focus,input[type=checkbox]:focus,input[type=color]:focus,input[type=date]:focus,input[type=datetime]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=radio]:focus,input[type=tel]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,input[type=search]:focus,select:focus,textarea:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 2px rgba(30,140,190,.8);box-shadow:0 0 2px rgba(30,140,190,.8)}input[type=email],input[type=url]{direction:ltr}input[type=checkbox],input[type=radio]{border:1px solid #b4b9be;background:#fff;color:#555;clear:none;cursor:pointer;display:inline-block;line-height:0;height:16px;margin:-4px 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:middle;width:16px;min-width:16px;-webkit-appearance:none;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}#adminmenu,.network-admin.themes-php p.search-box{clear:left}input[type=radio]:checked+label:before{color:#82878c}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#00a0d2}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio],td>input[type=checkbox]{margin-top:0}.wp-admin p label input[type=checkbox]{margin-top:-4px}.wp-admin p label input[type=radio]{margin-top:-2px}input[type=radio]{-webkit-border-radius:50%;border-radius:50%;margin-right:4px;line-height:10px}input[type=checkbox]:checked:before,input[type=radio]:checked:before{float:left;display:inline-block;vertical-align:middle;width:16px;font:400 21px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=checkbox]:checked:before{content:'\f147';margin:-3px 0 0 -4px;color:#1e8cbe}input[type=radio]:checked:before{content:'\2022';text-indent:-9999px;-webkit-border-radius:50px;border-radius:50px;font-size:24px;width:6px;height:6px;margin:4px;line-height:16px;background-color:#1e8cbe}@-moz-document url-prefix(){.form-table input.tog,input[type=checkbox],input[type=radio]{margin-bottom:-1px}}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration{display:none}.ie8 input[type=password]{font-family:sans-serif}button,input,select,textarea{font-family:inherit;font-size:inherit;font-weight:inherit}input,select,textarea{font-size:14px;-webkit-border-radius:0;border-radius:0}textarea{padding:2px 6px;line-height:1.4}.wp-admin input[type=file]{padding:3px 0}label{cursor:pointer}input,select{margin:1px;padding:3px 5px}input.code{padding-top:6px}textarea.code{line-height:1.4;padding:4px 6px 1px}input.readonly,input[readonly],textarea.readonly,textarea[readonly]{background-color:#eee}.wp-core-ui :-moz-placeholder,:-moz-placeholder{color:#a9a9a9}.form-invalid input,.form-invalid input:focus,.form-invalid select,.form-invalid select:focus{border-color:#dc3232!important;-webkit-box-shadow:0 0 2px rgba(204,0,0,.8);box-shadow:0 0 2px rgba(204,0,0,.8)}.form-table .form-required.form-invalid td:after{content:'\f534';font:400 20px/1 dashicons;color:#dc3232;margin-left:-25px;vertical-align:middle}.form-input-tip{color:#666}input.disabled,input:disabled,select.disabled,select:disabled,textarea.disabled,textarea:disabled{background:rgba(255,255,255,.5);border-color:rgba(222,222,222,.75);-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.04);box-shadow:inset 0 1px 2px rgba(0,0,0,.04);color:rgba(51,51,51,.5)}input[type=file].disabled,input[type=file]:disabled,input[type=range].disabled,input[type=range]:disabled{background:0 0;-webkit-box-shadow:none;box-shadow:none}.wp-admin select{padding:2px;line-height:28px;height:28px;vertical-align:middle}.wp-admin .button-cancel{padding:0 5px;line-height:2}.wp-admin select[multiple]{height:auto}.submit{padding:1.5em 0;margin:5px 0;-webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px;border:none}p.submit{text-align:left;margin-top:20px;padding-top:10px}.textright p.submit{border:none;text-align:right}table.form-table+input+input+p.submit,table.form-table+input+p.submit,table.form-table+p.submit{border-top:none;padding-top:0}#major-publishing-actions input,#minor-publishing-actions .preview,#minor-publishing-actions input{text-align:center}input.all-options,textarea.all-options{width:250px}input.large-text,textarea.large-text{width:99%}input.regular-text{width:25em}input.small-text{width:50px;padding:1px 6px}input[type=number].small-text{width:65px}#doaction,#doaction2,#post-query-submit{margin:1px 8px 0 0}.tablenav #changeit,.tablenav #clear-recent-list,.tablenav #delete_all,.wp-filter #delete_all{margin-top:1px}.tablenav .actions select{float:left;margin-right:6px;max-width:200px}.ie8 .tablenav .actions select{width:155px}.ie8 .tablenav .actions select#cat{width:200px}#timezone_string option{margin-left:1em}#upload-form label{color:#777}button.wp-hide-pw>.dashicons{position:relative;top:3px}#your-profile label+a,fieldset label,label{vertical-align:middle}#misc-publishing-actions label,.options-media-php label[for*="_size_"]{vertical-align:baseline}#misc-publishing-actions label[for=post_status]:before{content:'\f173';display:inline-block;font:400 20px/1 dashicons;speak:none;left:-1px;padding:0 5px 0 0;position:relative;top:0;text-decoration:none!important;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#pass1-text,.pw-weak,.show-password #pass1{display:none}#pass-strength-result{background-color:#eee;border:1px solid #ddd;color:#23282d;margin:-2px 5px 5px 1px;padding:3px 5px;text-align:center;width:25em;box-sizing:border-box;opacity:0}#pass-strength-result,.color-option{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}#pass-strength-result.short{background-color:#f1adad;border-color:#e35b5b;opacity:1}#pass-strength-result.bad{background-color:#fbc5a9;border-color:#f78b53;opacity:1}#pass-strength-result.good{background-color:#ffe399;border-color:#ffc733;opacity:1}#pass-strength-result.strong{background-color:#c1e1b9;border-color:#83c373;opacity:1}#pass1-text.short,#pass1.short{border-color:#e35b5b}#pass1-text.bad,#pass1.bad{border-color:#f78b53}#pass1-text.good,#pass1.good{border-color:#ffc733}#pass1-text.strong,#pass1.strong{border-color:#83c373}.indicator-hint{padding-top:8px}.show-password #pass1-text{display:inline-block}.form-table span.description.important{font-size:12px}p.search-box{float:right;margin:0}.search-box input[name="s"],.tablenav .search-plugins input[name="s"],.tagsdiv .newtag{float:left;height:28px;margin:0 4px 0 0}input[type=text].ui-autocomplete-loading,input[type=email].ui-autocomplete-loading{background-image:url(../images/loading.gif);background-repeat:no-repeat;background-position:right center;visibility:visible}input.ui-autocomplete-input.open{border-bottom-color:transparent}ul#add-to-blog-users{margin:0 0 0 14px}.ui-autocomplete{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;border:1px solid #5b9dd9;-webkit-box-shadow:0 1px 2px rgba(30,140,190,.8);box-shadow:0 1px 2px rgba(30,140,190,.8);background-color:#fff}.ui-autocomplete li{margin-bottom:0;padding:4px 10px;text-align:left}.ui-autocomplete li.ui-state-focus{background-color:#ddd;cursor:pointer}.form-table{margin-top:.5em;width:100%;clear:both}.form-table,.form-table td,.form-table td p,.form-table th,.form-wrap label{font-size:14px}.form-table td{margin-bottom:9px;padding:15px 10px;line-height:1.3;vertical-align:middle}.form-table th,.form-wrap label{color:#23282d;font-weight:400;text-shadow:none;vertical-align:baseline}.form-table th{vertical-align:top;text-align:left;padding:20px 10px 20px 0;width:200px;line-height:1.3;font-weight:600}.form-table th.th-full{width:auto;font-weight:400}.form-table td p{margin-top:4px;margin-bottom:0}.form-table td fieldset label{margin:.25em 0 .5em!important;display:inline-block}.form-table td fieldset label,.form-table td fieldset li,.form-table td fieldset p{line-height:1.4em}.form-table input.tog,.form-table input[type=radio]{margin-top:-4px;margin-right:4px;float:none}.form-table .pre{padding:8px;margin:0}table.form-table td .updated{font-size:13px}table.form-table td .updated p{font-size:13px;margin:.3em 0}#profile-page .form-table textarea{width:500px;margin-bottom:6px}#profile-page .form-table #rich_editing{margin-right:5px}#your-profile legend{font-size:22px}#display_name{width:15em}#adduser .form-field input,#createuser .form-field input{width:25em}.color-option{display:inline-block;width:24%;padding:5px 15px 15px;box-sizing:border-box;margin-bottom:3px;cursor:pointer}.color-option.selected,.color-option:hover{background:#ddd}.color-palette{width:100%;border-spacing:0}.color-palette td{height:20px;padding:0;border:none}.tool-box .title{margin:8px 0;font-size:18px;font-weight:400;line-height:24px}.card{position:relative;margin-top:20px;padding:.7em 2em 1em;min-width:255px;max-width:520px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff}.pressthis h4{margin:2em 0 1em}.pressthis textarea{width:100%;font-size:1em}.pressthis-bookmarklet-wrapper{margin:20px 0 8px;vertical-align:top;position:relative;z-index:1}.pressthis-bookmarklet,.pressthis-bookmarklet:active,.pressthis-bookmarklet:focus,.pressthis-bookmarklet:hover{display:inline-block;position:relative;cursor:move;color:#32373c;background:#e6e6e6;-webkit-border-radius:5px;border-radius:5px;border:1px solid #b4b4b4;font-style:normal;line-height:16px;font-size:14px;text-decoration:none}.pressthis-bookmarklet:active{outline:0}.pressthis-bookmarklet:after{content:'';width:70%;height:55%;z-index:-1;position:absolute;right:10px;bottom:9px;background:0 0;-webkit-transform:skew(20deg) rotate(6deg);-ms-transform:skew(20deg) rotate(6deg);transform:skew(20deg) rotate(6deg);-webkit-box-shadow:0 10px 8px rgba(0,0,0,.6);box-shadow:0 10px 8px rgba(0,0,0,.6)}.pressthis-bookmarklet:hover:after{-webkit-transform:skew(20deg) rotate(9deg);-ms-transform:skew(20deg) rotate(9deg);transform:skew(20deg) rotate(9deg);-webkit-box-shadow:0 10px 8px rgba(0,0,0,.7);box-shadow:0 10px 8px rgba(0,0,0,.7)}.pressthis-bookmarklet span{display:inline-block;margin:0;padding:0 12px 8px 9px}.pressthis-js-toggle,.pressthis-js-toggle.button.button{margin-left:10px;padding:0;height:auto;vertical-align:top}.pressthis-bookmarklet span:before{color:#777;font:400 20px/1 dashicons;content:'\f157';position:relative;display:inline-block;top:4px;margin-right:4px}.pressthis-js-toggle .dashicons{margin:5px 8px 6px 7px;color:#777}#local-time,#utc-time{padding-left:25px;font-style:italic}.defaultavatarpicker .avatar{margin:2px 0;vertical-align:middle}.options-general-php input.small-text{width:56px}.options-general-php .spinner{float:none;margin:0 3px}.options-general-php .language-install-spinner,.settings-php .language-install-spinner{display:inline-block;float:none;margin:-3px 5px 0;vertical-align:middle}.setup-php textarea{max-width:100%}.form-field #site-address{max-width:25em}.form-field #domain{max-width:22em}.form-field #admin-email,.form-field #blog_last_updated,.form-field #blog_registered,.form-field #path,.form-field #site-title{max-width:25em}.form-field #path{margin-bottom:5px}#search-sites,#search-users{max-width:100%}.request-filesystem-credentials-dialog{display:none}.request-filesystem-credentials-dialog .notification-dialog{top:15%;max-height:85%}.request-filesystem-credentials-dialog-content{margin:25px}.request-filesystem-credentials-form input[type=text],.request-filesystem-credentials-form input[type=password]{display:block}.request-filesystem-credentials-dialog input[type=text],.request-filesystem-credentials-dialog input[type=password]{width:100%}.request-filesystem-credentials-form .field-title{font-weight:600}.request-filesystem-credentials-dialog label[for=hostname],.request-filesystem-credentials-dialog label[for=public_key],.request-filesystem-credentials-dialog label[for=private_key]{display:block;margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:left;width:48%}.request-filesystem-credentials-dialog .ftp-password{margin-left:4%}.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons{text-align:right}#request-filesystem-credentials-dialog .button:not(:last-child),.request-filesystem-credentials-dialog label[for=ftp]{margin-right:10px}#request-filesystem-credentials-form .cancel-button{display:none}#request-filesystem-credentials-dialog .cancel-button{display:inline}@media screen and (max-width:782px){textarea{-webkit-appearance:none}input[type=text],input[type=password],input[type=email],input[type=number],input[type=search]{-webkit-appearance:none;padding:6px 10px}input.code{padding-bottom:5px;padding-top:10px}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox],input[type=checkbox]{-webkit-appearance:none;padding:10px}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-bottom:8px}.widefat tfoot td input[type=checkbox]:before,.widefat th input[type=checkbox]:before,.widefat thead td input[type=checkbox]:before,input[type=checkbox]:checked:before{font:400 30px/1 Dashicons;margin:-3px -5px}input[type=checkbox],input[type=radio]{height:25px;width:25px}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio]{margin-top:-3px}input[type=radio]:checked:before{vertical-align:middle;width:9px;height:9px;margin:7px;line-height:16px}.wp-upload-form input[type=submit]{margin-top:10px}#wpbody select{height:36px;font-size:16px}.wp-admin .button-cancel{padding:0;font-size:14px}#adduser .form-field input,#createuser .form-field input{width:100%}.form-table{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table .color-palette td{display:table-cell;width:15px}.form-table table.color-palette{margin-right:10px}input,textarea{font-size:16px}#profile-page .form-table textarea,.form-table span.description,.form-table td input[type=text],.form-table td input[type=password],.form-table td input[type=email],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.form-table .form-required.form-invalid td:after{float:right;margin:-30px 3px 0 0}#wpbody .form-table td select{height:40px}.form-table input[type=text].small-text,input[type=text].small-text,input[type=password].small-text,input[type=number].small-text,input[type=search].small-text{width:auto;max-width:55px;display:inline;padding:3px 6px;margin:0 3px}#pass-strength-result{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:8px}p.search-box{float:none;position:absolute;bottom:0;width:98%;height:90px;margin-bottom:20px}p.search-box input[name="s"]{height:auto;float:none;width:100%;margin-bottom:10px;vertical-align:middle;-webkit-appearance:none}p.search-box input[type=submit]{margin-bottom:10px}.form-table span.description{display:inline;padding:4px 0 0;line-height:1.4em;font-size:14px}.form-table th{padding-top:10px;padding-bottom:0;border-bottom:0}.form-table td{margin-bottom:0;padding-bottom:6px;padding-top:4px;padding-left:0}.form-table.permalink-structure td code{margin-left:32px}.form-table.permalink-structure td input[type=text]{margin-left:32px;margin-top:4px;width:96%}.form-table input.regular-text{width:100%}.form-table label{font-size:14px}.form-table fieldset label{display:block}#utc-time{margin-top:10px}#local-time,#utc-time{display:block;float:none;padding:0;line-height:2}.form-field #domain{max-width:none}.wp-pwd{position:relative}.wp-pwd [type=text],.wp-pwd [type=password]{padding-right:40px}.wp-pwd button.button{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;line-height:2;margin:0;padding:5px 10px;position:absolute;right:0;top:0}.wp-pwd button.button:active,.wp-pwd button.button:focus,.wp-pwd button.button:hover{background:0 0}.wp-pwd .button .text{display:none}}@media only screen and (max-width:768px){.form-field input[type=text],.form-field input[type=password],.form-field input[type=email],.form-field select,.form-field textarea{width:99%}.form-wrap .form-field{padding:0}#profile-page .form-table textarea{max-width:400px;width:auto}}@media only screen and (max-height:480px){.request-filesystem-credentials-dialog .notification-dialog{width:100%;height:100%;max-height:100%;position:fixed;top:0;margin:0;left:0}}@media screen and (max-width:600px){.color-option{width:49%}}#adminmenu,#adminmenu .wp-submenu,#adminmenuback,#adminmenuwrap{width:160px;background-color:#23282d}#adminmenuback{position:fixed;top:0;bottom:-120px;z-index:1}#adminmenu{margin:12px 0;padding:0;list-style:none}.folded #adminmenu,.folded #adminmenu li.menu-top,.folded #adminmenuback,.folded #adminmenuwrap{width:36px}.icon16{height:18px;width:18px;padding:6px;margin:-6px 0 0 -8px;float:left}.icon16:before{color:#999;font:400 20px/1 dashicons;speak:none;padding:6px 0;height:34px;width:20px;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.icon16.icon-dashboard:before{content:'\f226'}.icon16.icon-post:before{content:'\f109'}.icon16.icon-media:before{content:'\f104'}.icon16.icon-links:before{content:'\f103'}.icon16.icon-page:before{content:'\f105'}.icon16.icon-comments:before{content:'\f101';margin-top:1px}.icon16.icon-appearance:before{content:'\f100'}.icon16.icon-plugins:before{content:'\f106'}.icon16.icon-users:before{content:'\f110'}.icon16.icon-tools:before{content:'\f107'}.icon16.icon-settings:before{content:'\f108'}.icon16.icon-site:before{content:'\f112'}.icon16.icon-generic:before{content:'\f111'}.icon16.icon-appearance,.icon16.icon-comments,.icon16.icon-dashboard,.icon16.icon-generic,.icon16.icon-links,.icon16.icon-media,.icon16.icon-page,.icon16.icon-plugins,.icon16.icon-post,.icon16.icon-settings,.icon16.icon-site,.icon16.icon-tools,.icon16.icon-users,.menu-icon-appearance div.wp-menu-image,.menu-icon-comments div.wp-menu-image,.menu-icon-dashboard div.wp-menu-image,.menu-icon-generic div.wp-menu-image,.menu-icon-links div.wp-menu-image,.menu-icon-media div.wp-menu-image,.menu-icon-page div.wp-menu-image,.menu-icon-plugins div.wp-menu-image,.menu-icon-post div.wp-menu-image,.menu-icon-settings div.wp-menu-image,.menu-icon-site div.wp-menu-image,.menu-icon-tools div.wp-menu-image,.menu-icon-users div.wp-menu-image{background-image:none!important}#adminmenuwrap{position:relative;float:left;z-index:9990}#adminmenu *{user-select:none}#adminmenu *,.theme-overlay .current-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}#adminmenu li{margin:0;padding:0;cursor:pointer}#adminmenu a{display:block;line-height:18px;padding:2px 5px;color:#eee}#adminmenu .wp-submenu a{color:#b4b9be;color:rgba(240,245,250,.7)}#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover{background:0 0}#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a:hover,#adminmenu li.menu-top>a:focus{color:#00b9eb}#adminmenu li.menu-top{border:none;min-height:34px;position:relative}#adminmenu .wp-submenu{list-style:none;position:absolute;top:-1000em;left:160px;overflow:visible}#adminmenu .wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu,.folded #adminmenu a.wp-has-current-submenu:focus+.wp-submenu{padding:7px 0 8px;z-index:9999;background-color:#32373c;-webkit-box-shadow:0 3px 5px rgba(0,0,0,.2);box-shadow:0 3px 5px rgba(0,0,0,.2)}#adminmenu a.menu-top:focus+.wp-submenu,.js #adminmenu .opensub .wp-submenu,.js #adminmenu .sub-open,.no-js li.wp-has-submenu:hover .wp-submenu{top:-1px}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu .wp-submenu.sub-open,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.no-js li.wp-has-current-submenu:hover .wp-submenu{position:relative;z-index:3;top:auto;left:auto;right:auto;bottom:auto;border:0;margin-top:0;-webkit-box-shadow:none;box-shadow:none;background-color:#32373c}#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{position:relative;background-color:#191e23;color:#00b9eb}.folded #adminmenu li.menu-top:hover,.folded #adminmenu li.opensub>a.menu-top,.folded #adminmenu li>a.menu-top:focus{z-index:10000}#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu .wp-menu-arrow,#adminmenu .wp-menu-arrow div,#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top,.folded #adminmenu li.wp-has-current-submenu{background:#0073aa;color:#fff}.folded #adminmenu .opensub .wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open,.folded #adminmenu .wp-has-current-submenu a.menu-top:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu.opensub .wp-submenu,.folded #adminmenu .wp-submenu.sub-open,.folded #adminmenu a.menu-top:focus+.wp-submenu,.no-js.folded #adminmenu .wp-has-submenu:hover .wp-submenu{top:0;left:36px}.folded #adminmenu .wp-has-current-submenu .wp-submenu,.folded #adminmenu a.wp-has-current-submenu:focus+.wp-submenu{position:absolute;top:-1000em}#adminmenu .wp-not-current-submenu .wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{min-width:160px;width:auto}#adminmenu .wp-submenu a{font-size:13px;line-height:1.2;margin:0;padding:6px 0}#adminmenu .opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-not-current-submenu li>a,.folded #adminmenu .wp-has-current-submenu li>a{padding-right:16px;padding-left:14px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}#adminmenu .wp-has-current-submenu ul>li>a,.folded #adminmenu li.menu-top .wp-submenu>li>a{padding:6px 12px}#adminmenu .wp-submenu-head,#adminmenu a.menu-top{font-size:14px;font-weight:400;line-height:18px;padding:0}#adminmenu .wp-submenu-head{display:none}.folded #adminmenu .wp-menu-name{position:absolute;left:-999px}.folded #adminmenu .wp-submenu-head{display:block}#adminmenu .wp-submenu li{padding:0;margin:0;overflow:hidden}#adminmenu .wp-menu-image img{padding:9px 0 0;opacity:.6;filter:alpha(opacity=60)}#adminmenu div.wp-menu-name{padding:8px 0}#adminmenu div.wp-menu-image{float:left;width:36px;height:34px;margin:0;text-align:center}#adminmenu div.wp-menu-image.svg{background-repeat:no-repeat;background-position:center;-webkit-background-size:20px auto;background-size:20px auto}div.wp-menu-image:before{color:#a0a5aa;color:rgba(240,245,250,.6);padding:7px 0;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}#adminmenu div.wp-menu-image:before{color:#a0a5aa;color:rgba(240,245,250,.6)}#adminmenu .current div.wp-menu-image:before,#adminmenu .wp-has-current-submenu div.wp-menu-image:before,#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu a.wp-has-current-submenu:hover div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu:hover div.wp-menu-image:before{color:#fff}#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#00b9eb}.ie8 #adminmenu li.opensub div.wp-menu-image:before{color:#a0a5aa}.folded #adminmenu div.wp-menu-image{width:35px;height:30px;position:absolute;z-index:25}.folded #adminmenu a.menu-top{height:34px}.no-font-face #adminmenu .wp-menu-image{display:none}.no-font-face #adminmenu div.wp-menu-name{padding:8px 12px}.no-font-face.auto-fold #adminmenu .wp-menu-name{margin-left:0}.sticky-menu #adminmenuwrap{position:fixed}.wp-menu-arrow{display:none!important}ul#adminmenu a.wp-has-current-submenu{position:relative}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{right:0;border:8px solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-right-color:#f1f1f1;top:50%;margin-top:-8px}.folded ul#adminmenu li:hover a.wp-has-current-submenu:after{display:none}.folded ul#adminmenu a.wp-has-current-submenu:after,.folded ul#adminmenu>li a.current:after{border-width:4px;margin-top:-4px}#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{right:0;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-width:8px;top:10px;z-index:10000}.folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{border-width:4px;margin-top:-4px;top:18px}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-right-color:#32373c}#adminmenu li.menu-top:hover .wp-menu-image img,#adminmenu li.wp-has-current-submenu .wp-menu-image img{opacity:1;filter:alpha(opacity=100)}#adminmenu li.wp-menu-separator{height:5px;padding:0;margin:0 0 6px;cursor:inherit}#adminmenu div.separator{height:2px;padding:0}#collapse-button,#collapse-button div{height:15px;width:15px}#adminmenu .wp-submenu .wp-submenu-head{color:#fff;font-weight:400;font-size:14px;padding:8px 4px 8px 11px;margin:-7px 0 4px}#adminmenu li.current,.folded #adminmenu li.wp-menu-open{border:0}#adminmenu .awaiting-mod,#adminmenu .update-plugins{display:inline-block;background-color:#d54e21;color:#fff;font-size:9px;line-height:17px;font-weight:600;margin:1px 0 0 2px;vertical-align:top;-webkit-border-radius:10px;border-radius:10px;z-index:26}#adminmenu li .awaiting-mod span,#adminmenu li span.update-plugins span{display:block;padding:0 6px}#adminmenu li span.count-0,.folded #collapse-menu span{display:none}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod{background-color:#00b9eb;color:#fff}#collapse-menu{font-size:13px;line-height:34px;margin-top:10px;color:#a0a5aa;color:rgba(240,245,250,.6);-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}#collapse-menu:hover,#collapse-menu:hover #collapse-button div:after{color:#00b9eb}#collapse-button{float:left;margin:10px 8px 10px 11px;-webkit-border-radius:10px;border-radius:10px}#wpwrap #collapse-button div{padding:0}#collapse-button div:after{content:'\f148';display:block;line-height:15px;left:-3px;top:-3px;color:#a0a5aa;color:rgba(240,245,250,.6);font:400 20px/1 dashicons!important;speak:none;margin:0 auto;padding:0!important;position:relative;text-align:center;width:20px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.folded #collapse-button div:after,.rtl #collapse-button div:after{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.rtl.folded #collapse-button div:after{-webkit-transform:none;-ms-transform:none;transform:none}.customize-support #menu-appearance a[href="themes.php?page=custom-header"],.customize-support #menu-appearance a[href="themes.php?page=custom-background"],li#wp-admin-bar-menu-toggle{display:none}@media only screen and (max-width:960px){.auto-fold #wpcontent,.auto-fold #wpfooter{margin-left:36px}.auto-fold #adminmenu,.auto-fold #adminmenu li.menu-top,.auto-fold #adminmenuback,.auto-fold #adminmenuwrap{width:36px}.auto-fold #adminmenu .opensub .wp-submenu,.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu.sub-open,.auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus+.wp-submenu,.auto-fold #adminmenu .wp-has-current-submenu.opensub .wp-submenu,.auto-fold #adminmenu .wp-submenu.sub-open,.auto-fold #adminmenu a.menu-top:focus+.wp-submenu{top:0;left:36px}.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu,.auto-fold #adminmenu a.wp-has-current-submenu:focus+.wp-submenu{position:absolute;top:-1000em;margin-right:-1px;padding:7px 0 8px;z-index:9999}.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu{min-width:150px;width:auto}.auto-fold #adminmenu .wp-has-current-submenu li>a{padding-right:16px;padding-left:14px}.auto-fold #adminmenu li.menu-top .wp-submenu>li>a{padding-left:12px}.auto-fold #adminmenu .wp-menu-name{position:absolute;left:-999px}.auto-fold #adminmenu .wp-submenu-head{display:block}.auto-fold #collapse-menu span,.auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after{display:none}.auto-fold #adminmenu div.wp-menu-image{height:30px;width:34px;position:absolute;z-index:25}.auto-fold #adminmenu a.menu-top{height:34px}.auto-fold #adminmenu li.wp-menu-open{border:0}.auto-fold #adminmenu .wp-has-current-submenu.menu-top-last{margin-bottom:0}.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{border-width:4px;margin-top:-4px;top:16px}.auto-fold ul#adminmenu a.wp-has-current-submenu:after,.auto-fold ul#adminmenu>li a.current:after{border-width:4px;margin-top:-4px}.auto-fold #adminmenu li.menu-top:hover,.auto-fold #adminmenu li.opensub>a.menu-top,.auto-fold #adminmenu li>a.menu-top:focus{z-index:10000}.auto-fold #collapse-button div{background:0 0}.auto-fold #collapse-button div:after{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.rtl.auto-fold #collapse-button div:after{-webkit-transform:none;-ms-transform:none;transform:none}}@media screen and (max-width:782px){.auto-fold #wpcontent{position:relative;margin-left:0;padding-left:10px}.sticky-menu #adminmenuwrap{position:relative;z-index:auto;top:0}.auto-fold #adminmenu,.auto-fold #adminmenuback,.auto-fold #adminmenuwrap{position:absolute;width:190px;z-index:100}.auto-fold #adminmenuback,.auto-fold #adminmenuwrap{display:none}.auto-fold .wp-responsive-open #adminmenuback,.auto-fold .wp-responsive-open #adminmenuwrap{display:block}.auto-fold #adminmenu li.menu-top{width:100%}.auto-fold #adminmenu li a{font-size:16px;padding:5px}.auto-fold #adminmenu li.menu-top .wp-submenu>li>a{padding:10px 10px 10px 20px}.auto-fold #adminmenu .wp-menu-name{position:static;margin-left:35px}.auto-fold ul#adminmenu a.wp-has-current-submenu:after,.auto-fold ul#adminmenu>li.current>a.current:after{border-width:8px;margin-top:-8px}.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{display:none}#adminmenu .wp-submenu{position:relative;display:none}.auto-fold #adminmenu .selected .wp-submenu,.auto-fold #adminmenu .wp-menu-open .wp-submenu{position:relative;display:block;top:0;left:-1px;-webkit-box-shadow:none;box-shadow:none}.auto-fold #adminmenu .opensub .wp-submenu,.auto-fold #adminmenu .selected .wp-submenu:after,.auto-fold #adminmenu .wp-menu-open .wp-submenu:after{display:none}.auto-fold #adminmenu .selected .wp-submenu,.auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after{display:block}.auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus+.wp-submenu,.auto-fold #adminmenu a.menu-top:focus+.wp-submenu{position:relative;left:-1px;right:0;top:0}#adminmenu .wp-submenu .wp-submenu-head{display:none}#wp-responsive-toggle{position:fixed;top:5px;left:4px;padding-right:10px;z-index:99999;border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wpadminbar #wp-admin-bar-menu-toggle a{display:block;padding:0;overflow:hidden;outline:0;text-decoration:none;border:1px solid transparent;background:0 0;height:44px;margin-left:-1px}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#32373c}li#wp-admin-bar-menu-toggle{display:block}#wpadminbar #wp-admin-bar-menu-toggle a:hover{border:1px solid transparent}#wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{content:'\f228';display:inline-block;float:left;font:400 40px/45px Dashicons;vertical-align:middle;outline:0;margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;height:44px;width:50px;padding:0;border:none;text-align:center;text-decoration:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#00b9eb}}@media screen and (max-width:600px){#adminmenuback,#adminmenuwrap{display:none}.wp-responsive-open #adminmenuback,.wp-responsive-open #adminmenuwrap{display:block}.auto-fold #adminmenu{top:46px}}#wpbody-content #dashboard-widgets.columns-1 .postbox-container{width:100%}#wpbody-content #dashboard-widgets.columns-2 .postbox-container{width:49.5%}#wpbody-content #dashboard-widgets.columns-2 #postbox-container-2,#wpbody-content #dashboard-widgets.columns-2 #postbox-container-3,#wpbody-content #dashboard-widgets.columns-2 #postbox-container-4{float:right;width:50.5%}#wpbody-content #dashboard-widgets.columns-3 .postbox-container{width:33.5%}#wpbody-content #dashboard-widgets.columns-3 #postbox-container-1{width:33%}#wpbody-content #dashboard-widgets.columns-3 #postbox-container-3,#wpbody-content #dashboard-widgets.columns-3 #postbox-container-4{float:right}#dashboard-widgets .postbox-container,#wpbody-content #dashboard-widgets.columns-4 .postbox-container{width:25%}#dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container{border:none!important}.ie8 #wpbody-content #dashboard-widgets .postbox-container{width:49.5%}.ie8 #wpbody-content #dashboard-widgets #postbox-container-2,.ie8 #wpbody-content #dashboard-widgets #postbox-container-3,.ie8 #wpbody-content #dashboard-widgets #postbox-container-4{float:right;width:50.5%}.ie8 #dashboard-widgets #postbox-container-3 .empty-container,.ie8 #dashboard-widgets #postbox-container-4 .empty-container{border:0;height:0;min-height:0}#dashboard-widgets-wrap{overflow:hidden;margin:0 -8px}#dashboard-widgets .postbox .inside{margin-bottom:0}#dashboard-widgets .meta-box-sortables{margin:0 8px;min-height:100px}#the-comment-list td.comment p.comment-author{margin-top:0;margin-left:0}#the-comment-list p.comment-author img{float:left;margin-right:8px}#the-comment-list p.comment-author strong a{border:none}#the-comment-list td{vertical-align:top}#the-comment-list td.comment img{max-width:100%}.welcome-panel{position:relative;overflow:auto;margin:16px 0;padding:23px 10px 0;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;font-size:13px;line-height:2.1em}#activity-widget #the-comment-list .comment-item:first-child,#dashboard_right_now .sub,.js #dashboard_quick_press .drafts{border-top:1px solid #eee}.activity-block,.dashboard-widget-control-form,.mu-storage,.tablenav .actions,th.sortable a,th.sorted a{overflow:hidden}.welcome-panel h3{margin:0;font-size:21px;font-weight:400;line-height:1.2}.welcome-panel h4{margin:1.33em 0 0;font-size:16px}.welcome-panel li{font-size:14px}.welcome-panel p{color:#777}.welcome-panel a{text-decoration:none}.welcome-panel .about-description{font-size:16px;margin:0}.welcome-panel .welcome-panel-close{position:absolute;top:10px;right:10px;padding:10px 15px 10px 21px;font-size:13px;line-height:1.23076923;text-decoration:none}.welcome-panel .welcome-panel-close:before{position:absolute;top:8px;left:0;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.wp-core-ui .welcome-panel .button.button-hero{margin:15px 13px 3px 0;padding:12px 36px;height:auto;line-height:1.4285714;white-space:normal}.welcome-panel-content{margin-left:13px;max-width:1500px}.welcome-panel .welcome-panel-column-container{clear:both;position:relative}.welcome-panel .welcome-panel-column{width:32%;min-width:200px;float:left}.ie8 .welcome-panel .welcome-panel-column{min-width:230px}.welcome-panel .welcome-panel-column:first-child{width:36%}.welcome-panel-column p.hide-if-no-customize{margin-top:10px}.welcome-panel-column p{margin-top:7px;color:#464646}.welcome-panel .welcome-icon{background:0 0!important}.welcome-panel .welcome-icon:before{color:#82878c;font:400 20px/1 dashicons;speak:none;display:inline-block;padding:0 10px 0 0;top:-1px;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;vertical-align:top}.welcome-panel .welcome-edit-page:before,.welcome-panel .welcome-write-blog:before{content:'\f119';top:-3px}.welcome-panel .welcome-add-page:before{content:'\f132'}.welcome-panel .welcome-view-site:before{content:'\f115';top:-2px}.welcome-panel .welcome-widgets-menus:before{content:'\f116';top:-2px}.welcome-panel .welcome-comments:before{content:'\f117';top:-1px}.welcome-panel .welcome-learn-more:before{content:'\f118';top:-1px}.welcome-panel .welcome-widgets-menus{line-height:16px}.welcome-panel .welcome-panel-column ul{margin:.8em 1em 1em 0}.welcome-panel .welcome-panel-column li{line-height:16px;list-style-type:none;padding:0 0 8px}#dashboard_primary .inside{margin:0;padding:0}#dashboard_primary .dashboard-widget-control-form,#dashboard_primary .widget-loading{padding:12px 12px 0}body #dashboard-widgets .postbox form .submit{margin:0}.dashboard-widget-control-form p{margin-top:0}.rssSummary{color:#777;margin-top:4px}#dashboard_primary .rss-widget{border-bottom:1px solid #eee;font-size:13px;padding:8px 12px 10px}#dashboard_primary .rss-widget:last-child{border-bottom:none;padding-bottom:8px}#dashboard_primary .rss-widget a{font-weight:400}#dashboard_primary .rss-widget span,#dashboard_primary .rss-widget span.rss-date{color:#777}#dashboard_primary .rss-widget span.rss-date{margin-left:12px}#dashboard_primary .rss-widget ul li{margin-bottom:8px}#dashboard_right_now ul{margin:0;display:inline-block;width:100%}#dashboard_right_now li{width:50%;float:left;margin-bottom:10px}#dashboard_right_now .inside{padding:0}#dashboard_right_now .main{padding:0 12px 11px}#dashboard_right_now .main p{margin:0}#dashboard_right_now #wp-version-message .button{float:right;position:relative;top:-5px;margin-left:5px}#dashboard-widgets h4.mu-storage{margin-bottom:10px}#dashboard_right_now li a:before,#dashboard_right_now li span:before{color:#82878c}#dashboard_right_now .sub{color:#777;background:#f5f5f5;padding:10px 12px 6px}#dashboard_right_now .sub h4{color:#555}#dashboard_right_now .sub p{margin:0 0 1em}#dashboard_right_now .warning a:before,#dashboard_right_now .warning span:before{color:#d54e21}#dashboard_quick_press .drafts li time,#title-wrap #title-prompt-text,.textarea-wrap #content-prompt-text{color:#777}#dashboard_right_now li a:before,#dashboard_right_now li span:before{content:'\f159';font:400 20px/1 dashicons;speak:none;display:block;float:left;margin:0 5px 0 0;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;text-decoration:none!important}#dashboard_right_now .page-count a:before,#dashboard_right_now .page-count span:before{content:'\f105'}#dashboard_right_now .post-count a:before,#dashboard_right_now .post-count span:before{content:'\f109'}#dashboard_right_now .comment-count a:before{content:'\f101'}#dashboard_right_now .comment-mod-count a:before{content:'\f125'}#dashboard_right_now .storage-count a:before{content:'\f104'}#dashboard_right_now .storage-count.warning a:before{content:'\f153'}#dashboard_quick_press .inside{margin:0;padding:0}#dashboard_quick_press div.updated{margin-bottom:10px;border:1px solid #eee;border-width:1px 1px 1px 0}#dashboard_quick_press form{margin:12px}#dashboard_quick_press .drafts,#dashboard_quick_press .easy-blogging{padding:10px 0 0}input#save-post{float:left}form.initial-form.quickpress-open label.prompt{font-style:normal}form.initial-form.quickpress-open input#title{height:auto}#dashboard_quick_press input,#dashboard_quick_press textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0}#dashboard_quick_press textarea{resize:vertical}#description-wrap{margin-top:12px}.input-text-wrap,.textarea-wrap{position:relative}.input-text-wrap .prompt,.textarea-wrap .prompt{position:absolute}.textarea-wrap #content-prompt-text{font-size:1.1em;padding:7px 8px}.textarea-wrap textarea#content{margin:0 0 8px;padding:6px 7px}#quick-press textarea#content{min-height:90px;max-height:1300px;resize:none}#dashboard_quick_press .drafts abbr{border:none}#dashboard_quick_press .drafts h4{margin:0 12px 8px;font-weight:400}#dashboard_quick_press .drafts .view-all{float:right;margin:0 12px 0 0}#dashboard_primary a.rsswidget{font-weight:400}#dashboard_quick_press .drafts ul{margin:0 12px}#dashboard_quick_press .drafts li{margin-bottom:1em}#dashboard_quick_press .drafts p{margin:0;word-wrap:break-word}#dashboard_quick_press .draft-title a,#dashboard_quick_press .draft-title time{margin:0 5px 0 0}#dashboard-widgets #dashboard_activity h4{margin:0 0 8px 12px;font-weight:400}#dashboard-widgets #dashboard_activity h4.comment-meta{margin:0}#dashboard_activity h4.comment-meta{margin-bottom:4px}#dashboard_activity ul{padding:0 12px}#dashboard_activity .comment-meta span.approve:before{content:'\f227';font:20px/.5 dashicons;margin-left:12px;vertical-align:middle;position:relative;top:-1px;margin-right:2px}#dashboard_activity .inside{padding:0;margin:0}#dashboard_activity .no-activity{overflow:hidden;padding:0 12px 12px;text-align:center}#dashboard_activity .no-activity p{color:#999;font-size:16px}#dashboard_activity .no-activity .smiley{margin-top:0}#dashboard_activity .no-activity .smiley:before{content:'\f328';font:400 120px/1 dashicons;speak:none;display:block;margin:0 5px 0 0;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;text-decoration:none!important}#dashboard_activity .subsubsub{float:none;border-top:1px solid #eee;margin-top:0;padding:8px 12px 4px}#future-posts ul,#published-posts ul{clear:both;margin-bottom:0}#future-posts li,#published-posts li{margin-bottom:8px}#future-posts ul span,#published-posts ul span{display:inline-block;margin-right:5px;min-width:150px;color:#777}.activity-block{border-bottom:1px solid #eee;padding:8px 0 4px}.activity-block:last-child{border-bottom:none}.activity-block .subsubsub li{color:#ddd}#activity-widget #the-comment-list div.undo,#activity-widget #the-comment-list tr.undo{background:0 0;padding:6px 0;margin-left:12px}#activity-widget #the-comment-list .comment-item{background:#fafafa;padding:12px;position:relative}#activity-widget #the-comment-list .avatar{position:absolute;top:13px}#activity-widget #the-comment-list .dashboard-comment-wrap{padding-left:63px}#activity-widget #the-comment-list .dashboard-comment-wrap blockquote{margin:1em 0}#activity-widget #the-comment-list .comment-item h4{font-size:13px;color:#999}#activity-widget #the-comment-list .comment-item p.row-actions{margin:4px 0 0}#activity-widget #the-comment-list .unapproved{background-color:#fef7f1}#activity-widget #the-comment-list .unapproved:before{content:"";display:block;position:absolute;left:0;top:0;bottom:0;background:#d54e21;width:4px}#activity-widget #the-comment-list .spam-undo-inside .avatar,#activity-widget #the-comment-list .trash-undo-inside .avatar{position:relative;top:0}#dashboard-widgets #dashboard_browser_nag.postbox .inside{margin:10px}.edit-box{display:none}h3:hover .edit-box{display:inline}#dashboard-widgets form .input-text-wrap input,#dashboard-widgets form .textarea-wrap textarea{width:100%}#dashboard-widgets .postbox form .submit{float:none;margin:.5em 0 0;padding:0;border:none}#dashboard-widgets-wrap #dashboard-widgets .postbox form .submit #publish{min-width:0}#dashboard-widgets a{text-decoration:none}#dashboard-widgets h3 a,#dashboard_browser_nag a{text-decoration:underline}#dashboard-widgets h3 .postbox-title-action{position:absolute;right:10px;padding:0;top:5px}.js #dashboard-widgets h3 .postbox-title-action{right:33px}#dashboard-widgets h4{color:#23282d;font-weight:400;font-size:14px;margin:0 0 .2em;padding:0}#dashboard_plugins h5{font-size:14px}#latest-comments #the-comment-list{position:relative}#activity-widget #the-comment-list .comment,#activity-widget #the-comment-list .pingback{-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.06);box-shadow:inset 0 1px 0 rgba(0,0,0,.06)}#activity-widget .comments #the-comment-list .alt{background-color:transparent}#activity-widget #latest-comments #the-comment-list .comment-item{padding:1em 12px}#latest-comments #the-comment-list .pingback{padding-left:12px!important}#latest-comments #the-comment-list .comment-item:first-child{border-top:none}#latest-comments #the-comment-list .comment-item h4{line-height:1.5em;margin-top:0;color:#666}#latest-comments #the-comment-list .comment-item h4 cite{font-style:normal;font-weight:400}#latest-comments #the-comment-list .comment-item blockquote,#latest-comments #the-comment-list .comment-item blockquote p{margin:0;padding:0;display:inline}#latest-comments #the-comment-list .comment-item p.row-actions{margin:3px 0 0;padding:0;font-size:13px}#description-wrap label,#title-wrap label{cursor:text}#title-wrap #title{padding:2px 6px;font-size:1.3em;outline:0}#title-wrap #title-prompt-text{font-size:1.1em;padding:5px 8px}.rss-widget ul{margin:0;padding:0;list-style:none}a.rsswidget{font-size:14px;font-weight:600;line-height:1.7em}.rss-widget ul li{line-height:1.5em;margin-bottom:12px}.rss-widget span.rss-date{color:#999;font-size:13px;margin-left:3px}.rss-widget cite{display:block;text-align:right;margin:0 0 1em;padding:0}.rss-widget cite:before{content:'\2014'}#dashboard_browser_nag a.update-browser-link{font-size:1.2em;font-weight:600}#dashboard_browser_nag a{color:#fff}#dashboard_browser_nag p.browser-update-nag.has-browser-icon{padding-right:125px}#dashboard_browser_nag .browser-icon{margin-top:-35px}#dashboard_browser_nag.postbox.browser-insecure{background-color:#ac1b1b;border-color:#ac1b1b}#dashboard_browser_nag.postbox{background-color:#e29808;background-image:none;border-color:#edc048;color:#fff;-webkit-box-shadow:none;box-shadow:none}#dashboard_browser_nag.postbox.browser-insecure h3{border-bottom-color:#cd5a5a;color:#fff}#dashboard_browser_nag.postbox h3{border-bottom-color:#f6e2ac;background:0 0;color:#fff;-webkit-box-shadow:none;box-shadow:none}#dashboard_browser_nag h3.hndle{border:none;font-weight:600;font-size:20px;padding-top:10px}.postbox#dashboard_browser_nag p a.dismiss{font-size:14px}.postbox#dashboard_browser_nag a,.postbox#dashboard_browser_nag p,.postbox#dashboard_browser_nag p.browser-update-nag{font-size:16px}@media only screen and (max-width:799px){#wpbody-content #dashboard-widgets .postbox-container{width:100%}}@media only screen and (min-width:800px) and (max-width:1499px){#dashboard-widgets #postbox-container-3 .empty-container,#dashboard-widgets #postbox-container-4 .empty-container,#wpbody #wpbody-content .metabox-holder.columns-1 .postbox-container .empty-container{border:0;height:0;min-height:0}#wpbody-content #dashboard-widgets .postbox-container{width:49.5%}#wpbody-content #dashboard-widgets #postbox-container-2,#wpbody-content #dashboard-widgets #postbox-container-3,#wpbody-content #dashboard-widgets #postbox-container-4{float:right;width:50.5%}#wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container{width:100%}.index-php .columns-prefs,.index-php .screen-layout{display:block}.columns-prefs .columns-prefs-3,.columns-prefs .columns-prefs-4{display:none}}@media only screen and (min-width:1500px) and (max-width:1800px){#wpbody-content #dashboard-widgets .postbox-container{width:33.5%}#wpbody-content #dashboard-widgets #postbox-container-1{width:33%}#wpbody-content #dashboard-widgets #postbox-container-3,#wpbody-content #dashboard-widgets #postbox-container-4{float:right}#dashboard-widgets #postbox-container-4 .empty-container{border:0;height:0;min-height:0}}@media screen and (max-width:870px){.welcome-panel .welcome-panel-column,.welcome-panel .welcome-panel-column:first-child{display:block;float:none;width:100%}.welcome-panel .welcome-panel-column li{display:inline-block;margin-right:13px}.welcome-panel .welcome-panel-column ul{margin:.4em 0 0}}@media screen and (max-width:782px){#dashboard_recent_comments #the-comment-list .comment-item .avatar{height:30px;width:30px;margin:4px 10px 5px 0}}@media screen and (max-width:600px){.welcome-panel .welcome-panel-close{overflow:hidden;text-indent:40px;white-space:nowrap;width:20px;height:20px;padding:5px;top:5px;right:5px}.welcome-panel .welcome-panel-close:before{font-size:20px;top:5px;left:-35px}}.response-links{display:block;margin-bottom:1em}.response-links a{display:block}.response-links a.comments-edit-item-link{font-weight:600}.response-links a.comments-view-item-link{font-size:12px}.post-com-count-wrapper strong{font-weight:400}.comments-view-item-link{display:inline-block;clear:both}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:nowrap;word-wrap:normal}.column-comments .post-com-count,.column-response .post-com-count{display:inline-block;vertical-align:top}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:5px}.column-comments .comment-count-approved,.column-comments .comment-count-no-comments,.column-response .comment-count-approved,.column-response .comment-count-no-comments{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;padding:0 8px;min-width:24px;height:2em;-webkit-border-radius:5px;border-radius:5px;background-color:#72777c;color:#fff;font-size:11px;line-height:21px;text-align:center}.ie8 .column-comments .comment-count-approved,.ie8 .column-comments .comment-count-no-comments,.ie8 .column-response .comment-count-approved,.ie8 .column-response .comment-count-no-comments{min-width:0}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:"";display:block;margin-left:8px;width:0;height:0;border-top:5px solid #72777c;border-right:5px solid transparent}.column-comments .post-com-count-approved:focus .comment-count-approved,.column-comments .post-com-count-approved:hover .comment-count-approved,.column-response .post-com-count-approved:focus .comment-count-approved,.column-response .post-com-count-approved:hover .comment-count-approved{background:#0073aa}.column-comments .post-com-count-approved:focus:after,.column-comments .post-com-count-approved:hover:after,.column-response .post-com-count-approved:focus:after,.column-response .post-com-count-approved:hover:after{border-top-color:#0073aa}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:relative;left:-3px;padding:0 5px;min-width:7px;height:17px;border:2px solid #fff;-webkit-border-radius:11px;border-radius:11px;background:#ca4a1f;color:#fff;font-size:9px;line-height:17px;text-align:center}.commentlist li{padding:1em 1em .2em;margin:0;border-bottom:1px solid #ccc}.commentlist li li{border-bottom:0;padding:0}.commentlist p{padding:0;margin:0 0 .8em}#submitted-on,.submitted-on{color:#777}#replyrow td{padding:2px}#replysubmit{margin:0;padding:0 5px 3px;text-align:center}#replysubmit .button{margin-right:5px}#replysubmit .error{color:red;line-height:21px;text-align:center}#replyrow h5{margin:.2em 0 0;padding:0 5px;line-height:1.4em;font-size:1em}#commentsdiv #edithead .inside,#edithead .inside{float:left;padding:3px 0 2px 5px;margin:0;text-align:center}#edithead .inside input{width:180px}#edithead label{padding:2px 0}#replycontainer{padding:5px}#replycontent{height:120px;-webkit-box-shadow:none;box-shadow:none}#replyerror{border-color:#ddd;background-color:#f9f9f9}.commentlist .avatar{vertical-align:text-top}#the-comment-list div.undo,#the-comment-list tr.undo{background-color:#f4f4f4}#the-comment-list .unapproved td,#the-comment-list .unapproved th{background-color:#fef7f1}#the-comment-list .unapproved th.check-column{border-left:4px solid #d54e21}#the-comment-list .unapproved th.check-column input{margin-left:4px}#the-comment-list .approve a{color:#006505}#the-comment-list .unapprove a{color:#d98500}.sorting-indicator:before,th .comment-grey-bubble:before{speak:none;-moz-osx-font-smoothing:grayscale;position:relative;text-decoration:none!important;color:#444}#the-comment-list td,#the-comment-list th{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}#the-comment-list tr:last-child td,#the-comment-list tr:last-child th{-webkit-box-shadow:none;box-shadow:none}#the-comment-list tr.unapproved+tr.approved td,#the-comment-list tr.unapproved+tr.approved th{border-top:1px solid rgba(0,0,0,.03)}.vim-current,.vim-current td,.vim-current th{background-color:#e4f2fd!important}th .comment-grey-bubble{height:16px;width:16px}th .comment-grey-bubble:before{content:'\f101';font:400 20px/.5 dashicons;display:inline-block;padding:0;top:4px;left:-4px;vertical-align:top;-webkit-font-smoothing:antialiased}.sorting-indicator:before,th.desc a:focus span.sorting-indicator:before,th.desc:hover span.sorting-indicator:before,th.sorted.asc .sorting-indicator:before{content:'\f142'}table.fixed{table-layout:fixed}.fixed .column-rating,.fixed .column-visible{width:8%}.fixed .column-author,.fixed .column-date,.fixed .column-format,.fixed .column-links,.fixed .column-parent,.fixed .column-posts{width:10%}.fixed .column-posts{width:74px}.fixed .column-comment .comment-author{display:none}.fixed .column-categories,.fixed .column-rel,.fixed .column-response,.fixed .column-role,.fixed .column-tags{width:15%}.fixed .column-slug{width:25%}.fixed .column-locations{width:35%}.fixed .column-comments{width:5.5em;padding:8px 0;text-align:left}.fixed .column-comments .vers{padding-left:3px}td.column-title strong,td.plugin-title strong{display:block;margin-bottom:.2em;font-size:14px}td.column-title p,td.plugin-title p{margin:6px 0}table.media .column-title .media-icon{float:left;min-height:60px;margin:0 9px 0 0}table.media .column-title .media-icon img{max-width:60px;height:auto;vertical-align:top}table.media .column-title .has-media-icon~.row-actions{margin-left:70px}table.media .column-title .filename{margin-bottom:.2em}.wp-list-table a{-webkit-transition:none;transition:none}#the-list tr:last-child td,#the-list tr:last-child th{border-bottom:none!important;-webkit-box-shadow:none;box-shadow:none}#comments-form .fixed .column-author{width:20%}#commentsdiv.postbox .inside{margin:0;padding:0}#commentsdiv .inside .row-actions{line-height:18px}#commentsdiv .inside .column-author{width:25%}#commentsdiv .column-comment p{margin:.6em 0;padding:0}#commentsdiv #replyrow td{padding:0}#commentsdiv p{padding:8px 10px;margin:0}#commentsdiv .comments-box{border:0}#commentsdiv .comments-box thead td,#commentsdiv .comments-box thead th{background:0 0;padding:0 7px 4px;font-style:italic}#commentsdiv .comments-box tr:last-child td{border-bottom:0 none}#commentsdiv #edithead .inside input{vertical-align:middle;width:160px}.sorting-indicator{display:none;width:10px;height:4px;margin-top:8px;margin-left:7px}.sorting-indicator:before{font:400 20px/1 dashicons;display:inline-block;padding:0;top:-4px;left:-8px;line-height:10px;vertical-align:top;-webkit-font-smoothing:antialiased}.column-comments .sorting-indicator:before{top:0;left:-10px}.wp-list-table .toggle-row:before,th.asc a:focus span.sorting-indicator:before,th.asc:hover span.sorting-indicator:before,th.sorted.desc .sorting-indicator:before{content:'\f140'}.wp-list-table .toggle-row{position:absolute;right:8px;top:10px;display:none;padding:0;width:40px;height:40px;border:none;outline:0;background:0 0}.wp-list-table .toggle-row:hover{cursor:pointer}.wp-list-table .toggle-row:focus:before{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ie8 .wp-list-table .toggle-row:focus:before{outline:#5b9dd9 solid 1px}.wp-list-table .toggle-row:active{-webkit-box-shadow:none;box-shadow:none}.wp-list-table .toggle-row:before{position:absolute;top:-5px;left:10px;-webkit-border-radius:50%;border-radius:50%;display:block;padding:1px 2px 1px 0;color:#666;font:400 20px/1 dashicons;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:none}.wp-list-table .is-expanded .toggle-row:before{content:'\f142'}tr.wp-locked .locked-indicator{margin-left:6px;height:20px;width:16px}tr.wp-locked .locked-indicator:before{color:#82878c;content:'\f160';display:inline-block;float:left;font:400 20px/1 dashicons;speak:none;vertical-align:middle;margin-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}tr.wp-locked .check-column input[type=checkbox],tr.wp-locked .check-column label,tr.wp-locked .row-actions .inline,tr.wp-locked .row-actions .trash{display:none}tr .locked-info{height:0;opacity:0}tr.wp-locked .locked-info{margin-top:8px;height:auto;opacity:1}.locked-text{vertical-align:top}tr.locked-info,tr.wp-locked .locked-info{-webkit-transition:height 1s,opacity .5s;transition:height 1s,opacity .5s}.fixed .column-comments .sorting-indicator{margin-top:3px}#menu-locations-wrap .widefat{width:60%}.widefat th.sortable,.widefat th.sorted{padding:0}th.sortable a,th.sorted a{display:block;padding:7px 7px 8px 10px}.fixed .column-comments.sortable a,.fixed .column-comments.sorted a{padding:8px 0}th.sortable a span,th.sorted a span{float:left;cursor:pointer}th.asc a:focus span.sorting-indicator,th.asc:hover span.sorting-indicator,th.desc a:focus span.sorting-indicator,th.desc:hover span.sorting-indicator,th.sorted .sorting-indicator{display:block}.tablenav-pages a,.tablenav-pages-navspan{font-weight:600;padding:0 2px}.tablenav-pages .current-page{margin:0 2px 0 0;padding-bottom:5px;font-size:13px;text-align:center}.tablenav .total-pages{margin-right:2px}.tablenav #table-paging{margin-left:2px}.tablenav a.button-secondary{display:block;margin:3px 8px 0 0}.tablenav{clear:both;height:30px;margin:6px 0 4px;vertical-align:middle}.tablenav.themes{max-width:98%}.tablenav .tablenav-pages{float:right;height:28px;margin-top:3px;cursor:default;color:#555}.tablenav .no-pages,.tablenav .one-page .pagination-links{display:none}.tablenav .tablenav-pages a,.tablenav-pages span.current{text-decoration:none;padding:3px 6px}.tablenav .tablenav-pages a,.tablenav-pages-navspan{display:inline-block;min-width:17px;border:1px solid #d2d2d2;padding:3px 5px 7px;background:#e4e4e4;font-size:16px;line-height:1;font-weight:400;text-align:center}.tablenav-pages-navspan{height:16px;border-color:#e8e8e8;background:#ebebeb;color:#b4b4b4}.tablenav .tablenav-pages a:focus,.tablenav .tablenav-pages a:hover{border-color:#5b9dd9;color:#fff;background:#00a0d2;-webkit-box-shadow:none;box-shadow:none;outline:0}.tablenav .displaying-num{margin-right:7px}.tablenav .one-page .displaying-num{display:inline-block;margin-top:5px;margin-right:0}.tablenav .actions{padding:2px 8px 0 0}.wp-filter .actions{display:inline-block;vertical-align:middle}.tablenav .delete{margin-right:20px}.tablenav .dots{border-color:transparent}.tablenav .next,.tablenav .prev{border-color:transparent;color:#0073aa}.tablenav .next:hover,.tablenav .prev:hover{border-color:transparent;color:#00a0d2}.tablenav .view-switch{float:right;margin:0 5px;padding-top:3px}.wp-filter .view-switch{display:inline-block;vertical-align:middle;padding:12px 0;margin:0 8px 0 2px}.media-toolbar.wp-filter .view-switch{margin:0 12px 0 2px}.view-switch a{float:left;width:28px;height:28px;text-align:center;line-height:24px;text-decoration:none}.view-switch a:before{color:#b4b9be;display:inline-block;font:400 20px/1 dashicons;speak:none;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.view-switch a:focus:before,.view-switch a:hover:before{color:#727272}.view-switch a.current:before{color:#0073aa}.view-switch .view-list:before{content:'\f163'}.view-switch .view-excerpt:before{content:'\f164'}.view-switch .view-grid:before{content:'\f509'}.filter{float:left;margin:-5px 0 0 10px}.filter .subsubsub{margin-left:-10px;margin-top:13px}.screen-per-page{width:4em}#posts-filter .wp-filter{margin-bottom:0}#posts-filter fieldset{float:left;margin:0 1.5ex 1em 0;padding:0}#posts-filter fieldset legend{padding:0 0 .2em 1px}.row-actions,.row-actions-visible{padding:2px 0 0}p.pagenav{margin:0;display:inline}.pagenav span{font-weight:600;margin:0 6px}.row-title{font-size:14px!important;font-weight:600}.column-comment .comment-author{margin-bottom:.6em}.column-author img,.column-comment .comment-author img,.column-username img{float:left;margin-right:10px;margin-top:1px}.row-actions{color:#ddd;font-size:13px}.mobile .row-actions,.row-actions.visible,div.comment-item:hover .row-actions,tr:hover .row-actions{visibility:visible}#wpbody-content .inline-edit-row fieldset{font-size:12px;float:left;margin:0;padding:0;width:100%}#wpbody-content .inline-edit-row fieldset .inline-edit-col,tr.inline-edit-row td{padding:0 .5em}#wpbody-content .quick-edit-row-post .inline-edit-col-left{width:40%}#wpbody-content .quick-edit-row-post .inline-edit-col-right{width:39%}#wpbody-content .inline-edit-row-post .inline-edit-col-center{width:20%}#wpbody-content .quick-edit-row-page .inline-edit-col-left{width:50%}#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .quick-edit-row-page .inline-edit-col-right{width:49%}#wpbody-content .bulk-edit-row .inline-edit-col-left{width:30%}#wpbody-content .bulk-edit-row-page .inline-edit-col-right{width:69%}#wpbody-content .bulk-edit-row .inline-edit-col-bottom{float:right;width:69%}#bulk-titles div a,.inline-edit-row fieldset .inline-edit-date,.plugin-card,.quick-edit-row-post fieldset label.inline-edit-status{float:left}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:27px}.inline-edit-row fieldset .inline-edit-group{clear:both;line-height:2.5}.inline-edit-row fieldset .inline-edit-group:after{content:".";display:block;height:0;clear:both;visibility:hidden}.inline-edit-row p.submit{clear:both;padding:.5em;margin:.5em 0 0}.inline-edit-row span.error{line-height:22px;margin:0 15px;padding:3px 5px}.inline-edit-row h4{margin:.2em 0;padding:0;line-height:2.5;text-transform:uppercase}.inline-edit-row fieldset span.checkbox-title,.inline-edit-row fieldset span.title{margin:0;padding:0;font-style:italic}.inline-edit-row fieldset label,.inline-edit-row fieldset span.inline-edit-categories-label{display:block;margin:.2em 0;line-height:2.5}.inline-edit-row fieldset.inline-edit-date label{display:inline-block;margin:0;line-height:1.5;vertical-align:baseline}.inline-edit-row fieldset label.inline-edit-tags{margin-top:0}.inline-edit-row fieldset label.inline-edit-tags span.title{margin:.2em 0;width:auto}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{display:block;float:left;width:6em;line-height:2.5}#posts-filter fieldset.inline-edit-date legend{padding:0}.inline-edit-row fieldset.inline-edit-date select{margin:1px;line-height:28px}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{display:block;margin-left:6em}.quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto;padding-right:.5em}.inline-edit-row .inline-edit-or{margin:.2em 6px .2em 0;line-height:2.5}.inline-edit-row .input-text-wrap input[type=text]{width:100%}.inline-edit-row fieldset label input[type=checkbox]{vertical-align:middle}.inline-edit-row fieldset label textarea{width:100%;height:4em;vertical-align:top}#bulk-titles,ul.cat-checklist{height:12em;border:1px solid #ddd;overflow-y:scroll;padding:0 5px}#wpbody-content .bulk-edit-row fieldset .inline-edit-group label{max-width:50%}#wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child{margin-right:.5em}.inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input{width:6em}.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{font-size:12px;width:2.3em}.inline-edit-row fieldset input[name=aa]{font-size:12px;width:3.5em}.inline-edit-row fieldset label input.inline-edit-password-input{width:8em}ul.cat-checklist{margin:0;background-color:#fff}#bulk-titles{display:block;margin:0 0 5px;line-height:140%}.inline-edit-row fieldset ul.cat-checklist input,.inline-edit-row fieldset ul.cat-checklist li{margin:0;position:relative}.inline-edit-row #bulk-titles div,.inline-edit-row fieldset ul.cat-checklist label{font-style:normal;font-size:11px}.inline-edit-row fieldset label input.inline-edit-menu-order-input{width:3em}.inline-edit-row fieldset label input.inline-edit-slug-input{width:75%}.inline-edit-row #post_parent,.inline-edit-row select[name=page_template]{max-width:80%}.ie8 .inline-edit-row #post_parent,.ie8 .inline-edit-row select[name=page_template]{width:250px}#bulk-titles div{margin:.2em .3em}#bulk-titles div a{cursor:pointer;display:block;height:18px;margin:0 3px 0 -2px;overflow:hidden;position:relative;width:20px}#bulk-titles div a:before{position:relative;top:-3px}.plugins tbody,.plugins tbody th.check-column{padding:8px 0 0 2px}.plugins tbody th.check-column input[type=checkbox]{margin-top:4px}#update-plugins-table tbody td p{margin-top:0}#update-plugins-table tbody td p strong{font-size:14px}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-left:6px}#update-plugins-table tfoot td.check-column,#update-plugins-table thead td.check-column{padding-top:11px}.plugins,.plugins td,.plugins th{color:#000}.plugins tr{background:#fff}.plugins p{margin:0 4px;padding:0}.plugins .desc p{margin:0 0 8px}.plugins td.desc{line-height:1.5em}.plugins .desc ol,.plugins .desc ul{margin:0 0 0 2em}.plugins .desc ul{list-style-type:disc}.plugins .row-actions{font-size:13px}.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th{padding:10px 9px}.plugins .active td,.plugins .active th{background-color:#f7fcfe}.plugins .update td,.plugins .update th{border-bottom:0}.plugin-update-tr td{border-top:0}.plugin-install #the-list td,.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th,.upgrade .plugins td,.upgrade .plugins th{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th,.plugins tr.active.plugin-update-tr+tr.inactive td,.plugins tr.active.plugin-update-tr+tr.inactive th{border-top:1px solid rgba(0,0,0,.03);-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1;box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1}.plugins .update td,.plugins .update th,.plugins .updated td,.plugins .updated th,.plugins tr.active+tr.inactive.update td,.plugins tr.active+tr.inactive.update th,.plugins tr.active+tr.inactive.updated td,.plugins tr.active+tr.inactive.updated th,.upgrade .plugins tr:last-of-type td,.upgrade .plugins tr:last-of-type th{-webkit-box-shadow:none;box-shadow:none}.plugins .active.update td,.plugins .active.update th,tr.active.update+tr.plugin-update-tr .plugin-update{background-color:#fef7f1}.plugin-update-tr.active td,.plugins .active th.check-column{border-left:4px solid #00a0d2}.plugins .active.update th.check-column,.plugins .active.update+.plugin-update-tr .plugin-update{border-left:4px solid #d54e21}#wpbody-content .plugins .plugin-title,#wpbody-content .plugins .theme-title{padding-right:12px;white-space:nowrap}.plugins .inactive .plugin-title strong{font-weight:400}.plugins .row-actions,.plugins .second{padding:0 0 5px}.plugins .update .row-actions,.plugins .update .second,.plugins .updated .row-actions,.plugins .updated .second{padding-bottom:0}.plugins-php .widefat tfoot td,.plugins-php .widefat tfoot th{border-top-style:solid;border-top-width:1px}.plugin-update-tr .update-message{font-size:13px;font-weight:400;margin:0 10px 8px 31px;padding:6px 12px 8px 40px;background-color:#f7f7f7;background-color:rgba(0,0,0,.03)}.plugin-card .install-now:before,.plugin-card .update-now:before,.plugin-update-tr .update-message:before{color:#d54e21;display:inline-block;font:400 20px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.plugin-card .update-now:before,.plugin-update-tr .update-message:before{content:'\f463'}.plugin-update-tr .update-message:before{margin:0 10px 0 -30px}.plugin-card .install-now:before,.plugin-card .update-now:before{margin:3px 5px 0 -2px}.plugin-card .updating-message:before,.plugin-update-tr .updating-message:before{content:'\f463';-webkit-animation:rotation 2s infinite linear;animation:rotation 2s infinite linear}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.plugin-card .updated-message:before,.plugin-update-tr .updated-message:before{color:#79ba49;content:'\f147'}.wp-list-table.plugins tbody tr.plugin-update-tr td.plugin-update{overflow:hidden;padding:0;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}tr.active+tr.plugin-update-tr .plugin-update{background-color:#f7fcfe}tr.active+tr.plugin-update-tr:not(.updated) .plugin-update .update-message{background-color:#fcf3ef}.plugin-install-php h3{clear:both}.plugin-install-php h4{margin:2.5em 0 8px}.plugin-install-php .wp-filter{margin-bottom:0}.plugin-group{overflow:hidden;margin-top:1.5em}.plugin-group h3{margin-top:0}.plugin-card{margin:0 8px 16px;width:48.5%;width:-webkit-calc(50% - 8px);width:calc(50% - 8px);background-color:#fff;border:1px solid #dedede;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.plugin-card:nth-child(odd){clear:both;margin-left:0}.plugin-card:nth-child(even){margin-right:0}@media screen and (min-width:1600px){.plugin-card{width:30%;width:-webkit-calc(33.1% - 8px);width:calc(33.1% - 8px)}.plugin-card:nth-child(odd){clear:none;margin-left:8px}.plugin-card:nth-child(even){margin-right:8px}.plugin-card:nth-child(3n+1){clear:both;margin-left:0}.plugin-card:nth-child(3n){margin-right:0}}.plugin-card-top{position:relative;padding:20px 20px 10px;min-height:135px}.plugin-action-buttons,div.action-links{margin:0}.plugin-card h4{margin:0 0 12px;font-size:18px;line-height:1.3}.plugin-card .desc,.plugin-card .name{margin-left:148px;margin-right:120px}.plugin-card .action-links{position:absolute;top:20px;right:20px;width:120px}.plugin-action-buttons{clear:right;float:right;margin-left:2em;margin-bottom:1em;text-align:right}.plugin-action-buttons li{margin-bottom:10px}.plugin-card-bottom{clear:both;padding:12px 20px;background-color:#fafafa;border-top:1px solid #dedede;overflow:hidden}.plugin-card-bottom .star-rating{display:inline}.plugin-card .column-rating{line-height:23px}.plugin-card .column-rating,.plugin-card .column-updated{margin-bottom:4px}.plugin-card .column-downloaded,.plugin-card .column-rating{float:left;clear:left;max-width:180px}.plugin-card .column-compatibility,.plugin-card .column-updated{text-align:right;float:right;clear:right;width:65%;width:-webkit-calc(100% - 180px);width:calc(100% - 180px)}.plugin-icon,.plugin-icon img{width:128px;height:128px}.plugin-card .column-compatibility span:before{font:400 20px/.5 dashicons;speak:none;display:inline-block;padding:0;top:4px;left:-2px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#444}.plugin-card .compatibility-incompatible:before{content:'\f158'}.plugin-card .compatibility-compatible:before{content:'\f147'}.plugin-icon{position:absolute;top:20px;left:20px;margin:0 20px 20px 0}.no-plugin-results{color:#999;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;text-align:center}.wp-list-table tr.site-deleted{background:#ff8573}.wp-list-table tr.site-spammed{background:#faafaa}.wp-list-table tr.site-archived{background:#ffebe8}.wp-list-table tr.site-mature{background:#fecac2}.sites.fixed .column-lastupdated,.sites.fixed .column-registered{width:20%}.sites.fixed .column-users{width:80px}@media screen and (max-width:1100px) and (min-width:782px),(max-width:480px){.plugin-card .action-links{position:static;margin-left:148px;width:auto}.plugin-action-buttons{float:none;margin:1em 0 0;text-align:left}.plugin-action-buttons li{display:inline-block;vertical-align:middle}.plugin-action-buttons li .button{margin-right:20px}.plugin-card .desc,.plugin-card .name{margin-right:0}.plugin-card .desc p:first-of-type{margin-top:0}}@media screen and (max-width:782px){.plugins #the-list tr td,.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th.check-column{border-top:none}.tablenav{height:auto}.tablenav.top{margin:20px 0 5px}.tablenav.bottom{position:relative;margin-top:15px}.tablenav br{display:none}.tablenav br.clear{display:block}.form-wrap>p,.tablenav .view-switch,.tablenav.top .actions,.tablenav.top .displaying-num,.tablenav.top .tablenav-pages.one-page,.wp-list-table th.column-primary~th,.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){display:none}.view-switch a{width:36px;height:36px;line-height:33px}.tablenav.bottom .displaying-num{position:absolute;right:0;top:11px;margin:0;font-size:14px}.tablenav .tablenav-pages{width:100%;height:auto;text-align:center;margin:0 0 25px}.tablenav.bottom .tablenav-pages{margin-top:25px}.tablenav.bottom .tablenav-pages.one-page{margin:15px 0 0;height:0}.tablenav-pages .pagination-links{font-size:16px}.tablenav-pages .pagination-links a,.tablenav-pages-navspan{padding:9px 16px 12px;font-size:18px}.tablenav-pages-navspan{height:18px}.tablenav-pages .pagination-links .current-page{padding:8px 9px 9px;font-size:16px}.comment-count{font-size:14px}.wp-list-table thead th.column-primary{width:100%}.wp-list-table tr th.check-column{display:table-cell;width:35px}.wp-list-table .column-primary .toggle-row{display:block}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){position:relative;clear:both;display:block;width:auto!important}.wp-list-table td.column-primary{padding-right:50px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){padding:3px 8px 3px 35%}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{position:absolute;left:10px;display:block;overflow:hidden;width:32%;content:attr(data-colname);white-space:nowrap;text-overflow:ellipsis}.wp-list-table .is-expanded td:not(.hidden){display:block!important;overflow:hidden}.column-posts,.widefat .num{text-align:left}#comments-form .fixed .column-author{display:none!important}.fixed .column-comment .comment-author{display:block}#the-comment-list .is-expanded td{-webkit-box-shadow:none;box-shadow:none}#the-comment-list .is-expanded td:last-child{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.post-com-count .screen-reader-text{position:static;width:auto;height:auto;margin:0}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:none}.column-comments .post-com-count [aria-hidden=true],.column-response .post-com-count [aria-hidden=true]{display:none}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:normal}.column-comments .post-com-count-wrapper>a,.column-response .post-com-count-wrapper>a{display:block}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:0;margin-right:.5em}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:static;height:auto;min-width:0;padding:0;border:none;-webkit-border-radius:0;border-radius:0;background:0 0;color:#bb2a2a;font-size:inherit;line-height:inherit;text-align:left}.column-comments .post-com-count-pending:hover,.column-response .post-com-count-pending:hover{color:#dc3232}.widefat tfoot .check-column,.widefat thead .check-column{padding:10px 0}.widefat *{word-wrap:normal}#wpbody-content .bulk-edit-row .inline-edit-col-bottom,#wpbody-content .bulk-edit-row .inline-edit-col-left,#wpbody-content .bulk-edit-row-page .inline-edit-col-right,#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .inline-edit-row-post .inline-edit-col-center,#wpbody-content .quick-edit-row-page .inline-edit-col-left,#wpbody-content .quick-edit-row-page .inline-edit-col-right,#wpbody-content .quick-edit-row-post .inline-edit-col-left,#wpbody-content .quick-edit-row-post .inline-edit-col-right{float:none;width:100%}#wpbody-content .bulk-edit-row fieldset .inline-edit-col label,#wpbody-content .bulk-edit-row fieldset .inline-edit-group label,#wpbody-content .quick-edit-row fieldset .inline-edit-col label,#wpbody-content .quick-edit-row fieldset .inline-edit-group label{max-width:none;float:none;margin-bottom:5px}#wpbody .bulk-edit-row fieldset select{display:block;width:100%;max-width:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.inline-edit-row #bulk-titles div,.inline-edit-row fieldset ul.cat-checklist label{font-size:16px}.wp-list-table.plugins .plugin-title strong,.wp-list-table.plugins .theme-title strong,table.plugin-install td.column-name strong{font-size:1.4em;line-height:1.6em}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{float:none}.inline-edit-row fieldset label.inline-edit-tags{padding:0 .5em}.inline-edit-row fieldset .inline-edit-col label.inline-edit-tags{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{margin-left:0}.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{width:3em}.inline-edit-row fieldset input[name=aa]{width:4.5em}.inline-edit-row .inline-edit-or{margin:0 6px 0 0}#bulk-titles div{margin:.8em .3em}.plugin-card,.plugin-update-tr .update-message{margin-left:0}#bulk-titles div a{height:22px}#wpbody-content #update-themes-table .plugin-title{width:auto}.link-manager-php #posts-filter{margin-top:25px}.link-manager-php .tablenav.bottom{overflow:hidden}.comments-box .toggle-row,.wp-list-table.plugins .toggle-row{display:none}#wpbody-content .wp-list-table.plugins td{display:block;width:auto;padding:10px 9px}#wpbody-content .wp-list-table.plugins .column-description{padding-top:2px}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-top:13px;padding-bottom:4px}.plugins #the-list .update td,.plugins #the-list .update th,.plugins #the-list tr>td:not(:last-child),.wp-list-table.plugins #the-list .theme-title{-webkit-box-shadow:none;box-shadow:none;border-top:none}.plugins tbody{padding:1px 0 0}.plugins .plugin-update-tr:before,.plugins tr.active+tr.inactive td.column-description,.plugins tr.active+tr.inactive th.check-column{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins .plugin-update-tr:before{content:'';display:table-cell}.plugins .active.update+.plugin-update-tr:before{border-left:4px solid #d54e21;background-color:#fef7f1}.plugins #the-list .plugin-update-tr .plugin-update{border-left:none}table.plugin-install .column-description,table.plugin-install .column-name,table.plugin-install .column-rating,table.plugin-install .column-version{display:block;width:auto}table.plugin-install th.column-description,table.plugin-install th.column-name,table.plugin-install th.column-rating,table.plugin-install th.column-version{display:none}table.plugin-install #the-list td{-webkit-box-shadow:none;box-shadow:none}table.plugin-install #the-list tr{display:block;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugin-card{margin-right:0;width:100%}}#save-action .spinner,#show-comments .spinner,#show-comments a,.postarea h3 label{float:left}#poststuff{padding-top:10px;min-width:763px}#poststuff #post-body{padding:0}#poststuff .postbox-container{width:100%}#poststuff #post-body.columns-2{margin-right:300px}#show-comments{overflow:hidden}#lost-connection-notice .spinner{visibility:visible;float:left;margin:0 5px 0 0}#titlediv{position:relative}#titlediv label{cursor:text}#titlediv div.inside{margin:0}#poststuff #titlewrap{border:0;padding:0}#titlediv #title{padding:3px 8px;font-size:1.7em;line-height:100%;height:1.7em;width:100%;outline:0;margin:0 0 3px;background-color:#fff}#titlediv #title-prompt-text{color:#777;position:absolute;font-size:1.7em;padding:11px 10px}#wp-content-editor-container,.postbox,form#tags-filter{position:relative}#poststuff .inside-submitbox,#side-sortables .inside-submitbox{margin:0 3px;font-size:11px}input#link_description,input#link_url{width:98%}#pending{background:0 none;border:0;padding:0;font-size:11px;margin-top:-1px}#edit-slug-box{line-height:24px;min-height:25px;margin-top:5px;padding:0 10px;color:#666}#edit-slug-box .cancel{margin-right:10px;font-size:11px}#editable-post-name-full{display:none}#editable-post-name{background-color:#fffbcc}#editable-post-name input{font-size:13px;height:22px;margin:0;width:16em}.submitbox .submit{text-align:left;padding:12px 10px 10px;font-size:11px;background-color:#464646;color:#ccc}.submitbox .submitdelete{text-decoration:none;padding:1px 2px}#normal-sortables .submitbox .submitdelete:hover{color:#000;background-color:red;border-bottom-color:red}.submitbox .submit a:hover{text-decoration:underline}.submitbox .submit input{margin-bottom:8px;margin-right:4px;padding:6px}.inside-submitbox #post_status{margin:2px 0 2px -2px}#post-status-select{margin-top:3px}#post-body #normal-sortables{min-height:50px}.postbox{min-width:255px;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff}#post-status-info,.postbox{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04)}#trackback_url{width:99%}#normal-sortables .postbox .submit{background:0 0;border:0;float:right;padding:0 12px;margin:0}.category-add input[type=text],.category-add select{width:100%;max-width:260px;vertical-align:baseline}#side-sortables .category-add input[type=text],#side-sortables .category-add select{margin:0 0 1em}#side-sortables .add-menu-item-tabs li,.wp-tab-bar li,ul.category-tabs li{display:inline;line-height:1.35em}.no-js .category-tabs li.hide-if-no-js,.ui-tabs-hide,.wp-editor-expand #content-resize-handle,.wp-hidden-children .wp-hidden-child{display:none}#side-sortables .add-menu-item-tabs a,.category-tabs a,.wp-tab-bar a{text-decoration:none}#post-body ul.add-menu-item-tabs li.tabs a,#post-body ul.category-tabs li.tabs a,#side-sortables .add-menu-item-tabs .tabs a,#side-sortables .category-tabs .tabs a,.wp-tab-bar .wp-tab-active a{color:#32373c}.category-tabs{margin:8px 0 5px}#category-adder h4{margin:10px 0}#side-sortables .add-menu-item-tabs,.wp-tab-bar{margin-bottom:3px}#normal-sortables .postbox #replyrow .submit{float:none;margin:0;padding:0 7px 5px}#side-sortables .submitbox .submit .preview,#side-sortables .submitbox .submit a.preview:hover,#side-sortables .submitbox .submit input{border:0}#side-sortables .inside-submitbox .insidebox,.stuffbox .insidebox{margin:11px 0}ul.add-menu-item-tabs,ul.category-tabs,ul.wp-tab-bar{margin-top:12px}ul.add-menu-item-tabs li,ul.category-tabs li{border:1px solid transparent;position:relative}.wp-tab-active,ul.add-menu-item-tabs li.tabs,ul.category-tabs li.tabs{border:1px solid #dfdfdf;border-bottom-color:#fdfdfd;background-color:#fdfdfd}ul.add-menu-item-tabs li,ul.category-tabs li,ul.wp-tab-bar li{padding:3px 5px 5px}#postimagediv .inside img{max-width:100%;height:auto;width:auto}#post-body .tagsdiv #newtag{margin-right:5px;width:16em}#side-sortables input#post_password{width:94%}#side-sortables .tagsdiv #newtag{width:68%}#post-status-info{width:100%;border-spacing:0;border:1px solid #e5e5e5;border-top:none;background-color:#f7f7f7;box-shadow:0 1px 1px rgba(0,0,0,.04);z-index:999}#post-status-info td{font-size:12px}.autosave-info{padding:2px 10px;text-align:right}#editorcontent #post-status-info{border:none}#content-resize-handle{background:url(../images/resize.gif) right bottom no-repeat;width:12px;cursor:row-resize}.rtl #content-resize-handle{background:url(../images/resize-rtl.gif) left bottom no-repeat}#postdivrich #content{resize:none}#wp-word-count{display:block;padding:2px 10px}#content-textarea-clone{z-index:-1;position:absolute;top:0;visibility:hidden;overflow:hidden;max-width:100%;border:1px solid transparent}.wp-editor-expand #wp-content-editor-tools{z-index:1000;border-bottom:1px solid #e5e5e5}.wp-editor-expand #wp-content-editor-container{-webkit-box-shadow:none;box-shadow:none;margin-top:-1px;border-bottom:0 none}.wp-editor-expand div.mce-statusbar{z-index:1}.wp-editor-expand #post-status-info{border-top:1px solid #e5e5e5}.wp-editor-expand div.mce-toolbar-grp{z-index:999}.mce-fullscreen #wp-content-wrap .mce-edit-area,.mce-fullscreen #wp-content-wrap .mce-menubar,.mce-fullscreen #wp-content-wrap .mce-statusbar,.mce-fullscreen #wp-content-wrap .mce-toolbar-grp{position:static!important;width:auto!important;padding:0!important}.mce-fullscreen #wp-content-wrap .mce-statusbar{visibility:visible!important}.mce-fullscreen #wp-content-wrap .mce-tinymce .mce-wp-dfw,.mce-fullscreen #wp-content-wrap .mce-wp-dfw,.post-php.mce-fullscreen #wpadminbar{display:none}#wp-content-editor-tools{background-color:#f1f1f1;padding-top:20px}#poststuff #post-body.columns-2 #side-sortables{width:280px}#timestampdiv select{height:21px;line-height:14px;padding:0;vertical-align:top;font-size:12px}#aa,#hh,#jj,#mn{padding:1px;font-size:12px}#hh,#jj,#mn{width:2em}#aa{width:3.4em}.curtime #timestamp{padding:2px 0 1px;display:inline!important;height:auto!important}#misc-publishing-actions label[for=post_status]:before,#post-body #visibility:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:#82878c}#post-body #visibility:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before{font:400 20px/1 dashicons;speak:none;display:inline-block;padding:0 2px 0 0;top:0;left:-1px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}#post-body #visibility:before{content:'\f177'}.curtime #timestamp:before{content:'\f145';top:-1px}#post-body .misc-pub-revisions:before{content:'\f321'}#timestampdiv{padding-top:5px;line-height:23px}#timestampdiv p{margin:8px 0 6px}#timestampdiv input{border-width:1px;border-style:solid}.notification-dialog{position:fixed;top:30%;max-height:70%;left:50%;width:450px;margin-left:-225px;background:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3);line-height:1.5;z-index:1000005;overflow-y:auto}.notification-dialog-background{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000000}#post-lock-dialog .post-locked-message,#post-lock-dialog .post-taken-over{margin:25px}#post-lock-dialog .post-locked-message a.button{margin-right:10px}#post-lock-dialog .post-locked-avatar{float:left;margin:0 20px 20px 0}#post-lock-dialog .wp-tab-first{outline:0}#post-lock-dialog .locked-saving img{float:left;margin-right:3px}#post-lock-dialog.saved .locked-saved,#post-lock-dialog.saving .locked-saving{display:inline}#excerpt{display:block;margin:12px 0 0;height:4em;width:100%}.tagchecklist{margin-left:14px;font-size:12px;overflow:auto}.tagchecklist br{display:none}.tagchecklist span,.tagchecklist span a{overflow:hidden;display:block;float:left}.tagchecklist strong{margin-left:-8px;position:absolute}.tagchecklist span{margin-right:25px;font-size:13px;line-height:1.8em;cursor:default;max-width:100%;text-overflow:ellipsis}.tagchecklist span a{margin:1px 0 0 -17px;cursor:pointer;width:20px;height:20px;text-indent:0;position:absolute}#poststuff h2{margin-top:20px;font-size:1.5em;margin-bottom:15px;padding:0 0 3px;clear:left}#poststuff h3{font-size:14px;padding:8px 12px;margin:0;line-height:1.4}#poststuff .inside{margin:6px 0 0}#poststuff .inside #page_template,#poststuff .inside #parent_id{max-width:100%}#poststuff .inside label.deleted,#poststuff .inside label.spam{color:red}#poststuff .inside label.waiting{color:orange}#poststuff .inside label.approved{color:green}.ie8 #poststuff .inside #page_template,.ie8 #poststuff .inside #parent_id{width:250px}#post-visibility-select{line-height:1.5em;margin-top:3px}#poststuff #submitdiv .inside{margin:0;padding:0}#post-body-content,.edit-form-section{margin-bottom:20px}#postcustomstuff thead th{padding:5px 8px 8px;background-color:#f1f1f1}#postcustom #postcustomstuff .submit{border:0;float:none;padding:0 8px 8px}#side-sortables #postcustom #postcustomstuff .submit{margin:0;padding:0}#side-sortables #postcustom #postcustomstuff #the-list textarea{height:85px}#side-sortables #postcustom #postcustomstuff td.left input,#side-sortables #postcustom #postcustomstuff td.left select,#side-sortables #postcustomstuff #newmetaleft a{margin:3px 3px 0}#postcustomstuff table{margin:0;width:100%;border:1px solid #dfdfdf;border-spacing:0;background-color:#f9f9f9}#postcustomstuff tr{vertical-align:top}#postcustomstuff table input,#postcustomstuff table select,#postcustomstuff table textarea{width:96%;margin:8px}#side-sortables #postcustomstuff table input,#side-sortables #postcustomstuff table select,#side-sortables #postcustomstuff table textarea{margin:3px}#postcustomstuff td.left,#postcustomstuff th.left{width:38%}#postcustomstuff .submit input{margin:0;width:auto}#postcustomstuff #newmetaleft a{display:inline-block;margin:0 8px 8px;text-decoration:none}.no-js #postcustomstuff #enternew{display:none}#post-body-content .compat-attachment-fields{margin-bottom:20px}.compat-attachment-fields th{padding-top:5px;padding-right:10px}#select-featured-image{padding:4px 0;overflow:hidden}#select-featured-image img{max-width:100%;height:auto;margin-bottom:10px}#select-featured-image a{float:left;clear:both}#select-featured-image .remove{display:none;margin-top:10px}.js #select-featured-image.has-featured-image .remove{display:inline-block}.no-js #select-featured-image .choose{display:none}.post-state-format{overflow:hidden;display:inline-block;vertical-align:middle;height:20px;width:20px;margin-right:5px;margin-top:-4px}.post-state-format:before{display:block;height:20px;width:20px;font:400 20px/1 dashicons!important;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.post-format-icon:before,.post-state-format:before{color:#ddd;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}a.post-format-icon:hover:before,a.post-state-format:hover:before{color:#00a0d2}#post-formats-select{line-height:2em}#post-formats-select .post-format-icon:before{top:5px}input.post-format{margin-top:1px}label.post-format-icon{margin-left:0;padding:2px 0}.post-format-icon:before{position:relative;display:inline-block;margin-right:7px;font:400 20px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.post-format-icon.post-format-standard:before,.post-state-format.post-format-standard:before,a.post-state-format.format-standard:before{content:'\f109'}.post-format-icon.post-format-image:before,.post-state-format.post-format-image:before,a.post-state-format.format-image:before{content:'\f128'}.post-format-icon.post-format-gallery:before,.post-state-format.post-format-gallery:before,a.post-state-format.format-gallery:before{content:'\f161'}.post-format-icon.post-format-audio:before,.post-state-format.post-format-audio:before,a.post-state-format.format-audio:before{content:'\f127'}.post-format-icon.post-format-video:before,.post-state-format.post-format-video:before,a.post-state-format.format-video:before{content:'\f126'}.post-format-icon.post-format-chat:before,.post-state-format.post-format-chat:before,a.post-state-format.format-chat:before{content:'\f125'}.post-format-icon.post-format-status:before,.post-state-format.post-format-status:before,a.post-state-format.format-status:before{content:'\f130'}.post-format-icon.post-format-aside:before,.post-state-format.post-format-aside:before,a.post-state-format.format-aside:before{content:'\f123'}.post-format-icon.post-format-quote:before,.post-state-format.post-format-quote:before,a.post-state-format.format-quote:before{content:'\f122'}.post-format-icon.post-format-link:before,.post-state-format.post-format-link:before,a.post-state-format.format-link:before{content:'\f103'}.category-adder{margin-left:120px;padding:4px 0}.category-adder h4{margin:0 0 8px}#side-sortables .category-adder{margin:0}.categorydiv div.tabs-panel,.customlinkdiv div.tabs-panel,.posttypediv div.tabs-panel,.taxonomydiv div.tabs-panel,.wp-tab-panel{min-height:42px;max-height:200px;overflow:auto;padding:0 .9em;border:1px solid #dfdfdf;background-color:#fdfdfd}.ac_results,.revisions-diff,.revisions-meta,.revisions-tickmarks{background-color:#fff}div.tabs-panel-active{display:block}div.tabs-panel-inactive{display:none}#front-page-warning,#front-static-pages ul,.categorydiv ul.categorychecklist ul,.customlinkdiv ul.categorychecklist ul,.inline-editor ul.cat-checklist ul,.posttypediv ul.categorychecklist ul,.taxonomydiv ul.categorychecklist ul,ul.export-filters{margin-left:18px}ul.categorychecklist li{margin:0;padding:0;line-height:22px;word-wrap:break-word}.categorydiv .tabs-panel,.customlinkdiv .tabs-panel,.posttypediv .tabs-panel,.taxonomydiv .tabs-panel{border-width:3px;border-style:solid}.form-wrap label{display:block;padding:2px;font-size:12px}.form-field input[type=text],.form-field input[type=password],.form-field input[type=email],.form-field input[type=number],.form-field input[type=tel],.form-field input[type=url],.form-field input[type=search],.form-field textarea{border-style:solid;border-width:1px;width:95%}.form-wrap p,p.description{margin:2px 0 5px;color:#666}.form-wrap p,p.description,p.help,span.description{font-size:13px;font-style:italic}.form-wrap .form-field{margin:0 0 10px;padding:8px 0}.form-wrap .form-field #parent{max-width:100%}.col-wrap h3{margin:12px 0;font-size:1.1em}.col-wrap p.submit{margin-top:-10px}#poststuff .tagsdiv .howto{margin:0 0 6px}.ajaxtag .newtag{position:relative}.tagsdiv .newtag{width:180px}.tagsdiv .the-tags{display:block;height:60px;margin:0 auto;overflow:auto;width:260px}#qt_content_dfw,#wp-content-wrap .mce-wp-dfw,.ac_results{display:none}#post-body-content .tagsdiv .the-tags{margin:0 5px}p.popular-tags{border:none;line-height:2em;padding:8px 12px 12px;text-align:justify}p.popular-tags a{padding:0 3px}.tagcloud{width:97%;margin:0 0 40px;text-align:justify}.tagcloud h3{margin:2px 0 12px}.ac_results{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;border:1px solid grey}.wp-customizer .ac_results{z-index:500000}.ac_results li{padding:2px 5px;white-space:nowrap;color:#101010;text-align:left}.ac_over{background-color:#f0f0b8;cursor:pointer}.ac_match{text-decoration:underline}.imgedit-group-top h3 a,a.imgedit-help-toggle,table.diff .diff-addedline ins,table.diff .diff-deletedline del{text-decoration:none}.comment-php .wp-editor-area{height:200px}.comment-ays td,.comment-ays th{padding:10px 15px}#comment-status-radio label,.links-table td,.links-table th{padding:5px 0}.comment-ays-submit .button-cancel{margin-left:1em}.spam-undo-inside,.trash-undo-inside{margin:1px 8px 1px 0;line-height:16px}.spam-undo-inside .avatar,.trash-undo-inside .avatar{height:20px;width:20px;margin-right:8px;vertical-align:middle}.stuffbox .editcomment{clear:none}#comment-status-radio p{margin:3px 0 5px}#comment-status-radio input{margin:2px 3px 5px 0;vertical-align:middle}table.links-table{width:100%;border-spacing:0}.links-table th{font-weight:400;text-align:left;vertical-align:top;min-width:80px;width:20%;word-wrap:break-word}.links-table td label{margin-right:8px}.links-table td input[type=text],.links-table td textarea{width:100%}.links-table #link_rel{max-width:280px}.wp-editor-expand #qt_content_dfw,.wp-editor-expand #wp-content-wrap .mce-wp-dfw{display:inline-block}.focus-on #screen-meta,.focus-on #screen-meta-links,.focus-on #wp-toolbar,.focus-on #wpfooter,.focus-on .postbox-container>*,.focus-on .update-nag,.focus-on .wrap>h1,.focus-on div.error,.focus-on div.notice,.focus-on div.updated{opacity:0;-webkit-transition-duration:.6s;transition-duration:.6s;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-on #wp-toolbar{opacity:.3}.focus-off #screen-meta,.focus-off #screen-meta-links,.focus-off #wp-toolbar,.focus-off #wpfooter,.focus-off .postbox-container>*,.focus-off .update-nag,.focus-off .wrap>h1,.focus-off div.error,.focus-off div.notice,.focus-off div.updated{opacity:1;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-off #wp-toolbar{-webkit-transform:translate(0,0)}.focus-on #adminmenuback,.focus-on #adminmenuwrap{-webkit-transition-duration:.6s;transition-duration:.6s;-webkit-transition-property:-webkit-transform;transition-property:transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%)}.focus-off #adminmenuback,.focus-off #adminmenuwrap{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:-webkit-transform;transition-property:transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){#content-resize-handle,#post-body .wp_themeSkin .mceStatusbar a.mceResize{background:url(../images/resize-2x.gif) right bottom no-repeat;-webkit-background-size:11px 11px;background-size:11px 11px}.rtl #content-resize-handle,.rtl #post-body .wp_themeSkin .mceStatusbar a.mceResize{background:url(../images/resize-rtl-2x.gif) right bottom no-repeat}}@media only screen and (max-width:850px){#poststuff{min-width:0}#wpbody-content #poststuff #post-body{margin:0}#wpbody-content #post-body.columns-2 #postbox-container-1{margin-right:0;width:100%}#poststuff #postbox-container-1 #side-sortables:empty,#poststuff #postbox-container-1 .empty-container{border:0;height:0;min-height:0}#poststuff #post-body.columns-2 #side-sortables{min-height:0;width:auto}.columns-prefs,.screen-layout{display:none}}@media screen and (max-width:782px){#post-body-content{min-width:0}#titlediv #title-prompt-text{padding:10px}#poststuff h3{padding:12px}.post-format-options{padding-right:0}.post-format-options a{margin-right:5px;margin-bottom:5px;min-width:52px}.post-format-options .post-format-title{font-size:11px}.post-format-options a div{height:28px;width:28px}.post-format-options a div:before{font-size:26px!important}#post-visibility-select{line-height:280%}.wp-core-ui .save-post-visibility,.wp-core-ui .save-timestamp{vertical-align:middle;margin-right:15px}.timestamp-wrap select#mm{display:block;width:100%;margin-bottom:10px}.timestamp-wrap #aa,.timestamp-wrap #hh,.timestamp-wrap #jj,.timestamp-wrap #mn{padding:12px 3px;font-size:14px;margin-bottom:5px;width:auto;text-align:center}ul.category-tabs{margin:30px 0 15px}.tagsdiv .newtag,ul.categorychecklist li{margin-bottom:15px}ul.category-tabs li.tabs{padding:15px}ul.categorychecklist ul{margin-top:15px}.category-add input[type=text],.category-add select{max-width:none;margin-bottom:15px}.tagsdiv .newtag{width:100%;height:auto}.tagchecklist{margin:25px 10px}.tagchecklist span{font-size:16px;line-height:1.4}#commentstatusdiv p{line-height:2.8}.mceToolbar *{white-space:normal!important}.mceToolbar td,.mceToolbar tr{float:left!important}.wp_themeSkin a.mceButton{width:30px;height:30px}.wp_themeSkin .mceButton .mceIcon{margin-top:5px;margin-left:5px}.wp_themeSkin .mceSplitButton{margin-top:1px}.wp_themeSkin .mceSplitButton td a.mceAction{padding:6px 3px 6px 6px}.wp_themeSkin .mceSplitButton td a.mceOpen,.wp_themeSkin .mceSplitButtonEnabled:hover td a.mceOpen{padding-top:6px;padding-bottom:6px;background-position:1px 6px}.wp_themeSkin table.mceListBox{margin:5px}div.quicktags-toolbar input{padding:10px 20px}button.wp-switch-editor{font-size:16px;line-height:1em;margin:7px 0 0 7px;padding:8px 12px}#wp-content-media-buttons a{font-size:16px;line-height:37px;height:39px;padding:0 20px 0 15px}.wp-media-buttons span.jetpack-contact-form-icon,.wp-media-buttons span.wp-media-buttons-icon{width:22px!important;margin-top:-3px!important;margin-left:-5px!important}.wp-media-buttons #insert-jetpack-contact-form span.jetpack-contact-form-icon:before,.wp-media-buttons .add_media span.wp-media-buttons-icon:before{font-size:20px!important}#content_wp_fullscreen{display:none}.misc-pub-section{padding:20px 10px}.misc-pub-section>a{float:right;font-size:16px}#delete-action,#publishing-action{line-height:47px}#publishing-action .spinner{float:none;margin-top:-2px}.comment-ays td,.comment-ays th{padding-bottom:0}.comment-ays td{padding-top:6px}.links-table #link_rel{max-width:none}.links-table td,.links-table th{padding:10px 0}}@media only screen and (max-width:500px){#wp-content-media-buttons a{font-size:14px;padding:0 10px}}.revisions-control-frame,.revisions-diff-frame{position:relative}.revisions-controls{padding-top:40px;height:100px;z-index:1}.revisions-controls input[type=checkbox]{position:relative;top:-1px;vertical-align:text-bottom}.revisions.pinned .revisions-controls{position:fixed;top:0;height:82px;background:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.1);box-shadow:0 1px 3px rgba(0,0,0,.1)}.revisions-tickmarks{position:relative;margin:0 auto;height:.7em;top:7px;max-width:70%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.revisions-tickmarks>div{position:absolute;height:100%;border-left:1px solid #a0a5aa;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.revisions-tickmarks>div:first-child{border-width:0}.comparing-two-revisions .revisions-controls{height:140px}.comparing-two-revisions.pinned .revisions-controls{height:124px}.revisions .diff-error{position:absolute;text-align:center;margin:0 auto;width:100%;display:none}.revisions.diff-error .diff-error{display:block}.revisions .loading-indicator{position:absolute;vertical-align:middle;opacity:0;width:100%;width:-webkit-calc(100% - 30px);width:calc(100% - 30px);top:50%;top:-webkit-calc(50% - 10px);top:calc(50% - 10px);-webkit-transition:opacity .5s;transition:opacity .5s;filter:alpha(opacity=0)}body.folded .revisions .loading-indicator{margin-left:-32px}.revisions .loading-indicator span.spinner{display:block;margin:0 auto;float:none}.revisions.loading .loading-indicator{opacity:1;filter:alpha(opacity=100)}.revisions .diff{-webkit-transition:opacity .5s;transition:opacity .5s}.revisions.loading .diff{opacity:.5;filter:alpha(opacity=50)}.revisions.diff-error .diff{visibility:hidden}.revisions-meta{margin-top:20px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.1);box-shadow:0 1px 3px rgba(0,0,0,.1)}.revisions.pinned .revisions-meta{-webkit-box-shadow:none;box-shadow:none}.revision-toggle-compare-mode{position:absolute;top:0;right:0}.comparing-two-revisions .revisions-next,.comparing-two-revisions .revisions-previous,.revisions-meta .diff-meta-to strong{display:none}.revisions-controls .author-card .date{color:#777}.revisions-controls .author-card.autosave{color:#d54e21}.revisions-controls .author-card .author-name{font-weight:700}.comparing-two-revisions .diff-meta-to strong{display:block}.revisions.pinned .revisions-buttons{padding:0 11px}.revisions-next,.revisions-previous{position:relative;z-index:1}.revisions-previous{float:left}.revisions-next{float:right}.revisions-controls .wp-slider{max-width:70%;margin:0 auto;top:-3px}.revisions-diff{padding:15px;box-shadow:0 1px 3px rgba(0,0,0,.1)}.arrow:after,.revisions-diff{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.1)}.revisions-diff h3:first-child{margin-top:0}#revisions-meta-restored img,.post-revisions li img{vertical-align:middle}table.diff tbody tr td:nth-child(2){width:4%}table.diff{table-layout:fixed;width:100%;white-space:pre-wrap}.about-wrap h2 .nav-tab,.about-wrap p.wp-credits-list a,.imgedit-wrap .nowrap,.nav-menus-php .item-edit,.sidebar-name h3,.widget-title h4{white-space:nowrap}table.diff col.content{width:auto}table.diff col.content.diffsplit{width:48%}table.diff col.diffsplit.middle{width:auto}table.diff col.ltype{width:30px}table.diff tr{background-color:transparent}table.diff td,table.diff th{font-family:Consolas,Monaco,monospace;font-size:14px;line-height:1.618;padding:.5em;vertical-align:top;word-wrap:break-word}table.diff td h1,table.diff td h2,table.diff td h3,table.diff td h4,table.diff td h5,table.diff td h6{margin:0}table.diff .diff-deletedline{background-color:#ffe9e9}table.diff .diff-deletedline del{background-color:#faa}table.diff .diff-addedline{background-color:#e9ffe9}table.diff .diff-addedline ins{background-color:#afa}.diff-meta{padding:5px;clear:both;min-height:32px}.diff-title strong{line-height:32px;min-width:60px;text-align:right;float:left;margin-right:5px}.revisions-controls .author-card .author-info{font-size:12px;line-height:16px}.revisions-controls .author-card .author-info,.revisions-controls .author-card .avatar{float:left;margin-left:6px;margin-right:6px}.revisions-controls .author-card .byline{display:block;font-size:12px}.revisions-controls .author-card .avatar{vertical-align:middle}.diff-meta input.restore-revision{float:right;margin-left:6px;margin-right:6px;margin-top:4px}.diff-meta-from{display:none}.comparing-two-revisions .diff-meta-from{display:block}.revisions-tooltip{position:absolute;bottom:105px;margin-right:0;margin-left:-69px;z-index:0;max-width:350px;min-width:130px;padding:8px 4px;opacity:0}.revisions-tooltip.flipped{margin-left:0;margin-right:-70px}.revisions.pinned .revisions-tooltip{display:none!important}.comparing-two-revisions .revisions-tooltip{bottom:145px}.revisions-tooltip-arrow{width:70px;height:15px;overflow:hidden;position:absolute;left:0;margin-left:35px;bottom:-15px}.revisions-tooltip.flipped .revisions-tooltip-arrow{margin-left:0;margin-right:35px;left:auto;right:0}.revisions-tooltip-arrow>span{left:20px;top:-20px;width:25px;height:25px;transform:rotate(45deg)}.arrow:after,.revisions-tooltip-arrow>span{content:"";position:absolute;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg)}.revisions-tooltip.flipped .revisions-tooltip-arrow>span{left:auto;right:20px}.ie8 .revisions-tooltip-arrow>span{left:15px;top:-25px;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)"}.ie8 .revisions-tooltip.flipped .revisions-tooltip-arrow>span{right:25px}.revisions-tooltip,.revisions-tooltip-arrow>span{border:1px solid #d7d7d7;background-color:#fff}.revisions-tooltip{display:none}.arrow{width:70px;height:16px;overflow:hidden;position:absolute;left:0;margin-left:-35px;bottom:90px;z-index:10000}.arrow.top{top:-16px;bottom:auto}.arrow.left{left:20%}.arrow:after{z-index:9999;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1);left:20px;top:-20px;width:25px;height:25px;transform:rotate(45deg)}.revisions-tooltip,.revisions-tooltip-arrow:after{border-width:1px;border-style:solid}div.revisions-controls>.wp-slider>.ui-slider-handle{margin-left:-10px}.rtl div.revisions-controls>.wp-slider>.ui-slider-handle{margin-right:-10px}.wp-slider.ui-slider{position:relative;border:1px solid #d7d7d7;text-align:left;cursor:pointer}.wp-slider .ui-slider-handle{-webkit-border-radius:50%;border-radius:50%;height:18px;margin-top:-3px;outline:0;position:absolute;width:18px;z-index:2;-ms-touch-action:none;touch-action:none}.wp-slider .ui-slider-handle,.wp-slider .ui-slider-handle.focus,.wp-slider .ui-slider-handle.ui-state-hover{background:#00a0d2;border:1px solid #0073aa;-webkit-box-shadow:inset 0 1px 0 #78c8e6,0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 #78c8e6,0 1px 0 rgba(0,0,0,.15)}.wp-slider .ui-slider-handle:before{background:0 0;position:absolute;top:0;left:0;color:#fff;content:"\f229";font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.media-item .media-item-info tr,.wp-slider .ui-slider-range{background-color:transparent}.wp-slider .ui-slider-handle.from-handle:before,.wp-slider .ui-slider-handle.to-handle:before{font-size:20px!important;margin:-1px 0 0 -1px}.wp-slider .ui-slider-handle.from-handle:before{content:'\f139'}.rtl .wp-slider .ui-slider-handle.from-handle:before,.wp-slider .ui-slider-handle.to-handle:before{content:'\f141'}.rtl .wp-slider .ui-slider-handle.to-handle:before{content:'\f139';right:-1px}.wp-slider .ui-slider-range{position:absolute;font-size:.7em;display:block;border:0;background-image:none}.wp-slider.ui-slider-horizontal{height:.7em}.wp-slider.ui-slider-horizontal .ui-slider-handle{top:-.25em;margin-left:-.6em}.wp-slider.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.wp-slider.ui-slider-horizontal .ui-slider-range-min{left:0}.wp-slider.ui-slider-horizontal .ui-slider-range-max{right:0}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.revision-tick.completed-false{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){#diff-next-revision,#diff-previous-revision{margin-top:-1em}table.diff{-ms-word-break:break-all;word-break:break-all;word-wrap:break-word}}.media-item .describe{width:100%;border-top:1px solid #dfdfdf;clear:both;cursor:default}#media-items:empty,.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:left;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .describe td{padding:0 8px 8px 0;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 0 0 10px}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-right:6px;margin-left:2px}.media-upload-form .align .field label{display:inline;padding:0 0 0 23px;margin:0 1em 0 3px;font-weight:600}.media-upload-form tr.image-size label{margin:0 0 0 5px;font-weight:600}.media-upload-form th.label label{font-weight:600;margin:.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}.media-item .describe input[type=text],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 0 0 5px}.describe-toggle-off,.describe-toggle-on,.media-item .edit-attachment{display:block;line-height:36px;float:right;margin-right:10px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}.js .html-uploader #plupload-upload-ui,.media-item .startclosed,.media-item .startopen{display:none}.media-upload-form .media-item{min-height:36px;margin-bottom:1px;position:relative;width:100%;background:#fff}.media-upload-form .media-item,.media-upload-form .media-item .error{-webkit-box-shadow:0 1px 0 #dfdfdf;box-shadow:0 1px 0 #dfdfdf}.media-item .filename{line-height:36px;overflow:hidden;margin-left:6px}.media-item .pinkynail{float:left;margin:2px 10px 0 3px;max-width:40px;max-height:32px}.media-item .original{position:relative;height:34px}.media-item .progress{float:right;height:22px;margin:7px 6px;width:200px;line-height:2em;padding:0;overflow:hidden;-webkit-border-radius:22px;border-radius:22px;background:#ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-22px;-webkit-border-radius:22px;border-radius:22px;background-color:#0073aa;-webkit-box-shadow:inset 0 0 2px rgba(0,0,0,.3);box-shadow:inset 0 0 2px rgba(0,0,0,.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0;color:#fff;text-align:center;line-height:22px;font-weight:400;text-shadow:0 1px 2px rgba(0,0,0,.2)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #html-upload-ui{display:block}.media-upload-form .media-item .error,.media-upload-form .media-item.error{width:auto;margin:0 0 1px}.media-upload-form .media-item .error{padding:10px 0 10px 14px}.media-item .error-div a.dismiss{display:block;float:right;margin:0 10px 0 15px}.find-box{background-color:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3);width:600px;overflow:hidden;margin-left:-300px;position:fixed;top:30px;bottom:30px;left:50%;z-index:100105}.find-box-head{background:#fcfcfc;border-bottom:1px solid #dfdfdf;height:36px;font-size:18px;font-weight:600;line-height:36px;padding:0 36px 0 16px;position:absolute;top:0;left:0;right:0}.find-box-inside{overflow:auto;padding:16px;background-color:#fff;position:absolute;top:37px;bottom:45px;overflow-y:scroll;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.find-box-search{padding-bottom:16px}.find-box-search .spinner{float:none;left:105px;position:absolute}#find-posts-response,.find-box-search{position:relative}#find-posts-input,#find-posts-search{float:left}#find-posts-input{width:140px;height:28px;margin:0 4px 0 0}.widefat .found-radio{padding-right:0;width:16px}#find-posts-close{width:36px;height:36px;position:absolute;top:0;right:0;cursor:pointer;text-align:center;color:#666}#find-posts-close:hover{color:#00a0d2}#find-posts-close:before{font:400 20px/36px dashicons;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:'\f158'}.find-box-buttons{padding:8px 16px;background:#fcfcfc;border-top:1px solid #dfdfdf;position:absolute;bottom:0;left:0;right:0}@media screen and (max-width:782px){.find-box-inside{bottom:57px}}@media screen and (max-width:660px){.find-box{top:0;bottom:0;left:0;right:0;margin:0;width:100%}}.ui-find-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:100100}ul#dismissed-updates{display:none}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-.5em 0 2em}#poststuff .inside .the-tagcloud{margin:5px 0 10px;padding:8px;border:1px solid #ddd;line-height:1.8em;word-spacing:3px;-webkit-border-radius:6px;border-radius:6px}.drag-drop #drag-drop-area{border:4px dashed #b4b9be;height:200px}.drag-drop .drag-drop-inside{margin:70px auto 0;width:250px}.drag-drop-inside p{color:#a0a5aa;font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.media-frame.mode-grid .media-frame-menu,.media-frame.mode-grid .media-frame-router,.media-frame.mode-grid .media-frame-title,.upload-php .mode-grid .hide-sidebar .media-sidebar{display:none}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}#plupload-upload-ui{position:relative}.media-frame.mode-grid,.media-frame.mode-grid .attachments-browser .attachments,.media-frame.mode-grid .media-frame-content,.media-frame.mode-grid .uploader-inline-content{position:static}.media-frame.mode-grid .media-frame-content{background-color:transparent;border:none}.upload-php .mode-grid .media-sidebar{position:relative;width:auto;margin-bottom:16px;padding:0 16px;border-left:4px solid #dd3d36;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);background-color:#fff}.upload-php .mode-grid .media-sidebar .media-uploader-status{border-bottom:none;padding-bottom:0;max-width:100%}.upload-php .mode-grid .media-sidebar .upload-error{margin:12px 0;padding:4px 0 0;border:none;-webkit-box-shadow:none;box-shadow:none;background:0 0}.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors{top:-10px;right:-14px;padding:10px}.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:before{content:"\f153";display:block;font:400 16px/1 dashicons;color:#bbb}.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:focus:before,.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:hover:before{color:#c00}.upload-php .mode-grid .media-sidebar .media-uploader-status.errors h3{display:none}.media-frame.mode-grid .uploader-inline{position:relative;top:auto;right:auto;left:auto;bottom:auto;padding-top:0;margin-top:0;border:4px dashed #b4b9be}.media-frame.mode-select .attachments-browser.fixed .attachments{position:relative;top:94px;padding-bottom:94px}.media-frame.mode-grid .attachment.details:focus,.media-frame.mode-grid .attachment:focus,.media-frame.mode-grid .selected.attachment:focus{-webkit-box-shadow:inset 0 0 2px 3px #f1f1f1,inset 0 0 0 7px #5b9dd9;box-shadow:inset 0 0 2px 3px #f1f1f1,inset 0 0 0 7px #5b9dd9;outline:0}.media-frame.mode-grid .selected.attachment{-webkit-box-shadow:inset 0 0 0 5px #f1f1f1,inset 0 0 0 7px #ccc;box-shadow:inset 0 0 0 5px #f1f1f1,inset 0 0 0 7px #ccc}.media-frame.mode-grid .attachment.details{-webkit-box-shadow:inset 0 0 0 3px #f1f1f1,inset 0 0 0 7px #1e8cbe;box-shadow:inset 0 0 0 3px #f1f1f1,inset 0 0 0 7px #1e8cbe}.media-frame.mode-grid.mode-select .attachment .thumbnail{opacity:.65}.media-frame.mode-select .attachment.selected .thumbnail{opacity:1}.media-frame.mode-grid .media-toolbar{margin-bottom:15px;height:auto}.media-frame.mode-grid .media-toolbar select{margin:0 10px 0 0;font-size:14px}.media-frame.mode-grid.mode-edit .media-toolbar-secondary>.select-mode-toggle-button{margin:0 8px 0 0;vertical-align:middle}.media-frame.mode-grid .attachments-browser .bulk-select{display:inline-block;margin:0 10px 0 0}.media-frame.mode-grid .search{margin-top:0}.media-frame.mode-grid .spinner{margin-top:16px}.attachments-browser .media-toolbar-secondary>.media-button{margin-right:10px}.media-frame.mode-select .attachments-browser.fixed .media-toolbar{position:fixed;top:32px;left:auto;right:20px;margin-top:0}.media-frame.mode-grid .attachments-browser{padding:0}.media-frame.mode-grid .attachments-browser .attachments{padding:2px}.media-frame.mode-grid .attachments-browser .no-media{color:#999;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;text-align:center}.edit-attachment-frame{display:block;height:100%;width:100%}.edit-attachment-frame .edit-media-header{overflow:hidden}.upload-php .media-modal-close .media-modal-icon:before{content:'\f335';font-size:22px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{cursor:pointer;color:#777;background-color:transparent;height:50px;width:50px;padding:0;position:absolute;text-align:center;border:0;border-left:1px solid #ddd;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.upload-php .media-modal-close{top:0;right:0}.edit-attachment-frame .edit-media-header .left{right:102px}.edit-attachment-frame .edit-media-header .right{right:51px}.edit-attachment-frame .media-frame-title{left:0;right:150px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{font:400 20px/50px dashicons!important;display:inline;font-weight:300}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .left:hover,.edit-attachment-frame .edit-media-header .right:focus,.edit-attachment-frame .edit-media-header .right:hover,.upload-php .media-modal-close:focus,.upload-php .media-modal-close:hover{background:#ddd;border-color:#ccc;color:#000;outline:0;-webkit-box-shadow:none;box-shadow:none}.upload-php .media-modal-close:focus .media-modal-icon:before,.upload-php .media-modal-close:hover .media-modal-icon:before{color:#000}.edit-attachment-frame .edit-media-header .left:before,.rtl .edit-attachment-frame .edit-media-header .right:before{content:'\f341'}.edit-attachment-frame .edit-media-header .right:before,.rtl .edit-attachment-frame .edit-media-header .left:before{content:'\f345'}.edit-attachment-frame .edit-media-header .left.disabled,.edit-attachment-frame .edit-media-header .left.disabled:hover,.edit-attachment-frame .edit-media-header .right.disabled,.edit-attachment-frame .edit-media-header .right.disabled:hover{color:#ccc;background:inherit;cursor:default;pointer-events:none}.edit-attachment-frame .media-frame-content,.edit-attachment-frame .media-frame-router{left:0}.edit-attachment-frame .media-frame-content{border-bottom:none;bottom:0;top:50px}.edit-attachment-frame .attachment-details{position:absolute;overflow:auto;top:0;bottom:0;right:0;left:0;-webkit-box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1);box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1)}.edit-attachment-frame .attachment-media-view{float:left;width:65%;height:100%}.edit-attachment-frame .attachment-media-view .thumbnail{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:16px;height:100%}.edit-attachment-frame .attachment-media-view .details-image{display:block;margin-bottom:16px;max-width:100%;max-height:90%;max-height:-webkit-calc(100% - 42px);max-height:calc(100% - 42px)}.edit-attachment-frame .wp-media-wrapper{margin-bottom:12px}.edit-attachment-frame input,.edit-attachment-frame textarea{padding:6px 8px;line-height:16px}.edit-attachment-frame .attachment-info{overflow:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:0;padding:12px 16px 0;width:35%;height:100%;-webkit-box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1);box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1);border-bottom:0;border-left:1px solid #ddd;background:#f3f3f3}.edit-attachment-frame .attachment-info .details,.edit-attachment-frame .attachment-info .settings{position:relative;overflow:hidden;float:none;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #ddd}.edit-attachment-frame .attachment-info .filename{font-weight:400;color:#666}.edit-attachment-frame .attachment-info .thumbnail{margin-bottom:12px}.attachment-info .actions{margin-bottom:16px}.attachment-info .actions a{display:inline;text-decoration:none}.wp_attachment_details label[for=content]{font-size:13px;line-height:1.5;margin:1em 0}.wp_attachment_details #attachment_caption{height:4em}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative}.imgedit-settings p{margin:8px 0 0}.describe .imgedit-wrap .imgedit-settings{padding:0 5px}.wp_attachment_holder div.updated{margin-top:0}.wp_attachment_holder .imgedit-wrap>div{height:auto;overflow:hidden}.wp_attachment_holder .imgedit-wrap .imgedit-panel-content{padding-right:16px;width:auto;overflow:hidden}.wp_attachment_holder .imgedit-wrap .imgedit-settings{float:right;width:250px}.imgedit-settings input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;background:url(../images/spinner.gif) center no-repeat #fff;-webkit-background-size:20px 20px;background-size:20px 20px;opacity:.7;filter:alpha(opacity=70);width:100%;height:500px;display:none}.no-float{float:none}.A1B1 .button,.A1B1 .spinner,.wp_attachment_image .button,.wp_attachment_image .spinner{float:left}.imgedit-settings .disabled,.media-disabled{color:grey}.A1B1,.wp_attachment_image{overflow:hidden}.no-js .wp_attachment_image .button{display:none}.imgedit-menu{margin:0 0 12px;min-width:300px}.imgedit-menu div{float:left;width:32px;border:1px solid #d5d5d5;background:#f1f1f1;margin:0 8px 0 0;height:32px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;line-height:28px;color:#777;cursor:pointer}.imgedit-menu div:before{font:400 20px/1 dashicons;speak:none;vertical-align:middle}.imgedit-menu div:hover{border-color:#c1c1c1;background-color:#eaeaea;color:#32373c}.imgedit-menu div.disabled{border-color:#ccc;background-color:#ddd;color:#777;filter:alpha(opacity=50);opacity:.5;cursor:default}.imgedit-crop:before{content:'\f165'}.imgedit-rleft:before{content:'\f166'}.imgedit-rright:before{content:'\f167'}.imgedit-flipv:before{content:'\f168'}.imgedit-fliph:before{content:'\f169'}.imgedit-undo:before{content:'\f171'}.imgedit-redo:before{content:'\f172'}.imgedit-crop-wrap{position:relative}.imgedit-crop{margin:0 8px 0 0}.imgedit-rleft{margin:0 3px}.imgedit-rright{margin:0 8px 0 3px}.imgedit-flipv{margin:0 3px}.imgedit-fliph{margin:0 8px 0 3px}.imgedit-undo{margin:0 3px}.imgedit-redo{margin:0 8px 0 3px}.imgedit-applyto img{margin:0 8px 0 0}#poststuff .imgedit-group-top h3{padding:0}.imgedit-applyto .imgedit-label{padding:2px 0 0;display:block}.imgedit-help{display:none;font-style:italic}.form-table td.imgedit-response{padding:0}.imgedit-submit{margin:8px 0 0}.imgedit-submit-btn{margin-left:20px}span.imgedit-scale-warn{color:red;font-size:20px;font-style:normal;visibility:hidden;vertical-align:middle}.imgedit-group{margin-bottom:8px;padding:10px}audio,video{display:inline-block;max-width:100%}.mejs-container{width:100%;max-width:100%}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.imgedit-wait{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.wp_attachment_details label[for=content]{font-size:14px;line-height:1.5em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{font-size:13px;line-height:1.5}.media-upload-form .media-item.error{padding:1px 10px}.media-upload-form .media-item .error{padding:10px 0 10px 12px}}@media only screen and (max-width:1120px){#wp-media-grid .wp-filter .attachment-filters{max-width:100%}}@media only screen and (max-width:782px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:46px;right:10px}}@media only screen and (max-width:600px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:0}}@media only screen and (max-width:480px){.edit-attachment-frame .media-frame-title{right:110px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{width:40px;height:40px}.upload-php .media-modal-close .media-modal-icon{margin:9px 10px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{line-height:40px!important}.edit-attachment-frame .edit-media-header .left{right:82px}.edit-attachment-frame .edit-media-header .right{right:41px}.edit-attachment-frame .media-frame-content{top:40px}.edit-attachment-frame .attachment-media-view{float:none;height:auto;width:100%}.edit-attachment-frame .attachment-info{height:auto;width:100%}}@media only screen and (max-width:640px),screen and (max-height:400px){.upload-php .mode-grid .media-sidebar{max-width:100%}}.theme-browser .themes{clear:both;padding:0 0 100px}.themes-php .wrap h1{float:left;margin-bottom:15px}.network-admin.themes-php .wrap h1{margin-bottom:0}.themes-php .wrap h1 .button{margin-left:20px}.themes-php .wp-filter-search{position:relative;top:-2px;left:20px;margin:0;width:280px;font-size:16px;font-weight:300;line-height:1.5}.themes-php div.error,.themes-php div.notice,.themes-php div.updated{margin:0 0 20px;clear:both}.themes-php div.updated a{text-decoration:underline}.theme-browser .theme{cursor:pointer;float:left;margin:0 4% 4% 0;position:relative;width:30.6%;border:1px solid #dedede;-webkit-box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-shadow:0 1px 1px -1px rgba(0,0,0,.1);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ie8 .theme-browser .theme{width:30%;margin:0 3% 4% 0}.theme-browser .theme:nth-child(3n){margin-right:0}.theme-browser .theme:focus,.theme-browser .theme:hover{cursor:pointer}.theme-browser .theme .theme-name{font-size:15px;font-weight:600;height:18px;margin:0;padding:15px;-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#fff;background:rgba(255,255,255,.65)}.theme-browser .theme .theme-actions{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0;-webkit-transition:opacity .1s ease-in-out;transition:opacity .1s ease-in-out;position:absolute;bottom:0;right:0;height:38px;padding:9px 10px 0;background:rgba(244,244,244,.7);border-left:1px solid rgba(0,0,0,.05)}.theme-browser .theme.focus .theme-actions,.theme-browser .theme:focus .theme-actions,.theme-browser .theme:hover .theme-actions{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.theme-browser .theme .theme-actions .button-primary{margin-right:3px}.theme-browser .theme .theme-actions .button-secondary{float:none;margin-left:3px}.theme-browser .theme .theme-screenshot{display:block;overflow:hidden;position:relative;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.theme-browser .theme .theme-screenshot:after{content:'';display:block;padding-top:66.66666%}.theme-browser .theme .theme-screenshot img{height:auto;position:absolute;left:0;top:0;width:100%;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.theme-browser .theme:focus .theme-screenshot,.theme-browser .theme:hover .theme-screenshot{background:#fff}.theme-browser.rendered .theme:focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:.4}.theme-browser .theme .more-details{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0;position:absolute;top:35%;right:25%;left:25%;background:#23282d;background:rgba(0,0,0,.7);color:#fff;font-size:15px;text-shadow:0 1px 0 rgba(0,0,0,.6);-webkit-font-smoothing:antialiased;font-weight:600;padding:15px 12px;text-align:center;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:opacity .1s ease-in-out;transition:opacity .1s ease-in-out}.theme-browser .theme:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 2px rgba(30,140,190,.8);box-shadow:0 0 2px rgba(30,140,190,.8)}.theme-browser .theme:focus .more-details{opacity:1}.theme-browser .theme.active:focus .theme-actions{display:block}.theme-browser.rendered .theme:focus .more-details,.theme-browser.rendered .theme:hover .more-details{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.theme-browser .theme .theme-installed,.theme-browser .theme .theme-update{background:#d54e21;background:rgba(213,78,33,.95);color:#fff;display:block;font-size:13px;font-weight:400;height:48px;line-height:48px;padding:0 10px;position:absolute;top:0;right:0;left:0;border-bottom:1px solid rgba(0,0,0,.25);overflow:hidden}.theme-browser .theme .theme-installed:before,.theme-browser .theme .theme-update:before{content:'\f463';display:inline-block;font:400 20px/1 dashicons;margin:0 6px 0 0;opacity:.8;position:relative;top:5px;speak:none;-webkit-font-smoothing:antialiased}.theme-browser .theme.active .theme-name{background:#2f2f2f;color:#fff;padding-right:110px;font-weight:300;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.5)}.theme-browser .customize-control .theme.active .theme-name{padding-right:15px}.theme-browser .theme.active .theme-name span{font-weight:600}.theme-browser .theme.active .theme-actions{background:rgba(49,49,49,.7);border-left:none;opacity:1}.theme-browser .theme.active .theme-actions .button-primary{margin-right:0}.theme-browser .theme .theme-author{background:#23282d;color:#eee;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute;bottom:56px}.theme-browser .theme.display-author .theme-author{display:block}.theme-browser .theme.display-author .theme-author a{color:inherit;text-decoration:none}.theme-browser .theme.add-new-theme{border:none;-webkit-box-shadow:none;box-shadow:none}.theme-browser .theme.add-new-theme a{color:#999;text-decoration:none;display:block;position:relative;z-index:1}.theme-browser .theme.add-new-theme a:after{display:block;content:'';background:0 0;position:absolute;top:0;left:0;right:0;bottom:0;padding:0;text-shadow:none;border:5px dashed #d5d2ca;border:5px dashed rgba(0,0,0,.1);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.theme-browser .theme.add-new-theme span:after{background:#e5e5e5;background:rgba(153,153,153,.1);-webkit-border-radius:50%;border-radius:50%;display:inline-block;content:'\f132';-webkit-font-smoothing:antialiased;font:400 74px/115px dashicons;width:100px;height:100px;vertical-align:middle;text-align:center;color:#999;position:absolute;top:30%;left:50%;margin-left:-50px;text-indent:-4px;padding:0;text-shadow:none;z-index:4}.rtl .theme-browser .theme.add-new-theme span:after{text-indent:4px}.theme-browser .theme.add-new-theme a:focus .theme-screenshot,.theme-browser .theme.add-new-theme a:hover .theme-screenshot{background:0 0}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{background:#fff;color:#0073aa}.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{border-color:transparent;color:#fff;background:#0073aa;content:''}.theme-browser .theme.add-new-theme .theme-name{background:0 0;text-align:center;-webkit-box-shadow:none;box-shadow:none;font-weight:400;position:relative;top:0;margin-top:-18px;padding-top:0;padding-bottom:48px}.theme-browser .theme.add-new-theme a:focus .theme-name,.theme-browser .theme.add-new-theme a:hover .theme-name{color:#fff;z-index:2}.theme-overlay .theme-backdrop{position:absolute;left:-20px;right:0;top:0;bottom:0;background:#f1f1f1;background:rgba(238,238,238,.9);z-index:10000}.theme-overlay .theme-header{position:absolute;top:0;left:0;right:0;height:48px;border-bottom:1px solid #ddd}.theme-overlay .theme-header button{padding:0}.theme-overlay .theme-header .close{cursor:pointer;height:48px;width:50px;text-align:center;float:right;border:0;border-left:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:before{font:400 22px/50px dashicons!important;color:#777;display:inline-block;content:'\f335';font-weight:300}.theme-overlay .theme-header .left,.theme-overlay .theme-header .right{cursor:pointer;color:#777;background-color:transparent;height:48px;width:54px;float:left;text-align:center;border:0;border-right:1px solid #ddd;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .close:hover,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .left:hover,.theme-overlay .theme-header .right:focus,.theme-overlay .theme-header .right:hover{background:#ddd;border-color:#ccc;color:#000}.theme-overlay .theme-header .close:focus:before,.theme-overlay .theme-header .close:hover:before{color:#000}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .right:focus{-webkit-box-shadow:none;box-shadow:none;outline:0}.theme-overlay .theme-header .left.disabled,.theme-overlay .theme-header .left.disabled:hover,.theme-overlay .theme-header .right.disabled,.theme-overlay .theme-header .right.disabled:hover{color:#ccc;background:inherit;cursor:inherit}.theme-overlay .theme-header .left:before,.theme-overlay .theme-header .right:before{font:400 20px/50px dashicons!important;display:inline;font-weight:300}.theme-overlay .theme-header .left:before{content:"\f341"}.theme-overlay .theme-header .right:before{content:"\f345"}.theme-overlay .theme-about:after,.theme-overlay .theme-wrap:after{clear:both;visibility:hidden;content:".";display:block;height:0}.theme-overlay .theme-wrap{clear:both;position:fixed;top:9%;left:190px;right:30px;bottom:3%;background:#fff;-webkit-box-shadow:0 1px 20px 5px rgba(0,0,0,.1);box-shadow:0 1px 20px 5px rgba(0,0,0,.1);z-index:10000;box-sizing:border-box;-webkit-overflow-scrolling:touch}.theme-overlay .theme-actions,.theme-overlay .theme-wrap{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}body.folded .theme-overlay .theme-wrap{left:70px}.theme-overlay .theme-about{position:absolute;top:49px;bottom:57px;left:0;right:0;overflow:auto;padding:2% 4%}.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"],.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"],.theme-overlay .theme-actions .active-theme,.theme-overlay.active .theme-actions .inactive-theme{display:none}.theme-overlay .theme-actions{position:absolute;text-align:center;bottom:0;left:0;right:0;padding:10px 25px 5px;background:#f3f3f3;z-index:30;box-sizing:border-box;border-top:1px solid #eee}.ie8 .theme-overlay .theme-actions{border:1px solid #eee}.theme-overlay .theme-actions a{margin-right:5px;margin-bottom:5px}.broken-themes a.delete-theme,.theme-overlay .theme-actions .delete-theme{color:#a00;text-decoration:none;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;background:0 0}.theme-overlay .theme-actions .delete-theme{position:absolute;right:10px;bottom:5px}.broken-themes a.delete-theme:focus,.broken-themes a.delete-theme:hover,.theme-overlay .theme-actions .delete-theme:focus,.theme-overlay .theme-actions .delete-theme:hover{background:#d54e21;color:#fff;border-color:#d54e21}.theme-overlay .theme-actions .inactive-theme,.theme-overlay.active .theme-actions .active-theme{display:block}.theme-overlay .theme-screenshots{float:left;margin:0 30px 0 0;width:55%;max-width:880px;text-align:center}.theme-overlay .screenshot{border:1px solid #fff;box-sizing:border-box;overflow:hidden;position:relative;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px rgba(0,0,0,.2)}.theme-overlay .screenshot,.upload-plugin,.upload-theme{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.theme-overlay .screenshot:after{content:'';display:block;padding-top:75%}.theme-overlay .screenshot img{height:auto;position:absolute;left:0;top:0;width:100%}.theme-overlay.small-screenshot .theme-screenshots{position:absolute;width:302px}.theme-overlay.small-screenshot .theme-info{margin-left:350px;width:auto}.theme-overlay .screenshot.thumb{background:#ccc;border:1px solid #eee;float:none;display:inline-block;margin:10px 5px 0;width:140px;height:80px;cursor:pointer}.theme-overlay .screenshot.thumb:after{content:'';display:block;padding-top:100%}.theme-overlay .screenshot.thumb img{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:auto}.theme-overlay .screenshot.selected{background:0 0;border:2px solid #00a0d2}.theme-overlay .screenshot.selected img{opacity:.8}.theme-browser .theme .theme-screenshot.blank,.theme-overlay .screenshot.blank{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=)}.theme-overlay .theme-info{width:40%;float:left}.theme-overlay .current-label{background:#32373c;color:#fff;font-size:11px;display:inline-block;padding:2px 8px;-webkit-border-radius:2px;border-radius:2px;margin:0 0 -10px;user-select:none}.theme-overlay .theme-name{color:#23282d;font-size:32px;font-weight:100;margin:10px 0 0;line-height:1.3}.theme-overlay .theme-version{color:#999;font-size:13px;font-weight:400;float:none;display:inline-block;margin-left:10px}.theme-overlay .theme-author{color:#686868;font-size:16px;font-weight:400;margin:15px 0 25px}.theme-overlay .theme-author a{text-decoration:none}.theme-overlay .theme-description{color:#555;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.theme-overlay .theme-tags{border-top:3px solid #eee;color:#82878c;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px}.theme-overlay .theme-tags span{color:#444;font-weight:700;margin-right:5px}.theme-overlay .theme-update-message{background:#fef7f1;border:1px solid #eee;border-left:4px solid #d54e21;-webkit-border-radius:3px;border-radius:3px;padding:5px 20px 10px}.theme-overlay .theme-update{color:#23282d;font-size:18px;display:inline-block;line-height:40px;margin:0}.theme-overlay .parent-theme{background:#f7fcfe;border:1px solid #eee;border-left:4px solid #00a0d2;font-size:14px;font-weight:400;margin-top:30px;padding:10px 10px 10px 20px}.theme-overlay .parent-theme strong{font-weight:700}.single-theme .theme,.single-theme .theme-overlay .theme-backdrop,.single-theme .theme-overlay .theme-header{display:none}.single-theme .theme-overlay .theme-wrap{clear:both;min-height:330px;position:relative;left:auto;right:auto;top:auto;bottom:auto;z-index:10}.single-theme .theme-overlay .theme-about{padding:30px 30px 70px;position:static}.single-theme .theme-overlay .theme-actions{position:absolute}@media only screen and (min-width:2000px){#wpwrap .theme-browser .theme{width:17.6%;margin:0 3% 3% 0}#wpwrap .theme-browser .theme:nth-child(3n),#wpwrap .theme-browser .theme:nth-child(4n){margin-right:3%}#wpwrap .theme-browser .theme:nth-child(5n){margin-right:0}}@media only screen and (min-width:1680px){.theme-overlay .theme-wrap{width:1450px;margin:0 auto}}@media only screen and (min-width:1640px){.theme-browser .theme{width:22.7%;margin:0 3% 3% 0}.theme-browser .theme .theme-screenshot:after{padding-top:75%}.theme-browser .theme:nth-child(3n){margin-right:3%}.theme-browser .theme:nth-child(4n){margin-right:0}}@media only screen and (max-width:1120px){.theme-browser .theme{width:47.5%;margin-right:0}.theme-browser .theme:nth-child(even){margin-right:0}.theme-browser .theme:nth-child(odd){margin-right:5%}}@media only screen and (max-width:900px){.theme-overlay .theme-wrap{left:65px}}@media only screen and (max-width:780px){.theme-browser .theme.active .theme-name span,.theme:focus .more-details,.theme:hover .more-details,.theme:not(.active):focus .theme-actions,.theme:not(.active):hover .theme-actions{display:none}.theme-overlay .theme-wrap,body.folded .theme-overlay .theme-wrap{top:0;right:0;bottom:0;left:0;padding:70px 20px 20px;border:none;z-index:100000;position:fixed}.theme-overlay .theme-screenshots{width:40%}.theme-overlay .theme-info{width:50%}.single-theme .theme-wrap{padding:10px}.theme-browser .theme .theme-actions{padding:5px 10px 4px}.theme-overlay.small-screenshot .theme-screenshots{position:static;float:none;max-width:302px}.theme-overlay.small-screenshot .theme-info{margin-left:0;width:auto}.theme-browser.rendered .theme:focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:1}}@media only screen and (max-width:480px){.theme-browser .theme{width:100%;margin-right:0}.theme-browser .theme:nth-child(2n),.theme-browser .theme:nth-child(3n){margin-right:0}}@media only screen and (max-width:650px){.theme-overlay .theme-description,.theme-overlay .theme-update{margin-left:0}.theme-overlay .theme-actions .delete-theme{position:relative;right:auto;bottom:auto}.theme-overlay .theme-actions .inactive-theme{display:inline}.theme-overlay .theme-screenshots{width:100%;float:none}.theme-overlay .theme-info{width:100%}.theme-overlay .theme-author{margin:5px 0 15px}.theme-overlay .current-label{margin-top:10px;font-size:13px}.themes-php .wp-filter-search{float:none;clear:both;left:0;top:0;right:0;margin:10px 0;width:100%;max-width:280px}.theme-browser .theme.add-new-theme span:after{font:400 60px/90px dashicons;width:80px;height:80px;top:30%;left:50%;text-indent:0;margin-left:-40px}.single-theme .theme-wrap{margin:0 -12px 0 -10px;padding:10px}.single-theme .theme-overlay .theme-about{padding:10px;overflow:visible}.single-theme .current-label{display:none}.single-theme .theme-overlay .theme-actions{position:static}}.broken-themes{clear:both}.broken-themes table{text-align:left;width:50%;border-spacing:3px;padding:3px}.theme-browser .theme .theme-installed{background:#0073aa}.theme-browser .theme .theme-installed:before{content:'\f147'}.theme-browser .theme.is-installed .theme-actions .button-primary{display:none!important}.theme-install-php .wp-filter{padding:0 20px}.theme-install-php a.browse-themes,.theme-install-php a.upload{cursor:pointer}.theme-install-php a.browse-themes,.theme-install-php.show-upload-theme a.upload{display:none}.theme-install-php.show-upload-theme a.browse-themes{display:inline}.upload-plugin,.upload-theme{box-sizing:border-box;display:none;margin:0;padding:0;width:100%;overflow:hidden;position:relative;top:10px}.wp-full-overlay,.wp-full-overlay-sidebar{left:0;bottom:0;top:0;height:100%;position:fixed}.upload-plugin,body.show-upload-theme .upload-theme{display:block}body.show-upload-theme .upload-theme+.wp-filter,body.show-upload-theme .upload-theme+.wp-filter+.theme-browser,p.no-themes{display:none}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{background:#fafafa;border:1px solid #e5e5e5;padding:30px;margin:30px auto;max-width:380px}.upload-plugin .install-help,.upload-theme .install-help{color:#999;font-size:18px;font-style:normal;margin:0;padding:40px 0 0;text-align:center}p.no-themes{clear:both;color:#666;font-size:18px;font-style:normal;margin:0;padding:0;text-align:center}body.no-results p.no-themes{display:block}.theme-install-php .add-new-theme,body.show-upload-theme p.no-themes{display:none!important}@media only screen and (max-width:1120px){.upload-theme .wp-upload-form{margin:20px 0;max-width:100%}.upload-theme .install-help{font-size:15px;padding:20px 0 0;text-align:left}}.theme-details .star-rating{margin:15px 0 0}.theme-details .star-rating span:before{color:#ffb900;content:"\f154";display:inline-block;-webkit-font-smoothing:antialiased;font:400 20px/1 dashicons;vertical-align:top}.star-rating.rating-10 span.one:before,.star-rating.rating-30 span.two:before,.star-rating.rating-50 span.three:before,.star-rating.rating-70 span.four:before,.star-rating.rating-90 span.five:before{content:"\f459"}.star-rating.rating-100>span:before,.star-rating.rating-20 span.one:before,.star-rating.rating-30 span.one:before,.star-rating.rating-40 span.one:before,.star-rating.rating-40 span.two:before,.star-rating.rating-50 span.one:before,.star-rating.rating-50 span.two:before,.star-rating.rating-60 span.one:before,.star-rating.rating-60 span.three:before,.star-rating.rating-60 span.two:before,.star-rating.rating-70 span.one:before,.star-rating.rating-70 span.three:before,.star-rating.rating-70 span.two:before,.star-rating.rating-80 span.four:before,.star-rating.rating-80 span.one:before,.star-rating.rating-80 span.three:before,.star-rating.rating-80 span.two:before,.star-rating.rating-90 span.four:before,.star-rating.rating-90 span.one:before,.star-rating.rating-90 span.three:before,.star-rating.rating-90 span.two:before{content:"\f155"}.theme-details .star-rating .ratings{display:block;line-height:20px;color:#999}.appearance_page_custom-header #headimg{border:1px solid #DFDFDF;overflow:hidden;width:100%}.appearance_page_custom-header #upload-form p label{font-size:12px}.appearance_page_custom-header .available-headers .default-header{float:left;margin:0 20px 20px 0}.appearance_page_custom-header .random-header{clear:both;margin:0 20px 20px 0;vertical-align:middle}.appearance_page_custom-header .available-headers label input,.appearance_page_custom-header .random-header label input{margin-right:10px}.appearance_page_custom-header .available-headers label img{vertical-align:middle}div#custom-background-image{min-height:100px;border:1px solid #dfdfdf}div#custom-background-image img{max-width:400px;max-height:300px}body.full-overlay-active{overflow:hidden}.wp-full-overlay{background:0 0;z-index:500000;overflow:visible;right:0;min-width:0}.wp-full-overlay-sidebar{box-sizing:border-box;width:300px;padding:0;margin:0;z-index:10;background:#eee;border-right:none}.widget,.wp-full-overlay-sidebar{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.wp-full-overlay.collapsed,.wp-full-overlay.expanded .wp-full-overlay-sidebar{margin-left:0!important}.wp-full-overlay.expanded{margin-left:300px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{overflow:visible;margin-left:-300px}.wp-full-overlay-sidebar:after{content:'';display:block;position:absolute;top:0;bottom:0;right:0;width:3px;z-index:1000}.wp-full-overlay-main{position:absolute;left:0;right:0;top:0;bottom:0;height:100%}#customize-preview.wp-full-overlay-main{background:url(../images/spinner.gif) center center no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px}#customize-preview.wp-full-overlay-main.iframe-ready{background:0 0}.wp-full-overlay-sidebar .wp-full-overlay-header{position:absolute;left:0;right:0;height:45px;padding:0 15px;line-height:45px;z-index:10;margin:0;border-top:none;-webkit-box-shadow:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-header a.back{margin-top:9px}.wp-full-overlay-sidebar .wp-full-overlay-footer{bottom:0;border-bottom:none;border-top:none;-webkit-box-shadow:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{position:absolute;top:45px;bottom:45px;left:0;right:0;overflow:auto}.theme-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header{padding:0}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{display:block;position:relative;float:left;width:45px;height:45px;padding-right:2px;background:#eee;border-right:1px solid #ddd;color:#444;cursor:pointer;text-decoration:none;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-install-overlay .close-full-overlay:focus,.theme-install-overlay .close-full-overlay:hover,.theme-install-overlay .next-theme:focus,.theme-install-overlay .next-theme:hover,.theme-install-overlay .previous-theme:focus,.theme-install-overlay .previous-theme:hover{background:#ddd;border-color:#ccc;color:#000;outline:0;-webkit-box-shadow:none;box-shadow:none}.theme-install-overlay .close-full-overlay:before{font:400 22px/1 dashicons;content:"\f335";position:relative;top:7px;left:13px}.theme-install-overlay .previous-theme:before{font:400 20px/1 dashicons;content:"\f341";position:relative;top:6px;left:14px}.theme-install-overlay .next-theme:before{font:400 20px/1 dashicons;content:"\f345";position:relative;top:6px;left:13px}.theme-install-overlay .next-theme.disabled,.theme-install-overlay .next-theme.disabled:focus,.theme-install-overlay .next-theme.disabled:hover,.theme-install-overlay .previous-theme.disabled,.theme-install-overlay .previous-theme.disabled:focus,.theme-install-overlay .previous-theme.disabled:hover{color:#b4b9be;background:#eee;cursor:default;pointer-events:none}.wp-core-ui .wp-full-overlay .collapse-sidebar{position:fixed;bottom:8px;left:10px;padding:0;color:#656a6f;outline:0;line-height:1;background-color:transparent!important;border:none!important;-webkit-box-shadow:none!important;box-shadow:none!important;-webkit-border-radius:0!important;border-radius:0!important}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#0073aa}.wp-full-overlay .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar-label{display:inline-block;vertical-align:middle;line-height:20px}.wp-full-overlay .collapse-sidebar-arrow{width:20px;height:20px;margin:0 2px;-webkit-border-radius:50%;border-radius:50%;overflow:hidden}.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-full-overlay .collapse-sidebar-label{margin-left:3px}.wp-full-overlay.collapsed .collapse-sidebar-label{display:none}.wp-full-overlay .collapse-sidebar-arrow:before{display:block;content:"\f148";background:#eee;font:400 20px/1 dashicons;speak:none;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.rtl .wp-full-overlay .collapse-sidebar-arrow:before,.wp-full-overlay.collapsed .collapse-sidebar-arrow:before{-webkit-transform:rotate(180.001deg);-ms-transform:rotate(180.001deg);transform:rotate(180.001deg)}.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before{-webkit-transform:none;-ms-transform:none;transform:none}.wp-full-overlay,.wp-full-overlay .collapse-sidebar,.wp-full-overlay-main,.wp-full-overlay-sidebar{-webkit-transition-property:left,right,top,bottom,width,margin;transition-property:left,right,top,bottom,width,margin;-webkit-transition-duration:.2s;transition-duration:.2s}.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#customize-container{display:none;background:#fff;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;left:0;right:0;height:100%}.customize-active #customize-container{display:block}.customize-loading #customize-container iframe{opacity:0}.customize-loading #customize-container{background:url(../images/spinner.gif) center center no-repeat fixed #fff;-webkit-background-size:20px 20px;background-size:20px 20px}#customize-container iframe,.theme-install-overlay iframe{height:100%;width:100%;z-index:20;-webkit-transition:opacity .3s;transition:opacity .3s}#customize-controls{margin-top:0}.theme-install-overlay{display:none}.theme-install-overlay.single-theme{display:block}.install-theme-info{display:none;padding:10px 20px 60px}.single-theme .install-theme-info{padding-top:15px}.theme-install-overlay .install-theme-info{display:block}.install-theme-info .theme-install{float:right;margin-top:18px}.install-theme-info .theme-name{font-size:16px;line-height:24px;margin-bottom:0;margin-top:0}.install-theme-info .theme-screenshot{margin-top:15px;width:258px;border:1px solid #ccc}.install-theme-info .theme-details{overflow:hidden}.theme-details .theme-version{margin:15px 0;float:left}.theme-details .theme-description{float:left;color:#777;line-height:20px;max-width:100%}.theme-install-overlay .wp-full-overlay-header .theme-install{float:right;margin:8px 10px 0 0;line-height:26px}.theme-install-overlay .wp-full-overlay-sidebar{background:#eee;border-right:1px solid #ddd}.theme-install-overlay .wp-full-overlay-sidebar-content{background:#fff;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.theme-install-overlay .wp-full-overlay-main{background:url(../images/spinner.gif) center center no-repeat #fff;-webkit-background-size:20px 20px;background-size:20px 20px}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.wp-full-overlay .collapse-sidebar-arrow{background-image:url(../images/arrows-2x.png);-webkit-background-size:15px 123px;background-size:15px 123px}#customize-preview.wp-full-overlay-main,.customize-loading #customize-container,.theme-install-overlay .wp-full-overlay-main{background-image:url(../images/spinner-2x.gif)}.theme-install-overlay .wp-full-overlay-header .theme-install{margin-top:2px}}@media screen and (max-width:782px){.available-theme .action-links .delete-theme{float:none;margin:0;padding:0;clear:both}.available-theme .action-links .delete-theme a{padding:0}.broken-themes table{width:100%}.theme-install-overlay .wp-full-overlay-header .theme-install{margin-top:6px;line-height:normal}}.about-wrap{position:relative;margin:25px 40px 0 20px;max-width:1050px;font-size:15px}.about-wrap .notice,.about-wrap div.error,.about-wrap div.updated{display:none!important}.about-wrap hr{border:0;height:0;margin:0;border-top:1px solid rgba(0,0,0,.1)}.about-wrap img{margin:0;max-width:100%;height:auto;vertical-align:middle}.about-wrap .jetpack-video-wrapper{margin-bottom:0}.wp-badge{background:url(../images/w-logo-white.png?ver=20131202) center 24px no-repeat #0073aa;-webkit-background-size:85px 85px;background-size:85px 85px;color:#78c8e6;font-size:14px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:40px;display:inline-block;width:150px;text-rendering:optimizeLegibility;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.2);box-shadow:0 1px 3px rgba(0,0,0,.2)}.svg .wp-badge{background-image:url(../images/wordpress-logo-white.svg?ver=20131110)}.about-wrap .wp-badge{position:absolute;top:0;right:0}.about-wrap h2.nav-tab-wrapper{padding-left:6px}.about-wrap h2 .nav-tab{padding:4px 15px 6px;margin:0 3px -1px 0;font-size:18px;vertical-align:top;border-width:1px}.about-wrap p{line-height:1.6em;font-size:14px}.about-wrap h1{margin:.2em 200px 0 0;padding:0;color:#32373c;line-height:1.2em;font-size:2.8em;font-weight:400}.about-wrap h3{margin:1.25em 0 .6em;font-size:1.25em;line-height:1.5em}.about-wrap h4{color:#23282d}.about-wrap code,.about-wrap ol li p{font-size:14px;font-weight:400}.about-wrap .about-description,.about-wrap .about-text{margin-top:1.4em;font-weight:400;line-height:1.6em;font-size:19px}.about-wrap .about-text{margin:1em 200px 1em 0;min-height:60px;color:#777}.about-wrap [class$=col] .col{float:left;position:relative}.about-wrap .two-col .col{margin-right:4.799999999%;width:47.6%}.about-wrap .three-col .col{margin-right:4.999999999%;width:29.95%}.about-wrap .three-col .col:nth-of-type(3n),.about-wrap .two-col .col:nth-of-type(2n){margin-right:0}.about-wrap .point-releases{margin-top:5px;border-bottom:1px solid #dfdfdf}.about-wrap .changelog.point-releases h3{padding-top:35px}.about-wrap .changelog.point-releases h3:first-child{padding-top:7px}.about-wrap .headline-feature h2{margin:50px 0 30px;font-size:2.2em;font-weight:300;line-height:1.3;text-align:left}.about-wrap .headline-feature h3{margin-top:30px;text-align:center}.about-wrap .feature-list h2{margin:30px 0 15px;text-align:center}.about-wrap .feature-section h4{margin:1.4em 0 .6em;font-size:1em}.about-wrap .feature-section p{margin-top:.6em}.about-wrap .feature-video{position:relative;margin:40px 0;padding-bottom:56.25%;width:100%;height:0;text-align:center}.about-wrap .feature-video embed{position:absolute;top:0;left:0;width:100%;height:100%}.about-wrap .featured-image{text-align:center}.about-wrap .feature-section{overflow:hidden;padding:0 0 40px;border-bottom:1px solid rgba(0,0,0,.1)}.about-wrap .headline-feature .feature-section{margin:0 auto;max-width:95%}.about-wrap .changelog.feature-section .col,.about-wrap .feature-section:not(.under-the-hood) .col{margin-top:40px}.about-wrap .feature-section .media-container{border:1px solid #ddd;overflow:hidden}.about-wrap .feature-section .svg-container{padding:50px 0;text-align:center;background-color:#e1e1e3}.about-wrap .feature-section .svg-container img{max-width:150px}.about-wrap .changelog{margin-bottom:40px}.about-wrap .return-to-dashboard{margin:30px 0 0 -5px;font-size:14px;font-weight:700}.about-wrap .return-to-dashboard a{text-decoration:none;padding:0 5px}.about-wrap .feature-list.finer-points h4,.about-wrap .feature-list.finer-points p{margin-left:115px}.about-wrap h4.wp-people-group{margin-top:2.6em;font-size:16px}.about-wrap ul.wp-people-group{overflow:hidden;padding:0 5px;margin:0 -15px 0 -5px}.about-wrap ul.compact{margin-bottom:0}.about-wrap li.wp-person{display:inline-block;vertical-align:top;margin-right:10px;padding-bottom:15px;height:70px;width:280px}.about-wrap ul.compact li.wp-person{height:auto;width:180px;padding-bottom:0;margin-bottom:0}.about-wrap li.wp-person img.gravatar{float:left;margin:0 10px 10px 0;padding:2px;width:60px;height:60px}.about-wrap ul.compact li.wp-person img.gravatar{width:30px;height:30px}.about-wrap li.wp-person a.web{display:block;margin:6px 0 2px;font-size:16px;font-weight:400;line-height:1.6em;text-decoration:none}.about-wrap #wp-people-group-validators+p.wp-credits-list{margin-top:0}.freedoms-php .about-wrap ol{margin:40px 60px}.freedoms-php .about-wrap ol li{list-style-type:decimal;font-weight:700}.freedoms-php .about-wrap ol p{font-weight:400;margin:.6em 0}@media screen and (max-width:782px){.about-wrap .feature-section{padding:0;border-bottom:none}.about-wrap [class$=col] .col{float:none;width:100%;margin:40px 0 0;padding:0 0 40px;border-bottom:1px solid rgba(0,0,0,.1)}.about-wrap .three-col img{display:block;margin:0 auto}.about-wrap .feature-list .col{margin:0;padding:0;border-bottom:none}.about-wrap .headline-feature .feature-section{max-width:100%}.about-wrap .feature-list .feature-section{padding:0 0 40px}}@media only screen and (max-width:500px){.about-wrap{margin-right:20px;margin-left:10px}.about-wrap .about-text,.about-wrap h1{margin-right:0}.about-wrap .about-text{margin-bottom:.25em}.about-wrap .wp-badge{position:relative;margin-bottom:1.5em;width:100%}.about-wrap h2.nav-tab-wrapper{padding-left:0;border-bottom:0}.about-wrap h2 .nav-tab{margin-top:10px;margin-right:10px;border-bottom:1px solid #ccc}.about-wrap .feature-section .svg-container{padding-top:20px;padding-bottom:20px}.about-wrap .headline-feature .feature-section .col,.about-wrap .three-col .col{width:100%!important;float:none!important}}@media only screen and (max-width:400px){.about-wrap .feature-list svg{margin-top:15px;height:65px;width:65px}.about-wrap .feature-list.finer-points h4,.about-wrap .feature-list.finer-points p{margin-left:80px}}.no-js #message{display:block}ul.add-menu-item-tabs li{padding:3px 5px 3px 8px}.accordion-section ul.add-menu-item-tabs,.accordion-section ul.category-tabs,.accordion-section ul.wp-tab-bar{margin:0}.accordion-section .categorychecklist{margin:13px 0}#nav-menu-meta .accordion-section-content{padding:18px 13px}#nav-menu-meta .button-controls{margin-bottom:0}#nav-menus-frame{margin-left:300px;margin-top:23px}#wpbody-content #menu-settings-column{display:inline;width:281px;margin-left:-300px;clear:both;float:left;padding-top:0}#menu-settings-column .inside{clear:both;margin:10px 0 0}.metabox-holder-disabled .accordion-section-content,.metabox-holder-disabled .accordion-section-title,.metabox-holder-disabled .postbox{opacity:.5;filter:alpha(opacity=50)}.metabox-holder-disabled .button-controls .select-all{display:none}#wpbody{position:relative}.blank-slate .menu-name{height:2em}.blank-slate .menu-settings{border:none;margin-top:0;padding-top:0;overflow:hidden}.is-submenu{color:#999;font-style:italic;font-weight:400;margin-left:4px}.manage-menus{margin-top:23px;padding:10px;overflow:hidden;background:#fbfbfb}.manage-menus select{float:left;margin-right:6px}.manage-menus .selected-menu{float:left;margin:5px 6px 0 0}.manage-menus .submit-btn{float:left;margin-top:1px}.menu-edit #post-body-content h3{margin:1em 0 10px}.menu-settings{border-top:1px solid #eee;margin-top:2em}.menu-settings dl{margin:0 0 10px;overflow:hidden;padding-left:18%}.menu-settings dd{float:left;margin:0;width:100%}.menu-settings dt{float:left;clear:both;width:21.951%;padding:3px 0 0;margin-left:-21.951%}.menu-settings label{vertical-align:baseline}.menu-edit .checkbox-input{margin-top:4px}.theme-location-set{color:#999;font-size:11px}#add-custom-link .howto,#cancel-save{font-size:12px}#menu-management-liquid{float:left;min-width:100%;margin-top:3px}#menu-management{position:relative;margin-right:20px;margin-top:-3px;width:100%;background:#f5f5f5}#menu-management .menu-edit{margin-bottom:20px}.nav-menus-php #post-body{padding:0 10px 10px;border-top:1px solid #fff;border-bottom:1px solid #dfdfdf;background:#fff}#nav-menu-footer,#nav-menu-header{padding:0 10px}#nav-menu-header{border-bottom:1px solid #dfdfdf;margin-bottom:0}#nav-menu-header .menu-name-label{margin-top:4px}.nav-menus-php #post-body div.error,.nav-menus-php #post-body div.updated{margin:0}.nav-menus-php #post-body-content{position:relative;float:none}#menu-management .menu-add-new abbr{font-weight:600}#select-nav-menu-container{text-align:right;padding:0 10px 3px;margin-bottom:5px}#select-nav-menu{width:100px;display:inline}#menu-name-label{margin-top:-2px}.widefat .menu-locations tr+tr td{padding-top:0}.widefat .menu-locations td{vertical-align:middle}.menu-location-title label{font-weight:700}.menu-location-menus select{float:left}#locations-nav-menu-wrapper{padding:5px 0}.locations-nav-menu-select select{float:left;width:160px;margin-right:5px}.locations-row-links{float:left;margin:6px 0 0 6px}.locations-add-menu-link,.locations-edit-menu-link{margin:0 3px}.locations-edit-menu-link{padding-right:3px;border-right:1px solid #ccc}#wpbody .open-label{display:block;float:left}#wpbody .open-label span{padding-right:10px}.js .input-with-default-title{color:#a0a5aa;font-style:italic}#menu-management .inside{padding:0 10px}.accordion-container .howto input,.postbox .howto input{width:180px;float:right}.accordion-container .outer-border{margin:0}.customlinkdiv .howto input{width:180px}.customlinkdiv p{margin-top:0}#nav-menu-theme-locations .howto select{width:100%}#nav-menu-theme-locations .button-controls{text-align:right}.add-menu-item-view-all{height:400px}#menu-container .submit{margin:0 0 10px;padding:0}.nav-menus-php .add-new-menu-action{float:left;margin:6px 0 0 6px;line-height:15px}.nav-menus-php .meta-sep,.nav-menus-php .submitcancel,.nav-menus-php .submitdelete{display:block;float:left;margin:6px 0;line-height:15px}.meta-sep{padding:0 2px}#cancel-save{text-decoration:underline;margin-left:20px;margin-top:5px}.button-primary.right,.button-secondary.right,.button.right{float:right}.list-controls{float:left;margin-top:5px}.add-to-menu{float:right}.button-controls{clear:both;margin:10px 0}.hide-all,.show-all{cursor:pointer}.hide-all{display:none}#menu-name{width:270px}#manage-menu .inside{padding:0}#available-links dt{display:block}#add-custom-link label span{display:block;float:left;margin-top:5px;padding-right:5px}.menu-item-textbox{width:180px}.nav-menus-php .howto span{margin-top:6px;display:block;float:left}.quick-search{width:190px}.quick-search-wrap .spinner{float:none;margin:0 5px}.nav-menus-php .list-wrap{display:none;clear:both;margin-bottom:10px}.nav-menus-php .postbox p.submit{margin-bottom:0}.nav-menus-php .list li{display:none;margin:0 0 5px}.nav-menus-php .list li .menu-item-title{cursor:pointer;display:block}.nav-menus-php .list li .menu-item-title input{margin-right:3px;margin-top:-3px}.menu-item-title input[type=checkbox]{display:inline-block;margin-top:-4px}#menu-container .inside{padding-bottom:10px}.menu{padding-top:1em}#menu-to-edit{margin:0;padding:.1em 0}.menu ul{width:100%}.menu li{margin-bottom:0;position:relative}.menu-item-bar{clear:both;line-height:1.5em;position:relative;margin:9px 0 0}.menu-item-bar .menu-item-handle{border:1px solid #dfdfdf;position:relative;padding:10px 15px;height:auto;min-height:20px;width:382px;line-height:30px;overflow:hidden;word-wrap:break-word}.menu-item-bar .menu-item-handle:hover{border-color:#999}#menu-to-edit .menu-item-invalid .menu-item-handle{background:#f6c9cc;border-color:#f1acb1}.no-js .menu-item-edit-active .item-edit{display:none}.js .menu-item-handle{cursor:move}#cancel-save,.item-controls a:hover,.js .sidebar-name{cursor:pointer}.menu li.deleting .menu-item-handle{background-image:none;background-color:#f66}.menu-item-handle .item-title{font-size:13px;font-weight:600;line-height:20px;display:block;margin-right:13em}.menu-item-handle .menu-item-title.no-title{color:#999}li.menu-item.ui-sortable-helper .menu-item-bar{margin-top:0}li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar{margin-top:13px}.menu .sortable-placeholder{height:35px;width:410px;margin-top:13px}.menu-item .menu-item-transport:empty{display:none}.menu-item-depth-0{margin-left:0}.menu-item-depth-1{margin-left:30px}.menu-item-depth-2{margin-left:60px}.menu-item-depth-3{margin-left:90px}.menu-item-depth-4{margin-left:120px}.menu-item-depth-5{margin-left:150px}.menu-item-depth-6{margin-left:180px}.menu-item-depth-7{margin-left:210px}.menu-item-depth-8{margin-left:240px}.menu-item-depth-9{margin-left:270px}.menu-item-depth-10{margin-left:300px}.menu-item-depth-11{margin-left:330px}.menu-item-depth-0 .menu-item-transport{margin-left:0}.menu-item-depth-1 .menu-item-transport{margin-left:-30px}.menu-item-depth-2 .menu-item-transport{margin-left:-60px}.menu-item-depth-3 .menu-item-transport{margin-left:-90px}.menu-item-depth-4 .menu-item-transport{margin-left:-120px}.menu-item-depth-5 .menu-item-transport{margin-left:-150px}.menu-item-depth-6 .menu-item-transport{margin-left:-180px}.menu-item-depth-7 .menu-item-transport{margin-left:-210px}.menu-item-depth-8 .menu-item-transport{margin-left:-240px}.menu-item-depth-9 .menu-item-transport{margin-left:-270px}.menu-item-depth-10 .menu-item-transport{margin-left:-300px}.menu-item-depth-11 .menu-item-transport{margin-left:-330px}body.menu-max-depth-0{min-width:950px!important}body.menu-max-depth-1{min-width:980px!important}body.menu-max-depth-2{min-width:1010px!important}body.menu-max-depth-3{min-width:1040px!important}body.menu-max-depth-4{min-width:1070px!important}body.menu-max-depth-5{min-width:1100px!important}body.menu-max-depth-6{min-width:1130px!important}body.menu-max-depth-7{min-width:1160px!important}body.menu-max-depth-8{min-width:1190px!important}body.menu-max-depth-9{min-width:1220px!important}body.menu-max-depth-10{min-width:1250px!important}body.menu-max-depth-11{min-width:1280px!important}.item-type{display:inline-block;padding:12px 10px;color:#666;font-size:12px;line-height:18px}.item-controls{font-size:12px;position:absolute;right:20px;top:-1px}.item-controls a{text-decoration:none}.item-controls .item-order{padding-right:10px}.nav-menus-php .item-edit{position:absolute;right:-20px;top:0;display:block;width:30px;height:40px;margin-right:0!important;text-indent:100%;outline:0;overflow:hidden}.menu-instructions-inactive{display:none}.menu-item-settings{display:block;width:402px;padding:10px 0 10px 10px;position:relative;z-index:10;border:1px solid #e5e5e5;border-top:none;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04)}.menu-item-settings .field-move a{display:none;margin:0 2px}.menu-item-edit-active .menu-item-settings{display:block}.menu-item-edit-inactive .menu-item-settings{display:none}.add-menu-item-pagelinks{margin:.5em auto;text-align:center}.link-to-original{display:block;margin:0 0 10px;padding:3px 5px 5px;border:1px solid #dfdfdf;color:#777;font-size:12px;font-style:italic}.hidden-field,.nav-menus-php .blank-slate .menu-settings{display:none}.link-to-original a{padding-left:4px;font-style:normal}.menu-item-settings .description-thin,.menu-item-settings .description-wide{margin-right:10px;float:left}.description-thin{width:190px}.description-wide{width:390px}.menu-item-actions{padding-top:15px}.nav-menus-php .major-publishing-actions{clear:both;padding:3px 0 6px}.nav-menus-php .major-publishing-actions .publishing-action{text-align:right;float:right;line-height:23px;margin:4px 0 1px}.nav-menus-php .delete-action{float:left;margin-top:2px}.nav-menus-php .submitbox .submitcancel{border-bottom:1px solid #0073aa;padding:1px 2px;color:#0073aa;text-decoration:none}.nav-menus-php .submitbox .submitcancel:hover{background:#0073aa;color:#fff}.nav-menus-php .major-publishing-actions .form-invalid{padding-left:4px;margin-left:-4px}#menu-item-name-wrap:after,#menu-item-url-wrap:after,#menu-name-label:after,#menu-settings-column .inside:after,#nav-menus-frame:after,.nav-menus-php #post-body-content:after,.nav-menus-php .button-controls:after,.nav-menus-php .major-publishing-actions:after,.nav-menus-php .menu-item-settings:after{clear:both;content:".";display:block;height:0;visibility:hidden}#menu-item-name-wrap,#menu-item-url-wrap,#nav-menus-frame,.button-controls{display:block}@media screen and (max-width:782px){body.nav-menus-php{min-width:0!important}#nav-menus-frame{margin-left:0;float:none;width:100%}#wpbody-content #menu-settings-column{display:block;width:100%;float:none;margin-left:0}#side-sortables .add-menu-item-tabs{margin:15px 0 14px}ul.add-menu-item-tabs li.tabs{padding:13px 15px 14px}.nav-menus-php .item-controls .item-type{margin-top:2px}.nav-menus-php .customlinkdiv .howto input{width:65%}.nav-menus-php .quick-search{width:85%}#menu-management-liquid{margin-top:25px}.nav-menus-php .menu-name-label.howto span{margin-top:13px}.menu-name-label #menu-name{margin-top:4px}.nav-menus-php .major-publishing-actions .publishing-action{margin-top:6px}.nav-menus-php .delete-action{font-size:14px;line-height:50px;margin-top:12px}.description-wide,.menu-item-bar .menu-item-handle,.menu-item-settings{width:auto}.menu-item-settings{padding:10px}.menu-item-settings .description-thin,.menu-item-settings .description-wide,.menu-item-settings input{width:100%}.menu-item-settings input[type=checkbox],.menu-item-settings input[type=radio]{width:25px}.menu-settings dl{padding-left:0}.menu-settings dd{float:none;width:100%;margin-bottom:15px}.menu-settings dt{float:none;width:auto;margin-left:0;margin-bottom:15px}}@media only screen and (max-width:768px){#menu-locations-wrap .widefat{width:100%}}.widget{margin:0 auto 10px;position:relative;box-sizing:border-box}.widget-top{font-size:13px;font-weight:600;background:#f7f7f7}.widget-top a.widget-action,.widget-top a.widget-action:hover{-webkit-box-shadow:none;box-shadow:none;outline:0;text-decoration:none}.widget-title h4{margin:0;padding:15px;line-height:1;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.widgets-holder-wrap .widget-inside{border-top:none;padding:1px 15px 15px;line-height:16px}#available-widgets .widget-description,#widgets-right a.widget-control-edit,.in-widget-title{color:#666}.deleting .widget-title,.deleting .widget-top a.widget-action:after{color:#a0a5aa}.widget.ui-draggable-dragging{min-width:100%}.widget.ui-sortable-helper{opacity:.8}.widget-placeholder{border:1px dashed #b4b9be;margin:0 auto 10px;height:45px;width:100%;box-sizing:border-box}.sidebar-name,.widget-placeholder{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}#widgets-right .widget-placeholder{margin-top:0}#widgets-right .closed .widget-placeholder{height:0;border:0;margin-top:-10px}.sidebar-name{position:relative;box-sizing:border-box}.sidebar-name-arrow{position:absolute;top:0;right:0;bottom:0}.sidebar-name h3{margin:0;padding:8px 10px;overflow:hidden}.widgets-holder-wrap .description{padding:0 0 15px;margin:0;font-style:normal;color:#777}#widgets-right .widgets-holder-wrap .description{padding-left:7px;padding-right:7px}div.widget-liquid-left{margin:0;width:38%;float:left}div.widget-liquid-right{float:right;width:58%}div#widgets-left{padding-top:12px}div#widgets-left .closed .sidebar-name,div#widgets-left .inactive-sidebar.closed .sidebar-name{margin-bottom:10px}div#widgets-left .sidebar-name h3{padding:10px 0;margin:0 10px 0 0}div#widgets-left .sidebar-name .sidebar-name-arrow:before{right:0;top:4px;padding:4px 6px 4px 4px}#widgets-left #available-widgets,div#widgets-left .widget-holder{background:0 0;border:none}#widgets-left .widgets-holder-wrap{border:none;-webkit-box-shadow:none;box-shadow:none}#available-widgets .widget-action{display:none}#available-widgets .widget{margin:0}#available-widgets .widget:nth-child(odd){clear:both}#available-widgets .widget .widget-description{display:block;padding:10px 15px;font-size:12px}#available-widgets #widget-list{position:relative}#widgets-left .inactive-sidebar{clear:both;width:100%;background:0 0;padding:0;margin:0 0 20px;border:none;-webkit-box-shadow:none;box-shadow:none}#widgets-left .inactive-sidebar.first{margin-top:40px}div#widgets-left .inactive-sidebar .widget.expanded{left:auto}.widget-title-action{float:right;position:relative}div#widgets-left .inactive-sidebar .widgets-sortables{min-height:42px;padding:0;background:0 0;margin:0;position:relative}div#widgets-right:after{content:".";display:block;height:0;clear:both;visibility:hidden}div#widgets-right .sidebars-column-1,div#widgets-right .sidebars-column-2{max-width:450px}div#widgets-right .widgets-holder-wrap{margin:10px 0 0}div#widgets-right .sidebar-description{min-height:20px;margin-top:-5px}div#widgets-right .sidebar-name h3{padding:15px 7px}div#widgets-right .sidebar-name .sidebar-name-arrow:before{right:0;top:4px}div#widgets-right .widget-top{padding:0}div#widgets-right .widgets-sortables{padding:0 8px;margin-bottom:9px;position:relative;min-height:123px}div#widgets-right .closed .widgets-sortables{min-height:0;margin-bottom:0}.sidebar-name .spinner{float:none;position:relative;top:-2px;margin:-5px 5px}#widgets-right .widgets-holder-wrap.widget-hover{border-color:#777;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.3);box-shadow:0 1px 2px rgba(0,0,0,.3)}.widgets_access #widgets-left .widget .widget-top{cursor:auto}.widgets_access #wpwrap .widget-control-edit,.widgets_access #wpwrap .widgets-holder-wrap.closed .sidebar-description,.widgets_access #wpwrap .widgets-holder-wrap.closed .widget{display:block}.widgets_access #widgets-left .widget .widget-top:hover,.widgets_access #widgets-right .widget .widget-top:hover{border-color:#ddd}#available-widgets .widget-control-edit .edit,#widgets-left .inactive-sidebar .widget-control-edit .add,#widgets-right .widget-control-edit .add{display:none}.editwidget .widget-inside,.widget-control-edit{display:block;padding:0 15px}.widget-control-edit{color:#666;background:#EEE;line-height:43px;border-left:1px solid #DDD}#widgets-left .widget-control-edit:hover,#widgets-right .widget-control-edit:hover{color:#fff;background:#444;border-left:0;outline:#444 solid 1px}.widgets-holder-wrap .sidebar-description,.widgets-holder-wrap .sidebar-name{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.editwidget{margin:0 auto}.editwidget .widget-control-actions{margin-top:20px}.js .closed br.clear,.js .widgets-holder-wrap.closed .sidebar-description,.js .widgets-holder-wrap.closed .widget{display:none}.js .widgets-holder-wrap.closed .widget.ui-sortable-helper{display:block}#access-off,.no-js .widget-holder .description,.widget-control-noform,.widget-description,.widget-inside,.widgets_access #access-on,.widgets_access .sidebar-name-arrow,.widgets_access .widget-action,.widgets_access .widget-holder .description{display:none}.widget-inside{background:#fff}#removing-widget{display:none;font-weight:400;padding-left:15px;font-size:12px;line-height:1;color:#000}.js #removing-widget{color:#00a0d2}.widgets_access #widget-list,.widgets_access .widget-holder{padding-top:10px}.widgets_access #access-off{display:inline}.widgets_access .sidebar-name,.widgets_access .widget .widget-top{cursor:default}.widget-liquid-left #widgets-left.chooser #available-widgets .widget,.widget-liquid-left #widgets-left.chooser .inactive-sidebar{-webkit-transition:opacity .1s linear;transition:opacity .1s linear;opacity:.2;pointer-events:none}.widget-liquid-left #widgets-left.chooser #available-widgets .widget-in-question{opacity:1;pointer-events:auto}#available-widgets .widget-top:hover,#widgets-left .widget-in-question .widget-top,#widgets-left .widget-top:hover,.widgets-chooser ul,div#widgets-right .widget-top:hover{border-color:#999;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1)}.widgets-chooser ul.widgets-chooser-sidebars{margin:0;list-style-type:none;max-height:300px;overflow:auto}.widgets-chooser{display:none}.widgets-chooser ul{border:1px solid #ccc}.widgets-chooser li{padding:10px 15px 10px 35px;border-bottom:1px solid #ccc;background:#fff;margin:0;cursor:pointer;outline:0;position:relative;-webkit-transition:background .2s ease-in-out;transition:background .2s ease-in-out}.widgets-chooser li:focus,.widgets-chooser li:hover{background:rgba(255,255,255,.7)}.widgets-chooser li:focus:before{content:'\f147';display:block;-webkit-font-smoothing:antialiased;font:400 26px/1 dashicons;color:#999;position:absolute;top:7px;left:5px}.widgets-chooser li:last-child{border:none}.widgets-chooser li.widgets-chooser-selected{background:#00a0d2;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{content:'\f147';display:block;-webkit-font-smoothing:antialiased;font:400 26px/1 dashicons;color:#fff;position:absolute;top:7px;left:5px}.locale-he-il em,.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}.widgets-chooser .widgets-chooser-actions{padding:10px 0 12px;text-align:center}.widgets-chooser button{margin-right:5px}#available-widgets .widget .widget-top{cursor:pointer}#available-widgets .widget.ui-draggable-dragging .widget-top{cursor:move}@media screen and (max-width:480px){div.widget-liquid-left{width:100%;float:none;border-right:none;padding-right:0}#widgets-left #available-widgets .widget-top,#widgets-left .inactive-sidebar .widgets-sortables,#widgets-left .sidebar-name{margin-right:0}div.widget-liquid-right{width:100%;float:none}div.widget{margin:0 auto 10px!important;max-width:480px}}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button,.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}@media screen and (max-width:320px){div.widget{max-width:320px}}@media only screen and (min-width:1250px){#widgets-left #available-widgets .widget{width:49%;float:left}.widget.ui-draggable-dragging{min-width:49%}#widgets-left #available-widgets .widget:nth-child(even){float:right}#widgets-right .sidebars-column-1,#widgets-right .sidebars-column-2{float:left;width:49%}#widgets-right .sidebars-column-1{margin-right:2%}#widgets-right.single-sidebar .sidebars-column-1,#widgets-right.single-sidebar .sidebars-column-2{float:none;width:100%;margin:0}}.site-icon-preview .favicon-preview{margin:5px 0 20px;overflow:hidden;position:relative;max-width:180px}.site-icon-preview .browser-title,.site-icon-preview .favicon{height:16px;left:88px;overflow:hidden;position:absolute;top:16px}.site-icon-preview .favicon{width:16px}.site-icon-preview .browser-title{left:109px}.site-icon-preview .app-icon-preview{background-color:#000;-webkit-border-radius:16px;border-radius:16px;height:64px;overflow:hidden;width:64px;margin-top:5px}body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:700}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-weight:700}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-right:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-left:0}} \ No newline at end of file diff --git a/wp-admin/custom-background.php b/wp-admin/custom-background.php deleted file mode 100644 index 36a5b504fa..0000000000 --- a/wp-admin/custom-background.php +++ /dev/null @@ -1,478 +0,0 @@ -admin_header_callback = $admin_header_callback; - $this->admin_image_div_callback = $admin_image_div_callback; - - add_action( 'admin_menu', array( $this, 'init' ) ); - - add_action( 'wp_ajax_custom-background-add', array( $this, 'ajax_background_add' ) ); - - // Unused since 3.5.0. - add_action( 'wp_ajax_set-background-image', array( $this, 'wp_set_background_image' ) ); - } - - /** - * Set up the hooks for the Custom Background admin page. - * - * @since 3.0.0 - */ - public function init() { - $page = add_theme_page( __( 'Background' ), __( 'Background' ), 'edit_theme_options', 'custom-background', array( $this, 'admin_page' ) ); - if ( ! $page ) { - return; - } - - add_action( "load-$page", array( $this, 'admin_load' ) ); - add_action( "load-$page", array( $this, 'take_action' ), 49 ); - add_action( "load-$page", array( $this, 'handle_upload' ), 49 ); - - if ( $this->admin_header_callback ) { - add_action( "admin_head-$page", $this->admin_header_callback, 51 ); - } - } - - /** - * Set up the enqueue for the CSS & JavaScript files. - * - * @since 3.0.0 - */ - public function admin_load() { - get_current_screen()->add_help_tab( array( - 'id' => 'overview', - 'title' => __('Overview'), - 'content' => - '

' . __( 'You can customize the look of your site without touching any of your theme’s code by using a custom background. Your background can be an image or a color.' ) . '

' . - '

' . __( 'To use a background image, simply upload it or choose an image that has already been uploaded to your Media Library by clicking the “Choose Image” button. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site.' ) . '

' . - '

' . __( 'You can also choose a background color by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. “#ff0000” for red, or by choosing a color using the color picker.' ) . '

' . - '

' . __( 'Don’t forget to click on the Save Changes button when you are finished.' ) . '

' - ) ); - - get_current_screen()->set_help_sidebar( - '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Custom Background' ) . '

' . - '

' . __( 'Support Forums' ) . '

' - ); - - wp_enqueue_media(); - wp_enqueue_script('custom-background'); - wp_enqueue_style('wp-color-picker'); - } - - /** - * Execute custom background modification. - * - * @since 3.0.0 - */ - public function take_action() { - if ( empty($_POST) ) - return; - - if ( isset($_POST['reset-background']) ) { - check_admin_referer('custom-background-reset', '_wpnonce-custom-background-reset'); - remove_theme_mod('background_image'); - remove_theme_mod('background_image_thumb'); - $this->updated = true; - return; - } - - if ( isset($_POST['remove-background']) ) { - // @TODO: Uploaded files are not removed here. - check_admin_referer('custom-background-remove', '_wpnonce-custom-background-remove'); - set_theme_mod('background_image', ''); - set_theme_mod('background_image_thumb', ''); - $this->updated = true; - wp_safe_redirect( $_POST['_wp_http_referer'] ); - return; - } - - if ( isset($_POST['background-repeat']) ) { - check_admin_referer('custom-background'); - if ( in_array($_POST['background-repeat'], array('repeat', 'no-repeat', 'repeat-x', 'repeat-y')) ) - $repeat = $_POST['background-repeat']; - else - $repeat = 'repeat'; - set_theme_mod('background_repeat', $repeat); - } - - if ( isset($_POST['background-position-x']) ) { - check_admin_referer('custom-background'); - if ( in_array($_POST['background-position-x'], array('center', 'right', 'left')) ) - $position = $_POST['background-position-x']; - else - $position = 'left'; - set_theme_mod('background_position_x', $position); - } - - if ( isset($_POST['background-attachment']) ) { - check_admin_referer('custom-background'); - if ( in_array($_POST['background-attachment'], array('fixed', 'scroll')) ) - $attachment = $_POST['background-attachment']; - else - $attachment = 'fixed'; - set_theme_mod('background_attachment', $attachment); - } - - if ( isset($_POST['background-color']) ) { - check_admin_referer('custom-background'); - $color = preg_replace('/[^0-9a-fA-F]/', '', $_POST['background-color']); - if ( strlen($color) == 6 || strlen($color) == 3 ) - set_theme_mod('background_color', $color); - else - set_theme_mod('background_color', ''); - } - - $this->updated = true; - } - - /** - * Display the custom background page. - * - * @since 3.0.0 - */ - public function admin_page() { -?> -
-

- - -
-

- Customizer.' ), - admin_url( 'customize.php?autofocus[control]=background_image' ) - ); - ?> -

-
- - -updated ) ) { ?> -
-

Visit your site to see how it looks.' ), home_url( '/' ) ); ?>

-
- - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- admin_image_div_callback ) { - call_user_func( $this->admin_image_div_callback ); - } else { - $background_styles = ''; - if ( $bgcolor = get_background_color() ) - $background_styles .= 'background-color: #' . $bgcolor . ';'; - - $background_image_thumb = get_background_image(); - if ( $background_image_thumb ) { - $background_image_thumb = esc_url( set_url_scheme( get_theme_mod( 'background_image_thumb', str_replace( '%', '%%', $background_image_thumb ) ) ) ); - - // Background-image URL must be single quote, see below. - $background_styles .= ' background-image: url(\'' . $background_image_thumb . '\');' - . ' background-repeat: ' . get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', 'default-repeat' ) ) . ';' - . ' background-position: top ' . get_theme_mod( 'background_position_x', get_theme_support( 'custom-background', 'default-position-x' ) ); - } - ?> -
- -
- - -
- -
-
- -
- -
-
-
- -
- -
-
-

-
- - - - -

-

-
- -

-
-
- -

-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- - - - -
- - -
- - /> -
- - - -
- -
- false); - - $uploaded_file = $_FILES['import']; - $wp_filetype = wp_check_filetype_and_ext( $uploaded_file['tmp_name'], $uploaded_file['name'] ); - if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) - wp_die( __( 'The uploaded file is not a valid image. Please try again.' ) ); - - $file = wp_handle_upload($uploaded_file, $overrides); - - if ( isset($file['error']) ) - wp_die( $file['error'] ); - - $url = $file['url']; - $type = $file['type']; - $file = $file['file']; - $filename = basename($file); - - // Construct the object array - $object = array( - 'post_title' => $filename, - 'post_content' => $url, - 'post_mime_type' => $type, - 'guid' => $url, - 'context' => 'custom-background' - ); - - // Save the data - $id = wp_insert_attachment($object, $file); - - // Add the meta-data - wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) ); - update_post_meta( $id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) ); - - set_theme_mod('background_image', esc_url_raw($url)); - - $thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' ); - set_theme_mod('background_image_thumb', esc_url_raw( $thumbnail[0] ) ); - - /** This action is documented in wp-admin/custom-header.php */ - do_action( 'wp_create_file_in_uploads', $file, $id ); // For replication - $this->updated = true; - } - - /** - * AJAX handler for adding custom background context to an attachment. - * - * Triggered when the user adds a new background image from the - * Media Manager. - * - * @since 4.1.0 - */ - public function ajax_background_add() { - check_ajax_referer( 'background-add', 'nonce' ); - - if ( ! current_user_can( 'edit_theme_options' ) ) { - wp_send_json_error(); - } - - $attachment_id = absint( $_POST['attachment_id'] ); - if ( $attachment_id < 1 ) { - wp_send_json_error(); - } - - update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_stylesheet() ); - - wp_send_json_success(); - } - - /** - * - * @since 3.4.0 - * @deprecated 3.5.0 - * - * @param array $form_fields - * @return array $form_fields - */ - public function attachment_fields_to_edit( $form_fields ) { - return $form_fields; - } - - /** - * - * @since 3.4.0 - * @deprecated 3.5.0 - * - * @param array $tabs - * @return array $tabs - */ - public function filter_upload_tabs( $tabs ) { - return $tabs; - } - - /** - * - * @since 3.4.0 - * @deprecated 3.5.0 - */ - public function wp_set_background_image() { - if ( ! current_user_can('edit_theme_options') || ! isset( $_POST['attachment_id'] ) ) exit; - $attachment_id = absint($_POST['attachment_id']); - /** This filter is documented in wp-admin/includes/media.php */ - $sizes = array_keys(apply_filters( 'image_size_names_choose', array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size')) )); - $size = 'thumbnail'; - if ( in_array( $_POST['size'], $sizes ) ) - $size = esc_attr( $_POST['size'] ); - - update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) ); - $url = wp_get_attachment_image_src( $attachment_id, $size ); - $thumbnail = wp_get_attachment_image_src( $attachment_id, 'thumbnail' ); - set_theme_mod( 'background_image', esc_url_raw( $url[0] ) ); - set_theme_mod( 'background_image_thumb', esc_url_raw( $thumbnail[0] ) ); - exit; - } -} diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php deleted file mode 100644 index e61feb781c..0000000000 --- a/wp-admin/custom-header.php +++ /dev/null @@ -1,1326 +0,0 @@ -admin_header_callback = $admin_header_callback; - $this->admin_image_div_callback = $admin_image_div_callback; - - add_action( 'admin_menu', array( $this, 'init' ) ); - - add_action( 'customize_save_after', array( $this, 'customize_set_last_used' ) ); - add_action( 'wp_ajax_custom-header-crop', array( $this, 'ajax_header_crop' ) ); - add_action( 'wp_ajax_custom-header-add', array( $this, 'ajax_header_add' ) ); - add_action( 'wp_ajax_custom-header-remove', array( $this, 'ajax_header_remove' ) ); - } - - /** - * Set up the hooks for the Custom Header admin page. - * - * @since 2.1.0 - */ - public function init() { - $page = add_theme_page( __( 'Header' ), __( 'Header' ), 'edit_theme_options', 'custom-header', array( $this, 'admin_page' ) ); - if ( ! $page ) { - return; - } - - add_action( "admin_print_scripts-$page", array( $this, 'js_includes' ) ); - add_action( "admin_print_styles-$page", array( $this, 'css_includes' ) ); - add_action( "admin_head-$page", array( $this, 'help' ) ); - add_action( "admin_head-$page", array( $this, 'take_action' ), 50 ); - add_action( "admin_head-$page", array( $this, 'js' ), 50 ); - if ( $this->admin_header_callback ) { - add_action( "admin_head-$page", $this->admin_header_callback, 51 ); - } - } - - /** - * Adds contextual help. - * - * @since 3.0.0 - */ - public function help() { - get_current_screen()->add_help_tab( array( - 'id' => 'overview', - 'title' => __('Overview'), - 'content' => - '

' . __( 'This screen is used to customize the header section of your theme.') . '

' . - '

' . __( 'You can choose from the theme’s default header images, or use one of your own. You can also customize how your Site Title and Tagline are displayed.') . '

' - ) ); - - get_current_screen()->add_help_tab( array( - 'id' => 'set-header-image', - 'title' => __('Header Image'), - 'content' => - '

' . __( 'You can set a custom image header for your site. Simply upload the image and crop it, and the new header will go live immediately. Alternatively, you can use an image that has already been uploaded to your Media Library by clicking the “Choose Image” button.' ) . '

' . - '

' . __( 'Some themes come with additional header images bundled. If you see multiple images displayed, select the one you’d like and click the “Save Changes” button.' ) . '

' . - '

' . __( 'If your theme has more than one default header image, or you have uploaded more than one custom header image, you have the option of having WordPress display a randomly different image on each page of your site. Click the “Random” radio button next to the Uploaded Images or Default Images section to enable this feature.') . '

' . - '

' . __( 'If you don’t want a header image to be displayed on your site at all, click the “Remove Header Image” button at the bottom of the Header Image section of this page. If you want to re-enable the header image later, you just have to select one of the other image options and click “Save Changes”.') . '

' - ) ); - - get_current_screen()->add_help_tab( array( - 'id' => 'set-header-text', - 'title' => __('Header Text'), - 'content' => - '

' . sprintf( __( 'For most themes, the header text is your Site Title and Tagline, as defined in the General Settings section.' ), admin_url( 'options-general.php' ) ) . '

' . - '

' . __( 'In the Header Text section of this page, you can choose whether to display this text or hide it. You can also choose a color for the text by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. “#ff0000” for red, or by choosing a color using the color picker.' ) . '

' . - '

' . __( 'Don’t forget to click “Save Changes” when you’re done!') . '

' - ) ); - - get_current_screen()->set_help_sidebar( - '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Custom Header' ) . '

' . - '

' . __( 'Support Forums' ) . '

' - ); - } - - /** - * Get the current step. - * - * @since 2.6.0 - * - * @return int Current step - */ - public function step() { - if ( ! isset( $_GET['step'] ) ) - return 1; - - $step = (int) $_GET['step']; - if ( $step < 1 || 3 < $step || - ( 2 == $step && ! wp_verify_nonce( $_REQUEST['_wpnonce-custom-header-upload'], 'custom-header-upload' ) ) || - ( 3 == $step && ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'custom-header-crop-image' ) ) - ) - return 1; - - return $step; - } - - /** - * Set up the enqueue for the JavaScript files. - * - * @since 2.1.0 - */ - public function js_includes() { - $step = $this->step(); - - if ( ( 1 == $step || 3 == $step ) ) { - wp_enqueue_media(); - wp_enqueue_script( 'custom-header' ); - if ( current_theme_supports( 'custom-header', 'header-text' ) ) - wp_enqueue_script( 'wp-color-picker' ); - } elseif ( 2 == $step ) { - wp_enqueue_script('imgareaselect'); - } - } - - /** - * Set up the enqueue for the CSS files - * - * @since 2.7.0 - */ - public function css_includes() { - $step = $this->step(); - - if ( ( 1 == $step || 3 == $step ) && current_theme_supports( 'custom-header', 'header-text' ) ) - wp_enqueue_style( 'wp-color-picker' ); - elseif ( 2 == $step ) - wp_enqueue_style('imgareaselect'); - } - - /** - * Execute custom header modification. - * - * @since 2.6.0 - */ - public function take_action() { - if ( ! current_user_can('edit_theme_options') ) - return; - - if ( empty( $_POST ) ) - return; - - $this->updated = true; - - if ( isset( $_POST['resetheader'] ) ) { - check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); - $this->reset_header_image(); - return; - } - - if ( isset( $_POST['removeheader'] ) ) { - check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); - $this->remove_header_image(); - return; - } - - if ( isset( $_POST['text-color'] ) && ! isset( $_POST['display-header-text'] ) ) { - check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); - set_theme_mod( 'header_textcolor', 'blank' ); - } elseif ( isset( $_POST['text-color'] ) ) { - check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); - $_POST['text-color'] = str_replace( '#', '', $_POST['text-color'] ); - $color = preg_replace('/[^0-9a-fA-F]/', '', $_POST['text-color']); - if ( strlen($color) == 6 || strlen($color) == 3 ) - set_theme_mod('header_textcolor', $color); - elseif ( ! $color ) - set_theme_mod( 'header_textcolor', 'blank' ); - } - - if ( isset( $_POST['default-header'] ) ) { - check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); - $this->set_header_image( $_POST['default-header'] ); - return; - } - } - - /** - * Process the default headers - * - * @since 3.0.0 - * - * @global array $_wp_default_headers - */ - public function process_default_headers() { - global $_wp_default_headers; - - if ( !isset($_wp_default_headers) ) - return; - - if ( ! empty( $this->default_headers ) ) { - return; - } - - $this->default_headers = $_wp_default_headers; - $template_directory_uri = get_template_directory_uri(); - $stylesheet_directory_uri = get_stylesheet_directory_uri(); - foreach ( array_keys($this->default_headers) as $header ) { - $this->default_headers[$header]['url'] = sprintf( $this->default_headers[$header]['url'], $template_directory_uri, $stylesheet_directory_uri ); - $this->default_headers[$header]['thumbnail_url'] = sprintf( $this->default_headers[$header]['thumbnail_url'], $template_directory_uri, $stylesheet_directory_uri ); - } - } - - /** - * Display UI for selecting one of several default headers. - * - * Show the random image option if this theme has multiple header images. - * Random image option is on by default if no header has been set. - * - * @since 3.0.0 - */ - public function show_header_selector( $type = 'default' ) { - if ( 'default' == $type ) { - $headers = $this->default_headers; - } else { - $headers = get_uploaded_header_images(); - $type = 'uploaded'; - } - - if ( 1 < count( $headers ) ) { - echo '
'; - echo ''; - echo '
'; - } - - echo '
'; - foreach ( $headers as $header_key => $header ) { - $header_thumbnail = $header['thumbnail_url']; - $header_url = $header['url']; - $header_desc = empty( $header['description'] ) ? '' : $header['description']; - $header_alt_text = empty( $header['alt_text'] ) ? $header_desc : $header['alt_text']; - echo '
'; - echo ''; - echo '
'; - } - echo '
'; - } - - /** - * Execute JavaScript depending on step. - * - * @since 2.1.0 - */ - public function js() { - $step = $this->step(); - if ( ( 1 == $step || 3 == $step ) && current_theme_supports( 'custom-header', 'header-text' ) ) - $this->js_1(); - elseif ( 2 == $step ) - $this->js_2(); - } - - /** - * Display JavaScript based on Step 1 and 3. - * - * @since 2.6.0 - */ - public function js_1() { - $default_color = ''; - if ( current_theme_supports( 'custom-header', 'default-text-color' ) ) { - $default_color = get_theme_support( 'custom-header', 'default-text-color' ); - if ( $default_color && false === strpos( $default_color, '#' ) ) { - $default_color = '#' . $default_color; - } - } - ?> - - - -process_default_headers(); -?> - -
-

- - -
-

- Customizer.' ), - admin_url( 'customize.php?autofocus[control]=header_image' ) - ); - ?> -

-
- - -updated ) ) { ?> -
-

Visit your site to see how it looks.' ), home_url( '/' ) ); ?>

-
- - -

- - - - - - - - - - - - - - - - - - -
- admin_image_div_callback ) { - call_user_func( $this->admin_image_div_callback ); - } else { - $custom_header = get_custom_header(); - $header_image = get_header_image(); - - if ( $header_image ) { - $header_image_style = 'background-image:url(' . esc_url( $header_image ) . ');'; - } else { - $header_image_style = ''; - } - - if ( $custom_header->width ) - $header_image_style .= 'max-width:' . $custom_header->width . 'px;'; - if ( $custom_header->height ) - $header_image_style .= 'height:' . $custom_header->height . 'px;'; - ?> - - -
-


- %1$d × %2$d pixels will be used as-is.' ) . '
', get_theme_support( 'custom-header', 'width' ), get_theme_support( 'custom-header', 'height' ) ); - } elseif ( current_theme_supports( 'custom-header', 'flex-height' ) ) { - if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) - printf( __( 'Images should be at least %1$d pixels wide.' ) . ' ', get_theme_support( 'custom-header', 'width' ) ); - } elseif ( current_theme_supports( 'custom-header', 'flex-width' ) ) { - if ( ! current_theme_supports( 'custom-header', 'flex-height' ) ) - printf( __( 'Images should be at least %1$d pixels tall.' ) . ' ', get_theme_support( 'custom-header', 'height' ) ); - } - if ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) { - if ( current_theme_supports( 'custom-header', 'width' ) ) - printf( __( 'Suggested width is %1$d pixels.' ) . ' ', get_theme_support( 'custom-header', 'width' ) ); - if ( current_theme_supports( 'custom-header', 'height' ) ) - printf( __( 'Suggested height is %1$d pixels.' ) . ' ', get_theme_support( 'custom-header', 'height' ) ); - } - ?>

-
-

-
- - - - -

- 'custom-header', - 'step' => 2, - '_wpnonce-custom-header-upload' => wp_create_nonce('custom-header-upload'), - ), admin_url('themes.php') ) ); - ?> -

-
- -

-
-
- -
- - - - - - - - - default_headers ) ) : ?> - - - - - - - - - - - - - - - - -
-

- show_header_selector( 'uploaded' ); - ?> -
- -

- -

- - show_header_selector( 'default' ); - ?> -
-

- -
-

- -
- - - -

- - - - - - - - - - - - - -
-

- -

-
-

- '; - if ( $default_color ) { - echo ' ' . sprintf( _x( 'Default: %s', 'color' ), esc_html( $default_color ) ) . ''; - } - ?> -

-
- - - -
-
- -step_2_manage_upload(); - $attachment_id = $data['attachment_id']; - $file = $data['file']; - $url = $data['url']; - } - - if ( file_exists( $file ) ) { - list( $width, $height, $type, $attr ) = getimagesize( $file ); - } else { - $data = wp_get_attachment_metadata( $attachment_id ); - $height = isset( $data[ 'height' ] ) ? $data[ 'height' ] : 0; - $width = isset( $data[ 'width' ] ) ? $data[ 'width' ] : 0; - unset( $data ); - } - - $max_width = 0; - // For flex, limit size of image displayed to 1500px unless theme says otherwise - if ( current_theme_supports( 'custom-header', 'flex-width' ) ) - $max_width = 1500; - - if ( current_theme_supports( 'custom-header', 'max-width' ) ) - $max_width = max( $max_width, get_theme_support( 'custom-header', 'max-width' ) ); - $max_width = max( $max_width, get_theme_support( 'custom-header', 'width' ) ); - - // If flexible height isn't supported and the image is the exact right size - if ( ! current_theme_supports( 'custom-header', 'flex-height' ) && ! current_theme_supports( 'custom-header', 'flex-width' ) - && $width == get_theme_support( 'custom-header', 'width' ) && $height == get_theme_support( 'custom-header', 'height' ) ) - { - // Add the meta-data - if ( file_exists( $file ) ) - wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $file ) ); - - $this->set_header_image( compact( 'url', 'attachment_id', 'width', 'height' ) ); - - /** - * Fires after the header image is set or an error is returned. - * - * @since 2.1.0 - * - * @param string $file Path to the file. - * @param int $attachment_id Attachment ID. - */ - do_action( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication - - return $this->finished(); - } elseif ( $width > $max_width ) { - $oitar = $width / $max_width; - $image = wp_crop_image($attachment_id, 0, 0, $width, $height, $max_width, $height / $oitar, false, str_replace(basename($file), 'midsize-'.basename($file), $file)); - if ( ! $image || is_wp_error( $image ) ) - wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) ); - - /** This filter is documented in wp-admin/custom-header.php */ - $image = apply_filters( 'wp_create_file_in_uploads', $image, $attachment_id ); // For replication - - $url = str_replace(basename($url), basename($image), $url); - $width = $width / $oitar; - $height = $height / $oitar; - } else { - $oitar = 1; - } - ?> - -
-

- -
-

-

- -
- -
- - - - - - - - - - - - -

- - -

-
-
- false); - - $uploaded_file = $_FILES['import']; - $wp_filetype = wp_check_filetype_and_ext( $uploaded_file['tmp_name'], $uploaded_file['name'] ); - if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) - wp_die( __( 'The uploaded file is not a valid image. Please try again.' ) ); - - $file = wp_handle_upload($uploaded_file, $overrides); - - if ( isset($file['error']) ) - wp_die( $file['error'], __( 'Image Upload Error' ) ); - - $url = $file['url']; - $type = $file['type']; - $file = $file['file']; - $filename = basename($file); - - // Construct the object array - $object = array( - 'post_title' => $filename, - 'post_content' => $url, - 'post_mime_type' => $type, - 'guid' => $url, - 'context' => 'custom-header' - ); - - // Save the data - $attachment_id = wp_insert_attachment( $object, $file ); - return compact( 'attachment_id', 'file', 'filename', 'url', 'type' ); - } - - /** - * Display third step of custom header image page. - * - * @since 2.1.0 - */ - public function step_3() { - check_admin_referer( 'custom-header-crop-image' ); - - if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) - wp_die( __( 'Cheatin’ uh?' ), 403 ); - - if ( ! empty( $_POST['skip-cropping'] ) && ! ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) ) - wp_die( __( 'Cheatin’ uh?' ), 403 ); - - if ( $_POST['oitar'] > 1 ) { - $_POST['x1'] = $_POST['x1'] * $_POST['oitar']; - $_POST['y1'] = $_POST['y1'] * $_POST['oitar']; - $_POST['width'] = $_POST['width'] * $_POST['oitar']; - $_POST['height'] = $_POST['height'] * $_POST['oitar']; - } - - $attachment_id = absint( $_POST['attachment_id'] ); - $original = get_attached_file($attachment_id); - - $dimensions = $this->get_header_dimensions( array( - 'height' => $_POST['height'], - 'width' => $_POST['width'], - ) ); - $height = $dimensions['dst_height']; - $width = $dimensions['dst_width']; - - if ( empty( $_POST['skip-cropping'] ) ) - $cropped = wp_crop_image( $attachment_id, (int) $_POST['x1'], (int) $_POST['y1'], (int) $_POST['width'], (int) $_POST['height'], $width, $height ); - elseif ( ! empty( $_POST['create-new-attachment'] ) ) - $cropped = _copy_image_file( $attachment_id ); - else - $cropped = get_attached_file( $attachment_id ); - - if ( ! $cropped || is_wp_error( $cropped ) ) - wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) ); - - /** This filter is documented in wp-admin/custom-header.php */ - $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication - - $object = $this->create_attachment_object( $cropped, $attachment_id ); - - if ( ! empty( $_POST['create-new-attachment'] ) ) - unset( $object['ID'] ); - - // Update the attachment - $attachment_id = $this->insert_attachment( $object, $cropped ); - - $url = $object['guid']; - $this->set_header_image( compact( 'url', 'attachment_id', 'width', 'height' ) ); - - // Cleanup. - $medium = str_replace( basename( $original ), 'midsize-' . basename( $original ), $original ); - if ( file_exists( $medium ) ) { - wp_delete_file( $medium ); - } - - if ( empty( $_POST['create-new-attachment'] ) && empty( $_POST['skip-cropping'] ) ) { - wp_delete_file( $original ); - } - - return $this->finished(); - } - - /** - * Display last step of custom header image page. - * - * @since 2.1.0 - */ - public function finished() { - $this->updated = true; - $this->step_1(); - } - - /** - * Display the page based on the current step. - * - * @since 2.1.0 - */ - public function admin_page() { - if ( ! current_user_can('edit_theme_options') ) - wp_die(__('You do not have permission to customize headers.')); - $step = $this->step(); - if ( 2 == $step ) - $this->step_2(); - elseif ( 3 == $step ) - $this->step_3(); - else - $this->step_1(); - } - - /** - * Unused since 3.5.0. - * - * @since 3.4.0 - * - * @param array $form_fields - * @return array $form_fields - */ - public function attachment_fields_to_edit( $form_fields ) { - return $form_fields; - } - - /** - * Unused since 3.5.0. - * - * @since 3.4.0 - * - * @param array $tabs - * @return array $tabs - */ - public function filter_upload_tabs( $tabs ) { - return $tabs; - } - - /** - * Choose a header image, selected from existing uploaded and default headers, - * or provide an array of uploaded header data (either new, or from media library). - * - * @param mixed $choice Which header image to select. Allows for values of 'random-default-image', - * for randomly cycling among the default images; 'random-uploaded-image', for randomly cycling - * among the uploaded images; the key of a default image registered for that theme; and - * the key of an image uploaded for that theme (the basename of the URL). - * Or an array of arguments: attachment_id, url, width, height. All are required. - * - * @since 3.4.0 - * - * @param array|object|string $choice - */ - final public function set_header_image( $choice ) { - if ( is_array( $choice ) || is_object( $choice ) ) { - $choice = (array) $choice; - if ( ! isset( $choice['attachment_id'] ) || ! isset( $choice['url'] ) ) - return; - - $choice['url'] = esc_url_raw( $choice['url'] ); - - $header_image_data = (object) array( - 'attachment_id' => $choice['attachment_id'], - 'url' => $choice['url'], - 'thumbnail_url' => $choice['url'], - 'height' => $choice['height'], - 'width' => $choice['width'], - ); - - update_post_meta( $choice['attachment_id'], '_wp_attachment_is_custom_header', get_stylesheet() ); - set_theme_mod( 'header_image', $choice['url'] ); - set_theme_mod( 'header_image_data', $header_image_data ); - return; - } - - if ( in_array( $choice, array( 'remove-header', 'random-default-image', 'random-uploaded-image' ) ) ) { - set_theme_mod( 'header_image', $choice ); - remove_theme_mod( 'header_image_data' ); - return; - } - - $uploaded = get_uploaded_header_images(); - if ( $uploaded && isset( $uploaded[ $choice ] ) ) { - $header_image_data = $uploaded[ $choice ]; - - } else { - $this->process_default_headers(); - if ( isset( $this->default_headers[ $choice ] ) ) - $header_image_data = $this->default_headers[ $choice ]; - else - return; - } - - set_theme_mod( 'header_image', esc_url_raw( $header_image_data['url'] ) ); - set_theme_mod( 'header_image_data', $header_image_data ); - } - - /** - * Remove a header image. - * - * @since 3.4.0 - */ - final public function remove_header_image() { - $this->set_header_image( 'remove-header' ); - } - - /** - * Reset a header image to the default image for the theme. - * - * This method does not do anything if the theme does not have a default header image. - * - * @since 3.4.0 - */ - final public function reset_header_image() { - $this->process_default_headers(); - $default = get_theme_support( 'custom-header', 'default-image' ); - - if ( ! $default ) { - $this->remove_header_image(); - return; - } - $default = sprintf( $default, get_template_directory_uri(), get_stylesheet_directory_uri() ); - - $default_data = array(); - foreach ( $this->default_headers as $header => $details ) { - if ( $details['url'] == $default ) { - $default_data = $details; - break; - } - } - - set_theme_mod( 'header_image', $default ); - set_theme_mod( 'header_image_data', (object) $default_data ); - } - - /** - * Calculate width and height based on what the currently selected theme supports. - * - * @param array $dimensions - * @return array dst_height and dst_width of header image. - */ - final public function get_header_dimensions( $dimensions ) { - $max_width = 0; - $width = absint( $dimensions['width'] ); - $height = absint( $dimensions['height'] ); - $theme_height = get_theme_support( 'custom-header', 'height' ); - $theme_width = get_theme_support( 'custom-header', 'width' ); - $has_flex_width = current_theme_supports( 'custom-header', 'flex-width' ); - $has_flex_height = current_theme_supports( 'custom-header', 'flex-height' ); - $has_max_width = current_theme_supports( 'custom-header', 'max-width' ) ; - $dst = array( 'dst_height' => null, 'dst_width' => null ); - - // For flex, limit size of image displayed to 1500px unless theme says otherwise - if ( $has_flex_width ) { - $max_width = 1500; - } - - if ( $has_max_width ) { - $max_width = max( $max_width, get_theme_support( 'custom-header', 'max-width' ) ); - } - $max_width = max( $max_width, $theme_width ); - - if ( $has_flex_height && ( ! $has_flex_width || $width > $max_width ) ) { - $dst['dst_height'] = absint( $height * ( $max_width / $width ) ); - } - elseif ( $has_flex_height && $has_flex_width ) { - $dst['dst_height'] = $height; - } - else { - $dst['dst_height'] = $theme_height; - } - - if ( $has_flex_width && ( ! $has_flex_height || $width > $max_width ) ) { - $dst['dst_width'] = absint( $width * ( $max_width / $width ) ); - } - elseif ( $has_flex_width && $has_flex_height ) { - $dst['dst_width'] = $width; - } - else { - $dst['dst_width'] = $theme_width; - } - - return $dst; - } - - /** - * Create an attachment 'object'. - * - * @param string $cropped Cropped image URL. - * @param int $parent_attachment_id Attachment ID of parent image. - * - * @return array Attachment object. - */ - final public function create_attachment_object( $cropped, $parent_attachment_id ) { - $parent = get_post( $parent_attachment_id ); - $parent_url = $parent->guid; - $url = str_replace( basename( $parent_url ), basename( $cropped ), $parent_url ); - - $size = @getimagesize( $cropped ); - $image_type = ( $size ) ? $size['mime'] : 'image/jpeg'; - - $object = array( - 'ID' => $parent_attachment_id, - 'post_title' => basename($cropped), - 'post_content' => $url, - 'post_mime_type' => $image_type, - 'guid' => $url, - 'context' => 'custom-header' - ); - - return $object; - } - - /** - * Insert an attachment and its metadata. - * - * @param array $object Attachment object. - * @param string $cropped Cropped image URL. - * - * @return int Attachment ID. - */ - final public function insert_attachment( $object, $cropped ) { - $attachment_id = wp_insert_attachment( $object, $cropped ); - $metadata = wp_generate_attachment_metadata( $attachment_id, $cropped ); - /** - * Filter the header image attachment metadata. - * - * @since 3.9.0 - * - * @see wp_generate_attachment_metadata() - * - * @param array $metadata Attachment metadata. - */ - $metadata = apply_filters( 'wp_header_image_attachment_metadata', $metadata ); - wp_update_attachment_metadata( $attachment_id, $metadata ); - return $attachment_id; - } - - /** - * Gets attachment uploaded by Media Manager, crops it, then saves it as a - * new object. Returns JSON-encoded object details. - */ - public function ajax_header_crop() { - check_ajax_referer( 'image_editor-' . $_POST['id'], 'nonce' ); - - if ( ! current_user_can( 'edit_theme_options' ) ) { - wp_send_json_error(); - } - - if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { - wp_send_json_error(); - } - - $crop_details = $_POST['cropDetails']; - - $dimensions = $this->get_header_dimensions( array( - 'height' => $crop_details['height'], - 'width' => $crop_details['width'], - ) ); - - $attachment_id = absint( $_POST['id'] ); - - $cropped = wp_crop_image( - $attachment_id, - (int) $crop_details['x1'], - (int) $crop_details['y1'], - (int) $crop_details['width'], - (int) $crop_details['height'], - (int) $dimensions['dst_width'], - (int) $dimensions['dst_height'] - ); - - if ( ! $cropped || is_wp_error( $cropped ) ) { - wp_send_json_error( array( 'message' => __( 'Image could not be processed. Please go back and try again.' ) ) ); - } - - /** This filter is documented in wp-admin/custom-header.php */ - $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication - - $object = $this->create_attachment_object( $cropped, $attachment_id ); - - unset( $object['ID'] ); - - $new_attachment_id = $this->insert_attachment( $object, $cropped ); - - $object['attachment_id'] = $new_attachment_id; - $object['width'] = $dimensions['dst_width']; - $object['height'] = $dimensions['dst_height']; - - wp_send_json_success( $object ); - } - - /** - * Given an attachment ID for a header image, updates its "last used" - * timestamp to now. - * - * Triggered when the user tries adds a new header image from the - * Media Manager, even if s/he doesn't save that change. - */ - public function ajax_header_add() { - check_ajax_referer( 'header-add', 'nonce' ); - - if ( ! current_user_can( 'edit_theme_options' ) ) { - wp_send_json_error(); - } - - $attachment_id = absint( $_POST['attachment_id'] ); - if ( $attachment_id < 1 ) { - wp_send_json_error(); - } - - $key = '_wp_attachment_custom_header_last_used_' . get_stylesheet(); - update_post_meta( $attachment_id, $key, time() ); - update_post_meta( $attachment_id, '_wp_attachment_is_custom_header', get_stylesheet() ); - - wp_send_json_success(); - } - - /** - * Given an attachment ID for a header image, unsets it as a user-uploaded - * header image for the current theme. - * - * Triggered when the user clicks the overlay "X" button next to each image - * choice in the Customizer's Header tool. - */ - public function ajax_header_remove() { - check_ajax_referer( 'header-remove', 'nonce' ); - - if ( ! current_user_can( 'edit_theme_options' ) ) { - wp_send_json_error(); - } - - $attachment_id = absint( $_POST['attachment_id'] ); - if ( $attachment_id < 1 ) { - wp_send_json_error(); - } - - $key = '_wp_attachment_custom_header_last_used_' . get_stylesheet(); - delete_post_meta( $attachment_id, $key ); - delete_post_meta( $attachment_id, '_wp_attachment_is_custom_header', get_stylesheet() ); - - wp_send_json_success(); - } - - /** - * - * @param WP_Customize_Manager $wp_customize - */ - public function customize_set_last_used( $wp_customize ) { - $data = $wp_customize->get_setting( 'header_image_data' )->post_value(); - - if ( ! isset( $data['attachment_id'] ) ) { - return; - } - - $attachment_id = $data['attachment_id']; - $key = '_wp_attachment_custom_header_last_used_' . get_stylesheet(); - update_post_meta( $attachment_id, $key, time() ); - } - - /** - * - * @return array - */ - public function get_default_header_images() { - $this->process_default_headers(); - - // Get the default image if there is one. - $default = get_theme_support( 'custom-header', 'default-image' ); - - if ( ! $default ) { // If not, - return $this->default_headers; // easy peasy. - } - - $default = sprintf( $default, get_template_directory_uri(), get_stylesheet_directory_uri() ); - $already_has_default = false; - - foreach ( $this->default_headers as $k => $h ) { - if ( $h['url'] === $default ) { - $already_has_default = true; - break; - } - } - - if ( $already_has_default ) { - return $this->default_headers; - } - - // If the one true image isn't included in the default set, prepend it. - $header_images = array(); - $header_images['default'] = array( - 'url' => $default, - 'thumbnail_url' => $default, - 'description' => 'Default' - ); - - // The rest of the set comes after. - return array_merge( $header_images, $this->default_headers ); - } - - /** - * - * @return array - */ - public function get_uploaded_header_images() { - $header_images = get_uploaded_header_images(); - $timestamp_key = '_wp_attachment_custom_header_last_used_' . get_stylesheet(); - $alt_text_key = '_wp_attachment_image_alt'; - - foreach ( $header_images as &$header_image ) { - $header_meta = get_post_meta( $header_image['attachment_id'] ); - $header_image['timestamp'] = isset( $header_meta[ $timestamp_key ] ) ? $header_meta[ $timestamp_key ] : ''; - $header_image['alt_text'] = isset( $header_meta[ $alt_text_key ] ) ? $header_meta[ $alt_text_key ] : ''; - } - - return $header_images; - } -} diff --git a/wp-admin/customize.php b/wp-admin/customize.php deleted file mode 100644 index 6ee2de007a..0000000000 --- a/wp-admin/customize.php +++ /dev/null @@ -1,300 +0,0 @@ -registered; -$wp_scripts = new WP_Scripts; -$wp_scripts->registered = $registered; - -add_action( 'customize_controls_print_scripts', 'print_head_scripts', 20 ); -add_action( 'customize_controls_print_footer_scripts', '_wp_footer_scripts' ); -add_action( 'customize_controls_print_styles', 'print_admin_styles', 20 ); - -/** - * Fires when Customizer controls are initialized, before scripts are enqueued. - * - * @since 3.4.0 - */ -do_action( 'customize_controls_init' ); - -wp_enqueue_script( 'customize-controls' ); -wp_enqueue_style( 'customize-controls' ); - -/** - * Enqueue Customizer control scripts. - * - * @since 3.4.0 - */ -do_action( 'customize_controls_enqueue_scripts' ); - -// Let's roll. -@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); - -wp_user_settings(); -_wp_admin_html_begin(); - -$body_class = 'wp-core-ui wp-customizer js'; - -if ( wp_is_mobile() ) : - $body_class .= ' mobile'; - - ?>is_theme_active() ) { - $document_title_tmpl = _x( 'Customize: %s', 'Placeholder is the document title from the preview' ); -} else { - $document_title_tmpl = _x( 'Live Preview: %s', 'Placeholder is the document title from the preview' ); -} -$document_title_tmpl = html_entity_decode( $document_title_tmpl, ENT_QUOTES, 'UTF-8' ); // because exported to JS and assigned to document.title -$admin_title = sprintf( $document_title_tmpl, __( 'Loading…' ) ); - -?><?php echo $admin_title; ?> - - - - - - -
-
-
- is_theme_active() ? __( 'Save & Publish' ) : __( 'Save & Activate' ); - submit_button( $save_text, 'primary save', 'save', false ); - ?> - - - - - - - - -
- -
-
-
-
- ' . get_bloginfo( 'name' ) . '' ); - ?> - -
-
-
- -
-
-
-
-
- - -
-
- render_panel_templates(); - $wp_customize->render_section_templates(); - $wp_customize->render_control_templates(); - - /** - * Print Customizer control scripts in the footer. - * - * @since 3.4.0 - */ - do_action( 'customize_controls_print_footer_scripts' ); - - /* - * If the frontend and the admin are served from the same domain, load the - * preview over ssl if the Customizer is being loaded over ssl. This avoids - * insecure content warnings. This is not attempted if the admin and frontend - * are on different domains to avoid the case where the frontend doesn't have - * ssl certs. Domain mapping plugins can allow other urls in these conditions - * using the customize_allowed_urls filter. - */ - - $allowed_urls = array( home_url('/') ); - $admin_origin = parse_url( admin_url() ); - $home_origin = parse_url( home_url() ); - $cross_domain = ( strtolower( $admin_origin[ 'host' ] ) != strtolower( $home_origin[ 'host' ] ) ); - - if ( is_ssl() && ! $cross_domain ) - $allowed_urls[] = home_url( '/', 'https' ); - - /** - * Filter the list of URLs allowed to be clicked and followed in the Customizer preview. - * - * @since 3.4.0 - * - * @param array $allowed_urls An array of allowed URLs. - */ - $allowed_urls = array_unique( apply_filters( 'customize_allowed_urls', $allowed_urls ) ); - - $login_url = add_query_arg( array( - 'interim-login' => 1, - 'customize-login' => 1 - ), wp_login_url() ); - - // Prepare Customizer settings to pass to JavaScript. - $settings = array( - 'theme' => array( - 'stylesheet' => $wp_customize->get_stylesheet(), - 'active' => $wp_customize->is_theme_active(), - ), - 'url' => array( - 'preview' => esc_url_raw( $url ? $url : home_url( '/' ) ), - 'parent' => esc_url_raw( admin_url() ), - 'activated' => esc_url_raw( home_url( '/' ) ), - 'ajax' => esc_url_raw( admin_url( 'admin-ajax.php', 'relative' ) ), - 'allowed' => array_map( 'esc_url_raw', $allowed_urls ), - 'isCrossDomain' => $cross_domain, - 'home' => esc_url_raw( home_url( '/' ) ), - 'login' => esc_url_raw( $login_url ), - ), - 'browser' => array( - 'mobile' => wp_is_mobile(), - 'ios' => $is_ios, - ), - 'settings' => array(), - 'controls' => array(), - 'panels' => array(), - 'sections' => array(), - 'nonce' => array( - 'save' => wp_create_nonce( 'save-customize_' . $wp_customize->get_stylesheet() ), - 'preview' => wp_create_nonce( 'preview-customize_' . $wp_customize->get_stylesheet() ) - ), - 'autofocus' => array(), - 'documentTitleTmpl' => $document_title_tmpl, - ); - - // Prepare Customize Setting objects to pass to JavaScript. - foreach ( $wp_customize->settings() as $id => $setting ) { - if ( $setting->check_capabilities() ) { - $settings['settings'][ $id ] = array( - 'value' => $setting->js_value(), - 'transport' => $setting->transport, - 'dirty' => $setting->dirty, - ); - } - } - - // Prepare Customize Control objects to pass to JavaScript. - foreach ( $wp_customize->controls() as $id => $control ) { - if ( $control->check_capabilities() ) { - $settings['controls'][ $id ] = $control->json(); - } - } - - // Prepare Customize Section objects to pass to JavaScript. - foreach ( $wp_customize->sections() as $id => $section ) { - if ( $section->check_capabilities() ) { - $settings['sections'][ $id ] = $section->json(); - } - } - - // Prepare Customize Panel objects to pass to JavaScript. - foreach ( $wp_customize->panels() as $panel_id => $panel ) { - if ( $panel->check_capabilities() ) { - $settings['panels'][ $panel_id ] = $panel->json(); - foreach ( $panel->sections as $section_id => $section ) { - if ( $section->check_capabilities() ) { - $settings['sections'][ $section_id ] = $section->json(); - } - } - } - } - - // Pass to frontend the Customizer construct being deeplinked - if ( isset( $_GET['autofocus'] ) ) { - $autofocus = wp_unslash( $_GET['autofocus'] ); - if ( is_array( $autofocus ) ) { - foreach ( $autofocus as $type => $id ) { - if ( isset( $settings[ $type . 's' ][ $id ] ) ) { - $settings['autofocus'][ $type ] = $id; - } - } - } - } - - ?> - -
- - diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php deleted file mode 100644 index ea5bb7624a..0000000000 --- a/wp-admin/edit-comments.php +++ /dev/null @@ -1,254 +0,0 @@ -get_pagenum(); - -$doaction = $wp_list_table->current_action(); - -if ( $doaction ) { - check_admin_referer( 'bulk-comments' ); - - if ( 'delete_all' == $doaction && !empty( $_REQUEST['pagegen_timestamp'] ) ) { - $comment_status = wp_unslash( $_REQUEST['comment_status'] ); - $delete_time = wp_unslash( $_REQUEST['pagegen_timestamp'] ); - $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_ID FROM $wpdb->comments WHERE comment_approved = %s AND %s > comment_date_gmt", $comment_status, $delete_time ) ); - $doaction = 'delete'; - } elseif ( isset( $_REQUEST['delete_comments'] ) ) { - $comment_ids = $_REQUEST['delete_comments']; - $doaction = ( $_REQUEST['action'] != -1 ) ? $_REQUEST['action'] : $_REQUEST['action2']; - } elseif ( isset( $_REQUEST['ids'] ) ) { - $comment_ids = array_map( 'absint', explode( ',', $_REQUEST['ids'] ) ); - } elseif ( wp_get_referer() ) { - wp_safe_redirect( wp_get_referer() ); - exit; - } - - $approved = $unapproved = $spammed = $unspammed = $trashed = $untrashed = $deleted = 0; - - $redirect_to = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'spammed', 'unspammed', 'approved', 'unapproved', 'ids' ), wp_get_referer() ); - $redirect_to = add_query_arg( 'paged', $pagenum, $redirect_to ); - - foreach ( $comment_ids as $comment_id ) { // Check the permissions on each - if ( !current_user_can( 'edit_comment', $comment_id ) ) - continue; - - switch ( $doaction ) { - case 'approve' : - wp_set_comment_status( $comment_id, 'approve' ); - $approved++; - break; - case 'unapprove' : - wp_set_comment_status( $comment_id, 'hold' ); - $unapproved++; - break; - case 'spam' : - wp_spam_comment( $comment_id ); - $spammed++; - break; - case 'unspam' : - wp_unspam_comment( $comment_id ); - $unspammed++; - break; - case 'trash' : - wp_trash_comment( $comment_id ); - $trashed++; - break; - case 'untrash' : - wp_untrash_comment( $comment_id ); - $untrashed++; - break; - case 'delete' : - wp_delete_comment( $comment_id ); - $deleted++; - break; - } - } - - if ( $approved ) - $redirect_to = add_query_arg( 'approved', $approved, $redirect_to ); - if ( $unapproved ) - $redirect_to = add_query_arg( 'unapproved', $unapproved, $redirect_to ); - if ( $spammed ) - $redirect_to = add_query_arg( 'spammed', $spammed, $redirect_to ); - if ( $unspammed ) - $redirect_to = add_query_arg( 'unspammed', $unspammed, $redirect_to ); - if ( $trashed ) - $redirect_to = add_query_arg( 'trashed', $trashed, $redirect_to ); - if ( $untrashed ) - $redirect_to = add_query_arg( 'untrashed', $untrashed, $redirect_to ); - if ( $deleted ) - $redirect_to = add_query_arg( 'deleted', $deleted, $redirect_to ); - if ( $trashed || $spammed ) - $redirect_to = add_query_arg( 'ids', join( ',', $comment_ids ), $redirect_to ); - - wp_safe_redirect( $redirect_to ); - exit; -} elseif ( ! empty( $_GET['_wp_http_referer'] ) ) { - wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ); - exit; -} - -$wp_list_table->prepare_items(); - -wp_enqueue_script('admin-comments'); -enqueue_comment_hotkeys_js(); - -if ( $post_id ) - $title = sprintf( __( 'Comments on “%s”' ), wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ) ); -else - $title = __('Comments'); - -add_screen_option( 'per_page' ); - -get_current_screen()->add_help_tab( array( -'id' => 'overview', -'title' => __('Overview'), -'content' => - '

' . __( 'You can manage comments made on your site similar to the way you manage posts and other content. This screen is customizable in the same ways as other management screens, and you can act on comments using the on-hover action links or the Bulk Actions.' ) . '

' -) ); -get_current_screen()->add_help_tab( array( -'id' => 'moderating-comments', -'title' => __('Moderating Comments'), -'content' => - '

' . __( 'A red bar on the left means the comment is waiting for you to moderate it.' ) . '

' . - '

' . __( 'In the Author column, in addition to the author’s name, email address, and blog URL, the commenter’s IP address is shown. Clicking on this link will show you all the comments made from this IP address.' ) . '

' . - '

' . __( 'In the Comment column, above each comment it says “Submitted on,” followed by the date and time the comment was left on your site. Clicking on the date/time link will take you to that comment on your live site. Hovering over any comment gives you options to approve, reply (and approve), quick edit, edit, spam mark, or trash that comment.' ) . '

' . - '

' . __( 'In the In Response To column, there are three elements. The text is the name of the post that inspired the comment, and links to the post editor for that entry. The View Post link leads to that post on your live site. The small bubble with the number in it shows the number of approved comments that post has received. If there are pending comments, a red notification circle with the number of pending comments is displayed. Clicking the notification circle will filter the comments screen to show only pending comments on that post.' ) . '

' . - '

' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link to the side to learn more.' ) . '

' -) ); - -get_current_screen()->set_help_sidebar( - '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Comments' ) . '

' . - '

' . __( 'Documentation on Comment Spam' ) . '

' . - '

' . __( 'Documentation on Keyboard Shortcuts' ) . '

' . - '

' . __( 'Support Forums' ) . '

' -); - -require_once( ABSPATH . 'wp-admin/admin-header.php' ); -?> - -
-

%s', - get_edit_post_link( $post_id ), - wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ) - ) - ); -else - _e( 'Comments' ); - -if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) - echo '' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) ) . ''; ?> -

- -

' . $error_msg . '

'; -} - -if ( isset($_REQUEST['approved']) || isset($_REQUEST['deleted']) || isset($_REQUEST['trashed']) || isset($_REQUEST['untrashed']) || isset($_REQUEST['spammed']) || isset($_REQUEST['unspammed']) || isset($_REQUEST['same']) ) { - $approved = isset( $_REQUEST['approved'] ) ? (int) $_REQUEST['approved'] : 0; - $deleted = isset( $_REQUEST['deleted'] ) ? (int) $_REQUEST['deleted'] : 0; - $trashed = isset( $_REQUEST['trashed'] ) ? (int) $_REQUEST['trashed'] : 0; - $untrashed = isset( $_REQUEST['untrashed'] ) ? (int) $_REQUEST['untrashed'] : 0; - $spammed = isset( $_REQUEST['spammed'] ) ? (int) $_REQUEST['spammed'] : 0; - $unspammed = isset( $_REQUEST['unspammed'] ) ? (int) $_REQUEST['unspammed'] : 0; - $same = isset( $_REQUEST['same'] ) ? (int) $_REQUEST['same'] : 0; - - if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 || $same > 0 ) { - if ( $approved > 0 ) - $messages[] = sprintf( _n( '%s comment approved', '%s comments approved', $approved ), $approved ); - - if ( $spammed > 0 ) { - $ids = isset($_REQUEST['ids']) ? $_REQUEST['ids'] : 0; - $messages[] = sprintf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . ' ' . __('Undo') . '
'; - } - - if ( $unspammed > 0 ) - $messages[] = sprintf( _n( '%s comment restored from the spam', '%s comments restored from the spam', $unspammed ), $unspammed ); - - if ( $trashed > 0 ) { - $ids = isset($_REQUEST['ids']) ? $_REQUEST['ids'] : 0; - $messages[] = sprintf( _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . ' ' . __('Undo') . '
'; - } - - if ( $untrashed > 0 ) - $messages[] = sprintf( _n( '%s comment restored from the Trash', '%s comments restored from the Trash', $untrashed ), $untrashed ); - - if ( $deleted > 0 ) - $messages[] = sprintf( _n( '%s comment permanently deleted', '%s comments permanently deleted', $deleted ), $deleted ); - - if ( $same > 0 && $comment = get_comment( $same ) ) { - switch ( $comment->comment_approved ) { - case '1' : - $messages[] = __('This comment is already approved.') . ' ' . __( 'Edit comment' ) . ''; - break; - case 'trash' : - $messages[] = __( 'This comment is already in the Trash.' ) . ' ' . __( 'View Trash' ) . ''; - break; - case 'spam' : - $messages[] = __( 'This comment is already marked as spam.' ) . ' ' . __( 'Edit comment' ) . ''; - break; - } - } - - echo '

' . implode( "
\n", $messages ) . '

'; - } -} -?> - -views(); ?> - -
- -search_box( __( 'Search Comments' ), 'comment' ); ?> - - - - - - - - - - - - - - - -display(); ?> -
-
- -
- - diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php deleted file mode 100644 index 2a963f1c19..0000000000 --- a/wp-admin/edit-form-advanced.php +++ /dev/null @@ -1,681 +0,0 @@ -post_content ) ) { - add_action( 'edit_form_after_title', '_wp_posts_page_notice' ); - remove_post_type_support( $post_type, 'editor' ); -} - -$thumbnail_support = current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports( $post_type, 'thumbnail' ); -if ( ! $thumbnail_support && 'attachment' === $post_type && $post->post_mime_type ) { - if ( wp_attachment_is( 'audio', $post ) ) { - $thumbnail_support = post_type_supports( 'attachment:audio', 'thumbnail' ) || current_theme_supports( 'post-thumbnails', 'attachment:audio' ); - } elseif ( wp_attachment_is( 'video', $post ) ) { - $thumbnail_support = post_type_supports( 'attachment:video', 'thumbnail' ) || current_theme_supports( 'post-thumbnails', 'attachment:video' ); - } -} - -if ( $thumbnail_support ) { - add_thickbox(); - wp_enqueue_media( array( 'post' => $post_ID ) ); -} - -// Add the local autosave notice HTML -add_action( 'admin_footer', '_local_storage_notice' ); - -/* - * @todo Document the $messages array(s). - */ -$permalink = get_permalink( $post_ID ); -if ( ! $permalink ) { - $permalink = ''; -} - -$messages = array(); -/** This filter is documented in wp-admin/includes/meta-boxes.php */ -$post_preview_url = apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $permalink ), $post ); - -$messages['post'] = array( - 0 => '', // Unused. Messages start at index 1. - 1 => sprintf( __('Post updated. View post'), esc_url( $permalink ) ), - 2 => __('Custom field updated.'), - 3 => __('Custom field deleted.'), - 4 => __('Post updated.'), - /* translators: %s: date and time of the revision */ - 5 => isset($_GET['revision']) ? sprintf( __('Post restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, - 6 => sprintf( __('Post published. View post'), esc_url( $permalink ) ), - 7 => __('Post saved.'), - 8 => sprintf( __('Post submitted. Preview post'), esc_url( $post_preview_url ) ), - 9 => sprintf( __('Post scheduled for: %1$s. Preview post'), - /* translators: Publish box date format, see http://php.net/date */ - date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ), - 10 => sprintf( __('Post draft updated. Preview post'), esc_url( $post_preview_url ) ), -); - -/** This filter is documented in wp-admin/includes/meta-boxes.php */ -$page_preview_url = apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $permalink ), $post ); - -$messages['page'] = array( - 0 => '', // Unused. Messages start at index 1. - 1 => sprintf( __('Page updated. View page'), esc_url( $permalink ) ), - 2 => __('Custom field updated.'), - 3 => __('Custom field deleted.'), - 4 => __('Page updated.'), - 5 => isset($_GET['revision']) ? sprintf( __('Page restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, - 6 => sprintf( __('Page published. View page'), esc_url( $permalink ) ), - 7 => __('Page saved.'), - 8 => sprintf( __('Page submitted. Preview page'), esc_url( $page_preview_url ) ), - 9 => sprintf( __('Page scheduled for: %1$s. Preview page'), date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ), - 10 => sprintf( __('Page draft updated. Preview page'), esc_url( $page_preview_url ) ), -); -$messages['attachment'] = array_fill( 1, 10, __( 'Media attachment updated.' ) ); // Hack, for now. - -/** - * Filter the post updated messages. - * - * @since 3.0.0 - * - * @param array $messages Post updated messages. For defaults @see $messages declarations above. - */ -$messages = apply_filters( 'post_updated_messages', $messages ); - -$message = false; -if ( isset($_GET['message']) ) { - $_GET['message'] = absint( $_GET['message'] ); - if ( isset($messages[$post_type][$_GET['message']]) ) - $message = $messages[$post_type][$_GET['message']]; - elseif ( !isset($messages[$post_type]) && isset($messages['post'][$_GET['message']]) ) - $message = $messages['post'][$_GET['message']]; -} - -$notice = false; -$form_extra = ''; -if ( 'auto-draft' == $post->post_status ) { - if ( 'edit' == $action ) - $post->post_title = ''; - $autosave = false; - $form_extra .= ""; -} else { - $autosave = wp_get_post_autosave( $post_ID ); -} - -$form_action = 'editpost'; -$nonce_action = 'update-post_' . $post_ID; -$form_extra .= ""; - -// Detect if there exists an autosave newer than the post and if that autosave is different than the post -if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) { - foreach ( _wp_post_revision_fields() as $autosave_field => $_autosave_field ) { - if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) { - $notice = sprintf( __( 'There is an autosave of this post that is more recent than the version below. View the autosave' ), get_edit_post_link( $autosave->ID ) ); - break; - } - } - // If this autosave isn't different from the current post, begone. - if ( ! $notice ) - wp_delete_post_revision( $autosave->ID ); - unset($autosave_field, $_autosave_field); -} - -$post_type_object = get_post_type_object($post_type); - -// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). -require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' ); - - -$publish_callback_args = null; -if ( post_type_supports($post_type, 'revisions') && 'auto-draft' != $post->post_status ) { - $revisions = wp_get_post_revisions( $post_ID ); - - // We should aim to show the revisions metabox only when there are revisions. - if ( count( $revisions ) > 1 ) { - reset( $revisions ); // Reset pointer for key() - $publish_callback_args = array( 'revisions_count' => count( $revisions ), 'revision_id' => key( $revisions ) ); - add_meta_box('revisionsdiv', __('Revisions'), 'post_revisions_meta_box', null, 'normal', 'core'); - } -} - -if ( 'attachment' == $post_type ) { - wp_enqueue_script( 'image-edit' ); - wp_enqueue_style( 'imgareaselect' ); - add_meta_box( 'submitdiv', __('Save'), 'attachment_submit_meta_box', null, 'side', 'core' ); - add_action( 'edit_form_after_title', 'edit_form_image_editor' ); - - if ( wp_attachment_is( 'audio', $post ) ) { - add_meta_box( 'attachment-id3', __( 'Metadata' ), 'attachment_id3_data_meta_box', null, 'normal', 'core' ); - } -} else { - add_meta_box( 'submitdiv', __( 'Publish' ), 'post_submit_meta_box', null, 'side', 'core', $publish_callback_args ); -} - -if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post_type, 'post-formats' ) ) - add_meta_box( 'formatdiv', _x( 'Format', 'post format' ), 'post_format_meta_box', null, 'side', 'core' ); - -// all taxonomies -foreach ( get_object_taxonomies( $post ) as $tax_name ) { - $taxonomy = get_taxonomy( $tax_name ); - if ( ! $taxonomy->show_ui || false === $taxonomy->meta_box_cb ) - continue; - - $label = $taxonomy->labels->name; - - if ( ! is_taxonomy_hierarchical( $tax_name ) ) - $tax_meta_box_id = 'tagsdiv-' . $tax_name; - else - $tax_meta_box_id = $tax_name . 'div'; - - add_meta_box( $tax_meta_box_id, $label, $taxonomy->meta_box_cb, null, 'side', 'core', array( 'taxonomy' => $tax_name ) ); -} - -if ( post_type_supports($post_type, 'page-attributes') ) - add_meta_box('pageparentdiv', 'page' == $post_type ? __('Page Attributes') : __('Attributes'), 'page_attributes_meta_box', null, 'side', 'core'); - -if ( $thumbnail_support && current_user_can( 'upload_files' ) ) - add_meta_box('postimagediv', esc_html( $post_type_object->labels->featured_image ), 'post_thumbnail_meta_box', null, 'side', 'low'); - -if ( post_type_supports($post_type, 'excerpt') ) - add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', null, 'normal', 'core'); - -if ( post_type_supports($post_type, 'trackbacks') ) - add_meta_box('trackbacksdiv', __('Send Trackbacks'), 'post_trackback_meta_box', null, 'normal', 'core'); - -if ( post_type_supports($post_type, 'custom-fields') ) - add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', null, 'normal', 'core'); - -/** - * Fires in the middle of built-in meta box registration. - * - * @since 2.1.0 - * @deprecated 3.7.0 Use 'add_meta_boxes' instead. - * - * @param WP_Post $post Post object. - */ -do_action( 'dbx_post_advanced', $post ); - -if ( post_type_supports($post_type, 'comments') ) - add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', null, 'normal', 'core'); - -if ( ( 'publish' == get_post_status( $post ) || 'private' == get_post_status( $post ) ) && post_type_supports($post_type, 'comments') ) - add_meta_box('commentsdiv', __('Comments'), 'post_comment_meta_box', null, 'normal', 'core'); - -if ( ! ( 'pending' == get_post_status( $post ) && ! current_user_can( $post_type_object->cap->publish_posts ) ) ) - add_meta_box('slugdiv', __('Slug'), 'post_slug_meta_box', null, 'normal', 'core'); - -if ( post_type_supports($post_type, 'author') ) { - if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) - add_meta_box('authordiv', __('Author'), 'post_author_meta_box', null, 'normal', 'core'); -} - -/** - * Fires after all built-in meta boxes have been added. - * - * @since 3.0.0 - * - * @param string $post_type Post type. - * @param WP_Post $post Post object. - */ -do_action( 'add_meta_boxes', $post_type, $post ); - -/** - * Fires after all built-in meta boxes have been added, contextually for the given post type. - * - * The dynamic portion of the hook, `$post_type`, refers to the post type of the post. - * - * @since 3.0.0 - * - * @param WP_Post $post Post object. - */ -do_action( 'add_meta_boxes_' . $post_type, $post ); - -/** - * Fires after meta boxes have been added. - * - * Fires once for each of the default meta box contexts: normal, advanced, and side. - * - * @since 3.0.0 - * - * @param string $post_type Post type of the post. - * @param string $context string Meta box context. - * @param WP_Post $post Post object. - */ -do_action( 'do_meta_boxes', $post_type, 'normal', $post ); -/** This action is documented in wp-admin/edit-form-advanced.php */ -do_action( 'do_meta_boxes', $post_type, 'advanced', $post ); -/** This action is documented in wp-admin/edit-form-advanced.php */ -do_action( 'do_meta_boxes', $post_type, 'side', $post ); - -add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); - -if ( 'post' == $post_type ) { - $customize_display = '

' . __('The title field and the big Post Editing Area are fixed in place, but you can reposition all the other boxes using drag and drop. You can also minimize or expand them by clicking the title bar of each box. Use the Screen Options tab to unhide more boxes (Excerpt, Send Trackbacks, Custom Fields, Discussion, Slug, Author) or to choose a 1- or 2-column layout for this screen.') . '

'; - - get_current_screen()->add_help_tab( array( - 'id' => 'customize-display', - 'title' => __('Customizing This Display'), - 'content' => $customize_display, - ) ); - - $title_and_editor = '

' . __('Title - Enter a title for your post. After you enter a title, you’ll see the permalink below, which you can edit.') . '

'; - $title_and_editor .= '

' . __( 'Post editor - Enter the text for your post. There are two modes of editing: Visual and Text. Choose the mode by clicking on the appropriate tab.' ) . '

'; - $title_and_editor .= '

' . __( 'Visual mode gives you a WYSIWYG editor. Click the last icon in the row to get a second row of controls. ') . '

'; - $title_and_editor .= '

' . __( 'The Text mode allows you to enter HTML along with your post text. Line breaks will be converted to paragraphs automatically.' ) . '

'; - $title_and_editor .= '

' . __( 'You can insert media files by clicking the icons above the post editor and following the directions. You can align or edit images using the inline formatting toolbar available in Visual mode.' ) . '

'; - $title_and_editor .= '

' . __( 'You can enable distraction-free writing mode using the icon to the right. This feature is not available for old browsers or devices with small screens, and requires that the full-height editor be enabled in Screen Options.' ) . '

'; - $title_and_editor .= '

' . __( 'Keyboard users: When you’re working in the visual editor, you can use Alt + F10 to access the toolbar.' ) . '

'; - - get_current_screen()->add_help_tab( array( - 'id' => 'title-post-editor', - 'title' => __('Title and Post Editor'), - 'content' => $title_and_editor, - ) ); - - get_current_screen()->set_help_sidebar( - '

' . sprintf(__('You can also create posts with the Press This bookmarklet.'), 'tools.php') . '

' . - '

' . __('For more information:') . '

' . - '

' . __('Documentation on Writing and Editing Posts') . '

' . - '

' . __('Support Forums') . '

' - ); -} elseif ( 'page' == $post_type ) { - $about_pages = '

' . __('Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the “Parent” of the other, creating a group of pages.') . '

' . - '

' . __('Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the distraction-free writing space, available in both the Visual and Text modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box:') . '

'; - - get_current_screen()->add_help_tab( array( - 'id' => 'about-pages', - 'title' => __('About Pages'), - 'content' => $about_pages, - ) ); - - get_current_screen()->set_help_sidebar( - '

' . __('For more information:') . '

' . - '

' . __('Documentation on Adding New Pages') . '

' . - '

' . __('Documentation on Editing Pages') . '

' . - '

' . __('Support Forums') . '

' - ); -} elseif ( 'attachment' == $post_type ) { - get_current_screen()->add_help_tab( array( - 'id' => 'overview', - 'title' => __('Overview'), - 'content' => - '

' . __('This screen allows you to edit four fields for metadata in a file within the media library.') . '

' . - '

' . __('For images only, you can click on Edit Image under the thumbnail to expand out an inline image editor with icons for cropping, rotating, or flipping the image as well as for undoing and redoing. The boxes on the right give you more options for scaling the image, for cropping it, and for cropping the thumbnail in a different way than you crop the original image. You can click on Help in those boxes to get more information.') . '

' . - '

' . __('Note that you crop the image by clicking on it (the Crop icon is already selected) and dragging the cropping frame to select the desired part. Then click Save to retain the cropping.') . '

' . - '

' . __('Remember to click Update Media to save metadata entered or changed.') . '

' - ) ); - - get_current_screen()->set_help_sidebar( - '

' . __('For more information:') . '

' . - '

' . __('Documentation on Edit Media') . '

' . - '

' . __('Support Forums') . '

' - ); -} - -if ( 'post' == $post_type || 'page' == $post_type ) { - $inserting_media = '

' . __( 'You can upload and insert media (images, audio, documents, etc.) by clicking the Add Media button. You can select from the images and files already uploaded to the Media Library, or upload new media to add to your page or post. To create an image gallery, select the images to add and click the “Create a new gallery” button.' ) . '

'; - $inserting_media .= '

' . __( 'You can also embed media from many popular websites including Twitter, YouTube, Flickr and others by pasting the media URL on its own line into the content of your post/page. Please refer to the Codex to learn more about embeds.' ) . '

'; - - get_current_screen()->add_help_tab( array( - 'id' => 'inserting-media', - 'title' => __( 'Inserting Media' ), - 'content' => $inserting_media, - ) ); -} - -if ( 'post' == $post_type ) { - $publish_box = '

' . __('Several boxes on this screen contain settings for how your content will be published, including:') . '

'; - $publish_box .= '
  • ' . __('Publish - You can set the terms of publishing your post in the Publish box. For Status, Visibility, and Publish (immediately), click on the Edit link to reveal more options. Visibility includes options for password-protecting a post or making it stay at the top of your blog indefinitely (sticky). Publish (immediately) allows you to set a future or past date and time, so you can schedule a post to be published in the future or backdate a post.') . '
  • '; - - if ( current_theme_supports( 'post-formats' ) && post_type_supports( 'post', 'post-formats' ) ) { - $publish_box .= '
  • ' . __( 'Format - Post Formats designate how your theme will display a specific post. For example, you could have a standard blog post with a title and paragraphs, or a short aside that omits the title and contains a short text blurb. Please refer to the Codex for descriptions of each post format. Your theme could enable all or some of 10 possible formats.' ) . '
  • '; - } - - if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) { - /* translators: %s: Featured Image */ - $publish_box .= '
  • ' . sprintf( __( '%s - This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the image as a post thumbnail on the home page, a custom header, etc.' ), esc_html( $post_type_object->labels->featured_image ) ) . '
  • '; - } - - $publish_box .= '
'; - - get_current_screen()->add_help_tab( array( - 'id' => 'publish-box', - 'title' => __('Publish Settings'), - 'content' => $publish_box, - ) ); - - $discussion_settings = '

' . __('Send Trackbacks - Trackbacks are a way to notify legacy blog systems that you’ve linked to them. Enter the URL(s) you want to send trackbacks. If you link to other WordPress sites they’ll be notified automatically using pingbacks, and this field is unnecessary.') . '

'; - $discussion_settings .= '

' . __('Discussion - You can turn comments and pings on or off, and if there are comments on the post, you can see them here and moderate them.') . '

'; - - get_current_screen()->add_help_tab( array( - 'id' => 'discussion-settings', - 'title' => __('Discussion Settings'), - 'content' => $discussion_settings, - ) ); -} elseif ( 'page' == $post_type ) { - $page_attributes = '

' . __('Parent - You can arrange your pages in hierarchies. For example, you could have an “About” page that has “Life Story” and “My Dog” pages under it. There are no limits to how many levels you can nest pages.') . '

' . - '

' . __('Template - Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you’ll see them in this dropdown menu.') . '

' . - '

' . __('Order - Pages are usually ordered alphabetically, but you can choose your own order by entering a number (1 for first, etc.) in this field.') . '

'; - - get_current_screen()->add_help_tab( array( - 'id' => 'page-attributes', - 'title' => __('Page Attributes'), - 'content' => $page_attributes, - ) ); -} - -require_once( ABSPATH . 'wp-admin/admin-header.php' ); -?> - -
-

cap->create_posts ) ) - echo ' ' . esc_html( $post_type_object->labels->add_new ) . ''; -?>

- -

- - -

- - -
> - - - - - - - - - - - - - - -
-
-
- - -
-
- - - -
- -
-public ? get_sample_permalink_html($post->ID) : ''; -$shortlink = wp_get_shortlink($post->ID, 'post'); - -if ( !empty( $shortlink ) && $shortlink !== $permalink && $permalink !== home_url('?page_id=' . $post->ID) ) - $sample_permalink_html .= '' . __('Get Shortlink') . ''; - -if ( $post_type_object->public && ! ( 'pending' == get_post_status( $post ) && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { - $has_sample_permalink = $sample_permalink_html && 'auto-draft' != $post->post_status; -?> -
- -
- -
- -
- -
- -post_content, 'content', array( - '_content_editor_dfw' => $_content_editor_dfw, - 'drag_drop_upload' => true, - 'tabfocus_elements' => 'content-html,save-post', - 'editor_height' => 300, - 'tinymce' => array( - 'resize' => false, - 'wp_autoresize_on' => $_wp_editor_expand, - 'add_unload_trigger' => false, - ), -) ); ?> - - - - -
0' ); ?> -   -post_status ) { - echo ''; - if ( $last_user = get_userdata( get_post_meta( $post_ID, '_edit_last', true ) ) ) { - printf(__('Last edited by %1$s on %2$s at %3$s'), esc_html( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); - } else { - printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); - } - echo ''; - } ?> -
- -
- -
- -
- -
-
- -
- -
-
-
-
-
- - - -post_title ) : ?> - - diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php deleted file mode 100644 index 9b8062da12..0000000000 --- a/wp-admin/edit-form-comment.php +++ /dev/null @@ -1,199 +0,0 @@ - -
-comment_ID) ?> -
-

- -
- - - - -
-
-
-
-
- - - - - - - - - - - - - - - - -
- -
- -
-
-
-
-
- -
-' . __( 'Comment' ) . ''; - $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); - wp_editor( $comment->comment_content, 'content', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) ); - wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> -
-
- -
-
-

-
-
-
- -
-
- -
-
-
- -
- -
- -
-
- -
- -
-%1$s'); -$date = date_i18n( $datef, strtotime( $comment->comment_date ) ); -?> - - -
- - -
-
- -comment_post_ID; -if ( current_user_can( 'edit_post', $post_id ) ) { - $post_link = ""; - $post_link .= esc_html( get_the_title( $post_id ) ) . ''; -} else { - $post_link = esc_html( get_the_title( $post_id ) ); -} -?> - -
- ' . $post_link . '' - ); ?> -
- -comment_parent ) : - $parent = get_comment( $comment->comment_parent ); - $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); - $name = get_comment_author( $parent->comment_ID ); -?> -
- ' . $name . '' - ); ?> -
- - - - -
-
-
- -
-
-comment_ID&_wp_original_http_referer=" . urlencode(wp_get_referer()), 'delete-comment_' . $comment->comment_ID) . "'>" . ( !EMPTY_TRASH_DAYS ? __('Delete Permanently') : __('Move to Trash') ) . "\n"; ?> -
-
- -
-
-
-
-
-
-
- -
- -
- - - - - - - -
-
-
-
- - - -Links / Edit Link' ), 'link-manager.php' ); - $submit_text = __('Update Link'); - $form_name = 'editlink'; - $nonce_action = 'update-bookmark_' . $link_id; -} else { - $heading = sprintf( __( 'Links / Add New Link' ), 'link-manager.php' ); - $submit_text = __('Add Link'); - $form_name = 'addlink'; - $nonce_action = 'add-bookmark'; -} - -require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' ); - -add_meta_box('linksubmitdiv', __('Save'), 'link_submit_meta_box', null, 'side', 'core'); -add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', null, 'normal', 'core'); -add_meta_box('linktargetdiv', __('Target'), 'link_target_meta_box', null, 'normal', 'core'); -add_meta_box('linkxfndiv', __('Link Relationship (XFN)'), 'link_xfn_meta_box', null, 'normal', 'core'); -add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', null, 'normal', 'core'); - -/** This action is documented in wp-admin/edit-form-advanced.php */ -do_action( 'add_meta_boxes', 'link', $link ); - -/** - * Fires when link-specific meta boxes are added. - * - * @since 3.0.0 - * - * @param object $link Link object. - */ -do_action( 'add_meta_boxes_link', $link ); - -/** This action is documented in wp-admin/edit-form-advanced.php */ -do_action( 'do_meta_boxes', 'link', 'normal', $link ); -/** This action is documented in wp-admin/edit-form-advanced.php */ -do_action( 'do_meta_boxes', 'link', 'advanced', $link ); -/** This action is documented in wp-admin/edit-form-advanced.php */ -do_action( 'do_meta_boxes', 'link', 'side', $link ); - -add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); - -get_current_screen()->add_help_tab( array( - 'id' => 'overview', - 'title' => __('Overview'), - 'content' => - '

' . __( 'You can add or edit links on this screen by entering information in each of the boxes. Only the link’s web address and name (the text you want to display on your site as the link) are required fields.' ) . '

' . - '

' . __( 'The boxes for link name, web address, and description have fixed positions, while the others may be repositioned using drag and drop. You can also hide boxes you don’t use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '

' . - '

' . __( 'XFN stands for XHTML Friends Network, which is optional. WordPress allows the generation of XFN attributes to show how you are related to the authors/owners of the site to which you are linking.' ) . '

' -) ); - -get_current_screen()->set_help_sidebar( - '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Creating Links' ) . '

' . - '

' . __( 'Support Forums' ) . '

' -); - -require_once( ABSPATH . 'wp-admin/admin-header.php' ); -?> - -
-

- - -

- - -
- - -
- -
-
-
-

-
- -

-
-
- -
-

-
- -

http://wordpress.org/ — don’t forget the http://'); ?>

-
-
- -
-

-
- -

-
-
-
- -
- -
-
- -
- - - - - - - - -
-
- -
-
diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php deleted file mode 100644 index ac5aafbf8f..0000000000 --- a/wp-admin/edit-tag-form.php +++ /dev/null @@ -1,228 +0,0 @@ - -

- - -
-

labels->edit_item; ?>

-
-
> - - - - - - - - - - - - - slug ) ? apply_filters( 'editable_slug', $tag->slug ) : ''; - ?> - - - - - - - - - - - - - - -
-

-

- 0, - 'hide_if_empty' => false, - 'taxonomy' => $taxonomy, - 'name' => 'parent', - 'orderby' => 'name', - 'selected' => $tag->parent, - 'exclude_tree' => $tag->term_id, - 'hierarchical' => true, - 'show_option_none' => __( 'None' ), - ); - - /** This filter is documented in wp-admin/edit-tags.php */ - $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' ); - wp_dropdown_categories( $dropdown_args ); ?> - -

- -
-

- -
-
- - - -cap->manage_terms ) ) - wp_die( __( 'Cheatin’ uh?' ), 403 ); - -/** - * $post_type is set when the WP_Terms_List_Table instance is created - * - * @global string $post_type - */ -global $post_type; - -$wp_list_table = _get_list_table('WP_Terms_List_Table'); -$pagenum = $wp_list_table->get_pagenum(); - -$title = $tax->labels->name; - -if ( 'post' != $post_type ) { - $parent_file = ( 'attachment' == $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type"; - $submenu_file = "edit-tags.php?taxonomy=$taxonomy&post_type=$post_type"; -} elseif ( 'link_category' == $tax->name ) { - $parent_file = 'link-manager.php'; - $submenu_file = 'edit-tags.php?taxonomy=link_category'; -} else { - $parent_file = 'edit.php'; - $submenu_file = "edit-tags.php?taxonomy=$taxonomy"; -} - -add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) ); - -$location = false; - -switch ( $wp_list_table->current_action() ) { - -case 'add-tag': - - check_admin_referer( 'add-tag', '_wpnonce_add-tag' ); - - if ( !current_user_can( $tax->cap->edit_terms ) ) - wp_die( __( 'Cheatin’ uh?' ), 403 ); - - $ret = wp_insert_term( $_POST['tag-name'], $taxonomy, $_POST ); - $location = 'edit-tags.php?taxonomy=' . $taxonomy; - if ( 'post' != $post_type ) - $location .= '&post_type=' . $post_type; - - if ( $referer = wp_get_original_referer() ) { - if ( false !== strpos( $referer, 'edit-tags.php' ) ) - $location = $referer; - } - - if ( $ret && !is_wp_error( $ret ) ) - $location = add_query_arg( 'message', 1, $location ); - else - $location = add_query_arg( array( 'error' => true, 'message' => 4 ), $location ); - - break; - -case 'delete': - $location = 'edit-tags.php?taxonomy=' . $taxonomy; - if ( 'post' != $post_type ) - $location .= '&post_type=' . $post_type; - if ( $referer = wp_get_referer() ) { - if ( false !== strpos( $referer, 'edit-tags.php' ) ) - $location = $referer; - } - - if ( ! isset( $_REQUEST['tag_ID'] ) ) { - break; - } - - $tag_ID = (int) $_REQUEST['tag_ID']; - check_admin_referer( 'delete-tag_' . $tag_ID ); - - if ( !current_user_can( $tax->cap->delete_terms ) ) - wp_die( __( 'Cheatin’ uh?' ), 403 ); - - wp_delete_term( $tag_ID, $taxonomy ); - - $location = add_query_arg( 'message', 2, $location ); - - break; - -case 'bulk-delete': - check_admin_referer( 'bulk-tags' ); - - if ( !current_user_can( $tax->cap->delete_terms ) ) - wp_die( __( 'Cheatin’ uh?' ), 403 ); - - $tags = (array) $_REQUEST['delete_tags']; - foreach ( $tags as $tag_ID ) { - wp_delete_term( $tag_ID, $taxonomy ); - } - - $location = 'edit-tags.php?taxonomy=' . $taxonomy; - if ( 'post' != $post_type ) - $location .= '&post_type=' . $post_type; - if ( $referer = wp_get_referer() ) { - if ( false !== strpos( $referer, 'edit-tags.php' ) ) - $location = $referer; - } - - $location = add_query_arg( 'message', 6, $location ); - - break; - -case 'edit': - $title = $tax->labels->edit_item; - - $tag_ID = (int) $_REQUEST['tag_ID']; - - $tag = get_term( $tag_ID, $taxonomy, OBJECT, 'edit' ); - if ( ! $tag ) - wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) ); - require_once( ABSPATH . 'wp-admin/admin-header.php' ); - include( ABSPATH . 'wp-admin/edit-tag-form.php' ); - include( ABSPATH . 'wp-admin/admin-footer.php' ); - - exit; - -case 'editedtag': - $tag_ID = (int) $_POST['tag_ID']; - check_admin_referer( 'update-tag_' . $tag_ID ); - - if ( !current_user_can( $tax->cap->edit_terms ) ) - wp_die( __( 'Cheatin’ uh?' ), 403 ); - - $tag = get_term( $tag_ID, $taxonomy ); - if ( ! $tag ) - wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) ); - - $ret = wp_update_term( $tag_ID, $taxonomy, $_POST ); - - $location = 'edit-tags.php?taxonomy=' . $taxonomy; - if ( 'post' != $post_type ) - $location .= '&post_type=' . $post_type; - - if ( $referer = wp_get_original_referer() ) { - if ( false !== strpos( $referer, 'edit-tags.php' ) ) - $location = $referer; - } - - if ( $ret && !is_wp_error( $ret ) ) - $location = add_query_arg( 'message', 3, $location ); - else - $location = add_query_arg( array( 'error' => true, 'message' => 5 ), $location ); - break; -} - -if ( ! $location && ! empty( $_REQUEST['_wp_http_referer'] ) ) { - $location = remove_query_arg( array('_wp_http_referer', '_wpnonce'), wp_unslash($_SERVER['REQUEST_URI']) ); -} - -if ( $location ) { - if ( ! empty( $_REQUEST['paged'] ) ) { - $location = add_query_arg( 'paged', (int) $_REQUEST['paged'], $location ); - } - wp_redirect( $location ); - exit; -} - -$wp_list_table->prepare_items(); -$total_pages = $wp_list_table->get_pagination_arg( 'total_pages' ); - -if ( $pagenum > $total_pages && $total_pages > 0 ) { - wp_redirect( add_query_arg( 'paged', $total_pages ) ); - exit; -} - -wp_enqueue_script('admin-tags'); -if ( current_user_can($tax->cap->edit_terms) ) - wp_enqueue_script('inline-edit-tax'); - -if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $taxonomy ) { - $help =''; - if ( 'category' == $taxonomy ) - $help = '

' . sprintf(__( 'You can use categories to define sections of your site and group related posts. The default category is “Uncategorized” until you change it in your writing settings.' ) , 'options-writing.php' ) . '

'; - elseif ( 'link_category' == $taxonomy ) - $help = '

' . __( 'You can create groups of links by using Link Categories. Link Category names must be unique and Link Categories are separate from the categories you use for posts.' ) . '

'; - else - $help = '

' . __( 'You can assign keywords to your posts using tags. Unlike categories, tags have no hierarchy, meaning there’s no relationship from one tag to another.' ) . '

'; - - if ( 'link_category' == $taxonomy ) - $help .= '

' . __( 'You can delete Link Categories in the Bulk Action pull-down, but that action does not delete the links within the category. Instead, it moves them to the default Link Category.' ) . '

'; - else - $help .='

' . __( 'What’s the difference between categories and tags? Normally, tags are ad-hoc keywords that identify important information in your post (names, subjects, etc) that may or may not recur in other posts, while categories are pre-determined sections. If you think of your site like a book, the categories are like the Table of Contents and the tags are like the terms in the index.' ) . '

'; - - get_current_screen()->add_help_tab( array( - 'id' => 'overview', - 'title' => __('Overview'), - 'content' => $help, - ) ); - - if ( 'category' == $taxonomy || 'post_tag' == $taxonomy ) { - if ( 'category' == $taxonomy ) - $help = '

' . __( 'When adding a new category on this screen, you’ll fill in the following fields:' ) . '

'; - else - $help = '

' . __( 'When adding a new tag on this screen, you’ll fill in the following fields:' ) . '

'; - - $help .= '
    ' . - '
  • ' . __( 'Name - The name is how it appears on your site.' ) . '
  • '; - - if ( ! global_terms_enabled() ) - $help .= '
  • ' . __( 'Slug - The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ) . '
  • '; - - if ( 'category' == $taxonomy ) - $help .= '
  • ' . __( 'Parent - Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have child categories for Bebop and Big Band. Totally optional. To create a subcategory, just choose another category from the Parent dropdown.' ) . '
  • '; - - $help .= '
  • ' . __( 'Description - The description is not prominent by default; however, some themes may display it.' ) . '
  • ' . - '
' . - '

' . __( 'You can change the display of this screen using the Screen Options tab to set how many items are displayed per screen and to display/hide columns in the table.' ) . '

'; - - get_current_screen()->add_help_tab( array( - 'id' => 'adding-terms', - 'title' => 'category' == $taxonomy ? __( 'Adding Categories' ) : __( 'Adding Tags' ), - 'content' => $help, - ) ); - } - - $help = '

' . __( 'For more information:' ) . '

'; - - if ( 'category' == $taxonomy ) - $help .= '

' . __( 'Documentation on Categories' ) . '

'; - elseif ( 'link_category' == $taxonomy ) - $help .= '

' . __( 'Documentation on Link Categories' ) . '

'; - else - $help .= '

' . __( 'Documentation on Tags' ) . '

'; - - $help .= '

' . __('Support Forums') . '

'; - - get_current_screen()->set_help_sidebar( $help ); - - unset( $help ); -} - -require_once( ABSPATH . 'wp-admin/admin-header.php' ); - -if ( !current_user_can($tax->cap->edit_terms) ) - wp_die( __('You are not allowed to edit this item.') ); - -$messages = array(); -$messages['_item'] = array( - 0 => '', // Unused. Messages start at index 1. - 1 => __( 'Item added.' ), - 2 => __( 'Item deleted.' ), - 3 => __( 'Item updated.' ), - 4 => __( 'Item not added.' ), - 5 => __( 'Item not updated.' ), - 6 => __( 'Items deleted.' ) -); -$messages['category'] = array( - 0 => '', // Unused. Messages start at index 1. - 1 => __( 'Category added.' ), - 2 => __( 'Category deleted.' ), - 3 => __( 'Category updated.' ), - 4 => __( 'Category not added.' ), - 5 => __( 'Category not updated.' ), - 6 => __( 'Categories deleted.' ) -); -$messages['post_tag'] = array( - 0 => '', // Unused. Messages start at index 1. - 1 => __( 'Tag added.' ), - 2 => __( 'Tag deleted.' ), - 3 => __( 'Tag updated.' ), - 4 => __( 'Tag not added.' ), - 5 => __( 'Tag not updated.' ), - 6 => __( 'Tags deleted.' ) -); - -/** - * Filter the messages displayed when a tag is updated. - * - * @since 3.7.0 - * - * @param array $messages The messages to be displayed. - */ -$messages = apply_filters( 'term_updated_messages', $messages ); - -$message = false; -if ( isset( $_REQUEST['message'] ) && ( $msg = (int) $_REQUEST['message'] ) ) { - if ( isset( $messages[ $taxonomy ][ $msg ] ) ) - $message = $messages[ $taxonomy ][ $msg ]; - elseif ( ! isset( $messages[ $taxonomy ] ) && isset( $messages['_item'][ $msg ] ) ) - $message = $messages['_item'][ $msg ]; -} - -$class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'updated'; - -if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) { - $import_link = admin_url( 'admin.php?import=wpcat2tag' ); -} else { - $import_link = admin_url( 'import.php' ); -} - -?> - -
-

' . __('Search results for “%s”') . '', esc_html( wp_unslash($_REQUEST['s']) ) ); ?> -

- - -

- -
- -
- - - -search_box( $tax->labels->search_items, 'tag' ); ?> - -
-
- -
- -
-
-
- - - -display(); ?> - -
-
- - -
-

- Note:
Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category %s.' ), apply_filters( 'the_category', get_cat_name( get_option( 'default_category') ) ) ); - ?> -

- -

category to tag converter.' ), esc_url( $import_link ) ) ?>

- -
- -
-

tag to category converter.' ), esc_url( $import_link ) ) ;?>

-
- - -
-
- -
-
- -labels->popular_items ) ) { - if ( current_user_can( $tax->cap->edit_terms ) ) - $tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'post_type' => $post_type, 'echo' => false, 'link' => 'edit' ) ); - else - $tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'echo' => false ) ); - - if ( $tag_cloud ) : - ?> -
-

labels->popular_items; ?>

- -
-cap->edit_terms) ) { - if ( 'category' == $taxonomy ) { - /** - * Fires before the Add Category form. - * - * @since 2.1.0 - * @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead. - * - * @param object $arg Optional arguments cast to an object. - */ - do_action( 'add_category_form_pre', (object) array( 'parent' => 0 ) ); - } elseif ( 'link_category' == $taxonomy ) { - /** - * Fires before the link category form. - * - * @since 2.3.0 - * @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead. - * - * @param object $arg Optional arguments cast to an object. - */ - do_action( 'add_link_category_form_pre', (object) array( 'parent' => 0 ) ); - } else { - /** - * Fires before the Add Tag form. - * - * @since 2.5.0 - * @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead. - * - * @param string $taxonomy The taxonomy slug. - */ - do_action( 'add_tag_form_pre', $taxonomy ); - } - - /** - * Fires before the Add Term form for all taxonomies. - * - * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. - * - * @since 3.0.0 - * - * @param string $taxonomy The taxonomy slug. - */ - do_action( "{$taxonomy}_pre_add_form", $taxonomy ); -?> - -
-

labels->add_new_item; ?>

-
> - - - - - - -
- - -

-
- -
- - -

-
- - -
- - 0, - 'hide_if_empty' => false, - 'taxonomy' => $taxonomy, - 'name' => 'parent', - 'orderby' => 'name', - 'hierarchical' => true, - 'show_option_none' => __( 'None' ), - ); - - /** - * Filter the taxonomy parent drop-down on the Edit Term page. - * - * @since 3.7.0 - * @since 4.2.0 Added `$context` parameter. - * - * @param array $dropdown_args { - * An array of taxonomy parent drop-down arguments. - * - * @type int|bool $hide_empty Whether to hide terms not attached to any posts. Default 0|false. - * @type bool $hide_if_empty Whether to hide the drop-down if no terms exist. Default false. - * @type string $taxonomy The taxonomy slug. - * @type string $name Value of the name attribute to use for the drop-down select element. - * Default 'parent'. - * @type string $orderby The field to order by. Default 'name'. - * @type bool $hierarchical Whether the taxonomy is hierarchical. Default true. - * @type string $show_option_none Label to display if there are no terms. Default 'None'. - * } - * @param string $taxonomy The taxonomy slug. - * @param string $context Filter context. Accepts 'new' or 'edit'. - */ - $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' ); - - wp_dropdown_categories( $dropdown_args ); - ?> - -

- -
- -
- - -

-
- -labels->add_new_item ); - -if ( 'category' == $taxonomy ) { - /** - * Fires at the end of the Edit Category form. - * - * @since 2.1.0 - * @deprecated 3.0.0 Use {$taxonomy}_add_form instead. - * - * @param object $arg Optional arguments cast to an object. - */ - do_action( 'edit_category_form', (object) array( 'parent' => 0 ) ); -} elseif ( 'link_category' == $taxonomy ) { - /** - * Fires at the end of the Edit Link form. - * - * @since 2.3.0 - * @deprecated 3.0.0 Use {$taxonomy}_add_form instead. - * - * @param object $arg Optional arguments cast to an object. - */ - do_action( 'edit_link_category_form', (object) array( 'parent' => 0 ) ); -} else { - /** - * Fires at the end of the Add Tag form. - * - * @since 2.7.0 - * @deprecated 3.0.0 Use {$taxonomy}_add_form instead. - * - * @param string $taxonomy The taxonomy slug. - */ - do_action( 'add_tag_form', $taxonomy ); -} - -/** - * Fires at the end of the Add Term form for all taxonomies. - * - * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. - * - * @since 3.0.0 - * - * @param string $taxonomy The taxonomy slug. - */ -do_action( "{$taxonomy}_add_form", $taxonomy ); -?> -
- - -
-
- -
-
- - - -inline_edit(); - -include( ABSPATH . 'wp-admin/admin-footer.php' ); diff --git a/wp-admin/edit.php b/wp-admin/edit.php deleted file mode 100644 index 6c285d78ec..0000000000 --- a/wp-admin/edit.php +++ /dev/null @@ -1,342 +0,0 @@ -cap->edit_posts ) ) - wp_die( __( 'Cheatin’ uh?' ), 403 ); - -$wp_list_table = _get_list_table('WP_Posts_List_Table'); -$pagenum = $wp_list_table->get_pagenum(); - -// Back-compat for viewing comments of an entry -foreach ( array( 'p', 'attachment_id', 'page_id' ) as $_redirect ) { - if ( ! empty( $_REQUEST[ $_redirect ] ) ) { - wp_redirect( admin_url( 'edit-comments.php?p=' . absint( $_REQUEST[ $_redirect ] ) ) ); - exit; - } -} -unset( $_redirect ); - -if ( 'post' != $post_type ) { - $parent_file = "edit.php?post_type=$post_type"; - $submenu_file = "edit.php?post_type=$post_type"; - $post_new_file = "post-new.php?post_type=$post_type"; -} else { - $parent_file = 'edit.php'; - $submenu_file = 'edit.php'; - $post_new_file = 'post-new.php'; -} - -$doaction = $wp_list_table->current_action(); - -if ( $doaction ) { - check_admin_referer('bulk-posts'); - - $sendback = remove_query_arg( array('trashed', 'untrashed', 'deleted', 'locked', 'ids'), wp_get_referer() ); - if ( ! $sendback ) - $sendback = admin_url( $parent_file ); - $sendback = add_query_arg( 'paged', $pagenum, $sendback ); - if ( strpos($sendback, 'post.php') !== false ) - $sendback = admin_url($post_new_file); - - if ( 'delete_all' == $doaction ) { - // Prepare for deletion of all posts with a specified post status (i.e. Empty trash). - $post_status = preg_replace('/[^a-z0-9_-]+/i', '', $_REQUEST['post_status']); - // Validate the post status exists. - if ( get_post_status_object( $post_status ) ) { - $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=%s AND post_status = %s", $post_type, $post_status ) ); - } - $doaction = 'delete'; - } elseif ( isset( $_REQUEST['media'] ) ) { - $post_ids = $_REQUEST['media']; - } elseif ( isset( $_REQUEST['ids'] ) ) { - $post_ids = explode( ',', $_REQUEST['ids'] ); - } elseif ( !empty( $_REQUEST['post'] ) ) { - $post_ids = array_map('intval', $_REQUEST['post']); - } - - if ( !isset( $post_ids ) ) { - wp_redirect( $sendback ); - exit; - } - - switch ( $doaction ) { - case 'trash': - $trashed = $locked = 0; - - foreach( (array) $post_ids as $post_id ) { - if ( !current_user_can( 'delete_post', $post_id) ) - wp_die( __('You are not allowed to move this item to the Trash.') ); - - if ( wp_check_post_lock( $post_id ) ) { - $locked++; - continue; - } - - if ( !wp_trash_post($post_id) ) - wp_die( __('Error in moving to Trash.') ); - - $trashed++; - } - - $sendback = add_query_arg( array('trashed' => $trashed, 'ids' => join(',', $post_ids), 'locked' => $locked ), $sendback ); - break; - case 'untrash': - $untrashed = 0; - foreach( (array) $post_ids as $post_id ) { - if ( !current_user_can( 'delete_post', $post_id) ) - wp_die( __('You are not allowed to restore this item from the Trash.') ); - - if ( !wp_untrash_post($post_id) ) - wp_die( __('Error in restoring from Trash.') ); - - $untrashed++; - } - $sendback = add_query_arg('untrashed', $untrashed, $sendback); - break; - case 'delete': - $deleted = 0; - foreach( (array) $post_ids as $post_id ) { - $post_del = get_post($post_id); - - if ( !current_user_can( 'delete_post', $post_id ) ) - wp_die( __('You are not allowed to delete this item.') ); - - if ( $post_del->post_type == 'attachment' ) { - if ( ! wp_delete_attachment($post_id) ) - wp_die( __('Error in deleting.') ); - } else { - if ( !wp_delete_post($post_id) ) - wp_die( __('Error in deleting.') ); - } - $deleted++; - } - $sendback = add_query_arg('deleted', $deleted, $sendback); - break; - case 'edit': - if ( isset($_REQUEST['bulk_edit']) ) { - $done = bulk_edit_posts($_REQUEST); - - if ( is_array($done) ) { - $done['updated'] = count( $done['updated'] ); - $done['skipped'] = count( $done['skipped'] ); - $done['locked'] = count( $done['locked'] ); - $sendback = add_query_arg( $done, $sendback ); - } - } - break; - } - - $sendback = remove_query_arg( array('action', 'action2', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status', 'post', 'bulk_edit', 'post_view'), $sendback ); - - wp_redirect($sendback); - exit(); -} elseif ( ! empty($_REQUEST['_wp_http_referer']) ) { - wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), wp_unslash($_SERVER['REQUEST_URI']) ) ); - exit; -} - -$wp_list_table->prepare_items(); - -wp_enqueue_script('inline-edit-post'); -wp_enqueue_script('heartbeat'); - -$title = $post_type_object->labels->name; - -if ( 'post' == $post_type ) { - get_current_screen()->add_help_tab( array( - 'id' => 'overview', - 'title' => __('Overview'), - 'content' => - '

' . __('This screen provides access to all of your posts. You can customize the display of this screen to suit your workflow.') . '

' - ) ); - get_current_screen()->add_help_tab( array( - 'id' => 'screen-content', - 'title' => __('Screen Content'), - 'content' => - '

' . __('You can customize the display of this screen’s contents in a number of ways:') . '

' . - '
    ' . - '
  • ' . __('You can hide/display columns based on your needs and decide how many posts to list per screen using the Screen Options tab.') . '
  • ' . - '
  • ' . __('You can filter the list of posts by post status using the text links in the upper left to show All, Published, Draft, or Trashed posts. The default view is to show all posts.') . '
  • ' . - '
  • ' . __('You can view posts in a simple title list or with an excerpt. Choose the view you prefer by clicking on the icons at the top of the list on the right.') . '
  • ' . - '
  • ' . __('You can refine the list to show only posts in a specific category or from a specific month by using the dropdown menus above the posts list. Click the Filter button after making your selection. You also can refine the list by clicking on the post author, category or tag in the posts list.') . '
  • ' . - '
' - ) ); - get_current_screen()->add_help_tab( array( - 'id' => 'action-links', - 'title' => __('Available Actions'), - 'content' => - '

' . __('Hovering over a row in the posts list will display action links that allow you to manage your post. You can perform the following actions:') . '

' . - '
    ' . - '
  • ' . __('Edit takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.') . '
  • ' . - '
  • ' . __('Quick Edit provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.') . '
  • ' . - '
  • ' . __('Trash removes your post from this list and places it in the trash, from which you can permanently delete it.') . '
  • ' . - '
  • ' . __('Preview will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post’s status.') . '
  • ' . - '
' - ) ); - get_current_screen()->add_help_tab( array( - 'id' => 'bulk-actions', - 'title' => __('Bulk Actions'), - 'content' => - '

' . __('You can also edit or move multiple posts to the trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.') . '

' . - '

' . __('When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.') . '

' - ) ); - - get_current_screen()->set_help_sidebar( - '

' . __('For more information:') . '

' . - '

' . __('Documentation on Managing Posts') . '

' . - '

' . __('Support Forums') . '

' - ); - -} elseif ( 'page' == $post_type ) { - get_current_screen()->add_help_tab( array( - 'id' => 'overview', - 'title' => __('Overview'), - 'content' => - '

' . __('Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the “Parent” of the other, creating a group of pages.') . '

' - ) ); - get_current_screen()->add_help_tab( array( - 'id' => 'managing-pages', - 'title' => __('Managing Pages'), - 'content' => - '

' . __('Managing pages is very similar to managing posts, and the screens can be customized in the same way.') . '

' . - '

' . __('You can also perform the same types of actions, including narrowing the list by using the filters, acting on a page using the action links that appear when you hover over a row, or using the Bulk Actions menu to edit the metadata for multiple pages at once.') . '

' - ) ); - - get_current_screen()->set_help_sidebar( - '

' . __('For more information:') . '

' . - '

' . __('Documentation on Managing Pages') . '

' . - '

' . __('Support Forums') . '

' - ); -} - -add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page' ) ); - -$bulk_counts = array( - 'updated' => isset( $_REQUEST['updated'] ) ? absint( $_REQUEST['updated'] ) : 0, - 'locked' => isset( $_REQUEST['locked'] ) ? absint( $_REQUEST['locked'] ) : 0, - 'deleted' => isset( $_REQUEST['deleted'] ) ? absint( $_REQUEST['deleted'] ) : 0, - 'trashed' => isset( $_REQUEST['trashed'] ) ? absint( $_REQUEST['trashed'] ) : 0, - 'untrashed' => isset( $_REQUEST['untrashed'] ) ? absint( $_REQUEST['untrashed'] ) : 0, -); - -$bulk_messages = array(); -$bulk_messages['post'] = array( - 'updated' => _n( '%s post updated.', '%s posts updated.', $bulk_counts['updated'] ), - 'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 post not updated, somebody is editing it.' ) : - _n( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $bulk_counts['locked'] ), - 'deleted' => _n( '%s post permanently deleted.', '%s posts permanently deleted.', $bulk_counts['deleted'] ), - 'trashed' => _n( '%s post moved to the Trash.', '%s posts moved to the Trash.', $bulk_counts['trashed'] ), - 'untrashed' => _n( '%s post restored from the Trash.', '%s posts restored from the Trash.', $bulk_counts['untrashed'] ), -); -$bulk_messages['page'] = array( - 'updated' => _n( '%s page updated.', '%s pages updated.', $bulk_counts['updated'] ), - 'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 page not updated, somebody is editing it.' ) : - _n( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $bulk_counts['locked'] ), - 'deleted' => _n( '%s page permanently deleted.', '%s pages permanently deleted.', $bulk_counts['deleted'] ), - 'trashed' => _n( '%s page moved to the Trash.', '%s pages moved to the Trash.', $bulk_counts['trashed'] ), - 'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ), -); - -/** - * Filter the bulk action updated messages. - * - * By default, custom post types use the messages for the 'post' post type. - * - * @since 3.7.0 - * - * @param array $bulk_messages Arrays of messages, each keyed by the corresponding post type. Messages are - * keyed with 'updated', 'locked', 'deleted', 'trashed', and 'untrashed'. - * @param array $bulk_counts Array of item counts for each message, used to build internationalized strings. - */ -$bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts ); -$bulk_counts = array_filter( $bulk_counts ); - -require_once( ABSPATH . 'wp-admin/admin-header.php' ); -?> -
-

labels->name ); -if ( current_user_can( $post_type_object->cap->create_posts ) ) - echo ' ' . esc_html( $post_type_object->labels->add_new ) . ''; -if ( ! empty( $_REQUEST['s'] ) ) - printf( ' ' . __('Search results for “%s”') . '', get_search_query() ); -?>

- - $count ) { - if ( isset( $bulk_messages[ $post_type ][ $message ] ) ) - $messages[] = sprintf( $bulk_messages[ $post_type ][ $message ], number_format_i18n( $count ) ); - elseif ( isset( $bulk_messages['post'][ $message ] ) ) - $messages[] = sprintf( $bulk_messages['post'][ $message ], number_format_i18n( $count ) ); - - if ( $message == 'trashed' && isset( $_REQUEST['ids'] ) ) { - $ids = preg_replace( '/[^0-9,]/', '', $_REQUEST['ids'] ); - $messages[] = '' . __('Undo') . ''; - } -} - -if ( $messages ) - echo '

' . join( ' ', $messages ) . '

'; -unset( $messages ); - -$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'locked', 'skipped', 'updated', 'deleted', 'trashed', 'untrashed' ), $_SERVER['REQUEST_URI'] ); -?> - -views(); ?> - -
- -search_box( $post_type_object->labels->search_items, 'post' ); ?> - - - - - - - -display(); ?> - -
- -has_items() ) - $wp_list_table->inline_edit(); -?> - -
-
-
- - - -add_help_tab( array( - 'id' => 'overview', - 'title' => __('Overview'), - 'content' => '

' . __('You can export a file of your site’s content in order to import it into another installation or platform. The export file will be an XML file format called WXR. Posts, pages, comments, custom fields, categories, and tags can be included. You can choose for the WXR file to include only certain posts or pages by setting the dropdown filters to limit the export by category, author, date range by month, or publishing status.') . '

' . - '

' . __('Once generated, your WXR file can be imported by another WordPress site or by another blogging platform able to access this format.') . '

', -) ); - -get_current_screen()->set_help_sidebar( - '

' . __('For more information:') . '

' . - '

' . __('Documentation on Export') . '

' . - '

' . __('Support Forums') . '

' -); - -// If the 'download' URL parameter is set, a WXR export file is baked and returned. -if ( isset( $_GET['download'] ) ) { - $args = array(); - - if ( ! isset( $_GET['content'] ) || 'all' == $_GET['content'] ) { - $args['content'] = 'all'; - } elseif ( 'posts' == $_GET['content'] ) { - $args['content'] = 'post'; - - if ( $_GET['cat'] ) - $args['category'] = (int) $_GET['cat']; - - if ( $_GET['post_author'] ) - $args['author'] = (int) $_GET['post_author']; - - if ( $_GET['post_start_date'] || $_GET['post_end_date'] ) { - $args['start_date'] = $_GET['post_start_date']; - $args['end_date'] = $_GET['post_end_date']; - } - - if ( $_GET['post_status'] ) - $args['status'] = $_GET['post_status']; - } elseif ( 'pages' == $_GET['content'] ) { - $args['content'] = 'page'; - - if ( $_GET['page_author'] ) - $args['author'] = (int) $_GET['page_author']; - - if ( $_GET['page_start_date'] || $_GET['page_end_date'] ) { - $args['start_date'] = $_GET['page_start_date']; - $args['end_date'] = $_GET['page_end_date']; - } - - if ( $_GET['page_status'] ) - $args['status'] = $_GET['page_status']; - } else { - $args['content'] = $_GET['content']; - } - - /** - * Filter the export args. - * - * @since 3.5.0 - * - * @param array $args The arguments to send to the exporter. - */ - $args = apply_filters( 'export_args', $args ); - - export_wp( $args ); - die(); -} - -require_once( ABSPATH . 'wp-admin/admin-header.php' ); - -/** - * Create the date options fields for exporting a given post type. - * - * @global wpdb $wpdb WordPress database abstraction object. - * @global WP_Locale $wp_locale Date and Time Locale object. - * - * @since 3.1.0 - * - * @param string $post_type The post type. Default 'post'. - */ -function export_date_options( $post_type = 'post' ) { - global $wpdb, $wp_locale; - - $months = $wpdb->get_results( $wpdb->prepare( " - SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month - FROM $wpdb->posts - WHERE post_type = %s AND post_status != 'auto-draft' - ORDER BY post_date DESC - ", $post_type ) ); - - $month_count = count( $months ); - if ( !$month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) - return; - - foreach ( $months as $date ) { - if ( 0 == $date->year ) - continue; - - $month = zeroise( $date->month, 2 ); - echo ''; - } -} -?> - -
-

- -

-

-

- -

-
- -

-

- -

-
    -
  • - - __('All') ) ); ?> -
  • -
  • - -get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'post'" ); - wp_dropdown_users( array( 'include' => $authors, 'name' => 'post_author', 'multi' => true, 'show_option_all' => __('All') ) ); -?> -
  • -
  • - - - -
  • -
  • - - -
  • -
- -

-
    -
  • - -get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'page'" ); - wp_dropdown_users( array( 'include' => $authors, 'name' => 'page_author', 'multi' => true, 'show_option_all' => __('All') ) ); -?> -
  • -
  • - - - -
  • -
  • - - -
  • -
- - false, 'can_export' => true ), 'objects' ) as $post_type ) : ?> -

- - - - - -
-
- - diff --git a/wp-admin/freedoms.php b/wp-admin/freedoms.php deleted file mode 100644 index 7788f65c5d..0000000000 --- a/wp-admin/freedoms.php +++ /dev/null @@ -1,57 +0,0 @@ - -
- -

- -
- -
- - - -

license, the GPL.' ), 'https://wordpress.org/about/license/' ); ?>

- -
    -
  1. -
  2. -
  3. -
  4. -
- -

check out our trademark guidelines first.' ), 'http://wordpressfoundation.org/trademark-policy/' ); ?>

- -

plugins and themes there. If you get a plugin or theme from another source, make sure to ask them if it’s GPL first. If they don’t respect the WordPress license, we don’t recommend them.' ), $plugins_url, $themes_url, 'https://wordpress.org/about/license/' ); ?>

- -

Free Software Foundation.' ); ?>

- -
- diff --git a/wp-admin/images/align-center-2x.png b/wp-admin/images/align-center-2x.png deleted file mode 100644 index 0b6273445a..0000000000 Binary files a/wp-admin/images/align-center-2x.png and /dev/null differ diff --git a/wp-admin/images/align-center.png b/wp-admin/images/align-center.png deleted file mode 100644 index e7bc807880..0000000000 Binary files a/wp-admin/images/align-center.png and /dev/null differ diff --git a/wp-admin/images/align-left-2x.png b/wp-admin/images/align-left-2x.png deleted file mode 100644 index 1b2d428333..0000000000 Binary files a/wp-admin/images/align-left-2x.png and /dev/null differ diff --git a/wp-admin/images/align-left.png b/wp-admin/images/align-left.png deleted file mode 100644 index b438f7e003..0000000000 Binary files a/wp-admin/images/align-left.png and /dev/null differ diff --git a/wp-admin/images/align-none-2x.png b/wp-admin/images/align-none-2x.png deleted file mode 100644 index a64a0bed51..0000000000 Binary files a/wp-admin/images/align-none-2x.png and /dev/null differ diff --git a/wp-admin/images/align-none.png b/wp-admin/images/align-none.png deleted file mode 100644 index b72df64716..0000000000 Binary files a/wp-admin/images/align-none.png and /dev/null differ diff --git a/wp-admin/images/align-right-2x.png b/wp-admin/images/align-right-2x.png deleted file mode 100644 index 013150513b..0000000000 Binary files a/wp-admin/images/align-right-2x.png and /dev/null differ diff --git a/wp-admin/images/align-right.png b/wp-admin/images/align-right.png deleted file mode 100644 index 86a1b2e876..0000000000 Binary files a/wp-admin/images/align-right.png and /dev/null differ diff --git a/wp-admin/images/arrows-2x.png b/wp-admin/images/arrows-2x.png deleted file mode 100644 index 0b0c53d1a6..0000000000 Binary files a/wp-admin/images/arrows-2x.png and /dev/null differ diff --git a/wp-admin/images/arrows.png b/wp-admin/images/arrows.png deleted file mode 100644 index 9e4a96cd28..0000000000 Binary files a/wp-admin/images/arrows.png and /dev/null differ diff --git a/wp-admin/images/browser.png b/wp-admin/images/browser.png deleted file mode 100644 index 83ead4747b..0000000000 Binary files a/wp-admin/images/browser.png and /dev/null differ diff --git a/wp-admin/images/bubble_bg-2x.gif b/wp-admin/images/bubble_bg-2x.gif deleted file mode 100644 index 77ac312180..0000000000 Binary files a/wp-admin/images/bubble_bg-2x.gif and /dev/null differ diff --git a/wp-admin/images/bubble_bg.gif b/wp-admin/images/bubble_bg.gif deleted file mode 100644 index f3bfdcdc2b..0000000000 Binary files a/wp-admin/images/bubble_bg.gif and /dev/null differ diff --git a/wp-admin/images/comment-grey-bubble-2x.png b/wp-admin/images/comment-grey-bubble-2x.png deleted file mode 100644 index 0eec4a6df0..0000000000 Binary files a/wp-admin/images/comment-grey-bubble-2x.png and /dev/null differ diff --git a/wp-admin/images/comment-grey-bubble.png b/wp-admin/images/comment-grey-bubble.png deleted file mode 100644 index 558ee8f32d..0000000000 Binary files a/wp-admin/images/comment-grey-bubble.png and /dev/null differ diff --git a/wp-admin/images/date-button-2x.gif b/wp-admin/images/date-button-2x.gif deleted file mode 100644 index f658b5154a..0000000000 Binary files a/wp-admin/images/date-button-2x.gif and /dev/null differ diff --git a/wp-admin/images/date-button.gif b/wp-admin/images/date-button.gif deleted file mode 100644 index 508054477b..0000000000 Binary files a/wp-admin/images/date-button.gif and /dev/null differ diff --git a/wp-admin/images/generic.png b/wp-admin/images/generic.png deleted file mode 100644 index 00575a078f..0000000000 Binary files a/wp-admin/images/generic.png and /dev/null differ diff --git a/wp-admin/images/icons32-2x.png b/wp-admin/images/icons32-2x.png deleted file mode 100644 index b86b727250..0000000000 Binary files a/wp-admin/images/icons32-2x.png and /dev/null differ diff --git a/wp-admin/images/icons32-vs-2x.png b/wp-admin/images/icons32-vs-2x.png deleted file mode 100644 index 54e2fb2f5f..0000000000 Binary files a/wp-admin/images/icons32-vs-2x.png and /dev/null differ diff --git a/wp-admin/images/icons32-vs.png b/wp-admin/images/icons32-vs.png deleted file mode 100644 index e46d6bebb7..0000000000 Binary files a/wp-admin/images/icons32-vs.png and /dev/null differ diff --git a/wp-admin/images/icons32.png b/wp-admin/images/icons32.png deleted file mode 100644 index e491b1a8d2..0000000000 Binary files a/wp-admin/images/icons32.png and /dev/null differ diff --git a/wp-admin/images/imgedit-icons-2x.png b/wp-admin/images/imgedit-icons-2x.png deleted file mode 100644 index 98dd412404..0000000000 Binary files a/wp-admin/images/imgedit-icons-2x.png and /dev/null differ diff --git a/wp-admin/images/imgedit-icons.png b/wp-admin/images/imgedit-icons.png deleted file mode 100644 index 0d544ee9b8..0000000000 Binary files a/wp-admin/images/imgedit-icons.png and /dev/null differ diff --git a/wp-admin/images/list-2x.png b/wp-admin/images/list-2x.png deleted file mode 100644 index 05c6eb37ff..0000000000 Binary files a/wp-admin/images/list-2x.png and /dev/null differ diff --git a/wp-admin/images/list.png b/wp-admin/images/list.png deleted file mode 100644 index 85d1295e81..0000000000 Binary files a/wp-admin/images/list.png and /dev/null differ diff --git a/wp-admin/images/loading.gif b/wp-admin/images/loading.gif deleted file mode 100644 index 1e9dea9b45..0000000000 Binary files a/wp-admin/images/loading.gif and /dev/null differ diff --git a/wp-admin/images/marker.png b/wp-admin/images/marker.png deleted file mode 100644 index 30313b871d..0000000000 Binary files a/wp-admin/images/marker.png and /dev/null differ diff --git a/wp-admin/images/mask.png b/wp-admin/images/mask.png deleted file mode 100644 index 0fc9cbe630..0000000000 Binary files a/wp-admin/images/mask.png and /dev/null differ diff --git a/wp-admin/images/media-button-2x.png b/wp-admin/images/media-button-2x.png deleted file mode 100644 index b8f8ed4df8..0000000000 Binary files a/wp-admin/images/media-button-2x.png and /dev/null differ diff --git a/wp-admin/images/media-button-image.gif b/wp-admin/images/media-button-image.gif deleted file mode 100644 index 56a974731d..0000000000 Binary files a/wp-admin/images/media-button-image.gif and /dev/null differ diff --git a/wp-admin/images/media-button-music.gif b/wp-admin/images/media-button-music.gif deleted file mode 100644 index 42e65b248a..0000000000 Binary files a/wp-admin/images/media-button-music.gif and /dev/null differ diff --git a/wp-admin/images/media-button-other.gif b/wp-admin/images/media-button-other.gif deleted file mode 100644 index c7544ec158..0000000000 Binary files a/wp-admin/images/media-button-other.gif and /dev/null differ diff --git a/wp-admin/images/media-button-video.gif b/wp-admin/images/media-button-video.gif deleted file mode 100644 index 405083b0b3..0000000000 Binary files a/wp-admin/images/media-button-video.gif and /dev/null differ diff --git a/wp-admin/images/media-button.png b/wp-admin/images/media-button.png deleted file mode 100644 index 752ee45232..0000000000 Binary files a/wp-admin/images/media-button.png and /dev/null differ diff --git a/wp-admin/images/menu-2x.png b/wp-admin/images/menu-2x.png deleted file mode 100644 index 7131763a59..0000000000 Binary files a/wp-admin/images/menu-2x.png and /dev/null differ diff --git a/wp-admin/images/menu-vs-2x.png b/wp-admin/images/menu-vs-2x.png deleted file mode 100644 index 99b382369f..0000000000 Binary files a/wp-admin/images/menu-vs-2x.png and /dev/null differ diff --git a/wp-admin/images/menu-vs.png b/wp-admin/images/menu-vs.png deleted file mode 100644 index fe281087de..0000000000 Binary files a/wp-admin/images/menu-vs.png and /dev/null differ diff --git a/wp-admin/images/menu.png b/wp-admin/images/menu.png deleted file mode 100644 index c1d15af82b..0000000000 Binary files a/wp-admin/images/menu.png and /dev/null differ diff --git a/wp-admin/images/no.png b/wp-admin/images/no.png deleted file mode 100644 index 59c35bdccc..0000000000 Binary files a/wp-admin/images/no.png and /dev/null differ diff --git a/wp-admin/images/post-formats-vs.png b/wp-admin/images/post-formats-vs.png deleted file mode 100644 index d77f91c064..0000000000 Binary files a/wp-admin/images/post-formats-vs.png and /dev/null differ diff --git a/wp-admin/images/post-formats.png b/wp-admin/images/post-formats.png deleted file mode 100644 index cae309e5d5..0000000000 Binary files a/wp-admin/images/post-formats.png and /dev/null differ diff --git a/wp-admin/images/post-formats32-vs.png b/wp-admin/images/post-formats32-vs.png deleted file mode 100644 index f565340732..0000000000 Binary files a/wp-admin/images/post-formats32-vs.png and /dev/null differ diff --git a/wp-admin/images/post-formats32.png b/wp-admin/images/post-formats32.png deleted file mode 100644 index 69ec095e2b..0000000000 Binary files a/wp-admin/images/post-formats32.png and /dev/null differ diff --git a/wp-admin/images/resize-2x.gif b/wp-admin/images/resize-2x.gif deleted file mode 100644 index 315ea062f6..0000000000 Binary files a/wp-admin/images/resize-2x.gif and /dev/null differ diff --git a/wp-admin/images/resize-rtl-2x.gif b/wp-admin/images/resize-rtl-2x.gif deleted file mode 100644 index 51edc79a82..0000000000 Binary files a/wp-admin/images/resize-rtl-2x.gif and /dev/null differ diff --git a/wp-admin/images/resize-rtl.gif b/wp-admin/images/resize-rtl.gif deleted file mode 100644 index 61afefe522..0000000000 Binary files a/wp-admin/images/resize-rtl.gif and /dev/null differ diff --git a/wp-admin/images/resize.gif b/wp-admin/images/resize.gif deleted file mode 100644 index ca4222737e..0000000000 Binary files a/wp-admin/images/resize.gif and /dev/null differ diff --git a/wp-admin/images/se.png b/wp-admin/images/se.png deleted file mode 100644 index eb487b4636..0000000000 Binary files a/wp-admin/images/se.png and /dev/null differ diff --git a/wp-admin/images/sort-2x.gif b/wp-admin/images/sort-2x.gif deleted file mode 100644 index 60b6084b52..0000000000 Binary files a/wp-admin/images/sort-2x.gif and /dev/null differ diff --git a/wp-admin/images/sort.gif b/wp-admin/images/sort.gif deleted file mode 100644 index aa65db1185..0000000000 Binary files a/wp-admin/images/sort.gif and /dev/null differ diff --git a/wp-admin/images/spinner-2x.gif b/wp-admin/images/spinner-2x.gif deleted file mode 100644 index a4e161e1fe..0000000000 Binary files a/wp-admin/images/spinner-2x.gif and /dev/null differ diff --git a/wp-admin/images/spinner.gif b/wp-admin/images/spinner.gif deleted file mode 100644 index 209d10b6bb..0000000000 Binary files a/wp-admin/images/spinner.gif and /dev/null differ diff --git a/wp-admin/images/stars-2x.png b/wp-admin/images/stars-2x.png deleted file mode 100644 index 15aa9debfd..0000000000 Binary files a/wp-admin/images/stars-2x.png and /dev/null differ diff --git a/wp-admin/images/stars.png b/wp-admin/images/stars.png deleted file mode 100644 index c01ada13ee..0000000000 Binary files a/wp-admin/images/stars.png and /dev/null differ diff --git a/wp-admin/images/w-logo-blue.png b/wp-admin/images/w-logo-blue.png deleted file mode 100644 index 11e550c74e..0000000000 Binary files a/wp-admin/images/w-logo-blue.png and /dev/null differ diff --git a/wp-admin/images/w-logo-white.png b/wp-admin/images/w-logo-white.png deleted file mode 100644 index bb70f57852..0000000000 Binary files a/wp-admin/images/w-logo-white.png and /dev/null differ diff --git a/wp-admin/images/wheel.png b/wp-admin/images/wheel.png deleted file mode 100644 index 9b9fdf4a37..0000000000 Binary files a/wp-admin/images/wheel.png and /dev/null differ diff --git a/wp-admin/images/wordpress-logo-white.svg b/wp-admin/images/wordpress-logo-white.svg deleted file mode 100644 index c0d0ba950e..0000000000 --- a/wp-admin/images/wordpress-logo-white.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/wp-admin/images/wordpress-logo.png b/wp-admin/images/wordpress-logo.png deleted file mode 100644 index 63b0379613..0000000000 Binary files a/wp-admin/images/wordpress-logo.png and /dev/null differ diff --git a/wp-admin/images/wordpress-logo.svg b/wp-admin/images/wordpress-logo.svg deleted file mode 100644 index ba26fef0d8..0000000000 --- a/wp-admin/images/wordpress-logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/wp-admin/images/wpspin_light-2x.gif b/wp-admin/images/wpspin_light-2x.gif deleted file mode 100644 index 392e82ff71..0000000000 Binary files a/wp-admin/images/wpspin_light-2x.gif and /dev/null differ diff --git a/wp-admin/images/wpspin_light.gif b/wp-admin/images/wpspin_light.gif deleted file mode 100644 index 4c42dcb2f5..0000000000 Binary files a/wp-admin/images/wpspin_light.gif and /dev/null differ diff --git a/wp-admin/images/xit-2x.gif b/wp-admin/images/xit-2x.gif deleted file mode 100644 index 3a72ee1a23..0000000000 Binary files a/wp-admin/images/xit-2x.gif and /dev/null differ diff --git a/wp-admin/images/xit.gif b/wp-admin/images/xit.gif deleted file mode 100644 index d288954d9f..0000000000 Binary files a/wp-admin/images/xit.gif and /dev/null differ diff --git a/wp-admin/images/yes.png b/wp-admin/images/yes.png deleted file mode 100644 index fbb39836bb..0000000000 Binary files a/wp-admin/images/yes.png and /dev/null differ diff --git a/wp-admin/import.php b/wp-admin/import.php deleted file mode 100644 index e7dce2df13..0000000000 --- a/wp-admin/import.php +++ /dev/null @@ -1,130 +0,0 @@ -add_help_tab( array( - 'id' => 'overview', - 'title' => __('Overview'), - 'content' => '

' . __('This screen lists links to plugins to import data from blogging/content management platforms. Choose the platform you want to import from, and click Install Now when you are prompted in the popup window. If your platform is not listed, click the link to search the plugin directory for other importer plugins to see if there is one for your platform.') . '

' . - '

' . __('In previous versions of WordPress, all importers were built-in. They have been turned into plugins since most people only use them once or infrequently.') . '

', -) ); - -get_current_screen()->set_help_sidebar( - '

' . __('For more information:') . '

' . - '

' . __('Documentation on Import') . '

' . - '

' . __('Support Forums') . '

' -); - -if ( current_user_can( 'install_plugins' ) ) - $popular_importers = wp_get_popular_importers(); -else - $popular_importers = array(); - -// Detect and redirect invalid importers like 'movabletype', which is registered as 'mt' -if ( ! empty( $_GET['invalid'] ) && isset( $popular_importers[ $_GET['invalid'] ] ) ) { - $importer_id = $popular_importers[ $_GET['invalid'] ]['importer-id']; - if ( $importer_id != $_GET['invalid'] ) { // Prevent redirect loops. - wp_redirect( admin_url( 'admin.php?import=' . $importer_id ) ); - exit; - } - unset( $importer_id ); -} - -add_thickbox(); -wp_enqueue_script( 'plugin-install' ); - -require_once( ABSPATH . 'wp-admin/admin-header.php' ); -$parent_file = 'tools.php'; -?> - -
-

- -

%s importer is invalid or is not installed.'), esc_html( $_GET['invalid'] ) ); ?>

- -

- - $pop_data ) { - if ( isset( $importers[ $pop_importer ] ) ) - continue; - if ( isset( $importers[ $pop_data['importer-id'] ] ) ) - continue; - $importers[ $pop_data['importer-id'] ] = array( $pop_data['name'], $pop_data['description'], 'install' => $pop_data['plugin-slug'] ); -} - -if ( empty( $importers ) ) { - echo '

' . __('No importers are available.') . '

'; // TODO: make more helpful -} else { - uasort( $importers, '_usort_by_first_member' ); -?> - - - $data) { - $action = ''; - if ( isset( $data['install'] ) ) { - $plugin_slug = $data['install']; - if ( file_exists( WP_PLUGIN_DIR . '/' . $plugin_slug ) ) { - // Looks like Importer is installed, But not active - $plugins = get_plugins( '/' . $plugin_slug ); - if ( !empty($plugins) ) { - $keys = array_keys($plugins); - $plugin_file = $plugin_slug . '/' . $keys[0]; - $action = '' . $data[0] . ''; - } - } - if ( empty($action) ) { - if ( is_main_site() ) { - $action = '' . $data[0] . ''; - } else { - $action = $data[0]; - $data[1] = sprintf( __( 'This importer is not installed. Please install importers from the main site.' ), get_admin_url( $current_site->blog_id, 'import.php' ) ); - } - } - } else { - $action = "{$data[0]}"; - } - - echo " - - - - "; - } -?> - -
$action{$data[1]}
-' . sprintf( __('If the importer you need is not listed, search the plugin directory to see if an importer is available.'), esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) ) ) . '

'; -?> - -
- -id and the JS global 'pagenow'. - if ( ! empty($_POST['screen_id']) ) - $screen_id = sanitize_key($_POST['screen_id']); - else - $screen_id = 'front'; - - if ( ! empty($_POST['data']) ) { - $data = wp_unslash( (array) $_POST['data'] ); - - /** - * Filter Heartbeat AJAX response in no-privilege environments. - * - * @since 3.6.0 - * - * @param array|object $response The no-priv Heartbeat response object or array. - * @param array $data An array of data passed via $_POST. - * @param string $screen_id The screen id. - */ - $response = apply_filters( 'heartbeat_nopriv_received', $response, $data, $screen_id ); - } - - /** - * Filter Heartbeat AJAX response when no data is passed. - * - * @since 3.6.0 - * - * @param array|object $response The Heartbeat response object or array. - * @param string $screen_id The screen id. - */ - $response = apply_filters( 'heartbeat_nopriv_send', $response, $screen_id ); - - /** - * Fires when Heartbeat ticks in no-privilege environments. - * - * Allows the transport to be easily replaced with long-polling. - * - * @since 3.6.0 - * - * @param array|object $response The no-priv Heartbeat response. - * @param string $screen_id The screen id. - */ - do_action( 'heartbeat_nopriv_tick', $response, $screen_id ); - - // Send the current time according to the server. - $response['server_time'] = time(); - - wp_send_json($response); -} - -// -// GET-based Ajax handlers. -// - -/** - * Ajax handler for fetching a list table. - * - * @since 3.1.0 - * - * @global WP_List_Table $wp_list_table - */ -function wp_ajax_fetch_list() { - global $wp_list_table; - - $list_class = $_GET['list_args']['class']; - check_ajax_referer( "fetch-list-$list_class", '_ajax_fetch_list_nonce' ); - - $wp_list_table = _get_list_table( $list_class, array( 'screen' => $_GET['list_args']['screen']['id'] ) ); - if ( ! $wp_list_table ) - wp_die( 0 ); - - if ( ! $wp_list_table->ajax_user_can() ) - wp_die( -1 ); - - $wp_list_table->ajax_response(); - - wp_die( 0 ); -} - -/** - * Ajax handler for tag search. - * - * @since 3.1.0 - */ -function wp_ajax_ajax_tag_search() { - if ( ! isset( $_GET['tax'] ) ) { - wp_die( 0 ); - } - - $taxonomy = sanitize_key( $_GET['tax'] ); - $tax = get_taxonomy( $taxonomy ); - if ( ! $tax ) { - wp_die( 0 ); - } - - if ( ! current_user_can( $tax->cap->assign_terms ) ) { - wp_die( -1 ); - } - - $s = wp_unslash( $_GET['q'] ); - - $comma = _x( ',', 'tag delimiter' ); - if ( ',' !== $comma ) - $s = str_replace( $comma, ',', $s ); - if ( false !== strpos( $s, ',' ) ) { - $s = explode( ',', $s ); - $s = $s[count( $s ) - 1]; - } - $s = trim( $s ); - - /** - * Filter the minimum number of characters required to fire a tag search via AJAX. - * - * @since 4.0.0 - * - * @param int $characters The minimum number of characters required. Default 2. - * @param object $tax The taxonomy object. - * @param string $s The search term. - */ - $term_search_min_chars = (int) apply_filters( 'term_search_min_chars', 2, $tax, $s ); - - /* - * Require $term_search_min_chars chars for matching (default: 2) - * ensure it's a non-negative, non-zero integer. - */ - if ( ( $term_search_min_chars == 0 ) || ( strlen( $s ) < $term_search_min_chars ) ){ - wp_die(); - } - - $results = get_terms( $taxonomy, array( 'name__like' => $s, 'fields' => 'names', 'hide_empty' => false ) ); - - echo join( $results, "\n" ); - wp_die(); -} - -/** - * Ajax handler for compression testing. - * - * @since 3.1.0 - */ -function wp_ajax_wp_compression_test() { - if ( !current_user_can( 'manage_options' ) ) - wp_die( -1 ); - - if ( ini_get('zlib.output_compression') || 'ob_gzhandler' == ini_get('output_handler') ) { - update_site_option('can_compress_scripts', 0); - wp_die( 0 ); - } - - if ( isset($_GET['test']) ) { - header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); - header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); - header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); - header( 'Pragma: no-cache' ); - header('Content-Type: application/javascript; charset=UTF-8'); - $force_gzip = ( defined('ENFORCE_GZIP') && ENFORCE_GZIP ); - $test_str = '"wpCompressionTest Lorem ipsum dolor sit amet consectetuer mollis sapien urna ut a. Eu nonummy condimentum fringilla tempor pretium platea vel nibh netus Maecenas. Hac molestie amet justo quis pellentesque est ultrices interdum nibh Morbi. Cras mattis pretium Phasellus ante ipsum ipsum ut sociis Suspendisse Lorem. Ante et non molestie. Porta urna Vestibulum egestas id congue nibh eu risus gravida sit. Ac augue auctor Ut et non a elit massa id sodales. Elit eu Nulla at nibh adipiscing mattis lacus mauris at tempus. Netus nibh quis suscipit nec feugiat eget sed lorem et urna. Pellentesque lacus at ut massa consectetuer ligula ut auctor semper Pellentesque. Ut metus massa nibh quam Curabitur molestie nec mauris congue. Volutpat molestie elit justo facilisis neque ac risus Ut nascetur tristique. Vitae sit lorem tellus et quis Phasellus lacus tincidunt nunc Fusce. Pharetra wisi Suspendisse mus sagittis libero lacinia Integer consequat ac Phasellus. Et urna ac cursus tortor aliquam Aliquam amet tellus volutpat Vestibulum. Justo interdum condimentum In augue congue tellus sollicitudin Quisque quis nibh."'; - - if ( 1 == $_GET['test'] ) { - echo $test_str; - wp_die(); - } elseif ( 2 == $_GET['test'] ) { - if ( !isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) - wp_die( -1 ); - if ( false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) { - header('Content-Encoding: deflate'); - $out = gzdeflate( $test_str, 1 ); - } elseif ( false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') ) { - header('Content-Encoding: gzip'); - $out = gzencode( $test_str, 1 ); - } else { - wp_die( -1 ); - } - echo $out; - wp_die(); - } elseif ( 'no' == $_GET['test'] ) { - update_site_option('can_compress_scripts', 0); - } elseif ( 'yes' == $_GET['test'] ) { - update_site_option('can_compress_scripts', 1); - } - } - - wp_die( 0 ); -} - -/** - * Ajax handler for image editor previews. - * - * @since 3.1.0 - */ -function wp_ajax_imgedit_preview() { - $post_id = intval($_GET['postid']); - if ( empty($post_id) || !current_user_can('edit_post', $post_id) ) - wp_die( -1 ); - - check_ajax_referer( "image_editor-$post_id" ); - - include_once( ABSPATH . 'wp-admin/includes/image-edit.php' ); - if ( ! stream_preview_image($post_id) ) - wp_die( -1 ); - - wp_die(); -} - -/** - * Ajax handler for oEmbed caching. - * - * @since 3.1.0 - * - * @global WP_Embed $wp_embed - */ -function wp_ajax_oembed_cache() { - $GLOBALS['wp_embed']->cache_oembed( $_GET['post'] ); - wp_die( 0 ); -} - -/** - * Ajax handler for user autocomplete. - * - * @since 3.4.0 - */ -function wp_ajax_autocomplete_user() { - if ( ! is_multisite() || ! current_user_can( 'promote_users' ) || wp_is_large_network( 'users' ) ) - wp_die( -1 ); - - /** This filter is documented in wp-admin/user-new.php */ - if ( ! is_super_admin() && ! apply_filters( 'autocomplete_users_for_site_admins', false ) ) - wp_die( -1 ); - - $return = array(); - - // Check the type of request - // Current allowed values are `add` and `search` - if ( isset( $_REQUEST['autocomplete_type'] ) && 'search' === $_REQUEST['autocomplete_type'] ) { - $type = $_REQUEST['autocomplete_type']; - } else { - $type = 'add'; - } - - // Check the desired field for value - // Current allowed values are `user_email` and `user_login` - if ( isset( $_REQUEST['autocomplete_field'] ) && 'user_email' === $_REQUEST['autocomplete_field'] ) { - $field = $_REQUEST['autocomplete_field']; - } else { - $field = 'user_login'; - } - - // Exclude current users of this blog - if ( isset( $_REQUEST['site_id'] ) ) { - $id = absint( $_REQUEST['site_id'] ); - } else { - $id = get_current_blog_id(); - } - - $include_blog_users = ( $type == 'search' ? get_users( array( 'blog_id' => $id, 'fields' => 'ID' ) ) : array() ); - $exclude_blog_users = ( $type == 'add' ? get_users( array( 'blog_id' => $id, 'fields' => 'ID' ) ) : array() ); - - $users = get_users( array( - 'blog_id' => false, - 'search' => '*' . $_REQUEST['term'] . '*', - 'include' => $include_blog_users, - 'exclude' => $exclude_blog_users, - 'search_columns' => array( 'user_login', 'user_nicename', 'user_email' ), - ) ); - - foreach ( $users as $user ) { - $return[] = array( - /* translators: 1: user_login, 2: user_email */ - 'label' => sprintf( __( '%1$s (%2$s)' ), $user->user_login, $user->user_email ), - 'value' => $user->$field, - ); - } - - wp_die( wp_json_encode( $return ) ); -} - -/** - * Ajax handler for dashboard widgets. - * - * @since 3.4.0 - */ -function wp_ajax_dashboard_widgets() { - require_once ABSPATH . 'wp-admin/includes/dashboard.php'; - - $pagenow = $_GET['pagenow']; - if ( $pagenow === 'dashboard-user' || $pagenow === 'dashboard-network' || $pagenow === 'dashboard' ) { - set_current_screen( $pagenow ); - } - - switch ( $_GET['widget'] ) { - case 'dashboard_primary' : - wp_dashboard_primary(); - break; - } - wp_die(); -} - -/** - * Ajax handler for Customizer preview logged-in status. - * - * @since 3.4.0 - */ -function wp_ajax_logged_in() { - wp_die( 1 ); -} - -// -// Ajax helpers. -// - -/** - * Sends back current comment total and new page links if they need to be updated. - * - * Contrary to normal success AJAX response ("1"), die with time() on success. - * - * @since 2.7.0 - * - * @param int $comment_id - * @param int $delta - */ -function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { - $total = isset( $_POST['_total'] ) ? (int) $_POST['_total'] : 0; - $per_page = isset( $_POST['_per_page'] ) ? (int) $_POST['_per_page'] : 0; - $page = isset( $_POST['_page'] ) ? (int) $_POST['_page'] : 0; - $url = isset( $_POST['_url'] ) ? esc_url_raw( $_POST['_url'] ) : ''; - - // JS didn't send us everything we need to know. Just die with success message - if ( !$total || !$per_page || !$page || !$url ) - wp_die( time() ); - - $total += $delta; - if ( $total < 0 ) - $total = 0; - - // Only do the expensive stuff on a page-break, and about 1 other time per page - if ( 0 == $total % $per_page || 1 == mt_rand( 1, $per_page ) ) { - $post_id = 0; - $status = 'total_comments'; // What type of comment count are we looking for? - $parsed = parse_url( $url ); - if ( isset( $parsed['query'] ) ) { - parse_str( $parsed['query'], $query_vars ); - if ( !empty( $query_vars['comment_status'] ) ) - $status = $query_vars['comment_status']; - if ( !empty( $query_vars['p'] ) ) - $post_id = (int) $query_vars['p']; - } - - $comment_count = wp_count_comments($post_id); - - // We're looking for a known type of comment count. - if ( isset( $comment_count->$status ) ) - $total = $comment_count->$status; - // Else use the decremented value from above. - } - - // The time since the last comment count. - $time = time(); - - $x = new WP_Ajax_Response( array( - 'what' => 'comment', - // Here for completeness - not used. - 'id' => $comment_id, - 'supplemental' => array( - 'total_items_i18n' => sprintf( _n( '%s item', '%s items', $total ), number_format_i18n( $total ) ), - 'total_pages' => ceil( $total / $per_page ), - 'total_pages_i18n' => number_format_i18n( ceil( $total / $per_page ) ), - 'total' => $total, - 'time' => $time - ) - ) ); - $x->send(); -} - -// -// POST-based Ajax handlers. -// - -/** - * Ajax handler for adding a hierarchical term. - * - * @since 3.1.0 - */ -function _wp_ajax_add_hierarchical_term() { - $action = $_POST['action']; - $taxonomy = get_taxonomy(substr($action, 4)); - check_ajax_referer( $action, '_ajax_nonce-add-' . $taxonomy->name ); - if ( !current_user_can( $taxonomy->cap->edit_terms ) ) - wp_die( -1 ); - $names = explode(',', $_POST['new'.$taxonomy->name]); - $parent = isset($_POST['new'.$taxonomy->name.'_parent']) ? (int) $_POST['new'.$taxonomy->name.'_parent'] : 0; - if ( 0 > $parent ) - $parent = 0; - if ( $taxonomy->name == 'category' ) - $post_category = isset($_POST['post_category']) ? (array) $_POST['post_category'] : array(); - else - $post_category = ( isset($_POST['tax_input']) && isset($_POST['tax_input'][$taxonomy->name]) ) ? (array) $_POST['tax_input'][$taxonomy->name] : array(); - $checked_categories = array_map( 'absint', (array) $post_category ); - $popular_ids = wp_popular_terms_checklist($taxonomy->name, 0, 10, false); - - foreach ( $names as $cat_name ) { - $cat_name = trim($cat_name); - $category_nicename = sanitize_title($cat_name); - if ( '' === $category_nicename ) - continue; - if ( !$cat_id = term_exists( $cat_name, $taxonomy->name, $parent ) ) - $cat_id = wp_insert_term( $cat_name, $taxonomy->name, array( 'parent' => $parent ) ); - if ( is_wp_error( $cat_id ) ) { - continue; - } elseif ( is_array( $cat_id ) ) { - $cat_id = $cat_id['term_id']; - } - $checked_categories[] = $cat_id; - if ( $parent ) // Do these all at once in a second - continue; - - ob_start(); - - wp_terms_checklist( 0, array( 'taxonomy' => $taxonomy->name, 'descendants_and_self' => $cat_id, 'selected_cats' => $checked_categories, 'popular_cats' => $popular_ids )); - - $data = ob_get_clean(); - - $add = array( - 'what' => $taxonomy->name, - 'id' => $cat_id, - 'data' => str_replace( array("\n", "\t"), '', $data), - 'position' => -1 - ); - } - - if ( $parent ) { // Foncy - replace the parent and all its children - $parent = get_term( $parent, $taxonomy->name ); - $term_id = $parent->term_id; - - while ( $parent->parent ) { // get the top parent - $parent = get_term( $parent->parent, $taxonomy->name ); - if ( is_wp_error( $parent ) ) - break; - $term_id = $parent->term_id; - } - - ob_start(); - - wp_terms_checklist( 0, array('taxonomy' => $taxonomy->name, 'descendants_and_self' => $term_id, 'selected_cats' => $checked_categories, 'popular_cats' => $popular_ids)); - - $data = ob_get_clean(); - - $add = array( - 'what' => $taxonomy->name, - 'id' => $term_id, - 'data' => str_replace( array("\n", "\t"), '', $data), - 'position' => -1 - ); - } - - ob_start(); - - wp_dropdown_categories( array( - 'taxonomy' => $taxonomy->name, 'hide_empty' => 0, 'name' => 'new'.$taxonomy->name.'_parent', 'orderby' => 'name', - 'hierarchical' => 1, 'show_option_none' => '— '.$taxonomy->labels->parent_item.' —' - ) ); - - $sup = ob_get_clean(); - - $add['supplemental'] = array( 'newcat_parent' => $sup ); - - $x = new WP_Ajax_Response( $add ); - $x->send(); -} - -/** - * Ajax handler for deleting a comment. - * - * @since 3.1.0 - */ -function wp_ajax_delete_comment() { - $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; - - if ( !$comment = get_comment( $id ) ) - wp_die( time() ); - if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) ) - wp_die( -1 ); - - check_ajax_referer( "delete-comment_$id" ); - $status = wp_get_comment_status( $comment->comment_ID ); - - $delta = -1; - if ( isset($_POST['trash']) && 1 == $_POST['trash'] ) { - if ( 'trash' == $status ) - wp_die( time() ); - $r = wp_trash_comment( $comment->comment_ID ); - } elseif ( isset($_POST['untrash']) && 1 == $_POST['untrash'] ) { - if ( 'trash' != $status ) - wp_die( time() ); - $r = wp_untrash_comment( $comment->comment_ID ); - if ( ! isset( $_POST['comment_status'] ) || $_POST['comment_status'] != 'trash' ) // undo trash, not in trash - $delta = 1; - } elseif ( isset($_POST['spam']) && 1 == $_POST['spam'] ) { - if ( 'spam' == $status ) - wp_die( time() ); - $r = wp_spam_comment( $comment->comment_ID ); - } elseif ( isset($_POST['unspam']) && 1 == $_POST['unspam'] ) { - if ( 'spam' != $status ) - wp_die( time() ); - $r = wp_unspam_comment( $comment->comment_ID ); - if ( ! isset( $_POST['comment_status'] ) || $_POST['comment_status'] != 'spam' ) // undo spam, not in spam - $delta = 1; - } elseif ( isset($_POST['delete']) && 1 == $_POST['delete'] ) { - $r = wp_delete_comment( $comment->comment_ID ); - } else { - wp_die( -1 ); - } - - if ( $r ) // Decide if we need to send back '1' or a more complicated response including page links and comment counts - _wp_ajax_delete_comment_response( $comment->comment_ID, $delta ); - wp_die( 0 ); -} - -/** - * Ajax handler for deleting a tag. - * - * @since 3.1.0 - */ -function wp_ajax_delete_tag() { - $tag_id = (int) $_POST['tag_ID']; - check_ajax_referer( "delete-tag_$tag_id" ); - - $taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : 'post_tag'; - $tax = get_taxonomy($taxonomy); - - if ( !current_user_can( $tax->cap->delete_terms ) ) - wp_die( -1 ); - - $tag = get_term( $tag_id, $taxonomy ); - if ( !$tag || is_wp_error( $tag ) ) - wp_die( 1 ); - - if ( wp_delete_term($tag_id, $taxonomy)) - wp_die( 1 ); - else - wp_die( 0 ); -} - -/** - * Ajax handler for deleting a link. - * - * @since 3.1.0 - */ -function wp_ajax_delete_link() { - $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; - - check_ajax_referer( "delete-bookmark_$id" ); - if ( !current_user_can( 'manage_links' ) ) - wp_die( -1 ); - - $link = get_bookmark( $id ); - if ( !$link || is_wp_error( $link ) ) - wp_die( 1 ); - - if ( wp_delete_link( $id ) ) - wp_die( 1 ); - else - wp_die( 0 ); -} - -/** - * Ajax handler for deleting meta. - * - * @since 3.1.0 - */ -function wp_ajax_delete_meta() { - $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; - - check_ajax_referer( "delete-meta_$id" ); - if ( !$meta = get_metadata_by_mid( 'post', $id ) ) - wp_die( 1 ); - - if ( is_protected_meta( $meta->meta_key, 'post' ) || ! current_user_can( 'delete_post_meta', $meta->post_id, $meta->meta_key ) ) - wp_die( -1 ); - if ( delete_meta( $meta->meta_id ) ) - wp_die( 1 ); - wp_die( 0 ); -} - -/** - * Ajax handler for deleting a post. - * - * @since 3.1.0 - * - * @param string $action Action to perform. - */ -function wp_ajax_delete_post( $action ) { - if ( empty( $action ) ) - $action = 'delete-post'; - $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; - - check_ajax_referer( "{$action}_$id" ); - if ( !current_user_can( 'delete_post', $id ) ) - wp_die( -1 ); - - if ( !get_post( $id ) ) - wp_die( 1 ); - - if ( wp_delete_post( $id ) ) - wp_die( 1 ); - else - wp_die( 0 ); -} - -/** - * Ajax handler for sending a post to the trash. - * - * @since 3.1.0 - * - * @param string $action Action to perform. - */ -function wp_ajax_trash_post( $action ) { - if ( empty( $action ) ) - $action = 'trash-post'; - $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; - - check_ajax_referer( "{$action}_$id" ); - if ( !current_user_can( 'delete_post', $id ) ) - wp_die( -1 ); - - if ( !get_post( $id ) ) - wp_die( 1 ); - - if ( 'trash-post' == $action ) - $done = wp_trash_post( $id ); - else - $done = wp_untrash_post( $id ); - - if ( $done ) - wp_die( 1 ); - - wp_die( 0 ); -} - -/** - * Ajax handler to restore a post from the trash. - * - * @since 3.1.0 - * - * @param string $action Action to perform. - */ -function wp_ajax_untrash_post( $action ) { - if ( empty( $action ) ) - $action = 'untrash-post'; - wp_ajax_trash_post( $action ); -} - -/** - * @since 3.1.0 - * - * @param string $action - */ -function wp_ajax_delete_page( $action ) { - if ( empty( $action ) ) - $action = 'delete-page'; - $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; - - check_ajax_referer( "{$action}_$id" ); - if ( !current_user_can( 'delete_page', $id ) ) - wp_die( -1 ); - - if ( ! get_post( $id ) ) - wp_die( 1 ); - - if ( wp_delete_post( $id ) ) - wp_die( 1 ); - else - wp_die( 0 ); -} - -/** - * Ajax handler to dim a comment. - * - * @since 3.1.0 - */ -function wp_ajax_dim_comment() { - $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; - - if ( !$comment = get_comment( $id ) ) { - $x = new WP_Ajax_Response( array( - 'what' => 'comment', - 'id' => new WP_Error('invalid_comment', sprintf(__('Comment %d does not exist'), $id)) - ) ); - $x->send(); - } - - if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) && ! current_user_can( 'moderate_comments' ) ) - wp_die( -1 ); - - $current = wp_get_comment_status( $comment->comment_ID ); - if ( isset( $_POST['new'] ) && $_POST['new'] == $current ) - wp_die( time() ); - - check_ajax_referer( "approve-comment_$id" ); - if ( in_array( $current, array( 'unapproved', 'spam' ) ) ) - $result = wp_set_comment_status( $comment->comment_ID, 'approve', true ); - else - $result = wp_set_comment_status( $comment->comment_ID, 'hold', true ); - - if ( is_wp_error($result) ) { - $x = new WP_Ajax_Response( array( - 'what' => 'comment', - 'id' => $result - ) ); - $x->send(); - } - - // Decide if we need to send back '1' or a more complicated response including page links and comment counts - _wp_ajax_delete_comment_response( $comment->comment_ID ); - wp_die( 0 ); -} - -/** - * Ajax handler for deleting a link category. - * - * @since 3.1.0 - * - * @param string $action Action to perform. - */ -function wp_ajax_add_link_category( $action ) { - if ( empty( $action ) ) - $action = 'add-link-category'; - check_ajax_referer( $action ); - if ( !current_user_can( 'manage_categories' ) ) - wp_die( -1 ); - $names = explode(',', wp_unslash( $_POST['newcat'] ) ); - $x = new WP_Ajax_Response(); - foreach ( $names as $cat_name ) { - $cat_name = trim($cat_name); - $slug = sanitize_title($cat_name); - if ( '' === $slug ) - continue; - if ( !$cat_id = term_exists( $cat_name, 'link_category' ) ) - $cat_id = wp_insert_term( $cat_name, 'link_category' ); - if ( is_wp_error( $cat_id ) ) { - continue; - } elseif ( is_array( $cat_id ) ) { - $cat_id = $cat_id['term_id']; - } - $cat_name = esc_html( $cat_name ); - $x->add( array( - 'what' => 'link-category', - 'id' => $cat_id, - 'data' => "", - 'position' => -1 - ) ); - } - $x->send(); -} - -/** - * Ajax handler to add a tag. - * - * @since 3.1.0 - * - * @global WP_List_Table $wp_list_table - */ -function wp_ajax_add_tag() { - global $wp_list_table; - - check_ajax_referer( 'add-tag', '_wpnonce_add-tag' ); - $taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : 'post_tag'; - $tax = get_taxonomy($taxonomy); - - if ( !current_user_can( $tax->cap->edit_terms ) ) - wp_die( -1 ); - - $x = new WP_Ajax_Response(); - - $tag = wp_insert_term($_POST['tag-name'], $taxonomy, $_POST ); - - if ( !$tag || is_wp_error($tag) || (!$tag = get_term( $tag['term_id'], $taxonomy )) ) { - $message = __('An error has occurred. Please reload the page and try again.'); - if ( is_wp_error($tag) && $tag->get_error_message() ) - $message = $tag->get_error_message(); - - $x->add( array( - 'what' => 'taxonomy', - 'data' => new WP_Error('error', $message ) - ) ); - $x->send(); - } - - $wp_list_table = _get_list_table( 'WP_Terms_List_Table', array( 'screen' => $_POST['screen'] ) ); - - $level = 0; - if ( is_taxonomy_hierarchical($taxonomy) ) { - $level = count( get_ancestors( $tag->term_id, $taxonomy, 'taxonomy' ) ); - ob_start(); - $wp_list_table->single_row( $tag, $level ); - $noparents = ob_get_clean(); - } - - ob_start(); - $wp_list_table->single_row( $tag ); - $parents = ob_get_clean(); - - $x->add( array( - 'what' => 'taxonomy', - 'supplemental' => compact('parents', 'noparents') - ) ); - $x->add( array( - 'what' => 'term', - 'position' => $level, - 'supplemental' => (array) $tag - ) ); - $x->send(); -} - -/** - * Ajax handler for getting a tagcloud. - * - * @since 3.1.0 - */ -function wp_ajax_get_tagcloud() { - if ( ! isset( $_POST['tax'] ) ) { - wp_die( 0 ); - } - - $taxonomy = sanitize_key( $_POST['tax'] ); - $tax = get_taxonomy( $taxonomy ); - if ( ! $tax ) { - wp_die( 0 ); - } - - if ( ! current_user_can( $tax->cap->assign_terms ) ) { - wp_die( -1 ); - } - - $tags = get_terms( $taxonomy, array( 'number' => 45, 'orderby' => 'count', 'order' => 'DESC' ) ); - - if ( empty( $tags ) ) - wp_die( $tax->labels->not_found ); - - if ( is_wp_error( $tags ) ) - wp_die( $tags->get_error_message() ); - - foreach ( $tags as $key => $tag ) { - $tags[ $key ]->link = '#'; - $tags[ $key ]->id = $tag->term_id; - } - - // We need raw tag names here, so don't filter the output - $return = wp_generate_tag_cloud( $tags, array('filter' => 0) ); - - if ( empty($return) ) - wp_die( 0 ); - - echo $return; - - wp_die(); -} - -/** - * Ajax handler for getting comments. - * - * @since 3.1.0 - * - * @global WP_List_Table $wp_list_table - * @global int $post_id - * - * @param string $action Action to perform. - */ -function wp_ajax_get_comments( $action ) { - global $wp_list_table, $post_id; - if ( empty( $action ) ) - $action = 'get-comments'; - - check_ajax_referer( $action ); - - if ( empty( $post_id ) && ! empty( $_REQUEST['p'] ) ) { - $id = absint( $_REQUEST['p'] ); - if ( ! empty( $id ) ) - $post_id = $id; - } - - if ( empty( $post_id ) ) - wp_die( -1 ); - - $wp_list_table = _get_list_table( 'WP_Post_Comments_List_Table', array( 'screen' => 'edit-comments' ) ); - - if ( ! current_user_can( 'edit_post', $post_id ) ) - wp_die( -1 ); - - $wp_list_table->prepare_items(); - - if ( !$wp_list_table->has_items() ) - wp_die( 1 ); - - $x = new WP_Ajax_Response(); - ob_start(); - foreach ( $wp_list_table->items as $comment ) { - if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) ) - continue; - get_comment( $comment ); - $wp_list_table->single_row( $comment ); - } - $comment_list_item = ob_get_clean(); - - $x->add( array( - 'what' => 'comments', - 'data' => $comment_list_item - ) ); - $x->send(); -} - -/** - * Ajax handler for replying to a comment. - * - * @since 3.1.0 - * - * @global WP_List_Table $wp_list_table - * - * @param string $action Action to perform. - */ -function wp_ajax_replyto_comment( $action ) { - global $wp_list_table; - if ( empty( $action ) ) - $action = 'replyto-comment'; - - check_ajax_referer( $action, '_ajax_nonce-replyto-comment' ); - - $comment_post_ID = (int) $_POST['comment_post_ID']; - $post = get_post( $comment_post_ID ); - if ( ! $post ) - wp_die( -1 ); - - if ( !current_user_can( 'edit_post', $comment_post_ID ) ) - wp_die( -1 ); - - if ( empty( $post->post_status ) ) - wp_die( 1 ); - elseif ( in_array($post->post_status, array('draft', 'pending', 'trash') ) ) - wp_die( __('ERROR: you are replying to a comment on a draft post.') ); - - $user = wp_get_current_user(); - if ( $user->exists() ) { - $user_ID = $user->ID; - $comment_author = wp_slash( $user->display_name ); - $comment_author_email = wp_slash( $user->user_email ); - $comment_author_url = wp_slash( $user->user_url ); - $comment_content = trim( $_POST['content'] ); - $comment_type = isset( $_POST['comment_type'] ) ? trim( $_POST['comment_type'] ) : ''; - if ( current_user_can( 'unfiltered_html' ) ) { - if ( ! isset( $_POST['_wp_unfiltered_html_comment'] ) ) - $_POST['_wp_unfiltered_html_comment'] = ''; - - if ( wp_create_nonce( 'unfiltered-html-comment' ) != $_POST['_wp_unfiltered_html_comment'] ) { - kses_remove_filters(); // start with a clean slate - kses_init_filters(); // set up the filters - } - } - } else { - wp_die( __( 'Sorry, you must be logged in to reply to a comment.' ) ); - } - - if ( '' == $comment_content ) - wp_die( __( 'ERROR: please type a comment.' ) ); - - $comment_parent = 0; - if ( isset( $_POST['comment_ID'] ) ) - $comment_parent = absint( $_POST['comment_ID'] ); - $comment_auto_approved = false; - $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_ID'); - - // Automatically approve parent comment. - if ( !empty($_POST['approve_parent']) ) { - $parent = get_comment( $comment_parent ); - - if ( $parent && $parent->comment_approved === '0' && $parent->comment_post_ID == $comment_post_ID ) { - if ( wp_set_comment_status( $parent->comment_ID, 'approve' ) ) - $comment_auto_approved = true; - } - } - - $comment_id = wp_new_comment( $commentdata ); - $comment = get_comment($comment_id); - if ( ! $comment ) wp_die( 1 ); - - $position = ( isset($_POST['position']) && (int) $_POST['position'] ) ? (int) $_POST['position'] : '-1'; - - ob_start(); - if ( isset( $_REQUEST['mode'] ) && 'dashboard' == $_REQUEST['mode'] ) { - require_once( ABSPATH . 'wp-admin/includes/dashboard.php' ); - _wp_dashboard_recent_comments_row( $comment ); - } else { - if ( isset( $_REQUEST['mode'] ) && 'single' == $_REQUEST['mode'] ) { - $wp_list_table = _get_list_table('WP_Post_Comments_List_Table', array( 'screen' => 'edit-comments' ) ); - } else { - $wp_list_table = _get_list_table('WP_Comments_List_Table', array( 'screen' => 'edit-comments' ) ); - } - $wp_list_table->single_row( $comment ); - } - $comment_list_item = ob_get_clean(); - - $response = array( - 'what' => 'comment', - 'id' => $comment->comment_ID, - 'data' => $comment_list_item, - 'position' => $position - ); - - if ( $comment_auto_approved ) - $response['supplemental'] = array( 'parent_approved' => $parent->comment_ID ); - - $x = new WP_Ajax_Response(); - $x->add( $response ); - $x->send(); -} - -/** - * Ajax handler for editing a comment. - * - * @since 3.1.0 - * - * @global WP_List_Table $wp_list_table - */ -function wp_ajax_edit_comment() { - global $wp_list_table; - - check_ajax_referer( 'replyto-comment', '_ajax_nonce-replyto-comment' ); - - $comment_id = (int) $_POST['comment_ID']; - if ( ! current_user_can( 'edit_comment', $comment_id ) ) - wp_die( -1 ); - - if ( '' == $_POST['content'] ) - wp_die( __( 'ERROR: please type a comment.' ) ); - - if ( isset( $_POST['status'] ) ) - $_POST['comment_status'] = $_POST['status']; - edit_comment(); - - $position = ( isset($_POST['position']) && (int) $_POST['position']) ? (int) $_POST['position'] : '-1'; - $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0; - $wp_list_table = _get_list_table( $checkbox ? 'WP_Comments_List_Table' : 'WP_Post_Comments_List_Table', array( 'screen' => 'edit-comments' ) ); - - $comment = get_comment( $comment_id ); - if ( empty( $comment->comment_ID ) ) - wp_die( -1 ); - - ob_start(); - $wp_list_table->single_row( $comment ); - $comment_list_item = ob_get_clean(); - - $x = new WP_Ajax_Response(); - - $x->add( array( - 'what' => 'edit_comment', - 'id' => $comment->comment_ID, - 'data' => $comment_list_item, - 'position' => $position - )); - - $x->send(); -} - -/** - * Ajax handler for adding a menu item. - * - * @since 3.1.0 - */ -function wp_ajax_add_menu_item() { - check_ajax_referer( 'add-menu_item', 'menu-settings-column-nonce' ); - - if ( ! current_user_can( 'edit_theme_options' ) ) - wp_die( -1 ); - - require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; - - // For performance reasons, we omit some object properties from the checklist. - // The following is a hacky way to restore them when adding non-custom items. - - $menu_items_data = array(); - foreach ( (array) $_POST['menu-item'] as $menu_item_data ) { - if ( - ! empty( $menu_item_data['menu-item-type'] ) && - 'custom' != $menu_item_data['menu-item-type'] && - ! empty( $menu_item_data['menu-item-object-id'] ) - ) { - switch( $menu_item_data['menu-item-type'] ) { - case 'post_type' : - $_object = get_post( $menu_item_data['menu-item-object-id'] ); - break; - - case 'taxonomy' : - $_object = get_term( $menu_item_data['menu-item-object-id'], $menu_item_data['menu-item-object'] ); - break; - } - - $_menu_items = array_map( 'wp_setup_nav_menu_item', array( $_object ) ); - $_menu_item = reset( $_menu_items ); - - // Restore the missing menu item properties - $menu_item_data['menu-item-description'] = $_menu_item->description; - } - - $menu_items_data[] = $menu_item_data; - } - - $item_ids = wp_save_nav_menu_items( 0, $menu_items_data ); - if ( is_wp_error( $item_ids ) ) - wp_die( 0 ); - - $menu_items = array(); - - foreach ( (array) $item_ids as $menu_item_id ) { - $menu_obj = get_post( $menu_item_id ); - if ( ! empty( $menu_obj->ID ) ) { - $menu_obj = wp_setup_nav_menu_item( $menu_obj ); - $menu_obj->label = $menu_obj->title; // don't show "(pending)" in ajax-added items - $menu_items[] = $menu_obj; - } - } - - /** This filter is documented in wp-admin/includes/nav-menu.php */ - $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $_POST['menu'] ); - - if ( ! class_exists( $walker_class_name ) ) - wp_die( 0 ); - - if ( ! empty( $menu_items ) ) { - $args = array( - 'after' => '', - 'before' => '', - 'link_after' => '', - 'link_before' => '', - 'walker' => new $walker_class_name, - ); - echo walk_nav_menu_tree( $menu_items, 0, (object) $args ); - } - wp_die(); -} - -/** - * Ajax handler for adding meta. - * - * @since 3.1.0 - */ -function wp_ajax_add_meta() { - check_ajax_referer( 'add-meta', '_ajax_nonce-add-meta' ); - $c = 0; - $pid = (int) $_POST['post_id']; - $post = get_post( $pid ); - - if ( isset($_POST['metakeyselect']) || isset($_POST['metakeyinput']) ) { - if ( !current_user_can( 'edit_post', $pid ) ) - wp_die( -1 ); - if ( isset($_POST['metakeyselect']) && '#NONE#' == $_POST['metakeyselect'] && empty($_POST['metakeyinput']) ) - wp_die( 1 ); - - // If the post is an autodraft, save the post as a draft and then attempt to save the meta. - if ( $post->post_status == 'auto-draft' ) { - $save_POST = $_POST; // Backup $_POST - $_POST = array(); // Make it empty for edit_post() - $_POST['action'] = 'draft'; // Warning fix - $_POST['post_ID'] = $pid; - $_POST['post_type'] = $post->post_type; - $_POST['post_status'] = 'draft'; - $now = current_time('timestamp', 1); - $_POST['post_title'] = sprintf( __( 'Draft created on %1$s at %2$s' ), date( get_option( 'date_format' ), $now ), date( get_option( 'time_format' ), $now ) ); - - if ( $pid = edit_post() ) { - if ( is_wp_error( $pid ) ) { - $x = new WP_Ajax_Response( array( - 'what' => 'meta', - 'data' => $pid - ) ); - $x->send(); - } - $_POST = $save_POST; // Now we can restore original $_POST again - if ( !$mid = add_meta( $pid ) ) - wp_die( __( 'Please provide a custom field value.' ) ); - } else { - wp_die( 0 ); - } - } elseif ( ! $mid = add_meta( $pid ) ) { - wp_die( __( 'Please provide a custom field value.' ) ); - } - - $meta = get_metadata_by_mid( 'post', $mid ); - $pid = (int) $meta->post_id; - $meta = get_object_vars( $meta ); - $x = new WP_Ajax_Response( array( - 'what' => 'meta', - 'id' => $mid, - 'data' => _list_meta_row( $meta, $c ), - 'position' => 1, - 'supplemental' => array('postid' => $pid) - ) ); - } else { // Update? - $mid = (int) key( $_POST['meta'] ); - $key = wp_unslash( $_POST['meta'][$mid]['key'] ); - $value = wp_unslash( $_POST['meta'][$mid]['value'] ); - if ( '' == trim($key) ) - wp_die( __( 'Please provide a custom field name.' ) ); - if ( '' == trim($value) ) - wp_die( __( 'Please provide a custom field value.' ) ); - if ( ! $meta = get_metadata_by_mid( 'post', $mid ) ) - wp_die( 0 ); // if meta doesn't exist - if ( is_protected_meta( $meta->meta_key, 'post' ) || is_protected_meta( $key, 'post' ) || - ! current_user_can( 'edit_post_meta', $meta->post_id, $meta->meta_key ) || - ! current_user_can( 'edit_post_meta', $meta->post_id, $key ) ) - wp_die( -1 ); - if ( $meta->meta_value != $value || $meta->meta_key != $key ) { - if ( !$u = update_metadata_by_mid( 'post', $mid, $value, $key ) ) - wp_die( 0 ); // We know meta exists; we also know it's unchanged (or DB error, in which case there are bigger problems). - } - - $x = new WP_Ajax_Response( array( - 'what' => 'meta', - 'id' => $mid, 'old_id' => $mid, - 'data' => _list_meta_row( array( - 'meta_key' => $key, - 'meta_value' => $value, - 'meta_id' => $mid - ), $c ), - 'position' => 0, - 'supplemental' => array('postid' => $meta->post_id) - ) ); - } - $x->send(); -} - -/** - * Ajax handler for adding a user. - * - * @since 3.1.0 - * - * @global WP_List_Table $wp_list_table - * - * @param string $action Action to perform. - */ -function wp_ajax_add_user( $action ) { - global $wp_list_table; - if ( empty( $action ) ) - $action = 'add-user'; - - check_ajax_referer( $action ); - if ( ! current_user_can('create_users') ) - wp_die( -1 ); - if ( ! $user_id = edit_user() ) { - wp_die( 0 ); - } elseif ( is_wp_error( $user_id ) ) { - $x = new WP_Ajax_Response( array( - 'what' => 'user', - 'id' => $user_id - ) ); - $x->send(); - } - $user_object = get_userdata( $user_id ); - - $wp_list_table = _get_list_table('WP_Users_List_Table'); - - $role = current( $user_object->roles ); - - $x = new WP_Ajax_Response( array( - 'what' => 'user', - 'id' => $user_id, - 'data' => $wp_list_table->single_row( $user_object, '', $role ), - 'supplemental' => array( - 'show-link' => sprintf(__( 'User %s added' ), "user-$user_id", $user_object->user_login), - 'role' => $role, - ) - ) ); - $x->send(); -} - -/** - * Ajax handler for closed post boxes. - * - * @since 3.1.0 - */ -function wp_ajax_closed_postboxes() { - check_ajax_referer( 'closedpostboxes', 'closedpostboxesnonce' ); - $closed = isset( $_POST['closed'] ) ? explode( ',', $_POST['closed']) : array(); - $closed = array_filter($closed); - - $hidden = isset( $_POST['hidden'] ) ? explode( ',', $_POST['hidden']) : array(); - $hidden = array_filter($hidden); - - $page = isset( $_POST['page'] ) ? $_POST['page'] : ''; - - if ( $page != sanitize_key( $page ) ) - wp_die( 0 ); - - if ( ! $user = wp_get_current_user() ) - wp_die( -1 ); - - if ( is_array($closed) ) - update_user_option($user->ID, "closedpostboxes_$page", $closed, true); - - if ( is_array($hidden) ) { - $hidden = array_diff( $hidden, array('submitdiv', 'linksubmitdiv', 'manage-menu', 'create-menu') ); // postboxes that are always shown - update_user_option($user->ID, "metaboxhidden_$page", $hidden, true); - } - - wp_die( 1 ); -} - -/** - * Ajax handler for hidden columns. - * - * @since 3.1.0 - */ -function wp_ajax_hidden_columns() { - check_ajax_referer( 'screen-options-nonce', 'screenoptionnonce' ); - $page = isset( $_POST['page'] ) ? $_POST['page'] : ''; - - if ( $page != sanitize_key( $page ) ) - wp_die( 0 ); - - if ( ! $user = wp_get_current_user() ) - wp_die( -1 ); - - $hidden = ! empty( $_POST['hidden'] ) ? explode( ',', $_POST['hidden'] ) : array(); - update_user_option( $user->ID, "manage{$page}columnshidden", $hidden, true ); - - wp_die( 1 ); -} - -/** - * Ajax handler for updating whether to display the welcome panel. - * - * @since 3.1.0 - */ -function wp_ajax_update_welcome_panel() { - check_ajax_referer( 'welcome-panel-nonce', 'welcomepanelnonce' ); - - if ( ! current_user_can( 'edit_theme_options' ) ) - wp_die( -1 ); - - update_user_meta( get_current_user_id(), 'show_welcome_panel', empty( $_POST['visible'] ) ? 0 : 1 ); - - wp_die( 1 ); -} - -/** - * Ajax handler for retrieving menu meta boxes. - * - * @since 3.1.0 - */ -function wp_ajax_menu_get_metabox() { - if ( ! current_user_can( 'edit_theme_options' ) ) - wp_die( -1 ); - - require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; - - if ( isset( $_POST['item-type'] ) && 'post_type' == $_POST['item-type'] ) { - $type = 'posttype'; - $callback = 'wp_nav_menu_item_post_type_meta_box'; - $items = (array) get_post_types( array( 'show_in_nav_menus' => true ), 'object' ); - } elseif ( isset( $_POST['item-type'] ) && 'taxonomy' == $_POST['item-type'] ) { - $type = 'taxonomy'; - $callback = 'wp_nav_menu_item_taxonomy_meta_box'; - $items = (array) get_taxonomies( array( 'show_ui' => true ), 'object' ); - } - - if ( ! empty( $_POST['item-object'] ) && isset( $items[$_POST['item-object']] ) ) { - $menus_meta_box_object = $items[ $_POST['item-object'] ]; - - /** This filter is documented in wp-admin/includes/nav-menu.php */ - $item = apply_filters( 'nav_menu_meta_box_object', $menus_meta_box_object ); - ob_start(); - call_user_func_array($callback, array( - null, - array( - 'id' => 'add-' . $item->name, - 'title' => $item->labels->name, - 'callback' => $callback, - 'args' => $item, - ) - )); - - $markup = ob_get_clean(); - - echo wp_json_encode(array( - 'replace-id' => $type . '-' . $item->name, - 'markup' => $markup, - )); - } - - wp_die(); -} - -/** - * Ajax handler for internal linking. - * - * @since 3.1.0 - */ -function wp_ajax_wp_link_ajax() { - check_ajax_referer( 'internal-linking', '_ajax_linking_nonce' ); - - $args = array(); - - if ( isset( $_POST['search'] ) ) - $args['s'] = wp_unslash( $_POST['search'] ); - $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1; - - require(ABSPATH . WPINC . '/class-wp-editor.php'); - $results = _WP_Editors::wp_link_query( $args ); - - if ( ! isset( $results ) ) - wp_die( 0 ); - - echo wp_json_encode( $results ); - echo "\n"; - - wp_die(); -} - -/** - * Ajax handler for menu locations save. - * - * @since 3.1.0 - */ -function wp_ajax_menu_locations_save() { - if ( ! current_user_can( 'edit_theme_options' ) ) - wp_die( -1 ); - check_ajax_referer( 'add-menu_item', 'menu-settings-column-nonce' ); - if ( ! isset( $_POST['menu-locations'] ) ) - wp_die( 0 ); - set_theme_mod( 'nav_menu_locations', array_map( 'absint', $_POST['menu-locations'] ) ); - wp_die( 1 ); -} - -/** - * Ajax handler for saving the meta box order. - * - * @since 3.1.0 - */ -function wp_ajax_meta_box_order() { - check_ajax_referer( 'meta-box-order' ); - $order = isset( $_POST['order'] ) ? (array) $_POST['order'] : false; - $page_columns = isset( $_POST['page_columns'] ) ? $_POST['page_columns'] : 'auto'; - - if ( $page_columns != 'auto' ) - $page_columns = (int) $page_columns; - - $page = isset( $_POST['page'] ) ? $_POST['page'] : ''; - - if ( $page != sanitize_key( $page ) ) - wp_die( 0 ); - - if ( ! $user = wp_get_current_user() ) - wp_die( -1 ); - - if ( $order ) - update_user_option($user->ID, "meta-box-order_$page", $order, true); - - if ( $page_columns ) - update_user_option($user->ID, "screen_layout_$page", $page_columns, true); - - wp_die( 1 ); -} - -/** - * Ajax handler for menu quick searching. - * - * @since 3.1.0 - */ -function wp_ajax_menu_quick_search() { - if ( ! current_user_can( 'edit_theme_options' ) ) - wp_die( -1 ); - - require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; - - _wp_ajax_menu_quick_search( $_POST ); - - wp_die(); -} - -/** - * Ajax handler to retrieve a permalink. - * - * @since 3.1.0 - */ -function wp_ajax_get_permalink() { - check_ajax_referer( 'getpermalink', 'getpermalinknonce' ); - $post_id = isset($_POST['post_id'])? intval($_POST['post_id']) : 0; - wp_die( add_query_arg( array( 'preview' => 'true' ), get_permalink( $post_id ) ) ); -} - -/** - * Ajax handler to retrieve a sample permalink. - * - * @since 3.1.0 - */ -function wp_ajax_sample_permalink() { - check_ajax_referer( 'samplepermalink', 'samplepermalinknonce' ); - $post_id = isset($_POST['post_id'])? intval($_POST['post_id']) : 0; - $title = isset($_POST['new_title'])? $_POST['new_title'] : ''; - $slug = isset($_POST['new_slug'])? $_POST['new_slug'] : null; - wp_die( get_sample_permalink_html( $post_id, $title, $slug ) ); -} - -/** - * Ajax handler for Quick Edit saving a post from a list table. - * - * @since 3.1.0 - * - * @global WP_List_Table $wp_list_table - */ -function wp_ajax_inline_save() { - global $wp_list_table; - - check_ajax_referer( 'inlineeditnonce', '_inline_edit' ); - - if ( ! isset($_POST['post_ID']) || ! ( $post_ID = (int) $_POST['post_ID'] ) ) - wp_die(); - - if ( 'page' == $_POST['post_type'] ) { - if ( ! current_user_can( 'edit_page', $post_ID ) ) - wp_die( __( 'You are not allowed to edit this page.' ) ); - } else { - if ( ! current_user_can( 'edit_post', $post_ID ) ) - wp_die( __( 'You are not allowed to edit this post.' ) ); - } - - if ( $last = wp_check_post_lock( $post_ID ) ) { - $last_user = get_userdata( $last ); - $last_user_name = $last_user ? $last_user->display_name : __( 'Someone' ); - printf( $_POST['post_type'] == 'page' ? __( 'Saving is disabled: %s is currently editing this page.' ) : __( 'Saving is disabled: %s is currently editing this post.' ), esc_html( $last_user_name ) ); - wp_die(); - } - - $data = &$_POST; - - $post = get_post( $post_ID, ARRAY_A ); - - // Since it's coming from the database. - $post = wp_slash($post); - - $data['content'] = $post['post_content']; - $data['excerpt'] = $post['post_excerpt']; - - // Rename. - $data['user_ID'] = get_current_user_id(); - - if ( isset($data['post_parent']) ) - $data['parent_id'] = $data['post_parent']; - - // Status. - if ( isset( $data['keep_private'] ) && 'private' == $data['keep_private'] ) { - $data['visibility'] = 'private'; - $data['post_status'] = 'private'; - } else { - $data['post_status'] = $data['_status']; - } - - if ( empty($data['comment_status']) ) - $data['comment_status'] = 'closed'; - if ( empty($data['ping_status']) ) - $data['ping_status'] = 'closed'; - - // Exclude terms from taxonomies that are not supposed to appear in Quick Edit. - if ( ! empty( $data['tax_input'] ) ) { - foreach ( $data['tax_input'] as $taxonomy => $terms ) { - $tax_object = get_taxonomy( $taxonomy ); - /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */ - if ( ! apply_filters( 'quick_edit_show_taxonomy', $tax_object->show_in_quick_edit, $taxonomy, $post['post_type'] ) ) { - unset( $data['tax_input'][ $taxonomy ] ); - } - } - } - - // Hack: wp_unique_post_slug() doesn't work for drafts, so we will fake that our post is published. - if ( ! empty( $data['post_name'] ) && in_array( $post['post_status'], array( 'draft', 'pending' ) ) ) { - $post['post_status'] = 'publish'; - $data['post_name'] = wp_unique_post_slug( $data['post_name'], $post['ID'], $post['post_status'], $post['post_type'], $post['post_parent'] ); - } - - // Update the post. - edit_post(); - - $wp_list_table = _get_list_table( 'WP_Posts_List_Table', array( 'screen' => $_POST['screen'] ) ); - - $level = 0; - $request_post = array( get_post( $_POST['post_ID'] ) ); - $parent = $request_post[0]->post_parent; - - while ( $parent > 0 ) { - $parent_post = get_post( $parent ); - $parent = $parent_post->post_parent; - $level++; - } - - $wp_list_table->display_rows( array( get_post( $_POST['post_ID'] ) ), $level ); - - wp_die(); -} - -/** - * Ajax handler for quick edit saving for a term. - * - * @since 3.1.0 - * - * @global WP_List_Table $wp_list_table - */ -function wp_ajax_inline_save_tax() { - global $wp_list_table; - - check_ajax_referer( 'taxinlineeditnonce', '_inline_edit' ); - - $taxonomy = sanitize_key( $_POST['taxonomy'] ); - $tax = get_taxonomy( $taxonomy ); - if ( ! $tax ) - wp_die( 0 ); - - if ( ! current_user_can( $tax->cap->edit_terms ) ) - wp_die( -1 ); - - $wp_list_table = _get_list_table( 'WP_Terms_List_Table', array( 'screen' => 'edit-' . $taxonomy ) ); - - if ( ! isset($_POST['tax_ID']) || ! ( $id = (int) $_POST['tax_ID'] ) ) - wp_die( -1 ); - - $tag = get_term( $id, $taxonomy ); - $_POST['description'] = $tag->description; - - $updated = wp_update_term($id, $taxonomy, $_POST); - if ( $updated && !is_wp_error($updated) ) { - $tag = get_term( $updated['term_id'], $taxonomy ); - if ( !$tag || is_wp_error( $tag ) ) { - if ( is_wp_error($tag) && $tag->get_error_message() ) - wp_die( $tag->get_error_message() ); - wp_die( __( 'Item not updated.' ) ); - } - } else { - if ( is_wp_error($updated) && $updated->get_error_message() ) - wp_die( $updated->get_error_message() ); - wp_die( __( 'Item not updated.' ) ); - } - $level = 0; - $parent = $tag->parent; - while ( $parent > 0 ) { - $parent_tag = get_term( $parent, $taxonomy ); - $parent = $parent_tag->parent; - $level++; - } - $wp_list_table->single_row( $tag, $level ); - wp_die(); -} - -/** - * Ajax handler for querying posts for the Find Posts modal. - * - * @see window.findPosts - * - * @since 3.1.0 - */ -function wp_ajax_find_posts() { - check_ajax_referer( 'find-posts' ); - - $post_types = get_post_types( array( 'public' => true ), 'objects' ); - unset( $post_types['attachment'] ); - - $s = wp_unslash( $_POST['ps'] ); - $args = array( - 'post_type' => array_keys( $post_types ), - 'post_status' => 'any', - 'posts_per_page' => 50, - ); - if ( '' !== $s ) - $args['s'] = $s; - - $posts = get_posts( $args ); - - if ( ! $posts ) { - wp_send_json_error( __( 'No items found.' ) ); - } - - $html = ''; - $alt = ''; - foreach ( $posts as $post ) { - $title = trim( $post->post_title ) ? $post->post_title : __( '(no title)' ); - $alt = ( 'alternate' == $alt ) ? '' : 'alternate'; - - switch ( $post->post_status ) { - case 'publish' : - case 'private' : - $stat = __('Published'); - break; - case 'future' : - $stat = __('Scheduled'); - break; - case 'pending' : - $stat = __('Pending Review'); - break; - case 'draft' : - $stat = __('Draft'); - break; - } - - if ( '0000-00-00 00:00:00' == $post->post_date ) { - $time = ''; - } else { - /* translators: date format in table columns, see http://php.net/date */ - $time = mysql2date(__('Y/m/d'), $post->post_date); - } - - $html .= ''; - $html .= '' . "\n\n"; - } - - $html .= '

'.__('Title').''.__('Type').''.__('Date').''.__('Status').'
' . esc_html( $post_types[$post->post_type]->labels->singular_name ) . ''.esc_html( $time ) . '' . esc_html( $stat ). '
'; - - wp_send_json_success( $html ); -} - -/** - * Ajax handler for saving the widgets order. - * - * @since 3.1.0 - */ -function wp_ajax_widgets_order() { - check_ajax_referer( 'save-sidebar-widgets', 'savewidgets' ); - - if ( !current_user_can('edit_theme_options') ) - wp_die( -1 ); - - unset( $_POST['savewidgets'], $_POST['action'] ); - - // Save widgets order for all sidebars. - if ( is_array($_POST['sidebars']) ) { - $sidebars = array(); - foreach ( $_POST['sidebars'] as $key => $val ) { - $sb = array(); - if ( !empty($val) ) { - $val = explode(',', $val); - foreach ( $val as $k => $v ) { - if ( strpos($v, 'widget-') === false ) - continue; - - $sb[$k] = substr($v, strpos($v, '_') + 1); - } - } - $sidebars[$key] = $sb; - } - wp_set_sidebars_widgets($sidebars); - wp_die( 1 ); - } - - wp_die( -1 ); -} - -/** - * Ajax handler for saving a widget. - * - * @since 3.1.0 - * - * @global array $wp_registered_widgets - * @global array $wp_registered_widget_controls - * @global array $wp_registered_widget_updates - */ -function wp_ajax_save_widget() { - global $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_updates; - - check_ajax_referer( 'save-sidebar-widgets', 'savewidgets' ); - - if ( !current_user_can('edit_theme_options') || !isset($_POST['id_base']) ) - wp_die( -1 ); - - unset( $_POST['savewidgets'], $_POST['action'] ); - - /** - * Fires early when editing the widgets displayed in sidebars. - * - * @since 2.8.0 - */ - do_action( 'load-widgets.php' ); - - /** - * Fires early when editing the widgets displayed in sidebars. - * - * @since 2.8.0 - */ - do_action( 'widgets.php' ); - - /** This action is documented in wp-admin/widgets.php */ - do_action( 'sidebar_admin_setup' ); - - $id_base = $_POST['id_base']; - $widget_id = $_POST['widget-id']; - $sidebar_id = $_POST['sidebar']; - $multi_number = !empty($_POST['multi_number']) ? (int) $_POST['multi_number'] : 0; - $settings = isset($_POST['widget-' . $id_base]) && is_array($_POST['widget-' . $id_base]) ? $_POST['widget-' . $id_base] : false; - $error = '

' . __('An error has occurred. Please reload the page and try again.') . '

'; - - $sidebars = wp_get_sidebars_widgets(); - $sidebar = isset($sidebars[$sidebar_id]) ? $sidebars[$sidebar_id] : array(); - - // Delete. - if ( isset($_POST['delete_widget']) && $_POST['delete_widget'] ) { - - if ( !isset($wp_registered_widgets[$widget_id]) ) - wp_die( $error ); - - $sidebar = array_diff( $sidebar, array($widget_id) ); - $_POST = array('sidebar' => $sidebar_id, 'widget-' . $id_base => array(), 'the-widget-id' => $widget_id, 'delete_widget' => '1'); - } elseif ( $settings && preg_match( '/__i__|%i%/', key($settings) ) ) { - if ( !$multi_number ) - wp_die( $error ); - - $_POST[ 'widget-' . $id_base ] = array( $multi_number => reset( $settings ) ); - $widget_id = $id_base . '-' . $multi_number; - $sidebar[] = $widget_id; - } - $_POST['widget-id'] = $sidebar; - - foreach ( (array) $wp_registered_widget_updates as $name => $control ) { - - if ( $name == $id_base ) { - if ( !is_callable( $control['callback'] ) ) - continue; - - ob_start(); - call_user_func_array( $control['callback'], $control['params'] ); - ob_end_clean(); - break; - } - } - - if ( isset($_POST['delete_widget']) && $_POST['delete_widget'] ) { - $sidebars[$sidebar_id] = $sidebar; - wp_set_sidebars_widgets($sidebars); - echo "deleted:$widget_id"; - wp_die(); - } - - if ( !empty($_POST['add_new']) ) - wp_die(); - - if ( $form = $wp_registered_widget_controls[$widget_id] ) - call_user_func_array( $form['callback'], $form['params'] ); - - wp_die(); -} - -/** - * Ajax handler for saving a widget. - * - * @since 3.9.0 - * - * @global WP_Customize_Manager $wp_customize - */ -function wp_ajax_update_widget() { - global $wp_customize; - $wp_customize->widgets->wp_ajax_update_widget(); -} - -/** - * Ajax handler for uploading attachments - * - * @since 3.3.0 - */ -function wp_ajax_upload_attachment() { - check_ajax_referer( 'media-form' ); - /* - * This function does not use wp_send_json_success() / wp_send_json_error() - * as the html4 Plupload handler requires a text/html content-type for older IE. - * See https://core.trac.wordpress.org/ticket/31037 - */ - - if ( ! current_user_can( 'upload_files' ) ) { - echo wp_json_encode( array( - 'success' => false, - 'data' => array( - 'message' => __( "You don't have permission to upload files." ), - 'filename' => $_FILES['async-upload']['name'], - ) - ) ); - - wp_die(); - } - - if ( isset( $_REQUEST['post_id'] ) ) { - $post_id = $_REQUEST['post_id']; - if ( ! current_user_can( 'edit_post', $post_id ) ) { - echo wp_json_encode( array( - 'success' => false, - 'data' => array( - 'message' => __( "You don't have permission to attach files to this post." ), - 'filename' => $_FILES['async-upload']['name'], - ) - ) ); - - wp_die(); - } - } else { - $post_id = null; - } - - $post_data = isset( $_REQUEST['post_data'] ) ? $_REQUEST['post_data'] : array(); - - // If the context is custom header or background, make sure the uploaded file is an image. - if ( isset( $post_data['context'] ) && in_array( $post_data['context'], array( 'custom-header', 'custom-background' ) ) ) { - $wp_filetype = wp_check_filetype_and_ext( $_FILES['async-upload']['tmp_name'], $_FILES['async-upload']['name'] ); - if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) { - echo wp_json_encode( array( - 'success' => false, - 'data' => array( - 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), - 'filename' => $_FILES['async-upload']['name'], - ) - ) ); - - wp_die(); - } - } - - $attachment_id = media_handle_upload( 'async-upload', $post_id, $post_data ); - - if ( is_wp_error( $attachment_id ) ) { - echo wp_json_encode( array( - 'success' => false, - 'data' => array( - 'message' => $attachment_id->get_error_message(), - 'filename' => $_FILES['async-upload']['name'], - ) - ) ); - - wp_die(); - } - - if ( isset( $post_data['context'] ) && isset( $post_data['theme'] ) ) { - if ( 'custom-background' === $post_data['context'] ) - update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', $post_data['theme'] ); - - if ( 'custom-header' === $post_data['context'] ) - update_post_meta( $attachment_id, '_wp_attachment_is_custom_header', $post_data['theme'] ); - } - - if ( ! $attachment = wp_prepare_attachment_for_js( $attachment_id ) ) - wp_die(); - - echo wp_json_encode( array( - 'success' => true, - 'data' => $attachment, - ) ); - - wp_die(); -} - -/** - * Ajax handler for image editing. - * - * @since 3.1.0 - */ -function wp_ajax_image_editor() { - $attachment_id = intval($_POST['postid']); - if ( empty($attachment_id) || !current_user_can('edit_post', $attachment_id) ) - wp_die( -1 ); - - check_ajax_referer( "image_editor-$attachment_id" ); - include_once( ABSPATH . 'wp-admin/includes/image-edit.php' ); - - $msg = false; - switch ( $_POST['do'] ) { - case 'save' : - $msg = wp_save_image($attachment_id); - $msg = wp_json_encode($msg); - wp_die( $msg ); - break; - case 'scale' : - $msg = wp_save_image($attachment_id); - break; - case 'restore' : - $msg = wp_restore_image($attachment_id); - break; - } - - wp_image_editor($attachment_id, $msg); - wp_die(); -} - -/** - * Ajax handler for setting the featured image. - * - * @since 3.1.0 - */ -function wp_ajax_set_post_thumbnail() { - $json = ! empty( $_REQUEST['json'] ); // New-style request - - $post_ID = intval( $_POST['post_id'] ); - if ( ! current_user_can( 'edit_post', $post_ID ) ) - wp_die( -1 ); - - $thumbnail_id = intval( $_POST['thumbnail_id'] ); - - if ( $json ) - check_ajax_referer( "update-post_$post_ID" ); - else - check_ajax_referer( "set_post_thumbnail-$post_ID" ); - - if ( $thumbnail_id == '-1' ) { - if ( delete_post_thumbnail( $post_ID ) ) { - $return = _wp_post_thumbnail_html( null, $post_ID ); - $json ? wp_send_json_success( $return ) : wp_die( $return ); - } else { - wp_die( 0 ); - } - } - - if ( set_post_thumbnail( $post_ID, $thumbnail_id ) ) { - $return = _wp_post_thumbnail_html( $thumbnail_id, $post_ID ); - $json ? wp_send_json_success( $return ) : wp_die( $return ); - } - - wp_die( 0 ); -} - -/** - * AJAX handler for setting the featured image for an attachment. - * - * @since 4.0.0 - * - * @see set_post_thumbnail() - */ -function wp_ajax_set_attachment_thumbnail() { - if ( empty( $_POST['urls'] ) || ! is_array( $_POST['urls'] ) ) { - wp_send_json_error(); - } - - $thumbnail_id = (int) $_POST['thumbnail_id']; - if ( empty( $thumbnail_id ) ) { - wp_send_json_error(); - } - - $post_ids = array(); - // For each URL, try to find its corresponding post ID. - foreach ( $_POST['urls'] as $url ) { - $post_id = attachment_url_to_postid( $url ); - if ( ! empty( $post_id ) ) { - $post_ids[] = $post_id; - } - } - - if ( empty( $post_ids ) ) { - wp_send_json_error(); - } - - $success = 0; - // For each found attachment, set its thumbnail. - foreach ( $post_ids as $post_id ) { - if ( ! current_user_can( 'edit_post', $post_id ) ) { - continue; - } - - if ( set_post_thumbnail( $post_id, $thumbnail_id ) ) { - $success++; - } - } - - if ( 0 === $success ) { - wp_send_json_error(); - } else { - wp_send_json_success(); - } - - wp_send_json_error(); -} - -/** - * Ajax handler for date formatting. - * - * @since 3.1.0 - */ -function wp_ajax_date_format() { - wp_die( date_i18n( sanitize_option( 'date_format', wp_unslash( $_POST['date'] ) ) ) ); -} - -/** - * Ajax handler for time formatting. - * - * @since 3.1.0 - */ -function wp_ajax_time_format() { - wp_die( date_i18n( sanitize_option( 'time_format', wp_unslash( $_POST['date'] ) ) ) ); -} - -/** - * Ajax handler for saving posts from the fullscreen editor. - * - * @since 3.1.0 - * @deprecated 4.3.0 - */ -function wp_ajax_wp_fullscreen_save_post() { - $post_id = isset( $_POST['post_ID'] ) ? (int) $_POST['post_ID'] : 0; - - $post = null; - - if ( $post_id ) - $post = get_post( $post_id ); - - check_ajax_referer('update-post_' . $post_id, '_wpnonce'); - - $post_id = edit_post(); - - if ( is_wp_error( $post_id ) ) { - wp_send_json_error(); - } - - if ( $post ) { - $last_date = mysql2date( get_option('date_format'), $post->post_modified ); - $last_time = mysql2date( get_option('time_format'), $post->post_modified ); - } else { - $last_date = date_i18n( get_option('date_format') ); - $last_time = date_i18n( get_option('time_format') ); - } - - if ( $last_id = get_post_meta( $post_id, '_edit_last', true ) ) { - $last_user = get_userdata( $last_id ); - $last_edited = sprintf( __('Last edited by %1$s on %2$s at %3$s'), esc_html( $last_user->display_name ), $last_date, $last_time ); - } else { - $last_edited = sprintf( __('Last edited on %1$s at %2$s'), $last_date, $last_time ); - } - - wp_send_json_success( array( 'last_edited' => $last_edited ) ); -} - -/** - * Ajax handler for removing a post lock. - * - * @since 3.1.0 - */ -function wp_ajax_wp_remove_post_lock() { - if ( empty( $_POST['post_ID'] ) || empty( $_POST['active_post_lock'] ) ) - wp_die( 0 ); - $post_id = (int) $_POST['post_ID']; - if ( ! $post = get_post( $post_id ) ) - wp_die( 0 ); - - check_ajax_referer( 'update-post_' . $post_id ); - - if ( ! current_user_can( 'edit_post', $post_id ) ) - wp_die( -1 ); - - $active_lock = array_map( 'absint', explode( ':', $_POST['active_post_lock'] ) ); - if ( $active_lock[1] != get_current_user_id() ) - wp_die( 0 ); - - /** - * Filter the post lock window duration. - * - * @since 3.3.0 - * - * @param int $interval The interval in seconds the post lock duration - * should last, plus 5 seconds. Default 150. - */ - $new_lock = ( time() - apply_filters( 'wp_check_post_lock_window', 150 ) + 5 ) . ':' . $active_lock[1]; - update_post_meta( $post_id, '_edit_lock', $new_lock, implode( ':', $active_lock ) ); - wp_die( 1 ); -} - -/** - * Ajax handler for dismissing a WordPress pointer. - * - * @since 3.1.0 - */ -function wp_ajax_dismiss_wp_pointer() { - $pointer = $_POST['pointer']; - if ( $pointer != sanitize_key( $pointer ) ) - wp_die( 0 ); - -// check_ajax_referer( 'dismiss-pointer_' . $pointer ); - - $dismissed = array_filter( explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) ) ); - - if ( in_array( $pointer, $dismissed ) ) - wp_die( 0 ); - - $dismissed[] = $pointer; - $dismissed = implode( ',', $dismissed ); - - update_user_meta( get_current_user_id(), 'dismissed_wp_pointers', $dismissed ); - wp_die( 1 ); -} - -/** - * Ajax handler for getting an attachment. - * - * @since 3.5.0 - */ -function wp_ajax_get_attachment() { - if ( ! isset( $_REQUEST['id'] ) ) - wp_send_json_error(); - - if ( ! $id = absint( $_REQUEST['id'] ) ) - wp_send_json_error(); - - if ( ! $post = get_post( $id ) ) - wp_send_json_error(); - - if ( 'attachment' != $post->post_type ) - wp_send_json_error(); - - if ( ! current_user_can( 'upload_files' ) ) - wp_send_json_error(); - - if ( ! $attachment = wp_prepare_attachment_for_js( $id ) ) - wp_send_json_error(); - - wp_send_json_success( $attachment ); -} - -/** - * Ajax handler for querying attachments. - * - * @since 3.5.0 - */ -function wp_ajax_query_attachments() { - if ( ! current_user_can( 'upload_files' ) ) - wp_send_json_error(); - - $query = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array(); - $keys = array( - 's', 'order', 'orderby', 'posts_per_page', 'paged', 'post_mime_type', - 'post_parent', 'post__in', 'post__not_in', 'year', 'monthnum' - ); - foreach ( get_taxonomies_for_attachments( 'objects' ) as $t ) { - if ( $t->query_var && isset( $query[ $t->query_var ] ) ) { - $keys[] = $t->query_var; - } - } - - $query = array_intersect_key( $query, array_flip( $keys ) ); - $query['post_type'] = 'attachment'; - if ( MEDIA_TRASH - && ! empty( $_REQUEST['query']['post_status'] ) - && 'trash' === $_REQUEST['query']['post_status'] ) { - $query['post_status'] = 'trash'; - } else { - $query['post_status'] = 'inherit'; - } - - if ( current_user_can( get_post_type_object( 'attachment' )->cap->read_private_posts ) ) - $query['post_status'] .= ',private'; - - /** - * Filter the arguments passed to WP_Query during an AJAX - * call for querying attachments. - * - * @since 3.7.0 - * - * @see WP_Query::parse_query() - * - * @param array $query An array of query variables. - */ - $query = apply_filters( 'ajax_query_attachments_args', $query ); - $query = new WP_Query( $query ); - - $posts = array_map( 'wp_prepare_attachment_for_js', $query->posts ); - $posts = array_filter( $posts ); - - wp_send_json_success( $posts ); -} - -/** - * Ajax handler for updating attachment attributes. - * - * @since 3.5.0 - */ -function wp_ajax_save_attachment() { - if ( ! isset( $_REQUEST['id'] ) || ! isset( $_REQUEST['changes'] ) ) - wp_send_json_error(); - - if ( ! $id = absint( $_REQUEST['id'] ) ) - wp_send_json_error(); - - check_ajax_referer( 'update-post_' . $id, 'nonce' ); - - if ( ! current_user_can( 'edit_post', $id ) ) - wp_send_json_error(); - - $changes = $_REQUEST['changes']; - $post = get_post( $id, ARRAY_A ); - - if ( 'attachment' != $post['post_type'] ) - wp_send_json_error(); - - if ( isset( $changes['parent'] ) ) - $post['post_parent'] = $changes['parent']; - - if ( isset( $changes['title'] ) ) - $post['post_title'] = $changes['title']; - - if ( isset( $changes['caption'] ) ) - $post['post_excerpt'] = $changes['caption']; - - if ( isset( $changes['description'] ) ) - $post['post_content'] = $changes['description']; - - if ( MEDIA_TRASH && isset( $changes['status'] ) ) - $post['post_status'] = $changes['status']; - - if ( isset( $changes['alt'] ) ) { - $alt = wp_unslash( $changes['alt'] ); - if ( $alt != get_post_meta( $id, '_wp_attachment_image_alt', true ) ) { - $alt = wp_strip_all_tags( $alt, true ); - update_post_meta( $id, '_wp_attachment_image_alt', wp_slash( $alt ) ); - } - } - - if ( wp_attachment_is( 'audio', $post['ID'] ) ) { - $changed = false; - $id3data = wp_get_attachment_metadata( $post['ID'] ); - if ( ! is_array( $id3data ) ) { - $changed = true; - $id3data = array(); - } - foreach ( wp_get_attachment_id3_keys( (object) $post, 'edit' ) as $key => $label ) { - if ( isset( $changes[ $key ] ) ) { - $changed = true; - $id3data[ $key ] = sanitize_text_field( wp_unslash( $changes[ $key ] ) ); - } - } - - if ( $changed ) { - wp_update_attachment_metadata( $id, $id3data ); - } - } - - if ( MEDIA_TRASH && isset( $changes['status'] ) && 'trash' === $changes['status'] ) { - wp_delete_post( $id ); - } else { - wp_update_post( $post ); - } - - wp_send_json_success(); -} - -/** - * Ajax handler for saving backwards compatible attachment attributes. - * - * @since 3.5.0 - */ -function wp_ajax_save_attachment_compat() { - if ( ! isset( $_REQUEST['id'] ) ) - wp_send_json_error(); - - if ( ! $id = absint( $_REQUEST['id'] ) ) - wp_send_json_error(); - - if ( empty( $_REQUEST['attachments'] ) || empty( $_REQUEST['attachments'][ $id ] ) ) - wp_send_json_error(); - $attachment_data = $_REQUEST['attachments'][ $id ]; - - check_ajax_referer( 'update-post_' . $id, 'nonce' ); - - if ( ! current_user_can( 'edit_post', $id ) ) - wp_send_json_error(); - - $post = get_post( $id, ARRAY_A ); - - if ( 'attachment' != $post['post_type'] ) - wp_send_json_error(); - - /** This filter is documented in wp-admin/includes/media.php */ - $post = apply_filters( 'attachment_fields_to_save', $post, $attachment_data ); - - if ( isset( $post['errors'] ) ) { - $errors = $post['errors']; // @todo return me and display me! - unset( $post['errors'] ); - } - - wp_update_post( $post ); - - foreach ( get_attachment_taxonomies( $post ) as $taxonomy ) { - if ( isset( $attachment_data[ $taxonomy ] ) ) - wp_set_object_terms( $id, array_map( 'trim', preg_split( '/,+/', $attachment_data[ $taxonomy ] ) ), $taxonomy, false ); - } - - if ( ! $attachment = wp_prepare_attachment_for_js( $id ) ) - wp_send_json_error(); - - wp_send_json_success( $attachment ); -} - -/** - * Ajax handler for saving the attachment order. - * - * @since 3.5.0 - */ -function wp_ajax_save_attachment_order() { - if ( ! isset( $_REQUEST['post_id'] ) ) - wp_send_json_error(); - - if ( ! $post_id = absint( $_REQUEST['post_id'] ) ) - wp_send_json_error(); - - if ( empty( $_REQUEST['attachments'] ) ) - wp_send_json_error(); - - check_ajax_referer( 'update-post_' . $post_id, 'nonce' ); - - $attachments = $_REQUEST['attachments']; - - if ( ! current_user_can( 'edit_post', $post_id ) ) - wp_send_json_error(); - - foreach ( $attachments as $attachment_id => $menu_order ) { - if ( ! current_user_can( 'edit_post', $attachment_id ) ) - continue; - if ( ! $attachment = get_post( $attachment_id ) ) - continue; - if ( 'attachment' != $attachment->post_type ) - continue; - - wp_update_post( array( 'ID' => $attachment_id, 'menu_order' => $menu_order ) ); - } - - wp_send_json_success(); -} - -/** - * Ajax handler for sending an attachment to the editor. - * - * Generates the HTML to send an attachment to the editor. - * Backwards compatible with the media_send_to_editor filter - * and the chain of filters that follow. - * - * @since 3.5.0 - */ -function wp_ajax_send_attachment_to_editor() { - check_ajax_referer( 'media-send-to-editor', 'nonce' ); - - $attachment = wp_unslash( $_POST['attachment'] ); - - $id = intval( $attachment['id'] ); - - if ( ! $post = get_post( $id ) ) - wp_send_json_error(); - - if ( 'attachment' != $post->post_type ) - wp_send_json_error(); - - if ( current_user_can( 'edit_post', $id ) ) { - // If this attachment is unattached, attach it. Primarily a back compat thing. - if ( 0 == $post->post_parent && $insert_into_post_id = intval( $_POST['post_id'] ) ) { - wp_update_post( array( 'ID' => $id, 'post_parent' => $insert_into_post_id ) ); - } - } - - $rel = $url = ''; - $html = isset( $attachment['post_title'] ) ? $attachment['post_title'] : ''; - if ( ! empty( $attachment['url'] ) ) { - $url = $attachment['url']; - if ( strpos( $url, 'attachment_id') || get_attachment_link( $id ) == $url ) - $rel = ' rel="attachment wp-att-' . $id . '"'; - $html = '' . $html . ''; - } - - remove_filter( 'media_send_to_editor', 'image_media_send_to_editor' ); - - if ( 'image' === substr( $post->post_mime_type, 0, 5 ) ) { - $align = isset( $attachment['align'] ) ? $attachment['align'] : 'none'; - $size = isset( $attachment['image-size'] ) ? $attachment['image-size'] : 'medium'; - $alt = isset( $attachment['image_alt'] ) ? $attachment['image_alt'] : ''; - - // No whitespace-only captions. - $caption = isset( $attachment['post_excerpt'] ) ? $attachment['post_excerpt'] : ''; - if ( '' === trim( $caption ) ) { - $caption = ''; - } - - $title = ''; // We no longer insert title tags into tags, as they are redundant. - $html = get_image_send_to_editor( $id, $caption, $title, $align, $url, (bool) $rel, $size, $alt ); - } elseif ( wp_attachment_is( 'video', $post ) || wp_attachment_is( 'audio', $post ) ) { - $html = stripslashes_deep( $_POST['html'] ); - } - - /** This filter is documented in wp-admin/includes/media.php */ - $html = apply_filters( 'media_send_to_editor', $html, $id, $attachment ); - - wp_send_json_success( $html ); -} - -/** - * Ajax handler for sending a link to the editor. - * - * Generates the HTML to send a non-image embed link to the editor. - * - * Backwards compatible with the following filters: - * - file_send_to_editor_url - * - audio_send_to_editor_url - * - video_send_to_editor_url - * - * @since 3.5.0 - * - * @global WP_Post $post - * @global WP_Embed $wp_embed - */ -function wp_ajax_send_link_to_editor() { - global $post, $wp_embed; - - check_ajax_referer( 'media-send-to-editor', 'nonce' ); - - if ( ! $src = wp_unslash( $_POST['src'] ) ) - wp_send_json_error(); - - if ( ! strpos( $src, '://' ) ) - $src = 'http://' . $src; - - if ( ! $src = esc_url_raw( $src ) ) - wp_send_json_error(); - - if ( ! $link_text = trim( wp_unslash( $_POST['link_text'] ) ) ) - $link_text = wp_basename( $src ); - - $post = get_post( isset( $_POST['post_id'] ) ? $_POST['post_id'] : 0 ); - - // Ping WordPress for an embed. - $check_embed = $wp_embed->run_shortcode( '[embed]'. $src .'[/embed]' ); - - // Fallback that WordPress creates when no oEmbed was found. - $fallback = $wp_embed->maybe_make_link( $src ); - - if ( $check_embed !== $fallback ) { - // TinyMCE view for [embed] will parse this - $html = '[embed]' . $src . '[/embed]'; - } elseif ( $link_text ) { - $html = '' . $link_text . ''; - } else { - $html = ''; - } - - // Figure out what filter to run: - $type = 'file'; - if ( ( $ext = preg_replace( '/^.+?\.([^.]+)$/', '$1', $src ) ) && ( $ext_type = wp_ext2type( $ext ) ) - && ( 'audio' == $ext_type || 'video' == $ext_type ) ) - $type = $ext_type; - - /** This filter is documented in wp-admin/includes/media.php */ - $html = apply_filters( $type . '_send_to_editor_url', $html, $src, $link_text ); - - wp_send_json_success( $html ); -} - -/** - * Ajax handler for the Heartbeat API. - * - * Runs when the user is logged in. - * - * @since 3.6.0 - */ -function wp_ajax_heartbeat() { - if ( empty( $_POST['_nonce'] ) ) { - wp_send_json_error(); - } - - $response = $data = array(); - $nonce_state = wp_verify_nonce( $_POST['_nonce'], 'heartbeat-nonce' ); - - // screen_id is the same as $current_screen->id and the JS global 'pagenow'. - if ( ! empty( $_POST['screen_id'] ) ) { - $screen_id = sanitize_key($_POST['screen_id']); - } else { - $screen_id = 'front'; - } - - if ( ! empty( $_POST['data'] ) ) { - $data = wp_unslash( (array) $_POST['data'] ); - } - - if ( 1 !== $nonce_state ) { - $response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id ); - - if ( false === $nonce_state ) { - // User is logged in but nonces have expired. - $response['nonces_expired'] = true; - wp_send_json( $response ); - } - } - - if ( ! empty( $data ) ) { - /** - * Filter the Heartbeat response received. - * - * @since 3.6.0 - * - * @param array|object $response The Heartbeat response object or array. - * @param array $data The $_POST data sent. - * @param string $screen_id The screen id. - */ - $response = apply_filters( 'heartbeat_received', $response, $data, $screen_id ); - } - - /** - * Filter the Heartbeat response sent. - * - * @since 3.6.0 - * - * @param array|object $response The Heartbeat response object or array. - * @param string $screen_id The screen id. - */ - $response = apply_filters( 'heartbeat_send', $response, $screen_id ); - - /** - * Fires when Heartbeat ticks in logged-in environments. - * - * Allows the transport to be easily replaced with long-polling. - * - * @since 3.6.0 - * - * @param array|object $response The Heartbeat response object or array. - * @param string $screen_id The screen id. - */ - do_action( 'heartbeat_tick', $response, $screen_id ); - - // Send the current time according to the server - $response['server_time'] = time(); - - wp_send_json( $response ); -} - -/** - * Ajax handler for getting revision diffs. - * - * @since 3.6.0 - */ -function wp_ajax_get_revision_diffs() { - require ABSPATH . 'wp-admin/includes/revision.php'; - - if ( ! $post = get_post( (int) $_REQUEST['post_id'] ) ) - wp_send_json_error(); - - if ( ! current_user_can( 'read_post', $post->ID ) ) - wp_send_json_error(); - - // Really just pre-loading the cache here. - if ( ! $revisions = wp_get_post_revisions( $post->ID, array( 'check_enabled' => false ) ) ) - wp_send_json_error(); - - $return = array(); - @set_time_limit( 0 ); - - foreach ( $_REQUEST['compare'] as $compare_key ) { - list( $compare_from, $compare_to ) = explode( ':', $compare_key ); // from:to - - $return[] = array( - 'id' => $compare_key, - 'fields' => wp_get_revision_ui_diff( $post, $compare_from, $compare_to ), - ); - } - wp_send_json_success( $return ); -} - -/** - * Ajax handler for auto-saving the selected color scheme for - * a user's own profile. - * - * @since 3.8.0 - * - * @global array $_wp_admin_css_colors - */ -function wp_ajax_save_user_color_scheme() { - global $_wp_admin_css_colors; - - check_ajax_referer( 'save-color-scheme', 'nonce' ); - - $color_scheme = sanitize_key( $_POST['color_scheme'] ); - - if ( ! isset( $_wp_admin_css_colors[ $color_scheme ] ) ) { - wp_send_json_error(); - } - - $previous_color_scheme = get_user_meta( get_current_user_id(), 'admin_color', true ); - update_user_meta( get_current_user_id(), 'admin_color', $color_scheme ); - - wp_send_json_success( array( - 'previousScheme' => 'admin-color-' . $previous_color_scheme, - 'currentScheme' => 'admin-color-' . $color_scheme - ) ); -} - -/** - * Ajax handler for getting themes from themes_api(). - * - * @since 3.9.0 - * - * @global array $themes_allowedtags - * @global array $theme_field_defaults - */ -function wp_ajax_query_themes() { - global $themes_allowedtags, $theme_field_defaults; - - if ( ! current_user_can( 'install_themes' ) ) { - wp_send_json_error(); - } - - $args = wp_parse_args( wp_unslash( $_REQUEST['request'] ), array( - 'per_page' => 20, - 'fields' => $theme_field_defaults - ) ); - - $old_filter = isset( $args['browse'] ) ? $args['browse'] : 'search'; - - /** This filter is documented in wp-admin/includes/class-wp-theme-install-list-table.php */ - $args = apply_filters( 'install_themes_table_api_args_' . $old_filter, $args ); - - $api = themes_api( 'query_themes', $args ); - - if ( is_wp_error( $api ) ) { - wp_send_json_error(); - } - - $update_php = network_admin_url( 'update.php?action=install-theme' ); - foreach ( $api->themes as &$theme ) { - $theme->install_url = add_query_arg( array( - 'theme' => $theme->slug, - '_wpnonce' => wp_create_nonce( 'install-theme_' . $theme->slug ) - ), $update_php ); - - $theme->name = wp_kses( $theme->name, $themes_allowedtags ); - $theme->author = wp_kses( $theme->author, $themes_allowedtags ); - $theme->version = wp_kses( $theme->version, $themes_allowedtags ); - $theme->description = wp_kses( $theme->description, $themes_allowedtags ); - $theme->num_ratings = sprintf( _n( '(based on %s rating)', '(based on %s ratings)', $theme->num_ratings ), number_format_i18n( $theme->num_ratings ) ); - $theme->preview_url = set_url_scheme( $theme->preview_url ); - } - - wp_send_json_success( $api ); -} - -/** - * Apply [embed] AJAX handlers to a string. - * - * @since 4.0.0 - * - * @global WP_Post $post Global $post. - * @global WP_Embed $wp_embed Embed API instance. - * @global WP_Scripts $wp_scripts - */ -function wp_ajax_parse_embed() { - global $post, $wp_embed; - - if ( ! $post = get_post( (int) $_POST['post_ID'] ) ) { - wp_send_json_error(); - } - - if ( empty( $_POST['shortcode'] ) || ! current_user_can( 'edit_post', $post->ID ) ) { - wp_send_json_error(); - } - - $shortcode = wp_unslash( $_POST['shortcode'] ); - - preg_match( '/' . get_shortcode_regex() . '/s', $shortcode, $matches ); - $atts = shortcode_parse_atts( $matches[3] ); - if ( ! empty( $matches[5] ) ) { - $url = $matches[5]; - } elseif ( ! empty( $atts['src'] ) ) { - $url = $atts['src']; - } else { - $url = ''; - } - - $parsed = false; - setup_postdata( $post ); - - $wp_embed->return_false_on_fail = true; - - if ( is_ssl() && 0 === strpos( $url, 'http://' ) ) { - // Admin is ssl and the user pasted non-ssl URL. - // Check if the provider supports ssl embeds and use that for the preview. - $ssl_shortcode = preg_replace( '%^(\\[embed[^\\]]*\\])http://%i', '$1https://', $shortcode ); - $parsed = $wp_embed->run_shortcode( $ssl_shortcode ); - - if ( ! $parsed ) { - $no_ssl_support = true; - } - } - - if ( $url && ! $parsed ) { - $parsed = $wp_embed->run_shortcode( $shortcode ); - } - - if ( ! $parsed ) { - wp_send_json_error( array( - 'type' => 'not-embeddable', - 'message' => sprintf( __( '%s failed to embed.' ), '' . esc_html( $url ) . '' ), - ) ); - } - - if ( has_shortcode( $parsed, 'audio' ) || has_shortcode( $parsed, 'video' ) ) { - $styles = ''; - $mce_styles = wpview_media_sandbox_styles(); - foreach ( $mce_styles as $style ) { - $styles .= sprintf( '', $style ); - } - - $html = do_shortcode( $parsed ); - - global $wp_scripts; - if ( ! empty( $wp_scripts ) ) { - $wp_scripts->done = array(); - } - ob_start(); - wp_print_scripts( 'wp-mediaelement' ); - $scripts = ob_get_clean(); - - $parsed = $styles . $html . $scripts; - } - - - if ( ! empty( $no_ssl_support ) || ( is_ssl() && ( preg_match( '%<(iframe|script|embed) [^>]*src="http://%', $parsed ) || - preg_match( '%]*href="http://%', $parsed ) ) ) ) { - // Admin is ssl and the embed is not. Iframes, scripts, and other "active content" will be blocked. - wp_send_json_error( array( - 'type' => 'not-ssl', - 'message' => __( 'This preview is unavailable in the editor.' ), - ) ); - } - - wp_send_json_success( array( - 'body' => $parsed, - 'attr' => $wp_embed->last_attr - ) ); -} - -/** - * @since 4.0.0 - * - * @global WP_Post $post - * @global WP_Scripts $wp_scripts - */ -function wp_ajax_parse_media_shortcode() { - global $post, $wp_scripts; - - if ( empty( $_POST['shortcode'] ) ) { - wp_send_json_error(); - } - - $shortcode = wp_unslash( $_POST['shortcode'] ); - - if ( ! empty( $_POST['post_ID'] ) ) { - $post = get_post( (int) $_POST['post_ID'] ); - } - - // the embed shortcode requires a post - if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) { - if ( 'embed' === $shortcode ) { - wp_send_json_error(); - } - } else { - setup_postdata( $post ); - } - - $parsed = do_shortcode( $shortcode ); - - if ( empty( $parsed ) ) { - wp_send_json_error( array( - 'type' => 'no-items', - 'message' => __( 'No items found.' ), - ) ); - } - - $head = ''; - $styles = wpview_media_sandbox_styles(); - - foreach ( $styles as $style ) { - $head .= ''; - } - - if ( ! empty( $wp_scripts ) ) { - $wp_scripts->done = array(); - } - - ob_start(); - - echo $parsed; - - if ( 'playlist' === $_REQUEST['type'] ) { - wp_underscore_playlist_templates(); - - wp_print_scripts( 'wp-playlist' ); - } else { - wp_print_scripts( array( 'froogaloop', 'wp-mediaelement' ) ); - } - - wp_send_json_success( array( - 'head' => $head, - 'body' => ob_get_clean() - ) ); -} - -/** - * AJAX handler for destroying multiple open sessions for a user. - * - * @since 4.1.0 - */ -function wp_ajax_destroy_sessions() { - $user = get_userdata( (int) $_POST['user_id'] ); - if ( $user ) { - if ( ! current_user_can( 'edit_user', $user->ID ) ) { - $user = false; - } elseif ( ! wp_verify_nonce( $_POST['nonce'], 'update-user_' . $user->ID ) ) { - $user = false; - } - } - - if ( ! $user ) { - wp_send_json_error( array( - 'message' => __( 'Could not log out user sessions. Please try again.' ), - ) ); - } - - $sessions = WP_Session_Tokens::get_instance( $user->ID ); - - if ( $user->ID === get_current_user_id() ) { - $sessions->destroy_others( wp_get_session_token() ); - $message = __( 'You are now logged out everywhere else.' ); - } else { - $sessions->destroy_all(); - /* translators: 1: User's display name. */ - $message = sprintf( __( '%s has been logged out.' ), $user->display_name ); - } - - wp_send_json_success( array( 'message' => $message ) ); -} - - -/** - * AJAX handler for updating a plugin. - * - * @since 4.2.0 - * - * @see Plugin_Upgrader - */ -function wp_ajax_update_plugin() { - global $wp_filesystem; - - $plugin = urldecode( $_POST['plugin'] ); - - $status = array( - 'update' => 'plugin', - 'plugin' => $plugin, - 'slug' => sanitize_key( $_POST['slug'] ), - 'oldVersion' => '', - 'newVersion' => '', - ); - - $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ); - if ( $plugin_data['Version'] ) { - $status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); - } - - if ( ! current_user_can( 'update_plugins' ) ) { - $status['error'] = __( 'You do not have sufficient permissions to update plugins for this site.' ); - wp_send_json_error( $status ); - } - - check_ajax_referer( 'updates' ); - - include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); - - wp_update_plugins(); - - $skin = new Automatic_Upgrader_Skin(); - $upgrader = new Plugin_Upgrader( $skin ); - $result = $upgrader->bulk_upgrade( array( $plugin ) ); - - if ( is_array( $result ) && empty( $result[$plugin] ) && is_wp_error( $skin->result ) ) { - $result = $skin->result; - } - - if ( is_array( $result ) && !empty( $result[ $plugin ] ) ) { - $plugin_update_data = current( $result ); - - /* - * If the `update_plugins` site transient is empty (e.g. when you update - * two plugins in quick succession before the transient repopulates), - * this may be the return. - * - * Preferably something can be done to ensure `update_plugins` isn't empty. - * For now, surface some sort of error here. - */ - if ( $plugin_update_data === true ) { - wp_send_json_error( $status ); - } - - $plugin_data = get_plugins( '/' . $result[ $plugin ]['destination_name'] ); - $plugin_data = reset( $plugin_data ); - - if ( $plugin_data['Version'] ) { - $status['newVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); - } - - wp_send_json_success( $status ); - } else if ( is_wp_error( $result ) ) { - $status['error'] = $result->get_error_message(); - wp_send_json_error( $status ); - - } else if ( is_bool( $result ) && ! $result ) { - $status['errorCode'] = 'unable_to_connect_to_filesystem'; - $status['error'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' ); - - // Pass through the error from WP_Filesystem if one was raised - if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->get_error_code() ) { - $status['error'] = $wp_filesystem->errors->get_error_message(); - } - - wp_send_json_error( $status ); - - } -} - -/** - * AJAX handler for saving a post from Press This. - * - * @since 4.2.0 - * - * @global WP_Press_This $wp_press_this - */ -function wp_ajax_press_this_save_post() { - if ( empty( $GLOBALS['wp_press_this'] ) ) { - include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' ); - } - - $GLOBALS['wp_press_this']->save_post(); -} - -/** - * AJAX handler for creating new category from Press This. - * - * @since 4.2.0 - * - * @global WP_Press_This $wp_press_this - */ -function wp_ajax_press_this_add_category() { - if ( empty( $GLOBALS['wp_press_this'] ) ) { - include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' ); - } - - $GLOBALS['wp_press_this']->add_category(); -} - -/** - * AJAX handler for cropping an image. - * - * @since 4.3.0 - * - * @global WP_Site_Icon $wp_site_icon - */ -function wp_ajax_crop_image() { - $attachment_id = absint( $_POST['id'] ); - - check_ajax_referer( 'image_editor-' . $attachment_id, 'nonce' ); - if ( ! current_user_can( 'customize' ) ) { - wp_send_json_error(); - } - - $context = str_replace( '_', '-', $_POST['context'] ); - $data = array_map( 'absint', $_POST['cropDetails'] ); - $cropped = wp_crop_image( $attachment_id, $data['x1'], $data['y1'], $data['width'], $data['height'], $data['dst_width'], $data['dst_height'] ); - - if ( ! $cropped || is_wp_error( $cropped ) ) { - wp_send_json_error( array( 'message' => __( 'Image could not be processed.' ) ) ); - } - - switch ( $context ) { - case 'site-icon': - require_once ABSPATH . '/wp-admin/includes/class-wp-site-icon.php'; - global $wp_site_icon; - - // Skip creating a new attachment if the attachment is a Site Icon. - if ( get_post_meta( $attachment_id, '_wp_attachment_context', true ) == $context ) { - - // Delete the temporary cropped file, we don't need it. - wp_delete_file( $cropped ); - - // Additional sizes in wp_prepare_attachment_for_js(). - add_filter( 'image_size_names_choose', array( $wp_site_icon, 'additional_sizes' ) ); - break; - } - - /** This filter is documented in wp-admin/custom-header.php */ - $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. - $object = $wp_site_icon->create_attachment_object( $cropped, $attachment_id ); - unset( $object['ID'] ); - - // Update the attachment. - add_filter( 'intermediate_image_sizes_advanced', array( $wp_site_icon, 'additional_sizes' ) ); - $attachment_id = $wp_site_icon->insert_attachment( $object, $cropped ); - remove_filter( 'intermediate_image_sizes_advanced', array( $wp_site_icon, 'additional_sizes' ) ); - - // Additional sizes in wp_prepare_attachment_for_js(). - add_filter( 'image_size_names_choose', array( $wp_site_icon, 'additional_sizes' ) ); - break; - - default: - - /** - * Fires before a cropped image is saved. - * - * Allows to add filters to modify the way a cropped image is saved. - * - * @since 4.3.0 - * - * @param string $context The Customizer control requesting the cropped image. - * @param int $attachment_id The attachment ID of the original image. - * @param string $cropped Path to the cropped image file. - */ - do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped ); - - /** This filter is documented in wp-admin/custom-header.php */ - $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. - - $parent_url = get_post( $attachment_id )->guid; - $url = str_replace( basename( $parent_url ), basename( $cropped ), $parent_url ); - - $size = @getimagesize( $cropped ); - $image_type = ( $size ) ? $size['mime'] : 'image/jpeg'; - - $object = array( - 'post_title' => basename( $cropped ), - 'post_content' => $url, - 'post_mime_type' => $image_type, - 'guid' => $url, - 'context' => $context, - ); - - $attachment_id = wp_insert_attachment( $object, $cropped ); - $metadata = wp_generate_attachment_metadata( $attachment_id, $cropped ); - - /** - * Filter the cropped image attachment metadata. - * - * @since 4.3.0 - * - * @see wp_generate_attachment_metadata() - * - * @param array $metadata Attachment metadata. - */ - $metadata = apply_filters( 'wp_ajax_cropped_attachment_metadata', $metadata ); - wp_update_attachment_metadata( $attachment_id, $metadata ); - - /** - * Filter the attachment ID for a cropped image. - * - * @since 4.3.0 - * - * @param int $attachment_id The attachment ID of the cropped image. - * @param string $context The Customizer control requesting the cropped image. - */ - $attachment_id = apply_filters( 'wp_ajax_cropped_attachment_id', $attachment_id, $context ); - } - - wp_send_json_success( wp_prepare_attachment_for_js( $attachment_id ) ); -} diff --git a/wp-admin/includes/bookmark.php b/wp-admin/includes/bookmark.php deleted file mode 100644 index bdf1d7fa40..0000000000 --- a/wp-admin/includes/bookmark.php +++ /dev/null @@ -1,308 +0,0 @@ -link_url = esc_url( wp_unslash( $_GET['linkurl'] ) ); - else - $link->link_url = ''; - - if ( isset( $_GET['name'] ) ) - $link->link_name = esc_attr( wp_unslash( $_GET['name'] ) ); - else - $link->link_name = ''; - - $link->link_visible = 'Y'; - - return $link; -} - -/** - * Delete link specified from database. - * - * @since 2.0.0 - * - * @global wpdb $wpdb - * - * @param int $link_id ID of the link to delete - * @return true - */ -function wp_delete_link( $link_id ) { - global $wpdb; - /** - * Fires before a link is deleted. - * - * @since 2.0.0 - * - * @param int $link_id ID of the link to delete. - */ - do_action( 'delete_link', $link_id ); - - wp_delete_object_term_relationships( $link_id, 'link_category' ); - - $wpdb->delete( $wpdb->links, array( 'link_id' => $link_id ) ); - /** - * Fires after a link has been deleted. - * - * @since 2.2.0 - * - * @param int $link_id ID of the deleted link. - */ - do_action( 'deleted_link', $link_id ); - - clean_bookmark_cache( $link_id ); - - return true; -} - -/** - * Retrieves the link categories associated with the link specified. - * - * @since 2.1.0 - * - * @param int $link_id Link ID to look up - * @return array The requested link's categories - */ -function wp_get_link_cats( $link_id = 0 ) { - $cats = wp_get_object_terms( $link_id, 'link_category', array('fields' => 'ids') ); - return array_unique( $cats ); -} - -/** - * Retrieve link data based on ID. - * - * @since 2.0.0 - * - * @param int $link_id ID of link to retrieve - * @return object Link for editing - */ -function get_link_to_edit( $link_id ) { - return get_bookmark( $link_id, OBJECT, 'edit' ); -} - -/** - * This function inserts/updates links into/in the database. - * - * @since 2.0.0 - * - * @global wpdb $wpdb - * - * @param array $linkdata Elements that make up the link to insert. - * @param bool $wp_error Optional. If true return WP_Error object on failure. - * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success. - */ -function wp_insert_link( $linkdata, $wp_error = false ) { - global $wpdb; - - $defaults = array( 'link_id' => 0, 'link_name' => '', 'link_url' => '', 'link_rating' => 0 ); - - $args = wp_parse_args( $linkdata, $defaults ); - $r = wp_unslash( sanitize_bookmark( $args, 'db' ) ); - - $link_id = $r['link_id']; - $link_name = $r['link_name']; - $link_url = $r['link_url']; - - $update = false; - if ( ! empty( $link_id ) ) { - $update = true; - } - - if ( trim( $link_name ) == '' ) { - if ( trim( $link_url ) != '' ) { - $link_name = $link_url; - } else { - return 0; - } - } - - if ( trim( $link_url ) == '' ) { - return 0; - } - - $link_rating = ( ! empty( $r['link_rating'] ) ) ? $r['link_rating'] : 0; - $link_image = ( ! empty( $r['link_image'] ) ) ? $r['link_image'] : ''; - $link_target = ( ! empty( $r['link_target'] ) ) ? $r['link_target'] : ''; - $link_visible = ( ! empty( $r['link_visible'] ) ) ? $r['link_visible'] : 'Y'; - $link_owner = ( ! empty( $r['link_owner'] ) ) ? $r['link_owner'] : get_current_user_id(); - $link_notes = ( ! empty( $r['link_notes'] ) ) ? $r['link_notes'] : ''; - $link_description = ( ! empty( $r['link_description'] ) ) ? $r['link_description'] : ''; - $link_rss = ( ! empty( $r['link_rss'] ) ) ? $r['link_rss'] : ''; - $link_rel = ( ! empty( $r['link_rel'] ) ) ? $r['link_rel'] : ''; - $link_category = ( ! empty( $r['link_category'] ) ) ? $r['link_category'] : array(); - - // Make sure we set a valid category - if ( ! is_array( $link_category ) || 0 == count( $link_category ) ) { - $link_category = array( get_option( 'default_link_category' ) ); - } - - if ( $update ) { - if ( false === $wpdb->update( $wpdb->links, compact( 'link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_rating', 'link_rel', 'link_notes', 'link_rss' ), compact( 'link_id' ) ) ) { - if ( $wp_error ) { - return new WP_Error( 'db_update_error', __( 'Could not update link in the database' ), $wpdb->last_error ); - } else { - return 0; - } - } - } else { - if ( false === $wpdb->insert( $wpdb->links, compact( 'link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_owner', 'link_rating', 'link_rel', 'link_notes', 'link_rss' ) ) ) { - if ( $wp_error ) { - return new WP_Error( 'db_insert_error', __( 'Could not insert link into the database' ), $wpdb->last_error ); - } else { - return 0; - } - } - $link_id = (int) $wpdb->insert_id; - } - - wp_set_link_cats( $link_id, $link_category ); - - if ( $update ) { - /** - * Fires after a link was updated in the database. - * - * @since 2.0.0 - * - * @param int $link_id ID of the link that was updated. - */ - do_action( 'edit_link', $link_id ); - } else { - /** - * Fires after a link was added to the database. - * - * @since 2.0.0 - * - * @param int $link_id ID of the link that was added. - */ - do_action( 'add_link', $link_id ); - } - clean_bookmark_cache( $link_id ); - - return $link_id; -} - -/** - * Update link with the specified link categories. - * - * @since 2.1.0 - * - * @param int $link_id ID of link to update - * @param array $link_categories Array of categories to - */ -function wp_set_link_cats( $link_id = 0, $link_categories = array() ) { - // If $link_categories isn't already an array, make it one: - if ( !is_array( $link_categories ) || 0 == count( $link_categories ) ) - $link_categories = array( get_option( 'default_link_category' ) ); - - $link_categories = array_map( 'intval', $link_categories ); - $link_categories = array_unique( $link_categories ); - - wp_set_object_terms( $link_id, $link_categories, 'link_category' ); - - clean_bookmark_cache( $link_id ); -} - -/** - * Update a link in the database. - * - * @since 2.0.0 - * - * @param array $linkdata Link data to update. - * @return int|WP_Error Value 0 or WP_Error on failure. The updated link ID on success. - */ -function wp_update_link( $linkdata ) { - $link_id = (int) $linkdata['link_id']; - - $link = get_bookmark( $link_id, ARRAY_A ); - - // Escape data pulled from DB. - $link = wp_slash( $link ); - - // Passed link category list overwrites existing category list if not empty. - if ( isset( $linkdata['link_category'] ) && is_array( $linkdata['link_category'] ) - && 0 != count( $linkdata['link_category'] ) ) - $link_cats = $linkdata['link_category']; - else - $link_cats = $link['link_category']; - - // Merge old and new fields with new fields overwriting old ones. - $linkdata = array_merge( $link, $linkdata ); - $linkdata['link_category'] = $link_cats; - - return wp_insert_link( $linkdata ); -} - -/** - * @since 3.5.0 - * @access private - * - * @global string $pagenow - */ -function wp_link_manager_disabled_message() { - global $pagenow; - if ( 'link-manager.php' != $pagenow && 'link-add.php' != $pagenow && 'link.php' != $pagenow ) - return; - - add_filter( 'pre_option_link_manager_enabled', '__return_true', 100 ); - $really_can_manage_links = current_user_can( 'manage_links' ); - remove_filter( 'pre_option_link_manager_enabled', '__return_true', 100 ); - - if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) { - $link = network_admin_url( 'plugin-install.php?tab=search&s=Link+Manager' ); - wp_die( sprintf( __( 'If you are looking to use the link manager, please install the Link Manager plugin.' ), $link ) ); - } - - wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) ); -} diff --git a/wp-admin/includes/class-ftp-pure.php b/wp-admin/includes/class-ftp-pure.php deleted file mode 100644 index 7146c9626d..0000000000 --- a/wp-admin/includes/class-ftp-pure.php +++ /dev/null @@ -1,190 +0,0 @@ -__construct($verb, $le); - } - -// -// -// - - function _settimeout($sock) { - if(!@stream_set_timeout($sock, $this->_timeout)) { - $this->PushError('_settimeout','socket set send timeout'); - $this->_quit(); - return FALSE; - } - return TRUE; - } - - function _connect($host, $port) { - $this->SendMSG("Creating socket"); - $sock = @fsockopen($host, $port, $errno, $errstr, $this->_timeout); - if (!$sock) { - $this->PushError('_connect','socket connect failed', $errstr." (".$errno.")"); - return FALSE; - } - $this->_connected=true; - return $sock; - } - - function _readmsg($fnction="_readmsg"){ - if(!$this->_connected) { - $this->PushError($fnction, 'Connect first'); - return FALSE; - } - $result=true; - $this->_message=""; - $this->_code=0; - $go=true; - do { - $tmp=@fgets($this->_ftp_control_sock, 512); - if($tmp===false) { - $go=$result=false; - $this->PushError($fnction,'Read failed'); - } else { - $this->_message.=$tmp; - if(preg_match("/^([0-9]{3})(-(.*[".CRLF."]{1,2})+\\1)? [^".CRLF."]+[".CRLF."]{1,2}$/", $this->_message, $regs)) $go=false; - } - } while($go); - if($this->LocalEcho) echo "GET < ".rtrim($this->_message, CRLF).CRLF; - $this->_code=(int)$regs[1]; - return $result; - } - - function _exec($cmd, $fnction="_exec") { - if(!$this->_ready) { - $this->PushError($fnction,'Connect first'); - return FALSE; - } - if($this->LocalEcho) echo "PUT > ",$cmd,CRLF; - $status=@fputs($this->_ftp_control_sock, $cmd.CRLF); - if($status===false) { - $this->PushError($fnction,'socket write failed'); - return FALSE; - } - $this->_lastaction=time(); - if(!$this->_readmsg($fnction)) return FALSE; - return TRUE; - } - - function _data_prepare($mode=FTP_ASCII) { - if(!$this->_settype($mode)) return FALSE; - if($this->_passive) { - if(!$this->_exec("PASV", "pasv")) { - $this->_data_close(); - return FALSE; - } - if(!$this->_checkCode()) { - $this->_data_close(); - return FALSE; - } - $ip_port = explode(",", ereg_replace("^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*".CRLF."$", "\\1", $this->_message)); - $this->_datahost=$ip_port[0].".".$ip_port[1].".".$ip_port[2].".".$ip_port[3]; - $this->_dataport=(((int)$ip_port[4])<<8) + ((int)$ip_port[5]); - $this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport); - $this->_ftp_data_sock=@fsockopen($this->_datahost, $this->_dataport, $errno, $errstr, $this->_timeout); - if(!$this->_ftp_data_sock) { - $this->PushError("_data_prepare","fsockopen fails", $errstr." (".$errno.")"); - $this->_data_close(); - return FALSE; - } - else $this->_ftp_data_sock; - } else { - $this->SendMSG("Only passive connections available!"); - return FALSE; - } - return TRUE; - } - - function _data_read($mode=FTP_ASCII, $fp=NULL) { - if(is_resource($fp)) $out=0; - else $out=""; - if(!$this->_passive) { - $this->SendMSG("Only passive connections available!"); - return FALSE; - } - while (!feof($this->_ftp_data_sock)) { - $block=fread($this->_ftp_data_sock, $this->_ftp_buff_size); - if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_local], $block); - if(is_resource($fp)) $out+=fwrite($fp, $block, strlen($block)); - else $out.=$block; - } - return $out; - } - - function _data_write($mode=FTP_ASCII, $fp=NULL) { - if(is_resource($fp)) $out=0; - else $out=""; - if(!$this->_passive) { - $this->SendMSG("Only passive connections available!"); - return FALSE; - } - if(is_resource($fp)) { - while(!feof($fp)) { - $block=fread($fp, $this->_ftp_buff_size); - if(!$this->_data_write_block($mode, $block)) return false; - } - } elseif(!$this->_data_write_block($mode, $fp)) return false; - return TRUE; - } - - function _data_write_block($mode, $block) { - if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_remote], $block); - do { - if(($t=@fwrite($this->_ftp_data_sock, $block))===FALSE) { - $this->PushError("_data_write","Can't write to socket"); - return FALSE; - } - $block=substr($block, $t); - } while(!empty($block)); - return true; - } - - function _data_close() { - @fclose($this->_ftp_data_sock); - $this->SendMSG("Disconnected data from remote host"); - return TRUE; - } - - function _quit($force=FALSE) { - if($this->_connected or $force) { - @fclose($this->_ftp_control_sock); - $this->_connected=false; - $this->SendMSG("Socket closed"); - } - } -} - -?> diff --git a/wp-admin/includes/class-ftp-sockets.php b/wp-admin/includes/class-ftp-sockets.php deleted file mode 100644 index 6bf94ebd94..0000000000 --- a/wp-admin/includes/class-ftp-sockets.php +++ /dev/null @@ -1,250 +0,0 @@ -__construct($verb, $le); - } - -// -// -// - - function _settimeout($sock) { - if(!@socket_set_option($sock, SOL_SOCKET, SO_RCVTIMEO, array("sec"=>$this->_timeout, "usec"=>0))) { - $this->PushError('_connect','socket set receive timeout',socket_strerror(socket_last_error($sock))); - @socket_close($sock); - return FALSE; - } - if(!@socket_set_option($sock, SOL_SOCKET , SO_SNDTIMEO, array("sec"=>$this->_timeout, "usec"=>0))) { - $this->PushError('_connect','socket set send timeout',socket_strerror(socket_last_error($sock))); - @socket_close($sock); - return FALSE; - } - return true; - } - - function _connect($host, $port) { - $this->SendMSG("Creating socket"); - if(!($sock = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP))) { - $this->PushError('_connect','socket create failed',socket_strerror(socket_last_error($sock))); - return FALSE; - } - if(!$this->_settimeout($sock)) return FALSE; - $this->SendMSG("Connecting to \"".$host.":".$port."\""); - if (!($res = @socket_connect($sock, $host, $port))) { - $this->PushError('_connect','socket connect failed',socket_strerror(socket_last_error($sock))); - @socket_close($sock); - return FALSE; - } - $this->_connected=true; - return $sock; - } - - function _readmsg($fnction="_readmsg"){ - if(!$this->_connected) { - $this->PushError($fnction,'Connect first'); - return FALSE; - } - $result=true; - $this->_message=""; - $this->_code=0; - $go=true; - do { - $tmp=@socket_read($this->_ftp_control_sock, 4096, PHP_BINARY_READ); - if($tmp===false) { - $go=$result=false; - $this->PushError($fnction,'Read failed', socket_strerror(socket_last_error($this->_ftp_control_sock))); - } else { - $this->_message.=$tmp; - $go = !preg_match("/^([0-9]{3})(-.+\\1)? [^".CRLF."]+".CRLF."$/Us", $this->_message, $regs); - } - } while($go); - if($this->LocalEcho) echo "GET < ".rtrim($this->_message, CRLF).CRLF; - $this->_code=(int)$regs[1]; - return $result; - } - - function _exec($cmd, $fnction="_exec") { - if(!$this->_ready) { - $this->PushError($fnction,'Connect first'); - return FALSE; - } - if($this->LocalEcho) echo "PUT > ",$cmd,CRLF; - $status=@socket_write($this->_ftp_control_sock, $cmd.CRLF); - if($status===false) { - $this->PushError($fnction,'socket write failed', socket_strerror(socket_last_error($this->stream))); - return FALSE; - } - $this->_lastaction=time(); - if(!$this->_readmsg($fnction)) return FALSE; - return TRUE; - } - - function _data_prepare($mode=FTP_ASCII) { - if(!$this->_settype($mode)) return FALSE; - $this->SendMSG("Creating data socket"); - $this->_ftp_data_sock = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP); - if ($this->_ftp_data_sock < 0) { - $this->PushError('_data_prepare','socket create failed',socket_strerror(socket_last_error($this->_ftp_data_sock))); - return FALSE; - } - if(!$this->_settimeout($this->_ftp_data_sock)) { - $this->_data_close(); - return FALSE; - } - if($this->_passive) { - if(!$this->_exec("PASV", "pasv")) { - $this->_data_close(); - return FALSE; - } - if(!$this->_checkCode()) { - $this->_data_close(); - return FALSE; - } - $ip_port = explode(",", ereg_replace("^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*".CRLF."$", "\\1", $this->_message)); - $this->_datahost=$ip_port[0].".".$ip_port[1].".".$ip_port[2].".".$ip_port[3]; - $this->_dataport=(((int)$ip_port[4])<<8) + ((int)$ip_port[5]); - $this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport); - if(!@socket_connect($this->_ftp_data_sock, $this->_datahost, $this->_dataport)) { - $this->PushError("_data_prepare","socket_connect", socket_strerror(socket_last_error($this->_ftp_data_sock))); - $this->_data_close(); - return FALSE; - } - else $this->_ftp_temp_sock=$this->_ftp_data_sock; - } else { - if(!@socket_getsockname($this->_ftp_control_sock, $addr, $port)) { - $this->PushError("_data_prepare","can't get control socket information", socket_strerror(socket_last_error($this->_ftp_control_sock))); - $this->_data_close(); - return FALSE; - } - if(!@socket_bind($this->_ftp_data_sock,$addr)){ - $this->PushError("_data_prepare","can't bind data socket", socket_strerror(socket_last_error($this->_ftp_data_sock))); - $this->_data_close(); - return FALSE; - } - if(!@socket_listen($this->_ftp_data_sock)) { - $this->PushError("_data_prepare","can't listen data socket", socket_strerror(socket_last_error($this->_ftp_data_sock))); - $this->_data_close(); - return FALSE; - } - if(!@socket_getsockname($this->_ftp_data_sock, $this->_datahost, $this->_dataport)) { - $this->PushError("_data_prepare","can't get data socket information", socket_strerror(socket_last_error($this->_ftp_data_sock))); - $this->_data_close(); - return FALSE; - } - if(!$this->_exec('PORT '.str_replace('.',',',$this->_datahost.'.'.($this->_dataport>>8).'.'.($this->_dataport&0x00FF)), "_port")) { - $this->_data_close(); - return FALSE; - } - if(!$this->_checkCode()) { - $this->_data_close(); - return FALSE; - } - } - return TRUE; - } - - function _data_read($mode=FTP_ASCII, $fp=NULL) { - $NewLine=$this->_eol_code[$this->OS_local]; - if(is_resource($fp)) $out=0; - else $out=""; - if(!$this->_passive) { - $this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport); - $this->_ftp_temp_sock=socket_accept($this->_ftp_data_sock); - if($this->_ftp_temp_sock===FALSE) { - $this->PushError("_data_read","socket_accept", socket_strerror(socket_last_error($this->_ftp_temp_sock))); - $this->_data_close(); - return FALSE; - } - } - - while(($block=@socket_read($this->_ftp_temp_sock, $this->_ftp_buff_size, PHP_BINARY_READ))!==false) { - if($block==="") break; - if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_local], $block); - if(is_resource($fp)) $out+=fwrite($fp, $block, strlen($block)); - else $out.=$block; - } - return $out; - } - - function _data_write($mode=FTP_ASCII, $fp=NULL) { - $NewLine=$this->_eol_code[$this->OS_local]; - if(is_resource($fp)) $out=0; - else $out=""; - if(!$this->_passive) { - $this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport); - $this->_ftp_temp_sock=socket_accept($this->_ftp_data_sock); - if($this->_ftp_temp_sock===FALSE) { - $this->PushError("_data_write","socket_accept", socket_strerror(socket_last_error($this->_ftp_temp_sock))); - $this->_data_close(); - return false; - } - } - if(is_resource($fp)) { - while(!feof($fp)) { - $block=fread($fp, $this->_ftp_buff_size); - if(!$this->_data_write_block($mode, $block)) return false; - } - } elseif(!$this->_data_write_block($mode, $fp)) return false; - return true; - } - - function _data_write_block($mode, $block) { - if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_remote], $block); - do { - if(($t=@socket_write($this->_ftp_temp_sock, $block))===FALSE) { - $this->PushError("_data_write","socket_write", socket_strerror(socket_last_error($this->_ftp_temp_sock))); - $this->_data_close(); - return FALSE; - } - $block=substr($block, $t); - } while(!empty($block)); - return true; - } - - function _data_close() { - @socket_close($this->_ftp_temp_sock); - @socket_close($this->_ftp_data_sock); - $this->SendMSG("Disconnected data from remote host"); - return TRUE; - } - - function _quit() { - if($this->_connected) { - @socket_close($this->_ftp_control_sock); - $this->_connected=false; - $this->SendMSG("Socket closed"); - } - } -} -?> diff --git a/wp-admin/includes/class-ftp.php b/wp-admin/includes/class-ftp.php deleted file mode 100644 index c9d965649c..0000000000 --- a/wp-admin/includes/class-ftp.php +++ /dev/null @@ -1,906 +0,0 @@ -LocalEcho=$le; - $this->Verbose=$verb; - $this->_lastaction=NULL; - $this->_error_array=array(); - $this->_eol_code=array(FTP_OS_Unix=>"\n", FTP_OS_Mac=>"\r", FTP_OS_Windows=>"\r\n"); - $this->AuthorizedTransferMode=array(FTP_AUTOASCII, FTP_ASCII, FTP_BINARY); - $this->OS_FullName=array(FTP_OS_Unix => 'UNIX', FTP_OS_Windows => 'WINDOWS', FTP_OS_Mac => 'MACOS'); - $this->AutoAsciiExt=array("ASP","BAT","C","CPP","CSS","CSV","JS","H","HTM","HTML","SHTML","INI","LOG","PHP3","PHTML","PL","PERL","SH","SQL","TXT"); - $this->_port_available=($port_mode==TRUE); - $this->SendMSG("Staring FTP client class".($this->_port_available?"":" without PORT mode support")); - $this->_connected=FALSE; - $this->_ready=FALSE; - $this->_can_restore=FALSE; - $this->_code=0; - $this->_message=""; - $this->_ftp_buff_size=4096; - $this->_curtype=NULL; - $this->SetUmask(0022); - $this->SetType(FTP_AUTOASCII); - $this->SetTimeout(30); - $this->Passive(!$this->_port_available); - $this->_login="anonymous"; - $this->_password="anon@ftp.com"; - $this->_features=array(); - $this->OS_local=FTP_OS_Unix; - $this->OS_remote=FTP_OS_Unix; - $this->features=array(); - if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $this->OS_local=FTP_OS_Windows; - elseif(strtoupper(substr(PHP_OS, 0, 3)) === 'MAC') $this->OS_local=FTP_OS_Mac; - } - - function ftp_base($port_mode=FALSE) { - $this->__construct($port_mode); - } - -// -// -// - - function parselisting($line) { - $is_windows = ($this->OS_remote == FTP_OS_Windows); - if ($is_windows && preg_match("/([0-9]{2})-([0-9]{2})-([0-9]{2}) +([0-9]{2}):([0-9]{2})(AM|PM) +([0-9]+|) +(.+)/",$line,$lucifer)) { - $b = array(); - if ($lucifer[3]<70) { $lucifer[3]+=2000; } else { $lucifer[3]+=1900; } // 4digit year fix - $b['isdir'] = ($lucifer[7]==""); - if ( $b['isdir'] ) - $b['type'] = 'd'; - else - $b['type'] = 'f'; - $b['size'] = $lucifer[7]; - $b['month'] = $lucifer[1]; - $b['day'] = $lucifer[2]; - $b['year'] = $lucifer[3]; - $b['hour'] = $lucifer[4]; - $b['minute'] = $lucifer[5]; - $b['time'] = @mktime($lucifer[4]+(strcasecmp($lucifer[6],"PM")==0?12:0),$lucifer[5],0,$lucifer[1],$lucifer[2],$lucifer[3]); - $b['am/pm'] = $lucifer[6]; - $b['name'] = $lucifer[8]; - } else if (!$is_windows && $lucifer=preg_split("/[ ]/",$line,9,PREG_SPLIT_NO_EMPTY)) { - //echo $line."\n"; - $lcount=count($lucifer); - if ($lcount<8) return ''; - $b = array(); - $b['isdir'] = $lucifer[0]{0} === "d"; - $b['islink'] = $lucifer[0]{0} === "l"; - if ( $b['isdir'] ) - $b['type'] = 'd'; - elseif ( $b['islink'] ) - $b['type'] = 'l'; - else - $b['type'] = 'f'; - $b['perms'] = $lucifer[0]; - $b['number'] = $lucifer[1]; - $b['owner'] = $lucifer[2]; - $b['group'] = $lucifer[3]; - $b['size'] = $lucifer[4]; - if ($lcount==8) { - sscanf($lucifer[5],"%d-%d-%d",$b['year'],$b['month'],$b['day']); - sscanf($lucifer[6],"%d:%d",$b['hour'],$b['minute']); - $b['time'] = @mktime($b['hour'],$b['minute'],0,$b['month'],$b['day'],$b['year']); - $b['name'] = $lucifer[7]; - } else { - $b['month'] = $lucifer[5]; - $b['day'] = $lucifer[6]; - if (preg_match("/([0-9]{2}):([0-9]{2})/",$lucifer[7],$l2)) { - $b['year'] = date("Y"); - $b['hour'] = $l2[1]; - $b['minute'] = $l2[2]; - } else { - $b['year'] = $lucifer[7]; - $b['hour'] = 0; - $b['minute'] = 0; - } - $b['time'] = strtotime(sprintf("%d %s %d %02d:%02d",$b['day'],$b['month'],$b['year'],$b['hour'],$b['minute'])); - $b['name'] = $lucifer[8]; - } - } - - return $b; - } - - function SendMSG($message = "", $crlf=true) { - if ($this->Verbose) { - echo $message.($crlf?CRLF:""); - flush(); - } - return TRUE; - } - - function SetType($mode=FTP_AUTOASCII) { - if(!in_array($mode, $this->AuthorizedTransferMode)) { - $this->SendMSG("Wrong type"); - return FALSE; - } - $this->_type=$mode; - $this->SendMSG("Transfer type: ".($this->_type==FTP_BINARY?"binary":($this->_type==FTP_ASCII?"ASCII":"auto ASCII") ) ); - return TRUE; - } - - function _settype($mode=FTP_ASCII) { - if($this->_ready) { - if($mode==FTP_BINARY) { - if($this->_curtype!=FTP_BINARY) { - if(!$this->_exec("TYPE I", "SetType")) return FALSE; - $this->_curtype=FTP_BINARY; - } - } elseif($this->_curtype!=FTP_ASCII) { - if(!$this->_exec("TYPE A", "SetType")) return FALSE; - $this->_curtype=FTP_ASCII; - } - } else return FALSE; - return TRUE; - } - - function Passive($pasv=NULL) { - if(is_null($pasv)) $this->_passive=!$this->_passive; - else $this->_passive=$pasv; - if(!$this->_port_available and !$this->_passive) { - $this->SendMSG("Only passive connections available!"); - $this->_passive=TRUE; - return FALSE; - } - $this->SendMSG("Passive mode ".($this->_passive?"on":"off")); - return TRUE; - } - - function SetServer($host, $port=21, $reconnect=true) { - if(!is_long($port)) { - $this->verbose=true; - $this->SendMSG("Incorrect port syntax"); - return FALSE; - } else { - $ip=@gethostbyname($host); - $dns=@gethostbyaddr($host); - if(!$ip) $ip=$host; - if(!$dns) $dns=$host; - // Validate the IPAddress PHP4 returns -1 for invalid, PHP5 false - // -1 === "255.255.255.255" which is the broadcast address which is also going to be invalid - $ipaslong = ip2long($ip); - if ( ($ipaslong == false) || ($ipaslong === -1) ) { - $this->SendMSG("Wrong host name/address \"".$host."\""); - return FALSE; - } - $this->_host=$ip; - $this->_fullhost=$dns; - $this->_port=$port; - $this->_dataport=$port-1; - } - $this->SendMSG("Host \"".$this->_fullhost."(".$this->_host."):".$this->_port."\""); - if($reconnect){ - if($this->_connected) { - $this->SendMSG("Reconnecting"); - if(!$this->quit(FTP_FORCE)) return FALSE; - if(!$this->connect()) return FALSE; - } - } - return TRUE; - } - - function SetUmask($umask=0022) { - $this->_umask=$umask; - umask($this->_umask); - $this->SendMSG("UMASK 0".decoct($this->_umask)); - return TRUE; - } - - function SetTimeout($timeout=30) { - $this->_timeout=$timeout; - $this->SendMSG("Timeout ".$this->_timeout); - if($this->_connected) - if(!$this->_settimeout($this->_ftp_control_sock)) return FALSE; - return TRUE; - } - - function connect($server=NULL) { - if(!empty($server)) { - if(!$this->SetServer($server)) return false; - } - if($this->_ready) return true; - $this->SendMsg('Local OS : '.$this->OS_FullName[$this->OS_local]); - if(!($this->_ftp_control_sock = $this->_connect($this->_host, $this->_port))) { - $this->SendMSG("Error : Cannot connect to remote host \"".$this->_fullhost." :".$this->_port."\""); - return FALSE; - } - $this->SendMSG("Connected to remote host \"".$this->_fullhost.":".$this->_port."\". Waiting for greeting."); - do { - if(!$this->_readmsg()) return FALSE; - if(!$this->_checkCode()) return FALSE; - $this->_lastaction=time(); - } while($this->_code<200); - $this->_ready=true; - $syst=$this->systype(); - if(!$syst) $this->SendMSG("Can't detect remote OS"); - else { - if(preg_match("/win|dos|novell/i", $syst[0])) $this->OS_remote=FTP_OS_Windows; - elseif(preg_match("/os/i", $syst[0])) $this->OS_remote=FTP_OS_Mac; - elseif(preg_match("/(li|u)nix/i", $syst[0])) $this->OS_remote=FTP_OS_Unix; - else $this->OS_remote=FTP_OS_Mac; - $this->SendMSG("Remote OS: ".$this->OS_FullName[$this->OS_remote]); - } - if(!$this->features()) $this->SendMSG("Can't get features list. All supported - disabled"); - else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features))); - return TRUE; - } - - function quit($force=false) { - if($this->_ready) { - if(!$this->_exec("QUIT") and !$force) return FALSE; - if(!$this->_checkCode() and !$force) return FALSE; - $this->_ready=false; - $this->SendMSG("Session finished"); - } - $this->_quit(); - return TRUE; - } - - function login($user=NULL, $pass=NULL) { - if(!is_null($user)) $this->_login=$user; - else $this->_login="anonymous"; - if(!is_null($pass)) $this->_password=$pass; - else $this->_password="anon@anon.com"; - if(!$this->_exec("USER ".$this->_login, "login")) return FALSE; - if(!$this->_checkCode()) return FALSE; - if($this->_code!=230) { - if(!$this->_exec((($this->_code==331)?"PASS ":"ACCT ").$this->_password, "login")) return FALSE; - if(!$this->_checkCode()) return FALSE; - } - $this->SendMSG("Authentication succeeded"); - if(empty($this->_features)) { - if(!$this->features()) $this->SendMSG("Can't get features list. All supported - disabled"); - else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features))); - } - return TRUE; - } - - function pwd() { - if(!$this->_exec("PWD", "pwd")) return FALSE; - if(!$this->_checkCode()) return FALSE; - return ereg_replace("^[0-9]{3} \"(.+)\".+", "\\1", $this->_message); - } - - function cdup() { - if(!$this->_exec("CDUP", "cdup")) return FALSE; - if(!$this->_checkCode()) return FALSE; - return true; - } - - function chdir($pathname) { - if(!$this->_exec("CWD ".$pathname, "chdir")) return FALSE; - if(!$this->_checkCode()) return FALSE; - return TRUE; - } - - function rmdir($pathname) { - if(!$this->_exec("RMD ".$pathname, "rmdir")) return FALSE; - if(!$this->_checkCode()) return FALSE; - return TRUE; - } - - function mkdir($pathname) { - if(!$this->_exec("MKD ".$pathname, "mkdir")) return FALSE; - if(!$this->_checkCode()) return FALSE; - return TRUE; - } - - function rename($from, $to) { - if(!$this->_exec("RNFR ".$from, "rename")) return FALSE; - if(!$this->_checkCode()) return FALSE; - if($this->_code==350) { - if(!$this->_exec("RNTO ".$to, "rename")) return FALSE; - if(!$this->_checkCode()) return FALSE; - } else return FALSE; - return TRUE; - } - - function filesize($pathname) { - if(!isset($this->_features["SIZE"])) { - $this->PushError("filesize", "not supported by server"); - return FALSE; - } - if(!$this->_exec("SIZE ".$pathname, "filesize")) return FALSE; - if(!$this->_checkCode()) return FALSE; - return ereg_replace("^[0-9]{3} ([0-9]+)".CRLF, "\\1", $this->_message); - } - - function abort() { - if(!$this->_exec("ABOR", "abort")) return FALSE; - if(!$this->_checkCode()) { - if($this->_code!=426) return FALSE; - if(!$this->_readmsg("abort")) return FALSE; - if(!$this->_checkCode()) return FALSE; - } - return true; - } - - function mdtm($pathname) { - if(!isset($this->_features["MDTM"])) { - $this->PushError("mdtm", "not supported by server"); - return FALSE; - } - if(!$this->_exec("MDTM ".$pathname, "mdtm")) return FALSE; - if(!$this->_checkCode()) return FALSE; - $mdtm = ereg_replace("^[0-9]{3} ([0-9]+)".CRLF, "\\1", $this->_message); - $date = sscanf($mdtm, "%4d%2d%2d%2d%2d%2d"); - $timestamp = mktime($date[3], $date[4], $date[5], $date[1], $date[2], $date[0]); - return $timestamp; - } - - function systype() { - if(!$this->_exec("SYST", "systype")) return FALSE; - if(!$this->_checkCode()) return FALSE; - $DATA = explode(" ", $this->_message); - return array($DATA[1], $DATA[3]); - } - - function delete($pathname) { - if(!$this->_exec("DELE ".$pathname, "delete")) return FALSE; - if(!$this->_checkCode()) return FALSE; - return TRUE; - } - - function site($command, $fnction="site") { - if(!$this->_exec("SITE ".$command, $fnction)) return FALSE; - if(!$this->_checkCode()) return FALSE; - return TRUE; - } - - function chmod($pathname, $mode) { - if(!$this->site( sprintf('CHMOD %o %s', $mode, $pathname), "chmod")) return FALSE; - return TRUE; - } - - function restore($from) { - if(!isset($this->_features["REST"])) { - $this->PushError("restore", "not supported by server"); - return FALSE; - } - if($this->_curtype!=FTP_BINARY) { - $this->PushError("restore", "can't restore in ASCII mode"); - return FALSE; - } - if(!$this->_exec("REST ".$from, "resore")) return FALSE; - if(!$this->_checkCode()) return FALSE; - return TRUE; - } - - function features() { - if(!$this->_exec("FEAT", "features")) return FALSE; - if(!$this->_checkCode()) return FALSE; - $f=preg_split("/[".CRLF."]+/", preg_replace("/[0-9]{3}[ -].*[".CRLF."]+/", "", $this->_message), -1, PREG_SPLIT_NO_EMPTY); - $this->_features=array(); - foreach($f as $k=>$v) { - $v=explode(" ", trim($v)); - $this->_features[array_shift($v)]=$v; - } - return true; - } - - function rawlist($pathname="", $arg="") { - return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "LIST", "rawlist"); - } - - function nlist($pathname="", $arg="") { - return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "NLST", "nlist"); - } - - function is_exists($pathname) { - return $this->file_exists($pathname); - } - - function file_exists($pathname) { - $exists=true; - if(!$this->_exec("RNFR ".$pathname, "rename")) $exists=FALSE; - else { - if(!$this->_checkCode()) $exists=FALSE; - $this->abort(); - } - if($exists) $this->SendMSG("Remote file ".$pathname." exists"); - else $this->SendMSG("Remote file ".$pathname." does not exist"); - return $exists; - } - - function fget($fp, $remotefile,$rest=0) { - if($this->_can_restore and $rest!=0) fseek($fp, $rest); - $pi=pathinfo($remotefile); - if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII; - else $mode=FTP_BINARY; - if(!$this->_data_prepare($mode)) { - return FALSE; - } - if($this->_can_restore and $rest!=0) $this->restore($rest); - if(!$this->_exec("RETR ".$remotefile, "get")) { - $this->_data_close(); - return FALSE; - } - if(!$this->_checkCode()) { - $this->_data_close(); - return FALSE; - } - $out=$this->_data_read($mode, $fp); - $this->_data_close(); - if(!$this->_readmsg()) return FALSE; - if(!$this->_checkCode()) return FALSE; - return $out; - } - - function get($remotefile, $localfile=NULL, $rest=0) { - if(is_null($localfile)) $localfile=$remotefile; - if (@file_exists($localfile)) $this->SendMSG("Warning : local file will be overwritten"); - $fp = @fopen($localfile, "w"); - if (!$fp) { - $this->PushError("get","can't open local file", "Cannot create \"".$localfile."\""); - return FALSE; - } - if($this->_can_restore and $rest!=0) fseek($fp, $rest); - $pi=pathinfo($remotefile); - if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII; - else $mode=FTP_BINARY; - if(!$this->_data_prepare($mode)) { - fclose($fp); - return FALSE; - } - if($this->_can_restore and $rest!=0) $this->restore($rest); - if(!$this->_exec("RETR ".$remotefile, "get")) { - $this->_data_close(); - fclose($fp); - return FALSE; - } - if(!$this->_checkCode()) { - $this->_data_close(); - fclose($fp); - return FALSE; - } - $out=$this->_data_read($mode, $fp); - fclose($fp); - $this->_data_close(); - if(!$this->_readmsg()) return FALSE; - if(!$this->_checkCode()) return FALSE; - return $out; - } - - function fput($remotefile, $fp) { - if($this->_can_restore and $rest!=0) fseek($fp, $rest); - $pi=pathinfo($remotefile); - if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII; - else $mode=FTP_BINARY; - if(!$this->_data_prepare($mode)) { - return FALSE; - } - if($this->_can_restore and $rest!=0) $this->restore($rest); - if(!$this->_exec("STOR ".$remotefile, "put")) { - $this->_data_close(); - return FALSE; - } - if(!$this->_checkCode()) { - $this->_data_close(); - return FALSE; - } - $ret=$this->_data_write($mode, $fp); - $this->_data_close(); - if(!$this->_readmsg()) return FALSE; - if(!$this->_checkCode()) return FALSE; - return $ret; - } - - function put($localfile, $remotefile=NULL, $rest=0) { - if(is_null($remotefile)) $remotefile=$localfile; - if (!file_exists($localfile)) { - $this->PushError("put","can't open local file", "No such file or directory \"".$localfile."\""); - return FALSE; - } - $fp = @fopen($localfile, "r"); - - if (!$fp) { - $this->PushError("put","can't open local file", "Cannot read file \"".$localfile."\""); - return FALSE; - } - if($this->_can_restore and $rest!=0) fseek($fp, $rest); - $pi=pathinfo($localfile); - if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII; - else $mode=FTP_BINARY; - if(!$this->_data_prepare($mode)) { - fclose($fp); - return FALSE; - } - if($this->_can_restore and $rest!=0) $this->restore($rest); - if(!$this->_exec("STOR ".$remotefile, "put")) { - $this->_data_close(); - fclose($fp); - return FALSE; - } - if(!$this->_checkCode()) { - $this->_data_close(); - fclose($fp); - return FALSE; - } - $ret=$this->_data_write($mode, $fp); - fclose($fp); - $this->_data_close(); - if(!$this->_readmsg()) return FALSE; - if(!$this->_checkCode()) return FALSE; - return $ret; - } - - function mput($local=".", $remote=NULL, $continious=false) { - $local=realpath($local); - if(!@file_exists($local)) { - $this->PushError("mput","can't open local folder", "Cannot stat folder \"".$local."\""); - return FALSE; - } - if(!is_dir($local)) return $this->put($local, $remote); - if(empty($remote)) $remote="."; - elseif(!$this->file_exists($remote) and !$this->mkdir($remote)) return FALSE; - if($handle = opendir($local)) { - $list=array(); - while (false !== ($file = readdir($handle))) { - if ($file != "." && $file != "..") $list[]=$file; - } - closedir($handle); - } else { - $this->PushError("mput","can't open local folder", "Cannot read folder \"".$local."\""); - return FALSE; - } - if(empty($list)) return TRUE; - $ret=true; - foreach($list as $el) { - if(is_dir($local."/".$el)) $t=$this->mput($local."/".$el, $remote."/".$el); - else $t=$this->put($local."/".$el, $remote."/".$el); - if(!$t) { - $ret=FALSE; - if(!$continious) break; - } - } - return $ret; - - } - - function mget($remote, $local=".", $continious=false) { - $list=$this->rawlist($remote, "-lA"); - if($list===false) { - $this->PushError("mget","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents"); - return FALSE; - } - if(empty($list)) return true; - if(!@file_exists($local)) { - if(!@mkdir($local)) { - $this->PushError("mget","can't create local folder", "Cannot create folder \"".$local."\""); - return FALSE; - } - } - foreach($list as $k=>$v) { - $list[$k]=$this->parselisting($v); - if($list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]); - } - $ret=true; - foreach($list as $el) { - if($el["type"]=="d") { - if(!$this->mget($remote."/".$el["name"], $local."/".$el["name"], $continious)) { - $this->PushError("mget", "can't copy folder", "Can't copy remote folder \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\""); - $ret=false; - if(!$continious) break; - } - } else { - if(!$this->get($remote."/".$el["name"], $local."/".$el["name"])) { - $this->PushError("mget", "can't copy file", "Can't copy remote file \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\""); - $ret=false; - if(!$continious) break; - } - } - @chmod($local."/".$el["name"], $el["perms"]); - $t=strtotime($el["date"]); - if($t!==-1 and $t!==false) @touch($local."/".$el["name"], $t); - } - return $ret; - } - - function mdel($remote, $continious=false) { - $list=$this->rawlist($remote, "-la"); - if($list===false) { - $this->PushError("mdel","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents"); - return false; - } - - foreach($list as $k=>$v) { - $list[$k]=$this->parselisting($v); - if($list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]); - } - $ret=true; - - foreach($list as $el) { - if ( empty($el) ) - continue; - - if($el["type"]=="d") { - if(!$this->mdel($remote."/".$el["name"], $continious)) { - $ret=false; - if(!$continious) break; - } - } else { - if (!$this->delete($remote."/".$el["name"])) { - $this->PushError("mdel", "can't delete file", "Can't delete remote file \"".$remote."/".$el["name"]."\""); - $ret=false; - if(!$continious) break; - } - } - } - - if(!$this->rmdir($remote)) { - $this->PushError("mdel", "can't delete folder", "Can't delete remote folder \"".$remote."/".$el["name"]."\""); - $ret=false; - } - return $ret; - } - - function mmkdir($dir, $mode = 0777) { - if(empty($dir)) return FALSE; - if($this->is_exists($dir) or $dir == "/" ) return TRUE; - if(!$this->mmkdir(dirname($dir), $mode)) return false; - $r=$this->mkdir($dir, $mode); - $this->chmod($dir,$mode); - return $r; - } - - function glob($pattern, $handle=NULL) { - $path=$output=null; - if(PHP_OS=='WIN32') $slash='\\'; - else $slash='/'; - $lastpos=strrpos($pattern,$slash); - if(!($lastpos===false)) { - $path=substr($pattern,0,-$lastpos-1); - $pattern=substr($pattern,$lastpos); - } else $path=getcwd(); - if(is_array($handle) and !empty($handle)) { - while($dir=each($handle)) { - if($this->glob_pattern_match($pattern,$dir)) - $output[]=$dir; - } - } else { - $handle=@opendir($path); - if($handle===false) return false; - while($dir=readdir($handle)) { - if($this->glob_pattern_match($pattern,$dir)) - $output[]=$dir; - } - closedir($handle); - } - if(is_array($output)) return $output; - return false; - } - - function glob_pattern_match($pattern,$string) { - $out=null; - $chunks=explode(';',$pattern); - foreach($chunks as $pattern) { - $escape=array('$','^','.','{','}','(',')','[',']','|'); - while(strpos($pattern,'**')!==false) - $pattern=str_replace('**','*',$pattern); - foreach($escape as $probe) - $pattern=str_replace($probe,"\\$probe",$pattern); - $pattern=str_replace('?*','*', - str_replace('*?','*', - str_replace('*',".*", - str_replace('?','.{1,1}',$pattern)))); - $out[]=$pattern; - } - if(count($out)==1) return($this->glob_regexp("^$out[0]$",$string)); - else { - foreach($out as $tester) - if($this->my_regexp("^$tester$",$string)) return true; - } - return false; - } - - function glob_regexp($pattern,$probe) { - $sensitive=(PHP_OS!='WIN32'); - return ($sensitive? - ereg($pattern,$probe): - eregi($pattern,$probe) - ); - } - - function dirlist($remote) { - $list=$this->rawlist($remote, "-la"); - if($list===false) { - $this->PushError("dirlist","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents"); - return false; - } - - $dirlist = array(); - foreach($list as $k=>$v) { - $entry=$this->parselisting($v); - if ( empty($entry) ) - continue; - - if($entry["name"]=="." or $entry["name"]=="..") - continue; - - $dirlist[$entry['name']] = $entry; - } - - return $dirlist; - } -// -// -// - function _checkCode() { - return ($this->_code<400 and $this->_code>0); - } - - function _list($arg="", $cmd="LIST", $fnction="_list") { - if(!$this->_data_prepare()) return false; - if(!$this->_exec($cmd.$arg, $fnction)) { - $this->_data_close(); - return FALSE; - } - if(!$this->_checkCode()) { - $this->_data_close(); - return FALSE; - } - $out=""; - if($this->_code<200) { - $out=$this->_data_read(); - $this->_data_close(); - if(!$this->_readmsg()) return FALSE; - if(!$this->_checkCode()) return FALSE; - if($out === FALSE ) return FALSE; - $out=preg_split("/[".CRLF."]+/", $out, -1, PREG_SPLIT_NO_EMPTY); -// $this->SendMSG(implode($this->_eol_code[$this->OS_local], $out)); - } - return $out; - } - -// -// -// -// Gnre une erreur pour traitement externe la classe - function PushError($fctname,$msg,$desc=false){ - $error=array(); - $error['time']=time(); - $error['fctname']=$fctname; - $error['msg']=$msg; - $error['desc']=$desc; - if($desc) $tmp=' ('.$desc.')'; else $tmp=''; - $this->SendMSG($fctname.': '.$msg.$tmp); - return(array_push($this->_error_array,$error)); - } - -// Rcupre une erreur externe - function PopError(){ - if(count($this->_error_array)) return(array_pop($this->_error_array)); - else return(false); - } -} - -$mod_sockets = extension_loaded( 'sockets' ); -if ( ! $mod_sockets && function_exists( 'dl' ) && is_callable( 'dl' ) ) { - $prefix = ( PHP_SHLIB_SUFFIX == 'dll' ) ? 'php_' : ''; - @dl( $prefix . 'sockets.' . PHP_SHLIB_SUFFIX ); - $mod_sockets = extension_loaded( 'sockets' ); -} - -require_once dirname( __FILE__ ) . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php"; diff --git a/wp-admin/includes/class-pclzip.php b/wp-admin/includes/class-pclzip.php deleted file mode 100644 index f36a4a3eef..0000000000 --- a/wp-admin/includes/class-pclzip.php +++ /dev/null @@ -1,5691 +0,0 @@ -zipname = $p_zipname; - $this->zip_fd = 0; - $this->magic_quotes_status = -1; - - // ----- Return - return; - } - - public function PclZip($p_zipname) { - self::__construct($p_zipname); - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : - // create($p_filelist, $p_add_dir="", $p_remove_dir="") - // create($p_filelist, $p_option, $p_option_value, ...) - // Description : - // This method supports two different synopsis. The first one is historical. - // This method creates a Zip Archive. The Zip file is created in the - // filesystem. The files and directories indicated in $p_filelist - // are added in the archive. See the parameters description for the - // supported format of $p_filelist. - // When a directory is in the list, the directory and its content is added - // in the archive. - // In this synopsis, the function takes an optional variable list of - // options. See bellow the supported options. - // Parameters : - // $p_filelist : An array containing file or directory names, or - // a string containing one filename or one directory name, or - // a string containing a list of filenames and/or directory - // names separated by spaces. - // $p_add_dir : A path to add before the real path of the archived file, - // in order to have it memorized in the archive. - // $p_remove_dir : A path to remove from the real path of the file to archive, - // in order to have a shorter path memorized in the archive. - // When $p_add_dir and $p_remove_dir are set, $p_remove_dir - // is removed first, before $p_add_dir is added. - // Options : - // PCLZIP_OPT_ADD_PATH : - // PCLZIP_OPT_REMOVE_PATH : - // PCLZIP_OPT_REMOVE_ALL_PATH : - // PCLZIP_OPT_COMMENT : - // PCLZIP_CB_PRE_ADD : - // PCLZIP_CB_POST_ADD : - // Return Values : - // 0 on failure, - // The list of the added files, with a status of the add action. - // (see PclZip::listContent() for list entry format) - // -------------------------------------------------------------------------------- - function create($p_filelist) - { - $v_result=1; - - // ----- Reset the error handler - $this->privErrorReset(); - - // ----- Set default values - $v_options = array(); - $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE; - - // ----- Look for variable options arguments - $v_size = func_num_args(); - - // ----- Look for arguments - if ($v_size > 1) { - // ----- Get the arguments - $v_arg_list = func_get_args(); - - // ----- Remove from the options list the first argument - array_shift($v_arg_list); - $v_size--; - - // ----- Look for first arg - if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { - - // ----- Parse the options - $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, - array (PCLZIP_OPT_REMOVE_PATH => 'optional', - PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', - PCLZIP_OPT_ADD_PATH => 'optional', - PCLZIP_CB_PRE_ADD => 'optional', - PCLZIP_CB_POST_ADD => 'optional', - PCLZIP_OPT_NO_COMPRESSION => 'optional', - PCLZIP_OPT_COMMENT => 'optional', - PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', - PCLZIP_OPT_TEMP_FILE_ON => 'optional', - PCLZIP_OPT_TEMP_FILE_OFF => 'optional' - //, PCLZIP_OPT_CRYPT => 'optional' - )); - if ($v_result != 1) { - return 0; - } - } - - // ----- Look for 2 args - // Here we need to support the first historic synopsis of the - // method. - else { - - // ----- Get the first argument - $v_options[PCLZIP_OPT_ADD_PATH] = $v_arg_list[0]; - - // ----- Look for the optional second argument - if ($v_size == 2) { - $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1]; - } - else if ($v_size > 2) { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, - "Invalid number / type of arguments"); - return 0; - } - } - } - - // ----- Look for default option values - $this->privOptionDefaultThreshold($v_options); - - // ----- Init - $v_string_list = array(); - $v_att_list = array(); - $v_filedescr_list = array(); - $p_result_list = array(); - - // ----- Look if the $p_filelist is really an array - if (is_array($p_filelist)) { - - // ----- Look if the first element is also an array - // This will mean that this is a file description entry - if (isset($p_filelist[0]) && is_array($p_filelist[0])) { - $v_att_list = $p_filelist; - } - - // ----- The list is a list of string names - else { - $v_string_list = $p_filelist; - } - } - - // ----- Look if the $p_filelist is a string - else if (is_string($p_filelist)) { - // ----- Create a list from the string - $v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist); - } - - // ----- Invalid variable type for $p_filelist - else { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_filelist"); - return 0; - } - - // ----- Reformat the string list - if (sizeof($v_string_list) != 0) { - foreach ($v_string_list as $v_string) { - if ($v_string != '') { - $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string; - } - else { - } - } - } - - // ----- For each file in the list check the attributes - $v_supported_attributes - = array ( PCLZIP_ATT_FILE_NAME => 'mandatory' - ,PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional' - ,PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional' - ,PCLZIP_ATT_FILE_MTIME => 'optional' - ,PCLZIP_ATT_FILE_CONTENT => 'optional' - ,PCLZIP_ATT_FILE_COMMENT => 'optional' - ); - foreach ($v_att_list as $v_entry) { - $v_result = $this->privFileDescrParseAtt($v_entry, - $v_filedescr_list[], - $v_options, - $v_supported_attributes); - if ($v_result != 1) { - return 0; - } - } - - // ----- Expand the filelist (expand directories) - $v_result = $this->privFileDescrExpand($v_filedescr_list, $v_options); - if ($v_result != 1) { - return 0; - } - - // ----- Call the create fct - $v_result = $this->privCreate($v_filedescr_list, $p_result_list, $v_options); - if ($v_result != 1) { - return 0; - } - - // ----- Return - return $p_result_list; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : - // add($p_filelist, $p_add_dir="", $p_remove_dir="") - // add($p_filelist, $p_option, $p_option_value, ...) - // Description : - // This method supports two synopsis. The first one is historical. - // This methods add the list of files in an existing archive. - // If a file with the same name already exists, it is added at the end of the - // archive, the first one is still present. - // If the archive does not exist, it is created. - // Parameters : - // $p_filelist : An array containing file or directory names, or - // a string containing one filename or one directory name, or - // a string containing a list of filenames and/or directory - // names separated by spaces. - // $p_add_dir : A path to add before the real path of the archived file, - // in order to have it memorized in the archive. - // $p_remove_dir : A path to remove from the real path of the file to archive, - // in order to have a shorter path memorized in the archive. - // When $p_add_dir and $p_remove_dir are set, $p_remove_dir - // is removed first, before $p_add_dir is added. - // Options : - // PCLZIP_OPT_ADD_PATH : - // PCLZIP_OPT_REMOVE_PATH : - // PCLZIP_OPT_REMOVE_ALL_PATH : - // PCLZIP_OPT_COMMENT : - // PCLZIP_OPT_ADD_COMMENT : - // PCLZIP_OPT_PREPEND_COMMENT : - // PCLZIP_CB_PRE_ADD : - // PCLZIP_CB_POST_ADD : - // Return Values : - // 0 on failure, - // The list of the added files, with a status of the add action. - // (see PclZip::listContent() for list entry format) - // -------------------------------------------------------------------------------- - function add($p_filelist) - { - $v_result=1; - - // ----- Reset the error handler - $this->privErrorReset(); - - // ----- Set default values - $v_options = array(); - $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE; - - // ----- Look for variable options arguments - $v_size = func_num_args(); - - // ----- Look for arguments - if ($v_size > 1) { - // ----- Get the arguments - $v_arg_list = func_get_args(); - - // ----- Remove form the options list the first argument - array_shift($v_arg_list); - $v_size--; - - // ----- Look for first arg - if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { - - // ----- Parse the options - $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, - array (PCLZIP_OPT_REMOVE_PATH => 'optional', - PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', - PCLZIP_OPT_ADD_PATH => 'optional', - PCLZIP_CB_PRE_ADD => 'optional', - PCLZIP_CB_POST_ADD => 'optional', - PCLZIP_OPT_NO_COMPRESSION => 'optional', - PCLZIP_OPT_COMMENT => 'optional', - PCLZIP_OPT_ADD_COMMENT => 'optional', - PCLZIP_OPT_PREPEND_COMMENT => 'optional', - PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', - PCLZIP_OPT_TEMP_FILE_ON => 'optional', - PCLZIP_OPT_TEMP_FILE_OFF => 'optional' - //, PCLZIP_OPT_CRYPT => 'optional' - )); - if ($v_result != 1) { - return 0; - } - } - - // ----- Look for 2 args - // Here we need to support the first historic synopsis of the - // method. - else { - - // ----- Get the first argument - $v_options[PCLZIP_OPT_ADD_PATH] = $v_add_path = $v_arg_list[0]; - - // ----- Look for the optional second argument - if ($v_size == 2) { - $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1]; - } - else if ($v_size > 2) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); - - // ----- Return - return 0; - } - } - } - - // ----- Look for default option values - $this->privOptionDefaultThreshold($v_options); - - // ----- Init - $v_string_list = array(); - $v_att_list = array(); - $v_filedescr_list = array(); - $p_result_list = array(); - - // ----- Look if the $p_filelist is really an array - if (is_array($p_filelist)) { - - // ----- Look if the first element is also an array - // This will mean that this is a file description entry - if (isset($p_filelist[0]) && is_array($p_filelist[0])) { - $v_att_list = $p_filelist; - } - - // ----- The list is a list of string names - else { - $v_string_list = $p_filelist; - } - } - - // ----- Look if the $p_filelist is a string - else if (is_string($p_filelist)) { - // ----- Create a list from the string - $v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist); - } - - // ----- Invalid variable type for $p_filelist - else { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type '".gettype($p_filelist)."' for p_filelist"); - return 0; - } - - // ----- Reformat the string list - if (sizeof($v_string_list) != 0) { - foreach ($v_string_list as $v_string) { - $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string; - } - } - - // ----- For each file in the list check the attributes - $v_supported_attributes - = array ( PCLZIP_ATT_FILE_NAME => 'mandatory' - ,PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional' - ,PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional' - ,PCLZIP_ATT_FILE_MTIME => 'optional' - ,PCLZIP_ATT_FILE_CONTENT => 'optional' - ,PCLZIP_ATT_FILE_COMMENT => 'optional' - ); - foreach ($v_att_list as $v_entry) { - $v_result = $this->privFileDescrParseAtt($v_entry, - $v_filedescr_list[], - $v_options, - $v_supported_attributes); - if ($v_result != 1) { - return 0; - } - } - - // ----- Expand the filelist (expand directories) - $v_result = $this->privFileDescrExpand($v_filedescr_list, $v_options); - if ($v_result != 1) { - return 0; - } - - // ----- Call the create fct - $v_result = $this->privAdd($v_filedescr_list, $p_result_list, $v_options); - if ($v_result != 1) { - return 0; - } - - // ----- Return - return $p_result_list; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : listContent() - // Description : - // This public method, gives the list of the files and directories, with their - // properties. - // The properties of each entries in the list are (used also in other functions) : - // filename : Name of the file. For a create or add action it is the filename - // given by the user. For an extract function it is the filename - // of the extracted file. - // stored_filename : Name of the file / directory stored in the archive. - // size : Size of the stored file. - // compressed_size : Size of the file's data compressed in the archive - // (without the headers overhead) - // mtime : Last known modification date of the file (UNIX timestamp) - // comment : Comment associated with the file - // folder : true | false - // index : index of the file in the archive - // status : status of the action (depending of the action) : - // Values are : - // ok : OK ! - // filtered : the file / dir is not extracted (filtered by user) - // already_a_directory : the file can not be extracted because a - // directory with the same name already exists - // write_protected : the file can not be extracted because a file - // with the same name already exists and is - // write protected - // newer_exist : the file was not extracted because a newer file exists - // path_creation_fail : the file is not extracted because the folder - // does not exist and can not be created - // write_error : the file was not extracted because there was a - // error while writing the file - // read_error : the file was not extracted because there was a error - // while reading the file - // invalid_header : the file was not extracted because of an archive - // format error (bad file header) - // Note that each time a method can continue operating when there - // is an action error on a file, the error is only logged in the file status. - // Return Values : - // 0 on an unrecoverable failure, - // The list of the files in the archive. - // -------------------------------------------------------------------------------- - function listContent() - { - $v_result=1; - - // ----- Reset the error handler - $this->privErrorReset(); - - // ----- Check archive - if (!$this->privCheckFormat()) { - return(0); - } - - // ----- Call the extracting fct - $p_list = array(); - if (($v_result = $this->privList($p_list)) != 1) - { - unset($p_list); - return(0); - } - - // ----- Return - return $p_list; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : - // extract($p_path="./", $p_remove_path="") - // extract([$p_option, $p_option_value, ...]) - // Description : - // This method supports two synopsis. The first one is historical. - // This method extract all the files / directories from the archive to the - // folder indicated in $p_path. - // If you want to ignore the 'root' part of path of the memorized files - // you can indicate this in the optional $p_remove_path parameter. - // By default, if a newer file with the same name already exists, the - // file is not extracted. - // - // If both PCLZIP_OPT_PATH and PCLZIP_OPT_ADD_PATH aoptions - // are used, the path indicated in PCLZIP_OPT_ADD_PATH is append - // at the end of the path value of PCLZIP_OPT_PATH. - // Parameters : - // $p_path : Path where the files and directories are to be extracted - // $p_remove_path : First part ('root' part) of the memorized path - // (if any similar) to remove while extracting. - // Options : - // PCLZIP_OPT_PATH : - // PCLZIP_OPT_ADD_PATH : - // PCLZIP_OPT_REMOVE_PATH : - // PCLZIP_OPT_REMOVE_ALL_PATH : - // PCLZIP_CB_PRE_EXTRACT : - // PCLZIP_CB_POST_EXTRACT : - // Return Values : - // 0 or a negative value on failure, - // The list of the extracted files, with a status of the action. - // (see PclZip::listContent() for list entry format) - // -------------------------------------------------------------------------------- - function extract() - { - $v_result=1; - - // ----- Reset the error handler - $this->privErrorReset(); - - // ----- Check archive - if (!$this->privCheckFormat()) { - return(0); - } - - // ----- Set default values - $v_options = array(); -// $v_path = "./"; - $v_path = ''; - $v_remove_path = ""; - $v_remove_all_path = false; - - // ----- Look for variable options arguments - $v_size = func_num_args(); - - // ----- Default values for option - $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE; - - // ----- Look for arguments - if ($v_size > 0) { - // ----- Get the arguments - $v_arg_list = func_get_args(); - - // ----- Look for first arg - if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { - - // ----- Parse the options - $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, - array (PCLZIP_OPT_PATH => 'optional', - PCLZIP_OPT_REMOVE_PATH => 'optional', - PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', - PCLZIP_OPT_ADD_PATH => 'optional', - PCLZIP_CB_PRE_EXTRACT => 'optional', - PCLZIP_CB_POST_EXTRACT => 'optional', - PCLZIP_OPT_SET_CHMOD => 'optional', - PCLZIP_OPT_BY_NAME => 'optional', - PCLZIP_OPT_BY_EREG => 'optional', - PCLZIP_OPT_BY_PREG => 'optional', - PCLZIP_OPT_BY_INDEX => 'optional', - PCLZIP_OPT_EXTRACT_AS_STRING => 'optional', - PCLZIP_OPT_EXTRACT_IN_OUTPUT => 'optional', - PCLZIP_OPT_REPLACE_NEWER => 'optional' - ,PCLZIP_OPT_STOP_ON_ERROR => 'optional' - ,PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional', - PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', - PCLZIP_OPT_TEMP_FILE_ON => 'optional', - PCLZIP_OPT_TEMP_FILE_OFF => 'optional' - )); - if ($v_result != 1) { - return 0; - } - - // ----- Set the arguments - if (isset($v_options[PCLZIP_OPT_PATH])) { - $v_path = $v_options[PCLZIP_OPT_PATH]; - } - if (isset($v_options[PCLZIP_OPT_REMOVE_PATH])) { - $v_remove_path = $v_options[PCLZIP_OPT_REMOVE_PATH]; - } - if (isset($v_options[PCLZIP_OPT_REMOVE_ALL_PATH])) { - $v_remove_all_path = $v_options[PCLZIP_OPT_REMOVE_ALL_PATH]; - } - if (isset($v_options[PCLZIP_OPT_ADD_PATH])) { - // ----- Check for '/' in last path char - if ((strlen($v_path) > 0) && (substr($v_path, -1) != '/')) { - $v_path .= '/'; - } - $v_path .= $v_options[PCLZIP_OPT_ADD_PATH]; - } - } - - // ----- Look for 2 args - // Here we need to support the first historic synopsis of the - // method. - else { - - // ----- Get the first argument - $v_path = $v_arg_list[0]; - - // ----- Look for the optional second argument - if ($v_size == 2) { - $v_remove_path = $v_arg_list[1]; - } - else if ($v_size > 2) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); - - // ----- Return - return 0; - } - } - } - - // ----- Look for default option values - $this->privOptionDefaultThreshold($v_options); - - // ----- Trace - - // ----- Call the extracting fct - $p_list = array(); - $v_result = $this->privExtractByRule($p_list, $v_path, $v_remove_path, - $v_remove_all_path, $v_options); - if ($v_result < 1) { - unset($p_list); - return(0); - } - - // ----- Return - return $p_list; - } - // -------------------------------------------------------------------------------- - - - // -------------------------------------------------------------------------------- - // Function : - // extractByIndex($p_index, $p_path="./", $p_remove_path="") - // extractByIndex($p_index, [$p_option, $p_option_value, ...]) - // Description : - // This method supports two synopsis. The first one is historical. - // This method is doing a partial extract of the archive. - // The extracted files or folders are identified by their index in the - // archive (from 0 to n). - // Note that if the index identify a folder, only the folder entry is - // extracted, not all the files included in the archive. - // Parameters : - // $p_index : A single index (integer) or a string of indexes of files to - // extract. The form of the string is "0,4-6,8-12" with only numbers - // and '-' for range or ',' to separate ranges. No spaces or ';' - // are allowed. - // $p_path : Path where the files and directories are to be extracted - // $p_remove_path : First part ('root' part) of the memorized path - // (if any similar) to remove while extracting. - // Options : - // PCLZIP_OPT_PATH : - // PCLZIP_OPT_ADD_PATH : - // PCLZIP_OPT_REMOVE_PATH : - // PCLZIP_OPT_REMOVE_ALL_PATH : - // PCLZIP_OPT_EXTRACT_AS_STRING : The files are extracted as strings and - // not as files. - // The resulting content is in a new field 'content' in the file - // structure. - // This option must be used alone (any other options are ignored). - // PCLZIP_CB_PRE_EXTRACT : - // PCLZIP_CB_POST_EXTRACT : - // Return Values : - // 0 on failure, - // The list of the extracted files, with a status of the action. - // (see PclZip::listContent() for list entry format) - // -------------------------------------------------------------------------------- - //function extractByIndex($p_index, options...) - function extractByIndex($p_index) - { - $v_result=1; - - // ----- Reset the error handler - $this->privErrorReset(); - - // ----- Check archive - if (!$this->privCheckFormat()) { - return(0); - } - - // ----- Set default values - $v_options = array(); -// $v_path = "./"; - $v_path = ''; - $v_remove_path = ""; - $v_remove_all_path = false; - - // ----- Look for variable options arguments - $v_size = func_num_args(); - - // ----- Default values for option - $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE; - - // ----- Look for arguments - if ($v_size > 1) { - // ----- Get the arguments - $v_arg_list = func_get_args(); - - // ----- Remove form the options list the first argument - array_shift($v_arg_list); - $v_size--; - - // ----- Look for first arg - if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { - - // ----- Parse the options - $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, - array (PCLZIP_OPT_PATH => 'optional', - PCLZIP_OPT_REMOVE_PATH => 'optional', - PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', - PCLZIP_OPT_EXTRACT_AS_STRING => 'optional', - PCLZIP_OPT_ADD_PATH => 'optional', - PCLZIP_CB_PRE_EXTRACT => 'optional', - PCLZIP_CB_POST_EXTRACT => 'optional', - PCLZIP_OPT_SET_CHMOD => 'optional', - PCLZIP_OPT_REPLACE_NEWER => 'optional' - ,PCLZIP_OPT_STOP_ON_ERROR => 'optional' - ,PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional', - PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', - PCLZIP_OPT_TEMP_FILE_ON => 'optional', - PCLZIP_OPT_TEMP_FILE_OFF => 'optional' - )); - if ($v_result != 1) { - return 0; - } - - // ----- Set the arguments - if (isset($v_options[PCLZIP_OPT_PATH])) { - $v_path = $v_options[PCLZIP_OPT_PATH]; - } - if (isset($v_options[PCLZIP_OPT_REMOVE_PATH])) { - $v_remove_path = $v_options[PCLZIP_OPT_REMOVE_PATH]; - } - if (isset($v_options[PCLZIP_OPT_REMOVE_ALL_PATH])) { - $v_remove_all_path = $v_options[PCLZIP_OPT_REMOVE_ALL_PATH]; - } - if (isset($v_options[PCLZIP_OPT_ADD_PATH])) { - // ----- Check for '/' in last path char - if ((strlen($v_path) > 0) && (substr($v_path, -1) != '/')) { - $v_path .= '/'; - } - $v_path .= $v_options[PCLZIP_OPT_ADD_PATH]; - } - if (!isset($v_options[PCLZIP_OPT_EXTRACT_AS_STRING])) { - $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE; - } - else { - } - } - - // ----- Look for 2 args - // Here we need to support the first historic synopsis of the - // method. - else { - - // ----- Get the first argument - $v_path = $v_arg_list[0]; - - // ----- Look for the optional second argument - if ($v_size == 2) { - $v_remove_path = $v_arg_list[1]; - } - else if ($v_size > 2) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); - - // ----- Return - return 0; - } - } - } - - // ----- Trace - - // ----- Trick - // Here I want to reuse extractByRule(), so I need to parse the $p_index - // with privParseOptions() - $v_arg_trick = array (PCLZIP_OPT_BY_INDEX, $p_index); - $v_options_trick = array(); - $v_result = $this->privParseOptions($v_arg_trick, sizeof($v_arg_trick), $v_options_trick, - array (PCLZIP_OPT_BY_INDEX => 'optional' )); - if ($v_result != 1) { - return 0; - } - $v_options[PCLZIP_OPT_BY_INDEX] = $v_options_trick[PCLZIP_OPT_BY_INDEX]; - - // ----- Look for default option values - $this->privOptionDefaultThreshold($v_options); - - // ----- Call the extracting fct - if (($v_result = $this->privExtractByRule($p_list, $v_path, $v_remove_path, $v_remove_all_path, $v_options)) < 1) { - return(0); - } - - // ----- Return - return $p_list; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : - // delete([$p_option, $p_option_value, ...]) - // Description : - // This method removes files from the archive. - // If no parameters are given, then all the archive is emptied. - // Parameters : - // None or optional arguments. - // Options : - // PCLZIP_OPT_BY_INDEX : - // PCLZIP_OPT_BY_NAME : - // PCLZIP_OPT_BY_EREG : - // PCLZIP_OPT_BY_PREG : - // Return Values : - // 0 on failure, - // The list of the files which are still present in the archive. - // (see PclZip::listContent() for list entry format) - // -------------------------------------------------------------------------------- - function delete() - { - $v_result=1; - - // ----- Reset the error handler - $this->privErrorReset(); - - // ----- Check archive - if (!$this->privCheckFormat()) { - return(0); - } - - // ----- Set default values - $v_options = array(); - - // ----- Look for variable options arguments - $v_size = func_num_args(); - - // ----- Look for arguments - if ($v_size > 0) { - // ----- Get the arguments - $v_arg_list = func_get_args(); - - // ----- Parse the options - $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, - array (PCLZIP_OPT_BY_NAME => 'optional', - PCLZIP_OPT_BY_EREG => 'optional', - PCLZIP_OPT_BY_PREG => 'optional', - PCLZIP_OPT_BY_INDEX => 'optional' )); - if ($v_result != 1) { - return 0; - } - } - - // ----- Magic quotes trick - $this->privDisableMagicQuotes(); - - // ----- Call the delete fct - $v_list = array(); - if (($v_result = $this->privDeleteByRule($v_list, $v_options)) != 1) { - $this->privSwapBackMagicQuotes(); - unset($v_list); - return(0); - } - - // ----- Magic quotes trick - $this->privSwapBackMagicQuotes(); - - // ----- Return - return $v_list; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : deleteByIndex() - // Description : - // ***** Deprecated ***** - // delete(PCLZIP_OPT_BY_INDEX, $p_index) should be prefered. - // -------------------------------------------------------------------------------- - function deleteByIndex($p_index) - { - - $p_list = $this->delete(PCLZIP_OPT_BY_INDEX, $p_index); - - // ----- Return - return $p_list; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : properties() - // Description : - // This method gives the properties of the archive. - // The properties are : - // nb : Number of files in the archive - // comment : Comment associated with the archive file - // status : not_exist, ok - // Parameters : - // None - // Return Values : - // 0 on failure, - // An array with the archive properties. - // -------------------------------------------------------------------------------- - function properties() - { - - // ----- Reset the error handler - $this->privErrorReset(); - - // ----- Magic quotes trick - $this->privDisableMagicQuotes(); - - // ----- Check archive - if (!$this->privCheckFormat()) { - $this->privSwapBackMagicQuotes(); - return(0); - } - - // ----- Default properties - $v_prop = array(); - $v_prop['comment'] = ''; - $v_prop['nb'] = 0; - $v_prop['status'] = 'not_exist'; - - // ----- Look if file exists - if (@is_file($this->zipname)) - { - // ----- Open the zip file - if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0) - { - $this->privSwapBackMagicQuotes(); - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode'); - - // ----- Return - return 0; - } - - // ----- Read the central directory informations - $v_central_dir = array(); - if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) - { - $this->privSwapBackMagicQuotes(); - return 0; - } - - // ----- Close the zip file - $this->privCloseFd(); - - // ----- Set the user attributes - $v_prop['comment'] = $v_central_dir['comment']; - $v_prop['nb'] = $v_central_dir['entries']; - $v_prop['status'] = 'ok'; - } - - // ----- Magic quotes trick - $this->privSwapBackMagicQuotes(); - - // ----- Return - return $v_prop; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : duplicate() - // Description : - // This method creates an archive by copying the content of an other one. If - // the archive already exist, it is replaced by the new one without any warning. - // Parameters : - // $p_archive : The filename of a valid archive, or - // a valid PclZip object. - // Return Values : - // 1 on success. - // 0 or a negative value on error (error code). - // -------------------------------------------------------------------------------- - function duplicate($p_archive) - { - $v_result = 1; - - // ----- Reset the error handler - $this->privErrorReset(); - - // ----- Look if the $p_archive is a PclZip object - if ((is_object($p_archive)) && (get_class($p_archive) == 'pclzip')) - { - - // ----- Duplicate the archive - $v_result = $this->privDuplicate($p_archive->zipname); - } - - // ----- Look if the $p_archive is a string (so a filename) - else if (is_string($p_archive)) - { - - // ----- Check that $p_archive is a valid zip file - // TBC : Should also check the archive format - if (!is_file($p_archive)) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "No file with filename '".$p_archive."'"); - $v_result = PCLZIP_ERR_MISSING_FILE; - } - else { - // ----- Duplicate the archive - $v_result = $this->privDuplicate($p_archive); - } - } - - // ----- Invalid variable - else - { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add"); - $v_result = PCLZIP_ERR_INVALID_PARAMETER; - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : merge() - // Description : - // This method merge the $p_archive_to_add archive at the end of the current - // one ($this). - // If the archive ($this) does not exist, the merge becomes a duplicate. - // If the $p_archive_to_add archive does not exist, the merge is a success. - // Parameters : - // $p_archive_to_add : It can be directly the filename of a valid zip archive, - // or a PclZip object archive. - // Return Values : - // 1 on success, - // 0 or negative values on error (see below). - // -------------------------------------------------------------------------------- - function merge($p_archive_to_add) - { - $v_result = 1; - - // ----- Reset the error handler - $this->privErrorReset(); - - // ----- Check archive - if (!$this->privCheckFormat()) { - return(0); - } - - // ----- Look if the $p_archive_to_add is a PclZip object - if ((is_object($p_archive_to_add)) && (get_class($p_archive_to_add) == 'pclzip')) - { - - // ----- Merge the archive - $v_result = $this->privMerge($p_archive_to_add); - } - - // ----- Look if the $p_archive_to_add is a string (so a filename) - else if (is_string($p_archive_to_add)) - { - - // ----- Create a temporary archive - $v_object_archive = new PclZip($p_archive_to_add); - - // ----- Merge the archive - $v_result = $this->privMerge($v_object_archive); - } - - // ----- Invalid variable - else - { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add"); - $v_result = PCLZIP_ERR_INVALID_PARAMETER; - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - - - // -------------------------------------------------------------------------------- - // Function : errorCode() - // Description : - // Parameters : - // -------------------------------------------------------------------------------- - function errorCode() - { - if (PCLZIP_ERROR_EXTERNAL == 1) { - return(PclErrorCode()); - } - else { - return($this->error_code); - } - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : errorName() - // Description : - // Parameters : - // -------------------------------------------------------------------------------- - function errorName($p_with_code=false) - { - $v_name = array ( PCLZIP_ERR_NO_ERROR => 'PCLZIP_ERR_NO_ERROR', - PCLZIP_ERR_WRITE_OPEN_FAIL => 'PCLZIP_ERR_WRITE_OPEN_FAIL', - PCLZIP_ERR_READ_OPEN_FAIL => 'PCLZIP_ERR_READ_OPEN_FAIL', - PCLZIP_ERR_INVALID_PARAMETER => 'PCLZIP_ERR_INVALID_PARAMETER', - PCLZIP_ERR_MISSING_FILE => 'PCLZIP_ERR_MISSING_FILE', - PCLZIP_ERR_FILENAME_TOO_LONG => 'PCLZIP_ERR_FILENAME_TOO_LONG', - PCLZIP_ERR_INVALID_ZIP => 'PCLZIP_ERR_INVALID_ZIP', - PCLZIP_ERR_BAD_EXTRACTED_FILE => 'PCLZIP_ERR_BAD_EXTRACTED_FILE', - PCLZIP_ERR_DIR_CREATE_FAIL => 'PCLZIP_ERR_DIR_CREATE_FAIL', - PCLZIP_ERR_BAD_EXTENSION => 'PCLZIP_ERR_BAD_EXTENSION', - PCLZIP_ERR_BAD_FORMAT => 'PCLZIP_ERR_BAD_FORMAT', - PCLZIP_ERR_DELETE_FILE_FAIL => 'PCLZIP_ERR_DELETE_FILE_FAIL', - PCLZIP_ERR_RENAME_FILE_FAIL => 'PCLZIP_ERR_RENAME_FILE_FAIL', - PCLZIP_ERR_BAD_CHECKSUM => 'PCLZIP_ERR_BAD_CHECKSUM', - PCLZIP_ERR_INVALID_ARCHIVE_ZIP => 'PCLZIP_ERR_INVALID_ARCHIVE_ZIP', - PCLZIP_ERR_MISSING_OPTION_VALUE => 'PCLZIP_ERR_MISSING_OPTION_VALUE', - PCLZIP_ERR_INVALID_OPTION_VALUE => 'PCLZIP_ERR_INVALID_OPTION_VALUE', - PCLZIP_ERR_UNSUPPORTED_COMPRESSION => 'PCLZIP_ERR_UNSUPPORTED_COMPRESSION', - PCLZIP_ERR_UNSUPPORTED_ENCRYPTION => 'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION' - ,PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE => 'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE' - ,PCLZIP_ERR_DIRECTORY_RESTRICTION => 'PCLZIP_ERR_DIRECTORY_RESTRICTION' - ); - - if (isset($v_name[$this->error_code])) { - $v_value = $v_name[$this->error_code]; - } - else { - $v_value = 'NoName'; - } - - if ($p_with_code) { - return($v_value.' ('.$this->error_code.')'); - } - else { - return($v_value); - } - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : errorInfo() - // Description : - // Parameters : - // -------------------------------------------------------------------------------- - function errorInfo($p_full=false) - { - if (PCLZIP_ERROR_EXTERNAL == 1) { - return(PclErrorString()); - } - else { - if ($p_full) { - return($this->errorName(true)." : ".$this->error_string); - } - else { - return($this->error_string." [code ".$this->error_code."]"); - } - } - } - // -------------------------------------------------------------------------------- - - -// -------------------------------------------------------------------------------- -// ***** UNDER THIS LINE ARE DEFINED PRIVATE INTERNAL FUNCTIONS ***** -// ***** ***** -// ***** THESES FUNCTIONS MUST NOT BE USED DIRECTLY ***** -// -------------------------------------------------------------------------------- - - - - // -------------------------------------------------------------------------------- - // Function : privCheckFormat() - // Description : - // This method check that the archive exists and is a valid zip archive. - // Several level of check exists. (futur) - // Parameters : - // $p_level : Level of check. Default 0. - // 0 : Check the first bytes (magic codes) (default value)) - // 1 : 0 + Check the central directory (futur) - // 2 : 1 + Check each file header (futur) - // Return Values : - // true on success, - // false on error, the error code is set. - // -------------------------------------------------------------------------------- - function privCheckFormat($p_level=0) - { - $v_result = true; - - // ----- Reset the file system cache - clearstatcache(); - - // ----- Reset the error handler - $this->privErrorReset(); - - // ----- Look if the file exits - if (!is_file($this->zipname)) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "Missing archive file '".$this->zipname."'"); - return(false); - } - - // ----- Check that the file is readeable - if (!is_readable($this->zipname)) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to read archive '".$this->zipname."'"); - return(false); - } - - // ----- Check the magic code - // TBC - - // ----- Check the central header - // TBC - - // ----- Check each file header - // TBC - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privParseOptions() - // Description : - // This internal methods reads the variable list of arguments ($p_options_list, - // $p_size) and generate an array with the options and values ($v_result_list). - // $v_requested_options contains the options that can be present and those that - // must be present. - // $v_requested_options is an array, with the option value as key, and 'optional', - // or 'mandatory' as value. - // Parameters : - // See above. - // Return Values : - // 1 on success. - // 0 on failure. - // -------------------------------------------------------------------------------- - function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_requested_options=false) - { - $v_result=1; - - // ----- Read the options - $i=0; - while ($i<$p_size) { - - // ----- Check if the option is supported - if (!isset($v_requested_options[$p_options_list[$i]])) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid optional parameter '".$p_options_list[$i]."' for this method"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Look for next option - switch ($p_options_list[$i]) { - // ----- Look for options that request a path value - case PCLZIP_OPT_PATH : - case PCLZIP_OPT_REMOVE_PATH : - case PCLZIP_OPT_ADD_PATH : - // ----- Check the number of parameters - if (($i+1) >= $p_size) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Get the value - $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE); - $i++; - break; - - case PCLZIP_OPT_TEMP_FILE_THRESHOLD : - // ----- Check the number of parameters - if (($i+1) >= $p_size) { - PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - return PclZip::errorCode(); - } - - // ----- Check for incompatible options - if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_OFF])) { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_OFF'"); - return PclZip::errorCode(); - } - - // ----- Check the value - $v_value = $p_options_list[$i+1]; - if ((!is_integer($v_value)) || ($v_value<0)) { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Integer expected for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - return PclZip::errorCode(); - } - - // ----- Get the value (and convert it in bytes) - $v_result_list[$p_options_list[$i]] = $v_value*1048576; - $i++; - break; - - case PCLZIP_OPT_TEMP_FILE_ON : - // ----- Check for incompatible options - if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_OFF])) { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_OFF'"); - return PclZip::errorCode(); - } - - $v_result_list[$p_options_list[$i]] = true; - break; - - case PCLZIP_OPT_TEMP_FILE_OFF : - // ----- Check for incompatible options - if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_ON])) { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_ON'"); - return PclZip::errorCode(); - } - // ----- Check for incompatible options - if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_THRESHOLD'"); - return PclZip::errorCode(); - } - - $v_result_list[$p_options_list[$i]] = true; - break; - - case PCLZIP_OPT_EXTRACT_DIR_RESTRICTION : - // ----- Check the number of parameters - if (($i+1) >= $p_size) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Get the value - if ( is_string($p_options_list[$i+1]) - && ($p_options_list[$i+1] != '')) { - $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE); - $i++; - } - else { - } - break; - - // ----- Look for options that request an array of string for value - case PCLZIP_OPT_BY_NAME : - // ----- Check the number of parameters - if (($i+1) >= $p_size) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Get the value - if (is_string($p_options_list[$i+1])) { - $v_result_list[$p_options_list[$i]][0] = $p_options_list[$i+1]; - } - else if (is_array($p_options_list[$i+1])) { - $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; - } - else { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - - // ----- Return - return PclZip::errorCode(); - } - $i++; - break; - - // ----- Look for options that request an EREG or PREG expression - case PCLZIP_OPT_BY_EREG : - // ereg() is deprecated starting with PHP 5.3. Move PCLZIP_OPT_BY_EREG - // to PCLZIP_OPT_BY_PREG - $p_options_list[$i] = PCLZIP_OPT_BY_PREG; - case PCLZIP_OPT_BY_PREG : - //case PCLZIP_OPT_CRYPT : - // ----- Check the number of parameters - if (($i+1) >= $p_size) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Get the value - if (is_string($p_options_list[$i+1])) { - $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; - } - else { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - - // ----- Return - return PclZip::errorCode(); - } - $i++; - break; - - // ----- Look for options that takes a string - case PCLZIP_OPT_COMMENT : - case PCLZIP_OPT_ADD_COMMENT : - case PCLZIP_OPT_PREPEND_COMMENT : - // ----- Check the number of parameters - if (($i+1) >= $p_size) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, - "Missing parameter value for option '" - .PclZipUtilOptionText($p_options_list[$i]) - ."'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Get the value - if (is_string($p_options_list[$i+1])) { - $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; - } - else { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, - "Wrong parameter value for option '" - .PclZipUtilOptionText($p_options_list[$i]) - ."'"); - - // ----- Return - return PclZip::errorCode(); - } - $i++; - break; - - // ----- Look for options that request an array of index - case PCLZIP_OPT_BY_INDEX : - // ----- Check the number of parameters - if (($i+1) >= $p_size) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Get the value - $v_work_list = array(); - if (is_string($p_options_list[$i+1])) { - - // ----- Remove spaces - $p_options_list[$i+1] = strtr($p_options_list[$i+1], ' ', ''); - - // ----- Parse items - $v_work_list = explode(",", $p_options_list[$i+1]); - } - else if (is_integer($p_options_list[$i+1])) { - $v_work_list[0] = $p_options_list[$i+1].'-'.$p_options_list[$i+1]; - } - else if (is_array($p_options_list[$i+1])) { - $v_work_list = $p_options_list[$i+1]; - } - else { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Value must be integer, string or array for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Reduce the index list - // each index item in the list must be a couple with a start and - // an end value : [0,3], [5-5], [8-10], ... - // ----- Check the format of each item - $v_sort_flag=false; - $v_sort_value=0; - for ($j=0; $j= $p_size) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Get the value - $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; - $i++; - break; - - // ----- Look for options that request a call-back - case PCLZIP_CB_PRE_EXTRACT : - case PCLZIP_CB_POST_EXTRACT : - case PCLZIP_CB_PRE_ADD : - case PCLZIP_CB_POST_ADD : - /* for futur use - case PCLZIP_CB_PRE_DELETE : - case PCLZIP_CB_POST_DELETE : - case PCLZIP_CB_PRE_LIST : - case PCLZIP_CB_POST_LIST : - */ - // ----- Check the number of parameters - if (($i+1) >= $p_size) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Get the value - $v_function_name = $p_options_list[$i+1]; - - // ----- Check that the value is a valid existing function - if (!function_exists($v_function_name)) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Function '".$v_function_name."()' is not an existing function for option '".PclZipUtilOptionText($p_options_list[$i])."'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Set the attribute - $v_result_list[$p_options_list[$i]] = $v_function_name; - $i++; - break; - - default : - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, - "Unknown parameter '" - .$p_options_list[$i]."'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Next options - $i++; - } - - // ----- Look for mandatory options - if ($v_requested_options !== false) { - for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) { - // ----- Look for mandatory option - if ($v_requested_options[$key] == 'mandatory') { - // ----- Look if present - if (!isset($v_result_list[$key])) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")"); - - // ----- Return - return PclZip::errorCode(); - } - } - } - } - - // ----- Look for default values - if (!isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) { - - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privOptionDefaultThreshold() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privOptionDefaultThreshold(&$p_options) - { - $v_result=1; - - if (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]) - || isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) { - return $v_result; - } - - // ----- Get 'memory_limit' configuration value - $v_memory_limit = ini_get('memory_limit'); - $v_memory_limit = trim($v_memory_limit); - $last = strtolower(substr($v_memory_limit, -1)); - - if($last == 'g') - //$v_memory_limit = $v_memory_limit*1024*1024*1024; - $v_memory_limit = $v_memory_limit*1073741824; - if($last == 'm') - //$v_memory_limit = $v_memory_limit*1024*1024; - $v_memory_limit = $v_memory_limit*1048576; - if($last == 'k') - $v_memory_limit = $v_memory_limit*1024; - - $p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] = floor($v_memory_limit*PCLZIP_TEMPORARY_FILE_RATIO); - - - // ----- Sanity check : No threshold if value lower than 1M - if ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] < 1048576) { - unset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]); - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privFileDescrParseAtt() - // Description : - // Parameters : - // Return Values : - // 1 on success. - // 0 on failure. - // -------------------------------------------------------------------------------- - function privFileDescrParseAtt(&$p_file_list, &$p_filedescr, $v_options, $v_requested_options=false) - { - $v_result=1; - - // ----- For each file in the list check the attributes - foreach ($p_file_list as $v_key => $v_value) { - - // ----- Check if the option is supported - if (!isset($v_requested_options[$v_key])) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid file attribute '".$v_key."' for this file"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Look for attribute - switch ($v_key) { - case PCLZIP_ATT_FILE_NAME : - if (!is_string($v_value)) { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'"); - return PclZip::errorCode(); - } - - $p_filedescr['filename'] = PclZipUtilPathReduction($v_value); - - if ($p_filedescr['filename'] == '') { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty filename for attribute '".PclZipUtilOptionText($v_key)."'"); - return PclZip::errorCode(); - } - - break; - - case PCLZIP_ATT_FILE_NEW_SHORT_NAME : - if (!is_string($v_value)) { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'"); - return PclZip::errorCode(); - } - - $p_filedescr['new_short_name'] = PclZipUtilPathReduction($v_value); - - if ($p_filedescr['new_short_name'] == '') { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty short filename for attribute '".PclZipUtilOptionText($v_key)."'"); - return PclZip::errorCode(); - } - break; - - case PCLZIP_ATT_FILE_NEW_FULL_NAME : - if (!is_string($v_value)) { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'"); - return PclZip::errorCode(); - } - - $p_filedescr['new_full_name'] = PclZipUtilPathReduction($v_value); - - if ($p_filedescr['new_full_name'] == '') { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty full filename for attribute '".PclZipUtilOptionText($v_key)."'"); - return PclZip::errorCode(); - } - break; - - // ----- Look for options that takes a string - case PCLZIP_ATT_FILE_COMMENT : - if (!is_string($v_value)) { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'"); - return PclZip::errorCode(); - } - - $p_filedescr['comment'] = $v_value; - break; - - case PCLZIP_ATT_FILE_MTIME : - if (!is_integer($v_value)) { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". Integer expected for attribute '".PclZipUtilOptionText($v_key)."'"); - return PclZip::errorCode(); - } - - $p_filedescr['mtime'] = $v_value; - break; - - case PCLZIP_ATT_FILE_CONTENT : - $p_filedescr['content'] = $v_value; - break; - - default : - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, - "Unknown parameter '".$v_key."'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Look for mandatory options - if ($v_requested_options !== false) { - for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) { - // ----- Look for mandatory option - if ($v_requested_options[$key] == 'mandatory') { - // ----- Look if present - if (!isset($p_file_list[$key])) { - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")"); - return PclZip::errorCode(); - } - } - } - } - - // end foreach - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privFileDescrExpand() - // Description : - // This method look for each item of the list to see if its a file, a folder - // or a string to be added as file. For any other type of files (link, other) - // just ignore the item. - // Then prepare the information that will be stored for that file. - // When its a folder, expand the folder with all the files that are in that - // folder (recursively). - // Parameters : - // Return Values : - // 1 on success. - // 0 on failure. - // -------------------------------------------------------------------------------- - function privFileDescrExpand(&$p_filedescr_list, &$p_options) - { - $v_result=1; - - // ----- Create a result list - $v_result_list = array(); - - // ----- Look each entry - for ($i=0; $iprivCalculateStoredFilename($v_descr, $p_options); - - // ----- Add the descriptor in result list - $v_result_list[sizeof($v_result_list)] = $v_descr; - - // ----- Look for folder - if ($v_descr['type'] == 'folder') { - // ----- List of items in folder - $v_dirlist_descr = array(); - $v_dirlist_nb = 0; - if ($v_folder_handler = @opendir($v_descr['filename'])) { - while (($v_item_handler = @readdir($v_folder_handler)) !== false) { - - // ----- Skip '.' and '..' - if (($v_item_handler == '.') || ($v_item_handler == '..')) { - continue; - } - - // ----- Compose the full filename - $v_dirlist_descr[$v_dirlist_nb]['filename'] = $v_descr['filename'].'/'.$v_item_handler; - - // ----- Look for different stored filename - // Because the name of the folder was changed, the name of the - // files/sub-folders also change - if (($v_descr['stored_filename'] != $v_descr['filename']) - && (!isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH]))) { - if ($v_descr['stored_filename'] != '') { - $v_dirlist_descr[$v_dirlist_nb]['new_full_name'] = $v_descr['stored_filename'].'/'.$v_item_handler; - } - else { - $v_dirlist_descr[$v_dirlist_nb]['new_full_name'] = $v_item_handler; - } - } - - $v_dirlist_nb++; - } - - @closedir($v_folder_handler); - } - else { - // TBC : unable to open folder in read mode - } - - // ----- Expand each element of the list - if ($v_dirlist_nb != 0) { - // ----- Expand - if (($v_result = $this->privFileDescrExpand($v_dirlist_descr, $p_options)) != 1) { - return $v_result; - } - - // ----- Concat the resulting list - $v_result_list = array_merge($v_result_list, $v_dirlist_descr); - } - else { - } - - // ----- Free local array - unset($v_dirlist_descr); - } - } - - // ----- Get the result list - $p_filedescr_list = $v_result_list; - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privCreate() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privCreate($p_filedescr_list, &$p_result_list, &$p_options) - { - $v_result=1; - $v_list_detail = array(); - - // ----- Magic quotes trick - $this->privDisableMagicQuotes(); - - // ----- Open the file in write mode - if (($v_result = $this->privOpenFd('wb')) != 1) - { - // ----- Return - return $v_result; - } - - // ----- Add the list of files - $v_result = $this->privAddList($p_filedescr_list, $p_result_list, $p_options); - - // ----- Close - $this->privCloseFd(); - - // ----- Magic quotes trick - $this->privSwapBackMagicQuotes(); - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privAdd() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privAdd($p_filedescr_list, &$p_result_list, &$p_options) - { - $v_result=1; - $v_list_detail = array(); - - // ----- Look if the archive exists or is empty - if ((!is_file($this->zipname)) || (filesize($this->zipname) == 0)) - { - - // ----- Do a create - $v_result = $this->privCreate($p_filedescr_list, $p_result_list, $p_options); - - // ----- Return - return $v_result; - } - // ----- Magic quotes trick - $this->privDisableMagicQuotes(); - - // ----- Open the zip file - if (($v_result=$this->privOpenFd('rb')) != 1) - { - // ----- Magic quotes trick - $this->privSwapBackMagicQuotes(); - - // ----- Return - return $v_result; - } - - // ----- Read the central directory informations - $v_central_dir = array(); - if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) - { - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - return $v_result; - } - - // ----- Go to beginning of File - @rewind($this->zip_fd); - - // ----- Creates a temporay file - $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp'; - - // ----- Open the temporary file in write mode - if (($v_zip_temp_fd = @fopen($v_zip_temp_name, 'wb')) == 0) - { - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_zip_temp_name.'\' in binary write mode'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Copy the files from the archive to the temporary file - // TBC : Here I should better append the file and go back to erase the central dir - $v_size = $v_central_dir['offset']; - while ($v_size != 0) - { - $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = fread($this->zip_fd, $v_read_size); - @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Swap the file descriptor - // Here is a trick : I swap the temporary fd with the zip fd, in order to use - // the following methods on the temporary fil and not the real archive - $v_swap = $this->zip_fd; - $this->zip_fd = $v_zip_temp_fd; - $v_zip_temp_fd = $v_swap; - - // ----- Add the files - $v_header_list = array(); - if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1) - { - fclose($v_zip_temp_fd); - $this->privCloseFd(); - @unlink($v_zip_temp_name); - $this->privSwapBackMagicQuotes(); - - // ----- Return - return $v_result; - } - - // ----- Store the offset of the central dir - $v_offset = @ftell($this->zip_fd); - - // ----- Copy the block of file headers from the old archive - $v_size = $v_central_dir['size']; - while ($v_size != 0) - { - $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = @fread($v_zip_temp_fd, $v_read_size); - @fwrite($this->zip_fd, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Create the Central Dir files header - for ($i=0, $v_count=0; $iprivWriteCentralFileHeader($v_header_list[$i])) != 1) { - fclose($v_zip_temp_fd); - $this->privCloseFd(); - @unlink($v_zip_temp_name); - $this->privSwapBackMagicQuotes(); - - // ----- Return - return $v_result; - } - $v_count++; - } - - // ----- Transform the header to a 'usable' info - $this->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); - } - - // ----- Zip file comment - $v_comment = $v_central_dir['comment']; - if (isset($p_options[PCLZIP_OPT_COMMENT])) { - $v_comment = $p_options[PCLZIP_OPT_COMMENT]; - } - if (isset($p_options[PCLZIP_OPT_ADD_COMMENT])) { - $v_comment = $v_comment.$p_options[PCLZIP_OPT_ADD_COMMENT]; - } - if (isset($p_options[PCLZIP_OPT_PREPEND_COMMENT])) { - $v_comment = $p_options[PCLZIP_OPT_PREPEND_COMMENT].$v_comment; - } - - // ----- Calculate the size of the central header - $v_size = @ftell($this->zip_fd)-$v_offset; - - // ----- Create the central dir footer - if (($v_result = $this->privWriteCentralHeader($v_count+$v_central_dir['entries'], $v_size, $v_offset, $v_comment)) != 1) - { - // ----- Reset the file list - unset($v_header_list); - $this->privSwapBackMagicQuotes(); - - // ----- Return - return $v_result; - } - - // ----- Swap back the file descriptor - $v_swap = $this->zip_fd; - $this->zip_fd = $v_zip_temp_fd; - $v_zip_temp_fd = $v_swap; - - // ----- Close - $this->privCloseFd(); - - // ----- Close the temporary file - @fclose($v_zip_temp_fd); - - // ----- Magic quotes trick - $this->privSwapBackMagicQuotes(); - - // ----- Delete the zip file - // TBC : I should test the result ... - @unlink($this->zipname); - - // ----- Rename the temporary file - // TBC : I should test the result ... - //@rename($v_zip_temp_name, $this->zipname); - PclZipUtilRename($v_zip_temp_name, $this->zipname); - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privOpenFd() - // Description : - // Parameters : - // -------------------------------------------------------------------------------- - function privOpenFd($p_mode) - { - $v_result=1; - - // ----- Look if already open - if ($this->zip_fd != 0) - { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Zip file \''.$this->zipname.'\' already open'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Open the zip file - if (($this->zip_fd = @fopen($this->zipname, $p_mode)) == 0) - { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in '.$p_mode.' mode'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privCloseFd() - // Description : - // Parameters : - // -------------------------------------------------------------------------------- - function privCloseFd() - { - $v_result=1; - - if ($this->zip_fd != 0) - @fclose($this->zip_fd); - $this->zip_fd = 0; - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privAddList() - // Description : - // $p_add_dir and $p_remove_dir will give the ability to memorize a path which is - // different from the real path of the file. This is usefull if you want to have PclTar - // running in any directory, and memorize relative path from an other directory. - // Parameters : - // $p_list : An array containing the file or directory names to add in the tar - // $p_result_list : list of added files with their properties (specially the status field) - // $p_add_dir : Path to add in the filename path archived - // $p_remove_dir : Path to remove in the filename path archived - // Return Values : - // -------------------------------------------------------------------------------- -// function privAddList($p_list, &$p_result_list, $p_add_dir, $p_remove_dir, $p_remove_all_dir, &$p_options) - function privAddList($p_filedescr_list, &$p_result_list, &$p_options) - { - $v_result=1; - - // ----- Add the files - $v_header_list = array(); - if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1) - { - // ----- Return - return $v_result; - } - - // ----- Store the offset of the central dir - $v_offset = @ftell($this->zip_fd); - - // ----- Create the Central Dir files header - for ($i=0,$v_count=0; $iprivWriteCentralFileHeader($v_header_list[$i])) != 1) { - // ----- Return - return $v_result; - } - $v_count++; - } - - // ----- Transform the header to a 'usable' info - $this->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); - } - - // ----- Zip file comment - $v_comment = ''; - if (isset($p_options[PCLZIP_OPT_COMMENT])) { - $v_comment = $p_options[PCLZIP_OPT_COMMENT]; - } - - // ----- Calculate the size of the central header - $v_size = @ftell($this->zip_fd)-$v_offset; - - // ----- Create the central dir footer - if (($v_result = $this->privWriteCentralHeader($v_count, $v_size, $v_offset, $v_comment)) != 1) - { - // ----- Reset the file list - unset($v_header_list); - - // ----- Return - return $v_result; - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privAddFileList() - // Description : - // Parameters : - // $p_filedescr_list : An array containing the file description - // or directory names to add in the zip - // $p_result_list : list of added files with their properties (specially the status field) - // Return Values : - // -------------------------------------------------------------------------------- - function privAddFileList($p_filedescr_list, &$p_result_list, &$p_options) - { - $v_result=1; - $v_header = array(); - - // ----- Recuperate the current number of elt in list - $v_nb = sizeof($p_result_list); - - // ----- Loop on the files - for ($j=0; ($jprivAddFile($p_filedescr_list[$j], $v_header, - $p_options); - if ($v_result != 1) { - return $v_result; - } - - // ----- Store the file infos - $p_result_list[$v_nb++] = $v_header; - } - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privAddFile() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privAddFile($p_filedescr, &$p_header, &$p_options) - { - $v_result=1; - - // ----- Working variable - $p_filename = $p_filedescr['filename']; - - // TBC : Already done in the fileAtt check ... ? - if ($p_filename == "") { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid file list parameter (invalid or empty list)"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Look for a stored different filename - /* TBC : Removed - if (isset($p_filedescr['stored_filename'])) { - $v_stored_filename = $p_filedescr['stored_filename']; - } - else { - $v_stored_filename = $p_filedescr['stored_filename']; - } - */ - - // ----- Set the file properties - clearstatcache(); - $p_header['version'] = 20; - $p_header['version_extracted'] = 10; - $p_header['flag'] = 0; - $p_header['compression'] = 0; - $p_header['crc'] = 0; - $p_header['compressed_size'] = 0; - $p_header['filename_len'] = strlen($p_filename); - $p_header['extra_len'] = 0; - $p_header['disk'] = 0; - $p_header['internal'] = 0; - $p_header['offset'] = 0; - $p_header['filename'] = $p_filename; -// TBC : Removed $p_header['stored_filename'] = $v_stored_filename; - $p_header['stored_filename'] = $p_filedescr['stored_filename']; - $p_header['extra'] = ''; - $p_header['status'] = 'ok'; - $p_header['index'] = -1; - - // ----- Look for regular file - if ($p_filedescr['type']=='file') { - $p_header['external'] = 0x00000000; - $p_header['size'] = filesize($p_filename); - } - - // ----- Look for regular folder - else if ($p_filedescr['type']=='folder') { - $p_header['external'] = 0x00000010; - $p_header['mtime'] = filemtime($p_filename); - $p_header['size'] = filesize($p_filename); - } - - // ----- Look for virtual file - else if ($p_filedescr['type'] == 'virtual_file') { - $p_header['external'] = 0x00000000; - $p_header['size'] = strlen($p_filedescr['content']); - } - - - // ----- Look for filetime - if (isset($p_filedescr['mtime'])) { - $p_header['mtime'] = $p_filedescr['mtime']; - } - else if ($p_filedescr['type'] == 'virtual_file') { - $p_header['mtime'] = time(); - } - else { - $p_header['mtime'] = filemtime($p_filename); - } - - // ------ Look for file comment - if (isset($p_filedescr['comment'])) { - $p_header['comment_len'] = strlen($p_filedescr['comment']); - $p_header['comment'] = $p_filedescr['comment']; - } - else { - $p_header['comment_len'] = 0; - $p_header['comment'] = ''; - } - - // ----- Look for pre-add callback - if (isset($p_options[PCLZIP_CB_PRE_ADD])) { - - // ----- Generate a local information - $v_local_header = array(); - $this->privConvertHeader2FileInfo($p_header, $v_local_header); - - // ----- Call the callback - // Here I do not use call_user_func() because I need to send a reference to the - // header. - $v_result = $p_options[PCLZIP_CB_PRE_ADD](PCLZIP_CB_PRE_ADD, $v_local_header); - if ($v_result == 0) { - // ----- Change the file status - $p_header['status'] = "skipped"; - $v_result = 1; - } - - // ----- Update the informations - // Only some fields can be modified - if ($p_header['stored_filename'] != $v_local_header['stored_filename']) { - $p_header['stored_filename'] = PclZipUtilPathReduction($v_local_header['stored_filename']); - } - } - - // ----- Look for empty stored filename - if ($p_header['stored_filename'] == "") { - $p_header['status'] = "filtered"; - } - - // ----- Check the path length - if (strlen($p_header['stored_filename']) > 0xFF) { - $p_header['status'] = 'filename_too_long'; - } - - // ----- Look if no error, or file not skipped - if ($p_header['status'] == 'ok') { - - // ----- Look for a file - if ($p_filedescr['type'] == 'file') { - // ----- Look for using temporary file to zip - if ( (!isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) - && (isset($p_options[PCLZIP_OPT_TEMP_FILE_ON]) - || (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]) - && ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] <= $p_header['size'])) ) ) { - $v_result = $this->privAddFileUsingTempFile($p_filedescr, $p_header, $p_options); - if ($v_result < PCLZIP_ERR_NO_ERROR) { - return $v_result; - } - } - - // ----- Use "in memory" zip algo - else { - - // ----- Open the source file - if (($v_file = @fopen($p_filename, "rb")) == 0) { - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to open file '$p_filename' in binary read mode"); - return PclZip::errorCode(); - } - - // ----- Read the file content - $v_content = @fread($v_file, $p_header['size']); - - // ----- Close the file - @fclose($v_file); - - // ----- Calculate the CRC - $p_header['crc'] = @crc32($v_content); - - // ----- Look for no compression - if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) { - // ----- Set header parameters - $p_header['compressed_size'] = $p_header['size']; - $p_header['compression'] = 0; - } - - // ----- Look for normal compression - else { - // ----- Compress the content - $v_content = @gzdeflate($v_content); - - // ----- Set header parameters - $p_header['compressed_size'] = strlen($v_content); - $p_header['compression'] = 8; - } - - // ----- Call the header generation - if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { - @fclose($v_file); - return $v_result; - } - - // ----- Write the compressed (or not) content - @fwrite($this->zip_fd, $v_content, $p_header['compressed_size']); - - } - - } - - // ----- Look for a virtual file (a file from string) - else if ($p_filedescr['type'] == 'virtual_file') { - - $v_content = $p_filedescr['content']; - - // ----- Calculate the CRC - $p_header['crc'] = @crc32($v_content); - - // ----- Look for no compression - if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) { - // ----- Set header parameters - $p_header['compressed_size'] = $p_header['size']; - $p_header['compression'] = 0; - } - - // ----- Look for normal compression - else { - // ----- Compress the content - $v_content = @gzdeflate($v_content); - - // ----- Set header parameters - $p_header['compressed_size'] = strlen($v_content); - $p_header['compression'] = 8; - } - - // ----- Call the header generation - if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { - @fclose($v_file); - return $v_result; - } - - // ----- Write the compressed (or not) content - @fwrite($this->zip_fd, $v_content, $p_header['compressed_size']); - } - - // ----- Look for a directory - else if ($p_filedescr['type'] == 'folder') { - // ----- Look for directory last '/' - if (@substr($p_header['stored_filename'], -1) != '/') { - $p_header['stored_filename'] .= '/'; - } - - // ----- Set the file properties - $p_header['size'] = 0; - //$p_header['external'] = 0x41FF0010; // Value for a folder : to be checked - $p_header['external'] = 0x00000010; // Value for a folder : to be checked - - // ----- Call the header generation - if (($v_result = $this->privWriteFileHeader($p_header)) != 1) - { - return $v_result; - } - } - } - - // ----- Look for post-add callback - if (isset($p_options[PCLZIP_CB_POST_ADD])) { - - // ----- Generate a local information - $v_local_header = array(); - $this->privConvertHeader2FileInfo($p_header, $v_local_header); - - // ----- Call the callback - // Here I do not use call_user_func() because I need to send a reference to the - // header. - $v_result = $p_options[PCLZIP_CB_POST_ADD](PCLZIP_CB_POST_ADD, $v_local_header); - if ($v_result == 0) { - // ----- Ignored - $v_result = 1; - } - - // ----- Update the informations - // Nothing can be modified - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privAddFileUsingTempFile() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privAddFileUsingTempFile($p_filedescr, &$p_header, &$p_options) - { - $v_result=PCLZIP_ERR_NO_ERROR; - - // ----- Working variable - $p_filename = $p_filedescr['filename']; - - - // ----- Open the source file - if (($v_file = @fopen($p_filename, "rb")) == 0) { - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to open file '$p_filename' in binary read mode"); - return PclZip::errorCode(); - } - - // ----- Creates a compressed temporary file - $v_gzip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.gz'; - if (($v_file_compressed = @gzopen($v_gzip_temp_name, "wb")) == 0) { - fclose($v_file); - PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary write mode'); - return PclZip::errorCode(); - } - - // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks - $v_size = filesize($p_filename); - while ($v_size != 0) { - $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = @fread($v_file, $v_read_size); - //$v_binary_data = pack('a'.$v_read_size, $v_buffer); - @gzputs($v_file_compressed, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Close the file - @fclose($v_file); - @gzclose($v_file_compressed); - - // ----- Check the minimum file size - if (filesize($v_gzip_temp_name) < 18) { - PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'gzip temporary file \''.$v_gzip_temp_name.'\' has invalid filesize - should be minimum 18 bytes'); - return PclZip::errorCode(); - } - - // ----- Extract the compressed attributes - if (($v_file_compressed = @fopen($v_gzip_temp_name, "rb")) == 0) { - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode'); - return PclZip::errorCode(); - } - - // ----- Read the gzip file header - $v_binary_data = @fread($v_file_compressed, 10); - $v_data_header = unpack('a1id1/a1id2/a1cm/a1flag/Vmtime/a1xfl/a1os', $v_binary_data); - - // ----- Check some parameters - $v_data_header['os'] = bin2hex($v_data_header['os']); - - // ----- Read the gzip file footer - @fseek($v_file_compressed, filesize($v_gzip_temp_name)-8); - $v_binary_data = @fread($v_file_compressed, 8); - $v_data_footer = unpack('Vcrc/Vcompressed_size', $v_binary_data); - - // ----- Set the attributes - $p_header['compression'] = ord($v_data_header['cm']); - //$p_header['mtime'] = $v_data_header['mtime']; - $p_header['crc'] = $v_data_footer['crc']; - $p_header['compressed_size'] = filesize($v_gzip_temp_name)-18; - - // ----- Close the file - @fclose($v_file_compressed); - - // ----- Call the header generation - if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { - return $v_result; - } - - // ----- Add the compressed data - if (($v_file_compressed = @fopen($v_gzip_temp_name, "rb")) == 0) - { - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode'); - return PclZip::errorCode(); - } - - // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks - fseek($v_file_compressed, 10); - $v_size = $p_header['compressed_size']; - while ($v_size != 0) - { - $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = @fread($v_file_compressed, $v_read_size); - //$v_binary_data = pack('a'.$v_read_size, $v_buffer); - @fwrite($this->zip_fd, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Close the file - @fclose($v_file_compressed); - - // ----- Unlink the temporary file - @unlink($v_gzip_temp_name); - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privCalculateStoredFilename() - // Description : - // Based on file descriptor properties and global options, this method - // calculate the filename that will be stored in the archive. - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privCalculateStoredFilename(&$p_filedescr, &$p_options) - { - $v_result=1; - - // ----- Working variables - $p_filename = $p_filedescr['filename']; - if (isset($p_options[PCLZIP_OPT_ADD_PATH])) { - $p_add_dir = $p_options[PCLZIP_OPT_ADD_PATH]; - } - else { - $p_add_dir = ''; - } - if (isset($p_options[PCLZIP_OPT_REMOVE_PATH])) { - $p_remove_dir = $p_options[PCLZIP_OPT_REMOVE_PATH]; - } - else { - $p_remove_dir = ''; - } - if (isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH])) { - $p_remove_all_dir = $p_options[PCLZIP_OPT_REMOVE_ALL_PATH]; - } - else { - $p_remove_all_dir = 0; - } - - - // ----- Look for full name change - if (isset($p_filedescr['new_full_name'])) { - // ----- Remove drive letter if any - $v_stored_filename = PclZipUtilTranslateWinPath($p_filedescr['new_full_name']); - } - - // ----- Look for path and/or short name change - else { - - // ----- Look for short name change - // Its when we cahnge just the filename but not the path - if (isset($p_filedescr['new_short_name'])) { - $v_path_info = pathinfo($p_filename); - $v_dir = ''; - if ($v_path_info['dirname'] != '') { - $v_dir = $v_path_info['dirname'].'/'; - } - $v_stored_filename = $v_dir.$p_filedescr['new_short_name']; - } - else { - // ----- Calculate the stored filename - $v_stored_filename = $p_filename; - } - - // ----- Look for all path to remove - if ($p_remove_all_dir) { - $v_stored_filename = basename($p_filename); - } - // ----- Look for partial path remove - else if ($p_remove_dir != "") { - if (substr($p_remove_dir, -1) != '/') - $p_remove_dir .= "/"; - - if ( (substr($p_filename, 0, 2) == "./") - || (substr($p_remove_dir, 0, 2) == "./")) { - - if ( (substr($p_filename, 0, 2) == "./") - && (substr($p_remove_dir, 0, 2) != "./")) { - $p_remove_dir = "./".$p_remove_dir; - } - if ( (substr($p_filename, 0, 2) != "./") - && (substr($p_remove_dir, 0, 2) == "./")) { - $p_remove_dir = substr($p_remove_dir, 2); - } - } - - $v_compare = PclZipUtilPathInclusion($p_remove_dir, - $v_stored_filename); - if ($v_compare > 0) { - if ($v_compare == 2) { - $v_stored_filename = ""; - } - else { - $v_stored_filename = substr($v_stored_filename, - strlen($p_remove_dir)); - } - } - } - - // ----- Remove drive letter if any - $v_stored_filename = PclZipUtilTranslateWinPath($v_stored_filename); - - // ----- Look for path to add - if ($p_add_dir != "") { - if (substr($p_add_dir, -1) == "/") - $v_stored_filename = $p_add_dir.$v_stored_filename; - else - $v_stored_filename = $p_add_dir."/".$v_stored_filename; - } - } - - // ----- Filename (reduce the path of stored name) - $v_stored_filename = PclZipUtilPathReduction($v_stored_filename); - $p_filedescr['stored_filename'] = $v_stored_filename; - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privWriteFileHeader() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privWriteFileHeader(&$p_header) - { - $v_result=1; - - // ----- Store the offset position of the file - $p_header['offset'] = ftell($this->zip_fd); - - // ----- Transform UNIX mtime to DOS format mdate/mtime - $v_date = getdate($p_header['mtime']); - $v_mtime = ($v_date['hours']<<11) + ($v_date['minutes']<<5) + $v_date['seconds']/2; - $v_mdate = (($v_date['year']-1980)<<9) + ($v_date['mon']<<5) + $v_date['mday']; - - // ----- Packed data - $v_binary_data = pack("VvvvvvVVVvv", 0x04034b50, - $p_header['version_extracted'], $p_header['flag'], - $p_header['compression'], $v_mtime, $v_mdate, - $p_header['crc'], $p_header['compressed_size'], - $p_header['size'], - strlen($p_header['stored_filename']), - $p_header['extra_len']); - - // ----- Write the first 148 bytes of the header in the archive - fputs($this->zip_fd, $v_binary_data, 30); - - // ----- Write the variable fields - if (strlen($p_header['stored_filename']) != 0) - { - fputs($this->zip_fd, $p_header['stored_filename'], strlen($p_header['stored_filename'])); - } - if ($p_header['extra_len'] != 0) - { - fputs($this->zip_fd, $p_header['extra'], $p_header['extra_len']); - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privWriteCentralFileHeader() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privWriteCentralFileHeader(&$p_header) - { - $v_result=1; - - // TBC - //for(reset($p_header); $key = key($p_header); next($p_header)) { - //} - - // ----- Transform UNIX mtime to DOS format mdate/mtime - $v_date = getdate($p_header['mtime']); - $v_mtime = ($v_date['hours']<<11) + ($v_date['minutes']<<5) + $v_date['seconds']/2; - $v_mdate = (($v_date['year']-1980)<<9) + ($v_date['mon']<<5) + $v_date['mday']; - - - // ----- Packed data - $v_binary_data = pack("VvvvvvvVVVvvvvvVV", 0x02014b50, - $p_header['version'], $p_header['version_extracted'], - $p_header['flag'], $p_header['compression'], - $v_mtime, $v_mdate, $p_header['crc'], - $p_header['compressed_size'], $p_header['size'], - strlen($p_header['stored_filename']), - $p_header['extra_len'], $p_header['comment_len'], - $p_header['disk'], $p_header['internal'], - $p_header['external'], $p_header['offset']); - - // ----- Write the 42 bytes of the header in the zip file - fputs($this->zip_fd, $v_binary_data, 46); - - // ----- Write the variable fields - if (strlen($p_header['stored_filename']) != 0) - { - fputs($this->zip_fd, $p_header['stored_filename'], strlen($p_header['stored_filename'])); - } - if ($p_header['extra_len'] != 0) - { - fputs($this->zip_fd, $p_header['extra'], $p_header['extra_len']); - } - if ($p_header['comment_len'] != 0) - { - fputs($this->zip_fd, $p_header['comment'], $p_header['comment_len']); - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privWriteCentralHeader() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privWriteCentralHeader($p_nb_entries, $p_size, $p_offset, $p_comment) - { - $v_result=1; - - // ----- Packed data - $v_binary_data = pack("VvvvvVVv", 0x06054b50, 0, 0, $p_nb_entries, - $p_nb_entries, $p_size, - $p_offset, strlen($p_comment)); - - // ----- Write the 22 bytes of the header in the zip file - fputs($this->zip_fd, $v_binary_data, 22); - - // ----- Write the variable fields - if (strlen($p_comment) != 0) - { - fputs($this->zip_fd, $p_comment, strlen($p_comment)); - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privList() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privList(&$p_list) - { - $v_result=1; - - // ----- Magic quotes trick - $this->privDisableMagicQuotes(); - - // ----- Open the zip file - if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0) - { - // ----- Magic quotes trick - $this->privSwapBackMagicQuotes(); - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Read the central directory informations - $v_central_dir = array(); - if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) - { - $this->privSwapBackMagicQuotes(); - return $v_result; - } - - // ----- Go to beginning of Central Dir - @rewind($this->zip_fd); - if (@fseek($this->zip_fd, $v_central_dir['offset'])) - { - $this->privSwapBackMagicQuotes(); - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Read each entry - for ($i=0; $i<$v_central_dir['entries']; $i++) - { - // ----- Read the file header - if (($v_result = $this->privReadCentralFileHeader($v_header)) != 1) - { - $this->privSwapBackMagicQuotes(); - return $v_result; - } - $v_header['index'] = $i; - - // ----- Get the only interesting attributes - $this->privConvertHeader2FileInfo($v_header, $p_list[$i]); - unset($v_header); - } - - // ----- Close the zip file - $this->privCloseFd(); - - // ----- Magic quotes trick - $this->privSwapBackMagicQuotes(); - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privConvertHeader2FileInfo() - // Description : - // This function takes the file informations from the central directory - // entries and extract the interesting parameters that will be given back. - // The resulting file infos are set in the array $p_info - // $p_info['filename'] : Filename with full path. Given by user (add), - // extracted in the filesystem (extract). - // $p_info['stored_filename'] : Stored filename in the archive. - // $p_info['size'] = Size of the file. - // $p_info['compressed_size'] = Compressed size of the file. - // $p_info['mtime'] = Last modification date of the file. - // $p_info['comment'] = Comment associated with the file. - // $p_info['folder'] = true/false : indicates if the entry is a folder or not. - // $p_info['status'] = status of the action on the file. - // $p_info['crc'] = CRC of the file content. - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privConvertHeader2FileInfo($p_header, &$p_info) - { - $v_result=1; - - // ----- Get the interesting attributes - $v_temp_path = PclZipUtilPathReduction($p_header['filename']); - $p_info['filename'] = $v_temp_path; - $v_temp_path = PclZipUtilPathReduction($p_header['stored_filename']); - $p_info['stored_filename'] = $v_temp_path; - $p_info['size'] = $p_header['size']; - $p_info['compressed_size'] = $p_header['compressed_size']; - $p_info['mtime'] = $p_header['mtime']; - $p_info['comment'] = $p_header['comment']; - $p_info['folder'] = (($p_header['external']&0x00000010)==0x00000010); - $p_info['index'] = $p_header['index']; - $p_info['status'] = $p_header['status']; - $p_info['crc'] = $p_header['crc']; - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privExtractByRule() - // Description : - // Extract a file or directory depending of rules (by index, by name, ...) - // Parameters : - // $p_file_list : An array where will be placed the properties of each - // extracted file - // $p_path : Path to add while writing the extracted files - // $p_remove_path : Path to remove (from the file memorized path) while writing the - // extracted files. If the path does not match the file path, - // the file is extracted with its memorized path. - // $p_remove_path does not apply to 'list' mode. - // $p_path and $p_remove_path are commulative. - // Return Values : - // 1 on success,0 or less on error (see error code list) - // -------------------------------------------------------------------------------- - function privExtractByRule(&$p_file_list, $p_path, $p_remove_path, $p_remove_all_path, &$p_options) - { - $v_result=1; - - // ----- Magic quotes trick - $this->privDisableMagicQuotes(); - - // ----- Check the path - if ( ($p_path == "") - || ( (substr($p_path, 0, 1) != "/") - && (substr($p_path, 0, 3) != "../") - && (substr($p_path,1,2)!=":/"))) - $p_path = "./".$p_path; - - // ----- Reduce the path last (and duplicated) '/' - if (($p_path != "./") && ($p_path != "/")) - { - // ----- Look for the path end '/' - while (substr($p_path, -1) == "/") - { - $p_path = substr($p_path, 0, strlen($p_path)-1); - } - } - - // ----- Look for path to remove format (should end by /) - if (($p_remove_path != "") && (substr($p_remove_path, -1) != '/')) - { - $p_remove_path .= '/'; - } - $p_remove_path_size = strlen($p_remove_path); - - // ----- Open the zip file - if (($v_result = $this->privOpenFd('rb')) != 1) - { - $this->privSwapBackMagicQuotes(); - return $v_result; - } - - // ----- Read the central directory informations - $v_central_dir = array(); - if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) - { - // ----- Close the zip file - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - - return $v_result; - } - - // ----- Start at beginning of Central Dir - $v_pos_entry = $v_central_dir['offset']; - - // ----- Read each entry - $j_start = 0; - for ($i=0, $v_nb_extracted=0; $i<$v_central_dir['entries']; $i++) - { - - // ----- Read next Central dir entry - @rewind($this->zip_fd); - if (@fseek($this->zip_fd, $v_pos_entry)) - { - // ----- Close the zip file - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Read the file header - $v_header = array(); - if (($v_result = $this->privReadCentralFileHeader($v_header)) != 1) - { - // ----- Close the zip file - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - - return $v_result; - } - - // ----- Store the index - $v_header['index'] = $i; - - // ----- Store the file position - $v_pos_entry = ftell($this->zip_fd); - - // ----- Look for the specific extract rules - $v_extract = false; - - // ----- Look for extract by name rule - if ( (isset($p_options[PCLZIP_OPT_BY_NAME])) - && ($p_options[PCLZIP_OPT_BY_NAME] != 0)) { - - // ----- Look if the filename is in the list - for ($j=0; ($j strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) - && (substr($v_header['stored_filename'], 0, strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) == $p_options[PCLZIP_OPT_BY_NAME][$j])) { - $v_extract = true; - } - } - // ----- Look for a filename - elseif ($v_header['stored_filename'] == $p_options[PCLZIP_OPT_BY_NAME][$j]) { - $v_extract = true; - } - } - } - - // ----- Look for extract by ereg rule - // ereg() is deprecated with PHP 5.3 - /* - else if ( (isset($p_options[PCLZIP_OPT_BY_EREG])) - && ($p_options[PCLZIP_OPT_BY_EREG] != "")) { - - if (ereg($p_options[PCLZIP_OPT_BY_EREG], $v_header['stored_filename'])) { - $v_extract = true; - } - } - */ - - // ----- Look for extract by preg rule - else if ( (isset($p_options[PCLZIP_OPT_BY_PREG])) - && ($p_options[PCLZIP_OPT_BY_PREG] != "")) { - - if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header['stored_filename'])) { - $v_extract = true; - } - } - - // ----- Look for extract by index rule - else if ( (isset($p_options[PCLZIP_OPT_BY_INDEX])) - && ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) { - - // ----- Look if the index is in the list - for ($j=$j_start; ($j=$p_options[PCLZIP_OPT_BY_INDEX][$j]['start']) && ($i<=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end'])) { - $v_extract = true; - } - if ($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end']) { - $j_start = $j+1; - } - - if ($p_options[PCLZIP_OPT_BY_INDEX][$j]['start']>$i) { - break; - } - } - } - - // ----- Look for no rule, which means extract all the archive - else { - $v_extract = true; - } - - // ----- Check compression method - if ( ($v_extract) - && ( ($v_header['compression'] != 8) - && ($v_header['compression'] != 0))) { - $v_header['status'] = 'unsupported_compression'; - - // ----- Look for PCLZIP_OPT_STOP_ON_ERROR - if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) - && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { - - $this->privSwapBackMagicQuotes(); - - PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_COMPRESSION, - "Filename '".$v_header['stored_filename']."' is " - ."compressed by an unsupported compression " - ."method (".$v_header['compression'].") "); - - return PclZip::errorCode(); - } - } - - // ----- Check encrypted files - if (($v_extract) && (($v_header['flag'] & 1) == 1)) { - $v_header['status'] = 'unsupported_encryption'; - - // ----- Look for PCLZIP_OPT_STOP_ON_ERROR - if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) - && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { - - $this->privSwapBackMagicQuotes(); - - PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_ENCRYPTION, - "Unsupported encryption for " - ." filename '".$v_header['stored_filename'] - ."'"); - - return PclZip::errorCode(); - } - } - - // ----- Look for real extraction - if (($v_extract) && ($v_header['status'] != 'ok')) { - $v_result = $this->privConvertHeader2FileInfo($v_header, - $p_file_list[$v_nb_extracted++]); - if ($v_result != 1) { - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - return $v_result; - } - - $v_extract = false; - } - - // ----- Look for real extraction - if ($v_extract) - { - - // ----- Go to the file position - @rewind($this->zip_fd); - if (@fseek($this->zip_fd, $v_header['offset'])) - { - // ----- Close the zip file - $this->privCloseFd(); - - $this->privSwapBackMagicQuotes(); - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Look for extraction as string - if ($p_options[PCLZIP_OPT_EXTRACT_AS_STRING]) { - - $v_string = ''; - - // ----- Extracting the file - $v_result1 = $this->privExtractFileAsString($v_header, $v_string, $p_options); - if ($v_result1 < 1) { - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - return $v_result1; - } - - // ----- Get the only interesting attributes - if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted])) != 1) - { - // ----- Close the zip file - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - - return $v_result; - } - - // ----- Set the file content - $p_file_list[$v_nb_extracted]['content'] = $v_string; - - // ----- Next extracted file - $v_nb_extracted++; - - // ----- Look for user callback abort - if ($v_result1 == 2) { - break; - } - } - // ----- Look for extraction in standard output - elseif ( (isset($p_options[PCLZIP_OPT_EXTRACT_IN_OUTPUT])) - && ($p_options[PCLZIP_OPT_EXTRACT_IN_OUTPUT])) { - // ----- Extracting the file in standard output - $v_result1 = $this->privExtractFileInOutput($v_header, $p_options); - if ($v_result1 < 1) { - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - return $v_result1; - } - - // ----- Get the only interesting attributes - if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) { - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - return $v_result; - } - - // ----- Look for user callback abort - if ($v_result1 == 2) { - break; - } - } - // ----- Look for normal extraction - else { - // ----- Extracting the file - $v_result1 = $this->privExtractFile($v_header, - $p_path, $p_remove_path, - $p_remove_all_path, - $p_options); - if ($v_result1 < 1) { - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - return $v_result1; - } - - // ----- Get the only interesting attributes - if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) - { - // ----- Close the zip file - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - - return $v_result; - } - - // ----- Look for user callback abort - if ($v_result1 == 2) { - break; - } - } - } - } - - // ----- Close the zip file - $this->privCloseFd(); - $this->privSwapBackMagicQuotes(); - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privExtractFile() - // Description : - // Parameters : - // Return Values : - // - // 1 : ... ? - // PCLZIP_ERR_USER_ABORTED(2) : User ask for extraction stop in callback - // -------------------------------------------------------------------------------- - function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, &$p_options) - { - $v_result=1; - - // ----- Read the file header - if (($v_result = $this->privReadFileHeader($v_header)) != 1) - { - // ----- Return - return $v_result; - } - - - // ----- Check that the file header is coherent with $p_entry info - if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) { - // TBC - } - - // ----- Look for all path to remove - if ($p_remove_all_path == true) { - // ----- Look for folder entry that not need to be extracted - if (($p_entry['external']&0x00000010)==0x00000010) { - - $p_entry['status'] = "filtered"; - - return $v_result; - } - - // ----- Get the basename of the path - $p_entry['filename'] = basename($p_entry['filename']); - } - - // ----- Look for path to remove - else if ($p_remove_path != "") - { - if (PclZipUtilPathInclusion($p_remove_path, $p_entry['filename']) == 2) - { - - // ----- Change the file status - $p_entry['status'] = "filtered"; - - // ----- Return - return $v_result; - } - - $p_remove_path_size = strlen($p_remove_path); - if (substr($p_entry['filename'], 0, $p_remove_path_size) == $p_remove_path) - { - - // ----- Remove the path - $p_entry['filename'] = substr($p_entry['filename'], $p_remove_path_size); - - } - } - - // ----- Add the path - if ($p_path != '') { - $p_entry['filename'] = $p_path."/".$p_entry['filename']; - } - - // ----- Check a base_dir_restriction - if (isset($p_options[PCLZIP_OPT_EXTRACT_DIR_RESTRICTION])) { - $v_inclusion - = PclZipUtilPathInclusion($p_options[PCLZIP_OPT_EXTRACT_DIR_RESTRICTION], - $p_entry['filename']); - if ($v_inclusion == 0) { - - PclZip::privErrorLog(PCLZIP_ERR_DIRECTORY_RESTRICTION, - "Filename '".$p_entry['filename']."' is " - ."outside PCLZIP_OPT_EXTRACT_DIR_RESTRICTION"); - - return PclZip::errorCode(); - } - } - - // ----- Look for pre-extract callback - if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) { - - // ----- Generate a local information - $v_local_header = array(); - $this->privConvertHeader2FileInfo($p_entry, $v_local_header); - - // ----- Call the callback - // Here I do not use call_user_func() because I need to send a reference to the - // header. - $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header); - if ($v_result == 0) { - // ----- Change the file status - $p_entry['status'] = "skipped"; - $v_result = 1; - } - - // ----- Look for abort result - if ($v_result == 2) { - // ----- This status is internal and will be changed in 'skipped' - $p_entry['status'] = "aborted"; - $v_result = PCLZIP_ERR_USER_ABORTED; - } - - // ----- Update the informations - // Only some fields can be modified - $p_entry['filename'] = $v_local_header['filename']; - } - - - // ----- Look if extraction should be done - if ($p_entry['status'] == 'ok') { - - // ----- Look for specific actions while the file exist - if (file_exists($p_entry['filename'])) - { - - // ----- Look if file is a directory - if (is_dir($p_entry['filename'])) - { - - // ----- Change the file status - $p_entry['status'] = "already_a_directory"; - - // ----- Look for PCLZIP_OPT_STOP_ON_ERROR - // For historical reason first PclZip implementation does not stop - // when this kind of error occurs. - if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) - && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { - - PclZip::privErrorLog(PCLZIP_ERR_ALREADY_A_DIRECTORY, - "Filename '".$p_entry['filename']."' is " - ."already used by an existing directory"); - - return PclZip::errorCode(); - } - } - // ----- Look if file is write protected - else if (!is_writeable($p_entry['filename'])) - { - - // ----- Change the file status - $p_entry['status'] = "write_protected"; - - // ----- Look for PCLZIP_OPT_STOP_ON_ERROR - // For historical reason first PclZip implementation does not stop - // when this kind of error occurs. - if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) - && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { - - PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, - "Filename '".$p_entry['filename']."' exists " - ."and is write protected"); - - return PclZip::errorCode(); - } - } - - // ----- Look if the extracted file is older - else if (filemtime($p_entry['filename']) > $p_entry['mtime']) - { - // ----- Change the file status - if ( (isset($p_options[PCLZIP_OPT_REPLACE_NEWER])) - && ($p_options[PCLZIP_OPT_REPLACE_NEWER]===true)) { - } - else { - $p_entry['status'] = "newer_exist"; - - // ----- Look for PCLZIP_OPT_STOP_ON_ERROR - // For historical reason first PclZip implementation does not stop - // when this kind of error occurs. - if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) - && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { - - PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, - "Newer version of '".$p_entry['filename']."' exists " - ."and option PCLZIP_OPT_REPLACE_NEWER is not selected"); - - return PclZip::errorCode(); - } - } - } - else { - } - } - - // ----- Check the directory availability and create it if necessary - else { - if ((($p_entry['external']&0x00000010)==0x00000010) || (substr($p_entry['filename'], -1) == '/')) - $v_dir_to_check = $p_entry['filename']; - else if (!strstr($p_entry['filename'], "/")) - $v_dir_to_check = ""; - else - $v_dir_to_check = dirname($p_entry['filename']); - - if (($v_result = $this->privDirCheck($v_dir_to_check, (($p_entry['external']&0x00000010)==0x00000010))) != 1) { - - // ----- Change the file status - $p_entry['status'] = "path_creation_fail"; - - // ----- Return - //return $v_result; - $v_result = 1; - } - } - } - - // ----- Look if extraction should be done - if ($p_entry['status'] == 'ok') { - - // ----- Do the extraction (if not a folder) - if (!(($p_entry['external']&0x00000010)==0x00000010)) - { - // ----- Look for not compressed file - if ($p_entry['compression'] == 0) { - - // ----- Opening destination file - if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0) - { - - // ----- Change the file status - $p_entry['status'] = "write_error"; - - // ----- Return - return $v_result; - } - - - // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks - $v_size = $p_entry['compressed_size']; - while ($v_size != 0) - { - $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = @fread($this->zip_fd, $v_read_size); - /* Try to speed up the code - $v_binary_data = pack('a'.$v_read_size, $v_buffer); - @fwrite($v_dest_file, $v_binary_data, $v_read_size); - */ - @fwrite($v_dest_file, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Closing the destination file - fclose($v_dest_file); - - // ----- Change the file mtime - touch($p_entry['filename'], $p_entry['mtime']); - - - } - else { - // ----- TBC - // Need to be finished - if (($p_entry['flag'] & 1) == 1) { - PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_ENCRYPTION, 'File \''.$p_entry['filename'].'\' is encrypted. Encrypted files are not supported.'); - return PclZip::errorCode(); - } - - - // ----- Look for using temporary file to unzip - if ( (!isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) - && (isset($p_options[PCLZIP_OPT_TEMP_FILE_ON]) - || (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]) - && ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] <= $p_entry['size'])) ) ) { - $v_result = $this->privExtractFileUsingTempFile($p_entry, $p_options); - if ($v_result < PCLZIP_ERR_NO_ERROR) { - return $v_result; - } - } - - // ----- Look for extract in memory - else { - - - // ----- Read the compressed file in a buffer (one shot) - $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']); - - // ----- Decompress the file - $v_file_content = @gzinflate($v_buffer); - unset($v_buffer); - if ($v_file_content === FALSE) { - - // ----- Change the file status - // TBC - $p_entry['status'] = "error"; - - return $v_result; - } - - // ----- Opening destination file - if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0) { - - // ----- Change the file status - $p_entry['status'] = "write_error"; - - return $v_result; - } - - // ----- Write the uncompressed data - @fwrite($v_dest_file, $v_file_content, $p_entry['size']); - unset($v_file_content); - - // ----- Closing the destination file - @fclose($v_dest_file); - - } - - // ----- Change the file mtime - @touch($p_entry['filename'], $p_entry['mtime']); - } - - // ----- Look for chmod option - if (isset($p_options[PCLZIP_OPT_SET_CHMOD])) { - - // ----- Change the mode of the file - @chmod($p_entry['filename'], $p_options[PCLZIP_OPT_SET_CHMOD]); - } - - } - } - - // ----- Change abort status - if ($p_entry['status'] == "aborted") { - $p_entry['status'] = "skipped"; - } - - // ----- Look for post-extract callback - elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { - - // ----- Generate a local information - $v_local_header = array(); - $this->privConvertHeader2FileInfo($p_entry, $v_local_header); - - // ----- Call the callback - // Here I do not use call_user_func() because I need to send a reference to the - // header. - $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); - - // ----- Look for abort result - if ($v_result == 2) { - $v_result = PCLZIP_ERR_USER_ABORTED; - } - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privExtractFileUsingTempFile() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privExtractFileUsingTempFile(&$p_entry, &$p_options) - { - $v_result=1; - - // ----- Creates a temporary file - $v_gzip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.gz'; - if (($v_dest_file = @fopen($v_gzip_temp_name, "wb")) == 0) { - fclose($v_file); - PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary write mode'); - return PclZip::errorCode(); - } - - - // ----- Write gz file format header - $v_binary_data = pack('va1a1Va1a1', 0x8b1f, Chr($p_entry['compression']), Chr(0x00), time(), Chr(0x00), Chr(3)); - @fwrite($v_dest_file, $v_binary_data, 10); - - // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks - $v_size = $p_entry['compressed_size']; - while ($v_size != 0) - { - $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = @fread($this->zip_fd, $v_read_size); - //$v_binary_data = pack('a'.$v_read_size, $v_buffer); - @fwrite($v_dest_file, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Write gz file format footer - $v_binary_data = pack('VV', $p_entry['crc'], $p_entry['size']); - @fwrite($v_dest_file, $v_binary_data, 8); - - // ----- Close the temporary file - @fclose($v_dest_file); - - // ----- Opening destination file - if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0) { - $p_entry['status'] = "write_error"; - return $v_result; - } - - // ----- Open the temporary gz file - if (($v_src_file = @gzopen($v_gzip_temp_name, 'rb')) == 0) { - @fclose($v_dest_file); - $p_entry['status'] = "read_error"; - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode'); - return PclZip::errorCode(); - } - - - // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks - $v_size = $p_entry['size']; - while ($v_size != 0) { - $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = @gzread($v_src_file, $v_read_size); - //$v_binary_data = pack('a'.$v_read_size, $v_buffer); - @fwrite($v_dest_file, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - @fclose($v_dest_file); - @gzclose($v_src_file); - - // ----- Delete the temporary file - @unlink($v_gzip_temp_name); - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privExtractFileInOutput() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privExtractFileInOutput(&$p_entry, &$p_options) - { - $v_result=1; - - // ----- Read the file header - if (($v_result = $this->privReadFileHeader($v_header)) != 1) { - return $v_result; - } - - - // ----- Check that the file header is coherent with $p_entry info - if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) { - // TBC - } - - // ----- Look for pre-extract callback - if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) { - - // ----- Generate a local information - $v_local_header = array(); - $this->privConvertHeader2FileInfo($p_entry, $v_local_header); - - // ----- Call the callback - // Here I do not use call_user_func() because I need to send a reference to the - // header. -// eval('$v_result = '.$p_options[PCLZIP_CB_PRE_EXTRACT].'(PCLZIP_CB_PRE_EXTRACT, $v_local_header);'); - $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header); - if ($v_result == 0) { - // ----- Change the file status - $p_entry['status'] = "skipped"; - $v_result = 1; - } - - // ----- Look for abort result - if ($v_result == 2) { - // ----- This status is internal and will be changed in 'skipped' - $p_entry['status'] = "aborted"; - $v_result = PCLZIP_ERR_USER_ABORTED; - } - - // ----- Update the informations - // Only some fields can be modified - $p_entry['filename'] = $v_local_header['filename']; - } - - // ----- Trace - - // ----- Look if extraction should be done - if ($p_entry['status'] == 'ok') { - - // ----- Do the extraction (if not a folder) - if (!(($p_entry['external']&0x00000010)==0x00000010)) { - // ----- Look for not compressed file - if ($p_entry['compressed_size'] == $p_entry['size']) { - - // ----- Read the file in a buffer (one shot) - $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']); - - // ----- Send the file to the output - echo $v_buffer; - unset($v_buffer); - } - else { - - // ----- Read the compressed file in a buffer (one shot) - $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']); - - // ----- Decompress the file - $v_file_content = gzinflate($v_buffer); - unset($v_buffer); - - // ----- Send the file to the output - echo $v_file_content; - unset($v_file_content); - } - } - } - - // ----- Change abort status - if ($p_entry['status'] == "aborted") { - $p_entry['status'] = "skipped"; - } - - // ----- Look for post-extract callback - elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { - - // ----- Generate a local information - $v_local_header = array(); - $this->privConvertHeader2FileInfo($p_entry, $v_local_header); - - // ----- Call the callback - // Here I do not use call_user_func() because I need to send a reference to the - // header. - $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); - - // ----- Look for abort result - if ($v_result == 2) { - $v_result = PCLZIP_ERR_USER_ABORTED; - } - } - - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privExtractFileAsString() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privExtractFileAsString(&$p_entry, &$p_string, &$p_options) - { - $v_result=1; - - // ----- Read the file header - $v_header = array(); - if (($v_result = $this->privReadFileHeader($v_header)) != 1) - { - // ----- Return - return $v_result; - } - - - // ----- Check that the file header is coherent with $p_entry info - if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) { - // TBC - } - - // ----- Look for pre-extract callback - if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) { - - // ----- Generate a local information - $v_local_header = array(); - $this->privConvertHeader2FileInfo($p_entry, $v_local_header); - - // ----- Call the callback - // Here I do not use call_user_func() because I need to send a reference to the - // header. - $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header); - if ($v_result == 0) { - // ----- Change the file status - $p_entry['status'] = "skipped"; - $v_result = 1; - } - - // ----- Look for abort result - if ($v_result == 2) { - // ----- This status is internal and will be changed in 'skipped' - $p_entry['status'] = "aborted"; - $v_result = PCLZIP_ERR_USER_ABORTED; - } - - // ----- Update the informations - // Only some fields can be modified - $p_entry['filename'] = $v_local_header['filename']; - } - - - // ----- Look if extraction should be done - if ($p_entry['status'] == 'ok') { - - // ----- Do the extraction (if not a folder) - if (!(($p_entry['external']&0x00000010)==0x00000010)) { - // ----- Look for not compressed file - // if ($p_entry['compressed_size'] == $p_entry['size']) - if ($p_entry['compression'] == 0) { - - // ----- Reading the file - $p_string = @fread($this->zip_fd, $p_entry['compressed_size']); - } - else { - - // ----- Reading the file - $v_data = @fread($this->zip_fd, $p_entry['compressed_size']); - - // ----- Decompress the file - if (($p_string = @gzinflate($v_data)) === FALSE) { - // TBC - } - } - - // ----- Trace - } - else { - // TBC : error : can not extract a folder in a string - } - - } - - // ----- Change abort status - if ($p_entry['status'] == "aborted") { - $p_entry['status'] = "skipped"; - } - - // ----- Look for post-extract callback - elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { - - // ----- Generate a local information - $v_local_header = array(); - $this->privConvertHeader2FileInfo($p_entry, $v_local_header); - - // ----- Swap the content to header - $v_local_header['content'] = $p_string; - $p_string = ''; - - // ----- Call the callback - // Here I do not use call_user_func() because I need to send a reference to the - // header. - $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); - - // ----- Swap back the content to header - $p_string = $v_local_header['content']; - unset($v_local_header['content']); - - // ----- Look for abort result - if ($v_result == 2) { - $v_result = PCLZIP_ERR_USER_ABORTED; - } - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privReadFileHeader() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privReadFileHeader(&$p_header) - { - $v_result=1; - - // ----- Read the 4 bytes signature - $v_binary_data = @fread($this->zip_fd, 4); - $v_data = unpack('Vid', $v_binary_data); - - // ----- Check signature - if ($v_data['id'] != 0x04034b50) - { - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Invalid archive structure'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Read the first 42 bytes of the header - $v_binary_data = fread($this->zip_fd, 26); - - // ----- Look for invalid block size - if (strlen($v_binary_data) != 26) - { - $p_header['filename'] = ""; - $p_header['status'] = "invalid_header"; - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid block size : ".strlen($v_binary_data)); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Extract the values - $v_data = unpack('vversion/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len', $v_binary_data); - - // ----- Get filename - $p_header['filename'] = fread($this->zip_fd, $v_data['filename_len']); - - // ----- Get extra_fields - if ($v_data['extra_len'] != 0) { - $p_header['extra'] = fread($this->zip_fd, $v_data['extra_len']); - } - else { - $p_header['extra'] = ''; - } - - // ----- Extract properties - $p_header['version_extracted'] = $v_data['version']; - $p_header['compression'] = $v_data['compression']; - $p_header['size'] = $v_data['size']; - $p_header['compressed_size'] = $v_data['compressed_size']; - $p_header['crc'] = $v_data['crc']; - $p_header['flag'] = $v_data['flag']; - $p_header['filename_len'] = $v_data['filename_len']; - - // ----- Recuperate date in UNIX format - $p_header['mdate'] = $v_data['mdate']; - $p_header['mtime'] = $v_data['mtime']; - if ($p_header['mdate'] && $p_header['mtime']) - { - // ----- Extract time - $v_hour = ($p_header['mtime'] & 0xF800) >> 11; - $v_minute = ($p_header['mtime'] & 0x07E0) >> 5; - $v_seconde = ($p_header['mtime'] & 0x001F)*2; - - // ----- Extract date - $v_year = (($p_header['mdate'] & 0xFE00) >> 9) + 1980; - $v_month = ($p_header['mdate'] & 0x01E0) >> 5; - $v_day = $p_header['mdate'] & 0x001F; - - // ----- Get UNIX date format - $p_header['mtime'] = @mktime($v_hour, $v_minute, $v_seconde, $v_month, $v_day, $v_year); - - } - else - { - $p_header['mtime'] = time(); - } - - // TBC - //for(reset($v_data); $key = key($v_data); next($v_data)) { - //} - - // ----- Set the stored filename - $p_header['stored_filename'] = $p_header['filename']; - - // ----- Set the status field - $p_header['status'] = "ok"; - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privReadCentralFileHeader() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privReadCentralFileHeader(&$p_header) - { - $v_result=1; - - // ----- Read the 4 bytes signature - $v_binary_data = @fread($this->zip_fd, 4); - $v_data = unpack('Vid', $v_binary_data); - - // ----- Check signature - if ($v_data['id'] != 0x02014b50) - { - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Invalid archive structure'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Read the first 42 bytes of the header - $v_binary_data = fread($this->zip_fd, 42); - - // ----- Look for invalid block size - if (strlen($v_binary_data) != 42) - { - $p_header['filename'] = ""; - $p_header['status'] = "invalid_header"; - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid block size : ".strlen($v_binary_data)); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Extract the values - $p_header = unpack('vversion/vversion_extracted/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len/vcomment_len/vdisk/vinternal/Vexternal/Voffset', $v_binary_data); - - // ----- Get filename - if ($p_header['filename_len'] != 0) - $p_header['filename'] = fread($this->zip_fd, $p_header['filename_len']); - else - $p_header['filename'] = ''; - - // ----- Get extra - if ($p_header['extra_len'] != 0) - $p_header['extra'] = fread($this->zip_fd, $p_header['extra_len']); - else - $p_header['extra'] = ''; - - // ----- Get comment - if ($p_header['comment_len'] != 0) - $p_header['comment'] = fread($this->zip_fd, $p_header['comment_len']); - else - $p_header['comment'] = ''; - - // ----- Extract properties - - // ----- Recuperate date in UNIX format - //if ($p_header['mdate'] && $p_header['mtime']) - // TBC : bug : this was ignoring time with 0/0/0 - if (1) - { - // ----- Extract time - $v_hour = ($p_header['mtime'] & 0xF800) >> 11; - $v_minute = ($p_header['mtime'] & 0x07E0) >> 5; - $v_seconde = ($p_header['mtime'] & 0x001F)*2; - - // ----- Extract date - $v_year = (($p_header['mdate'] & 0xFE00) >> 9) + 1980; - $v_month = ($p_header['mdate'] & 0x01E0) >> 5; - $v_day = $p_header['mdate'] & 0x001F; - - // ----- Get UNIX date format - $p_header['mtime'] = @mktime($v_hour, $v_minute, $v_seconde, $v_month, $v_day, $v_year); - - } - else - { - $p_header['mtime'] = time(); - } - - // ----- Set the stored filename - $p_header['stored_filename'] = $p_header['filename']; - - // ----- Set default status to ok - $p_header['status'] = 'ok'; - - // ----- Look if it is a directory - if (substr($p_header['filename'], -1) == '/') { - //$p_header['external'] = 0x41FF0010; - $p_header['external'] = 0x00000010; - } - - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privCheckFileHeaders() - // Description : - // Parameters : - // Return Values : - // 1 on success, - // 0 on error; - // -------------------------------------------------------------------------------- - function privCheckFileHeaders(&$p_local_header, &$p_central_header) - { - $v_result=1; - - // ----- Check the static values - // TBC - if ($p_local_header['filename'] != $p_central_header['filename']) { - } - if ($p_local_header['version_extracted'] != $p_central_header['version_extracted']) { - } - if ($p_local_header['flag'] != $p_central_header['flag']) { - } - if ($p_local_header['compression'] != $p_central_header['compression']) { - } - if ($p_local_header['mtime'] != $p_central_header['mtime']) { - } - if ($p_local_header['filename_len'] != $p_central_header['filename_len']) { - } - - // ----- Look for flag bit 3 - if (($p_local_header['flag'] & 8) == 8) { - $p_local_header['size'] = $p_central_header['size']; - $p_local_header['compressed_size'] = $p_central_header['compressed_size']; - $p_local_header['crc'] = $p_central_header['crc']; - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privReadEndCentralDir() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privReadEndCentralDir(&$p_central_dir) - { - $v_result=1; - - // ----- Go to the end of the zip file - $v_size = filesize($this->zipname); - @fseek($this->zip_fd, $v_size); - if (@ftell($this->zip_fd) != $v_size) - { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Unable to go to the end of the archive \''.$this->zipname.'\''); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- First try : look if this is an archive with no commentaries (most of the time) - // in this case the end of central dir is at 22 bytes of the file end - $v_found = 0; - if ($v_size > 26) { - @fseek($this->zip_fd, $v_size-22); - if (($v_pos = @ftell($this->zip_fd)) != ($v_size-22)) - { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Unable to seek back to the middle of the archive \''.$this->zipname.'\''); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Read for bytes - $v_binary_data = @fread($this->zip_fd, 4); - $v_data = @unpack('Vid', $v_binary_data); - - // ----- Check signature - if ($v_data['id'] == 0x06054b50) { - $v_found = 1; - } - - $v_pos = ftell($this->zip_fd); - } - - // ----- Go back to the maximum possible size of the Central Dir End Record - if (!$v_found) { - $v_maximum_size = 65557; // 0xFFFF + 22; - if ($v_maximum_size > $v_size) - $v_maximum_size = $v_size; - @fseek($this->zip_fd, $v_size-$v_maximum_size); - if (@ftell($this->zip_fd) != ($v_size-$v_maximum_size)) - { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Unable to seek back to the middle of the archive \''.$this->zipname.'\''); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Read byte per byte in order to find the signature - $v_pos = ftell($this->zip_fd); - $v_bytes = 0x00000000; - while ($v_pos < $v_size) - { - // ----- Read a byte - $v_byte = @fread($this->zip_fd, 1); - - // ----- Add the byte - //$v_bytes = ($v_bytes << 8) | Ord($v_byte); - // Note we mask the old value down such that once shifted we can never end up with more than a 32bit number - // Otherwise on systems where we have 64bit integers the check below for the magic number will fail. - $v_bytes = ( ($v_bytes & 0xFFFFFF) << 8) | Ord($v_byte); - - // ----- Compare the bytes - if ($v_bytes == 0x504b0506) - { - $v_pos++; - break; - } - - $v_pos++; - } - - // ----- Look if not found end of central dir - if ($v_pos == $v_size) - { - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Unable to find End of Central Dir Record signature"); - - // ----- Return - return PclZip::errorCode(); - } - } - - // ----- Read the first 18 bytes of the header - $v_binary_data = fread($this->zip_fd, 18); - - // ----- Look for invalid block size - if (strlen($v_binary_data) != 18) - { - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid End of Central Dir Record size : ".strlen($v_binary_data)); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Extract the values - $v_data = unpack('vdisk/vdisk_start/vdisk_entries/ventries/Vsize/Voffset/vcomment_size', $v_binary_data); - - // ----- Check the global size - if (($v_pos + $v_data['comment_size'] + 18) != $v_size) { - - // ----- Removed in release 2.2 see readme file - // The check of the file size is a little too strict. - // Some bugs where found when a zip is encrypted/decrypted with 'crypt'. - // While decrypted, zip has training 0 bytes - if (0) { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, - 'The central dir is not at the end of the archive.' - .' Some trailing bytes exists after the archive.'); - - // ----- Return - return PclZip::errorCode(); - } - } - - // ----- Get comment - if ($v_data['comment_size'] != 0) { - $p_central_dir['comment'] = fread($this->zip_fd, $v_data['comment_size']); - } - else - $p_central_dir['comment'] = ''; - - $p_central_dir['entries'] = $v_data['entries']; - $p_central_dir['disk_entries'] = $v_data['disk_entries']; - $p_central_dir['offset'] = $v_data['offset']; - $p_central_dir['size'] = $v_data['size']; - $p_central_dir['disk'] = $v_data['disk']; - $p_central_dir['disk_start'] = $v_data['disk_start']; - - // TBC - //for(reset($p_central_dir); $key = key($p_central_dir); next($p_central_dir)) { - //} - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privDeleteByRule() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privDeleteByRule(&$p_result_list, &$p_options) - { - $v_result=1; - $v_list_detail = array(); - - // ----- Open the zip file - if (($v_result=$this->privOpenFd('rb')) != 1) - { - // ----- Return - return $v_result; - } - - // ----- Read the central directory informations - $v_central_dir = array(); - if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) - { - $this->privCloseFd(); - return $v_result; - } - - // ----- Go to beginning of File - @rewind($this->zip_fd); - - // ----- Scan all the files - // ----- Start at beginning of Central Dir - $v_pos_entry = $v_central_dir['offset']; - @rewind($this->zip_fd); - if (@fseek($this->zip_fd, $v_pos_entry)) - { - // ----- Close the zip file - $this->privCloseFd(); - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Read each entry - $v_header_list = array(); - $j_start = 0; - for ($i=0, $v_nb_extracted=0; $i<$v_central_dir['entries']; $i++) - { - - // ----- Read the file header - $v_header_list[$v_nb_extracted] = array(); - if (($v_result = $this->privReadCentralFileHeader($v_header_list[$v_nb_extracted])) != 1) - { - // ----- Close the zip file - $this->privCloseFd(); - - return $v_result; - } - - - // ----- Store the index - $v_header_list[$v_nb_extracted]['index'] = $i; - - // ----- Look for the specific extract rules - $v_found = false; - - // ----- Look for extract by name rule - if ( (isset($p_options[PCLZIP_OPT_BY_NAME])) - && ($p_options[PCLZIP_OPT_BY_NAME] != 0)) { - - // ----- Look if the filename is in the list - for ($j=0; ($j strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) - && (substr($v_header_list[$v_nb_extracted]['stored_filename'], 0, strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) == $p_options[PCLZIP_OPT_BY_NAME][$j])) { - $v_found = true; - } - elseif ( (($v_header_list[$v_nb_extracted]['external']&0x00000010)==0x00000010) /* Indicates a folder */ - && ($v_header_list[$v_nb_extracted]['stored_filename'].'/' == $p_options[PCLZIP_OPT_BY_NAME][$j])) { - $v_found = true; - } - } - // ----- Look for a filename - elseif ($v_header_list[$v_nb_extracted]['stored_filename'] == $p_options[PCLZIP_OPT_BY_NAME][$j]) { - $v_found = true; - } - } - } - - // ----- Look for extract by ereg rule - // ereg() is deprecated with PHP 5.3 - /* - else if ( (isset($p_options[PCLZIP_OPT_BY_EREG])) - && ($p_options[PCLZIP_OPT_BY_EREG] != "")) { - - if (ereg($p_options[PCLZIP_OPT_BY_EREG], $v_header_list[$v_nb_extracted]['stored_filename'])) { - $v_found = true; - } - } - */ - - // ----- Look for extract by preg rule - else if ( (isset($p_options[PCLZIP_OPT_BY_PREG])) - && ($p_options[PCLZIP_OPT_BY_PREG] != "")) { - - if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header_list[$v_nb_extracted]['stored_filename'])) { - $v_found = true; - } - } - - // ----- Look for extract by index rule - else if ( (isset($p_options[PCLZIP_OPT_BY_INDEX])) - && ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) { - - // ----- Look if the index is in the list - for ($j=$j_start; ($j=$p_options[PCLZIP_OPT_BY_INDEX][$j]['start']) && ($i<=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end'])) { - $v_found = true; - } - if ($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end']) { - $j_start = $j+1; - } - - if ($p_options[PCLZIP_OPT_BY_INDEX][$j]['start']>$i) { - break; - } - } - } - else { - $v_found = true; - } - - // ----- Look for deletion - if ($v_found) - { - unset($v_header_list[$v_nb_extracted]); - } - else - { - $v_nb_extracted++; - } - } - - // ----- Look if something need to be deleted - if ($v_nb_extracted > 0) { - - // ----- Creates a temporay file - $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp'; - - // ----- Creates a temporary zip archive - $v_temp_zip = new PclZip($v_zip_temp_name); - - // ----- Open the temporary zip file in write mode - if (($v_result = $v_temp_zip->privOpenFd('wb')) != 1) { - $this->privCloseFd(); - - // ----- Return - return $v_result; - } - - // ----- Look which file need to be kept - for ($i=0; $izip_fd); - if (@fseek($this->zip_fd, $v_header_list[$i]['offset'])) { - // ----- Close the zip file - $this->privCloseFd(); - $v_temp_zip->privCloseFd(); - @unlink($v_zip_temp_name); - - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Read the file header - $v_local_header = array(); - if (($v_result = $this->privReadFileHeader($v_local_header)) != 1) { - // ----- Close the zip file - $this->privCloseFd(); - $v_temp_zip->privCloseFd(); - @unlink($v_zip_temp_name); - - // ----- Return - return $v_result; - } - - // ----- Check that local file header is same as central file header - if ($this->privCheckFileHeaders($v_local_header, - $v_header_list[$i]) != 1) { - // TBC - } - unset($v_local_header); - - // ----- Write the file header - if (($v_result = $v_temp_zip->privWriteFileHeader($v_header_list[$i])) != 1) { - // ----- Close the zip file - $this->privCloseFd(); - $v_temp_zip->privCloseFd(); - @unlink($v_zip_temp_name); - - // ----- Return - return $v_result; - } - - // ----- Read/write the data block - if (($v_result = PclZipUtilCopyBlock($this->zip_fd, $v_temp_zip->zip_fd, $v_header_list[$i]['compressed_size'])) != 1) { - // ----- Close the zip file - $this->privCloseFd(); - $v_temp_zip->privCloseFd(); - @unlink($v_zip_temp_name); - - // ----- Return - return $v_result; - } - } - - // ----- Store the offset of the central dir - $v_offset = @ftell($v_temp_zip->zip_fd); - - // ----- Re-Create the Central Dir files header - for ($i=0; $iprivWriteCentralFileHeader($v_header_list[$i])) != 1) { - $v_temp_zip->privCloseFd(); - $this->privCloseFd(); - @unlink($v_zip_temp_name); - - // ----- Return - return $v_result; - } - - // ----- Transform the header to a 'usable' info - $v_temp_zip->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); - } - - - // ----- Zip file comment - $v_comment = ''; - if (isset($p_options[PCLZIP_OPT_COMMENT])) { - $v_comment = $p_options[PCLZIP_OPT_COMMENT]; - } - - // ----- Calculate the size of the central header - $v_size = @ftell($v_temp_zip->zip_fd)-$v_offset; - - // ----- Create the central dir footer - if (($v_result = $v_temp_zip->privWriteCentralHeader(sizeof($v_header_list), $v_size, $v_offset, $v_comment)) != 1) { - // ----- Reset the file list - unset($v_header_list); - $v_temp_zip->privCloseFd(); - $this->privCloseFd(); - @unlink($v_zip_temp_name); - - // ----- Return - return $v_result; - } - - // ----- Close - $v_temp_zip->privCloseFd(); - $this->privCloseFd(); - - // ----- Delete the zip file - // TBC : I should test the result ... - @unlink($this->zipname); - - // ----- Rename the temporary file - // TBC : I should test the result ... - //@rename($v_zip_temp_name, $this->zipname); - PclZipUtilRename($v_zip_temp_name, $this->zipname); - - // ----- Destroy the temporary archive - unset($v_temp_zip); - } - - // ----- Remove every files : reset the file - else if ($v_central_dir['entries'] != 0) { - $this->privCloseFd(); - - if (($v_result = $this->privOpenFd('wb')) != 1) { - return $v_result; - } - - if (($v_result = $this->privWriteCentralHeader(0, 0, 0, '')) != 1) { - return $v_result; - } - - $this->privCloseFd(); - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privDirCheck() - // Description : - // Check if a directory exists, if not it creates it and all the parents directory - // which may be useful. - // Parameters : - // $p_dir : Directory path to check. - // Return Values : - // 1 : OK - // -1 : Unable to create directory - // -------------------------------------------------------------------------------- - function privDirCheck($p_dir, $p_is_dir=false) - { - $v_result = 1; - - - // ----- Remove the final '/' - if (($p_is_dir) && (substr($p_dir, -1)=='/')) - { - $p_dir = substr($p_dir, 0, strlen($p_dir)-1); - } - - // ----- Check the directory availability - if ((is_dir($p_dir)) || ($p_dir == "")) - { - return 1; - } - - // ----- Extract parent directory - $p_parent_dir = dirname($p_dir); - - // ----- Just a check - if ($p_parent_dir != $p_dir) - { - // ----- Look for parent directory - if ($p_parent_dir != "") - { - if (($v_result = $this->privDirCheck($p_parent_dir)) != 1) - { - return $v_result; - } - } - } - - // ----- Create the directory - if (!@mkdir($p_dir, 0777)) - { - // ----- Error log - PclZip::privErrorLog(PCLZIP_ERR_DIR_CREATE_FAIL, "Unable to create directory '$p_dir'"); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privMerge() - // Description : - // If $p_archive_to_add does not exist, the function exit with a success result. - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privMerge(&$p_archive_to_add) - { - $v_result=1; - - // ----- Look if the archive_to_add exists - if (!is_file($p_archive_to_add->zipname)) - { - - // ----- Nothing to merge, so merge is a success - $v_result = 1; - - // ----- Return - return $v_result; - } - - // ----- Look if the archive exists - if (!is_file($this->zipname)) - { - - // ----- Do a duplicate - $v_result = $this->privDuplicate($p_archive_to_add->zipname); - - // ----- Return - return $v_result; - } - - // ----- Open the zip file - if (($v_result=$this->privOpenFd('rb')) != 1) - { - // ----- Return - return $v_result; - } - - // ----- Read the central directory informations - $v_central_dir = array(); - if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) - { - $this->privCloseFd(); - return $v_result; - } - - // ----- Go to beginning of File - @rewind($this->zip_fd); - - // ----- Open the archive_to_add file - if (($v_result=$p_archive_to_add->privOpenFd('rb')) != 1) - { - $this->privCloseFd(); - - // ----- Return - return $v_result; - } - - // ----- Read the central directory informations - $v_central_dir_to_add = array(); - if (($v_result = $p_archive_to_add->privReadEndCentralDir($v_central_dir_to_add)) != 1) - { - $this->privCloseFd(); - $p_archive_to_add->privCloseFd(); - - return $v_result; - } - - // ----- Go to beginning of File - @rewind($p_archive_to_add->zip_fd); - - // ----- Creates a temporay file - $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp'; - - // ----- Open the temporary file in write mode - if (($v_zip_temp_fd = @fopen($v_zip_temp_name, 'wb')) == 0) - { - $this->privCloseFd(); - $p_archive_to_add->privCloseFd(); - - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_zip_temp_name.'\' in binary write mode'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Copy the files from the archive to the temporary file - // TBC : Here I should better append the file and go back to erase the central dir - $v_size = $v_central_dir['offset']; - while ($v_size != 0) - { - $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = fread($this->zip_fd, $v_read_size); - @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Copy the files from the archive_to_add into the temporary file - $v_size = $v_central_dir_to_add['offset']; - while ($v_size != 0) - { - $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = fread($p_archive_to_add->zip_fd, $v_read_size); - @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Store the offset of the central dir - $v_offset = @ftell($v_zip_temp_fd); - - // ----- Copy the block of file headers from the old archive - $v_size = $v_central_dir['size']; - while ($v_size != 0) - { - $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = @fread($this->zip_fd, $v_read_size); - @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Copy the block of file headers from the archive_to_add - $v_size = $v_central_dir_to_add['size']; - while ($v_size != 0) - { - $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = @fread($p_archive_to_add->zip_fd, $v_read_size); - @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Merge the file comments - $v_comment = $v_central_dir['comment'].' '.$v_central_dir_to_add['comment']; - - // ----- Calculate the size of the (new) central header - $v_size = @ftell($v_zip_temp_fd)-$v_offset; - - // ----- Swap the file descriptor - // Here is a trick : I swap the temporary fd with the zip fd, in order to use - // the following methods on the temporary fil and not the real archive fd - $v_swap = $this->zip_fd; - $this->zip_fd = $v_zip_temp_fd; - $v_zip_temp_fd = $v_swap; - - // ----- Create the central dir footer - if (($v_result = $this->privWriteCentralHeader($v_central_dir['entries']+$v_central_dir_to_add['entries'], $v_size, $v_offset, $v_comment)) != 1) - { - $this->privCloseFd(); - $p_archive_to_add->privCloseFd(); - @fclose($v_zip_temp_fd); - $this->zip_fd = null; - - // ----- Reset the file list - unset($v_header_list); - - // ----- Return - return $v_result; - } - - // ----- Swap back the file descriptor - $v_swap = $this->zip_fd; - $this->zip_fd = $v_zip_temp_fd; - $v_zip_temp_fd = $v_swap; - - // ----- Close - $this->privCloseFd(); - $p_archive_to_add->privCloseFd(); - - // ----- Close the temporary file - @fclose($v_zip_temp_fd); - - // ----- Delete the zip file - // TBC : I should test the result ... - @unlink($this->zipname); - - // ----- Rename the temporary file - // TBC : I should test the result ... - //@rename($v_zip_temp_name, $this->zipname); - PclZipUtilRename($v_zip_temp_name, $this->zipname); - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privDuplicate() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privDuplicate($p_archive_filename) - { - $v_result=1; - - // ----- Look if the $p_archive_filename exists - if (!is_file($p_archive_filename)) - { - - // ----- Nothing to duplicate, so duplicate is a success. - $v_result = 1; - - // ----- Return - return $v_result; - } - - // ----- Open the zip file - if (($v_result=$this->privOpenFd('wb')) != 1) - { - // ----- Return - return $v_result; - } - - // ----- Open the temporary file in write mode - if (($v_zip_temp_fd = @fopen($p_archive_filename, 'rb')) == 0) - { - $this->privCloseFd(); - - PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive file \''.$p_archive_filename.'\' in binary write mode'); - - // ----- Return - return PclZip::errorCode(); - } - - // ----- Copy the files from the archive to the temporary file - // TBC : Here I should better append the file and go back to erase the central dir - $v_size = filesize($p_archive_filename); - while ($v_size != 0) - { - $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = fread($v_zip_temp_fd, $v_read_size); - @fwrite($this->zip_fd, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Close - $this->privCloseFd(); - - // ----- Close the temporary file - @fclose($v_zip_temp_fd); - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privErrorLog() - // Description : - // Parameters : - // -------------------------------------------------------------------------------- - function privErrorLog($p_error_code=0, $p_error_string='') - { - if (PCLZIP_ERROR_EXTERNAL == 1) { - PclError($p_error_code, $p_error_string); - } - else { - $this->error_code = $p_error_code; - $this->error_string = $p_error_string; - } - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privErrorReset() - // Description : - // Parameters : - // -------------------------------------------------------------------------------- - function privErrorReset() - { - if (PCLZIP_ERROR_EXTERNAL == 1) { - PclErrorReset(); - } - else { - $this->error_code = 0; - $this->error_string = ''; - } - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privDisableMagicQuotes() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privDisableMagicQuotes() - { - $v_result=1; - - // ----- Look if function exists - if ( (!function_exists("get_magic_quotes_runtime")) - || (!function_exists("set_magic_quotes_runtime"))) { - return $v_result; - } - - // ----- Look if already done - if ($this->magic_quotes_status != -1) { - return $v_result; - } - - // ----- Get and memorize the magic_quote value - $this->magic_quotes_status = @get_magic_quotes_runtime(); - - // ----- Disable magic_quotes - if ($this->magic_quotes_status == 1) { - @set_magic_quotes_runtime(0); - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : privSwapBackMagicQuotes() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function privSwapBackMagicQuotes() - { - $v_result=1; - - // ----- Look if function exists - if ( (!function_exists("get_magic_quotes_runtime")) - || (!function_exists("set_magic_quotes_runtime"))) { - return $v_result; - } - - // ----- Look if something to do - if ($this->magic_quotes_status != -1) { - return $v_result; - } - - // ----- Swap back magic_quotes - if ($this->magic_quotes_status == 1) { - @set_magic_quotes_runtime($this->magic_quotes_status); - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - } - // End of class - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : PclZipUtilPathReduction() - // Description : - // Parameters : - // Return Values : - // -------------------------------------------------------------------------------- - function PclZipUtilPathReduction($p_dir) - { - $v_result = ""; - - // ----- Look for not empty path - if ($p_dir != "") { - // ----- Explode path by directory names - $v_list = explode("/", $p_dir); - - // ----- Study directories from last to first - $v_skip = 0; - for ($i=sizeof($v_list)-1; $i>=0; $i--) { - // ----- Look for current path - if ($v_list[$i] == ".") { - // ----- Ignore this directory - // Should be the first $i=0, but no check is done - } - else if ($v_list[$i] == "..") { - $v_skip++; - } - else if ($v_list[$i] == "") { - // ----- First '/' i.e. root slash - if ($i == 0) { - $v_result = "/".$v_result; - if ($v_skip > 0) { - // ----- It is an invalid path, so the path is not modified - // TBC - $v_result = $p_dir; - $v_skip = 0; - } - } - // ----- Last '/' i.e. indicates a directory - else if ($i == (sizeof($v_list)-1)) { - $v_result = $v_list[$i]; - } - // ----- Double '/' inside the path - else { - // ----- Ignore only the double '//' in path, - // but not the first and last '/' - } - } - else { - // ----- Look for item to skip - if ($v_skip > 0) { - $v_skip--; - } - else { - $v_result = $v_list[$i].($i!=(sizeof($v_list)-1)?"/".$v_result:""); - } - } - } - - // ----- Look for skip - if ($v_skip > 0) { - while ($v_skip > 0) { - $v_result = '../'.$v_result; - $v_skip--; - } - } - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : PclZipUtilPathInclusion() - // Description : - // This function indicates if the path $p_path is under the $p_dir tree. Or, - // said in an other way, if the file or sub-dir $p_path is inside the dir - // $p_dir. - // The function indicates also if the path is exactly the same as the dir. - // This function supports path with duplicated '/' like '//', but does not - // support '.' or '..' statements. - // Parameters : - // Return Values : - // 0 if $p_path is not inside directory $p_dir - // 1 if $p_path is inside directory $p_dir - // 2 if $p_path is exactly the same as $p_dir - // -------------------------------------------------------------------------------- - function PclZipUtilPathInclusion($p_dir, $p_path) - { - $v_result = 1; - - // ----- Look for path beginning by ./ - if ( ($p_dir == '.') - || ((strlen($p_dir) >=2) && (substr($p_dir, 0, 2) == './'))) { - $p_dir = PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_dir, 1); - } - if ( ($p_path == '.') - || ((strlen($p_path) >=2) && (substr($p_path, 0, 2) == './'))) { - $p_path = PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_path, 1); - } - - // ----- Explode dir and path by directory separator - $v_list_dir = explode("/", $p_dir); - $v_list_dir_size = sizeof($v_list_dir); - $v_list_path = explode("/", $p_path); - $v_list_path_size = sizeof($v_list_path); - - // ----- Study directories paths - $i = 0; - $j = 0; - while (($i < $v_list_dir_size) && ($j < $v_list_path_size) && ($v_result)) { - - // ----- Look for empty dir (path reduction) - if ($v_list_dir[$i] == '') { - $i++; - continue; - } - if ($v_list_path[$j] == '') { - $j++; - continue; - } - - // ----- Compare the items - if (($v_list_dir[$i] != $v_list_path[$j]) && ($v_list_dir[$i] != '') && ( $v_list_path[$j] != '')) { - $v_result = 0; - } - - // ----- Next items - $i++; - $j++; - } - - // ----- Look if everything seems to be the same - if ($v_result) { - // ----- Skip all the empty items - while (($j < $v_list_path_size) && ($v_list_path[$j] == '')) $j++; - while (($i < $v_list_dir_size) && ($v_list_dir[$i] == '')) $i++; - - if (($i >= $v_list_dir_size) && ($j >= $v_list_path_size)) { - // ----- There are exactly the same - $v_result = 2; - } - else if ($i < $v_list_dir_size) { - // ----- The path is shorter than the dir - $v_result = 0; - } - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : PclZipUtilCopyBlock() - // Description : - // Parameters : - // $p_mode : read/write compression mode - // 0 : src & dest normal - // 1 : src gzip, dest normal - // 2 : src normal, dest gzip - // 3 : src & dest gzip - // Return Values : - // -------------------------------------------------------------------------------- - function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0) - { - $v_result = 1; - - if ($p_mode==0) - { - while ($p_size != 0) - { - $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = @fread($p_src, $v_read_size); - @fwrite($p_dest, $v_buffer, $v_read_size); - $p_size -= $v_read_size; - } - } - else if ($p_mode==1) - { - while ($p_size != 0) - { - $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = @gzread($p_src, $v_read_size); - @fwrite($p_dest, $v_buffer, $v_read_size); - $p_size -= $v_read_size; - } - } - else if ($p_mode==2) - { - while ($p_size != 0) - { - $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = @fread($p_src, $v_read_size); - @gzwrite($p_dest, $v_buffer, $v_read_size); - $p_size -= $v_read_size; - } - } - else if ($p_mode==3) - { - while ($p_size != 0) - { - $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); - $v_buffer = @gzread($p_src, $v_read_size); - @gzwrite($p_dest, $v_buffer, $v_read_size); - $p_size -= $v_read_size; - } - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : PclZipUtilRename() - // Description : - // This function tries to do a simple rename() function. If it fails, it - // tries to copy the $p_src file in a new $p_dest file and then unlink the - // first one. - // Parameters : - // $p_src : Old filename - // $p_dest : New filename - // Return Values : - // 1 on success, 0 on failure. - // -------------------------------------------------------------------------------- - function PclZipUtilRename($p_src, $p_dest) - { - $v_result = 1; - - // ----- Try to rename the files - if (!@rename($p_src, $p_dest)) { - - // ----- Try to copy & unlink the src - if (!@copy($p_src, $p_dest)) { - $v_result = 0; - } - else if (!@unlink($p_src)) { - $v_result = 0; - } - } - - // ----- Return - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : PclZipUtilOptionText() - // Description : - // Translate option value in text. Mainly for debug purpose. - // Parameters : - // $p_option : the option value. - // Return Values : - // The option text value. - // -------------------------------------------------------------------------------- - function PclZipUtilOptionText($p_option) - { - - $v_list = get_defined_constants(); - for (reset($v_list); $v_key = key($v_list); next($v_list)) { - $v_prefix = substr($v_key, 0, 10); - if (( ($v_prefix == 'PCLZIP_OPT') - || ($v_prefix == 'PCLZIP_CB_') - || ($v_prefix == 'PCLZIP_ATT')) - && ($v_list[$v_key] == $p_option)) { - return $v_key; - } - } - - $v_result = 'Unknown'; - - return $v_result; - } - // -------------------------------------------------------------------------------- - - // -------------------------------------------------------------------------------- - // Function : PclZipUtilTranslateWinPath() - // Description : - // Translate windows path by replacing '\' by '/' and optionally removing - // drive letter. - // Parameters : - // $p_path : path to translate. - // $p_remove_disk_letter : true | false - // Return Values : - // The path translated. - // -------------------------------------------------------------------------------- - function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true) - { - if (stristr(php_uname(), 'windows')) { - // ----- Look for potential disk letter - if (($p_remove_disk_letter) && (($v_position = strpos($p_path, ':')) != false)) { - $p_path = substr($p_path, $v_position+1); - } - // ----- Change potential windows directory separator - if ((strpos($p_path, '\\') > 0) || (substr($p_path, 0,1) == '\\')) { - $p_path = strtr($p_path, '\\', '/'); - } - } - return $p_path; - } - // -------------------------------------------------------------------------------- - - -?> diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php deleted file mode 100644 index fcfcd1e36b..0000000000 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ /dev/null @@ -1,791 +0,0 @@ - 'comments', - 'singular' => 'comment', - 'ajax' => true, - 'screen' => isset( $args['screen'] ) ? $args['screen'] : null, - ) ); - } - - /** - * @return bool - */ - public function ajax_user_can() { - return current_user_can('edit_posts'); - } - - /** - * - * @global int $post_id - * @global string $comment_status - * @global string $search - * @global string $comment_type - */ - public function prepare_items() { - global $post_id, $comment_status, $search, $comment_type; - - $comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all'; - if ( !in_array( $comment_status, array( 'all', 'moderated', 'approved', 'spam', 'trash' ) ) ) - $comment_status = 'all'; - - $comment_type = !empty( $_REQUEST['comment_type'] ) ? $_REQUEST['comment_type'] : ''; - - $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : ''; - - $post_type = ( isset( $_REQUEST['post_type'] ) ) ? sanitize_key( $_REQUEST['post_type'] ) : ''; - - $user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : ''; - - $orderby = ( isset( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : ''; - $order = ( isset( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : ''; - - $comments_per_page = $this->get_per_page( $comment_status ); - - $doing_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX; - - if ( isset( $_REQUEST['number'] ) ) { - $number = (int) $_REQUEST['number']; - } - else { - $number = $comments_per_page + min( 8, $comments_per_page ); // Grab a few extra - } - - $page = $this->get_pagenum(); - - if ( isset( $_REQUEST['start'] ) ) { - $start = $_REQUEST['start']; - } else { - $start = ( $page - 1 ) * $comments_per_page; - } - - if ( $doing_ajax && isset( $_REQUEST['offset'] ) ) { - $start += $_REQUEST['offset']; - } - - $status_map = array( - 'moderated' => 'hold', - 'approved' => 'approve', - 'all' => '', - ); - - $args = array( - 'status' => isset( $status_map[$comment_status] ) ? $status_map[$comment_status] : $comment_status, - 'search' => $search, - 'user_id' => $user_id, - 'offset' => $start, - 'number' => $number, - 'post_id' => $post_id, - 'type' => $comment_type, - 'orderby' => $orderby, - 'order' => $order, - 'post_type' => $post_type, - ); - - $_comments = get_comments( $args ); - if ( is_array( $_comments ) ) { - update_comment_cache( $_comments ); - - $this->items = array_slice( $_comments, 0, $comments_per_page ); - $this->extra_items = array_slice( $_comments, $comments_per_page ); - - $_comment_post_ids = array_unique( wp_list_pluck( $_comments, 'comment_post_ID' ) ); - - $this->pending_count = get_pending_comments_num( $_comment_post_ids ); - } - - $total_comments = get_comments( array_merge( $args, array( - 'count' => true, - 'offset' => 0, - 'number' => 0 - ) ) ); - - $this->set_pagination_args( array( - 'total_items' => $total_comments, - 'per_page' => $comments_per_page, - ) ); - } - - /** - * - * @param string $comment_status - * @return int - */ - public function get_per_page( $comment_status = 'all' ) { - $comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' ); - /** - * Filter the number of comments listed per page in the comments list table. - * - * @since 2.6.0 - * - * @param int $comments_per_page The number of comments to list per page. - * @param string $comment_status The comment status name. Default 'All'. - */ - return apply_filters( 'comments_per_page', $comments_per_page, $comment_status ); - } - - /** - * - * @global string $comment_status - */ - public function no_items() { - global $comment_status; - - if ( 'moderated' == $comment_status ) - _e( 'No comments awaiting moderation.' ); - else - _e( 'No comments found.' ); - } - - /** - * - * @global int $post_id - * @global string $comment_status - * @global string $comment_type - */ - protected function get_views() { - global $post_id, $comment_status, $comment_type; - - $status_links = array(); - $num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments(); - //, number_format_i18n($num_comments->moderated) ), "" . number_format_i18n($num_comments->moderated) . ""), - //, number_format_i18n($num_comments->spam) ), "" . number_format_i18n($num_comments->spam) . "") - $stati = array( - 'all' => _nx_noop('All', 'All', 'comments'), // singular not used - 'moderated' => _n_noop('Pending (%s)', 'Pending (%s)'), - 'approved' => _n_noop('Approved', 'Approved'), // singular not used - 'spam' => _n_noop('Spam (%s)', 'Spam (%s)'), - 'trash' => _n_noop('Trash (%s)', 'Trash (%s)') - ); - - if ( !EMPTY_TRASH_DAYS ) - unset($stati['trash']); - - $link = 'edit-comments.php'; - if ( !empty($comment_type) && 'all' != $comment_type ) - $link = add_query_arg( 'comment_type', $comment_type, $link ); - - foreach ( $stati as $status => $label ) { - $class = ( $status == $comment_status ) ? ' class="current"' : ''; - - if ( !isset( $num_comments->$status ) ) - $num_comments->$status = 10; - $link = add_query_arg( 'comment_status', $status, $link ); - if ( $post_id ) - $link = add_query_arg( 'p', absint( $post_id ), $link ); - /* - // I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark - if ( !empty( $_REQUEST['s'] ) ) - $link = add_query_arg( 's', esc_attr( wp_unslash( $_REQUEST['s'] ) ), $link ); - */ - $status_links[$status] = "" . sprintf( - translate_nooped_plural( $label, $num_comments->$status ), - number_format_i18n( $num_comments->$status ) - ) . ''; - } - - /** - * Filter the comment status links. - * - * @since 2.5.0 - * - * @param array $status_links An array of fully-formed status links. Default 'All'. - * Accepts 'All', 'Pending', 'Approved', 'Spam', and 'Trash'. - */ - return apply_filters( 'comment_status_links', $status_links ); - } - - /** - * - * @global string $comment_status - * - * @return array - */ - protected function get_bulk_actions() { - global $comment_status; - - $actions = array(); - if ( in_array( $comment_status, array( 'all', 'approved' ) ) ) - $actions['unapprove'] = __( 'Unapprove' ); - if ( in_array( $comment_status, array( 'all', 'moderated' ) ) ) - $actions['approve'] = __( 'Approve' ); - if ( in_array( $comment_status, array( 'all', 'moderated', 'approved', 'trash' ) ) ) - $actions['spam'] = _x( 'Mark as Spam', 'comment' ); - - if ( 'trash' == $comment_status ) - $actions['untrash'] = __( 'Restore' ); - elseif ( 'spam' == $comment_status ) - $actions['unspam'] = _x( 'Not Spam', 'comment' ); - - if ( in_array( $comment_status, array( 'trash', 'spam' ) ) || !EMPTY_TRASH_DAYS ) - $actions['delete'] = __( 'Delete Permanently' ); - else - $actions['trash'] = __( 'Move to Trash' ); - - return $actions; - } - - /** - * - * @global string $comment_status - * @global string $comment_type - * - * @param string $which - */ - protected function extra_tablenav( $which ) { - global $comment_status, $comment_type; -?> -
- - - - 'post-query-submit' ) ); - } - - if ( ( 'spam' == $comment_status || 'trash' == $comment_status ) && current_user_can( 'moderate_comments' ) ) { - wp_nonce_field( 'bulk-destroy', '_destroy_nonce' ); - $title = ( 'spam' == $comment_status ) ? esc_attr__( 'Empty Spam' ) : esc_attr__( 'Empty Trash' ); - submit_button( $title, 'apply', 'delete_all', false ); - } - /** - * Fires after the Filter submit button for comment types. - * - * @since 2.5.0 - * - * @param string $comment_status The comment status name. Default 'All'. - */ - do_action( 'manage_comments_nav', $comment_status ); - echo '
'; - } - - /** - * @return string|false - */ - public function current_action() { - if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) - return 'delete_all'; - - return parent::current_action(); - } - - /** - * - * @global int $post_id - * - * @return array - */ - public function get_columns() { - global $post_id; - - $columns = array(); - - if ( $this->checkbox ) - $columns['cb'] = ''; - - $columns['author'] = __( 'Author' ); - $columns['comment'] = _x( 'Comment', 'column name' ); - - if ( ! $post_id ) { - /* translators: column name or table row header */ - $columns['response'] = __( 'In Response To' ); - } - - return $columns; - } - - /** - * - * @return array - */ - protected function get_sortable_columns() { - return array( - 'author' => 'comment_author', - 'response' => 'comment_post_ID' - ); - } - - /** - * Get the name of the default primary column. - * - * @since 4.3.0 - * @access protected - * - * @return string Name of the default primary column, in this case, 'comment'. - */ - protected function get_default_primary_column_name() { - return 'comment'; - } - - /** - * @access public - */ - public function display() { - wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' ); - - $this->display_tablenav( 'top' ); - -?> - - - - print_column_headers(); ?> - - - - - display_rows_or_placeholder(); ?> - - - - items = $this->extra_items; $this->display_rows(); ?> - - - - - print_column_headers( false ); ?> - - - -
-display_tablenav( 'bottom' ); - } - - /** - * - * @global WP_Post $post - * @global object $comment - * - * @param object $a_comment - */ - public function single_row( $a_comment ) { - global $post, $comment; - - $comment = $a_comment; - $the_comment_class = wp_get_comment_status( $comment->comment_ID ); - if ( ! $the_comment_class ) { - $the_comment_class = ''; - } - $the_comment_class = join( ' ', get_comment_class( $the_comment_class, $comment->comment_ID, $comment->comment_post_ID ) ); - - $post = get_post( $comment->comment_post_ID ); - - $this->user_can = current_user_can( 'edit_comment', $comment->comment_ID ); - - echo ""; - $this->single_row_columns( $comment ); - echo "\n"; - } - - /** - * Generate and display row actions links. - * - * @since 4.3.0 - * @access protected - * - * @param object $comment Comment being acted upon. - * @param string $column_name Current column name. - * @param string $primary Primary column name. - * @return string|void Comment row actions output. - */ - protected function handle_row_actions( $comment, $column_name, $primary ) { - global $comment_status; - - if ( $primary !== $column_name ) { - return ''; - } - - if ( ! $this->user_can ) { - return; - } - - $the_comment_status = wp_get_comment_status( $comment->comment_ID ); - - $out = ''; - - $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) ); - $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "approve-comment_$comment->comment_ID" ) ); - - $url = "comment.php?c=$comment->comment_ID"; - - $approve_url = esc_url( $url . "&action=approvecomment&$approve_nonce" ); - $unapprove_url = esc_url( $url . "&action=unapprovecomment&$approve_nonce" ); - $spam_url = esc_url( $url . "&action=spamcomment&$del_nonce" ); - $unspam_url = esc_url( $url . "&action=unspamcomment&$del_nonce" ); - $trash_url = esc_url( $url . "&action=trashcomment&$del_nonce" ); - $untrash_url = esc_url( $url . "&action=untrashcomment&$del_nonce" ); - $delete_url = esc_url( $url . "&action=deletecomment&$del_nonce" ); - - // Preorder it: Approve | Reply | Quick Edit | Edit | Spam | Trash. - $actions = array( - 'approve' => '', 'unapprove' => '', - 'reply' => '', - 'quickedit' => '', - 'edit' => '', - 'spam' => '', 'unspam' => '', - 'trash' => '', 'untrash' => '', 'delete' => '' - ); - - // Not looking at all comments. - if ( $comment_status && 'all' != $comment_status ) { - if ( 'approved' == $the_comment_status ) { - $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; - } elseif ( 'unapproved' == $the_comment_status ) { - $actions['approve'] = "" . __( 'Approve' ) . ''; - } - } else { - $actions['approve'] = "" . __( 'Approve' ) . ''; - $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; - } - - if ( 'spam' != $the_comment_status ) { - $actions['spam'] = "" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . ''; - } elseif ( 'spam' == $the_comment_status ) { - $actions['unspam'] = "" . _x( 'Not Spam', 'comment' ) . ''; - } - - if ( 'trash' == $the_comment_status ) { - $actions['untrash'] = "" . __( 'Restore' ) . ''; - } - - if ( 'spam' == $the_comment_status || 'trash' == $the_comment_status || !EMPTY_TRASH_DAYS ) { - $actions['delete'] = "" . __( 'Delete Permanently' ) . ''; - } else { - $actions['trash'] = "" . _x( 'Trash', 'verb' ) . ''; - } - - if ( 'spam' != $the_comment_status && 'trash' != $the_comment_status ) { - $actions['edit'] = "". __( 'Edit' ) . ''; - - $format = '%s'; - - $actions['quickedit'] = sprintf( $format, $comment->comment_ID, $comment->comment_post_ID, 'edit', 'vim-q comment-inline',esc_attr__( 'Edit this item inline' ), __( 'Quick Edit' ) ); - - $actions['reply'] = sprintf( $format, $comment->comment_ID, $comment->comment_post_ID, 'replyto', 'vim-r comment-inline', esc_attr__( 'Reply to this comment' ), __( 'Reply' ) ); - } - - /** This filter is documented in wp-admin/includes/dashboard.php */ - $actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment ); - - $i = 0; - $out .= '
'; - foreach ( $actions as $action => $link ) { - ++$i; - ( ( ( 'approve' == $action || 'unapprove' == $action ) && 2 === $i ) || 1 === $i ) ? $sep = '' : $sep = ' | '; - - // Reply and quickedit need a hide-if-no-js span when not added with ajax - if ( ( 'reply' == $action || 'quickedit' == $action ) && ! defined('DOING_AJAX') ) - $action .= ' hide-if-no-js'; - elseif ( ( $action == 'untrash' && $the_comment_status == 'trash' ) || ( $action == 'unspam' && $the_comment_status == 'spam' ) ) { - if ( '1' == get_comment_meta( $comment->comment_ID, '_wp_trash_meta_status', true ) ) - $action .= ' approve'; - else - $action .= ' unapprove'; - } - - $out .= "$sep$link"; - } - $out .= '
'; - - $out .= ''; - - return $out; - } - - /** - * - * @param object $comment - */ - public function column_cb( $comment ) { - if ( $this->user_can ) { ?> - - - comment_ID ) ); - - echo '
'; - $this->column_author( $comment ); - echo '
'; - - echo ''; - comment_text(); - if ( $this->user_can ) { ?> - - 50 ) - $author_url_display = substr( $author_url_display, 0, 49 ) . '…'; - - echo ""; comment_author(); echo '
'; - if ( !empty( $author_url ) ) - echo "$author_url_display
"; - - if ( $this->user_can ) { - if ( !empty( $comment->comment_author_email ) ) { - comment_author_email_link(); - echo '
'; - } - - $author_ip = get_comment_author_IP(); - if ( $author_ip ) { - $author_ip_url = add_query_arg( array( 's' => $author_ip, 'mode' => 'detail' ), 'edit-comments.php' ); - if ( 'spam' == $comment_status ) { - $author_ip_url = add_query_arg( 'comment_status', 'spam', $author_ip_url ); - } - printf( '%s', esc_url( $author_ip_url ), $author_ip ); - } - } - } - - /** - * - * @return string - */ - public function column_date() { - return get_comment_date( __( 'Y/m/d \a\t g:i a' ) ); - } - - /** - * @access public - */ - public function column_response() { - $post = get_post(); - - if ( ! $post ) { - return; - } - - if ( isset( $this->pending_count[$post->ID] ) ) { - $pending_comments = $this->pending_count[$post->ID]; - } else { - $_pending_count_temp = get_pending_comments_num( array( $post->ID ) ); - $pending_comments = $this->pending_count[$post->ID] = $_pending_count_temp[$post->ID]; - } - - if ( current_user_can( 'edit_post', $post->ID ) ) { - $post_link = ""; - $post_link .= esc_html( get_the_title( $post->ID ) ) . ''; - } else { - $post_link = esc_html( get_the_title( $post->ID ) ); - } - - echo ''; - } - - /** - * - * @param object $comment - * @param string $column_name - */ - public function column_default( $comment, $column_name ) { - /** - * Fires when the default column output is displayed for a single row. - * - * @since 2.8.0 - * - * @param string $column_name The custom column's name. - * @param int $comment->comment_ID The custom column's unique ID number. - */ - do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID ); - } -} - -/** - * Post Comments List Table class. - * - * @package WordPress - * @subpackage List_Table - * @since 3.1.0 - * @access private - * - * @see WP_Comments_Table - */ -class WP_Post_Comments_List_Table extends WP_Comments_List_Table { - - /** - * - * @return array - */ - protected function get_column_info() { - return array( - array( - 'author' => __( 'Author' ), - 'comment' => _x( 'Comment', 'column name' ), - ), - array(), - array(), - 'comment', - ); - } - - /** - * - * @return array - */ - protected function get_table_classes() { - $classes = parent::get_table_classes(); - $classes[] = 'wp-list-table'; - $classes[] = 'comments-box'; - return $classes; - } - - /** - * - * @param bool $output_empty - */ - public function display( $output_empty = false ) { - $singular = $this->_args['singular']; - - wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' ); -?> - - > - display_rows_or_placeholder(); - } ?> - - -find_folder(ABSPATH); - // Perhaps the FTP folder is rooted at the WordPress install, Check for wp-includes folder in root, Could have some false positives, but rare. - if ( ! $folder && $this->is_dir( '/' . WPINC ) ) - $folder = '/'; - return $folder; - } - - /** - * Return the path on the remote filesystem of WP_CONTENT_DIR. - * - * @access public - * @since 2.7.0 - * - * @return string The location of the remote path. - */ - public function wp_content_dir() { - return $this->find_folder(WP_CONTENT_DIR); - } - - /** - * Return the path on the remote filesystem of WP_PLUGIN_DIR. - * - * @access public - * @since 2.7.0 - * - * @return string The location of the remote path. - */ - public function wp_plugins_dir() { - return $this->find_folder(WP_PLUGIN_DIR); - } - - /** - * Return the path on the remote filesystem of the Themes Directory. - * - * @access public - * @since 2.7.0 - * - * @param string $theme The Theme stylesheet or template for the directory. - * @return string The location of the remote path. - */ - public function wp_themes_dir( $theme = false ) { - $theme_root = get_theme_root( $theme ); - - // Account for relative theme roots - if ( '/themes' == $theme_root || ! is_dir( $theme_root ) ) - $theme_root = WP_CONTENT_DIR . $theme_root; - - return $this->find_folder( $theme_root ); - } - - /** - * Return the path on the remote filesystem of WP_LANG_DIR. - * - * @access public - * @since 3.2.0 - * - * @return string The location of the remote path. - */ - public function wp_lang_dir() { - return $this->find_folder(WP_LANG_DIR); - } - - /** - * Locate a folder on the remote filesystem. - * - * @access public - * @since 2.5.0 - * @deprecated 2.7.0 use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() instead. - * @see WP_Filesystem::abspath() - * @see WP_Filesystem::wp_content_dir() - * @see WP_Filesystem::wp_plugins_dir() - * @see WP_Filesystem::wp_themes_dir() - * @see WP_Filesystem::wp_lang_dir() - * - * @param string $base The folder to start searching from. - * @param bool $echo True to display debug information. - * Default false. - * @return string The location of the remote path. - */ - public function find_base_dir( $base = '.', $echo = false ) { - _deprecated_function(__FUNCTION__, '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); - $this->verbose = $echo; - return $this->abspath(); - } - - /** - * Locate a folder on the remote filesystem. - * - * @access public - * @since 2.5.0 - * @deprecated 2.7.0 use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() methods instead. - * @see WP_Filesystem::abspath() - * @see WP_Filesystem::wp_content_dir() - * @see WP_Filesystem::wp_plugins_dir() - * @see WP_Filesystem::wp_themes_dir() - * @see WP_Filesystem::wp_lang_dir() - * - * @param string $base The folder to start searching from. - * @param bool $echo True to display debug information. - * @return string The location of the remote path. - */ - public function get_base_dir( $base = '.', $echo = false ) { - _deprecated_function(__FUNCTION__, '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); - $this->verbose = $echo; - return $this->abspath(); - } - - /** - * Locate a folder on the remote filesystem. - * - * Assumes that on Windows systems, Stripping off the Drive - * letter is OK Sanitizes \\ to / in windows filepaths. - * - * @access public - * @since 2.7.0 - * - * @param string $folder the folder to locate. - * @return string|false The location of the remote path, false on failure. - */ - public function find_folder( $folder ) { - if ( isset( $this->cache[ $folder ] ) ) - return $this->cache[ $folder ]; - - if ( stripos($this->method, 'ftp') !== false ) { - $constant_overrides = array( - 'FTP_BASE' => ABSPATH, - 'FTP_CONTENT_DIR' => WP_CONTENT_DIR, - 'FTP_PLUGIN_DIR' => WP_PLUGIN_DIR, - 'FTP_LANG_DIR' => WP_LANG_DIR - ); - - // Direct matches ( folder = CONSTANT/ ) - foreach ( $constant_overrides as $constant => $dir ) { - if ( ! defined( $constant ) ) - continue; - if ( $folder === $dir ) - return trailingslashit( constant( $constant ) ); - } - - // Prefix Matches ( folder = CONSTANT/subdir ) - foreach ( $constant_overrides as $constant => $dir ) { - if ( ! defined( $constant ) ) - continue; - if ( 0 === stripos( $folder, $dir ) ) { // $folder starts with $dir - $potential_folder = preg_replace( '#^' . preg_quote( $dir, '#' ) . '/#i', trailingslashit( constant( $constant ) ), $folder ); - $potential_folder = trailingslashit( $potential_folder ); - - if ( $this->is_dir( $potential_folder ) ) { - $this->cache[ $folder ] = $potential_folder; - return $potential_folder; - } - } - } - } elseif ( 'direct' == $this->method ) { - $folder = str_replace('\\', '/', $folder); // Windows path sanitisation - return trailingslashit($folder); - } - - $folder = preg_replace('|^([a-z]{1}):|i', '', $folder); // Strip out windows drive letter if it's there. - $folder = str_replace('\\', '/', $folder); // Windows path sanitisation - - if ( isset($this->cache[ $folder ] ) ) - return $this->cache[ $folder ]; - - if ( $this->exists($folder) ) { // Folder exists at that absolute path. - $folder = trailingslashit($folder); - $this->cache[ $folder ] = $folder; - return $folder; - } - if ( $return = $this->search_for_folder($folder) ) - $this->cache[ $folder ] = $return; - return $return; - } - - /** - * Locate a folder on the remote filesystem. - * - * Expects Windows sanitized path. - * - * @since 2.7.0 - * - * @param string $folder The folder to locate. - * @param string $base The folder to start searching from. - * @param bool $loop If the function has recursed, Internal use only. - * @return string|false The location of the remote path, false to cease looping. - */ - public function search_for_folder( $folder, $base = '.', $loop = false ) { - if ( empty( $base ) || '.' == $base ) - $base = trailingslashit($this->cwd()); - - $folder = untrailingslashit($folder); - - if ( $this->verbose ) - printf( "\n" . __('Looking for %1$s in %2$s') . "
\n", $folder, $base ); - - $folder_parts = explode('/', $folder); - $folder_part_keys = array_keys( $folder_parts ); - $last_index = array_pop( $folder_part_keys ); - $last_path = $folder_parts[ $last_index ]; - - $files = $this->dirlist( $base ); - - foreach ( $folder_parts as $index => $key ) { - if ( $index == $last_index ) - continue; // We want this to be caught by the next code block. - - /* - * Working from /home/ to /user/ to /wordpress/ see if that file exists within - * the current folder, If it's found, change into it and follow through looking - * for it. If it cant find WordPress down that route, it'll continue onto the next - * folder level, and see if that matches, and so on. If it reaches the end, and still - * cant find it, it'll return false for the entire function. - */ - if ( isset($files[ $key ]) ){ - - // Let's try that folder: - $newdir = trailingslashit(path_join($base, $key)); - if ( $this->verbose ) - printf( "\n" . __('Changing to %s') . "
\n", $newdir ); - - // Only search for the remaining path tokens in the directory, not the full path again. - $newfolder = implode( '/', array_slice( $folder_parts, $index + 1 ) ); - if ( $ret = $this->search_for_folder( $newfolder, $newdir, $loop) ) - return $ret; - } - } - - // Only check this as a last resort, to prevent locating the incorrect install. All above procedures will fail quickly if this is the right branch to take. - if (isset( $files[ $last_path ] ) ) { - if ( $this->verbose ) - printf( "\n" . __('Found %s') . "
\n", $base . $last_path ); - return trailingslashit($base . $last_path); - } - - // Prevent this function from looping again. - // No need to proceed if we've just searched in / - if ( $loop || '/' == $base ) - return false; - - // As an extra last resort, Change back to / if the folder wasn't found. - // This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... - return $this->search_for_folder( $folder, '/', true ); - - } - - /** - * Return the *nix-style file permissions for a file. - * - * From the PHP documentation page for fileperms(). - * - * @link http://docs.php.net/fileperms - * - * @access public - * @since 2.5.0 - * - * @param string $file String filename. - * @return string The *nix-style representation of permissions. - */ - public function gethchmod( $file ){ - $perms = intval( $this->getchmod( $file ), 8 ); - if (($perms & 0xC000) == 0xC000) // Socket - $info = 's'; - elseif (($perms & 0xA000) == 0xA000) // Symbolic Link - $info = 'l'; - elseif (($perms & 0x8000) == 0x8000) // Regular - $info = '-'; - elseif (($perms & 0x6000) == 0x6000) // Block special - $info = 'b'; - elseif (($perms & 0x4000) == 0x4000) // Directory - $info = 'd'; - elseif (($perms & 0x2000) == 0x2000) // Character special - $info = 'c'; - elseif (($perms & 0x1000) == 0x1000) // FIFO pipe - $info = 'p'; - else // Unknown - $info = 'u'; - - // Owner - $info .= (($perms & 0x0100) ? 'r' : '-'); - $info .= (($perms & 0x0080) ? 'w' : '-'); - $info .= (($perms & 0x0040) ? - (($perms & 0x0800) ? 's' : 'x' ) : - (($perms & 0x0800) ? 'S' : '-')); - - // Group - $info .= (($perms & 0x0020) ? 'r' : '-'); - $info .= (($perms & 0x0010) ? 'w' : '-'); - $info .= (($perms & 0x0008) ? - (($perms & 0x0400) ? 's' : 'x' ) : - (($perms & 0x0400) ? 'S' : '-')); - - // World - $info .= (($perms & 0x0004) ? 'r' : '-'); - $info .= (($perms & 0x0002) ? 'w' : '-'); - $info .= (($perms & 0x0001) ? - (($perms & 0x0200) ? 't' : 'x' ) : - (($perms & 0x0200) ? 'T' : '-')); - return $info; - } - - /** - * Gets the permissions of the specified file or filepath in their octal format - * - * @since 2.5.0 - * @param string $file - * @return string the last 3 characters of the octal number - */ - public function getchmod( $file ) { - return '777'; - } - - /** - * Convert *nix-style file permissions to a octal number. - * - * Converts '-rw-r--r--' to 0644 - * From "info at rvgate dot nl"'s comment on the PHP documentation for chmod() - * - * @link http://docs.php.net/manual/en/function.chmod.php#49614 - * - * @access public - * @since 2.5.0 - * - * @param string $mode string The *nix-style file permission. - * @return int octal representation - */ - public function getnumchmodfromh( $mode ) { - $realmode = ''; - $legal = array('', 'w', 'r', 'x', '-'); - $attarray = preg_split('//', $mode); - - for ( $i = 0, $c = count( $attarray ); $i < $c; $i++ ) { - if ($key = array_search($attarray[$i], $legal)) { - $realmode .= $legal[$key]; - } - } - - $mode = str_pad($realmode, 10, '-', STR_PAD_LEFT); - $trans = array('-'=>'0', 'r'=>'4', 'w'=>'2', 'x'=>'1'); - $mode = strtr($mode,$trans); - - $newmode = $mode[0]; - $newmode .= $mode[1] + $mode[2] + $mode[3]; - $newmode .= $mode[4] + $mode[5] + $mode[6]; - $newmode .= $mode[7] + $mode[8] + $mode[9]; - return $newmode; - } - - /** - * Determine if the string provided contains binary characters. - * - * @since 2.7.0 - * - * @param string $text String to test against. - * @return bool true if string is binary, false otherwise. - */ - public function is_binary( $text ) { - return (bool) preg_match( '|[^\x20-\x7E]|', $text ); // chr(32)..chr(127) - } - - /** - * Change the ownership of a file / folder. - * - * Default behavior is to do nothing, override this in your subclass, if desired. - * - * @since 2.5.0 - * - * @param string $file Path to the file. - * @param mixed $owner A user name or number. - * @param bool $recursive Optional. If set True changes file owner recursivly. Defaults to False. - * @return bool Returns true on success or false on failure. - */ - public function chown( $file, $owner, $recursive = false ) { - return false; - } - - /** - * Connect filesystem. - * - * @since 2.5.0 - * @abstract - * @return bool True on success or false on failure (always true for WP_Filesystem_Direct). - */ - public function connect() { - return true; - } - - /** - * Read entire file into a string. - * - * @since 2.5.0 - * @abstract - * @param string $file Name of the file to read. - * @return mixed|bool Returns the read data or false on failure. - */ - public function get_contents( $file ) { - return false; - } - - /** - * Read entire file into an array. - * - * @since 2.5.0 - * @abstract - * @param string $file Path to the file. - * @return array|bool the file contents in an array or false on failure. - */ - public function get_contents_array( $file ) { - return false; - } - - /** - * Write a string to a file. - * - * @since 2.5.0 - * @abstract - * @param string $file Remote path to the file where to write the data. - * @param string $contents The data to write. - * @param int $mode Optional. The file permissions as octal number, usually 0644. - * @return bool False on failure. - */ - public function put_contents( $file, $contents, $mode = false ) { - return false; - } - - /** - * Get the current working directory. - * - * @since 2.5.0 - * @abstract - * @return string|bool The current working directory on success, or false on failure. - */ - public function cwd() { - return false; - } - - /** - * Change current directory. - * - * @since 2.5.0 - * @abstract - * @param string $dir The new current directory. - * @return bool|string - */ - public function chdir( $dir ) { - return false; - } - - /** - * Change the file group. - * - * @since 2.5.0 - * @abstract - * @param string $file Path to the file. - * @param mixed $group A group name or number. - * @param bool $recursive Optional. If set True changes file group recursively. Defaults to False. - * @return bool|string - */ - public function chgrp( $file, $group, $recursive = false ) { - return false; - } - - /** - * Change filesystem permissions. - * - * @since 2.5.0 - * @abstract - * @param string $file Path to the file. - * @param int $mode Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs. - * @param bool $recursive Optional. If set True changes file group recursively. Defaults to False. - * @return bool|string - */ - public function chmod( $file, $mode = false, $recursive = false ) { - return false; - } - - /** - * Get the file owner. - * - * @since 2.5.0 - * @abstract - * @param string $file Path to the file. - * @return string|bool Username of the user or false on error. - */ - public function owner( $file ) { - return false; - } - - /** - * Get the file's group. - * - * @since 2.5.0 - * @abstract - * @param string $file Path to the file. - * @return string|bool The group or false on error. - */ - public function group( $file ) { - return false; - } - - /** - * Copy a file. - * - * @since 2.5.0 - * @abstract - * @param string $source Path to the source file. - * @param string $destination Path to the destination file. - * @param bool $overwrite Optional. Whether to overwrite the destination file if it exists. - * Default false. - * @param int $mode Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs. - * Default false. - * @return bool True if file copied successfully, False otherwise. - */ - public function copy( $source, $destination, $overwrite = false, $mode = false ) { - return false; - } - - /** - * Move a file. - * - * @since 2.5.0 - * @abstract - * @param string $source Path to the source file. - * @param string $destination Path to the destination file. - * @param bool $overwrite Optional. Whether to overwrite the destination file if it exists. - * Default false. - * @return bool True if file copied successfully, False otherwise. - */ - public function move( $source, $destination, $overwrite = false ) { - return false; - } - - /** - * Delete a file or directory. - * - * @since 2.5.0 - * @abstract - * @param string $file Path to the file. - * @param bool $recursive Optional. If set True changes file group recursively. Defaults to False. - * Default false. - * @param bool $type Type of resource. 'f' for file, 'd' for directory. - * Default false. - * @return bool True if the file or directory was deleted, false on failure. - */ - public function delete( $file, $recursive = false, $type = false ) { - return false; - } - - /** - * Check if a file or directory exists. - * - * @since 2.5.0 - * @abstract - * @param string $file Path to file/directory. - * @return bool Whether $file exists or not. - */ - public function exists( $file ) { - return false; - } - - /** - * Check if resource is a file. - * - * @since 2.5.0 - * @abstract - * @param string $file File path. - * @return bool Whether $file is a file. - */ - public function is_file( $file ) { - return false; - } - - /** - * Check if resource is a directory. - * - * @since 2.5.0 - * @abstract - * @param string $path Directory path. - * @return bool Whether $path is a directory. - */ - public function is_dir( $path ) { - return false; - } - - /** - * Check if a file is readable. - * - * @since 2.5.0 - * @abstract - * @param string $file Path to file. - * @return bool Whether $file is readable. - */ - public function is_readable( $file ) { - return false; - } - - /** - * Check if a file or directory is writable. - * - * @since 2.5.0 - * @abstract - * @return bool Whether $file is writable. - */ - public function is_writable( $file ) { - return false; - } - - /** - * Gets the file's last access time. - * - * @since 2.5.0 - * @abstract - * @param string $file Path to file. - * @return int|bool Unix timestamp representing last access time. - */ - public function atime( $file ) { - return false; - } - - /** - * Gets the file modification time. - * - * @since 2.5.0 - * @abstract - * @param string $file Path to file. - * @return int|bool Unix timestamp representing modification time. - */ - public function mtime( $file ) { - return false; - } - - /** - * Gets the file size (in bytes). - * - * @since 2.5.0 - * @abstract - * @param string $file Path to file. - * @return int|bool Size of the file in bytes. - */ - public function size( $file ) { - return false; - } - - /** - * Set the access and modification times of a file. - * - * Note: If $file doesn't exist, it will be created. - * - * @since 2.5.0 - * @abstract - * @param string $file Path to file. - * @param int $time Optional. Modified time to set for file. - * Default 0. - * @param int $atime Optional. Access time to set for file. - * Default 0. - * @return bool Whether operation was successful or not. - */ - public function touch( $file, $time = 0, $atime = 0 ) { - return false; - } - - /** - * Create a directory. - * - * @since 2.5.0 - * @abstract - * @param string $path Path for new directory. - * @param mixed $chmod Optional. The permissions as octal number, (or False to skip chmod) - * Default false. - * @param mixed $chown Optional. A user name or number (or False to skip chown) - * Default false. - * @param mixed $chgrp Optional. A group name or number (or False to skip chgrp). - * Default false. - * @return bool False if directory cannot be created, true otherwise. - */ - public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) { - return false; - } - - /** - * Delete a directory. - * - * @since 2.5.0 - * @abstract - * @param string $path Path to directory. - * @param bool $recursive Optional. Whether to recursively remove files/directories. - * Default false. - * @return bool Whether directory is deleted successfully or not. - */ - public function rmdir( $path, $recursive = false ) { - return false; - } - - /** - * Get details for files in a directory or a specific file. - * - * @since 2.5.0 - * @abstract - * - * @param string $path Path to directory or file. - * @param bool $include_hidden Optional. Whether to include details of hidden ("." prefixed) files. - * Default true. - * @param bool $recursive Optional. Whether to recursively include file details in nested directories. - * Default false. - * @return array|bool { - * Array of files. False if unable to list directory contents. - * - * @type string $name Name of the file/directory. - * @type string $perms *nix representation of permissions. - * @type int $permsn Octal representation of permissions. - * @type string $owner Owner name or ID. - * @type int $size Size of file in bytes. - * @type int $lastmodunix Last modified unix timestamp. - * @type mixed $lastmod Last modified month (3 letter) and day (without leading 0). - * @type int $time Last modified time. - * @type string $type Type of resource. 'f' for file, 'd' for directory. - * @type mixed $files If a directory and $recursive is true, contains another array of files. - * } - */ - public function dirlist( $path, $include_hidden = true, $recursive = false ) { - return false; - } - -} // WP_Filesystem_Base diff --git a/wp-admin/includes/class-wp-filesystem-direct.php b/wp-admin/includes/class-wp-filesystem-direct.php deleted file mode 100644 index f8979c2ac9..0000000000 --- a/wp-admin/includes/class-wp-filesystem-direct.php +++ /dev/null @@ -1,463 +0,0 @@ -method = 'direct'; - $this->errors = new WP_Error(); - } - - /** - * Reads entire file into a string - * - * @param string $file Name of the file to read. - * @return string|bool The function returns the read data or false on failure. - */ - public function get_contents($file) { - return @file_get_contents($file); - } - - /** - * Reads entire file into an array - * - * @param string $file Path to the file. - * @return array|bool the file contents in an array or false on failure. - */ - public function get_contents_array($file) { - return @file($file); - } - - /** - * Write a string to a file - * - * @param string $file Remote path to the file where to write the data. - * @param string $contents The data to write. - * @param int $mode Optional. The file permissions as octal number, usually 0644. - * Default false. - * @return bool False upon failure, true otherwise. - */ - public function put_contents( $file, $contents, $mode = false ) { - $fp = @fopen( $file, 'wb' ); - if ( ! $fp ) - return false; - - mbstring_binary_safe_encoding(); - - $data_length = strlen( $contents ); - - $bytes_written = fwrite( $fp, $contents ); - - reset_mbstring_encoding(); - - fclose( $fp ); - - if ( $data_length !== $bytes_written ) - return false; - - $this->chmod( $file, $mode ); - - return true; - } - - /** - * Gets the current working directory - * - * @return string|bool the current working directory on success, or false on failure. - */ - public function cwd() { - return @getcwd(); - } - - /** - * Change directory - * - * @param string $dir The new current directory. - * @return bool Returns true on success or false on failure. - */ - public function chdir($dir) { - return @chdir($dir); - } - - /** - * Changes file group - * - * @param string $file Path to the file. - * @param mixed $group A group name or number. - * @param bool $recursive Optional. If set True changes file group recursively. Default false. - * @return bool Returns true on success or false on failure. - */ - public function chgrp($file, $group, $recursive = false) { - if ( ! $this->exists($file) ) - return false; - if ( ! $recursive ) - return @chgrp($file, $group); - if ( ! $this->is_dir($file) ) - return @chgrp($file, $group); - // Is a directory, and we want recursive - $file = trailingslashit($file); - $filelist = $this->dirlist($file); - foreach ($filelist as $filename) - $this->chgrp($file . $filename, $group, $recursive); - - return true; - } - - /** - * Changes filesystem permissions - * - * @param string $file Path to the file. - * @param int $mode Optional. The permissions as octal number, usually 0644 for files, - * 0755 for dirs. Default false. - * @param bool $recursive Optional. If set True changes file group recursively. Default false. - * @return bool Returns true on success or false on failure. - */ - public function chmod($file, $mode = false, $recursive = false) { - if ( ! $mode ) { - if ( $this->is_file($file) ) - $mode = FS_CHMOD_FILE; - elseif ( $this->is_dir($file) ) - $mode = FS_CHMOD_DIR; - else - return false; - } - - if ( ! $recursive || ! $this->is_dir($file) ) - return @chmod($file, $mode); - // Is a directory, and we want recursive - $file = trailingslashit($file); - $filelist = $this->dirlist($file); - foreach ( (array)$filelist as $filename => $filemeta) - $this->chmod($file . $filename, $mode, $recursive); - - return true; - } - - /** - * Changes file owner - * - * @param string $file Path to the file. - * @param mixed $owner A user name or number. - * @param bool $recursive Optional. If set True changes file owner recursively. - * Default false. - * @return bool Returns true on success or false on failure. - */ - public function chown($file, $owner, $recursive = false) { - if ( ! $this->exists($file) ) - return false; - if ( ! $recursive ) - return @chown($file, $owner); - if ( ! $this->is_dir($file) ) - return @chown($file, $owner); - // Is a directory, and we want recursive - $filelist = $this->dirlist($file); - foreach ($filelist as $filename) { - $this->chown($file . '/' . $filename, $owner, $recursive); - } - return true; - } - - /** - * Gets file owner - * - * @param string $file Path to the file. - * @return string|bool Username of the user or false on error. - */ - public function owner($file) { - $owneruid = @fileowner($file); - if ( ! $owneruid ) - return false; - if ( ! function_exists('posix_getpwuid') ) - return $owneruid; - $ownerarray = posix_getpwuid($owneruid); - return $ownerarray['name']; - } - - /** - * Gets file permissions - * - * FIXME does not handle errors in fileperms() - * - * @param string $file Path to the file. - * @return string Mode of the file (last 3 digits). - */ - public function getchmod($file) { - return substr( decoct( @fileperms( $file ) ), -3 ); - } - - /** - * @param string $file - * @return string|false - */ - public function group($file) { - $gid = @filegroup($file); - if ( ! $gid ) - return false; - if ( ! function_exists('posix_getgrgid') ) - return $gid; - $grouparray = posix_getgrgid($gid); - return $grouparray['name']; - } - - /** - * @param string $source - * @param string $destination - * @param bool $overwrite - * @param int $mode - * @return bool - */ - public function copy($source, $destination, $overwrite = false, $mode = false) { - if ( ! $overwrite && $this->exists($destination) ) - return false; - - $rtval = copy($source, $destination); - if ( $mode ) - $this->chmod($destination, $mode); - return $rtval; - } - - /** - * @param string $source - * @param string $destination - * @param bool $overwrite - * @return bool - */ - public function move($source, $destination, $overwrite = false) { - if ( ! $overwrite && $this->exists($destination) ) - return false; - - // Try using rename first. if that fails (for example, source is read only) try copy. - if ( @rename($source, $destination) ) - return true; - - if ( $this->copy($source, $destination, $overwrite) && $this->exists($destination) ) { - $this->delete($source); - return true; - } else { - return false; - } - } - - /** - * @param string $file - * @param bool $recursive - * @param string $type - * @return bool - */ - public function delete($file, $recursive = false, $type = false) { - if ( empty( $file ) ) // Some filesystems report this as /, which can cause non-expected recursive deletion of all files in the filesystem. - return false; - $file = str_replace( '\\', '/', $file ); // for win32, occasional problems deleting files otherwise - - if ( 'f' == $type || $this->is_file($file) ) - return @unlink($file); - if ( ! $recursive && $this->is_dir($file) ) - return @rmdir($file); - - // At this point it's a folder, and we're in recursive mode - $file = trailingslashit($file); - $filelist = $this->dirlist($file, true); - - $retval = true; - if ( is_array( $filelist ) ) { - foreach ( $filelist as $filename => $fileinfo ) { - if ( ! $this->delete($file . $filename, $recursive, $fileinfo['type']) ) - $retval = false; - } - } - - if ( file_exists($file) && ! @rmdir($file) ) - $retval = false; - - return $retval; - } - /** - * @param string $file - * @return bool - */ - public function exists($file) { - return @file_exists($file); - } - /** - * @param string $file - * @return bool - */ - public function is_file($file) { - return @is_file($file); - } - /** - * @param string $path - * @return bool - */ - public function is_dir($path) { - return @is_dir($path); - } - - /** - * @param string $file - * @return bool - */ - public function is_readable($file) { - return @is_readable($file); - } - - /** - * @param string $file - * @return bool - */ - public function is_writable($file) { - return @is_writable($file); - } - - /** - * @param string $file - * @return int - */ - public function atime($file) { - return @fileatime($file); - } - - /** - * @param string $file - * @return int - */ - public function mtime($file) { - return @filemtime($file); - } - - /** - * @param string $file - * @return int - */ - public function size($file) { - return @filesize($file); - } - - /** - * @param string $file - * @param int $time - * @param int $atime - * @return bool - */ - public function touch($file, $time = 0, $atime = 0) { - if ($time == 0) - $time = time(); - if ($atime == 0) - $atime = time(); - return @touch($file, $time, $atime); - } - - /** - * @param string $path - * @param mixed $chmod - * @param mixed $chown - * @param mixed $chgrp - * @return bool - */ - public function mkdir($path, $chmod = false, $chown = false, $chgrp = false) { - // Safe mode fails with a trailing slash under certain PHP versions. - $path = untrailingslashit($path); - if ( empty($path) ) - return false; - - if ( ! $chmod ) - $chmod = FS_CHMOD_DIR; - - if ( ! @mkdir($path) ) - return false; - $this->chmod($path, $chmod); - if ( $chown ) - $this->chown($path, $chown); - if ( $chgrp ) - $this->chgrp($path, $chgrp); - return true; - } - - /** - * @param string $path - * @param bool $recursive - * @return bool - */ - public function rmdir($path, $recursive = false) { - return $this->delete($path, $recursive); - } - - /** - * @param string $path - * @param bool $include_hidden - * @param bool $recursive - * @return bool|array - */ - public function dirlist($path, $include_hidden = true, $recursive = false) { - if ( $this->is_file($path) ) { - $limit_file = basename($path); - $path = dirname($path); - } else { - $limit_file = false; - } - - if ( ! $this->is_dir($path) ) - return false; - - $dir = @dir($path); - if ( ! $dir ) - return false; - - $ret = array(); - - while (false !== ($entry = $dir->read()) ) { - $struc = array(); - $struc['name'] = $entry; - - if ( '.' == $struc['name'] || '..' == $struc['name'] ) - continue; - - if ( ! $include_hidden && '.' == $struc['name'][0] ) - continue; - - if ( $limit_file && $struc['name'] != $limit_file) - continue; - - $struc['perms'] = $this->gethchmod($path.'/'.$entry); - $struc['permsn'] = $this->getnumchmodfromh($struc['perms']); - $struc['number'] = false; - $struc['owner'] = $this->owner($path.'/'.$entry); - $struc['group'] = $this->group($path.'/'.$entry); - $struc['size'] = $this->size($path.'/'.$entry); - $struc['lastmodunix']= $this->mtime($path.'/'.$entry); - $struc['lastmod'] = date('M j',$struc['lastmodunix']); - $struc['time'] = date('h:i:s',$struc['lastmodunix']); - $struc['type'] = $this->is_dir($path.'/'.$entry) ? 'd' : 'f'; - - if ( 'd' == $struc['type'] ) { - if ( $recursive ) - $struc['files'] = $this->dirlist($path . '/' . $struc['name'], $include_hidden, $recursive); - else - $struc['files'] = array(); - } - - $ret[ $struc['name'] ] = $struc; - } - $dir->close(); - unset($dir); - return $ret; - } -} diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php deleted file mode 100644 index 62ade49136..0000000000 --- a/wp-admin/includes/class-wp-filesystem-ftpext.php +++ /dev/null @@ -1,525 +0,0 @@ -method = 'ftpext'; - $this->errors = new WP_Error(); - - // Check if possible to use ftp functions. - if ( ! extension_loaded('ftp') ) { - $this->errors->add('no_ftp_ext', __('The ftp PHP extension is not available')); - return; - } - - // This Class uses the timeout on a per-connection basis, Others use it on a per-action basis. - - if ( ! defined('FS_TIMEOUT') ) - define('FS_TIMEOUT', 240); - - if ( empty($opt['port']) ) - $this->options['port'] = 21; - else - $this->options['port'] = $opt['port']; - - if ( empty($opt['hostname']) ) - $this->errors->add('empty_hostname', __('FTP hostname is required')); - else - $this->options['hostname'] = $opt['hostname']; - - // Check if the options provided are OK. - if ( empty($opt['username']) ) - $this->errors->add('empty_username', __('FTP username is required')); - else - $this->options['username'] = $opt['username']; - - if ( empty($opt['password']) ) - $this->errors->add('empty_password', __('FTP password is required')); - else - $this->options['password'] = $opt['password']; - - $this->options['ssl'] = false; - if ( isset($opt['connection_type']) && 'ftps' == $opt['connection_type'] ) - $this->options['ssl'] = true; - } - - /** - * - * @return bool - */ - public function connect() { - if ( isset($this->options['ssl']) && $this->options['ssl'] && function_exists('ftp_ssl_connect') ) - $this->link = @ftp_ssl_connect($this->options['hostname'], $this->options['port'], FS_CONNECT_TIMEOUT); - else - $this->link = @ftp_connect($this->options['hostname'], $this->options['port'], FS_CONNECT_TIMEOUT); - - if ( ! $this->link ) { - $this->errors->add('connect', sprintf(__('Failed to connect to FTP Server %1$s:%2$s'), $this->options['hostname'], $this->options['port'])); - return false; - } - - if ( ! @ftp_login($this->link,$this->options['username'], $this->options['password']) ) { - $this->errors->add('auth', sprintf(__('Username/Password incorrect for %s'), $this->options['username'])); - return false; - } - - // Set the Connection to use Passive FTP - @ftp_pasv( $this->link, true ); - if ( @ftp_get_option($this->link, FTP_TIMEOUT_SEC) < FS_TIMEOUT ) - @ftp_set_option($this->link, FTP_TIMEOUT_SEC, FS_TIMEOUT); - - return true; - } - - /** - * @param string $file - * @return false|string - */ - public function get_contents( $file ) { - $tempfile = wp_tempnam($file); - $temp = fopen($tempfile, 'w+'); - - if ( ! $temp ) - return false; - - if ( ! @ftp_fget($this->link, $temp, $file, FTP_BINARY ) ) - return false; - - fseek( $temp, 0 ); // Skip back to the start of the file being written to - $contents = ''; - - while ( ! feof($temp) ) - $contents .= fread($temp, 8192); - - fclose($temp); - unlink($tempfile); - return $contents; - } - - /** - * @param string $file - * @return array - */ - public function get_contents_array($file) { - return explode("\n", $this->get_contents($file)); - } - - /** - * @param string $file - * @param string $contents - * @param bool|int $mode - * @return bool - */ - public function put_contents($file, $contents, $mode = false ) { - $tempfile = wp_tempnam($file); - $temp = fopen( $tempfile, 'wb+' ); - if ( ! $temp ) - return false; - - mbstring_binary_safe_encoding(); - - $data_length = strlen( $contents ); - $bytes_written = fwrite( $temp, $contents ); - - reset_mbstring_encoding(); - - if ( $data_length !== $bytes_written ) { - fclose( $temp ); - unlink( $tempfile ); - return false; - } - - fseek( $temp, 0 ); // Skip back to the start of the file being written to - - $ret = @ftp_fput( $this->link, $file, $temp, FTP_BINARY ); - - fclose($temp); - unlink($tempfile); - - $this->chmod($file, $mode); - - return $ret; - } - - /** - * @return string - */ - public function cwd() { - $cwd = @ftp_pwd($this->link); - if ( $cwd ) - $cwd = trailingslashit($cwd); - return $cwd; - } - - /** - * @param string $dir - * @return bool - */ - public function chdir($dir) { - return @ftp_chdir($this->link, $dir); - } - - /** - * @param string $file - * @param int $mode - * @param bool $recursive - * @return bool - */ - public function chmod($file, $mode = false, $recursive = false) { - if ( ! $mode ) { - if ( $this->is_file($file) ) - $mode = FS_CHMOD_FILE; - elseif ( $this->is_dir($file) ) - $mode = FS_CHMOD_DIR; - else - return false; - } - - // chmod any sub-objects if recursive. - if ( $recursive && $this->is_dir($file) ) { - $filelist = $this->dirlist($file); - foreach ( (array)$filelist as $filename => $filemeta ) - $this->chmod($file . '/' . $filename, $mode, $recursive); - } - - // chmod the file or directory - if ( ! function_exists('ftp_chmod') ) - return (bool)@ftp_site($this->link, sprintf('CHMOD %o %s', $mode, $file)); - return (bool)@ftp_chmod($this->link, $mode, $file); - } - - /** - * @param string $file - * @return string - */ - public function owner($file) { - $dir = $this->dirlist($file); - return $dir[$file]['owner']; - } - /** - * @param string $file - * @return string - */ - public function getchmod($file) { - $dir = $this->dirlist($file); - return $dir[$file]['permsn']; - } - /** - * @param string $file - * @return string - */ - public function group($file) { - $dir = $this->dirlist($file); - return $dir[$file]['group']; - } - - /** - * - * @param string $source - * @param string $destination - * @param bool $overwrite - * @param string|bool $mode - * @return bool - */ - public function copy($source, $destination, $overwrite = false, $mode = false) { - if ( ! $overwrite && $this->exists($destination) ) - return false; - $content = $this->get_contents($source); - if ( false === $content ) - return false; - return $this->put_contents($destination, $content, $mode); - } - /** - * @param string $source - * @param string $destination - * @param bool $overwrite - * @return bool - */ - public function move($source, $destination, $overwrite = false) { - return ftp_rename($this->link, $source, $destination); - } - /** - * @param string $file - * @param bool $recursive - * @param string $type - * @return bool - */ - public function delete($file, $recursive = false, $type = false) { - if ( empty($file) ) - return false; - if ( 'f' == $type || $this->is_file($file) ) - return @ftp_delete($this->link, $file); - if ( !$recursive ) - return @ftp_rmdir($this->link, $file); - - $filelist = $this->dirlist( trailingslashit($file) ); - if ( !empty($filelist) ) - foreach ( $filelist as $delete_file ) - $this->delete( trailingslashit($file) . $delete_file['name'], $recursive, $delete_file['type'] ); - return @ftp_rmdir($this->link, $file); - } - /** - * @param string $file - * @return bool - */ - public function exists($file) { - $list = @ftp_nlist($this->link, $file); - - if ( empty( $list ) && $this->is_dir( $file ) ) { - return true; // File is an empty directory. - } - - return !empty($list); //empty list = no file, so invert. - } - /** - * @param string $file - * @return bool - */ - public function is_file($file) { - return $this->exists($file) && !$this->is_dir($file); - } - /** - * @param string $path - * @return bool - */ - public function is_dir($path) { - $cwd = $this->cwd(); - $result = @ftp_chdir($this->link, trailingslashit($path) ); - if ( $result && $path == $this->cwd() || $this->cwd() != $cwd ) { - @ftp_chdir($this->link, $cwd); - return true; - } - return false; - } - - /** - * @param string $file - * @return bool - */ - public function is_readable($file) { - return true; - } - /** - * @param string $file - * @return bool - */ - public function is_writable($file) { - return true; - } - /** - * @param string $file - * @return bool - */ - public function atime($file) { - return false; - } - /** - * @param string $file - * @return int - */ - public function mtime($file) { - return ftp_mdtm($this->link, $file); - } - /** - * @param string $file - * @return int - */ - public function size($file) { - return ftp_size($this->link, $file); - } - /** - * @param string $file - * @return bool - */ - public function touch($file, $time = 0, $atime = 0) { - return false; - } - - /** - * @param string $path - * @param mixed $chmod - * @param mixed $chown - * @param mixed $chgrp - * @return bool - */ - public function mkdir($path, $chmod = false, $chown = false, $chgrp = false) { - $path = untrailingslashit($path); - if ( empty($path) ) - return false; - - if ( !@ftp_mkdir($this->link, $path) ) - return false; - $this->chmod($path, $chmod); - return true; - } - - /** - * @param string $path - * @param bool $recursive - * @return bool - */ - public function rmdir($path, $recursive = false) { - return $this->delete($path, $recursive); - } - - /** - * @staticvar bool $is_windows - * @param string $line - * @return array - */ - public function parselisting($line) { - static $is_windows = null; - if ( is_null($is_windows) ) - $is_windows = stripos( ftp_systype($this->link), 'win') !== false; - - if ( $is_windows && preg_match('/([0-9]{2})-([0-9]{2})-([0-9]{2}) +([0-9]{2}):([0-9]{2})(AM|PM) +([0-9]+|) +(.+)/', $line, $lucifer) ) { - $b = array(); - if ( $lucifer[3] < 70 ) - $lucifer[3] +=2000; - else - $lucifer[3] += 1900; // 4digit year fix - $b['isdir'] = ( $lucifer[7] == ''); - if ( $b['isdir'] ) - $b['type'] = 'd'; - else - $b['type'] = 'f'; - $b['size'] = $lucifer[7]; - $b['month'] = $lucifer[1]; - $b['day'] = $lucifer[2]; - $b['year'] = $lucifer[3]; - $b['hour'] = $lucifer[4]; - $b['minute'] = $lucifer[5]; - $b['time'] = @mktime($lucifer[4] + (strcasecmp($lucifer[6], "PM") == 0 ? 12 : 0), $lucifer[5], 0, $lucifer[1], $lucifer[2], $lucifer[3]); - $b['am/pm'] = $lucifer[6]; - $b['name'] = $lucifer[8]; - } elseif ( !$is_windows && $lucifer = preg_split('/[ ]/', $line, 9, PREG_SPLIT_NO_EMPTY)) { - //echo $line."\n"; - $lcount = count($lucifer); - if ( $lcount < 8 ) - return ''; - $b = array(); - $b['isdir'] = $lucifer[0]{0} === 'd'; - $b['islink'] = $lucifer[0]{0} === 'l'; - if ( $b['isdir'] ) - $b['type'] = 'd'; - elseif ( $b['islink'] ) - $b['type'] = 'l'; - else - $b['type'] = 'f'; - $b['perms'] = $lucifer[0]; - $b['permsn'] = $this->getnumchmodfromh( $b['perms'] ); - $b['number'] = $lucifer[1]; - $b['owner'] = $lucifer[2]; - $b['group'] = $lucifer[3]; - $b['size'] = $lucifer[4]; - if ( $lcount == 8 ) { - sscanf($lucifer[5], '%d-%d-%d', $b['year'], $b['month'], $b['day']); - sscanf($lucifer[6], '%d:%d', $b['hour'], $b['minute']); - $b['time'] = @mktime($b['hour'], $b['minute'], 0, $b['month'], $b['day'], $b['year']); - $b['name'] = $lucifer[7]; - } else { - $b['month'] = $lucifer[5]; - $b['day'] = $lucifer[6]; - if ( preg_match('/([0-9]{2}):([0-9]{2})/', $lucifer[7], $l2) ) { - $b['year'] = date("Y"); - $b['hour'] = $l2[1]; - $b['minute'] = $l2[2]; - } else { - $b['year'] = $lucifer[7]; - $b['hour'] = 0; - $b['minute'] = 0; - } - $b['time'] = strtotime( sprintf('%d %s %d %02d:%02d', $b['day'], $b['month'], $b['year'], $b['hour'], $b['minute']) ); - $b['name'] = $lucifer[8]; - } - } - - // Replace symlinks formatted as "source -> target" with just the source name - if ( $b['islink'] ) - $b['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $b['name'] ); - - return $b; - } - - /** - * @param string $path - * @param bool $include_hidden - * @param bool $recursive - * @return bool|array - */ - public function dirlist($path = '.', $include_hidden = true, $recursive = false) { - if ( $this->is_file($path) ) { - $limit_file = basename($path); - $path = dirname($path) . '/'; - } else { - $limit_file = false; - } - - $pwd = @ftp_pwd($this->link); - if ( ! @ftp_chdir($this->link, $path) ) // Cant change to folder = folder doesn't exist - return false; - $list = @ftp_rawlist($this->link, '-a', false); - @ftp_chdir($this->link, $pwd); - - if ( empty($list) ) // Empty array = non-existent folder (real folder will show . at least) - return false; - - $dirlist = array(); - foreach ( $list as $k => $v ) { - $entry = $this->parselisting($v); - if ( empty($entry) ) - continue; - - if ( '.' == $entry['name'] || '..' == $entry['name'] ) - continue; - - if ( ! $include_hidden && '.' == $entry['name'][0] ) - continue; - - if ( $limit_file && $entry['name'] != $limit_file) - continue; - - $dirlist[ $entry['name'] ] = $entry; - } - - $ret = array(); - foreach ( (array)$dirlist as $struc ) { - if ( 'd' == $struc['type'] ) { - if ( $recursive ) - $struc['files'] = $this->dirlist($path . '/' . $struc['name'], $include_hidden, $recursive); - else - $struc['files'] = array(); - } - - $ret[ $struc['name'] ] = $struc; - } - return $ret; - } - - /** - * @access public - */ - public function __destruct() { - if ( $this->link ) - ftp_close($this->link); - } -} diff --git a/wp-admin/includes/class-wp-filesystem-ftpsockets.php b/wp-admin/includes/class-wp-filesystem-ftpsockets.php deleted file mode 100644 index 879a2e8ca8..0000000000 --- a/wp-admin/includes/class-wp-filesystem-ftpsockets.php +++ /dev/null @@ -1,469 +0,0 @@ -method = 'ftpsockets'; - $this->errors = new WP_Error(); - - // Check if possible to use ftp functions. - if ( ! @include_once( ABSPATH . 'wp-admin/includes/class-ftp.php' ) ) { - return; - } - $this->ftp = new ftp(); - - if ( empty($opt['port']) ) - $this->options['port'] = 21; - else - $this->options['port'] = $opt['port']; - - if ( empty($opt['hostname']) ) - $this->errors->add('empty_hostname', __('FTP hostname is required')); - else - $this->options['hostname'] = $opt['hostname']; - - // Check if the options provided are OK. - if ( empty ($opt['username']) ) - $this->errors->add('empty_username', __('FTP username is required')); - else - $this->options['username'] = $opt['username']; - - if ( empty ($opt['password']) ) - $this->errors->add('empty_password', __('FTP password is required')); - else - $this->options['password'] = $opt['password']; - } - - /** - * - * @return bool - */ - public function connect() { - if ( ! $this->ftp ) - return false; - - $this->ftp->setTimeout(FS_CONNECT_TIMEOUT); - - if ( ! $this->ftp->SetServer($this->options['hostname'], $this->options['port']) ) { - $this->errors->add('connect', sprintf(__('Failed to connect to FTP Server %1$s:%2$s'), $this->options['hostname'], $this->options['port'])); - return false; - } - - if ( ! $this->ftp->connect() ) { - $this->errors->add('connect', sprintf(__('Failed to connect to FTP Server %1$s:%2$s'), $this->options['hostname'], $this->options['port'])); - return false; - } - - if ( ! $this->ftp->login($this->options['username'], $this->options['password']) ) { - $this->errors->add('auth', sprintf(__('Username/Password incorrect for %s'), $this->options['username'])); - return false; - } - - $this->ftp->SetType( FTP_BINARY ); - $this->ftp->Passive( true ); - $this->ftp->setTimeout( FS_TIMEOUT ); - return true; - } - - /** - * @param string $file - * @return false|string - */ - public function get_contents( $file ) { - if ( ! $this->exists($file) ) - return false; - - $temp = wp_tempnam( $file ); - - if ( ! $temphandle = fopen($temp, 'w+') ) - return false; - - mbstring_binary_safe_encoding(); - - if ( ! $this->ftp->fget($temphandle, $file) ) { - fclose($temphandle); - unlink($temp); - - reset_mbstring_encoding(); - - return ''; // Blank document, File does exist, It's just blank. - } - - reset_mbstring_encoding(); - - fseek( $temphandle, 0 ); // Skip back to the start of the file being written to - $contents = ''; - - while ( ! feof($temphandle) ) - $contents .= fread($temphandle, 8192); - - fclose($temphandle); - unlink($temp); - return $contents; - } - /** - * @param string $file - * @return array - */ - public function get_contents_array($file) { - return explode("\n", $this->get_contents($file) ); - } - - /** - * @param string $file - * @param string $contents - * @param int|bool $mode - * @return bool - */ - public function put_contents($file, $contents, $mode = false ) { - $temp = wp_tempnam( $file ); - if ( ! $temphandle = @fopen($temp, 'w+') ) { - unlink($temp); - return false; - } - - // The FTP class uses string functions internally during file download/upload - mbstring_binary_safe_encoding(); - - $bytes_written = fwrite( $temphandle, $contents ); - if ( false === $bytes_written || $bytes_written != strlen( $contents ) ) { - fclose( $temphandle ); - unlink( $temp ); - - reset_mbstring_encoding(); - - return false; - } - - fseek( $temphandle, 0 ); // Skip back to the start of the file being written to - - $ret = $this->ftp->fput($file, $temphandle); - - reset_mbstring_encoding(); - - fclose($temphandle); - unlink($temp); - - $this->chmod($file, $mode); - - return $ret; - } - - /** - * - * @return string - */ - public function cwd() { - $cwd = $this->ftp->pwd(); - if ( $cwd ) - $cwd = trailingslashit($cwd); - return $cwd; - } - - /** - * - * @param string $file - * @return bool - */ - public function chdir($file) { - return $this->ftp->chdir($file); - } - - /** - * @param string $file - * @param int|bool $mode - * @param bool $recursive - * @return bool - */ - public function chmod($file, $mode = false, $recursive = false ) { - if ( ! $mode ) { - if ( $this->is_file($file) ) - $mode = FS_CHMOD_FILE; - elseif ( $this->is_dir($file) ) - $mode = FS_CHMOD_DIR; - else - return false; - } - - // chmod any sub-objects if recursive. - if ( $recursive && $this->is_dir($file) ) { - $filelist = $this->dirlist($file); - foreach ( (array)$filelist as $filename => $filemeta ) - $this->chmod($file . '/' . $filename, $mode, $recursive); - } - - // chmod the file or directory - return $this->ftp->chmod($file, $mode); - } - - /** - * @param string $file - * @return string - */ - public function owner($file) { - $dir = $this->dirlist($file); - return $dir[$file]['owner']; - } - /** - * @param string $file - * @return string - */ - public function getchmod($file) { - $dir = $this->dirlist($file); - return $dir[$file]['permsn']; - } - /** - * @param string $file - * @return string - */ - public function group($file) { - $dir = $this->dirlist($file); - return $dir[$file]['group']; - } - /** - * @param string $source - * @param string $destination - * @param bool $overwrite - * @param int|bool $mode - * @return bool - */ - public function copy($source, $destination, $overwrite = false, $mode = false) { - if ( ! $overwrite && $this->exists($destination) ) - return false; - - $content = $this->get_contents($source); - if ( false === $content ) - return false; - - return $this->put_contents($destination, $content, $mode); - } - /** - * @param string $source - * @param string $destination - * @param bool $overwrite - * @return bool - */ - public function move($source, $destination, $overwrite = false ) { - return $this->ftp->rename($source, $destination); - } - /** - * @param string $file - * @param bool $recursive - * @param string $type - * @return bool - */ - public function delete($file, $recursive = false, $type = false) { - if ( empty($file) ) - return false; - if ( 'f' == $type || $this->is_file($file) ) - return $this->ftp->delete($file); - if ( !$recursive ) - return $this->ftp->rmdir($file); - - return $this->ftp->mdel($file); - } - - /** - * @param string $file - * @return bool - */ - public function exists( $file ) { - $list = $this->ftp->nlist( $file ); - - if ( empty( $list ) && $this->is_dir( $file ) ) { - return true; // File is an empty directory. - } - - return !empty( $list ); //empty list = no file, so invert. - // Return $this->ftp->is_exists($file); has issues with ABOR+426 responses on the ncFTPd server. - } - - /** - * @param string $file - * @return bool - */ - public function is_file($file) { - if ( $this->is_dir($file) ) - return false; - if ( $this->exists($file) ) - return true; - return false; - } - - /** - * @param string $path - * @return bool - */ - public function is_dir($path) { - $cwd = $this->cwd(); - if ( $this->chdir($path) ) { - $this->chdir($cwd); - return true; - } - return false; - } - - /** - * @param string $file - * @return bool - */ - public function is_readable($file) { - return true; - } - - /** - * @param string $file - * @return bool - */ - public function is_writable($file) { - return true; - } - - /** - * @param string $file - * @return bool - */ - public function atime($file) { - return false; - } - - /** - * @param string $file - * @return int - */ - public function mtime($file) { - return $this->ftp->mdtm($file); - } - - /** - * @param string $file - * @return int - */ - public function size($file) { - return $this->ftp->filesize($file); - } - /** - * @param string $file - * @param int $time - * @param int $atime - * @return bool - */ - public function touch($file, $time = 0, $atime = 0 ) { - return false; - } - - /** - * @param string $path - * @param mixed $chmod - * @param mixed $chown - * @param mixed $chgrp - * @return bool - */ - public function mkdir($path, $chmod = false, $chown = false, $chgrp = false ) { - $path = untrailingslashit($path); - if ( empty($path) ) - return false; - - if ( ! $this->ftp->mkdir($path) ) - return false; - if ( ! $chmod ) - $chmod = FS_CHMOD_DIR; - $this->chmod($path, $chmod); - return true; - } - - /** - * @param sting $path - * @param bool $recursive - */ - public function rmdir($path, $recursive = false ) { - $this->delete($path, $recursive); - } - - /** - * @param string $path - * @param bool $include_hidden - * @param bool $recursive - * @return bool|array - */ - public function dirlist($path = '.', $include_hidden = true, $recursive = false ) { - if ( $this->is_file($path) ) { - $limit_file = basename($path); - $path = dirname($path) . '/'; - } else { - $limit_file = false; - } - - mbstring_binary_safe_encoding(); - - $list = $this->ftp->dirlist($path); - if ( empty( $list ) && ! $this->exists( $path ) ) { - - reset_mbstring_encoding(); - - return false; - } - - $ret = array(); - foreach ( $list as $struc ) { - - if ( '.' == $struc['name'] || '..' == $struc['name'] ) - continue; - - if ( ! $include_hidden && '.' == $struc['name'][0] ) - continue; - - if ( $limit_file && $struc['name'] != $limit_file ) - continue; - - if ( 'd' == $struc['type'] ) { - if ( $recursive ) - $struc['files'] = $this->dirlist($path . '/' . $struc['name'], $include_hidden, $recursive); - else - $struc['files'] = array(); - } - - // Replace symlinks formatted as "source -> target" with just the source name - if ( $struc['islink'] ) - $struc['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $struc['name'] ); - - // Add the Octal representation of the file permissions - $struc['permsn'] = $this->getnumchmodfromh( $struc['perms'] ); - - $ret[ $struc['name'] ] = $struc; - } - - reset_mbstring_encoding(); - - return $ret; - } - - /** - * @access public - */ - public function __destruct() { - $this->ftp->quit(); - } -} diff --git a/wp-admin/includes/class-wp-filesystem-ssh2.php b/wp-admin/includes/class-wp-filesystem-ssh2.php deleted file mode 100644 index e446656ec1..0000000000 --- a/wp-admin/includes/class-wp-filesystem-ssh2.php +++ /dev/null @@ -1,517 +0,0 @@ -method = 'ssh2'; - $this->errors = new WP_Error(); - - //Check if possible to use ssh2 functions. - if ( ! extension_loaded('ssh2') ) { - $this->errors->add('no_ssh2_ext', __('The ssh2 PHP extension is not available')); - return; - } - if ( !function_exists('stream_get_contents') ) { - $this->errors->add('ssh2_php_requirement', __('The ssh2 PHP extension is available, however, we require the PHP5 function stream_get_contents()')); - return; - } - - // Set defaults: - if ( empty($opt['port']) ) - $this->options['port'] = 22; - else - $this->options['port'] = $opt['port']; - - if ( empty($opt['hostname']) ) - $this->errors->add('empty_hostname', __('SSH2 hostname is required')); - else - $this->options['hostname'] = $opt['hostname']; - - // Check if the options provided are OK. - if ( !empty ($opt['public_key']) && !empty ($opt['private_key']) ) { - $this->options['public_key'] = $opt['public_key']; - $this->options['private_key'] = $opt['private_key']; - - $this->options['hostkey'] = array('hostkey' => 'ssh-rsa'); - - $this->keys = true; - } elseif ( empty ($opt['username']) ) { - $this->errors->add('empty_username', __('SSH2 username is required')); - } - - if ( !empty($opt['username']) ) - $this->options['username'] = $opt['username']; - - if ( empty ($opt['password']) ) { - // Password can be blank if we are using keys. - if ( !$this->keys ) - $this->errors->add('empty_password', __('SSH2 password is required')); - } else { - $this->options['password'] = $opt['password']; - } - } - - /** - * - * @return bool - */ - public function connect() { - if ( ! $this->keys ) { - $this->link = @ssh2_connect($this->options['hostname'], $this->options['port']); - } else { - $this->link = @ssh2_connect($this->options['hostname'], $this->options['port'], $this->options['hostkey']); - } - - if ( ! $this->link ) { - $this->errors->add('connect', sprintf(__('Failed to connect to SSH2 Server %1$s:%2$s'), $this->options['hostname'], $this->options['port'])); - return false; - } - - if ( !$this->keys ) { - if ( ! @ssh2_auth_password($this->link, $this->options['username'], $this->options['password']) ) { - $this->errors->add('auth', sprintf(__('Username/Password incorrect for %s'), $this->options['username'])); - return false; - } - } else { - if ( ! @ssh2_auth_pubkey_file($this->link, $this->options['username'], $this->options['public_key'], $this->options['private_key'], $this->options['password'] ) ) { - $this->errors->add('auth', sprintf(__('Public and Private keys incorrect for %s'), $this->options['username'])); - return false; - } - } - - $this->sftp_link = ssh2_sftp($this->link); - - return true; - } - - /** - * @param string $command - * @param bool $returnbool - * @return bool|string - */ - public function run_command( $command, $returnbool = false ) { - if ( ! $this->link ) - return false; - - if ( ! ($stream = ssh2_exec($this->link, $command)) ) { - $this->errors->add('command', sprintf(__('Unable to perform command: %s'), $command)); - } else { - stream_set_blocking( $stream, true ); - stream_set_timeout( $stream, FS_TIMEOUT ); - $data = stream_get_contents( $stream ); - fclose( $stream ); - - if ( $returnbool ) - return ( $data === false ) ? false : '' != trim($data); - else - return $data; - } - return false; - } - - /** - * @param string $file - * @return string|false - */ - public function get_contents( $file ) { - $file = ltrim($file, '/'); - return file_get_contents('ssh2.sftp://' . $this->sftp_link . '/' . $file); - } - - /** - * @param string $file - * @return array - */ - public function get_contents_array($file) { - $file = ltrim($file, '/'); - return file('ssh2.sftp://' . $this->sftp_link . '/' . $file); - } - - /** - * @param string $file - * @param string $contents - * @param bool|int $mode - * @return bool - */ - public function put_contents($file, $contents, $mode = false ) { - $ret = file_put_contents( 'ssh2.sftp://' . $this->sftp_link . '/' . ltrim( $file, '/' ), $contents ); - - if ( $ret !== strlen( $contents ) ) - return false; - - $this->chmod($file, $mode); - - return true; - } - - /** - * - * @return bool - */ - public function cwd() { - $cwd = ssh2_sftp_realpath( $this->sftp_link, '.' ); - if ( $cwd ) { - $cwd = trailingslashit( trim( $cwd ) ); - } - return $cwd; - } - - /** - * @param string $dir - * @return bool|string - */ - public function chdir($dir) { - return $this->run_command('cd ' . $dir, true); - } - - /** - * @param string $file - * @param string $group - * @param bool $recursive - * - * @return bool - */ - public function chgrp($file, $group, $recursive = false ) { - if ( ! $this->exists($file) ) - return false; - if ( ! $recursive || ! $this->is_dir($file) ) - return $this->run_command(sprintf('chgrp %s %s', escapeshellarg($group), escapeshellarg($file)), true); - return $this->run_command(sprintf('chgrp -R %s %s', escapeshellarg($group), escapeshellarg($file)), true); - } - - /** - * @param string $file - * @param int $mode - * @param bool $recursive - * @return bool|string - */ - public function chmod($file, $mode = false, $recursive = false) { - if ( ! $this->exists($file) ) - return false; - - if ( ! $mode ) { - if ( $this->is_file($file) ) - $mode = FS_CHMOD_FILE; - elseif ( $this->is_dir($file) ) - $mode = FS_CHMOD_DIR; - else - return false; - } - - if ( ! $recursive || ! $this->is_dir($file) ) - return $this->run_command(sprintf('chmod %o %s', $mode, escapeshellarg($file)), true); - return $this->run_command(sprintf('chmod -R %o %s', $mode, escapeshellarg($file)), true); - } - - /** - * Change the ownership of a file / folder. - * - * @since Unknown - * - * @param string $file Path to the file. - * @param string|int $owner A user name or number. - * @param bool $recursive Optional. If set True changes file owner recursivly. Defaults to False. - * @return bool|string Returns true on success or false on failure. - */ - public function chown( $file, $owner, $recursive = false ) { - if ( ! $this->exists($file) ) - return false; - if ( ! $recursive || ! $this->is_dir($file) ) - return $this->run_command(sprintf('chown %s %s', escapeshellarg($owner), escapeshellarg($file)), true); - return $this->run_command(sprintf('chown -R %s %s', escapeshellarg($owner), escapeshellarg($file)), true); - } - - /** - * @param string $file - * @return string|false - */ - public function owner($file) { - $owneruid = @fileowner('ssh2.sftp://' . $this->sftp_link . '/' . ltrim($file, '/')); - if ( ! $owneruid ) - return false; - if ( ! function_exists('posix_getpwuid') ) - return $owneruid; - $ownerarray = posix_getpwuid($owneruid); - return $ownerarray['name']; - } - /** - * @param string $file - * @return string - */ - public function getchmod($file) { - return substr( decoct( @fileperms( 'ssh2.sftp://' . $this->sftp_link . '/' . ltrim( $file, '/' ) ) ), -3 ); - } - - /** - * @param string $file - * @return string|false - */ - public function group($file) { - $gid = @filegroup('ssh2.sftp://' . $this->sftp_link . '/' . ltrim($file, '/')); - if ( ! $gid ) - return false; - if ( ! function_exists('posix_getgrgid') ) - return $gid; - $grouparray = posix_getgrgid($gid); - return $grouparray['name']; - } - - /** - * @param string $source - * @param string $destination - * @param bool $overwrite - * @param int|bool $mode - * @return bool - */ - public function copy($source, $destination, $overwrite = false, $mode = false) { - if ( ! $overwrite && $this->exists($destination) ) - return false; - $content = $this->get_contents($source); - if ( false === $content) - return false; - return $this->put_contents($destination, $content, $mode); - } - - /** - * @param string $source - * @param string $destination - * @param bool $overwrite - * @return bool - */ - public function move($source, $destination, $overwrite = false) { - return @ssh2_sftp_rename( $this->sftp_link, $source, $destination ); - } - - /** - * @param string $file - * @param bool $recursive - * @param string|bool $type - * @return bool - */ - public function delete($file, $recursive = false, $type = false) { - if ( 'f' == $type || $this->is_file($file) ) - return ssh2_sftp_unlink($this->sftp_link, $file); - if ( ! $recursive ) - return ssh2_sftp_rmdir($this->sftp_link, $file); - $filelist = $this->dirlist($file); - if ( is_array($filelist) ) { - foreach ( $filelist as $filename => $fileinfo) { - $this->delete($file . '/' . $filename, $recursive, $fileinfo['type']); - } - } - return ssh2_sftp_rmdir($this->sftp_link, $file); - } - - /** - * @param string $file - * @return bool - */ - public function exists($file) { - $file = ltrim($file, '/'); - return file_exists('ssh2.sftp://' . $this->sftp_link . '/' . $file); - } - /** - * @param string $file - * @return bool - */ - public function is_file($file) { - $file = ltrim($file, '/'); - return is_file('ssh2.sftp://' . $this->sftp_link . '/' . $file); - } - /** - * @param string $path - * @return bool - */ - public function is_dir($path) { - $path = ltrim($path, '/'); - return is_dir('ssh2.sftp://' . $this->sftp_link . '/' . $path); - } - /** - * @param string $file - * @return bool - */ - public function is_readable($file) { - $file = ltrim($file, '/'); - return is_readable('ssh2.sftp://' . $this->sftp_link . '/' . $file); - } - /** - * @param string $file - * @return bool - */ - public function is_writable($file) { - $file = ltrim($file, '/'); - return is_writable('ssh2.sftp://' . $this->sftp_link . '/' . $file); - } - /** - * @param string $file - * @return int - */ - public function atime($file) { - $file = ltrim($file, '/'); - return fileatime('ssh2.sftp://' . $this->sftp_link . '/' . $file); - } - - /** - * @param string $file - * @return int - */ - public function mtime($file) { - $file = ltrim($file, '/'); - return filemtime('ssh2.sftp://' . $this->sftp_link . '/' . $file); - } - - /** - * @param string $file - * @return int - */ - public function size($file) { - $file = ltrim($file, '/'); - return filesize('ssh2.sftp://' . $this->sftp_link . '/' . $file); - } - - /** - * @param string $file - * @param int $time - * @param int $atime - */ - public function touch($file, $time = 0, $atime = 0) { - //Not implemented. - } - - /** - * @param string $path - * @param mixed $chmod - * @param mixed $chown - * @param mixed $chgrp - * @return bool - */ - public function mkdir($path, $chmod = false, $chown = false, $chgrp = false) { - $path = untrailingslashit($path); - if ( empty($path) ) - return false; - - if ( ! $chmod ) - $chmod = FS_CHMOD_DIR; - if ( ! ssh2_sftp_mkdir($this->sftp_link, $path, $chmod, true) ) - return false; - if ( $chown ) - $this->chown($path, $chown); - if ( $chgrp ) - $this->chgrp($path, $chgrp); - return true; - } - - /** - * @param string $path - * @param bool $recursive - * @return bool - */ - public function rmdir($path, $recursive = false) { - return $this->delete($path, $recursive); - } - - /** - * @param string $path - * @param bool $include_hidden - * @param bool $recursive - * @return bool|array - */ - public function dirlist($path, $include_hidden = true, $recursive = false) { - if ( $this->is_file($path) ) { - $limit_file = basename($path); - $path = dirname($path); - } else { - $limit_file = false; - } - - if ( ! $this->is_dir($path) ) - return false; - - $ret = array(); - $dir = @dir('ssh2.sftp://' . $this->sftp_link .'/' . ltrim($path, '/') ); - - if ( ! $dir ) - return false; - - while (false !== ($entry = $dir->read()) ) { - $struc = array(); - $struc['name'] = $entry; - - if ( '.' == $struc['name'] || '..' == $struc['name'] ) - continue; //Do not care about these folders. - - if ( ! $include_hidden && '.' == $struc['name'][0] ) - continue; - - if ( $limit_file && $struc['name'] != $limit_file ) - continue; - - $struc['perms'] = $this->gethchmod($path.'/'.$entry); - $struc['permsn'] = $this->getnumchmodfromh($struc['perms']); - $struc['number'] = false; - $struc['owner'] = $this->owner($path.'/'.$entry); - $struc['group'] = $this->group($path.'/'.$entry); - $struc['size'] = $this->size($path.'/'.$entry); - $struc['lastmodunix']= $this->mtime($path.'/'.$entry); - $struc['lastmod'] = date('M j',$struc['lastmodunix']); - $struc['time'] = date('h:i:s',$struc['lastmodunix']); - $struc['type'] = $this->is_dir($path.'/'.$entry) ? 'd' : 'f'; - - if ( 'd' == $struc['type'] ) { - if ( $recursive ) - $struc['files'] = $this->dirlist($path . '/' . $struc['name'], $include_hidden, $recursive); - else - $struc['files'] = array(); - } - - $ret[ $struc['name'] ] = $struc; - } - $dir->close(); - unset($dir); - return $ret; - } -} diff --git a/wp-admin/includes/class-wp-importer.php b/wp-admin/includes/class-wp-importer.php deleted file mode 100644 index fac5d40e4f..0000000000 --- a/wp-admin/includes/class-wp-importer.php +++ /dev/null @@ -1,319 +0,0 @@ -prepare( "SELECT post_id, meta_value FROM $wpdb->postmeta WHERE meta_key = '%s' LIMIT %d,%d", $meta_key, $offset, $limit ); - $results = $wpdb->get_results( $sql ); - - // Increment offset - $offset = ( $limit + $offset ); - - if ( !empty( $results ) ) { - foreach ( $results as $r ) { - // Set permalinks into array - $hashtable[$r->meta_value] = intval( $r->post_id ); - } - } - } while ( count( $results ) == $limit ); - - // Unset to save memory. - unset( $results, $r ); - - return $hashtable; - } - - /** - * Return count of imported permalinks from WordPress database - * - * @global wpdb $wpdb - * - * @param string $importer_name - * @param string $bid - * @return int - */ - public function count_imported_posts( $importer_name, $bid ) { - global $wpdb; - - $count = 0; - - // Get count of permalinks - $meta_key = $importer_name . '_' . $bid . '_permalink'; - $sql = $wpdb->prepare( "SELECT COUNT( post_id ) AS cnt FROM $wpdb->postmeta WHERE meta_key = '%s'", $meta_key ); - - $result = $wpdb->get_results( $sql ); - - if ( !empty( $result ) ) - $count = intval( $result[0]->cnt ); - - // Unset to save memory. - unset( $results ); - - return $count; - } - - /** - * Set array with imported comments from WordPress database - * - * @global wpdb $wpdb - * - * @param string $bid - * @return array - */ - public function get_imported_comments( $bid ) { - global $wpdb; - - $hashtable = array(); - - $limit = 100; - $offset = 0; - - // Grab all comments in chunks - do { - $sql = $wpdb->prepare( "SELECT comment_ID, comment_agent FROM $wpdb->comments LIMIT %d,%d", $offset, $limit ); - $results = $wpdb->get_results( $sql ); - - // Increment offset - $offset = ( $limit + $offset ); - - if ( !empty( $results ) ) { - foreach ( $results as $r ) { - // Explode comment_agent key - list ( $ca_bid, $source_comment_id ) = explode( '-', $r->comment_agent ); - $source_comment_id = intval( $source_comment_id ); - - // Check if this comment came from this blog - if ( $bid == $ca_bid ) { - $hashtable[$source_comment_id] = intval( $r->comment_ID ); - } - } - } - } while ( count( $results ) == $limit ); - - // Unset to save memory. - unset( $results, $r ); - - return $hashtable; - } - - /** - * - * @param int $blog_id - * @return int|void - */ - public function set_blog( $blog_id ) { - if ( is_numeric( $blog_id ) ) { - $blog_id = (int) $blog_id; - } else { - $blog = 'http://' . preg_replace( '#^https?://#', '', $blog_id ); - if ( ( !$parsed = parse_url( $blog ) ) || empty( $parsed['host'] ) ) { - fwrite( STDERR, "Error: can not determine blog_id from $blog_id\n" ); - exit(); - } - if ( empty( $parsed['path'] ) ) - $parsed['path'] = '/'; - $blog = get_blog_details( array( 'domain' => $parsed['host'], 'path' => $parsed['path'] ) ); - if ( !$blog ) { - fwrite( STDERR, "Error: Could not find blog\n" ); - exit(); - } - $blog_id = (int) $blog->blog_id; - } - - if ( function_exists( 'is_multisite' ) ) { - if ( is_multisite() ) - switch_to_blog( $blog_id ); - } - - return $blog_id; - } - - /** - * - * @param int $user_id - * @return int|void - */ - public function set_user( $user_id ) { - if ( is_numeric( $user_id ) ) { - $user_id = (int) $user_id; - } else { - $user_id = (int) username_exists( $user_id ); - } - - if ( !$user_id || !wp_set_current_user( $user_id ) ) { - fwrite( STDERR, "Error: can not find user\n" ); - exit(); - } - - return $user_id; - } - - /** - * Sort by strlen, longest string first - * - * @param string $a - * @param string $b - * @return int - */ - public function cmpr_strlen( $a, $b ) { - return strlen( $b ) - strlen( $a ); - } - - /** - * GET URL - * - * @param string $url - * @param string $username - * @param string $password - * @param bool $head - * @return array - */ - public function get_page( $url, $username = '', $password = '', $head = false ) { - // Increase the timeout - add_filter( 'http_request_timeout', array( $this, 'bump_request_timeout' ) ); - - $headers = array(); - $args = array(); - if ( true === $head ) - $args['method'] = 'HEAD'; - if ( !empty( $username ) && !empty( $password ) ) - $headers['Authorization'] = 'Basic ' . base64_encode( "$username:$password" ); - - $args['headers'] = $headers; - - return wp_safe_remote_request( $url, $args ); - } - - /** - * Bump up the request timeout for http requests - * - * @param int $val - * @return int - */ - public function bump_request_timeout( $val ) { - return 60; - } - - /** - * Check if user has exceeded disk quota - * - * @return bool - */ - public function is_user_over_quota() { - if ( function_exists( 'upload_is_user_over_quota' ) ) { - if ( upload_is_user_over_quota() ) { - return true; - } - } - - return false; - } - - /** - * Replace newlines, tabs, and multiple spaces with a single space - * - * @param string $string - * @return string - */ - public function min_whitespace( $string ) { - return preg_replace( '|[\r\n\t ]+|', ' ', $string ); - } - - /** - * Reset global variables that grow out of control during imports - * - * @global wpdb $wpdb - * @global array $wp_actions - */ - public function stop_the_insanity() { - global $wpdb, $wp_actions; - // Or define( 'WP_IMPORTING', true ); - $wpdb->queries = array(); - // Reset $wp_actions to keep it from growing out of control - $wp_actions = array(); - } -} - -/** - * Returns value of command line params. - * Exits when a required param is not set. - * - * @param string $param - * @param bool $required - * @return mixed - */ -function get_cli_args( $param, $required = false ) { - $args = $_SERVER['argv']; - - $out = array(); - - $last_arg = null; - $return = null; - - $il = sizeof( $args ); - - for ( $i = 1, $il; $i < $il; $i++ ) { - if ( (bool) preg_match( "/^--(.+)/", $args[$i], $match ) ) { - $parts = explode( "=", $match[1] ); - $key = preg_replace( "/[^a-z0-9]+/", "", $parts[0] ); - - if ( isset( $parts[1] ) ) { - $out[$key] = $parts[1]; - } else { - $out[$key] = true; - } - - $last_arg = $key; - } elseif ( (bool) preg_match( "/^-([a-zA-Z0-9]+)/", $args[$i], $match ) ) { - for ( $j = 0, $jl = strlen( $match[1] ); $j < $jl; $j++ ) { - $key = $match[1]{$j}; - $out[$key] = true; - } - - $last_arg = $key; - } elseif ( $last_arg !== null ) { - $out[$last_arg] = $args[$i]; - } - } - - // Check array for specified param - if ( isset( $out[$param] ) ) { - // Set return value - $return = $out[$param]; - } - - // Check for missing required param - if ( !isset( $out[$param] ) && $required ) { - // Display message and exit - echo "\"$param\" parameter is required but was not specified\n"; - exit(); - } - - return $return; -} diff --git a/wp-admin/includes/class-wp-links-list-table.php b/wp-admin/includes/class-wp-links-list-table.php deleted file mode 100644 index 9b917d1db4..0000000000 --- a/wp-admin/includes/class-wp-links-list-table.php +++ /dev/null @@ -1,324 +0,0 @@ - 'bookmarks', - 'screen' => isset( $args['screen'] ) ? $args['screen'] : null, - ) ); - } - - /** - * - * @return bool - */ - public function ajax_user_can() { - return current_user_can( 'manage_links' ); - } - - /** - * - * @global int $cat_id - * @global string $s - * @global string $orderby - * @global string $order - */ - public function prepare_items() { - global $cat_id, $s, $orderby, $order; - - wp_reset_vars( array( 'action', 'cat_id', 'link_id', 'orderby', 'order', 's' ) ); - - $args = array( 'hide_invisible' => 0, 'hide_empty' => 0 ); - - if ( 'all' != $cat_id ) - $args['category'] = $cat_id; - if ( !empty( $s ) ) - $args['search'] = $s; - if ( !empty( $orderby ) ) - $args['orderby'] = $orderby; - if ( !empty( $order ) ) - $args['order'] = $order; - - $this->items = get_bookmarks( $args ); - } - - /** - * @access public - */ - public function no_items() { - _e( 'No links found.' ); - } - - /** - * - * @return array - */ - protected function get_bulk_actions() { - $actions = array(); - $actions['delete'] = __( 'Delete' ); - - return $actions; - } - - /** - * - * @global int $cat_id - * @param string $which - */ - protected function extra_tablenav( $which ) { - global $cat_id; - - if ( 'top' != $which ) - return; -?> -
- $cat_id, - 'name' => 'cat_id', - 'taxonomy' => 'link_category', - 'show_option_all' => __( 'All categories' ), - 'hide_empty' => true, - 'hierarchical' => 1, - 'show_count' => 0, - 'orderby' => 'name', - ); - - echo ''; - wp_dropdown_categories( $dropdown_options ); - submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); -?> -
- '', - 'name' => _x( 'Name', 'link name' ), - 'url' => __( 'URL' ), - 'categories' => __( 'Categories' ), - 'rel' => __( 'Relationship' ), - 'visible' => __( 'Visible' ), - 'rating' => __( 'Rating' ) - ); - } - - /** - * - * @return array - */ - protected function get_sortable_columns() { - return array( - 'name' => 'name', - 'url' => 'url', - 'visible' => 'visible', - 'rating' => 'rating' - ); - } - - /** - * Get the name of the default primary column. - * - * @since 4.3.0 - * @access protected - * - * @return string Name of the default primary column, in this case, 'name'. - */ - protected function get_default_primary_column_name() { - return 'name'; - } - - /** - * Handles the checkbox column ouput. - * - * @since 4.3.0 - * @access public - * - * @param object $link The current link object. - */ - public function column_cb( $link ) { - ?> - - - - link_name ?>
- link_url ); - echo "link_name ) )."'>$short_url"; - } - - /** - * Handles the link categories column output. - * - * @since 4.3.0 - * @access public - * - * @global $cat_id - * - * @param object $link The current link object. - */ - public function column_categories( $link ) { - global $cat_id; - - $cat_names = array(); - foreach ( $link->link_category as $category ) { - $cat = get_term( $category, 'link_category', OBJECT, 'display' ); - if ( is_wp_error( $cat ) ) { - echo $cat->get_error_message(); - } - $cat_name = $cat->name; - if ( $cat_id != $category ) { - $cat_name = "$cat_name"; - } - $cat_names[] = $cat_name; - } - echo implode( ', ', $cat_names ); - } - - /** - * Handles the link relation column ouput. - * - * @since 4.3.0 - * @access public - * - * @param object $link The current link object. - */ - public function column_rel( $link ) { - echo empty( $link->link_rel ) ? '
' : $link->link_rel; - } - - /** - * Handles the link visibility column ouput. - * - * @since 4.3.0 - * @access public - * - * @param object $link The current link object. - */ - public function column_visible( $link ) { - if ( 'Y' === $link->link_visible ) { - _e( 'Yes' ); - } else { - _e( 'No' ); - } - } - - /** - * Handles the link rating column ouput. - * - * @since 4.3.0 - * @access public - * - * @param object $link The current link object. - */ - public function column_rating( $link ) { - echo $link->link_rating; - } - - /** - * Handles the default column output. - * - * @since 4.3.0 - * @access public - * - * @param object $link Link object. - * @param string $column_name Current column name. - */ - public function column_default( $link, $column_name ) { - /** - * Fires for each registered custom link column. - * - * @since 2.1.0 - * - * @param string $column_name Name of the custom column. - * @param int $link_id Link ID. - */ - do_action( 'manage_link_custom_column', $column_name, $link->link_id ); - } - - public function display_rows() { - foreach ( $this->items as $link ) { - $link = sanitize_bookmark( $link ); - $link->link_name = esc_attr( $link->link_name ); - $link->link_category = wp_get_link_cats( $link->link_id ); -?> - - single_row_columns( $link ) ?> - -' . __('Edit') . ''; - $actions['delete'] = "link_id) . "' onclick=\"if ( confirm( '" . esc_js(sprintf(__("You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."), $link->link_name)) . "' ) ) { return true;}return false;\">" . __('Delete') . ""; - return $this->row_actions( $actions ); - } -} diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php deleted file mode 100644 index ad35fc670a..0000000000 --- a/wp-admin/includes/class-wp-list-table.php +++ /dev/null @@ -1,1314 +0,0 @@ -get_column_info() - * - * @var array - */ - protected $_column_headers; - - protected $compat_fields = array( '_args', '_pagination_args', 'screen', '_actions', '_pagination' ); - - protected $compat_methods = array( 'set_pagination_args', 'get_views', 'get_bulk_actions', 'bulk_actions', - 'row_actions', 'months_dropdown', 'view_switcher', 'comments_bubble', 'get_items_per_page', 'pagination', - 'get_sortable_columns', 'get_column_info', 'get_table_classes', 'display_tablenav', 'extra_tablenav', - 'single_row_columns' ); - - /** - * Constructor. - * - * The child class should call this constructor from its own constructor to override - * the default $args. - * - * @since 3.1.0 - * @access public - * - * @param array|string $args { - * Array or string of arguments. - * - * @type string $plural Plural value used for labels and the objects being listed. - * This affects things such as CSS class-names and nonces used - * in the list table, e.g. 'posts'. Default empty. - * @type string $singular Singular label for an object being listed, e.g. 'post'. - * Default empty - * @type bool $ajax Whether the list table supports AJAX. This includes loading - * and sorting data, for example. If true, the class will call - * the {@see _js_vars()} method in the footer to provide variables - * to any scripts handling AJAX events. Default false. - * @type string $screen String containing the hook name used to determine the current - * screen. If left null, the current screen will be automatically set. - * Default null. - * } - */ - public function __construct( $args = array() ) { - $args = wp_parse_args( $args, array( - 'plural' => '', - 'singular' => '', - 'ajax' => false, - 'screen' => null, - ) ); - - $this->screen = convert_to_screen( $args['screen'] ); - - add_filter( "manage_{$this->screen->id}_columns", array( $this, 'get_columns' ), 0 ); - - if ( !$args['plural'] ) - $args['plural'] = $this->screen->base; - - $args['plural'] = sanitize_key( $args['plural'] ); - $args['singular'] = sanitize_key( $args['singular'] ); - - $this->_args = $args; - - if ( $args['ajax'] ) { - // wp_enqueue_script( 'list-table' ); - add_action( 'admin_footer', array( $this, '_js_vars' ) ); - } - - if ( empty( $this->modes ) ) { - $this->modes = array( - 'list' => __( 'List View' ), - 'excerpt' => __( 'Excerpt View' ) - ); - } - } - - /** - * Make private properties readable for backwards compatibility. - * - * @since 4.0.0 - * @access public - * - * @param string $name Property to get. - * @return mixed Property. - */ - public function __get( $name ) { - if ( in_array( $name, $this->compat_fields ) ) { - return $this->$name; - } - } - - /** - * Make private properties settable for backwards compatibility. - * - * @since 4.0.0 - * @access public - * - * @param string $name Property to check if set. - * @param mixed $value Property value. - * @return mixed Newly-set property. - */ - public function __set( $name, $value ) { - if ( in_array( $name, $this->compat_fields ) ) { - return $this->$name = $value; - } - } - - /** - * Make private properties checkable for backwards compatibility. - * - * @since 4.0.0 - * @access public - * - * @param string $name Property to check if set. - * @return bool Whether the property is set. - */ - public function __isset( $name ) { - if ( in_array( $name, $this->compat_fields ) ) { - return isset( $this->$name ); - } - } - - /** - * Make private properties un-settable for backwards compatibility. - * - * @since 4.0.0 - * @access public - * - * @param string $name Property to unset. - */ - public function __unset( $name ) { - if ( in_array( $name, $this->compat_fields ) ) { - unset( $this->$name ); - } - } - - /** - * Make private/protected methods readable for backwards compatibility. - * - * @since 4.0.0 - * @access public - * - * @param callable $name Method to call. - * @param array $arguments Arguments to pass when calling. - * @return mixed|bool Return value of the callback, false otherwise. - */ - public function __call( $name, $arguments ) { - if ( in_array( $name, $this->compat_methods ) ) { - return call_user_func_array( array( $this, $name ), $arguments ); - } - return false; - } - - /** - * Checks the current user's permissions - * - * @since 3.1.0 - * @access public - * @abstract - */ - public function ajax_user_can() { - die( 'function WP_List_Table::ajax_user_can() must be over-ridden in a sub-class.' ); - } - - /** - * Prepares the list of items for displaying. - * @uses WP_List_Table::set_pagination_args() - * - * @since 3.1.0 - * @access public - * @abstract - */ - public function prepare_items() { - die( 'function WP_List_Table::prepare_items() must be over-ridden in a sub-class.' ); - } - - /** - * An internal method that sets all the necessary pagination arguments - * - * @param array $args An associative array with information about the pagination - * @access protected - * - * @param array|string $args - */ - protected function set_pagination_args( $args ) { - $args = wp_parse_args( $args, array( - 'total_items' => 0, - 'total_pages' => 0, - 'per_page' => 0, - ) ); - - if ( !$args['total_pages'] && $args['per_page'] > 0 ) - $args['total_pages'] = ceil( $args['total_items'] / $args['per_page'] ); - - // Redirect if page number is invalid and headers are not already sent. - if ( ! headers_sent() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) && $args['total_pages'] > 0 && $this->get_pagenum() > $args['total_pages'] ) { - wp_redirect( add_query_arg( 'paged', $args['total_pages'] ) ); - exit; - } - - $this->_pagination_args = $args; - } - - /** - * Access the pagination args. - * - * @since 3.1.0 - * @access public - * - * @param string $key Pagination argument to retrieve. Common values include 'total_items', - * 'total_pages', 'per_page', or 'infinite_scroll'. - * @return int Number of items that correspond to the given pagination argument. - */ - public function get_pagination_arg( $key ) { - if ( 'page' == $key ) - return $this->get_pagenum(); - - if ( isset( $this->_pagination_args[$key] ) ) - return $this->_pagination_args[$key]; - } - - /** - * Whether the table has items to display or not - * - * @since 3.1.0 - * @access public - * - * @return bool - */ - public function has_items() { - return !empty( $this->items ); - } - - /** - * Message to be displayed when there are no items - * - * @since 3.1.0 - * @access public - */ - public function no_items() { - _e( 'No items found.' ); - } - - /** - * Display the search box. - * - * @since 3.1.0 - * @access public - * - * @param string $text The search button text - * @param string $input_id The search input id - */ - public function search_box( $text, $input_id ) { - if ( empty( $_REQUEST['s'] ) && !$this->has_items() ) - return; - - $input_id = $input_id . '-search-input'; - - if ( ! empty( $_REQUEST['orderby'] ) ) - echo ''; - if ( ! empty( $_REQUEST['order'] ) ) - echo ''; - if ( ! empty( $_REQUEST['post_mime_type'] ) ) - echo ''; - if ( ! empty( $_REQUEST['detached'] ) ) - echo ''; -?> - - link ) with the list - * of views available on this table. - * - * @since 3.1.0 - * @access protected - * - * @return array - */ - protected function get_views() { - return array(); - } - - /** - * Display the list of views available on this table. - * - * @since 3.1.0 - * @access public - */ - public function views() { - $views = $this->get_views(); - /** - * Filter the list of available list table views. - * - * The dynamic portion of the hook name, `$this->screen->id`, refers - * to the ID of the current screen, usually a string. - * - * @since 3.5.0 - * - * @param array $views An array of available list table views. - */ - $views = apply_filters( "views_{$this->screen->id}", $views ); - - if ( empty( $views ) ) - return; - - echo "
    \n"; - foreach ( $views as $class => $view ) { - $views[ $class ] = "\t
  • $view"; - } - echo implode( " |
  • \n", $views ) . "\n"; - echo "
"; - } - - /** - * Get an associative array ( option_name => option_title ) with the list - * of bulk actions available on this table. - * - * @since 3.1.0 - * @access protected - * - * @return array - */ - protected function get_bulk_actions() { - return array(); - } - - /** - * Display the bulk actions dropdown. - * - * @since 3.1.0 - * @access protected - * - * @param string $which The location of the bulk actions: 'top' or 'bottom'. - * This is designated as optional for backwards-compatibility. - */ - protected function bulk_actions( $which = '' ) { - if ( is_null( $this->_actions ) ) { - $no_new_actions = $this->_actions = $this->get_bulk_actions(); - /** - * Filter the list table Bulk Actions drop-down. - * - * The dynamic portion of the hook name, `$this->screen->id`, refers - * to the ID of the current screen, usually a string. - * - * This filter can currently only be used to remove bulk actions. - * - * @since 3.5.0 - * - * @param array $actions An array of the available bulk actions. - */ - $this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions ); - $this->_actions = array_intersect_assoc( $this->_actions, $no_new_actions ); - $two = ''; - } else { - $two = '2'; - } - - if ( empty( $this->_actions ) ) - return; - - echo ""; - echo "\n"; - - submit_button( __( 'Apply' ), 'action', '', false, array( 'id' => "doaction$two" ) ); - echo "\n"; - } - - /** - * Get the current action selected from the bulk actions dropdown. - * - * @since 3.1.0 - * @access public - * - * @return string|false The action name or False if no action was selected - */ - public function current_action() { - if ( isset( $_REQUEST['filter_action'] ) && ! empty( $_REQUEST['filter_action'] ) ) - return false; - - if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) - return $_REQUEST['action']; - - if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) - return $_REQUEST['action2']; - - return false; - } - - /** - * Generate row actions div - * - * @since 3.1.0 - * @access protected - * - * @param array $actions The list of actions - * @param bool $always_visible Whether the actions should be always visible - * @return string - */ - protected function row_actions( $actions, $always_visible = false ) { - $action_count = count( $actions ); - $i = 0; - - if ( !$action_count ) - return ''; - - $out = '
'; - foreach ( $actions as $action => $link ) { - ++$i; - ( $i == $action_count ) ? $sep = '' : $sep = ' | '; - $out .= "$link$sep"; - } - $out .= '
'; - - $out .= ''; - - return $out; - } - - /** - * Display a monthly dropdown for filtering items - * - * @since 3.1.0 - * @access protected - * - * @global wpdb $wpdb - * @global WP_Locale $wp_locale - * - * @param string $post_type - */ - protected function months_dropdown( $post_type ) { - global $wpdb, $wp_locale; - - /** - * Filter whether to remove the 'Months' drop-down from the post list table. - * - * @since 4.2.0 - * - * @param bool $disable Whether to disable the drop-down. Default false. - * @param string $post_type The post type. - */ - if ( apply_filters( 'disable_months_dropdown', false, $post_type ) ) { - return; - } - - $months = $wpdb->get_results( $wpdb->prepare( " - SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month - FROM $wpdb->posts - WHERE post_type = %s - ORDER BY post_date DESC - ", $post_type ) ); - - /** - * Filter the 'Months' drop-down results. - * - * @since 3.7.0 - * - * @param object $months The months drop-down query results. - * @param string $post_type The post type. - */ - $months = apply_filters( 'months_dropdown_results', $months, $post_type ); - - $month_count = count( $months ); - - if ( !$month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) - return; - - $m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0; -?> - - - - -
-modes as $mode => $title ) { - $classes = array( 'view-' . $mode ); - if ( $current_mode == $mode ) - $classes[] = 'current'; - printf( - "%s\n", - esc_url( add_query_arg( 'mode', $mode ) ), - implode( ' ', $classes ), - $title - ); - } - ?> -
-—%s', - __( 'No comments' ) - ); - // Approved comments have different display depending on some conditions. - } elseif ( $approved_comments ) { - printf( '%s', - esc_url( add_query_arg( array( 'p' => $post_id, 'comment_status' => 'approved' ), admin_url( 'edit-comments.php' ) ) ), - $approved_comments_number, - $pending_comments ? $approved_phrase : $approved_only_phrase - ); - } else { - printf( '%s', - $approved_comments_number, - $pending_comments ? __( 'No approved comments' ) : __( 'No comments' ) - ); - } - - if ( $pending_comments ) { - printf( '%s', - esc_url( add_query_arg( array( 'p' => $post_id, 'comment_status' => 'moderated' ), admin_url( 'edit-comments.php' ) ) ), - $pending_comments_number, - $pending_phrase - ); - } - } - - /** - * Get the current page number - * - * @since 3.1.0 - * @access public - * - * @return int - */ - public function get_pagenum() { - $pagenum = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 0; - - if ( isset( $this->_pagination_args['total_pages'] ) && $pagenum > $this->_pagination_args['total_pages'] ) - $pagenum = $this->_pagination_args['total_pages']; - - return max( 1, $pagenum ); - } - - /** - * Get number of items to display on a single page - * - * @since 3.1.0 - * @access protected - * - * @param string $option - * @param int $default - * @return int - */ - protected function get_items_per_page( $option, $default = 20 ) { - $per_page = (int) get_user_option( $option ); - if ( empty( $per_page ) || $per_page < 1 ) - $per_page = $default; - - /** - * Filter the number of items to be displayed on each page of the list table. - * - * The dynamic hook name, $option, refers to the `per_page` option depending - * on the type of list table in use. Possible values include: 'edit_comments_per_page', - * 'sites_network_per_page', 'site_themes_network_per_page', 'themes_network_per_page', - * 'users_network_per_page', 'edit_post_per_page', 'edit_page_per_page', - * 'edit_{$post_type}_per_page', etc. - * - * @since 2.9.0 - * - * @param int $per_page Number of items to be displayed. Default 20. - */ - return (int) apply_filters( $option, $per_page ); - } - - /** - * Display the pagination. - * - * @since 3.1.0 - * @access protected - * - * @param string $which - */ - protected function pagination( $which ) { - if ( empty( $this->_pagination_args ) ) { - return; - } - - $total_items = $this->_pagination_args['total_items']; - $total_pages = $this->_pagination_args['total_pages']; - $infinite_scroll = false; - if ( isset( $this->_pagination_args['infinite_scroll'] ) ) { - $infinite_scroll = $this->_pagination_args['infinite_scroll']; - } - - $output = '' . sprintf( _n( '%s item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . ''; - - $current = $this->get_pagenum(); - - $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); - - $current_url = remove_query_arg( array( 'hotkeys_highlight_last', 'hotkeys_highlight_first' ), $current_url ); - - $page_links = array(); - - $total_pages_before = ''; - $total_pages_after = ''; - - $disable_first = $disable_last = $disable_prev = $disable_next = false; - - if ( $current == 1 ) { - $disable_first = true; - $disable_prev = true; - } - if ( $current == 2 ) { - $disable_first = true; - } - if ( $current == $total_pages ) { - $disable_last = true; - $disable_next = true; - } - if ( $current == $total_pages - 1 ) { - $disable_last = true; - } - - if ( $disable_first ) { - $page_links[] = ''; - } else { - $page_links[] = sprintf( "%s", - esc_url( remove_query_arg( 'paged', $current_url ) ), - __( 'First page' ), - '«' - ); - } - - if ( $disable_prev ) { - $page_links[] = ''; - } else { - $page_links[] = sprintf( "%s", - esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ), - __( 'Previous page' ), - '‹' - ); - } - - if ( 'bottom' == $which ) { - $html_current_page = $current; - $total_pages_before = '' . __( 'Current Page' ) . ''; - } else { - $html_current_page = sprintf( "%s", - '', - $current, - strlen( $total_pages ) - ); - } - $html_total_pages = sprintf( "%s", number_format_i18n( $total_pages ) ); - $page_links[] = $total_pages_before . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . $total_pages_after; - - if ( $disable_next ) { - $page_links[] = ''; - } else { - $page_links[] = sprintf( "%s", - esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ), - __( 'Next page' ), - '›' - ); - } - - if ( $disable_last ) { - $page_links[] = ''; - } else { - $page_links[] = sprintf( "%s", - esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), - __( 'Last page' ), - '»' - ); - } - - $pagination_links_class = 'pagination-links'; - if ( ! empty( $infinite_scroll ) ) { - $pagination_links_class = ' hide-if-js'; - } - $output .= "\n" . join( "\n", $page_links ) . ''; - - if ( $total_pages ) { - $page_class = $total_pages < 2 ? ' one-page' : ''; - } else { - $page_class = ' no-pages'; - } - $this->_pagination = "
$output
"; - - echo $this->_pagination; - } - - /** - * Get a list of columns. The format is: - * 'internal-name' => 'Title' - * - * @since 3.1.0 - * @access public - * @abstract - * - * @return array - */ - public function get_columns() { - die( 'function WP_List_Table::get_columns() must be over-ridden in a sub-class.' ); - } - - /** - * Get a list of sortable columns. The format is: - * 'internal-name' => 'orderby' - * or - * 'internal-name' => array( 'orderby', true ) - * - * The second format will make the initial sorting order be descending - * - * @since 3.1.0 - * @access protected - * - * @return array - */ - protected function get_sortable_columns() { - return array(); - } - - /** - * Gets the name of the default primary column. - * - * @since 4.3.0 - * @access protected - * - * @return string Name of the default primary column, in this case, an empty string. - */ - protected function get_default_primary_column_name() { - $columns = $this->get_columns(); - $column = ''; - - // We need a primary defined so responsive views show something, - // so let's fall back to the first non-checkbox column. - foreach( $columns as $col => $column_name ) { - if ( 'cb' === $col ) { - continue; - } - - $column = $col; - break; - } - - return $column; - } - - /** - * Gets the name of the primary column. - * - * @since 4.3.0 - * @access protected - * - * @return string The name of the primary column. - */ - protected function get_primary_column_name() { - $columns = $this->get_columns(); - $default = $this->get_default_primary_column_name(); - - // If the primary column doesn't exist fall back to the - // first non-checkbox column. - if ( ! isset( $columns[ $default ] ) ) { - $default = WP_List_Table::get_default_primary_column_name(); - } - - /** - * Filter the name of the primary column for the current list table. - * - * @since 4.3.0 - * - * @param string $default Column name default for the specific list table, e.g. 'name'. - * @param string $context Screen ID for specific list table, e.g. 'plugins'. - */ - $column = apply_filters( 'list_table_primary_column', $default, $this->screen->id ); - - if ( empty( $column ) || ! isset( $columns[ $column ] ) ) { - $column = $default; - } - - return $column; - } - - /** - * Get a list of all, hidden and sortable columns, with filter applied - * - * @since 3.1.0 - * @access protected - * - * @return array - */ - protected function get_column_info() { - // $_column_headers is already set / cached - if ( isset( $this->_column_headers ) && is_array( $this->_column_headers ) ) { - // Back-compat for list tables that have been manually setting $_column_headers for horse reasons. - // In 4.3, we added a fourth argument for primary column. - $column_headers = array( array(), array(), array(), $this->get_primary_column_name() ); - foreach ( $this->_column_headers as $key => $value ) { - $column_headers[ $key ] = $value; - } - - return $column_headers; - } - - $columns = get_column_headers( $this->screen ); - $hidden = get_hidden_columns( $this->screen ); - - $sortable_columns = $this->get_sortable_columns(); - /** - * Filter the list table sortable columns for a specific screen. - * - * The dynamic portion of the hook name, `$this->screen->id`, refers - * to the ID of the current screen, usually a string. - * - * @since 3.5.0 - * - * @param array $sortable_columns An array of sortable columns. - */ - $_sortable = apply_filters( "manage_{$this->screen->id}_sortable_columns", $sortable_columns ); - - $sortable = array(); - foreach ( $_sortable as $id => $data ) { - if ( empty( $data ) ) - continue; - - $data = (array) $data; - if ( !isset( $data[1] ) ) - $data[1] = false; - - $sortable[$id] = $data; - } - - $primary = $this->get_primary_column_name(); - $this->_column_headers = array( $columns, $hidden, $sortable, $primary ); - - return $this->_column_headers; - } - - /** - * Return number of visible columns - * - * @since 3.1.0 - * @access public - * - * @return int - */ - public function get_column_count() { - list ( $columns, $hidden ) = $this->get_column_info(); - $hidden = array_intersect( array_keys( $columns ), array_filter( $hidden ) ); - return count( $columns ) - count( $hidden ); - } - - /** - * Print column headers, accounting for hidden and sortable columns. - * - * @since 3.1.0 - * @access public - * - * @staticvar int $cb_counter - * - * @param bool $with_id Whether to set the id attribute or not - */ - public function print_column_headers( $with_id = true ) { - list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); - - $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); - $current_url = remove_query_arg( 'paged', $current_url ); - - if ( isset( $_GET['orderby'] ) ) - $current_orderby = $_GET['orderby']; - else - $current_orderby = ''; - - if ( isset( $_GET['order'] ) && 'desc' == $_GET['order'] ) - $current_order = 'desc'; - else - $current_order = 'asc'; - - if ( ! empty( $columns['cb'] ) ) { - static $cb_counter = 1; - $columns['cb'] = '' - . ''; - $cb_counter++; - } - - foreach ( $columns as $column_key => $column_display_name ) { - $class = array( 'manage-column', "column-$column_key" ); - - if ( in_array( $column_key, $hidden ) ) { - $class[] = 'hidden'; - } - - if ( 'cb' == $column_key ) - $class[] = 'check-column'; - elseif ( in_array( $column_key, array( 'posts', 'comments', 'links' ) ) ) - $class[] = 'num'; - - if ( $column_key === $primary ) { - $class[] = 'column-primary'; - } - - if ( isset( $sortable[$column_key] ) ) { - list( $orderby, $desc_first ) = $sortable[$column_key]; - - if ( $current_orderby == $orderby ) { - $order = 'asc' == $current_order ? 'desc' : 'asc'; - $class[] = 'sorted'; - $class[] = $current_order; - } else { - $order = $desc_first ? 'desc' : 'asc'; - $class[] = 'sortable'; - $class[] = $desc_first ? 'asc' : 'desc'; - } - - $column_display_name = '' . $column_display_name . ''; - } - - $tag = ( 'cb' === $column_key ) ? 'td' : 'th'; - $scope = ( 'th' === $tag ) ? 'scope="col"' : ''; - $id = $with_id ? "id='$column_key'" : ''; - - if ( !empty( $class ) ) - $class = "class='" . join( ' ', $class ) . "'"; - - echo "<$tag $scope $id $class>$column_display_name"; - } - } - - /** - * Display the table - * - * @since 3.1.0 - * @access public - */ - public function display() { - $singular = $this->_args['singular']; - - $this->display_tablenav( 'top' ); -?> - - - - print_column_headers(); ?> - - - - > - display_rows_or_placeholder(); ?> - - - - - print_column_headers( false ); ?> - - - -
-display_tablenav( 'bottom' ); - } - - /** - * Get a list of CSS classes for the list table table tag. - * - * @since 3.1.0 - * @access protected - * - * @return array List of CSS classes for the table tag. - */ - protected function get_table_classes() { - return array( 'widefat', 'fixed', 'striped', $this->_args['plural'] ); - } - - /** - * Generate the table navigation above or below the table - * - * @since 3.1.0 - * @access protected - * @param string $which - */ - protected function display_tablenav( $which ) { - if ( 'top' == $which ) - wp_nonce_field( 'bulk-' . $this->_args['plural'] ); -?> -
- -
- bulk_actions( $which ); ?> -
-extra_tablenav( $which ); - $this->pagination( $which ); -?> - -
-
-has_items() ) { - $this->display_rows(); - } else { - echo ''; - $this->no_items(); - echo ''; - } - } - - /** - * Generate the table rows - * - * @since 3.1.0 - * @access public - */ - public function display_rows() { - foreach ( $this->items as $item ) - $this->single_row( $item ); - } - - /** - * Generates content for a single row of the table - * - * @since 3.1.0 - * @access public - * - * @param object $item The current item - */ - public function single_row( $item ) { - echo ''; - $this->single_row_columns( $item ); - echo ''; - } - - /** - * - * @param object $item - * @param string $column_name - */ - protected function column_default( $item, $column_name ) {} - - /** - * - * @param object $item - */ - protected function column_cb( $item ) {} - - /** - * Generates the columns for a single row of the table - * - * @since 3.1.0 - * @access protected - * - * @param object $item The current item - */ - protected function single_row_columns( $item ) { - list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); - - foreach ( $columns as $column_name => $column_display_name ) { - $classes = "$column_name column-$column_name"; - if ( $primary === $column_name ) { - $classes .= ' has-row-actions column-primary'; - } - - if ( in_array( $column_name, $hidden ) ) { - $classes .= ' hidden'; - } - - // Comments column uses HTML in the display name with screen reader text. - // Instead of using esc_attr(), we strip tags to get closer to a user-friendly string. - $data = 'data-colname="' . wp_strip_all_tags( $column_display_name ) . '"'; - - $attributes = "class='$classes' $data"; - - if ( 'cb' == $column_name ) { - echo ''; - echo $this->column_cb( $item ); - echo ''; - } elseif ( method_exists( $this, '_column_' . $column_name ) ) { - echo call_user_func( - array( $this, '_column_' . $column_name ), - $item, - $classes, - $data, - $primary - ); - } elseif ( method_exists( $this, 'column_' . $column_name ) ) { - echo ""; - echo call_user_func( array( $this, 'column_' . $column_name ), $item ); - echo $this->handle_row_actions( $item, $column_name, $primary ); - echo ""; - } else { - echo ""; - echo $this->column_default( $item, $column_name ); - echo $this->handle_row_actions( $item, $column_name, $primary ); - echo ""; - } - } - } - - /** - * Generates and display row actions links for the list table. - * - * @since 4.3.0 - * @access protected - * - * @param object $item The item being acted upon. - * @param string $column_name Current column name. - * @param string $primary Primary column name. - * @return string The row actions output. In this case, an empty string. - */ - protected function handle_row_actions( $item, $column_name, $primary ) { - return $column_name == $primary ? '' : ''; - } - - /** - * Handle an incoming ajax request (called from admin-ajax.php) - * - * @since 3.1.0 - * @access public - */ - public function ajax_response() { - $this->prepare_items(); - - ob_start(); - if ( ! empty( $_REQUEST['no_placeholder'] ) ) { - $this->display_rows(); - } else { - $this->display_rows_or_placeholder(); - } - - $rows = ob_get_clean(); - - $response = array( 'rows' => $rows ); - - if ( isset( $this->_pagination_args['total_items'] ) ) { - $response['total_items_i18n'] = sprintf( - _n( '%s item', '%s items', $this->_pagination_args['total_items'] ), - number_format_i18n( $this->_pagination_args['total_items'] ) - ); - } - if ( isset( $this->_pagination_args['total_pages'] ) ) { - $response['total_pages'] = $this->_pagination_args['total_pages']; - $response['total_pages_i18n'] = number_format_i18n( $this->_pagination_args['total_pages'] ); - } - - die( wp_json_encode( $response ) ); - } - - /** - * Send required variables to JavaScript land - * - * @access public - */ - public function _js_vars() { - $args = array( - 'class' => get_class( $this ), - 'screen' => array( - 'id' => $this->screen->id, - 'base' => $this->screen->base, - ) - ); - - printf( "\n", wp_json_encode( $args ) ); - } -} diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php deleted file mode 100644 index 9c61fc28ef..0000000000 --- a/wp-admin/includes/class-wp-media-list-table.php +++ /dev/null @@ -1,657 +0,0 @@ -detached = ( isset( $_REQUEST['attachment-filter'] ) && 'detached' === $_REQUEST['attachment-filter'] ); - - $this->modes = array( - 'list' => __( 'List View' ), - 'grid' => __( 'Grid View' ) - ); - - parent::__construct( array( - 'plural' => 'media', - 'screen' => isset( $args['screen'] ) ? $args['screen'] : null, - ) ); - } - - /** - * - * @return bool - */ - public function ajax_user_can() { - return current_user_can('upload_files'); - } - - /** - * - * @global WP_Query $wp_query - * @global array $post_mime_types - * @global array $avail_post_mime_types - * @global string $mode - */ - public function prepare_items() { - global $wp_query, $post_mime_types, $avail_post_mime_types, $mode; - - list( $post_mime_types, $avail_post_mime_types ) = wp_edit_attachments_query( $_REQUEST ); - - $this->is_trash = isset( $_REQUEST['attachment-filter'] ) && 'trash' == $_REQUEST['attachment-filter']; - - $mode = empty( $_REQUEST['mode'] ) ? 'list' : $_REQUEST['mode']; - - $this->set_pagination_args( array( - 'total_items' => $wp_query->found_posts, - 'total_pages' => $wp_query->max_num_pages, - 'per_page' => $wp_query->query_vars['posts_per_page'], - ) ); - } - - /** - * - * @global wpdb $wpdb - * @global array $post_mime_types - * @global array $avail_post_mime_types - * @return array - */ - protected function get_views() { - global $wpdb, $post_mime_types, $avail_post_mime_types; - - $type_links = array(); - $_num_posts = (array) wp_count_attachments(); - $_total_posts = array_sum($_num_posts) - $_num_posts['trash']; - $total_orphans = $wpdb->get_var( "SELECT COUNT( * ) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent < 1" ); - $matches = wp_match_mime_types(array_keys($post_mime_types), array_keys($_num_posts)); - $num_posts = array(); - foreach ( $matches as $type => $reals ) { - foreach ( $reals as $real ) { - $num_posts[$type] = ( isset( $num_posts[$type] ) ) ? $num_posts[$type] + $_num_posts[$real] : $_num_posts[$real]; - } - } - $selected = empty( $_GET['attachment-filter'] ) ? ' selected="selected"' : ''; - $type_links['all'] = "'; - foreach ( $post_mime_types as $mime_type => $label ) { - if ( !wp_match_mime_types($mime_type, $avail_post_mime_types) ) - continue; - - $selected = ''; - if ( !empty( $_GET['attachment-filter'] ) && strpos( $_GET['attachment-filter'], 'post_mime_type:' ) === 0 && wp_match_mime_types( $mime_type, str_replace( 'post_mime_type:', '', $_GET['attachment-filter'] ) ) ) - $selected = ' selected="selected"'; - if ( !empty( $num_posts[$mime_type] ) ) - $type_links[$mime_type] = ''; - } - $type_links['detached'] = ''; - - if ( !empty($_num_posts['trash']) ) - $type_links['trash'] = ''; - - return $type_links; - } - - /** - * - * @return array - */ - protected function get_bulk_actions() { - $actions = array(); - if ( MEDIA_TRASH ) { - if ( $this->is_trash ) { - $actions['untrash'] = __( 'Restore' ); - $actions['delete'] = __( 'Delete Permanently' ); - } else { - $actions['trash'] = __( 'Trash' ); - } - } else { - $actions['delete'] = __( 'Delete Permanently' ); - } - - if ( $this->detached ) - $actions['attach'] = __( 'Attach to a post' ); - - return $actions; - } - - /** - * @param string $which - */ - protected function extra_tablenav( $which ) { - if ( 'bar' !== $which ) { - return; - } -?> -
-is_trash ) { - $this->months_dropdown( 'attachment' ); - } - - /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */ - do_action( 'restrict_manage_posts' ); - submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); - } - - if ( $this->is_trash && current_user_can( 'edit_others_posts' ) ) { - submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false ); - } ?> -
-get_views(); -?> -
-
- view_switcher( $mode ); ?> - - - - -extra_tablenav( 'bar' ); - - /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */ - $views = apply_filters( "views_{$this->screen->id}", array() ); - - // Back compat for pre-4.0 view links. - if ( ! empty( $views ) ) { - echo ''; - } -?> -
- -
- -
-
- '; - /* translators: column name */ - $posts_columns['title'] = _x( 'File', 'column name' ); - $posts_columns['author'] = __( 'Author' ); - - $taxonomies = get_taxonomies_for_attachments( 'objects' ); - $taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' ); - - /** - * Filter the taxonomy columns for attachments in the Media list table. - * - * @since 3.5.0 - * - * @param array $taxonomies An array of registered taxonomies to show for attachments. - * @param string $post_type The post type. Default 'attachment'. - */ - $taxonomies = apply_filters( 'manage_taxonomies_for_attachment_columns', $taxonomies, 'attachment' ); - $taxonomies = array_filter( $taxonomies, 'taxonomy_exists' ); - - foreach ( $taxonomies as $taxonomy ) { - if ( 'category' == $taxonomy ) - $column_key = 'categories'; - elseif ( 'post_tag' == $taxonomy ) - $column_key = 'tags'; - else - $column_key = 'taxonomy-' . $taxonomy; - - $posts_columns[ $column_key ] = get_taxonomy( $taxonomy )->labels->name; - } - - /* translators: column name */ - if ( !$this->detached ) { - $posts_columns['parent'] = _x( 'Uploaded to', 'column name' ); - if ( post_type_supports( 'attachment', 'comments' ) ) - $posts_columns['comments'] = '' . __( 'Comments' ) . ''; - } - /* translators: column name */ - $posts_columns['date'] = _x( 'Date', 'column name' ); - /** - * Filter the Media list table columns. - * - * @since 2.5.0 - * - * @param array $posts_columns An array of columns displayed in the Media list table. - * @param bool $detached Whether the list table contains media not attached - * to any posts. Default true. - */ - return apply_filters( 'manage_media_columns', $posts_columns, $this->detached ); - } - - /** - * - * @return array - */ - protected function get_sortable_columns() { - return array( - 'title' => 'title', - 'author' => 'author', - 'parent' => 'parent', - 'comments' => 'comment_count', - 'date' => array( 'date', true ), - ); - } - - /** - * Handles the checkbox column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_Post $post The current WP_Post object. - */ - public function column_cb( $post ) { - if ( current_user_can( 'edit_post', $post->ID ) ) { ?> - - - post_mime_type ); - - $title = _draft_or_post_title(); - $thumb = wp_get_attachment_image( $post->ID, array( 60, 60 ), true, array( 'alt' => '' ) ); - $link_start = $link_end = ''; - - if ( current_user_can( 'edit_post', $post->ID ) && ! $this->is_trash ) { - $link_start = ''; - $link_end = ''; - } - - $class = $thumb ? ' class="has-media-icon"' : ''; - - ?> - > - - - - - - - - - - -

guid ); ?>

- %s', - esc_url( add_query_arg( array( 'author' => get_the_author_meta('ID') ), 'upload.php' ) ), - get_the_author() - ); - } - - /** - * Handles the description column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_Post $post The current WP_Post object. - */ - public function column_desc( $post ) { - echo has_excerpt() ? $post->post_excerpt : ''; - } - - /** - * Handles the date column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_Post $post The current WP_Post object. - */ - public function column_date( $post ) { - if ( '0000-00-00 00:00:00' == $post->post_date ) { - $h_time = __( 'Unpublished' ); - } else { - $m_time = $post->post_date; - $time = get_post_time( 'G', true, $post, false ); - if ( ( abs( $t_diff = time() - $time ) ) < DAY_IN_SECONDS ) { - if ( $t_diff < 0 ) { - $h_time = sprintf( __( '%s from now' ), human_time_diff( $time ) ); - } else { - $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) ); - } - } else { - $h_time = mysql2date( __( 'Y/m/d' ), $m_time ); - } - } - - echo $h_time; - } - - /** - * Handles the parent column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_Post $post The current WP_Post object. - */ - public function column_parent( $post ) { - $user_can_edit = current_user_can( 'edit_post', $post->ID ); - - if ( $post->post_parent > 0 ) { - $parent = get_post( $post->post_parent ); - } else { - $parent = false; - } - - if ( $parent ) { - $title = _draft_or_post_title( $post->post_parent ); - $parent_type = get_post_type_object( $parent->post_type ); -?> - - show_ui && current_user_can( 'edit_post', $post->post_parent ) ) { ?> - - , -
- $post->post_parent, - 'media[]' => $post->ID, - '_wpnonce' => wp_create_nonce( 'bulk-' . $this->_args['plural'] ) - ), 'upload.php' ); ?> - -
- - - - '; - - $pending_comments = get_pending_comments_num( $post->ID ); - $this->comments_bubble( $post->ID, $pending_comments ); - - echo '
'; - } - - /** - * Handles output for the default column. - * - * @since 4.3.0 - * @access public - * - * @param WP_Post $post The current WP_Post object. - * @param string $column_name Current column name. - */ - public function column_default( $post, $column_name ) { - if ( 'categories' == $column_name ) { - $taxonomy = 'category'; - } elseif ( 'tags' == $column_name ) { - $taxonomy = 'post_tag'; - } elseif ( 0 === strpos( $column_name, 'taxonomy-' ) ) { - $taxonomy = substr( $column_name, 9 ); - } else { - $taxonomy = false; - } - - if ( $taxonomy ) { - $terms = get_the_terms( $post->ID, $taxonomy ); - if ( is_array( $terms ) ) { - $out = array(); - foreach ( $terms as $t ) { - $posts_in_term_qv = array(); - $posts_in_term_qv['taxonomy'] = $taxonomy; - $posts_in_term_qv['term'] = $t->slug; - - $out[] = sprintf( '%s', - esc_url( add_query_arg( $posts_in_term_qv, 'upload.php' ) ), - esc_html( sanitize_term_field( 'name', $t->name, $t->term_id, $taxonomy, 'display' ) ) - ); - } - /* translators: used between list items, there is a space after the comma */ - echo join( __( ', ' ), $out ); - } else { - echo '' . get_taxonomy( $taxonomy )->labels->no_terms . ''; - } - - return; - } - - /** - * Fires for each custom column in the Media list table. - * - * Custom columns are registered using the {@see 'manage_media_columns'} filter. - * - * @since 2.5.0 - * - * @param string $column_name Name of the custom column. - * @param int $post_id Attachment ID. - */ - do_action( 'manage_media_custom_column', $column_name, $post->ID ); - } - - /** - * - * @global WP_Post $post - */ - public function display_rows() { - global $post; - - add_filter( 'the_title','esc_html' ); - - while ( have_posts() ) : the_post(); - if ( - ( $this->is_trash && $post->post_status != 'trash' ) - || ( ! $this->is_trash && $post->post_status == 'trash' ) - ) { - continue; - } - $post_owner = ( get_current_user_id() == $post->post_author ) ? 'self' : 'other'; - ?> - - single_row_columns( $post ); ?> - - detached ) { - if ( current_user_can( 'edit_post', $post->ID ) ) - $actions['edit'] = '' . __( 'Edit' ) . ''; - if ( current_user_can( 'delete_post', $post->ID ) ) - if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { - $actions['trash'] = "ID ) . "'>" . __( 'Trash' ) . ""; - } else { - $delete_ays = !MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; - $actions['delete'] = "ID ) . "'>" . __( 'Delete Permanently' ) . ""; - } - $actions['view'] = '' . __( 'View' ) . ''; - if ( current_user_can( 'edit_post', $post->ID ) ) - $actions['attach'] = ''.__( 'Attach' ).''; - } - else { - if ( current_user_can( 'edit_post', $post->ID ) && !$this->is_trash ) - $actions['edit'] = '' . __( 'Edit' ) . ''; - if ( current_user_can( 'delete_post', $post->ID ) ) { - if ( $this->is_trash ) - $actions['untrash'] = "ID ) . "'>" . __( 'Restore' ) . ""; - elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) - $actions['trash'] = "ID ) . "'>" . __( 'Trash' ) . ""; - if ( $this->is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) { - $delete_ays = ( !$this->is_trash && !MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : ''; - $actions['delete'] = "ID ) . "'>" . __( 'Delete Permanently' ) . ""; - } - } - if ( !$this->is_trash ) { - $title =_draft_or_post_title( $post->post_parent ); - $actions['view'] = '' . __( 'View' ) . ''; - } - } - - /** - * Filter the action links for each attachment in the Media list table. - * - * @since 2.8.0 - * - * @param array $actions An array of action links for each attachment. - * Default 'Edit', 'Delete Permanently', 'View'. - * @param WP_Post $post WP_Post object for the current attachment. - * @param bool $detached Whether the list table contains media not attached - * to any posts. Default true. - */ - return apply_filters( 'media_row_actions', $actions, $post, $this->detached ); - } - - /** - * Generates and displays row action links. - * - * @since 4.3.0 - * @access protected - * - * @param object $post Attachment being acted upon. - * @param string $column_name Current column name. - * @param string $primary Primary column name. - * @return string Row actions output for media attachments. - */ - protected function handle_row_actions( $post, $column_name, $primary ) { - if ( $primary !== $column_name ) { - return ''; - } - - $att_title = _draft_or_post_title(); - return $this->row_actions( $this->_get_row_actions( $post, $att_title ) ); - } -} diff --git a/wp-admin/includes/class-wp-ms-sites-list-table.php b/wp-admin/includes/class-wp-ms-sites-list-table.php deleted file mode 100644 index 9fe3f482d4..0000000000 --- a/wp-admin/includes/class-wp-ms-sites-list-table.php +++ /dev/null @@ -1,520 +0,0 @@ -status_list = array( - 'archived' => array( 'site-archived', __( 'Archived' ) ), - 'spam' => array( 'site-spammed', _x( 'Spam', 'site' ) ), - 'deleted' => array( 'site-deleted', __( 'Deleted' ) ), - 'mature' => array( 'site-mature', __( 'Mature' ) ) - ); - - parent::__construct( array( - 'plural' => 'sites', - 'screen' => isset( $args['screen'] ) ? $args['screen'] : null, - ) ); - } - - /** - * - * @return bool - */ - public function ajax_user_can() { - return current_user_can( 'manage_sites' ); - } - - /** - * - * @global string $s - * @global string $mode - * @global wpdb $wpdb - */ - public function prepare_items() { - global $s, $mode, $wpdb; - - $current_site = get_current_site(); - - $mode = ( empty( $_REQUEST['mode'] ) ) ? 'list' : $_REQUEST['mode']; - - $per_page = $this->get_items_per_page( 'sites_network_per_page' ); - - $pagenum = $this->get_pagenum(); - - $s = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST[ 's' ] ) ) : ''; - $wild = ''; - if ( false !== strpos($s, '*') ) { - $wild = '%'; - $s = trim($s, '*'); - } - - /* - * If the network is large and a search is not being performed, show only - * the latest blogs with no paging in order to avoid expensive count queries. - */ - if ( !$s && wp_is_large_network() ) { - if ( !isset($_REQUEST['orderby']) ) - $_GET['orderby'] = $_REQUEST['orderby'] = ''; - if ( !isset($_REQUEST['order']) ) - $_GET['order'] = $_REQUEST['order'] = 'DESC'; - } - - $query = "SELECT * FROM {$wpdb->blogs} WHERE site_id = '{$wpdb->siteid}' "; - - if ( empty($s) ) { - // Nothing to do. - } elseif ( preg_match( '/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/', $s ) || - preg_match( '/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.?$/', $s ) || - preg_match( '/^[0-9]{1,3}\.[0-9]{1,3}\.?$/', $s ) || - preg_match( '/^[0-9]{1,3}\.$/', $s ) ) { - // IPv4 address - $sql = $wpdb->prepare( "SELECT blog_id FROM {$wpdb->registration_log} WHERE {$wpdb->registration_log}.IP LIKE %s", $wpdb->esc_like( $s ) . $wild ); - $reg_blog_ids = $wpdb->get_col( $sql ); - - if ( !$reg_blog_ids ) - $reg_blog_ids = array( 0 ); - - $query = "SELECT * - FROM {$wpdb->blogs} - WHERE site_id = '{$wpdb->siteid}' - AND {$wpdb->blogs}.blog_id IN (" . implode( ', ', $reg_blog_ids ) . ")"; - } else { - if ( is_numeric($s) && empty( $wild ) ) { - $query .= $wpdb->prepare( " AND ( {$wpdb->blogs}.blog_id = %s )", $s ); - } elseif ( is_subdomain_install() ) { - $blog_s = str_replace( '.' . $current_site->domain, '', $s ); - $blog_s = $wpdb->esc_like( $blog_s ) . $wild . $wpdb->esc_like( '.' . $current_site->domain ); - $query .= $wpdb->prepare( " AND ( {$wpdb->blogs}.domain LIKE %s ) ", $blog_s ); - } else { - if ( $s != trim('/', $current_site->path) ) { - $blog_s = $wpdb->esc_like( $current_site->path . $s ) . $wild . $wpdb->esc_like( '/' ); - } else { - $blog_s = $wpdb->esc_like( $s ); - } - $query .= $wpdb->prepare( " AND ( {$wpdb->blogs}.path LIKE %s )", $blog_s ); - } - } - - $order_by = isset( $_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : ''; - if ( $order_by == 'registered' ) { - $query .= ' ORDER BY registered '; - } elseif ( $order_by == 'lastupdated' ) { - $query .= ' ORDER BY last_updated '; - } elseif ( $order_by == 'blogname' ) { - if ( is_subdomain_install() ) { - $query .= ' ORDER BY domain '; - } else { - $query .= ' ORDER BY path '; - } - } elseif ( $order_by == 'blog_id' ) { - $query .= ' ORDER BY blog_id '; - } else { - $order_by = null; - } - - if ( isset( $order_by ) ) { - $order = ( isset( $_REQUEST['order'] ) && 'DESC' == strtoupper( $_REQUEST['order'] ) ) ? "DESC" : "ASC"; - $query .= $order; - } - - // Don't do an unbounded count on large networks - if ( ! wp_is_large_network() ) - $total = $wpdb->get_var( str_replace( 'SELECT *', 'SELECT COUNT( blog_id )', $query ) ); - - $query .= " LIMIT " . intval( ( $pagenum - 1 ) * $per_page ) . ", " . intval( $per_page ); - $this->items = $wpdb->get_results( $query, ARRAY_A ); - - if ( wp_is_large_network() ) - $total = count($this->items); - - $this->set_pagination_args( array( - 'total_items' => $total, - 'per_page' => $per_page, - ) ); - } - - /** - * @access public - */ - public function no_items() { - _e( 'No sites found.' ); - } - - /** - * - * @return array - */ - protected function get_bulk_actions() { - $actions = array(); - if ( current_user_can( 'delete_sites' ) ) - $actions['delete'] = __( 'Delete' ); - $actions['spam'] = _x( 'Mark as Spam', 'site' ); - $actions['notspam'] = _x( 'Not Spam', 'site' ); - - return $actions; - } - - /** - * @global string $mode - * - * @param string $which - */ - protected function pagination( $which ) { - global $mode; - - parent::pagination( $which ); - - if ( 'top' == $which ) - $this->view_switcher( $mode ); - } - - /** - * @return array - */ - public function get_columns() { - $sites_columns = array( - 'cb' => '', - 'blogname' => __( 'URL' ), - 'lastupdated' => __( 'Last Updated' ), - 'registered' => _x( 'Registered', 'site' ), - 'users' => __( 'Users' ), - ); - - if ( has_filter( 'wpmublogsaction' ) ) { - $sites_columns['plugins'] = __( 'Actions' ); - } - - /** - * Filter the displayed site columns in Sites list table. - * - * @since MU - * - * @param array $sites_columns An array of displayed site columns. Default 'cb', - * 'blogname', 'lastupdated', 'registered', 'users'. - */ - return apply_filters( 'wpmu_blogs_columns', $sites_columns ); - } - - /** - * @return array - */ - protected function get_sortable_columns() { - return array( - 'blogname' => 'blogname', - 'lastupdated' => 'lastupdated', - 'registered' => 'blog_id', - ); - } - - /** - * Handles the checkbox column output. - * - * @since 4.3.0 - * @access public - * - * @param array $blog Current site. - */ - public function column_cb( $blog ) { - if ( ! is_main_site( $blog['blog_id'] ) ) : - $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); - ?> - - - status_list ); - - foreach ( $this->status_list as $status => $col ) { - if ( $blog[ $status ] == 1 ) { - $blog_states[] = $col[1]; - } - } - $blog_state = ''; - if ( ! empty( $blog_states ) ) { - $state_count = count( $blog_states ); - $i = 0; - $blog_state .= ' - '; - foreach ( $blog_states as $state ) { - ++$i; - $sep = ( $i == $state_count ) ? '' : ', '; - $blog_state .= "$state$sep"; - } - } - - ?> - - ' . sprintf( __( '%1$s – %2$s' ), get_option( 'blogname' ), get_option( 'blogdescription ' ) ) . '

'; - restore_current_blog(); - } - } - - /** - * Handles the lastupdated column output. - * - * @since 4.3.0 - * @access public - * - * @param array $blog Current site. - */ - public function column_lastupdated( $blog ) { - global $mode; - - if ( 'list' == $mode ) { - $date = __( 'Y/m/d' ); - } else { - $date = __( 'Y/m/d g:i:s a' ); - } - - echo ( $blog['last_updated'] == '0000-00-00 00:00:00' ) ? __( 'Never' ) : mysql2date( $date, $blog['last_updated'] ); - } - - /** - * Handles the registered column output. - * - * @since 4.3.0 - * @access public - * - * @param array $blog Current site. - */ - public function column_registered( $blog ) { - global $mode; - - if ( 'list' == $mode ) { - $date = __( 'Y/m/d' ); - } else { - $date = __( 'Y/m/d g:i:s a' ); - } - - if ( $blog['registered'] == '0000-00-00 00:00:00' ) { - echo '—'; - } else { - echo mysql2date( $date, $blog['registered'] ); - } - } - - /** - * Handles the users column output. - * - * @since 4.3.0 - * @access public - * - * @param array $blog Current site. - */ - public function column_users( $blog ) { - $user_count = wp_cache_get( $blog['blog_id'] . '_user_count', 'blog-details' ); - if ( ! $user_count ) { - $blog_users = get_users( array( 'blog_id' => $blog['blog_id'], 'fields' => 'ID' ) ); - $user_count = count( $blog_users ); - unset( $blog_users ); - wp_cache_set( $blog['blog_id'] . '_user_count', $user_count, 'blog-details', 12 * HOUR_IN_SECONDS ); - } - - printf( - '%s', - esc_url( network_admin_url( 'site-users.php?id=' . $blog['blog_id'] ) ), - number_format_i18n( $user_count ) - ); - } - - /** - * Handles the plugins column output. - * - * @since 4.3.0 - * @access public - * - * @param array $blog Current site. - */ - public function column_plugins( $blog ) { - if ( has_filter( 'wpmublogsaction' ) ) { - /** - * Fires inside the auxiliary 'Actions' column of the Sites list table. - * - * By default this column is hidden unless something is hooked to the action. - * - * @since MU - * - * @param int $blog_id The site ID. - */ - do_action( 'wpmublogsaction', $blog['blog_id'] ); - } - } - - /** - * Handles output for the default column. - * - * @since 4.3.0 - * @access public - * - * @param array $blog Current site. - * @param string $column_name Current column name. - */ - public function column_default( $blog, $column_name ) { - /** - * Fires for each registered custom column in the Sites list table. - * - * @since 3.1.0 - * - * @param string $column_name The name of the column to display. - * @param int $blog_id The site ID. - */ - do_action( 'manage_sites_custom_column', $column_name, $blog['blog_id'] ); - } - - /** - * - * @global string $mode - */ - public function display_rows() { - foreach ( $this->items as $blog ) { - $class = ''; - reset( $this->status_list ); - - foreach ( $this->status_list as $status => $col ) { - if ( $blog[ $status ] == 1 ) { - $class = " class='{$col[0]}'"; - } - } - - echo ""; - - $this->single_row_columns( $blog ); - - echo ''; - } - } - - /** - * Gets the name of the default primary column. - * - * @since 4.3.0 - * @access protected - * - * @return string Name of the default primary column, in this case, 'blogname'. - */ - protected function get_default_primary_column_name() { - return 'blogname'; - } - - /** - * Generates and displays row action links. - * - * @since 4.3.0 - * @access protected - * - * @param object $blog Blog being acted upon. - * @param string $column_name Current column name. - * @param string $primary Primary column name. - * @return string Row actions output. - */ - protected function handle_row_actions( $blog, $column_name, $primary ) { - if ( $primary !== $column_name ) { - return; - } - - $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); - - // Preordered. - $actions = array( - 'edit' => '', 'backend' => '', - 'activate' => '', 'deactivate' => '', - 'archive' => '', 'unarchive' => '', - 'spam' => '', 'unspam' => '', - 'delete' => '', - 'visit' => '', - ); - - $actions['edit'] = '' . __( 'Edit' ) . ''; - $actions['backend'] = "" . __( 'Dashboard' ) . ''; - if ( get_current_site()->blog_id != $blog['blog_id'] ) { - if ( $blog['deleted'] == '1' ) { - $actions['activate'] = '' . __( 'Activate' ) . ''; - } else { - $actions['deactivate'] = '' . __( 'Deactivate' ) . ''; - } - - if ( $blog['archived'] == '1' ) { - $actions['unarchive'] = '' . __( 'Unarchive' ) . ''; - } else { - $actions['archive'] = '' . _x( 'Archive', 'verb; site' ) . ''; - } - - if ( $blog['spam'] == '1' ) { - $actions['unspam'] = '' . _x( 'Not Spam', 'site' ) . ''; - } else { - $actions['spam'] = '' . _x( 'Spam', 'site' ) . ''; - } - - if ( current_user_can( 'delete_site', $blog['blog_id'] ) ) { - $actions['delete'] = '' . __( 'Delete' ) . ''; - } - } - - $actions['visit'] = "" . __( 'Visit' ) . ''; - - /** - * Filter the action links displayed for each site in the Sites list table. - * - * The 'Edit', 'Dashboard', 'Delete', and 'Visit' links are displayed by - * default for each site. The site's status determines whether to show the - * 'Activate' or 'Deactivate' link, 'Unarchive' or 'Archive' links, and - * 'Not Spam' or 'Spam' link for each site. - * - * @since 3.1.0 - * - * @param array $actions An array of action links to be displayed. - * @param int $blog_id The site ID. - * @param string $blogname Site path, formatted depending on whether it is a sub-domain - * or subdirectory multisite install. - */ - $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname ); - return $this->row_actions( $actions ); - } -} diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php deleted file mode 100644 index 991a07749a..0000000000 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ /dev/null @@ -1,646 +0,0 @@ - 'themes', - 'screen' => isset( $args['screen'] ) ? $args['screen'] : null, - ) ); - - $status = isset( $_REQUEST['theme_status'] ) ? $_REQUEST['theme_status'] : 'all'; - if ( !in_array( $status, array( 'all', 'enabled', 'disabled', 'upgrade', 'search', 'broken' ) ) ) - $status = 'all'; - - $page = $this->get_pagenum(); - - $this->is_site_themes = ( 'site-themes-network' == $this->screen->id ) ? true : false; - - if ( $this->is_site_themes ) - $this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; - } - - /** - * - * @return array - */ - protected function get_table_classes() { - // todo: remove and add CSS for .themes - return array( 'widefat', 'plugins' ); - } - - /** - * - * @return bool - */ - public function ajax_user_can() { - if ( $this->is_site_themes ) - return current_user_can( 'manage_sites' ); - else - return current_user_can( 'manage_network_themes' ); - } - - /** - * - * @global string $status - * @global array $totals - * @global int $page - * @global string $orderby - * @global string $order - * @global string $s - */ - public function prepare_items() { - global $status, $totals, $page, $orderby, $order, $s; - - wp_reset_vars( array( 'orderby', 'order', 's' ) ); - - $themes = array( - /** - * Filter the full array of WP_Theme objects to list in the Multisite - * themes list table. - * - * @since 3.1.0 - * - * @param array $all An array of WP_Theme objects to display in the list table. - */ - 'all' => apply_filters( 'all_themes', wp_get_themes() ), - 'search' => array(), - 'enabled' => array(), - 'disabled' => array(), - 'upgrade' => array(), - 'broken' => $this->is_site_themes ? array() : wp_get_themes( array( 'errors' => true ) ), - ); - - if ( $this->is_site_themes ) { - $themes_per_page = $this->get_items_per_page( 'site_themes_network_per_page' ); - $allowed_where = 'site'; - } else { - $themes_per_page = $this->get_items_per_page( 'themes_network_per_page' ); - $allowed_where = 'network'; - } - - $maybe_update = current_user_can( 'update_themes' ) && ! $this->is_site_themes && $current = get_site_transient( 'update_themes' ); - - foreach ( (array) $themes['all'] as $key => $theme ) { - if ( $this->is_site_themes && $theme->is_allowed( 'network' ) ) { - unset( $themes['all'][ $key ] ); - continue; - } - - if ( $maybe_update && isset( $current->response[ $key ] ) ) { - $themes['all'][ $key ]->update = true; - $themes['upgrade'][ $key ] = $themes['all'][ $key ]; - } - - $filter = $theme->is_allowed( $allowed_where, $this->site_id ) ? 'enabled' : 'disabled'; - $themes[ $filter ][ $key ] = $themes['all'][ $key ]; - } - - if ( $s ) { - $status = 'search'; - $themes['search'] = array_filter( array_merge( $themes['all'], $themes['broken'] ), array( $this, '_search_callback' ) ); - } - - $totals = array(); - foreach ( $themes as $type => $list ) - $totals[ $type ] = count( $list ); - - if ( empty( $themes[ $status ] ) && !in_array( $status, array( 'all', 'search' ) ) ) - $status = 'all'; - - $this->items = $themes[ $status ]; - WP_Theme::sort_by_name( $this->items ); - - $this->has_items = ! empty( $themes['all'] ); - $total_this_page = $totals[ $status ]; - - if ( $orderby ) { - $orderby = ucfirst( $orderby ); - $order = strtoupper( $order ); - - if ( $orderby == 'Name' ) { - if ( 'ASC' == $order ) - $this->items = array_reverse( $this->items ); - } else { - uasort( $this->items, array( $this, '_order_callback' ) ); - } - } - - $start = ( $page - 1 ) * $themes_per_page; - - if ( $total_this_page > $themes_per_page ) - $this->items = array_slice( $this->items, $start, $themes_per_page, true ); - - $this->set_pagination_args( array( - 'total_items' => $total_this_page, - 'per_page' => $themes_per_page, - ) ); - } - - /** - * @staticvar string $term - * @param WP_Theme $theme - * @return bool - */ - public function _search_callback( $theme ) { - static $term = null; - if ( is_null( $term ) ) - $term = wp_unslash( $_REQUEST['s'] ); - - foreach ( array( 'Name', 'Description', 'Author', 'Author', 'AuthorURI' ) as $field ) { - // Don't mark up; Do translate. - if ( false !== stripos( $theme->display( $field, false, true ), $term ) ) - return true; - } - - if ( false !== stripos( $theme->get_stylesheet(), $term ) ) - return true; - - if ( false !== stripos( $theme->get_template(), $term ) ) - return true; - - return false; - } - - // Not used by any core columns. - /** - * @global string $orderby - * @global string $order - * @param array $theme_a - * @param array $theme_b - * @return int - */ - public function _order_callback( $theme_a, $theme_b ) { - global $orderby, $order; - - $a = $theme_a[ $orderby ]; - $b = $theme_b[ $orderby ]; - - if ( $a == $b ) - return 0; - - if ( 'DESC' == $order ) - return ( $a < $b ) ? 1 : -1; - else - return ( $a < $b ) ? -1 : 1; - } - - /** - * @access public - */ - public function no_items() { - if ( ! $this->has_items ) - _e( 'No themes found.' ); - else - _e( 'You do not appear to have any themes available at this time.' ); - } - - /** - * - * @return array - */ - public function get_columns() { - return array( - 'cb' => '', - 'name' => __( 'Theme' ), - 'description' => __( 'Description' ), - ); - } - - /** - * - * @return array - */ - protected function get_sortable_columns() { - return array( - 'name' => 'name', - ); - } - - /** - * Gets the name of the primary column. - * - * @since 4.3.0 - * @access protected - * - * @return string Unalterable name of the primary column name, in this case, 'name'. - */ - protected function get_primary_column_name() { - return 'name'; - } - - /** - * - * @global array $totals - * @global string $status - * @return array - */ - protected function get_views() { - global $totals, $status; - - $status_links = array(); - foreach ( $totals as $type => $count ) { - if ( !$count ) - continue; - - switch ( $type ) { - case 'all': - $text = _nx( 'All (%s)', 'All (%s)', $count, 'themes' ); - break; - case 'enabled': - $text = _n( 'Enabled (%s)', 'Enabled (%s)', $count ); - break; - case 'disabled': - $text = _n( 'Disabled (%s)', 'Disabled (%s)', $count ); - break; - case 'upgrade': - $text = _n( 'Update Available (%s)', 'Update Available (%s)', $count ); - break; - case 'broken' : - $text = _n( 'Broken (%s)', 'Broken (%s)', $count ); - break; - } - - if ( $this->is_site_themes ) - $url = 'site-themes.php?id=' . $this->site_id; - else - $url = 'themes.php'; - - if ( 'search' != $type ) { - $status_links[$type] = sprintf( "%s", - esc_url( add_query_arg('theme_status', $type, $url) ), - ( $type == $status ) ? ' class="current"' : '', - sprintf( $text, number_format_i18n( $count ) ) - ); - } - } - - return $status_links; - } - - /** - * @global string $status - * - * @return array - */ - protected function get_bulk_actions() { - global $status; - - $actions = array(); - if ( 'enabled' != $status ) - $actions['enable-selected'] = $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ); - if ( 'disabled' != $status ) - $actions['disable-selected'] = $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ); - if ( ! $this->is_site_themes ) { - if ( current_user_can( 'update_themes' ) ) - $actions['update-selected'] = __( 'Update' ); - if ( current_user_can( 'delete_themes' ) ) - $actions['delete-selected'] = __( 'Delete' ); - } - return $actions; - } - - /** - * @access public - */ - public function display_rows() { - foreach ( $this->items as $theme ) - $this->single_row( $theme ); - } - - /** - * Handles the checkbox column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_Theme $theme The current WP_Theme object. - */ - public function column_cb( $theme ) { - $checkbox_id = 'checkbox_' . md5( $theme->get('Name') ); - ?> - - - is_site_themes ) { - $url = "site-themes.php?id={$this->site_id}&"; - $allowed = $theme->is_allowed( 'site', $this->site_id ); - } else { - $url = 'themes.php?'; - $allowed = $theme->is_allowed( 'network' ); - } - - // Pre-order. - $actions = array( - 'enable' => '', - 'disable' => '', - 'edit' => '', - 'delete' => '' - ); - - $stylesheet = $theme->get_stylesheet(); - $theme_key = urlencode( $stylesheet ); - - if ( ! $allowed ) { - if ( ! $theme->errors() ) { - $actions['enable'] = '' . ( $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ) ) . ''; - } - } else { - $actions['disable'] = '' . ( $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ) ) . ''; - } - - if ( current_user_can('edit_themes') ) { - $actions['edit'] = '' . __('Edit') . ''; - } - - if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $stylesheet != get_option( 'stylesheet' ) && $stylesheet != get_option( 'template' ) ) { - $actions['delete'] = '' . __( 'Delete' ) . ''; - } - /** - * Filter the action links displayed for each theme in the Multisite - * themes list table. - * - * The action links displayed are determined by the theme's status, and - * which Multisite themes list table is being displayed - the Network - * themes list table (themes.php), which displays all installed themes, - * or the Site themes list table (site-themes.php), which displays the - * non-network enabled themes when editing a site in the Network admin. - * - * The default action links for the Network themes list table include - * 'Network Enable', 'Network Disable', 'Edit', and 'Delete'. - * - * The default action links for the Site themes list table include - * 'Enable', 'Disable', and 'Edit'. - * - * @since 2.8.0 - * - * @param array $actions An array of action links. - * @param WP_Theme $theme The current WP_Theme object. - * @param string $context Status of the theme. - */ - $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme, $context ); - - /** - * Filter the action links of a specific theme in the Multisite themes - * list table. - * - * The dynamic portion of the hook name, `$stylesheet`, refers to the - * directory name of the theme, which in most cases is synonymous - * with the template name. - * - * @since 3.1.0 - * - * @param array $actions An array of action links. - * @param WP_Theme $theme The current WP_Theme object. - * @param string $context Status of the theme. - */ - $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $theme, $context ); - - echo $this->row_actions( $actions, true ); - } - - /** - * Handles the description column output. - * - * @since 4.3.0 - * @access public - * - * @global string $status - * @global array $totals - * - * @param WP_Theme $theme The current WP_Theme object. - */ - public function column_description( $theme ) { - global $status, $totals; - if ( $theme->errors() ) { - $pre = $status == 'broken' ? __( 'Broken Theme:' ) . ' ' : ''; - echo '

' . $pre . $theme->errors()->get_error_message() . '

'; - } - - if ( $this->is_site_themes ) { - $allowed = $theme->is_allowed( 'site', $this->site_id ); - } else { - $allowed = $theme->is_allowed( 'network' ); - } - - $class = ! $allowed ? 'inactive' : 'active'; - if ( ! empty( $totals['upgrade'] ) && ! empty( $theme->update ) ) - $class .= ' update'; - - echo "

" . $theme->display( 'Description' ) . "

-
"; - - $stylesheet = $theme->get_stylesheet(); - $theme_meta = array(); - - if ( $theme->get('Version') ) { - $theme_meta[] = sprintf( __( 'Version %s' ), $theme->display('Version') ); - } - $theme_meta[] = sprintf( __( 'By %s' ), $theme->display('Author') ); - - if ( $theme->get('ThemeURI') ) { - $theme_meta[] = '' . __( 'Visit Theme Site' ) . ''; - } - /** - * Filter the array of row meta for each theme in the Multisite themes - * list table. - * - * @since 3.1.0 - * - * @param array $theme_meta An array of the theme's metadata, - * including the version, author, and - * theme URI. - * @param string $stylesheet Directory name of the theme. - * @param WP_Theme $theme WP_Theme object. - * @param string $status Status of the theme. - */ - $theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status ); - echo implode( ' | ', $theme_meta ); - - echo '
'; - } - - /** - * Handles default column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_Theme $theme The current WP_Theme object. - * @param string $column_name The current column name. - */ - public function column_default( $theme, $column_name ) { - $stylesheet = $theme->get_stylesheet(); - - /** - * Fires inside each custom column of the Multisite themes list table. - * - * @since 3.1.0 - * - * @param string $column_name Name of the column. - * @param string $stylesheet Directory name of the theme. - * @param WP_Theme $theme Current WP_Theme object. - */ - do_action( 'manage_themes_custom_column', $column_name, $stylesheet, $theme ); - } - - /** - * Handles the output for a single table row. - * - * @since 4.3.0 - * @access public - * - * @param WP_Theme $item The current WP_Theme object. - */ - public function single_row_columns( $item ) { - list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); - - foreach ( $columns as $column_name => $column_display_name ) { - $extra_classes = ''; - if ( in_array( $column_name, $hidden ) ) { - $extra_classes .= ' hidden'; - } - - switch ( $column_name ) { - case 'cb': - echo ''; - - $this->column_cb( $item ); - - echo ''; - break; - - case 'name': - echo "" . $item->display('Name') . ""; - - $this->column_name( $item ); - - echo ""; - break; - - case 'description': - echo ""; - - $this->column_description( $item ); - - echo ''; - break; - - default: - echo ""; - - $this->column_default( $item, $column_name ); - - echo ""; - break; - } - } - } - - /** - * @global string $status - * @global array $totals - * - * @param WP_Theme $theme - */ - public function single_row( $theme ) { - global $status, $totals; - - if ( $this->is_site_themes ) { - $allowed = $theme->is_allowed( 'site', $this->site_id ); - } else { - $allowed = $theme->is_allowed( 'network' ); - } - - $stylesheet = $theme->get_stylesheet(); - - $class = ! $allowed ? 'inactive' : 'active'; - - $id = sanitize_html_class( $theme->get_stylesheet() ); - - if ( ! empty( $totals['upgrade'] ) && ! empty( $theme->update ) ) { - $class .= ' update'; - } - - echo ""; - - $this->single_row_columns( $theme ); - - echo ""; - - if ( $this->is_site_themes ) - remove_action( "after_theme_row_$stylesheet", 'wp_theme_update_row' ); - - /** - * Fires after each row in the Multisite themes list table. - * - * @since 3.1.0 - * - * @param string $stylesheet Directory name of the theme. - * @param WP_Theme $theme Current WP_Theme object. - * @param string $status Status of the theme. - */ - do_action( 'after_theme_row', $stylesheet, $theme, $status ); - - /** - * Fires after each specific row in the Multisite themes list table. - * - * The dynamic portion of the hook name, `$stylesheet`, refers to the - * directory name of the theme, most often synonymous with the template - * name of the theme. - * - * @since 3.5.0 - * - * @param string $stylesheet Directory name of the theme. - * @param WP_Theme $theme Current WP_Theme object. - * @param string $status Status of the theme. - */ - do_action( "after_theme_row_$stylesheet", $stylesheet, $theme, $status ); - } -} diff --git a/wp-admin/includes/class-wp-ms-users-list-table.php b/wp-admin/includes/class-wp-ms-users-list-table.php deleted file mode 100644 index 39dadc788a..0000000000 --- a/wp-admin/includes/class-wp-ms-users-list-table.php +++ /dev/null @@ -1,424 +0,0 @@ -get_items_per_page( 'users_network_per_page' ); - - $role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : ''; - - $paged = $this->get_pagenum(); - - $args = array( - 'number' => $users_per_page, - 'offset' => ( $paged-1 ) * $users_per_page, - 'search' => $usersearch, - 'blog_id' => 0, - 'fields' => 'all_with_meta' - ); - - if ( wp_is_large_network( 'users' ) ) - $args['search'] = ltrim( $args['search'], '*' ); - - if ( $role == 'super' ) { - $logins = implode( "', '", get_super_admins() ); - $args['include'] = $wpdb->get_col( "SELECT ID FROM $wpdb->users WHERE user_login IN ('$logins')" ); - } - - /* - * If the network is large and a search is not being performed, - * show only the latest users with no paging in order to avoid - * expensive count queries. - */ - if ( !$usersearch && wp_is_large_network( 'users' ) ) { - if ( !isset($_REQUEST['orderby']) ) - $_GET['orderby'] = $_REQUEST['orderby'] = 'id'; - if ( !isset($_REQUEST['order']) ) - $_GET['order'] = $_REQUEST['order'] = 'DESC'; - $args['count_total'] = false; - } - - if ( isset( $_REQUEST['orderby'] ) ) - $args['orderby'] = $_REQUEST['orderby']; - - if ( isset( $_REQUEST['order'] ) ) - $args['order'] = $_REQUEST['order']; - - $mode = empty( $_REQUEST['mode'] ) ? 'list' : $_REQUEST['mode']; - - // Query the user IDs for this page - $wp_user_search = new WP_User_Query( $args ); - - $this->items = $wp_user_search->get_results(); - - $this->set_pagination_args( array( - 'total_items' => $wp_user_search->get_total(), - 'per_page' => $users_per_page, - ) ); - } - - /** - * - * @return array - */ - protected function get_bulk_actions() { - $actions = array(); - if ( current_user_can( 'delete_users' ) ) - $actions['delete'] = __( 'Delete' ); - $actions['spam'] = _x( 'Mark as Spam', 'user' ); - $actions['notspam'] = _x( 'Not Spam', 'user' ); - - return $actions; - } - - /** - * @access public - */ - public function no_items() { - _e( 'No users found.' ); - } - - /** - * - * @global string $role - * @return array - */ - protected function get_views() { - global $role; - - $total_users = get_user_count(); - $super_admins = get_super_admins(); - $total_admins = count( $super_admins ); - - $class = $role != 'super' ? ' class="current"' : ''; - $role_links = array(); - $role_links['all'] = "" . sprintf( _nx( 'All (%s)', 'All (%s)', $total_users, 'users' ), number_format_i18n( $total_users ) ) . ''; - $class = $role == 'super' ? ' class="current"' : ''; - $role_links['super'] = "" . sprintf( _n( 'Super Admin (%s)', 'Super Admins (%s)', $total_admins ), number_format_i18n( $total_admins ) ) . ''; - - return $role_links; - } - - /** - * @global string $mode - * @param string $which - */ - protected function pagination( $which ) { - global $mode; - - parent::pagination ( $which ); - - if ( 'top' == $which ) - $this->view_switcher( $mode ); - } - - /** - * - * @return array - */ - public function get_columns() { - $users_columns = array( - 'cb' => '', - 'username' => __( 'Username' ), - 'name' => __( 'Name' ), - 'email' => __( 'E-mail' ), - 'registered' => _x( 'Registered', 'user' ), - 'blogs' => __( 'Sites' ) - ); - /** - * Filter the columns displayed in the Network Admin Users list table. - * - * @since MU - * - * @param array $users_columns An array of user columns. Default 'cb', 'username', - * 'name', 'email', 'registered', 'blogs'. - */ - return apply_filters( 'wpmu_users_columns', $users_columns ); - } - - /** - * - * @return array - */ - protected function get_sortable_columns() { - return array( - 'username' => 'login', - 'name' => 'name', - 'email' => 'email', - 'registered' => 'id', - ); - } - - /** - * Handles the checkbox column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_User $user The current WP_User object. - */ - public function column_cb( $user ) { - ?> - - - user_email, 32 ); - $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user->ID ) ) ); - - echo $avatar; - - ?>user_login; ?>user_login, $super_admins ) ) { - echo ' - ' . __( 'Super Admin' ); - } - ?> - first_name $user->last_name"; - } - - /** - * Handles the email column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_User $user The current WP_User object. - */ - public function column_email( $user ) { - echo "$user->user_email"; - } - - /** - * Handles the registered date column output. - * - * @since 4.3.0 - * @access public - * - * @global string $mode - * - * @param WP_User $user The current WP_User object. - */ - public function column_registered( $user ) { - global $mode; - if ( 'list' == $mode ) { - $date = __( 'Y/m/d' ); - } else { - $date = __( 'Y/m/d g:i:s a' ); - } - echo mysql2date( $date, $user->user_registered ); - } - - /** - * @since 4.3.0 - * @access protected - * - * @param WP_User $user - * @param string $classes - * @param string $data - * @param string $primary - */ - protected function _column_blogs( $user, $classes, $data, $primary ) { - echo ''; - echo $this->column_blogs( $user ); - echo $this->handle_row_actions( $user, 'blogs', $primary ); - echo ''; - } - - /** - * Handles the blogs/sites column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_User $user The current WP_User object. - */ - public function column_blogs( $user ) { - $blogs = get_blogs_of_user( $user->ID, true ); - if ( ! is_array( $blogs ) ) { - return; - } - - foreach ( $blogs as $val ) { - if ( ! can_edit_network( $val->site_id ) ) { - continue; - } - - $path = ( $val->path == '/' ) ? '' : $val->path; - echo ''; - echo '' . str_replace( '.' . get_current_site()->domain, '', $val->domain . $path ) . ''; - echo ' '; - $actions = array(); - $actions['edit'] = '' . __( 'Edit' ) . ''; - - $class = ''; - if ( $val->spam == 1 ) { - $class .= 'site-spammed '; - } - if ( $val->mature == 1 ) { - $class .= 'site-mature '; - } - if ( $val->deleted == 1 ) { - $class .= 'site-deleted '; - } - if ( $val->archived == 1 ) { - $class .= 'site-archived '; - } - - $actions['view'] = '' . __( 'View' ) . ''; - - /** - * Filter the action links displayed next the sites a user belongs to - * in the Network Admin Users list table. - * - * @since 3.1.0 - * - * @param array $actions An array of action links to be displayed. - * Default 'Edit', 'View'. - * @param int $userblog_id The site ID. - */ - $actions = apply_filters( 'ms_user_list_site_actions', $actions, $val->userblog_id ); - - $i=0; - $action_count = count( $actions ); - foreach ( $actions as $action => $link ) { - ++$i; - $sep = ( $i == $action_count ) ? '' : ' | '; - echo "$link$sep"; - } - echo '
'; - } - } - - /** - * Handles the default column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_User $user The current WP_User object. - * @param string $column_name The current column name. - */ - public function column_default( $user, $column_name ) { - /** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */ - echo apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID ); - } - - public function display_rows() { - foreach ( $this->items as $user ) { - $class = ''; - - $status_list = array( 'spam' => 'site-spammed', 'deleted' => 'site-deleted' ); - - foreach ( $status_list as $status => $col ) { - if ( $user->$status ) { - $class .= " $col"; - } - } - - ?> - - single_row_columns( $user ); ?> - - ID ) ) ); - - $actions = array(); - $actions['edit'] = '' . __( 'Edit' ) . ''; - - if ( current_user_can( 'delete_user', $user->ID ) && ! in_array( $user->user_login, $super_admins ) ) { - $actions['delete'] = '' . __( 'Delete' ) . ''; - } - - /** - * Filter the action links displayed under each user in the Network Admin Users list table. - * - * @since 3.2.0 - * - * @param array $actions An array of action links to be displayed. - * Default 'Edit', 'Delete'. - * @param WP_User $user WP_User object. - */ - $actions = apply_filters( 'ms_user_row_actions', $actions, $user ); - return $this->row_actions( $actions ); - } -} diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php deleted file mode 100644 index 45a5251285..0000000000 --- a/wp-admin/includes/class-wp-plugin-install-list-table.php +++ /dev/null @@ -1,551 +0,0 @@ -no_update ) ) { - foreach ( $plugin_info->no_update as $plugin ) { - $slugs[] = $plugin->slug; - } - } - - if ( isset( $plugin_info->response ) ) { - foreach ( $plugin_info->response as $plugin ) { - $slugs[] = $plugin->slug; - } - } - - return $slugs; - } - - /** - * - * @global array $tabs - * @global string $tab - * @global int $paged - * @global string $type - * @global string $term - * @global string $wp_version - */ - public function prepare_items() { - include( ABSPATH . 'wp-admin/includes/plugin-install.php' ); - - global $tabs, $tab, $paged, $type, $term; - - wp_reset_vars( array( 'tab' ) ); - - $paged = $this->get_pagenum(); - - $per_page = 30; - - // These are the tabs which are shown on the page - $tabs = array(); - - if ( 'search' == $tab ) - $tabs['search'] = __( 'Search Results' ); - $tabs['featured'] = _x( 'Featured', 'Plugin Installer' ); - $tabs['popular'] = _x( 'Popular', 'Plugin Installer' ); - $tabs['recommended'] = _x( 'Recommended', 'Plugin Installer' ); - $tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' ); - if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) { - $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' ); - } - if ( current_user_can( 'upload_plugins' ) ) { - // No longer a real tab. Here for filter compatibility. - // Gets skipped in get_views(). - $tabs['upload'] = __( 'Upload Plugin' ); - } - - $nonmenu_tabs = array( 'plugin-information' ); // Valid actions to perform which do not have a Menu item. - - /** - * Filter the tabs shown on the Plugin Install screen. - * - * @since 2.7.0 - * - * @param array $tabs The tabs shown on the Plugin Install screen. Defaults include 'featured', 'popular', - * 'recommended', 'favorites', and 'upload'. - */ - $tabs = apply_filters( 'install_plugins_tabs', $tabs ); - - /** - * Filter tabs not associated with a menu item on the Plugin Install screen. - * - * @since 2.7.0 - * - * @param array $nonmenu_tabs The tabs that don't have a Menu item on the Plugin Install screen. - */ - $nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs ); - - // If a non-valid menu tab has been selected, And it's not a non-menu action. - if ( empty( $tab ) || ( !isset( $tabs[ $tab ] ) && !in_array( $tab, (array) $nonmenu_tabs ) ) ) - $tab = key( $tabs ); - - $args = array( - 'page' => $paged, - 'per_page' => $per_page, - 'fields' => array( - 'last_updated' => true, - 'icons' => true, - 'active_installs' => true - ), - // Send the locale and installed plugin slugs to the API so it can provide context-sensitive results. - 'locale' => get_locale(), - 'installed_plugins' => $this->get_installed_plugin_slugs(), - ); - - switch ( $tab ) { - case 'search': - $type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term'; - $term = isset( $_REQUEST['s'] ) ? wp_unslash( $_REQUEST['s'] ) : ''; - - switch ( $type ) { - case 'tag': - $args['tag'] = sanitize_title_with_dashes( $term ); - break; - case 'term': - $args['search'] = $term; - break; - case 'author': - $args['author'] = $term; - break; - } - - break; - - case 'featured': - $args['fields']['group'] = true; - $this->orderby = 'group'; - // No break! - case 'popular': - case 'new': - case 'beta': - case 'recommended': - $args['browse'] = $tab; - break; - - case 'favorites': - $user = isset( $_GET['user'] ) ? wp_unslash( $_GET['user'] ) : get_user_option( 'wporg_favorites' ); - update_user_meta( get_current_user_id(), 'wporg_favorites', $user ); - if ( $user ) - $args['user'] = $user; - else - $args = false; - - add_action( 'install_plugins_favorites', 'install_plugins_favorites_form', 9, 0 ); - break; - - default: - $args = false; - break; - } - - /** - * Filter API request arguments for each Plugin Install screen tab. - * - * The dynamic portion of the hook name, `$tab`, refers to the plugin install tabs. - * Default tabs include 'featured', 'popular', 'recommended', 'favorites', and 'upload'. - * - * @since 3.7.0 - * - * @param array|bool $args Plugin Install API arguments. - */ - $args = apply_filters( "install_plugins_table_api_args_$tab", $args ); - - if ( !$args ) - return; - - $api = plugins_api( 'query_plugins', $args ); - - if ( is_wp_error( $api ) ) { - $this->error = $api; - return; - } - - $this->items = $api->plugins; - - if ( $this->orderby ) { - uasort( $this->items, array( $this, 'order_callback' ) ); - } - - $this->set_pagination_args( array( - 'total_items' => $api->info['results'], - 'per_page' => $args['per_page'], - ) ); - - if ( isset( $api->info['groups'] ) ) { - $this->groups = $api->info['groups']; - } - } - - /** - * @access public - */ - public function no_items() { - if ( isset( $this->error ) ) { - $message = $this->error->get_error_message() . '

' . __( 'Try again' ) . '

'; - } else { - $message = __( 'No plugins match your request.' ); - } - echo '
' . $message . '
'; - } - - /** - * - * @global array $tabs - * @global string $tab - * - * @return array - */ - protected function get_views() { - global $tabs, $tab; - - $display_tabs = array(); - foreach ( (array) $tabs as $action => $text ) { - $class = ( $action == $tab ) ? ' current' : ''; - $href = self_admin_url('plugin-install.php?tab=' . $action); - $display_tabs['plugin-install-'.$action] = "$text"; - } - // No longer a real tab. - unset( $display_tabs['plugin-install-upload'] ); - - return $display_tabs; - } - - /** - * Override parent views so we can use the filter bar display. - */ - public function views() { - $views = $this->get_views(); - - /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */ - $views = apply_filters( "views_{$this->screen->id}", $views ); - -?> -
- - - -
-_args['singular']; - - $data_attr = ''; - - if ( $singular ) { - $data_attr = " data-wp-lists='list:$singular'"; - } - - $this->display_tablenav( 'top' ); - -?> -
- -
> - display_rows_or_placeholder(); ?> -
-
-display_tablenav( 'bottom' ); - } - - /** - * @global string $tab - * - * @param string $which - */ - protected function display_tablenav( $which ) { - if ( $GLOBALS['tab'] === 'featured' ) { - return; - } - - if ( 'top' == $which ) { - wp_referer_field(); - ?> -
-
- -
- pagination( $which ); ?> -
-
- -
- pagination( $which ); ?> -
-
- _args['plural'] ); - } - - /** - * @return array - */ - public function get_columns() { - return array(); - } - - /** - * @param object $plugin_a - * @param object $plugin_b - * @return int - */ - private function order_callback( $plugin_a, $plugin_b ) { - $orderby = $this->orderby; - if ( ! isset( $plugin_a->$orderby, $plugin_b->$orderby ) ) { - return 0; - } - - $a = $plugin_a->$orderby; - $b = $plugin_b->$orderby; - - if ( $a == $b ) { - return 0; - } - - if ( 'DESC' == $this->order ) { - return ( $a < $b ) ? 1 : -1; - } else { - return ( $a < $b ) ? -1 : 1; - } - } - - /** - * @global string $wp_version - */ - public function display_rows() { - $plugins_allowedtags = array( - 'a' => array( 'href' => array(),'title' => array(), 'target' => array() ), - 'abbr' => array( 'title' => array() ),'acronym' => array( 'title' => array() ), - 'code' => array(), 'pre' => array(), 'em' => array(),'strong' => array(), - 'ul' => array(), 'ol' => array(), 'li' => array(), 'p' => array(), 'br' => array() - ); - - $plugins_group_titles = array( - 'Performance' => _x( 'Performance', 'Plugin installer group title' ), - 'Social' => _x( 'Social', 'Plugin installer group title' ), - 'Tools' => _x( 'Tools', 'Plugin installer group title' ), - ); - - $group = null; - - foreach ( (array) $this->items as $plugin ) { - if ( is_object( $plugin ) ) { - $plugin = (array) $plugin; - } - - // Display the group heading if there is one - if ( isset( $plugin['group'] ) && $plugin['group'] != $group ) { - if ( isset( $this->groups[ $plugin['group'] ] ) ) { - $group_name = $this->groups[ $plugin['group'] ]; - if ( isset( $plugins_group_titles[ $group_name ] ) ) { - $group_name = $plugins_group_titles[ $group_name ]; - } - } else { - $group_name = $plugin['group']; - } - - // Starting a new group, close off the divs of the last one - if ( ! empty( $group ) ) { - echo '
'; - } - - echo '

' . esc_html( $group_name ) . '

'; - // needs an extra wrapping div for nth-child selectors to work - echo '
'; - - $group = $plugin['group']; - } - $title = wp_kses( $plugin['name'], $plugins_allowedtags ); - - // Remove any HTML from the description. - $description = strip_tags( $plugin['short_description'] ); - $version = wp_kses( $plugin['version'], $plugins_allowedtags ); - - $name = strip_tags( $title . ' ' . $version ); - - $author = wp_kses( $plugin['author'], $plugins_allowedtags ); - if ( ! empty( $author ) ) { - $author = ' ' . sprintf( __( 'By %s' ), $author ) . ''; - } - - $action_links = array(); - - if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) { - $status = install_plugin_install_status( $plugin ); - - switch ( $status['status'] ) { - case 'install': - if ( $status['url'] ) { - /* translators: 1: Plugin name and version. */ - $action_links[] = '' . __( 'Install Now' ) . ''; - } - - break; - case 'update_available': - if ( $status['url'] ) { - /* translators: 1: Plugin name and version */ - $action_links[] = '' . __( 'Update Now' ) . ''; - } - - break; - case 'latest_installed': - case 'newer_installed': - $action_links[] = '' . _x( 'Installed', 'plugin' ) . ''; - break; - } - } - - $details_link = self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin['slug'] . - '&TB_iframe=true&width=600&height=550' ); - - /* translators: 1: Plugin name and version. */ - $action_links[] = '' . __( 'More Details' ) . ''; - - if ( !empty( $plugin['icons']['svg'] ) ) { - $plugin_icon_url = $plugin['icons']['svg']; - } elseif ( !empty( $plugin['icons']['2x'] ) ) { - $plugin_icon_url = $plugin['icons']['2x']; - } elseif ( !empty( $plugin['icons']['1x'] ) ) { - $plugin_icon_url = $plugin['icons']['1x']; - } else { - $plugin_icon_url = $plugin['icons']['default']; - } - - /** - * Filter the install action links for a plugin. - * - * @since 2.7.0 - * - * @param array $action_links An array of plugin action hyperlinks. Defaults are links to Details and Install Now. - * @param array $plugin The plugin currently being listed. - */ - $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin ); - - $date_format = __( 'M j, Y @ H:i' ); - $last_updated_timestamp = strtotime( $plugin['last_updated'] ); - ?> -
-
- -
-

-
- -
-

-

-
-
-
-
- $plugin['rating'], 'type' => 'percent', 'number' => $plugin['num_ratings'] ) ); ?> - () -
-
- - - -
-
- = 1000000 ) { - $active_installs_text = _x( '1+ Million', 'Active plugin installs' ); - } else { - $active_installs_text = number_format_i18n( $plugin['active_installs'] ) . '+'; - } - printf( __( '%s Active Installs' ), $active_installs_text ); - ?> -
-
- ' ) ) { - echo '' . __( 'Untested with your version of WordPress' ) . ''; - } elseif ( ! empty( $plugin['requires'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['requires'] ) ), $plugin['requires'], '<' ) ) { - echo '' . __( 'Incompatible with your version of WordPress' ) . ''; - } else { - echo '' . __( 'Compatible with your version of WordPress' ) . ''; - } - ?> -
-
-
-
'; - } - } -} diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php deleted file mode 100644 index 781330cbdf..0000000000 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ /dev/null @@ -1,730 +0,0 @@ - 'plugins', - 'screen' => isset( $args['screen'] ) ? $args['screen'] : null, - ) ); - - $status = 'all'; - if ( isset( $_REQUEST['plugin_status'] ) && in_array( $_REQUEST['plugin_status'], array( 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', 'search' ) ) ) - $status = $_REQUEST['plugin_status']; - - if ( isset($_REQUEST['s']) ) - $_SERVER['REQUEST_URI'] = add_query_arg('s', wp_unslash($_REQUEST['s']) ); - - $page = $this->get_pagenum(); - } - - /** - * @return array - */ - protected function get_table_classes() { - return array( 'widefat', $this->_args['plural'] ); - } - - /** - * @return bool - */ - public function ajax_user_can() { - return current_user_can('activate_plugins'); - } - - /** - * - * @global string $status - * @global type $plugins - * @global array $totals - * @global int $page - * @global string $orderby - * @global string $order - * @global string $s - */ - public function prepare_items() { - global $status, $plugins, $totals, $page, $orderby, $order, $s; - - wp_reset_vars( array( 'orderby', 'order', 's' ) ); - - /** - * Filter the full array of plugins to list in the Plugins list table. - * - * @since 3.0.0 - * - * @see get_plugins() - * - * @param array $plugins An array of plugins to display in the list table. - */ - $plugins = array( - 'all' => apply_filters( 'all_plugins', get_plugins() ), - 'search' => array(), - 'active' => array(), - 'inactive' => array(), - 'recently_activated' => array(), - 'upgrade' => array(), - 'mustuse' => array(), - 'dropins' => array() - ); - - $screen = $this->screen; - - if ( ! is_multisite() || ( $screen->in_admin( 'network' ) && current_user_can( 'manage_network_plugins' ) ) ) { - - /** - * Filter whether to display the advanced plugins list table. - * - * There are two types of advanced plugins - must-use and drop-ins - - * which can be used in a single site or Multisite network. - * - * The $type parameter allows you to differentiate between the type of advanced - * plugins to filter the display of. Contexts include 'mustuse' and 'dropins'. - * - * @since 3.0.0 - * - * @param bool $show Whether to show the advanced plugins for the specified - * plugin type. Default true. - * @param string $type The plugin type. Accepts 'mustuse', 'dropins'. - */ - if ( apply_filters( 'show_advanced_plugins', true, 'mustuse' ) ) { - $plugins['mustuse'] = get_mu_plugins(); - } - - /** This action is documented in wp-admin/includes/class-wp-plugins-list-table.php */ - if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) ) - $plugins['dropins'] = get_dropins(); - - if ( current_user_can( 'update_plugins' ) ) { - $current = get_site_transient( 'update_plugins' ); - foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) { - if ( isset( $current->response[ $plugin_file ] ) ) { - $plugins['all'][ $plugin_file ]['update'] = true; - $plugins['upgrade'][ $plugin_file ] = $plugins['all'][ $plugin_file ]; - } - } - } - } - - set_transient( 'plugin_slugs', array_keys( $plugins['all'] ), DAY_IN_SECONDS ); - - if ( ! $screen->in_admin( 'network' ) ) { - $recently_activated = get_option( 'recently_activated', array() ); - - foreach ( $recently_activated as $key => $time ) - if ( $time + WEEK_IN_SECONDS < time() ) - unset( $recently_activated[$key] ); - update_option( 'recently_activated', $recently_activated ); - } - - $plugin_info = get_site_transient( 'update_plugins' ); - - foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) { - // Extra info if known. array_merge() ensures $plugin_data has precedence if keys collide. - if ( isset( $plugin_info->response[ $plugin_file ] ) ) { - $plugins['all'][ $plugin_file ] = $plugin_data = array_merge( (array) $plugin_info->response[ $plugin_file ], $plugin_data ); - // Make sure that $plugins['upgrade'] also receives the extra info since it is used on ?plugin_status=upgrade - if ( isset( $plugins['upgrade'][ $plugin_file ] ) ) { - $plugins['upgrade'][ $plugin_file ] = $plugin_data = array_merge( (array) $plugin_info->response[ $plugin_file ], $plugin_data ); - } - - } elseif ( isset( $plugin_info->no_update[ $plugin_file ] ) ) { - $plugins['all'][ $plugin_file ] = $plugin_data = array_merge( (array) $plugin_info->no_update[ $plugin_file ], $plugin_data ); - // Make sure that $plugins['upgrade'] also receives the extra info since it is used on ?plugin_status=upgrade - if ( isset( $plugins['upgrade'][ $plugin_file ] ) ) { - $plugins['upgrade'][ $plugin_file ] = $plugin_data = array_merge( (array) $plugin_info->no_update[ $plugin_file ], $plugin_data ); - } - } - - // Filter into individual sections - if ( is_multisite() && ! $screen->in_admin( 'network' ) && is_network_only_plugin( $plugin_file ) && ! is_plugin_active( $plugin_file ) ) { - // On the non-network screen, filter out network-only plugins as long as they're not individually activated - unset( $plugins['all'][ $plugin_file ] ); - } elseif ( ! $screen->in_admin( 'network' ) && is_plugin_active_for_network( $plugin_file ) ) { - // On the non-network screen, filter out network activated plugins - unset( $plugins['all'][ $plugin_file ] ); - } elseif ( ( ! $screen->in_admin( 'network' ) && is_plugin_active( $plugin_file ) ) - || ( $screen->in_admin( 'network' ) && is_plugin_active_for_network( $plugin_file ) ) ) { - // On the non-network screen, populate the active list with plugins that are individually activated - // On the network-admin screen, populate the active list with plugins that are network activated - $plugins['active'][ $plugin_file ] = $plugin_data; - } else { - if ( ! $screen->in_admin( 'network' ) && isset( $recently_activated[ $plugin_file ] ) ) { - // On the non-network screen, populate the recently activated list with plugins that have been recently activated - $plugins['recently_activated'][ $plugin_file ] = $plugin_data; - } - // Populate the inactive list with plugins that aren't activated - $plugins['inactive'][ $plugin_file ] = $plugin_data; - } - } - - if ( $s ) { - $status = 'search'; - $plugins['search'] = array_filter( $plugins['all'], array( $this, '_search_callback' ) ); - } - - $totals = array(); - foreach ( $plugins as $type => $list ) - $totals[ $type ] = count( $list ); - - if ( empty( $plugins[ $status ] ) && !in_array( $status, array( 'all', 'search' ) ) ) - $status = 'all'; - - $this->items = array(); - foreach ( $plugins[ $status ] as $plugin_file => $plugin_data ) { - // Translate, Don't Apply Markup, Sanitize HTML - $this->items[$plugin_file] = _get_plugin_data_markup_translate( $plugin_file, $plugin_data, false, true ); - } - - $total_this_page = $totals[ $status ]; - - if ( ! $orderby ) { - $orderby = 'Name'; - } else { - $orderby = ucfirst( $orderby ); - } - - $order = strtoupper( $order ); - - uasort( $this->items, array( $this, '_order_callback' ) ); - - $plugins_per_page = $this->get_items_per_page( str_replace( '-', '_', $screen->id . '_per_page' ), 999 ); - - $start = ( $page - 1 ) * $plugins_per_page; - - if ( $total_this_page > $plugins_per_page ) - $this->items = array_slice( $this->items, $start, $plugins_per_page ); - - $this->set_pagination_args( array( - 'total_items' => $total_this_page, - 'per_page' => $plugins_per_page, - ) ); - } - - /** - * @staticvar string $term - * @param array $plugin - * @return bool - */ - public function _search_callback( $plugin ) { - static $term = null; - if ( is_null( $term ) ) - $term = wp_unslash( $_REQUEST['s'] ); - - foreach ( $plugin as $value ) { - if ( false !== stripos( strip_tags( $value ), $term ) ) { - return true; - } - } - - return false; - } - - /** - * @global string $orderby - * @global string $order - * @param array $plugin_a - * @param array $plugin_b - * @return int - */ - public function _order_callback( $plugin_a, $plugin_b ) { - global $orderby, $order; - - $a = $plugin_a[$orderby]; - $b = $plugin_b[$orderby]; - - if ( $a == $b ) - return 0; - - if ( 'DESC' == $order ) { - return strcasecmp( $b, $a ); - } else { - return strcasecmp( $a, $b ); - } - } - - /** - * - * @global array $plugins - */ - public function no_items() { - global $plugins; - - if ( !empty( $plugins['all'] ) ) - _e( 'No plugins found.' ); - else - _e( 'You do not appear to have any plugins available at this time.' ); - } - - /** - * - * @global string $status - * @return array - */ - public function get_columns() { - global $status; - - return array( - 'cb' => !in_array( $status, array( 'mustuse', 'dropins' ) ) ? '' : '', - 'name' => __( 'Plugin' ), - 'description' => __( 'Description' ), - ); - } - - /** - * @return array - */ - protected function get_sortable_columns() { - return array(); - } - - /** - * - * @global array $totals - * @global string $status - * @return array - */ - protected function get_views() { - global $totals, $status; - - $status_links = array(); - foreach ( $totals as $type => $count ) { - if ( !$count ) - continue; - - switch ( $type ) { - case 'all': - $text = _nx( 'All (%s)', 'All (%s)', $count, 'plugins' ); - break; - case 'active': - $text = _n( 'Active (%s)', 'Active (%s)', $count ); - break; - case 'recently_activated': - $text = _n( 'Recently Active (%s)', 'Recently Active (%s)', $count ); - break; - case 'inactive': - $text = _n( 'Inactive (%s)', 'Inactive (%s)', $count ); - break; - case 'mustuse': - $text = _n( 'Must-Use (%s)', 'Must-Use (%s)', $count ); - break; - case 'dropins': - $text = _n( 'Drop-ins (%s)', 'Drop-ins (%s)', $count ); - break; - case 'upgrade': - $text = _n( 'Update Available (%s)', 'Update Available (%s)', $count ); - break; - } - - if ( 'search' != $type ) { - $status_links[$type] = sprintf( "%s", - add_query_arg('plugin_status', $type, 'plugins.php'), - ( $type == $status ) ? ' class="current"' : '', - sprintf( $text, number_format_i18n( $count ) ) - ); - } - } - - return $status_links; - } - - /** - * - * @global string $status - * @return array - */ - protected function get_bulk_actions() { - global $status; - - $actions = array(); - - if ( 'active' != $status ) - $actions['activate-selected'] = $this->screen->in_admin( 'network' ) ? __( 'Network Activate' ) : __( 'Activate' ); - - if ( 'inactive' != $status && 'recent' != $status ) - $actions['deactivate-selected'] = $this->screen->in_admin( 'network' ) ? __( 'Network Deactivate' ) : __( 'Deactivate' ); - - if ( !is_multisite() || $this->screen->in_admin( 'network' ) ) { - if ( current_user_can( 'update_plugins' ) ) - $actions['update-selected'] = __( 'Update' ); - if ( current_user_can( 'delete_plugins' ) && ( 'active' != $status ) ) - $actions['delete-selected'] = __( 'Delete' ); - } - - return $actions; - } - - /** - * @global string $status - * @param string $which - */ - public function bulk_actions( $which = '' ) { - global $status; - - if ( in_array( $status, array( 'mustuse', 'dropins' ) ) ) - return; - - parent::bulk_actions( $which ); - } - - /** - * @global string $status - * @param string $which - */ - protected function extra_tablenav( $which ) { - global $status; - - if ( ! in_array($status, array('recently_activated', 'mustuse', 'dropins') ) ) - return; - - echo '
'; - - if ( ! $this->screen->in_admin( 'network' ) && 'recently_activated' == $status ) - submit_button( __( 'Clear List' ), 'button', 'clear-recent-list', false ); - elseif ( 'top' == $which && 'mustuse' == $status ) - echo '

' . sprintf( __( 'Files in the %s directory are executed automatically.' ), str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) ) . '

'; - elseif ( 'top' == $which && 'dropins' == $status ) - echo '

' . sprintf( __( 'Drop-ins are advanced plugins in the %s directory that replace WordPress functionality when present.' ), str_replace( ABSPATH, '', WP_CONTENT_DIR ) ) . '

'; - - echo '
'; - } - - /** - * @return string - */ - public function current_action() { - if ( isset($_POST['clear-recent-list']) ) - return 'clear-recent-list'; - - return parent::current_action(); - } - - /** - * - * @global string $status - */ - public function display_rows() { - global $status; - - if ( is_multisite() && ! $this->screen->in_admin( 'network' ) && in_array( $status, array( 'mustuse', 'dropins' ) ) ) - return; - - foreach ( $this->items as $plugin_file => $plugin_data ) - $this->single_row( array( $plugin_file, $plugin_data ) ); - } - - /** - * @global string $status - * @global int $page - * @global string $s - * @global array $totals - * - * @param array $item - */ - public function single_row( $item ) { - global $status, $page, $s, $totals; - - list( $plugin_file, $plugin_data ) = $item; - $context = $status; - $screen = $this->screen; - - // Pre-order. - $actions = array( - 'deactivate' => '', - 'activate' => '', - 'details' => '', - 'edit' => '', - 'delete' => '', - ); - - if ( 'mustuse' == $context ) { - $is_active = true; - } elseif ( 'dropins' == $context ) { - $dropins = _get_dropins(); - $plugin_name = $plugin_file; - if ( $plugin_file != $plugin_data['Name'] ) - $plugin_name .= '
' . $plugin_data['Name']; - if ( true === ( $dropins[ $plugin_file ][1] ) ) { // Doesn't require a constant - $is_active = true; - $description = '

' . $dropins[ $plugin_file ][0] . '

'; - } elseif ( defined( $dropins[ $plugin_file ][1] ) && constant( $dropins[ $plugin_file ][1] ) ) { // Constant is true - $is_active = true; - $description = '

' . $dropins[ $plugin_file ][0] . '

'; - } else { - $is_active = false; - $description = '

' . $dropins[ $plugin_file ][0] . ' ' . __('Inactive:') . ' ' . sprintf( __( 'Requires %s in wp-config.php.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '

'; - } - if ( $plugin_data['Description'] ) - $description .= '

' . $plugin_data['Description'] . '

'; - } else { - if ( $screen->in_admin( 'network' ) ) - $is_active = is_plugin_active_for_network( $plugin_file ); - else - $is_active = is_plugin_active( $plugin_file ); - - if ( $screen->in_admin( 'network' ) ) { - if ( $is_active ) { - if ( current_user_can( 'manage_network_plugins' ) ) { - /* translators: %s: plugin name */ - $actions['deactivate'] = '' . __( 'Network Deactivate' ) . ''; - } - } else { - if ( current_user_can( 'manage_network_plugins' ) ) { - /* translators: %s: plugin name */ - $actions['activate'] = '' . __( 'Network Activate' ) . ''; - } - if ( current_user_can( 'delete_plugins' ) && ! is_plugin_active( $plugin_file ) ) { - /* translators: %s: plugin name */ - $actions['delete'] = '' . __( 'Delete' ) . ''; - } - } - } else { - if ( $is_active ) { - /* translators: %s: plugin name */ - $actions['deactivate'] = '' . __( 'Deactivate' ) . ''; - } else { - /* translators: %s: plugin name */ - $actions['activate'] = '' . __( 'Activate' ) . ''; - - if ( ! is_multisite() && current_user_can( 'delete_plugins' ) ) { - /* translators: %s: plugin name */ - $actions['delete'] = '' . __( 'Delete' ) . ''; - } - } // end if $is_active - - } // end if $screen->in_admin( 'network' ) - - if ( ( ! is_multisite() || $screen->in_admin( 'network' ) ) && current_user_can( 'edit_plugins' ) && is_writable( WP_PLUGIN_DIR . '/' . $plugin_file ) ) { - /* translators: %s: plugin name */ - $actions['edit'] = '' . __( 'Edit' ) . ''; - } - } // end if $context - - $prefix = $screen->in_admin( 'network' ) ? 'network_admin_' : ''; - - /** - * Filter the action links displayed for each plugin in the Plugins list table. - * - * The dynamic portion of the hook name, `$prefix`, refers to the context the - * action links are displayed in. The 'network_admin_' prefix is used if the - * current screen is the Network plugins list table. The prefix is empty ('') - * if the current screen is the site plugins list table. - * - * The default action links for the Network plugins list table include - * 'Network Activate', 'Network Deactivate', 'Edit', and 'Delete'. - * - * The default action links for the site plugins list table include - * 'Activate', 'Deactivate', and 'Edit', for a network site, and - * 'Activate', 'Deactivate', 'Edit', and 'Delete' for a single site. - * - * @since 2.5.0 - * - * @param array $actions An array of plugin action links. - * @param string $plugin_file Path to the plugin file. - * @param array $plugin_data An array of plugin data. - * @param string $context The plugin context. Defaults are 'All', 'Active', - * 'Inactive', 'Recently Activated', 'Upgrade', - * 'Must-Use', 'Drop-ins', 'Search'. - */ - $actions = apply_filters( $prefix . 'plugin_action_links', array_filter( $actions ), $plugin_file, $plugin_data, $context ); - - /** - * Filter the list of action links displayed for a specific plugin. - * - * The first dynamic portion of the hook name, $prefix, refers to the context - * the action links are displayed in. The 'network_admin_' prefix is used if the - * current screen is the Network plugins list table. The prefix is empty ('') - * if the current screen is the site plugins list table. - * - * The second dynamic portion of the hook name, $plugin_file, refers to the path - * to the plugin file, relative to the plugins directory. - * - * @since 2.7.0 - * - * @param array $actions An array of plugin action links. - * @param string $plugin_file Path to the plugin file. - * @param array $plugin_data An array of plugin data. - * @param string $context The plugin context. Defaults are 'All', 'Active', - * 'Inactive', 'Recently Activated', 'Upgrade', - * 'Must-Use', 'Drop-ins', 'Search'. - */ - $actions = apply_filters( $prefix . "plugin_action_links_$plugin_file", $actions, $plugin_file, $plugin_data, $context ); - - $class = $is_active ? 'active' : 'inactive'; - $checkbox_id = "checkbox_" . md5($plugin_data['Name']); - if ( in_array( $status, array( 'mustuse', 'dropins' ) ) ) { - $checkbox = ''; - } else { - $checkbox = "" - . ""; - } - if ( 'dropins' != $context ) { - $description = '

' . ( $plugin_data['Description'] ? $plugin_data['Description'] : ' ' ) . '

'; - $plugin_name = $plugin_data['Name']; - } - - $id = sanitize_title( $plugin_name ); - if ( ! empty( $totals['upgrade'] ) && ! empty( $plugin_data['update'] ) ) - $class .= ' update'; - - $plugin_slug = ( isset( $plugin_data['slug'] ) ) ? $plugin_data['slug'] : ''; - printf( "", - $id, - $class, - $plugin_slug - ); - - list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); - - foreach ( $columns as $column_name => $column_display_name ) { - $extra_classes = ''; - if ( in_array( $column_name, $hidden ) ) { - $extra_classes = ' hidden'; - } - - switch ( $column_name ) { - case 'cb': - echo "$checkbox"; - break; - case 'name': - echo "$plugin_name"; - echo $this->row_actions( $actions, true ); - echo ""; - break; - case 'description': - $classes = 'column-description desc'; - - echo " -
$description
-
"; - - $plugin_meta = array(); - if ( !empty( $plugin_data['Version'] ) ) - $plugin_meta[] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); - if ( !empty( $plugin_data['Author'] ) ) { - $author = $plugin_data['Author']; - if ( !empty( $plugin_data['AuthorURI'] ) ) - $author = '' . $plugin_data['Author'] . ''; - $plugin_meta[] = sprintf( __( 'By %s' ), $author ); - } - - // Details link using API info, if available - if ( isset( $plugin_data['slug'] ) && current_user_can( 'install_plugins' ) ) { - $plugin_meta[] = sprintf( '%s', - esc_url( network_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin_data['slug'] . - '&TB_iframe=true&width=600&height=550' ) ), - esc_attr( sprintf( __( 'More information about %s' ), $plugin_name ) ), - esc_attr( $plugin_name ), - __( 'View details' ) - ); - } elseif ( ! empty( $plugin_data['PluginURI'] ) ) { - $plugin_meta[] = sprintf( '%s', - esc_url( $plugin_data['PluginURI'] ), - __( 'Visit plugin site' ) - ); - } - - /** - * Filter the array of row meta for each plugin in the Plugins list table. - * - * @since 2.8.0 - * - * @param array $plugin_meta An array of the plugin's metadata, - * including the version, author, - * author URI, and plugin URI. - * @param string $plugin_file Path to the plugin file, relative to the plugins directory. - * @param array $plugin_data An array of plugin data. - * @param string $status Status of the plugin. Defaults are 'All', 'Active', - * 'Inactive', 'Recently Activated', 'Upgrade', 'Must-Use', - * 'Drop-ins', 'Search'. - */ - $plugin_meta = apply_filters( 'plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $status ); - echo implode( ' | ', $plugin_meta ); - - echo "
"; - break; - default: - $classes = "$column_name column-$column_name$class"; - - echo ""; - - /** - * Fires inside each custom column of the Plugins list table. - * - * @since 3.1.0 - * - * @param string $column_name Name of the column. - * @param string $plugin_file Path to the plugin file. - * @param array $plugin_data An array of plugin data. - */ - do_action( 'manage_plugins_custom_column', $column_name, $plugin_file, $plugin_data ); - - echo ""; - } - } - - echo ""; - - /** - * Fires after each row in the Plugins list table. - * - * @since 2.3.0 - * - * @param string $plugin_file Path to the plugin file, relative to the plugins directory. - * @param array $plugin_data An array of plugin data. - * @param string $status Status of the plugin. Defaults are 'All', 'Active', - * 'Inactive', 'Recently Activated', 'Upgrade', 'Must-Use', - * 'Drop-ins', 'Search'. - */ - do_action( 'after_plugin_row', $plugin_file, $plugin_data, $status ); - - /** - * Fires after each specific row in the Plugins list table. - * - * The dynamic portion of the hook name, `$plugin_file`, refers to the path - * to the plugin file, relative to the plugins directory. - * - * @since 2.7.0 - * - * @param string $plugin_file Path to the plugin file, relative to the plugins directory. - * @param array $plugin_data An array of plugin data. - * @param string $status Status of the plugin. Defaults are 'All', 'Active', - * 'Inactive', 'Recently Activated', 'Upgrade', 'Must-Use', - * 'Drop-ins', 'Search'. - */ - do_action( "after_plugin_row_$plugin_file", $plugin_file, $plugin_data, $status ); - } - - /** - * Gets the name of the primary column for this specific list table. - * - * @since 4.3.0 - * @access protected - * - * @return string Unalterable name for the primary column, in this case, 'name'. - */ - protected function get_primary_column_name() { - return 'name'; - } -} diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php deleted file mode 100644 index 04639347d2..0000000000 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ /dev/null @@ -1,1550 +0,0 @@ - 'posts', - 'screen' => isset( $args['screen'] ) ? $args['screen'] : null, - ) ); - - $post_type = $this->screen->post_type; - $post_type_object = get_post_type_object( $post_type ); - - if ( !current_user_can( $post_type_object->cap->edit_others_posts ) ) { - $exclude_states = get_post_stati( array( 'show_in_admin_all_list' => false ) ); - $this->user_posts_count = $wpdb->get_var( $wpdb->prepare( " - SELECT COUNT( 1 ) FROM $wpdb->posts - WHERE post_type = %s AND post_status NOT IN ( '" . implode( "','", $exclude_states ) . "' ) - AND post_author = %d - ", $post_type, get_current_user_id() ) ); - - if ( $this->user_posts_count && empty( $_REQUEST['post_status'] ) && empty( $_REQUEST['all_posts'] ) && empty( $_REQUEST['author'] ) && empty( $_REQUEST['show_sticky'] ) ) - $_GET['author'] = get_current_user_id(); - } - - if ( 'post' == $post_type && $sticky_posts = get_option( 'sticky_posts' ) ) { - $sticky_posts = implode( ', ', array_map( 'absint', (array) $sticky_posts ) ); - $this->sticky_posts_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT( 1 ) FROM $wpdb->posts WHERE post_type = %s AND post_status NOT IN ('trash', 'auto-draft') AND ID IN ($sticky_posts)", $post_type ) ); - } - } - - /** - * Sets whether the table layout should be hierarchical or not. - * - * @since 4.2.0 - * - * @param bool $display Whether the table layout should be hierarchical. - */ - public function set_hierarchical_display( $display ) { - $this->hierarchical_display = $display; - } - - /** - * - * @return bool - */ - public function ajax_user_can() { - return current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_posts ); - } - - /** - * - * @global array $avail_post_stati - * @global WP_Query $wp_query - * @global int $per_page - * @global string $mode - */ - public function prepare_items() { - global $avail_post_stati, $wp_query, $per_page, $mode; - - $avail_post_stati = wp_edit_posts_query(); - - $this->set_hierarchical_display( is_post_type_hierarchical( $this->screen->post_type ) && 'menu_order title' == $wp_query->query['orderby'] ); - - $total_items = $this->hierarchical_display ? $wp_query->post_count : $wp_query->found_posts; - - $post_type = $this->screen->post_type; - $per_page = $this->get_items_per_page( 'edit_' . $post_type . '_per_page' ); - - /** This filter is documented in wp-admin/includes/post.php */ - $per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type ); - - if ( $this->hierarchical_display ) - $total_pages = ceil( $total_items / $per_page ); - else - $total_pages = $wp_query->max_num_pages; - - if ( ! empty( $_REQUEST['mode'] ) ) { - $mode = $_REQUEST['mode'] == 'excerpt' ? 'excerpt' : 'list'; - set_user_setting ( 'posts_list_mode', $mode ); - } else { - $mode = get_user_setting ( 'posts_list_mode', 'list' ); - } - - $this->is_trash = isset( $_REQUEST['post_status'] ) && $_REQUEST['post_status'] == 'trash'; - - $this->set_pagination_args( array( - 'total_items' => $total_items, - 'total_pages' => $total_pages, - 'per_page' => $per_page - ) ); - } - - /** - * - * @return bool - */ - public function has_items() { - return have_posts(); - } - - /** - * @access public - */ - public function no_items() { - if ( isset( $_REQUEST['post_status'] ) && 'trash' == $_REQUEST['post_status'] ) - echo get_post_type_object( $this->screen->post_type )->labels->not_found_in_trash; - else - echo get_post_type_object( $this->screen->post_type )->labels->not_found; - } - - /** - * Determine if the current view is the "All" view. - * - * @since 4.2.0 - * - * @return bool Whether the current view is the "All" view. - */ - protected function is_base_request() { - if ( empty( $_GET ) ) { - return true; - } elseif ( 1 === count( $_GET ) && ! empty( $_GET['post_type'] ) ) { - return $this->screen->post_type === $_GET['post_type']; - } - } - - /** - * - * @global array $locked_post_status This seems to be deprecated. - * @global array $avail_post_stati - * @return array - */ - protected function get_views() { - global $locked_post_status, $avail_post_stati; - - $post_type = $this->screen->post_type; - - if ( !empty($locked_post_status) ) - return array(); - - $status_links = array(); - $num_posts = wp_count_posts( $post_type, 'readable' ); - $class = ''; - $allposts = ''; - - $current_user_id = get_current_user_id(); - - if ( $this->user_posts_count ) { - if ( isset( $_GET['author'] ) && ( $_GET['author'] == $current_user_id ) ) - $class = ' class="current"'; - $status_links['mine'] = "" . sprintf( _nx( 'Mine (%s)', 'Mine (%s)', $this->user_posts_count, 'posts' ), number_format_i18n( $this->user_posts_count ) ) . ''; - $allposts = '&all_posts=1'; - $class = ''; - } - - $total_posts = array_sum( (array) $num_posts ); - - // Subtract post types that are not included in the admin all list. - foreach ( get_post_stati( array('show_in_admin_all_list' => false) ) as $state ) - $total_posts -= $num_posts->$state; - - if ( empty( $class ) && ( ( $this->is_base_request() && ! $this->user_posts_count ) || isset( $_REQUEST['all_posts'] ) ) ) { - $class = ' class="current"'; - } - - $all_inner_html = sprintf( - _nx( - 'All (%s)', - 'All (%s)', - $total_posts, - 'posts' - ), - number_format_i18n( $total_posts ) - ); - - $status_links['all'] = "" . $all_inner_html . ''; - - foreach ( get_post_stati(array('show_in_admin_status_list' => true), 'objects') as $status ) { - $class = ''; - - $status_name = $status->name; - - if ( !in_array( $status_name, $avail_post_stati ) ) - continue; - - if ( empty( $num_posts->$status_name ) ) - continue; - - if ( isset($_REQUEST['post_status']) && $status_name == $_REQUEST['post_status'] ) - $class = ' class="current"'; - - $status_links[$status_name] = "" . sprintf( translate_nooped_plural( $status->label_count, $num_posts->$status_name ), number_format_i18n( $num_posts->$status_name ) ) . ''; - } - - if ( ! empty( $this->sticky_posts_count ) ) { - $class = ! empty( $_REQUEST['show_sticky'] ) ? ' class="current"' : ''; - - $sticky_link = array( 'sticky' => "" . sprintf( _nx( 'Sticky (%s)', 'Sticky (%s)', $this->sticky_posts_count, 'posts' ), number_format_i18n( $this->sticky_posts_count ) ) . '' ); - - // Sticky comes after Publish, or if not listed, after All. - $split = 1 + array_search( ( isset( $status_links['publish'] ) ? 'publish' : 'all' ), array_keys( $status_links ) ); - $status_links = array_merge( array_slice( $status_links, 0, $split ), $sticky_link, array_slice( $status_links, $split ) ); - } - - return $status_links; - } - - /** - * - * @return array - */ - protected function get_bulk_actions() { - $actions = array(); - $post_type_obj = get_post_type_object( $this->screen->post_type ); - - if ( $this->is_trash ) { - $actions['untrash'] = __( 'Restore' ); - } else { - $actions['edit'] = __( 'Edit' ); - } - - if ( current_user_can( $post_type_obj->cap->delete_posts ) ) { - if ( $this->is_trash || ! EMPTY_TRASH_DAYS ) { - $actions['delete'] = __( 'Delete Permanently' ); - } else { - $actions['trash'] = __( 'Move to Trash' ); - } - } - - return $actions; - } - - /** - * @global int $cat - * @param string $which - */ - protected function extra_tablenav( $which ) { - global $cat; -?> -
-months_dropdown( $this->screen->post_type ); - - if ( is_object_in_taxonomy( $this->screen->post_type, 'category' ) ) { - $dropdown_options = array( - 'show_option_all' => __( 'All categories' ), - 'hide_empty' => 0, - 'hierarchical' => 1, - 'show_count' => 0, - 'orderby' => 'name', - 'selected' => $cat - ); - - echo ''; - wp_dropdown_categories( $dropdown_options ); - } - - /** - * Fires before the Filter button on the Posts and Pages list tables. - * - * The Filter button allows sorting by date and/or category on the - * Posts list table, and sorting by date on the Pages list table. - * - * @since 2.1.0 - */ - do_action( 'restrict_manage_posts' ); - - submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); - } - - if ( $this->is_trash && current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_others_posts ) ) { - submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false ); - } -?> -
-screen->post_type ) ) - $this->view_switcher( $mode ); - } - - /** - * - * @return array - */ - protected function get_table_classes() { - return array( 'widefat', 'fixed', 'striped', is_post_type_hierarchical( $this->screen->post_type ) ? 'pages' : 'posts' ); - } - - /** - * - * @return array - */ - public function get_columns() { - $post_type = $this->screen->post_type; - - $posts_columns = array(); - - $posts_columns['cb'] = ''; - - /* translators: manage posts column name */ - $posts_columns['title'] = _x( 'Title', 'column name' ); - - if ( post_type_supports( $post_type, 'author' ) ) { - $posts_columns['author'] = __( 'Author' ); - } - - $taxonomies = get_object_taxonomies( $post_type, 'objects' ); - $taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' ); - - /** - * Filter the taxonomy columns in the Posts list table. - * - * The dynamic portion of the hook name, `$post_type`, refers to the post - * type slug. - * - * @since 3.5.0 - * - * @param array $taxonomies Array of taxonomies to show columns for. - * @param string $post_type The post type. - */ - $taxonomies = apply_filters( "manage_taxonomies_for_{$post_type}_columns", $taxonomies, $post_type ); - $taxonomies = array_filter( $taxonomies, 'taxonomy_exists' ); - - foreach ( $taxonomies as $taxonomy ) { - if ( 'category' == $taxonomy ) - $column_key = 'categories'; - elseif ( 'post_tag' == $taxonomy ) - $column_key = 'tags'; - else - $column_key = 'taxonomy-' . $taxonomy; - - $posts_columns[ $column_key ] = get_taxonomy( $taxonomy )->labels->name; - } - - $post_status = !empty( $_REQUEST['post_status'] ) ? $_REQUEST['post_status'] : 'all'; - if ( post_type_supports( $post_type, 'comments' ) && !in_array( $post_status, array( 'pending', 'draft', 'future' ) ) ) - $posts_columns['comments'] = '' . __( 'Comments' ) . ''; - - $posts_columns['date'] = __( 'Date' ); - - if ( 'page' == $post_type ) { - - /** - * Filter the columns displayed in the Pages list table. - * - * @since 2.5.0 - * - * @param array $post_columns An array of column names. - */ - $posts_columns = apply_filters( 'manage_pages_columns', $posts_columns ); - } else { - - /** - * Filter the columns displayed in the Posts list table. - * - * @since 1.5.0 - * - * @param array $posts_columns An array of column names. - * @param string $post_type The post type slug. - */ - $posts_columns = apply_filters( 'manage_posts_columns', $posts_columns, $post_type ); - } - - /** - * Filter the columns displayed in the Posts list table for a specific post type. - * - * The dynamic portion of the hook name, `$post_type`, refers to the post type slug. - * - * @since 3.0.0 - * - * @param array $post_columns An array of column names. - */ - return apply_filters( "manage_{$post_type}_posts_columns", $posts_columns ); - } - - /** - * - * @return array - */ - protected function get_sortable_columns() { - return array( - 'title' => 'title', - 'parent' => 'parent', - 'comments' => 'comment_count', - 'date' => array( 'date', true ) - ); - } - - /** - * @global WP_Query $wp_query - * @global int $per_page - * @param array $posts - * @param int $level - */ - public function display_rows( $posts = array(), $level = 0 ) { - global $wp_query, $per_page; - - if ( empty( $posts ) ) - $posts = $wp_query->posts; - - add_filter( 'the_title', 'esc_html' ); - - if ( $this->hierarchical_display ) { - $this->_display_rows_hierarchical( $posts, $this->get_pagenum(), $per_page ); - } else { - $this->_display_rows( $posts, $level ); - } - } - - /** - * @global string $mode - * @param array $posts - * @param int $level - */ - private function _display_rows( $posts, $level = 0 ) { - global $mode; - - // Create array of post IDs. - $post_ids = array(); - - foreach ( $posts as $a_post ) - $post_ids[] = $a_post->ID; - - $this->comment_pending_count = get_pending_comments_num( $post_ids ); - - foreach ( $posts as $post ) - $this->single_row( $post, $level ); - } - - /** - * @global wpdb $wpdb - * @global WP_Post $post - * @param array $pages - * @param int $pagenum - * @param int $per_page - */ - private function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) { - global $wpdb; - - $level = 0; - - if ( ! $pages ) { - $pages = get_pages( array( 'sort_column' => 'menu_order' ) ); - - if ( ! $pages ) - return; - } - - /* - * Arrange pages into two parts: top level pages and children_pages - * children_pages is two dimensional array, eg. - * children_pages[10][] contains all sub-pages whose parent is 10. - * It only takes O( N ) to arrange this and it takes O( 1 ) for subsequent lookup operations - * If searching, ignore hierarchy and treat everything as top level - */ - if ( empty( $_REQUEST['s'] ) ) { - - $top_level_pages = array(); - $children_pages = array(); - - foreach ( $pages as $page ) { - - // Catch and repair bad pages. - if ( $page->post_parent == $page->ID ) { - $page->post_parent = 0; - $wpdb->update( $wpdb->posts, array( 'post_parent' => 0 ), array( 'ID' => $page->ID ) ); - clean_post_cache( $page ); - } - - if ( 0 == $page->post_parent ) - $top_level_pages[] = $page; - else - $children_pages[ $page->post_parent ][] = $page; - } - - $pages = &$top_level_pages; - } - - $count = 0; - $start = ( $pagenum - 1 ) * $per_page; - $end = $start + $per_page; - $to_display = array(); - - foreach ( $pages as $page ) { - if ( $count >= $end ) - break; - - if ( $count >= $start ) { - $to_display[$page->ID] = $level; - } - - $count++; - - if ( isset( $children_pages ) ) - $this->_page_rows( $children_pages, $count, $page->ID, $level + 1, $pagenum, $per_page, $to_display ); - } - - // If it is the last pagenum and there are orphaned pages, display them with paging as well. - if ( isset( $children_pages ) && $count < $end ){ - foreach ( $children_pages as $orphans ){ - foreach ( $orphans as $op ) { - if ( $count >= $end ) - break; - - if ( $count >= $start ) { - $to_display[$op->ID] = 0; - } - - $count++; - } - } - } - - $ids = array_keys( $to_display ); - _prime_post_caches( $ids ); - - if ( ! isset( $GLOBALS['post'] ) ) { - $GLOBALS['post'] = reset( $ids ); - } - - foreach ( $to_display as $page_id => $level ) { - echo "\t"; - $this->single_row( $page_id, $level ); - } - } - - /** - * Given a top level page ID, display the nested hierarchy of sub-pages - * together with paging support - * - * @since 3.1.0 (Standalone function exists since 2.6.0) - * @since 4.2.0 Added the `$to_display` parameter. - * - * @param array $children_pages - * @param int $count - * @param int $parent - * @param int $level - * @param int $pagenum - * @param int $per_page - * @param array $to_display List of pages to be displayed. Passed by reference. - */ - private function _page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_page, &$to_display ) { - if ( ! isset( $children_pages[$parent] ) ) - return; - - $start = ( $pagenum - 1 ) * $per_page; - $end = $start + $per_page; - - foreach ( $children_pages[$parent] as $page ) { - if ( $count >= $end ) - break; - - // If the page starts in a subtree, print the parents. - if ( $count == $start && $page->post_parent > 0 ) { - $my_parents = array(); - $my_parent = $page->post_parent; - while ( $my_parent ) { - // Get the ID from the list or the attribute if my_parent is an object - $parent_id = $my_parent; - if ( is_object( $my_parent ) ) { - $parent_id = $my_parent->ID; - } - - $my_parent = get_post( $parent_id ); - $my_parents[] = $my_parent; - if ( !$my_parent->post_parent ) - break; - $my_parent = $my_parent->post_parent; - } - $num_parents = count( $my_parents ); - while ( $my_parent = array_pop( $my_parents ) ) { - $to_display[$my_parent->ID] = $level - $num_parents; - $num_parents--; - } - } - - if ( $count >= $start ) { - $to_display[$page->ID] = $level; - } - - $count++; - - $this->_page_rows( $children_pages, $count, $page->ID, $level + 1, $pagenum, $per_page, $to_display ); - } - - unset( $children_pages[$parent] ); //required in order to keep track of orphans - } - - /** - * Handles the checkbox column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_Post $post The current WP_Post object. - */ - public function column_cb( $post ) { - if ( current_user_can( 'edit_post', $post->ID ) ): ?> - - -
- '; - echo $this->column_title( $post ); - echo $this->handle_row_actions( $post, 'title', $primary ); - echo ''; - } - - /** - * Handles the title column output. - * - * @since 4.3.0 - * @access public - * - * @global string $mode - * - * @param WP_Post $post The current WP_Post object. - */ - public function column_title( $post ) { - global $mode; - - if ( $this->hierarchical_display ) { - if ( 0 === $this->current_level && (int) $post->post_parent > 0 ) { - // Sent level 0 by accident, by default, or because we don't know the actual level. - $find_main_page = (int) $post->post_parent; - while ( $find_main_page > 0 ) { - $parent = get_post( $find_main_page ); - - if ( is_null( $parent ) ) { - break; - } - - $this->current_level++; - $find_main_page = (int) $parent->post_parent; - - if ( ! isset( $parent_name ) ) { - /** This filter is documented in wp-includes/post-template.php */ - $parent_name = apply_filters( 'the_title', $parent->post_title, $parent->ID ); - } - } - } - } - - $pad = str_repeat( '— ', $this->current_level ); - echo ""; - - $format = get_post_format( $post->ID ); - if ( $format ) { - $label = get_post_format_string( $format ); - - echo '' . $label . ": "; - } - - $can_edit_post = current_user_can( 'edit_post', $post->ID ); - $title = _draft_or_post_title(); - - if ( $can_edit_post && $post->post_status != 'trash' ) { - $edit_link = get_edit_post_link( $post->ID ); - echo '' . $pad . $title . ''; - } else { - echo $pad . $title; - } - _post_states( $post ); - - if ( isset( $parent_name ) ) { - $post_type_object = get_post_type_object( $post->post_type ); - echo ' | ' . $post_type_object->labels->parent_item_colon . ' ' . esc_html( $parent_name ); - } - echo "\n"; - - if ( $can_edit_post && $post->post_status != 'trash' ) { - $lock_holder = wp_check_post_lock( $post->ID ); - - if ( $lock_holder ) { - $lock_holder = get_userdata( $lock_holder ); - $locked_avatar = get_avatar( $lock_holder->ID, 18 ); - $locked_text = esc_html( sprintf( __( '%s is currently editing' ), $lock_holder->display_name ) ); - } else { - $locked_avatar = $locked_text = ''; - } - - echo '
' . $locked_avatar . ' ' . $locked_text . "
\n"; - } - - if ( ! is_post_type_hierarchical( $this->screen->post_type ) && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) { - the_excerpt(); - } - - get_inline_data( $post ); - } - - /** - * Handles the post date column output. - * - * @since 4.3.0 - * @access public - * - * @global string $mode - * - * @param WP_Post $post The current WP_Post object. - */ - public function column_date( $post ) { - global $mode; - - if ( '0000-00-00 00:00:00' == $post->post_date ) { - $t_time = $h_time = __( 'Unpublished' ); - $time_diff = 0; - } else { - $t_time = get_the_time( __( 'Y/m/d g:i:s a' ) ); - $m_time = $post->post_date; - $time = get_post_time( 'G', true, $post ); - - $time_diff = time() - $time; - - if ( $time_diff > 0 && $time_diff < DAY_IN_SECONDS ) { - $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) ); - } else { - $h_time = mysql2date( __( 'Y/m/d' ), $m_time ); - } - } - - if ( 'excerpt' == $mode ) { - /** - * Filter the published time of the post. - * - * If $mode equals 'excerpt', the published time and date are both displayed. - * If $mode equals 'list' (default), the publish date is displayed, with the - * time and date together available as an abbreviation definition. - * - * @since 2.5.1 - * - * @param array $t_time The published time. - * @param WP_Post $post Post object. - * @param string $column_name The column name. - * @param string $mode The list display mode ('excerpt' or 'list'). - */ - echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode ); - } else { - - /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */ - echo '' . apply_filters( 'post_date_column_time', $h_time, $post, 'date', $mode ) . ''; - } - echo '
'; - if ( 'publish' == $post->post_status ) { - _e( 'Published' ); - } elseif ( 'future' == $post->post_status ) { - if ( $time_diff > 0 ) { - echo '' . __( 'Missed schedule' ) . ''; - } else { - _e( 'Scheduled' ); - } - } else { - _e( 'Last Modified' ); - } - } - - /** - * Handles the comments column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_Post $post The current WP_Post object. - */ - public function column_comments( $post ) { - ?> -
- comment_pending_count[$post->ID] ) ? $this->comment_pending_count[$post->ID] : 0; - - $this->comments_bubble( $post->ID, $pending_comments ); - ?> -
- %s', - esc_url( add_query_arg( array( 'post_type' => $post->post_type, 'author' => get_the_author_meta( 'ID' ) ), 'edit.php' )), - get_the_author() - ); - } - - /** - * Handles the default column output. - * - * @since 4.3.0 - * @access public - * - * @param WP_Post $post The current WP_Post object. - * @param string $column_name The current column name. - */ - public function column_default( $post, $column_name ) { - if ( 'categories' == $column_name ) { - $taxonomy = 'category'; - } elseif ( 'tags' == $column_name ) { - $taxonomy = 'post_tag'; - } elseif ( 0 === strpos( $column_name, 'taxonomy-' ) ) { - $taxonomy = substr( $column_name, 9 ); - } else { - $taxonomy = false; - } - if ( $taxonomy ) { - $taxonomy_object = get_taxonomy( $taxonomy ); - $terms = get_the_terms( $post->ID, $taxonomy ); - if ( is_array( $terms ) ) { - $out = array(); - foreach ( $terms as $t ) { - $posts_in_term_qv = array(); - if ( 'post' != $post->post_type ) { - $posts_in_term_qv['post_type'] = $post->post_type; - } - if ( $taxonomy_object->query_var ) { - $posts_in_term_qv[ $taxonomy_object->query_var ] = $t->slug; - } else { - $posts_in_term_qv['taxonomy'] = $taxonomy; - $posts_in_term_qv['term'] = $t->slug; - } - - $out[] = sprintf( '%s', - esc_url( add_query_arg( $posts_in_term_qv, 'edit.php' ) ), - esc_html( sanitize_term_field( 'name', $t->name, $t->term_id, $taxonomy, 'display' ) ) - ); - } - /* translators: used between list items, there is a space after the comma */ - echo join( __( ', ' ), $out ); - } else { - echo '' . $taxonomy_object->labels->no_terms . ''; - } - return; - } - - if ( is_post_type_hierarchical( $post->post_type ) ) { - - /** - * Fires in each custom column on the Posts list table. - * - * This hook only fires if the current post type is hierarchical, - * such as pages. - * - * @since 2.5.0 - * - * @param string $column_name The name of the column to display. - * @param int $post_id The current post ID. - */ - do_action( 'manage_pages_custom_column', $column_name, $post->ID ); - } else { - - /** - * Fires in each custom column in the Posts list table. - * - * This hook only fires if the current post type is non-hierarchical, - * such as posts. - * - * @since 1.5.0 - * - * @param string $column_name The name of the column to display. - * @param int $post_id The current post ID. - */ - do_action( 'manage_posts_custom_column', $column_name, $post->ID ); - } - - /** - * Fires for each custom column of a specific post type in the Posts list table. - * - * The dynamic portion of the hook name, `$post->post_type`, refers to the post type. - * - * @since 3.1.0 - * - * @param string $column_name The name of the column to display. - * @param int $post_id The current post ID. - */ - do_action( "manage_{$post->post_type}_posts_custom_column", $column_name, $post->ID ); - } - - /** - * @global WP_Post $post - * - * @param int|WP_Post $post - * @param int $level - */ - public function single_row( $post, $level = 0 ) { - $global_post = get_post(); - - $post = get_post( $post ); - $this->current_level = $level; - - $GLOBALS['post'] = $post; - setup_postdata( $post ); - - $classes = 'iedit author-' . ( get_current_user_id() == $post->post_author ? 'self' : 'other' ); - - $lock_holder = wp_check_post_lock( $post->ID ); - if ( $lock_holder ) { - $classes .= ' wp-locked'; - } - - if ( $post->post_parent ) { - $count = count( get_post_ancestors( $post->ID ) ); - $classes .= ' level-'. $count; - } else { - $classes .= ' level-0'; - } - ?> - - single_row_columns( $post ); ?> - - post_type ); - $can_edit_post = current_user_can( 'edit_post', $post->ID ); - $actions = array(); - - if ( $can_edit_post && 'trash' != $post->post_status ) { - $actions['edit'] = '' . __( 'Edit' ) . ''; - $actions['inline hide-if-no-js'] = '' . __( 'Quick Edit' ) . ''; - } - - if ( current_user_can( 'delete_post', $post->ID ) ) { - if ( 'trash' == $post->post_status ) - $actions['untrash'] = "ID ) ), 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . ""; - elseif ( EMPTY_TRASH_DAYS ) - $actions['trash'] = "" . __( 'Trash' ) . ""; - if ( 'trash' == $post->post_status || !EMPTY_TRASH_DAYS ) - $actions['delete'] = "" . __( 'Delete Permanently' ) . ""; - } - - if ( $post_type_object->public ) { - $title = _draft_or_post_title(); - if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { - if ( $can_edit_post ) { - $preview_link = set_url_scheme( get_permalink( $post->ID ) ); - /** This filter is documented in wp-admin/includes/meta-boxes.php */ - $preview_link = apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ), $post ); - $actions['view'] = '' . __( 'Preview' ) . ''; - } - } elseif ( 'trash' != $post->post_status ) { - $actions['view'] = '' . __( 'View' ) . ''; - } - } - - if ( is_post_type_hierarchical( $post->post_type ) ) { - - /** - * Filter the array of row action links on the Pages list table. - * - * The filter is evaluated only for hierarchical post types. - * - * @since 2.8.0 - * - * @param array $actions An array of row action links. Defaults are - * 'Edit', 'Quick Edit', 'Restore, 'Trash', - * 'Delete Permanently', 'Preview', and 'View'. - * @param WP_Post $post The post object. - */ - $actions = apply_filters( 'page_row_actions', $actions, $post ); - } else { - - /** - * Filter the array of row action links on the Posts list table. - * - * The filter is evaluated only for non-hierarchical post types. - * - * @since 2.8.0 - * - * @param array $actions An array of row action links. Defaults are - * 'Edit', 'Quick Edit', 'Restore, 'Trash', - * 'Delete Permanently', 'Preview', and 'View'. - * @param WP_Post $post The post object. - */ - $actions = apply_filters( 'post_row_actions', $actions, $post ); - } - - return $this->row_actions( $actions ); - } - - /** - * Outputs the hidden row displayed when inline editing - * - * @since 3.1.0 - * - * @global string $mode - */ - public function inline_edit() { - global $mode; - - $screen = $this->screen; - - $post = get_default_post_to_edit( $screen->post_type ); - $post_type_object = get_post_type_object( $screen->post_type ); - - $taxonomy_names = get_object_taxonomies( $screen->post_type ); - $hierarchical_taxonomies = array(); - $flat_taxonomies = array(); - foreach ( $taxonomy_names as $taxonomy_name ) { - - $taxonomy = get_taxonomy( $taxonomy_name ); - - $show_in_quick_edit = $taxonomy->show_in_quick_edit; - - /** - * Filter whether the current taxonomy should be shown in the Quick Edit panel. - * - * @since 4.2.0 - * - * @param bool $show_in_quick_edit Whether to show the current taxonomy in Quick Edit. - * @param string $taxonomy_name Taxonomy name. - * @param string $post_type Post type of current Quick Edit post. - */ - if ( ! apply_filters( 'quick_edit_show_taxonomy', $show_in_quick_edit, $taxonomy_name, $screen->post_type ) ) { - continue; - } - - if ( $taxonomy->hierarchical ) - $hierarchical_taxonomies[] = $taxonomy; - else - $flat_taxonomies[] = $taxonomy; - } - - $m = ( isset( $mode ) && 'excerpt' == $mode ) ? 'excerpt' : 'list'; - $can_publish = current_user_can( $post_type_object->cap->publish_posts ); - $core_columns = array( 'cb' => true, 'date' => true, 'title' => true, 'categories' => true, 'tags' => true, 'comments' => true, 'author' => true ); - - ?> - -
- - - post_type; - echo $bulk ? " bulk-edit-row bulk-edit-row-$hclass bulk-edit-{$screen->post_type}" : " quick-edit-row quick-edit-row-$hclass inline-edit-{$screen->post_type}"; - ?>" style="display: none"> - -
- -
-

- post_type, 'title' ) ) : - if ( $bulk ) : ?> -
-
-
- - - - - - - - - - -
- - -
-
- post_type, 'author' ) ) : - $authors_dropdown = ''; - - if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) : - $users_opt = array( - 'hide_if_only_one_author' => false, - 'who' => 'authors', - 'name' => 'post_author', - 'class'=> 'authors', - 'multi' => 1, - 'echo' => 0 - ); - if ( $bulk ) - $users_opt['show_option_none'] = __( '— No Change —' ); - - if ( $authors = wp_dropdown_users( $users_opt ) ) : - $authors_dropdown = ''; - endif; - endif; // authors - ?> - - - -
- - - - - - -
- - - -
- - - -
- - - - labels->name ) ?> - -
    - $taxonomy->name ) ) ?> -
- - - -
- - - -
- - post_type, 'author' ) && $bulk ) - echo $authors_dropdown; - - if ( post_type_supports( $screen->post_type, 'page-attributes' ) ) : - - if ( $post_type_object->hierarchical ) : - ?> - - - - - - - post_type ) : - ?> - - - - - - - - - cap->assign_terms ) ) : ?> - - - - - - - - post_type, 'comments' ) || post_type_supports( $screen->post_type, 'trackbacks' ) ) : - if ( $bulk ) : ?> - -
- post_type, 'comments' ) ) : ?> - - post_type, 'trackbacks' ) ) : ?> - - -
- - - -
- post_type, 'comments' ) ) : ?> - - post_type, 'trackbacks' ) ) : ?> - - -
- - - -
- - - post_type && $can_publish && current_user_can( $post_type_object->cap->edit_others_posts ) ) : ?> - - - - - - - - - - - - - -
- - post_type, 'post-formats' ) ) { - $post_formats = get_theme_support( 'post-formats' ); - - ?> - - - -
- - get_column_info(); - - foreach ( $columns as $column_name => $column_display_name ) { - if ( isset( $core_columns[$column_name] ) ) - continue; - - if ( $bulk ) { - - /** - * Fires once for each column in Bulk Edit mode. - * - * @since 2.7.0 - * - * @param string $column_name Name of the column to edit. - * @param WP_Post $post_type The post type slug. - */ - do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type ); - } else { - - /** - * Fires once for each column in Quick Edit mode. - * - * @since 2.7.0 - * - * @param string $column_name Name of the column to edit. - * @param WP_Post $post_type The post type slug. - */ - do_action( 'quick_edit_custom_box', $column_name, $screen->post_type ); - } - - } - ?> -

- - - - - - - - post_type, 'author' ) ) { ?> - - - -
-

-
- apply_filters( 'press_this_redirect_in_parent', false ), - ); - } - - /** - * Get the source's images and save them locally, for posterity, unless we can't. - * - * @since 4.2.0 - * @access public - * - * @param int $post_id Post ID. - * @param string $content Optional. Current expected markup for Press This. Expects slashed. Default empty. - * @return string New markup with old image URLs replaced with the local attachment ones if swapped. - */ - public function side_load_images( $post_id, $content = '' ) { - $content = wp_unslash( $content ); - - if ( preg_match_all( '/]+>/', $content, $matches ) && current_user_can( 'upload_files' ) ) { - foreach ( (array) $matches[0] as $image ) { - // This is inserted from our JS so HTML attributes should always be in double quotes. - if ( ! preg_match( '/src="([^"]+)"/', $image, $url_matches ) ) { - continue; - } - - $image_src = $url_matches[1]; - - // Don't try to sideload a file without a file extension, leads to WP upload error. - if ( ! preg_match( '/[^\?]+\.(?:jpe?g|jpe|gif|png)(?:\?|$)/i', $image_src ) ) { - continue; - } - - // Sideload image, which gives us a new image src. - $new_src = media_sideload_image( $image_src, $post_id, null, 'src' ); - - if ( ! is_wp_error( $new_src ) ) { - // Replace the POSTED content with correct uploaded ones. - // Need to do it in two steps so we don't replace links to the original image if any. - $new_image = str_replace( $image_src, $new_src, $image ); - $content = str_replace( $image, $new_image, $content ); - } - } - } - - // Edxpected slashed - return wp_slash( $content ); - } - - /** - * AJAX handler for saving the post as draft or published. - * - * @since 4.2.0 - * @access public - */ - public function save_post() { - if ( empty( $_POST['post_ID'] ) || ! $post_id = (int) $_POST['post_ID'] ) { - wp_send_json_error( array( 'errorMessage' => __( 'Missing post ID.' ) ) ); - } - - if ( empty( $_POST['_wpnonce'] ) || ! wp_verify_nonce( $_POST['_wpnonce'], 'update-post_' . $post_id ) || - ! current_user_can( 'edit_post', $post_id ) ) { - - wp_send_json_error( array( 'errorMessage' => __( 'Invalid post.' ) ) ); - } - - $post = array( - 'ID' => $post_id, - 'post_title' => ( ! empty( $_POST['post_title'] ) ) ? sanitize_text_field( trim( $_POST['post_title'] ) ) : '', - 'post_content' => ( ! empty( $_POST['post_content'] ) ) ? trim( $_POST['post_content'] ) : '', - 'post_type' => 'post', - 'post_status' => 'draft', - 'post_format' => ( ! empty( $_POST['post_format'] ) ) ? sanitize_text_field( $_POST['post_format'] ) : '', - 'tax_input' => ( ! empty( $_POST['tax_input'] ) ) ? $_POST['tax_input'] : array(), - 'post_category' => ( ! empty( $_POST['post_category'] ) ) ? $_POST['post_category'] : array(), - ); - - if ( ! empty( $_POST['post_status'] ) && 'publish' === $_POST['post_status'] ) { - if ( current_user_can( 'publish_posts' ) ) { - $post['post_status'] = 'publish'; - } else { - $post['post_status'] = 'pending'; - } - } - - $post['post_content'] = $this->side_load_images( $post_id, $post['post_content'] ); - - $updated = wp_update_post( $post, true ); - - if ( is_wp_error( $updated ) ) { - wp_send_json_error( array( 'errorMessage' => $updated->get_error_message() ) ); - } else { - if ( isset( $post['post_format'] ) ) { - if ( current_theme_supports( 'post-formats', $post['post_format'] ) ) { - set_post_format( $post_id, $post['post_format'] ); - } elseif ( $post['post_format'] ) { - set_post_format( $post_id, false ); - } - } - - $forceRedirect = false; - - if ( 'publish' === get_post_status( $post_id ) ) { - $redirect = get_post_permalink( $post_id ); - } elseif ( isset( $_POST['pt-force-redirect'] ) && $_POST['pt-force-redirect'] === 'true' ) { - $forceRedirect = true; - $redirect = get_edit_post_link( $post_id, 'js' ); - } else { - $redirect = false; - } - - /** - * Filter the URL to redirect to when Press This saves. - * - * @since 4.2.0 - * - * @param string $url Redirect URL. If `$status` is 'publish', this will be the post permalink. - * Otherwise, the default is false resulting in no redirect. - * @param int $post_id Post ID. - * @param string $status Post status. - */ - $redirect = apply_filters( 'press_this_save_redirect', $redirect, $post_id, $post['post_status'] ); - - if ( $redirect ) { - wp_send_json_success( array( 'redirect' => $redirect, 'force' => $forceRedirect ) ); - } else { - wp_send_json_success( array( 'postSaved' => true ) ); - } - } - } - - /** - * AJAX handler for adding a new category. - * - * @since 4.2.0 - * @access public - */ - public function add_category() { - if ( false === wp_verify_nonce( $_POST['new_cat_nonce'], 'add-category' ) ) { - wp_send_json_error(); - } - - $taxonomy = get_taxonomy( 'category' ); - - if ( ! current_user_can( $taxonomy->cap->edit_terms ) || empty( $_POST['name'] ) ) { - wp_send_json_error(); - } - - $parent = isset( $_POST['parent'] ) && (int) $_POST['parent'] > 0 ? (int) $_POST['parent'] : 0; - $names = explode( ',', $_POST['name'] ); - $added = $data = array(); - - foreach ( $names as $cat_name ) { - $cat_name = trim( $cat_name ); - $cat_nicename = sanitize_title( $cat_name ); - - if ( empty( $cat_nicename ) ) { - continue; - } - - // @todo Find a more performant way to check existence, maybe get_term() with a separate parent check. - if ( term_exists( $cat_name, $taxonomy->name, $parent ) ) { - if ( count( $names ) === 1 ) { - wp_send_json_error( array( 'errorMessage' => __( 'This category already exists.' ) ) ); - } else { - continue; - } - } - - $cat_id = wp_insert_term( $cat_name, $taxonomy->name, array( 'parent' => $parent ) ); - - if ( is_wp_error( $cat_id ) ) { - continue; - } elseif ( is_array( $cat_id ) ) { - $cat_id = $cat_id['term_id']; - } - - $added[] = $cat_id; - } - - if ( empty( $added ) ) { - wp_send_json_error( array( 'errorMessage' => __( 'This category cannot be added. Please change the name and try again.' ) ) ); - } - - foreach ( $added as $new_cat_id ) { - $new_cat = get_category( $new_cat_id ); - - if ( is_wp_error( $new_cat ) ) { - wp_send_json_error( array( 'errorMessage' => __( 'Error while adding the category. Please try again later.' ) ) ); - } - - $data[] = array( - 'term_id' => $new_cat->term_id, - 'name' => $new_cat->name, - 'parent' => $new_cat->parent, - ); - } - wp_send_json_success( $data ); - } - - /** - * Downloads the source's HTML via server-side call for the given URL. - * - * @since 4.2.0 - * @access public - * - * @param string $url URL to scan. - * @return string Source's HTML sanitized markup - */ - public function fetch_source_html( $url ) { - global $wp_version; - - if ( empty( $url ) ) { - return new WP_Error( 'invalid-url', __( 'A valid URL was not provided.' ) ); - } - - $remote_url = wp_safe_remote_get( $url, array( - 'timeout' => 30, - // Use an explicit user-agent for Press This - 'user-agent' => 'Press This (WordPress/' . $wp_version . '); ' . get_bloginfo( 'url' ) - ) ); - - if ( is_wp_error( $remote_url ) ) { - return $remote_url; - } - - $useful_html_elements = array( - 'img' => array( - 'src' => true, - 'width' => true, - 'height' => true, - ), - 'iframe' => array( - 'src' => true, - ), - 'link' => array( - 'rel' => true, - 'itemprop' => true, - 'href' => true, - ), - 'meta' => array( - 'property' => true, - 'name' => true, - 'content' => true, - ) - ); - - $source_content = wp_remote_retrieve_body( $remote_url ); - $source_content = wp_kses( $source_content, $useful_html_elements ); - - return $source_content; - } - - /** - * Utility method to limit an array to 50 values. - * - * @ignore - * @since 4.2.0 - * - * @param array $value Array to limit. - * @return array Original array if fewer than 50 values, limited array, empty array otherwise. - */ - private function _limit_array( $value ) { - if ( is_array( $value ) ) { - if ( count( $value ) > 50 ) { - return array_slice( $value, 0, 50 ); - } - - return $value; - } - - return array(); - } - - /** - * Utility method to limit the length of a given string to 5,000 characters. - * - * @ignore - * @since 4.2.0 - * - * @param string $value String to limit. - * @return bool|int|string If boolean or integer, that value. If a string, the original value - * if fewer than 5,000 characters, a truncated version, otherwise an - * empty string. - */ - private function _limit_string( $value ) { - $return = ''; - - if ( is_numeric( $value ) || is_bool( $value ) ) { - $return = $value; - } else if ( is_string( $value ) ) { - if ( mb_strlen( $value ) > 5000 ) { - $return = mb_substr( $value, 0, 5000 ); - } else { - $return = $value; - } - - $return = html_entity_decode( $return, ENT_QUOTES, 'UTF-8' ); - $return = sanitize_text_field( trim( $return ) ); - } - - return $return; - } - - /** - * Utility method to limit a given URL to 2,048 characters. - * - * @ignore - * @since 4.2.0 - * - * @param string $url URL to check for length and validity. - * @return string Escaped URL if of valid length (< 2048) and makeup. Empty string otherwise. - */ - private function _limit_url( $url ) { - if ( ! is_string( $url ) ) { - return ''; - } - - // HTTP 1.1 allows 8000 chars but the "de-facto" standard supported in all current browsers is 2048. - if ( strlen( $url ) > 2048 ) { - return ''; // Return empty rather than a truncated/invalid URL - } - - // Does not look like an URL. - if ( ! preg_match( '/^([!#$&-;=?-\[\]_a-z~]|%[0-9a-fA-F]{2})+$/', $url ) ) { - return ''; - } - - // If the URL is root-relative, prepend the protocol and domain name - if ( $url && $this->domain && preg_match( '%^/[^/]+%', $url ) ) { - $url = $this->domain . $url; - } - - // Not absolute or protocol-relative URL. - if ( ! preg_match( '%^(?:https?:)?//[^/]+%', $url ) ) { - return ''; - } - - return esc_url_raw( $url, array( 'http', 'https' ) ); - } - - /** - * Utility method to limit image source URLs. - * - * Excluded URLs include share-this type buttons, loaders, spinners, spacers, WP interface images, - * tiny buttons or thumbs, mathtag.com or quantserve.com images, or the WP stats gif. - * - * @ignore - * @since 4.2.0 - * - * @param string $src Image source URL. - * @return string If not matched an excluded URL type, the original URL, empty string otherwise. - */ - private function _limit_img( $src ) { - $src = $this->_limit_url( $src ); - - if ( preg_match( '/\/ad[sx]{1}?\//', $src ) ) { - // Ads - return ''; - } else if ( preg_match( '/(\/share-?this[^\.]+?\.[a-z0-9]{3,4})(\?.*)?$/', $src ) ) { - // Share-this type button - return ''; - } else if ( preg_match( '/\/(spinner|loading|spacer|blank|rss)\.(gif|jpg|png)/', $src ) ) { - // Loaders, spinners, spacers - return ''; - } else if ( preg_match( '/\/([^\.\/]+[-_]{1})?(spinner|loading|spacer|blank)s?([-_]{1}[^\.\/]+)?\.[a-z0-9]{3,4}/', $src ) ) { - // Fancy loaders, spinners, spacers - return ''; - } else if ( preg_match( '/([^\.\/]+[-_]{1})?thumb[^.]*\.(gif|jpg|png)$/', $src ) ) { - // Thumbnails, too small, usually irrelevant to context - return ''; - } else if ( preg_match( '/\/wp-includes\//', $src ) ) { - // Classic WP interface images - return ''; - } else if ( preg_match( '/[^\d]{1}\d{1,2}x\d+\.(gif|jpg|png)$/', $src ) ) { - // Most often tiny buttons/thumbs (< 100px wide) - return ''; - } else if ( preg_match( '/\/pixel\.(mathtag|quantserve)\.com/', $src ) ) { - // See mathtag.com and https://www.quantcast.com/how-we-do-it/iab-standard-measurement/how-we-collect-data/ - return ''; - } else if ( preg_match( '/\/[gb]\.gif(\?.+)?$/', $src ) ) { - // Classic WP stats gif - return ''; - } - - return $src; - } - - /** - * Limit embed source URLs to specific providers. - * - * Not all core oEmbed providers are supported. Supported providers include YouTube, Vimeo, - * Vine, Daily Motion, SoundCloud, and Twitter. - * - * @ignore - * @since 4.2.0 - * - * @param string $src Embed source URL. - * @return string If not from a supported provider, an empty string. Otherwise, a reformattd embed URL. - */ - private function _limit_embed( $src ) { - $src = $this->_limit_url( $src ); - - if ( empty( $src ) ) - return ''; - - if ( preg_match( '/\/\/(m|www)\.youtube\.com\/(embed|v)\/([^\?]+)\?.+$/', $src, $src_matches ) ) { - // Embedded Youtube videos (www or mobile) - $src = 'https://www.youtube.com/watch?v=' . $src_matches[3]; - } else if ( preg_match( '/\/\/player\.vimeo\.com\/video\/([\d]+)([\?\/]{1}.*)?$/', $src, $src_matches ) ) { - // Embedded Vimeo iframe videos - $src = 'https://vimeo.com/' . (int) $src_matches[1]; - } else if ( preg_match( '/\/\/vimeo\.com\/moogaloop\.swf\?clip_id=([\d]+)$/', $src, $src_matches ) ) { - // Embedded Vimeo Flash videos - $src = 'https://vimeo.com/' . (int) $src_matches[1]; - } else if ( preg_match( '/\/\/vine\.co\/v\/([^\/]+)\/embed/', $src, $src_matches ) ) { - // Embedded Vine videos - $src = 'https://vine.co/v/' . $src_matches[1]; - } else if ( preg_match( '/\/\/(www\.)?dailymotion\.com\/embed\/video\/([^\/\?]+)([\/\?]{1}.+)?/', $src, $src_matches ) ) { - // Embedded Daily Motion videos - $src = 'https://www.dailymotion.com/video/' . $src_matches[2]; - } else { - require_once( ABSPATH . WPINC . '/class-oembed.php' ); - $oembed = _wp_oembed_get_object(); - - if ( ! $oembed->get_provider( $src, array( 'discover' => false ) ) ) { - $src = ''; - } - } - - return $src; - } - - /** - * Process a meta data entry from the source. - * - * @ignore - * @since 4.2.0 - * - * @param string $meta_name Meta key name. - * @param mixed $meta_value Meta value. - * @param array $data Associative array of source data. - * @return array Processed data array. - */ - private function _process_meta_entry( $meta_name, $meta_value, $data ) { - if ( preg_match( '/:?(title|description|keywords|site_name)$/', $meta_name ) ) { - $data['_meta'][ $meta_name ] = $meta_value; - } else { - switch ( $meta_name ) { - case 'og:url': - case 'og:video': - case 'og:video:secure_url': - $meta_value = $this->_limit_embed( $meta_value ); - - if ( ! isset( $data['_embeds'] ) ) { - $data['_embeds'] = array(); - } - - if ( ! empty( $meta_value ) && ! in_array( $meta_value, $data['_embeds'] ) ) { - $data['_embeds'][] = $meta_value; - } - - break; - case 'og:image': - case 'og:image:secure_url': - case 'twitter:image0:src': - case 'twitter:image0': - case 'twitter:image:src': - case 'twitter:image': - $meta_value = $this->_limit_img( $meta_value ); - - if ( ! isset( $data['_images'] ) ) { - $data['_images'] = array(); - } - - if ( ! empty( $meta_value ) && ! in_array( $meta_value, $data['_images'] ) ) { - $data['_images'][] = $meta_value; - } - - break; - } - } - - return $data; - } - - /** - * Fetches and parses _meta, _images, and _links data from the source. - * - * @since 4.2.0 - * @access public - * - * @param string $url URL to scan. - * @param array $data Optional. Existing data array if you have one. Default empty array. - * @return array New data array. - */ - public function source_data_fetch_fallback( $url, $data = array() ) { - if ( empty( $url ) ) { - return array(); - } - - // Download source page to tmp file. - $source_content = $this->fetch_source_html( $url ); - if ( is_wp_error( $source_content ) ) { - return array( 'errors' => $source_content->get_error_messages() ); - } - - // Fetch and gather data first, so discovered media is offered 1st to user. - if ( empty( $data['_meta'] ) ) { - $data['_meta'] = array(); - } - - if ( preg_match_all( '/]+>/', $source_content, $matches ) ) { - $items = $this->_limit_array( $matches[0] ); - - foreach ( $items as $value ) { - if ( preg_match( '/(property|name)="([^"]+)"[^>]+content="([^"]+)"/', $value, $new_matches ) ) { - $meta_name = $this->_limit_string( $new_matches[2] ); - $meta_value = $this->_limit_string( $new_matches[3] ); - - // Sanity check. $key is usually things like 'title', 'description', 'keywords', etc. - if ( strlen( $meta_name ) > 100 ) { - continue; - } - - $data = $this->_process_meta_entry( $meta_name, $meta_value, $data ); - } - } - } - - // Fetch and gather data. - if ( empty( $data['_images'] ) ) { - $data['_images'] = array(); - } - - if ( preg_match_all( '/]+>/', $source_content, $matches ) ) { - $items = $this->_limit_array( $matches[0] ); - - foreach ( $items as $value ) { - if ( ( preg_match( '/width=(\'|")(\d+)\\1/i', $value, $new_matches ) && $new_matches[2] < 256 ) || - ( preg_match( '/height=(\'|")(\d+)\\1/i', $value, $new_matches ) && $new_matches[2] < 128 ) ) { - - continue; - } - - if ( preg_match( '/src=(\'|")([^\'"]+)\\1/i', $value, $new_matches ) ) { - $src = $this->_limit_img( $new_matches[2] ); - if ( ! empty( $src ) && ! in_array( $src, $data['_images'] ) ) { - $data['_images'][] = $src; - } - } - } - } - - // Fetch and gather -
- - name, $themes_allowedtags ); - $author = wp_kses( $theme->author, $themes_allowedtags ); - - $install_url = add_query_arg( array( - 'action' => 'install-theme', - 'theme' => $theme->slug, - ), self_admin_url( 'update.php' ) ); - - $update_url = add_query_arg( array( - 'action' => 'upgrade-theme', - 'theme' => $theme->slug, - ), self_admin_url( 'update.php' ) ); - - $status = $this->_get_theme_status( $theme ); - - ?> -
slug ) ) . '" title="' . esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ) . '">' . __( 'Update' ) . ''; - break; - case 'newer_installed': - case 'latest_installed': - echo '' . _x( 'Installed', 'theme' ) . ''; - break; - case 'install': - default: - echo '' . __( 'Install' ) . ''; - break; - } ?> -

- - screenshot_url ) ): ?> - - -
- $theme->rating, 'type' => 'percent', 'number' => $theme->num_ratings ) ); ?> -
- - version, $themes_allowedtags ); ?> -
-
- description, $themes_allowedtags ); ?> -
-
- -
- Install screen - * @global string $type Type of search. - * - * @param array $extra_args Unused. - */ - public function _js_vars( $extra_args = array() ) { - global $tab, $type; - parent::_js_vars( compact( 'tab', 'type' ) ); - } - - /** - * Check to see if the theme is already installed. - * - * @since 3.4.0 - * @access private - * - * @param object $theme - A WordPress.org Theme API object. - * @return string Theme status. - */ - private function _get_theme_status( $theme ) { - $status = 'install'; - - $installed_theme = wp_get_theme( $theme->slug ); - if ( $installed_theme->exists() ) { - if ( version_compare( $installed_theme->get('Version'), $theme->version, '=' ) ) - $status = 'latest_installed'; - elseif ( version_compare( $installed_theme->get('Version'), $theme->version, '>' ) ) - $status = 'newer_installed'; - else - $status = 'update_available'; - } - - return $status; - } -} diff --git a/wp-admin/includes/class-wp-themes-list-table.php b/wp-admin/includes/class-wp-themes-list-table.php deleted file mode 100644 index e01e3d4636..0000000000 --- a/wp-admin/includes/class-wp-themes-list-table.php +++ /dev/null @@ -1,300 +0,0 @@ - true, - 'screen' => isset( $args['screen'] ) ? $args['screen'] : null, - ) ); - } - - /** - * - * @return bool - */ - public function ajax_user_can() { - // Do not check edit_theme_options here. AJAX calls for available themes require switch_themes. - return current_user_can( 'switch_themes' ); - } - - /** - * @access public - */ - public function prepare_items() { - $themes = wp_get_themes( array( 'allowed' => true ) ); - - if ( ! empty( $_REQUEST['s'] ) ) - $this->search_terms = array_unique( array_filter( array_map( 'trim', explode( ',', strtolower( wp_unslash( $_REQUEST['s'] ) ) ) ) ) ); - - if ( ! empty( $_REQUEST['features'] ) ) - $this->features = $_REQUEST['features']; - - if ( $this->search_terms || $this->features ) { - foreach ( $themes as $key => $theme ) { - if ( ! $this->search_theme( $theme ) ) - unset( $themes[ $key ] ); - } - } - - unset( $themes[ get_option( 'stylesheet' ) ] ); - WP_Theme::sort_by_name( $themes ); - - $per_page = 36; - $page = $this->get_pagenum(); - - $start = ( $page - 1 ) * $per_page; - - $this->items = array_slice( $themes, $start, $per_page, true ); - - $this->set_pagination_args( array( - 'total_items' => count( $themes ), - 'per_page' => $per_page, - 'infinite_scroll' => true, - ) ); - } - - /** - * @access public - */ - public function no_items() { - if ( $this->search_terms || $this->features ) { - _e( 'No items found.' ); - return; - } - - if ( is_multisite() ) { - if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) { - printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to enable or install more themes.' ), network_admin_url( 'site-themes.php?id=' . $GLOBALS['blog_id'] ), network_admin_url( 'theme-install.php' ) ); - - return; - } elseif ( current_user_can( 'manage_network_themes' ) ) { - printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to enable more themes.' ), network_admin_url( 'site-themes.php?id=' . $GLOBALS['blog_id'] ) ); - - return; - } - // Else, fallthrough. install_themes doesn't help if you can't enable it. - } else { - if ( current_user_can( 'install_themes' ) ) { - printf( __( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress.org Theme Directory at any time: just click on the Install Themes tab above.' ), admin_url( 'theme-install.php' ) ); - - return; - } - } - // Fallthrough. - printf( __( 'Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), get_site_option( 'site_name' ) ); - } - - /** - * @param string $which - */ - public function tablenav( $which = 'top' ) { - if ( $this->get_pagination_arg( 'total_pages' ) <= 1 ) - return; - ?> -
- pagination( $which ); ?> - -
-
- - tablenav( 'top' ); ?> - -
- display_rows_or_placeholder(); ?> -
- - tablenav( 'bottom' ); ?> -has_items() ) { - $this->display_rows(); - } else { - echo '
'; - $this->no_items(); - echo '
'; - } - } - - /** - * @access public - */ - public function display_rows() { - $themes = $this->items; - - foreach ( $themes as $theme ): - ?>
get_template(); - $stylesheet = $theme->get_stylesheet(); - $title = $theme->display('Name'); - $version = $theme->display('Version'); - $author = $theme->display('Author'); - - $activate_link = wp_nonce_url( "themes.php?action=activate&template=" . urlencode( $template ) . "&stylesheet=" . urlencode( $stylesheet ), 'switch-theme_' . $stylesheet ); - - $actions = array(); - $actions['activate'] = '' . __( 'Activate' ) . ''; - - if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { - $actions['preview'] .= '' - . __( 'Live Preview' ) . ''; - } - - if ( ! is_multisite() && current_user_can( 'delete_themes' ) ) - $actions['delete'] = '' . __( 'Delete' ) . ''; - - /** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */ - $actions = apply_filters( 'theme_action_links', $actions, $theme ); - - /** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */ - $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $theme ); - $delete_action = isset( $actions['delete'] ) ? '
' . $actions['delete'] . '
' : ''; - unset( $actions['delete'] ); - - ?> - - - get_screenshot() ) : ?> - - - - - get_screenshot() ) : ?> - - - - -

-
- - -
-

-

display('Description'); ?>

- parent() ) { - printf( '

' . __( 'This child theme requires its parent theme, %2$s.' ) . '

', - __( 'https://codex.wordpress.org/Child_Themes' ), - $theme->parent()->display( 'Name' ) ); - } ?> -
- -
- features as $word ) { - if ( ! in_array( $word, $theme->get('Tags') ) ) - return false; - } - - // Match all phrases - foreach ( $this->search_terms as $word ) { - if ( in_array( $word, $theme->get('Tags') ) ) - continue; - - foreach ( array( 'Name', 'Description', 'Author', 'AuthorURI' ) as $header ) { - // Don't mark up; Do translate. - if ( false !== stripos( strip_tags( $theme->display( $header, false, true ) ), $word ) ) { - continue 2; - } - } - - if ( false !== stripos( $theme->get_stylesheet(), $word ) ) - continue; - - if ( false !== stripos( $theme->get_template(), $word ) ) - continue; - - return false; - } - - return true; - } - - /** - * Send required variables to JavaScript land - * - * @since 3.4.0 - * @access public - * - * @param array $extra_args - */ - public function _js_vars( $extra_args = array() ) { - $search_string = isset( $_REQUEST['s'] ) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : ''; - - $args = array( - 'search' => $search_string, - 'features' => $this->features, - 'paged' => $this->get_pagenum(), - 'total_pages' => ! empty( $this->_pagination_args['total_pages'] ) ? $this->_pagination_args['total_pages'] : 1, - ); - - if ( is_array( $extra_args ) ) - $args = array_merge( $args, $extra_args ); - - printf( "\n", wp_json_encode( $args ) ); - parent::_js_vars(); - } -} diff --git a/wp-admin/includes/class-wp-upgrader-skins.php b/wp-admin/includes/class-wp-upgrader-skins.php deleted file mode 100644 index 3e9a5556b6..0000000000 --- a/wp-admin/includes/class-wp-upgrader-skins.php +++ /dev/null @@ -1,941 +0,0 @@ - '', 'nonce' => '', 'title' => '', 'context' => false ); - $this->options = wp_parse_args($args, $defaults); - } - - /** - * @param WP_Upgrader $upgrader - */ - public function set_upgrader(&$upgrader) { - if ( is_object($upgrader) ) - $this->upgrader =& $upgrader; - $this->add_strings(); - } - - /** - * @access public - */ - public function add_strings() { - } - - /** - * - * @param string|false|WP_Error $result - */ - public function set_result($result) { - $this->result = $result; - } - - /** - * - * @param bool $error - * @param string $context - * @param bool $allow_relaxed_file_ownership - * @return type - */ - public function request_filesystem_credentials( $error = false, $context = false, $allow_relaxed_file_ownership = false ) { - $url = $this->options['url']; - if ( ! $context ) { - $context = $this->options['context']; - } - if ( !empty($this->options['nonce']) ) { - $url = wp_nonce_url($url, $this->options['nonce']); - } - - $extra_fields = array(); - - return request_filesystem_credentials( $url, '', $error, $context, $extra_fields, $allow_relaxed_file_ownership ); - } - - /** - * @access public - */ - public function header() { - if ( $this->done_header ) { - return; - } - $this->done_header = true; - echo '
'; - echo '

' . $this->options['title'] . '

'; - } - - /** - * @access public - */ - public function footer() { - if ( $this->done_footer ) { - return; - } - $this->done_footer = true; - echo '
'; - } - - /** - * - * @param string|WP_Error $errors - */ - public function error($errors) { - if ( ! $this->done_header ) - $this->header(); - if ( is_string($errors) ) { - $this->feedback($errors); - } elseif ( is_wp_error($errors) && $errors->get_error_code() ) { - foreach ( $errors->get_error_messages() as $message ) { - if ( $errors->get_error_data() && is_string( $errors->get_error_data() ) ) - $this->feedback($message . ' ' . esc_html( strip_tags( $errors->get_error_data() ) ) ); - else - $this->feedback($message); - } - } - } - - /** - * - * @param string $string - */ - public function feedback($string) { - if ( isset( $this->upgrader->strings[$string] ) ) - $string = $this->upgrader->strings[$string]; - - if ( strpos($string, '%') !== false ) { - $args = func_get_args(); - $args = array_splice($args, 1); - if ( $args ) { - $args = array_map( 'strip_tags', $args ); - $args = array_map( 'esc_html', $args ); - $string = vsprintf($string, $args); - } - } - if ( empty($string) ) - return; - show_message($string); - } - - /** - * @access public - */ - public function before() {} - - /** - * @access public - */ - public function after() {} - - /** - * Output JavaScript that calls function to decrement the update counts. - * - * @since 3.9.0 - * - * @param string $type Type of update count to decrement. Likely values include 'plugin', - * 'theme', 'translation', etc. - */ - protected function decrement_update_count( $type ) { - if ( ! $this->result || is_wp_error( $this->result ) || 'up_to_date' === $this->result ) { - return; - } - - if ( defined( 'IFRAME_REQUEST' ) ) { - echo ''; - } else { - echo ''; - } - } - - /** - * @access public - */ - public function bulk_header() {} - - /** - * @access public - */ - public function bulk_footer() {} -} - -/** - * Plugin Upgrader Skin for WordPress Plugin Upgrades. - * - * @package WordPress - * @subpackage Upgrader - * @since 2.8.0 - */ -class Plugin_Upgrader_Skin extends WP_Upgrader_Skin { - public $plugin = ''; - public $plugin_active = false; - public $plugin_network_active = false; - - /** - * - * @param array $args - */ - public function __construct( $args = array() ) { - $defaults = array( 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => __('Update Plugin') ); - $args = wp_parse_args($args, $defaults); - - $this->plugin = $args['plugin']; - - $this->plugin_active = is_plugin_active( $this->plugin ); - $this->plugin_network_active = is_plugin_active_for_network( $this->plugin ); - - parent::__construct($args); - } - - /** - * @access public - */ - public function after() { - $this->plugin = $this->upgrader->plugin_info(); - if ( !empty($this->plugin) && !is_wp_error($this->result) && $this->plugin_active ){ - echo ''; - } - - $this->decrement_update_count( 'plugin' ); - - $update_actions = array( - 'activate_plugin' => '' . __( 'Activate Plugin' ) . '', - 'plugins_page' => '' . __( 'Return to Plugins page' ) . '' - ); - if ( $this->plugin_active || ! $this->result || is_wp_error( $this->result ) || ! current_user_can( 'activate_plugins' ) ) - unset( $update_actions['activate_plugin'] ); - - /** - * Filter the list of action links available following a single plugin update. - * - * @since 2.7.0 - * - * @param array $update_actions Array of plugin action links. - * @param string $plugin Path to the plugin file. - */ - $update_actions = apply_filters( 'update_plugin_complete_actions', $update_actions, $this->plugin ); - - if ( ! empty($update_actions) ) - $this->feedback(implode(' | ', (array)$update_actions)); - } -} - -/** - * Plugin Upgrader Skin for WordPress Plugin Upgrades. - * - * @package WordPress - * @subpackage Upgrader - * @since 3.0.0 - */ -class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { - public $in_loop = false; - /** - * @var string|false - */ - public $error = false; - - /** - * - * @param array $args - */ - public function __construct($args = array()) { - $defaults = array( 'url' => '', 'nonce' => '' ); - $args = wp_parse_args($args, $defaults); - - parent::__construct($args); - } - - /** - * @access public - */ - public function add_strings() { - $this->upgrader->strings['skin_upgrade_start'] = __('The update process is starting. This process may take a while on some hosts, so please be patient.'); - $this->upgrader->strings['skin_update_failed_error'] = __('An error occurred while updating %1$s: %2$s'); - $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.'); - $this->upgrader->strings['skin_update_successful'] = __( '%1$s updated successfully.' ) . ' ' . __( 'Show Details' ) . ''; - $this->upgrader->strings['skin_upgrade_end'] = __('All updates have been completed.'); - } - - /** - * @param string $string - */ - public function feedback($string) { - if ( isset( $this->upgrader->strings[$string] ) ) - $string = $this->upgrader->strings[$string]; - - if ( strpos($string, '%') !== false ) { - $args = func_get_args(); - $args = array_splice($args, 1); - if ( $args ) { - $args = array_map( 'strip_tags', $args ); - $args = array_map( 'esc_html', $args ); - $string = vsprintf($string, $args); - } - } - if ( empty($string) ) - return; - if ( $this->in_loop ) - echo "$string
\n"; - else - echo "

$string

\n"; - } - - /** - * @access public - */ - public function header() { - // Nothing, This will be displayed within a iframe. - } - - /** - * @access public - */ - public function footer() { - // Nothing, This will be displayed within a iframe. - } - - /** - * - * @param string|WP_Error $error - */ - public function error($error) { - if ( is_string($error) && isset( $this->upgrader->strings[$error] ) ) - $this->error = $this->upgrader->strings[$error]; - - if ( is_wp_error($error) ) { - $messages = array(); - foreach ( $error->get_error_messages() as $emessage ) { - if ( $error->get_error_data() && is_string( $error->get_error_data() ) ) - $messages[] = $emessage . ' ' . esc_html( strip_tags( $error->get_error_data() ) ); - else - $messages[] = $emessage; - } - $this->error = implode(', ', $messages); - } - echo ''; - } - - /** - * @access public - */ - public function bulk_header() { - $this->feedback('skin_upgrade_start'); - } - - /** - * @access public - */ - public function bulk_footer() { - $this->feedback('skin_upgrade_end'); - } - - /** - * - * @param string $title - */ - public function before($title = '') { - $this->in_loop = true; - printf( '

' . $this->upgrader->strings['skin_before_update_header'] . '

', $title, $this->upgrader->update_current, $this->upgrader->update_count); - echo ''; - echo '

'; - $this->flush_output(); - } - - /** - * - * @param string $title - */ - public function after($title = '') { - echo '

'; - if ( $this->error || ! $this->result ) { - if ( $this->error ) - echo '

' . sprintf($this->upgrader->strings['skin_update_failed_error'], $title, $this->error) . '

'; - else - echo '

' . sprintf($this->upgrader->strings['skin_update_failed'], $title) . '

'; - - echo ''; - } - if ( $this->result && ! is_wp_error( $this->result ) ) { - if ( ! $this->error ) - echo '

' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle(); return false;') . '

'; - echo ''; - } - - $this->reset(); - $this->flush_output(); - } - - /** - * @access public - */ - public function reset() { - $this->in_loop = false; - $this->error = false; - } - - /** - * @access public - */ - public function flush_output() { - wp_ob_end_flush_all(); - flush(); - } -} - -class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin { - public $plugin_info = array(); // Plugin_Upgrader::bulk() will fill this in. - - public function add_strings() { - parent::add_strings(); - $this->upgrader->strings['skin_before_update_header'] = __('Updating Plugin %1$s (%2$d/%3$d)'); - } - - /** - * - * @param string $title - */ - public function before($title = '') { - parent::before($this->plugin_info['Title']); - } - - /** - * - * @param string $title - */ - public function after($title = '') { - parent::after($this->plugin_info['Title']); - $this->decrement_update_count( 'plugin' ); - } - - /** - * @access public - */ - public function bulk_footer() { - parent::bulk_footer(); - $update_actions = array( - 'plugins_page' => '' . __( 'Return to Plugins page' ) . '', - 'updates_page' => '' . __( 'Return to WordPress Updates page' ) . '' - ); - if ( ! current_user_can( 'activate_plugins' ) ) - unset( $update_actions['plugins_page'] ); - - /** - * Filter the list of action links available following bulk plugin updates. - * - * @since 3.0.0 - * - * @param array $update_actions Array of plugin action links. - * @param array $plugin_info Array of information for the last-updated plugin. - */ - $update_actions = apply_filters( 'update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info ); - - if ( ! empty($update_actions) ) - $this->feedback(implode(' | ', (array)$update_actions)); - } -} - -class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin { - public $theme_info = array(); // Theme_Upgrader::bulk() will fill this in. - - public function add_strings() { - parent::add_strings(); - $this->upgrader->strings['skin_before_update_header'] = __('Updating Theme %1$s (%2$d/%3$d)'); - } - - /** - * - * @param string $title - */ - public function before($title = '') { - parent::before( $this->theme_info->display('Name') ); - } - - /** - * - * @param string $title - */ - public function after($title = '') { - parent::after( $this->theme_info->display('Name') ); - $this->decrement_update_count( 'theme' ); - } - - /** - * @access public - */ - public function bulk_footer() { - parent::bulk_footer(); - $update_actions = array( - 'themes_page' => '' . __( 'Return to Themes page' ) . '', - 'updates_page' => '' . __( 'Return to WordPress Updates page' ) . '' - ); - if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) - unset( $update_actions['themes_page'] ); - - /** - * Filter the list of action links available following bulk theme updates. - * - * @since 3.0.0 - * - * @param array $update_actions Array of theme action links. - * @param array $theme_info Array of information for the last-updated theme. - */ - $update_actions = apply_filters( 'update_bulk_theme_complete_actions', $update_actions, $this->theme_info ); - - if ( ! empty($update_actions) ) - $this->feedback(implode(' | ', (array)$update_actions)); - } -} - -/** - * Plugin Installer Skin for WordPress Plugin Installer. - * - * @package WordPress - * @subpackage Upgrader - * @since 2.8.0 - */ -class Plugin_Installer_Skin extends WP_Upgrader_Skin { - public $api; - public $type; - - /** - * - * @param array $args - */ - public function __construct($args = array()) { - $defaults = array( 'type' => 'web', 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => '' ); - $args = wp_parse_args($args, $defaults); - - $this->type = $args['type']; - $this->api = isset($args['api']) ? $args['api'] : array(); - - parent::__construct($args); - } - - /** - * @access public - */ - public function before() { - if ( !empty($this->api) ) - $this->upgrader->strings['process_success'] = sprintf( __('Successfully installed the plugin %s %s.'), $this->api->name, $this->api->version); - } - - /** - * @access public - */ - public function after() { - $plugin_file = $this->upgrader->plugin_info(); - - $install_actions = array(); - - $from = isset($_GET['from']) ? wp_unslash( $_GET['from'] ) : 'plugins'; - - if ( 'import' == $from ) - $install_actions['activate_plugin'] = '' . __( 'Activate Plugin & Run Importer' ) . ''; - else - $install_actions['activate_plugin'] = '' . __( 'Activate Plugin' ) . ''; - - if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) { - $install_actions['network_activate'] = '' . __( 'Network Activate' ) . ''; - unset( $install_actions['activate_plugin'] ); - } - - if ( 'import' == $from ) { - $install_actions['importers_page'] = '' . __( 'Return to Importers' ) . ''; - } elseif ( $this->type == 'web' ) { - $install_actions['plugins_page'] = '' . __( 'Return to Plugin Installer' ) . ''; - } else { - $install_actions['plugins_page'] = '' . __( 'Return to Plugins page' ) . ''; - } - - if ( ! $this->result || is_wp_error($this->result) ) { - unset( $install_actions['activate_plugin'], $install_actions['network_activate'] ); - } elseif ( ! current_user_can( 'activate_plugins' ) ) { - unset( $install_actions['activate_plugin'] ); - } - - /** - * Filter the list of action links available following a single plugin installation. - * - * @since 2.7.0 - * - * @param array $install_actions Array of plugin action links. - * @param object $api Object containing WordPress.org API plugin data. Empty - * for non-API installs, such as when a plugin is installed - * via upload. - * @param string $plugin_file Path to the plugin file. - */ - $install_actions = apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file ); - - if ( ! empty($install_actions) ) - $this->feedback(implode(' | ', (array)$install_actions)); - } -} - -/** - * Theme Installer Skin for the WordPress Theme Installer. - * - * @package WordPress - * @subpackage Upgrader - * @since 2.8.0 - */ -class Theme_Installer_Skin extends WP_Upgrader_Skin { - public $api; - public $type; - - /** - * - * @param array $args - */ - public function __construct($args = array()) { - $defaults = array( 'type' => 'web', 'url' => '', 'theme' => '', 'nonce' => '', 'title' => '' ); - $args = wp_parse_args($args, $defaults); - - $this->type = $args['type']; - $this->api = isset($args['api']) ? $args['api'] : array(); - - parent::__construct($args); - } - - /** - * @access public - */ - public function before() { - if ( !empty($this->api) ) - $this->upgrader->strings['process_success'] = sprintf( $this->upgrader->strings['process_success_specific'], $this->api->name, $this->api->version); - } - - /** - * @access public - */ - public function after() { - if ( empty($this->upgrader->result['destination_name']) ) - return; - - $theme_info = $this->upgrader->theme_info(); - if ( empty( $theme_info ) ) - return; - - $name = $theme_info->display('Name'); - $stylesheet = $this->upgrader->result['destination_name']; - $template = $theme_info->get_template(); - - $activate_link = add_query_arg( array( - 'action' => 'activate', - 'template' => urlencode( $template ), - 'stylesheet' => urlencode( $stylesheet ), - ), admin_url('themes.php') ); - $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $stylesheet ); - - $install_actions = array(); - - if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { - $install_actions['preview'] = '' . sprintf( __( 'Live Preview “%s”' ), $name ) . ''; - } - $install_actions['activate'] = '' . sprintf( __( 'Activate “%s”' ), $name ) . ''; - - if ( is_network_admin() && current_user_can( 'manage_network_themes' ) ) - $install_actions['network_enable'] = '' . __( 'Network Enable' ) . ''; - - if ( $this->type == 'web' ) - $install_actions['themes_page'] = '' . __( 'Return to Theme Installer' ) . ''; - elseif ( current_user_can( 'switch_themes' ) || current_user_can( 'edit_theme_options' ) ) - $install_actions['themes_page'] = '' . __( 'Return to Themes page' ) . ''; - - if ( ! $this->result || is_wp_error($this->result) || is_network_admin() || ! current_user_can( 'switch_themes' ) ) - unset( $install_actions['activate'], $install_actions['preview'] ); - - /** - * Filter the list of action links available following a single theme installation. - * - * @since 2.8.0 - * - * @param array $install_actions Array of theme action links. - * @param object $api Object containing WordPress.org API theme data. - * @param string $stylesheet Theme directory name. - * @param WP_Theme $theme_info Theme object. - */ - $install_actions = apply_filters( 'install_theme_complete_actions', $install_actions, $this->api, $stylesheet, $theme_info ); - if ( ! empty($install_actions) ) - $this->feedback(implode(' | ', (array)$install_actions)); - } -} - -/** - * Theme Upgrader Skin for WordPress Theme Upgrades. - * - * @package WordPress - * @subpackage Upgrader - * @since 2.8.0 - */ -class Theme_Upgrader_Skin extends WP_Upgrader_Skin { - public $theme = ''; - - /** - * - * @param array $args - */ - public function __construct($args = array()) { - $defaults = array( 'url' => '', 'theme' => '', 'nonce' => '', 'title' => __('Update Theme') ); - $args = wp_parse_args($args, $defaults); - - $this->theme = $args['theme']; - - parent::__construct($args); - } - - /** - * @access public - */ - public function after() { - $this->decrement_update_count( 'theme' ); - - $update_actions = array(); - if ( ! empty( $this->upgrader->result['destination_name'] ) && $theme_info = $this->upgrader->theme_info() ) { - $name = $theme_info->display('Name'); - $stylesheet = $this->upgrader->result['destination_name']; - $template = $theme_info->get_template(); - - $activate_link = add_query_arg( array( - 'action' => 'activate', - 'template' => urlencode( $template ), - 'stylesheet' => urlencode( $stylesheet ), - ), admin_url('themes.php') ); - $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $stylesheet ); - - if ( get_stylesheet() == $stylesheet ) { - if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { - $update_actions['preview'] = '' . sprintf( __( 'Customize “%s”' ), $name ) . ''; - } - } elseif ( current_user_can( 'switch_themes' ) ) { - if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { - $update_actions['preview'] .= '' . sprintf( __( 'Live Preview “%s”' ), $name ) . ''; - } - $update_actions['activate'] = '' . sprintf( __( 'Activate “%s”' ), $name ) . ''; - } - - if ( ! $this->result || is_wp_error( $this->result ) || is_network_admin() ) - unset( $update_actions['preview'], $update_actions['activate'] ); - } - - $update_actions['themes_page'] = '' . __( 'Return to Themes page' ) . ''; - - /** - * Filter the list of action links available following a single theme update. - * - * @since 2.8.0 - * - * @param array $update_actions Array of theme action links. - * @param string $theme Theme directory name. - */ - $update_actions = apply_filters( 'update_theme_complete_actions', $update_actions, $this->theme ); - - if ( ! empty($update_actions) ) - $this->feedback(implode(' | ', (array)$update_actions)); - } -} - -/** - * Translation Upgrader Skin for WordPress Translation Upgrades. - * - * @package WordPress - * @subpackage Upgrader - * @since 3.7.0 - */ -class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin { - public $language_update = null; - public $done_header = false; - public $done_footer = false; - public $display_footer_actions = true; - - /** - * - * @param array $args - */ - public function __construct( $args = array() ) { - $defaults = array( 'url' => '', 'nonce' => '', 'title' => __( 'Update Translations' ), 'skip_header_footer' => false ); - $args = wp_parse_args( $args, $defaults ); - if ( $args['skip_header_footer'] ) { - $this->done_header = true; - $this->done_footer = true; - $this->display_footer_actions = false; - } - parent::__construct( $args ); - } - - /** - * @access public - */ - public function before() { - $name = $this->upgrader->get_name_for_update( $this->language_update ); - - echo '
'; - - printf( '

' . __( 'Updating translations for %1$s (%2$s)…' ) . '

', $name, $this->language_update->language ); - } - - /** - * - * @param string|WP_Error $error - */ - public function error( $error ) { - echo '
'; - parent::error( $error ); - echo '
'; - } - - /** - * @access public - */ - public function after() { - echo '
'; - } - - /** - * @access public - */ - public function bulk_footer() { - $this->decrement_update_count( 'translation' ); - $update_actions = array(); - $update_actions['updates_page'] = '' . __( 'Return to WordPress Updates page' ) . ''; - - /** - * Filter the list of action links available following a translations update. - * - * @since 3.7.0 - * - * @param array $update_actions Array of translations update links. - */ - $update_actions = apply_filters( 'update_translations_complete_actions', $update_actions ); - - if ( $update_actions && $this->display_footer_actions ) - $this->feedback( implode( ' | ', $update_actions ) ); - } -} - -/** - * Upgrader Skin for Automatic WordPress Upgrades - * - * This skin is designed to be used when no output is intended, all output - * is captured and stored for the caller to process and log/email/discard. - * - * @package WordPress - * @subpackage Upgrader - * @since 3.7.0 - */ -class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { - protected $messages = array(); - - /** - * - * @param bool $error - * @param string $context - * @param bool $allow_relaxed_file_ownership - * @return bool - */ - public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) { - if ( $context ) { - $this->options['context'] = $context; - } - // TODO: fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version - // This will output a credentials form in event of failure, We don't want that, so just hide with a buffer - ob_start(); - $result = parent::request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership ); - ob_end_clean(); - return $result; - } - - /** - * @access public - * - * @return array - */ - public function get_upgrade_messages() { - return $this->messages; - } - - /** - * @param string|array|WP_Error $data - */ - public function feedback( $data ) { - if ( is_wp_error( $data ) ) { - $string = $data->get_error_message(); - } elseif ( is_array( $data ) ) { - return; - } else { - $string = $data; - } - if ( ! empty( $this->upgrader->strings[ $string ] ) ) - $string = $this->upgrader->strings[ $string ]; - - if ( strpos( $string, '%' ) !== false ) { - $args = func_get_args(); - $args = array_splice( $args, 1 ); - if ( ! empty( $args ) ) - $string = vsprintf( $string, $args ); - } - - $string = trim( $string ); - - // Only allow basic HTML in the messages, as it'll be used in emails/logs rather than direct browser output. - $string = wp_kses( $string, array( - 'a' => array( - 'href' => true - ), - 'br' => true, - 'em' => true, - 'strong' => true, - ) ); - - if ( empty( $string ) ) - return; - - $this->messages[] = $string; - } - - /** - * @access public - */ - public function header() { - ob_start(); - } - - /** - * @access public - */ - public function footer() { - $output = ob_get_clean(); - if ( ! empty( $output ) ) - $this->feedback( $output ); - } -} diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php deleted file mode 100644 index 235df514c1..0000000000 --- a/wp-admin/includes/class-wp-upgrader.php +++ /dev/null @@ -1,3402 +0,0 @@ -skin = new WP_Upgrader_Skin(); - else - $this->skin = $skin; - } - - /** - * Initialize the upgrader. - * - * This will set the relationship between the skin being used and this upgrader, - * and also add the generic strings to `WP_Upgrader::$strings`. - * - * @since 2.8.0 - */ - public function init() { - $this->skin->set_upgrader($this); - $this->generic_strings(); - } - - /** - * Add the generic strings to WP_Upgrader::$strings. - * - * @since 2.8.0 - */ - public function generic_strings() { - $this->strings['bad_request'] = __('Invalid Data provided.'); - $this->strings['fs_unavailable'] = __('Could not access filesystem.'); - $this->strings['fs_error'] = __('Filesystem error.'); - $this->strings['fs_no_root_dir'] = __('Unable to locate WordPress Root directory.'); - $this->strings['fs_no_content_dir'] = __('Unable to locate WordPress Content directory (wp-content).'); - $this->strings['fs_no_plugins_dir'] = __('Unable to locate WordPress Plugin directory.'); - $this->strings['fs_no_themes_dir'] = __('Unable to locate WordPress Theme directory.'); - /* translators: %s: directory name */ - $this->strings['fs_no_folder'] = __('Unable to locate needed folder (%s).'); - - $this->strings['download_failed'] = __('Download failed.'); - $this->strings['installing_package'] = __('Installing the latest version…'); - $this->strings['no_files'] = __('The package contains no files.'); - $this->strings['folder_exists'] = __('Destination folder already exists.'); - $this->strings['mkdir_failed'] = __('Could not create directory.'); - $this->strings['incompatible_archive'] = __('The package could not be installed.'); - $this->strings['files_not_writable'] = __( 'The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.' ); - - $this->strings['maintenance_start'] = __('Enabling Maintenance mode…'); - $this->strings['maintenance_end'] = __('Disabling Maintenance mode…'); - } - - /** - * Connect to the filesystem. - * - * @since 2.8.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param array $directories Optional. A list of directories. If any of these do - * not exist, a {@see WP_Error} object will be returned. - * Default empty array. - * @param bool $allow_relaxed_file_ownership Whether to allow relaxed file ownership. - * Default false. - * @return bool|WP_Error True if able to connect, false or a {@see WP_Error} otherwise. - */ - public function fs_connect( $directories = array(), $allow_relaxed_file_ownership = false ) { - global $wp_filesystem; - - if ( false === ( $credentials = $this->skin->request_filesystem_credentials( false, $directories[0], $allow_relaxed_file_ownership ) ) ) { - return false; - } - - if ( ! WP_Filesystem( $credentials, $directories[0], $allow_relaxed_file_ownership ) ) { - $error = true; - if ( is_object($wp_filesystem) && $wp_filesystem->errors->get_error_code() ) - $error = $wp_filesystem->errors; - // Failed to connect, Error and request again - $this->skin->request_filesystem_credentials( $error, $directories[0], $allow_relaxed_file_ownership ); - return false; - } - - if ( ! is_object($wp_filesystem) ) - return new WP_Error('fs_unavailable', $this->strings['fs_unavailable'] ); - - if ( is_wp_error($wp_filesystem->errors) && $wp_filesystem->errors->get_error_code() ) - return new WP_Error('fs_error', $this->strings['fs_error'], $wp_filesystem->errors); - - foreach ( (array)$directories as $dir ) { - switch ( $dir ) { - case ABSPATH: - if ( ! $wp_filesystem->abspath() ) - return new WP_Error('fs_no_root_dir', $this->strings['fs_no_root_dir']); - break; - case WP_CONTENT_DIR: - if ( ! $wp_filesystem->wp_content_dir() ) - return new WP_Error('fs_no_content_dir', $this->strings['fs_no_content_dir']); - break; - case WP_PLUGIN_DIR: - if ( ! $wp_filesystem->wp_plugins_dir() ) - return new WP_Error('fs_no_plugins_dir', $this->strings['fs_no_plugins_dir']); - break; - case get_theme_root(): - if ( ! $wp_filesystem->wp_themes_dir() ) - return new WP_Error('fs_no_themes_dir', $this->strings['fs_no_themes_dir']); - break; - default: - if ( ! $wp_filesystem->find_folder($dir) ) - return new WP_Error( 'fs_no_folder', sprintf( $this->strings['fs_no_folder'], esc_html( basename( $dir ) ) ) ); - break; - } - } - return true; - } //end fs_connect(); - - /** - * Download a package. - * - * @since 2.8.0 - * - * @param string $package The URI of the package. If this is the full path to an - * existing local file, it will be returned untouched. - * @return string|WP_Error The full path to the downloaded package file, or a {@see WP_Error} object. - */ - public function download_package( $package ) { - - /** - * Filter whether to return the package. - * - * @since 3.7.0 - * - * @param bool $reply Whether to bail without returning the package. - * Default false. - * @param string $package The package file name. - * @param WP_Upgrader $this The WP_Upgrader instance. - */ - $reply = apply_filters( 'upgrader_pre_download', false, $package, $this ); - if ( false !== $reply ) - return $reply; - - if ( ! preg_match('!^(http|https|ftp)://!i', $package) && file_exists($package) ) //Local file or remote? - return $package; //must be a local file.. - - if ( empty($package) ) - return new WP_Error('no_package', $this->strings['no_package']); - - $this->skin->feedback('downloading_package', $package); - - $download_file = download_url($package); - - if ( is_wp_error($download_file) ) - return new WP_Error('download_failed', $this->strings['download_failed'], $download_file->get_error_message()); - - return $download_file; - } - - /** - * Unpack a compressed package file. - * - * @since 2.8.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param string $package Full path to the package file. - * @param bool $delete_package Optional. Whether to delete the package file after attempting - * to unpack it. Default true. - * @return string|WP_Error The path to the unpacked contents, or a {@see WP_Error} on failure. - */ - public function unpack_package( $package, $delete_package = true ) { - global $wp_filesystem; - - $this->skin->feedback('unpack_package'); - - $upgrade_folder = $wp_filesystem->wp_content_dir() . 'upgrade/'; - - //Clean up contents of upgrade directory beforehand. - $upgrade_files = $wp_filesystem->dirlist($upgrade_folder); - if ( !empty($upgrade_files) ) { - foreach ( $upgrade_files as $file ) - $wp_filesystem->delete($upgrade_folder . $file['name'], true); - } - - // We need a working directory - Strip off any .tmp or .zip suffixes - $working_dir = $upgrade_folder . basename( basename( $package, '.tmp' ), '.zip' ); - - // Clean up working directory - if ( $wp_filesystem->is_dir($working_dir) ) - $wp_filesystem->delete($working_dir, true); - - // Unzip package to working directory - $result = unzip_file( $package, $working_dir ); - - // Once extracted, delete the package if required. - if ( $delete_package ) - unlink($package); - - if ( is_wp_error($result) ) { - $wp_filesystem->delete($working_dir, true); - if ( 'incompatible_archive' == $result->get_error_code() ) { - return new WP_Error( 'incompatible_archive', $this->strings['incompatible_archive'], $result->get_error_data() ); - } - return $result; - } - - return $working_dir; - } - - /** - * Clears the directory where this item is going to be installed into. - * - * @since 4.3.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param string $remote_destination The location on the remote filesystem to be cleared - * @return bool|WP_Error True upon success, WP_Error on failure. - */ - public function clear_destination( $remote_destination ) { - global $wp_filesystem; - - if ( ! $wp_filesystem->exists( $remote_destination ) ) { - return true; - } - - // Check all files are writable before attempting to clear the destination. - $unwritable_files = array(); - - $_files = $wp_filesystem->dirlist( $remote_destination, true, true ); - - // Flatten the resulting array, iterate using each as we append to the array during iteration. - while ( $f = each( $_files ) ) { - $file = $f['value']; - $name = $f['key']; - - if ( ! isset( $file['files'] ) ) { - continue; - } - - foreach ( $file['files'] as $filename => $details ) { - $_files[ $name . '/' . $filename ] = $details; - } - } - - // Check writability. - foreach ( $_files as $filename => $file_details ) { - if ( ! $wp_filesystem->is_writable( $remote_destination . $filename ) ) { - - // Attempt to alter permissions to allow writes and try again. - $wp_filesystem->chmod( $remote_destination . $filename, ( 'd' == $file_details['type'] ? FS_CHMOD_DIR : FS_CHMOD_FILE ) ); - if ( ! $wp_filesystem->is_writable( $remote_destination . $filename ) ) { - $unwritable_files[] = $filename; - } - } - } - - if ( ! empty( $unwritable_files ) ) { - return new WP_Error( 'files_not_writable', $this->strings['files_not_writable'], implode( ', ', $unwritable_files ) ); - } - - if ( ! $wp_filesystem->delete( $remote_destination, true ) ) { - return new WP_Error( 'remove_old_failed', $this->strings['remove_old_failed'] ); - } - - return true; - } - - /** - * Install a package. - * - * Copies the contents of a package form a source directory, and installs them in - * a destination directory. Optionally removes the source. It can also optionally - * clear out the destination folder if it already exists. - * - * @since 2.8.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * @global array $wp_theme_directories - * - * @param array|string $args { - * Optional. Array or string of arguments for installing a package. Default empty array. - * - * @type string $source Required path to the package source. Default empty. - * @type string $destination Required path to a folder to install the package in. - * Default empty. - * @type bool $clear_destination Whether to delete any files already in the destination - * folder. Default false. - * @type bool $clear_working Whether to delete the files form the working directory - * after copying to the destination. Default false. - * @type bool $abort_if_destination_exists Whether to abort the installation if - * the destination folder already exists. Default true. - * @type array $hook_extra Extra arguments to pass to the filter hooks called by - * {@see WP_Upgrader::install_package()}. Default empty array. - * } - * - * @return array|WP_Error The result (also stored in `WP_Upgrader:$result`), or a {@see WP_Error} on failure. - */ - public function install_package( $args = array() ) { - global $wp_filesystem, $wp_theme_directories; - - $defaults = array( - 'source' => '', // Please always pass this - 'destination' => '', // and this - 'clear_destination' => false, - 'clear_working' => false, - 'abort_if_destination_exists' => true, - 'hook_extra' => array() - ); - - $args = wp_parse_args($args, $defaults); - - // These were previously extract()'d. - $source = $args['source']; - $destination = $args['destination']; - $clear_destination = $args['clear_destination']; - - @set_time_limit( 300 ); - - if ( empty( $source ) || empty( $destination ) ) { - return new WP_Error( 'bad_request', $this->strings['bad_request'] ); - } - $this->skin->feedback( 'installing_package' ); - - /** - * Filter the install response before the installation has started. - * - * Returning a truthy value, or one that could be evaluated as a WP_Error - * will effectively short-circuit the installation, returning that value - * instead. - * - * @since 2.8.0 - * - * @param bool|WP_Error $response Response. - * @param array $hook_extra Extra arguments passed to hooked filters. - */ - $res = apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] ); - if ( is_wp_error( $res ) ) { - return $res; - } - - //Retain the Original source and destinations - $remote_source = $args['source']; - $local_destination = $destination; - - $source_files = array_keys( $wp_filesystem->dirlist( $remote_source ) ); - $remote_destination = $wp_filesystem->find_folder( $local_destination ); - - //Locate which directory to copy to the new folder, This is based on the actual folder holding the files. - if ( 1 == count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) { //Only one folder? Then we want its contents. - $source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] ); - } elseif ( count( $source_files ) == 0 ) { - return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] ); // There are no files? - } else { //It's only a single file, the upgrader will use the foldername of this file as the destination folder. foldername is based on zip filename. - $source = trailingslashit( $args['source'] ); - } - - /** - * Filter the source file location for the upgrade package. - * - * @since 2.8.0 - * - * @param string $source File source location. - * @param string $remote_source Remove file source location. - * @param WP_Upgrader $this WP_Upgrader instance. - */ - $source = apply_filters( 'upgrader_source_selection', $source, $remote_source, $this ); - if ( is_wp_error( $source ) ) { - return $source; - } - - // Has the source location changed? If so, we need a new source_files list. - if ( $source !== $remote_source ) { - $source_files = array_keys( $wp_filesystem->dirlist( $source ) ); - } - /* - * Protection against deleting files in any important base directories. - * Theme_Upgrader & Plugin_Upgrader also trigger this, as they pass the - * destination directory (WP_PLUGIN_DIR / wp-content/themes) intending - * to copy the directory into the directory, whilst they pass the source - * as the actual files to copy. - */ - $protected_directories = array( ABSPATH, WP_CONTENT_DIR, WP_PLUGIN_DIR, WP_CONTENT_DIR . '/themes' ); - - if ( is_array( $wp_theme_directories ) ) { - $protected_directories = array_merge( $protected_directories, $wp_theme_directories ); - } - if ( in_array( $destination, $protected_directories ) ) { - $remote_destination = trailingslashit( $remote_destination ) . trailingslashit( basename( $source ) ); - $destination = trailingslashit( $destination ) . trailingslashit( basename( $source ) ); - } - - if ( $clear_destination ) { - // We're going to clear the destination if there's something there - $this->skin->feedback('remove_old'); - - $removed = $this->clear_destination( $remote_destination ); - - /** - * Filter whether the upgrader cleared the destination. - * - * @since 2.8.0 - * - * @param mixed $removed Whether the destination was cleared. true on success, WP_Error on failure - * @param string $local_destination The local package destination. - * @param string $remote_destination The remote package destination. - * @param array $hook_extra Extra arguments passed to hooked filters. - */ - $removed = apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] ); - - if ( is_wp_error( $removed ) ) { - return $removed; - } - } elseif ( $args['abort_if_destination_exists'] && $wp_filesystem->exists($remote_destination) ) { - //If we're not clearing the destination folder and something exists there already, Bail. - //But first check to see if there are actually any files in the folder. - $_files = $wp_filesystem->dirlist($remote_destination); - if ( ! empty($_files) ) { - $wp_filesystem->delete($remote_source, true); //Clear out the source files. - return new WP_Error('folder_exists', $this->strings['folder_exists'], $remote_destination ); - } - } - - //Create destination if needed - if ( ! $wp_filesystem->exists( $remote_destination ) ) { - if ( ! $wp_filesystem->mkdir( $remote_destination, FS_CHMOD_DIR ) ) { - return new WP_Error( 'mkdir_failed_destination', $this->strings['mkdir_failed'], $remote_destination ); - } - } - // Copy new version of item into place. - $result = copy_dir($source, $remote_destination); - if ( is_wp_error($result) ) { - if ( $args['clear_working'] ) { - $wp_filesystem->delete( $remote_source, true ); - } - return $result; - } - - //Clear the Working folder? - if ( $args['clear_working'] ) { - $wp_filesystem->delete( $remote_source, true ); - } - - $destination_name = basename( str_replace($local_destination, '', $destination) ); - if ( '.' == $destination_name ) { - $destination_name = ''; - } - - $this->result = compact( 'source', 'source_files', 'destination', 'destination_name', 'local_destination', 'remote_destination', 'clear_destination' ); - - /** - * Filter the install response after the installation has finished. - * - * @since 2.8.0 - * - * @param bool $response Install response. - * @param array $hook_extra Extra arguments passed to hooked filters. - * @param array $result Installation result data. - */ - $res = apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result ); - - if ( is_wp_error($res) ) { - $this->result = $res; - return $res; - } - - //Bombard the calling function will all the info which we've just used. - return $this->result; - } - - /** - * Run an upgrade/install. - * - * Attempts to download the package (if it is not a local file), unpack it, and - * install it in the destination folder. - * - * @since 2.8.0 - * - * @param array $options { - * Array or string of arguments for upgrading/installing a package. - * - * @type string $package The full path or URI of the package to install. - * Default empty. - * @type string $destination The full path to the destination folder. - * Default empty. - * @type bool $clear_destination Whether to delete any files already in the - * destination folder. Default false. - * @type bool $clear_working Whether to delete the files form the working - * directory after copying to the destination. - * Default false. - * @type bool $abort_if_destination_exists Whether to abort the installation if the destination - * folder already exists. When true, `$clear_destination` - * should be false. Default true. - * @type bool $is_multi Whether this run is one of multiple upgrade/install - * actions being performed in bulk. When true, the skin - * {@see WP_Upgrader::header()} and {@see WP_Upgrader::footer()} - * aren't called. Default false. - * @type array $hook_extra Extra arguments to pass to the filter hooks called by - * {@see WP_Upgrader::run()}. - * } - * - * @return array|false|WP_error The result from self::install_package() on success, otherwise a WP_Error, - * or false if unable to connect to the filesystem. - */ - public function run( $options ) { - - $defaults = array( - 'package' => '', // Please always pass this. - 'destination' => '', // And this - 'clear_destination' => false, - 'abort_if_destination_exists' => true, // Abort if the Destination directory exists, Pass clear_destination as false please - 'clear_working' => true, - 'is_multi' => false, - 'hook_extra' => array() // Pass any extra $hook_extra args here, this will be passed to any hooked filters. - ); - - $options = wp_parse_args( $options, $defaults ); - - /** - * Filter the package options before running an update. - * - * @since 4.3.0 - * - * @param array $options { - * Options used by the upgrader. - * - * @type string $package Package for update. - * @type string $destination Update location. - * @type bool $clear_destination Clear the destination resource. - * @type bool $clear_working Clear the working resource. - * @type bool $abort_if_destination_exists Abort if the Destination directory exists. - * @type bool $is_multi Whether the upgrader is running multiple times. - * @type array $hook_extra Extra hook arguments. - * } - */ - $options = apply_filters( 'upgrader_package_options', $options ); - - if ( ! $options['is_multi'] ) { // call $this->header separately if running multiple times - $this->skin->header(); - } - - // Connect to the Filesystem first. - $res = $this->fs_connect( array( WP_CONTENT_DIR, $options['destination'] ) ); - // Mainly for non-connected filesystem. - if ( ! $res ) { - if ( ! $options['is_multi'] ) { - $this->skin->footer(); - } - return false; - } - - $this->skin->before(); - - if ( is_wp_error($res) ) { - $this->skin->error($res); - $this->skin->after(); - if ( ! $options['is_multi'] ) { - $this->skin->footer(); - } - return $res; - } - - //Download the package (Note, This just returns the filename of the file if the package is a local file) - $download = $this->download_package( $options['package'] ); - if ( is_wp_error($download) ) { - $this->skin->error($download); - $this->skin->after(); - if ( ! $options['is_multi'] ) { - $this->skin->footer(); - } - return $download; - } - - $delete_package = ( $download != $options['package'] ); // Do not delete a "local" file - - //Unzips the file into a temporary directory - $working_dir = $this->unpack_package( $download, $delete_package ); - if ( is_wp_error($working_dir) ) { - $this->skin->error($working_dir); - $this->skin->after(); - if ( ! $options['is_multi'] ) { - $this->skin->footer(); - } - return $working_dir; - } - - //With the given options, this installs it to the destination directory. - $result = $this->install_package( array( - 'source' => $working_dir, - 'destination' => $options['destination'], - 'clear_destination' => $options['clear_destination'], - 'abort_if_destination_exists' => $options['abort_if_destination_exists'], - 'clear_working' => $options['clear_working'], - 'hook_extra' => $options['hook_extra'] - ) ); - - $this->skin->set_result($result); - if ( is_wp_error($result) ) { - $this->skin->error($result); - $this->skin->feedback('process_failed'); - } else { - //Install Succeeded - $this->skin->feedback('process_success'); - } - - $this->skin->after(); - - if ( ! $options['is_multi'] ) { - - /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ - do_action( 'upgrader_process_complete', $this, $options['hook_extra'] ); - $this->skin->footer(); - } - - return $result; - } - - /** - * Toggle maintenance mode for the site. - * - * Creates/deletes the maintenance file to enable/disable maintenance mode. - * - * @since 2.8.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param bool $enable True to enable maintenance mode, false to disable. - */ - public function maintenance_mode( $enable = false ) { - global $wp_filesystem; - $file = $wp_filesystem->abspath() . '.maintenance'; - if ( $enable ) { - $this->skin->feedback('maintenance_start'); - // Create maintenance file to signal that we are upgrading - $maintenance_string = ''; - $wp_filesystem->delete($file); - $wp_filesystem->put_contents($file, $maintenance_string, FS_CHMOD_FILE); - } elseif ( ! $enable && $wp_filesystem->exists( $file ) ) { - $this->skin->feedback('maintenance_end'); - $wp_filesystem->delete($file); - } - } - -} - -/** - * Plugin Upgrader class for WordPress Plugins, It is designed to upgrade/install plugins from a local zip, remote zip URL, or uploaded zip file. - * - * @package WordPress - * @subpackage Upgrader - * @since 2.8.0 - */ -class Plugin_Upgrader extends WP_Upgrader { - - /** - * Plugin upgrade result. - * - * @since 2.8.0 - * @var array|WP_Error $result - * @see WP_Upgrader::$result - */ - public $result; - - /** - * Whether a bulk upgrade/install is being performed. - * - * @since 2.9.0 - * @var bool $bulk - */ - public $bulk = false; - - /** - * Initialize the upgrade strings. - * - * @since 2.8.0 - */ - public function upgrade_strings() { - $this->strings['up_to_date'] = __('The plugin is at the latest version.'); - $this->strings['no_package'] = __('Update package not available.'); - $this->strings['downloading_package'] = __('Downloading update from %s…'); - $this->strings['unpack_package'] = __('Unpacking the update…'); - $this->strings['remove_old'] = __('Removing the old version of the plugin…'); - $this->strings['remove_old_failed'] = __('Could not remove the old plugin.'); - $this->strings['process_failed'] = __('Plugin update failed.'); - $this->strings['process_success'] = __('Plugin updated successfully.'); - $this->strings['process_bulk_success'] = __('Plugins updated successfully.'); - } - - /** - * Initialize the install strings. - * - * @since 2.8.0 - */ - public function install_strings() { - $this->strings['no_package'] = __('Install package not available.'); - $this->strings['downloading_package'] = __('Downloading install package from %s…'); - $this->strings['unpack_package'] = __('Unpacking the package…'); - $this->strings['installing_package'] = __('Installing the plugin…'); - $this->strings['no_files'] = __('The plugin contains no files.'); - $this->strings['process_failed'] = __('Plugin install failed.'); - $this->strings['process_success'] = __('Plugin installed successfully.'); - } - - /** - * Install a plugin package. - * - * @since 2.8.0 - * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. - * - * @param string $package The full local path or URI of the package. - * @param array $args { - * Optional. Other arguments for installing a plugin package. Default empty array. - * - * @type bool $clear_update_cache Whether to clear the plugin updates cache if successful. - * Default true. - * } - * - * @return bool|WP_Error True if the install was successful, false or a WP_Error otherwise. - */ - public function install( $package, $args = array() ) { - - $defaults = array( - 'clear_update_cache' => true, - ); - $parsed_args = wp_parse_args( $args, $defaults ); - - $this->init(); - $this->install_strings(); - - add_filter('upgrader_source_selection', array($this, 'check_package') ); - - $this->run( array( - 'package' => $package, - 'destination' => WP_PLUGIN_DIR, - 'clear_destination' => false, // Do not overwrite files. - 'clear_working' => true, - 'hook_extra' => array( - 'type' => 'plugin', - 'action' => 'install', - ) - ) ); - - remove_filter('upgrader_source_selection', array($this, 'check_package') ); - - if ( ! $this->result || is_wp_error($this->result) ) - return $this->result; - - // Force refresh of plugin update information - wp_clean_plugins_cache( $parsed_args['clear_update_cache'] ); - - return true; - } - - /** - * Upgrade a plugin. - * - * @since 2.8.0 - * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. - * - * @param string $plugin The basename path to the main plugin file. - * @param array $args { - * Optional. Other arguments for upgrading a plugin package. Defualt empty array. - * - * @type bool $clear_update_cache Whether to clear the plugin updates cache if successful. - * Default true. - * } - * @return bool|WP_Error True if the upgrade was successful, false or a {@see WP_Error} object otherwise. - */ - public function upgrade( $plugin, $args = array() ) { - - $defaults = array( - 'clear_update_cache' => true, - ); - $parsed_args = wp_parse_args( $args, $defaults ); - - $this->init(); - $this->upgrade_strings(); - - $current = get_site_transient( 'update_plugins' ); - if ( !isset( $current->response[ $plugin ] ) ) { - $this->skin->before(); - $this->skin->set_result(false); - $this->skin->error('up_to_date'); - $this->skin->after(); - return false; - } - - // Get the URL to the zip file - $r = $current->response[ $plugin ]; - - add_filter('upgrader_pre_install', array($this, 'deactivate_plugin_before_upgrade'), 10, 2); - add_filter('upgrader_clear_destination', array($this, 'delete_old_plugin'), 10, 4); - //'source_selection' => array($this, 'source_selection'), //there's a trac ticket to move up the directory for zip's which are made a bit differently, useful for non-.org plugins. - - $this->run( array( - 'package' => $r->package, - 'destination' => WP_PLUGIN_DIR, - 'clear_destination' => true, - 'clear_working' => true, - 'hook_extra' => array( - 'plugin' => $plugin, - 'type' => 'plugin', - 'action' => 'update', - ), - ) ); - - // Cleanup our hooks, in case something else does a upgrade on this connection. - remove_filter('upgrader_pre_install', array($this, 'deactivate_plugin_before_upgrade')); - remove_filter('upgrader_clear_destination', array($this, 'delete_old_plugin')); - - if ( ! $this->result || is_wp_error($this->result) ) - return $this->result; - - // Force refresh of plugin update information - wp_clean_plugins_cache( $parsed_args['clear_update_cache'] ); - - return true; - } - - /** - * Bulk upgrade several plugins at once. - * - * @since 2.8.0 - * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. - * - * @param array $plugins Array of the basename paths of the plugins' main files. - * @param array $args { - * Optional. Other arguments for upgrading several plugins at once. Default empty array. - * - * @type bool $clear_update_cache Whether to clear the plugin updates cache if successful. - * Default true. - * } - * - * @return array|false An array of results indexed by plugin file, or false if unable to connect to the filesystem. - */ - public function bulk_upgrade( $plugins, $args = array() ) { - - $defaults = array( - 'clear_update_cache' => true, - ); - $parsed_args = wp_parse_args( $args, $defaults ); - - $this->init(); - $this->bulk = true; - $this->upgrade_strings(); - - $current = get_site_transient( 'update_plugins' ); - - add_filter('upgrader_clear_destination', array($this, 'delete_old_plugin'), 10, 4); - - $this->skin->header(); - - // Connect to the Filesystem first. - $res = $this->fs_connect( array(WP_CONTENT_DIR, WP_PLUGIN_DIR) ); - if ( ! $res ) { - $this->skin->footer(); - return false; - } - - $this->skin->bulk_header(); - - // Only start maintenance mode if: - // - running Multisite and there are one or more plugins specified, OR - // - a plugin with an update available is currently active. - // @TODO: For multisite, maintenance mode should only kick in for individual sites if at all possible. - $maintenance = ( is_multisite() && ! empty( $plugins ) ); - foreach ( $plugins as $plugin ) - $maintenance = $maintenance || ( is_plugin_active( $plugin ) && isset( $current->response[ $plugin] ) ); - if ( $maintenance ) - $this->maintenance_mode(true); - - $results = array(); - - $this->update_count = count($plugins); - $this->update_current = 0; - foreach ( $plugins as $plugin ) { - $this->update_current++; - $this->skin->plugin_info = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, false, true); - - if ( !isset( $current->response[ $plugin ] ) ) { - $this->skin->set_result('up_to_date'); - $this->skin->before(); - $this->skin->feedback('up_to_date'); - $this->skin->after(); - $results[$plugin] = true; - continue; - } - - // Get the URL to the zip file - $r = $current->response[ $plugin ]; - - $this->skin->plugin_active = is_plugin_active($plugin); - - $result = $this->run( array( - 'package' => $r->package, - 'destination' => WP_PLUGIN_DIR, - 'clear_destination' => true, - 'clear_working' => true, - 'is_multi' => true, - 'hook_extra' => array( - 'plugin' => $plugin - ) - ) ); - - $results[$plugin] = $this->result; - - // Prevent credentials auth screen from displaying multiple times - if ( false === $result ) - break; - } //end foreach $plugins - - $this->maintenance_mode(false); - - /** - * Fires when the bulk upgrader process is complete. - * - * @since 3.6.0 - * - * @param Plugin_Upgrader $this Plugin_Upgrader instance. In other contexts, $this, might - * be a Theme_Upgrader or Core_Upgrade instance. - * @param array $data { - * Array of bulk item update data. - * - * @type string $action Type of action. Default 'update'. - * @type string $type Type of update process. Accepts 'plugin', 'theme', or 'core'. - * @type bool $bulk Whether the update process is a bulk update. Default true. - * @type array $packages Array of plugin, theme, or core packages to update. - * } - */ - do_action( 'upgrader_process_complete', $this, array( - 'action' => 'update', - 'type' => 'plugin', - 'bulk' => true, - 'plugins' => $plugins, - ) ); - - $this->skin->bulk_footer(); - - $this->skin->footer(); - - // Cleanup our hooks, in case something else does a upgrade on this connection. - remove_filter('upgrader_clear_destination', array($this, 'delete_old_plugin')); - - // Force refresh of plugin update information - wp_clean_plugins_cache( $parsed_args['clear_update_cache'] ); - - return $results; - } - - /** - * Check a source package to be sure it contains a plugin. - * - * This function is added to the {@see 'upgrader_source_selection'} filter by - * {@see Plugin_Upgrader::install()}. - * - * @since 3.3.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param string $source The path to the downloaded package source. - * @return string|WP_Error The source as passed, or a {@see WP_Error} object if no plugins were found. - */ - public function check_package($source) { - global $wp_filesystem; - - if ( is_wp_error($source) ) - return $source; - - $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit(WP_CONTENT_DIR), $source); - if ( ! is_dir($working_directory) ) // Sanity check, if the above fails, let's not prevent installation. - return $source; - - // Check the folder contains at least 1 valid plugin. - $plugins_found = false; - $files = glob( $working_directory . '*.php' ); - if ( $files ) { - foreach ( $files as $file ) { - $info = get_plugin_data( $file, false, false ); - if ( ! empty( $info['Name'] ) ) { - $plugins_found = true; - break; - } - } - } - - if ( ! $plugins_found ) - return new WP_Error( 'incompatible_archive_no_plugins', $this->strings['incompatible_archive'], __( 'No valid plugins were found.' ) ); - - return $source; - } - - /** - * Retrieve the path to the file that contains the plugin info. - * - * This isn't used internally in the class, but is called by the skins. - * - * @since 2.8.0 - * - * @return string|false The full path to the main plugin file, or false. - */ - public function plugin_info() { - if ( ! is_array($this->result) ) - return false; - if ( empty($this->result['destination_name']) ) - return false; - - $plugin = get_plugins('/' . $this->result['destination_name']); //Ensure to pass with leading slash - if ( empty($plugin) ) - return false; - - $pluginfiles = array_keys($plugin); //Assume the requested plugin is the first in the list - - return $this->result['destination_name'] . '/' . $pluginfiles[0]; - } - - /** - * Deactivates a plugin before it is upgraded. - * - * Hooked to the {@see 'upgrader_pre_install'} filter by {@see Plugin_Upgrader::upgrade()}. - * - * @since 2.8.0 - * @since 4.1.0 Added a return value. - * - * @param bool|WP_Error $return Upgrade offer return. - * @param array $plugin Plugin package arguments. - * @return bool|WP_Error The passed in $return param or {@see WP_Error}. - */ - public function deactivate_plugin_before_upgrade($return, $plugin) { - - if ( is_wp_error($return) ) //Bypass. - return $return; - - // When in cron (background updates) don't deactivate the plugin, as we require a browser to reactivate it - if ( defined( 'DOING_CRON' ) && DOING_CRON ) - return $return; - - $plugin = isset($plugin['plugin']) ? $plugin['plugin'] : ''; - if ( empty($plugin) ) - return new WP_Error('bad_request', $this->strings['bad_request']); - - if ( is_plugin_active($plugin) ) { - //Deactivate the plugin silently, Prevent deactivation hooks from running. - deactivate_plugins($plugin, true); - } - - return $return; - } - - /** - * Delete the old plugin during an upgrade. - * - * Hooked to the {@see 'upgrader_clear_destination'} filter by - * {@see Plugin_Upgrader::upgrade()} and {@see Plugin_Upgrader::bulk_upgrade()}. - * - * @since 2.8.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param bool|WP_Error $removed - * @param string $local_destination - * @param string $remote_destination - * @param array $plugin - * @return WP_Error|bool - */ - public function delete_old_plugin($removed, $local_destination, $remote_destination, $plugin) { - global $wp_filesystem; - - if ( is_wp_error($removed) ) - return $removed; //Pass errors through. - - $plugin = isset($plugin['plugin']) ? $plugin['plugin'] : ''; - if ( empty($plugin) ) - return new WP_Error('bad_request', $this->strings['bad_request']); - - $plugins_dir = $wp_filesystem->wp_plugins_dir(); - $this_plugin_dir = trailingslashit( dirname($plugins_dir . $plugin) ); - - if ( ! $wp_filesystem->exists($this_plugin_dir) ) //If it's already vanished. - return $removed; - - // If plugin is in its own directory, recursively delete the directory. - if ( strpos($plugin, '/') && $this_plugin_dir != $plugins_dir ) //base check on if plugin includes directory separator AND that it's not the root plugin folder - $deleted = $wp_filesystem->delete($this_plugin_dir, true); - else - $deleted = $wp_filesystem->delete($plugins_dir . $plugin); - - if ( ! $deleted ) - return new WP_Error('remove_old_failed', $this->strings['remove_old_failed']); - - return true; - } -} - -/** - * Theme Upgrader class for WordPress Themes, It is designed to upgrade/install themes from a local zip, remote zip URL, or uploaded zip file. - * - * @package WordPress - * @subpackage Upgrader - * @since 2.8.0 - */ -class Theme_Upgrader extends WP_Upgrader { - - /** - * Result of the theme upgrade offer. - * - * @since 2.8.0 - * @var array|WP_Erorr $result - * @see WP_Upgrader::$result - */ - public $result; - - /** - * Whether multiple plugins are being upgraded/installed in bulk. - * - * @since 2.9.0 - * @var bool $bulk - */ - public $bulk = false; - - /** - * Initialize the upgrade strings. - * - * @since 2.8.0 - */ - public function upgrade_strings() { - $this->strings['up_to_date'] = __('The theme is at the latest version.'); - $this->strings['no_package'] = __('Update package not available.'); - $this->strings['downloading_package'] = __('Downloading update from %s…'); - $this->strings['unpack_package'] = __('Unpacking the update…'); - $this->strings['remove_old'] = __('Removing the old version of the theme…'); - $this->strings['remove_old_failed'] = __('Could not remove the old theme.'); - $this->strings['process_failed'] = __('Theme update failed.'); - $this->strings['process_success'] = __('Theme updated successfully.'); - } - - /** - * Initialize the install strings. - * - * @since 2.8.0 - */ - public function install_strings() { - $this->strings['no_package'] = __('Install package not available.'); - $this->strings['downloading_package'] = __('Downloading install package from %s…'); - $this->strings['unpack_package'] = __('Unpacking the package…'); - $this->strings['installing_package'] = __('Installing the theme…'); - $this->strings['no_files'] = __('The theme contains no files.'); - $this->strings['process_failed'] = __('Theme install failed.'); - $this->strings['process_success'] = __('Theme installed successfully.'); - /* translators: 1: theme name, 2: version */ - $this->strings['process_success_specific'] = __('Successfully installed the theme %1$s %2$s.'); - $this->strings['parent_theme_search'] = __('This theme requires a parent theme. Checking if it is installed…'); - /* translators: 1: theme name, 2: version */ - $this->strings['parent_theme_prepare_install'] = __('Preparing to install %1$s %2$s…'); - /* translators: 1: theme name, 2: version */ - $this->strings['parent_theme_currently_installed'] = __('The parent theme, %1$s %2$s, is currently installed.'); - /* translators: 1: theme name, 2: version */ - $this->strings['parent_theme_install_success'] = __('Successfully installed the parent theme, %1$s %2$s.'); - $this->strings['parent_theme_not_found'] = __('The parent theme could not be found. You will need to install the parent theme, %s, before you can use this child theme.'); - } - - /** - * Check if a child theme is being installed and we need to install its parent. - * - * Hooked to the {@see 'upgrader_post_install'} filter by {@see Theme_Upgrader::install()}. - * - * @since 3.4.0 - * - * @param bool $install_result - * @param array $hook_extra - * @param array $child_result - * @return type - */ - public function check_parent_theme_filter( $install_result, $hook_extra, $child_result ) { - // Check to see if we need to install a parent theme - $theme_info = $this->theme_info(); - - if ( ! $theme_info->parent() ) - return $install_result; - - $this->skin->feedback( 'parent_theme_search' ); - - if ( ! $theme_info->parent()->errors() ) { - $this->skin->feedback( 'parent_theme_currently_installed', $theme_info->parent()->display('Name'), $theme_info->parent()->display('Version') ); - // We already have the theme, fall through. - return $install_result; - } - - // We don't have the parent theme, let's install it. - $api = themes_api('theme_information', array('slug' => $theme_info->get('Template'), 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth. - - if ( ! $api || is_wp_error($api) ) { - $this->skin->feedback( 'parent_theme_not_found', $theme_info->get('Template') ); - // Don't show activate or preview actions after install - add_filter('install_theme_complete_actions', array($this, 'hide_activate_preview_actions') ); - return $install_result; - } - - // Backup required data we're going to override: - $child_api = $this->skin->api; - $child_success_message = $this->strings['process_success']; - - // Override them - $this->skin->api = $api; - $this->strings['process_success_specific'] = $this->strings['parent_theme_install_success'];//, $api->name, $api->version); - - $this->skin->feedback('parent_theme_prepare_install', $api->name, $api->version); - - add_filter('install_theme_complete_actions', '__return_false', 999); // Don't show any actions after installing the theme. - - // Install the parent theme - $parent_result = $this->run( array( - 'package' => $api->download_link, - 'destination' => get_theme_root(), - 'clear_destination' => false, //Do not overwrite files. - 'clear_working' => true - ) ); - - if ( is_wp_error($parent_result) ) - add_filter('install_theme_complete_actions', array($this, 'hide_activate_preview_actions') ); - - // Start cleaning up after the parents installation - remove_filter('install_theme_complete_actions', '__return_false', 999); - - // Reset child's result and data - $this->result = $child_result; - $this->skin->api = $child_api; - $this->strings['process_success'] = $child_success_message; - - return $install_result; - } - - /** - * Don't display the activate and preview actions to the user. - * - * Hooked to the {@see 'install_theme_complete_actions'} filter by - * {@see Theme_Upgrader::check_parent_theme_filter()} when installing - * a child theme and installing the parent theme fails. - * - * @since 3.4.0 - * - * @param array $actions Preview actions. - * @return array - */ - public function hide_activate_preview_actions( $actions ) { - unset($actions['activate'], $actions['preview']); - return $actions; - } - - /** - * Install a theme package. - * - * @since 2.8.0 - * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional. - * - * @param string $package The full local path or URI of the package. - * @param array $args { - * Optional. Other arguments for installing a theme package. Default empty array. - * - * @type bool $clear_update_cache Whether to clear the updates cache if successful. - * Default true. - * } - * - * @return bool|WP_Error True if the install was successful, false or a {@see WP_Error} object otherwise. - */ - public function install( $package, $args = array() ) { - - $defaults = array( - 'clear_update_cache' => true, - ); - $parsed_args = wp_parse_args( $args, $defaults ); - - $this->init(); - $this->install_strings(); - - add_filter('upgrader_source_selection', array($this, 'check_package') ); - add_filter('upgrader_post_install', array($this, 'check_parent_theme_filter'), 10, 3); - - $this->run( array( - 'package' => $package, - 'destination' => get_theme_root(), - 'clear_destination' => false, //Do not overwrite files. - 'clear_working' => true, - 'hook_extra' => array( - 'type' => 'theme', - 'action' => 'install', - ), - ) ); - - remove_filter('upgrader_source_selection', array($this, 'check_package') ); - remove_filter('upgrader_post_install', array($this, 'check_parent_theme_filter')); - - if ( ! $this->result || is_wp_error($this->result) ) - return $this->result; - - // Refresh the Theme Update information - wp_clean_themes_cache( $parsed_args['clear_update_cache'] ); - - return true; - } - - /** - * Upgrade a theme. - * - * @since 2.8.0 - * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional. - * - * @param string $theme The theme slug. - * @param array $args { - * Optional. Other arguments for upgrading a theme. Default empty array. - * - * @type bool $clear_update_cache Whether to clear the update cache if successful. - * Default true. - * } - * @return bool|WP_Error True if the upgrade was successful, false or a {@see WP_Error} object otherwise. - */ - public function upgrade( $theme, $args = array() ) { - - $defaults = array( - 'clear_update_cache' => true, - ); - $parsed_args = wp_parse_args( $args, $defaults ); - - $this->init(); - $this->upgrade_strings(); - - // Is an update available? - $current = get_site_transient( 'update_themes' ); - if ( !isset( $current->response[ $theme ] ) ) { - $this->skin->before(); - $this->skin->set_result(false); - $this->skin->error( 'up_to_date' ); - $this->skin->after(); - return false; - } - - $r = $current->response[ $theme ]; - - add_filter('upgrader_pre_install', array($this, 'current_before'), 10, 2); - add_filter('upgrader_post_install', array($this, 'current_after'), 10, 2); - add_filter('upgrader_clear_destination', array($this, 'delete_old_theme'), 10, 4); - - $this->run( array( - 'package' => $r['package'], - 'destination' => get_theme_root( $theme ), - 'clear_destination' => true, - 'clear_working' => true, - 'hook_extra' => array( - 'theme' => $theme, - 'type' => 'theme', - 'action' => 'update', - ), - ) ); - - remove_filter('upgrader_pre_install', array($this, 'current_before')); - remove_filter('upgrader_post_install', array($this, 'current_after')); - remove_filter('upgrader_clear_destination', array($this, 'delete_old_theme')); - - if ( ! $this->result || is_wp_error($this->result) ) - return $this->result; - - wp_clean_themes_cache( $parsed_args['clear_update_cache'] ); - - return true; - } - - /** - * Upgrade several themes at once. - * - * @since 3.0.0 - * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional. - * - * @param array $themes The theme slugs. - * @param array $args { - * Optional. Other arguments for upgrading several themes at once. Default empty array. - * - * @type bool $clear_update_cache Whether to clear the update cache if successful. - * Default true. - * } - * @return array[]|false An array of results, or false if unable to connect to the filesystem. - */ - public function bulk_upgrade( $themes, $args = array() ) { - - $defaults = array( - 'clear_update_cache' => true, - ); - $parsed_args = wp_parse_args( $args, $defaults ); - - $this->init(); - $this->bulk = true; - $this->upgrade_strings(); - - $current = get_site_transient( 'update_themes' ); - - add_filter('upgrader_pre_install', array($this, 'current_before'), 10, 2); - add_filter('upgrader_post_install', array($this, 'current_after'), 10, 2); - add_filter('upgrader_clear_destination', array($this, 'delete_old_theme'), 10, 4); - - $this->skin->header(); - - // Connect to the Filesystem first. - $res = $this->fs_connect( array(WP_CONTENT_DIR) ); - if ( ! $res ) { - $this->skin->footer(); - return false; - } - - $this->skin->bulk_header(); - - // Only start maintenance mode if: - // - running Multisite and there are one or more themes specified, OR - // - a theme with an update available is currently in use. - // @TODO: For multisite, maintenance mode should only kick in for individual sites if at all possible. - $maintenance = ( is_multisite() && ! empty( $themes ) ); - foreach ( $themes as $theme ) - $maintenance = $maintenance || $theme == get_stylesheet() || $theme == get_template(); - if ( $maintenance ) - $this->maintenance_mode(true); - - $results = array(); - - $this->update_count = count($themes); - $this->update_current = 0; - foreach ( $themes as $theme ) { - $this->update_current++; - - $this->skin->theme_info = $this->theme_info($theme); - - if ( !isset( $current->response[ $theme ] ) ) { - $this->skin->set_result(true); - $this->skin->before(); - $this->skin->feedback( 'up_to_date' ); - $this->skin->after(); - $results[$theme] = true; - continue; - } - - // Get the URL to the zip file - $r = $current->response[ $theme ]; - - $result = $this->run( array( - 'package' => $r['package'], - 'destination' => get_theme_root( $theme ), - 'clear_destination' => true, - 'clear_working' => true, - 'is_multi' => true, - 'hook_extra' => array( - 'theme' => $theme - ), - ) ); - - $results[$theme] = $this->result; - - // Prevent credentials auth screen from displaying multiple times - if ( false === $result ) - break; - } //end foreach $plugins - - $this->maintenance_mode(false); - - /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ - do_action( 'upgrader_process_complete', $this, array( - 'action' => 'update', - 'type' => 'theme', - 'bulk' => true, - 'themes' => $themes, - ) ); - - $this->skin->bulk_footer(); - - $this->skin->footer(); - - // Cleanup our hooks, in case something else does a upgrade on this connection. - remove_filter('upgrader_pre_install', array($this, 'current_before')); - remove_filter('upgrader_post_install', array($this, 'current_after')); - remove_filter('upgrader_clear_destination', array($this, 'delete_old_theme')); - - // Refresh the Theme Update information - wp_clean_themes_cache( $parsed_args['clear_update_cache'] ); - - return $results; - } - - /** - * Check that the package source contains a valid theme. - * - * Hooked to the {@see 'upgrader_source_selection'} filter by {@see Theme_Upgrader::install()}. - * It will return an error if the theme doesn't have style.css or index.php - * files. - * - * @since 3.3.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param string $source The full path to the package source. - * @return string|WP_Error The source or a WP_Error. - */ - public function check_package( $source ) { - global $wp_filesystem; - - if ( is_wp_error($source) ) - return $source; - - // Check the folder contains a valid theme - $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit(WP_CONTENT_DIR), $source); - if ( ! is_dir($working_directory) ) // Sanity check, if the above fails, let's not prevent installation. - return $source; - - // A proper archive should have a style.css file in the single subdirectory - if ( ! file_exists( $working_directory . 'style.css' ) ) - return new WP_Error( 'incompatible_archive_theme_no_style', $this->strings['incompatible_archive'], __( 'The theme is missing the style.css stylesheet.' ) ); - - $info = get_file_data( $working_directory . 'style.css', array( 'Name' => 'Theme Name', 'Template' => 'Template' ) ); - - if ( empty( $info['Name'] ) ) - return new WP_Error( 'incompatible_archive_theme_no_name', $this->strings['incompatible_archive'], __( "The style.css stylesheet doesn't contain a valid theme header." ) ); - - // If it's not a child theme, it must have at least an index.php to be legit. - if ( empty( $info['Template'] ) && ! file_exists( $working_directory . 'index.php' ) ) - return new WP_Error( 'incompatible_archive_theme_no_index', $this->strings['incompatible_archive'], __( 'The theme is missing the index.php file.' ) ); - - return $source; - } - - /** - * Turn on maintenance mode before attempting to upgrade the current theme. - * - * Hooked to the {@see 'upgrader_pre_install'} filter by {@see Theme_Upgrader::upgrade()} and - * {@see Theme_Upgrader::bulk_upgrade()}. - * - * @since 2.8.0 - * - * @param bool|WP_Error $return - * @param array $theme - * @return bool|WP_Error - */ - public function current_before($return, $theme) { - if ( is_wp_error($return) ) - return $return; - - $theme = isset($theme['theme']) ? $theme['theme'] : ''; - - if ( $theme != get_stylesheet() ) //If not current - return $return; - //Change to maintenance mode now. - if ( ! $this->bulk ) - $this->maintenance_mode(true); - - return $return; - } - - /** - * Turn off maintenance mode after upgrading the current theme. - * - * Hooked to the {@see 'upgrader_post_install'} filter by {@see Theme_Upgrader::upgrade()} - * and {@see Theme_Upgrader::bulk_upgrade()}. - * - * @since 2.8.0 - * - * @param bool|WP_Error $return - * @param array $theme - * @return bool|WP_Error - */ - public function current_after($return, $theme) { - if ( is_wp_error($return) ) - return $return; - - $theme = isset($theme['theme']) ? $theme['theme'] : ''; - - if ( $theme != get_stylesheet() ) // If not current - return $return; - - // Ensure stylesheet name hasn't changed after the upgrade: - if ( $theme == get_stylesheet() && $theme != $this->result['destination_name'] ) { - wp_clean_themes_cache(); - $stylesheet = $this->result['destination_name']; - switch_theme( $stylesheet ); - } - - //Time to remove maintenance mode - if ( ! $this->bulk ) - $this->maintenance_mode(false); - return $return; - } - - /** - * Delete the old theme during an upgrade. - * - * Hooked to the {@see 'upgrader_clear_destination'} filter by {@see Theme_Upgrader::upgrade()} - * and {@see Theme_Upgrader::bulk_upgrade()}. - * - * @since 2.8.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param bool $removed - * @param string $local_destination - * @param string $remote_destination - * @param array $theme - * @return bool - */ - public function delete_old_theme( $removed, $local_destination, $remote_destination, $theme ) { - global $wp_filesystem; - - if ( is_wp_error( $removed ) ) - return $removed; // Pass errors through. - - if ( ! isset( $theme['theme'] ) ) - return $removed; - - $theme = $theme['theme']; - $themes_dir = trailingslashit( $wp_filesystem->wp_themes_dir( $theme ) ); - if ( $wp_filesystem->exists( $themes_dir . $theme ) ) { - if ( ! $wp_filesystem->delete( $themes_dir . $theme, true ) ) - return false; - } - - return true; - } - - /** - * Get the WP_Theme object for a theme. - * - * @since 2.8.0 - * @since 3.0.0 The `$theme` argument was added. - * - * @param string $theme The directory name of the theme. This is optional, and if not supplied, - * the directory name from the last result will be used. - * @return WP_Theme|false The theme's info object, or false `$theme` is not supplied - * and the last result isn't set. - */ - public function theme_info($theme = null) { - - if ( empty($theme) ) { - if ( !empty($this->result['destination_name']) ) - $theme = $this->result['destination_name']; - else - return false; - } - return wp_get_theme( $theme ); - } - -} - -/** - * Language pack upgrader, for updating translations of plugins, themes, and core. - * - * @package WordPress - * @subpackage Upgrader - * @since 3.7.0 - */ -class Language_Pack_Upgrader extends WP_Upgrader { - - /** - * Result of the language pack upgrade. - * - * @since 3.7.0 - * @var array|WP_Error $result - * @see WP_Upgrader::$result - */ - public $result; - - /** - * Whether a bulk upgrade/install is being performed. - * - * @since 3.7.0 - * @var bool $bulk - */ - public $bulk = true; - - /** - * Asynchronously upgrade language packs after other upgrades have been made. - * - * Hooked to the {@see 'upgrader_process_complete'} action by default. - * - * @since 3.7.0 - * - * @static - * - * @param false|WP_Upgrader $upgrader - */ - public static function async_upgrade( $upgrader = false ) { - // Avoid recursion. - if ( $upgrader && $upgrader instanceof Language_Pack_Upgrader ) { - return; - } - - // Nothing to do? - $language_updates = wp_get_translation_updates(); - if ( ! $language_updates ) { - return; - } - - // Avoid messing with VCS installs, at least for now. - // Noted: this is not the ideal way to accomplish this. - $check_vcs = new WP_Automatic_Updater; - if ( $check_vcs->is_vcs_checkout( WP_CONTENT_DIR ) ) { - return; - } - - foreach ( $language_updates as $key => $language_update ) { - $update = ! empty( $language_update->autoupdate ); - - /** - * Filter whether to asynchronously update translation for core, a plugin, or a theme. - * - * @since 4.0.0 - * - * @param bool $update Whether to update. - * @param object $language_update The update offer. - */ - $update = apply_filters( 'async_update_translation', $update, $language_update ); - - if ( ! $update ) { - unset( $language_updates[ $key ] ); - } - } - - if ( empty( $language_updates ) ) { - return; - } - - $skin = new Language_Pack_Upgrader_Skin( array( - 'skip_header_footer' => true, - ) ); - - $lp_upgrader = new Language_Pack_Upgrader( $skin ); - $lp_upgrader->bulk_upgrade( $language_updates ); - } - - /** - * Initialize the upgrade strings. - * - * @since 3.7.0 - */ - public function upgrade_strings() { - $this->strings['starting_upgrade'] = __( 'Some of your translations need updating. Sit tight for a few more seconds while we update them as well.' ); - $this->strings['up_to_date'] = __( 'The translation is up to date.' ); // We need to silently skip this case - $this->strings['no_package'] = __( 'Update package not available.' ); - $this->strings['downloading_package'] = __( 'Downloading translation from %s…' ); - $this->strings['unpack_package'] = __( 'Unpacking the update…' ); - $this->strings['process_failed'] = __( 'Translation update failed.' ); - $this->strings['process_success'] = __( 'Translation updated successfully.' ); - } - - /** - * Upgrade a language pack. - * - * @since 3.7.0 - * - * @param string|false $update Optional. Whether an update offer is available. Default false. - * @param array $args Optional. Other optional arguments, see - * {@see Language_Pack_Upgrader::bulk_upgrade()}. Default empty array. - * @return array|bool|WP_Error The result of the upgrade, or a {@see wP_Error} object instead. - */ - public function upgrade( $update = false, $args = array() ) { - if ( $update ) { - $update = array( $update ); - } - - $results = $this->bulk_upgrade( $update, $args ); - - if ( ! is_array( $results ) ) { - return $results; - } - - return $results[0]; - } - - /** - * Bulk upgrade language packs. - * - * @since 3.7.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param array $language_updates Optional. Language pack updates. Default empty array. - * @param array $args { - * Optional. Other arguments for upgrading multiple language packs. Default empty array - * - * @type bool $clear_update_cache Whether to clear the update cache when done. - * Default true. - * } - * @return array|bool|WP_Error Will return an array of results, or true if there are no updates, - * false or WP_Error for initial errors. - */ - public function bulk_upgrade( $language_updates = array(), $args = array() ) { - global $wp_filesystem; - - $defaults = array( - 'clear_update_cache' => true, - ); - $parsed_args = wp_parse_args( $args, $defaults ); - - $this->init(); - $this->upgrade_strings(); - - if ( ! $language_updates ) - $language_updates = wp_get_translation_updates(); - - if ( empty( $language_updates ) ) { - $this->skin->header(); - $this->skin->before(); - $this->skin->set_result( true ); - $this->skin->feedback( 'up_to_date' ); - $this->skin->after(); - $this->skin->bulk_footer(); - $this->skin->footer(); - return true; - } - - if ( 'upgrader_process_complete' == current_filter() ) - $this->skin->feedback( 'starting_upgrade' ); - - // Remove any existing upgrade filters from the plugin/theme upgraders #WP29425 & #WP29230 - remove_all_filters( 'upgrader_pre_install' ); - remove_all_filters( 'upgrader_clear_destination' ); - remove_all_filters( 'upgrader_post_install' ); - remove_all_filters( 'upgrader_source_selection' ); - - add_filter( 'upgrader_source_selection', array( $this, 'check_package' ), 10, 2 ); - - $this->skin->header(); - - // Connect to the Filesystem first. - $res = $this->fs_connect( array( WP_CONTENT_DIR, WP_LANG_DIR ) ); - if ( ! $res ) { - $this->skin->footer(); - return false; - } - - $results = array(); - - $this->update_count = count( $language_updates ); - $this->update_current = 0; - - /* - * The filesystem's mkdir() is not recursive. Make sure WP_LANG_DIR exists, - * as we then may need to create a /plugins or /themes directory inside of it. - */ - $remote_destination = $wp_filesystem->find_folder( WP_LANG_DIR ); - if ( ! $wp_filesystem->exists( $remote_destination ) ) - if ( ! $wp_filesystem->mkdir( $remote_destination, FS_CHMOD_DIR ) ) - return new WP_Error( 'mkdir_failed_lang_dir', $this->strings['mkdir_failed'], $remote_destination ); - - foreach ( $language_updates as $language_update ) { - - $this->skin->language_update = $language_update; - - $destination = WP_LANG_DIR; - if ( 'plugin' == $language_update->type ) - $destination .= '/plugins'; - elseif ( 'theme' == $language_update->type ) - $destination .= '/themes'; - - $this->update_current++; - - $options = array( - 'package' => $language_update->package, - 'destination' => $destination, - 'clear_destination' => false, - 'abort_if_destination_exists' => false, // We expect the destination to exist. - 'clear_working' => true, - 'is_multi' => true, - 'hook_extra' => array( - 'language_update_type' => $language_update->type, - 'language_update' => $language_update, - ) - ); - - $result = $this->run( $options ); - - $results[] = $this->result; - - // Prevent credentials auth screen from displaying multiple times. - if ( false === $result ) - break; - } - - $this->skin->bulk_footer(); - - $this->skin->footer(); - - // Clean up our hooks, in case something else does an upgrade on this connection. - remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) ); - - if ( $parsed_args['clear_update_cache'] ) { - wp_clean_update_cache(); - } - - return $results; - } - - /** - * Check the package source to make sure there are .mo and .po files. - * - * Hooked to the {@see 'upgrader_source_selection'} filter by - * {@see Language_Pack_Upgrader::bulk_upgrade()}. - * - * @since 3.7.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param string|WP_Error $source - * @param string $remote_source - */ - public function check_package( $source, $remote_source ) { - global $wp_filesystem; - - if ( is_wp_error( $source ) ) - return $source; - - // Check that the folder contains a valid language. - $files = $wp_filesystem->dirlist( $remote_source ); - - // Check to see if a .po and .mo exist in the folder. - $po = $mo = false; - foreach ( (array) $files as $file => $filedata ) { - if ( '.po' == substr( $file, -3 ) ) - $po = true; - elseif ( '.mo' == substr( $file, -3 ) ) - $mo = true; - } - - if ( ! $mo || ! $po ) - return new WP_Error( 'incompatible_archive_pomo', $this->strings['incompatible_archive'], - __( 'The language pack is missing either the .po or .mo files.' ) ); - - return $source; - } - - /** - * Get the name of an item being updated. - * - * @since 3.7.0 - * - * @param object $update The data for an update. - * @return string The name of the item being updated. - */ - public function get_name_for_update( $update ) { - switch ( $update->type ) { - case 'core': - return 'WordPress'; // Not translated - - case 'theme': - $theme = wp_get_theme( $update->slug ); - if ( $theme->exists() ) - return $theme->Get( 'Name' ); - break; - case 'plugin': - $plugin_data = get_plugins( '/' . $update->slug ); - $plugin_data = reset( $plugin_data ); - if ( $plugin_data ) - return $plugin_data['Name']; - break; - } - return ''; - } - -} - -/** - * Core Upgrader class for WordPress. It allows for WordPress to upgrade itself in combination with the wp-admin/includes/update-core.php file - * - * @package WordPress - * @subpackage Upgrader - * @since 2.8.0 - */ -class Core_Upgrader extends WP_Upgrader { - - /** - * Initialize the upgrade strings. - * - * @since 2.8.0 - */ - public function upgrade_strings() { - $this->strings['up_to_date'] = __('WordPress is at the latest version.'); - $this->strings['no_package'] = __('Update package not available.'); - $this->strings['downloading_package'] = __('Downloading update from %s…'); - $this->strings['unpack_package'] = __('Unpacking the update…'); - $this->strings['copy_failed'] = __('Could not copy files.'); - $this->strings['copy_failed_space'] = __('Could not copy files. You may have run out of disk space.' ); - $this->strings['start_rollback'] = __( 'Attempting to roll back to previous version.' ); - $this->strings['rollback_was_required'] = __( 'Due to an error during updating, WordPress has rolled back to your previous version.' ); - } - - /** - * Upgrade WordPress core. - * - * @since 2.8.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * @global callback $_wp_filesystem_direct_method - * - * @param object $current Response object for whether WordPress is current. - * @param array $args { - * Optional. Arguments for upgrading WordPress core. Default empty array. - * - * @type bool $pre_check_md5 Whether to check the file checksums before - * attempting the upgrade. Default true. - * @type bool $attempt_rollback Whether to attempt to rollback the chances if - * there is a problem. Default false. - * @type bool $do_rollback Whether to perform this "upgrade" as a rollback. - * Default false. - * } - * @return null|false|WP_Error False or WP_Error on failure, null on success. - */ - public function upgrade( $current, $args = array() ) { - global $wp_filesystem; - - include( ABSPATH . WPINC . '/version.php' ); // $wp_version; - - $start_time = time(); - - $defaults = array( - 'pre_check_md5' => true, - 'attempt_rollback' => false, - 'do_rollback' => false, - 'allow_relaxed_file_ownership' => false, - ); - $parsed_args = wp_parse_args( $args, $defaults ); - - $this->init(); - $this->upgrade_strings(); - - // Is an update available? - if ( !isset( $current->response ) || $current->response == 'latest' ) - return new WP_Error('up_to_date', $this->strings['up_to_date']); - - $res = $this->fs_connect( array( ABSPATH, WP_CONTENT_DIR ), $parsed_args['allow_relaxed_file_ownership'] ); - if ( ! $res || is_wp_error( $res ) ) { - return $res; - } - - $wp_dir = trailingslashit($wp_filesystem->abspath()); - - $partial = true; - if ( $parsed_args['do_rollback'] ) - $partial = false; - elseif ( $parsed_args['pre_check_md5'] && ! $this->check_files() ) - $partial = false; - - /* - * If partial update is returned from the API, use that, unless we're doing - * a reinstall. If we cross the new_bundled version number, then use - * the new_bundled zip. Don't though if the constant is set to skip bundled items. - * If the API returns a no_content zip, go with it. Finally, default to the full zip. - */ - if ( $parsed_args['do_rollback'] && $current->packages->rollback ) - $to_download = 'rollback'; - elseif ( $current->packages->partial && 'reinstall' != $current->response && $wp_version == $current->partial_version && $partial ) - $to_download = 'partial'; - elseif ( $current->packages->new_bundled && version_compare( $wp_version, $current->new_bundled, '<' ) - && ( ! defined( 'CORE_UPGRADE_SKIP_NEW_BUNDLED' ) || ! CORE_UPGRADE_SKIP_NEW_BUNDLED ) ) - $to_download = 'new_bundled'; - elseif ( $current->packages->no_content ) - $to_download = 'no_content'; - else - $to_download = 'full'; - - $download = $this->download_package( $current->packages->$to_download ); - if ( is_wp_error($download) ) - return $download; - - $working_dir = $this->unpack_package( $download ); - if ( is_wp_error($working_dir) ) - return $working_dir; - - // Copy update-core.php from the new version into place. - if ( !$wp_filesystem->copy($working_dir . '/wordpress/wp-admin/includes/update-core.php', $wp_dir . 'wp-admin/includes/update-core.php', true) ) { - $wp_filesystem->delete($working_dir, true); - return new WP_Error( 'copy_failed_for_update_core_file', __( 'The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.' ), 'wp-admin/includes/update-core.php' ); - } - $wp_filesystem->chmod($wp_dir . 'wp-admin/includes/update-core.php', FS_CHMOD_FILE); - - require_once( ABSPATH . 'wp-admin/includes/update-core.php' ); - - if ( ! function_exists( 'update_core' ) ) - return new WP_Error( 'copy_failed_space', $this->strings['copy_failed_space'] ); - - $result = update_core( $working_dir, $wp_dir ); - - // In the event of an issue, we may be able to roll back. - if ( $parsed_args['attempt_rollback'] && $current->packages->rollback && ! $parsed_args['do_rollback'] ) { - $try_rollback = false; - if ( is_wp_error( $result ) ) { - $error_code = $result->get_error_code(); - /* - * Not all errors are equal. These codes are critical: copy_failed__copy_dir, - * mkdir_failed__copy_dir, copy_failed__copy_dir_retry, and disk_full. - * do_rollback allows for update_core() to trigger a rollback if needed. - */ - if ( false !== strpos( $error_code, 'do_rollback' ) ) - $try_rollback = true; - elseif ( false !== strpos( $error_code, '__copy_dir' ) ) - $try_rollback = true; - elseif ( 'disk_full' === $error_code ) - $try_rollback = true; - } - - if ( $try_rollback ) { - /** This filter is documented in wp-admin/includes/update-core.php */ - apply_filters( 'update_feedback', $result ); - - /** This filter is documented in wp-admin/includes/update-core.php */ - apply_filters( 'update_feedback', $this->strings['start_rollback'] ); - - $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) ); - - $original_result = $result; - $result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], (object) array( 'update' => $original_result, 'rollback' => $rollback_result ) ); - } - } - - /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ - do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) ); - - // Clear the current updates - delete_site_transient( 'update_core' ); - - if ( ! $parsed_args['do_rollback'] ) { - $stats = array( - 'update_type' => $current->response, - 'success' => true, - 'fs_method' => $wp_filesystem->method, - 'fs_method_forced' => defined( 'FS_METHOD' ) || has_filter( 'filesystem_method' ), - 'fs_method_direct' => !empty( $GLOBALS['_wp_filesystem_direct_method'] ) ? $GLOBALS['_wp_filesystem_direct_method'] : '', - 'time_taken' => time() - $start_time, - 'reported' => $wp_version, - 'attempted' => $current->version, - ); - - if ( is_wp_error( $result ) ) { - $stats['success'] = false; - // Did a rollback occur? - if ( ! empty( $try_rollback ) ) { - $stats['error_code'] = $original_result->get_error_code(); - $stats['error_data'] = $original_result->get_error_data(); - // Was the rollback successful? If not, collect its error too. - $stats['rollback'] = ! is_wp_error( $rollback_result ); - if ( is_wp_error( $rollback_result ) ) { - $stats['rollback_code'] = $rollback_result->get_error_code(); - $stats['rollback_data'] = $rollback_result->get_error_data(); - } - } else { - $stats['error_code'] = $result->get_error_code(); - $stats['error_data'] = $result->get_error_data(); - } - } - - wp_version_check( $stats ); - } - - return $result; - } - - /** - * Determines if this WordPress Core version should update to an offered version or not. - * - * @since 3.7.0 - * - * @static - * - * @param string $offered_ver The offered version, of the format x.y.z. - * @return bool True if we should update to the offered version, otherwise false. - */ - public static function should_update_to_version( $offered_ver ) { - include( ABSPATH . WPINC . '/version.php' ); // $wp_version; // x.y.z - - $current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y - $new_branch = implode( '.', array_slice( preg_split( '/[.-]/', $offered_ver ), 0, 2 ) ); // x.y - $current_is_development_version = (bool) strpos( $wp_version, '-' ); - - // Defaults: - $upgrade_dev = true; - $upgrade_minor = true; - $upgrade_major = false; - - // WP_AUTO_UPDATE_CORE = true (all), 'minor', false. - if ( defined( 'WP_AUTO_UPDATE_CORE' ) ) { - if ( false === WP_AUTO_UPDATE_CORE ) { - // Defaults to turned off, unless a filter allows it - $upgrade_dev = $upgrade_minor = $upgrade_major = false; - } elseif ( true === WP_AUTO_UPDATE_CORE ) { - // ALL updates for core - $upgrade_dev = $upgrade_minor = $upgrade_major = true; - } elseif ( 'minor' === WP_AUTO_UPDATE_CORE ) { - // Only minor updates for core - $upgrade_dev = $upgrade_major = false; - $upgrade_minor = true; - } - } - - // 1: If we're already on that version, not much point in updating? - if ( $offered_ver == $wp_version ) - return false; - - // 2: If we're running a newer version, that's a nope - if ( version_compare( $wp_version, $offered_ver, '>' ) ) - return false; - - $failure_data = get_site_option( 'auto_core_update_failed' ); - if ( $failure_data ) { - // If this was a critical update failure, cannot update. - if ( ! empty( $failure_data['critical'] ) ) - return false; - - // Don't claim we can update on update-core.php if we have a non-critical failure logged. - if ( $wp_version == $failure_data['current'] && false !== strpos( $offered_ver, '.1.next.minor' ) ) - return false; - - // Cannot update if we're retrying the same A to B update that caused a non-critical failure. - // Some non-critical failures do allow retries, like download_failed. - // 3.7.1 => 3.7.2 resulted in files_not_writable, if we are still on 3.7.1 and still trying to update to 3.7.2. - if ( empty( $failure_data['retry'] ) && $wp_version == $failure_data['current'] && $offered_ver == $failure_data['attempted'] ) - return false; - } - - // 3: 3.7-alpha-25000 -> 3.7-alpha-25678 -> 3.7-beta1 -> 3.7-beta2 - if ( $current_is_development_version ) { - - /** - * Filter whether to enable automatic core updates for development versions. - * - * @since 3.7.0 - * - * @param bool $upgrade_dev Whether to enable automatic updates for - * development versions. - */ - if ( ! apply_filters( 'allow_dev_auto_core_updates', $upgrade_dev ) ) - return false; - // Else fall through to minor + major branches below. - } - - // 4: Minor In-branch updates (3.7.0 -> 3.7.1 -> 3.7.2 -> 3.7.4) - if ( $current_branch == $new_branch ) { - - /** - * Filter whether to enable minor automatic core updates. - * - * @since 3.7.0 - * - * @param bool $upgrade_minor Whether to enable minor automatic core updates. - */ - return apply_filters( 'allow_minor_auto_core_updates', $upgrade_minor ); - } - - // 5: Major version updates (3.7.0 -> 3.8.0 -> 3.9.1) - if ( version_compare( $new_branch, $current_branch, '>' ) ) { - - /** - * Filter whether to enable major automatic core updates. - * - * @since 3.7.0 - * - * @param bool $upgrade_major Whether to enable major automatic core updates. - */ - return apply_filters( 'allow_major_auto_core_updates', $upgrade_major ); - } - - // If we're not sure, we don't want it - return false; - } - - /** - * Compare the disk file checksums agains the expected checksums. - * - * @since 3.7.0 - * - * @global string $wp_version - * @global string $wp_local_package - * - * @return bool True if the checksums match, otherwise false. - */ - public function check_files() { - global $wp_version, $wp_local_package; - - $checksums = get_core_checksums( $wp_version, isset( $wp_local_package ) ? $wp_local_package : 'en_US' ); - - if ( ! is_array( $checksums ) ) - return false; - - foreach ( $checksums as $file => $checksum ) { - // Skip files which get updated - if ( 'wp-content' == substr( $file, 0, 10 ) ) - continue; - if ( ! file_exists( ABSPATH . $file ) || md5_file( ABSPATH . $file ) !== $checksum ) - return false; - } - - return true; - } -} - -/** - * Upgrade Skin helper for File uploads. This class handles the upload process and passes it as if it's a local file to the Upgrade/Installer functions. - * - * @package WordPress - * @subpackage Upgrader - * @since 2.8.0 - */ -class File_Upload_Upgrader { - - /** - * The full path to the file package. - * - * @since 2.8.0 - * @var string $package - */ - public $package; - - /** - * The name of the file. - * - * @since 2.8.0 - * @var string $filename - */ - public $filename; - - /** - * The ID of the attachment post for this file. - * - * @since 3.3.0 - * @var int $id - */ - public $id = 0; - - /** - * Construct the upgrader for a form. - * - * @since 2.8.0 - * - * @param string $form The name of the form the file was uploaded from. - * @param string $urlholder The name of the `GET` parameter that holds the filename. - */ - public function __construct( $form, $urlholder ) { - - if ( empty($_FILES[$form]['name']) && empty($_GET[$urlholder]) ) - wp_die(__('Please select a file')); - - //Handle a newly uploaded file, Else assume it's already been uploaded - if ( ! empty($_FILES) ) { - $overrides = array( 'test_form' => false, 'test_type' => false ); - $file = wp_handle_upload( $_FILES[$form], $overrides ); - - if ( isset( $file['error'] ) ) - wp_die( $file['error'] ); - - $this->filename = $_FILES[$form]['name']; - $this->package = $file['file']; - - // Construct the object array - $object = array( - 'post_title' => $this->filename, - 'post_content' => $file['url'], - 'post_mime_type' => $file['type'], - 'guid' => $file['url'], - 'context' => 'upgrader', - 'post_status' => 'private' - ); - - // Save the data. - $this->id = wp_insert_attachment( $object, $file['file'] ); - - // Schedule a cleanup for 2 hours from now in case of failed install. - wp_schedule_single_event( time() + 2 * HOUR_IN_SECONDS, 'upgrader_scheduled_cleanup', array( $this->id ) ); - - } elseif ( is_numeric( $_GET[$urlholder] ) ) { - // Numeric Package = previously uploaded file, see above. - $this->id = (int) $_GET[$urlholder]; - $attachment = get_post( $this->id ); - if ( empty($attachment) ) - wp_die(__('Please select a file')); - - $this->filename = $attachment->post_title; - $this->package = get_attached_file( $attachment->ID ); - } else { - // Else, It's set to something, Back compat for plugins using the old (pre-3.3) File_Uploader handler. - if ( ! ( ( $uploads = wp_upload_dir() ) && false === $uploads['error'] ) ) - wp_die( $uploads['error'] ); - - $this->filename = $_GET[$urlholder]; - $this->package = $uploads['basedir'] . '/' . $this->filename; - } - } - - /** - * Delete the attachment/uploaded file. - * - * @since 3.2.2 - * - * @return bool Whether the cleanup was successful. - */ - public function cleanup() { - if ( $this->id ) - wp_delete_attachment( $this->id ); - - elseif ( file_exists( $this->package ) ) - return @unlink( $this->package ); - - return true; - } -} - -/** - * The WordPress automatic background updater. - * - * @package WordPress - * @subpackage Upgrader - * @since 3.7.0 - */ -class WP_Automatic_Updater { - - /** - * Tracks update results during processing. - * - * @var array - */ - protected $update_results = array(); - - /** - * Whether the entire automatic updater is disabled. - * - * @since 3.7.0 - */ - public function is_disabled() { - // Background updates are disabled if you don't want file changes. - if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) - return true; - - if ( defined( 'WP_INSTALLING' ) ) - return true; - - // More fine grained control can be done through the WP_AUTO_UPDATE_CORE constant and filters. - $disabled = defined( 'AUTOMATIC_UPDATER_DISABLED' ) && AUTOMATIC_UPDATER_DISABLED; - - /** - * Filter whether to entirely disable background updates. - * - * There are more fine-grained filters and controls for selective disabling. - * This filter parallels the AUTOMATIC_UPDATER_DISABLED constant in name. - * - * This also disables update notification emails. That may change in the future. - * - * @since 3.7.0 - * - * @param bool $disabled Whether the updater should be disabled. - */ - return apply_filters( 'automatic_updater_disabled', $disabled ); - } - - /** - * Check for version control checkouts. - * - * Checks for Subversion, Git, Mercurial, and Bazaar. It recursively looks up the - * filesystem to the top of the drive, erring on the side of detecting a VCS - * checkout somewhere. - * - * ABSPATH is always checked in addition to whatever $context is (which may be the - * wp-content directory, for example). The underlying assumption is that if you are - * using version control *anywhere*, then you should be making decisions for - * how things get updated. - * - * @since 3.7.0 - * - * @param string $context The filesystem path to check, in addition to ABSPATH. - */ - public function is_vcs_checkout( $context ) { - $context_dirs = array( untrailingslashit( $context ) ); - if ( $context !== ABSPATH ) - $context_dirs[] = untrailingslashit( ABSPATH ); - - $vcs_dirs = array( '.svn', '.git', '.hg', '.bzr' ); - $check_dirs = array(); - - foreach ( $context_dirs as $context_dir ) { - // Walk up from $context_dir to the root. - do { - $check_dirs[] = $context_dir; - - // Once we've hit '/' or 'C:\', we need to stop. dirname will keep returning the input here. - if ( $context_dir == dirname( $context_dir ) ) - break; - - // Continue one level at a time. - } while ( $context_dir = dirname( $context_dir ) ); - } - - $check_dirs = array_unique( $check_dirs ); - - // Search all directories we've found for evidence of version control. - foreach ( $vcs_dirs as $vcs_dir ) { - foreach ( $check_dirs as $check_dir ) { - if ( $checkout = @is_dir( rtrim( $check_dir, '\\/' ) . "/$vcs_dir" ) ) - break 2; - } - } - - /** - * Filter whether the automatic updater should consider a filesystem - * location to be potentially managed by a version control system. - * - * @since 3.7.0 - * - * @param bool $checkout Whether a VCS checkout was discovered at $context - * or ABSPATH, or anywhere higher. - * @param string $context The filesystem context (a path) against which - * filesystem status should be checked. - */ - return apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context ); - } - - /** - * Tests to see if we can and should update a specific item. - * - * @since 3.7.0 - * - * @global wpdb $wpdb - * - * @param string $type The type of update being checked: 'core', 'theme', - * 'plugin', 'translation'. - * @param object $item The update offer. - * @param string $context The filesystem context (a path) against which filesystem - * access and status should be checked. - */ - public function should_update( $type, $item, $context ) { - // Used to see if WP_Filesystem is set up to allow unattended updates. - $skin = new Automatic_Upgrader_Skin; - - if ( $this->is_disabled() ) - return false; - - // Only relax the filesystem checks when the update doesn't include new files - $allow_relaxed_file_ownership = false; - if ( 'core' == $type && isset( $item->new_files ) && ! $item->new_files ) { - $allow_relaxed_file_ownership = true; - } - - // If we can't do an auto core update, we may still be able to email the user. - if ( ! $skin->request_filesystem_credentials( false, $context, $allow_relaxed_file_ownership ) || $this->is_vcs_checkout( $context ) ) { - if ( 'core' == $type ) - $this->send_core_update_notification_email( $item ); - return false; - } - - // Next up, is this an item we can update? - if ( 'core' == $type ) - $update = Core_Upgrader::should_update_to_version( $item->current ); - else - $update = ! empty( $item->autoupdate ); - - /** - * Filter whether to automatically update core, a plugin, a theme, or a language. - * - * The dynamic portion of the hook name, `$type`, refers to the type of update - * being checked. Can be 'core', 'theme', 'plugin', or 'translation'. - * - * Generally speaking, plugins, themes, and major core versions are not updated - * by default, while translations and minor and development versions for core - * are updated by default. - * - * See the {@see 'allow_dev_auto_core_updates', {@see 'allow_minor_auto_core_updates'}, - * and {@see 'allow_major_auto_core_updates'} filters for a more straightforward way to - * adjust core updates. - * - * @since 3.7.0 - * - * @param bool $update Whether to update. - * @param object $item The update offer. - */ - $update = apply_filters( 'auto_update_' . $type, $update, $item ); - - if ( ! $update ) { - if ( 'core' == $type ) - $this->send_core_update_notification_email( $item ); - return false; - } - - // If it's a core update, are we actually compatible with its requirements? - if ( 'core' == $type ) { - global $wpdb; - - $php_compat = version_compare( phpversion(), $item->php_version, '>=' ); - if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) - $mysql_compat = true; - else - $mysql_compat = version_compare( $wpdb->db_version(), $item->mysql_version, '>=' ); - - if ( ! $php_compat || ! $mysql_compat ) - return false; - } - - return true; - } - - /** - * Notifies an administrator of a core update. - * - * @since 3.7.0 - * - * @param object $item The update offer. - */ - protected function send_core_update_notification_email( $item ) { - $notified = get_site_option( 'auto_core_update_notified' ); - - // Don't notify if we've already notified the same email address of the same version. - if ( $notified && $notified['email'] == get_site_option( 'admin_email' ) && $notified['version'] == $item->current ) - return false; - - // See if we need to notify users of a core update. - $notify = ! empty( $item->notify_email ); - - /** - * Filter whether to notify the site administrator of a new core update. - * - * By default, administrators are notified when the update offer received - * from WordPress.org sets a particular flag. This allows some discretion - * in if and when to notify. - * - * This filter is only evaluated once per release. If the same email address - * was already notified of the same new version, WordPress won't repeatedly - * email the administrator. - * - * This filter is also used on about.php to check if a plugin has disabled - * these notifications. - * - * @since 3.7.0 - * - * @param bool $notify Whether the site administrator is notified. - * @param object $item The update offer. - */ - if ( ! apply_filters( 'send_core_update_notification_email', $notify, $item ) ) - return false; - - $this->send_email( 'manual', $item ); - return true; - } - - /** - * Update an item, if appropriate. - * - * @since 3.7.0 - * - * @param string $type The type of update being checked: 'core', 'theme', 'plugin', 'translation'. - * @param object $item The update offer. - * - * @return null|WP_Error - */ - public function update( $type, $item ) { - $skin = new Automatic_Upgrader_Skin; - - switch ( $type ) { - case 'core': - // The Core upgrader doesn't use the Upgrader's skin during the actual main part of the upgrade, instead, firing a filter. - add_filter( 'update_feedback', array( $skin, 'feedback' ) ); - $upgrader = new Core_Upgrader( $skin ); - $context = ABSPATH; - break; - case 'plugin': - $upgrader = new Plugin_Upgrader( $skin ); - $context = WP_PLUGIN_DIR; // We don't support custom Plugin directories, or updates for WPMU_PLUGIN_DIR - break; - case 'theme': - $upgrader = new Theme_Upgrader( $skin ); - $context = get_theme_root( $item->theme ); - break; - case 'translation': - $upgrader = new Language_Pack_Upgrader( $skin ); - $context = WP_CONTENT_DIR; // WP_LANG_DIR; - break; - } - - // Determine whether we can and should perform this update. - if ( ! $this->should_update( $type, $item, $context ) ) - return false; - - $upgrader_item = $item; - switch ( $type ) { - case 'core': - $skin->feedback( __( 'Updating to WordPress %s' ), $item->version ); - $item_name = sprintf( __( 'WordPress %s' ), $item->version ); - break; - case 'theme': - $upgrader_item = $item->theme; - $theme = wp_get_theme( $upgrader_item ); - $item_name = $theme->Get( 'Name' ); - $skin->feedback( __( 'Updating theme: %s' ), $item_name ); - break; - case 'plugin': - $upgrader_item = $item->plugin; - $plugin_data = get_plugin_data( $context . '/' . $upgrader_item ); - $item_name = $plugin_data['Name']; - $skin->feedback( __( 'Updating plugin: %s' ), $item_name ); - break; - case 'translation': - $language_item_name = $upgrader->get_name_for_update( $item ); - $item_name = sprintf( __( 'Translations for %s' ), $language_item_name ); - $skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…' ), $language_item_name, $item->language ) ); - break; - } - - $allow_relaxed_file_ownership = false; - if ( 'core' == $type && isset( $item->new_files ) && ! $item->new_files ) { - $allow_relaxed_file_ownership = true; - } - - // Boom, This sites about to get a whole new splash of paint! - $upgrade_result = $upgrader->upgrade( $upgrader_item, array( - 'clear_update_cache' => false, - // Always use partial builds if possible for core updates. - 'pre_check_md5' => false, - // Only available for core updates. - 'attempt_rollback' => true, - // Allow relaxed file ownership in some scenarios - 'allow_relaxed_file_ownership' => $allow_relaxed_file_ownership, - ) ); - - // If the filesystem is unavailable, false is returned. - if ( false === $upgrade_result ) { - $upgrade_result = new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) ); - } - - // Core doesn't output this, so let's append it so we don't get confused. - if ( 'core' == $type ) { - if ( is_wp_error( $upgrade_result ) ) { - $skin->error( __( 'Installation Failed' ), $upgrade_result ); - } else { - $skin->feedback( __( 'WordPress updated successfully' ) ); - } - } - - $this->update_results[ $type ][] = (object) array( - 'item' => $item, - 'result' => $upgrade_result, - 'name' => $item_name, - 'messages' => $skin->get_upgrade_messages() - ); - - return $upgrade_result; - } - - /** - * Kicks off the background update process, looping through all pending updates. - * - * @since 3.7.0 - * - * @global wpdb $wpdb - * @global string $wp_version - */ - public function run() { - global $wpdb, $wp_version; - - if ( $this->is_disabled() ) - return; - - if ( ! is_main_network() || ! is_main_site() ) - return; - - $lock_name = 'auto_updater.lock'; - - // Try to lock - $lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, 'no') /* LOCK */", $lock_name, time() ) ); - - if ( ! $lock_result ) { - $lock_result = get_option( $lock_name ); - - // If we couldn't create a lock, and there isn't a lock, bail - if ( ! $lock_result ) - return; - - // Check to see if the lock is still valid - if ( $lock_result > ( time() - HOUR_IN_SECONDS ) ) - return; - } - - // Update the lock, as by this point we've definitely got a lock, just need to fire the actions - update_option( $lock_name, time() ); - - // Don't automatically run these thins, as we'll handle it ourselves - remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 ); - remove_action( 'upgrader_process_complete', 'wp_version_check' ); - remove_action( 'upgrader_process_complete', 'wp_update_plugins' ); - remove_action( 'upgrader_process_complete', 'wp_update_themes' ); - - // Next, Plugins - wp_update_plugins(); // Check for Plugin updates - $plugin_updates = get_site_transient( 'update_plugins' ); - if ( $plugin_updates && !empty( $plugin_updates->response ) ) { - foreach ( $plugin_updates->response as $plugin ) { - $this->update( 'plugin', $plugin ); - } - // Force refresh of plugin update information - wp_clean_plugins_cache(); - } - - // Next, those themes we all love - wp_update_themes(); // Check for Theme updates - $theme_updates = get_site_transient( 'update_themes' ); - if ( $theme_updates && !empty( $theme_updates->response ) ) { - foreach ( $theme_updates->response as $theme ) { - $this->update( 'theme', (object) $theme ); - } - // Force refresh of theme update information - wp_clean_themes_cache(); - } - - // Next, Process any core update - wp_version_check(); // Check for Core updates - $core_update = find_core_auto_update(); - - if ( $core_update ) - $this->update( 'core', $core_update ); - - // Clean up, and check for any pending translations - // (Core_Upgrader checks for core updates) - $theme_stats = array(); - if ( isset( $this->update_results['theme'] ) ) { - foreach ( $this->update_results['theme'] as $upgrade ) { - $theme_stats[ $upgrade->item->theme ] = ( true === $upgrade->result ); - } - } - wp_update_themes( $theme_stats ); // Check for Theme updates - - $plugin_stats = array(); - if ( isset( $this->update_results['plugin'] ) ) { - foreach ( $this->update_results['plugin'] as $upgrade ) { - $plugin_stats[ $upgrade->item->plugin ] = ( true === $upgrade->result ); - } - } - wp_update_plugins( $plugin_stats ); // Check for Plugin updates - - // Finally, Process any new translations - $language_updates = wp_get_translation_updates(); - if ( $language_updates ) { - foreach ( $language_updates as $update ) { - $this->update( 'translation', $update ); - } - - // Clear existing caches - wp_clean_update_cache(); - - wp_version_check(); // check for Core updates - wp_update_themes(); // Check for Theme updates - wp_update_plugins(); // Check for Plugin updates - } - - // Send debugging email to all development installs. - if ( ! empty( $this->update_results ) ) { - $development_version = false !== strpos( $wp_version, '-' ); - - /** - * Filter whether to send a debugging email for each automatic background update. - * - * @since 3.7.0 - * - * @param bool $development_version By default, emails are sent if the - * install is a development version. - * Return false to avoid the email. - */ - if ( apply_filters( 'automatic_updates_send_debug_email', $development_version ) ) - $this->send_debug_email(); - - if ( ! empty( $this->update_results['core'] ) ) - $this->after_core_update( $this->update_results['core'][0] ); - - /** - * Fires after all automatic updates have run. - * - * @since 3.8.0 - * - * @param array $update_results The results of all attempted updates. - */ - do_action( 'automatic_updates_complete', $this->update_results ); - } - - // Clear the lock - delete_option( $lock_name ); - } - - /** - * If we tried to perform a core update, check if we should send an email, - * and if we need to avoid processing future updates. - * - * @global string $wp_version - * - * @param object|WP_Error $update_result The result of the core update. Includes the update offer and result. - */ - protected function after_core_update( $update_result ) { - global $wp_version; - - $core_update = $update_result->item; - $result = $update_result->result; - - if ( ! is_wp_error( $result ) ) { - $this->send_email( 'success', $core_update ); - return; - } - - $error_code = $result->get_error_code(); - - // Any of these WP_Error codes are critical failures, as in they occurred after we started to copy core files. - // We should not try to perform a background update again until there is a successful one-click update performed by the user. - $critical = false; - if ( $error_code === 'disk_full' || false !== strpos( $error_code, '__copy_dir' ) ) { - $critical = true; - } elseif ( $error_code === 'rollback_was_required' && is_wp_error( $result->get_error_data()->rollback ) ) { - // A rollback is only critical if it failed too. - $critical = true; - $rollback_result = $result->get_error_data()->rollback; - } elseif ( false !== strpos( $error_code, 'do_rollback' ) ) { - $critical = true; - } - - if ( $critical ) { - $critical_data = array( - 'attempted' => $core_update->current, - 'current' => $wp_version, - 'error_code' => $error_code, - 'error_data' => $result->get_error_data(), - 'timestamp' => time(), - 'critical' => true, - ); - if ( isset( $rollback_result ) ) { - $critical_data['rollback_code'] = $rollback_result->get_error_code(); - $critical_data['rollback_data'] = $rollback_result->get_error_data(); - } - update_site_option( 'auto_core_update_failed', $critical_data ); - $this->send_email( 'critical', $core_update, $result ); - return; - } - - /* - * Any other WP_Error code (like download_failed or files_not_writable) occurs before - * we tried to copy over core files. Thus, the failures are early and graceful. - * - * We should avoid trying to perform a background update again for the same version. - * But we can try again if another version is released. - * - * For certain 'transient' failures, like download_failed, we should allow retries. - * In fact, let's schedule a special update for an hour from now. (It's possible - * the issue could actually be on WordPress.org's side.) If that one fails, then email. - */ - $send = true; - $transient_failures = array( 'incompatible_archive', 'download_failed', 'insane_distro' ); - if ( in_array( $error_code, $transient_failures ) && ! get_site_option( 'auto_core_update_failed' ) ) { - wp_schedule_single_event( time() + HOUR_IN_SECONDS, 'wp_maybe_auto_update' ); - $send = false; - } - - $n = get_site_option( 'auto_core_update_notified' ); - // Don't notify if we've already notified the same email address of the same version of the same notification type. - if ( $n && 'fail' == $n['type'] && $n['email'] == get_site_option( 'admin_email' ) && $n['version'] == $core_update->current ) - $send = false; - - update_site_option( 'auto_core_update_failed', array( - 'attempted' => $core_update->current, - 'current' => $wp_version, - 'error_code' => $error_code, - 'error_data' => $result->get_error_data(), - 'timestamp' => time(), - 'retry' => in_array( $error_code, $transient_failures ), - ) ); - - if ( $send ) - $this->send_email( 'fail', $core_update, $result ); - } - - /** - * Sends an email upon the completion or failure of a background core update. - * - * @since 3.7.0 - * - * @global string $wp_version - * - * @param string $type The type of email to send. Can be one of 'success', 'fail', 'manual', 'critical'. - * @param object $core_update The update offer that was attempted. - * @param mixed $result Optional. The result for the core update. Can be WP_Error. - */ - protected function send_email( $type, $core_update, $result = null ) { - update_site_option( 'auto_core_update_notified', array( - 'type' => $type, - 'email' => get_site_option( 'admin_email' ), - 'version' => $core_update->current, - 'timestamp' => time(), - ) ); - - $next_user_core_update = get_preferred_from_update_core(); - // If the update transient is empty, use the update we just performed - if ( ! $next_user_core_update ) - $next_user_core_update = $core_update; - $newer_version_available = ( 'upgrade' == $next_user_core_update->response && version_compare( $next_user_core_update->version, $core_update->version, '>' ) ); - - /** - * Filter whether to send an email following an automatic background core update. - * - * @since 3.7.0 - * - * @param bool $send Whether to send the email. Default true. - * @param string $type The type of email to send. Can be one of - * 'success', 'fail', 'critical'. - * @param object $core_update The update offer that was attempted. - * @param mixed $result The result for the core update. Can be WP_Error. - */ - if ( 'manual' !== $type && ! apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result ) ) - return; - - switch ( $type ) { - case 'success' : // We updated. - /* translators: 1: Site name, 2: WordPress version number. */ - $subject = __( '[%1$s] Your site has updated to WordPress %2$s' ); - break; - - case 'fail' : // We tried to update but couldn't. - case 'manual' : // We can't update (and made no attempt). - /* translators: 1: Site name, 2: WordPress version number. */ - $subject = __( '[%1$s] WordPress %2$s is available. Please update!' ); - break; - - case 'critical' : // We tried to update, started to copy files, then things went wrong. - /* translators: 1: Site name. */ - $subject = __( '[%1$s] URGENT: Your site may be down due to a failed update' ); - break; - - default : - return; - } - - // If the auto update is not to the latest version, say that the current version of WP is available instead. - $version = 'success' === $type ? $core_update->current : $next_user_core_update->current; - $subject = sprintf( $subject, wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), $version ); - - $body = ''; - - switch ( $type ) { - case 'success' : - $body .= sprintf( __( 'Howdy! Your site at %1$s has been updated automatically to WordPress %2$s.' ), home_url(), $core_update->current ); - $body .= "\n\n"; - if ( ! $newer_version_available ) - $body .= __( 'No further action is needed on your part.' ) . ' '; - - // Can only reference the About screen if their update was successful. - list( $about_version ) = explode( '-', $core_update->current, 2 ); - $body .= sprintf( __( "For more on version %s, see the About WordPress screen:" ), $about_version ); - $body .= "\n" . admin_url( 'about.php' ); - - if ( $newer_version_available ) { - $body .= "\n\n" . sprintf( __( 'WordPress %s is also now available.' ), $next_user_core_update->current ) . ' '; - $body .= __( 'Updating is easy and only takes a few moments:' ); - $body .= "\n" . network_admin_url( 'update-core.php' ); - } - - break; - - case 'fail' : - case 'manual' : - $body .= sprintf( __( 'Please update your site at %1$s to WordPress %2$s.' ), home_url(), $next_user_core_update->current ); - - $body .= "\n\n"; - - // Don't show this message if there is a newer version available. - // Potential for confusion, and also not useful for them to know at this point. - if ( 'fail' == $type && ! $newer_version_available ) - $body .= __( 'We tried but were unable to update your site automatically.' ) . ' '; - - $body .= __( 'Updating is easy and only takes a few moments:' ); - $body .= "\n" . network_admin_url( 'update-core.php' ); - break; - - case 'critical' : - if ( $newer_version_available ) - $body .= sprintf( __( 'Your site at %1$s experienced a critical failure while trying to update WordPress to version %2$s.' ), home_url(), $core_update->current ); - else - $body .= sprintf( __( 'Your site at %1$s experienced a critical failure while trying to update to the latest version of WordPress, %2$s.' ), home_url(), $core_update->current ); - - $body .= "\n\n" . __( "This means your site may be offline or broken. Don't panic; this can be fixed." ); - - $body .= "\n\n" . __( "Please check out your site now. It's possible that everything is working. If it says you need to update, you should do so:" ); - $body .= "\n" . network_admin_url( 'update-core.php' ); - break; - } - - $critical_support = 'critical' === $type && ! empty( $core_update->support_email ); - if ( $critical_support ) { - // Support offer if available. - $body .= "\n\n" . sprintf( __( "The WordPress team is willing to help you. Forward this email to %s and the team will work with you to make sure your site is working." ), $core_update->support_email ); - } else { - // Add a note about the support forums. - $body .= "\n\n" . __( 'If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.' ); - $body .= "\n" . __( 'https://wordpress.org/support/' ); - } - - // Updates are important! - if ( $type != 'success' || $newer_version_available ) { - $body .= "\n\n" . __( 'Keeping your site updated is important for security. It also makes the internet a safer place for you and your readers.' ); - } - - if ( $critical_support ) { - $body .= " " . __( "If you reach out to us, we'll also ensure you'll never have this problem again." ); - } - - // If things are successful and we're now on the latest, mention plugins and themes if any are out of date. - if ( $type == 'success' && ! $newer_version_available && ( get_plugin_updates() || get_theme_updates() ) ) { - $body .= "\n\n" . __( 'You also have some plugins or themes with updates available. Update them now:' ); - $body .= "\n" . network_admin_url(); - } - - $body .= "\n\n" . __( 'The WordPress Team' ) . "\n"; - - if ( 'critical' == $type && is_wp_error( $result ) ) { - $body .= "\n***\n\n"; - $body .= sprintf( __( 'Your site was running version %s.' ), $GLOBALS['wp_version'] ); - $body .= ' ' . __( 'We have some data that describes the error your site encountered.' ); - $body .= ' ' . __( 'Your hosting company, support forum volunteers, or a friendly developer may be able to use this information to help you:' ); - - // If we had a rollback and we're still critical, then the rollback failed too. - // Loop through all errors (the main WP_Error, the update result, the rollback result) for code, data, etc. - if ( 'rollback_was_required' == $result->get_error_code() ) - $errors = array( $result, $result->get_error_data()->update, $result->get_error_data()->rollback ); - else - $errors = array( $result ); - - foreach ( $errors as $error ) { - if ( ! is_wp_error( $error ) ) - continue; - $error_code = $error->get_error_code(); - $body .= "\n\n" . sprintf( __( "Error code: %s" ), $error_code ); - if ( 'rollback_was_required' == $error_code ) - continue; - if ( $error->get_error_message() ) - $body .= "\n" . $error->get_error_message(); - $error_data = $error->get_error_data(); - if ( $error_data ) - $body .= "\n" . implode( ', ', (array) $error_data ); - } - $body .= "\n"; - } - - $to = get_site_option( 'admin_email' ); - $headers = ''; - - $email = compact( 'to', 'subject', 'body', 'headers' ); - - /** - * Filter the email sent following an automatic background core update. - * - * @since 3.7.0 - * - * @param array $email { - * Array of email arguments that will be passed to wp_mail(). - * - * @type string $to The email recipient. An array of emails - * can be returned, as handled by wp_mail(). - * @type string $subject The email's subject. - * @type string $body The email message body. - * @type string $headers Any email headers, defaults to no headers. - * } - * @param string $type The type of email being sent. Can be one of - * 'success', 'fail', 'manual', 'critical'. - * @param object $core_update The update offer that was attempted. - * @param mixed $result The result for the core update. Can be WP_Error. - */ - $email = apply_filters( 'auto_core_update_email', $email, $type, $core_update, $result ); - - wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] ); - } - - /** - * Prepares and sends an email of a full log of background update results, useful for debugging and geekery. - * - * @since 3.7.0 - */ - protected function send_debug_email() { - $update_count = 0; - foreach ( $this->update_results as $type => $updates ) - $update_count += count( $updates ); - - $body = array(); - $failures = 0; - - $body[] = sprintf( __( 'WordPress site: %s' ), network_home_url( '/' ) ); - - // Core - if ( isset( $this->update_results['core'] ) ) { - $result = $this->update_results['core'][0]; - if ( $result->result && ! is_wp_error( $result->result ) ) { - $body[] = sprintf( __( 'SUCCESS: WordPress was successfully updated to %s' ), $result->name ); - } else { - $body[] = sprintf( __( 'FAILED: WordPress failed to update to %s' ), $result->name ); - $failures++; - } - $body[] = ''; - } - - // Plugins, Themes, Translations - foreach ( array( 'plugin', 'theme', 'translation' ) as $type ) { - if ( ! isset( $this->update_results[ $type ] ) ) - continue; - $success_items = wp_list_filter( $this->update_results[ $type ], array( 'result' => true ) ); - if ( $success_items ) { - $messages = array( - 'plugin' => __( 'The following plugins were successfully updated:' ), - 'theme' => __( 'The following themes were successfully updated:' ), - 'translation' => __( 'The following translations were successfully updated:' ), - ); - - $body[] = $messages[ $type ]; - foreach ( wp_list_pluck( $success_items, 'name' ) as $name ) { - $body[] = ' * ' . sprintf( __( 'SUCCESS: %s' ), $name ); - } - } - if ( $success_items != $this->update_results[ $type ] ) { - // Failed updates - $messages = array( - 'plugin' => __( 'The following plugins failed to update:' ), - 'theme' => __( 'The following themes failed to update:' ), - 'translation' => __( 'The following translations failed to update:' ), - ); - - $body[] = $messages[ $type ]; - foreach ( $this->update_results[ $type ] as $item ) { - if ( ! $item->result || is_wp_error( $item->result ) ) { - $body[] = ' * ' . sprintf( __( 'FAILED: %s' ), $item->name ); - $failures++; - } - } - } - $body[] = ''; - } - - $site_title = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ); - if ( $failures ) { - $body[] = trim( __( -"BETA TESTING? -============= - -This debugging email is sent when you are using a development version of WordPress. - -If you think these failures might be due to a bug in WordPress, could you report it? - * Open a thread in the support forums: https://wordpress.org/support/forum/alphabeta - * Or, if you're comfortable writing a bug report: https://core.trac.wordpress.org/ - -Thanks! -- The WordPress Team" ) ); - $body[] = ''; - - $subject = sprintf( __( '[%s] There were failures during background updates' ), $site_title ); - } else { - $subject = sprintf( __( '[%s] Background updates have finished' ), $site_title ); - } - - $body[] = trim( __( -'UPDATE LOG -==========' ) ); - $body[] = ''; - - foreach ( array( 'core', 'plugin', 'theme', 'translation' ) as $type ) { - if ( ! isset( $this->update_results[ $type ] ) ) - continue; - foreach ( $this->update_results[ $type ] as $update ) { - $body[] = $update->name; - $body[] = str_repeat( '-', strlen( $update->name ) ); - foreach ( $update->messages as $message ) - $body[] = " " . html_entity_decode( str_replace( '…', '...', $message ) ); - if ( is_wp_error( $update->result ) ) { - $results = array( 'update' => $update->result ); - // If we rolled back, we want to know an error that occurred then too. - if ( 'rollback_was_required' === $update->result->get_error_code() ) - $results = (array) $update->result->get_error_data(); - foreach ( $results as $result_type => $result ) { - if ( ! is_wp_error( $result ) ) - continue; - - if ( 'rollback' === $result_type ) { - /* translators: 1: Error code, 2: Error message. */ - $body[] = ' ' . sprintf( __( 'Rollback Error: [%1$s] %2$s' ), $result->get_error_code(), $result->get_error_message() ); - } else { - /* translators: 1: Error code, 2: Error message. */ - $body[] = ' ' . sprintf( __( 'Error: [%1$s] %2$s' ), $result->get_error_code(), $result->get_error_message() ); - } - - if ( $result->get_error_data() ) - $body[] = ' ' . implode( ', ', (array) $result->get_error_data() ); - } - } - $body[] = ''; - } - } - - $email = array( - 'to' => get_site_option( 'admin_email' ), - 'subject' => $subject, - 'body' => implode( "\n", $body ), - 'headers' => '' - ); - - /** - * Filter the debug email that can be sent following an automatic - * background core update. - * - * @since 3.8.0 - * - * @param array $email { - * Array of email arguments that will be passed to wp_mail(). - * - * @type string $to The email recipient. An array of emails - * can be returned, as handled by wp_mail(). - * @type string $subject Email subject. - * @type string $body Email message body. - * @type string $headers Any email headers. Default empty. - * } - * @param int $failures The number of failures encountered while upgrading. - * @param mixed $results The results of all attempted updates. - */ - $email = apply_filters( 'automatic_updates_debug_email', $email, $failures, $this->update_results ); - - wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] ); - } -} diff --git a/wp-admin/includes/class-wp-users-list-table.php b/wp-admin/includes/class-wp-users-list-table.php deleted file mode 100644 index 4035c58cb6..0000000000 --- a/wp-admin/includes/class-wp-users-list-table.php +++ /dev/null @@ -1,488 +0,0 @@ - 'user', - 'plural' => 'users', - 'screen' => isset( $args['screen'] ) ? $args['screen'] : null, - ) ); - - $this->is_site_users = 'site-users-network' == $this->screen->id; - - if ( $this->is_site_users ) - $this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; - } - - /** - * Check the current user's permissions. - * - * @since 3.1.0 - * @access public - * - * @return bool - */ - public function ajax_user_can() { - if ( $this->is_site_users ) - return current_user_can( 'manage_sites' ); - else - return current_user_can( 'list_users' ); - } - - /** - * Prepare the users list for display. - * - * @since 3.1.0 - * @access public - * - * @global string $role - * @global string $usersearch - */ - public function prepare_items() { - global $role, $usersearch; - - $usersearch = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : ''; - - $role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : ''; - - $per_page = ( $this->is_site_users ) ? 'site_users_network_per_page' : 'users_per_page'; - $users_per_page = $this->get_items_per_page( $per_page ); - - $paged = $this->get_pagenum(); - - $args = array( - 'number' => $users_per_page, - 'offset' => ( $paged-1 ) * $users_per_page, - 'role' => $role, - 'search' => $usersearch, - 'fields' => 'all_with_meta' - ); - - if ( '' !== $args['search'] ) - $args['search'] = '*' . $args['search'] . '*'; - - if ( $this->is_site_users ) - $args['blog_id'] = $this->site_id; - - if ( isset( $_REQUEST['orderby'] ) ) - $args['orderby'] = $_REQUEST['orderby']; - - if ( isset( $_REQUEST['order'] ) ) - $args['order'] = $_REQUEST['order']; - - // Query the user IDs for this page - $wp_user_search = new WP_User_Query( $args ); - - $this->items = $wp_user_search->get_results(); - - $this->set_pagination_args( array( - 'total_items' => $wp_user_search->get_total(), - 'per_page' => $users_per_page, - ) ); - } - - /** - * Output 'no users' message. - * - * @since 3.1.0 - * @access public - */ - public function no_items() { - _e( 'No users found.' ); - } - - /** - * Return an associative array listing all the views that can be used - * with this table. - * - * Provides a list of roles and user count for that role for easy - * filtering of the user table. - * - * @since 3.1.0 - * @access protected - * - * @global string $role - * - * @return array An array of HTML links, one for each view. - */ - protected function get_views() { - global $role; - - $wp_roles = wp_roles(); - - if ( $this->is_site_users ) { - $url = 'site-users.php?id=' . $this->site_id; - switch_to_blog( $this->site_id ); - $users_of_blog = count_users(); - restore_current_blog(); - } else { - $url = 'users.php'; - $users_of_blog = count_users(); - } - $total_users = $users_of_blog['total_users']; - $avail_roles =& $users_of_blog['avail_roles']; - unset($users_of_blog); - - $class = empty($role) ? ' class="current"' : ''; - $role_links = array(); - $role_links['all'] = "" . sprintf( _nx( 'All (%s)', 'All (%s)', $total_users, 'users' ), number_format_i18n( $total_users ) ) . ''; - foreach ( $wp_roles->get_names() as $this_role => $name ) { - if ( !isset($avail_roles[$this_role]) ) - continue; - - $class = ''; - - if ( $this_role == $role ) { - $class = ' class="current"'; - } - - $name = translate_user_role( $name ); - /* translators: User role name with count */ - $name = sprintf( __('%1$s (%2$s)'), $name, number_format_i18n( $avail_roles[$this_role] ) ); - $role_links[$this_role] = "$name"; - } - - return $role_links; - } - - /** - * Retrieve an associative array of bulk actions available on this table. - * - * @since 3.1.0 - * @access protected - * - * @return array Array of bulk actions. - */ - protected function get_bulk_actions() { - $actions = array(); - - if ( is_multisite() ) { - if ( current_user_can( 'remove_users' ) ) - $actions['remove'] = __( 'Remove' ); - } else { - if ( current_user_can( 'delete_users' ) ) - $actions['delete'] = __( 'Delete' ); - } - - return $actions; - } - - /** - * Output the controls to allow user roles to be changed in bulk. - * - * @since 3.1.0 - * @access protected - * - * @param string $which Whether this is being invoked above ("top") - * or below the table ("bottom"). - */ - protected function extra_tablenav( $which ) { - if ( 'top' != $which ) - return; - ?> -
- - - - '; - } - - /** - * Capture the bulk action required, and return it. - * - * Overridden from the base class implementation to capture - * the role change drop-down. - * - * @since 3.1.0 - * @access public - * - * @return string The bulk action required. - */ - public function current_action() { - if ( isset($_REQUEST['changeit']) && !empty($_REQUEST['new_role']) ) - return 'promote'; - - return parent::current_action(); - } - - /** - * Get a list of columns for the list table. - * - * @since 3.1.0 - * @access public - * - * @return array Array in which the key is the ID of the column, - * and the value is the description. - */ - public function get_columns() { - $c = array( - 'cb' => '', - 'username' => __( 'Username' ), - 'name' => __( 'Name' ), - 'email' => __( 'E-mail' ), - 'role' => __( 'Role' ), - 'posts' => __( 'Posts' ) - ); - - if ( $this->is_site_users ) - unset( $c['posts'] ); - - return $c; - } - - /** - * Get a list of sortable columns for the list table. - * - * @since 3.1.0 - * @access protected - * - * @return array Array of sortable columns. - */ - protected function get_sortable_columns() { - $c = array( - 'username' => 'login', - 'name' => 'name', - 'email' => 'email', - ); - - if ( $this->is_site_users ) - unset( $c['posts'] ); - - return $c; - } - - /** - * Generate the list table rows. - * - * @since 3.1.0 - * @access public - */ - public function display_rows() { - // Query the post counts for this page - if ( ! $this->is_site_users ) - $post_counts = count_many_users_posts( array_keys( $this->items ) ); - - $editable_roles = array_keys( get_editable_roles() ); - - foreach ( $this->items as $userid => $user_object ) { - if ( count( $user_object->roles ) <= 1 ) { - $role = reset( $user_object->roles ); - } elseif ( $roles = array_intersect( array_values( $user_object->roles ), $editable_roles ) ) { - $role = reset( $roles ); - } else { - $role = reset( $user_object->roles ); - } - - if ( is_multisite() && empty( $user_object->allcaps ) ) - continue; - - echo "\n\t" . $this->single_row( $user_object, $style = '', $role, isset( $post_counts ) ? $post_counts[ $userid ] : 0 ); - } - } - - /** - * Generate HTML for a single row on the users.php admin panel. - * - * @since 3.1.0 - * @since 4.2.0 The `$style` argument was deprecated. - * @access public - * - * @param object $user_object The current user object. - * @param string $style Deprecated. Not used. - * @param string $role Optional. Key for the $wp_roles array. Default empty. - * @param int $numposts Optional. Post count to display for this user. Defaults - * to zero, as in, a new user has made zero posts. - * @return string Output for a single row. - */ - public function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) { - $wp_roles = wp_roles(); - - if ( ! ( $user_object instanceof WP_User ) ) { - $user_object = get_userdata( (int) $user_object ); - } - $user_object->filter = 'display'; - $email = $user_object->user_email; - - if ( $this->is_site_users ) - $url = "site-users.php?id={$this->site_id}&"; - else - $url = 'users.php?'; - - $checkbox = ''; - // Check if the user for this row is editable - if ( current_user_can( 'list_users' ) ) { - // Set up the user editing link - $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user_object->ID ) ) ); - - // Set up the hover actions for this user - $actions = array(); - - if ( current_user_can( 'edit_user', $user_object->ID ) ) { - $edit = "$user_object->user_login
"; - $actions['edit'] = '' . __( 'Edit' ) . ''; - } else { - $edit = "$user_object->user_login
"; - } - - if ( !is_multisite() && get_current_user_id() != $user_object->ID && current_user_can( 'delete_user', $user_object->ID ) ) - $actions['delete'] = "" . __( 'Delete' ) . ""; - if ( is_multisite() && get_current_user_id() != $user_object->ID && current_user_can( 'remove_user', $user_object->ID ) ) - $actions['remove'] = "" . __( 'Remove' ) . ""; - - /** - * Filter the action links displayed under each user in the Users list table. - * - * @since 2.8.0 - * - * @param array $actions An array of action links to be displayed. - * Default 'Edit', 'Delete' for single site, and - * 'Edit', 'Remove' for Multisite. - * @param WP_User $user_object WP_User object for the currently-listed user. - */ - $actions = apply_filters( 'user_row_actions', $actions, $user_object ); - - // Set up the checkbox ( because the user is editable, otherwise it's empty ) - $checkbox = '' - . ""; - - } else { - $edit = '' . $user_object->user_login . ''; - } - $role_name = isset( $wp_roles->role_names[$role] ) ? translate_user_role( $wp_roles->role_names[$role] ) : __( 'None' ); - $avatar = get_avatar( $user_object->ID, 32 ); - - $r = ""; - - list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); - - foreach ( $columns as $column_name => $column_display_name ) { - $classes = "$column_name column-$column_name"; - if ( $primary === $column_name ) { - $classes .= ' has-row-actions column-primary'; - } - if ( 'posts' === $column_name ) { - $classes .= ' num'; // Special case for that column - } - - if ( in_array( $column_name, $hidden ) ) { - $classes .= ' hidden'; - } - - $data = 'data-colname="' . wp_strip_all_tags( $column_display_name ) . '"'; - - $attributes = "class='$classes' $data"; - - if ( 'cb' === $column_name ) { - $r .= "$checkbox"; - } else { - $r .= ""; - switch ( $column_name ) { - case 'username': - $r .= "$avatar $edit"; - break; - case 'name': - $r .= "$user_object->first_name $user_object->last_name"; - break; - case 'email': - $r .= "$email"; - break; - case 'role': - $r .= $role_name; - break; - case 'posts': - if ( $numposts > 0 ) { - $r .= ""; - $r .= ''; - $r .= '' . sprintf( _n( '%s post by this author', '%s posts by this author', $numposts ), number_format_i18n( $numposts ) ) . ''; - $r .= ''; - } else { - $r .= 0; - } - break; - default: - /** - * Filter the display output of custom columns in the Users list table. - * - * @since 2.8.0 - * - * @param string $output Custom column output. Default empty. - * @param string $column_name Column name. - * @param int $user_id ID of the currently-listed user. - */ - $r .= apply_filters( 'manage_users_custom_column', '', $column_name, $user_object->ID ); - } - - if ( $primary === $column_name ) { - $r .= $this->row_actions( $actions ); - } - $r .= ""; - } - } - $r .= ''; - - return $r; - } - - /** - * Gets the name of the default primary column. - * - * @since 4.3.0 - * @access protected - * - * @return string Name of the default primary column, in this case, 'username'. - */ - protected function get_default_primary_column_name() { - return 'username'; - } -} diff --git a/wp-admin/includes/comment.php b/wp-admin/includes/comment.php deleted file mode 100644 index 36954b231c..0000000000 --- a/wp-admin/includes/comment.php +++ /dev/null @@ -1,176 +0,0 @@ -get_var( $wpdb->prepare("SELECT comment_post_ID FROM $wpdb->comments - WHERE comment_author = %s AND comment_date = %s", - stripslashes( $comment_author ), - stripslashes( $comment_date ) - ) ); -} - -/** - * Update a comment with values provided in $_POST. - * - * @since 2.0.0 - */ -function edit_comment() { - if ( ! current_user_can( 'edit_comment', (int) $_POST['comment_ID'] ) ) - wp_die ( __( 'You are not allowed to edit comments on this post.' ) ); - - if ( isset( $_POST['newcomment_author'] ) ) - $_POST['comment_author'] = $_POST['newcomment_author']; - if ( isset( $_POST['newcomment_author_email'] ) ) - $_POST['comment_author_email'] = $_POST['newcomment_author_email']; - if ( isset( $_POST['newcomment_author_url'] ) ) - $_POST['comment_author_url'] = $_POST['newcomment_author_url']; - if ( isset( $_POST['comment_status'] ) ) - $_POST['comment_approved'] = $_POST['comment_status']; - if ( isset( $_POST['content'] ) ) - $_POST['comment_content'] = $_POST['content']; - if ( isset( $_POST['comment_ID'] ) ) - $_POST['comment_ID'] = (int) $_POST['comment_ID']; - - foreach ( array ('aa', 'mm', 'jj', 'hh', 'mn') as $timeunit ) { - if ( !empty( $_POST['hidden_' . $timeunit] ) && $_POST['hidden_' . $timeunit] != $_POST[$timeunit] ) { - $_POST['edit_date'] = '1'; - break; - } - } - - if ( !empty ( $_POST['edit_date'] ) ) { - $aa = $_POST['aa']; - $mm = $_POST['mm']; - $jj = $_POST['jj']; - $hh = $_POST['hh']; - $mn = $_POST['mn']; - $ss = $_POST['ss']; - $jj = ($jj > 31 ) ? 31 : $jj; - $hh = ($hh > 23 ) ? $hh -24 : $hh; - $mn = ($mn > 59 ) ? $mn -60 : $mn; - $ss = ($ss > 59 ) ? $ss -60 : $ss; - $_POST['comment_date'] = "$aa-$mm-$jj $hh:$mn:$ss"; - } - - wp_update_comment( $_POST ); -} - -/** - * Returns a comment object based on comment ID. - * - * @since 2.0.0 - * - * @param int $id ID of comment to retrieve. - * @return object|false Comment if found. False on failure. - */ -function get_comment_to_edit( $id ) { - if ( !$comment = get_comment($id) ) - return false; - - $comment->comment_ID = (int) $comment->comment_ID; - $comment->comment_post_ID = (int) $comment->comment_post_ID; - - $comment->comment_content = format_to_edit( $comment->comment_content ); - /** - * Filter the comment content before editing. - * - * @since 2.0.0 - * - * @param string $comment->comment_content Comment content. - */ - $comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content ); - - $comment->comment_author = format_to_edit( $comment->comment_author ); - $comment->comment_author_email = format_to_edit( $comment->comment_author_email ); - $comment->comment_author_url = format_to_edit( $comment->comment_author_url ); - $comment->comment_author_url = esc_url($comment->comment_author_url); - - return $comment; -} - -/** - * Get the number of pending comments on a post or posts - * - * @since 2.3.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param int|array $post_id Either a single Post ID or an array of Post IDs - * @return int|array Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs - */ -function get_pending_comments_num( $post_id ) { - global $wpdb; - - $single = false; - if ( !is_array($post_id) ) { - $post_id_array = (array) $post_id; - $single = true; - } else { - $post_id_array = $post_id; - } - $post_id_array = array_map('intval', $post_id_array); - $post_id_in = "'" . implode("', '", $post_id_array) . "'"; - - $pending = $wpdb->get_results( "SELECT comment_post_ID, COUNT(comment_ID) as num_comments FROM $wpdb->comments WHERE comment_post_ID IN ( $post_id_in ) AND comment_approved = '0' GROUP BY comment_post_ID", ARRAY_A ); - - if ( $single ) { - if ( empty($pending) ) - return 0; - else - return absint($pending[0]['num_comments']); - } - - $pending_keyed = array(); - - // Default to zero pending for all posts in request - foreach ( $post_id_array as $id ) - $pending_keyed[$id] = 0; - - if ( !empty($pending) ) - foreach ( $pending as $pend ) - $pending_keyed[$pend['comment_post_ID']] = absint($pend['num_comments']); - - return $pending_keyed; -} - -/** - * Add avatars to relevant places in admin, or try to. - * - * @since 2.5.0 - * - * @global object $comment - * - * @param string $name User name. - * @return string Avatar with Admin name. - */ -function floated_admin_avatar( $name ) { - global $comment; - $avatar = get_avatar( $comment, 32, 'mystery' ); - return "$avatar $name"; -} - -/** - * @since 2.7.0 - */ -function enqueue_comment_hotkeys_js() { - if ( 'true' == get_user_option( 'comment_shortcuts' ) ) - wp_enqueue_script( 'jquery-table-hotkeys' ); -} diff --git a/wp-admin/includes/continents-cities.php b/wp-admin/includes/continents-cities.php deleted file mode 100644 index 0ebc4f3fce..0000000000 --- a/wp-admin/includes/continents-cities.php +++ /dev/null @@ -1,493 +0,0 @@ -%1$s %2$s', __( 'Quick Draft' ), __( 'Drafts' ) ); - wp_add_dashboard_widget( 'dashboard_quick_press', $quick_draft_title, 'wp_dashboard_quick_press' ); - } - - // WordPress News - wp_add_dashboard_widget( 'dashboard_primary', __( 'WordPress News' ), 'wp_dashboard_primary' ); - - if ( is_network_admin() ) { - - /** - * Fires after core widgets for the Network Admin dashboard have been registered. - * - * @since 3.1.0 - */ - do_action( 'wp_network_dashboard_setup' ); - - /** - * Filter the list of widgets to load for the Network Admin dashboard. - * - * @since 3.1.0 - * - * @param array $dashboard_widgets An array of dashboard widgets. - */ - $dashboard_widgets = apply_filters( 'wp_network_dashboard_widgets', array() ); - } elseif ( is_user_admin() ) { - - /** - * Fires after core widgets for the User Admin dashboard have been registered. - * - * @since 3.1.0 - */ - do_action( 'wp_user_dashboard_setup' ); - - /** - * Filter the list of widgets to load for the User Admin dashboard. - * - * @since 3.1.0 - * - * @param array $dashboard_widgets An array of dashboard widgets. - */ - $dashboard_widgets = apply_filters( 'wp_user_dashboard_widgets', array() ); - } else { - - /** - * Fires after core widgets for the admin dashboard have been registered. - * - * @since 2.5.0 - */ - do_action( 'wp_dashboard_setup' ); - - /** - * Filter the list of widgets to load for the admin dashboard. - * - * @since 2.5.0 - * - * @param array $dashboard_widgets An array of dashboard widgets. - */ - $dashboard_widgets = apply_filters( 'wp_dashboard_widgets', array() ); - } - - foreach ( $dashboard_widgets as $widget_id ) { - $name = empty( $wp_registered_widgets[$widget_id]['all_link'] ) ? $wp_registered_widgets[$widget_id]['name'] : $wp_registered_widgets[$widget_id]['name'] . " " . __('View all') . ''; - wp_add_dashboard_widget( $widget_id, $name, $wp_registered_widgets[$widget_id]['callback'], $wp_registered_widget_controls[$widget_id]['callback'] ); - } - - if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset($_POST['widget_id']) ) { - check_admin_referer( 'edit-dashboard-widget_' . $_POST['widget_id'], 'dashboard-widget-nonce' ); - ob_start(); // hack - but the same hack wp-admin/widgets.php uses - wp_dashboard_trigger_widget_control( $_POST['widget_id'] ); - ob_end_clean(); - wp_redirect( remove_query_arg( 'edit' ) ); - exit; - } - - /** This action is documented in wp-admin/edit-form-advanced.php */ - do_action( 'do_meta_boxes', $screen->id, 'normal', '' ); - - /** This action is documented in wp-admin/edit-form-advanced.php */ - do_action( 'do_meta_boxes', $screen->id, 'side', '' ); -} - -/** - * - * @global array $wp_dashboard_control_callbacks - * - * @param string $widget_id - * @param string $widget_name - * @param callback $callback - * @param callback $control_callback - * @param array $callback_args - */ -function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_callback = null, $callback_args = null ) { - $screen = get_current_screen(); - global $wp_dashboard_control_callbacks; - - if ( $control_callback && current_user_can( 'edit_dashboard' ) && is_callable( $control_callback ) ) { - $wp_dashboard_control_callbacks[$widget_id] = $control_callback; - if ( isset( $_GET['edit'] ) && $widget_id == $_GET['edit'] ) { - list($url) = explode( '#', add_query_arg( 'edit', false ), 2 ); - $widget_name .= ' ' . __( 'Cancel' ) . ''; - $callback = '_wp_dashboard_control_callback'; - } else { - list($url) = explode( '#', add_query_arg( 'edit', $widget_id ), 2 ); - $widget_name .= ' ' . __( 'Configure' ) . ''; - } - } - - $side_widgets = array( 'dashboard_quick_press', 'dashboard_primary' ); - - $location = 'normal'; - if ( in_array($widget_id, $side_widgets) ) - $location = 'side'; - - $priority = 'core'; - if ( 'dashboard_browser_nag' === $widget_id ) - $priority = 'high'; - - add_meta_box( $widget_id, $widget_name, $callback, $screen, $location, $priority, $callback_args ); -} - -/** - * - * @param type $dashboard - * @param type $meta_box - */ -function _wp_dashboard_control_callback( $dashboard, $meta_box ) { - echo '
'; - wp_dashboard_trigger_widget_control( $meta_box['id'] ); - wp_nonce_field( 'edit-dashboard-widget_' . $meta_box['id'], 'dashboard-widget-nonce' ); - echo ''; - submit_button( __('Submit') ); - echo '
'; -} - -/** - * Displays the dashboard. - * - * @since 2.5.0 - */ -function wp_dashboard() { - $screen = get_current_screen(); - $columns = absint( $screen->get_columns() ); - $columns_css = ''; - if ( $columns ) { - $columns_css = " columns-$columns"; - } - -?> -
-
- id, 'normal', '' ); ?> -
-
- id, 'side', '' ); ?> -
-
- id, 'column3', '' ); ?> -
-
- id, 'column4', '' ); ?> -
-
- - -
-
    - publish ) { - if ( 'post' == $post_type ) { - $text = _n( '%s Post', '%s Posts', $num_posts->publish ); - } else { - $text = _n( '%s Page', '%s Pages', $num_posts->publish ); - } - $text = sprintf( $text, number_format_i18n( $num_posts->publish ) ); - $post_type_object = get_post_type_object( $post_type ); - if ( $post_type_object && current_user_can( $post_type_object->cap->edit_posts ) ) { - printf( '
  • %2$s
  • ', $post_type, $text ); - } else { - printf( '
  • %2$s
  • ', $post_type, $text ); - } - - } - } - // Comments - $num_comm = wp_count_comments(); - if ( $num_comm && $num_comm->approved ) { - $text = sprintf( _n( '%s Comment', '%s Comments', $num_comm->approved ), number_format_i18n( $num_comm->approved ) ); - ?> -
  • - moderated ) { - /* translators: Number of comments in moderation */ - $text = sprintf( _nx( '%s in moderation', '%s in moderation', $num_comm->moderated, 'comments' ), number_format_i18n( $num_comm->moderated ) ); - ?> -
  • - ' . implode( "\n
  • ", $elements ) . "
  • \n"; - } - - ?> -
- $content

"; - } - ?> -
- -
- -
- ' . __( 'Create a New Site' ) . ''; - if ( current_user_can('create_users') ) - $actions['create-user'] = '' . __( 'Create a New User' ) . ''; - - $c_users = get_user_count(); - $c_blogs = get_blog_count(); - - $user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) ); - $blog_text = sprintf( _n( '%s site', '%s sites', $c_blogs ), number_format_i18n( $c_blogs ) ); - - $sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text ); - - if ( $actions ) { - echo '
    '; - foreach ( $actions as $class => $action ) { - $actions[ $class ] = "\t
  • $action"; - } - echo implode( " |
  • \n", $actions ) . "\n"; - echo '
'; - } -?> -
- -

- - - - -
-

- - - 'submit_users' ) ); ?> -

-
- -
-

- - - 'submit_sites' ) ); ?> -

-
-post_status != 'auto-draft' ) { // auto-draft doesn't exists anymore - $post = get_default_post_to_edit( 'post', true ); - update_user_option( get_current_user_id(), 'dashboard_quick_press_last_post_id', (int) $post->ID ); // Save post_ID - } else { - $post->post_title = ''; // Remove the auto draft title - } - } else { - $post = get_default_post_to_edit( 'post' , true); - $user_id = get_current_user_id(); - // Don't create an option if this is a super admin who does not belong to this site. - if ( ! ( is_super_admin( $user_id ) && ! in_array( get_current_blog_id(), array_keys( get_blogs_of_user( $user_id ) ) ) ) ) - update_user_option( $user_id, 'dashboard_quick_press_last_post_id', (int) $post->ID ); // Save post_ID - } - - $post_ID = (int) $post->ID; -?> - -
- - -
- - -
- - -
- -
- - -
- -

- - - - - 'save-post' ) ); ?> -
-

- -
- 'post', - 'post_status' => 'draft', - 'author' => get_current_user_id(), - 'posts_per_page' => 4, - 'orderby' => 'modified', - 'order' => 'DESC' - ); - $drafts = get_posts( $query_args ); - if ( ! $drafts ) { - return; - } - } - - echo '
'; - if ( count( $drafts ) > 3 ) { - echo '

' . _x( 'View all', 'drafts' ) . "

\n"; - } - echo '

' . __( 'Drafts' ) . "

\n
    "; - - $drafts = array_slice( $drafts, 0, 3 ); - foreach ( $drafts as $draft ) { - $url = get_edit_post_link( $draft->ID ); - $title = _draft_or_post_title( $draft->ID ); - echo "
  • \n"; - echo '
    ' . esc_html( $title ) . ''; - echo '
    '; - if ( $the_content = wp_trim_words( $draft->post_content, 10 ) ) { - echo '

    ' . $the_content . '

    '; - } - echo "
  • \n"; - } - echo "
\n
"; -} - -/** - * @global object $comment - * - * @param object $comment - * @param bool $show_date - */ -function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { - $GLOBALS['comment'] =& $comment; - - $comment_post_title = _draft_or_post_title( $comment->comment_post_ID ); - - if ( current_user_can( 'edit_post', $comment->comment_post_ID ) ) { - $comment_post_url = get_edit_post_link( $comment->comment_post_ID ); - $comment_post_link = "$comment_post_title"; - } else { - $comment_post_link = $comment_post_title; - } - - $comment_link = '#'; - - $actions_string = ''; - if ( current_user_can( 'edit_comment', $comment->comment_ID ) ) { - // Pre-order it: Approve | Reply | Edit | Spam | Trash. - $actions = array( - 'approve' => '', 'unapprove' => '', - 'reply' => '', - 'edit' => '', - 'spam' => '', - 'trash' => '', 'delete' => '' - ); - - $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) ); - $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "approve-comment_$comment->comment_ID" ) ); - - $approve_url = esc_url( "comment.php?action=approvecomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$approve_nonce" ); - $unapprove_url = esc_url( "comment.php?action=unapprovecomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$approve_nonce" ); - $spam_url = esc_url( "comment.php?action=spamcomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" ); - $trash_url = esc_url( "comment.php?action=trashcomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" ); - $delete_url = esc_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" ); - - $actions['approve'] = "" . __( 'Approve' ) . ''; - $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; - $actions['edit'] = "". __('Edit') . ''; - $actions['reply'] = '' . __('Reply') . ''; - $actions['spam'] = "" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . ''; - if ( !EMPTY_TRASH_DAYS ) - $actions['delete'] = "" . __('Delete Permanently') . ''; - else - $actions['trash'] = "" . _x('Trash', 'verb') . ''; - - /** - * Filter the action links displayed for each comment in the 'Recent Comments' - * dashboard widget. - * - * @since 2.6.0 - * - * @param array $actions An array of comment actions. Default actions include: - * 'Approve', 'Unapprove', 'Edit', 'Reply', 'Spam', - * 'Delete', and 'Trash'. - * @param object $comment The comment object. - */ - $actions = apply_filters( 'comment_row_actions', array_filter($actions), $comment ); - - $i = 0; - foreach ( $actions as $action => $link ) { - ++$i; - ( ( ('approve' == $action || 'unapprove' == $action) && 2 === $i ) || 1 === $i ) ? $sep = '' : $sep = ' | '; - - // Reply and quickedit need a hide-if-no-js span - if ( 'reply' == $action || 'quickedit' == $action ) - $action .= ' hide-if-no-js'; - - $actions_string .= "$sep$link"; - } - } - -?> - -
comment_ID) ) ); ?>> - - - - comment_type || 'comment' == $comment->comment_type ) : ?> - -
-

- ' . get_comment_author_link() . '', $comment_post_link.' '.$comment_link, ' ' . __( '[Pending]' ) . '' ); ?> -

- - comment_type ) { - case 'pingback' : - $type = __( 'Pingback' ); - break; - case 'trackback' : - $type = __( 'Trackback' ); - break; - default : - $type = ucwords( $comment->comment_type ); - } - $type = esc_html( $type ); - ?> -
- -

$type", $comment_post_link." ".$comment_link ); ?>

-

- - -

-

-
-
-'; - - $future_posts = wp_dashboard_recent_posts( array( - 'max' => 5, - 'status' => 'future', - 'order' => 'ASC', - 'title' => __( 'Publishing Soon' ), - 'id' => 'future-posts', - ) ); - $recent_posts = wp_dashboard_recent_posts( array( - 'max' => 5, - 'status' => 'publish', - 'order' => 'DESC', - 'title' => __( 'Recently Published' ), - 'id' => 'published-posts', - ) ); - - $recent_comments = wp_dashboard_recent_comments(); - - if ( !$future_posts && !$recent_posts && !$recent_comments ) { - echo '
'; - echo '

'; - echo '

' . __( 'No activity yet!' ) . '

'; - echo '
'; - } - - echo '
'; -} - -/** - * Generates Publishing Soon and Recently Published sections. - * - * @since 3.8.0 - * - * @param array $args { - * An array of query and display arguments. - * - * @type int $max Number of posts to display. - * @type string $status Post status. - * @type string $order Designates ascending ('ASC') or descending ('DESC') order. - * @type string $title Section title. - * @type string $id The container id. - * } - * @return bool False if no posts were found. True otherwise. - */ -function wp_dashboard_recent_posts( $args ) { - $query_args = array( - 'post_type' => 'post', - 'post_status' => $args['status'], - 'orderby' => 'date', - 'order' => $args['order'], - 'posts_per_page' => intval( $args['max'] ), - 'no_found_rows' => true, - 'cache_results' => false, - 'perm' => ( 'future' === $args['status'] ) ? 'editable' : 'readable', - ); - - /** - * Filter the query arguments used for the Recent Posts widget. - * - * @since 4.2.0 - * - * @param array $query_args The arguments passed to WP_Query to produce the list of posts. - */ - $query_args = apply_filters( 'dashboard_recent_posts_query_args', $query_args ); - $posts = new WP_Query( $query_args ); - - if ( $posts->have_posts() ) { - - echo '
'; - - echo '

' . $args['title'] . '

'; - - echo '
    '; - - $today = date( 'Y-m-d', current_time( 'timestamp' ) ); - $tomorrow = date( 'Y-m-d', strtotime( '+1 day', current_time( 'timestamp' ) ) ); - - while ( $posts->have_posts() ) { - $posts->the_post(); - - $time = get_the_time( 'U' ); - if ( date( 'Y-m-d', $time ) == $today ) { - $relative = __( 'Today' ); - } elseif ( date( 'Y-m-d', $time ) == $tomorrow ) { - $relative = __( 'Tomorrow' ); - } else { - /* translators: date and time format for recent posts on the dashboard, see http://php.net/date */ - $relative = date_i18n( __( 'M jS' ), $time ); - } - - // Use the post edit link for those who can edit, the permalink otherwise. - $recent_post_link = current_user_can( 'edit_post', get_the_ID() ) ? get_edit_post_link() : get_permalink(); - - /* translators: 1: relative date, 2: time, 3: post edit link or permalink, 4: post title */ - $format = __( '%1$s, %2$s %4$s' ); - printf( "
  • $format
  • ", $relative, get_the_time(), $recent_post_link, _draft_or_post_title() ); - } - - echo '
'; - echo '
'; - - } else { - return false; - } - - wp_reset_postdata(); - - return true; -} - -/** - * Show Comments section. - * - * @since 3.8.0 - * - * @param int $total_items Optional. Number of comments to query. Default 5. - * @return bool False if no comments were found. True otherwise. - */ -function wp_dashboard_recent_comments( $total_items = 5 ) { - // Select all comment types and filter out spam later for better query performance. - $comments = array(); - - $comments_query = array( - 'number' => $total_items * 5, - 'offset' => 0 - ); - if ( ! current_user_can( 'edit_posts' ) ) - $comments_query['status'] = 'approve'; - - while ( count( $comments ) < $total_items && $possible = get_comments( $comments_query ) ) { - if ( ! is_array( $possible ) ) { - break; - } - foreach ( $possible as $comment ) { - if ( ! current_user_can( 'read_post', $comment->comment_post_ID ) ) - continue; - $comments[] = $comment; - if ( count( $comments ) == $total_items ) - break 2; - } - $comments_query['offset'] += $comments_query['number']; - $comments_query['number'] = $total_items * 10; - } - - if ( $comments ) { - echo '
'; - echo '

' . __( 'Comments' ) . '

'; - - echo '
'; - foreach ( $comments as $comment ) - _wp_dashboard_recent_comments_row( $comment ); - echo '
'; - - if ( current_user_can('edit_posts') ) - _get_list_table('WP_Comments_List_Table')->views(); - - wp_comment_reply( -1, false, 'dashboard', false ); - wp_comment_trashnotice(); - - echo '
'; - } else { - return false; - } - return true; -} - -/** - * Display generic dashboard RSS widget feed. - * - * @since 2.5.0 - * - * @param string $widget_id - */ -function wp_dashboard_rss_output( $widget_id ) { - $widgets = get_option( 'dashboard_widget_options' ); - echo '
'; - wp_widget_rss_output( $widgets[ $widget_id ] ); - echo "
"; -} - -/** - * Checks to see if all of the feed url in $check_urls are cached. - * - * If $check_urls is empty, look for the rss feed url found in the dashboard - * widget options of $widget_id. If cached, call $callback, a function that - * echoes out output for this widget. If not cache, echo a "Loading..." stub - * which is later replaced by AJAX call (see top of /wp-admin/index.php) - * - * @since 2.5.0 - * - * @param string $widget_id - * @param callback $callback - * @param array $check_urls RSS feeds - * @return bool False on failure. True on success. - */ -function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = array() ) { - $loading = '

' . __( 'Loading…' ) . '

' . __( 'This widget requires JavaScript.' ) . '

'; - $doing_ajax = ( defined('DOING_AJAX') && DOING_AJAX ); - - if ( empty($check_urls) ) { - $widgets = get_option( 'dashboard_widget_options' ); - if ( empty($widgets[$widget_id]['url']) && ! $doing_ajax ) { - echo $loading; - return false; - } - $check_urls = array( $widgets[$widget_id]['url'] ); - } - - $locale = get_locale(); - $cache_key = 'dash_' . md5( $widget_id . '_' . $locale ); - if ( false !== ( $output = get_transient( $cache_key ) ) ) { - echo $output; - return true; - } - - if ( ! $doing_ajax ) { - echo $loading; - return false; - } - - if ( $callback && is_callable( $callback ) ) { - $args = array_slice( func_get_args(), 3 ); - array_unshift( $args, $widget_id, $check_urls ); - ob_start(); - call_user_func_array( $callback, $args ); - set_transient( $cache_key, ob_get_flush(), 12 * HOUR_IN_SECONDS ); // Default lifetime in cache of 12 hours (same as the feeds) - } - - return true; -} - -/* Dashboard Widgets Controls */ - -// Calls widget_control callback -/** - * Calls widget control callback. - * - * @since 2.5.0 - * - * @global array $wp_dashboard_control_callbacks - * - * @param int $widget_control_id Registered Widget ID. - */ -function wp_dashboard_trigger_widget_control( $widget_control_id = false ) { - global $wp_dashboard_control_callbacks; - - if ( is_scalar($widget_control_id) && $widget_control_id && isset($wp_dashboard_control_callbacks[$widget_control_id]) && is_callable($wp_dashboard_control_callbacks[$widget_control_id]) ) { - call_user_func( $wp_dashboard_control_callbacks[$widget_control_id], '', array( 'id' => $widget_control_id, 'callback' => $wp_dashboard_control_callbacks[$widget_control_id] ) ); - } -} - -/** - * The RSS dashboard widget control. - * - * Sets up $args to be used as input to wp_widget_rss_form(). Handles POST data - * from RSS-type widgets. - * - * @since 2.5.0 - * - * @param string $widget_id - * @param array $form_inputs - */ -function wp_dashboard_rss_control( $widget_id, $form_inputs = array() ) { - if ( !$widget_options = get_option( 'dashboard_widget_options' ) ) - $widget_options = array(); - - if ( !isset($widget_options[$widget_id]) ) - $widget_options[$widget_id] = array(); - - $number = 1; // Hack to use wp_widget_rss_form() - $widget_options[$widget_id]['number'] = $number; - - if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset($_POST['widget-rss'][$number]) ) { - $_POST['widget-rss'][$number] = wp_unslash( $_POST['widget-rss'][$number] ); - $widget_options[$widget_id] = wp_widget_rss_process( $_POST['widget-rss'][$number] ); - $widget_options[$widget_id]['number'] = $number; - - // Title is optional. If black, fill it if possible. - if ( !$widget_options[$widget_id]['title'] && isset($_POST['widget-rss'][$number]['title']) ) { - $rss = fetch_feed($widget_options[$widget_id]['url']); - if ( is_wp_error($rss) ) { - $widget_options[$widget_id]['title'] = htmlentities(__('Unknown Feed')); - } else { - $widget_options[$widget_id]['title'] = htmlentities(strip_tags($rss->get_title())); - $rss->__destruct(); - unset($rss); - } - } - update_option( 'dashboard_widget_options', $widget_options ); - $cache_key = 'dash_' . md5( $widget_id ); - delete_transient( $cache_key ); - } - - wp_widget_rss_form( $widget_options[$widget_id], $form_inputs ); -} - -/** - * WordPress News dashboard widget. - * - * @since 2.7.0 - */ -function wp_dashboard_primary() { - $feeds = array( - 'news' => array( - - /** - * Filter the primary link URL for the 'WordPress News' dashboard widget. - * - * @since 2.5.0 - * - * @param string $link The widget's primary link URL. - */ - 'link' => apply_filters( 'dashboard_primary_link', __( 'http://wordpress.org/news/' ) ), - - /** - * Filter the primary feed URL for the 'WordPress News' dashboard widget. - * - * @since 2.3.0 - * - * @param string $url The widget's primary feed URL. - */ - 'url' => apply_filters( 'dashboard_primary_feed', __( 'http://wordpress.org/news/feed/' ) ), - - /** - * Filter the primary link title for the 'WordPress News' dashboard widget. - * - * @since 2.3.0 - * - * @param string $title Title attribute for the widget's primary link. - */ - 'title' => apply_filters( 'dashboard_primary_title', __( 'WordPress Blog' ) ), - 'items' => 1, - 'show_summary' => 1, - 'show_author' => 0, - 'show_date' => 1, - ), - 'planet' => array( - - /** - * Filter the secondary link URL for the 'WordPress News' dashboard widget. - * - * @since 2.3.0 - * - * @param string $link The widget's secondary link URL. - */ - 'link' => apply_filters( 'dashboard_secondary_link', __( 'https://planet.wordpress.org/' ) ), - - /** - * Filter the secondary feed URL for the 'WordPress News' dashboard widget. - * - * @since 2.3.0 - * - * @param string $url The widget's secondary feed URL. - */ - 'url' => apply_filters( 'dashboard_secondary_feed', __( 'https://planet.wordpress.org/feed/' ) ), - - /** - * Filter the secondary link title for the 'WordPress News' dashboard widget. - * - * @since 2.3.0 - * - * @param string $title Title attribute for the widget's secondary link. - */ - 'title' => apply_filters( 'dashboard_secondary_title', __( 'Other WordPress News' ) ), - 'items' => 3, - 'show_summary' => 0, - 'show_author' => 0, - 'show_date' => 0, - ) - ); - - if ( ( ! is_multisite() && is_blog_admin() && current_user_can( 'install_plugins' ) ) || ( is_network_admin() && current_user_can( 'manage_network_plugins' ) && current_user_can( 'install_plugins' ) ) ) { - $feeds['plugins'] = array( - 'link' => '', - 'url' => array( - 'popular' => 'http://wordpress.org/plugins/rss/browse/popular/', - ), - 'title' => '', - 'items' => 1, - 'show_summary' => 0, - 'show_author' => 0, - 'show_date' => 0, - ); - } - - wp_dashboard_cached_rss_widget( 'dashboard_primary', 'wp_dashboard_primary_output', $feeds ); -} - -/** - * Display the WordPress news feeds. - * - * @since 3.8.0 - * - * @param string $widget_id Widget ID. - * @param array $feeds Array of RSS feeds. - */ -function wp_dashboard_primary_output( $widget_id, $feeds ) { - foreach( $feeds as $type => $args ) { - $args['type'] = $type; - echo '
'; - if ( $type === 'plugins' ) { - wp_dashboard_plugins_output( $args['url'], $args ); - } else { - wp_widget_rss_output( $args['url'], $args ); - } - echo "
"; - } -} - -/** - * Display plugins text for the WordPress news widget. - * - * @since 2.5.0 - */ -function wp_dashboard_plugins_output( $rss, $args = array() ) { - // Plugin feeds plus link to install them - $popular = fetch_feed( $args['url']['popular'] ); - - if ( false === $plugin_slugs = get_transient( 'plugin_slugs' ) ) { - $plugin_slugs = array_keys( get_plugins() ); - set_transient( 'plugin_slugs', $plugin_slugs, DAY_IN_SECONDS ); - } - - echo '
    '; - - foreach ( array( $popular ) as $feed ) { - if ( is_wp_error( $feed ) || ! $feed->get_item_quantity() ) - continue; - - $items = $feed->get_items(0, 5); - - // Pick a random, non-installed plugin - while ( true ) { - // Abort this foreach loop iteration if there's no plugins left of this type - if ( 0 == count($items) ) - continue 2; - - $item_key = array_rand($items); - $item = $items[$item_key]; - - list($link, $frag) = explode( '#', $item->get_link() ); - - $link = esc_url($link); - if ( preg_match( '|/([^/]+?)/?$|', $link, $matches ) ) - $slug = $matches[1]; - else { - unset( $items[$item_key] ); - continue; - } - - // Is this random plugin's slug already installed? If so, try again. - reset( $plugin_slugs ); - foreach ( $plugin_slugs as $plugin_slug ) { - if ( $slug == substr( $plugin_slug, 0, strlen( $slug ) ) ) { - unset( $items[$item_key] ); - continue 2; - } - } - - // If we get to this point, then the random plugin isn't installed and we can stop the while(). - break; - } - - // Eliminate some common badly formed plugin descriptions - while ( ( null !== $item_key = array_rand($items) ) && false !== strpos( $items[$item_key]->get_description(), 'Plugin Name:' ) ) - unset($items[$item_key]); - - if ( !isset($items[$item_key]) ) - continue; - - $title = esc_html( $item->get_title() ); - - $ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) . '&TB_iframe=true&width=600&height=800'; - echo "
  • " . __( 'Popular Plugin' ) . ": $title (" . __( 'Install' ) . ")
  • "; - - $feed->__destruct(); - unset( $feed ); - } - - echo '
'; -} - -/** - * Display file upload quota on dashboard. - * - * Runs on the activity_box_end hook in wp_dashboard_right_now(). - * - * @since 3.0.0 - * - * @return bool|null True if not multisite, user can't upload files, or the space check option is disabled. -*/ -function wp_dashboard_quota() { - if ( !is_multisite() || !current_user_can( 'upload_files' ) || get_site_option( 'upload_space_check_disabled' ) ) - return true; - - $quota = get_space_allowed(); - $used = get_space_used(); - - if ( $used > $quota ) - $percentused = '100'; - else - $percentused = ( $used / $quota ) * 100; - $used_class = ( $percentused >= 70 ) ? ' warning' : ''; - $used = round( $used, 2 ); - $percentused = number_format( $percentused ); - - ?> -

-
-
    -
  • - %3$s', - esc_url( admin_url( 'upload.php' ) ), - __( 'Manage Uploads' ), - $text - ); ?> -
  • - %3$s', - esc_url( admin_url( 'upload.php' ) ), - __( 'Manage Uploads' ), - $text - ); ?> -
  • -
-
- %s. Using an outdated browser makes your computer unsafe. For the best WordPress experience, please update your browser." ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ) ); - } else { - $msg = sprintf( __( "It looks like you're using an old version of %s. For the best WordPress experience, please update your browser." ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ) ); - } - - $browser_nag_class = ''; - if ( !empty( $response['img_src'] ) ) { - $img_src = ( is_ssl() && ! empty( $response['img_src_ssl'] ) )? $response['img_src_ssl'] : $response['img_src']; - - $notice .= '
'; - $browser_nag_class = ' has-browser-icon'; - } - $notice .= "

{$msg}

"; - - $browsehappy = 'http://browsehappy.com/'; - $locale = get_locale(); - if ( 'en_US' !== $locale ) - $browsehappy = add_query_arg( 'locale', $locale, $browsehappy ); - - $notice .= '

' . sprintf( __( 'Update %2$s or learn how to browse happy' ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ), esc_url( $browsehappy ) ) . '

'; - $notice .= '

' . __( 'Dismiss' ) . '

'; - $notice .= '
'; - } - - /** - * Filter the notice output for the 'Browse Happy' nag meta box. - * - * @since 3.2.0 - * - * @param string $notice The notice content. - * @param array $response An array containing web browser information. - */ - echo apply_filters( 'browse-happy-notice', $notice, $response ); -} - -/** - * @since 3.2.0 - * - * @param array $classes - * @return array - */ -function dashboard_browser_nag_class( $classes ) { - $response = wp_check_browser_version(); - - if ( $response && $response['insecure'] ) - $classes[] = 'browser-insecure'; - - return $classes; -} - -/** - * Check if the user needs a browser update - * - * @since 3.2.0 - * - * @global string $wp_version - * - * @return array|bool False on failure, array of browser data on success. - */ -function wp_check_browser_version() { - if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) - return false; - - $key = md5( $_SERVER['HTTP_USER_AGENT'] ); - - if ( false === ($response = get_site_transient('browser_' . $key) ) ) { - global $wp_version; - - $options = array( - 'body' => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ), - 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url() - ); - - $response = wp_remote_post( 'http://api.wordpress.org/core/browse-happy/1.1/', $options ); - - if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) - return false; - - /** - * Response should be an array with: - * 'name' - string - A user friendly browser name - * 'version' - string - The most recent version of the browser - * 'current_version' - string - The version of the browser the user is using - * 'upgrade' - boolean - Whether the browser needs an upgrade - * 'insecure' - boolean - Whether the browser is deemed insecure - * 'upgrade_url' - string - The url to visit to upgrade - * 'img_src' - string - An image representing the browser - * 'img_src_ssl' - string - An image (over SSL) representing the browser - */ - $response = json_decode( wp_remote_retrieve_body( $response ), true ); - - if ( ! is_array( $response ) ) - return false; - - set_site_transient( 'browser_' . $key, $response, WEEK_IN_SECONDS ); - } - - return $response; -} - -/** - * Empty function usable by plugins to output empty dashboard widget (to be populated later by JS). - */ -function wp_dashboard_empty() {} - -/** - * Displays a welcome panel to introduce users to WordPress. - * - * @since 3.3.0 - */ -function wp_welcome_panel() { - ?> -
-

-

-
-
- -

- - - - true ) ) ) > 1 ) ) : ?> -

change your theme completely' ), admin_url( 'themes.php' ) ); ?>

- -
-
-

-
    - -
  • ' . __( 'Edit your front page' ) . '', get_edit_post_link( get_option( 'page_on_front' ) ) ); ?>
  • -
  • ' . __( 'Add additional pages' ) . '', admin_url( 'post-new.php?post_type=page' ) ); ?>
  • - -
  • ' . __( 'Edit your front page' ) . '', get_edit_post_link( get_option( 'page_on_front' ) ) ); ?>
  • -
  • ' . __( 'Add additional pages' ) . '', admin_url( 'post-new.php?post_type=page' ) ); ?>
  • -
  • ' . __( 'Add a blog post' ) . '', admin_url( 'post-new.php' ) ); ?>
  • - -
  • ' . __( 'Write your first blog post' ) . '', admin_url( 'post-new.php' ) ); ?>
  • -
  • ' . __( 'Add an About page' ) . '', admin_url( 'post-new.php?post_type=page' ) ); ?>
  • - -
  • ' . __( 'View your site' ) . '', home_url( '/' ) ); ?>
  • -
-
-
-

-
    - -
  • widgets or menus' ), - admin_url( 'widgets.php' ), admin_url( 'nav-menus.php' ) ); - } elseif ( current_theme_supports( 'widgets' ) ) { - echo '' . __( 'Manage widgets' ) . ''; - } else { - echo '' . __( 'Manage menus' ) . ''; - } - ?>
  • - - -
  • ' . __( 'Turn comments on or off' ) . '', admin_url( 'options-discussion.php' ) ); ?>
  • - -
  • ' . __( 'Learn more about getting started' ) . '', __( 'https://codex.wordpress.org/First_Steps_With_WordPress' ) ); ?>
  • -
-
-
-
- 0) ); - - if ( $categories ) { - foreach ( $categories as $category ) { - if ( $currentcat != $category->term_id && $parent == $category->parent) { - $pad = str_repeat( '– ', $level ); - $category->name = esc_html( $category->name ); - echo "\n\t"; - wp_dropdown_cats( $currentcat, $currentparent, $category->term_id, $level +1, $categories ); - } - } - } else { - return false; - } -} - -/** - * Register a setting and its sanitization callback - * - * @since 2.7.0 - * @deprecated 3.0.0 - * @deprecated Use register_setting() - * @see register_setting() - * - * @param string $option_group A settings group name. Should correspond to a whitelisted option key name. - * Default whitelisted option key names include "general," "discussion," and "reading," among others. - * @param string $option_name The name of an option to sanitize and save. - * @param callable $sanitize_callback A callback function that sanitizes the option's value. - */ -function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { - _deprecated_function( __FUNCTION__, '3.0', 'register_setting()' ); - register_setting( $option_group, $option_name, $sanitize_callback ); -} - -/** - * Unregister a setting - * - * @since 2.7.0 - * @deprecated 3.0.0 - * @deprecated Use unregister_setting() - * @see unregister_setting() - * - * @param string $option_group - * @param string $option_name - * @param callable $sanitize_callback - */ -function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { - _deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' ); - unregister_setting( $option_group, $option_name, $sanitize_callback ); -} - -/** - * Determines the language to use for CodePress syntax highlighting. - * - * @since 2.8.0 - * @deprecated 3.0.0 - * - * @param string $filename -**/ -function codepress_get_lang( $filename ) { - _deprecated_function( __FUNCTION__, '3.0' ); -} - -/** - * Adds JavaScript required to make CodePress work on the theme/plugin editors. - * - * @since 2.8.0 - * @deprecated 3.0.0 -**/ -function codepress_footer_js() { - _deprecated_function( __FUNCTION__, '3.0' ); -} - -/** - * Determine whether to use CodePress. - * - * @since 2.8.0 - * @deprecated 3.0.0 -**/ -function use_codepress() { - _deprecated_function( __FUNCTION__, '3.0' ); -} - -/** - * @deprecated 3.1.0 - * - * @return array List of user IDs. - */ -function get_author_user_ids() { - _deprecated_function( __FUNCTION__, '3.1', 'get_users()' ); - - global $wpdb; - if ( !is_multisite() ) - $level_key = $wpdb->get_blog_prefix() . 'user_level'; - else - $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels - - return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value != '0'", $level_key) ); -} - -/** - * @deprecated 3.1.0 - * - * @param int $user_id User ID. - * @return array|bool List of editable authors. False if no editable users. - */ -function get_editable_authors( $user_id ) { - _deprecated_function( __FUNCTION__, '3.1', 'get_users()' ); - - global $wpdb; - - $editable = get_editable_user_ids( $user_id ); - - if ( !$editable ) { - return false; - } else { - $editable = join(',', $editable); - $authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" ); - } - - return apply_filters('get_editable_authors', $authors); -} - -/** - * @deprecated 3.1.0 - * - * @param int $user_id User ID. - * @param bool $exclude_zeros Optional, default is true. Whether to exclude zeros. - * @return mixed - */ -function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) { - _deprecated_function( __FUNCTION__, '3.1', 'get_users()' ); - - global $wpdb; - - if ( ! $user = get_userdata( $user_id ) ) - return array(); - $post_type_obj = get_post_type_object($post_type); - - if ( ! $user->has_cap($post_type_obj->cap->edit_others_posts) ) { - if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros ) - return array($user->ID); - else - return array(); - } - - if ( !is_multisite() ) - $level_key = $wpdb->get_blog_prefix() . 'user_level'; - else - $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels - - $query = $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s", $level_key); - if ( $exclude_zeros ) - $query .= " AND meta_value != '0'"; - - return $wpdb->get_col( $query ); -} - -/** - * @deprecated 3.1.0 - */ -function get_nonauthor_user_ids() { - _deprecated_function( __FUNCTION__, '3.1', 'get_users()' ); - - global $wpdb; - - if ( !is_multisite() ) - $level_key = $wpdb->get_blog_prefix() . 'user_level'; - else - $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels - - return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value = '0'", $level_key) ); -} - -if ( !class_exists('WP_User_Search') ) : -/** - * WordPress User Search class. - * - * @since 2.1.0 - * @deprecated 3.1.0 - */ -class WP_User_Search { - - /** - * {@internal Missing Description}} - * - * @since 2.1.0 - * @access private - * @var mixed - */ - var $results; - - /** - * {@internal Missing Description}} - * - * @since 2.1.0 - * @access private - * @var string - */ - var $search_term; - - /** - * Page number. - * - * @since 2.1.0 - * @access private - * @var int - */ - var $page; - - /** - * Role name that users have. - * - * @since 2.5.0 - * @access private - * @var string - */ - var $role; - - /** - * Raw page number. - * - * @since 2.1.0 - * @access private - * @var int|bool - */ - var $raw_page; - - /** - * Amount of users to display per page. - * - * @since 2.1.0 - * @access public - * @var int - */ - var $users_per_page = 50; - - /** - * {@internal Missing Description}} - * - * @since 2.1.0 - * @access private - * @var int - */ - var $first_user; - - /** - * {@internal Missing Description}} - * - * @since 2.1.0 - * @access private - * @var int - */ - var $last_user; - - /** - * {@internal Missing Description}} - * - * @since 2.1.0 - * @access private - * @var string - */ - var $query_limit; - - /** - * {@internal Missing Description}} - * - * @since 3.0.0 - * @access private - * @var string - */ - var $query_orderby; - - /** - * {@internal Missing Description}} - * - * @since 3.0.0 - * @access private - * @var string - */ - var $query_from; - - /** - * {@internal Missing Description}} - * - * @since 3.0.0 - * @access private - * @var string - */ - var $query_where; - - /** - * {@internal Missing Description}} - * - * @since 2.1.0 - * @access private - * @var int - */ - var $total_users_for_query = 0; - - /** - * {@internal Missing Description}} - * - * @since 2.1.0 - * @access private - * @var bool - */ - var $too_many_total_users = false; - - /** - * {@internal Missing Description}} - * - * @since 2.1.0 - * @access private - * @var WP_Error - */ - var $search_errors; - - /** - * {@internal Missing Description}} - * - * @since 2.7.0 - * @access private - * @var string - */ - var $paging_text; - - /** - * PHP5 Constructor - Sets up the object properties. - * - * @since 2.1.0 - * - * @param string $search_term Search terms string. - * @param int $page Optional. Page ID. - * @param string $role Role name. - * @return WP_User_Search - */ - function __construct( $search_term = '', $page = '', $role = '' ) { - _deprecated_function( __FUNCTION__, '3.1', 'WP_User_Query' ); - - $this->search_term = wp_unslash( $search_term ); - $this->raw_page = ( '' == $page ) ? false : (int) $page; - $this->page = (int) ( '' == $page ) ? 1 : $page; - $this->role = $role; - - $this->prepare_query(); - $this->query(); - $this->do_paging(); - } - - /** - * PHP4 Constructor - Sets up the object properties. - * - * @since 2.1.0 - * - * @param string $search_term Search terms string. - * @param int $page Optional. Page ID. - * @param string $role Role name. - * @return WP_User_Search - */ - public function WP_User_Search( $search_term = '', $page = '', $role = '' ) { - self::__construct( $search_term, $page, $role ); - } - - /** - * {@internal Missing Short Description}} - * - * {@internal Missing Long Description}} - * - * @since 2.1.0 - * @access public - */ - function prepare_query() { - global $wpdb; - $this->first_user = ($this->page - 1) * $this->users_per_page; - - $this->query_limit = $wpdb->prepare(" LIMIT %d, %d", $this->first_user, $this->users_per_page); - $this->query_orderby = ' ORDER BY user_login'; - - $search_sql = ''; - if ( $this->search_term ) { - $searches = array(); - $search_sql = 'AND ('; - foreach ( array('user_login', 'user_nicename', 'user_email', 'user_url', 'display_name') as $col ) - $searches[] = $wpdb->prepare( $col . ' LIKE %s', '%' . like_escape($this->search_term) . '%' ); - $search_sql .= implode(' OR ', $searches); - $search_sql .= ')'; - } - - $this->query_from = " FROM $wpdb->users"; - $this->query_where = " WHERE 1=1 $search_sql"; - - if ( $this->role ) { - $this->query_from .= " INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id"; - $this->query_where .= $wpdb->prepare(" AND $wpdb->usermeta.meta_key = '{$wpdb->prefix}capabilities' AND $wpdb->usermeta.meta_value LIKE %s", '%' . $this->role . '%'); - } elseif ( is_multisite() ) { - $level_key = $wpdb->prefix . 'capabilities'; // wpmu site admins don't have user_levels - $this->query_from .= ", $wpdb->usermeta"; - $this->query_where .= " AND $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '{$level_key}'"; - } - - do_action_ref_array( 'pre_user_search', array( &$this ) ); - } - - /** - * {@internal Missing Short Description}} - * - * {@internal Missing Long Description}} - * - * @since 2.1.0 - * @access public - */ - function query() { - global $wpdb; - - $this->results = $wpdb->get_col("SELECT DISTINCT($wpdb->users.ID)" . $this->query_from . $this->query_where . $this->query_orderby . $this->query_limit); - - if ( $this->results ) - $this->total_users_for_query = $wpdb->get_var("SELECT COUNT(DISTINCT($wpdb->users.ID))" . $this->query_from . $this->query_where); // no limit - else - $this->search_errors = new WP_Error('no_matching_users_found', __('No users found.')); - } - - /** - * {@internal Missing Short Description}} - * - * {@internal Missing Long Description}} - * - * @since 2.1.0 - * @access public - */ - function prepare_vars_for_template_usage() {} - - /** - * {@internal Missing Short Description}} - * - * {@internal Missing Long Description}} - * - * @since 2.1.0 - * @access public - */ - function do_paging() { - if ( $this->total_users_for_query > $this->users_per_page ) { // have to page the results - $args = array(); - if ( ! empty($this->search_term) ) - $args['usersearch'] = urlencode($this->search_term); - if ( ! empty($this->role) ) - $args['role'] = urlencode($this->role); - - $this->paging_text = paginate_links( array( - 'total' => ceil($this->total_users_for_query / $this->users_per_page), - 'current' => $this->page, - 'base' => 'users.php?%_%', - 'format' => 'userspage=%#%', - 'add_args' => $args - ) ); - if ( $this->paging_text ) { - $this->paging_text = sprintf( '' . __( 'Displaying %s–%s of %s' ) . '%s', - number_format_i18n( ( $this->page - 1 ) * $this->users_per_page + 1 ), - number_format_i18n( min( $this->page * $this->users_per_page, $this->total_users_for_query ) ), - number_format_i18n( $this->total_users_for_query ), - $this->paging_text - ); - } - } - } - - /** - * {@internal Missing Short Description}} - * - * {@internal Missing Long Description}} - * - * @since 2.1.0 - * @access public - * - * @return array - */ - function get_results() { - return (array) $this->results; - } - - /** - * Displaying paging text. - * - * @see do_paging() Builds paging text. - * - * @since 2.1.0 - * @access public - */ - function page_links() { - echo $this->paging_text; - } - - /** - * Whether paging is enabled. - * - * @see do_paging() Builds paging text. - * - * @since 2.1.0 - * @access public - * - * @return bool - */ - function results_are_paged() { - if ( $this->paging_text ) - return true; - return false; - } - - /** - * Whether there are search terms. - * - * @since 2.1.0 - * @access public - * - * @return bool - */ - function is_search() { - if ( $this->search_term ) - return true; - return false; - } -} -endif; - -/** - * Retrieve editable posts from other users. - * - * @deprecated 3.1.0 - * - * @param int $user_id User ID to not retrieve posts from. - * @param string $type Optional, defaults to 'any'. Post type to retrieve, can be 'draft' or 'pending'. - * @return array List of posts from others. - */ -function get_others_unpublished_posts($user_id, $type='any') { - _deprecated_function( __FUNCTION__, '3.1' ); - - global $wpdb; - - $editable = get_editable_user_ids( $user_id ); - - if ( in_array($type, array('draft', 'pending')) ) - $type_sql = " post_status = '$type' "; - else - $type_sql = " ( post_status = 'draft' OR post_status = 'pending' ) "; - - $dir = ( 'pending' == $type ) ? 'ASC' : 'DESC'; - - if ( !$editable ) { - $other_unpubs = ''; - } else { - $editable = join(',', $editable); - $other_unpubs = $wpdb->get_results( $wpdb->prepare("SELECT ID, post_title, post_author FROM $wpdb->posts WHERE post_type = 'post' AND $type_sql AND post_author IN ($editable) AND post_author != %d ORDER BY post_modified $dir", $user_id) ); - } - - return apply_filters('get_others_drafts', $other_unpubs); -} - -/** - * Retrieve drafts from other users. - * - * @deprecated 3.1.0 - * - * @param int $user_id User ID. - * @return array List of drafts from other users. - */ -function get_others_drafts($user_id) { - _deprecated_function( __FUNCTION__, '3.1' ); - - return get_others_unpublished_posts($user_id, 'draft'); -} - -/** - * Retrieve pending review posts from other users. - * - * @deprecated 3.1.0 - * - * @param int $user_id User ID. - * @return array List of posts with pending review post type from other users. - */ -function get_others_pending($user_id) { - _deprecated_function( __FUNCTION__, '3.1' ); - - return get_others_unpublished_posts($user_id, 'pending'); -} - -/** - * Output the QuickPress dashboard widget. - * - * @since 3.0.0 - * @deprecated 3.2.0 - * @deprecated Use wp_dashboard_quick_press() - * @see wp_dashboard_quick_press() - */ -function wp_dashboard_quick_press_output() { - _deprecated_function( __FUNCTION__, '3.2', 'wp_dashboard_quick_press()' ); - wp_dashboard_quick_press(); -} - -/** - * @since 2.7.0 - * @deprecated 3.3.0 - * @deprecated Use wp_editor() - * @see wp_editor() - * - * @staticvar int $num - */ -function wp_tiny_mce( $teeny = false, $settings = false ) { - _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); - - static $num = 1; - - if ( ! class_exists('_WP_Editors' ) ) - require_once( ABSPATH . WPINC . '/class-wp-editor.php' ); - - $editor_id = 'content' . $num++; - - $set = array( - 'teeny' => $teeny, - 'tinymce' => $settings ? $settings : true, - 'quicktags' => false - ); - - $set = _WP_Editors::parse_settings($editor_id, $set); - _WP_Editors::editor_settings($editor_id, $set); -} - -/** - * @deprecated 3.3.0 - * @deprecated Use wp_editor() - * @see wp_editor() - */ -function wp_preload_dialogs() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); -} - -/** - * @deprecated 3.3.0 - * @deprecated Use wp_editor() - * @see wp_editor() - */ -function wp_print_editor_js() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); -} - -/** - * @deprecated 3.3.0 - * @deprecated Use wp_editor() - * @see wp_editor() - */ -function wp_quicktags() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); -} - -/** - * Returns the screen layout options. - * - * @since 2.8.0 - * @deprecated 3.3.0 - * @deprecated Use $current_screen->render_screen_layout() - * @see WP_Screen::render_screen_layout() - */ -function screen_layout( $screen ) { - _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_screen_layout()' ); - - $current_screen = get_current_screen(); - - if ( ! $current_screen ) - return ''; - - ob_start(); - $current_screen->render_screen_layout(); - return ob_get_clean(); -} - -/** - * Returns the screen's per-page options. - * - * @since 2.8.0 - * @deprecated 3.3.0 - * @deprecated Use $current_screen->render_per_page_options() - * @see WP_Screen::render_per_page_options() - */ -function screen_options( $screen ) { - _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_per_page_options()' ); - - $current_screen = get_current_screen(); - - if ( ! $current_screen ) - return ''; - - ob_start(); - $current_screen->render_per_page_options(); - return ob_get_clean(); -} - -/** - * Renders the screen's help. - * - * @since 2.7.0 - * @deprecated 3.3.0 - * @deprecated Use $current_screen->render_screen_meta() - * @see WP_Screen::render_screen_meta() - */ -function screen_meta( $screen ) { - $current_screen = get_current_screen(); - $current_screen->render_screen_meta(); -} - -/** - * Favorite actions were deprecated in version 3.2. Use the admin bar instead. - * - * @since 2.7.0 - * @deprecated 3.2.0 - */ -function favorite_actions() { - _deprecated_function( __FUNCTION__, '3.2', 'WP_Admin_Bar' ); -} - -function media_upload_image() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); - return wp_media_upload_handler(); -} - -function media_upload_audio() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); - return wp_media_upload_handler(); -} - -function media_upload_video() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); - return wp_media_upload_handler(); -} - -function media_upload_file() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); - return wp_media_upload_handler(); -} - -function type_url_form_image() { - _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('image')" ); - return wp_media_insert_url_form( 'image' ); -} - -function type_url_form_audio() { - _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('audio')" ); - return wp_media_insert_url_form( 'audio' ); -} - -function type_url_form_video() { - _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('video')" ); - return wp_media_insert_url_form( 'video' ); -} - -function type_url_form_file() { - _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('file')" ); - return wp_media_insert_url_form( 'file' ); -} - -/** - * Add contextual help text for a page. - * - * Creates an 'Overview' help tab. - * - * @since 2.7.0 - * @deprecated 3.3.0 - * @deprecated Use get_current_screen()->add_help_tab() - * @see WP_Screen - * - * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions. - * @param string $help The content of an 'Overview' help tab. - */ -function add_contextual_help( $screen, $help ) { - _deprecated_function( __FUNCTION__, '3.3', 'get_current_screen()->add_help_tab()' ); - - if ( is_string( $screen ) ) - $screen = convert_to_screen( $screen ); - - WP_Screen::add_old_compat_help( $screen, $help ); -} - -/** - * Get the allowed themes for the current blog. - * - * @since 3.0.0 - * @deprecated 3.4.0 - * @deprecated Use wp_get_themes() - * @see wp_get_themes() - * - * @return array $themes Array of allowed themes. - */ -function get_allowed_themes() { - _deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'allowed' => true ) )" ); - - $themes = wp_get_themes( array( 'allowed' => true ) ); - - $wp_themes = array(); - foreach ( $themes as $theme ) { - $wp_themes[ $theme->get('Name') ] = $theme; - } - - return $wp_themes; -} - -/** - * {@internal Missing Short Description}} - * - * @since 1.5.0 - * @deprecated 3.4.0 - * - * @return array - */ -function get_broken_themes() { - _deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'errors' => true )" ); - - $themes = wp_get_themes( array( 'errors' => true ) ); - $broken = array(); - foreach ( $themes as $theme ) { - $name = $theme->get('Name'); - $broken[ $name ] = array( - 'Name' => $name, - 'Title' => $name, - 'Description' => $theme->errors()->get_error_message(), - ); - } - return $broken; -} - -/** - * {@internal Missing Short Description}} - * - * @since 2.0.0 - * @deprecated 3.4.0 - * - * @return WP_Theme - */ -function current_theme_info() { - _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' ); - - return wp_get_theme(); -} - -/** - * This was once used to display an 'Insert into Post' button. Now it is deprecated and stubbed. - * - * @deprecated 3.5.0 - */ -function _insert_into_post_button( $type ) { - _deprecated_function( __FUNCTION__, '3.5' ); -} - -/** - * This was once used to display a media button. Now it is deprecated and stubbed. - * - * @deprecated 3.5.0 - */ -function _media_button($title, $icon, $type, $id) { - _deprecated_function( __FUNCTION__, '3.5' ); -} - -/** - * Get an existing post and format it for editing. - * - * @since 2.0.0 - * @deprecated 3.5.0 - * - * @param int $id - * @return object - */ -function get_post_to_edit( $id ) { - _deprecated_function( __FUNCTION__, '3.5', 'get_post()' ); - - return get_post( $id, OBJECT, 'edit' ); -} - -/** - * Get the default page information to use. - * - * @since 2.5.0 - * @deprecated 3.5.0 - * @deprecated Use get_default_post_to_edit() - * - * @return WP_Post Post object containing all the default post data as attributes - */ -function get_default_page_to_edit() { - _deprecated_function( __FUNCTION__, '3.5', "get_default_post_to_edit( 'page' )" ); - - $page = get_default_post_to_edit(); - $page->post_type = 'page'; - return $page; -} - -/** - * This was once used to create a thumbnail from an Image given a maximum side size. - * - * @since 1.2.0 - * @deprecated 3.5.0 - * @deprecated Use image_resize() - * @see image_resize() - * - * @param mixed $file Filename of the original image, Or attachment id. - * @param int $max_side Maximum length of a single side for the thumbnail. - * @param mixed $deprecated Never used. - * @return string Thumbnail path on success, Error string on failure. - */ -function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) { - _deprecated_function( __FUNCTION__, '3.5', 'image_resize()' ); - return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) ); -} - -/** - * This was once used to display a metabox for the nav menu theme locations. - * - * Deprecated in favor of a 'Manage Locations' tab added to nav menus management screen. - * - * @since 3.0.0 - * @deprecated 3.6.0 - */ -function wp_nav_menu_locations_meta_box() { - _deprecated_function( __FUNCTION__, '3.6' ); -} - -/** - * This was once used to kick-off the Core Updater. - * - * Deprecated in favor of instantating a Core_Upgrader instance directly, - * and calling the 'upgrade' method. - * - * @since 2.7.0 - * @deprecated 3.7.0 - * @see Core_Upgrader - */ -function wp_update_core($current, $feedback = '') { - _deprecated_function( __FUNCTION__, '3.7', 'new Core_Upgrader();' ); - - if ( !empty($feedback) ) - add_filter('update_feedback', $feedback); - - include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); - $upgrader = new Core_Upgrader(); - return $upgrader->upgrade($current); - -} - -/** - * This was once used to kick-off the Plugin Updater. - * - * Deprecated in favor of instantating a Plugin_Upgrader instance directly, - * and calling the 'upgrade' method. - * Unused since 2.8.0. - * - * @since 2.5.0 - * @deprecated 3.7.0 - * @see Plugin_Upgrader - */ -function wp_update_plugin($plugin, $feedback = '') { - _deprecated_function( __FUNCTION__, '3.7', 'new Plugin_Upgrader();' ); - - if ( !empty($feedback) ) - add_filter('update_feedback', $feedback); - - include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); - $upgrader = new Plugin_Upgrader(); - return $upgrader->upgrade($plugin); -} - -/** - * This was once used to kick-off the Theme Updater. - * - * Deprecated in favor of instantating a Theme_Upgrader instance directly, - * and calling the 'upgrade' method. - * Unused since 2.8.0. - * - * @since 2.7.0 - * @deprecated 3.7.0 - * @see Theme_Upgrader - */ -function wp_update_theme($theme, $feedback = '') { - _deprecated_function( __FUNCTION__, '3.7', 'new Theme_Upgrader();' ); - - if ( !empty($feedback) ) - add_filter('update_feedback', $feedback); - - include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); - $upgrader = new Theme_Upgrader(); - return $upgrader->upgrade($theme); -} - -/** - * This was once used to display attachment links. Now it is deprecated and stubbed. - * - * {@internal Missing Short Description}} - * - * @since 2.0.0 - * @deprecated 3.7.0 - * - * @param int|bool $id - */ -function the_attachment_links( $id = false ) { - _deprecated_function( __FUNCTION__, '3.7' ); -} - -/**#@+ - * Displays a screen icon. - * - * @since 2.7.0 - * @since 3.8.0 Screen icons are no longer used in WordPress. This function no longer produces output. - * @deprecated 3.8.0 - */ -function screen_icon() { - echo get_screen_icon(); -} -function get_screen_icon() { - return ''; -} -/**#@-*/ - -/**#@+ - * Deprecated dashboard widget controls. - * - * @since 2.5.0 - * @deprecated 3.8.0 - */ -function wp_dashboard_incoming_links_output() {} -function wp_dashboard_secondary_output() {} -/**#@-*/ - -/**#@+ - * Deprecated dashboard widget controls. - * - * @since 2.7.0 - * @deprecated 3.8.0 - */ -function wp_dashboard_incoming_links() {} -function wp_dashboard_incoming_links_control() {} -function wp_dashboard_plugins() {} -function wp_dashboard_primary_control() {} -function wp_dashboard_recent_comments_control() {} -function wp_dashboard_secondary() {} -function wp_dashboard_secondary_control() {} -/**#@-*/ - -/** - * This was once used to move child posts to a new parent. - * - * @since 2.3.0 - * @deprecated 3.9.0 - * @access private - * - * @param int $old_ID - * @param int $new_ID - */ -function _relocate_children( $old_ID, $new_ID ) { - _deprecated_function( __FUNCTION__, '3.9' ); -} diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php deleted file mode 100644 index 98989324e1..0000000000 --- a/wp-admin/includes/export.php +++ /dev/null @@ -1,524 +0,0 @@ - 'all', 'author' => false, 'category' => false, - 'start_date' => false, 'end_date' => false, 'status' => false, - ); - $args = wp_parse_args( $args, $defaults ); - - /** - * Fires at the beginning of an export, before any headers are sent. - * - * @since 2.3.0 - * - * @param array $args An array of export arguments. - */ - do_action( 'export_wp', $args ); - - $sitename = sanitize_key( get_bloginfo( 'name' ) ); - if ( ! empty($sitename) ) $sitename .= '.'; - $filename = $sitename . 'wordpress.' . date( 'Y-m-d' ) . '.xml'; - - header( 'Content-Description: File Transfer' ); - header( 'Content-Disposition: attachment; filename=' . $filename ); - header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true ); - - if ( 'all' != $args['content'] && post_type_exists( $args['content'] ) ) { - $ptype = get_post_type_object( $args['content'] ); - if ( ! $ptype->can_export ) - $args['content'] = 'post'; - - $where = $wpdb->prepare( "{$wpdb->posts}.post_type = %s", $args['content'] ); - } else { - $post_types = get_post_types( array( 'can_export' => true ) ); - $esses = array_fill( 0, count($post_types), '%s' ); - $where = $wpdb->prepare( "{$wpdb->posts}.post_type IN (" . implode( ',', $esses ) . ')', $post_types ); - } - - if ( $args['status'] && ( 'post' == $args['content'] || 'page' == $args['content'] ) ) - $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_status = %s", $args['status'] ); - else - $where .= " AND {$wpdb->posts}.post_status != 'auto-draft'"; - - $join = ''; - if ( $args['category'] && 'post' == $args['content'] ) { - if ( $term = term_exists( $args['category'], 'category' ) ) { - $join = "INNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id)"; - $where .= $wpdb->prepare( " AND {$wpdb->term_relationships}.term_taxonomy_id = %d", $term['term_taxonomy_id'] ); - } - } - - if ( 'post' == $args['content'] || 'page' == $args['content'] ) { - if ( $args['author'] ) - $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_author = %d", $args['author'] ); - - if ( $args['start_date'] ) - $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date >= %s", date( 'Y-m-d', strtotime($args['start_date']) ) ); - - if ( $args['end_date'] ) - $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date < %s", date( 'Y-m-d', strtotime('+1 month', strtotime($args['end_date'])) ) ); - } - - // Grab a snapshot of post IDs, just in case it changes during the export. - $post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} $join WHERE $where" ); - - /* - * Get the requested terms ready, empty unless posts filtered by category - * or all content. - */ - $cats = $tags = $terms = array(); - if ( isset( $term ) && $term ) { - $cat = get_term( $term['term_id'], 'category' ); - $cats = array( $cat->term_id => $cat ); - unset( $term, $cat ); - } elseif ( 'all' == $args['content'] ) { - $categories = (array) get_categories( array( 'get' => 'all' ) ); - $tags = (array) get_tags( array( 'get' => 'all' ) ); - - $custom_taxonomies = get_taxonomies( array( '_builtin' => false ) ); - $custom_terms = (array) get_terms( $custom_taxonomies, array( 'get' => 'all' ) ); - - // Put categories in order with no child going before its parent. - while ( $cat = array_shift( $categories ) ) { - if ( $cat->parent == 0 || isset( $cats[$cat->parent] ) ) - $cats[$cat->term_id] = $cat; - else - $categories[] = $cat; - } - - // Put terms in order with no child going before its parent. - while ( $t = array_shift( $custom_terms ) ) { - if ( $t->parent == 0 || isset( $terms[$t->parent] ) ) - $terms[$t->term_id] = $t; - else - $custom_terms[] = $t; - } - - unset( $categories, $custom_taxonomies, $custom_terms ); - } - - /** - * Wrap given string in XML CDATA tag. - * - * @since 2.1.0 - * - * @param string $str String to wrap in XML CDATA tag. - * @return string - */ - function wxr_cdata( $str ) { - if ( ! seems_utf8( $str ) ) { - $str = utf8_encode( $str ); - } - // $str = ent2ncr(esc_html($str)); - $str = '', ']]]]>', $str ) . ']]>'; - - return $str; - } - - /** - * Return the URL of the site - * - * @since 2.5.0 - * - * @return string Site URL. - */ - function wxr_site_url() { - // Multisite: the base URL. - if ( is_multisite() ) - return network_home_url(); - // WordPress (single site): the blog URL. - else - return get_bloginfo_rss( 'url' ); - } - - /** - * Output a cat_name XML tag from a given category object - * - * @since 2.1.0 - * - * @param object $category Category Object - */ - function wxr_cat_name( $category ) { - if ( empty( $category->name ) ) - return; - - echo '' . wxr_cdata( $category->name ) . ''; - } - - /** - * Output a category_description XML tag from a given category object - * - * @since 2.1.0 - * - * @param object $category Category Object - */ - function wxr_category_description( $category ) { - if ( empty( $category->description ) ) - return; - - echo '' . wxr_cdata( $category->description ) . ''; - } - - /** - * Output a tag_name XML tag from a given tag object - * - * @since 2.3.0 - * - * @param object $tag Tag Object - */ - function wxr_tag_name( $tag ) { - if ( empty( $tag->name ) ) - return; - - echo '' . wxr_cdata( $tag->name ) . ''; - } - - /** - * Output a tag_description XML tag from a given tag object - * - * @since 2.3.0 - * - * @param object $tag Tag Object - */ - function wxr_tag_description( $tag ) { - if ( empty( $tag->description ) ) - return; - - echo '' . wxr_cdata( $tag->description ) . ''; - } - - /** - * Output a term_name XML tag from a given term object - * - * @since 2.9.0 - * - * @param object $term Term Object - */ - function wxr_term_name( $term ) { - if ( empty( $term->name ) ) - return; - - echo '' . wxr_cdata( $term->name ) . ''; - } - - /** - * Output a term_description XML tag from a given term object - * - * @since 2.9.0 - * - * @param object $term Term Object - */ - function wxr_term_description( $term ) { - if ( empty( $term->description ) ) - return; - - echo '' . wxr_cdata( $term->description ) . ''; - } - - /** - * Output list of authors with posts - * - * @since 3.1.0 - * - * @global wpdb $wpdb - * - * @param array $post_ids Array of post IDs to filter the query by. Optional. - */ - function wxr_authors_list( array $post_ids = null ) { - global $wpdb; - - if ( !empty( $post_ids ) ) { - $post_ids = array_map( 'absint', $post_ids ); - $and = 'AND ID IN ( ' . implode( ', ', $post_ids ) . ')'; - } else { - $and = ''; - } - - $authors = array(); - $results = $wpdb->get_results( "SELECT DISTINCT post_author FROM $wpdb->posts WHERE post_status != 'auto-draft' $and" ); - foreach ( (array) $results as $result ) - $authors[] = get_userdata( $result->post_author ); - - $authors = array_filter( $authors ); - - foreach ( $authors as $author ) { - echo "\t"; - echo '' . $author->ID . ''; - echo '' . $author->user_login . ''; - echo '' . $author->user_email . ''; - echo '' . wxr_cdata( $author->display_name ) . ''; - echo '' . wxr_cdata( $author->user_firstname ) . ''; - echo '' . wxr_cdata( $author->user_lastname ) . ''; - echo "\n"; - } - } - - /** - * Ouput all navigation menu terms - * - * @since 3.1.0 - */ - function wxr_nav_menu_terms() { - $nav_menus = wp_get_nav_menus(); - if ( empty( $nav_menus ) || ! is_array( $nav_menus ) ) - return; - - foreach ( $nav_menus as $menu ) { - echo "\t{$menu->term_id}nav_menu{$menu->slug}"; - wxr_term_name( $menu ); - echo "\n"; - } - } - - /** - * Output list of taxonomy terms, in XML tag format, associated with a post - * - * @since 2.3.0 - */ - function wxr_post_taxonomy() { - $post = get_post(); - - $taxonomies = get_object_taxonomies( $post->post_type ); - if ( empty( $taxonomies ) ) - return; - $terms = wp_get_object_terms( $post->ID, $taxonomies ); - - foreach ( (array) $terms as $term ) { - echo "\t\ttaxonomy}\" nicename=\"{$term->slug}\">" . wxr_cdata( $term->name ) . "\n"; - } - } - - /** - * - * @param bool $return_me - * @param string $meta_key - * @return bool - */ - function wxr_filter_postmeta( $return_me, $meta_key ) { - if ( '_edit_lock' == $meta_key ) - $return_me = true; - return $return_me; - } - add_filter( 'wxr_export_skip_postmeta', 'wxr_filter_postmeta', 10, 2 ); - - echo '\n"; - - ?> - - - - - - - - - - - - - - - - - - - - - - <?php bloginfo_rss( 'name' ); ?> - - - - - - - - - - - - term_id ?>slug; ?>parent ? $cats[$c->parent]->slug : ''; ?> - - - term_id ?>slug; ?> - - - term_id ?>taxonomy; ?>slug; ?>parent ? $terms[$t->parent]->slug : ''; ?> - - - - - -in_the_loop = true; - - // Fetch 20 posts at a time rather than loading the entire table into memory. - while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) { - $where = 'WHERE ID IN (' . join( ',', $next_posts ) . ')'; - $posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" ); - - // Begin Loop. - foreach ( $posts as $post ) { - setup_postdata( $post ); - $is_sticky = is_sticky( $post->ID ) ? 1 : 0; -?> - - <?php - /** This filter is documented in wp-includes/feed.php */ - echo apply_filters( 'the_title_rss', $post->post_title ); - ?> - - - - - - post_content ) ); - ?> - post_excerpt ) ); - ?> - ID; ?> - post_date; ?> - post_date_gmt; ?> - comment_status; ?> - ping_status; ?> - post_name; ?> - post_status; ?> - post_parent; ?> - menu_order; ?> - post_type; ?> - post_password; ?> - -post_type == 'attachment' ) : ?> - ID ); ?> - - -get_results( $wpdb->prepare( "SELECT * FROM $wpdb->postmeta WHERE post_id = %d", $post->ID ) ); - foreach ( $postmeta as $meta ) : - /** - * Filter whether to selectively skip post meta used for WXR exports. - * - * Returning a truthy value to the filter will skip the current meta - * object from being exported. - * - * @since 3.3.0 - * - * @param bool $skip Whether to skip the current post meta. Default false. - * @param string $meta_key Current meta key. - * @param object $meta Current meta object. - */ - if ( apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) ) - continue; - ?> - - meta_key; ?> - meta_value ); ?> - -get_results( $wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved <> 'spam'", $post->ID ) ); - foreach ( $comments as $c ) : ?> - - comment_ID; ?> - comment_author ); ?> - comment_author_email; ?> - comment_author_url ); ?> - comment_author_IP; ?> - comment_date; ?> - comment_date_gmt; ?> - comment_content ) ?> - comment_approved; ?> - comment_type; ?> - comment_parent; ?> - user_id; ?> -get_results( $wpdb->prepare( "SELECT * FROM $wpdb->commentmeta WHERE comment_id = %d", $c->comment_ID ) ); - foreach ( $c_meta as $meta ) : - /** - * Filter whether to selectively skip comment meta used for WXR exports. - * - * Returning a truthy value to the filter will skip the current meta - * object from being exported. - * - * @since 4.0.0 - * - * @param bool $skip Whether to skip the current comment meta. Default false. - * @param string $meta_key Current meta key. - * @param object $meta Current meta object. - */ - if ( apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) ) { - continue; - } - ?> - - meta_key; ?> - meta_value ); ?> - - - - - - - - - __( 'Main Index Template' ), - 'style.css' => __( 'Stylesheet' ), - 'editor-style.css' => __( 'Visual Editor Stylesheet' ), - 'editor-style-rtl.css' => __( 'Visual Editor RTL Stylesheet' ), - 'rtl.css' => __( 'RTL Stylesheet' ), - 'comments.php' => __( 'Comments' ), - 'comments-popup.php' => __( 'Popup Comments' ), - 'footer.php' => __( 'Footer' ), - 'header.php' => __( 'Header' ), - 'sidebar.php' => __( 'Sidebar' ), - 'archive.php' => __( 'Archives' ), - 'author.php' => __( 'Author Template' ), - 'tag.php' => __( 'Tag Template' ), - 'category.php' => __( 'Category Template' ), - 'page.php' => __( 'Page Template' ), - 'search.php' => __( 'Search Results' ), - 'searchform.php' => __( 'Search Form' ), - 'single.php' => __( 'Single Post' ), - '404.php' => __( '404 Template' ), - 'link.php' => __( 'Links Template' ), - 'functions.php' => __( 'Theme Functions' ), - 'attachment.php' => __( 'Attachment Template' ), - 'image.php' => __('Image Attachment Template'), - 'video.php' => __('Video Attachment Template'), - 'audio.php' => __('Audio Attachment Template'), - 'application.php' => __('Application Attachment Template'), - 'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ), - '.htaccess' => __( '.htaccess (for rewrite rules )' ), - // Deprecated files - 'wp-layout.css' => __( 'Stylesheet' ), - 'wp-comments.php' => __( 'Comments Template' ), - 'wp-comments-popup.php' => __( 'Popup Comments Template' ), -); - -/** - * Get the description for standard WordPress theme files and other various standard - * WordPress files - * - * @since 1.5.0 - * - * @global array $wp_file_descriptions - * @param string $file Filesystem path or filename - * @return string Description of file from $wp_file_descriptions or basename of $file if description doesn't exist - */ -function get_file_description( $file ) { - global $wp_file_descriptions; - - if ( isset( $wp_file_descriptions[basename( $file )] ) ) { - return $wp_file_descriptions[basename( $file )]; - } - elseif ( file_exists( $file ) && is_file( $file ) ) { - $template_data = implode( '', file( $file ) ); - if ( preg_match( '|Template Name:(.*)$|mi', $template_data, $name )) - return sprintf( __( '%s Page Template' ), _cleanup_header_comment($name[1]) ); - } - - return trim( basename( $file ) ); -} - -/** - * Get the absolute filesystem path to the root of the WordPress installation - * - * @since 1.5.0 - * - * @return string Full filesystem path to the root of the WordPress installation - */ -function get_home_path() { - $home = set_url_scheme( get_option( 'home' ), 'http' ); - $siteurl = set_url_scheme( get_option( 'siteurl' ), 'http' ); - if ( ! empty( $home ) && 0 !== strcasecmp( $home, $siteurl ) ) { - $wp_path_rel_to_home = str_ireplace( $home, '', $siteurl ); /* $siteurl - $home */ - $pos = strripos( str_replace( '\\', '/', $_SERVER['SCRIPT_FILENAME'] ), trailingslashit( $wp_path_rel_to_home ) ); - $home_path = substr( $_SERVER['SCRIPT_FILENAME'], 0, $pos ); - $home_path = trailingslashit( $home_path ); - } else { - $home_path = ABSPATH; - } - - return str_replace( '\\', '/', $home_path ); -} - -/** - * Returns a listing of all files in the specified folder and all subdirectories up to 100 levels deep. - * The depth of the recursiveness can be controlled by the $levels param. - * - * @since 2.6.0 - * - * @param string $folder Optional. Full path to folder. Default empty. - * @param int $levels Optional. Levels of folders to follow, Default 100 (PHP Loop limit). - * @return bool|array False on failure, Else array of files - */ -function list_files( $folder = '', $levels = 100 ) { - if ( empty($folder) ) - return false; - - if ( ! $levels ) - return false; - - $files = array(); - if ( $dir = @opendir( $folder ) ) { - while (($file = readdir( $dir ) ) !== false ) { - if ( in_array($file, array('.', '..') ) ) - continue; - if ( is_dir( $folder . '/' . $file ) ) { - $files2 = list_files( $folder . '/' . $file, $levels - 1); - if ( $files2 ) - $files = array_merge($files, $files2 ); - else - $files[] = $folder . '/' . $file . '/'; - } else { - $files[] = $folder . '/' . $file; - } - } - } - @closedir( $dir ); - return $files; -} - -/** - * Returns a filename of a Temporary unique file. - * Please note that the calling function must unlink() this itself. - * - * The filename is based off the passed parameter or defaults to the current unix timestamp, - * while the directory can either be passed as well, or by leaving it blank, default to a writable temporary directory. - * - * @since 2.6.0 - * - * @param string $filename Optional. Filename to base the Unique file off. Default empty. - * @param string $dir Optional. Directory to store the file in. Default empty. - * @return string a writable filename - */ -function wp_tempnam( $filename = '', $dir = '' ) { - if ( empty( $dir ) ) { - $dir = get_temp_dir(); - } - - if ( empty( $filename ) || '.' == $filename || '/' == $filename ) { - $filename = time(); - } - - // Use the basename of the given file without the extension as the name for the temporary directory - $temp_filename = basename( $filename ); - $temp_filename = preg_replace( '|\.[^.]*$|', '', $temp_filename ); - - // If the folder is falsey, use it's parent directory name instead - if ( ! $temp_filename ) { - return wp_tempnam( dirname( $filename ), $dir ); - } - - $temp_filename .= '.tmp'; - $temp_filename = $dir . wp_unique_filename( $dir, $temp_filename ); - touch( $temp_filename ); - - return $temp_filename; -} - -/** - * Make sure that the file that was requested to edit, is allowed to be edited - * - * Function will die if if you are not allowed to edit the file - * - * @since 1.5.0 - * - * @param string $file file the users is attempting to edit - * @param array $allowed_files Array of allowed files to edit, $file must match an entry exactly - * @return string|null - */ -function validate_file_to_edit( $file, $allowed_files = '' ) { - $code = validate_file( $file, $allowed_files ); - - if (!$code ) - return $file; - - switch ( $code ) { - case 1 : - wp_die( __( 'Sorry, that file cannot be edited.' ) ); - - // case 2 : - // wp_die( __('Sorry, can’t call files with their real path.' )); - - case 3 : - wp_die( __( 'Sorry, that file cannot be edited.' ) ); - } -} - -/** - * Handle PHP uploads in WordPress, sanitizing file names, checking extensions for mime type, - * and moving the file to the appropriate directory within the uploads directory. - * - * @since 4.0.0 - * - * @see wp_handle_upload_error - * - * @param array $file Reference to a single element of $_FILES. Call the function once for each uploaded file. - * @param array|false $overrides An associative array of names => values to override default variables. Default false. - * @param string $time Time formatted in 'yyyy/mm'. - * @param string $action Expected value for $_POST['action']. - * @return array On success, returns an associative array of file attributes. On failure, returns - * $overrides['upload_error_handler'](&$file, $message ) or array( 'error'=>$message ). -*/ -function _wp_handle_upload( &$file, $overrides, $time, $action ) { - // The default error handler. - if ( ! function_exists( 'wp_handle_upload_error' ) ) { - function wp_handle_upload_error( &$file, $message ) { - return array( 'error' => $message ); - } - } - - /** - * Filter the data for a file before it is uploaded to WordPress. - * - * The dynamic portion of the hook name, `$action`, refers to the post action. - * - * @since 2.9.0 as 'wp_handle_upload_prefilter'. - * @since 4.0.0 Converted to a dynamic hook with `$action`. - * - * @param array $file An array of data for a single file. - */ - $file = apply_filters( "{$action}_prefilter", $file ); - - // You may define your own function and pass the name in $overrides['upload_error_handler'] - $upload_error_handler = 'wp_handle_upload_error'; - if ( isset( $overrides['upload_error_handler'] ) ) { - $upload_error_handler = $overrides['upload_error_handler']; - } - - // You may have had one or more 'wp_handle_upload_prefilter' functions error out the file. Handle that gracefully. - if ( isset( $file['error'] ) && ! is_numeric( $file['error'] ) && $file['error'] ) { - return $upload_error_handler( $file, $file['error'] ); - } - - // Install user overrides. Did we mention that this voids your warranty? - - // You may define your own function and pass the name in $overrides['unique_filename_callback'] - $unique_filename_callback = null; - if ( isset( $overrides['unique_filename_callback'] ) ) { - $unique_filename_callback = $overrides['unique_filename_callback']; - } - - /* - * This may not have orignially been intended to be overrideable, - * but historically has been. - */ - if ( isset( $overrides['upload_error_strings'] ) ) { - $upload_error_strings = $overrides['upload_error_strings']; - } else { - // Courtesy of php.net, the strings that describe the error indicated in $_FILES[{form field}]['error']. - $upload_error_strings = array( - false, - __( 'The uploaded file exceeds the upload_max_filesize directive in php.ini.' ), - __( 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.' ), - __( 'The uploaded file was only partially uploaded.' ), - __( 'No file was uploaded.' ), - '', - __( 'Missing a temporary folder.' ), - __( 'Failed to write file to disk.' ), - __( 'File upload stopped by extension.' ) - ); - } - - // All tests are on by default. Most can be turned off by $overrides[{test_name}] = false; - $test_form = isset( $overrides['test_form'] ) ? $overrides['test_form'] : true; - $test_size = isset( $overrides['test_size'] ) ? $overrides['test_size'] : true; - - // If you override this, you must provide $ext and $type!! - $test_type = isset( $overrides['test_type'] ) ? $overrides['test_type'] : true; - $mimes = isset( $overrides['mimes'] ) ? $overrides['mimes'] : false; - - // A correct form post will pass this test. - if ( $test_form && ( ! isset( $_POST['action'] ) || ( $_POST['action'] != $action ) ) ) { - return call_user_func( $upload_error_handler, $file, __( 'Invalid form submission.' ) ); - } - // A successful upload will pass this test. It makes no sense to override this one. - if ( isset( $file['error'] ) && $file['error'] > 0 ) { - return call_user_func( $upload_error_handler, $file, $upload_error_strings[ $file['error'] ] ); - } - - $test_file_size = 'wp_handle_upload' === $action ? $file['size'] : filesize( $file['tmp_name'] ); - // A non-empty file will pass this test. - if ( $test_size && ! ( $test_file_size > 0 ) ) { - if ( is_multisite() ) { - $error_msg = __( 'File is empty. Please upload something more substantial.' ); - } else { - $error_msg = __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.' ); - } - return call_user_func( $upload_error_handler, $file, $error_msg ); - } - - // A properly uploaded file will pass this test. There should be no reason to override this one. - $test_uploaded_file = 'wp_handle_upload' === $action ? @ is_uploaded_file( $file['tmp_name'] ) : @ is_file( $file['tmp_name'] ); - if ( ! $test_uploaded_file ) { - return call_user_func( $upload_error_handler, $file, __( 'Specified file failed upload test.' ) ); - } - - // A correct MIME type will pass this test. Override $mimes or use the upload_mimes filter. - if ( $test_type ) { - $wp_filetype = wp_check_filetype_and_ext( $file['tmp_name'], $file['name'], $mimes ); - $ext = empty( $wp_filetype['ext'] ) ? '' : $wp_filetype['ext']; - $type = empty( $wp_filetype['type'] ) ? '' : $wp_filetype['type']; - $proper_filename = empty( $wp_filetype['proper_filename'] ) ? '' : $wp_filetype['proper_filename']; - - // Check to see if wp_check_filetype_and_ext() determined the filename was incorrect - if ( $proper_filename ) { - $file['name'] = $proper_filename; - } - if ( ( ! $type || !$ext ) && ! current_user_can( 'unfiltered_upload' ) ) { - return call_user_func( $upload_error_handler, $file, __( 'Sorry, this file type is not permitted for security reasons.' ) ); - } - if ( ! $type ) { - $type = $file['type']; - } - } else { - $type = ''; - } - - /* - * A writable uploads dir will pass this test. Again, there's no point - * overriding this one. - */ - if ( ! ( ( $uploads = wp_upload_dir( $time ) ) && false === $uploads['error'] ) ) { - return call_user_func( $upload_error_handler, $file, $uploads['error'] ); - } - - $filename = wp_unique_filename( $uploads['path'], $file['name'], $unique_filename_callback ); - - // Move the file to the uploads dir. - $new_file = $uploads['path'] . "/$filename"; - if ( 'wp_handle_upload' === $action ) { - $move_new_file = @ move_uploaded_file( $file['tmp_name'], $new_file ); - } else { - $move_new_file = @ rename( $file['tmp_name'], $new_file ); - } - - if ( false === $move_new_file ) { - if ( 0 === strpos( $uploads['basedir'], ABSPATH ) ) { - $error_path = str_replace( ABSPATH, '', $uploads['basedir'] ) . $uploads['subdir']; - } else { - $error_path = basename( $uploads['basedir'] ) . $uploads['subdir']; - } - return $upload_error_handler( $file, sprintf( __('The uploaded file could not be moved to %s.' ), $error_path ) ); - } - - // Set correct file permissions. - $stat = stat( dirname( $new_file )); - $perms = $stat['mode'] & 0000666; - @ chmod( $new_file, $perms ); - - // Compute the URL. - $url = $uploads['url'] . "/$filename"; - - if ( is_multisite() ) { - delete_transient( 'dirsize_cache' ); - } - - /** - * Filter the data array for the uploaded file. - * - * @since 2.1.0 - * - * @param array $upload { - * Array of upload data. - * - * @type string $file Filename of the newly-uploaded file. - * @type string $url URL of the uploaded file. - * @type string $type File type. - * } - * @param string $context The type of upload action. Values include 'upload' or 'sideload'. - */ - return apply_filters( 'wp_handle_upload', array( - 'file' => $new_file, - 'url' => $url, - 'type' => $type - ), 'wp_handle_sideload' === $action ? 'sideload' : 'upload' ); } - -/** - * Wrapper for _wp_handle_upload(), passes 'wp_handle_upload' action. - * - * @since 2.0.0 - * - * @see _wp_handle_upload() - * - * @param array $file Reference to a single element of $_FILES. Call the function once for - * each uploaded file. - * @param array|bool $overrides Optional. An associative array of names=>values to override default - * variables. Default false. - * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null. - * @return array On success, returns an associative array of file attributes. On failure, returns - * $overrides['upload_error_handler'](&$file, $message ) or array( 'error'=>$message ). - */ -function wp_handle_upload( &$file, $overrides = false, $time = null ) { - /* - * $_POST['action'] must be set and its value must equal $overrides['action'] - * or this: - */ - $action = 'wp_handle_upload'; - if ( isset( $overrides['action'] ) ) { - $action = $overrides['action']; - } - - return _wp_handle_upload( $file, $overrides, $time, $action ); -} - -/** - * Wrapper for _wp_handle_upload(), passes 'wp_handle_sideload' action - * - * @since 2.6.0 - * - * @see _wp_handle_upload() - * - * @param array $file An array similar to that of a PHP $_FILES POST array - * @param array|bool $overrides Optional. An associative array of names=>values to override default - * variables. Default false. - * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null. - * @return array On success, returns an associative array of file attributes. On failure, returns - * $overrides['upload_error_handler'](&$file, $message ) or array( 'error'=>$message ). - */ -function wp_handle_sideload( &$file, $overrides = false, $time = null ) { - /* - * $_POST['action'] must be set and its value must equal $overrides['action'] - * or this: - */ - $action = 'wp_handle_sideload'; - if ( isset( $overrides['action'] ) ) { - $action = $overrides['action']; - } - return _wp_handle_upload( $file, $overrides, $time, $action ); -} - - -/** - * Downloads a url to a local temporary file using the WordPress HTTP Class. - * Please note, That the calling function must unlink() the file. - * - * @since 2.5.0 - * - * @param string $url the URL of the file to download - * @param int $timeout The timeout for the request to download the file default 300 seconds - * @return mixed WP_Error on failure, string Filename on success. - */ -function download_url( $url, $timeout = 300 ) { - //WARNING: The file is not automatically deleted, The script must unlink() the file. - if ( ! $url ) - return new WP_Error('http_no_url', __('Invalid URL Provided.')); - - $tmpfname = wp_tempnam($url); - if ( ! $tmpfname ) - return new WP_Error('http_no_file', __('Could not create Temporary file.')); - - $response = wp_safe_remote_get( $url, array( 'timeout' => $timeout, 'stream' => true, 'filename' => $tmpfname ) ); - - if ( is_wp_error( $response ) ) { - unlink( $tmpfname ); - return $response; - } - - if ( 200 != wp_remote_retrieve_response_code( $response ) ){ - unlink( $tmpfname ); - return new WP_Error( 'http_404', trim( wp_remote_retrieve_response_message( $response ) ) ); - } - - $content_md5 = wp_remote_retrieve_header( $response, 'content-md5' ); - if ( $content_md5 ) { - $md5_check = verify_file_md5( $tmpfname, $content_md5 ); - if ( is_wp_error( $md5_check ) ) { - unlink( $tmpfname ); - return $md5_check; - } - } - - return $tmpfname; -} - -/** - * Calculates and compares the MD5 of a file to its expected value. - * - * @since 3.7.0 - * - * @param string $filename The filename to check the MD5 of. - * @param string $expected_md5 The expected MD5 of the file, either a base64 encoded raw md5, or a hex-encoded md5 - * @return bool|object WP_Error on failure, true on success, false when the MD5 format is unknown/unexpected - */ -function verify_file_md5( $filename, $expected_md5 ) { - if ( 32 == strlen( $expected_md5 ) ) - $expected_raw_md5 = pack( 'H*', $expected_md5 ); - elseif ( 24 == strlen( $expected_md5 ) ) - $expected_raw_md5 = base64_decode( $expected_md5 ); - else - return false; // unknown format - - $file_md5 = md5_file( $filename, true ); - - if ( $file_md5 === $expected_raw_md5 ) - return true; - - return new WP_Error( 'md5_mismatch', sprintf( __( 'The checksum of the file (%1$s) does not match the expected checksum value (%2$s).' ), bin2hex( $file_md5 ), bin2hex( $expected_raw_md5 ) ) ); -} - -/** - * Unzips a specified ZIP file to a location on the Filesystem via the WordPress Filesystem Abstraction. - * Assumes that WP_Filesystem() has already been called and set up. Does not extract a root-level __MACOSX directory, if present. - * - * Attempts to increase the PHP Memory limit to 256M before uncompressing, - * However, The most memory required shouldn't be much larger than the Archive itself. - * - * @since 2.5.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param string $file Full path and filename of zip archive - * @param string $to Full path on the filesystem to extract archive to - * @return mixed WP_Error on failure, True on success - */ -function unzip_file($file, $to) { - global $wp_filesystem; - - if ( ! $wp_filesystem || !is_object($wp_filesystem) ) - return new WP_Error('fs_unavailable', __('Could not access filesystem.')); - - // Unzip can use a lot of memory, but not this much hopefully - /** This filter is documented in wp-admin/admin.php */ - @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) ); - - $needed_dirs = array(); - $to = trailingslashit($to); - - // Determine any parent dir's needed (of the upgrade directory) - if ( ! $wp_filesystem->is_dir($to) ) { //Only do parents if no children exist - $path = preg_split('![/\\\]!', untrailingslashit($to)); - for ( $i = count($path); $i >= 0; $i-- ) { - if ( empty($path[$i]) ) - continue; - - $dir = implode('/', array_slice($path, 0, $i+1) ); - if ( preg_match('!^[a-z]:$!i', $dir) ) // Skip it if it looks like a Windows Drive letter. - continue; - - if ( ! $wp_filesystem->is_dir($dir) ) - $needed_dirs[] = $dir; - else - break; // A folder exists, therefor, we dont need the check the levels below this - } - } - - /** - * Filter whether to use ZipArchive to unzip archives. - * - * @since 3.0.0 - * - * @param bool $ziparchive Whether to use ZipArchive. Default true. - */ - if ( class_exists( 'ZipArchive' ) && apply_filters( 'unzip_file_use_ziparchive', true ) ) { - $result = _unzip_file_ziparchive($file, $to, $needed_dirs); - if ( true === $result ) { - return $result; - } elseif ( is_wp_error($result) ) { - if ( 'incompatible_archive' != $result->get_error_code() ) - return $result; - } - } - // Fall through to PclZip if ZipArchive is not available, or encountered an error opening the file. - return _unzip_file_pclzip($file, $to, $needed_dirs); -} - -/** - * This function should not be called directly, use unzip_file instead. Attempts to unzip an archive using the ZipArchive class. - * Assumes that WP_Filesystem() has already been called and set up. - * - * @since 3.0.0 - * @see unzip_file - * @access private - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param string $file Full path and filename of zip archive - * @param string $to Full path on the filesystem to extract archive to - * @param array $needed_dirs A partial list of required folders needed to be created. - * @return mixed WP_Error on failure, True on success - */ -function _unzip_file_ziparchive($file, $to, $needed_dirs = array() ) { - global $wp_filesystem; - - $z = new ZipArchive(); - - $zopen = $z->open( $file, ZIPARCHIVE::CHECKCONS ); - if ( true !== $zopen ) - return new WP_Error( 'incompatible_archive', __( 'Incompatible Archive.' ), array( 'ziparchive_error' => $zopen ) ); - - $uncompressed_size = 0; - - for ( $i = 0; $i < $z->numFiles; $i++ ) { - if ( ! $info = $z->statIndex($i) ) - return new WP_Error( 'stat_failed_ziparchive', __( 'Could not retrieve file from archive.' ) ); - - if ( '__MACOSX/' === substr($info['name'], 0, 9) ) // Skip the OS X-created __MACOSX directory - continue; - - $uncompressed_size += $info['size']; - - if ( '/' == substr($info['name'], -1) ) // directory - $needed_dirs[] = $to . untrailingslashit($info['name']); - else - $needed_dirs[] = $to . untrailingslashit(dirname($info['name'])); - } - - /* - * disk_free_space() could return false. Assume that any falsey value is an error. - * A disk that has zero free bytes has bigger problems. - * Require we have enough space to unzip the file and copy its contents, with a 10% buffer. - */ - if ( defined( 'DOING_CRON' ) && DOING_CRON ) { - $available_space = @disk_free_space( WP_CONTENT_DIR ); - if ( $available_space && ( $uncompressed_size * 2.1 ) > $available_space ) - return new WP_Error( 'disk_full_unzip_file', __( 'Could not copy files. You may have run out of disk space.' ), compact( 'uncompressed_size', 'available_space' ) ); - } - - $needed_dirs = array_unique($needed_dirs); - foreach ( $needed_dirs as $dir ) { - // Check the parent folders of the folders all exist within the creation array. - if ( untrailingslashit($to) == $dir ) // Skip over the working directory, We know this exists (or will exist) - continue; - if ( strpos($dir, $to) === false ) // If the directory is not within the working directory, Skip it - continue; - - $parent_folder = dirname($dir); - while ( !empty($parent_folder) && untrailingslashit($to) != $parent_folder && !in_array($parent_folder, $needed_dirs) ) { - $needed_dirs[] = $parent_folder; - $parent_folder = dirname($parent_folder); - } - } - asort($needed_dirs); - - // Create those directories if need be: - foreach ( $needed_dirs as $_dir ) { - // Only check to see if the Dir exists upon creation failure. Less I/O this way. - if ( ! $wp_filesystem->mkdir( $_dir, FS_CHMOD_DIR ) && ! $wp_filesystem->is_dir( $_dir ) ) { - return new WP_Error( 'mkdir_failed_ziparchive', __( 'Could not create directory.' ), substr( $_dir, strlen( $to ) ) ); - } - } - unset($needed_dirs); - - for ( $i = 0; $i < $z->numFiles; $i++ ) { - if ( ! $info = $z->statIndex($i) ) - return new WP_Error( 'stat_failed_ziparchive', __( 'Could not retrieve file from archive.' ) ); - - if ( '/' == substr($info['name'], -1) ) // directory - continue; - - if ( '__MACOSX/' === substr($info['name'], 0, 9) ) // Don't extract the OS X-created __MACOSX directory files - continue; - - $contents = $z->getFromIndex($i); - if ( false === $contents ) - return new WP_Error( 'extract_failed_ziparchive', __( 'Could not extract file from archive.' ), $info['name'] ); - - if ( ! $wp_filesystem->put_contents( $to . $info['name'], $contents, FS_CHMOD_FILE) ) - return new WP_Error( 'copy_failed_ziparchive', __( 'Could not copy file.' ), $info['name'] ); - } - - $z->close(); - - return true; -} - -/** - * This function should not be called directly, use unzip_file instead. Attempts to unzip an archive using the PclZip library. - * Assumes that WP_Filesystem() has already been called and set up. - * - * @since 3.0.0 - * @see unzip_file - * @access private - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param string $file Full path and filename of zip archive - * @param string $to Full path on the filesystem to extract archive to - * @param array $needed_dirs A partial list of required folders needed to be created. - * @return mixed WP_Error on failure, True on success - */ -function _unzip_file_pclzip($file, $to, $needed_dirs = array()) { - global $wp_filesystem; - - mbstring_binary_safe_encoding(); - - require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php'); - - $archive = new PclZip($file); - - $archive_files = $archive->extract(PCLZIP_OPT_EXTRACT_AS_STRING); - - reset_mbstring_encoding(); - - // Is the archive valid? - if ( !is_array($archive_files) ) - return new WP_Error('incompatible_archive', __('Incompatible Archive.'), $archive->errorInfo(true)); - - if ( 0 == count($archive_files) ) - return new WP_Error( 'empty_archive_pclzip', __( 'Empty archive.' ) ); - - $uncompressed_size = 0; - - // Determine any children directories needed (From within the archive) - foreach ( $archive_files as $file ) { - if ( '__MACOSX/' === substr($file['filename'], 0, 9) ) // Skip the OS X-created __MACOSX directory - continue; - - $uncompressed_size += $file['size']; - - $needed_dirs[] = $to . untrailingslashit( $file['folder'] ? $file['filename'] : dirname($file['filename']) ); - } - - /* - * disk_free_space() could return false. Assume that any falsey value is an error. - * A disk that has zero free bytes has bigger problems. - * Require we have enough space to unzip the file and copy its contents, with a 10% buffer. - */ - if ( defined( 'DOING_CRON' ) && DOING_CRON ) { - $available_space = @disk_free_space( WP_CONTENT_DIR ); - if ( $available_space && ( $uncompressed_size * 2.1 ) > $available_space ) - return new WP_Error( 'disk_full_unzip_file', __( 'Could not copy files. You may have run out of disk space.' ), compact( 'uncompressed_size', 'available_space' ) ); - } - - $needed_dirs = array_unique($needed_dirs); - foreach ( $needed_dirs as $dir ) { - // Check the parent folders of the folders all exist within the creation array. - if ( untrailingslashit($to) == $dir ) // Skip over the working directory, We know this exists (or will exist) - continue; - if ( strpos($dir, $to) === false ) // If the directory is not within the working directory, Skip it - continue; - - $parent_folder = dirname($dir); - while ( !empty($parent_folder) && untrailingslashit($to) != $parent_folder && !in_array($parent_folder, $needed_dirs) ) { - $needed_dirs[] = $parent_folder; - $parent_folder = dirname($parent_folder); - } - } - asort($needed_dirs); - - // Create those directories if need be: - foreach ( $needed_dirs as $_dir ) { - // Only check to see if the dir exists upon creation failure. Less I/O this way. - if ( ! $wp_filesystem->mkdir( $_dir, FS_CHMOD_DIR ) && ! $wp_filesystem->is_dir( $_dir ) ) - return new WP_Error( 'mkdir_failed_pclzip', __( 'Could not create directory.' ), substr( $_dir, strlen( $to ) ) ); - } - unset($needed_dirs); - - // Extract the files from the zip - foreach ( $archive_files as $file ) { - if ( $file['folder'] ) - continue; - - if ( '__MACOSX/' === substr($file['filename'], 0, 9) ) // Don't extract the OS X-created __MACOSX directory files - continue; - - if ( ! $wp_filesystem->put_contents( $to . $file['filename'], $file['content'], FS_CHMOD_FILE) ) - return new WP_Error( 'copy_failed_pclzip', __( 'Could not copy file.' ), $file['filename'] ); - } - return true; -} - -/** - * Copies a directory from one location to another via the WordPress Filesystem Abstraction. - * Assumes that WP_Filesystem() has already been called and setup. - * - * @since 2.5.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param string $from source directory - * @param string $to destination directory - * @param array $skip_list a list of files/folders to skip copying - * @return mixed WP_Error on failure, True on success. - */ -function copy_dir($from, $to, $skip_list = array() ) { - global $wp_filesystem; - - $dirlist = $wp_filesystem->dirlist($from); - - $from = trailingslashit($from); - $to = trailingslashit($to); - - foreach ( (array) $dirlist as $filename => $fileinfo ) { - if ( in_array( $filename, $skip_list ) ) - continue; - - if ( 'f' == $fileinfo['type'] ) { - if ( ! $wp_filesystem->copy($from . $filename, $to . $filename, true, FS_CHMOD_FILE) ) { - // If copy failed, chmod file to 0644 and try again. - $wp_filesystem->chmod( $to . $filename, FS_CHMOD_FILE ); - if ( ! $wp_filesystem->copy($from . $filename, $to . $filename, true, FS_CHMOD_FILE) ) - return new WP_Error( 'copy_failed_copy_dir', __( 'Could not copy file.' ), $to . $filename ); - } - } elseif ( 'd' == $fileinfo['type'] ) { - if ( !$wp_filesystem->is_dir($to . $filename) ) { - if ( !$wp_filesystem->mkdir($to . $filename, FS_CHMOD_DIR) ) - return new WP_Error( 'mkdir_failed_copy_dir', __( 'Could not create directory.' ), $to . $filename ); - } - - // generate the $sub_skip_list for the subdirectory as a sub-set of the existing $skip_list - $sub_skip_list = array(); - foreach ( $skip_list as $skip_item ) { - if ( 0 === strpos( $skip_item, $filename . '/' ) ) - $sub_skip_list[] = preg_replace( '!^' . preg_quote( $filename, '!' ) . '/!i', '', $skip_item ); - } - - $result = copy_dir($from . $filename, $to . $filename, $sub_skip_list); - if ( is_wp_error($result) ) - return $result; - } - } - return true; -} - -/** - * Initialises and connects the WordPress Filesystem Abstraction classes. - * This function will include the chosen transport and attempt connecting. - * - * Plugins may add extra transports, And force WordPress to use them by returning - * the filename via the {@see 'filesystem_method_file'} filter. - * - * @since 2.5.0 - * - * @global WP_Filesystem_Base $wp_filesystem Subclass - * - * @param array|false $args Optional. Connection args, These are passed directly to - * the `WP_Filesystem_*()` classes. Default false. - * @param string|false $context Optional. Context for get_filesystem_method(). Default false. - * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false. - * @return null|bool false on failure, true on success. - */ -function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { - global $wp_filesystem; - - require_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php'); - - $method = get_filesystem_method( $args, $context, $allow_relaxed_file_ownership ); - - if ( ! $method ) - return false; - - if ( ! class_exists("WP_Filesystem_$method") ) { - - /** - * Filter the path for a specific filesystem method class file. - * - * @since 2.6.0 - * - * @see get_filesystem_method() - * - * @param string $path Path to the specific filesystem method class file. - * @param string $method The filesystem method to use. - */ - $abstraction_file = apply_filters( 'filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-' . $method . '.php', $method ); - - if ( ! file_exists($abstraction_file) ) - return; - - require_once($abstraction_file); - } - $method = "WP_Filesystem_$method"; - - $wp_filesystem = new $method($args); - - //Define the timeouts for the connections. Only available after the construct is called to allow for per-transport overriding of the default. - if ( ! defined('FS_CONNECT_TIMEOUT') ) - define('FS_CONNECT_TIMEOUT', 30); - if ( ! defined('FS_TIMEOUT') ) - define('FS_TIMEOUT', 30); - - if ( is_wp_error($wp_filesystem->errors) && $wp_filesystem->errors->get_error_code() ) - return false; - - if ( !$wp_filesystem->connect() ) - return false; //There was an error connecting to the server. - - // Set the permission constants if not already set. - if ( ! defined('FS_CHMOD_DIR') ) - define('FS_CHMOD_DIR', ( fileperms( ABSPATH ) & 0777 | 0755 ) ); - if ( ! defined('FS_CHMOD_FILE') ) - define('FS_CHMOD_FILE', ( fileperms( ABSPATH . 'index.php' ) & 0777 | 0644 ) ); - - return true; -} - -/** - * Determines which method to use for reading, writing, modifying, or deleting - * files on the filesystem. - * - * The priority of the transports are: Direct, SSH2, FTP PHP Extension, FTP Sockets - * (Via Sockets class, or `fsockopen()`). Valid values for these are: 'direct', 'ssh2', - * 'ftpext' or 'ftpsockets'. - * - * The return value can be overridden by defining the `FS_METHOD` constant in `wp-config.php`, - * or filtering via {@see 'filesystem_method'}. - * - * @link https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants - * - * Plugins may define a custom transport handler, See WP_Filesystem(). - * - * @since 2.5.0 - * - * @global callback $_wp_filesystem_direct_method - * - * @param array $args Optional. Connection details. Default empty array. - * @param string $context Optional. Full path to the directory that is tested - * for being writable. Default false. - * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. - * Default false. - * @return string The transport to use, see description for valid return values. - */ -function get_filesystem_method( $args = array(), $context = false, $allow_relaxed_file_ownership = false ) { - $method = defined('FS_METHOD') ? FS_METHOD : false; // Please ensure that this is either 'direct', 'ssh2', 'ftpext' or 'ftpsockets' - - if ( ! $context ) { - $context = WP_CONTENT_DIR; - } - - // If the directory doesn't exist (wp-content/languages) then use the parent directory as we'll create it. - if ( WP_LANG_DIR == $context && ! is_dir( $context ) ) { - $context = dirname( $context ); - } - - $context = trailingslashit( $context ); - - if ( ! $method ) { - - $temp_file_name = $context . 'temp-write-test-' . time(); - $temp_handle = @fopen($temp_file_name, 'w'); - if ( $temp_handle ) { - - // Attempt to determine the file owner of the WordPress files, and that of newly created files - $wp_file_owner = $temp_file_owner = false; - if ( function_exists('fileowner') ) { - $wp_file_owner = @fileowner( __FILE__ ); - $temp_file_owner = @fileowner( $temp_file_name ); - } - - if ( $wp_file_owner !== false && $wp_file_owner === $temp_file_owner ) { - // WordPress is creating files as the same owner as the WordPress files, - // this means it's safe to modify & create new files via PHP. - $method = 'direct'; - $GLOBALS['_wp_filesystem_direct_method'] = 'file_owner'; - } elseif ( $allow_relaxed_file_ownership ) { - // The $context directory is writable, and $allow_relaxed_file_ownership is set, this means we can modify files - // safely in this directory. This mode doesn't create new files, only alter existing ones. - $method = 'direct'; - $GLOBALS['_wp_filesystem_direct_method'] = 'relaxed_ownership'; - } - - @fclose($temp_handle); - @unlink($temp_file_name); - } - } - - if ( ! $method && isset($args['connection_type']) && 'ssh' == $args['connection_type'] && extension_loaded('ssh2') && function_exists('stream_get_contents') ) $method = 'ssh2'; - if ( ! $method && extension_loaded('ftp') ) $method = 'ftpext'; - if ( ! $method && ( extension_loaded('sockets') || function_exists('fsockopen') ) ) $method = 'ftpsockets'; //Sockets: Socket extension; PHP Mode: FSockopen / fwrite / fread - - /** - * Filter the filesystem method to use. - * - * @since 2.6.0 - * - * @param string $method Filesystem method to return. - * @param array $args An array of connection details for the method. - * @param string $context Full path to the directory that is tested for being writable. - * @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable. - */ - return apply_filters( 'filesystem_method', $method, $args, $context, $allow_relaxed_file_ownership ); -} - -/** - * Displays a form to the user to request for their FTP/SSH details in order - * to connect to the filesystem. - * - * All chosen/entered details are saved, Excluding the Password. - * - * Hostnames may be in the form of hostname:portnumber (eg: wordpress.org:2467) - * to specify an alternate FTP/SSH port. - * - * Plugins may override this form by returning true|false via the - * {@see 'request_filesystem_credentials'} filter. - * - * @since 2.5. - * - * @todo Properly mark optional arguments as such - * - * @param string $form_post the URL to post the form to - * @param string $type the chosen Filesystem method in use - * @param bool $error if the current request has failed to connect - * @param string $context The directory which is needed access to, The write-test will be performed on this directory by get_filesystem_method() - * @param array $extra_fields Extra POST fields which should be checked for to be included in the post. - * @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable. - * @return bool False on failure. True on success. - */ -function request_filesystem_credentials($form_post, $type = '', $error = false, $context = false, $extra_fields = null, $allow_relaxed_file_ownership = false ) { - - /** - * Filter the filesystem credentials form output. - * - * Returning anything other than an empty string will effectively short-circuit - * output of the filesystem credentials form, returning that value instead. - * - * @since 2.5.0 - * - * @param mixed $output Form output to return instead. Default empty. - * @param string $form_post URL to POST the form to. - * @param string $type Chosen type of filesystem. - * @param bool $error Whether the current request has failed to connect. - * Default false. - * @param string $context Full path to the directory that is tested for - * being writable. - * @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable. - * @param array $extra_fields Extra POST fields. - */ - $req_cred = apply_filters( 'request_filesystem_credentials', '', $form_post, $type, $error, $context, $extra_fields, $allow_relaxed_file_ownership ); - if ( '' !== $req_cred ) - return $req_cred; - - if ( empty($type) ) { - $type = get_filesystem_method( array(), $context, $allow_relaxed_file_ownership ); - } - - if ( 'direct' == $type ) - return true; - - if ( is_null( $extra_fields ) ) - $extra_fields = array( 'version', 'locale' ); - - $credentials = get_option('ftp_credentials', array( 'hostname' => '', 'username' => '')); - - // If defined, set it to that, Else, If POST'd, set it to that, If not, Set it to whatever it previously was(saved details in option) - $credentials['hostname'] = defined('FTP_HOST') ? FTP_HOST : (!empty($_POST['hostname']) ? wp_unslash( $_POST['hostname'] ) : $credentials['hostname']); - $credentials['username'] = defined('FTP_USER') ? FTP_USER : (!empty($_POST['username']) ? wp_unslash( $_POST['username'] ) : $credentials['username']); - $credentials['password'] = defined('FTP_PASS') ? FTP_PASS : (!empty($_POST['password']) ? wp_unslash( $_POST['password'] ) : ''); - - // Check to see if we are setting the public/private keys for ssh - $credentials['public_key'] = defined('FTP_PUBKEY') ? FTP_PUBKEY : (!empty($_POST['public_key']) ? wp_unslash( $_POST['public_key'] ) : ''); - $credentials['private_key'] = defined('FTP_PRIKEY') ? FTP_PRIKEY : (!empty($_POST['private_key']) ? wp_unslash( $_POST['private_key'] ) : ''); - - // Sanitize the hostname, Some people might pass in odd-data: - $credentials['hostname'] = preg_replace('|\w+://|', '', $credentials['hostname']); //Strip any schemes off - - if ( strpos($credentials['hostname'], ':') ) { - list( $credentials['hostname'], $credentials['port'] ) = explode(':', $credentials['hostname'], 2); - if ( ! is_numeric($credentials['port']) ) - unset($credentials['port']); - } else { - unset($credentials['port']); - } - - if ( ( defined( 'FTP_SSH' ) && FTP_SSH ) || ( defined( 'FS_METHOD' ) && 'ssh2' == FS_METHOD ) ) { - $credentials['connection_type'] = 'ssh'; - } elseif ( ( defined( 'FTP_SSL' ) && FTP_SSL ) && 'ftpext' == $type ) { //Only the FTP Extension understands SSL - $credentials['connection_type'] = 'ftps'; - } elseif ( ! empty( $_POST['connection_type'] ) ) { - $credentials['connection_type'] = wp_unslash( $_POST['connection_type'] ); - } elseif ( ! isset( $credentials['connection_type'] ) ) { //All else fails (And it's not defaulted to something else saved), Default to FTP - $credentials['connection_type'] = 'ftp'; - } - if ( ! $error && - ( - ( !empty($credentials['password']) && !empty($credentials['username']) && !empty($credentials['hostname']) ) || - ( 'ssh' == $credentials['connection_type'] && !empty($credentials['public_key']) && !empty($credentials['private_key']) ) - ) ) { - $stored_credentials = $credentials; - if ( !empty($stored_credentials['port']) ) //save port as part of hostname to simplify above code. - $stored_credentials['hostname'] .= ':' . $stored_credentials['port']; - - unset($stored_credentials['password'], $stored_credentials['port'], $stored_credentials['private_key'], $stored_credentials['public_key']); - if ( ! defined( 'WP_INSTALLING' ) ) { - update_option( 'ftp_credentials', $stored_credentials ); - } - return $credentials; - } - $hostname = isset( $credentials['hostname'] ) ? $credentials['hostname'] : ''; - $username = isset( $credentials['username'] ) ? $credentials['username'] : ''; - $public_key = isset( $credentials['public_key'] ) ? $credentials['public_key'] : ''; - $private_key = isset( $credentials['private_key'] ) ? $credentials['private_key'] : ''; - $port = isset( $credentials['port'] ) ? $credentials['port'] : ''; - $connection_type = isset( $credentials['connection_type'] ) ? $credentials['connection_type'] : ''; - - if ( $error ) { - $error_string = __('ERROR: There was an error connecting to the server, Please verify the settings are correct.'); - if ( is_wp_error($error) ) - $error_string = esc_html( $error->get_error_message() ); - echo '

' . $error_string . '

'; - } - - $types = array(); - if ( extension_loaded('ftp') || extension_loaded('sockets') || function_exists('fsockopen') ) - $types[ 'ftp' ] = __('FTP'); - if ( extension_loaded('ftp') ) //Only this supports FTPS - $types[ 'ftps' ] = __('FTPS (SSL)'); - if ( extension_loaded('ssh2') && function_exists('stream_get_contents') ) - $types[ 'ssh' ] = __('SSH2'); - - /** - * Filter the connection types to output to the filesystem credentials form. - * - * @since 2.9.0 - * - * @param array $types Types of connections. - * @param array $credentials Credentials to connect with. - * @param string $type Chosen filesystem method. - * @param object $error Error object. - * @param string $context Full path to the directory that is tested - * for being writable. - */ - $types = apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context ); - -?> - -
-
-

-

- -
- -
-
- -
- -

- - - - -

-
- $text ) : ?> - - -
-'; -} -?> -

- - -

-
-
- -
-
- '; - exit; - } -} -?>
- -

- -

- - - -
- - - -

- - - -
-
- -
-
-
- - - -
- - - - - - - | - | - -
- - - -
- - - - - - - - -
    - $reals ) - foreach ( $reals as $real ) - if ( isset($num_posts[$_type]) ) - $num_posts[$_type] += $_num_posts[$real]; - else - $num_posts[$_type] = $_num_posts[$real]; -// If available type specified by media button clicked, filter by that type -if ( empty($_GET['post_mime_type']) && !empty($num_posts[$type]) ) { - $_GET['post_mime_type'] = $type; - list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query(); -} -if ( empty($_GET['post_mime_type']) || $_GET['post_mime_type'] == 'all' ) - $class = ' class="current"'; -else - $class = ''; -$type_links[] = '
  • ' . __('All Types') . ''; -foreach ( $post_mime_types as $mime_type => $label ) { - $class = ''; - - if ( !wp_match_mime_types($mime_type, $avail_post_mime_types) ) - continue; - - if ( isset($_GET['post_mime_type']) && wp_match_mime_types($mime_type, $_GET['post_mime_type']) ) - $class = ' class="current"'; - - $type_links[] = '
  • ' . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), '' . number_format_i18n( $num_posts[$mime_type] ) . '') . ''; -} -/** - * Filter the media upload mime type list items. - * - * Returned values should begin with an `
  • ` tag. - * - * @since 3.1.0 - * - * @param array $type_links An array of list items containing mime type link HTML. - */ -echo implode(' |
  • ', apply_filters( 'media_upload_mime_type_links', $type_links ) ) . ''; -unset($type_links); -?> -
- -
- - add_query_arg( 'paged', '%#%' ), - 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), - 'total' => ceil($wp_query->found_posts / 10), - 'current' => $q['paged'], -)); - -if ( $page_links ) - echo "
$page_links
"; -?> - -
-posts WHERE post_type = 'attachment' ORDER BY post_date DESC"; - -$arc_result = $wpdb->get_results( $arc_query ); - -$month_count = count($arc_result); -$selected_month = isset( $_GET['m'] ) ? $_GET['m'] : 0; - -if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { ?> - - - - - -
- -
-
-
- -
- - - - - - -
- - -
-

- - -

-
- - - - - - -'; - } else { - $caption = ''; - } - - $default_align = get_option('image_default_align'); - if ( empty($default_align) ) - $default_align = 'none'; - - if ( 'image' == $default_view ) { - $view = 'image-only'; - $table_class = ''; - } else { - $view = $table_class = 'not-image'; - } - - return ' -

   

- - - - - - - - - - - - - - - - - - ' . $caption . ' - - - - - - - - - - - - - - - - - -
- - * -
- - * -

' . __('Link text, e.g. “Ransom Demands (PDF)”') . '

- - -

' . __('Alt text for the image, e.g. “The Mona Lisa”') . '

- - - - - - - - -
- -
- - - -

' . __('Enter a link URL or click above for presets.') . '

- -
- ' . get_submit_button( __( 'Insert into Post' ), 'button', 'insertonlybutton', false ) . ' -
-'; - -} - -/** - * Displays the multi-file uploader message. - * - * @since 2.6.0 - * - * @global int $post_ID - */ -function media_upload_flash_bypass() { - $browser_uploader = admin_url( 'media-new.php?browser-uploader' ); - - if ( $post = get_post() ) - $browser_uploader .= '&post_id=' . intval( $post->ID ); - elseif ( ! empty( $GLOBALS['post_ID'] ) ) - $browser_uploader .= '&post_id=' . intval( $GLOBALS['post_ID'] ); - - ?> -

- browser uploader instead.' ), $browser_uploader, '_blank' ); ?> -

- -

- Switch to the multi-file uploader.'); ?> -

- '; - $end = ''; - } -?> -

-' . sprintf( __( 'Sorry, you have used all of your storage quota of %s MB.' ), get_space_allowed() ) . '

'; -} - -/** - * Displays the image and editor in the post editor - * - * @since 3.5.0 - */ -function edit_form_image_editor( $post ) { - $open = isset( $_GET['image-editor'] ); - if ( $open ) - require_once ABSPATH . 'wp-admin/includes/image-edit.php'; - - $thumb_url = false; - if ( $attachment_id = intval( $post->ID ) ) - $thumb_url = wp_get_attachment_image_src( $attachment_id, array( 900, 450 ), true ); - - $alt_text = get_post_meta( $post->ID, '_wp_attachment_image_alt', true ); - - $att_url = wp_get_attachment_url( $post->ID ); ?> -
- ID ) ) : - $image_edit_button = ''; - if ( wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) { - $nonce = wp_create_nonce( "image_editor-$post->ID" ); - $image_edit_button = " "; - } - ?> - -
- - class="wp_attachment_image" id="media-head-"> -

-

-
- class="image-editor" id="image-editor-"> - -
- $att_url ) ); - - elseif ( $attachment_id && wp_attachment_is( 'video', $post ) ): - - wp_maybe_generate_attachment_metadata( $post ); - - $meta = wp_get_attachment_metadata( $attachment_id ); - $w = ! empty( $meta['width'] ) ? min( $meta['width'], 640 ) : 0; - $h = ! empty( $meta['height'] ) ? $meta['height'] : 0; - if ( $h && $w < $meta['width'] ) { - $h = round( ( $meta['height'] * $w ) / $meta['width'] ); - } - - $attr = array( 'src' => $att_url ); - if ( ! empty( $w ) && ! empty( $h ) ) { - $attr['width'] = $w; - $attr['height'] = $h; - } - - $thumb_id = get_post_thumbnail_id( $attachment_id ); - if ( ! empty( $thumb_id ) ) { - $attr['poster'] = wp_get_attachment_url( $thumb_id ); - } - - echo wp_video_shortcode( $attr ); - - endif; ?> - -
-

-
- -

- - - post_mime_type, 0, 5 ) ) : ?> -

-
- -

- - - 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); - $editor_args = array( - 'textarea_name' => 'content', - 'textarea_rows' => 5, - 'media_buttons' => false, - 'tinymce' => false, - 'quicktags' => $quicktags_settings, - ); - ?> - - - post_content, 'attachment_content', $editor_args ); ?> - -
- ID ); - echo $extras['item']; - echo '' . "\n"; -} - -/** - * Displays non-editable attachment metadata in the publish metabox - * - * @since 3.5.0 - */ -function attachment_submitbox_metadata() { - $post = get_post(); - - $filename = esc_html( wp_basename( $post->guid ) ); - - $media_dims = ''; - $meta = wp_get_attachment_metadata( $post->ID ); - if ( isset( $meta['width'], $meta['height'] ) ) - $media_dims .= "{$meta['width']} × {$meta['height']} "; - /** This filter is documented in wp-admin/includes/media.php */ - $media_dims = apply_filters( 'media_meta', $media_dims, $post ); - - $att_url = wp_get_attachment_url( $post->ID ); -?> -
- - -
-
- -
-
- ID ), $matches ) ) { - echo esc_html( strtoupper( $matches[1] ) ); - list( $mime_type ) = explode( '/', $post->post_mime_type ); - if ( $mime_type !== 'image' && ! empty( $meta['mime_type'] ) ) { - if ( $meta['mime_type'] !== "$mime_type/" . strtolower( $matches[1] ) ) { - echo ' (' . $meta['mime_type'] . ')'; - } - } - } else { - echo strtoupper( str_replace( 'image/', '', $post->post_mime_type ) ); - } - ?> -
- - ID ); - $file_size = false; - - if ( isset( $meta['filesize'] ) ) - $file_size = $meta['filesize']; - elseif ( file_exists( $file ) ) - $file_size = filesize( $file ); - - if ( ! empty( $file_size ) ) : ?> -
- -
- post_mime_type ) ) { - - /** - * Filter the audio and video metadata fields to be shown in the publish meta box. - * - * The key for each item in the array should correspond to an attachment - * metadata key, and the value should be the desired label. - * - * @since 3.7.0 - * - * @param array $fields An array of the attachment metadata keys and labels. - */ - $fields = apply_filters( 'media_submitbox_misc_sections', array( - 'length_formatted' => __( 'Length:' ), - 'bitrate' => __( 'Bitrate:' ), - ) ); - - foreach ( $fields as $key => $label ) { - if ( empty( $meta[ $key ] ) ) { - continue; - } - ?> -
- -
- __( 'Audio Format:' ), - 'codec' => __( 'Audio Codec:' ) - ) ); - - foreach ( $audio_fields as $key => $label ) { - if ( empty( $meta['audio'][ $key ] ) ) { - continue; - } - ?> -
- -
- -
- -
- $list ) { - if ( 'length' !== $key && ! empty( $list ) ) { - $metadata[$key] = reset( $list ); - // Fix bug in byte stream analysis. - if ( 'terms_of_use' === $key && 0 === strpos( $metadata[$key], 'yright notice.' ) ) - $metadata[$key] = 'Cop' . $metadata[$key]; - } - } - break; - } - } - - if ( ! empty( $data['id3v2']['APIC'] ) ) { - $image = reset( $data['id3v2']['APIC']); - if ( ! empty( $image['data'] ) ) { - $metadata['image'] = array( - 'data' => $image['data'], - 'mime' => $image['image_mime'], - 'width' => $image['image_width'], - 'height' => $image['image_height'] - ); - } - } elseif ( ! empty( $data['comments']['picture'] ) ) { - $image = reset( $data['comments']['picture'] ); - if ( ! empty( $image['data'] ) ) { - $metadata['image'] = array( - 'data' => $image['data'], - 'mime' => $image['image_mime'] - ); - } - } -} - -/** - * Retrieve metadata from a video file's ID3 tags - * - * @since 3.6.0 - * - * @param string $file Path to file. - * @return array|bool Returns array of metadata, if found. - */ -function wp_read_video_metadata( $file ) { - if ( ! file_exists( $file ) ) - return false; - - $metadata = array(); - - if ( ! class_exists( 'getID3' ) ) - require( ABSPATH . WPINC . '/ID3/getid3.php' ); - $id3 = new getID3(); - $data = $id3->analyze( $file ); - - if ( isset( $data['video']['lossless'] ) ) - $metadata['lossless'] = $data['video']['lossless']; - if ( ! empty( $data['video']['bitrate'] ) ) - $metadata['bitrate'] = (int) $data['video']['bitrate']; - if ( ! empty( $data['video']['bitrate_mode'] ) ) - $metadata['bitrate_mode'] = $data['video']['bitrate_mode']; - if ( ! empty( $data['filesize'] ) ) - $metadata['filesize'] = (int) $data['filesize']; - if ( ! empty( $data['mime_type'] ) ) - $metadata['mime_type'] = $data['mime_type']; - if ( ! empty( $data['playtime_seconds'] ) ) - $metadata['length'] = (int) round( $data['playtime_seconds'] ); - if ( ! empty( $data['playtime_string'] ) ) - $metadata['length_formatted'] = $data['playtime_string']; - if ( ! empty( $data['video']['resolution_x'] ) ) - $metadata['width'] = (int) $data['video']['resolution_x']; - if ( ! empty( $data['video']['resolution_y'] ) ) - $metadata['height'] = (int) $data['video']['resolution_y']; - if ( ! empty( $data['fileformat'] ) ) - $metadata['fileformat'] = $data['fileformat']; - if ( ! empty( $data['video']['dataformat'] ) ) - $metadata['dataformat'] = $data['video']['dataformat']; - if ( ! empty( $data['video']['encoder'] ) ) - $metadata['encoder'] = $data['video']['encoder']; - if ( ! empty( $data['video']['codec'] ) ) - $metadata['codec'] = $data['video']['codec']; - - if ( ! empty( $data['audio'] ) ) { - unset( $data['audio']['streams'] ); - $metadata['audio'] = $data['audio']; - } - - wp_add_id3_tag_data( $metadata, $data ); - - return $metadata; -} - -/** - * Retrieve metadata from a audio file's ID3 tags - * - * @since 3.6.0 - * - * @param string $file Path to file. - * @return array|bool Returns array of metadata, if found. - */ -function wp_read_audio_metadata( $file ) { - if ( ! file_exists( $file ) ) - return false; - $metadata = array(); - - if ( ! class_exists( 'getID3' ) ) - require( ABSPATH . WPINC . '/ID3/getid3.php' ); - $id3 = new getID3(); - $data = $id3->analyze( $file ); - - if ( ! empty( $data['audio'] ) ) { - unset( $data['audio']['streams'] ); - $metadata = $data['audio']; - } - - if ( ! empty( $data['fileformat'] ) ) - $metadata['fileformat'] = $data['fileformat']; - if ( ! empty( $data['filesize'] ) ) - $metadata['filesize'] = (int) $data['filesize']; - if ( ! empty( $data['mime_type'] ) ) - $metadata['mime_type'] = $data['mime_type']; - if ( ! empty( $data['playtime_seconds'] ) ) - $metadata['length'] = (int) round( $data['playtime_seconds'] ); - if ( ! empty( $data['playtime_string'] ) ) - $metadata['length_formatted'] = $data['playtime_string']; - - wp_add_id3_tag_data( $metadata, $data ); - - return $metadata; -} - -/** - * Encapsulate logic for Attach/Detach actions - * - * @since 4.2.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param int $parent_id Attachment parent ID. - * @param string $action Optional. Attach/detach action. Accepts 'attach' or 'detach'. - * Default 'attach'. - */ -function wp_media_attach_action( $parent_id, $action = 'attach' ) { - global $wpdb; - - if ( ! $parent_id ) { - return; - } - - if ( ! current_user_can( 'edit_post', $parent_id ) ) { - wp_die( __( 'You are not allowed to edit this post.' ) ); - } - $ids = array(); - foreach ( (array) $_REQUEST['media'] as $att_id ) { - $att_id = (int) $att_id; - - if ( ! current_user_can( 'edit_post', $att_id ) ) { - continue; - } - - $ids[] = $att_id; - } - - if ( ! empty( $ids ) ) { - $ids_string = implode( ',', $ids ); - if ( 'attach' === $action ) { - $result = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET post_parent = %d WHERE post_type = 'attachment' AND ID IN ( $ids_string )", $parent_id ) ); - } else { - $result = $wpdb->query( "UPDATE $wpdb->posts SET post_parent = 0 WHERE post_type = 'attachment' AND ID IN ( $ids_string )" ); - } - - foreach ( $ids as $att_id ) { - clean_attachment_cache( $att_id ); - } - } - - if ( isset( $result ) ) { - $location = 'upload.php'; - if ( $referer = wp_get_referer() ) { - if ( false !== strpos( $referer, 'upload.php' ) ) { - $location = remove_query_arg( array( 'attached', 'detach' ), $referer ); - } - } - - $key = 'attach' === $action ? 'attached' : 'detach'; - $location = add_query_arg( array( $key => $result ), $location ); - wp_redirect( $location ); - exit; - } -} diff --git a/wp-admin/includes/menu.php b/wp-admin/includes/menu.php deleted file mode 100644 index accc04b1b0..0000000000 --- a/wp-admin/includes/menu.php +++ /dev/null @@ -1,341 +0,0 @@ - $sub) { - foreach ($sub as $index => $data) { - if ( ! current_user_can($data[1]) ) { - unset($submenu[$parent][$index]); - $_wp_submenu_nopriv[$parent][$data[2]] = true; - } - } - unset($index, $data); - - if ( empty($submenu[$parent]) ) - unset($submenu[$parent]); -} -unset($sub, $parent); - -/* - * Loop over the top-level menu. - * Menus for which the original parent is not accessible due to lack of privileges - * will have the next submenu in line be assigned as the new menu parent. - */ -foreach ( $menu as $id => $data ) { - if ( empty($submenu[$data[2]]) ) - continue; - $subs = $submenu[$data[2]]; - $first_sub = reset( $subs ); - $old_parent = $data[2]; - $new_parent = $first_sub[2]; - /* - * If the first submenu is not the same as the assigned parent, - * make the first submenu the new parent. - */ - if ( $new_parent != $old_parent ) { - $_wp_real_parent_file[$old_parent] = $new_parent; - $menu[$id][2] = $new_parent; - - foreach ($submenu[$old_parent] as $index => $data) { - $submenu[$new_parent][$index] = $submenu[$old_parent][$index]; - unset($submenu[$old_parent][$index]); - } - unset($submenu[$old_parent], $index); - - if ( isset($_wp_submenu_nopriv[$old_parent]) ) - $_wp_submenu_nopriv[$new_parent] = $_wp_submenu_nopriv[$old_parent]; - } -} -unset($id, $data, $subs, $first_sub, $old_parent, $new_parent); - -if ( is_network_admin() ) { - - /** - * Fires before the administration menu loads in the Network Admin. - * - * @since 3.1.0 - * - * @param string $context Empty context. - */ - do_action( 'network_admin_menu', '' ); -} elseif ( is_user_admin() ) { - - /** - * Fires before the administration menu loads in the User Admin. - * - * @since 3.1.0 - * - * @param string $context Empty context. - */ - do_action( 'user_admin_menu', '' ); -} else { - - /** - * Fires before the administration menu loads in the admin. - * - * @since 1.5.0 - * - * @param string $context Empty context. - */ - do_action( 'admin_menu', '' ); -} - -/* - * Remove menus that have no accessible submenus and require privileges - * that the user does not have. Run re-parent loop again. - */ -foreach ( $menu as $id => $data ) { - if ( ! current_user_can($data[1]) ) - $_wp_menu_nopriv[$data[2]] = true; - - /* - * If there is only one submenu and it is has same destination as the parent, - * remove the submenu. - */ - if ( ! empty( $submenu[$data[2]] ) && 1 == count ( $submenu[$data[2]] ) ) { - $subs = $submenu[$data[2]]; - $first_sub = reset( $subs ); - if ( $data[2] == $first_sub[2] ) - unset( $submenu[$data[2]] ); - } - - // If submenu is empty... - if ( empty($submenu[$data[2]]) ) { - // And user doesn't have privs, remove menu. - if ( isset( $_wp_menu_nopriv[$data[2]] ) ) { - unset($menu[$id]); - } - } -} -unset($id, $data, $subs, $first_sub); - -// Remove any duplicated separators -$separator_found = false; -foreach ( $menu as $id => $data ) { - if ( 0 == strcmp('wp-menu-separator', $data[4] ) ) { - if ( ! $separator_found ) { - $separator_found = true; - } else { - unset($menu[$id]); - $separator_found = false; - } - } else { - $separator_found = false; - } -} -unset($id, $data); - -/** - * - * @param string $add - * @param string $class - * @return string - */ -function add_cssclass($add, $class) { - $class = empty($class) ? $add : $class .= ' ' . $add; - return $class; -} - -/** - * - * @param array $menu - * @return array - */ -function add_menu_classes($menu) { - $first = $lastorder = false; - $i = 0; - $mc = count($menu); - foreach ( $menu as $order => $top ) { - $i++; - - if ( 0 == $order ) { // dashboard is always shown/single - $menu[0][4] = add_cssclass('menu-top-first', $top[4]); - $lastorder = 0; - continue; - } - - if ( 0 === strpos($top[2], 'separator') && false !== $lastorder ) { // if separator - $first = true; - $c = $menu[$lastorder][4]; - $menu[$lastorder][4] = add_cssclass('menu-top-last', $c); - continue; - } - - if ( $first ) { - $c = $menu[$order][4]; - $menu[$order][4] = add_cssclass('menu-top-first', $c); - $first = false; - } - - if ( $mc == $i ) { // last item - $c = $menu[$order][4]; - $menu[$order][4] = add_cssclass('menu-top-last', $c); - } - - $lastorder = $order; - } - - /** - * Filter administration menus array with classes added for top-level items. - * - * @since 2.7.0 - * - * @param array $menu Associative array of administration menu items. - */ - return apply_filters( 'add_menu_classes', $menu ); -} - -uksort($menu, "strnatcasecmp"); // make it all pretty - -/** - * Filter whether to enable custom ordering of the administration menu. - * - * See the 'menu_order' filter for reordering menu items. - * - * @since 2.8.0 - * - * @param bool $custom Whether custom ordering is enabled. Default false. - */ -if ( apply_filters( 'custom_menu_order', false ) ) { - $menu_order = array(); - foreach ( $menu as $menu_item ) { - $menu_order[] = $menu_item[2]; - } - unset($menu_item); - $default_menu_order = $menu_order; - - /** - * Filter the order of administration menu items. - * - * A truthy value must first be passed to the 'custom_menu_order' filter - * for this filter to work. Use the following to enable custom menu ordering: - * - * add_filter( 'custom_menu_order', '__return_true' ); - * - * @since 2.8.0 - * - * @param array $menu_order An ordered array of menu items. - */ - $menu_order = apply_filters( 'menu_order', $menu_order ); - $menu_order = array_flip($menu_order); - $default_menu_order = array_flip($default_menu_order); - - /** - * - * @global array $menu_order - * @global array $default_menu_order - * - * @param array $a - * @param array $b - * @return int - */ - function sort_menu($a, $b) { - global $menu_order, $default_menu_order; - $a = $a[2]; - $b = $b[2]; - if ( isset($menu_order[$a]) && !isset($menu_order[$b]) ) { - return -1; - } elseif ( !isset($menu_order[$a]) && isset($menu_order[$b]) ) { - return 1; - } elseif ( isset($menu_order[$a]) && isset($menu_order[$b]) ) { - if ( $menu_order[$a] == $menu_order[$b] ) - return 0; - return ($menu_order[$a] < $menu_order[$b]) ? -1 : 1; - } else { - return ($default_menu_order[$a] <= $default_menu_order[$b]) ? -1 : 1; - } - } - - usort($menu, 'sort_menu'); - unset($menu_order, $default_menu_order); -} - -// Remove the last menu item if it is a separator. -$last_menu_key = array_keys( $menu ); -$last_menu_key = array_pop( $last_menu_key ); -if ( !empty( $menu ) && 'wp-menu-separator' == $menu[ $last_menu_key ][ 4 ] ) - unset( $menu[ $last_menu_key ] ); -unset( $last_menu_key ); - -if ( !user_can_access_admin_page() ) { - - /** - * Fires when access to an admin page is denied. - * - * @since 2.5.0 - */ - do_action( 'admin_page_access_denied' ); - - wp_die( __( 'You do not have sufficient permissions to access this page.' ), 403 ); -} - -$menu = add_menu_classes($menu); diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php deleted file mode 100644 index a7a895a194..0000000000 --- a/wp-admin/includes/meta-boxes.php +++ /dev/null @@ -1,1144 +0,0 @@ -post_type; - $post_type_object = get_post_type_object($post_type); - $can_publish = current_user_can($post_type_object->cap->publish_posts); -?> -
- -
- - -
- -
- -
-
-post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?> -post_status ) { ?>style="display:none" type="submit" name="save" id="save-post" value="" class="button" /> -post_status && $can_publish ) { ?> - - - -
-public ) : ?> -
-post_status ) { - $preview_link = esc_url( get_permalink( $post->ID ) ); - $preview_button = __( 'Preview Changes' ); -} else { - $preview_link = set_url_scheme( get_permalink( $post->ID ) ); - - /** - * Filter the URI of a post preview in the post submit box. - * - * @since 2.0.5 - * @since 4.0.0 $post parameter was added. - * - * @param string $preview_link URI the user will be directed to for a post preview. - * @param WP_Post $post Post object. - */ - $preview_link = esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ), $post ) ); - $preview_button = __( 'Preview' ); -} -?> - - -
- -
-
- -
- -
- -post_status ) { - case 'private': - _e('Privately Published'); - break; - case 'publish': - _e('Published'); - break; - case 'future': - _e('Scheduled'); - break; - case 'pending': - _e('Pending Review'); - break; - case 'draft': - case 'auto-draft': - _e('Draft'); - break; -} -?> - -post_status || 'private' == $post->post_status || $can_publish ) { ?> -post_status ) { ?>style="display:none;" class="edit-post-status hide-if-no-js"> - -
- - - - -
- - -
- -
- post_status ) { - $post->post_password = ''; - $visibility = 'private'; - $visibility_trans = __('Private'); -} elseif ( !empty( $post->post_password ) ) { - $visibility = 'password'; - $visibility_trans = __('Password protected'); -} elseif ( $post_type == 'post' && is_sticky( $post->ID ) ) { - $visibility = 'public'; - $visibility_trans = __('Public, Sticky'); -} else { - $visibility = 'public'; - $visibility_trans = __('Public'); -} - -echo esc_html( $visibility_trans ); ?> - - - -
- - -ID)); ?> /> - - - />
- -ID ) ); ?> />
- - />
-
- />
- -

- - -

-
- - -
- -ID ) { - if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date - $stamp = __('Scheduled for: %1$s'); - } elseif ( 'publish' == $post->post_status || 'private' == $post->post_status ) { // already published - $stamp = __('Published on: %1$s'); - } elseif ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified - $stamp = __('Publish immediately'); - } elseif ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // draft, 1 or more saves, future date specified - $stamp = __('Schedule for: %1$s'); - } else { // draft, 1 or more saves, date specified - $stamp = __('Publish on: %1$s'); - } - $date = date_i18n( $datef, strtotime( $post->post_date ) ); -} else { // draft (no saves, and thus no date specified) - $stamp = __('Publish immediately'); - $date = date_i18n( $datef, strtotime( current_time('mysql') ) ); -} - -if ( ! empty( $args['args']['revisions_count'] ) ) : - $revisions_to_keep = wp_revisions_to_keep( $post ); -?> -
- 0 && $revisions_to_keep <= $args['args']['revisions_count'] ) { - echo ''; - printf( __( 'Revisions: %s' ), '' . number_format_i18n( $args['args']['revisions_count'] ) . '+' ); - echo ''; - } else { - printf( __( 'Revisions: %s' ), '' . number_format_i18n( $args['args']['revisions_count'] ) . '' ); - } -?> - -
- -
- - - -
- - -
-
- - - -
-
-
- -
- -
-ID ) ) { - if ( !EMPTY_TRASH_DAYS ) - $delete_text = __('Delete Permanently'); - else - $delete_text = __('Move to Trash'); - ?> - -
- -
- -post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) { - if ( $can_publish ) : - if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> - - - - - - - - - - - - -
-
-
-
- - -
- -
- - -
- -
- - -
- %1$s'); - $date = date_i18n( $datef, strtotime( $post->post_date ) ); - ?> -
- -
- - -
-
-
- -
-
- ID ) ) - if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { - echo "" . __( 'Trash' ) . ""; - } else { - $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; - echo "" . __( 'Delete Permanently' ) . ""; - } - ?> -
- -
- - - -
-
-
- -
- -post_type, 'post-formats' ) ) : - $post_formats = get_theme_support( 'post-formats' ); - - if ( is_array( $post_formats[0] ) ) : - $post_format = get_post_format( $post->ID ); - if ( !$post_format ) - $post_format = '0'; - // Add in the current one if it isn't there yet, in case the current theme doesn't support it - if ( $post_format && !in_array( $post_format, $post_formats[0] ) ) - $post_formats[0][] = $post_format; - ?> -
-
- - /> - -
/> - -
-
- 'post_tag' ); - if ( ! isset( $box['args'] ) || ! is_array( $box['args'] ) ) { - $args = array(); - } else { - $args = $box['args']; - } - $r = wp_parse_args( $args, $defaults ); - $tax_name = esc_attr( $r['taxonomy'] ); - $taxonomy = get_taxonomy( $r['taxonomy'] ); - $user_can_assign_terms = current_user_can( $taxonomy->cap->assign_terms ); - $comma = _x( ',', 'tag delimiter' ); -?> -
-
-
-

labels->add_or_remove_items; ?>

-
- -
- -

-

-
-

labels->separate_items_with_commas; ?>

- -
-
-
- -

labels->choose_from_most_used; ?>

- - 'category' ); - if ( ! isset( $box['args'] ) || ! is_array( $box['args'] ) ) { - $args = array(); - } else { - $args = $box['args']; - } - $r = wp_parse_args( $args, $defaults ); - $tax_name = esc_attr( $r['taxonomy'] ); - $taxonomy = get_taxonomy( $r['taxonomy'] ); - ?> -
- - - - -
- "; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks. - ?> -
    - ID, array( 'taxonomy' => $tax_name, 'popular_cats' => $popular_ids ) ); ?> -
-
- cap->edit_terms ) ) : ?> -
-

- - labels->add_new_item ); - ?> - -

-

- - - - $tax_name, 'hide_empty' => 0, 'name' => 'new' . $tax_name . '_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $taxonomy->labels->parent_item . ' —' ) ); ?> - - - -

-
- -
- - -

Learn more about manual excerpts.'); ?>

-to_ping) ) .'" />'; - if ('' != $post->pinged) { - $pings = '

'. __('Already pinged:') . '

    '; - $already_pinged = explode("\n", trim($post->pinged)); - foreach ($already_pinged as $pinged_url) { - $pings .= "\n\t
  • " . esc_html($pinged_url) . "
  • "; - } - $pings .= '
'; - } - -?> -


()

-

pingbacks, no other action necessary.'); ?>

- -
-
-ID); -foreach ( $metadata as $key => $value ) { - if ( is_protected_meta( $metadata[ $key ][ 'meta_key' ], 'post' ) || ! current_user_can( 'edit_post_meta', $post->ID, $metadata[ $key ][ 'meta_key' ] ) ) - unset( $metadata[ $key ] ); -} -list_meta( $metadata ); -meta_form( $post ); ?> -
-

use in your theme.'); ?>

- - -

-
- - -

- -

- $post->ID, 'number' => 1, 'count' => true ) ); - $wp_list_table = _get_list_table('WP_Post_Comments_List_Table'); - $wp_list_table->display( true ); - - if ( 1 > $total ) { - echo '

' . __('No comments yet.') . '

'; - } else { - $hidden = get_hidden_meta_boxes( get_current_screen() ); - if ( ! in_array('commentsdiv', $hidden) ) { - ?> - - -

- - - - - 'authors', - 'name' => 'post_author_override', - 'selected' => empty($post->ID) ? $user_ID : $post->post_author, - 'include_selected' => true - ) ); -} - -/** - * Display list of revisions. - * - * @since 2.6.0 - * - * @param object $post - */ -function post_revisions_meta_box( $post ) { - wp_list_post_revisions( $post ); -} - -// -- Page related Meta Boxes - -/** - * Display page attributes form fields. - * - * @since 2.7.0 - * - * @param object $post - */ -function page_attributes_meta_box($post) { - $post_type_object = get_post_type_object($post->post_type); - if ( $post_type_object->hierarchical ) { - $dropdown_args = array( - 'post_type' => $post->post_type, - 'exclude_tree' => $post->ID, - 'selected' => $post->post_parent, - 'name' => 'parent_id', - 'show_option_none' => __('(no parent)'), - 'sort_column' => 'menu_order, post_title', - 'echo' => 0, - ); - - /** - * Filter the arguments used to generate a Pages drop-down element. - * - * @since 3.3.0 - * - * @see wp_dropdown_pages() - * - * @param array $dropdown_args Array of arguments used to generate the pages drop-down. - * @param WP_Post $post The current WP_Post object. - */ - $dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post ); - $pages = wp_dropdown_pages( $dropdown_args ); - if ( ! empty($pages) ) { -?> -

- - -post_type && 0 != count( get_page_templates( $post ) ) && get_option( 'page_for_posts' ) != $post->ID ) { - $template = !empty($post->page_template) ? $post->page_template : false; - ?> -

- - -

-

-post_type && get_current_screen()->get_help_tabs() ) { ?> -

- - - -
-
    -
  • -
  • -
- -
-
    - link_id) ) - wp_link_category_checklist($link->link_id); - else - wp_link_category_checklist(); - ?> -
-
- - - -
-

- -
-
- -
-

-

-

-
-

-link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: ''; - $rels = preg_split('/\s+/', $link_rel); - - if ('' != $value && in_array($value, $rels) ) { - echo ' checked="checked"'; - } - - if ('' == $value) { - if ('family' == $class && strpos($link_rel, 'child') === false && strpos($link_rel, 'parent') === false && strpos($link_rel, 'sibling') === false && strpos($link_rel, 'spouse') === false && strpos($link_rel, 'kin') === false) echo ' checked="checked"'; - if ('friendship' == $class && strpos($link_rel, 'friend') === false && strpos($link_rel, 'acquaintance') === false && strpos($link_rel, 'contact') === false) echo ' checked="checked"'; - if ('geographical' == $class && strpos($link_rel, 'co-resident') === false && strpos($link_rel, 'neighbor') === false) echo ' checked="checked"'; - if ('identity' == $class && in_array('me', $rels) ) echo ' checked="checked"'; - } -} - -/** - * Display xfn form fields. - * - * @since 2.6.0 - * - * @param object $link - */ -function link_xfn_meta_box($link) { -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

XFN.'); ?>

- - - - - - - - - - - - - - - - - - - -ID, '_thumbnail_id', true ); - echo _wp_post_thumbnail_html( $thumbnail_id, $post->ID ); -} - -/** - * Display fields for ID3 data - * - * @since 3.9.0 - * - * @param WP_Post $post - */ -function attachment_id3_data_meta_box( $post ) { - $meta = array(); - if ( ! empty( $post->ID ) ) { - $meta = wp_get_attachment_metadata( $post->ID ); - } - - foreach ( wp_get_attachment_id3_keys( $post, 'edit' ) as $key => $label ) : ?> -

-
- -

- $markerline ) { - if (strpos($markerline, '# BEGIN ' . $marker) !== false) - $state = false; - if ( $state ) { - if ( $n + 1 < count( $markerdata ) ) - fwrite( $f, "{$markerline}\n" ); - else - fwrite( $f, "{$markerline}" ); - } - if (strpos($markerline, '# END ' . $marker) !== false) { - fwrite( $f, "# BEGIN {$marker}\n" ); - if ( is_array( $insertion )) - foreach ( $insertion as $insertline ) - fwrite( $f, "{$insertline}\n" ); - fwrite( $f, "# END {$marker}\n" ); - $state = true; - $foundit = true; - } - } - } - if (!$foundit) { - fwrite( $f, "\n# BEGIN {$marker}\n" ); - foreach ( $insertion as $insertline ) - fwrite( $f, "{$insertline}\n" ); - fwrite( $f, "# END {$marker}\n" ); - } - fclose( $f ); - return true; - } else { - return false; - } -} - -/** - * Updates the htaccess file with the current rules if it is writable. - * - * Always writes to the file if it exists and is writable to ensure that we - * blank out old rules. - * - * @since 1.5.0 - * - * @global WP_Rewrite $wp_rewrite - */ -function save_mod_rewrite_rules() { - if ( is_multisite() ) - return; - - global $wp_rewrite; - - $home_path = get_home_path(); - $htaccess_file = $home_path.'.htaccess'; - - /* - * If the file doesn't already exist check for write access to the directory - * and whether we have some rules. Else check for write access to the file. - */ - if ((!file_exists($htaccess_file) && is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks()) || is_writable($htaccess_file)) { - if ( got_mod_rewrite() ) { - $rules = explode( "\n", $wp_rewrite->mod_rewrite_rules() ); - return insert_with_markers( $htaccess_file, 'WordPress', $rules ); - } - } - - return false; -} - -/** - * Updates the IIS web.config file with the current rules if it is writable. - * If the permalinks do not require rewrite rules then the rules are deleted from the web.config file. - * - * @since 2.8.0 - * - * @global WP_Rewrite $wp_rewrite - * - * @return bool True if web.config was updated successfully - */ -function iis7_save_url_rewrite_rules(){ - if ( is_multisite() ) - return; - - global $wp_rewrite; - - $home_path = get_home_path(); - $web_config_file = $home_path . 'web.config'; - - // Using win_is_writable() instead of is_writable() because of a bug in Windows PHP - if ( iis7_supports_permalinks() && ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) ) { - $rule = $wp_rewrite->iis7_url_rewrite_rules(false, '', ''); - if ( ! empty($rule) ) { - return iis7_add_rewrite_rule($web_config_file, $rule); - } else { - return iis7_delete_rewrite_rule($web_config_file); - } - } - return false; -} - -/** - * {@internal Missing Short Description}} - * - * @since 1.5.0 - * - * @param string $file - */ -function update_recently_edited( $file ) { - $oldfiles = (array ) get_option( 'recently_edited' ); - if ( $oldfiles ) { - $oldfiles = array_reverse( $oldfiles ); - $oldfiles[] = $file; - $oldfiles = array_reverse( $oldfiles ); - $oldfiles = array_unique( $oldfiles ); - if ( 5 < count( $oldfiles )) - array_pop( $oldfiles ); - } else { - $oldfiles[] = $file; - } - update_option( 'recently_edited', $oldfiles ); -} - -/** - * If siteurl, home or page_on_front changed, flush rewrite rules. - * - * @since 2.1.0 - * - * @param string $old_value - * @param string $value - */ -function update_home_siteurl( $old_value, $value ) { - if ( defined( "WP_INSTALLING" ) ) - return; - - // If home changed, write rewrite rules to new location. - flush_rewrite_rules(); -} - -/** - * Shorten an URL, to be used as link text - * - * @since 1.2.0 - * - * @param string $url - * @return string - */ -function url_shorten( $url ) { - $short_url = str_replace( array( 'http://', 'www.' ), '', $url ); - $short_url = untrailingslashit( $short_url ); - if ( strlen( $short_url ) > 35 ) - $short_url = substr( $short_url, 0, 32 ) . '…'; - return $short_url; -} - -/** - * Resets global variables based on $_GET and $_POST - * - * This function resets global variables based on the names passed - * in the $vars array to the value of $_POST[$var] or $_GET[$var] or '' - * if neither is defined. - * - * @since 2.0.0 - * - * @param array $vars An array of globals to reset. - */ -function wp_reset_vars( $vars ) { - foreach ( $vars as $var ) { - if ( empty( $_POST[ $var ] ) ) { - if ( empty( $_GET[ $var ] ) ) { - $GLOBALS[ $var ] = ''; - } else { - $GLOBALS[ $var ] = $_GET[ $var ]; - } - } else { - $GLOBALS[ $var ] = $_POST[ $var ]; - } - } -} - -/** - * {@internal Missing Short Description}} - * - * @since 2.1.0 - * - * @param string|WP_Error $message - */ -function show_message($message) { - if ( is_wp_error($message) ){ - if ( $message->get_error_data() && is_string( $message->get_error_data() ) ) - $message = $message->get_error_message() . ': ' . $message->get_error_data(); - else - $message = $message->get_error_message(); - } - echo "

$message

\n"; - wp_ob_end_flush_all(); - flush(); -} - -/** - * @since 2.8.0 - * - * @param string $content - * @return array - */ -function wp_doc_link_parse( $content ) { - if ( !is_string( $content ) || empty( $content ) ) - return array(); - - if ( !function_exists('token_get_all') ) - return array(); - - $tokens = token_get_all( $content ); - $count = count( $tokens ); - $functions = array(); - $ignore_functions = array(); - for ( $t = 0; $t < $count - 2; $t++ ) { - if ( ! is_array( $tokens[ $t ] ) ) { - continue; - } - - if ( T_STRING == $tokens[ $t ][0] && ( '(' == $tokens[ $t + 1 ] || '(' == $tokens[ $t + 2 ] ) ) { - // If it's a function or class defined locally, there's not going to be any docs available - if ( ( isset( $tokens[ $t - 2 ][1] ) && in_array( $tokens[ $t - 2 ][1], array( 'function', 'class' ) ) ) || ( isset( $tokens[ $t - 2 ][0] ) && T_OBJECT_OPERATOR == $tokens[ $t - 1 ][0] ) ) { - $ignore_functions[] = $tokens[$t][1]; - } - // Add this to our stack of unique references - $functions[] = $tokens[$t][1]; - } - } - - $functions = array_unique( $functions ); - sort( $functions ); - - /** - * Filter the list of functions and classes to be ignored from the documentation lookup. - * - * @since 2.8.0 - * - * @param array $ignore_functions Functions and classes to be ignored. - */ - $ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions ); - - $ignore_functions = array_unique( $ignore_functions ); - - $out = array(); - foreach ( $functions as $function ) { - if ( in_array( $function, $ignore_functions ) ) - continue; - $out[] = $function; - } - - return $out; -} - -/** - * Saves option for number of rows when listing posts, pages, comments, etc. - * - * @since 2.8.0 - */ -function set_screen_options() { - - if ( isset($_POST['wp_screen_options']) && is_array($_POST['wp_screen_options']) ) { - check_admin_referer( 'screen-options-nonce', 'screenoptionnonce' ); - - if ( !$user = wp_get_current_user() ) - return; - $option = $_POST['wp_screen_options']['option']; - $value = $_POST['wp_screen_options']['value']; - - if ( $option != sanitize_key( $option ) ) - return; - - $map_option = $option; - $type = str_replace('edit_', '', $map_option); - $type = str_replace('_per_page', '', $type); - if ( in_array( $type, get_taxonomies() ) ) - $map_option = 'edit_tags_per_page'; - elseif ( in_array( $type, get_post_types() ) ) - $map_option = 'edit_per_page'; - else - $option = str_replace('-', '_', $option); - - switch ( $map_option ) { - case 'edit_per_page': - case 'users_per_page': - case 'edit_comments_per_page': - case 'upload_per_page': - case 'edit_tags_per_page': - case 'plugins_per_page': - // Network admin - case 'sites_network_per_page': - case 'users_network_per_page': - case 'site_users_network_per_page': - case 'plugins_network_per_page': - case 'themes_network_per_page': - case 'site_themes_network_per_page': - $value = (int) $value; - if ( $value < 1 || $value > 999 ) - return; - break; - default: - - /** - * Filter a screen option value before it is set. - * - * The filter can also be used to modify non-standard [items]_per_page - * settings. See the parent function for a full list of standard options. - * - * Returning false to the filter will skip saving the current option. - * - * @since 2.8.0 - * - * @see set_screen_options() - * - * @param bool|int $value Screen option value. Default false to skip. - * @param string $option The option name. - * @param int $value The number of rows to use. - */ - $value = apply_filters( 'set-screen-option', false, $option, $value ); - - if ( false === $value ) - return; - break; - } - - update_user_meta($user->ID, $option, $value); - wp_safe_redirect( remove_query_arg( array('pagenum', 'apage', 'paged'), wp_get_referer() ) ); - exit; - } -} - -/** - * Check if rewrite rule for WordPress already exists in the IIS 7+ configuration file - * - * @since 2.8.0 - * - * @return bool - * @param string $filename The file path to the configuration file - */ -function iis7_rewrite_rule_exists($filename) { - if ( ! file_exists($filename) ) - return false; - if ( ! class_exists('DOMDocument') ) - return false; - - $doc = new DOMDocument(); - if ( $doc->load($filename) === false ) - return false; - $xpath = new DOMXPath($doc); - $rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')]'); - if ( $rules->length == 0 ) - return false; - else - return true; -} - -/** - * Delete WordPress rewrite rule from web.config file if it exists there - * - * @since 2.8.0 - * - * @param string $filename Name of the configuration file - * @return bool - */ -function iis7_delete_rewrite_rule($filename) { - // If configuration file does not exist then rules also do not exist so there is nothing to delete - if ( ! file_exists($filename) ) - return true; - - if ( ! class_exists('DOMDocument') ) - return false; - - $doc = new DOMDocument(); - $doc->preserveWhiteSpace = false; - - if ( $doc -> load($filename) === false ) - return false; - $xpath = new DOMXPath($doc); - $rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')]'); - if ( $rules->length > 0 ) { - $child = $rules->item(0); - $parent = $child->parentNode; - $parent->removeChild($child); - $doc->formatOutput = true; - saveDomDocument($doc, $filename); - } - return true; -} - -/** - * Add WordPress rewrite rule to the IIS 7+ configuration file. - * - * @since 2.8.0 - * - * @param string $filename The file path to the configuration file - * @param string $rewrite_rule The XML fragment with URL Rewrite rule - * @return bool - */ -function iis7_add_rewrite_rule($filename, $rewrite_rule) { - if ( ! class_exists('DOMDocument') ) - return false; - - // If configuration file does not exist then we create one. - if ( ! file_exists($filename) ) { - $fp = fopen( $filename, 'w'); - fwrite($fp, ''); - fclose($fp); - } - - $doc = new DOMDocument(); - $doc->preserveWhiteSpace = false; - - if ( $doc->load($filename) === false ) - return false; - - $xpath = new DOMXPath($doc); - - // First check if the rule already exists as in that case there is no need to re-add it - $wordpress_rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')]'); - if ( $wordpress_rules->length > 0 ) - return true; - - // Check the XPath to the rewrite rule and create XML nodes if they do not exist - $xmlnodes = $xpath->query('/configuration/system.webServer/rewrite/rules'); - if ( $xmlnodes->length > 0 ) { - $rules_node = $xmlnodes->item(0); - } else { - $rules_node = $doc->createElement('rules'); - - $xmlnodes = $xpath->query('/configuration/system.webServer/rewrite'); - if ( $xmlnodes->length > 0 ) { - $rewrite_node = $xmlnodes->item(0); - $rewrite_node->appendChild($rules_node); - } else { - $rewrite_node = $doc->createElement('rewrite'); - $rewrite_node->appendChild($rules_node); - - $xmlnodes = $xpath->query('/configuration/system.webServer'); - if ( $xmlnodes->length > 0 ) { - $system_webServer_node = $xmlnodes->item(0); - $system_webServer_node->appendChild($rewrite_node); - } else { - $system_webServer_node = $doc->createElement('system.webServer'); - $system_webServer_node->appendChild($rewrite_node); - - $xmlnodes = $xpath->query('/configuration'); - if ( $xmlnodes->length > 0 ) { - $config_node = $xmlnodes->item(0); - $config_node->appendChild($system_webServer_node); - } else { - $config_node = $doc->createElement('configuration'); - $doc->appendChild($config_node); - $config_node->appendChild($system_webServer_node); - } - } - } - } - - $rule_fragment = $doc->createDocumentFragment(); - $rule_fragment->appendXML($rewrite_rule); - $rules_node->appendChild($rule_fragment); - - $doc->encoding = "UTF-8"; - $doc->formatOutput = true; - saveDomDocument($doc, $filename); - - return true; -} - -/** - * Saves the XML document into a file - * - * @since 2.8.0 - * - * @param DOMDocument $doc - * @param string $filename - */ -function saveDomDocument($doc, $filename) { - $config = $doc->saveXML(); - $config = preg_replace("/([^\r])\n/", "$1\r\n", $config); - $fp = fopen($filename, 'w'); - fwrite($fp, $config); - fclose($fp); -} - -/** - * Display the default admin color scheme picker (Used in user-edit.php) - * - * @since 3.0.0 - * - * @global array $_wp_admin_css_colors - */ -function admin_color_scheme_picker( $user_id ) { - global $_wp_admin_css_colors; - - ksort( $_wp_admin_css_colors ); - - if ( isset( $_wp_admin_css_colors['fresh'] ) ) { - // Set Default ('fresh') and Light should go first. - $_wp_admin_css_colors = array_filter( array_merge( array( 'fresh' => '', 'light' => '' ), $_wp_admin_css_colors ) ); - } - - $current_color = get_user_option( 'admin_color', $user_id ); - - if ( empty( $current_color ) || ! isset( $_wp_admin_css_colors[ $current_color ] ) ) { - $current_color = 'fresh'; - } - - ?> -
- - $color_info ) : - - ?> -
- /> - - - - - - colors as $html_color ) { - ?> - - - -
 
-
- -
- icon_colors ) ) { - $icon_colors = $_wp_admin_css_colors[ $color_scheme ]->icon_colors; - } elseif ( ! empty( $_wp_admin_css_colors['fresh']->icon_colors ) ) { - $icon_colors = $_wp_admin_css_colors['fresh']->icon_colors; - } else { - // Fall back to the default set of icon colors if the default scheme is missing. - $icon_colors = array( 'base' => '#999', 'focus' => '#00a0d2', 'current' => '#fff' ); - } - - echo '\n"; -} - -/** - * @since 3.3.0 - */ -function _ipad_meta() { - if ( wp_is_mobile() ) { - ?> - - sprintf( __( '%s is currently editing' ), $user->display_name ) ); - - if ( ( $avatar = get_avatar( $user->ID, 18 ) ) && preg_match( "|src='([^']+)'|", $avatar, $matches ) ) - $send['avatar_src'] = $matches[1]; - - $checked[$key] = $send; - } - } - } - - if ( ! empty( $checked ) ) - $response['wp-check-locked-posts'] = $checked; - - return $response; -} - -/** - * Check lock status on the New/Edit Post screen and refresh the lock - * - * @since 3.6.0 - */ -function wp_refresh_post_lock( $response, $data, $screen_id ) { - if ( array_key_exists( 'wp-refresh-post-lock', $data ) ) { - $received = $data['wp-refresh-post-lock']; - $send = array(); - - if ( ! $post_id = absint( $received['post_id'] ) ) - return $response; - - if ( ! current_user_can('edit_post', $post_id) ) - return $response; - - if ( ( $user_id = wp_check_post_lock( $post_id ) ) && ( $user = get_userdata( $user_id ) ) ) { - $error = array( - 'text' => sprintf( __( '%s has taken over and is currently editing.' ), $user->display_name ) - ); - - if ( $avatar = get_avatar( $user->ID, 64 ) ) { - if ( preg_match( "|src='([^']+)'|", $avatar, $matches ) ) - $error['avatar_src'] = $matches[1]; - } - - $send['lock_error'] = $error; - } else { - if ( $new_lock = wp_set_post_lock( $post_id ) ) - $send['new_lock'] = implode( ':', $new_lock ); - } - - $response['wp-refresh-post-lock'] = $send; - } - - return $response; -} - -/** - * Check nonce expiration on the New/Edit Post screen and refresh if needed - * - * @since 3.6.0 - */ -function wp_refresh_post_nonces( $response, $data, $screen_id ) { - if ( array_key_exists( 'wp-refresh-post-nonces', $data ) ) { - $received = $data['wp-refresh-post-nonces']; - $response['wp-refresh-post-nonces'] = array( 'check' => 1 ); - - if ( ! $post_id = absint( $received['post_id'] ) ) { - return $response; - } - - if ( ! current_user_can( 'edit_post', $post_id ) ) { - return $response; - } - - $response['wp-refresh-post-nonces'] = array( - 'replace' => array( - 'getpermalinknonce' => wp_create_nonce('getpermalink'), - 'samplepermalinknonce' => wp_create_nonce('samplepermalink'), - 'closedpostboxesnonce' => wp_create_nonce('closedpostboxes'), - '_ajax_linking_nonce' => wp_create_nonce( 'internal-linking' ), - '_wpnonce' => wp_create_nonce( 'update-post_' . $post_id ), - ), - 'heartbeatNonce' => wp_create_nonce( 'heartbeat-nonce' ), - ); - } - - return $response; -} - -/** - * Disable suspension of Heartbeat on the Add/Edit Post screens. - * - * @since 3.8.0 - * - * @global string $pagenow - * - * @param array $settings An array of Heartbeat settings. - * @return array Filtered Heartbeat settings. - */ -function wp_heartbeat_set_suspension( $settings ) { - global $pagenow; - - if ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) { - $settings['suspension'] = 'disable'; - } - - return $settings; -} - -/** - * Autosave with heartbeat - * - * @since 3.9.0 - */ -function heartbeat_autosave( $response, $data ) { - if ( ! empty( $data['wp_autosave'] ) ) { - $saved = wp_autosave( $data['wp_autosave'] ); - - if ( is_wp_error( $saved ) ) { - $response['wp_autosave'] = array( 'success' => false, 'message' => $saved->get_error_message() ); - } elseif ( empty( $saved ) ) { - $response['wp_autosave'] = array( 'success' => false, 'message' => __( 'Error while saving.' ) ); - } else { - /* translators: draft saved date format, see http://php.net/date */ - $draft_saved_date_format = __( 'g:i:s a' ); - /* translators: %s: date and time */ - $response['wp_autosave'] = array( 'success' => true, 'message' => sprintf( __( 'Draft saved at %s.' ), date_i18n( $draft_saved_date_format ) ) ); - } - } - - return $response; -} - -/** - * Disables autocomplete on the 'post' form (Add/Edit Post screens) for WebKit browsers, - * as they disregard the autocomplete setting on the editor textarea. That can break the editor - * when the user navigates to it with the browser's Back button. See #28037 - * - * @since 4.0 - * - * @global bool $is_safari - * @global bool $is_chrome - */ -function post_form_autocomplete_off() { - global $is_safari, $is_chrome; - - if ( $is_safari || $is_chrome ) { - echo ' autocomplete="off"'; - } -} - -/** - * Remove single-use URL parameters and create canonical link based on new URL. - * - * Remove specific query string parameters from a URL, create the canonical link, - * put it in the admin header, and change the current URL to match. - * - * @since 4.2.0 - */ -function wp_admin_canonical_url() { - $removable_query_args = array( - 'message', 'settings-updated', 'saved', - 'update', 'updated', 'activated', - 'activate', 'deactivate', 'locked', - 'deleted', 'trashed', 'untrashed', - 'enabled', 'disabled', 'skipped', - 'spammed', 'unspammed', - ); - - /** - * Filter the list of URL parameters to remove. - * - * @since 4.2.0 - * - * @param array $removable_query_args An array of parameters to remove from the URL. - */ - $removable_query_args = apply_filters( 'removable_query_args', $removable_query_args ); - - if ( empty( $removable_query_args ) ) { - return; - } - - // Ensure we're using an absolute URL. - $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); - $filtered_url = remove_query_arg( $removable_query_args, $current_url ); - ?> - - - ( 1024 * get_site_option( 'fileupload_maxk', 1500 ) ) ) - $file['error'] = sprintf(__('This file is too big. Files must be less than %1$s KB in size.'), get_site_option( 'fileupload_maxk', 1500 ) ); - if ( upload_is_user_over_quota( false ) ) { - $file['error'] = __( 'You have used your space quota. Please delete files before uploading.' ); - } - if ( $file['error'] != '0' && ! isset( $_POST['html-upload'] ) && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) { - wp_die( $file['error'] . ' ' . __( 'Back' ) . '' ); - } - - return $file; -} - -/** - * Delete a blog. - * - * @since 3.0.0 - * - * @global wpdb $wpdb - * - * @param int $blog_id Blog ID. - * @param bool $drop True if blog's table should be dropped. Default is false. - */ -function wpmu_delete_blog( $blog_id, $drop = false ) { - global $wpdb; - - $switch = false; - if ( get_current_blog_id() != $blog_id ) { - $switch = true; - switch_to_blog( $blog_id ); - } - - $blog = get_blog_details( $blog_id ); - /** - * Fires before a blog is deleted. - * - * @since MU - * - * @param int $blog_id The blog ID. - * @param bool $drop True if blog's table should be dropped. Default is false. - */ - do_action( 'delete_blog', $blog_id, $drop ); - - $users = get_users( array( 'blog_id' => $blog_id, 'fields' => 'ids' ) ); - - // Remove users from this blog. - if ( ! empty( $users ) ) { - foreach ( $users as $user_id ) { - remove_user_from_blog( $user_id, $blog_id ); - } - } - - update_blog_status( $blog_id, 'deleted', 1 ); - - $current_site = get_current_site(); - - // If a full blog object is not available, do not destroy anything. - if ( $drop && ! $blog ) { - $drop = false; - } - - // Don't destroy the initial, main, or root blog. - if ( $drop && ( 1 == $blog_id || is_main_site( $blog_id ) || ( $blog->path == $current_site->path && $blog->domain == $current_site->domain ) ) ) { - $drop = false; - } - - $upload_path = trim( get_option( 'upload_path' ) ); - - // If ms_files_rewriting is enabled and upload_path is empty, wp_upload_dir is not reliable. - if ( $drop && get_site_option( 'ms_files_rewriting' ) && empty( $upload_path ) ) { - $drop = false; - } - - if ( $drop ) { - $uploads = wp_upload_dir(); - - $tables = $wpdb->tables( 'blog' ); - /** - * Filter the tables to drop when the blog is deleted. - * - * @since MU - * - * @param array $tables The blog tables to be dropped. - * @param int $blog_id The ID of the blog to drop tables for. - */ - $drop_tables = apply_filters( 'wpmu_drop_tables', $tables, $blog_id ); - - foreach ( (array) $drop_tables as $table ) { - $wpdb->query( "DROP TABLE IF EXISTS `$table`" ); - } - - $wpdb->delete( $wpdb->blogs, array( 'blog_id' => $blog_id ) ); - - /** - * Filter the upload base directory to delete when the blog is deleted. - * - * @since MU - * - * @param string $uploads['basedir'] Uploads path without subdirectory. @see wp_upload_dir() - * @param int $blog_id The blog ID. - */ - $dir = apply_filters( 'wpmu_delete_blog_upload_dir', $uploads['basedir'], $blog_id ); - $dir = rtrim( $dir, DIRECTORY_SEPARATOR ); - $top_dir = $dir; - $stack = array($dir); - $index = 0; - - while ( $index < count( $stack ) ) { - // Get indexed directory from stack - $dir = $stack[$index]; - - $dh = @opendir( $dir ); - if ( $dh ) { - while ( ( $file = @readdir( $dh ) ) !== false ) { - if ( $file == '.' || $file == '..' ) - continue; - - if ( @is_dir( $dir . DIRECTORY_SEPARATOR . $file ) ) { - $stack[] = $dir . DIRECTORY_SEPARATOR . $file; - } elseif ( @is_file( $dir . DIRECTORY_SEPARATOR . $file ) ) { - @unlink( $dir . DIRECTORY_SEPARATOR . $file ); - } - } - @closedir( $dh ); - } - $index++; - } - - $stack = array_reverse( $stack ); // Last added dirs are deepest - foreach( (array) $stack as $dir ) { - if ( $dir != $top_dir) - @rmdir( $dir ); - } - - clean_blog_cache( $blog ); - } - - if ( $switch ) - restore_current_blog(); -} - -/** - * Delete a user from the network and remove from all sites. - * - * @since 3.0.0 - * - * @todo Merge with wp_delete_user() ? - * - * @global wpdb $wpdb - * - * @param int $id The user ID. - * @return bool True if the user was deleted, otherwise false. - */ -function wpmu_delete_user( $id ) { - global $wpdb; - - $id = (int) $id; - $user = new WP_User( $id ); - - if ( !$user->exists() ) - return false; - - // Global super-administrators are protected, and cannot be deleted. - $_super_admins = get_super_admins(); - if ( in_array( $user->user_login, $_super_admins, true ) ) { - return false; - } - - /** - * Fires before a user is deleted from the network. - * - * @since MU - * - * @param int $id ID of the user about to be deleted from the network. - */ - do_action( 'wpmu_delete_user', $id ); - - $blogs = get_blogs_of_user( $id ); - - if ( ! empty( $blogs ) ) { - foreach ( $blogs as $blog ) { - switch_to_blog( $blog->userblog_id ); - remove_user_from_blog( $id, $blog->userblog_id ); - - $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_author = %d", $id ) ); - foreach ( (array) $post_ids as $post_id ) { - wp_delete_post( $post_id ); - } - - // Clean links - $link_ids = $wpdb->get_col( $wpdb->prepare( "SELECT link_id FROM $wpdb->links WHERE link_owner = %d", $id ) ); - - if ( $link_ids ) { - foreach ( $link_ids as $link_id ) - wp_delete_link( $link_id ); - } - - restore_current_blog(); - } - } - - $meta = $wpdb->get_col( $wpdb->prepare( "SELECT umeta_id FROM $wpdb->usermeta WHERE user_id = %d", $id ) ); - foreach ( $meta as $mid ) - delete_metadata_by_mid( 'user', $mid ); - - $wpdb->delete( $wpdb->users, array( 'ID' => $id ) ); - - clean_user_cache( $user ); - - /** This action is documented in wp-admin/includes/user.php */ - do_action( 'deleted_user', $id ); - - return true; -} - -/** - * Sends an email when a site administrator email address is changed. - * - * @since 3.0.0 - * - * @param string $old_value The old email address. Not currently used. - * @param string $value The new email address. - */ -function update_option_new_admin_email( $old_value, $value ) { - if ( $value == get_option( 'admin_email' ) || !is_email( $value ) ) - return; - - $hash = md5( $value. time() .mt_rand() ); - $new_admin_email = array( - 'hash' => $hash, - 'newemail' => $value - ); - update_option( 'adminhash', $new_admin_email ); - - /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */ - $email_text = __( 'Howdy ###USERNAME###, - -You recently requested to have the administration email address on -your site changed. - -If this is correct, please click on the following link to change it: -###ADMIN_URL### - -You can safely ignore and delete this email if you do not want to -take this action. - -This email has been sent to ###EMAIL### - -Regards, -All at ###SITENAME### -###SITEURL###' ); - - /** - * Filter the email text sent when the site admin email is changed. - * - * The following strings have a special meaning and will get replaced dynamically: - * ###USERNAME### The current user's username. - * ###ADMIN_URL### The link to click on to confirm the email change. - * ###EMAIL### The new email. - * ###SITENAME### The name of the site. - * ###SITEURL### The URL to the site. - * - * @since MU - * - * @param string $email_text Text in the email. - * @param string $new_admin_email New admin email that the current administration email was changed to. - */ - $content = apply_filters( 'new_admin_email_content', $email_text, $new_admin_email ); - - $current_user = wp_get_current_user(); - $content = str_replace( '###USERNAME###', $current_user->user_login, $content ); - $content = str_replace( '###ADMIN_URL###', esc_url( admin_url( 'options.php?adminhash='.$hash ) ), $content ); - $content = str_replace( '###EMAIL###', $value, $content ); - $content = str_replace( '###SITENAME###', get_site_option( 'site_name' ), $content ); - $content = str_replace( '###SITEURL###', network_home_url(), $content ); - - wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content ); -} - -/** - * Sends an email when an email address change is requested. - * - * @since 3.0.0 - * - * @global object $errors WP_Error object. - * @global object $wpdb WordPress database object. - */ -function send_confirmation_on_profile_email() { - global $errors, $wpdb; - $current_user = wp_get_current_user(); - if ( ! is_object($errors) ) - $errors = new WP_Error(); - - if ( $current_user->ID != $_POST['user_id'] ) - return false; - - if ( $current_user->user_email != $_POST['email'] ) { - if ( !is_email( $_POST['email'] ) ) { - $errors->add( 'user_email', __( "ERROR: The email address isn’t correct." ), array( 'form-field' => 'email' ) ); - return; - } - - if ( $wpdb->get_var( $wpdb->prepare( "SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email'] ) ) ) { - $errors->add( 'user_email', __( "ERROR: The email address is already used." ), array( 'form-field' => 'email' ) ); - delete_option( $current_user->ID . '_new_email' ); - return; - } - - $hash = md5( $_POST['email'] . time() . mt_rand() ); - $new_user_email = array( - 'hash' => $hash, - 'newemail' => $_POST['email'] - ); - update_option( $current_user->ID . '_new_email', $new_user_email ); - - /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */ - $email_text = __( 'Howdy ###USERNAME###, - -You recently requested to have the email address on your account changed. - -If this is correct, please click on the following link to change it: -###ADMIN_URL### - -You can safely ignore and delete this email if you do not want to -take this action. - -This email has been sent to ###EMAIL### - -Regards, -All at ###SITENAME### -###SITEURL###' ); - - /** - * Filter the email text sent when a user changes emails. - * - * The following strings have a special meaning and will get replaced dynamically: - * ###USERNAME### The current user's username. - * ###ADMIN_URL### The link to click on to confirm the email change. - * ###EMAIL### The new email. - * ###SITENAME### The name of the site. - * ###SITEURL### The URL to the site. - * - * @since MU - * - * @param string $email_text Text in the email. - * @param string $new_user_email New user email that the current user has changed to. - */ - $content = apply_filters( 'new_user_email_content', $email_text, $new_user_email ); - - $content = str_replace( '###USERNAME###', $current_user->user_login, $content ); - $content = str_replace( '###ADMIN_URL###', esc_url( admin_url( 'profile.php?newuseremail='.$hash ) ), $content ); - $content = str_replace( '###EMAIL###', $_POST['email'], $content); - $content = str_replace( '###SITENAME###', get_site_option( 'site_name' ), $content ); - $content = str_replace( '###SITEURL###', network_home_url(), $content ); - - wp_mail( $_POST['email'], sprintf( __( '[%s] New Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content ); - $_POST['email'] = $current_user->user_email; - } -} - -/** - * Adds an admin notice alerting the user to check for confirmation email - * after email address change. - * - * @since 3.0.0 - */ -function new_user_email_admin_notice() { - if ( strpos( $_SERVER['PHP_SELF'], 'profile.php' ) && isset( $_GET['updated'] ) && $email = get_option( get_current_user_id() . '_new_email' ) ) - echo "
" . sprintf( __( "Your email address has not been updated yet. Please check your inbox at %s for a confirmation email." ), $email['newemail'] ) . "
"; -} - -/** - * Check whether a blog has used its allotted upload space. - * - * @since MU - * - * @param bool $echo Optional. If $echo is set and the quota is exceeded, a warning message is echoed. Default is true. - * @return bool True if user is over upload space quota, otherwise false. - */ -function upload_is_user_over_quota( $echo = true ) { - if ( get_site_option( 'upload_space_check_disabled' ) ) - return false; - - $space_allowed = get_space_allowed(); - if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) ) - $space_allowed = 10; // Default space allowed is 10 MB - - $space_used = get_space_used(); - - if ( ( $space_allowed - $space_used ) < 0 ) { - if ( $echo ) - _e( 'Sorry, you have used your space allocation. Please delete some files to upload more files.' ); - return true; - } else { - return false; - } -} - -/** - * Displays the amount of disk space used by the current blog. Not used in core. - * - * @since MU - */ -function display_space_usage() { - $space_allowed = get_space_allowed(); - $space_used = get_space_used(); - - $percent_used = ( $space_used / $space_allowed ) * 100; - - if ( $space_allowed > 1000 ) { - $space = number_format( $space_allowed / 1024 ); - /* translators: Gigabytes */ - $space .= __( 'GB' ); - } else { - $space = number_format( $space_allowed ); - /* translators: Megabytes */ - $space .= __( 'MB' ); - } - ?> - - - - - - - - - - update( $wpdb->users, array( sanitize_key( $pref ) => $value ), array( 'ID' => $id ) ); - - $user = new WP_User( $id ); - clean_user_cache( $user ); - - if ( $pref == 'spam' ) { - if ( $value == 1 ) { - /** - * Fires after the user is marked as a SPAM user. - * - * @since 3.0.0 - * - * @param int $id ID of the user marked as SPAM. - */ - do_action( 'make_spam_user', $id ); - } else { - /** - * Fires after the user is marked as a HAM user. Opposite of SPAM. - * - * @since 3.0.0 - * - * @param int $id ID of the user marked as HAM. - */ - do_action( 'make_ham_user', $id ); - } - } - - return $value; -} - -/** - * Cleans the user cache for a specific user. - * - * @since 3.0.0 - * - * @param int $id The user ID. - * @return bool|int The ID of the refreshed user or false if the user does not exist. - */ -function refresh_user_details( $id ) { - $id = (int) $id; - - if ( !$user = get_userdata( $id ) ) - return false; - - clean_user_cache( $user ); - - return $id; -} - -/** - * Returns the language for a language code. - * - * @since 3.0.0 - * - * @param string $code Optional. The two-letter language code. Default empty. - * @return string The language corresponding to $code if it exists. If it does not exist, - * then the first two letters of $code is returned. - */ -function format_code_lang( $code = '' ) { - $code = strtolower( substr( $code, 0, 2 ) ); - $lang_codes = array( - 'aa' => 'Afar', 'ab' => 'Abkhazian', 'af' => 'Afrikaans', 'ak' => 'Akan', 'sq' => 'Albanian', 'am' => 'Amharic', 'ar' => 'Arabic', 'an' => 'Aragonese', 'hy' => 'Armenian', 'as' => 'Assamese', 'av' => 'Avaric', 'ae' => 'Avestan', 'ay' => 'Aymara', 'az' => 'Azerbaijani', 'ba' => 'Bashkir', 'bm' => 'Bambara', 'eu' => 'Basque', 'be' => 'Belarusian', 'bn' => 'Bengali', - 'bh' => 'Bihari', 'bi' => 'Bislama', 'bs' => 'Bosnian', 'br' => 'Breton', 'bg' => 'Bulgarian', 'my' => 'Burmese', 'ca' => 'Catalan; Valencian', 'ch' => 'Chamorro', 'ce' => 'Chechen', 'zh' => 'Chinese', 'cu' => 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic', 'cv' => 'Chuvash', 'kw' => 'Cornish', 'co' => 'Corsican', 'cr' => 'Cree', - 'cs' => 'Czech', 'da' => 'Danish', 'dv' => 'Divehi; Dhivehi; Maldivian', 'nl' => 'Dutch; Flemish', 'dz' => 'Dzongkha', 'en' => 'English', 'eo' => 'Esperanto', 'et' => 'Estonian', 'ee' => 'Ewe', 'fo' => 'Faroese', 'fj' => 'Fijjian', 'fi' => 'Finnish', 'fr' => 'French', 'fy' => 'Western Frisian', 'ff' => 'Fulah', 'ka' => 'Georgian', 'de' => 'German', 'gd' => 'Gaelic; Scottish Gaelic', - 'ga' => 'Irish', 'gl' => 'Galician', 'gv' => 'Manx', 'el' => 'Greek, Modern', 'gn' => 'Guarani', 'gu' => 'Gujarati', 'ht' => 'Haitian; Haitian Creole', 'ha' => 'Hausa', 'he' => 'Hebrew', 'hz' => 'Herero', 'hi' => 'Hindi', 'ho' => 'Hiri Motu', 'hu' => 'Hungarian', 'ig' => 'Igbo', 'is' => 'Icelandic', 'io' => 'Ido', 'ii' => 'Sichuan Yi', 'iu' => 'Inuktitut', 'ie' => 'Interlingue', - 'ia' => 'Interlingua (International Auxiliary Language Association)', 'id' => 'Indonesian', 'ik' => 'Inupiaq', 'it' => 'Italian', 'jv' => 'Javanese', 'ja' => 'Japanese', 'kl' => 'Kalaallisut; Greenlandic', 'kn' => 'Kannada', 'ks' => 'Kashmiri', 'kr' => 'Kanuri', 'kk' => 'Kazakh', 'km' => 'Central Khmer', 'ki' => 'Kikuyu; Gikuyu', 'rw' => 'Kinyarwanda', 'ky' => 'Kirghiz; Kyrgyz', - 'kv' => 'Komi', 'kg' => 'Kongo', 'ko' => 'Korean', 'kj' => 'Kuanyama; Kwanyama', 'ku' => 'Kurdish', 'lo' => 'Lao', 'la' => 'Latin', 'lv' => 'Latvian', 'li' => 'Limburgan; Limburger; Limburgish', 'ln' => 'Lingala', 'lt' => 'Lithuanian', 'lb' => 'Luxembourgish; Letzeburgesch', 'lu' => 'Luba-Katanga', 'lg' => 'Ganda', 'mk' => 'Macedonian', 'mh' => 'Marshallese', 'ml' => 'Malayalam', - 'mi' => 'Maori', 'mr' => 'Marathi', 'ms' => 'Malay', 'mg' => 'Malagasy', 'mt' => 'Maltese', 'mo' => 'Moldavian', 'mn' => 'Mongolian', 'na' => 'Nauru', 'nv' => 'Navajo; Navaho', 'nr' => 'Ndebele, South; South Ndebele', 'nd' => 'Ndebele, North; North Ndebele', 'ng' => 'Ndonga', 'ne' => 'Nepali', 'nn' => 'Norwegian Nynorsk; Nynorsk, Norwegian', 'nb' => 'Bokmål, Norwegian, Norwegian Bokmål', - 'no' => 'Norwegian', 'ny' => 'Chichewa; Chewa; Nyanja', 'oc' => 'Occitan, Provençal', 'oj' => 'Ojibwa', 'or' => 'Oriya', 'om' => 'Oromo', 'os' => 'Ossetian; Ossetic', 'pa' => 'Panjabi; Punjabi', 'fa' => 'Persian', 'pi' => 'Pali', 'pl' => 'Polish', 'pt' => 'Portuguese', 'ps' => 'Pushto', 'qu' => 'Quechua', 'rm' => 'Romansh', 'ro' => 'Romanian', 'rn' => 'Rundi', 'ru' => 'Russian', - 'sg' => 'Sango', 'sa' => 'Sanskrit', 'sr' => 'Serbian', 'hr' => 'Croatian', 'si' => 'Sinhala; Sinhalese', 'sk' => 'Slovak', 'sl' => 'Slovenian', 'se' => 'Northern Sami', 'sm' => 'Samoan', 'sn' => 'Shona', 'sd' => 'Sindhi', 'so' => 'Somali', 'st' => 'Sotho, Southern', 'es' => 'Spanish; Castilian', 'sc' => 'Sardinian', 'ss' => 'Swati', 'su' => 'Sundanese', 'sw' => 'Swahili', - 'sv' => 'Swedish', 'ty' => 'Tahitian', 'ta' => 'Tamil', 'tt' => 'Tatar', 'te' => 'Telugu', 'tg' => 'Tajik', 'tl' => 'Tagalog', 'th' => 'Thai', 'bo' => 'Tibetan', 'ti' => 'Tigrinya', 'to' => 'Tonga (Tonga Islands)', 'tn' => 'Tswana', 'ts' => 'Tsonga', 'tk' => 'Turkmen', 'tr' => 'Turkish', 'tw' => 'Twi', 'ug' => 'Uighur; Uyghur', 'uk' => 'Ukrainian', 'ur' => 'Urdu', 'uz' => 'Uzbek', - 've' => 'Venda', 'vi' => 'Vietnamese', 'vo' => 'Volapük', 'cy' => 'Welsh','wa' => 'Walloon','wo' => 'Wolof', 'xh' => 'Xhosa', 'yi' => 'Yiddish', 'yo' => 'Yoruba', 'za' => 'Zhuang; Chuang', 'zu' => 'Zulu' ); - - /** - * Filter the language codes. - * - * @since MU - * - * @param array $lang_codes Key/value pair of language codes where key is the short version. - * @param string $code A two-letter designation of the language. - */ - $lang_codes = apply_filters( 'lang_codes', $lang_codes, $code ); - return strtr( $code, $lang_codes ); -} - -/** - * Synchronize category and post tag slugs when global terms are enabled. - * - * @since 3.0.0 - * - * @param object $term The term. - * @param string $taxonomy The taxonomy for $term. Should be 'category' or 'post_tag', as these are - * the only taxonomies which are processed by this function; anything else - * will be returned untouched. - * @return object|array Returns `$term`, after filtering the 'slug' field with {@see sanitize_title()} - * if $taxonomy is 'category' or 'post_tag'. - */ -function sync_category_tag_slugs( $term, $taxonomy ) { - if ( global_terms_enabled() && ( $taxonomy == 'category' || $taxonomy == 'post_tag' ) ) { - if ( is_object( $term ) ) { - $term->slug = sanitize_title( $term->name ); - } else { - $term['slug'] = sanitize_title( $term['name'] ); - } - } - return $term; -} - -/** - * Displays an access denied message when a user tries to view a site's dashboard they - * do not have access to. - * - * @since 3.2.0 - * @access private - */ -function _access_denied_splash() { - if ( ! is_user_logged_in() || is_network_admin() ) - return; - - $blogs = get_blogs_of_user( get_current_user_id() ); - - if ( wp_list_filter( $blogs, array( 'userblog_id' => get_current_blog_id() ) ) ) - return; - - $blog_name = get_bloginfo( 'name' ); - - if ( empty( $blogs ) ) - wp_die( sprintf( __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ), 403 ); - - $output = '

' . sprintf( __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ) . '

'; - $output .= '

' . __( 'If you reached this screen by accident and meant to visit one of your own sites, here are some shortcuts to help you find your way.' ) . '

'; - - $output .= '

' . __('Your Sites') . '

'; - $output .= ''; - - foreach ( $blogs as $blog ) { - $output .= ''; - $output .= ""; - $output .= ''; - $output .= ''; - } - - $output .= '
{$blog->blogname}' . __( 'Visit Dashboard' ) . ' | ' . - '' . __( 'View Site' ) . '
'; - - wp_die( $output, 403 ); -} - -/** - * Checks if the current user has permissions to import new users. - * - * @since 3.0.0 - * - * @param string $permission A permission to be checked. Currently not used. - * @return bool True if the user has proper permissions, false if they do not. - */ -function check_import_new_users( $permission ) { - if ( !is_super_admin() ) - return false; - return true; -} -// See "import_allow_fetch_attachments" and "import_attachment_size_limit" filters too. - -/** - * Generates and displays a drop-down of available languages. - * - * @since 3.0.0 - * - * @param array $lang_files Optional. An array of the language files. Default empty array. - * @param string $current Optional. The current language code. Default empty. - */ -function mu_dropdown_languages( $lang_files = array(), $current = '' ) { - $flag = false; - $output = array(); - - foreach ( (array) $lang_files as $val ) { - $code_lang = basename( $val, '.mo' ); - - if ( $code_lang == 'en_US' ) { // American English - $flag = true; - $ae = __( 'American English' ); - $output[$ae] = ''; - } elseif ( $code_lang == 'en_GB' ) { // British English - $flag = true; - $be = __( 'British English' ); - $output[$be] = ''; - } else { - $translated = format_code_lang( $code_lang ); - $output[$translated] = ''; - } - - } - - if ( $flag === false ) // WordPress english - $output[] = '"; - - // Order by name - uksort( $output, 'strnatcasecmp' ); - - /** - * Filter the languages available in the dropdown. - * - * @since MU - * - * @param array $output HTML output of the dropdown. - * @param array $lang_files Available language files. - * @param string $current The current language code. - */ - $output = apply_filters( 'mu_dropdown_languages', $output, $lang_files, $current ); - - echo implode( "\n\t", $output ); -} - -/** - * Displays an admin notice to upgrade all sites after a core upgrade. - * - * @since 3.0.0 - * - * @global int $wp_db_version The version number of the database. - * - * @return false False if the current user is not a super admin. - */ -function site_admin_notice() { - global $wp_db_version; - if ( !is_super_admin() ) - return false; - if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version ) - echo "
" . sprintf( __( 'Thank you for Updating! Please visit the Upgrade Network page to update all your sites.' ), esc_url( network_admin_url( 'upgrade.php' ) ) ) . "
"; -} - -/** - * Avoids a collision between a site slug and a permalink slug. - * - * In a subdirectory install this will make sure that a site and a post do not use the - * same subdirectory by checking for a site with the same name as a new post. - * - * @since 3.0.0 - * - * @param array $data An array of post data. - * @param array $postarr An array of posts. Not currently used. - * @return array The new array of post data after checking for collisions. - */ -function avoid_blog_page_permalink_collision( $data, $postarr ) { - if ( is_subdomain_install() ) - return $data; - if ( $data['post_type'] != 'page' ) - return $data; - if ( !isset( $data['post_name'] ) || $data['post_name'] == '' ) - return $data; - if ( !is_main_site() ) - return $data; - - $post_name = $data['post_name']; - $c = 0; - while( $c < 10 && get_id_from_blogname( $post_name ) ) { - $post_name .= mt_rand( 1, 10 ); - $c ++; - } - if ( $post_name != $data['post_name'] ) { - $data['post_name'] = $post_name; - } - return $data; -} - -/** - * Handles the display of choosing a user's primary site. - * - * This displays the user's primary site and allows the user to choose - * which site is primary. - * - * @since 3.0.0 - */ -function choose_primary_blog() { - ?> - - - - - - - - - - - -
- 1 ) { - $found = false; - ?> - - userblog_id ); - } - } elseif ( count( $all_blogs ) == 1 ) { - $blog = reset( $all_blogs ); - echo esc_url( get_home_url( $blog->userblog_id ) ); - if ( $primary_blog != $blog->userblog_id ) // Set the primary blog again if it's out of sync with blog list. - update_user_meta( get_current_user_id(), 'primary_blog', $blog->userblog_id ); - } else { - echo "N/A"; - } - ?> -
- - -
- user_login, $super_admins ) ) { - $super_admins[] = $user->user_login; - update_site_option( 'site_admins' , $super_admins ); - - /** - * Fires after the user is granted Super Admin privileges. - * - * @since 3.0.0 - * - * @param int $user_id ID of the user that was granted Super Admin privileges. - */ - do_action( 'granted_super_admin', $user_id ); - return true; - } - return false; -} - -/** - * Revokes Super Admin privileges. - * - * @since 3.0.0 - * - * @global array $super_admins - * - * @param int $user_id ID of the user Super Admin privileges to be revoked from. - * @return bool True on success, false on failure. This can fail when the user's email - * is the network admin email or when the `$super_admins` global is defined. - */ -function revoke_super_admin( $user_id ) { - // If global super_admins override is defined, there is nothing to do here. - if ( isset( $GLOBALS['super_admins'] ) ) { - return false; - } - - /** - * Fires before the user's Super Admin privileges are revoked. - * - * @since 3.0.0 - * - * @param int $user_id ID of the user Super Admin privileges are being revoked from. - */ - do_action( 'revoke_super_admin', $user_id ); - - // Directly fetch site_admins instead of using get_super_admins() - $super_admins = get_site_option( 'site_admins', array( 'admin' ) ); - - $user = get_userdata( $user_id ); - if ( $user && 0 !== strcasecmp( $user->user_email, get_site_option( 'admin_email' ) ) ) { - if ( false !== ( $key = array_search( $user->user_login, $super_admins ) ) ) { - unset( $super_admins[$key] ); - update_site_option( 'site_admins', $super_admins ); - - /** - * Fires after the user's Super Admin privileges are revoked. - * - * @since 3.0.0 - * - * @param int $user_id ID of the user Super Admin privileges were revoked from. - */ - do_action( 'revoked_super_admin', $user_id ); - return true; - } - } - return false; -} - -/** - * Whether or not we can edit this network from this page. - * - * By default editing of network is restricted to the Network Admin for that `$site_id` - * this allows for this to be overridden. - * - * @since 3.1.0 - * - * @global wpdb $wpdb - * - * @param int $site_id The network/site ID to check. - * @return bool True if network can be edited, otherwise false. - */ -function can_edit_network( $site_id ) { - global $wpdb; - - if ( $site_id == $wpdb->siteid ) - $result = true; - else - $result = false; - - /** - * Filter whether this network can be edited from this page. - * - * @since 3.1.0 - * - * @param bool $result Whether the network can be edited from this page. - * @param int $site_id The network/site ID to check. - */ - return apply_filters( 'can_edit_network', $result, $site_id ); -} - -/** - * Thickbox image paths for Network Admin. - * - * @since 3.1.0 - * - * @access private - */ -function _thickbox_path_admin_subfolder() { -?> - - $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth; - - ob_start(); - $item_id = esc_attr( $item->ID ); - $removed_args = array( - 'action', - 'customlink-tab', - 'edit-menu-item', - 'menu-item', - 'page-tab', - '_wpnonce', - ); - - $original_title = ''; - if ( 'taxonomy' == $item->type ) { - $original_title = get_term_field( 'name', $item->object_id, $item->object, 'raw' ); - if ( is_wp_error( $original_title ) ) - $original_title = false; - } elseif ( 'post_type' == $item->type ) { - $original_object = get_post( $item->object_id ); - $original_title = get_the_title( $original_object->ID ); - } - - $classes = array( - 'menu-item menu-item-depth-' . $depth, - 'menu-item-' . esc_attr( $item->object ), - 'menu-item-edit-' . ( ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? 'active' : 'inactive'), - ); - - $title = $item->title; - - if ( ! empty( $item->_invalid ) ) { - $classes[] = 'menu-item-invalid'; - /* translators: %s: title of menu item which is invalid */ - $title = sprintf( __( '%s (Invalid)' ), $item->title ); - } elseif ( isset( $item->post_status ) && 'draft' == $item->post_status ) { - $classes[] = 'pending'; - /* translators: %s: title of menu item in draft status */ - $title = sprintf( __('%s (Pending)'), $item->title ); - } - - $title = ( ! isset( $item->label ) || '' == $item->label ) ? $title : $item->label; - - $submenu_text = ''; - if ( 0 == $depth ) - $submenu_text = 'style="display: none;"'; - - ?> -
  • '; - $output .= ''; - - // Menu item hidden fields - $output .= ''; - $output .= ''; - $output .= ''; - $output .= ''; - $output .= ''; - $output .= ''; - $output .= ''; - $output .= ''; - $output .= ''; - $output .= ''; - } - -} // Walker_Nav_Menu_Checklist - -/** - * Prints the appropriate response to a menu quick search. - * - * @since 3.0.0 - * - * @param array $request The unsanitized request values. - */ -function _wp_ajax_menu_quick_search( $request = array() ) { - $args = array(); - $type = isset( $request['type'] ) ? $request['type'] : ''; - $object_type = isset( $request['object_type'] ) ? $request['object_type'] : ''; - $query = isset( $request['q'] ) ? $request['q'] : ''; - $response_format = isset( $request['response-format'] ) && in_array( $request['response-format'], array( 'json', 'markup' ) ) ? $request['response-format'] : 'json'; - - if ( 'markup' == $response_format ) { - $args['walker'] = new Walker_Nav_Menu_Checklist; - } - - if ( 'get-post-item' == $type ) { - if ( post_type_exists( $object_type ) ) { - if ( isset( $request['ID'] ) ) { - $object_id = (int) $request['ID']; - if ( 'markup' == $response_format ) { - echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( $object_id ) ) ), 0, (object) $args ); - } elseif ( 'json' == $response_format ) { - echo wp_json_encode( - array( - 'ID' => $object_id, - 'post_title' => get_the_title( $object_id ), - 'post_type' => get_post_type( $object_id ), - ) - ); - echo "\n"; - } - } - } elseif ( taxonomy_exists( $object_type ) ) { - if ( isset( $request['ID'] ) ) { - $object_id = (int) $request['ID']; - if ( 'markup' == $response_format ) { - echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_term( $object_id, $object_type ) ) ), 0, (object) $args ); - } elseif ( 'json' == $response_format ) { - $post_obj = get_term( $object_id, $object_type ); - echo wp_json_encode( - array( - 'ID' => $object_id, - 'post_title' => $post_obj->name, - 'post_type' => $object_type, - ) - ); - echo "\n"; - } - } - - } - - } elseif ( preg_match('/quick-search-(posttype|taxonomy)-([a-zA-Z_-]*\b)/', $type, $matches) ) { - if ( 'posttype' == $matches[1] && get_post_type_object( $matches[2] ) ) { - query_posts(array( - 'posts_per_page' => 10, - 'post_type' => $matches[2], - 's' => $query, - )); - if ( ! have_posts() ) - return; - while ( have_posts() ) { - the_post(); - if ( 'markup' == $response_format ) { - $var_by_ref = get_the_ID(); - echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( $var_by_ref ) ) ), 0, (object) $args ); - } elseif ( 'json' == $response_format ) { - echo wp_json_encode( - array( - 'ID' => get_the_ID(), - 'post_title' => get_the_title(), - 'post_type' => get_post_type(), - ) - ); - echo "\n"; - } - } - } elseif ( 'taxonomy' == $matches[1] ) { - $terms = get_terms( $matches[2], array( - 'name__like' => $query, - 'number' => 10, - )); - if ( empty( $terms ) || is_wp_error( $terms ) ) - return; - foreach( (array) $terms as $term ) { - if ( 'markup' == $response_format ) { - echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( $term ) ), 0, (object) $args ); - } elseif ( 'json' == $response_format ) { - echo wp_json_encode( - array( - 'ID' => $term->term_id, - 'post_title' => $term->name, - 'post_type' => $matches[2], - ) - ); - echo "\n"; - } - } - } - } -} - -/** - * Register nav menu metaboxes and advanced menu items - * - * @since 3.0.0 - **/ -function wp_nav_menu_setup() { - // Register meta boxes - wp_nav_menu_post_type_meta_boxes(); - add_meta_box( 'add-custom-links', __( 'Custom Links' ), 'wp_nav_menu_item_link_meta_box', 'nav-menus', 'side', 'default' ); - wp_nav_menu_taxonomy_meta_boxes(); - - // Register advanced menu items (columns) - add_filter( 'manage_nav-menus_columns', 'wp_nav_menu_manage_columns' ); - - // If first time editing, disable advanced items by default. - if ( false === get_user_option( 'managenav-menuscolumnshidden' ) ) { - $user = wp_get_current_user(); - update_user_option($user->ID, 'managenav-menuscolumnshidden', - array( 0 => 'link-target', 1 => 'css-classes', 2 => 'xfn', 3 => 'description', 4 => 'title-attribute', ), - true); - } -} - -/** - * Limit the amount of meta boxes to pages, posts, links, and categories for first time users. - * - * @since 3.0.0 - * - * @global array $wp_meta_boxes - **/ -function wp_initial_nav_menu_meta_boxes() { - global $wp_meta_boxes; - - if ( get_user_option( 'metaboxhidden_nav-menus' ) !== false || ! is_array($wp_meta_boxes) ) - return; - - $initial_meta_boxes = array( 'add-page', 'add-post', 'add-custom-links', 'add-category' ); - $hidden_meta_boxes = array(); - - foreach ( array_keys($wp_meta_boxes['nav-menus']) as $context ) { - foreach ( array_keys($wp_meta_boxes['nav-menus'][$context]) as $priority ) { - foreach ( $wp_meta_boxes['nav-menus'][$context][$priority] as $box ) { - if ( in_array( $box['id'], $initial_meta_boxes ) ) { - unset( $box['id'] ); - } else { - $hidden_meta_boxes[] = $box['id']; - } - } - } - } - - $user = wp_get_current_user(); - update_user_option( $user->ID, 'metaboxhidden_nav-menus', $hidden_meta_boxes, true ); -} - -/** - * Creates metaboxes for any post type menu item. - * - * @since 3.0.0 - */ -function wp_nav_menu_post_type_meta_boxes() { - $post_types = get_post_types( array( 'show_in_nav_menus' => true ), 'object' ); - - if ( ! $post_types ) - return; - - foreach ( $post_types as $post_type ) { - /** - * Filter whether a menu items meta box will be added for the current - * object type. - * - * If a falsey value is returned instead of an object, the menu items - * meta box for the current meta box object will not be added. - * - * @since 3.0.0 - * - * @param object $meta_box_object The current object to add a menu items - * meta box for. - */ - $post_type = apply_filters( 'nav_menu_meta_box_object', $post_type ); - if ( $post_type ) { - $id = $post_type->name; - // Give pages a higher priority. - $priority = ( 'page' == $post_type->name ? 'core' : 'default' ); - add_meta_box( "add-{$id}", $post_type->labels->name, 'wp_nav_menu_item_post_type_meta_box', 'nav-menus', 'side', $priority, $post_type ); - } - } -} - -/** - * Creates metaboxes for any taxonomy menu item. - * - * @since 3.0.0 - */ -function wp_nav_menu_taxonomy_meta_boxes() { - $taxonomies = get_taxonomies( array( 'show_in_nav_menus' => true ), 'object' ); - - if ( !$taxonomies ) - return; - - foreach ( $taxonomies as $tax ) { - /** This filter is documented in wp-admin/includes/nav-menu.php */ - $tax = apply_filters( 'nav_menu_meta_box_object', $tax ); - if ( $tax ) { - $id = $tax->name; - add_meta_box( "add-{$id}", $tax->labels->name, 'wp_nav_menu_item_taxonomy_meta_box', 'nav-menus', 'side', 'default', $tax ); - } - } -} - -/** - * Check whether to disable the Menu Locations meta box submit button - * - * @since 3.6.0 - * - * @global bool $one_theme_location_no_menus to determine if no menus exist - * - * @param int|string $nav_menu_selected_id (id, name or slug) of the currently-selected menu - * @return string Disabled attribute if at least one menu exists, false if not -*/ -function wp_nav_menu_disabled_check( $nav_menu_selected_id ) { - global $one_theme_location_no_menus; - - if ( $one_theme_location_no_menus ) - return false; - - return disabled( $nav_menu_selected_id, 0 ); -} - -/** - * Displays a metabox for the custom links menu item. - * - * @since 3.0.0 - * - * @global int $_nav_menu_placeholder - * @global int|string $nav_menu_selected_id - */ -function wp_nav_menu_item_link_meta_box() { - global $_nav_menu_placeholder, $nav_menu_selected_id; - - $_nav_menu_placeholder = 0 > $_nav_menu_placeholder ? $_nav_menu_placeholder - 1 : -1; - - ?> -
    - - - - - -

    - - class="button-secondary submit-add-to-menu right" value="" name="add-custom-menu-item" id="submit-customlinkdiv" /> - - -

    - -
    - name; - - // Paginate browsing for large numbers of post objects. - $per_page = 50; - $pagenum = isset( $_REQUEST[$post_type_name . '-tab'] ) && isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1; - $offset = 0 < $pagenum ? $per_page * ( $pagenum - 1 ) : 0; - - $args = array( - 'offset' => $offset, - 'order' => 'ASC', - 'orderby' => 'title', - 'posts_per_page' => $per_page, - 'post_type' => $post_type_name, - 'suppress_filters' => true, - 'update_post_term_cache' => false, - 'update_post_meta_cache' => false - ); - - if ( isset( $post_type['args']->_default_query ) ) - $args = array_merge($args, (array) $post_type['args']->_default_query ); - - // @todo transient caching of these results with proper invalidation on updating of a post of this type - $get_posts = new WP_Query; - $posts = $get_posts->query( $args ); - if ( ! $get_posts->post_count ) { - echo '

    ' . __( 'No items.' ) . '

    '; - return; - } - - $num_pages = $get_posts->max_num_pages; - - $page_links = paginate_links( array( - 'base' => add_query_arg( - array( - $post_type_name . '-tab' => 'all', - 'paged' => '%#%', - 'item-type' => 'post_type', - 'item-object' => $post_type_name, - ) - ), - 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), - 'total' => $num_pages, - 'current' => $pagenum - )); - - $db_fields = false; - if ( is_post_type_hierarchical( $post_type_name ) ) { - $db_fields = array( 'parent' => 'post_parent', 'id' => 'ID' ); - } - - $walker = new Walker_Nav_Menu_Checklist( $db_fields ); - - $current_tab = 'most-recent'; - if ( isset( $_REQUEST[$post_type_name . '-tab'] ) && in_array( $_REQUEST[$post_type_name . '-tab'], array('all', 'search') ) ) { - $current_tab = $_REQUEST[$post_type_name . '-tab']; - } - - if ( ! empty( $_REQUEST['quick-search-posttype-' . $post_type_name] ) ) { - $current_tab = 'search'; - } - - $removed_args = array( - 'action', - 'customlink-tab', - 'edit-menu-item', - 'menu-item', - 'page-tab', - '_wpnonce', - ); - - ?> -
    - - -
    -
      - 'post_date', 'order' => 'DESC', 'posts_per_page' => 15 ) ); - $most_recent = $get_posts->query( $recent_args ); - $args['walker'] = $walker; - - /** - * Filter the posts displayed in the 'Most Recent' tab of the current - * post type's menu items meta box. - * - * The dynamic portion of the hook name, `$post_type_name`, refers to the post type name. - * - * @since 4.3.0 - * - * @param array $most_recent An array of post objects being listed. - * @param array $args An array of WP_Query arguments. - * @param object $post_type The current post type object for this menu item meta box. - */ - $most_recent = apply_filters( "nav_menu_items_{$post_type_name}_recent", $most_recent, $args, $post_type ); - - echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $most_recent), 0, (object) $args ); - ?> -
    -
    - - - -
    - - - -
      - front_or_home = true; - array_unshift( $posts, $front_page_obj ); - } else { - $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1; - array_unshift( $posts, (object) array( - 'front_or_home' => true, - 'ID' => 0, - 'object_id' => $_nav_menu_placeholder, - 'post_content' => '', - 'post_excerpt' => '', - 'post_parent' => '', - 'post_title' => _x('Home', 'nav menu home label'), - 'post_type' => 'nav_menu_item', - 'type' => 'custom', - 'url' => home_url('/'), - ) ); - } - } - - /** - * Filter the posts displayed in the 'View All' tab of the current - * post type's menu items meta box. - * - * The dynamic portion of the hook name, `$post_type_name`, refers - * to the slug of the current post type. - * - * @since 3.2.0 - * - * @see WP_Query::query() - * - * @param array $posts The posts for the current post type. - * @param array $args An array of WP_Query arguments. - * @param object $post_type The current post type object for this menu item meta box. - */ - $posts = apply_filters( "nav_menu_items_{$post_type_name}", $posts, $args, $post_type ); - $checkbox_items = walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $posts), 0, (object) $args ); - - if ( 'all' == $current_tab && ! empty( $_REQUEST['selectall'] ) ) { - $checkbox_items = preg_replace('/(type=(.)checkbox(\2))/', '$1 checked=$2checked$2', $checkbox_items); - - } - - echo $checkbox_items; - ?> -
    - - - -
    - -

    - - - - - - class="button-secondary submit-add-to-menu right" value="" name="add-post-type-menu-item" id="" /> - - -

    - -
    - name; - - // Paginate browsing for large numbers of objects. - $per_page = 50; - $pagenum = isset( $_REQUEST[$taxonomy_name . '-tab'] ) && isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1; - $offset = 0 < $pagenum ? $per_page * ( $pagenum - 1 ) : 0; - - $args = array( - 'child_of' => 0, - 'exclude' => '', - 'hide_empty' => false, - 'hierarchical' => 1, - 'include' => '', - 'number' => $per_page, - 'offset' => $offset, - 'order' => 'ASC', - 'orderby' => 'name', - 'pad_counts' => false, - ); - - $terms = get_terms( $taxonomy_name, $args ); - - if ( ! $terms || is_wp_error($terms) ) { - echo '

    ' . __( 'No items.' ) . '

    '; - return; - } - - $num_pages = ceil( wp_count_terms( $taxonomy_name , array_merge( $args, array('number' => '', 'offset' => '') ) ) / $per_page ); - - $page_links = paginate_links( array( - 'base' => add_query_arg( - array( - $taxonomy_name . '-tab' => 'all', - 'paged' => '%#%', - 'item-type' => 'taxonomy', - 'item-object' => $taxonomy_name, - ) - ), - 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), - 'total' => $num_pages, - 'current' => $pagenum - )); - - $db_fields = false; - if ( is_taxonomy_hierarchical( $taxonomy_name ) ) { - $db_fields = array( 'parent' => 'parent', 'id' => 'term_id' ); - } - - $walker = new Walker_Nav_Menu_Checklist( $db_fields ); - - $current_tab = 'most-used'; - if ( isset( $_REQUEST[$taxonomy_name . '-tab'] ) && in_array( $_REQUEST[$taxonomy_name . '-tab'], array('all', 'most-used', 'search') ) ) { - $current_tab = $_REQUEST[$taxonomy_name . '-tab']; - } - - if ( ! empty( $_REQUEST['quick-search-taxonomy-' . $taxonomy_name] ) ) { - $current_tab = 'search'; - } - - $removed_args = array( - 'action', - 'customlink-tab', - 'edit-menu-item', - 'menu-item', - 'page-tab', - '_wpnonce', - ); - - ?> -
    - - -
    -
      - 'count', 'order' => 'DESC', 'number' => 10, 'hierarchical' => false ) ); - $args['walker'] = $walker; - echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $popular_terms), 0, (object) $args ); - ?> -
    -
    - -
    - - - -
      - -
    - - - -
    - -
    - $searched, 'fields' => 'all', 'orderby' => 'count', 'order' => 'DESC', 'hierarchical' => false ) ); - } else { - $searched = ''; - $search_results = array(); - } - ?> -

    - - - 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?> -

    - -
      - - - -
    • get_error_message(); ?>
    • - -
    • - -
    -
    - -

    - - - - - - class="button-secondary submit-add-to-menu right" value="" name="add-taxonomy-menu-item" id="" /> - - -

    - -
    - $_item_object_data ) { - if ( - // Checkbox is not checked. - empty( $_item_object_data['menu-item-object-id'] ) && - ( - // And item type either isn't set. - ! isset( $_item_object_data['menu-item-type'] ) || - // Or URL is the default. - in_array( $_item_object_data['menu-item-url'], array( 'http://', '' ) ) || - ! ( 'custom' == $_item_object_data['menu-item-type'] && ! isset( $_item_object_data['menu-item-db-id'] ) ) || // or it's not a custom menu item (but not the custom home page) - // Or it *is* a custom menu item that already exists. - ! empty( $_item_object_data['menu-item-db-id'] ) - ) - ) { - // Then this potential menu item is not getting added to this menu. - continue; - } - - // If this possible menu item doesn't actually have a menu database ID yet. - if ( - empty( $_item_object_data['menu-item-db-id'] ) || - ( 0 > $_possible_db_id ) || - $_possible_db_id != $_item_object_data['menu-item-db-id'] - ) { - $_actual_db_id = 0; - } else { - $_actual_db_id = (int) $_item_object_data['menu-item-db-id']; - } - - $args = array( - 'menu-item-db-id' => ( isset( $_item_object_data['menu-item-db-id'] ) ? $_item_object_data['menu-item-db-id'] : '' ), - 'menu-item-object-id' => ( isset( $_item_object_data['menu-item-object-id'] ) ? $_item_object_data['menu-item-object-id'] : '' ), - 'menu-item-object' => ( isset( $_item_object_data['menu-item-object'] ) ? $_item_object_data['menu-item-object'] : '' ), - 'menu-item-parent-id' => ( isset( $_item_object_data['menu-item-parent-id'] ) ? $_item_object_data['menu-item-parent-id'] : '' ), - 'menu-item-position' => ( isset( $_item_object_data['menu-item-position'] ) ? $_item_object_data['menu-item-position'] : '' ), - 'menu-item-type' => ( isset( $_item_object_data['menu-item-type'] ) ? $_item_object_data['menu-item-type'] : '' ), - 'menu-item-title' => ( isset( $_item_object_data['menu-item-title'] ) ? $_item_object_data['menu-item-title'] : '' ), - 'menu-item-url' => ( isset( $_item_object_data['menu-item-url'] ) ? $_item_object_data['menu-item-url'] : '' ), - 'menu-item-description' => ( isset( $_item_object_data['menu-item-description'] ) ? $_item_object_data['menu-item-description'] : '' ), - 'menu-item-attr-title' => ( isset( $_item_object_data['menu-item-attr-title'] ) ? $_item_object_data['menu-item-attr-title'] : '' ), - 'menu-item-target' => ( isset( $_item_object_data['menu-item-target'] ) ? $_item_object_data['menu-item-target'] : '' ), - 'menu-item-classes' => ( isset( $_item_object_data['menu-item-classes'] ) ? $_item_object_data['menu-item-classes'] : '' ), - 'menu-item-xfn' => ( isset( $_item_object_data['menu-item-xfn'] ) ? $_item_object_data['menu-item-xfn'] : '' ), - ); - - $items_saved[] = wp_update_nav_menu_item( $menu_id, $_actual_db_id, $args ); - - } - } - return $items_saved; -} - -/** - * Adds custom arguments to some of the meta box object types. - * - * @since 3.0.0 - * - * @access private - * - * @param object $object The post type or taxonomy meta-object. - * @return object The post type of taxonomy object. - */ -function _wp_nav_menu_meta_box_object( $object = null ) { - if ( isset( $object->name ) ) { - - if ( 'page' == $object->name ) { - $object->_default_query = array( - 'orderby' => 'menu_order title', - 'post_status' => 'publish', - ); - - // Posts should show only published items. - } elseif ( 'post' == $object->name ) { - $object->_default_query = array( - 'post_status' => 'publish', - ); - - // Categories should be in reverse chronological order. - } elseif ( 'category' == $object->name ) { - $object->_default_query = array( - 'orderby' => 'id', - 'order' => 'DESC', - ); - - // Custom post types should show only published items. - } else { - $object->_default_query = array( - 'post_status' => 'publish', - ); - } - } - - return $object; -} - -/** - * Returns the menu formatted to edit. - * - * @since 3.0.0 - * - * @param int $menu_id Optional. The ID of the menu to format. Default 0. - * @return string|WP_Error $output The menu formatted to edit or error object on failure. - */ -function wp_get_nav_menu_to_edit( $menu_id = 0 ) { - $menu = wp_get_nav_menu_object( $menu_id ); - - // If the menu exists, get its items. - if ( is_nav_menu( $menu ) ) { - $menu_items = wp_get_nav_menu_items( $menu->term_id, array('post_status' => 'any') ); - $result = '
    ' : '">'; - $result .= '

    ' . __( 'Add menu items from the column on the left.' ) . '

    '; - $result .= '
    '; - - if ( empty($menu_items) ) - return $result . ' '; - - /** - * Filter the Walker class used when adding nav menu items. - * - * @since 3.0.0 - * - * @param string $class The walker class to use. Default 'Walker_Nav_Menu_Edit'. - * @param int $menu_id ID of the menu being rendered. - */ - $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $menu_id ); - - if ( class_exists( $walker_class_name ) ) - $walker = new $walker_class_name; - else - return new WP_Error( 'menu_walker_not_exist', sprintf( __('The Walker class named %s does not exist.'), $walker_class_name ) ); - - $some_pending_menu_items = $some_invalid_menu_items = false; - foreach( (array) $menu_items as $menu_item ) { - if ( isset( $menu_item->post_status ) && 'draft' == $menu_item->post_status ) - $some_pending_menu_items = true; - if ( ! empty( $menu_item->_invalid ) ) - $some_invalid_menu_items = true; - } - - if ( $some_pending_menu_items ) - $result .= '

    ' . __('Click Save Menu to make pending menu items public.') . '

    '; - - if ( $some_invalid_menu_items ) - $result .= '

    ' . __('There are some invalid menu items. Please check or delete them.') . '

    '; - - $result .= ' '; - return $result; - } elseif ( is_wp_error( $menu ) ) { - return $menu; - } - -} - -/** - * Returns the columns for the nav menus page. - * - * @since 3.0.0 - * - * @return string|WP_Error $output The menu formatted to edit or error object on failure. - */ -function wp_nav_menu_manage_columns() { - return array( - '_title' => __('Show advanced menu properties'), - 'cb' => '', - 'title-attribute' => __('Title Attribute'), - 'link-target' => __('Link Target'), - 'css-classes' => __('CSS Classes'), - 'xfn' => __('Link Relationship (XFN)'), - 'description' => __('Description'), - ); -} - -/** - * Deletes orphaned draft menu items - * - * @access private - * @since 3.0.0 - * - * @global wpdb $wpdb - */ -function _wp_delete_orphaned_draft_menu_items() { - global $wpdb; - $delete_timestamp = time() - ( DAY_IN_SECONDS * EMPTY_TRASH_DAYS ); - - // Delete orphaned draft menu items. - $menu_items_to_delete = $wpdb->get_col($wpdb->prepare("SELECT ID FROM $wpdb->posts AS p LEFT JOIN $wpdb->postmeta AS m ON p.ID = m.post_id WHERE post_type = 'nav_menu_item' AND post_status = 'draft' AND meta_key = '_menu_item_orphaned' AND meta_value < '%d'", $delete_timestamp ) ); - - foreach( (array) $menu_items_to_delete as $menu_item_id ) - wp_delete_post( $menu_item_id, true ); -} - -/** - * Saves nav menu items - * - * @since 3.6.0 - * - * @param int|string $nav_menu_selected_id (id, slug, or name ) of the currently-selected menu - * @param string $nav_menu_selected_title Title of the currently-selected menu - * @return array $messages The menu updated message - */ -function wp_nav_menu_update_menu_items ( $nav_menu_selected_id, $nav_menu_selected_title ) { - $unsorted_menu_items = wp_get_nav_menu_items( $nav_menu_selected_id, array( 'orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID', 'post_status' => 'draft,publish' ) ); - $messages = array(); - $menu_items = array(); - // Index menu items by db ID - foreach ( $unsorted_menu_items as $_item ) - $menu_items[$_item->db_id] = $_item; - - $post_fields = array( - 'menu-item-db-id', 'menu-item-object-id', 'menu-item-object', - 'menu-item-parent-id', 'menu-item-position', 'menu-item-type', - 'menu-item-title', 'menu-item-url', 'menu-item-description', - 'menu-item-attr-title', 'menu-item-target', 'menu-item-classes', 'menu-item-xfn' - ); - - wp_defer_term_counting( true ); - // Loop through all the menu items' POST variables - if ( ! empty( $_POST['menu-item-db-id'] ) ) { - foreach( (array) $_POST['menu-item-db-id'] as $_key => $k ) { - - // Menu item title can't be blank - if ( ! isset( $_POST['menu-item-title'][ $_key ] ) || '' == $_POST['menu-item-title'][ $_key ] ) - continue; - - $args = array(); - foreach ( $post_fields as $field ) - $args[$field] = isset( $_POST[$field][$_key] ) ? $_POST[$field][$_key] : ''; - - $menu_item_db_id = wp_update_nav_menu_item( $nav_menu_selected_id, ( $_POST['menu-item-db-id'][$_key] != $_key ? 0 : $_key ), $args ); - - if ( is_wp_error( $menu_item_db_id ) ) { - $messages[] = '

    ' . $menu_item_db_id->get_error_message() . '

    '; - } else { - unset( $menu_items[ $menu_item_db_id ] ); - } - } - } - - // Remove menu items from the menu that weren't in $_POST - if ( ! empty( $menu_items ) ) { - foreach ( array_keys( $menu_items ) as $menu_item_id ) { - if ( is_nav_menu_item( $menu_item_id ) ) { - wp_delete_post( $menu_item_id ); - } - } - } - - // Store 'auto-add' pages. - $auto_add = ! empty( $_POST['auto-add-pages'] ); - $nav_menu_option = (array) get_option( 'nav_menu_options' ); - if ( ! isset( $nav_menu_option['auto_add'] ) ) - $nav_menu_option['auto_add'] = array(); - if ( $auto_add ) { - if ( ! in_array( $nav_menu_selected_id, $nav_menu_option['auto_add'] ) ) - $nav_menu_option['auto_add'][] = $nav_menu_selected_id; - } else { - if ( false !== ( $key = array_search( $nav_menu_selected_id, $nav_menu_option['auto_add'] ) ) ) - unset( $nav_menu_option['auto_add'][$key] ); - } - // Remove nonexistent/deleted menus - $nav_menu_option['auto_add'] = array_intersect( $nav_menu_option['auto_add'], wp_get_nav_menus( array( 'fields' => 'ids' ) ) ); - update_option( 'nav_menu_options', $nav_menu_option ); - - wp_defer_term_counting( false ); - - /** This action is documented in wp-includes/nav-menu.php */ - do_action( 'wp_update_nav_menu', $nav_menu_selected_id ); - - $messages[] = '

    ' . sprintf( __( '%1$s has been updated.' ), $nav_menu_selected_title ) . '

    '; - unset( $menu_items, $unsorted_menu_items ); - - return $messages; -} diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php deleted file mode 100644 index ab776e8dd2..0000000000 --- a/wp-admin/includes/plugin-install.php +++ /dev/null @@ -1,590 +0,0 @@ -per_page ) ) { - $args->per_page = 24; - } - - if ( ! isset( $args->locale ) ) { - $args->locale = get_locale(); - } - - /** - * Override the Plugin Install API arguments. - * - * Please ensure that an object is returned. - * - * @since 2.7.0 - * - * @param object $args Plugin API arguments. - * @param string $action The type of information being requested from the Plugin Install API. - */ - $args = apply_filters( 'plugins_api_args', $args, $action ); - - /** - * Allows a plugin to override the WordPress.org Plugin Install API entirely. - * - * Please ensure that an object is returned. - * - * @since 2.7.0 - * - * @param bool|object $result The result object. Default false. - * @param string $action The type of information being requested from the Plugin Install API. - * @param object $args Plugin API arguments. - */ - $res = apply_filters( 'plugins_api', false, $action, $args ); - - if ( false === $res ) { - $url = $http_url = 'http://api.wordpress.org/plugins/info/1.0/'; - if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) - $url = set_url_scheme( $url, 'https' ); - - $http_args = array( - 'timeout' => 15, - 'body' => array( - 'action' => $action, - 'request' => serialize( $args ) - ) - ); - $request = wp_remote_post( $url, $http_args ); - - if ( $ssl && is_wp_error( $request ) ) { - trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ), headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE ); - $request = wp_remote_post( $http_url, $http_args ); - } - - if ( is_wp_error($request) ) { - $res = new WP_Error('plugins_api_failed', __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ), $request->get_error_message() ); - } else { - $res = maybe_unserialize( wp_remote_retrieve_body( $request ) ); - if ( ! is_object( $res ) && ! is_array( $res ) ) - $res = new WP_Error('plugins_api_failed', __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ), wp_remote_retrieve_body( $request ) ); - } - } elseif ( !is_wp_error($res) ) { - $res->external = true; - } - - /** - * Filter the Plugin Install API response results. - * - * @since 2.7.0 - * - * @param object|WP_Error $res Response object or WP_Error. - * @param string $action The type of information being requested from the Plugin Install API. - * @param object $args Plugin API arguments. - */ - return apply_filters( 'plugins_api_result', $res, $action, $args ); -} - -/** - * Retrieve popular WordPress plugin tags. - * - * @since 2.7.0 - * - * @param array $args - * @return array - */ -function install_popular_tags( $args = array() ) { - $key = md5(serialize($args)); - if ( false !== ($tags = get_site_transient('poptags_' . $key) ) ) - return $tags; - - $tags = plugins_api('hot_tags', $args); - - if ( is_wp_error($tags) ) - return $tags; - - set_site_transient( 'poptags_' . $key, $tags, 3 * HOUR_IN_SECONDS ); - - return $tags; -} - -/** - * @since 2.7.0 - */ -function install_dashboard() { - ?> -

    WordPress Plugin Directory or upload a plugin in .zip format via this page.' ), 'https://wordpress.org/plugins/', self_admin_url( 'plugin-install.php?tab=upload' ) ); ?>

    - - - -

    -

    - '; - if ( is_wp_error($api_tags) ) { - echo $api_tags->get_error_message(); - } else { - //Set up the tags in a way which can be interpreted by wp_generate_tag_cloud() - $tags = array(); - foreach ( (array) $api_tags as $tag ) { - $url = self_admin_url( 'plugin-install.php?tab=search&type=tag&s=' . urlencode( $tag['name'] ) ); - $data = array( - 'link' => esc_url( $url ), - 'name' => $tag['name'], - 'slug' => $tag['slug'], - 'id' => sanitize_title_with_dashes( $tag['name'] ), - 'count' => $tag['count'] - ); - $tags[ $tag['name'] ] = (object) $data; - } - echo wp_generate_tag_cloud($tags, array( 'single_text' => __('%s plugin'), 'multiple_text' => __('%s plugins') ) ); - } - echo '


    '; -} - -/** - * Display search form for searching plugins. - * - * @since 2.7.0 - * - * @param bool $type_selector - */ -function install_search_form( $type_selector = true ) { - $type = isset($_REQUEST['type']) ? wp_unslash( $_REQUEST['type'] ) : 'term'; - $term = isset($_REQUEST['s']) ? wp_unslash( $_REQUEST['s'] ) : ''; - $input_attrs = ''; - $button_type = 'button screen-reader-text'; - - // assume no $type_selector means it's a simplified search form - if ( ! $type_selector ) { - $input_attrs = 'class="wp-filter-search" placeholder="' . esc_attr__( 'Search Plugins' ) . '" '; - } - - ?>
    - - - - - - 'search-submit' ) ); ?> -
    -
    -

    -
    - - - - -
    -
    - -

    -
    - -

    - - - -

    -
    - ' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '

    '; - break; - } - - ?> -
    - display(); ?> -
    - response ) ) { - foreach ( (array)$update_plugins->response as $file => $plugin ) { - if ( $plugin->slug === $api->slug ) { - $status = 'update_available'; - $update_file = $file; - $version = $plugin->new_version; - if ( current_user_can('update_plugins') ) - $url = wp_nonce_url(self_admin_url('update.php?action=upgrade-plugin&plugin=' . $update_file), 'upgrade-plugin_' . $update_file); - break; - } - } - } - - if ( 'install' == $status ) { - if ( is_dir( WP_PLUGIN_DIR . '/' . $api->slug ) ) { - $installed_plugin = get_plugins('/' . $api->slug); - if ( empty($installed_plugin) ) { - if ( current_user_can('install_plugins') ) - $url = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $api->slug), 'install-plugin_' . $api->slug); - } else { - $key = array_keys( $installed_plugin ); - $key = reset( $key ); //Use the first plugin regardless of the name, Could have issues for multiple-plugins in one directory if they share different version numbers - $update_file = $api->slug . '/' . $key; - if ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '=') ){ - $status = 'latest_installed'; - } elseif ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '<') ) { - $status = 'newer_installed'; - $version = $installed_plugin[ $key ]['Version']; - } else { - //If the above update check failed, Then that probably means that the update checker has out-of-date information, force a refresh - if ( ! $loop ) { - delete_site_transient('update_plugins'); - wp_update_plugins(); - return install_plugin_install_status($api, true); - } - } - } - } else { - // "install" & no directory with that slug - if ( current_user_can('install_plugins') ) - $url = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $api->slug), 'install-plugin_' . $api->slug); - } - } - if ( isset($_GET['from']) ) - $url .= '&from=' . urlencode( wp_unslash( $_GET['from'] ) ); - - $file = $update_file; - return compact( 'status', 'url', 'version', 'file' ); -} - -/** - * Display plugin information in dialog box form. - * - * @since 2.7.0 - * - * @global string $tab - * @global string $wp_version - */ -function install_plugin_information() { - global $tab; - - if ( empty( $_REQUEST['plugin'] ) ) { - return; - } - - $api = plugins_api( 'plugin_information', array( - 'slug' => wp_unslash( $_REQUEST['plugin'] ), - 'is_ssl' => is_ssl(), - 'fields' => array( - 'banners' => true, - 'reviews' => true, - 'downloaded' => false, - 'active_installs' => true - ) - ) ); - - if ( is_wp_error( $api ) ) { - wp_die( $api ); - } - - $plugins_allowedtags = array( - 'a' => array( 'href' => array(), 'title' => array(), 'target' => array() ), - 'abbr' => array( 'title' => array() ), 'acronym' => array( 'title' => array() ), - 'code' => array(), 'pre' => array(), 'em' => array(), 'strong' => array(), - 'div' => array( 'class' => array() ), 'span' => array( 'class' => array() ), - 'p' => array(), 'ul' => array(), 'ol' => array(), 'li' => array(), - 'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(), - 'img' => array( 'src' => array(), 'class' => array(), 'alt' => array() ) - ); - - $plugins_section_titles = array( - 'description' => _x( 'Description', 'Plugin installer section title' ), - 'installation' => _x( 'Installation', 'Plugin installer section title' ), - 'faq' => _x( 'FAQ', 'Plugin installer section title' ), - 'screenshots' => _x( 'Screenshots', 'Plugin installer section title' ), - 'changelog' => _x( 'Changelog', 'Plugin installer section title' ), - 'reviews' => _x( 'Reviews', 'Plugin installer section title' ), - 'other_notes' => _x( 'Other Notes', 'Plugin installer section title' ) - ); - - // Sanitize HTML - foreach ( (array) $api->sections as $section_name => $content ) { - $api->sections[$section_name] = wp_kses( $content, $plugins_allowedtags ); - } - - foreach ( array( 'version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug' ) as $key ) { - if ( isset( $api->$key ) ) { - $api->$key = wp_kses( $api->$key, $plugins_allowedtags ); - } - } - - $_tab = esc_attr( $tab ); - - $section = isset( $_REQUEST['section'] ) ? wp_unslash( $_REQUEST['section'] ) : 'description'; // Default to the Description tab, Do not translate, API returns English. - if ( empty( $section ) || ! isset( $api->sections[ $section ] ) ) { - $section_titles = array_keys( (array) $api->sections ); - $section = reset( $section_titles ); - } - - iframe_header( __( 'Plugin Install' ) ); - - $_with_banner = ''; - - if ( ! empty( $api->banners ) && ( ! empty( $api->banners['low'] ) || ! empty( $api->banners['high'] ) ) ) { - $_with_banner = 'with-banner'; - $low = empty( $api->banners['low'] ) ? $api->banners['high'] : $api->banners['low']; - $high = empty( $api->banners['high'] ) ? $api->banners['low'] : $api->banners['high']; - ?> - - '; - echo "

    {$api->name}

    "; - echo "
    \n"; - - foreach ( (array) $api->sections as $section_name => $content ) { - if ( 'reviews' === $section_name && ( empty( $api->ratings ) || 0 === array_sum( (array) $api->ratings ) ) ) { - continue; - } - - if ( isset( $plugins_section_titles[ $section_name ] ) ) { - $title = $plugins_section_titles[ $section_name ]; - } else { - $title = ucwords( str_replace( '_', ' ', $section_name ) ); - } - - $class = ( $section_name === $section ) ? ' class="current"' : ''; - $href = add_query_arg( array('tab' => $tab, 'section' => $section_name) ); - $href = esc_url( $href ); - $san_section = esc_attr( $section_name ); - echo "\t$title\n"; - } - - echo "
    \n"; - - $date_format = __( 'M j, Y @ H:i' ); - $last_updated_timestamp = strtotime( $api->last_updated ); - ?> -
    -
    -
      - version ) ) { ?> -
    • version; ?>
    • - author ) ) { ?> -
    • author, '_blank' ); ?>
    • - last_updated ) ) { ?> -
    • - -
    • - requires ) ) { ?> -
    • requires ); ?>
    • - tested ) ) { ?> -
    • tested; ?>
    • - active_installs ) ) { ?> -
    • active_installs >= 1000000 ) { - _ex( '1+ Million', 'Active plugin installs' ); - } else { - echo number_format_i18n( $api->active_installs ) . '+'; - } - ?>
    • - slug ) && empty( $api->external ) ) { ?> -
    • - homepage ) ) { ?> -
    • - donate_link ) && empty( $api->contributors ) ) { ?> -
    • - -
    - rating ) ) { ?> -

    - $api->rating, 'type' => 'percent', 'number' => $api->num_ratings ) ); ?> - num_ratings ), number_format_i18n( $api->num_ratings ) ); ?> - ratings ) && array_sum( (array) $api->ratings ) > 0 ) { - foreach( $api->ratings as $key => $ratecount ) { - // Avoid div-by-zero. - $_rating = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0; - ?> -
    - - - - - -
    - contributors ) ) { ?> -

    -
      - contributors as $contrib_username => $contrib_profile ) { - if ( empty( $contrib_username ) && empty( $contrib_profile ) ) { - continue; - } - if ( empty( $contrib_username ) ) { - $contrib_username = preg_replace( '/^.+\/(.+)\/?$/', '\1', $contrib_profile ); - } - $contrib_username = sanitize_user( $contrib_username ); - if ( empty( $contrib_profile ) ) { - echo "
    • {$contrib_username}
    • "; - } else { - echo "
    • {$contrib_username}
    • "; - } - } - ?> -
    - donate_link ) ) { ?> - - - -
    -
    - tested ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $api->tested ) ), $api->tested, '>' ) ) { - echo '

    ' . __('Warning: This plugin has not been tested with your current version of WordPress.') . '

    '; - } elseif ( ! empty( $api->requires ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $api->requires ) ), $api->requires, '<' ) ) { - echo '

    ' . __('Warning: This plugin has not been marked as compatible with your version of WordPress.') . '

    '; - } - - foreach ( (array) $api->sections as $section_name => $content ) { - $content = links_add_base_url( $content, 'https://wordpress.org/plugins/' . $api->slug . '/' ); - $content = links_add_target( $content, '_blank' ); - - $san_section = esc_attr( $section_name ); - - $display = ( $section_name === $section ) ? 'block' : 'none'; - - echo "\t
    \n"; - echo $content; - echo "\t
    \n"; - } - echo "
    \n"; - echo "
    \n"; - echo "\n"; // #plugin-information-scrollable - echo "\n"; - - iframe_footer(); - exit; -} diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php deleted file mode 100644 index 233d990818..0000000000 --- a/wp-admin/includes/plugin.php +++ /dev/null @@ -1,1950 +0,0 @@ - 'Plugin Name', - 'PluginURI' => 'Plugin URI', - 'Version' => 'Version', - 'Description' => 'Description', - 'Author' => 'Author', - 'AuthorURI' => 'Author URI', - 'TextDomain' => 'Text Domain', - 'DomainPath' => 'Domain Path', - 'Network' => 'Network', - // Site Wide Only is deprecated in favor of Network. - '_sitewide' => 'Site Wide Only', - ); - - $plugin_data = get_file_data( $plugin_file, $default_headers, 'plugin' ); - - // Site Wide Only is the old header for Network - if ( ! $plugin_data['Network'] && $plugin_data['_sitewide'] ) { - _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The %1$s plugin header is deprecated. Use %2$s instead.' ), 'Site Wide Only: true', 'Network: true' ) ); - $plugin_data['Network'] = $plugin_data['_sitewide']; - } - $plugin_data['Network'] = ( 'true' == strtolower( $plugin_data['Network'] ) ); - unset( $plugin_data['_sitewide'] ); - - if ( $markup || $translate ) { - $plugin_data = _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup, $translate ); - } else { - $plugin_data['Title'] = $plugin_data['Name']; - $plugin_data['AuthorName'] = $plugin_data['Author']; - } - - return $plugin_data; -} - -/** - * Sanitizes plugin data, optionally adds markup, optionally translates. - * - * @since 2.7.0 - * @access private - * @see get_plugin_data() - */ -function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup = true, $translate = true ) { - - // Sanitize the plugin filename to a WP_PLUGIN_DIR relative path - $plugin_file = plugin_basename( $plugin_file ); - - // Translate fields - if ( $translate ) { - if ( $textdomain = $plugin_data['TextDomain'] ) { - if ( $plugin_data['DomainPath'] ) - load_plugin_textdomain( $textdomain, false, dirname( $plugin_file ) . $plugin_data['DomainPath'] ); - else - load_plugin_textdomain( $textdomain, false, dirname( $plugin_file ) ); - } elseif ( in_array( basename( $plugin_file ), array( 'hello.php', 'akismet.php' ) ) ) { - $textdomain = 'default'; - } - if ( $textdomain ) { - foreach ( array( 'Name', 'PluginURI', 'Description', 'Author', 'AuthorURI', 'Version' ) as $field ) - $plugin_data[ $field ] = translate( $plugin_data[ $field ], $textdomain ); - } - } - - // Sanitize fields - $allowed_tags = $allowed_tags_in_links = array( - 'abbr' => array( 'title' => true ), - 'acronym' => array( 'title' => true ), - 'code' => true, - 'em' => true, - 'strong' => true, - ); - $allowed_tags['a'] = array( 'href' => true, 'title' => true ); - - // Name is marked up inside tags. Don't allow these. - // Author is too, but some plugins have used here (omitting Author URI). - $plugin_data['Name'] = wp_kses( $plugin_data['Name'], $allowed_tags_in_links ); - $plugin_data['Author'] = wp_kses( $plugin_data['Author'], $allowed_tags ); - - $plugin_data['Description'] = wp_kses( $plugin_data['Description'], $allowed_tags ); - $plugin_data['Version'] = wp_kses( $plugin_data['Version'], $allowed_tags ); - - $plugin_data['PluginURI'] = esc_url( $plugin_data['PluginURI'] ); - $plugin_data['AuthorURI'] = esc_url( $plugin_data['AuthorURI'] ); - - $plugin_data['Title'] = $plugin_data['Name']; - $plugin_data['AuthorName'] = $plugin_data['Author']; - - // Apply markup - if ( $markup ) { - if ( $plugin_data['PluginURI'] && $plugin_data['Name'] ) - $plugin_data['Title'] = '' . $plugin_data['Name'] . ''; - - if ( $plugin_data['AuthorURI'] && $plugin_data['Author'] ) - $plugin_data['Author'] = '' . $plugin_data['Author'] . ''; - - $plugin_data['Description'] = wptexturize( $plugin_data['Description'] ); - - if ( $plugin_data['Author'] ) - $plugin_data['Description'] .= ' ' . sprintf( __('By %s.'), $plugin_data['Author'] ) . ''; - } - - return $plugin_data; -} - -/** - * Get a list of a plugin's files. - * - * @since 2.8.0 - * - * @param string $plugin Plugin ID - * @return array List of files relative to the plugin root. - */ -function get_plugin_files($plugin) { - $plugin_file = WP_PLUGIN_DIR . '/' . $plugin; - $dir = dirname($plugin_file); - $plugin_files = array($plugin); - if ( is_dir($dir) && $dir != WP_PLUGIN_DIR ) { - $plugins_dir = @ opendir( $dir ); - if ( $plugins_dir ) { - while (($file = readdir( $plugins_dir ) ) !== false ) { - if ( substr($file, 0, 1) == '.' ) - continue; - if ( is_dir( $dir . '/' . $file ) ) { - $plugins_subdir = @ opendir( $dir . '/' . $file ); - if ( $plugins_subdir ) { - while (($subfile = readdir( $plugins_subdir ) ) !== false ) { - if ( substr($subfile, 0, 1) == '.' ) - continue; - $plugin_files[] = plugin_basename("$dir/$file/$subfile"); - } - @closedir( $plugins_subdir ); - } - } else { - if ( plugin_basename("$dir/$file") != $plugin ) - $plugin_files[] = plugin_basename("$dir/$file"); - } - } - @closedir( $plugins_dir ); - } - } - - return $plugin_files; -} - -/** - * Check the plugins directory and retrieve all plugin files with plugin data. - * - * WordPress only supports plugin files in the base plugins directory - * (wp-content/plugins) and in one directory above the plugins directory - * (wp-content/plugins/my-plugin). The file it looks for has the plugin data - * and must be found in those two locations. It is recommended to keep your - * plugin files in their own directories. - * - * The file with the plugin data is the file that will be included and therefore - * needs to have the main execution for the plugin. This does not mean - * everything must be contained in the file and it is recommended that the file - * be split for maintainability. Keep everything in one file for extreme - * optimization purposes. - * - * @since 1.5.0 - * - * @param string $plugin_folder Optional. Relative path to single plugin folder. - * @return array Key is the plugin file path and the value is an array of the plugin data. - */ -function get_plugins($plugin_folder = '') { - - if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') ) - $cache_plugins = array(); - - if ( isset($cache_plugins[ $plugin_folder ]) ) - return $cache_plugins[ $plugin_folder ]; - - $wp_plugins = array (); - $plugin_root = WP_PLUGIN_DIR; - if ( !empty($plugin_folder) ) - $plugin_root .= $plugin_folder; - - // Files in wp-content/plugins directory - $plugins_dir = @ opendir( $plugin_root); - $plugin_files = array(); - if ( $plugins_dir ) { - while (($file = readdir( $plugins_dir ) ) !== false ) { - if ( substr($file, 0, 1) == '.' ) - continue; - if ( is_dir( $plugin_root.'/'.$file ) ) { - $plugins_subdir = @ opendir( $plugin_root.'/'.$file ); - if ( $plugins_subdir ) { - while (($subfile = readdir( $plugins_subdir ) ) !== false ) { - if ( substr($subfile, 0, 1) == '.' ) - continue; - if ( substr($subfile, -4) == '.php' ) - $plugin_files[] = "$file/$subfile"; - } - closedir( $plugins_subdir ); - } - } else { - if ( substr($file, -4) == '.php' ) - $plugin_files[] = $file; - } - } - closedir( $plugins_dir ); - } - - if ( empty($plugin_files) ) - return $wp_plugins; - - foreach ( $plugin_files as $plugin_file ) { - if ( !is_readable( "$plugin_root/$plugin_file" ) ) - continue; - - $plugin_data = get_plugin_data( "$plugin_root/$plugin_file", false, false ); //Do not apply markup/translate as it'll be cached. - - if ( empty ( $plugin_data['Name'] ) ) - continue; - - $wp_plugins[plugin_basename( $plugin_file )] = $plugin_data; - } - - uasort( $wp_plugins, '_sort_uname_callback' ); - - $cache_plugins[ $plugin_folder ] = $wp_plugins; - wp_cache_set('plugins', $cache_plugins, 'plugins'); - - return $wp_plugins; -} - -/** - * Check the mu-plugins directory and retrieve all mu-plugin files with any plugin data. - * - * WordPress only includes mu-plugin files in the base mu-plugins directory (wp-content/mu-plugins). - * - * @since 3.0.0 - * @return array Key is the mu-plugin file path and the value is an array of the mu-plugin data. - */ -function get_mu_plugins() { - $wp_plugins = array(); - // Files in wp-content/mu-plugins directory - $plugin_files = array(); - - if ( ! is_dir( WPMU_PLUGIN_DIR ) ) - return $wp_plugins; - if ( $plugins_dir = @ opendir( WPMU_PLUGIN_DIR ) ) { - while ( ( $file = readdir( $plugins_dir ) ) !== false ) { - if ( substr( $file, -4 ) == '.php' ) - $plugin_files[] = $file; - } - } else { - return $wp_plugins; - } - - @closedir( $plugins_dir ); - - if ( empty($plugin_files) ) - return $wp_plugins; - - foreach ( $plugin_files as $plugin_file ) { - if ( !is_readable( WPMU_PLUGIN_DIR . "/$plugin_file" ) ) - continue; - - $plugin_data = get_plugin_data( WPMU_PLUGIN_DIR . "/$plugin_file", false, false ); //Do not apply markup/translate as it'll be cached. - - if ( empty ( $plugin_data['Name'] ) ) - $plugin_data['Name'] = $plugin_file; - - $wp_plugins[ $plugin_file ] = $plugin_data; - } - - if ( isset( $wp_plugins['index.php'] ) && filesize( WPMU_PLUGIN_DIR . '/index.php') <= 30 ) // silence is golden - unset( $wp_plugins['index.php'] ); - - uasort( $wp_plugins, '_sort_uname_callback' ); - - return $wp_plugins; -} - -/** - * Callback to sort array by a 'Name' key. - * - * @since 3.1.0 - * @access private - */ -function _sort_uname_callback( $a, $b ) { - return strnatcasecmp( $a['Name'], $b['Name'] ); -} - -/** - * Check the wp-content directory and retrieve all drop-ins with any plugin data. - * - * @since 3.0.0 - * @return array Key is the file path and the value is an array of the plugin data. - */ -function get_dropins() { - $dropins = array(); - $plugin_files = array(); - - $_dropins = _get_dropins(); - - // These exist in the wp-content directory - if ( $plugins_dir = @ opendir( WP_CONTENT_DIR ) ) { - while ( ( $file = readdir( $plugins_dir ) ) !== false ) { - if ( isset( $_dropins[ $file ] ) ) - $plugin_files[] = $file; - } - } else { - return $dropins; - } - - @closedir( $plugins_dir ); - - if ( empty($plugin_files) ) - return $dropins; - - foreach ( $plugin_files as $plugin_file ) { - if ( !is_readable( WP_CONTENT_DIR . "/$plugin_file" ) ) - continue; - $plugin_data = get_plugin_data( WP_CONTENT_DIR . "/$plugin_file", false, false ); //Do not apply markup/translate as it'll be cached. - if ( empty( $plugin_data['Name'] ) ) - $plugin_data['Name'] = $plugin_file; - $dropins[ $plugin_file ] = $plugin_data; - } - - uksort( $dropins, 'strnatcasecmp' ); - - return $dropins; -} - -/** - * Returns drop-ins that WordPress uses. - * - * Includes Multisite drop-ins only when is_multisite() - * - * @since 3.0.0 - * @return array Key is file name. The value is an array, with the first value the - * purpose of the drop-in and the second value the name of the constant that must be - * true for the drop-in to be used, or true if no constant is required. - */ -function _get_dropins() { - $dropins = array( - 'advanced-cache.php' => array( __( 'Advanced caching plugin.' ), 'WP_CACHE' ), // WP_CACHE - 'db.php' => array( __( 'Custom database class.' ), true ), // auto on load - 'db-error.php' => array( __( 'Custom database error message.' ), true ), // auto on error - 'install.php' => array( __( 'Custom install script.' ), true ), // auto on install - 'maintenance.php' => array( __( 'Custom maintenance message.' ), true ), // auto on maintenance - 'object-cache.php' => array( __( 'External object cache.' ), true ), // auto on load - ); - - if ( is_multisite() ) { - $dropins['sunrise.php' ] = array( __( 'Executed before Multisite is loaded.' ), 'SUNRISE' ); // SUNRISE - $dropins['blog-deleted.php' ] = array( __( 'Custom site deleted message.' ), true ); // auto on deleted blog - $dropins['blog-inactive.php' ] = array( __( 'Custom site inactive message.' ), true ); // auto on inactive blog - $dropins['blog-suspended.php'] = array( __( 'Custom site suspended message.' ), true ); // auto on archived or spammed blog - } - - return $dropins; -} - -/** - * Check whether the plugin is active by checking the active_plugins list. - * - * @since 2.5.0 - * - * @param string $plugin Base plugin path from plugins directory. - * @return bool True, if in the active plugins list. False, not in the list. - */ -function is_plugin_active( $plugin ) { - return in_array( $plugin, (array) get_option( 'active_plugins', array() ) ) || is_plugin_active_for_network( $plugin ); -} - -/** - * Check whether the plugin is inactive. - * - * Reverse of is_plugin_active(). Used as a callback. - * - * @since 3.1.0 - * @see is_plugin_active() - * - * @param string $plugin Base plugin path from plugins directory. - * @return bool True if inactive. False if active. - */ -function is_plugin_inactive( $plugin ) { - return ! is_plugin_active( $plugin ); -} - -/** - * Check whether the plugin is active for the entire network. - * - * @since 3.0.0 - * - * @param string $plugin Base plugin path from plugins directory. - * @return bool True, if active for the network, otherwise false. - */ -function is_plugin_active_for_network( $plugin ) { - if ( !is_multisite() ) - return false; - - $plugins = get_site_option( 'active_sitewide_plugins'); - if ( isset($plugins[$plugin]) ) - return true; - - return false; -} - -/** - * Checks for "Network: true" in the plugin header to see if this should - * be activated only as a network wide plugin. The plugin would also work - * when Multisite is not enabled. - * - * Checks for "Site Wide Only: true" for backwards compatibility. - * - * @since 3.0.0 - * - * @param string $plugin Plugin to check - * @return bool True if plugin is network only, false otherwise. - */ -function is_network_only_plugin( $plugin ) { - $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ); - if ( $plugin_data ) - return $plugin_data['Network']; - return false; -} - -/** - * Attempts activation of plugin in a "sandbox" and redirects on success. - * - * A plugin that is already activated will not attempt to be activated again. - * - * The way it works is by setting the redirection to the error before trying to - * include the plugin file. If the plugin fails, then the redirection will not - * be overwritten with the success message. Also, the options will not be - * updated and the activation hook will not be called on plugin error. - * - * It should be noted that in no way the below code will actually prevent errors - * within the file. The code should not be used elsewhere to replicate the - * "sandbox", which uses redirection to work. - * {@source 13 1} - * - * If any errors are found or text is outputted, then it will be captured to - * ensure that the success redirection will update the error redirection. - * - * @since 2.5.0 - * - * @param string $plugin Plugin path to main plugin file with plugin data. - * @param string $redirect Optional. URL to redirect to. - * @param bool $network_wide Whether to enable the plugin for all sites in the - * network or just the current site. Multisite only. Default is false. - * @param bool $silent Prevent calling activation hooks. Optional, default is false. - * @return WP_Error|null WP_Error on invalid file or null on success. - */ -function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silent = false ) { - $plugin = plugin_basename( trim( $plugin ) ); - - if ( is_multisite() && ( $network_wide || is_network_only_plugin($plugin) ) ) { - $network_wide = true; - $current = get_site_option( 'active_sitewide_plugins', array() ); - $_GET['networkwide'] = 1; // Back compat for plugins looking for this value. - } else { - $current = get_option( 'active_plugins', array() ); - } - - $valid = validate_plugin($plugin); - if ( is_wp_error($valid) ) - return $valid; - - if ( ( $network_wide && ! isset( $current[ $plugin ] ) ) || ( ! $network_wide && ! in_array( $plugin, $current ) ) ) { - if ( !empty($redirect) ) - wp_redirect(add_query_arg('_error_nonce', wp_create_nonce('plugin-activation-error_' . $plugin), $redirect)); // we'll override this later if the plugin can be included without fatal error - ob_start(); - wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); - $_wp_plugin_file = $plugin; - include_once( WP_PLUGIN_DIR . '/' . $plugin ); - $plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin. - - if ( ! $silent ) { - /** - * Fires before a plugin is activated. - * - * If a plugin is silently activated (such as during an update), - * this hook does not fire. - * - * @since 2.9.0 - * - * @param string $plugin Plugin path to main plugin file with plugin data. - * @param bool $network_wide Whether to enable the plugin for all sites in the network - * or just the current site. Multisite only. Default is false. - */ - do_action( 'activate_plugin', $plugin, $network_wide ); - - /** - * Fires as a specific plugin is being activated. - * - * This hook is the "activation" hook used internally by - * {@see register_activation_hook()}. The dynamic portion of the - * hook name, `$plugin`, refers to the plugin basename. - * - * If a plugin is silently activated (such as during an update), - * this hook does not fire. - * - * @since 2.0.0 - * - * @param bool $network_wide Whether to enable the plugin for all sites in the network - * or just the current site. Multisite only. Default is false. - */ - do_action( 'activate_' . $plugin, $network_wide ); - } - - if ( $network_wide ) { - $current = get_site_option( 'active_sitewide_plugins', array() ); - $current[$plugin] = time(); - update_site_option( 'active_sitewide_plugins', $current ); - } else { - $current = get_option( 'active_plugins', array() ); - $current[] = $plugin; - sort($current); - update_option('active_plugins', $current); - } - - if ( ! $silent ) { - /** - * Fires after a plugin has been activated. - * - * If a plugin is silently activated (such as during an update), - * this hook does not fire. - * - * @since 2.9.0 - * - * @param string $plugin Plugin path to main plugin file with plugin data. - * @param bool $network_wide Whether to enable the plugin for all sites in the network - * or just the current site. Multisite only. Default is false. - */ - do_action( 'activated_plugin', $plugin, $network_wide ); - } - - if ( ob_get_length() > 0 ) { - $output = ob_get_clean(); - return new WP_Error('unexpected_output', __('The plugin generated unexpected output.'), $output); - } - ob_end_clean(); - } - - return null; -} - -/** - * Deactivate a single plugin or multiple plugins. - * - * The deactivation hook is disabled by the plugin upgrader by using the $silent - * parameter. - * - * @since 2.5.0 - * - * @param string|array $plugins Single plugin or list of plugins to deactivate. - * @param bool $silent Prevent calling deactivation hooks. Default is false. - * @param mixed $network_wide Whether to deactivate the plugin for all sites in the network. - * A value of null (the default) will deactivate plugins for both the site and the network. - */ -function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) { - if ( is_multisite() ) - $network_current = get_site_option( 'active_sitewide_plugins', array() ); - $current = get_option( 'active_plugins', array() ); - $do_blog = $do_network = false; - - foreach ( (array) $plugins as $plugin ) { - $plugin = plugin_basename( trim( $plugin ) ); - if ( ! is_plugin_active($plugin) ) - continue; - - $network_deactivating = false !== $network_wide && is_plugin_active_for_network( $plugin ); - - if ( ! $silent ) { - /** - * Fires before a plugin is deactivated. - * - * If a plugin is silently deactivated (such as during an update), - * this hook does not fire. - * - * @since 2.9.0 - * - * @param string $plugin Plugin path to main plugin file with plugin data. - * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network - * or just the current site. Multisite only. Default is false. - */ - do_action( 'deactivate_plugin', $plugin, $network_deactivating ); - } - - if ( false !== $network_wide ) { - if ( is_plugin_active_for_network( $plugin ) ) { - $do_network = true; - unset( $network_current[ $plugin ] ); - } elseif ( $network_wide ) { - continue; - } - } - - if ( true !== $network_wide ) { - $key = array_search( $plugin, $current ); - if ( false !== $key ) { - $do_blog = true; - unset( $current[ $key ] ); - } - } - - if ( ! $silent ) { - /** - * Fires as a specific plugin is being deactivated. - * - * This hook is the "deactivation" hook used internally by - * {@see register_deactivation_hook()}. The dynamic portion of the - * hook name, `$plugin`, refers to the plugin basename. - * - * If a plugin is silently deactivated (such as during an update), - * this hook does not fire. - * - * @since 2.0.0 - * - * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network - * or just the current site. Multisite only. Default is false. - */ - do_action( 'deactivate_' . $plugin, $network_deactivating ); - - /** - * Fires after a plugin is deactivated. - * - * If a plugin is silently deactivated (such as during an update), - * this hook does not fire. - * - * @since 2.9.0 - * - * @param string $plugin Plugin basename. - * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network - * or just the current site. Multisite only. Default false. - */ - do_action( 'deactivated_plugin', $plugin, $network_deactivating ); - } - } - - if ( $do_blog ) - update_option('active_plugins', $current); - if ( $do_network ) - update_site_option( 'active_sitewide_plugins', $network_current ); -} - -/** - * Activate multiple plugins. - * - * When WP_Error is returned, it does not mean that one of the plugins had - * errors. It means that one or more of the plugins file path was invalid. - * - * The execution will be halted as soon as one of the plugins has an error. - * - * @since 2.6.0 - * - * @param string|array $plugins Single plugin or list of plugins to activate. - * @param string $redirect Redirect to page after successful activation. - * @param bool $network_wide Whether to enable the plugin for all sites in the network. - * @param bool $silent Prevent calling activation hooks. Default is false. - * @return bool|WP_Error True when finished or WP_Error if there were errors during a plugin activation. - */ -function activate_plugins( $plugins, $redirect = '', $network_wide = false, $silent = false ) { - if ( !is_array($plugins) ) - $plugins = array($plugins); - - $errors = array(); - foreach ( $plugins as $plugin ) { - if ( !empty($redirect) ) - $redirect = add_query_arg('plugin', $plugin, $redirect); - $result = activate_plugin($plugin, $redirect, $network_wide, $silent); - if ( is_wp_error($result) ) - $errors[$plugin] = $result; - } - - if ( !empty($errors) ) - return new WP_Error('plugins_invalid', __('One of the plugins is invalid.'), $errors); - - return true; -} - -/** - * Remove directory and files of a plugin for a list of plugins. - * - * @since 2.6.0 - * - * @global WP_Filesystem_Base $wp_filesystem - * - * @param array $plugins List of plugins to delete. - * @param string $deprecated Deprecated. - * @return bool|null|WP_Error True on success, false is $plugins is empty, WP_Error on failure. - * Null if filesystem credentials are required to proceed. - */ -function delete_plugins( $plugins, $deprecated = '' ) { - global $wp_filesystem; - - if ( empty($plugins) ) - return false; - - $checked = array(); - foreach( $plugins as $plugin ) - $checked[] = 'checked[]=' . $plugin; - - ob_start(); - $url = wp_nonce_url('plugins.php?action=delete-selected&verify-delete=1&' . implode('&', $checked), 'bulk-plugins'); - if ( false === ($credentials = request_filesystem_credentials($url)) ) { - $data = ob_get_clean(); - - if ( ! empty($data) ){ - include_once( ABSPATH . 'wp-admin/admin-header.php'); - echo $data; - include( ABSPATH . 'wp-admin/admin-footer.php'); - exit; - } - return; - } - - if ( ! WP_Filesystem($credentials) ) { - request_filesystem_credentials($url, '', true); //Failed to connect, Error and request again - $data = ob_get_clean(); - - if ( ! empty($data) ){ - include_once( ABSPATH . 'wp-admin/admin-header.php'); - echo $data; - include( ABSPATH . 'wp-admin/admin-footer.php'); - exit; - } - return; - } - - if ( ! is_object($wp_filesystem) ) - return new WP_Error('fs_unavailable', __('Could not access filesystem.')); - - if ( is_wp_error($wp_filesystem->errors) && $wp_filesystem->errors->get_error_code() ) - return new WP_Error('fs_error', __('Filesystem error.'), $wp_filesystem->errors); - - // Get the base plugin folder. - $plugins_dir = $wp_filesystem->wp_plugins_dir(); - if ( empty( $plugins_dir ) ) { - return new WP_Error( 'fs_no_plugins_dir', __( 'Unable to locate WordPress Plugin directory.' ) ); - } - - $plugins_dir = trailingslashit( $plugins_dir ); - - $plugin_translations = wp_get_installed_translations( 'plugins' ); - - $errors = array(); - - foreach( $plugins as $plugin_file ) { - // Run Uninstall hook. - if ( is_uninstallable_plugin( $plugin_file ) ) { - uninstall_plugin($plugin_file); - } - - $this_plugin_dir = trailingslashit( dirname( $plugins_dir . $plugin_file ) ); - // If plugin is in its own directory, recursively delete the directory. - if ( strpos( $plugin_file, '/' ) && $this_plugin_dir != $plugins_dir ) { //base check on if plugin includes directory separator AND that it's not the root plugin folder - $deleted = $wp_filesystem->delete( $this_plugin_dir, true ); - } else { - $deleted = $wp_filesystem->delete( $plugins_dir . $plugin_file ); - } - - if ( ! $deleted ) { - $errors[] = $plugin_file; - continue; - } - - // Remove language files, silently. - $plugin_slug = dirname( $plugin_file ); - if ( '.' !== $plugin_slug && ! empty( $plugin_translations[ $plugin_slug ] ) ) { - $translations = $plugin_translations[ $plugin_slug ]; - - foreach ( $translations as $translation => $data ) { - $wp_filesystem->delete( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '.po' ); - $wp_filesystem->delete( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '.mo' ); - } - } - } - - // Remove deleted plugins from the plugin updates list. - if ( $current = get_site_transient('update_plugins') ) { - // Don't remove the plugins that weren't deleted. - $deleted = array_diff( $plugins, $errors ); - - foreach ( $deleted as $plugin_file ) { - unset( $current->response[ $plugin_file ] ); - } - - set_site_transient( 'update_plugins', $current ); - } - - if ( ! empty($errors) ) - return new WP_Error('could_not_remove_plugin', sprintf(__('Could not fully remove the plugin(s) %s.'), implode(', ', $errors)) ); - - return true; -} - -/** - * Validate active plugins - * - * Validate all active plugins, deactivates invalid and - * returns an array of deactivated ones. - * - * @since 2.5.0 - * @return array invalid plugins, plugin as key, error as value - */ -function validate_active_plugins() { - $plugins = get_option( 'active_plugins', array() ); - // Validate vartype: array. - if ( ! is_array( $plugins ) ) { - update_option( 'active_plugins', array() ); - $plugins = array(); - } - - if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) { - $network_plugins = (array) get_site_option( 'active_sitewide_plugins', array() ); - $plugins = array_merge( $plugins, array_keys( $network_plugins ) ); - } - - if ( empty( $plugins ) ) - return array(); - - $invalid = array(); - - // Invalid plugins get deactivated. - foreach ( $plugins as $plugin ) { - $result = validate_plugin( $plugin ); - if ( is_wp_error( $result ) ) { - $invalid[$plugin] = $result; - deactivate_plugins( $plugin, true ); - } - } - return $invalid; -} - -/** - * Validate the plugin path. - * - * Checks that the file exists and {@link validate_file() is valid file}. - * - * @since 2.5.0 - * - * @param string $plugin Plugin Path - * @return WP_Error|int 0 on success, WP_Error on failure. - */ -function validate_plugin($plugin) { - if ( validate_file($plugin) ) - return new WP_Error('plugin_invalid', __('Invalid plugin path.')); - if ( ! file_exists(WP_PLUGIN_DIR . '/' . $plugin) ) - return new WP_Error('plugin_not_found', __('Plugin file does not exist.')); - - $installed_plugins = get_plugins(); - if ( ! isset($installed_plugins[$plugin]) ) - return new WP_Error('no_plugin_header', __('The plugin does not have a valid header.')); - return 0; -} - -/** - * Whether the plugin can be uninstalled. - * - * @since 2.7.0 - * - * @param string $plugin Plugin path to check. - * @return bool Whether plugin can be uninstalled. - */ -function is_uninstallable_plugin($plugin) { - $file = plugin_basename($plugin); - - $uninstallable_plugins = (array) get_option('uninstall_plugins'); - if ( isset( $uninstallable_plugins[$file] ) || file_exists( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' ) ) - return true; - - return false; -} - -/** - * Uninstall a single plugin. - * - * Calls the uninstall hook, if it is available. - * - * @since 2.7.0 - * - * @param string $plugin Relative plugin path from Plugin Directory. - * @return true True if a plugin's uninstall.php file has been found and included. - */ -function uninstall_plugin($plugin) { - $file = plugin_basename($plugin); - - $uninstallable_plugins = (array) get_option('uninstall_plugins'); - if ( file_exists( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' ) ) { - if ( isset( $uninstallable_plugins[$file] ) ) { - unset($uninstallable_plugins[$file]); - update_option('uninstall_plugins', $uninstallable_plugins); - } - unset($uninstallable_plugins); - - define('WP_UNINSTALL_PLUGIN', $file); - wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . dirname( $file ) ); - include( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' ); - - return true; - } - - if ( isset( $uninstallable_plugins[$file] ) ) { - $callable = $uninstallable_plugins[$file]; - unset($uninstallable_plugins[$file]); - update_option('uninstall_plugins', $uninstallable_plugins); - unset($uninstallable_plugins); - - wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file ); - include( WP_PLUGIN_DIR . '/' . $file ); - - add_action( 'uninstall_' . $file, $callable ); - - /** - * Fires in uninstall_plugin() once the plugin has been uninstalled. - * - * The action concatenates the 'uninstall_' prefix with the basename of the - * plugin passed to {@see uninstall_plugin()} to create a dynamically-named action. - * - * @since 2.7.0 - */ - do_action( 'uninstall_' . $file ); - } -} - -// -// Menu -// - -/** - * Add a top level menu page - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @global array $menu - * @global array $admin_page_hooks - * @global array $_registered_pages - * @global array $_parent_pages - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * @param string $icon_url The url to the icon to be used for this menu. - * * Pass a base64-encoded SVG using a data URI, which will be colored to match the color scheme. - * This should begin with 'data:image/svg+xml;base64,'. - * * Pass the name of a Dashicons helper class to use a font icon, e.g. 'dashicons-chart-pie'. - * * Pass 'none' to leave div.wp-menu-image empty so an icon can be added via CSS. - * @param int $position The position in the menu order this one should appear - * - * @return string The resulting page's hook_suffix - */ -function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '', $position = null ) { - global $menu, $admin_page_hooks, $_registered_pages, $_parent_pages; - - $menu_slug = plugin_basename( $menu_slug ); - - $admin_page_hooks[$menu_slug] = sanitize_title( $menu_title ); - - $hookname = get_plugin_page_hookname( $menu_slug, '' ); - - if ( !empty( $function ) && !empty( $hookname ) && current_user_can( $capability ) ) - add_action( $hookname, $function ); - - if ( empty($icon_url) ) { - $icon_url = 'dashicons-admin-generic'; - $icon_class = 'menu-icon-generic '; - } else { - $icon_url = set_url_scheme( $icon_url ); - $icon_class = ''; - } - - $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $icon_class . $hookname, $hookname, $icon_url ); - - if ( null === $position ) - $menu[] = $new_menu; - else - $menu[$position] = $new_menu; - - $_registered_pages[$hookname] = true; - - // No parent as top level - $_parent_pages[$menu_slug] = false; - - return $hookname; -} - -/** - * Add a top level menu page in the 'objects' section - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @global int $_wp_last_object_menu - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * @param string $icon_url The url to the icon to be used for this menu - * - * @return string The resulting page's hook_suffix - */ -function add_object_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') { - global $_wp_last_object_menu; - - $_wp_last_object_menu++; - - return add_menu_page($page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $_wp_last_object_menu); -} - -/** - * Add a top level menu page in the 'utility' section - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @global int $_wp_last_utility_menu - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * @param string $icon_url The url to the icon to be used for this menu - * - * @return string The resulting page's hook_suffix - */ -function add_utility_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') { - global $_wp_last_utility_menu; - - $_wp_last_utility_menu++; - - return add_menu_page($page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $_wp_last_utility_menu); -} - -/** - * Add a sub menu page - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @global array $submenu - * @global array $menu - * @global type $_wp_real_parent_file - * @global bool $_wp_submenu_nopriv - * @global array $_registered_pages - * @global array $_parent_pages - * - * @param string $parent_slug The slug name for the parent menu (or the file name of a standard WordPress admin page) - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * - * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. - */ -function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { - global $submenu, $menu, $_wp_real_parent_file, $_wp_submenu_nopriv, - $_registered_pages, $_parent_pages; - - $menu_slug = plugin_basename( $menu_slug ); - $parent_slug = plugin_basename( $parent_slug); - - if ( isset( $_wp_real_parent_file[$parent_slug] ) ) - $parent_slug = $_wp_real_parent_file[$parent_slug]; - - if ( !current_user_can( $capability ) ) { - $_wp_submenu_nopriv[$parent_slug][$menu_slug] = true; - return false; - } - - /* - * If the parent doesn't already have a submenu, add a link to the parent - * as the first item in the submenu. If the submenu file is the same as the - * parent file someone is trying to link back to the parent manually. In - * this case, don't automatically add a link back to avoid duplication. - */ - if (!isset( $submenu[$parent_slug] ) && $menu_slug != $parent_slug ) { - foreach ( (array)$menu as $parent_menu ) { - if ( $parent_menu[2] == $parent_slug && current_user_can( $parent_menu[1] ) ) - $submenu[$parent_slug][] = array_slice( $parent_menu, 0, 4 ); - } - } - - $submenu[$parent_slug][] = array ( $menu_title, $capability, $menu_slug, $page_title ); - - $hookname = get_plugin_page_hookname( $menu_slug, $parent_slug); - if (!empty ( $function ) && !empty ( $hookname )) - add_action( $hookname, $function ); - - $_registered_pages[$hookname] = true; - - /* - * Backward-compatibility for plugins using add_management page. - * See wp-admin/admin.php for redirect from edit.php to tools.php - */ - if ( 'tools.php' == $parent_slug ) - $_registered_pages[get_plugin_page_hookname( $menu_slug, 'edit.php')] = true; - - // No parent as top level. - $_parent_pages[$menu_slug] = $parent_slug; - - return $hookname; -} - -/** - * Add sub menu page to the tools main menu. - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * - * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. - */ -function add_management_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { - return add_submenu_page( 'tools.php', $page_title, $menu_title, $capability, $menu_slug, $function ); -} - -/** - * Add sub menu page to the options main menu. - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * - * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. - */ -function add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { - return add_submenu_page( 'options-general.php', $page_title, $menu_title, $capability, $menu_slug, $function ); -} - -/** - * Add sub menu page to the themes main menu. - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * - * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. - */ -function add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { - return add_submenu_page( 'themes.php', $page_title, $menu_title, $capability, $menu_slug, $function ); -} - -/** - * Add sub menu page to the plugins main menu. - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * - * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. - */ -function add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { - return add_submenu_page( 'plugins.php', $page_title, $menu_title, $capability, $menu_slug, $function ); -} - -/** - * Add sub menu page to the Users/Profile main menu. - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * - * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. - */ -function add_users_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { - if ( current_user_can('edit_users') ) - $parent = 'users.php'; - else - $parent = 'profile.php'; - return add_submenu_page( $parent, $page_title, $menu_title, $capability, $menu_slug, $function ); -} -/** - * Add sub menu page to the Dashboard main menu. - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * - * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. - */ -function add_dashboard_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { - return add_submenu_page( 'index.php', $page_title, $menu_title, $capability, $menu_slug, $function ); -} - -/** - * Add sub menu page to the posts main menu. - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * - * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. - */ -function add_posts_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { - return add_submenu_page( 'edit.php', $page_title, $menu_title, $capability, $menu_slug, $function ); -} - -/** - * Add sub menu page to the media main menu. - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * - * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. - */ -function add_media_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { - return add_submenu_page( 'upload.php', $page_title, $menu_title, $capability, $menu_slug, $function ); -} - -/** - * Add sub menu page to the links main menu. - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * - * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. - */ -function add_links_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { - return add_submenu_page( 'link-manager.php', $page_title, $menu_title, $capability, $menu_slug, $function ); -} - -/** - * Add sub menu page to the pages main menu. - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * - * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. -*/ -function add_pages_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { - return add_submenu_page( 'edit.php?post_type=page', $page_title, $menu_title, $capability, $menu_slug, $function ); -} - -/** - * Add sub menu page to the comments main menu. - * - * This function takes a capability which will be used to determine whether - * or not a page is included in the menu. - * - * The function which is hooked in to handle the output of the page must check - * that the user has the required capability as well. - * - * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected - * @param string $menu_title The text to be used for the menu - * @param string $capability The capability required for this menu to be displayed to the user. - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param callback $function The function to be called to output the content for this page. - * - * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. -*/ -function add_comments_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { - return add_submenu_page( 'edit-comments.php', $page_title, $menu_title, $capability, $menu_slug, $function ); -} - -/** - * Remove a top level admin menu - * - * @since 3.1.0 - * - * @global array $menu - * - * @param string $menu_slug The slug of the menu - * @return array|bool The removed menu on success, False if not found - */ -function remove_menu_page( $menu_slug ) { - global $menu; - - foreach ( $menu as $i => $item ) { - if ( $menu_slug == $item[2] ) { - unset( $menu[$i] ); - return $item; - } - } - - return false; -} - -/** - * Remove an admin submenu - * - * @since 3.1.0 - * - * @global array $submenu - * - * @param string $menu_slug The slug for the parent menu - * @param string $submenu_slug The slug of the submenu - * @return array|bool The removed submenu on success, False if not found - */ -function remove_submenu_page( $menu_slug, $submenu_slug ) { - global $submenu; - - if ( !isset( $submenu[$menu_slug] ) ) - return false; - - foreach ( $submenu[$menu_slug] as $i => $item ) { - if ( $submenu_slug == $item[2] ) { - unset( $submenu[$menu_slug][$i] ); - return $item; - } - } - - return false; -} - -/** - * Get the url to access a particular menu page based on the slug it was registered with. - * - * If the slug hasn't been registered properly no url will be returned - * - * @since 3.0.0 - * - * @global array $_parent_pages - * - * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) - * @param bool $echo Whether or not to echo the url - default is true - * @return string the url - */ -function menu_page_url($menu_slug, $echo = true) { - global $_parent_pages; - - if ( isset( $_parent_pages[$menu_slug] ) ) { - $parent_slug = $_parent_pages[$menu_slug]; - if ( $parent_slug && ! isset( $_parent_pages[$parent_slug] ) ) { - $url = admin_url( add_query_arg( 'page', $menu_slug, $parent_slug ) ); - } else { - $url = admin_url( 'admin.php?page=' . $menu_slug ); - } - } else { - $url = ''; - } - - $url = esc_url($url); - - if ( $echo ) - echo $url; - - return $url; -} - -// -// Pluggable Menu Support -- Private -// -/** - * - * @global string $parent_file - * @global array $menu - * @global array $submenu - * @global string $pagenow - * @global string $typenow - * @global string $plugin_page - * @global string $_wp_real_parent_file - * @global array $_wp_menu_nopriv - * @global array $_wp_submenu_nopriv - */ -function get_admin_page_parent( $parent = '' ) { - global $parent_file, $menu, $submenu, $pagenow, $typenow, - $plugin_page, $_wp_real_parent_file, $_wp_menu_nopriv, $_wp_submenu_nopriv; - - if ( !empty ( $parent ) && 'admin.php' != $parent ) { - if ( isset( $_wp_real_parent_file[$parent] ) ) - $parent = $_wp_real_parent_file[$parent]; - return $parent; - } - - if ( $pagenow == 'admin.php' && isset( $plugin_page ) ) { - foreach ( (array)$menu as $parent_menu ) { - if ( $parent_menu[2] == $plugin_page ) { - $parent_file = $plugin_page; - if ( isset( $_wp_real_parent_file[$parent_file] ) ) - $parent_file = $_wp_real_parent_file[$parent_file]; - return $parent_file; - } - } - if ( isset( $_wp_menu_nopriv[$plugin_page] ) ) { - $parent_file = $plugin_page; - if ( isset( $_wp_real_parent_file[$parent_file] ) ) - $parent_file = $_wp_real_parent_file[$parent_file]; - return $parent_file; - } - } - - if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$pagenow][$plugin_page] ) ) { - $parent_file = $pagenow; - if ( isset( $_wp_real_parent_file[$parent_file] ) ) - $parent_file = $_wp_real_parent_file[$parent_file]; - return $parent_file; - } - - foreach (array_keys( (array)$submenu ) as $parent) { - foreach ( $submenu[$parent] as $submenu_array ) { - if ( isset( $_wp_real_parent_file[$parent] ) ) - $parent = $_wp_real_parent_file[$parent]; - if ( !empty($typenow) && ($submenu_array[2] == "$pagenow?post_type=$typenow") ) { - $parent_file = $parent; - return $parent; - } elseif ( $submenu_array[2] == $pagenow && empty($typenow) && ( empty($parent_file) || false === strpos($parent_file, '?') ) ) { - $parent_file = $parent; - return $parent; - } elseif ( isset( $plugin_page ) && ($plugin_page == $submenu_array[2] ) ) { - $parent_file = $parent; - return $parent; - } - } - } - - if ( empty($parent_file) ) - $parent_file = ''; - return ''; -} - -/** - * - * @global string $title - * @global array $menu - * @global array $submenu - * @global string $pagenow - * @global string $plugin_page - * @global string $typenow - */ -function get_admin_page_title() { - global $title, $menu, $submenu, $pagenow, $plugin_page, $typenow; - - if ( ! empty ( $title ) ) - return $title; - - $hook = get_plugin_page_hook( $plugin_page, $pagenow ); - - $parent = $parent1 = get_admin_page_parent(); - - if ( empty ( $parent) ) { - foreach ( (array)$menu as $menu_array ) { - if ( isset( $menu_array[3] ) ) { - if ( $menu_array[2] == $pagenow ) { - $title = $menu_array[3]; - return $menu_array[3]; - } elseif ( isset( $plugin_page ) && ($plugin_page == $menu_array[2] ) && ($hook == $menu_array[3] ) ) { - $title = $menu_array[3]; - return $menu_array[3]; - } - } else { - $title = $menu_array[0]; - return $title; - } - } - } else { - foreach ( array_keys( $submenu ) as $parent ) { - foreach ( $submenu[$parent] as $submenu_array ) { - if ( isset( $plugin_page ) && - ( $plugin_page == $submenu_array[2] ) && - ( - ( $parent == $pagenow ) || - ( $parent == $plugin_page ) || - ( $plugin_page == $hook ) || - ( $pagenow == 'admin.php' && $parent1 != $submenu_array[2] ) || - ( !empty($typenow) && $parent == $pagenow . '?post_type=' . $typenow) - ) - ) { - $title = $submenu_array[3]; - return $submenu_array[3]; - } - - if ( $submenu_array[2] != $pagenow || isset( $_GET['page'] ) ) // not the current page - continue; - - if ( isset( $submenu_array[3] ) ) { - $title = $submenu_array[3]; - return $submenu_array[3]; - } else { - $title = $submenu_array[0]; - return $title; - } - } - } - if ( empty ( $title ) ) { - foreach ( $menu as $menu_array ) { - if ( isset( $plugin_page ) && - ( $plugin_page == $menu_array[2] ) && - ( $pagenow == 'admin.php' ) && - ( $parent1 == $menu_array[2] ) ) - { - $title = $menu_array[3]; - return $menu_array[3]; - } - } - } - } - - return $title; -} - -/** - * @since 2.3.0 - * - * @param string $plugin_page - * @param string $parent_page - * @return string|null - */ -function get_plugin_page_hook( $plugin_page, $parent_page ) { - $hook = get_plugin_page_hookname( $plugin_page, $parent_page ); - if ( has_action($hook) ) - return $hook; - else - return null; -} - -/** - * - * @global array $admin_page_hooks - * @param string $plugin_page - * @param string $parent_page - */ -function get_plugin_page_hookname( $plugin_page, $parent_page ) { - global $admin_page_hooks; - - $parent = get_admin_page_parent( $parent_page ); - - $page_type = 'admin'; - if ( empty ( $parent_page ) || 'admin.php' == $parent_page || isset( $admin_page_hooks[$plugin_page] ) ) { - if ( isset( $admin_page_hooks[$plugin_page] ) ) { - $page_type = 'toplevel'; - } elseif ( isset( $admin_page_hooks[$parent] )) { - $page_type = $admin_page_hooks[$parent]; - } - } elseif ( isset( $admin_page_hooks[$parent] ) ) { - $page_type = $admin_page_hooks[$parent]; - } - - $plugin_name = preg_replace( '!\.php!', '', $plugin_page ); - - return $page_type . '_page_' . $plugin_name; -} - -/** - * - * @global string $pagenow - * @global array $menu - * @global array $submenu - * @global array $_wp_menu_nopriv - * @global array $_wp_submenu_nopriv - * @global string $plugin_page - * @global array $_registered_pages - */ -function user_can_access_admin_page() { - global $pagenow, $menu, $submenu, $_wp_menu_nopriv, $_wp_submenu_nopriv, - $plugin_page, $_registered_pages; - - $parent = get_admin_page_parent(); - - if ( !isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$parent][$pagenow] ) ) - return false; - - if ( isset( $plugin_page ) ) { - if ( isset( $_wp_submenu_nopriv[$parent][$plugin_page] ) ) - return false; - - $hookname = get_plugin_page_hookname($plugin_page, $parent); - - if ( !isset($_registered_pages[$hookname]) ) - return false; - } - - if ( empty( $parent) ) { - if ( isset( $_wp_menu_nopriv[$pagenow] ) ) - return false; - if ( isset( $_wp_submenu_nopriv[$pagenow][$pagenow] ) ) - return false; - if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$pagenow][$plugin_page] ) ) - return false; - if ( isset( $plugin_page ) && isset( $_wp_menu_nopriv[$plugin_page] ) ) - return false; - foreach (array_keys( $_wp_submenu_nopriv ) as $key ) { - if ( isset( $_wp_submenu_nopriv[$key][$pagenow] ) ) - return false; - if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$key][$plugin_page] ) ) - return false; - } - return true; - } - - if ( isset( $plugin_page ) && ( $plugin_page == $parent ) && isset( $_wp_menu_nopriv[$plugin_page] ) ) - return false; - - if ( isset( $submenu[$parent] ) ) { - foreach ( $submenu[$parent] as $submenu_array ) { - if ( isset( $plugin_page ) && ( $submenu_array[2] == $plugin_page ) ) { - if ( current_user_can( $submenu_array[1] )) - return true; - else - return false; - } elseif ( $submenu_array[2] == $pagenow ) { - if ( current_user_can( $submenu_array[1] )) - return true; - else - return false; - } - } - } - - foreach ( $menu as $menu_array ) { - if ( $menu_array[2] == $parent) { - if ( current_user_can( $menu_array[1] )) - return true; - else - return false; - } - } - - return true; -} - -/* Whitelist functions */ - -/** - * Register a setting and its sanitization callback - * - * @since 2.7.0 - * - * @global array $new_whitelist_options - * - * @param string $option_group A settings group name. Should correspond to a whitelisted option key name. - * Default whitelisted option key names include "general," "discussion," and "reading," among others. - * @param string $option_name The name of an option to sanitize and save. - * @param callable $sanitize_callback A callback function that sanitizes the option's value. - */ -function register_setting( $option_group, $option_name, $sanitize_callback = '' ) { - global $new_whitelist_options; - - if ( 'misc' == $option_group ) { - _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); - $option_group = 'general'; - } - - if ( 'privacy' == $option_group ) { - _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); - $option_group = 'reading'; - } - - $new_whitelist_options[ $option_group ][] = $option_name; - if ( $sanitize_callback != '' ) - add_filter( "sanitize_option_{$option_name}", $sanitize_callback ); -} - -/** - * Unregister a setting - * - * @since 2.7.0 - * - * @global array $new_whitelist_options - * - * @param string $option_group - * @param string $option_name - * @param callable $sanitize_callback - */ -function unregister_setting( $option_group, $option_name, $sanitize_callback = '' ) { - global $new_whitelist_options; - - if ( 'misc' == $option_group ) { - _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); - $option_group = 'general'; - } - - if ( 'privacy' == $option_group ) { - _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); - $option_group = 'reading'; - } - - $pos = array_search( $option_name, (array) $new_whitelist_options[ $option_group ] ); - if ( $pos !== false ) - unset( $new_whitelist_options[ $option_group ][ $pos ] ); - if ( $sanitize_callback != '' ) - remove_filter( "sanitize_option_{$option_name}", $sanitize_callback ); -} - -/** - * {@internal Missing Short Description}} - * - * @since 2.7.0 - * - * @global array $new_whitelist_options - * - * @param array $options - * @return array - */ -function option_update_filter( $options ) { - global $new_whitelist_options; - - if ( is_array( $new_whitelist_options ) ) - $options = add_option_whitelist( $new_whitelist_options, $options ); - - return $options; -} - -/** - * {@internal Missing Short Description}} - * - * @since 2.7.0 - * - * @global array $whitelist_options - * - * @param array $new_options - * @param string|array $options - * @return array - */ -function add_option_whitelist( $new_options, $options = '' ) { - if ( $options == '' ) - global $whitelist_options; - else - $whitelist_options = $options; - - foreach ( $new_options as $page => $keys ) { - foreach ( $keys as $key ) { - if ( !isset($whitelist_options[ $page ]) || !is_array($whitelist_options[ $page ]) ) { - $whitelist_options[ $page ] = array(); - $whitelist_options[ $page ][] = $key; - } else { - $pos = array_search( $key, $whitelist_options[ $page ] ); - if ( $pos === false ) - $whitelist_options[ $page ][] = $key; - } - } - } - - return $whitelist_options; -} - -/** - * {@internal Missing Short Description}} - * - * @since 2.7.0 - * - * @global array $whitelist_options - * - * @param array $del_options - * @param string|array $options - * @return array - */ -function remove_option_whitelist( $del_options, $options = '' ) { - if ( $options == '' ) - global $whitelist_options; - else - $whitelist_options = $options; - - foreach ( $del_options as $page => $keys ) { - foreach ( $keys as $key ) { - if ( isset($whitelist_options[ $page ]) && is_array($whitelist_options[ $page ]) ) { - $pos = array_search( $key, $whitelist_options[ $page ] ); - if ( $pos !== false ) - unset( $whitelist_options[ $page ][ $pos ] ); - } - } - } - - return $whitelist_options; -} - -/** - * Output nonce, action, and option_page fields for a settings page. - * - * @since 2.7.0 - * - * @param string $option_group A settings group name. This should match the group name used in register_setting(). - */ -function settings_fields($option_group) { - echo ""; - echo ''; - wp_nonce_field("$option_group-options"); -} - -/** - * Clears the Plugins cache used by get_plugins() and by default, the Plugin Update cache. - * - * @since 3.7.0 - * - * @param bool $clear_update_cache Whether to clear the Plugin updates cache - */ -function wp_clean_plugins_cache( $clear_update_cache = true ) { - if ( $clear_update_cache ) - delete_site_transient( 'update_plugins' ); - wp_cache_delete( 'plugins', 'plugins' ); -} diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php deleted file mode 100644 index 5fcceec001..0000000000 --- a/wp-admin/includes/post.php +++ /dev/null @@ -1,1768 +0,0 @@ -cap->create_posts ) ) { - if ( 'page' == $post_data['post_type'] ) - return new WP_Error( 'edit_others_pages', __( 'You are not allowed to create pages as this user.' ) ); - else - return new WP_Error( 'edit_others_posts', __( 'You are not allowed to create posts as this user.' ) ); - } - - if ( isset( $post_data['content'] ) ) - $post_data['post_content'] = $post_data['content']; - - if ( isset( $post_data['excerpt'] ) ) - $post_data['post_excerpt'] = $post_data['excerpt']; - - if ( isset( $post_data['parent_id'] ) ) - $post_data['post_parent'] = (int) $post_data['parent_id']; - - if ( isset($post_data['trackback_url']) ) - $post_data['to_ping'] = $post_data['trackback_url']; - - $post_data['user_ID'] = get_current_user_id(); - - if (!empty ( $post_data['post_author_override'] ) ) { - $post_data['post_author'] = (int) $post_data['post_author_override']; - } else { - if (!empty ( $post_data['post_author'] ) ) { - $post_data['post_author'] = (int) $post_data['post_author']; - } else { - $post_data['post_author'] = (int) $post_data['user_ID']; - } - } - - if ( isset( $post_data['user_ID'] ) && ( $post_data['post_author'] != $post_data['user_ID'] ) - && ! current_user_can( $ptype->cap->edit_others_posts ) ) { - if ( $update ) { - if ( 'page' == $post_data['post_type'] ) - return new WP_Error( 'edit_others_pages', __( 'You are not allowed to edit pages as this user.' ) ); - else - return new WP_Error( 'edit_others_posts', __( 'You are not allowed to edit posts as this user.' ) ); - } else { - if ( 'page' == $post_data['post_type'] ) - return new WP_Error( 'edit_others_pages', __( 'You are not allowed to create pages as this user.' ) ); - else - return new WP_Error( 'edit_others_posts', __( 'You are not allowed to create posts as this user.' ) ); - } - } - - if ( ! empty( $post_data['post_status'] ) ) { - $post_data['post_status'] = sanitize_key( $post_data['post_status'] ); - - // No longer an auto-draft - if ( 'auto-draft' === $post_data['post_status'] ) { - $post_data['post_status'] = 'draft'; - } - - if ( ! get_post_status_object( $post_data['post_status'] ) ) { - unset( $post_data['post_status'] ); - } - } - - // What to do based on which button they pressed - if ( isset($post_data['saveasdraft']) && '' != $post_data['saveasdraft'] ) - $post_data['post_status'] = 'draft'; - if ( isset($post_data['saveasprivate']) && '' != $post_data['saveasprivate'] ) - $post_data['post_status'] = 'private'; - if ( isset($post_data['publish']) && ( '' != $post_data['publish'] ) && ( !isset($post_data['post_status']) || $post_data['post_status'] != 'private' ) ) - $post_data['post_status'] = 'publish'; - if ( isset($post_data['advanced']) && '' != $post_data['advanced'] ) - $post_data['post_status'] = 'draft'; - if ( isset($post_data['pending']) && '' != $post_data['pending'] ) - $post_data['post_status'] = 'pending'; - - if ( isset( $post_data['ID'] ) ) - $post_id = $post_data['ID']; - else - $post_id = false; - $previous_status = $post_id ? get_post_field( 'post_status', $post_id ) : false; - - if ( isset( $post_data['post_status'] ) && 'private' == $post_data['post_status'] && ! current_user_can( $ptype->cap->publish_posts ) ) { - $post_data['post_status'] = $previous_status ? $previous_status : 'pending'; - } - - $published_statuses = array( 'publish', 'future' ); - - // Posts 'submitted for approval' present are submitted to $_POST the same as if they were being published. - // Change status from 'publish' to 'pending' if user lacks permissions to publish or to resave published posts. - if ( isset($post_data['post_status']) && (in_array( $post_data['post_status'], $published_statuses ) && !current_user_can( $ptype->cap->publish_posts )) ) - if ( ! in_array( $previous_status, $published_statuses ) || !current_user_can( 'edit_post', $post_id ) ) - $post_data['post_status'] = 'pending'; - - if ( ! isset( $post_data['post_status'] ) ) { - $post_data['post_status'] = 'auto-draft' === $previous_status ? 'draft' : $previous_status; - } - - if ( isset( $post_data['post_password'] ) && ! current_user_can( $ptype->cap->publish_posts ) ) { - unset( $post_data['post_password'] ); - } - - if (!isset( $post_data['comment_status'] )) - $post_data['comment_status'] = 'closed'; - - if (!isset( $post_data['ping_status'] )) - $post_data['ping_status'] = 'closed'; - - foreach ( array('aa', 'mm', 'jj', 'hh', 'mn') as $timeunit ) { - if ( !empty( $post_data['hidden_' . $timeunit] ) && $post_data['hidden_' . $timeunit] != $post_data[$timeunit] ) { - $post_data['edit_date'] = '1'; - break; - } - } - - if ( !empty( $post_data['edit_date'] ) ) { - $aa = $post_data['aa']; - $mm = $post_data['mm']; - $jj = $post_data['jj']; - $hh = $post_data['hh']; - $mn = $post_data['mn']; - $ss = $post_data['ss']; - $aa = ($aa <= 0 ) ? date('Y') : $aa; - $mm = ($mm <= 0 ) ? date('n') : $mm; - $jj = ($jj > 31 ) ? 31 : $jj; - $jj = ($jj <= 0 ) ? date('j') : $jj; - $hh = ($hh > 23 ) ? $hh -24 : $hh; - $mn = ($mn > 59 ) ? $mn -60 : $mn; - $ss = ($ss > 59 ) ? $ss -60 : $ss; - $post_data['post_date'] = sprintf( "%04d-%02d-%02d %02d:%02d:%02d", $aa, $mm, $jj, $hh, $mn, $ss ); - $valid_date = wp_checkdate( $mm, $jj, $aa, $post_data['post_date'] ); - if ( !$valid_date ) { - return new WP_Error( 'invalid_date', __( 'Whoops, the provided date is invalid.' ) ); - } - $post_data['post_date_gmt'] = get_gmt_from_date( $post_data['post_date'] ); - } - - return $post_data; -} - -/** - * Update an existing post with values provided in $_POST. - * - * @since 1.5.0 - * - * @global wpdb $wpdb - * - * @param array $post_data Optional. - * @return int Post ID. - */ -function edit_post( $post_data = null ) { - global $wpdb; - - if ( empty($post_data) ) - $post_data = &$_POST; - - // Clear out any data in internal vars. - unset( $post_data['filter'] ); - - $post_ID = (int) $post_data['post_ID']; - $post = get_post( $post_ID ); - $post_data['post_type'] = $post->post_type; - $post_data['post_mime_type'] = $post->post_mime_type; - - if ( ! empty( $post_data['post_status'] ) ) { - $post_data['post_status'] = sanitize_key( $post_data['post_status'] ); - - if ( 'inherit' == $post_data['post_status'] ) { - unset( $post_data['post_status'] ); - } - } - - $ptype = get_post_type_object($post_data['post_type']); - if ( !current_user_can( 'edit_post', $post_ID ) ) { - if ( 'page' == $post_data['post_type'] ) - wp_die( __('You are not allowed to edit this page.' )); - else - wp_die( __('You are not allowed to edit this post.' )); - } - - if ( post_type_supports( $ptype->name, 'revisions' ) ) { - $revisions = wp_get_post_revisions( $post_ID, array( 'order' => 'ASC', 'posts_per_page' => 1 ) ); - $revision = current( $revisions ); - - // Check if the revisions have been upgraded - if ( $revisions && _wp_get_post_revision_version( $revision ) < 1 ) - _wp_upgrade_revisions_of_post( $post, wp_get_post_revisions( $post_ID ) ); - } - - if ( isset($post_data['visibility']) ) { - switch ( $post_data['visibility'] ) { - case 'public' : - $post_data['post_password'] = ''; - break; - case 'password' : - unset( $post_data['sticky'] ); - break; - case 'private' : - $post_data['post_status'] = 'private'; - $post_data['post_password'] = ''; - unset( $post_data['sticky'] ); - break; - } - } - - $post_data = _wp_translate_postdata( true, $post_data ); - if ( is_wp_error($post_data) ) - wp_die( $post_data->get_error_message() ); - - // Post Formats - if ( isset( $post_data['post_format'] ) ) - set_post_format( $post_ID, $post_data['post_format'] ); - - $format_meta_urls = array( 'url', 'link_url', 'quote_source_url' ); - foreach ( $format_meta_urls as $format_meta_url ) { - $keyed = '_format_' . $format_meta_url; - if ( isset( $post_data[ $keyed ] ) ) - update_post_meta( $post_ID, $keyed, wp_slash( esc_url_raw( wp_unslash( $post_data[ $keyed ] ) ) ) ); - } - - $format_keys = array( 'quote', 'quote_source_name', 'image', 'gallery', 'audio_embed', 'video_embed' ); - - foreach ( $format_keys as $key ) { - $keyed = '_format_' . $key; - if ( isset( $post_data[ $keyed ] ) ) { - if ( current_user_can( 'unfiltered_html' ) ) - update_post_meta( $post_ID, $keyed, $post_data[ $keyed ] ); - else - update_post_meta( $post_ID, $keyed, wp_filter_post_kses( $post_data[ $keyed ] ) ); - } - } - - if ( 'attachment' === $post_data['post_type'] && preg_match( '#^(audio|video)/#', $post_data['post_mime_type'] ) ) { - $id3data = wp_get_attachment_metadata( $post_ID ); - if ( ! is_array( $id3data ) ) { - $id3data = array(); - } - - foreach ( wp_get_attachment_id3_keys( $post, 'edit' ) as $key => $label ) { - if ( isset( $post_data[ 'id3_' . $key ] ) ) { - $id3data[ $key ] = sanitize_text_field( wp_unslash( $post_data[ 'id3_' . $key ] ) ); - } - } - wp_update_attachment_metadata( $post_ID, $id3data ); - } - - // Meta Stuff - if ( isset($post_data['meta']) && $post_data['meta'] ) { - foreach ( $post_data['meta'] as $key => $value ) { - if ( !$meta = get_post_meta_by_id( $key ) ) - continue; - if ( $meta->post_id != $post_ID ) - continue; - if ( is_protected_meta( $value['key'], 'post' ) || ! current_user_can( 'edit_post_meta', $post_ID, $value['key'] ) ) - continue; - update_meta( $key, $value['key'], $value['value'] ); - } - } - - if ( isset($post_data['deletemeta']) && $post_data['deletemeta'] ) { - foreach ( $post_data['deletemeta'] as $key => $value ) { - if ( !$meta = get_post_meta_by_id( $key ) ) - continue; - if ( $meta->post_id != $post_ID ) - continue; - if ( is_protected_meta( $meta->meta_key, 'post' ) || ! current_user_can( 'delete_post_meta', $post_ID, $meta->meta_key ) ) - continue; - delete_meta( $key ); - } - } - - // Attachment stuff - if ( 'attachment' == $post_data['post_type'] ) { - if ( isset( $post_data[ '_wp_attachment_image_alt' ] ) ) { - $image_alt = wp_unslash( $post_data['_wp_attachment_image_alt'] ); - if ( $image_alt != get_post_meta( $post_ID, '_wp_attachment_image_alt', true ) ) { - $image_alt = wp_strip_all_tags( $image_alt, true ); - // update_meta expects slashed. - update_post_meta( $post_ID, '_wp_attachment_image_alt', wp_slash( $image_alt ) ); - } - } - - $attachment_data = isset( $post_data['attachments'][ $post_ID ] ) ? $post_data['attachments'][ $post_ID ] : array(); - - /** This filter is documented in wp-admin/includes/media.php */ - $post_data = apply_filters( 'attachment_fields_to_save', $post_data, $attachment_data ); - } - - // Convert taxonomy input to term IDs, to avoid ambiguity. - if ( isset( $post_data['tax_input'] ) ) { - foreach ( (array) $post_data['tax_input'] as $taxonomy => $terms ) { - // Hierarchical taxonomy data is already sent as term IDs, so no conversion is necessary. - if ( is_taxonomy_hierarchical( $taxonomy ) ) { - continue; - } - - /* - * Assume that a 'tax_input' string is a comma-separated list of term names. - * Some languages may use a character other than a comma as a delimiter, so we standardize on - * commas before parsing the list. - */ - if ( ! is_array( $terms ) ) { - $comma = _x( ',', 'tag delimiter' ); - if ( ',' !== $comma ) { - $terms = str_replace( $comma, ',', $terms ); - } - $terms = explode( ',', trim( $terms, " \n\t\r\0\x0B," ) ); - } - - $clean_terms = array(); - foreach ( $terms as $term ) { - // Empty terms are invalid input. - if ( empty( $term ) ) { - continue; - } - - $_term = get_terms( $taxonomy, array( - 'name' => $term, - 'fields' => 'ids', - 'hide_empty' => false, - ) ); - - if ( ! empty( $_term ) ) { - $clean_terms[] = intval( $_term[0] ); - } else { - // No existing term was found, so pass the string. A new term will be created. - $clean_terms[] = $term; - } - } - - $post_data['tax_input'][ $taxonomy ] = $clean_terms; - } - } - - add_meta( $post_ID ); - - update_post_meta( $post_ID, '_edit_last', get_current_user_id() ); - - $success = wp_update_post( $post_data ); - // If the save failed, see if we can sanity check the main fields and try again - if ( ! $success && is_callable( array( $wpdb, 'strip_invalid_text_for_column' ) ) ) { - $fields = array( 'post_title', 'post_content', 'post_excerpt' ); - - foreach( $fields as $field ) { - if ( isset( $post_data[ $field ] ) ) { - $post_data[ $field ] = $wpdb->strip_invalid_text_for_column( $wpdb->posts, $field, $post_data[ $field ] ); - } - } - - wp_update_post( $post_data ); - } - - // Now that we have an ID we can fix any attachment anchor hrefs - _fix_attachment_links( $post_ID ); - - wp_set_post_lock( $post_ID ); - - if ( current_user_can( $ptype->cap->edit_others_posts ) && current_user_can( $ptype->cap->publish_posts ) ) { - if ( ! empty( $post_data['sticky'] ) ) - stick_post( $post_ID ); - else - unstick_post( $post_ID ); - } - - return $post_ID; -} - -/** - * Process the post data for the bulk editing of posts. - * - * Updates all bulk edited posts/pages, adding (but not removing) tags and - * categories. Skips pages when they would be their own parent or child. - * - * @since 2.7.0 - * - * @global wpdb $wpdb - * - * @param array $post_data Optional, the array of post data to process if not provided will use $_POST superglobal. - * @return array - */ -function bulk_edit_posts( $post_data = null ) { - global $wpdb; - - if ( empty($post_data) ) - $post_data = &$_POST; - - if ( isset($post_data['post_type']) ) - $ptype = get_post_type_object($post_data['post_type']); - else - $ptype = get_post_type_object('post'); - - if ( !current_user_can( $ptype->cap->edit_posts ) ) { - if ( 'page' == $ptype->name ) - wp_die( __('You are not allowed to edit pages.')); - else - wp_die( __('You are not allowed to edit posts.')); - } - - if ( -1 == $post_data['_status'] ) { - $post_data['post_status'] = null; - unset($post_data['post_status']); - } else { - $post_data['post_status'] = $post_data['_status']; - } - unset($post_data['_status']); - - if ( ! empty( $post_data['post_status'] ) ) { - $post_data['post_status'] = sanitize_key( $post_data['post_status'] ); - - if ( 'inherit' == $post_data['post_status'] ) { - unset( $post_data['post_status'] ); - } - } - - $post_IDs = array_map( 'intval', (array) $post_data['post'] ); - - $reset = array( - 'post_author', 'post_status', 'post_password', - 'post_parent', 'page_template', 'comment_status', - 'ping_status', 'keep_private', 'tax_input', - 'post_category', 'sticky', 'post_format', - ); - - foreach ( $reset as $field ) { - if ( isset($post_data[$field]) && ( '' == $post_data[$field] || -1 == $post_data[$field] ) ) - unset($post_data[$field]); - } - - if ( isset($post_data['post_category']) ) { - if ( is_array($post_data['post_category']) && ! empty($post_data['post_category']) ) - $new_cats = array_map( 'absint', $post_data['post_category'] ); - else - unset($post_data['post_category']); - } - - $tax_input = array(); - if ( isset($post_data['tax_input'])) { - foreach ( $post_data['tax_input'] as $tax_name => $terms ) { - if ( empty($terms) ) - continue; - if ( is_taxonomy_hierarchical( $tax_name ) ) { - $tax_input[ $tax_name ] = array_map( 'absint', $terms ); - } else { - $comma = _x( ',', 'tag delimiter' ); - if ( ',' !== $comma ) - $terms = str_replace( $comma, ',', $terms ); - $tax_input[ $tax_name ] = explode( ',', trim( $terms, " \n\t\r\0\x0B," ) ); - } - } - } - - if ( isset($post_data['post_parent']) && ($parent = (int) $post_data['post_parent']) ) { - $pages = $wpdb->get_results("SELECT ID, post_parent FROM $wpdb->posts WHERE post_type = 'page'"); - $children = array(); - - for ( $i = 0; $i < 50 && $parent > 0; $i++ ) { - $children[] = $parent; - - foreach ( $pages as $page ) { - if ( $page->ID == $parent ) { - $parent = $page->post_parent; - break; - } - } - } - } - - $updated = $skipped = $locked = array(); - $shared_post_data = $post_data; - - foreach ( $post_IDs as $post_ID ) { - // Start with fresh post data with each iteration. - $post_data = $shared_post_data; - - $post_type_object = get_post_type_object( get_post_type( $post_ID ) ); - - if ( !isset( $post_type_object ) || ( isset($children) && in_array($post_ID, $children) ) || !current_user_can( 'edit_post', $post_ID ) ) { - $skipped[] = $post_ID; - continue; - } - - if ( wp_check_post_lock( $post_ID ) ) { - $locked[] = $post_ID; - continue; - } - - $post = get_post( $post_ID ); - $tax_names = get_object_taxonomies( $post ); - foreach ( $tax_names as $tax_name ) { - $taxonomy_obj = get_taxonomy($tax_name); - if ( isset( $tax_input[$tax_name]) && current_user_can( $taxonomy_obj->cap->assign_terms ) ) - $new_terms = $tax_input[$tax_name]; - else - $new_terms = array(); - - if ( $taxonomy_obj->hierarchical ) - $current_terms = (array) wp_get_object_terms( $post_ID, $tax_name, array('fields' => 'ids') ); - else - $current_terms = (array) wp_get_object_terms( $post_ID, $tax_name, array('fields' => 'names') ); - - $post_data['tax_input'][$tax_name] = array_merge( $current_terms, $new_terms ); - } - - if ( isset($new_cats) && in_array( 'category', $tax_names ) ) { - $cats = (array) wp_get_post_categories($post_ID); - $post_data['post_category'] = array_unique( array_merge($cats, $new_cats) ); - unset( $post_data['tax_input']['category'] ); - } - - $post_data['post_type'] = $post->post_type; - $post_data['post_mime_type'] = $post->post_mime_type; - $post_data['guid'] = $post->guid; - - foreach ( array( 'comment_status', 'ping_status', 'post_author' ) as $field ) { - if ( ! isset( $post_data[ $field ] ) ) { - $post_data[ $field ] = $post->$field; - } - } - - $post_data['ID'] = $post_ID; - $post_data['post_ID'] = $post_ID; - - $post_data = _wp_translate_postdata( true, $post_data ); - if ( is_wp_error( $post_data ) ) { - $skipped[] = $post_ID; - continue; - } - - $updated[] = wp_update_post( $post_data ); - - if ( isset( $post_data['sticky'] ) && current_user_can( $ptype->cap->edit_others_posts ) ) { - if ( 'sticky' == $post_data['sticky'] ) - stick_post( $post_ID ); - else - unstick_post( $post_ID ); - } - - if ( isset( $post_data['post_format'] ) ) - set_post_format( $post_ID, $post_data['post_format'] ); - } - - return array( 'updated' => $updated, 'skipped' => $skipped, 'locked' => $locked ); -} - -/** - * Default post information to use when populating the "Write Post" form. - * - * @since 2.0.0 - * - * @param string $post_type A post type string, defaults to 'post'. - * @return WP_Post Post object containing all the default post data as attributes - */ -function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) { - $post_title = ''; - if ( !empty( $_REQUEST['post_title'] ) ) - $post_title = esc_html( wp_unslash( $_REQUEST['post_title'] )); - - $post_content = ''; - if ( !empty( $_REQUEST['content'] ) ) - $post_content = esc_html( wp_unslash( $_REQUEST['content'] )); - - $post_excerpt = ''; - if ( !empty( $_REQUEST['excerpt'] ) ) - $post_excerpt = esc_html( wp_unslash( $_REQUEST['excerpt'] )); - - if ( $create_in_db ) { - $post_id = wp_insert_post( array( 'post_title' => __( 'Auto Draft' ), 'post_type' => $post_type, 'post_status' => 'auto-draft' ) ); - $post = get_post( $post_id ); - if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post->post_type, 'post-formats' ) && get_option( 'default_post_format' ) ) - set_post_format( $post, get_option( 'default_post_format' ) ); - } else { - $post = new stdClass; - $post->ID = 0; - $post->post_author = ''; - $post->post_date = ''; - $post->post_date_gmt = ''; - $post->post_password = ''; - $post->post_name = ''; - $post->post_type = $post_type; - $post->post_status = 'draft'; - $post->to_ping = ''; - $post->pinged = ''; - $post->comment_status = get_default_comment_status( $post_type ); - $post->ping_status = get_default_comment_status( $post_type, 'pingback' ); - $post->post_pingback = get_option( 'default_pingback_flag' ); - $post->post_category = get_option( 'default_category' ); - $post->page_template = 'default'; - $post->post_parent = 0; - $post->menu_order = 0; - $post = new WP_Post( $post ); - } - - /** - * Filter the default post content initially used in the "Write Post" form. - * - * @since 1.5.0 - * - * @param string $post_content Default post content. - * @param WP_Post $post Post object. - */ - $post->post_content = apply_filters( 'default_content', $post_content, $post ); - - /** - * Filter the default post title initially used in the "Write Post" form. - * - * @since 1.5.0 - * - * @param string $post_title Default post title. - * @param WP_Post $post Post object. - */ - $post->post_title = apply_filters( 'default_title', $post_title, $post ); - - /** - * Filter the default post excerpt initially used in the "Write Post" form. - * - * @since 1.5.0 - * - * @param string $post_excerpt Default post excerpt. - * @param WP_Post $post Post object. - */ - $post->post_excerpt = apply_filters( 'default_excerpt', $post_excerpt, $post ); - - return $post; -} - -/** - * Determine if a post exists based on title, content, and date - * - * @since 2.0.0 - * - * @global wpdb $wpdb - * - * @param string $title Post title - * @param string $content Optional post content - * @param string $date Optional post date - * @return int Post ID if post exists, 0 otherwise. - */ -function post_exists($title, $content = '', $date = '') { - global $wpdb; - - $post_title = wp_unslash( sanitize_post_field( 'post_title', $title, 0, 'db' ) ); - $post_content = wp_unslash( sanitize_post_field( 'post_content', $content, 0, 'db' ) ); - $post_date = wp_unslash( sanitize_post_field( 'post_date', $date, 0, 'db' ) ); - - $query = "SELECT ID FROM $wpdb->posts WHERE 1=1"; - $args = array(); - - if ( !empty ( $date ) ) { - $query .= ' AND post_date = %s'; - $args[] = $post_date; - } - - if ( !empty ( $title ) ) { - $query .= ' AND post_title = %s'; - $args[] = $post_title; - } - - if ( !empty ( $content ) ) { - $query .= 'AND post_content = %s'; - $args[] = $post_content; - } - - if ( !empty ( $args ) ) - return (int) $wpdb->get_var( $wpdb->prepare($query, $args) ); - - return 0; -} - -/** - * Creates a new post from the "Write Post" form using $_POST information. - * - * @since 2.1.0 - * - * @global WP_User $current_user - * - * @return int|WP_Error - */ -function wp_write_post() { - if ( isset($_POST['post_type']) ) - $ptype = get_post_type_object($_POST['post_type']); - else - $ptype = get_post_type_object('post'); - - if ( !current_user_can( $ptype->cap->edit_posts ) ) { - if ( 'page' == $ptype->name ) - return new WP_Error( 'edit_pages', __( 'You are not allowed to create pages on this site.' ) ); - else - return new WP_Error( 'edit_posts', __( 'You are not allowed to create posts or drafts on this site.' ) ); - } - - $_POST['post_mime_type'] = ''; - - // Clear out any data in internal vars. - unset( $_POST['filter'] ); - - // Edit don't write if we have a post id. - if ( isset( $_POST['post_ID'] ) ) - return edit_post(); - - if ( isset($_POST['visibility']) ) { - switch ( $_POST['visibility'] ) { - case 'public' : - $_POST['post_password'] = ''; - break; - case 'password' : - unset( $_POST['sticky'] ); - break; - case 'private' : - $_POST['post_status'] = 'private'; - $_POST['post_password'] = ''; - unset( $_POST['sticky'] ); - break; - } - } - - $translated = _wp_translate_postdata( false ); - if ( is_wp_error($translated) ) - return $translated; - - // Create the post. - $post_ID = wp_insert_post( $_POST ); - if ( is_wp_error( $post_ID ) ) - return $post_ID; - - if ( empty($post_ID) ) - return 0; - - add_meta( $post_ID ); - - add_post_meta( $post_ID, '_edit_last', $GLOBALS['current_user']->ID ); - - // Now that we have an ID we can fix any attachment anchor hrefs - _fix_attachment_links( $post_ID ); - - wp_set_post_lock( $post_ID ); - - return $post_ID; -} - -/** - * Calls wp_write_post() and handles the errors. - * - * @since 2.0.0 - * - * @return int|null - */ -function write_post() { - $result = wp_write_post(); - if ( is_wp_error( $result ) ) - wp_die( $result->get_error_message() ); - else - return $result; -} - -// -// Post Meta -// - -/** - * Add post meta data defined in $_POST superglobal for post with given ID. - * - * @since 1.2.0 - * - * @param int $post_ID - * @return int|bool - */ -function add_meta( $post_ID ) { - $post_ID = (int) $post_ID; - - $metakeyselect = isset($_POST['metakeyselect']) ? wp_unslash( trim( $_POST['metakeyselect'] ) ) : ''; - $metakeyinput = isset($_POST['metakeyinput']) ? wp_unslash( trim( $_POST['metakeyinput'] ) ) : ''; - $metavalue = isset($_POST['metavalue']) ? $_POST['metavalue'] : ''; - if ( is_string( $metavalue ) ) - $metavalue = trim( $metavalue ); - - if ( ('0' === $metavalue || ! empty ( $metavalue ) ) && ( ( ( '#NONE#' != $metakeyselect ) && !empty ( $metakeyselect) ) || !empty ( $metakeyinput ) ) ) { - /* - * We have a key/value pair. If both the select and the input - * for the key have data, the input takes precedence. - */ - if ( '#NONE#' != $metakeyselect ) - $metakey = $metakeyselect; - - if ( $metakeyinput ) - $metakey = $metakeyinput; // default - - if ( is_protected_meta( $metakey, 'post' ) || ! current_user_can( 'add_post_meta', $post_ID, $metakey ) ) - return false; - - $metakey = wp_slash( $metakey ); - - return add_post_meta( $post_ID, $metakey, $metavalue ); - } - - return false; -} // add_meta - -/** - * Delete post meta data by meta ID. - * - * @since 1.2.0 - * - * @param int $mid - * @return bool - */ -function delete_meta( $mid ) { - return delete_metadata_by_mid( 'post' , $mid ); -} - -/** - * Get a list of previously defined keys. - * - * @since 1.2.0 - * - * @global wpdb $wpdb - * - * @return mixed - */ -function get_meta_keys() { - global $wpdb; - - $keys = $wpdb->get_col( " - SELECT meta_key - FROM $wpdb->postmeta - GROUP BY meta_key - ORDER BY meta_key" ); - - return $keys; -} - -/** - * Get post meta data by meta ID. - * - * @since 2.1.0 - * - * @param int $mid - * @return object|bool - */ -function get_post_meta_by_id( $mid ) { - return get_metadata_by_mid( 'post', $mid ); -} - -/** - * Get meta data for the given post ID. - * - * @since 1.2.0 - * - * @global wpdb $wpdb - * - * @param int $postid - * @return mixed - */ -function has_meta( $postid ) { - global $wpdb; - - return $wpdb->get_results( $wpdb->prepare("SELECT meta_key, meta_value, meta_id, post_id - FROM $wpdb->postmeta WHERE post_id = %d - ORDER BY meta_key,meta_id", $postid), ARRAY_A ); -} - -/** - * Update post meta data by meta ID. - * - * @since 1.2.0 - * - * @param int $meta_id - * @param string $meta_key Expect Slashed - * @param string $meta_value Expect Slashed - * @return bool - */ -function update_meta( $meta_id, $meta_key, $meta_value ) { - $meta_key = wp_unslash( $meta_key ); - $meta_value = wp_unslash( $meta_value ); - - return update_metadata_by_mid( 'post', $meta_id, $meta_value, $meta_key ); -} - -// -// Private -// - -/** - * Replace hrefs of attachment anchors with up-to-date permalinks. - * - * @since 2.3.0 - * @access private - * - * @param int|object $post Post ID or post object. - * @return void|int|WP_Error Void if nothing fixed. 0 or WP_Error on update failure. The post ID on update success. - */ -function _fix_attachment_links( $post ) { - $post = get_post( $post, ARRAY_A ); - $content = $post['post_content']; - - // Don't run if no pretty permalinks or post is not published, scheduled, or privately published. - if ( ! get_option( 'permalink_structure' ) || ! in_array( $post['post_status'], array( 'publish', 'future', 'private' ) ) ) - return; - - // Short if there aren't any links or no '?attachment_id=' strings (strpos cannot be zero) - if ( !strpos($content, '?attachment_id=') || !preg_match_all( '/]+)>[\s\S]+?<\/a>/', $content, $link_matches ) ) - return; - - $site_url = get_bloginfo('url'); - $site_url = substr( $site_url, (int) strpos($site_url, '://') ); // remove the http(s) - $replace = ''; - - foreach ( $link_matches[1] as $key => $value ) { - if ( !strpos($value, '?attachment_id=') || !strpos($value, 'wp-att-') - || !preg_match( '/href=(["\'])[^"\']*\?attachment_id=(\d+)[^"\']*\\1/', $value, $url_match ) - || !preg_match( '/rel=["\'][^"\']*wp-att-(\d+)/', $value, $rel_match ) ) - continue; - - $quote = $url_match[1]; // the quote (single or double) - $url_id = (int) $url_match[2]; - $rel_id = (int) $rel_match[1]; - - if ( !$url_id || !$rel_id || $url_id != $rel_id || strpos($url_match[0], $site_url) === false ) - continue; - - $link = $link_matches[0][$key]; - $replace = str_replace( $url_match[0], 'href=' . $quote . get_attachment_link( $url_id ) . $quote, $link ); - - $content = str_replace( $link, $replace, $content ); - } - - if ( $replace ) { - $post['post_content'] = $content; - // Escape data pulled from DB. - $post = add_magic_quotes($post); - - return wp_update_post($post); - } -} - -/** - * Get all the possible statuses for a post_type - * - * @since 2.5.0 - * - * @param string $type The post_type you want the statuses for - * @return array As array of all the statuses for the supplied post type - */ -function get_available_post_statuses($type = 'post') { - $stati = wp_count_posts($type); - - return array_keys(get_object_vars($stati)); -} - -/** - * Run the wp query to fetch the posts for listing on the edit posts page - * - * @since 2.5.0 - * - * @param array|bool $q Array of query variables to use to build the query or false to use $_GET superglobal. - * @return array - */ -function wp_edit_posts_query( $q = false ) { - if ( false === $q ) - $q = $_GET; - $q['m'] = isset($q['m']) ? (int) $q['m'] : 0; - $q['cat'] = isset($q['cat']) ? (int) $q['cat'] : 0; - $post_stati = get_post_stati(); - - if ( isset($q['post_type']) && in_array( $q['post_type'], get_post_types() ) ) - $post_type = $q['post_type']; - else - $post_type = 'post'; - - $avail_post_stati = get_available_post_statuses($post_type); - - if ( isset($q['post_status']) && in_array( $q['post_status'], $post_stati ) ) { - $post_status = $q['post_status']; - $perm = 'readable'; - } - - if ( isset($q['orderby']) ) - $orderby = $q['orderby']; - elseif ( isset($q['post_status']) && in_array($q['post_status'], array('pending', 'draft')) ) - $orderby = 'modified'; - - if ( isset($q['order']) ) - $order = $q['order']; - elseif ( isset($q['post_status']) && 'pending' == $q['post_status'] ) - $order = 'ASC'; - - $per_page = "edit_{$post_type}_per_page"; - $posts_per_page = (int) get_user_option( $per_page ); - if ( empty( $posts_per_page ) || $posts_per_page < 1 ) - $posts_per_page = 20; - - /** - * Filter the number of items per page to show for a specific 'per_page' type. - * - * The dynamic portion of the hook name, `$post_type`, refers to the post type. - * - * Some examples of filter hooks generated here include: 'edit_attachment_per_page', - * 'edit_post_per_page', 'edit_page_per_page', etc. - * - * @since 3.0.0 - * - * @param int $posts_per_page Number of posts to display per page for the given post - * type. Default 20. - */ - $posts_per_page = apply_filters( "edit_{$post_type}_per_page", $posts_per_page ); - - /** - * Filter the number of posts displayed per page when specifically listing "posts". - * - * @since 2.8.0 - * - * @param int $posts_per_page Number of posts to be displayed. Default 20. - * @param string $post_type The post type. - */ - $posts_per_page = apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type ); - - $query = compact('post_type', 'post_status', 'perm', 'order', 'orderby', 'posts_per_page'); - - // Hierarchical types require special args. - if ( is_post_type_hierarchical( $post_type ) && !isset($orderby) ) { - $query['orderby'] = 'menu_order title'; - $query['order'] = 'asc'; - $query['posts_per_page'] = -1; - $query['posts_per_archive_page'] = -1; - $query['fields'] = 'id=>parent'; - } - - if ( ! empty( $q['show_sticky'] ) ) - $query['post__in'] = (array) get_option( 'sticky_posts' ); - - wp( $query ); - - return $avail_post_stati; -} - -/** - * Get all available post MIME types for a given post type. - * - * @since 2.5.0 - * - * @global wpdb $wpdb - * - * @param string $type - * @return mixed - */ -function get_available_post_mime_types($type = 'attachment') { - global $wpdb; - - $types = $wpdb->get_col($wpdb->prepare("SELECT DISTINCT post_mime_type FROM $wpdb->posts WHERE post_type = %s", $type)); - return $types; -} - -/** - * Get the query variables for the current attachments request. - * - * @since 4.2.0 - * - * @param array|false $q Optional. Array of query variables to use to build the query or false - * to use $_GET superglobal. Default false. - * @return array The parsed query vars. - */ -function wp_edit_attachments_query_vars( $q = false ) { - if ( false === $q ) { - $q = $_GET; - } - $q['m'] = isset( $q['m'] ) ? (int) $q['m'] : 0; - $q['cat'] = isset( $q['cat'] ) ? (int) $q['cat'] : 0; - $q['post_type'] = 'attachment'; - $post_type = get_post_type_object( 'attachment' ); - $states = 'inherit'; - if ( current_user_can( $post_type->cap->read_private_posts ) ) { - $states .= ',private'; - } - - $q['post_status'] = isset( $q['status'] ) && 'trash' == $q['status'] ? 'trash' : $states; - $q['post_status'] = isset( $q['attachment-filter'] ) && 'trash' == $q['attachment-filter'] ? 'trash' : $states; - - $media_per_page = (int) get_user_option( 'upload_per_page' ); - if ( empty( $media_per_page ) || $media_per_page < 1 ) { - $media_per_page = 20; - } - - /** - * Filter the number of items to list per page when listing media items. - * - * @since 2.9.0 - * - * @param int $media_per_page Number of media to list. Default 20. - */ - $q['posts_per_page'] = apply_filters( 'upload_per_page', $media_per_page ); - - $post_mime_types = get_post_mime_types(); - if ( isset($q['post_mime_type']) && !array_intersect( (array) $q['post_mime_type'], array_keys($post_mime_types) ) ) { - unset($q['post_mime_type']); - } - - foreach( array_keys( $post_mime_types ) as $type ) { - if ( isset( $q['attachment-filter'] ) && "post_mime_type:$type" == $q['attachment-filter'] ) { - $q['post_mime_type'] = $type; - break; - } - } - - if ( isset( $q['detached'] ) || ( isset( $q['attachment-filter'] ) && 'detached' == $q['attachment-filter'] ) ) { - $q['post_parent'] = 0; - } - - return $q; -} - -/** - * Executes a query for attachments. An array of WP_Query arguments - * can be passed in, which will override the arguments set by this function. - * - * @since 2.5.0 - * - * @param array|false $q Array of query variables to use to build the query or false to use $_GET superglobal. - * @return array - */ -function wp_edit_attachments_query( $q = false ) { - wp( wp_edit_attachments_query_vars( $q ) ); - - $post_mime_types = get_post_mime_types(); - $avail_post_mime_types = get_available_post_mime_types( 'attachment' ); - - return array( $post_mime_types, $avail_post_mime_types ); -} - -/** - * Returns the list of classes to be used by a metabox - * - * @since 2.5.0 - * - * @param string $id - * @param string $page - * @return string - */ -function postbox_classes( $id, $page ) { - if ( isset( $_GET['edit'] ) && $_GET['edit'] == $id ) { - $classes = array( '' ); - } elseif ( $closed = get_user_option('closedpostboxes_'.$page ) ) { - if ( !is_array( $closed ) ) { - $classes = array( '' ); - } else { - $classes = in_array( $id, $closed ) ? array( 'closed' ) : array( '' ); - } - } else { - $classes = array( '' ); - } - - /** - * Filter the postbox classes for a specific screen and screen ID combo. - * - * The dynamic portions of the hook name, `$page` and `$id`, refer to - * the screen and screen ID, respectively. - * - * @since 3.2.0 - * - * @param array $classes An array of postbox classes. - */ - $classes = apply_filters( "postbox_classes_{$page}_{$id}", $classes ); - return implode( ' ', $classes ); -} - -/** - * Get a sample permalink based off of the post name. - * - * @since 2.5.0 - * - * @param int $id Post ID or post object. - * @param string $title Optional. Title. Default null. - * @param string $name Optional. Name. Default null. - * @return array Array with two entries of type string. - */ -function get_sample_permalink($id, $title = null, $name = null) { - $post = get_post( $id ); - if ( ! $post ) - return array( '', '' ); - - $ptype = get_post_type_object($post->post_type); - - $original_status = $post->post_status; - $original_date = $post->post_date; - $original_name = $post->post_name; - - // Hack: get_permalink() would return ugly permalink for drafts, so we will fake that our post is published. - if ( in_array( $post->post_status, array( 'draft', 'pending', 'future' ) ) ) { - $post->post_status = 'publish'; - $post->post_name = sanitize_title($post->post_name ? $post->post_name : $post->post_title, $post->ID); - } - - // If the user wants to set a new name -- override the current one - // Note: if empty name is supplied -- use the title instead, see #6072 - if ( !is_null($name) ) - $post->post_name = sanitize_title($name ? $name : $title, $post->ID); - - $post->post_name = wp_unique_post_slug($post->post_name, $post->ID, $post->post_status, $post->post_type, $post->post_parent); - - $post->filter = 'sample'; - - $permalink = get_permalink($post, true); - - // Replace custom post_type Token with generic pagename token for ease of use. - $permalink = str_replace("%$post->post_type%", '%pagename%', $permalink); - - // Handle page hierarchy - if ( $ptype->hierarchical ) { - $uri = get_page_uri($post); - if ( $uri ) { - $uri = untrailingslashit($uri); - $uri = strrev( stristr( strrev( $uri ), '/' ) ); - $uri = untrailingslashit($uri); - } - - /** This filter is documented in wp-admin/edit-tag-form.php */ - $uri = apply_filters( 'editable_slug', $uri ); - if ( !empty($uri) ) - $uri .= '/'; - $permalink = str_replace('%pagename%', "{$uri}%pagename%", $permalink); - } - - /** This filter is documented in wp-admin/edit-tag-form.php */ - $permalink = array( $permalink, apply_filters( 'editable_slug', $post->post_name ) ); - $post->post_status = $original_status; - $post->post_date = $original_date; - $post->post_name = $original_name; - unset($post->filter); - - return $permalink; -} - -/** - * Returns the HTML of the sample permalink slug editor. - * - * @since 2.5.0 - * - * @param int $id Post ID or post object. - * @param string $new_title Optional. New title. Default null. - * @param string $new_slug Optional. New slug. Default null. - * @return string The HTML of the sample permalink slug editor. - */ -function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) { - $post = get_post( $id ); - if ( ! $post ) - return ''; - - list($permalink, $post_name) = get_sample_permalink($post->ID, $new_title, $new_slug); - - if ( current_user_can( 'read_post', $post->ID ) ) { - $ptype = get_post_type_object( $post->post_type ); - $view_post = $ptype->labels->view_item; - } - - if ( 'publish' == get_post_status( $post ) ) { - $title = __('Click to edit this part of the permalink'); - } else { - $title = __('Temporary permalink. Click to edit this part.'); - } - - if ( false === strpos( $permalink, '%postname%' ) && false === strpos( $permalink, '%pagename%' ) ) { - $return = '' . __('Permalink:') . "\n" . '' . $permalink . "\n"; - if ( '' == get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && !( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) ) { - $return .= '' . __('Change Permalinks') . "\n"; - } - } else { - if ( function_exists( 'mb_strlen' ) ) { - if ( mb_strlen( $post_name ) > 30 ) { - $post_name_abridged = mb_substr( $post_name, 0, 14 ) . '…' . mb_substr( $post_name, -14 ); - } else { - $post_name_abridged = $post_name; - } - } else { - if ( strlen( $post_name ) > 30 ) { - $post_name_abridged = substr( $post_name, 0, 14 ) . '…' . substr( $post_name, -14 ); - } else { - $post_name_abridged = $post_name; - } - } - - $post_name_html = '' . $post_name_abridged . ''; - $display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, urldecode( $permalink ) ); - $pretty_permalink = str_replace( array( '%pagename%', '%postname%' ), $post_name, urldecode( $permalink ) ); - - $return = '' . __( 'Permalink:' ) . "\n"; - $return .= '' . $display_link . "\n"; - $return .= '‎'; // Fix bi-directional text display defect in RTL languages. - $return .= '' . __( 'Edit' ) . "\n"; - $return .= '' . $post_name . "\n"; - } - - if ( isset( $view_post ) ) { - if ( 'draft' == $post->post_status ) { - $preview_link = set_url_scheme( get_permalink( $post->ID ) ); - /** This filter is documented in wp-admin/includes/meta-boxes.php */ - $preview_link = apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ), $post ); - $return .= "$view_post\n"; - } else { - if ( empty( $pretty_permalink ) ) { - $pretty_permalink = $permalink; - } - - $return .= "$view_post\n"; - } - } - - /** - * Filter the sample permalink HTML markup. - * - * @since 2.9.0 - * - * @param string $return Sample permalink HTML markup. - * @param int|WP_Post $id Post object or ID. - * @param string $new_title New sample permalink title. - * @param string $new_slug New sample permalink slug. - */ - $return = apply_filters( 'get_sample_permalink_html', $return, $id, $new_title, $new_slug ); - - return $return; -} - -/** - * Output HTML for the post thumbnail meta-box. - * - * @since 2.9.0 - * - * @global int $content_width - * @global array $_wp_additional_image_sizes - * - * @param int $thumbnail_id ID of the attachment used for thumbnail - * @param mixed $post The post ID or object associated with the thumbnail, defaults to global $post. - * @return string html - */ -function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) { - global $content_width, $_wp_additional_image_sizes; - - $post = get_post( $post ); - $post_type_object = get_post_type_object( $post->post_type ); - $set_thumbnail_link = '

    %s

    '; - $upload_iframe_src = get_upload_iframe_src( 'image', $post->ID ); - - $content = sprintf( $set_thumbnail_link, - esc_attr( $post_type_object->labels->set_featured_image ), - esc_url( $upload_iframe_src ), - esc_html( $post_type_object->labels->set_featured_image ) - ); - - if ( $thumbnail_id && get_post( $thumbnail_id ) ) { - $old_content_width = $content_width; - $content_width = 266; - if ( !isset( $_wp_additional_image_sizes['post-thumbnail'] ) ) - $thumbnail_html = wp_get_attachment_image( $thumbnail_id, array( $content_width, $content_width ) ); - else - $thumbnail_html = wp_get_attachment_image( $thumbnail_id, 'post-thumbnail' ); - if ( !empty( $thumbnail_html ) ) { - $ajax_nonce = wp_create_nonce( 'set_post_thumbnail-' . $post->ID ); - $content = sprintf( $set_thumbnail_link, - esc_attr( $post_type_object->labels->set_featured_image ), - esc_url( $upload_iframe_src ), - $thumbnail_html - ); - $content .= '

    ' . esc_html( $post_type_object->labels->remove_featured_image ) . '

    '; - } - $content_width = $old_content_width; - } - - /** - * Filter the admin post thumbnail HTML markup to return. - * - * @since 2.9.0 - * - * @param string $content Admin post thumbnail HTML markup. - * @param int $post_id Post ID. - */ - return apply_filters( 'admin_post_thumbnail_html', $content, $post->ID ); -} - -/** - * Check to see if the post is currently being edited by another user. - * - * @since 2.5.0 - * - * @param int $post_id ID of the post to check for editing - * @return integer False: not locked or locked by current user. Int: user ID of user with lock. - */ -function wp_check_post_lock( $post_id ) { - if ( !$post = get_post( $post_id ) ) - return false; - - if ( !$lock = get_post_meta( $post->ID, '_edit_lock', true ) ) - return false; - - $lock = explode( ':', $lock ); - $time = $lock[0]; - $user = isset( $lock[1] ) ? $lock[1] : get_post_meta( $post->ID, '_edit_last', true ); - - /** This filter is documented in wp-admin/includes/ajax-actions.php */ - $time_window = apply_filters( 'wp_check_post_lock_window', 150 ); - - if ( $time && $time > time() - $time_window && $user != get_current_user_id() ) - return $user; - return false; -} - -/** - * Mark the post as currently being edited by the current user - * - * @since 2.5.0 - * - * @param int $post_id ID of the post to being edited - * @return bool|array Returns false if the post doesn't exist of there is no current user, or - * an array of the lock time and the user ID. - */ -function wp_set_post_lock( $post_id ) { - if ( !$post = get_post( $post_id ) ) - return false; - if ( 0 == ($user_id = get_current_user_id()) ) - return false; - - $now = time(); - $lock = "$now:$user_id"; - - update_post_meta( $post->ID, '_edit_lock', $lock ); - return array( $now, $user_id ); -} - -/** - * Outputs the HTML for the notice to say that someone else is editing or has taken over editing of this post. - * - * @since 2.8.5 - * @return none - */ -function _admin_notice_post_locked() { - if ( ! $post = get_post() ) - return; - - $user = null; - if ( $user_id = wp_check_post_lock( $post->ID ) ) - $user = get_userdata( $user_id ); - - if ( $user ) { - - /** - * Filter whether to show the post locked dialog. - * - * Returning a falsey value to the filter will short-circuit displaying the dialog. - * - * @since 3.6.0 - * - * @param bool $display Whether to display the dialog. Default true. - * @param WP_User|bool $user WP_User object on success, false otherwise. - */ - if ( ! apply_filters( 'show_post_locked_dialog', true, $post, $user ) ) - return; - - $locked = true; - } else { - $locked = false; - } - - if ( $locked && ( $sendback = wp_get_referer() ) && - false === strpos( $sendback, 'post.php' ) && false === strpos( $sendback, 'post-new.php' ) ) { - - $sendback_text = __('Go back'); - } else { - $sendback = admin_url( 'edit.php' ); - - if ( 'post' != $post->post_type ) - $sendback = add_query_arg( 'post_type', $post->post_type, $sendback ); - - $sendback_text = get_post_type_object( $post->post_type )->labels->all_items; - } - - $hidden = $locked ? '' : ' hidden'; - - ?> -
    -
    -
    - post_type )->public ) { - $preview_link = set_url_scheme( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ); - - if ( 'publish' == $post->post_status || $user->ID != $post->post_author ) { - // Latest content is in autosave - $nonce = wp_create_nonce( 'post_preview_' . $post->ID ); - $preview_link = add_query_arg( array( 'preview_id' => $post->ID, 'preview_nonce' => $nonce ), $preview_link ); - } - } else { - $preview_link = ''; - } - - /** This filter is documented in wp-admin/includes/meta-boxes.php */ - $preview_link = apply_filters( 'preview_post_link', $preview_link, $post ); - - /** - * Filter whether to allow the post lock to be overridden. - * - * Returning a falsey value to the filter will disable the ability - * to override the post lock. - * - * @since 3.6.0 - * - * @param bool $override Whether to allow overriding post locks. Default true. - * @param WP_Post $post Post object. - * @param WP_User $user User object. - */ - $override = apply_filters( 'override_post_lock', true, $post, $user ); - $tab_last = $override ? '' : ' wp-tab-last'; - - ?> -
    -
    ID, 64 ); ?>
    -

    - display_name ) ); - ?> -

    - -

    - - - - - - -

    -
    - -
    -
    -

    -
    - - -

    - -

    -
    - -
    -
    - ID; - $new_autosave['post_author'] = $post_author; - - // If the new autosave has the same content as the post, delete the autosave. - $post = get_post( $post_id ); - $autosave_is_different = false; - foreach ( array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields() ) ) as $field ) { - if ( normalize_whitespace( $new_autosave[ $field ] ) != normalize_whitespace( $post->$field ) ) { - $autosave_is_different = true; - break; - } - } - - if ( ! $autosave_is_different ) { - wp_delete_post_revision( $old_autosave->ID ); - return 0; - } - - /** - * Fires before an autosave is stored. - * - * @since 4.1.0 - * - * @param array $new_autosave Post array - the autosave that is about to be saved. - */ - do_action( 'wp_creating_autosave', $new_autosave ); - - return wp_update_post( $new_autosave ); - } - - // _wp_put_post_revision() expects unescaped. - $post_data = wp_unslash( $post_data ); - - // Otherwise create the new autosave as a special post revision - return _wp_put_post_revision( $post_data, true ); -} - -/** - * Save draft or manually autosave for showing preview. - * - * @package WordPress - * @since 2.7.0 - * - * @return str URL to redirect to show the preview - */ -function post_preview() { - - $post_ID = (int) $_POST['post_ID']; - $_POST['ID'] = $post_ID; - - if ( ! $post = get_post( $post_ID ) ) { - wp_die( __( 'You are not allowed to edit this post.' ) ); - } - - if ( ! current_user_can( 'edit_post', $post->ID ) ) { - wp_die( __( 'You are not allowed to edit this post.' ) ); - } - - $is_autosave = false; - - if ( ! wp_check_post_lock( $post->ID ) && get_current_user_id() == $post->post_author && ( 'draft' == $post->post_status || 'auto-draft' == $post->post_status ) ) { - $saved_post_id = edit_post(); - } else { - $is_autosave = true; - - if ( isset( $_POST['post_status'] ) && 'auto-draft' == $_POST['post_status'] ) - $_POST['post_status'] = 'draft'; - - $saved_post_id = wp_create_post_autosave( $post->ID ); - } - - if ( is_wp_error( $saved_post_id ) ) - wp_die( $saved_post_id->get_error_message() ); - - $query_args = array( 'preview' => 'true' ); - - if ( $is_autosave && $saved_post_id ) { - $query_args['preview_id'] = $post->ID; - $query_args['preview_nonce'] = wp_create_nonce( 'post_preview_' . $post->ID ); - - if ( isset( $_POST['post_format'] ) ) - $query_args['post_format'] = empty( $_POST['post_format'] ) ? 'standard' : sanitize_key( $_POST['post_format'] ); - } - - $url = add_query_arg( $query_args, get_permalink( $post->ID ) ); - - /** This filter is documented in wp-admin/includes/meta-boxes.php */ - return apply_filters( 'preview_post_link', $url, $post ); -} - -/** - * Save a post submitted with XHR - * - * Intended for use with heartbeat and autosave.js - * - * @since 3.9.0 - * - * @param array $post_data Associative array of the submitted post data. - * @return mixed The value 0 or WP_Error on failure. The saved post ID on success. - * Te ID can be the draft post_id or the autosave revision post_id. - */ -function wp_autosave( $post_data ) { - // Back-compat - if ( ! defined( 'DOING_AUTOSAVE' ) ) - define( 'DOING_AUTOSAVE', true ); - - $post_id = (int) $post_data['post_id']; - $post_data['ID'] = $post_data['post_ID'] = $post_id; - - if ( false === wp_verify_nonce( $post_data['_wpnonce'], 'update-post_' . $post_id ) ) { - return new WP_Error( 'invalid_nonce', __( 'Error while saving.' ) ); - } - - $post = get_post( $post_id ); - - if ( ! current_user_can( 'edit_post', $post->ID ) ) { - return new WP_Error( 'edit_posts', __( 'You are not allowed to edit this item.' ) ); - } - - if ( 'auto-draft' == $post->post_status ) - $post_data['post_status'] = 'draft'; - - if ( $post_data['post_type'] != 'page' && ! empty( $post_data['catslist'] ) ) - $post_data['post_category'] = explode( ',', $post_data['catslist'] ); - - if ( ! wp_check_post_lock( $post->ID ) && get_current_user_id() == $post->post_author && ( 'auto-draft' == $post->post_status || 'draft' == $post->post_status ) ) { - // Drafts and auto-drafts are just overwritten by autosave for the same user if the post is not locked - return edit_post( wp_slash( $post_data ) ); - } else { - // Non drafts or other users drafts are not overwritten. The autosave is stored in a special post revision for each user. - return wp_create_post_autosave( wp_slash( $post_data ) ); - } -} diff --git a/wp-admin/includes/revision.php b/wp-admin/includes/revision.php deleted file mode 100644 index 67bb56c761..0000000000 --- a/wp-admin/includes/revision.php +++ /dev/null @@ -1,378 +0,0 @@ -post_parent !== $post->ID && $compare_from->ID !== $post->ID ) - return false; - if ( $compare_to->post_parent !== $post->ID && $compare_to->ID !== $post->ID ) - return false; - - if ( $compare_from && strtotime( $compare_from->post_date_gmt ) > strtotime( $compare_to->post_date_gmt ) ) { - $temp = $compare_from; - $compare_from = $compare_to; - $compare_to = $temp; - } - - // Add default title if title field is empty - if ( $compare_from && empty( $compare_from->post_title ) ) - $compare_from->post_title = __( '(no title)' ); - if ( empty( $compare_to->post_title ) ) - $compare_to->post_title = __( '(no title)' ); - - $return = array(); - - foreach ( _wp_post_revision_fields() as $field => $name ) { - /** - * Contextually filter a post revision field. - * - * The dynamic portion of the hook name, `$field`, corresponds to each of the post - * fields of the revision object being iterated over in a foreach statement. - * - * @since 3.6.0 - * - * @param string $compare_from->$field The current revision field to compare to or from. - * @param string $field The current revision field. - * @param WP_Post $compare_from The revision post object to compare to or from. - * @param string null The context of whether the current revision is the old - * or the new one. Values are 'to' or 'from'. - */ - $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'from' ) : ''; - - /** This filter is documented in wp-admin/includes/revision.php */ - $content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'to' ); - - $args = array( - 'show_split_view' => true - ); - - /** - * Filter revisions text diff options. - * - * Filter the options passed to {@see wp_text_diff()} when viewing a post revision. - * - * @since 4.1.0 - * - * @param array $args { - * Associative array of options to pass to {@see wp_text_diff()}. - * - * @type bool $show_split_view True for split view (two columns), false for - * un-split view (single column). Default true. - * } - * @param string $field The current revision field. - * @param WP_Post $compare_from The revision post to compare from. - * @param WP_Post $compare_to The revision post to compare to. - */ - $args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to ); - - $diff = wp_text_diff( $content_from, $content_to, $args ); - - if ( ! $diff && 'post_title' === $field ) { - // It's a better user experience to still show the Title, even if it didn't change. - // No, you didn't see this. - $diff = ''; - $diff .= ''; - $diff .= ''; - $diff .= '
    ' . esc_html( $compare_from->post_title ) . '' . esc_html( $compare_to->post_title ) . '
    '; - } - - if ( $diff ) { - $return[] = array( - 'id' => $field, - 'name' => $name, - 'diff' => $diff, - ); - } - } - - /** - * Filter the fields displayed in the post revision diff UI. - * - * @since 4.1.0 - * - * @param array $return Revision UI fields. Each item is an array of id, name and diff. - * @param WP_Post $compare_from The revision post to compare from. - * @param WP_Post $compare_to The revision post to compare to. - */ - return apply_filters( 'wp_get_revision_ui_diff', $return, $compare_from, $compare_to ); - -} - -/** - * Prepare revisions for JavaScript. - * - * @since 3.6.0 - * - * @param object|int $post The post object. Also accepts a post ID. - * @param int $selected_revision_id The selected revision ID. - * @param int $from Optional. The revision ID to compare from. - * - * @return array An associative array of revision data and related settings. - */ -function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null ) { - $post = get_post( $post ); - $authors = array(); - $now_gmt = time(); - - $revisions = wp_get_post_revisions( $post->ID, array( 'order' => 'ASC', 'check_enabled' => false ) ); - // If revisions are disabled, we only want autosaves and the current post. - if ( ! wp_revisions_enabled( $post ) ) { - foreach ( $revisions as $revision_id => $revision ) { - if ( ! wp_is_post_autosave( $revision ) ) - unset( $revisions[ $revision_id ] ); - } - $revisions = array( $post->ID => $post ) + $revisions; - } - - $show_avatars = get_option( 'show_avatars' ); - - cache_users( wp_list_pluck( $revisions, 'post_author' ) ); - - $can_restore = current_user_can( 'edit_post', $post->ID ); - $current_id = false; - - foreach ( $revisions as $revision ) { - $modified = strtotime( $revision->post_modified ); - $modified_gmt = strtotime( $revision->post_modified_gmt ); - if ( $can_restore ) { - $restore_link = str_replace( '&', '&', wp_nonce_url( - add_query_arg( - array( 'revision' => $revision->ID, - 'action' => 'restore' ), - admin_url( 'revision.php' ) - ), - "restore-post_{$revision->ID}" - ) ); - } - - if ( ! isset( $authors[ $revision->post_author ] ) ) { - $authors[ $revision->post_author ] = array( - 'id' => (int) $revision->post_author, - 'avatar' => $show_avatars ? get_avatar( $revision->post_author, 32 ) : '', - 'name' => get_the_author_meta( 'display_name', $revision->post_author ), - ); - } - - $autosave = (bool) wp_is_post_autosave( $revision ); - $current = ! $autosave && $revision->post_modified_gmt === $post->post_modified_gmt; - if ( $current && ! empty( $current_id ) ) { - // If multiple revisions have the same post_modified_gmt, highest ID is current. - if ( $current_id < $revision->ID ) { - $revisions[ $current_id ]['current'] = false; - $current_id = $revision->ID; - } else { - $current = false; - } - } elseif ( $current ) { - $current_id = $revision->ID; - } - - $revisions[ $revision->ID ] = array( - 'id' => $revision->ID, - 'title' => get_the_title( $post->ID ), - 'author' => $authors[ $revision->post_author ], - 'date' => date_i18n( __( 'M j, Y @ H:i' ), $modified ), - 'dateShort' => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), $modified ), - 'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $now_gmt ) ), - 'autosave' => $autosave, - 'current' => $current, - 'restoreUrl' => $can_restore ? $restore_link : false, - ); - } - - /** - * If we only have one revision, the initial revision is missing; This happens - * when we have an autsosave and the user has clicked 'View the Autosave' - */ - if ( 1 === sizeof( $revisions ) ) { - $revisions[ $post->ID ] = array( - 'id' => $post->ID, - 'title' => get_the_title( $post->ID ), - 'author' => $authors[ $post->post_author ], - 'date' => date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_modified ) ), - 'dateShort' => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), strtotime( $post->post_modified ) ), - 'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( strtotime( $post->post_modified_gmt ), $now_gmt ) ), - 'autosave' => false, - 'current' => true, - 'restoreUrl' => false, - ); - $current_id = $post->ID; - } - - /* - * If a post has been saved since the last revision (no revisioned fields - * were changed), we may not have a "current" revision. Mark the latest - * revision as "current". - */ - if ( empty( $current_id ) ) { - if ( $revisions[ $revision->ID ]['autosave'] ) { - $revision = end( $revisions ); - while ( $revision['autosave'] ) { - $revision = prev( $revisions ); - } - $current_id = $revision['id']; - } else { - $current_id = $revision->ID; - } - $revisions[ $current_id ]['current'] = true; - } - - // Now, grab the initial diff. - $compare_two_mode = is_numeric( $from ); - if ( ! $compare_two_mode ) { - $found = array_search( $selected_revision_id, array_keys( $revisions ) ); - if ( $found ) { - $from = array_keys( array_slice( $revisions, $found - 1, 1, true ) ); - $from = reset( $from ); - } else { - $from = 0; - } - } - - $from = absint( $from ); - - $diffs = array( array( - 'id' => $from . ':' . $selected_revision_id, - 'fields' => wp_get_revision_ui_diff( $post->ID, $from, $selected_revision_id ), - )); - - return array( - 'postId' => $post->ID, - 'nonce' => wp_create_nonce( 'revisions-ajax-nonce' ), - 'revisionData' => array_values( $revisions ), - 'to' => $selected_revision_id, - 'from' => $from, - 'diffData' => $diffs, - 'baseUrl' => parse_url( admin_url( 'revision.php' ), PHP_URL_PATH ), - 'compareTwoMode' => absint( $compare_two_mode ), // Apparently booleans are not allowed - 'revisionIds' => array_keys( $revisions ), - ); -} - -/** - * Print JavaScript templates required for the revisions experience. - * - * @since 4.1.0 - * - * @global WP_Post $post The global `$post` object. - */ -function wp_print_revision_templates() { - global $post; - ?> - - - - - - - - get_charset_collate(); - -/** - * Retrieve the SQL for creating database tables. - * - * @since 3.3.0 - * - * @global wpdb $wpdb - * - * @param string $scope Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all. - * @param int $blog_id Optional. The blog ID for which to retrieve SQL. Default is the current blog ID. - * @return string The SQL needed to create the requested tables. - */ -function wp_get_db_schema( $scope = 'all', $blog_id = null ) { - global $wpdb; - - $charset_collate = ''; - - if ( ! empty($wpdb->charset) ) - $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset"; - if ( ! empty($wpdb->collate) ) - $charset_collate .= " COLLATE $wpdb->collate"; - - if ( $blog_id && $blog_id != $wpdb->blogid ) - $old_blog_id = $wpdb->set_blog_id( $blog_id ); - - // Engage multisite if in the middle of turning it on from network.php. - $is_multisite = is_multisite() || ( defined( 'WP_INSTALLING_NETWORK' ) && WP_INSTALLING_NETWORK ); - - /* - * Indexes have a maximum size of 767 bytes. Historically, we haven't need to be concerned about that. - * As of 4.2, however, we moved to utf8mb4, which uses 4 bytes per character. This means that an index which - * used to have room for floor(767/3) = 255 characters, now only has room for floor(767/4) = 191 characters. - */ - $max_index_length = 191; - - // Blog specific tables. - $blog_tables = "CREATE TABLE $wpdb->terms ( - term_id bigint(20) unsigned NOT NULL auto_increment, - name varchar(200) NOT NULL default '', - slug varchar(200) NOT NULL default '', - term_group bigint(10) NOT NULL default 0, - PRIMARY KEY (term_id), - KEY slug (slug($max_index_length)), - KEY name (name($max_index_length)) -) $charset_collate; -CREATE TABLE $wpdb->term_taxonomy ( - term_taxonomy_id bigint(20) unsigned NOT NULL auto_increment, - term_id bigint(20) unsigned NOT NULL default 0, - taxonomy varchar(32) NOT NULL default '', - description longtext NOT NULL, - parent bigint(20) unsigned NOT NULL default 0, - count bigint(20) NOT NULL default 0, - PRIMARY KEY (term_taxonomy_id), - UNIQUE KEY term_id_taxonomy (term_id,taxonomy), - KEY taxonomy (taxonomy) -) $charset_collate; -CREATE TABLE $wpdb->term_relationships ( - object_id bigint(20) unsigned NOT NULL default 0, - term_taxonomy_id bigint(20) unsigned NOT NULL default 0, - term_order int(11) NOT NULL default 0, - PRIMARY KEY (object_id,term_taxonomy_id), - KEY term_taxonomy_id (term_taxonomy_id) -) $charset_collate; -CREATE TABLE $wpdb->commentmeta ( - meta_id bigint(20) unsigned NOT NULL auto_increment, - comment_id bigint(20) unsigned NOT NULL default '0', - meta_key varchar(255) default NULL, - meta_value longtext, - PRIMARY KEY (meta_id), - KEY comment_id (comment_id), - KEY meta_key (meta_key($max_index_length)) -) $charset_collate; -CREATE TABLE $wpdb->comments ( - comment_ID bigint(20) unsigned NOT NULL auto_increment, - comment_post_ID bigint(20) unsigned NOT NULL default '0', - comment_author tinytext NOT NULL, - comment_author_email varchar(100) NOT NULL default '', - comment_author_url varchar(200) NOT NULL default '', - comment_author_IP varchar(100) NOT NULL default '', - comment_date datetime NOT NULL default '0000-00-00 00:00:00', - comment_date_gmt datetime NOT NULL default '0000-00-00 00:00:00', - comment_content text NOT NULL, - comment_karma int(11) NOT NULL default '0', - comment_approved varchar(20) NOT NULL default '1', - comment_agent varchar(255) NOT NULL default '', - comment_type varchar(20) NOT NULL default '', - comment_parent bigint(20) unsigned NOT NULL default '0', - user_id bigint(20) unsigned NOT NULL default '0', - PRIMARY KEY (comment_ID), - KEY comment_post_ID (comment_post_ID), - KEY comment_approved_date_gmt (comment_approved,comment_date_gmt), - KEY comment_date_gmt (comment_date_gmt), - KEY comment_parent (comment_parent), - KEY comment_author_email (comment_author_email(10)) -) $charset_collate; -CREATE TABLE $wpdb->links ( - link_id bigint(20) unsigned NOT NULL auto_increment, - link_url varchar(255) NOT NULL default '', - link_name varchar(255) NOT NULL default '', - link_image varchar(255) NOT NULL default '', - link_target varchar(25) NOT NULL default '', - link_description varchar(255) NOT NULL default '', - link_visible varchar(20) NOT NULL default 'Y', - link_owner bigint(20) unsigned NOT NULL default '1', - link_rating int(11) NOT NULL default '0', - link_updated datetime NOT NULL default '0000-00-00 00:00:00', - link_rel varchar(255) NOT NULL default '', - link_notes mediumtext NOT NULL, - link_rss varchar(255) NOT NULL default '', - PRIMARY KEY (link_id), - KEY link_visible (link_visible) -) $charset_collate; -CREATE TABLE $wpdb->options ( - option_id bigint(20) unsigned NOT NULL auto_increment, - option_name varchar(64) NOT NULL default '', - option_value longtext NOT NULL, - autoload varchar(20) NOT NULL default 'yes', - PRIMARY KEY (option_id), - UNIQUE KEY option_name (option_name) -) $charset_collate; -CREATE TABLE $wpdb->postmeta ( - meta_id bigint(20) unsigned NOT NULL auto_increment, - post_id bigint(20) unsigned NOT NULL default '0', - meta_key varchar(255) default NULL, - meta_value longtext, - PRIMARY KEY (meta_id), - KEY post_id (post_id), - KEY meta_key (meta_key($max_index_length)) -) $charset_collate; -CREATE TABLE $wpdb->posts ( - ID bigint(20) unsigned NOT NULL auto_increment, - post_author bigint(20) unsigned NOT NULL default '0', - post_date datetime NOT NULL default '0000-00-00 00:00:00', - post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00', - post_content longtext NOT NULL, - post_title text NOT NULL, - post_excerpt text NOT NULL, - post_status varchar(20) NOT NULL default 'publish', - comment_status varchar(20) NOT NULL default 'open', - ping_status varchar(20) NOT NULL default 'open', - post_password varchar(20) NOT NULL default '', - post_name varchar(200) NOT NULL default '', - to_ping text NOT NULL, - pinged text NOT NULL, - post_modified datetime NOT NULL default '0000-00-00 00:00:00', - post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00', - post_content_filtered longtext NOT NULL, - post_parent bigint(20) unsigned NOT NULL default '0', - guid varchar(255) NOT NULL default '', - menu_order int(11) NOT NULL default '0', - post_type varchar(20) NOT NULL default 'post', - post_mime_type varchar(100) NOT NULL default '', - comment_count bigint(20) NOT NULL default '0', - PRIMARY KEY (ID), - KEY post_name (post_name($max_index_length)), - KEY type_status_date (post_type,post_status,post_date,ID), - KEY post_parent (post_parent), - KEY post_author (post_author) -) $charset_collate;\n"; - - // Single site users table. The multisite flavor of the users table is handled below. - $users_single_table = "CREATE TABLE $wpdb->users ( - ID bigint(20) unsigned NOT NULL auto_increment, - user_login varchar(60) NOT NULL default '', - user_pass varchar(64) NOT NULL default '', - user_nicename varchar(50) NOT NULL default '', - user_email varchar(100) NOT NULL default '', - user_url varchar(100) NOT NULL default '', - user_registered datetime NOT NULL default '0000-00-00 00:00:00', - user_activation_key varchar(60) NOT NULL default '', - user_status int(11) NOT NULL default '0', - display_name varchar(250) NOT NULL default '', - PRIMARY KEY (ID), - KEY user_login_key (user_login), - KEY user_nicename (user_nicename) -) $charset_collate;\n"; - - // Multisite users table - $users_multi_table = "CREATE TABLE $wpdb->users ( - ID bigint(20) unsigned NOT NULL auto_increment, - user_login varchar(60) NOT NULL default '', - user_pass varchar(64) NOT NULL default '', - user_nicename varchar(50) NOT NULL default '', - user_email varchar(100) NOT NULL default '', - user_url varchar(100) NOT NULL default '', - user_registered datetime NOT NULL default '0000-00-00 00:00:00', - user_activation_key varchar(60) NOT NULL default '', - user_status int(11) NOT NULL default '0', - display_name varchar(250) NOT NULL default '', - spam tinyint(2) NOT NULL default '0', - deleted tinyint(2) NOT NULL default '0', - PRIMARY KEY (ID), - KEY user_login_key (user_login), - KEY user_nicename (user_nicename) -) $charset_collate;\n"; - - // Usermeta. - $usermeta_table = "CREATE TABLE $wpdb->usermeta ( - umeta_id bigint(20) unsigned NOT NULL auto_increment, - user_id bigint(20) unsigned NOT NULL default '0', - meta_key varchar(255) default NULL, - meta_value longtext, - PRIMARY KEY (umeta_id), - KEY user_id (user_id), - KEY meta_key (meta_key($max_index_length)) -) $charset_collate;\n"; - - // Global tables - if ( $is_multisite ) - $global_tables = $users_multi_table . $usermeta_table; - else - $global_tables = $users_single_table . $usermeta_table; - - // Multisite global tables. - $ms_global_tables = "CREATE TABLE $wpdb->blogs ( - blog_id bigint(20) NOT NULL auto_increment, - site_id bigint(20) NOT NULL default '0', - domain varchar(200) NOT NULL default '', - path varchar(100) NOT NULL default '', - registered datetime NOT NULL default '0000-00-00 00:00:00', - last_updated datetime NOT NULL default '0000-00-00 00:00:00', - public tinyint(2) NOT NULL default '1', - archived tinyint(2) NOT NULL default '0', - mature tinyint(2) NOT NULL default '0', - spam tinyint(2) NOT NULL default '0', - deleted tinyint(2) NOT NULL default '0', - lang_id int(11) NOT NULL default '0', - PRIMARY KEY (blog_id), - KEY domain (domain(50),path(5)), - KEY lang_id (lang_id) -) $charset_collate; -CREATE TABLE $wpdb->blog_versions ( - blog_id bigint(20) NOT NULL default '0', - db_version varchar(20) NOT NULL default '', - last_updated datetime NOT NULL default '0000-00-00 00:00:00', - PRIMARY KEY (blog_id), - KEY db_version (db_version) -) $charset_collate; -CREATE TABLE $wpdb->registration_log ( - ID bigint(20) NOT NULL auto_increment, - email varchar(255) NOT NULL default '', - IP varchar(30) NOT NULL default '', - blog_id bigint(20) NOT NULL default '0', - date_registered datetime NOT NULL default '0000-00-00 00:00:00', - PRIMARY KEY (ID), - KEY IP (IP) -) $charset_collate; -CREATE TABLE $wpdb->site ( - id bigint(20) NOT NULL auto_increment, - domain varchar(200) NOT NULL default '', - path varchar(100) NOT NULL default '', - PRIMARY KEY (id), - KEY domain (domain(140),path(51)) -) $charset_collate; -CREATE TABLE $wpdb->sitemeta ( - meta_id bigint(20) NOT NULL auto_increment, - site_id bigint(20) NOT NULL default '0', - meta_key varchar(255) default NULL, - meta_value longtext, - PRIMARY KEY (meta_id), - KEY meta_key (meta_key($max_index_length)), - KEY site_id (site_id) -) $charset_collate; -CREATE TABLE $wpdb->signups ( - signup_id bigint(20) NOT NULL auto_increment, - domain varchar(200) NOT NULL default '', - path varchar(100) NOT NULL default '', - title longtext NOT NULL, - user_login varchar(60) NOT NULL default '', - user_email varchar(100) NOT NULL default '', - registered datetime NOT NULL default '0000-00-00 00:00:00', - activated datetime NOT NULL default '0000-00-00 00:00:00', - active tinyint(1) NOT NULL default '0', - activation_key varchar(50) NOT NULL default '', - meta longtext, - PRIMARY KEY (signup_id), - KEY activation_key (activation_key), - KEY user_email (user_email), - KEY user_login_email (user_login,user_email), - KEY domain_path (domain(140),path(51)) -) $charset_collate;"; - - switch ( $scope ) { - case 'blog' : - $queries = $blog_tables; - break; - case 'global' : - $queries = $global_tables; - if ( $is_multisite ) - $queries .= $ms_global_tables; - break; - case 'ms_global' : - $queries = $ms_global_tables; - break; - case 'all' : - default: - $queries = $global_tables . $blog_tables; - if ( $is_multisite ) - $queries .= $ms_global_tables; - break; - } - - if ( isset( $old_blog_id ) ) - $wpdb->set_blog_id( $old_blog_id ); - - return $queries; -} - -// Populate for back compat. -$wp_queries = wp_get_db_schema( 'all' ); - -/** - * Create WordPress options and set the default values. - * - * @since 1.5.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * @global int $wp_db_version - * @global int $wp_current_db_version - */ -function populate_options() { - global $wpdb, $wp_db_version, $wp_current_db_version; - - $guessurl = wp_guess_url(); - /** - * Fires before creating WordPress options and populating their default values. - * - * @since 2.6.0 - */ - do_action( 'populate_options' ); - - if ( ini_get('safe_mode') ) { - // Safe mode can break mkdir() so use a flat structure by default. - $uploads_use_yearmonth_folders = 0; - } else { - $uploads_use_yearmonth_folders = 1; - } - - $template = WP_DEFAULT_THEME; - // If default theme is a child theme, we need to get its template - $theme = wp_get_theme( $template ); - if ( ! $theme->errors() ) - $template = $theme->get_template(); - - $timezone_string = ''; - $gmt_offset = 0; - /* translators: default GMT offset or timezone string. Must be either a valid offset (-12 to 14) - or a valid timezone string (America/New_York). See http://us3.php.net/manual/en/timezones.php - for all timezone strings supported by PHP. - */ - $offset_or_tz = _x( '0', 'default GMT offset or timezone string' ); - if ( is_numeric( $offset_or_tz ) ) - $gmt_offset = $offset_or_tz; - elseif ( $offset_or_tz && in_array( $offset_or_tz, timezone_identifiers_list() ) ) - $timezone_string = $offset_or_tz; - - $options = array( - 'siteurl' => $guessurl, - 'home' => $guessurl, - 'blogname' => __('My Site'), - /* translators: blog tagline */ - 'blogdescription' => __('Just another WordPress site'), - 'users_can_register' => 0, - 'admin_email' => 'you@example.com', - /* translators: default start of the week. 0 = Sunday, 1 = Monday */ - 'start_of_week' => _x( '1', 'start of week' ), - 'use_balanceTags' => 0, - 'use_smilies' => 1, - 'require_name_email' => 1, - 'comments_notify' => 1, - 'posts_per_rss' => 10, - 'rss_use_excerpt' => 0, - 'mailserver_url' => 'mail.example.com', - 'mailserver_login' => 'login@example.com', - 'mailserver_pass' => 'password', - 'mailserver_port' => 110, - 'default_category' => 1, - 'default_comment_status' => 'open', - 'default_ping_status' => 'open', - 'default_pingback_flag' => 1, - 'posts_per_page' => 10, - /* translators: default date format, see http://php.net/date */ - 'date_format' => __('F j, Y'), - /* translators: default time format, see http://php.net/date */ - 'time_format' => __('g:i a'), - /* translators: links last updated date format, see http://php.net/date */ - 'links_updated_date_format' => __('F j, Y g:i a'), - 'comment_moderation' => 0, - 'moderation_notify' => 1, - 'permalink_structure' => '', - 'gzipcompression' => 0, - 'hack_file' => 0, - 'blog_charset' => 'UTF-8', - 'moderation_keys' => '', - 'active_plugins' => array(), - 'category_base' => '', - 'ping_sites' => 'http://rpc.pingomatic.com/', - 'advanced_edit' => 0, - 'comment_max_links' => 2, - 'gmt_offset' => $gmt_offset, - - // 1.5 - 'default_email_category' => 1, - 'recently_edited' => '', - 'template' => $template, - 'stylesheet' => WP_DEFAULT_THEME, - 'comment_whitelist' => 1, - 'blacklist_keys' => '', - 'comment_registration' => 0, - 'html_type' => 'text/html', - - // 1.5.1 - 'use_trackback' => 0, - - // 2.0 - 'default_role' => 'subscriber', - 'db_version' => $wp_db_version, - - // 2.0.1 - 'uploads_use_yearmonth_folders' => $uploads_use_yearmonth_folders, - 'upload_path' => '', - - // 2.1 - 'blog_public' => '1', - 'default_link_category' => 2, - 'show_on_front' => 'posts', - - // 2.2 - 'tag_base' => '', - - // 2.5 - 'show_avatars' => '1', - 'avatar_rating' => 'G', - 'upload_url_path' => '', - 'thumbnail_size_w' => 150, - 'thumbnail_size_h' => 150, - 'thumbnail_crop' => 1, - 'medium_size_w' => 300, - 'medium_size_h' => 300, - - // 2.6 - 'avatar_default' => 'mystery', - - // 2.7 - 'large_size_w' => 1024, - 'large_size_h' => 1024, - 'image_default_link_type' => 'file', - 'image_default_size' => '', - 'image_default_align' => '', - 'close_comments_for_old_posts' => 0, - 'close_comments_days_old' => 14, - 'thread_comments' => 1, - 'thread_comments_depth' => 5, - 'page_comments' => 0, - 'comments_per_page' => 50, - 'default_comments_page' => 'newest', - 'comment_order' => 'asc', - 'sticky_posts' => array(), - 'widget_categories' => array(), - 'widget_text' => array(), - 'widget_rss' => array(), - 'uninstall_plugins' => array(), - - // 2.8 - 'timezone_string' => $timezone_string, - - // 3.0 - 'page_for_posts' => 0, - 'page_on_front' => 0, - - // 3.1 - 'default_post_format' => 0, - - // 3.5 - 'link_manager_enabled' => 0, - - // 4.3.0 - 'finished_splitting_shared_terms' => 1, - ); - - // 3.3 - if ( ! is_multisite() ) { - $options['initial_db_version'] = ! empty( $wp_current_db_version ) && $wp_current_db_version < $wp_db_version - ? $wp_current_db_version : $wp_db_version; - } - - // 3.0 multisite - if ( is_multisite() ) { - /* translators: blog tagline */ - $options[ 'blogdescription' ] = sprintf(__('Just another %s site'), get_current_site()->site_name ); - $options[ 'permalink_structure' ] = '/%year%/%monthnum%/%day%/%postname%/'; - } - - // Set autoload to no for these options - $fat_options = array( 'moderation_keys', 'recently_edited', 'blacklist_keys', 'uninstall_plugins' ); - - $keys = "'" . implode( "', '", array_keys( $options ) ) . "'"; - $existing_options = $wpdb->get_col( "SELECT option_name FROM $wpdb->options WHERE option_name in ( $keys )" ); - - $insert = ''; - foreach ( $options as $option => $value ) { - if ( in_array($option, $existing_options) ) - continue; - if ( in_array($option, $fat_options) ) - $autoload = 'no'; - else - $autoload = 'yes'; - - if ( is_array($value) ) - $value = serialize($value); - if ( !empty($insert) ) - $insert .= ', '; - $insert .= $wpdb->prepare( "(%s, %s, %s)", $option, $value, $autoload ); - } - - if ( !empty($insert) ) - $wpdb->query("INSERT INTO $wpdb->options (option_name, option_value, autoload) VALUES " . $insert); - - // In case it is set, but blank, update "home". - if ( !__get_option('home') ) update_option('home', $guessurl); - - // Delete unused options. - $unusedoptions = array( - 'blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', - 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', - 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'fileupload_allowedusers', - 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', - 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', - 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', - 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', - 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', - 'links_recently_updated_time', 'links_recently_updated_prepend', 'links_recently_updated_append', - 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', - 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url', 'new_users_can_blog', '_wpnonce', - '_wp_http_referer', 'Update', 'action', 'rich_editing', 'autosave_interval', 'deactivated_plugins', - 'can_compress_scripts', 'page_uris', 'update_core', 'update_plugins', 'update_themes', 'doing_cron', - 'random_seed', 'rss_excerpt_length', 'secret', 'use_linksupdate', 'default_comment_status_page', - 'wporg_popular_tags', 'what_to_show', 'rss_language', 'language', 'enable_xmlrpc', 'enable_app', - 'embed_autourls', 'default_post_edit_rows', - ); - foreach ( $unusedoptions as $option ) - delete_option($option); - - // Delete obsolete magpie stuff. - $wpdb->query("DELETE FROM $wpdb->options WHERE option_name REGEXP '^rss_[0-9a-f]{32}(_ts)?$'"); - - /* - * Deletes all expired transients. The multi-table delete syntax is used - * to delete the transient record from table a, and the corresponding - * transient_timeout record from table b. - */ - $time = time(); - $sql = "DELETE a, b FROM $wpdb->options a, $wpdb->options b - WHERE a.option_name LIKE %s - AND a.option_name NOT LIKE %s - AND b.option_name = CONCAT( '_transient_timeout_', SUBSTRING( a.option_name, 12 ) ) - AND b.option_value < %d"; - $wpdb->query( $wpdb->prepare( $sql, $wpdb->esc_like( '_transient_' ) . '%', $wpdb->esc_like( '_transient_timeout_' ) . '%', $time ) ); - - if ( is_main_site() && is_main_network() ) { - $sql = "DELETE a, b FROM $wpdb->options a, $wpdb->options b - WHERE a.option_name LIKE %s - AND a.option_name NOT LIKE %s - AND b.option_name = CONCAT( '_site_transient_timeout_', SUBSTRING( a.option_name, 17 ) ) - AND b.option_value < %d"; - $wpdb->query( $wpdb->prepare( $sql, $wpdb->esc_like( '_site_transient_' ) . '%', $wpdb->esc_like( '_site_transient_timeout_' ) . '%', $time ) ); - } -} - -/** - * Execute WordPress role creation for the various WordPress versions. - * - * @since 2.0.0 - */ -function populate_roles() { - populate_roles_160(); - populate_roles_210(); - populate_roles_230(); - populate_roles_250(); - populate_roles_260(); - populate_roles_270(); - populate_roles_280(); - populate_roles_300(); -} - -/** - * Create the roles for WordPress 2.0 - * - * @since 2.0.0 - */ -function populate_roles_160() { - // Add roles - - // Dummy gettext calls to get strings in the catalog. - /* translators: user role */ - _x('Administrator', 'User role'); - /* translators: user role */ - _x('Editor', 'User role'); - /* translators: user role */ - _x('Author', 'User role'); - /* translators: user role */ - _x('Contributor', 'User role'); - /* translators: user role */ - _x('Subscriber', 'User role'); - - add_role('administrator', 'Administrator'); - add_role('editor', 'Editor'); - add_role('author', 'Author'); - add_role('contributor', 'Contributor'); - add_role('subscriber', 'Subscriber'); - - // Add caps for Administrator role - $role = get_role('administrator'); - $role->add_cap('switch_themes'); - $role->add_cap('edit_themes'); - $role->add_cap('activate_plugins'); - $role->add_cap('edit_plugins'); - $role->add_cap('edit_users'); - $role->add_cap('edit_files'); - $role->add_cap('manage_options'); - $role->add_cap('moderate_comments'); - $role->add_cap('manage_categories'); - $role->add_cap('manage_links'); - $role->add_cap('upload_files'); - $role->add_cap('import'); - $role->add_cap('unfiltered_html'); - $role->add_cap('edit_posts'); - $role->add_cap('edit_others_posts'); - $role->add_cap('edit_published_posts'); - $role->add_cap('publish_posts'); - $role->add_cap('edit_pages'); - $role->add_cap('read'); - $role->add_cap('level_10'); - $role->add_cap('level_9'); - $role->add_cap('level_8'); - $role->add_cap('level_7'); - $role->add_cap('level_6'); - $role->add_cap('level_5'); - $role->add_cap('level_4'); - $role->add_cap('level_3'); - $role->add_cap('level_2'); - $role->add_cap('level_1'); - $role->add_cap('level_0'); - - // Add caps for Editor role - $role = get_role('editor'); - $role->add_cap('moderate_comments'); - $role->add_cap('manage_categories'); - $role->add_cap('manage_links'); - $role->add_cap('upload_files'); - $role->add_cap('unfiltered_html'); - $role->add_cap('edit_posts'); - $role->add_cap('edit_others_posts'); - $role->add_cap('edit_published_posts'); - $role->add_cap('publish_posts'); - $role->add_cap('edit_pages'); - $role->add_cap('read'); - $role->add_cap('level_7'); - $role->add_cap('level_6'); - $role->add_cap('level_5'); - $role->add_cap('level_4'); - $role->add_cap('level_3'); - $role->add_cap('level_2'); - $role->add_cap('level_1'); - $role->add_cap('level_0'); - - // Add caps for Author role - $role = get_role('author'); - $role->add_cap('upload_files'); - $role->add_cap('edit_posts'); - $role->add_cap('edit_published_posts'); - $role->add_cap('publish_posts'); - $role->add_cap('read'); - $role->add_cap('level_2'); - $role->add_cap('level_1'); - $role->add_cap('level_0'); - - // Add caps for Contributor role - $role = get_role('contributor'); - $role->add_cap('edit_posts'); - $role->add_cap('read'); - $role->add_cap('level_1'); - $role->add_cap('level_0'); - - // Add caps for Subscriber role - $role = get_role('subscriber'); - $role->add_cap('read'); - $role->add_cap('level_0'); -} - -/** - * Create and modify WordPress roles for WordPress 2.1. - * - * @since 2.1.0 - */ -function populate_roles_210() { - $roles = array('administrator', 'editor'); - foreach ($roles as $role) { - $role = get_role($role); - if ( empty($role) ) - continue; - - $role->add_cap('edit_others_pages'); - $role->add_cap('edit_published_pages'); - $role->add_cap('publish_pages'); - $role->add_cap('delete_pages'); - $role->add_cap('delete_others_pages'); - $role->add_cap('delete_published_pages'); - $role->add_cap('delete_posts'); - $role->add_cap('delete_others_posts'); - $role->add_cap('delete_published_posts'); - $role->add_cap('delete_private_posts'); - $role->add_cap('edit_private_posts'); - $role->add_cap('read_private_posts'); - $role->add_cap('delete_private_pages'); - $role->add_cap('edit_private_pages'); - $role->add_cap('read_private_pages'); - } - - $role = get_role('administrator'); - if ( ! empty($role) ) { - $role->add_cap('delete_users'); - $role->add_cap('create_users'); - } - - $role = get_role('author'); - if ( ! empty($role) ) { - $role->add_cap('delete_posts'); - $role->add_cap('delete_published_posts'); - } - - $role = get_role('contributor'); - if ( ! empty($role) ) { - $role->add_cap('delete_posts'); - } -} - -/** - * Create and modify WordPress roles for WordPress 2.3. - * - * @since 2.3.0 - */ -function populate_roles_230() { - $role = get_role( 'administrator' ); - - if ( !empty( $role ) ) { - $role->add_cap( 'unfiltered_upload' ); - } -} - -/** - * Create and modify WordPress roles for WordPress 2.5. - * - * @since 2.5.0 - */ -function populate_roles_250() { - $role = get_role( 'administrator' ); - - if ( !empty( $role ) ) { - $role->add_cap( 'edit_dashboard' ); - } -} - -/** - * Create and modify WordPress roles for WordPress 2.6. - * - * @since 2.6.0 - */ -function populate_roles_260() { - $role = get_role( 'administrator' ); - - if ( !empty( $role ) ) { - $role->add_cap( 'update_plugins' ); - $role->add_cap( 'delete_plugins' ); - } -} - -/** - * Create and modify WordPress roles for WordPress 2.7. - * - * @since 2.7.0 - */ -function populate_roles_270() { - $role = get_role( 'administrator' ); - - if ( !empty( $role ) ) { - $role->add_cap( 'install_plugins' ); - $role->add_cap( 'update_themes' ); - } -} - -/** - * Create and modify WordPress roles for WordPress 2.8. - * - * @since 2.8.0 - */ -function populate_roles_280() { - $role = get_role( 'administrator' ); - - if ( !empty( $role ) ) { - $role->add_cap( 'install_themes' ); - } -} - -/** - * Create and modify WordPress roles for WordPress 3.0. - * - * @since 3.0.0 - */ -function populate_roles_300() { - $role = get_role( 'administrator' ); - - if ( !empty( $role ) ) { - $role->add_cap( 'update_core' ); - $role->add_cap( 'list_users' ); - $role->add_cap( 'remove_users' ); - - /* - * Never used, will be removed. create_users or promote_users - * is the capability you're looking for. - */ - $role->add_cap( 'add_users' ); - - $role->add_cap( 'promote_users' ); - $role->add_cap( 'edit_theme_options' ); - $role->add_cap( 'delete_themes' ); - $role->add_cap( 'export' ); - } -} - -/** - * Install Network. - * - * @since 3.0.0 - * - */ -if ( !function_exists( 'install_network' ) ) : -function install_network() { - if ( ! defined( 'WP_INSTALLING_NETWORK' ) ) - define( 'WP_INSTALLING_NETWORK', true ); - - dbDelta( wp_get_db_schema( 'global' ) ); -} -endif; - -/** - * Populate network settings. - * - * @since 3.0.0 - * - * @global wpdb $wpdb - * @global object $current_site - * @global int $wp_db_version - * @global WP_Rewrite $wp_rewrite - * - * @param int $network_id ID of network to populate. - * @return bool|WP_Error True on success, or WP_Error on warning (with the install otherwise successful, - * so the error code must be checked) or failure. - */ -function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false ) { - global $wpdb, $current_site, $wp_db_version, $wp_rewrite; - - $errors = new WP_Error(); - if ( '' == $domain ) - $errors->add( 'empty_domain', __( 'You must provide a domain name.' ) ); - if ( '' == $site_name ) - $errors->add( 'empty_sitename', __( 'You must provide a name for your network of sites.' ) ); - - // Check for network collision. - if ( $network_id == $wpdb->get_var( $wpdb->prepare( "SELECT id FROM $wpdb->site WHERE id = %d", $network_id ) ) ) - $errors->add( 'siteid_exists', __( 'The network already exists.' ) ); - - $site_user = get_user_by( 'email', $email ); - if ( ! is_email( $email ) ) - $errors->add( 'invalid_email', __( 'You must provide a valid e-mail address.' ) ); - - if ( $errors->get_error_code() ) - return $errors; - - // Set up site tables. - $template = get_option( 'template' ); - $stylesheet = get_option( 'stylesheet' ); - $allowed_themes = array( $stylesheet => true ); - if ( $template != $stylesheet ) - $allowed_themes[ $template ] = true; - if ( WP_DEFAULT_THEME != $stylesheet && WP_DEFAULT_THEME != $template ) - $allowed_themes[ WP_DEFAULT_THEME ] = true; - - if ( 1 == $network_id ) { - $wpdb->insert( $wpdb->site, array( 'domain' => $domain, 'path' => $path ) ); - $network_id = $wpdb->insert_id; - } else { - $wpdb->insert( $wpdb->site, array( 'domain' => $domain, 'path' => $path, 'id' => $network_id ) ); - } - - wp_cache_delete( 'networks_have_paths', 'site-options' ); - - if ( !is_multisite() ) { - $site_admins = array( $site_user->user_login ); - $users = get_users( array( 'fields' => array( 'ID', 'user_login' ) ) ); - if ( $users ) { - foreach ( $users as $user ) { - if ( is_super_admin( $user->ID ) && !in_array( $user->user_login, $site_admins ) ) - $site_admins[] = $user->user_login; - } - } - } else { - $site_admins = get_site_option( 'site_admins' ); - } - - /* translators: Do not translate USERNAME, SITE_NAME, BLOG_URL, PASSWORD: those are placeholders. */ - $welcome_email = __( 'Howdy USERNAME, - -Your new SITE_NAME site has been successfully set up at: -BLOG_URL - -You can log in to the administrator account with the following information: - -Username: USERNAME -Password: PASSWORD -Log in here: BLOG_URLwp-login.php - -We hope you enjoy your new site. Thanks! - ---The Team @ SITE_NAME' ); - - $misc_exts = array( - // Images. - 'jpg', 'jpeg', 'png', 'gif', - // Video. - 'mov', 'avi', 'mpg', '3gp', '3g2', - // "audio". - 'midi', 'mid', - // Miscellaneous. - 'pdf', 'doc', 'ppt', 'odt', 'pptx', 'docx', 'pps', 'ppsx', 'xls', 'xlsx', 'key', - ); - $audio_exts = wp_get_audio_extensions(); - $video_exts = wp_get_video_extensions(); - $upload_filetypes = array_unique( array_merge( $misc_exts, $audio_exts, $video_exts ) ); - - $sitemeta = array( - 'site_name' => $site_name, - 'admin_email' => $site_user->user_email, - 'admin_user_id' => $site_user->ID, - 'registration' => 'none', - 'upload_filetypes' => implode( ' ', $upload_filetypes ), - 'blog_upload_space' => 100, - 'fileupload_maxk' => 1500, - 'site_admins' => $site_admins, - 'allowedthemes' => $allowed_themes, - 'illegal_names' => array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator', 'files' ), - 'wpmu_upgrade_site' => $wp_db_version, - 'welcome_email' => $welcome_email, - 'first_post' => __( 'Welcome to SITE_NAME. This is your first post. Edit or delete it, then start blogging!' ), - // @todo - network admins should have a method of editing the network siteurl (used for cookie hash) - 'siteurl' => get_option( 'siteurl' ) . '/', - 'add_new_users' => '0', - 'upload_space_check_disabled' => is_multisite() ? get_site_option( 'upload_space_check_disabled' ) : '1', - 'subdomain_install' => intval( $subdomain_install ), - 'global_terms_enabled' => global_terms_enabled() ? '1' : '0', - 'ms_files_rewriting' => is_multisite() ? get_site_option( 'ms_files_rewriting' ) : '0', - 'initial_db_version' => get_option( 'initial_db_version' ), - 'active_sitewide_plugins' => array(), - 'WPLANG' => get_locale(), - ); - if ( ! $subdomain_install ) - $sitemeta['illegal_names'][] = 'blog'; - - /** - * Filter meta for a network on creation. - * - * @since 3.7.0 - * - * @param array $sitemeta Associative array of network meta keys and values to be inserted. - * @param int $network_id ID of network to populate. - */ - $sitemeta = apply_filters( 'populate_network_meta', $sitemeta, $network_id ); - - $insert = ''; - foreach ( $sitemeta as $meta_key => $meta_value ) { - if ( is_array( $meta_value ) ) - $meta_value = serialize( $meta_value ); - if ( !empty( $insert ) ) - $insert .= ', '; - $insert .= $wpdb->prepare( "( %d, %s, %s)", $network_id, $meta_key, $meta_value ); - } - $wpdb->query( "INSERT INTO $wpdb->sitemeta ( site_id, meta_key, meta_value ) VALUES " . $insert ); - - /* - * When upgrading from single to multisite, assume the current site will - * become the main site of the network. When using populate_network() - * to create another network in an existing multisite environment, skip - * these steps since the main site of the new network has not yet been - * created. - */ - if ( ! is_multisite() ) { - $current_site = new stdClass; - $current_site->domain = $domain; - $current_site->path = $path; - $current_site->site_name = ucfirst( $domain ); - $wpdb->insert( $wpdb->blogs, array( 'site_id' => $network_id, 'blog_id' => 1, 'domain' => $domain, 'path' => $path, 'registered' => current_time( 'mysql' ) ) ); - $current_site->blog_id = $blog_id = $wpdb->insert_id; - update_user_meta( $site_user->ID, 'source_domain', $domain ); - update_user_meta( $site_user->ID, 'primary_blog', $blog_id ); - - if ( $subdomain_install ) - $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); - else - $wp_rewrite->set_permalink_structure( '/blog/%year%/%monthnum%/%day%/%postname%/' ); - - flush_rewrite_rules(); - - if ( ! $subdomain_install ) - return true; - - $vhost_ok = false; - $errstr = ''; - $hostname = substr( md5( time() ), 0, 6 ) . '.' . $domain; // Very random hostname! - $page = wp_remote_get( 'http://' . $hostname, array( 'timeout' => 5, 'httpversion' => '1.1' ) ); - if ( is_wp_error( $page ) ) - $errstr = $page->get_error_message(); - elseif ( 200 == wp_remote_retrieve_response_code( $page ) ) - $vhost_ok = true; - - if ( ! $vhost_ok ) { - $msg = '

    ' . __( 'Warning! Wildcard DNS may not be configured correctly!' ) . '

    '; - $msg .= '

    ' . sprintf( __( 'The installer attempted to contact a random hostname (%1$s) on your domain.' ), $hostname ); - if ( ! empty ( $errstr ) ) - $msg .= ' ' . sprintf( __( 'This resulted in an error message: %s' ), '' . $errstr . '' ); - $msg .= '

    '; - $msg .= '

    ' . __( 'To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a * hostname record pointing at your web server in your DNS configuration tool.' ) . '

    '; - $msg .= '

    ' . __( 'You can still use your site but any subdomain you create may not be accessible. If you know your DNS is correct, ignore this message.' ) . '

    '; - return new WP_Error( 'no_wildcard_dns', $msg ); - } - } - - return true; -} diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php deleted file mode 100644 index fba5dc9da0..0000000000 --- a/wp-admin/includes/screen.php +++ /dev/null @@ -1,1220 +0,0 @@ - UI String - */ -function get_column_headers( $screen ) { - if ( is_string( $screen ) ) - $screen = convert_to_screen( $screen ); - - static $column_headers = array(); - - if ( ! isset( $column_headers[ $screen->id ] ) ) { - - /** - * Filter the column headers for a list table on a specific screen. - * - * The dynamic portion of the hook name, `$screen->id`, refers to the - * ID of a specific screen. For example, the screen ID for the Posts - * list table is edit-post, so the filter for that screen would be - * manage_edit-post_columns. - * - * @since 3.0.0 - * - * @param array $columns An array of column headers. Default empty. - */ - $column_headers[ $screen->id ] = apply_filters( "manage_{$screen->id}_columns", array() ); - } - - return $column_headers[ $screen->id ]; -} - -/** - * Get a list of hidden columns. - * - * @since 2.7.0 - * - * @param string|WP_Screen $screen The screen you want the hidden columns for - * @return array - */ -function get_hidden_columns( $screen ) { - if ( is_string( $screen ) ) - $screen = convert_to_screen( $screen ); - - return (array) get_user_option( 'manage' . $screen->id . 'columnshidden' ); -} - -/** - * Prints the meta box preferences for screen meta. - * - * @since 2.7.0 - * - * @global array $wp_meta_boxes - * - * @param WP_Screen $screen - */ -function meta_box_prefs( $screen ) { - global $wp_meta_boxes; - - if ( is_string( $screen ) ) - $screen = convert_to_screen( $screen ); - - if ( empty($wp_meta_boxes[$screen->id]) ) - return; - - $hidden = get_hidden_meta_boxes($screen); - - foreach ( array_keys( $wp_meta_boxes[ $screen->id ] ) as $context ) { - foreach ( array( 'high', 'core', 'default', 'low' ) as $priority ) { - if ( ! isset( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] ) ) { - continue; - } - foreach ( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] as $box ) { - if ( false == $box || ! $box['title'] ) - continue; - // Submit box cannot be hidden - if ( 'submitdiv' == $box['id'] || 'linksubmitdiv' == $box['id'] ) - continue; - $box_id = $box['id']; - echo '\n"; - } - } - } -} - -/** - * Get Hidden Meta Boxes - * - * @since 2.7.0 - * - * @param string|WP_Screen $screen Screen identifier - * @return array Hidden Meta Boxes - */ -function get_hidden_meta_boxes( $screen ) { - if ( is_string( $screen ) ) - $screen = convert_to_screen( $screen ); - - $hidden = get_user_option( "metaboxhidden_{$screen->id}" ); - - $use_defaults = ! is_array( $hidden ); - - // Hide slug boxes by default - if ( $use_defaults ) { - $hidden = array(); - if ( 'post' == $screen->base ) { - if ( 'post' == $screen->post_type || 'page' == $screen->post_type || 'attachment' == $screen->post_type ) - $hidden = array('slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv'); - else - $hidden = array( 'slugdiv' ); - } - - /** - * Filter the default list of hidden meta boxes. - * - * @since 3.1.0 - * - * @param array $hidden An array of meta boxes hidden by default. - * @param WP_Screen $screen WP_Screen object of the current screen. - */ - $hidden = apply_filters( 'default_hidden_meta_boxes', $hidden, $screen ); - } - - /** - * Filter the list of hidden meta boxes. - * - * @since 3.3.0 - * - * @param array $hidden An array of hidden meta boxes. - * @param WP_Screen $screen WP_Screen object of the current screen. - * @param bool $use_defaults Whether to show the default meta boxes. - * Default true. - */ - return apply_filters( 'hidden_meta_boxes', $hidden, $screen, $use_defaults ); -} - -/** - * Register and configure an admin screen option - * - * @since 3.1.0 - * - * @param string $option An option name. - * @param mixed $args Option-dependent arguments. - */ -function add_screen_option( $option, $args = array() ) { - $current_screen = get_current_screen(); - - if ( ! $current_screen ) - return; - - $current_screen->add_option( $option, $args ); -} - -/** - * Get the current screen object - * - * @since 3.1.0 - * - * @global WP_Screen $current_screen - * - * @return WP_Screen Current screen object - */ -function get_current_screen() { - global $current_screen; - - if ( ! isset( $current_screen ) ) - return null; - - return $current_screen; -} - -/** - * Set the current screen object - * - * @since 3.0.0 - * - * @param mixed $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen, - * or an existing screen object. - */ -function set_current_screen( $hook_name = '' ) { - WP_Screen::get( $hook_name )->set_current_screen(); -} - -/** - * A class representing the admin screen. - * - * @since 3.3.0 - * @access public - */ -final class WP_Screen { - /** - * Any action associated with the screen. 'add' for *-add.php and *-new.php screens. Empty otherwise. - * - * @since 3.3.0 - * @var string - * @access public - */ - public $action; - - /** - * The base type of the screen. This is typically the same as $id but with any post types and taxonomies stripped. - * For example, for an $id of 'edit-post' the base is 'edit'. - * - * @since 3.3.0 - * @var string - * @access public - */ - public $base; - - /** - * The number of columns to display. Access with get_columns(). - * - * @since 3.4.0 - * @var int - * @access private - */ - private $columns = 0; - - /** - * The unique ID of the screen. - * - * @since 3.3.0 - * @var string - * @access public - */ - public $id; - - /** - * Which admin the screen is in. network | user | site | false - * - * @since 3.5.0 - * @var string - * @access protected - */ - protected $in_admin; - - /** - * Whether the screen is in the network admin. - * - * Deprecated. Use in_admin() instead. - * - * @since 3.3.0 - * @deprecated 3.5.0 - * @var bool - * @access public - */ - public $is_network; - - /** - * Whether the screen is in the user admin. - * - * Deprecated. Use in_admin() instead. - * - * @since 3.3.0 - * @deprecated 3.5.0 - * @var bool - * @access public - */ - public $is_user; - - /** - * The base menu parent. - * This is derived from $parent_file by removing the query string and any .php extension. - * $parent_file values of 'edit.php?post_type=page' and 'edit.php?post_type=post' have a $parent_base of 'edit'. - * - * @since 3.3.0 - * @var string - * @access public - */ - public $parent_base; - - /** - * The parent_file for the screen per the admin menu system. - * Some $parent_file values are 'edit.php?post_type=page', 'edit.php', and 'options-general.php'. - * - * @since 3.3.0 - * @var string - * @access public - */ - public $parent_file; - - /** - * The post type associated with the screen, if any. - * The 'edit.php?post_type=page' screen has a post type of 'page'. - * The 'edit-tags.php?taxonomy=$taxonomy&post_type=page' screen has a post type of 'page'. - * - * @since 3.3.0 - * @var string - * @access public - */ - public $post_type; - - /** - * The taxonomy associated with the screen, if any. - * The 'edit-tags.php?taxonomy=category' screen has a taxonomy of 'category'. - * @since 3.3.0 - * @var string - * @access public - */ - public $taxonomy; - - /** - * The help tab data associated with the screen, if any. - * - * @since 3.3.0 - * @var array - * @access private - */ - private $_help_tabs = array(); - - /** - * The help sidebar data associated with screen, if any. - * - * @since 3.3.0 - * @var string - * @access private - */ - private $_help_sidebar = ''; - - /** - * Stores old string-based help. - * - * @static - * @access private - * - * @var array - */ - private static $_old_compat_help = array(); - - /** - * The screen options associated with screen, if any. - * - * @since 3.3.0 - * @var array - * @access private - */ - private $_options = array(); - - /** - * The screen object registry. - * - * @since 3.3.0 - * - * @static - * @access private - * - * @var array - */ - private static $_registry = array(); - - /** - * Stores the result of the public show_screen_options function. - * - * @since 3.3.0 - * @var bool - * @access private - */ - private $_show_screen_options; - - /** - * Stores the 'screen_settings' section of screen options. - * - * @since 3.3.0 - * @var string - * @access private - */ - private $_screen_settings; - - /** - * Fetches a screen object. - * - * @since 3.3.0 - * @access public - * - * @static - * - * @global string $hook_suffix - * - * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen. - * Defaults to the current $hook_suffix global. - * @return WP_Screen Screen object. - */ - public static function get( $hook_name = '' ) { - if ( $hook_name instanceof WP_Screen ) { - return $hook_name; - } - - $post_type = $taxonomy = null; - $in_admin = false; - $action = ''; - - if ( $hook_name ) - $id = $hook_name; - else - $id = $GLOBALS['hook_suffix']; - - // For those pesky meta boxes. - if ( $hook_name && post_type_exists( $hook_name ) ) { - $post_type = $id; - $id = 'post'; // changes later. ends up being $base. - } else { - if ( '.php' == substr( $id, -4 ) ) - $id = substr( $id, 0, -4 ); - - if ( 'post-new' == $id || 'link-add' == $id || 'media-new' == $id || 'user-new' == $id ) { - $id = substr( $id, 0, -4 ); - $action = 'add'; - } - } - - if ( ! $post_type && $hook_name ) { - if ( '-network' == substr( $id, -8 ) ) { - $id = substr( $id, 0, -8 ); - $in_admin = 'network'; - } elseif ( '-user' == substr( $id, -5 ) ) { - $id = substr( $id, 0, -5 ); - $in_admin = 'user'; - } - - $id = sanitize_key( $id ); - if ( 'edit-comments' != $id && 'edit-tags' != $id && 'edit-' == substr( $id, 0, 5 ) ) { - $maybe = substr( $id, 5 ); - if ( taxonomy_exists( $maybe ) ) { - $id = 'edit-tags'; - $taxonomy = $maybe; - } elseif ( post_type_exists( $maybe ) ) { - $id = 'edit'; - $post_type = $maybe; - } - } - - if ( ! $in_admin ) - $in_admin = 'site'; - } else { - if ( defined( 'WP_NETWORK_ADMIN' ) && WP_NETWORK_ADMIN ) - $in_admin = 'network'; - elseif ( defined( 'WP_USER_ADMIN' ) && WP_USER_ADMIN ) - $in_admin = 'user'; - else - $in_admin = 'site'; - } - - if ( 'index' == $id ) - $id = 'dashboard'; - elseif ( 'front' == $id ) - $in_admin = false; - - $base = $id; - - // If this is the current screen, see if we can be more accurate for post types and taxonomies. - if ( ! $hook_name ) { - if ( isset( $_REQUEST['post_type'] ) ) - $post_type = post_type_exists( $_REQUEST['post_type'] ) ? $_REQUEST['post_type'] : false; - if ( isset( $_REQUEST['taxonomy'] ) ) - $taxonomy = taxonomy_exists( $_REQUEST['taxonomy'] ) ? $_REQUEST['taxonomy'] : false; - - switch ( $base ) { - case 'post' : - if ( isset( $_GET['post'] ) ) - $post_id = (int) $_GET['post']; - elseif ( isset( $_POST['post_ID'] ) ) - $post_id = (int) $_POST['post_ID']; - else - $post_id = 0; - - if ( $post_id ) { - $post = get_post( $post_id ); - if ( $post ) - $post_type = $post->post_type; - } - break; - case 'edit-tags' : - if ( null === $post_type && is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) ) - $post_type = 'post'; - break; - } - } - - switch ( $base ) { - case 'post' : - if ( null === $post_type ) - $post_type = 'post'; - $id = $post_type; - break; - case 'edit' : - if ( null === $post_type ) - $post_type = 'post'; - $id .= '-' . $post_type; - break; - case 'edit-tags' : - if ( null === $taxonomy ) - $taxonomy = 'post_tag'; - // The edit-tags ID does not contain the post type. Look for it in the request. - if ( null === $post_type ) { - $post_type = 'post'; - if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) ) - $post_type = $_REQUEST['post_type']; - } - - $id = 'edit-' . $taxonomy; - break; - } - - if ( 'network' == $in_admin ) { - $id .= '-network'; - $base .= '-network'; - } elseif ( 'user' == $in_admin ) { - $id .= '-user'; - $base .= '-user'; - } - - if ( isset( self::$_registry[ $id ] ) ) { - $screen = self::$_registry[ $id ]; - if ( $screen === get_current_screen() ) - return $screen; - } else { - $screen = new WP_Screen(); - $screen->id = $id; - } - - $screen->base = $base; - $screen->action = $action; - $screen->post_type = (string) $post_type; - $screen->taxonomy = (string) $taxonomy; - $screen->is_user = ( 'user' == $in_admin ); - $screen->is_network = ( 'network' == $in_admin ); - $screen->in_admin = $in_admin; - - self::$_registry[ $id ] = $screen; - - return $screen; - } - - /** - * Makes the screen object the current screen. - * - * @see set_current_screen() - * @since 3.3.0 - * - * @global WP_Screen $current_screen - * @global string $taxnow - * @global string $typenow - */ - public function set_current_screen() { - global $current_screen, $taxnow, $typenow; - $current_screen = $this; - $taxnow = $this->taxonomy; - $typenow = $this->post_type; - - /** - * Fires after the current screen has been set. - * - * @since 3.0.0 - * - * @param WP_Screen $current_screen Current WP_Screen object. - */ - do_action( 'current_screen', $current_screen ); - } - - /** - * Constructor - * - * @since 3.3.0 - * @access private - */ - private function __construct() {} - - /** - * Indicates whether the screen is in a particular admin - * - * @since 3.5.0 - * - * @param string $admin The admin to check against (network | user | site). - * If empty any of the three admins will result in true. - * @return bool True if the screen is in the indicated admin, false otherwise. - */ - public function in_admin( $admin = null ) { - if ( empty( $admin ) ) - return (bool) $this->in_admin; - - return ( $admin == $this->in_admin ); - } - - /** - * Sets the old string-based contextual help for the screen. - * - * For backwards compatibility. - * - * @since 3.3.0 - * - * @static - * - * @param WP_Screen $screen A screen object. - * @param string $help Help text. - */ - public static function add_old_compat_help( $screen, $help ) { - self::$_old_compat_help[ $screen->id ] = $help; - } - - /** - * Set the parent information for the screen. - * This is called in admin-header.php after the menu parent for the screen has been determined. - * - * @since 3.3.0 - * - * @param string $parent_file The parent file of the screen. Typically the $parent_file global. - */ - public function set_parentage( $parent_file ) { - $this->parent_file = $parent_file; - list( $this->parent_base ) = explode( '?', $parent_file ); - $this->parent_base = str_replace( '.php', '', $this->parent_base ); - } - - /** - * Adds an option for the screen. - * Call this in template files after admin.php is loaded and before admin-header.php is loaded to add screen options. - * - * @since 3.3.0 - * - * @param string $option Option ID - * @param mixed $args Option-dependent arguments. - */ - public function add_option( $option, $args = array() ) { - $this->_options[ $option ] = $args; - } - - /** - * Remove an option from the screen. - * - * @since 3.8.0 - * - * @param string $option Option ID. - */ - public function remove_option( $option ) { - unset( $this->_options[ $option ] ); - } - - /** - * Remove all options from the screen. - * - * @since 3.8.0 - */ - public function remove_options() { - $this->_options = array(); - } - - /** - * Get the options registered for the screen. - * - * @since 3.8.0 - * - * @return array Options with arguments. - */ - public function get_options() { - return $this->_options; - } - - /** - * Gets the arguments for an option for the screen. - * - * @since 3.3.0 - * - * @param string $option Option name. - * @param string $key Optional. Specific array key for when the option is an array. - * Default false. - * @return string The option value if set, null otherwise. - */ - public function get_option( $option, $key = false ) { - if ( ! isset( $this->_options[ $option ] ) ) - return null; - if ( $key ) { - if ( isset( $this->_options[ $option ][ $key ] ) ) - return $this->_options[ $option ][ $key ]; - return null; - } - return $this->_options[ $option ]; - } - - /** - * Gets the help tabs registered for the screen. - * - * @since 3.4.0 - * - * @return array Help tabs with arguments. - */ - public function get_help_tabs() { - return $this->_help_tabs; - } - - /** - * Gets the arguments for a help tab. - * - * @since 3.4.0 - * - * @param string $id Help Tab ID. - * @return array Help tab arguments. - */ - public function get_help_tab( $id ) { - if ( ! isset( $this->_help_tabs[ $id ] ) ) - return null; - return $this->_help_tabs[ $id ]; - } - - /** - * Add a help tab to the contextual help for the screen. - * Call this on the load-$pagenow hook for the relevant screen. - * - * @since 3.3.0 - * - * @param array $args - * - string - title - Title for the tab. - * - string - id - Tab ID. Must be HTML-safe. - * - string - content - Help tab content in plain text or HTML. Optional. - * - callback - callback - A callback to generate the tab content. Optional. - * - */ - public function add_help_tab( $args ) { - $defaults = array( - 'title' => false, - 'id' => false, - 'content' => '', - 'callback' => false, - ); - $args = wp_parse_args( $args, $defaults ); - - $args['id'] = sanitize_html_class( $args['id'] ); - - // Ensure we have an ID and title. - if ( ! $args['id'] || ! $args['title'] ) - return; - - // Allows for overriding an existing tab with that ID. - $this->_help_tabs[ $args['id'] ] = $args; - } - - /** - * Removes a help tab from the contextual help for the screen. - * - * @since 3.3.0 - * - * @param string $id The help tab ID. - */ - public function remove_help_tab( $id ) { - unset( $this->_help_tabs[ $id ] ); - } - - /** - * Removes all help tabs from the contextual help for the screen. - * - * @since 3.3.0 - */ - public function remove_help_tabs() { - $this->_help_tabs = array(); - } - - /** - * Gets the content from a contextual help sidebar. - * - * @since 3.4.0 - * - * @return string Contents of the help sidebar. - */ - public function get_help_sidebar() { - return $this->_help_sidebar; - } - - /** - * Add a sidebar to the contextual help for the screen. - * Call this in template files after admin.php is loaded and before admin-header.php is loaded to add a sidebar to the contextual help. - * - * @since 3.3.0 - * - * @param string $content Sidebar content in plain text or HTML. - */ - public function set_help_sidebar( $content ) { - $this->_help_sidebar = $content; - } - - /** - * Gets the number of layout columns the user has selected. - * - * The layout_columns option controls the max number and default number of - * columns. This method returns the number of columns within that range selected - * by the user via Screen Options. If no selection has been made, the default - * provisioned in layout_columns is returned. If the screen does not support - * selecting the number of layout columns, 0 is returned. - * - * @since 3.4.0 - * - * @return int Number of columns to display. - */ - public function get_columns() { - return $this->columns; - } - - /** - * Render the screen's help section. - * - * This will trigger the deprecated filters for backwards compatibility. - * - * @since 3.3.0 - * - * @global string $screen_layout_columns - */ - public function render_screen_meta() { - - /** - * Filter the legacy contextual help list. - * - * @since 2.7.0 - * @deprecated 3.3.0 Use get_current_screen()->add_help_tab() or - * get_current_screen()->remove_help_tab() instead. - * - * @param array $old_compat_help Old contextual help. - * @param WP_Screen $this Current WP_Screen instance. - */ - self::$_old_compat_help = apply_filters( 'contextual_help_list', self::$_old_compat_help, $this ); - - $old_help = isset( self::$_old_compat_help[ $this->id ] ) ? self::$_old_compat_help[ $this->id ] : ''; - - /** - * Filter the legacy contextual help text. - * - * @since 2.7.0 - * @deprecated 3.3.0 Use get_current_screen()->add_help_tab() or - * get_current_screen()->remove_help_tab() instead. - * - * @param string $old_help Help text that appears on the screen. - * @param string $screen_id Screen ID. - * @param WP_Screen $this Current WP_Screen instance. - * - */ - $old_help = apply_filters( 'contextual_help', $old_help, $this->id, $this ); - - // Default help only if there is no old-style block of text and no new-style help tabs. - if ( empty( $old_help ) && ! $this->get_help_tabs() ) { - - /** - * Filter the default legacy contextual help text. - * - * @since 2.8.0 - * @deprecated 3.3.0 Use get_current_screen()->add_help_tab() or - * get_current_screen()->remove_help_tab() instead. - * - * @param string $old_help_default Default contextual help text. - */ - $default_help = apply_filters( 'default_contextual_help', '' ); - if ( $default_help ) - $old_help = '

    ' . $default_help . '

    '; - } - - if ( $old_help ) { - $this->add_help_tab( array( - 'id' => 'old-contextual-help', - 'title' => __('Overview'), - 'content' => $old_help, - ) ); - } - - $help_sidebar = $this->get_help_sidebar(); - - $help_class = 'hidden'; - if ( ! $help_sidebar ) - $help_class .= ' no-sidebar'; - - // Time to render! - ?> -
    - -
    -
    -
    -
    -
      - get_help_tabs() as $tab ) : - $link_id = "tab-link-{$tab['id']}"; - $panel_id = "tab-panel-{$tab['id']}"; - ?> - - - -
    -
    - - -
    - -
    - - -
    - get_help_tabs() as $tab ): - $panel_id = "tab-panel-{$tab['id']}"; - ?> - -
    - -
    - -
    -
    -
    - id, $this ); - - if ( ! empty( $columns ) && isset( $columns[ $this->id ] ) ) - $this->add_option( 'layout_columns', array('max' => $columns[ $this->id ] ) ); - - if ( $this->get_option( 'layout_columns' ) ) { - $this->columns = (int) get_user_option("screen_layout_$this->id"); - - if ( ! $this->columns && $this->get_option( 'layout_columns', 'default' ) ) - $this->columns = $this->get_option( 'layout_columns', 'default' ); - } - $GLOBALS[ 'screen_layout_columns' ] = $this->columns; // Set the global for back-compat. - - // Add screen options - if ( $this->show_screen_options() ) - $this->render_screen_options(); - ?> -
    - get_help_tabs() && ! $this->show_screen_options() ) - return; - ?> - - _show_screen_options ) ) - return $this->_show_screen_options; - - $columns = get_column_headers( $this ); - - $show_screen = ! empty( $wp_meta_boxes[ $this->id ] ) || $columns || $this->get_option( 'per_page' ); - - switch ( $this->base ) { - case 'widgets': - $this->_screen_settings = '

    ' . __('Enable accessibility mode') . '' . __('Disable accessibility mode') . "

    \n"; - break; - case 'post' : - $expand = ''; - $this->_screen_settings = $expand; - break; - default: - $this->_screen_settings = ''; - break; - } - - /** - * Filter the screen settings text displayed in the Screen Options tab. - * - * This filter is currently only used on the Widgets screen to enable - * accessibility mode. - * - * @since 3.0.0 - * - * @param string $screen_settings Screen settings. - * @param WP_Screen $this WP_Screen object. - */ - $this->_screen_settings = apply_filters( 'screen_settings', $this->_screen_settings, $this ); - - if ( $this->_screen_settings || $this->_options ) - $show_screen = true; - - /** - * Filter whether to show the Screen Options tab. - * - * @since 3.2.0 - * - * @param bool $show_screen Whether to show Screen Options tab. - * Default true. - * @param WP_Screen $this Current WP_Screen instance. - */ - $this->_show_screen_options = apply_filters( 'screen_options_show_screen', $show_screen, $this ); - return $this->_show_screen_options; - } - - /** - * Render the screen options tab. - * - * @since 3.3.0 - * - * @global array $wp_meta_boxes - */ - public function render_screen_options() { - global $wp_meta_boxes; - - $columns = get_column_headers( $this ); - $hidden = get_hidden_columns( $this ); - - ?> - - get_option('layout_columns') ) - return; - - $screen_layout_columns = $this->get_columns(); - $num = $this->get_option( 'layout_columns', 'max' ); - - ?> -
    -
    - - -
    - get_option( 'per_page' ) ) { - return; - } - - $per_page_label = $this->get_option( 'per_page', 'label' ); - if ( null === $per_page_label ) { - $per_page_label = __( 'Number of items per page:' ); - } - - $option = $this->get_option( 'per_page', 'option' ); - if ( ! $option ) { - $option = str_replace( '-', '_', "{$this->id}_per_page" ); - } - - $per_page = (int) get_user_option( $option ); - if ( empty( $per_page ) || $per_page < 1 ) { - $per_page = $this->get_option( 'per_page', 'default' ); - if ( ! $per_page ) { - $per_page = 20; - } - } - - if ( 'edit_comments_per_page' == $option ) { - $comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all'; - - /** This filter is documented in wp-admin/includes/class-wp-comments-list-table.php */ - $per_page = apply_filters( 'comments_per_page', $per_page, $comment_status ); - } elseif ( 'categories_per_page' == $option ) { - /** This filter is documented in wp-admin/includes/class-wp-terms-list-table.php */ - $per_page = apply_filters( 'edit_categories_per_page', $per_page ); - } else { - /** This filter is documented in wp-admin/includes/class-wp-list-table.php */ - $per_page = apply_filters( $option, $per_page ); - } - - // Back compat - if ( isset( $this->post_type ) ) { - /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */ - $per_page = apply_filters( 'edit_posts_per_page', $per_page, $this->post_type ); - } - - ?> -
    - - - - - -
    - $cat_name, 'category_parent' => $parent) ); -} - -/** - * Create categories for the given post. - * - * @since 2.0.0 - * - * @param array $categories List of categories to create. - * @param int $post_id Optional. The post ID. Default empty. - * @return List of categories to create for the given post. - */ -function wp_create_categories( $categories, $post_id = '' ) { - $cat_ids = array (); - foreach ( $categories as $category ) { - if ( $id = category_exists( $category ) ) { - $cat_ids[] = $id; - } elseif ( $id = wp_create_category( $category ) ) { - $cat_ids[] = $id; - } - } - - if ( $post_id ) - wp_set_post_categories($post_id, $cat_ids); - - return $cat_ids; -} - -/** - * Updates an existing Category or creates a new Category. - * - * @since 2.0.0 - * @since 2.5.0 $wp_error parameter was added. - * @since 3.0.0 The 'taxonomy' argument was added. - * - * @param array $catarr { - * Array of arguments for inserting a new category. - * - * @type int $cat_ID Categoriy ID. A non-zero value updates an existing category. - * Default 0. - * @type string $taxonomy Taxonomy slug. Defualt 'category'. - * @type string $cat_name Category name. Default empty. - * @type string $category_description Category description. Default empty. - * @type string $category_nicename Category nice (display) name. Default empty. - * @type int|string $category_parent Category parent ID. Default empty. - * } - * @param bool $wp_error Optional. Default false. - * @return int|object The ID number of the new or updated Category on success. Zero or a WP_Error on failure, - * depending on param $wp_error. - */ -function wp_insert_category( $catarr, $wp_error = false ) { - $cat_defaults = array( 'cat_ID' => 0, 'taxonomy' => 'category', 'cat_name' => '', 'category_description' => '', 'category_nicename' => '', 'category_parent' => '' ); - $catarr = wp_parse_args( $catarr, $cat_defaults ); - - if ( trim( $catarr['cat_name'] ) == '' ) { - if ( ! $wp_error ) { - return 0; - } else { - return new WP_Error( 'cat_name', __( 'You did not enter a category name.' ) ); - } - } - - $catarr['cat_ID'] = (int) $catarr['cat_ID']; - - // Are we updating or creating? - $update = ! empty ( $catarr['cat_ID'] ); - - $name = $catarr['cat_name']; - $description = $catarr['category_description']; - $slug = $catarr['category_nicename']; - $parent = (int) $catarr['category_parent']; - if ( $parent < 0 ) { - $parent = 0; - } - - if ( empty( $parent ) - || ! term_exists( $parent, $catarr['taxonomy'] ) - || ( $catarr['cat_ID'] && term_is_ancestor_of( $catarr['cat_ID'], $parent, $catarr['taxonomy'] ) ) ) { - $parent = 0; - } - - $args = compact('name', 'slug', 'parent', 'description'); - - if ( $update ) { - $catarr['cat_ID'] = wp_update_term( $catarr['cat_ID'], $catarr['taxonomy'], $args ); - } else { - $catarr['cat_ID'] = wp_insert_term( $catarr['cat_name'], $catarr['taxonomy'], $args ); - } - - if ( is_wp_error( $catarr['cat_ID'] ) ) { - if ( $wp_error ) { - return $catarr['cat_ID']; - } else { - return 0; - } - } - return $catarr['cat_ID']['term_id']; -} - -/** - * Aliases wp_insert_category() with minimal args. - * - * If you want to update only some fields of an existing category, call this - * function with only the new values set inside $catarr. - * - * @since 2.0.0 - * - * @param array $catarr The 'cat_ID' value is required. All other keys are optional. - * @return int|bool The ID number of the new or updated Category on success. Zero or FALSE on failure. - */ -function wp_update_category($catarr) { - $cat_ID = (int) $catarr['cat_ID']; - - if ( isset($catarr['category_parent']) && ($cat_ID == $catarr['category_parent']) ) - return false; - - // First, get all of the original fields - $category = get_term( $cat_ID, 'category', ARRAY_A ); - _make_cat_compat( $category ); - - // Escape data pulled from DB. - $category = wp_slash($category); - - // Merge old and new fields with new fields overwriting old ones. - $catarr = array_merge($category, $catarr); - - return wp_insert_category($catarr); -} - -// -// Tags -// - -/** - * Check whether a post tag with a given name exists. - * - * @since 2.3.0 - * - * @param int|string $tag_name - * @return mixed - */ -function tag_exists($tag_name) { - return term_exists($tag_name, 'post_tag'); -} - -/** - * Add a new tag to the database if it does not already exist. - * - * @since 2.3.0 - * - * @param int|string $tag_name - * @return array|WP_Error - */ -function wp_create_tag($tag_name) { - return wp_create_term( $tag_name, 'post_tag'); -} - -/** - * Get comma-separated list of tags available to edit. - * - * @since 2.3.0 - * - * @param int $post_id - * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'. - * @return string|bool|WP_Error - */ -function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) { - return get_terms_to_edit( $post_id, $taxonomy); -} - -/** - * Get comma-separated list of terms available to edit for the given post ID. - * - * @since 2.8.0 - * - * @param int $post_id - * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'. - * @return string|bool|WP_Error - */ -function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) { - $post_id = (int) $post_id; - if ( !$post_id ) - return false; - - $terms = get_object_term_cache( $post_id, $taxonomy ); - if ( false === $terms ) { - $terms = wp_get_object_terms( $post_id, $taxonomy ); - wp_cache_add( $post_id, $terms, $taxonomy . '_relationships' ); - } - - if ( ! $terms ) { - return false; - } - if ( is_wp_error( $terms ) ) { - return $terms; - } - $term_names = array(); - foreach ( $terms as $term ) { - $term_names[] = $term->name; - } - - $terms_to_edit = esc_attr( join( ',', $term_names ) ); - - /** - * Filter the comma-separated list of terms available to edit. - * - * @since 2.8.0 - * - * @see get_terms_to_edit() - * - * @param array $terms_to_edit An array of terms. - * @param string $taxonomy The taxonomy for which to retrieve terms. Default 'post_tag'. - */ - $terms_to_edit = apply_filters( 'terms_to_edit', $terms_to_edit, $taxonomy ); - - return $terms_to_edit; -} - -/** - * Add a new term to the database if it does not already exist. - * - * @since 2.8.0 - * - * @param int|string $tag_name - * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'. - * @return array|WP_Error - */ -function wp_create_term($tag_name, $taxonomy = 'post_tag') { - if ( $id = term_exists($tag_name, $taxonomy) ) - return $id; - - return wp_insert_term($tag_name, $taxonomy); -} diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php deleted file mode 100644 index d1a85870cf..0000000000 --- a/wp-admin/includes/template.php +++ /dev/null @@ -1,2256 +0,0 @@ - 'parent', 'id' => 'term_id'); //TODO: decouple this - - /** - * Starts the list before the elements are added. - * - * @see Walker:start_lvl() - * - * @since 2.5.1 - * - * @param string $output Passed by reference. Used to append additional content. - * @param int $depth Depth of category. Used for tab indentation. - * @param array $args An array of arguments. @see wp_terms_checklist() - */ - public function start_lvl( &$output, $depth = 0, $args = array() ) { - $indent = str_repeat("\t", $depth); - $output .= "$indent
      \n"; - } - - /** - * Ends the list of after the elements are added. - * - * @see Walker::end_lvl() - * - * @since 2.5.1 - * - * @param string $output Passed by reference. Used to append additional content. - * @param int $depth Depth of category. Used for tab indentation. - * @param array $args An array of arguments. @see wp_terms_checklist() - */ - public function end_lvl( &$output, $depth = 0, $args = array() ) { - $indent = str_repeat("\t", $depth); - $output .= "$indent
    \n"; - } - - /** - * Start the element output. - * - * @see Walker::start_el() - * - * @since 2.5.1 - * - * @param string $output Passed by reference. Used to append additional content. - * @param object $category The current term object. - * @param int $depth Depth of the term in reference to parents. Default 0. - * @param array $args An array of arguments. @see wp_terms_checklist() - * @param int $id ID of the current term. - */ - public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { - if ( empty( $args['taxonomy'] ) ) { - $taxonomy = 'category'; - } else { - $taxonomy = $args['taxonomy']; - } - - if ( $taxonomy == 'category' ) { - $name = 'post_category'; - } else { - $name = 'tax_input[' . $taxonomy . ']'; - } - - $args['popular_cats'] = empty( $args['popular_cats'] ) ? array() : $args['popular_cats']; - $class = in_array( $category->term_id, $args['popular_cats'] ) ? ' class="popular-category"' : ''; - - $args['selected_cats'] = empty( $args['selected_cats'] ) ? array() : $args['selected_cats']; - - /** This filter is documented in wp-includes/category-template.php */ - if ( ! empty( $args['list_only'] ) ) { - $aria_cheched = 'false'; - $inner_class = 'category'; - - if ( in_array( $category->term_id, $args['selected_cats'] ) ) { - $inner_class .= ' selected'; - $aria_cheched = 'true'; - } - - $output .= "\n" . '' . - ''; - } else { - $output .= "\n
  • " . - ''; - } - } - - /** - * Ends the element output, if needed. - * - * @see Walker::end_el() - * - * @since 2.5.1 - * - * @param string $output Passed by reference. Used to append additional content. - * @param object $category The current term object. - * @param int $depth Depth of the term in reference to parents. Default 0. - * @param array $args An array of arguments. @see wp_terms_checklist() - */ - public function end_el( &$output, $category, $depth = 0, $args = array() ) { - $output .= "
  • \n"; - } -} - -/** - * Output an unordered list of checkbox input elements labeled with category names. - * - * @since 2.5.1 - * - * @see wp_terms_checklist() - * - * @param int $post_id Optional. Post to generate a categories checklist for. Default 0. - * $selected_cats must not be an array. Default 0. - * @param int $descendants_and_self Optional. ID of the category to output along with its descendants. - * Default 0. - * @param array $selected_cats Optional. List of categories to mark as checked. Default false. - * @param array $popular_cats Optional. List of categories to receive the "popular-category" class. - * Default false. - * @param object $walker Optional. Walker object to use to build the output. - * Default is a Walker_Category_Checklist instance. - * @param bool $checked_ontop Optional. Whether to move checked items out of the hierarchy and to - * the top of the list. Default true. - */ -function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false, $walker = null, $checked_ontop = true ) { - wp_terms_checklist( $post_id, array( - 'taxonomy' => 'category', - 'descendants_and_self' => $descendants_and_self, - 'selected_cats' => $selected_cats, - 'popular_cats' => $popular_cats, - 'walker' => $walker, - 'checked_ontop' => $checked_ontop - ) ); -} - -/** - * Output an unordered list of checkbox input elements labelled with term names. - * - * Taxonomy-independent version of wp_category_checklist(). - * - * @since 3.0.0 - * - * @param int $post_id Optional. Post ID. Default 0. - * @param array|string $args { - * Optional. Array or string of arguments for generating a terms checklist. Default empty array. - * - * @type int $descendants_and_self ID of the category to output along with its descendants. - * Default 0. - * @type array $selected_cats List of categories to mark as checked. Default false. - * @type array $popular_cats List of categories to receive the "popular-category" class. - * Default false. - * @type object $walker Walker object to use to build the output. - * Default is a Walker_Category_Checklist instance. - * @type string $taxonomy Taxonomy to generate the checklist for. Default 'category'. - * @type bool $checked_ontop Whether to move checked items out of the hierarchy and to - * the top of the list. Default true. - * } - */ -function wp_terms_checklist( $post_id = 0, $args = array() ) { - $defaults = array( - 'descendants_and_self' => 0, - 'selected_cats' => false, - 'popular_cats' => false, - 'walker' => null, - 'taxonomy' => 'category', - 'checked_ontop' => true - ); - - /** - * Filter the taxonomy terms checklist arguments. - * - * @since 3.4.0 - * - * @see wp_terms_checklist() - * - * @param array $args An array of arguments. - * @param int $post_id The post ID. - */ - $params = apply_filters( 'wp_terms_checklist_args', $args, $post_id ); - - $r = wp_parse_args( $params, $defaults ); - - if ( empty( $r['walker'] ) || ! ( $r['walker'] instanceof Walker ) ) { - $walker = new Walker_Category_Checklist; - } else { - $walker = $r['walker']; - } - - $taxonomy = $r['taxonomy']; - $descendants_and_self = (int) $r['descendants_and_self']; - - $args = array( 'taxonomy' => $taxonomy ); - - $tax = get_taxonomy( $taxonomy ); - $args['disabled'] = ! current_user_can( $tax->cap->assign_terms ); - - $args['list_only'] = ! empty( $r['list_only'] ); - - if ( is_array( $r['selected_cats'] ) ) { - $args['selected_cats'] = $r['selected_cats']; - } elseif ( $post_id ) { - $args['selected_cats'] = wp_get_object_terms( $post_id, $taxonomy, array_merge( $args, array( 'fields' => 'ids' ) ) ); - } else { - $args['selected_cats'] = array(); - } - if ( is_array( $r['popular_cats'] ) ) { - $args['popular_cats'] = $r['popular_cats']; - } else { - $args['popular_cats'] = get_terms( $taxonomy, array( - 'fields' => 'ids', - 'orderby' => 'count', - 'order' => 'DESC', - 'number' => 10, - 'hierarchical' => false - ) ); - } - if ( $descendants_and_self ) { - $categories = (array) get_terms( $taxonomy, array( - 'child_of' => $descendants_and_self, - 'hierarchical' => 0, - 'hide_empty' => 0 - ) ); - $self = get_term( $descendants_and_self, $taxonomy ); - array_unshift( $categories, $self ); - } else { - $categories = (array) get_terms( $taxonomy, array( 'get' => 'all' ) ); - } - - if ( $r['checked_ontop'] ) { - // Post process $categories rather than adding an exclude to the get_terms() query to keep the query the same across all posts (for any query cache) - $checked_categories = array(); - $keys = array_keys( $categories ); - - foreach( $keys as $k ) { - if ( in_array( $categories[$k]->term_id, $args['selected_cats'] ) ) { - $checked_categories[] = $categories[$k]; - unset( $categories[$k] ); - } - } - - // Put checked cats on top - echo call_user_func_array( array( $walker, 'walk' ), array( $checked_categories, 0, $args ) ); - } - // Then the rest of them - echo call_user_func_array( array( $walker, 'walk' ), array( $categories, 0, $args ) ); -} - -/** - * Retrieve a list of the most popular terms from the specified taxonomy. - * - * If the $echo argument is true then the elements for a list of checkbox - * `` elements labelled with the names of the selected terms is output. - * If the $post_ID global isn't empty then the terms associated with that - * post will be marked as checked. - * - * @since 2.5.0 - * - * @param string $taxonomy Taxonomy to retrieve terms from. - * @param int $default Not used. - * @param int $number Number of terms to retrieve. Defaults to 10. - * @param bool $echo Optionally output the list as well. Defaults to true. - * @return array List of popular term IDs. - */ -function wp_popular_terms_checklist( $taxonomy, $default = 0, $number = 10, $echo = true ) { - $post = get_post(); - - if ( $post && $post->ID ) - $checked_terms = wp_get_object_terms($post->ID, $taxonomy, array('fields'=>'ids')); - else - $checked_terms = array(); - - $terms = get_terms( $taxonomy, array( 'orderby' => 'count', 'order' => 'DESC', 'number' => $number, 'hierarchical' => false ) ); - - $tax = get_taxonomy($taxonomy); - - $popular_ids = array(); - foreach ( (array) $terms as $term ) { - $popular_ids[] = $term->term_id; - if ( !$echo ) // hack for AJAX use - continue; - $id = "popular-$taxonomy-$term->term_id"; - $checked = in_array( $term->term_id, $checked_terms ) ? 'checked="checked"' : ''; - ?> - - - - 'name', 'hide_empty' => 0 ) ); - - if ( empty( $categories ) ) - return; - - foreach ( $categories as $category ) { - $cat_id = $category->term_id; - - /** This filter is documented in wp-includes/category-template.php */ - $name = esc_html( apply_filters( 'the_category', $category->name ) ); - $checked = in_array( $cat_id, $checked_categories ) ? ' checked="checked"' : ''; - echo '"; - } -} - -/** - * Adds hidden fields with the data for use in the inline editor for posts and pages. - * - * @since 2.7.0 - * - * @param WP_Post $post Post object. - */ -function get_inline_data($post) { - $post_type_object = get_post_type_object($post->post_type); - if ( ! current_user_can( 'edit_post', $post->ID ) ) - return; - - $title = esc_textarea( trim( $post->post_title ) ); - - /** This filter is documented in wp-admin/edit-tag-form.php */ - echo ' -'; -} - -/** - * {@internal Missing Short Description}} - * - * @since 2.7.0 - * - * @global WP_List_Table $wp_list_table - * - * @param int $position - * @param bool $checkbox - * @param string $mode - * @param bool $table_row - */ -function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $table_row = true ) { - global $wp_list_table; - /** - * Filter the in-line comment reply-to form output in the Comments - * list table. - * - * Returning a non-empty value here will short-circuit display - * of the in-line comment-reply form in the Comments list table, - * echoing the returned value instead. - * - * @since 2.7.0 - * - * @see wp_comment_reply() - * - * @param string $content The reply-to form content. - * @param array $args An array of default args. - */ - $content = apply_filters( 'wp_comment_reply', '', array( 'position' => $position, 'checkbox' => $checkbox, 'mode' => $mode ) ); - - if ( ! empty($content) ) { - echo $content; - return; - } - - if ( ! $wp_list_table ) { - if ( $mode == 'single' ) { - $wp_list_table = _get_list_table('WP_Post_Comments_List_Table'); - } else { - $wp_list_table = _get_list_table('WP_Comments_List_Table'); - } - } - -?> -
    - -
    - - - -
    - - - - - - - ' . _x( 'Name', 'meta name' ) . ' - ' . __( 'Value' ) . ' - - - - - -'; //TBODY needed for list-manipulation JS - return; - } - $count = 0; -?> - - - - - - - - - - -
    - - $entry['meta_id'] = (int) $entry['meta_id']; - - $delete_nonce = wp_create_nonce( 'delete-meta_' . $entry['meta_id'] ); - - $r .= "\n\t"; - $r .= "\n\t\t"; - - $r .= "\n\t\t
    "; - $r .= get_submit_button( __( 'Delete' ), 'deletemeta small', "deletemeta[{$entry['meta_id']}]", false, array( 'data-wp-lists' => "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce" ) ); - $r .= "\n\t\t"; - $r .= get_submit_button( __( 'Update' ), 'updatemeta small', "meta-{$entry['meta_id']}-submit", false, array( 'data-wp-lists' => "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce" ) ); - $r .= "
    "; - $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false ); - $r .= ""; - - $r .= "\n\t\t\n\t"; - return $r; -} - -/** - * Prints the form in the Custom Fields meta box. - * - * @since 1.2.0 - * - * @global wpdb $wpdb - * - * @param WP_Post $post Optional. The post being edited. - */ -function meta_form( $post = null ) { - global $wpdb; - $post = get_post( $post ); - - /** - * Filter the number of custom fields to retrieve for the drop-down - * in the Custom Fields meta box. - * - * @since 2.1.0 - * - * @param int $limit Number of custom fields to retrieve. Default 30. - */ - $limit = apply_filters( 'postmeta_form_limit', 30 ); - $sql = "SELECT DISTINCT meta_key - FROM $wpdb->postmeta - WHERE meta_key NOT BETWEEN '_' AND '_z' - HAVING meta_key NOT LIKE %s - ORDER BY meta_key - LIMIT %d"; - $keys = $wpdb->get_col( $wpdb->prepare( $sql, $wpdb->esc_like( '_' ) . '%', $limit ) ); - if ( $keys ) { - natcasesort( $keys ); - $meta_key_input_id = 'metakeyselect'; - } else { - $meta_key_input_id = 'metakeyinput'; - } -?> -

    - - - - - - - - - - - - - - - - -
    - - - - - - - - - -
    -
    - 'newmeta-submit', 'data-wp-lists' => 'add:the-list:newmeta' ) ); ?> -
    - -
    -post_status, array('draft', 'pending') ) && (!$post->post_date_gmt || '0000-00-00 00:00:00' == $post->post_date_gmt ) ); - - $tab_index_attribute = ''; - if ( (int) $tab_index > 0 ) - $tab_index_attribute = " tabindex=\"$tab_index\""; - - // todo: Remove this? - // echo '
    '; - - $time_adj = current_time('timestamp'); - $post_date = ($for_post) ? $post->post_date : $comment->comment_date; - $jj = ($edit) ? mysql2date( 'd', $post_date, false ) : gmdate( 'd', $time_adj ); - $mm = ($edit) ? mysql2date( 'm', $post_date, false ) : gmdate( 'm', $time_adj ); - $aa = ($edit) ? mysql2date( 'Y', $post_date, false ) : gmdate( 'Y', $time_adj ); - $hh = ($edit) ? mysql2date( 'H', $post_date, false ) : gmdate( 'H', $time_adj ); - $mn = ($edit) ? mysql2date( 'i', $post_date, false ) : gmdate( 'i', $time_adj ); - $ss = ($edit) ? mysql2date( 's', $post_date, false ) : gmdate( 's', $time_adj ); - - $cur_jj = gmdate( 'd', $time_adj ); - $cur_mm = gmdate( 'm', $time_adj ); - $cur_aa = gmdate( 'Y', $time_adj ); - $cur_hh = gmdate( 'H', $time_adj ); - $cur_mn = gmdate( 'i', $time_adj ); - - $month = ''; - - $day = ''; - $year = ''; - $hour = ''; - $minute = ''; - - echo '
    '; - /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */ - printf( __( '%1$s %2$s, %3$s @ %4$s:%5$s' ), $month, $day, $year, $hour, $minute ); - - echo '
    '; - - if ( $multi ) return; - - echo "\n\n"; - $map = array( - 'mm' => array( $mm, $cur_mm ), - 'jj' => array( $jj, $cur_jj ), - 'aa' => array( $aa, $cur_aa ), - 'hh' => array( $hh, $cur_hh ), - 'mn' => array( $mn, $cur_mn ), - ); - foreach ( $map as $timeunit => $value ) { - list( $unit, $curr ) = $value; - - echo '' . "\n"; - $cur_timeunit = 'cur_' . $timeunit; - echo '' . "\n"; - } -?> - -

    - - -

    -$template"; - } -} - -/** - * Print out option HTML elements for the page parents drop-down. - * - * @since 1.5.0 - * - * @global wpdb $wpdb - * - * @param int $default Optional. The default page ID to be pre-selected. Default 0. - * @param int $parent Optional. The parent page ID. Default 0. - * @param int $level Optional. Page depth level. Default 0. - * - * @return null|false Boolean False if page has no children, otherwise print out html elements - */ -function parent_dropdown( $default = 0, $parent = 0, $level = 0 ) { - global $wpdb; - $post = get_post(); - $items = $wpdb->get_results( $wpdb->prepare("SELECT ID, post_parent, post_title FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'page' ORDER BY menu_order", $parent) ); - - if ( $items ) { - foreach ( $items as $item ) { - // A page cannot be its own parent. - if ( $post && $post->ID && $item->ID == $post->ID ) - continue; - - $pad = str_repeat( ' ', $level * 3 ); - $selected = selected( $default, $item->ID, false ); - - echo "\n\t"; - parent_dropdown( $default, $item->ID, $level +1 ); - } - } else { - return false; - } -} - -/** - * Print out option html elements for role selectors. - * - * @since 2.1.0 - * - * @param string $selected Slug for the role that should be already selected. - */ -function wp_dropdown_roles( $selected = '' ) { - $p = ''; - $r = ''; - - $editable_roles = array_reverse( get_editable_roles() ); - - foreach ( $editable_roles as $role => $details ) { - $name = translate_user_role($details['name'] ); - if ( $selected == $role ) // preselect specified role - $p = "\n\t"; - else - $r .= "\n\t"; - } - echo $p . $r; -} - -/** - * Outputs the form used by the importers to accept the data to be imported - * - * @since 2.0.0 - * - * @param string $action The action attribute for the form. - */ -function wp_import_upload_form( $action ) { - - /** - * Filter the maximum allowed upload size for import files. - * - * @since 2.3.0 - * - * @see wp_max_upload_size() - * - * @param int $max_upload_size Allowed upload size. Default 1 MB. - */ - $bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() ); - $size = size_format( $bytes ); - $upload_dir = wp_upload_dir(); - if ( ! empty( $upload_dir['error'] ) ) : - ?>

    -

    -
    -

    - () - - - -

    - -
    -id; - - if ( !isset($wp_meta_boxes) ) - $wp_meta_boxes = array(); - if ( !isset($wp_meta_boxes[$page]) ) - $wp_meta_boxes[$page] = array(); - if ( !isset($wp_meta_boxes[$page][$context]) ) - $wp_meta_boxes[$page][$context] = array(); - - foreach ( array_keys($wp_meta_boxes[$page]) as $a_context ) { - foreach ( array('high', 'core', 'default', 'low') as $a_priority ) { - if ( !isset($wp_meta_boxes[$page][$a_context][$a_priority][$id]) ) - continue; - - // If a core box was previously added or removed by a plugin, don't add. - if ( 'core' == $priority ) { - // If core box previously deleted, don't add - if ( false === $wp_meta_boxes[$page][$a_context][$a_priority][$id] ) - return; - - /* - * If box was added with default priority, give it core priority to - * maintain sort order. - */ - if ( 'default' == $a_priority ) { - $wp_meta_boxes[$page][$a_context]['core'][$id] = $wp_meta_boxes[$page][$a_context]['default'][$id]; - unset($wp_meta_boxes[$page][$a_context]['default'][$id]); - } - return; - } - // If no priority given and id already present, use existing priority. - if ( empty($priority) ) { - $priority = $a_priority; - /* - * Else, if we're adding to the sorted priority, we don't know the title - * or callback. Grab them from the previously added context/priority. - */ - } elseif ( 'sorted' == $priority ) { - $title = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['title']; - $callback = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['callback']; - $callback_args = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['args']; - } - // An id can be in only one priority and one context. - if ( $priority != $a_priority || $context != $a_context ) - unset($wp_meta_boxes[$page][$a_context][$a_priority][$id]); - } - } - - if ( empty($priority) ) - $priority = 'low'; - - if ( !isset($wp_meta_boxes[$page][$context][$priority]) ) - $wp_meta_boxes[$page][$context][$priority] = array(); - - $wp_meta_boxes[$page][$context][$priority][$id] = array('id' => $id, 'title' => $title, 'callback' => $callback, 'args' => $callback_args); -} - -/** - * Meta-Box template function - * - * @since 2.5.0 - * - * @global array $wp_meta_boxes - * - * @staticvar bool $already_sorted - * @param string|WP_Screen $screen Screen identifier - * @param string $context box context - * @param mixed $object gets passed to the box callback function as first parameter - * @return int number of meta_boxes - */ -function do_meta_boxes( $screen, $context, $object ) { - global $wp_meta_boxes; - static $already_sorted = false; - - if ( empty( $screen ) ) - $screen = get_current_screen(); - elseif ( is_string( $screen ) ) - $screen = convert_to_screen( $screen ); - - $page = $screen->id; - - $hidden = get_hidden_meta_boxes( $screen ); - - printf('
    ', htmlspecialchars($context)); - - // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose - if ( ! $already_sorted && $sorted = get_user_option( "meta-box-order_$page" ) ) { - foreach ( $sorted as $box_context => $ids ) { - foreach ( explode( ',', $ids ) as $id ) { - if ( $id && 'dashboard_browser_nag' !== $id ) { - add_meta_box( $id, null, null, $screen, $box_context, 'sorted' ); - } - } - } - } - - $already_sorted = true; - - $i = 0; - - if ( isset( $wp_meta_boxes[ $page ][ $context ] ) ) { - foreach ( array( 'high', 'sorted', 'core', 'default', 'low' ) as $priority ) { - if ( isset( $wp_meta_boxes[ $page ][ $context ][ $priority ]) ) { - foreach ( (array) $wp_meta_boxes[ $page ][ $context ][ $priority ] as $box ) { - if ( false == $box || ! $box['title'] ) - continue; - $i++; - $hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : ''; - echo '
    ' . "\n"; - if ( 'dashboard_browser_nag' != $box['id'] ) - echo '

    '; - echo "

    {$box['title']}

    \n"; - echo '
    ' . "\n"; - call_user_func($box['callback'], $object, $box); - echo "
    \n"; - echo "
    \n"; - } - } - } - } - - echo "
    "; - - return $i; - -} - -/** - * Remove a meta box from an edit form. - * - * @since 2.6.0 - * - * @global array $wp_meta_boxes - * - * @param string $id String for use in the 'id' attribute of tags. - * @param string|object $screen The screen on which to show the box (post, page, link). - * @param string $context The context within the page where the boxes should show ('normal', 'advanced'). - */ -function remove_meta_box($id, $screen, $context) { - global $wp_meta_boxes; - - if ( empty( $screen ) ) - $screen = get_current_screen(); - elseif ( is_string( $screen ) ) - $screen = convert_to_screen( $screen ); - - $page = $screen->id; - - if ( !isset($wp_meta_boxes) ) - $wp_meta_boxes = array(); - if ( !isset($wp_meta_boxes[$page]) ) - $wp_meta_boxes[$page] = array(); - if ( !isset($wp_meta_boxes[$page][$context]) ) - $wp_meta_boxes[$page][$context] = array(); - - foreach ( array('high', 'core', 'default', 'low') as $priority ) - $wp_meta_boxes[$page][$context][$priority][$id] = false; -} - -/** - * Meta Box Accordion Template Function - * - * Largely made up of abstracted code from {@link do_meta_boxes()}, this - * function serves to build meta boxes as list items for display as - * a collapsible accordion. - * - * @since 3.6.0 - * - * @uses global $wp_meta_boxes Used to retrieve registered meta boxes. - * - * @param string|object $screen The screen identifier. - * @param string $context The meta box context. - * @param mixed $object gets passed to the section callback function as first parameter. - * @return int number of meta boxes as accordion sections. - */ -function do_accordion_sections( $screen, $context, $object ) { - global $wp_meta_boxes; - - wp_enqueue_script( 'accordion' ); - - if ( empty( $screen ) ) - $screen = get_current_screen(); - elseif ( is_string( $screen ) ) - $screen = convert_to_screen( $screen ); - - $page = $screen->id; - - $hidden = get_hidden_meta_boxes( $screen ); - ?> -
    -
      - -
    • -

      - - -

      -
      -
      - -
      -
      -
    • - -
    -
    - $id, 'title' => $title, 'callback' => $callback); -} - -/** - * Add a new field to a section of a settings page - * - * Part of the Settings API. Use this to define a settings field that will show - * as part of a settings section inside a settings page. The fields are shown using - * do_settings_fields() in do_settings-sections() - * - * The $callback argument should be the name of a function that echoes out the - * html input tags for this setting field. Use get_option() to retrieve existing - * values to show. - * - * @since 2.7.0 - * @since 4.2.0 The `$class` argument was added. - * - * @global $wp_settings_fields Storage array of settings fields and info about their pages/sections - * - * @param string $id Slug-name to identify the field. Used in the 'id' attribute of tags. - * @param string $title Formatted title of the field. Shown as the label for the field - * during output. - * @param string $callback Function that fills the field with the desired form inputs. The - * function should echo its output. - * @param string $page The slug-name of the settings page on which to show the section - * (general, reading, writing, ...). - * @param string $section Optional. The slug-name of the section of the settings page - * in which to show the box. Default 'default'. - * @param array $args { - * Optional. Extra arguments used when outputting the field. - * - * @type string $label_for When supplied, the setting title will be wrapped - * in a `

    ' . get_the_title() . '' ); - ?>

    - - 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> - - - -
      - 'twentyten_comment' ) ); - ?> -
    - - 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> - - - - -

    - - - - - - - diff --git a/wp-content/themes/twentyten/editor-style-rtl.css b/wp-content/themes/twentyten/editor-style-rtl.css deleted file mode 100644 index 5868d3c18f..0000000000 --- a/wp-content/themes/twentyten/editor-style-rtl.css +++ /dev/null @@ -1,29 +0,0 @@ -/* -Theme Name: Twenty Ten -*/ -/* -Used to style the TinyMCE editor. -*/ -html .mceContentBody{ - direction: rtl; - unicode-bidi: embed; - float: right; - width: 640px; -} -* { - font-family: Arial, Tahoma, sans-serif; -} -/* Text elements */ -ul, ol { - margin: 0 -18px 18px 0; -} -dd { - margin-right: 0; -} -blockquote { - font-style: normal; -} -table { - text-align: right; - margin: 0 0 24px -1px; -} diff --git a/wp-content/themes/twentyten/editor-style.css b/wp-content/themes/twentyten/editor-style.css deleted file mode 100644 index c397b116c2..0000000000 --- a/wp-content/themes/twentyten/editor-style.css +++ /dev/null @@ -1,297 +0,0 @@ -/* -Theme Name: Twenty Ten -Description: Used to style the TinyMCE editor. -*/ -html .mceContentBody { - max-width: 640px; -} -* { - color: #444; - font-family: Georgia, "Bitstream Charter", serif; - line-height: 1.5; -} -p, -dl, -td, -th, -ul, -ol, -blockquote { - font-size: 16px; -} -tr th, -thead th, -label, -tr th, -thead th { - font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; -} -pre { - font-family: "Courier 10 Pitch", Courier, monospace; -} -code, code var { - font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; -} -body, input, textarea { - font-size: 12px; - line-height: 18px; -} -hr { - background-color: #e7e7e7; - border: 0; - clear: both; - height: 1px; - margin-bottom: 18px; -} -/* Text elements */ -p { - margin-bottom: 18px; -} - -ul, -ol { - margin: 0 0 18px 1.5em; - padding: 0; -} - -ul { - list-style: square; -} -ol { - list-style: decimal; -} -ol ol { - list-style: upper-alpha; -} -ol ol ol { - list-style: lower-roman; -} -ol ol ol ol { - list-style: lower-alpha; -} -ul ul, -ol ol, -ul ol, -ol ul { - margin-bottom: 0; -} -dl { - margin: 0 0 24px 0; -} -dt { - font-weight: bold; -} -dd { - margin-bottom: 18px; -} -strong { - color: #000; - font-weight: bold; -} -cite, -em, -i { - border: none; - font-style: italic; -} -big { - font-size: 131.25%; -} -ins { - background: #ffc; - border: none; - color: #333; -} -del { - text-decoration: line-through; - color: #555; -} -blockquote { - font-style: italic; - padding: 0 3em; -} -blockquote cite, -blockquote em, -blockquote i { - font-style: normal; -} -pre { - background: #f7f7f7; - color: #222; - line-height: 18px; - margin-bottom: 18px; - padding: 1.5em; -} -abbr, -acronym { - border-bottom: 1px dotted #666; - cursor: help; -} -ins { - text-decoration: none; -} -sup, -sub { - font-size: 10px; - height: 0; - line-height: 1; - position: relative; - vertical-align: baseline; -} -sup { - bottom: 1ex; -} -sub { - top: .5ex; -} -a:link { - color: #06c; -} -a:visited { - color: #743399; -} -a:active, -a:hover { - color: #ff4b33; -} -p, -ul, -ol, -dd, -pre, -hr { - margin-bottom: 24px; -} -ul ul, -ol ol, -ul ol, -ol ul { - margin-bottom: 0; -} -pre, -kbd, -tt, -var { - font-size: 15px; - line-height: 21px; -} -code { - font-size: 13px; -} -strong, -b, -dt, -th { - color: #000; -} -h1, -h2, -h3, -h4, -h5, -h6 { - color: #000; - font-weight: normal; - line-height: 1.5em; - margin: 0 0 20px 0; -} -h1 { - font-size: 2.4em; -} -h2 { - font-size: 1.8em; -} -h3 { - font-size: 1.4em; -} -h4 { - font-size: 1.2em; -} -h5 { - font-size: 1em; -} -h6 { - font-size: 0.9em; -} -table { - border: 1px solid #e7e7e7 !important; - border-collapse: collapse; - border-spacing: 0; - margin: 0 -1px 24px 0; - text-align: left; - width: 100%; -} -tr th, -thead th { - border: none !important; - color: #888; - font-size: 12px; - font-weight: bold; - line-height: 18px; - padding: 9px 24px; -} -tr td { - border: none !important; - border-top: 1px solid #e7e7e7 !important; - padding: 6px 24px; -} -img { - margin: 0; -} -img.size-auto, -img.size-large, -img.size-full, -img.size-medium { - max-width: 100%; - height: auto; -} -.alignleft, -img.alignleft { - display: inline; - float: left; - margin-right: 24px; - margin-top: 4px; -} -.alignright, -img.alignright { - display: inline; - float: right; - margin-left: 24px; - margin-top: 4px; -} -.aligncenter, -img.aligncenter { - clear: both; - display: block; - margin-left: auto; - margin-right: auto; -} -img.alignleft, -img.alignright, -img.aligncenter { - margin-bottom: 12px; -} -.wp-caption { - background: #f1f1f1; - border: none; - -khtml-border-radius: 0; - -moz-border-radius: 0; - -webkit-border-radius: 0; - border-radius: 0; - color: #888; - font-size: 12px; - line-height: 18px; - margin-bottom: 20px; - max-width: 632px !important; /* prevent too-wide images from breaking layout */ - padding: 4px; - text-align: center; -} -.wp-caption img { - margin: 5px; -} -.wp-caption p.wp-caption-text { - margin: 0 0 4px; -} -.wp-smiley { - margin: 0; -} diff --git a/wp-content/themes/twentyten/footer.php b/wp-content/themes/twentyten/footer.php deleted file mode 100644 index 5d2018ad17..0000000000 --- a/wp-content/themes/twentyten/footer.php +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - * tag of your theme, or you will break many plugins, which - * generally use this hook to reference JavaScript files. - */ - - wp_footer(); -?> - - diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php deleted file mode 100644 index 847d54035d..0000000000 --- a/wp-content/themes/twentyten/functions.php +++ /dev/null @@ -1,595 +0,0 @@ - - * add_action( 'after_setup_theme', 'my_child_theme_setup' ); - * function my_child_theme_setup() { - * // We are providing our own filter for excerpt_length (or using the unfiltered value) - * remove_filter( 'excerpt_length', 'twentyten_excerpt_length' ); - * ... - * } - * - * - * For more information on hooks, actions, and filters, see https://codex.wordpress.org/Plugin_API. - * - * @package WordPress - * @subpackage Twenty_Ten - * @since Twenty Ten 1.0 - */ - -/* - * Set the content width based on the theme's design and stylesheet. - * - * Used to set the width of images and content. Should be equal to the width the theme - * is designed for, generally via the style.css stylesheet. - */ -if ( ! isset( $content_width ) ) - $content_width = 640; - -/* Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */ -add_action( 'after_setup_theme', 'twentyten_setup' ); - -if ( ! function_exists( 'twentyten_setup' ) ): -/** - * Set up theme defaults and registers support for various WordPress features. - * - * Note that this function is hooked into the after_setup_theme hook, which runs - * before the init hook. The init hook is too late for some features, such as indicating - * support post thumbnails. - * - * To override twentyten_setup() in a child theme, add your own twentyten_setup to your child theme's - * functions.php file. - * - * @uses add_theme_support() To add support for post thumbnails, custom headers and backgrounds, and automatic feed links. - * @uses register_nav_menus() To add support for navigation menus. - * @uses add_editor_style() To style the visual editor. - * @uses load_theme_textdomain() For translation/localization support. - * @uses register_default_headers() To register the default custom header images provided with the theme. - * @uses set_post_thumbnail_size() To set a custom post thumbnail size. - * - * @since Twenty Ten 1.0 - */ -function twentyten_setup() { - - // This theme styles the visual editor with editor-style.css to match the theme style. - add_editor_style(); - - // Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories. - add_theme_support( 'post-formats', array( 'aside', 'gallery' ) ); - - // This theme uses post thumbnails - add_theme_support( 'post-thumbnails' ); - - // Add default posts and comments RSS feed links to head - add_theme_support( 'automatic-feed-links' ); - - /* - * Make theme available for translation. - * Translations can be filed in the /languages/ directory - */ - load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' ); - - // This theme uses wp_nav_menu() in one location. - register_nav_menus( array( - 'primary' => __( 'Primary Navigation', 'twentyten' ), - ) ); - - // This theme allows users to set a custom background. - add_theme_support( 'custom-background', array( - // Let WordPress know what our default background color is. - 'default-color' => 'f1f1f1', - ) ); - - // The custom header business starts here. - - $custom_header_support = array( - /* - * The default image to use. - * The %s is a placeholder for the theme template directory URI. - */ - 'default-image' => '%s/images/headers/path.jpg', - // The height and width of our custom header. - /** - * Filter the Twenty Ten default header image width. - * - * @since Twenty Ten 1.0 - * - * @param int The default header image width in pixels. Default 940. - */ - 'width' => apply_filters( 'twentyten_header_image_width', 940 ), - /** - * Filter the Twenty Ten defaul header image height. - * - * @since Twenty Ten 1.0 - * - * @param int The default header image height in pixels. Default 198. - */ - 'height' => apply_filters( 'twentyten_header_image_height', 198 ), - // Support flexible heights. - 'flex-height' => true, - // Don't support text inside the header image. - 'header-text' => false, - // Callback for styling the header preview in the admin. - 'admin-head-callback' => 'twentyten_admin_header_style', - ); - - add_theme_support( 'custom-header', $custom_header_support ); - - if ( ! function_exists( 'get_custom_header' ) ) { - // This is all for compatibility with versions of WordPress prior to 3.4. - define( 'HEADER_TEXTCOLOR', '' ); - define( 'NO_HEADER_TEXT', true ); - define( 'HEADER_IMAGE', $custom_header_support['default-image'] ); - define( 'HEADER_IMAGE_WIDTH', $custom_header_support['width'] ); - define( 'HEADER_IMAGE_HEIGHT', $custom_header_support['height'] ); - add_custom_image_header( '', $custom_header_support['admin-head-callback'] ); - add_custom_background(); - } - - /* - * We'll be using post thumbnails for custom header images on posts and pages. - * We want them to be 940 pixels wide by 198 pixels tall. - * Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. - */ - set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true ); - - // ... and thus ends the custom header business. - - // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. - register_default_headers( array( - 'berries' => array( - 'url' => '%s/images/headers/berries.jpg', - 'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Berries', 'twentyten' ) - ), - 'cherryblossom' => array( - 'url' => '%s/images/headers/cherryblossoms.jpg', - 'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Cherry Blossoms', 'twentyten' ) - ), - 'concave' => array( - 'url' => '%s/images/headers/concave.jpg', - 'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Concave', 'twentyten' ) - ), - 'fern' => array( - 'url' => '%s/images/headers/fern.jpg', - 'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Fern', 'twentyten' ) - ), - 'forestfloor' => array( - 'url' => '%s/images/headers/forestfloor.jpg', - 'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Forest Floor', 'twentyten' ) - ), - 'inkwell' => array( - 'url' => '%s/images/headers/inkwell.jpg', - 'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Inkwell', 'twentyten' ) - ), - 'path' => array( - 'url' => '%s/images/headers/path.jpg', - 'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Path', 'twentyten' ) - ), - 'sunset' => array( - 'url' => '%s/images/headers/sunset.jpg', - 'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Sunset', 'twentyten' ) - ) - ) ); -} -endif; - -if ( ! function_exists( 'twentyten_admin_header_style' ) ) : -/** - * Style the header image displayed on the Appearance > Header admin panel. - * - * Referenced via add_custom_image_header() in twentyten_setup(). - * - * @since Twenty Ten 1.0 - */ -function twentyten_admin_header_style() { -?> - -' . __( 'Continue reading ', 'twentyten' ) . ''; -} -endif; - -/** - * Replace "[...]" with an ellipsis and twentyten_continue_reading_link(). - * - * "[...]" is appended to automatically generated excerpts. - * - * To override this in a child theme, remove the filter and add your own - * function tied to the excerpt_more filter hook. - * - * @since Twenty Ten 1.0 - * - * @param string $more The Read More text. - * @return string An ellipsis. - */ -function twentyten_auto_excerpt_more( $more ) { - if ( ! is_admin() ) { - return ' …' . twentyten_continue_reading_link(); - } - return $more; -} -add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' ); - -/** - * Add a pretty "Continue Reading" link to custom post excerpts. - * - * To override this link in a child theme, remove the filter and add your own - * function tied to the get_the_excerpt filter hook. - * - * @since Twenty Ten 1.0 - * - * @param string $output The "Coninue Reading" link. - * @return string Excerpt with a pretty "Continue Reading" link. - */ -function twentyten_custom_excerpt_more( $output ) { - if ( has_excerpt() && ! is_attachment() && ! is_admin() ) { - $output .= twentyten_continue_reading_link(); - } - return $output; -} -add_filter( 'get_the_excerpt', 'twentyten_custom_excerpt_more' ); - -/** - * Remove inline styles printed when the gallery shortcode is used. - * - * Galleries are styled by the theme in Twenty Ten's style.css. This is just - * a simple filter call that tells WordPress to not use the default styles. - * - * @since Twenty Ten 1.2 - */ -add_filter( 'use_default_gallery_style', '__return_false' ); - -/** - * Deprecated way to remove inline styles printed when the gallery shortcode is used. - * - * This function is no longer needed or used. Use the use_default_gallery_style - * filter instead, as seen above. - * - * @since Twenty Ten 1.0 - * @deprecated Deprecated in Twenty Ten 1.2 for WordPress 3.1 - * - * @return string The gallery style filter, with the styles themselves removed. - */ -function twentyten_remove_gallery_css( $css ) { - return preg_replace( "##s", '', $css ); -} -// Backwards compatibility with WordPress 3.0. -if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) ) - add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); - -if ( ! function_exists( 'twentyten_comment' ) ) : -/** - * Template for comments and pingbacks. - * - * To override this walker in a child theme without modifying the comments template - * simply create your own twentyten_comment(), and that function will be used instead. - * - * Used as a callback by wp_list_comments() for displaying the comments. - * - * @since Twenty Ten 1.0 - * - * @param object $comment The comment object. - * @param array $args An array of arguments. @see get_comment_reply_link() - * @param int $depth The depth of the comment. - */ -function twentyten_comment( $comment, $args, $depth ) { - $GLOBALS['comment'] = $comment; - switch ( $comment->comment_type ) : - case '' : - ?> -
  • id="li-comment-"> -
    -
    - - says:', 'twentyten' ), sprintf( '%s', get_comment_author_link() ) ); ?> -
    - comment_approved == '0' ) : ?> - -
    - - - - -
    - -
    - $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> -
    -
    - - -
  • -

    - __( 'Primary Widget Area', 'twentyten' ), - 'id' => 'primary-widget-area', - 'description' => __( 'Add widgets here to appear in your sidebar.', 'twentyten' ), - 'before_widget' => '
  • ', - 'after_widget' => '
  • ', - 'before_title' => '

    ', - 'after_title' => '

    ', - ) ); - - // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. - register_sidebar( array( - 'name' => __( 'Secondary Widget Area', 'twentyten' ), - 'id' => 'secondary-widget-area', - 'description' => __( 'An optional secondary widget area, displays below the primary widget area in your sidebar.', 'twentyten' ), - 'before_widget' => '
  • ', - 'after_widget' => '
  • ', - 'before_title' => '

    ', - 'after_title' => '

    ', - ) ); - - // Area 3, located in the footer. Empty by default. - register_sidebar( array( - 'name' => __( 'First Footer Widget Area', 'twentyten' ), - 'id' => 'first-footer-widget-area', - 'description' => __( 'An optional widget area for your site footer.', 'twentyten' ), - 'before_widget' => '
  • ', - 'after_widget' => '
  • ', - 'before_title' => '

    ', - 'after_title' => '

    ', - ) ); - - // Area 4, located in the footer. Empty by default. - register_sidebar( array( - 'name' => __( 'Second Footer Widget Area', 'twentyten' ), - 'id' => 'second-footer-widget-area', - 'description' => __( 'An optional widget area for your site footer.', 'twentyten' ), - 'before_widget' => '
  • ', - 'after_widget' => '
  • ', - 'before_title' => '

    ', - 'after_title' => '

    ', - ) ); - - // Area 5, located in the footer. Empty by default. - register_sidebar( array( - 'name' => __( 'Third Footer Widget Area', 'twentyten' ), - 'id' => 'third-footer-widget-area', - 'description' => __( 'An optional widget area for your site footer.', 'twentyten' ), - 'before_widget' => '
  • ', - 'after_widget' => '
  • ', - 'before_title' => '

    ', - 'after_title' => '

    ', - ) ); - - // Area 6, located in the footer. Empty by default. - register_sidebar( array( - 'name' => __( 'Fourth Footer Widget Area', 'twentyten' ), - 'id' => 'fourth-footer-widget-area', - 'description' => __( 'An optional widget area for your site footer.', 'twentyten' ), - 'before_widget' => '
  • ', - 'after_widget' => '
  • ', - 'before_title' => '

    ', - 'after_title' => '

    ', - ) ); -} -/** Register sidebars by running twentyten_widgets_init() on the widgets_init hook. */ -add_action( 'widgets_init', 'twentyten_widgets_init' ); - -/** - * Remove the default styles that are packaged with the Recent Comments widget. - * - * To override this in a child theme, remove the filter and optionally add your own - * function tied to the widgets_init action hook. - * - * This function uses a filter (show_recent_comments_widget_style) new in WordPress 3.1 - * to remove the default style. Using Twenty Ten 1.2 in WordPress 3.0 will show the styles, - * but they won't have any effect on the widget in default Twenty Ten styling. - * - * @since Twenty Ten 1.0 - */ -function twentyten_remove_recent_comments_style() { - add_filter( 'show_recent_comments_widget_style', '__return_false' ); -} -add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' ); - -if ( ! function_exists( 'twentyten_posted_on' ) ) : -/** - * Print HTML with meta information for the current post-date/time and author. - * - * @since Twenty Ten 1.0 - */ -function twentyten_posted_on() { - printf( __( 'Posted on %2$s by %3$s', 'twentyten' ), - 'meta-prep meta-prep-author', - sprintf( '', - get_permalink(), - esc_attr( get_the_time() ), - get_the_date() - ), - sprintf( '%3$s', - get_author_posts_url( get_the_author_meta( 'ID' ) ), - esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ), - get_the_author() - ) - ); -} -endif; - -if ( ! function_exists( 'twentyten_posted_in' ) ) : -/** - * Print HTML with meta information for the current post (category, tags and permalink). - * - * @since Twenty Ten 1.0 - */ -function twentyten_posted_in() { - // Retrieves tag list of current post, separated by commas. - $tag_list = get_the_tag_list( '', ', ' ); - if ( $tag_list ) { - $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the permalink.', 'twentyten' ); - } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { - $posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'twentyten' ); - } else { - $posted_in = __( 'Bookmark the permalink.', 'twentyten' ); - } - // Prints the string, replacing the placeholders. - printf( - $posted_in, - get_the_category_list( ', ' ), - $tag_list, - get_permalink(), - the_title_attribute( 'echo=0' ) - ); -} -endif; - -/** - * Retrieve the IDs for images in a gallery. - * - * @uses get_post_galleries() First, if available. Falls back to shortcode parsing, - * then as last option uses a get_posts() call. - * - * @since Twenty Ten 1.6. - * - * @return array List of image IDs from the post gallery. - */ -function twentyten_get_gallery_images() { - $images = array(); - - if ( function_exists( 'get_post_galleries' ) ) { - $galleries = get_post_galleries( get_the_ID(), false ); - if ( isset( $galleries[0]['ids'] ) ) - $images = explode( ',', $galleries[0]['ids'] ); - } else { - $pattern = get_shortcode_regex(); - preg_match( "/$pattern/s", get_the_content(), $match ); - $atts = shortcode_parse_atts( $match[3] ); - if ( isset( $atts['ids'] ) ) - $images = explode( ',', $atts['ids'] ); - } - - if ( ! $images ) { - $images = get_posts( array( - 'fields' => 'ids', - 'numberposts' => 999, - 'order' => 'ASC', - 'orderby' => 'menu_order', - 'post_mime_type' => 'image', - 'post_parent' => get_the_ID(), - 'post_type' => 'attachment', - ) ); - } - - return $images; -} diff --git a/wp-content/themes/twentyten/header.php b/wp-content/themes/twentyten/header.php deleted file mode 100644 index 1ff063b8f0..0000000000 --- a/wp-content/themes/twentyten/header.php +++ /dev/null @@ -1,112 +0,0 @@ - section and everything up till
    . - * - * @package WordPress - * @subpackage Twenty_Ten - * @since Twenty Ten 1.0 - */ -?> -> - - -<?php - /* - * Print the <title> tag based on what is being viewed. - */ - global $page, $paged; - - wp_title( '|', true, 'right' ); - - // Add the blog name. - bloginfo( 'name' ); - - // Add the blog description for the home/front page. - $site_description = get_bloginfo( 'description', 'display' ); - if ( $site_description && ( is_home() || is_front_page() ) ) - echo " | $site_description"; - - // Add a page number if necessary: - if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) - echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ) ); - - ?> - - - - - * tag of your theme, or you will break many plugins, which - * generally use this hook to add elements to such - * as styles, scripts, and meta tags. - */ - wp_head(); -?> - - -> -
    - - -
    diff --git a/wp-content/themes/twentyten/images/headers/berries-thumbnail.jpg b/wp-content/themes/twentyten/images/headers/berries-thumbnail.jpg deleted file mode 100644 index 9588d31b70..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/berries-thumbnail.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/berries.jpg b/wp-content/themes/twentyten/images/headers/berries.jpg deleted file mode 100644 index b221abc4f6..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/berries.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/cherryblossoms-thumbnail.jpg b/wp-content/themes/twentyten/images/headers/cherryblossoms-thumbnail.jpg deleted file mode 100644 index c74744a862..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/cherryblossoms-thumbnail.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/cherryblossoms.jpg b/wp-content/themes/twentyten/images/headers/cherryblossoms.jpg deleted file mode 100644 index c9fffea3ed..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/cherryblossoms.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/concave-thumbnail.jpg b/wp-content/themes/twentyten/images/headers/concave-thumbnail.jpg deleted file mode 100644 index ed24a365cd..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/concave-thumbnail.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/concave.jpg b/wp-content/themes/twentyten/images/headers/concave.jpg deleted file mode 100644 index 0f29e4c550..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/concave.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/fern-thumbnail.jpg b/wp-content/themes/twentyten/images/headers/fern-thumbnail.jpg deleted file mode 100644 index 1f78bd8a94..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/fern-thumbnail.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/fern.jpg b/wp-content/themes/twentyten/images/headers/fern.jpg deleted file mode 100644 index bbefc6516f..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/fern.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/forestfloor-thumbnail.jpg b/wp-content/themes/twentyten/images/headers/forestfloor-thumbnail.jpg deleted file mode 100644 index 2c9eb7e01f..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/forestfloor-thumbnail.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/forestfloor.jpg b/wp-content/themes/twentyten/images/headers/forestfloor.jpg deleted file mode 100644 index 9cf3e60b91..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/forestfloor.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/inkwell-thumbnail.jpg b/wp-content/themes/twentyten/images/headers/inkwell-thumbnail.jpg deleted file mode 100644 index 3693f0a001..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/inkwell-thumbnail.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/inkwell.jpg b/wp-content/themes/twentyten/images/headers/inkwell.jpg deleted file mode 100644 index 8bd9147122..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/inkwell.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/path-thumbnail.jpg b/wp-content/themes/twentyten/images/headers/path-thumbnail.jpg deleted file mode 100644 index c19bba8739..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/path-thumbnail.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/path.jpg b/wp-content/themes/twentyten/images/headers/path.jpg deleted file mode 100644 index 5ebc76a92b..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/path.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/sunset-thumbnail.jpg b/wp-content/themes/twentyten/images/headers/sunset-thumbnail.jpg deleted file mode 100644 index 34e0730c54..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/sunset-thumbnail.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/headers/sunset.jpg b/wp-content/themes/twentyten/images/headers/sunset.jpg deleted file mode 100644 index 98cb24544c..0000000000 Binary files a/wp-content/themes/twentyten/images/headers/sunset.jpg and /dev/null differ diff --git a/wp-content/themes/twentyten/images/wordpress.png b/wp-content/themes/twentyten/images/wordpress.png deleted file mode 100644 index ac9d227805..0000000000 Binary files a/wp-content/themes/twentyten/images/wordpress.png and /dev/null differ diff --git a/wp-content/themes/twentyten/index.php b/wp-content/themes/twentyten/index.php deleted file mode 100644 index 4271ac388d..0000000000 --- a/wp-content/themes/twentyten/index.php +++ /dev/null @@ -1,33 +0,0 @@ - - -
    -
    - - -
    -
    - - - diff --git a/wp-content/themes/twentyten/languages/twentyten.pot b/wp-content/themes/twentyten/languages/twentyten.pot deleted file mode 100644 index 297243f72a..0000000000 --- a/wp-content/themes/twentyten/languages/twentyten.pot +++ /dev/null @@ -1,409 +0,0 @@ -# Copyright (C) 2015 the WordPress team -# This file is distributed under the GNU General Public License v2 or later. -msgid "" -msgstr "" -"Project-Id-Version: Twenty Ten 2.0\n" -"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentyten\n" -"POT-Creation-Date: 2015-07-27 19:47:38+00:00\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" - -#: 404.php:16 loop.php:33 -msgid "Not Found" -msgstr "" - -#: 404.php:18 -msgid "" -"Apologies, but the page you requested could not be found. Perhaps searching " -"will help." -msgstr "" - -#: archive.php:34 -msgid "Daily Archives: %s" -msgstr "" - -#: archive.php:36 -msgid "Monthly Archives: %s" -msgstr "" - -#: archive.php:36 -msgctxt "monthly archives date format" -msgid "F Y" -msgstr "" - -#: archive.php:38 -msgid "Yearly Archives: %s" -msgstr "" - -#: archive.php:38 -msgctxt "yearly archives date format" -msgid "Y" -msgstr "" - -#: archive.php:40 -msgid "Blog Archives" -msgstr "" - -#: author.php:28 -msgid "Author Archives: %s" -msgstr "" - -#: author.php:47 loop-single.php:46 -msgid "About %s" -msgstr "" - -#: category.php:16 -msgid "Category Archives: %s" -msgstr "" - -#: comments.php:18 -msgid "" -"This post is password protected. Enter the password to view any comments." -msgstr "" - -#: comments.php:36 -msgid "One Response to %2$s" -msgid_plural "%1$s Responses to %2$s" -msgstr[0] "" -msgstr[1] "" - -#: comments.php:42 comments.php:62 -msgid " Older Comments" -msgstr "" - -#: comments.php:43 comments.php:63 -msgid "Newer Comments " -msgstr "" - -#: comments.php:73 -msgid "Comments are closed." -msgstr "" - -#. #-#-#-#-# twentyten.pot (Twenty Ten 2.0) #-#-#-#-# -#. Author URI of the plugin/theme -#: footer.php:40 -msgid "https://wordpress.org/" -msgstr "" - -#: footer.php:40 -msgid "Semantic Personal Publishing Platform" -msgstr "" - -#: footer.php:40 -msgid "Proudly powered by %s." -msgstr "" - -#: functions.php:95 -msgid "Primary Navigation" -msgstr "" - -#. translators: header image description -#: functions.php:165 -msgid "Berries" -msgstr "" - -#. translators: header image description -#: functions.php:171 -msgid "Cherry Blossoms" -msgstr "" - -#. translators: header image description -#: functions.php:177 -msgid "Concave" -msgstr "" - -#. translators: header image description -#: functions.php:183 -msgid "Fern" -msgstr "" - -#. translators: header image description -#: functions.php:189 -msgid "Forest Floor" -msgstr "" - -#. translators: header image description -#: functions.php:195 -msgid "Inkwell" -msgstr "" - -#. translators: header image description -#: functions.php:201 -msgid "Path" -msgstr "" - -#. translators: header image description -#: functions.php:207 -msgid "Sunset" -msgstr "" - -#: functions.php:280 loop-attachment.php:119 loop.php:116 loop.php:144 -msgid "Continue reading " -msgstr "" - -#: functions.php:376 -msgid "%s says:" -msgstr "" - -#: functions.php:379 -msgid "Your comment is awaiting moderation." -msgstr "" - -#. translators: 1: date, 2: time -#: functions.php:386 -msgid "%1$s at %2$s" -msgstr "" - -#: functions.php:386 functions.php:403 -msgid "(Edit)" -msgstr "" - -#: functions.php:403 -msgid "Pingback:" -msgstr "" - -#: functions.php:423 -msgid "Primary Widget Area" -msgstr "" - -#: functions.php:425 -msgid "Add widgets here to appear in your sidebar." -msgstr "" - -#: functions.php:434 -msgid "Secondary Widget Area" -msgstr "" - -#: functions.php:436 -msgid "" -"An optional secondary widget area, displays below the primary widget area in " -"your sidebar." -msgstr "" - -#: functions.php:445 -msgid "First Footer Widget Area" -msgstr "" - -#: functions.php:447 functions.php:458 functions.php:469 functions.php:480 -msgid "An optional widget area for your site footer." -msgstr "" - -#: functions.php:456 -msgid "Second Footer Widget Area" -msgstr "" - -#: functions.php:467 -msgid "Third Footer Widget Area" -msgstr "" - -#: functions.php:478 -msgid "Fourth Footer Widget Area" -msgstr "" - -#: functions.php:514 -msgid "" -"Posted on %2$s by %3$s" -msgstr "" - -#: functions.php:523 loop-attachment.php:36 -msgid "View all posts by %s" -msgstr "" - -#: functions.php:540 -msgid "" -"This entry was posted in %1$s and tagged %2$s. Bookmark the permalink." -msgstr "" - -#: functions.php:542 -msgid "" -"This entry was posted in %1$s. Bookmark the permalink." -msgstr "" - -#: functions.php:544 -msgid "" -"Bookmark the permalink." -msgstr "" - -#: header.php:33 -msgid "Page %s" -msgstr "" - -#: header.php:105 -msgid "Skip to content" -msgstr "" - -#: loop-attachment.php:21 -msgid "Return to %s" -msgstr "" - -#. translators: %s - title of parent post -#: loop-attachment.php:23 -msgid " %s" -msgstr "" - -#: loop-attachment.php:32 -msgid "By %2$s" -msgstr "" - -#: loop-attachment.php:43 -msgid "Published %2$s" -msgstr "" - -#: loop-attachment.php:53 -msgid "Full size is %s pixels" -msgstr "" - -#: loop-attachment.php:56 -msgid "Link to full-size image" -msgstr "" - -#: loop-attachment.php:63 loop-attachment.php:126 loop-page.php:30 -#: loop-single.php:59 loop.php:101 loop.php:124 loop.php:166 -msgid "Edit" -msgstr "" - -#: loop-attachment.php:120 loop-page.php:29 loop-single.php:34 loop.php:145 -msgid "Pages:" -msgstr "" - -#: loop-single.php:21 loop-single.php:64 -msgctxt "Previous post link" -msgid "←" -msgstr "" - -#: loop-single.php:22 loop-single.php:65 -msgctxt "Next post link" -msgid "→" -msgstr "" - -#: loop-single.php:50 -msgid "View all posts by %s " -msgstr "" - -#: loop.php:25 loop.php:179 -msgid " Older posts" -msgstr "" - -#: loop.php:26 loop.php:180 -msgid "Newer posts " -msgstr "" - -#: loop.php:35 -msgid "" -"Apologies, but no results were found for the requested archive. Perhaps " -"searching will help find a related post." -msgstr "" - -#: loop.php:62 loop.php:96 -msgctxt "gallery category slug" -msgid "gallery" -msgstr "" - -#: loop.php:83 -msgid "This gallery contains %2$s photo." -msgid_plural "This gallery contains %2$s photos." -msgstr[0] "" -msgstr[1] "" - -#: loop.php:84 -msgid "Permalink to %s" -msgstr "" - -#: loop.php:94 -msgid "View Galleries" -msgstr "" - -#: loop.php:94 loop.php:97 -msgid "More Galleries" -msgstr "" - -#: loop.php:97 -msgid "View posts in the Gallery category" -msgstr "" - -#: loop.php:100 loop.php:123 loop.php:165 -msgid "Leave a comment" -msgstr "" - -#: loop.php:100 loop.php:123 loop.php:165 -msgid "1 Comment" -msgstr "" - -#: loop.php:100 loop.php:123 loop.php:165 -msgid "% Comments" -msgstr "" - -#: loop.php:107 -msgctxt "asides category slug" -msgid "asides" -msgstr "" - -#: loop.php:152 -msgid "Posted in %2$s" -msgstr "" - -#: loop.php:161 -msgid "Tagged %2$s" -msgstr "" - -#: search.php:16 -msgid "Search Results for: %s" -msgstr "" - -#: search.php:27 -msgid "Nothing Found" -msgstr "" - -#: search.php:29 -msgid "" -"Sorry, but nothing matched your search criteria. Please try again with some " -"different keywords." -msgstr "" - -#: sidebar.php:28 -msgid "Archives" -msgstr "" - -#: sidebar.php:35 -msgid "Meta" -msgstr "" - -#: tag.php:16 -msgid "Tag Archives: %s" -msgstr "" - -#. Theme Name of the plugin/theme -msgid "Twenty Ten" -msgstr "" - -#. Theme URI of the plugin/theme -msgid "https://wordpress.org/themes/twentyten/" -msgstr "" - -#. Description of the plugin/theme -msgid "" -"The 2010 theme for WordPress is stylish, customizable, simple, and readable " -"-- make it yours with a custom menu, header image, and background. Twenty " -"Ten supports six widgetized areas (two in the sidebar, four in the footer) " -"and featured images (thumbnails for gallery posts and custom header images " -"for posts and pages). It includes stylesheets for print and the admin Visual " -"Editor, special styles for posts in the \"Asides\" and \"Gallery\" " -"categories, and has an optional one-column page template that removes the " -"sidebar." -msgstr "" - -#. Author of the plugin/theme -msgid "the WordPress team" -msgstr "" - -#. Template Name of the plugin/theme -msgid "One column, no sidebar" -msgstr "" diff --git a/wp-content/themes/twentyten/license.txt b/wp-content/themes/twentyten/license.txt deleted file mode 100644 index 5fbe4a70aa..0000000000 --- a/wp-content/themes/twentyten/license.txt +++ /dev/null @@ -1,281 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - diff --git a/wp-content/themes/twentyten/loop-attachment.php b/wp-content/themes/twentyten/loop-attachment.php deleted file mode 100644 index a2dfae6e24..0000000000 --- a/wp-content/themes/twentyten/loop-attachment.php +++ /dev/null @@ -1,132 +0,0 @@ - - - - - post_parent ) ) : ?> -

    ← %s', 'twentyten' ), get_the_title( $post->post_parent ) ); - ?>

    - - -
    > -

    - - - -
    -
    - $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); - foreach ( $attachments as $k => $attachment ) { - if ( $attachment->ID == $post->ID ) - break; - } - - // If there is more than 1 image attachment in a gallery - if ( count( $attachments ) > 1 ) { - $k++; - if ( isset( $attachments[ $k ] ) ) - // get the URL of the next image attachment - $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); - else - // or get the URL of the first image attachment - $next_attachment_url = get_attachment_link( $attachments[0]->ID ); - } else { - // or, if there's only 1 image attachment, get the URL of the image - $next_attachment_url = wp_get_attachment_url(); - } -?> -

    ID, array( $attachment_width, $attachment_height ) ); // filterable image width with, essentially, no limit for image height. - ?>

    - - - - - -
    -
    post_excerpt ) ) the_excerpt(); ?>
    - -→', 'twentyten' ) ); ?> - '' ) ); ?> - -
    - -
    - - ', '' ); ?> -
    -
    - - - - diff --git a/wp-content/themes/twentyten/loop-page.php b/wp-content/themes/twentyten/loop-page.php deleted file mode 100644 index 989881f74a..0000000000 --- a/wp-content/themes/twentyten/loop-page.php +++ /dev/null @@ -1,36 +0,0 @@ - - - - -
    > - -

    - -

    - - -
    - - '' ) ); ?> - ', '' ); ?> -
    -
    - - - - diff --git a/wp-content/themes/twentyten/loop-single.php b/wp-content/themes/twentyten/loop-single.php deleted file mode 100644 index 68dd08f6f8..0000000000 --- a/wp-content/themes/twentyten/loop-single.php +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - -
    > -

    - - - -
    - - '' ) ); ?> -
    - - -
    -
    - -
    - -
    - - -
    - - ', '' ); ?> -
    -
    - - - - - - diff --git a/wp-content/themes/twentyten/loop.php b/wp-content/themes/twentyten/loop.php deleted file mode 100644 index 9f3088544f..0000000000 --- a/wp-content/themes/twentyten/loop.php +++ /dev/null @@ -1,182 +0,0 @@ -get_template_part( 'loop', 'index' ); - * - * @package WordPress - * @subpackage Twenty_Ten - * @since Twenty Ten 1.0 - */ -?> - - -max_num_pages > 1 ) : ?> - - - - - -
    -

    -
    -

    - -
    -
    - - - - - - - - ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?> -
    > -

    - - - -
    - - - - - -

    %2$s photo.', 'This gallery contains %2$s photos.', $total_images, 'twentyten' ), - 'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', - number_format_i18n( $total_images ) - ); ?>

    - - - -
    - -
    - ID ) ) : ?> - - | - term_id ) ) : ?> - - | - - - | ', '' ); ?> -
    -
    - - - - ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) ) : ?> -
    > - - -
    - -
    - -
    - →', 'twentyten' ) ); ?> -
    - - -
    - - | - - | ', '' ); ?> -
    -
    - - - - -
    > -

    - - - - -
    - -
    - -
    - →', 'twentyten' ) ); ?> - '' ) ); ?> -
    - - -
    - - - Posted in %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> - - | - - - - Tagged %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> - - | - - - | ', '' ); ?> -
    -
    - - - - - - - - -max_num_pages > 1 ) : ?> - - diff --git a/wp-content/themes/twentyten/onecolumn-page.php b/wp-content/themes/twentyten/onecolumn-page.php deleted file mode 100644 index 457e04bbda..0000000000 --- a/wp-content/themes/twentyten/onecolumn-page.php +++ /dev/null @@ -1,32 +0,0 @@ - - -
    -
    - - - -
    -
    - - diff --git a/wp-content/themes/twentyten/page.php b/wp-content/themes/twentyten/page.php deleted file mode 100644 index 70029db042..0000000000 --- a/wp-content/themes/twentyten/page.php +++ /dev/null @@ -1,33 +0,0 @@ - - -
    -
    - - - -
    -
    - - - diff --git a/wp-content/themes/twentyten/readme.txt b/wp-content/themes/twentyten/readme.txt deleted file mode 100644 index 70aba17f6e..0000000000 --- a/wp-content/themes/twentyten/readme.txt +++ /dev/null @@ -1,93 +0,0 @@ -=== Twenty Ten === -Contributors: the WordPress team -Requires at least: WordPress 3.0 -Tested up to: WordPress 4.3-trunk -Stable tag: 2.0 -License: GPLv2 or later -License URI: http://www.gnu.org/licenses/gpl-2.0.html -Tags: black, blue, white, two-columns, fixed-layout, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, featured-image-header - -== Description == -The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar. - -For more information about Twenty Ten theme please go to https://codex.wordpress.org/Twenty_Ten. - -== Installation == - -1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button. -2. Type in Twenty Ten in the search form and press the 'Enter' key in your keyboard. -3. Click on the 'Activate' button to use your new theme right away. -4. Go to https://codex.wordpress.org/Twenty_Ten for a guide to customize this theme. -5. Navigate to Appearance > Customize in your admin panel. - -== Copyright == - -Twenty Ten WordPress Theme, Copyright 2010-2015 WordPress.org & Automattic.com -Twenty Ten is Distributed under the terms of the GNU GPL - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -== Changelog == - -= 2.0 = -* Released: August 18, 2015 - -https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.0 - -= 1.9 = -* Released: April 23, 2015 - -https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.9 - -= 1.8 = -* Released: December 18, 2014 - -https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.8 - -= 1.7 = -* Released: September 4, 2014 - -https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.7 - -= 1.6 = -* Released: August 1, 2013 - -https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.6 - -= 1.5 = -* Released: December 11, 2012 - -https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.5 - -= 1.4 = -* Released: June 13, 2012 - -https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.4 - -= 1.3 = -* Released: December 12, 2011 - -https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.3 - -= 1.2 = -* Released: February 23, 2011 - -https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.2 - -= 1.1 = -* Released: July 29, 2010 - -https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.1 - -= 1.0 = -* Released: June 17, 2010 - -Initial release. diff --git a/wp-content/themes/twentyten/rtl.css b/wp-content/themes/twentyten/rtl.css deleted file mode 100644 index f6fd51e846..0000000000 --- a/wp-content/themes/twentyten/rtl.css +++ /dev/null @@ -1,278 +0,0 @@ -/* -Theme Name: Twenty Ten -*/ - - -/* -RTL Basics -*/ - - -body { - direction:rtl; - unicode-bidi:embed; -} - - -/* -LAYOUT: Two-Column (Right) -DESCRIPTION: Two-column fixed layout with one sidebar right of content -*/ - -#container { - float: right; - margin: 0 0 0 -240px; -} -#content { - margin: 0 20px 36px 280px; -} -#primary, -#secondary { - float: left; -} -#secondary { - clear: left; -} - - -/* =Fonts --------------------------------------------------------------- */ -body, -input, -textarea, -.page-title span, -.pingback a.url, -h3#comments-title, -h3#reply-title, -#access .menu, -#access div.menu ul, -#cancel-comment-reply-link, -.form-allowed-tags, -#site-info, -#site-title, -#wp-calendar, -.comment-meta, -.comment-body tr th, -.comment-body thead th, -.entry-content label, -.entry-content tr th, -.entry-content thead th, -.entry-meta, -.entry-title, -.entry-utility, -#respond label, -.navigation, -.page-title, -.pingback p, -.reply, -.widget-title, -input[type="submit"] { - font-family: Arial, Tahoma, sans-serif; -} - -/* =Structure --------------------------------------------------------------- */ - -/* The main theme structure */ -#footer-widget-area .widget-area { - float: right; - margin-left: 20px; - margin-right: 0; -} -#footer-widget-area #fourth { - margin-left: 0; -} -#site-info { - float: right; -} -#site-generator { - float: left; -} - - -/* =Global Elements --------------------------------------------------------------- */ - -/* Text elements */ -ul, ol { - margin: 0 1.5em 18px 0; -} -blockquote { - font-style: normal; -} - - -/* =Header --------------------------------------------------------------- */ - -#site-title { - float: right; -} -#site-description { - clear: left; - float: left; - font-style: normal; -} -#branding img { - float: right; -} - -/* =Menu --------------------------------------------------------------- */ - -#access { - float:right; -} - -#access .menu-header, -div.menu { - margin-right: 12px; - margin-left: 0; -} - -#access .menu-header li, -div.menu li{ - float:right; -} - -#access ul ul { - left:auto; - right:0; - float:right; -} -#access ul ul ul { - left:auto; - right:100%; -} - -/* =Content --------------------------------------------------------------- */ - -#content table { - text-align: right; - margin: 0 0 24px -1px; -} -.page-title span { - font-style:normal; -} -.entry-title, -.entry-meta { - clear: right; - float: right; - margin-left: 68px; - margin-right: 0; -} - -.entry-content input.file, -.entry-content input.button { - margin-left: 24px; - margin-right:0; -} -.entry-content blockquote.left { - float: right; - margin-right: 0; - margin-left: 24px; - text-align: left; -} -.entry-content blockquote.right { - float: left; - margin-right: 24px; - margin-left: 0; - text-align: right; -} -#entry-author-info #author-avatar { - float: right; - margin: 0 0 0 -104px; -} -#entry-author-info #author-description { - float: right; - margin: 0 104px 0 0; -} - -/* Gallery listing --------------------------------------------------------------- */ - -.category-gallery .gallery-thumb { - float: right; - margin-left:20px; - margin-right:0; -} - - -/* Images --------------------------------------------------------------- */ - -#content .gallery .gallery-caption { - margin-right: 0; -} - -#content .gallery .gallery-item { - float: right; -} - -/* =Navigation --------------------------------------------------------------- */ -.nav-previous { - float: right; -} -.nav-next { - float: left; - text-align:left; -} - -/* =Comments --------------------------------------------------------------- */ - -.commentlist li.comment { - padding: 0 56px 0 0; -} -.commentlist .avatar { - right: 0; - left: auto; -} -.comment-author .says, #comments .pingback .url { - font-style: normal; -} - -/* Comments form */ -.children #respond { - margin: 0 0 0 48px; -} - -/* =Widget Areas --------------------------------------------------------------- */ - -.widget-area ul { - margin-right: 0; -} -.widget-area ul ul { - margin-right: 1.3em; - margin-left: 0; -} -#wp-calendar caption { - text-align: right; -} -#wp-calendar tfoot #next { - text-align: left; -} - -/* Main sidebars */ -#main .widget-area ul { - margin-right: 0; - padding: 0 0 0 20px; -} -#main .widget-area ul ul { - margin-right: 1.3em; - margin-left: 0; -} - -/* =Footer --------------------------------------------------------------- */ -#site-generator { - font-style:normal; -} -#site-generator a { - background-position: right center; - padding-right: 20px; - padding-left: 0; -} \ No newline at end of file diff --git a/wp-content/themes/twentyten/screenshot.png b/wp-content/themes/twentyten/screenshot.png deleted file mode 100644 index fac2b97f43..0000000000 Binary files a/wp-content/themes/twentyten/screenshot.png and /dev/null differ diff --git a/wp-content/themes/twentyten/search.php b/wp-content/themes/twentyten/search.php deleted file mode 100644 index a3fa97bd67..0000000000 --- a/wp-content/themes/twentyten/search.php +++ /dev/null @@ -1,38 +0,0 @@ - - -
    -
    - - -

    ' . get_search_query() . '' ); ?>

    - - -
    -

    -
    -

    - -
    -
    - -
    -
    - - - diff --git a/wp-content/themes/twentyten/sidebar-footer.php b/wp-content/themes/twentyten/sidebar-footer.php deleted file mode 100644 index c055ad1cd8..0000000000 --- a/wp-content/themes/twentyten/sidebar-footer.php +++ /dev/null @@ -1,61 +0,0 @@ - - - - - diff --git a/wp-content/themes/twentyten/sidebar.php b/wp-content/themes/twentyten/sidebar.php deleted file mode 100644 index 75ec6a12b3..0000000000 --- a/wp-content/themes/twentyten/sidebar.php +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - diff --git a/wp-content/themes/twentyten/single.php b/wp-content/themes/twentyten/single.php deleted file mode 100644 index 4e64ec7794..0000000000 --- a/wp-content/themes/twentyten/single.php +++ /dev/null @@ -1,28 +0,0 @@ - - -
    -
    - - - -
    -
    - - - diff --git a/wp-content/themes/twentyten/style.css b/wp-content/themes/twentyten/style.css deleted file mode 100644 index ad3c82987e..0000000000 --- a/wp-content/themes/twentyten/style.css +++ /dev/null @@ -1,1389 +0,0 @@ -/* -Theme Name: Twenty Ten -Theme URI: https://wordpress.org/themes/twentyten/ -Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar. -Author: the WordPress team -Author URI: https://wordpress.org/ -Version: 2.0 -License: GNU General Public License v2 or later -License URI: http://www.gnu.org/licenses/gpl-2.0.html -Tags: black, blue, white, two-columns, fixed-layout, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, featured-image-header -Text Domain: twentyten -*/ - - -/* =Reset default browser CSS. Based on work by Eric Meyer. --------------------------------------------------------------- */ - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, font, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td { - background: transparent; - border: 0; - margin: 0; - padding: 0; - vertical-align: baseline; -} -body { - line-height: 1; -} -h1, h2, h3, h4, h5, h6 { - clear: both; - font-weight: normal; -} -ol, ul { - list-style: none; -} -blockquote { - quotes: none; -} -blockquote:before, blockquote:after { - content: ''; - content: none; -} -del { - text-decoration: line-through; -} -/* tables still need 'cellspacing="0"' in the markup */ -table { - border-collapse: collapse; - border-spacing: 0; -} -a img { - border: none; -} - -/* =Layout --------------------------------------------------------------- */ - -/* -LAYOUT: Two columns -DESCRIPTION: Two-column fixed layout with one sidebar right of content -*/ - -#container { - float: left; - margin: 0 -240px 0 0; - width: 100%; -} -#content { - margin: 0 280px 0 20px; -} -#primary, -#secondary { - float: right; - overflow: hidden; - width: 220px; -} -#secondary { - clear: right; -} -#footer { - clear: both; - width: 100%; -} - -/* -LAYOUT: One column, no sidebar -DESCRIPTION: One centered column with no sidebar -*/ - -.one-column #content { - margin: 0 auto; - width: 640px; -} - -/* -LAYOUT: Full width, no sidebar -DESCRIPTION: Full width content with no sidebar; used for attachment pages -*/ - -.single-attachment #content { - margin: 0 auto; - width: 900px; -} - - -/* =Fonts --------------------------------------------------------------- */ -body, -input, -textarea, -.page-title span, -.pingback a.url { - font-family: Georgia, "Bitstream Charter", serif; -} -h3#comments-title, -h3#reply-title, -#access .menu, -#access div.menu ul, -#cancel-comment-reply-link, -.form-allowed-tags, -#site-info, -#site-title, -#wp-calendar, -.comment-meta, -.comment-body tr th, -.comment-body thead th, -.entry-content label, -.entry-content tr th, -.entry-content thead th, -.entry-meta, -.entry-title, -.entry-utility, -#respond label, -.navigation, -.page-title, -.pingback p, -.reply, -.widget-title, -.wp-caption-text { - font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; -} -input[type="submit"] { - font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; -} -pre { - font-family: "Courier 10 Pitch", Courier, monospace; -} -code { - font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; -} - - -/* =Structure --------------------------------------------------------------- */ - -/* The main theme structure */ -#access .menu-header, -div.menu, -#colophon, -#branding, -#main, -#wrapper { - margin: 0 auto; - width: 940px; -} -#wrapper { - background: #fff; - margin-top: 20px; - padding: 0 20px; -} - -/* Structure the footer area */ -#footer-widget-area { - overflow: hidden; -} -#footer-widget-area .widget-area { - float: left; - margin-right: 20px; - width: 220px; -} -#footer-widget-area #fourth { - margin-right: 0; -} -#site-info { - float: left; - font-size: 14px; - font-weight: bold; - width: 700px; -} -#site-generator { - float: right; - width: 220px; -} - - -/* =Global Elements --------------------------------------------------------------- */ - -/* Main global 'theme' and typographic styles */ -body { - background: #f1f1f1; -} -body, -input, -textarea { - color: #666; - font-size: 12px; - line-height: 18px; -} -hr { - background-color: #e7e7e7; - border: 0; - clear: both; - height: 1px; - margin-bottom: 18px; -} - -/* Text elements */ -p { - margin-bottom: 18px; -} -ul { - list-style: square; - margin: 0 0 18px 1.5em; -} -ol { - list-style: decimal; - margin: 0 0 18px 1.5em; -} -ol ol { - list-style: upper-alpha; -} -ol ol ol { - list-style: lower-roman; -} -ol ol ol ol { - list-style: lower-alpha; -} -ul ul, -ol ol, -ul ol, -ol ul { - margin-bottom: 0; -} -dl { - margin: 0 0 24px 0; -} -dt { - font-weight: bold; -} -dd { - margin-bottom: 18px; -} -strong { - font-weight: bold; -} -cite, -em, -i { - font-style: italic; -} -big { - font-size: 131.25%; -} -ins { - background: #ffc; - text-decoration: none; -} -blockquote { - font-style: italic; - padding: 0 3em; -} -blockquote cite, -blockquote em, -blockquote i { - font-style: normal; -} -pre { - background: #f7f7f7; - color: #222; - line-height: 18px; - margin-bottom: 18px; - overflow: auto; - padding: 1.5em; -} -abbr, -acronym { - border-bottom: 1px dotted #666; - cursor: help; -} -sup, -sub { - height: 0; - line-height: 1; - position: relative; - vertical-align: baseline; -} -sup { - bottom: 1ex; -} -sub { - top: .5ex; -} -small { - font-size: smaller; -} -input[type="text"], -input[type="password"], -input[type="email"], -input[type="url"], -input[type="number"], -textarea { - background: #f9f9f9; - border: 1px solid #ccc; - box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1); - -moz-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1); - -webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1); - padding: 2px; -} -a:link { - color: #0066cc; -} -a:visited { - color: #743399; -} -a:active, -a:hover { - color: #ff4b33; -} - -/* Text meant only for screen readers */ -.screen-reader-text { - clip: rect(1px, 1px, 1px, 1px); - overflow: hidden; - position: absolute !important; - height: 1px; - width: 1px; -} - - -/* =Header --------------------------------------------------------------- */ - -#header { - padding: 30px 0 0 0; -} -#site-title { - float: left; - font-size: 30px; - line-height: 36px; - margin: 0 0 18px 0; - width: 700px; -} -#site-title a { - color: #000; - font-weight: bold; - text-decoration: none; -} -#site-description { - clear: right; - float: right; - font-style: italic; - margin: 15px 0 18px 0; - width: 220px; -} - -/* This is the custom header image */ -#branding img { - border-top: 4px solid #000; - border-bottom: 1px solid #000; - display: block; - float: left; -} - - -/* =Menu --------------------------------------------------------------- */ - -#access { - background: #000; - display: block; - float: left; - margin: 0 auto; - width: 940px; -} -#access .menu-header, -div.menu { - font-size: 13px; - margin-left: 12px; - width: 928px; -} -#access .menu-header ul, -div.menu ul { - list-style: none; - margin: 0; -} -#access .menu-header li, -div.menu li { - float: left; - position: relative; -} -#access a { - color: #aaa; - display: block; - line-height: 38px; - padding: 0 10px; - text-decoration: none; -} -#access ul ul { - box-shadow: 0px 3px 3px rgba(0,0,0,0.2); - -moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); - -webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); - display: none; - position: absolute; - top: 38px; - left: 0; - float: left; - width: 180px; - z-index: 99999; -} -#access ul ul li { - min-width: 180px; -} -#access ul ul ul { - left: 100%; - top: 0; -} -#access ul ul a { - background: #333; - line-height: 1em; - padding: 10px; - width: 160px; - height: auto; -} -#access li:hover > a, -#access ul ul :hover > a { - background: #333; - color: #fff; -} -#access ul li:hover > ul { - display: block; -} -#access ul li.current_page_item > a, -#access ul li.current_page_ancestor > a, -#access ul li.current-menu-ancestor > a, -#access ul li.current-menu-item > a, -#access ul li.current-menu-parent > a { - color: #fff; -} -* html #access ul li.current_page_item a, -* html #access ul li.current_page_ancestor a, -* html #access ul li.current-menu-ancestor a, -* html #access ul li.current-menu-item a, -* html #access ul li.current-menu-parent a, -* html #access ul li a:hover { - color: #fff; -} - - -/* =Content --------------------------------------------------------------- */ - -#main { - clear: both; - overflow: hidden; - padding: 40px 0 0 0; -} -#content { - margin-bottom: 36px; -} -#content, -#content input, -#content textarea { - color: #333; - font-size: 16px; - line-height: 24px; -} -#content p, -#content ul, -#content ol, -#content dd, -#content pre, -#content hr { - margin-bottom: 24px; -} -#content ul ul, -#content ol ol, -#content ul ol, -#content ol ul { - margin-bottom: 0; -} -#content pre, -#content kbd, -#content tt, -#content var { - font-size: 15px; - line-height: 21px; -} -#content code { - font-size: 13px; -} -#content dt, -#content th { - color: #000; -} -#content h1, -#content h2, -#content h3, -#content h4, -#content h5, -#content h6 { - color: #000; - line-height: 1.5em; - margin: 0 0 20px 0; -} -#content table { - border: 1px solid #e7e7e7; - margin: 0 -1px 24px 0; - text-align: left; - width: 100%; -} -#content tr th, -#content thead th { - color: #777; - font-size: 12px; - font-weight: bold; - line-height: 18px; - padding: 9px 24px; -} -#content tr td { - border-top: 1px solid #e7e7e7; - padding: 6px 24px; -} -#content tr.odd td { - background: #f2f7fc; -} -.hentry { - margin: 0 0 48px 0; -} -.home .sticky { - background: #f2f7fc; - border-top: 4px solid #000; - margin-left: -20px; - margin-right: -20px; - padding: 18px 20px; -} -.single .hentry { - margin: 0 0 36px 0; -} -.page-title { - color: #000; - font-size: 14px; - font-weight: bold; - margin: 0 0 36px 0; -} -.page-title span { - color: #333; - font-size: 16px; - font-style: italic; - font-weight: normal; -} -.page-title a:link, -.page-title a:visited { - color: #777; - text-decoration: none; -} -.page-title a:active, -.page-title a:hover { - color: #ff4b33; -} -#content .entry-title { - color: #000; - font-size: 21px; - font-weight: bold; - line-height: 1.3em; - margin-bottom: 0; -} -.entry-title a:link, -.entry-title a:visited { - color: #000; - text-decoration: none; -} -.entry-title a:active, -.entry-title a:hover { - color: #ff4b33; -} -.entry-meta { - color: #777; - font-size: 12px; -} -.entry-meta abbr, -.entry-utility abbr { - border: none; -} -.entry-meta abbr:hover, -.entry-utility abbr:hover { - border-bottom: 1px dotted #666; -} -.entry-content, -.entry-summary { - clear: both; - padding: 12px 0 0 0; -} -.entry-content .more-link { - white-space: nowrap; -} -#content .entry-summary p:last-child { - margin-bottom: 12px; -} -.entry-content fieldset { - border: 1px solid #e7e7e7; - margin: 0 0 24px 0; - padding: 24px; -} -.entry-content fieldset legend { - background: #fff; - color: #000; - font-weight: bold; - padding: 0 24px; -} -.entry-content input { - margin: 0 0 24px 0; -} -.entry-content input.file, -.entry-content input.button { - margin-right: 24px; -} -.entry-content label { - color: #777; - font-size: 12px; -} -.entry-content select { - margin: 0 0 24px 0; -} -.entry-content sup, -.entry-content sub { - font-size: 10px; -} -.entry-content blockquote.left { - float: left; - margin-left: 0; - margin-right: 24px; - text-align: right; - width: 33%; -} -.entry-content blockquote.right { - float: right; - margin-left: 24px; - margin-right: 0; - text-align: left; - width: 33%; -} -.page-link { - clear: both; - color: #000; - font-weight: bold; - line-height: 48px; - word-spacing: 0.5em; -} -.page-link a:link, -.page-link a:visited { - background: #f1f1f1; - color: #333; - font-weight: normal; - padding: 0.5em 0.75em; - text-decoration: none; -} -.home .sticky .page-link a { - background: #d9e8f7; -} -.page-link a:active, -.page-link a:hover { - color: #ff4b33; -} -body.page .edit-link { - clear: both; - display: block; -} -#entry-author-info { - background: #f2f7fc; - border-top: 4px solid #000; - clear: both; - font-size: 14px; - line-height: 20px; - margin: 24px 0; - overflow: hidden; - padding: 18px 20px; -} -#entry-author-info #author-avatar { - background: #fff; - border: 1px solid #e7e7e7; - float: left; - height: 60px; - margin: 0 -104px 0 0; - padding: 11px; -} -#entry-author-info #author-description { - float: left; - margin: 0 0 0 104px; -} -#entry-author-info h2 { - color: #000; - font-size: 100%; - font-weight: bold; - margin-bottom: 0; -} -.entry-utility { - clear: both; - color: #777; - font-size: 12px; - line-height: 18px; -} -.entry-meta a, -.entry-utility a { - color: #777; -} -.entry-meta a:hover, -.entry-utility a:hover { - color: #ff4b33; -} -#content .video-player { - padding: 0; -} -.format-standard .wp-video, -.format-standard .wp-audio-shortcode, -.format-audio .wp-audio-shortcode, -.format-standard .video-player { - margin-bottom: 24px; -} - -/* =Asides --------------------------------------------------------------- */ - -.home #content .format-aside p, -.home #content .category-asides p { - font-size: 14px; - line-height: 20px; - margin-bottom: 10px; - margin-top: 0; -} -.home .hentry.format-aside, -.home .hentry.category-asides { - padding: 0; -} -.home #content .format-aside .entry-content, -.home #content .category-asides .entry-content { - padding-top: 0; -} - - -/* =Gallery listing --------------------------------------------------------------- */ - -.format-gallery .size-thumbnail img, -.category-gallery .size-thumbnail img { - border: 10px solid #f1f1f1; - margin-bottom: 0; -} -.format-gallery .gallery-thumb, -.category-gallery .gallery-thumb { - float: left; - margin-right: 20px; - margin-top: -4px; -} -.home #content .format-gallery .entry-utility, -.home #content .category-gallery .entry-utility { - padding-top: 4px; -} - - -/* =Attachment pages --------------------------------------------------------------- */ - -.attachment .entry-content .entry-caption { - font-size: 140%; - margin-top: 24px; -} -.attachment .entry-content .nav-previous a:before { - content: '\2190\00a0'; -} -.attachment .entry-content .nav-next a:after { - content: '\00a0\2192'; -} - - -/* =Images --------------------------------------------------------------- */ - -/* -Resize images to fit the main content area. -- Applies only to images uploaded via WordPress by targeting size-* classes. -- Other images will be left alone. Use "size-auto" class to apply to other images. -*/ -img.size-auto, -img.size-full, -img.size-large, -img.size-medium, -.attachment img, -.widget-container img { - max-width: 100%; /* When images are too wide for containing element, force them to fit. */ - height: auto; /* Override height to match resized width for correct aspect ratio. */ -} -.alignleft, -img.alignleft { - display: inline; - float: left; - margin-right: 24px; - margin-top: 4px; -} -.alignright, -img.alignright { - display: inline; - float: right; - margin-left: 24px; - margin-top: 4px; -} -.aligncenter, -img.aligncenter { - clear: both; - display: block; - margin-left: auto; - margin-right: auto; -} -img.alignleft, -img.alignright, -img.aligncenter { - margin-bottom: 12px; -} -.wp-caption { - background: #f1f1f1; - line-height: 18px; - margin-bottom: 20px; - max-width: 632px !important; /* prevent too-wide images from breaking layout */ - padding: 4px; - text-align: center; -} -.wp-caption img { - margin: 5px 5px 0; - max-width: 622px; /* caption width - 10px */ -} -.wp-caption p.wp-caption-text { - color: #777; - font-size: 12px; - margin: 5px; -} -.wp-smiley { - margin: 0; -} -.gallery { - margin: 0 auto 18px; -} -.gallery .gallery-item { - float: left; - margin-top: 0; - text-align: center; - width: 33%; -} -.gallery-columns-2 .gallery-item { - width: 50%; -} -.gallery-columns-4 .gallery-item { - width: 25%; -} -.gallery img { - border: 2px solid #cfcfcf; -} -.gallery-columns-2 .attachment-medium { - max-width: 92%; - height: auto; -} -.gallery-columns-4 .attachment-thumbnail { - max-width: 84%; - height: auto; -} -.gallery .gallery-caption { - color: #777; - font-size: 12px; - margin: 0 0 12px; -} -.gallery dl { - margin: 0; -} -.gallery img { - border: 10px solid #f1f1f1; -} -.gallery br+br { - display: none; -} -#content .attachment img {/* single attachment images should be centered */ - display: block; - margin: 0 auto; -} - - -/* =Navigation --------------------------------------------------------------- */ - -.navigation { - color: #777; - font-size: 12px; - line-height: 18px; - overflow: hidden; -} -.navigation a:link, -.navigation a:visited { - color: #777; - text-decoration: none; -} -.navigation a:active, -.navigation a:hover { - color: #ff4b33; -} -.nav-previous { - float: left; - width: 50%; -} -.nav-next { - float: right; - text-align: right; - width: 50%; -} -#nav-above { - margin: 0 0 18px 0; -} -#nav-above { - display: none; -} -.paged #nav-above, -.single #nav-above { - display: block; -} -#nav-below { - margin: -18px 0 0 0; -} - - -/* =Comments --------------------------------------------------------------- */ -#comments { - clear: both; -} -#comments .navigation { - padding: 0 0 18px 0; -} -h3#comments-title, -h3#reply-title { - color: #000; - font-size: 20px; - font-weight: bold; - margin-bottom: 0; -} -h3#comments-title { - padding: 24px 0; -} -.commentlist { - list-style: none; - margin: 0; -} -.commentlist li.comment { - border-bottom: 1px solid #e7e7e7; - line-height: 24px; - margin: 0 0 24px 0; - padding: 0 0 0 56px; - position: relative; -} -.commentlist li:last-child { - border-bottom: none; - margin-bottom: 0; -} -#comments .comment-body ul, -#comments .comment-body ol { - margin-bottom: 18px; -} -#comments .comment-body p:last-child { - margin-bottom: 6px; -} -#comments .comment-body blockquote p:last-child { - margin-bottom: 24px; -} -.commentlist ol { - list-style: decimal; -} -.commentlist .avatar { - position: absolute; - top: 4px; - left: 0; -} -.comment-author { -} -.comment-author cite { - color: #000; - font-style: normal; - font-weight: bold; -} -.comment-author .says { - font-style: italic; -} -.comment-meta { - font-size: 12px; - margin: 0 0 18px 0; -} -.comment-meta a:link, -.comment-meta a:visited { - color: #777; - text-decoration: none; -} -.comment-meta a:active, -.comment-meta a:hover { - color: #ff4b33; -} -.commentlist .even { -} -.commentlist .bypostauthor { -} -.reply { - font-size: 12px; - padding: 0 0 24px 0; -} -.reply a, -a.comment-edit-link { - color: #777; -} -.reply a:hover, -a.comment-edit-link:hover { - color: #ff4b33; -} -.commentlist .children { - list-style: none; - margin: 0; -} -.commentlist .children li { - border: none; - margin: 0; -} -.nopassword, -.nocomments { - display: none; -} -#comments .pingback { - border-bottom: 1px solid #e7e7e7; - margin-bottom: 18px; - padding-bottom: 18px; -} -.commentlist li.comment+li.pingback { - margin-top: -6px; -} -#comments .pingback p { - color: #777; - display: block; - font-size: 12px; - line-height: 18px; - margin: 0; -} -#comments .pingback .url { - font-size: 13px; - font-style: italic; -} - -/* Comments form */ -input[type="submit"] { - color: #333; -} -#respond { - border-top: 1px solid #e7e7e7; - margin: 24px 0; - overflow: hidden; - position: relative; -} -#respond p { - margin: 0; -} -#respond .comment-notes { - margin-bottom: 1em; -} -.form-allowed-tags { - line-height: 1em; -} -.children #respond { - margin: 0 48px 0 0; -} -h3#reply-title { - margin: 18px 0; -} -#comments-list #respond { - margin: 0 0 18px 0; -} -#comments-list ul #respond { - margin: 0; -} -#cancel-comment-reply-link { - font-size: 12px; - font-weight: normal; - line-height: 18px; -} -#respond .required { - color: #ff4b33; - font-weight: bold; -} -#respond label { - color: #777; - font-size: 12px; -} -#respond input { - margin: 0 0 9px; - width: 98%; -} -#respond textarea { - width: 98%; -} -#respond .form-allowed-tags { - color: #777; - font-size: 12px; - line-height: 18px; -} -#respond .form-allowed-tags code { - font-size: 11px; -} -#respond .form-submit { - margin: 12px 0; -} -#respond .form-submit input { - font-size: 14px; - width: auto; -} - - -/* =Widget Areas --------------------------------------------------------------- */ - -.widget-area ul { - list-style: none; - margin-left: 0; -} -.widget-area ul ul { - list-style: square; - margin-left: 1.3em; -} -.widget-area select { - max-width: 100%; -} -.widget_search #s {/* This keeps the search inputs in line */ - width: 60%; -} -.widget_search label { - display: none; -} -.widget-container { - word-wrap: break-word; - -webkit-hyphens: auto; - -moz-hyphens: auto; - hyphens: auto; - margin: 0 0 18px 0; -} -.widget-container .wp-caption img { - margin: auto; -} -.widget-title { - color: #222; - font-weight: bold; -} -.widget-area a:link, -.widget-area a:visited { - text-decoration: none; -} -.widget-area a:active, -.widget-area a:hover { - text-decoration: underline; -} -.widget-area .entry-meta { - font-size: 11px; -} -#wp_tag_cloud div { - line-height: 1.6em; -} -#wp-calendar { - width: 100%; -} -#wp-calendar caption { - color: #222; - font-size: 14px; - font-weight: bold; - padding-bottom: 4px; - text-align: left; -} -#wp-calendar thead { - font-size: 11px; -} -#wp-calendar thead th { -} -#wp-calendar tbody { - color: #aaa; -} -#wp-calendar tbody td { - background: #f5f5f5; - border: 1px solid #fff; - padding: 3px 0 2px; - text-align: center; -} -#wp-calendar tbody .pad { - background: none; -} -#wp-calendar tfoot #next { - text-align: right; -} -.widget_rss a.rsswidget { - color: #000; -} -.widget_rss a.rsswidget:hover { - color: #ff4b33; -} -.widget_rss .widget-title img { - width: 11px; - height: 11px; -} - -/* Main sidebars */ -#main .widget-area ul { - margin-left: 0; - padding: 0 20px 0 0; -} -#main .widget-area ul ul { - border: none; - margin-left: 1.3em; - padding: 0; -} -#primary { -} -#secondary { -} - -/* Footer widget areas */ -#footer-widget-area { -} - - -/* =Footer --------------------------------------------------------------- */ - -#footer { - margin-bottom: 20px; -} -#colophon { - border-top: 4px solid #000; - margin-top: -4px; - overflow: hidden; - padding: 18px 0; -} -#site-info { - font-weight: bold; -} -#site-info a { - color: #000; - text-decoration: none; -} -#site-generator { - font-style: italic; - position: relative; -} -#site-generator a { - background: url(images/wordpress.png) center left no-repeat; - color: #666; - display: inline-block; - line-height: 16px; - padding-left: 20px; - text-decoration: none; -} -#site-generator a:hover { - text-decoration: underline; -} -img#wpstats { - display: block; - margin: 0 auto 10px; -} - - -/* =Mobile Safari ( iPad, iPhone and iPod Touch ) --------------------------------------------------------------- */ - -pre { - -webkit-text-size-adjust: 140%; -} -code { - -webkit-text-size-adjust: 160%; -} -#access, -.entry-meta, -.entry-utility, -.navigation, -.widget-area { - -webkit-text-size-adjust: 120%; -} -#site-description { - -webkit-text-size-adjust: none; -} - - -/* =Print Style --------------------------------------------------------------- */ - -@media print { - body { - background: none !important; - } - #wrapper { - clear: both !important; - display: block !important; - float: none !important; - position: relative !important; - } - #header { - border-bottom: 2pt solid #000; - padding-bottom: 18pt; - } - #colophon { - border-top: 2pt solid #000; - } - #site-title, - #site-description { - float: none; - line-height: 1.4em; - margin: 0; - padding: 0; - } - #site-title { - font-size: 13pt; - } - .entry-content { - font-size: 14pt; - line-height: 1.6em; - } - .entry-title { - font-size: 21pt; - } - #access, - #branding img, - #respond, - .comment-edit-link, - .edit-link, - .navigation, - .page-link, - .widget-area { - display: none !important; - } - #container, - #header, - #footer { - margin: 0; - width: 100%; - } - #content, - .one-column #content { - margin: 24pt 0 0; - width: 100%; - } - .wp-caption p { - font-size: 11pt; - } - #site-info, - #site-generator { - float: none; - width: auto; - } - #colophon { - width: auto; - } - img#wpstats { - display: none; - } - #site-generator a { - margin: 0; - padding: 0; - } - #entry-author-info { - border: 1px solid #e7e7e7; - } - #main { - display: inline; - } - .home .sticky { - border: none; - } -} diff --git a/wp-content/themes/twentyten/tag.php b/wp-content/themes/twentyten/tag.php deleted file mode 100644 index 01ae6cd36c..0000000000 --- a/wp-content/themes/twentyten/tag.php +++ /dev/null @@ -1,31 +0,0 @@ - - -
    -
    - -

    ' . single_tag_title( '', false ) . '' ); - ?>

    - - -
    -
    - - - diff --git a/wp-content/themes/twentythirteen/404.php b/wp-content/themes/twentythirteen/404.php deleted file mode 100644 index eebc34b706..0000000000 --- a/wp-content/themes/twentythirteen/404.php +++ /dev/null @@ -1,31 +0,0 @@ - - -
    -
    - - - -
    -
    -

    -

    - - -
    -
    - -
    -
    - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/archive.php b/wp-content/themes/twentythirteen/archive.php deleted file mode 100644 index 445db7e641..0000000000 --- a/wp-content/themes/twentythirteen/archive.php +++ /dev/null @@ -1,55 +0,0 @@ - - -
    -
    - - -
    -

    -
    - - - - - - - - - - - - -
    -
    - - - diff --git a/wp-content/themes/twentythirteen/author-bio.php b/wp-content/themes/twentythirteen/author-bio.php deleted file mode 100644 index ae2f522b3b..0000000000 --- a/wp-content/themes/twentythirteen/author-bio.php +++ /dev/null @@ -1,34 +0,0 @@ - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/author.php b/wp-content/themes/twentythirteen/author.php deleted file mode 100644 index c7b5d87ada..0000000000 --- a/wp-content/themes/twentythirteen/author.php +++ /dev/null @@ -1,62 +0,0 @@ - - -
    -
    - - - - - -
    -

    ' . get_the_author() . '' ); ?>

    -
    - - - - - - - - - - - - - - - - - - -
    -
    - - - diff --git a/wp-content/themes/twentythirteen/category.php b/wp-content/themes/twentythirteen/category.php deleted file mode 100644 index f82e0abccb..0000000000 --- a/wp-content/themes/twentythirteen/category.php +++ /dev/null @@ -1,41 +0,0 @@ - - -
    -
    - - -
    -

    - - -
    - -
    - - - - - - - - - - - - -
    -
    - - - diff --git a/wp-content/themes/twentythirteen/comments.php b/wp-content/themes/twentythirteen/comments.php deleted file mode 100644 index 3d1aff46bd..0000000000 --- a/wp-content/themes/twentythirteen/comments.php +++ /dev/null @@ -1,59 +0,0 @@ - - -
    - - -

    - ' . get_the_title() . '' ); - ?> -

    - -
      - 'ol', - 'short_ping' => true, - 'avatar_size' => 74, - ) ); - ?> -
    - - 1 && get_option( 'page_comments' ) ) : - ?> - - - - -

    - - - - - - -
    \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/content-aside.php b/wp-content/themes/twentythirteen/content-aside.php deleted file mode 100644 index fbc01e618d..0000000000 --- a/wp-content/themes/twentythirteen/content-aside.php +++ /dev/null @@ -1,38 +0,0 @@ - - -
    > -
    - →', 'twentythirteen' ), - the_title( '', '', false ) - ) ); - - wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '' ) ); - ?> -
    - -
    - - - ', '' ); ?> - - - - - - - - ', '' ); ?> - -
    -
    diff --git a/wp-content/themes/twentythirteen/content-audio.php b/wp-content/themes/twentythirteen/content-audio.php deleted file mode 100644 index 73a0d692b5..0000000000 --- a/wp-content/themes/twentythirteen/content-audio.php +++ /dev/null @@ -1,44 +0,0 @@ - - -
    > -
    - -

    - -

    - -

    - -
    - -
    -
    - →', 'twentythirteen' ), - the_title( '', '', false ) - ) ); - - wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '' ) ); - ?> -
    -
    - -
    - - ', '' ); ?> - - - - -
    -
    diff --git a/wp-content/themes/twentythirteen/content-chat.php b/wp-content/themes/twentythirteen/content-chat.php deleted file mode 100644 index 6a40b89326..0000000000 --- a/wp-content/themes/twentythirteen/content-chat.php +++ /dev/null @@ -1,38 +0,0 @@ - - -
    > -
    - -

    - -

    - -

    - -
    - -
    - →', 'twentythirteen' ), - the_title( '', '', false ) - ) ); - - wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '' ) ); - ?> -
    - -
    - - ', '' ); ?> -
    -
    diff --git a/wp-content/themes/twentythirteen/content-gallery.php b/wp-content/themes/twentythirteen/content-gallery.php deleted file mode 100644 index a43647f73e..0000000000 --- a/wp-content/themes/twentythirteen/content-gallery.php +++ /dev/null @@ -1,52 +0,0 @@ - - -
    > -
    - -

    - -

    - -

    - -
    - -
    - - →', 'twentythirteen' ), - the_title( '', '', false ) - ) ); - - wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '' ) ); - ?> - - - -
    - -
    - - - - - ' . __( 'Leave a comment', 'twentythirteen' ) . '', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> - - - ', '' ); ?> - - - - -
    -
    diff --git a/wp-content/themes/twentythirteen/content-image.php b/wp-content/themes/twentythirteen/content-image.php deleted file mode 100644 index 01e2f34793..0000000000 --- a/wp-content/themes/twentythirteen/content-image.php +++ /dev/null @@ -1,48 +0,0 @@ - - -
    > -
    - -

    - -

    - -

    - -
    - -
    - →', 'twentythirteen' ), - the_title( '', '', false ) - ) ); - - wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '' ) ); - ?> -
    - -
    - - - - - ' . __( 'Leave a comment', 'twentythirteen' ) . '', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> - - - ', '' ); ?> - - - - -
    -
    diff --git a/wp-content/themes/twentythirteen/content-link.php b/wp-content/themes/twentythirteen/content-link.php deleted file mode 100644 index cc02d8240b..0000000000 --- a/wp-content/themes/twentythirteen/content-link.php +++ /dev/null @@ -1,43 +0,0 @@ - - -
    > -
    -

    - -

    - - -
    - -
    - →', 'twentythirteen' ), - the_title( '', '', false ) - ) ); - - wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '' ) ); - ?> -
    - - -
    - - - - -
    - -
    diff --git a/wp-content/themes/twentythirteen/content-none.php b/wp-content/themes/twentythirteen/content-none.php deleted file mode 100644 index d9549e1a89..0000000000 --- a/wp-content/themes/twentythirteen/content-none.php +++ /dev/null @@ -1,31 +0,0 @@ - - - - -
    - - -

    Get started here.', 'twentythirteen' ), admin_url( 'post-new.php' ) ); ?>

    - - - -

    - - - - -

    - - - -
    diff --git a/wp-content/themes/twentythirteen/content-quote.php b/wp-content/themes/twentythirteen/content-quote.php deleted file mode 100644 index ac4de67293..0000000000 --- a/wp-content/themes/twentythirteen/content-quote.php +++ /dev/null @@ -1,34 +0,0 @@ - - -
    > -
    - →', 'twentythirteen' ), - the_title( '', '', false ) - ) ); - - wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '' ) ); - ?> -
    - -
    - - - - - ' . __( 'Leave a comment', 'twentythirteen' ) . '', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> - - - ', '' ); ?> -
    -
    diff --git a/wp-content/themes/twentythirteen/content-status.php b/wp-content/themes/twentythirteen/content-status.php deleted file mode 100644 index e0e51f30ea..0000000000 --- a/wp-content/themes/twentythirteen/content-status.php +++ /dev/null @@ -1,32 +0,0 @@ - - -
    > -
    - →', 'twentythirteen' ), - the_title( '', '', false ) - ) ); - - wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '' ) ); - ?> -
    - -
    - - ', '' ); ?> - - - - -
    -
    diff --git a/wp-content/themes/twentythirteen/content-video.php b/wp-content/themes/twentythirteen/content-video.php deleted file mode 100644 index 8118a080fc..0000000000 --- a/wp-content/themes/twentythirteen/content-video.php +++ /dev/null @@ -1,48 +0,0 @@ - - -
    > -
    - -

    - -

    - -

    - -
    - -
    - →', 'twentythirteen' ), - the_title( '', '', false ) - ) ); - - wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '' ) ); - ?> -
    - -
    - - - - - ' . __( 'Leave a comment', 'twentythirteen' ) . '', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> - - - ', '' ); ?> - - - - -
    -
    diff --git a/wp-content/themes/twentythirteen/content.php b/wp-content/themes/twentythirteen/content.php deleted file mode 100644 index 98b6c31955..0000000000 --- a/wp-content/themes/twentythirteen/content.php +++ /dev/null @@ -1,64 +0,0 @@ - - -
    > -
    - -
    - -
    - - - -

    - -

    - -

    - - - -
    - - -
    - -
    - -
    - →', 'twentythirteen' ), - the_title( '', '', false ) - ) ); - - wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '' ) ); - ?> -
    - - -
    - - - - - - - -
    -
    diff --git a/wp-content/themes/twentythirteen/css/editor-style.css b/wp-content/themes/twentythirteen/css/editor-style.css deleted file mode 100644 index 568418992b..0000000000 --- a/wp-content/themes/twentythirteen/css/editor-style.css +++ /dev/null @@ -1,771 +0,0 @@ -/* -Theme Name: Twenty Thirteen -Description: Used to style the TinyMCE editor. -*/ - - -/** - * Table of Contents: - * - * 1.0 - Body - * 2.0 - Headings - * 3.0 - Text Elements - * 4.0 - Links - * 5.0 - Alignment - * 6.0 - Tables - * 7.0 - Images - * 8.0 - Galleries - * 9.0 - Audio/Video - * 10.0 - Post Formats - * 11.0 - RTL - * ---------------------------------------------------------------------------- - */ - - -/** - * 1.0 Body - * ---------------------------------------------------------------------------- - */ - -html .mceContentBody { - font-size: 100%; - max-width: 604px; -} - -body { - color: #141412; - font-family: "Source Sans Pro", Helvetica, sans-serif; - line-height: 1.5; - text-rendering: optimizeLegibility; - vertical-align: baseline; -} - - -/** - * 2.0 Headings - * ---------------------------------------------------------------------------- - */ - -h1, -h2, -h3, -h4, -h5, -h6 { - clear: both; - font-family: Bitter, Georgia, serif; - line-height: 1.3; -} - -h1 { - font-size: 48px; - margin: 33px 0; -} - -h2 { - font-size: 30px; - margin: 25px 0; -} - -h3 { - font-size: 22px; - margin: 22px 0; -} - -h4 { - font-size: 20px; - margin: 25px 0; -} - -h5 { - font-size: 18px; - margin: 30px 0; -} - -h6 { - font-size: 16px; - margin: 36px 0; -} - -hr { - background: url(../images/dotted-line.png) repeat center top; - background-size: 4px 4px; - border: 0; - height: 1px; - margin: 0 0 24px; -} - - -/** - * 3.0 Text Elements - * ---------------------------------------------------------------------------- - */ - -p { - margin: 0 0 24px; -} - -ol, -ul { - margin: 16px 0; - padding: 0 0 0 40px; -} - -ul { - list-style-type: square; -} - -ol { - list-style: decimal outside; -} - -li > ul, -li > ol { - margin: 0; -} - -dl { - margin: 0 20px; -} - -dt { - font-weight: bold; -} - -dd { - margin: 0 0 20px; -} - -strong { - font-weight: bold; -} - -code, -kbd, -pre, -samp { - font-family: monospace, serif; - font-size: 14px; -} - -pre { - background: #f5f5f5; - color: #666; - font-family: monospace; - font-size: 14px; - margin: 20px 0; - overflow: auto; - padding: 20px; - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} - -blockquote, -q { - quotes: none; -} - -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ""; - content: none; -} - -blockquote { - font-size: 24px; - font-style: italic; - font-weight: 300; - margin: 24px 40px; -} - -blockquote blockquote { - margin-right: 0; -} - -blockquote cite, -blockquote small { - font-size: 14px; - font-weight: normal; - text-transform: uppercase; -} - -cite { - border-bottom: 0; -} - -abbr[title] { - border-bottom: 1px dotted; -} - -address { - font-style: italic; - margin: 0 0 24px; -} - -del { - color: #333; -} - -ins { - background: #fff9c0; - border: none; - color: #333; - text-decoration: none; -} - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - - -/** - * 4.0 Links - * ---------------------------------------------------------------------------- - */ - -a { - color: #ca3c08; - text-decoration: none; -} - -a:visited { - color: #ac0404; -} - -a:focus { - outline: thin dotted; -} - -a:active, -a:hover { - color: #ea9629; - outline: 0; -} - -a:hover { - text-decoration: underline; -} - - -/** - * 5.0 Alignment - * ---------------------------------------------------------------------------- - */ - -.alignleft { - float: left; - margin: 5px 20px 5px 0; -} - -.alignright { - float: right; - margin: 5px 0 5px 20px; -} - -.aligncenter { - display: block; - margin: 5px auto; -} - -img.alignnone { - margin: 5px 0; -} - - -/** - * 6.0 Tables - * ---------------------------------------------------------------------------- - */ - -table { - border-bottom: 1px solid #ededed; - border-collapse: collapse; - border-spacing: 0; - font-size: 14px; - line-height: 2; - margin: 0 0 20px; - width: 100%; -} - -caption, -th, -td { - font-weight: normal; - text-align: left; -} - -caption { - font-size: 16px; - margin: 20px 0; -} - -th { - font-weight: bold; - text-transform: uppercase; -} - -td { - border-top: 1px solid #ededed; - padding: 6px 10px 6px 0; -} - - -/** - * 7.0 Images - * ---------------------------------------------------------------------------- - */ - -img { - height: auto; - max-width: 100%; - vertical-align: middle; -} - -.wp-caption { - background: transparent; - border: none; - margin: 0; - padding: 0; - text-align: left; -} - -.html5-captions .wp-caption { - padding: 0; -} - -.wp-caption.alignleft { - margin: 5px 10px 5px 0; -} - -.html5-captions .wp-caption.alignleft { - margin-right: 20px; -} - -.wp-caption.alignright { - margin: 5px 0 5px 10px; -} - -.wp-caption.alignright img, -.wp-caption.alignright .wp-caption-dd { - padding-left: 10px; -} - -.html5-captions .wp-caption.alignright { - margin-left: 20px; -} - -.html5-captions .wp-caption.alignright img, -.html5-captions .wp-caption.alignright .wp-caption-dd { - padding: 0; -} - -.wp-caption-dt { - margin: 0; -} - -.wp-caption .wp-caption-text, -.wp-caption-dd { - color: #220e10; - font-size: 18px; - font-style: italic; - font-weight: 300; - line-height: 1.5; - margin-bottom: 24px; - padding: 0; -} - -.mceTemp + ul, -.mceTemp + ol { - list-style-position: inside; -} - - -/** - * 8.0 Galleries - * ---------------------------------------------------------------------------- - */ - -.gallery .gallery-item { - float: left; - margin: 0 4px 4px 0; - overflow: hidden; - padding: 0; - position: relative; -} - -.gallery-columns-1 .gallery-item { - max-width: 100%; - width: auto; -} - -.gallery-columns-2 .gallery-item { - max-width: 48%; - max-width: -webkit-calc(50% - 14px); - max-width: calc(50% - 14px); - width: auto; -} - -.gallery-columns-3 .gallery-item { - max-width: 32%; - max-width: -webkit-calc(33.3% - 11px); - max-width: calc(33.3% - 11px); - width: auto; -} - -.gallery-columns-4 .gallery-item { - max-width: 23%; - max-width: -webkit-calc(25% - 9px); - max-width: calc(25% - 9px); - width: auto; -} - -.gallery-columns-5 .gallery-item { - max-width: 19%; - max-width: -webkit-calc(20% - 8px); - max-width: calc(20% - 8px); - width: auto; -} - -.gallery-columns-6 .gallery-item { - max-width: 15%; - max-width: -webkit-calc(16.7% - 7px); - max-width: calc(16.7% - 7px); - width: auto; -} - -.gallery-columns-7 .gallery-item { - max-width: 13%; - max-width: -webkit-calc(14.28% - 7px); - max-width: calc(14.28% - 7px); - width: auto; -} - -.gallery-columns-8 .gallery-item { - max-width: 11%; - max-width: -webkit-calc(12.5% - 6px); - max-width: calc(12.5% - 6px); - width: auto; -} - -.gallery-columns-9 .gallery-item { - max-width: 9%; - max-width: -webkit-calc(11.1% - 6px); - max-width: calc(11.1% - 6px); - width: auto; -} - -.gallery-columns-1 .gallery-item:nth-of-type(1n), -.gallery-columns-2 .gallery-item:nth-of-type(2n), -.gallery-columns-3 .gallery-item:nth-of-type(3n), -.gallery-columns-4 .gallery-item:nth-of-type(4n), -.gallery-columns-5 .gallery-item:nth-of-type(5n), -.gallery-columns-6 .gallery-item:nth-of-type(6n), -.gallery-columns-7 .gallery-item:nth-of-type(7n), -.gallery-columns-8 .gallery-item:nth-of-type(8n), -.gallery-columns-9 .gallery-item:nth-of-type(9n) { - margin-right: 0; -} - -.gallery-columns-1 .gallery-item:nth-of-type(1n), -.gallery-columns-2 .gallery-item:nth-of-type(2n - 1), -.gallery-columns-3 .gallery-item:nth-of-type(3n - 2), -.gallery-columns-4 .gallery-item:nth-of-type(4n - 3), -.gallery-columns-5 .gallery-item:nth-of-type(5n - 4), -.gallery-columns-6 .gallery-item:nth-of-type(6n - 5), -.gallery-columns-7 .gallery-item:nth-of-type(7n - 6), -.gallery-columns-8 .gallery-item:nth-of-type(8n - 7), -.gallery-columns-9 .gallery-item:nth-of-type(9n - 8) { - margin-left: 12px; /* Compensate for the default negative margin on .gallery, which can't be changed. */ -} - -.gallery .gallery-caption { - background-color: rgba(0, 0, 0, 0.7); - box-sizing: border-box; - color: #fff; - font-size: 14px; - line-height: 1.3; - margin: 0; - max-height: 50%; - opacity: 0; - padding: 2px 8px; - position: absolute; - bottom: 0; - left: 0; - text-align: left; - -webkit-transition: opacity 400ms ease; - transition: opacity 400ms ease; - width: 100%; -} - -.gallery .gallery-caption:before { - box-shadow: 0 -10px 15px #000 inset; - content: ""; - height: 100%; - min-height: 49px; - position: absolute; - left: 0; - top: 0; - width: 100%; -} - -.gallery-item:hover .gallery-caption { - opacity: 1; -} - -.gallery-columns-7 .gallery-caption, -.gallery-columns-8 .gallery-caption, -.gallery-columns-9 .gallery-caption { - display: none; -} - - -/** - * 9.0 Audio/Video - * ---------------------------------------------------------------------------- - */ -.mejs-mediaelement, -.mejs-container .mejs-controls { - background: #220e10; -} - -.mejs-controls .mejs-time-rail .mejs-time-loaded, -.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { - background: #fff; -} - -.mejs-controls .mejs-time-rail .mejs-time-current { - background: #ea9629; -} - -.mejs-controls .mejs-time-rail .mejs-time-total, -.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total { - background: #595959; -} - -.mejs-controls .mejs-time-rail span, -.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total, -.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { - border-radius: 0; -} - - -/** - * 10.0 Post Formats - * ---------------------------------------------------------------------------- - */ - -/* Aside */ -.post-format-aside { - background-color: #f7f5e7; -} - -.post-format-aside blockquote { - font-size: 100%; - font-weight: normal; -} - -.post-format-aside cite { - font-size: 100%; - text-transform: none; -} - -.post-format-aside cite:before { - content: "\2014"; - margin-right: 5px; -} - -/* Audio */ -.post-format-audio { - background-color: #db572f; -} - -.post-format-audio a { - color: #fbfaf3; -} - -.post-format-audio:before { - background: url(../images/dotted-line.png) repeat-y 85px 0; - background-size: 4px 4px; - content: "\f109"; - display: block; - float: left; - font-family: Genericons; - font-size: 64px; - -webkit-font-smoothing: antialiased; - height: 100%; - line-height: 1; - width: 120px; -} - -/* Chat */ -.post-format-chat { - background-color: #eadaa6; -} - -.post-format-chat a { - color: #722d19; -} - -/* Gallery */ -.post-format-gallery { - background-color: #fbca3c; -} - -.post-format-gallery a { - color: #722d19; -} - -/* Image: same as Standard/Defaults */ - -/* Link */ -.post-format-link { - background-color: #f7f5e7; -} - -/* Quote */ -.post-format-quote { - background-color: #210d10; - color: #f7f5e7; -} - -.post-format-quote a { - color: #e63f2a; -} - -.post-format-quote blockquote { - font-size: 28px; - font-style: italic; - font-weight: 300; - margin: 0; - padding-left: 75px; - position: relative; -} - -.post-format-quote blockquote:before { - content: '\201C'; - font-size: 140px; - font-weight: 400; - line-height: .8; - padding-right: 25px; - position: absolute; - left: -15px; - top: -3px; -} - -.post-format-quote blockquote small, -.post-format-quote blockquote cite { - display: block; - font-size: 16px; -} - -.format-quote .entry-content cite a { - border-bottom: 1px dotted #fff; - color: #fff; -} - -.format-quote .entry-content cite a:hover { - text-decoration: none; -} - - -/* Status */ -.post-format-status { - background-color: #722d19; - color: #f7f5e7; - font-style: italic; - font-weight: 300; - padding: 0; - padding-left: 35px; -} - -.post-format-status.mceContentBody { - font-size: 24px; -} - -.post-format-status:before { - background: url(../images/dotted-line.png) repeat-y left bottom; - background-size: 4px 4px; - content: ""; - display: block; - float: left; - height: 100%; - position: relative; - left: -30px; - width: 1px; -} - -.post-format-status > p:first-child:before { - background-color: rgba(0, 0, 0, 0.65); - content: ""; - height: 3px; - width: 13px; - margin-top: 13px; - position: absolute; - left: 9px; -} - -.post-format-status a { - color: #eadaa6; -} - -/* Video */ -.post-format-video { - background-color: #db572f; -} - -.post-format-video a { - color: #fbfaf3; -} - - -/** - * 11.0 RTL - * ---------------------------------------------------------------------------- - */ - -html .mceContentBody.rtl { - direction: rtl; - unicode-bidi: embed; -} - -.rtl ol, -.rtl ul { - padding: 0 40px 0 0; -} - -.rtl .wp-caption, -.rtl tr th { - text-align: right; -} - -.rtl td { - padding: 6px 0 6px 10px; - text-align: right; -} - -.rtl blockquote blockquote { - margin-left: 0; - margin-right: 24px; -} - -.rtl.post-format-audio:before, -.rtl.post-format-status:before, -.rtl.post-format-status > p:first-child:before { - background: none; - content: none; -} diff --git a/wp-content/themes/twentythirteen/css/ie.css b/wp-content/themes/twentythirteen/css/ie.css deleted file mode 100644 index da48acd3ca..0000000000 --- a/wp-content/themes/twentythirteen/css/ie.css +++ /dev/null @@ -1,288 +0,0 @@ -/* -Styles for older IE versions (previous to IE9). -*/ - - - -.genericon:before:hover, -.menu-toggle:after:hover, -.date a:before:hover, -.entry-meta .author a:before:hover, -.format-audio .entry-content:before:hover, -.comments-link a:before:hover, -.tags-links a:first-child:before:hover, -.categories-links a:first-child:before:hover, -.edit-link > a:before:hover, -.attachment-meta:before:hover, -.attachment-meta a:before:hover, -.comment-awaiting-moderation:before:hover, -.comment-reply-link:before:hover, -.comment-reply-title small a:before:hover, -.bypostauthor > .comment-body .fn:before:hover { - text-decoration: none; -} - -.nav-menu .sub-menu ul, -.nav-menu .children ul { - left: 100%; -} - -.site-header .home-link { - max-width: 1040px; -} - -.site-header .search-form [type="search"], -.site-header .search-form [type="text"] { - padding-top: 6px; -} - -img.alignright { - margin-right: 0; -} - -img.alignleft { - margin-left: 0; -} - -.site-main .sidebar-inner { - width: 1040px; -} - -.site-main .widget-area { - margin-right: 60px; -} - -.format-image .entry-content .size-full { - margin: 0; - max-width: 604px; -} - -.gallery-columns-1 .gallery-item, -.gallery-columns-2 .gallery-item, -.gallery-columns-3 .gallery-item { - max-width: none; -} - -.gallery img { - width: auto; -} - -.gallery-caption { - background: #000; - filter: alpha(opacity=0); -} - -.gallery-item:hover .gallery-caption { - filter: alpha(opacity=70); -} - -.comment { - clear: both; -} - -.comment-meta, -.comment-content, -.comment-list .reply { - width: 480px; -} - -.depth-2 .comment-meta, -.depth-2 .comment-content, -.comment-list .depth-2 .reply { - width: 460px; -} - -.depth-3 .comment-meta, -.depth-3 .comment-content, -.comment-list .depth-3 .reply { - width: 440px; -} - -.depth-4 .comment-meta, -.depth-4 .comment-content, -.comment-list .depth-4 .reply { - width: 420px; -} - -.depth-5 .comment-meta, -.depth-5 .comment-content, -.comment-list .depth-5 .reply { - width: 400px; -} - -.comment-meta { - margin-bottom: 0; -} - -.widget { - background: #f7f5e7; -} - -.site-footer .widget { - background: none; -} - -/* Internet Explorer 8 */ -.ie8 .site { - border: 0; -} - -.ie8 img.size-full, -.ie8 img.size-large { - height: auto; - width: auto; -} - -.ie8 .sidebar .entry-header, -.ie8 .sidebar .entry-content, -.ie8 .sidebar .entry-summary, -.ie8 .sidebar .entry-meta { - max-width: 724px; -} - -.ie8 .author-info { - margin-left: 0; -} - -.ie8 .paging-navigation .nav-previous .meta-nav { - padding: 5px 0 8px; - width: 40px; -} - -.ie8 .paging-navigation .nav-next { - line-height: 1; -} - -.ie8 .format-status .entry-content:before, -.ie8 .format-status .entry-meta:before { - content: none; -} - -.ie8 .site-main .widget-area { - margin-right: 0; -} - -/* Internet Explorer 7 */ -.ie7 audio, -.ie7 canvas, -.ie7 video { - display: inline; - zoom: 1; -} - -.ie7 legend { - margin-left: -7px; -} - -.ie7 button, -.ie7 input, -.ie7 select, -.ie7 textarea { - vertical-align: middle; -} - -.ie7 button, -.ie7 input[type="button"], -.ie7 input[type="reset"], -.ie7 input[type="submit"] { - overflow: visible; -} - -.ie7 input[type="checkbox"], -.ie7 input[type="radio"] { - height: 13px; - width: 13px; -} - -.ie7 .screen-reader-text { - clip: rect(1px 1px 1px 1px); -} - -.ie7 .site-header { - position: relative; - z-index: 1; -} - -.ie7 .main-navigation { - max-width: 930px; - padding-right: 150px; -} - -.ie7 .nav-menu li a, -.ie7 .nav-menu li { - display: block; - float: left; -} - -.ie7 .nav-menu ul { - top: 40px; -} - -.ie7 .nav-menu .sub-menu, -.ie7 .nav-menu .children { - display: none; - overflow: visible; -} - -.ie7 ul.nav-menu li:hover > ul, -.ie7 .nav-menu ul li:hover > ul { - display: block; -} - -.ie7 .site-header .search-form [type="search"], -.ie7 .site-header .search-form [type="text"] { - background-color: #fff; - border: 2px solid #c3c0ab; - cursor: text; - height: 28px; - outline: 0; - width: 150px; -} - -.ie7 .entry-header, -.ie7 .entry-content, -.ie7 .entry-summary, -.ie7 .entry-meta { - width: 604px; -} - -.ie7 .format-status .entry-content, -.ie7 .format-status .entry-meta { - padding-left: 60px; -} - -.ie7 .sidebar .format-status .entry-content, -.ie7 .sidebar .format-status .entry-meta { - padding-left: 60px; -} - -.ie7 .sidebar .post-navigation .nav-links, -.ie7 .sidebar .paging-navigation .nav-links { - width: 604px; -} - -.ie7 .paging-navigation .meta-nav { - padding: 0 0 10px; - vertical-align: middle; - width: 40px; -} - -.ie7 .comments-title, -.ie7 .comment-list, -.ie7 .comment-reply-title, -.ie7 .comment-respond .comment-form { - width: 604px; -} - -.ie7 .site-footer .widget-area { - max-width: none; - left: auto; -} - -/* RTL for Internet Explorer 7 & 8 */ -.rtl .format-audio .entry-content:before, -.rtl .comment-reply-link:before, -.rtl .comment-reply-login:before { - -ms-filter: "FlipH"; - filter: FlipH; -} diff --git a/wp-content/themes/twentythirteen/footer.php b/wp-content/themes/twentythirteen/footer.php deleted file mode 100644 index 6dc4f94b3b..0000000000 --- a/wp-content/themes/twentythirteen/footer.php +++ /dev/null @@ -1,26 +0,0 @@ - - -
    -
    - - -
    - - -
    -
    -
    - - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php deleted file mode 100644 index e87761f223..0000000000 --- a/wp-content/themes/twentythirteen/functions.php +++ /dev/null @@ -1,552 +0,0 @@ - for posts and comments. - add_theme_support( 'automatic-feed-links' ); - - /* - * Switches default core markup for search form, comment form, - * and comments to output valid HTML5. - */ - add_theme_support( 'html5', array( - 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' - ) ); - - /* - * This theme supports all available post formats by default. - * See https://codex.wordpress.org/Post_Formats - */ - add_theme_support( 'post-formats', array( - 'aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video' - ) ); - - // This theme uses wp_nav_menu() in one location. - register_nav_menu( 'primary', __( 'Navigation Menu', 'twentythirteen' ) ); - - /* - * This theme uses a custom image size for featured images, displayed on - * "standard" posts and pages. - */ - add_theme_support( 'post-thumbnails' ); - set_post_thumbnail_size( 604, 270, true ); - - // This theme uses its own gallery styles. - add_filter( 'use_default_gallery_style', '__return_false' ); -} -add_action( 'after_setup_theme', 'twentythirteen_setup' ); - -/** - * Return the Google font stylesheet URL, if available. - * - * The use of Source Sans Pro and Bitter by default is localized. For languages - * that use characters not supported by the font, the font can be disabled. - * - * @since Twenty Thirteen 1.0 - * - * @return string Font stylesheet or empty string if disabled. - */ -function twentythirteen_fonts_url() { - $fonts_url = ''; - - /* Translators: If there are characters in your language that are not - * supported by Source Sans Pro, translate this to 'off'. Do not translate - * into your own language. - */ - $source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'twentythirteen' ); - - /* Translators: If there are characters in your language that are not - * supported by Bitter, translate this to 'off'. Do not translate into your - * own language. - */ - $bitter = _x( 'on', 'Bitter font: on or off', 'twentythirteen' ); - - if ( 'off' !== $source_sans_pro || 'off' !== $bitter ) { - $font_families = array(); - - if ( 'off' !== $source_sans_pro ) - $font_families[] = 'Source Sans Pro:300,400,700,300italic,400italic,700italic'; - - if ( 'off' !== $bitter ) - $font_families[] = 'Bitter:400,700'; - - $query_args = array( - 'family' => urlencode( implode( '|', $font_families ) ), - 'subset' => urlencode( 'latin,latin-ext' ), - ); - $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); - } - - return $fonts_url; -} - -/** - * Enqueue scripts and styles for the front end. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_scripts_styles() { - /* - * Adds JavaScript to pages with the comment form to support - * sites with threaded comments (when in use). - */ - if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) - wp_enqueue_script( 'comment-reply' ); - - // Adds Masonry to handle vertical alignment of footer widgets. - if ( is_active_sidebar( 'sidebar-1' ) ) - wp_enqueue_script( 'jquery-masonry' ); - - // Loads JavaScript file with functionality specific to Twenty Thirteen. - wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150330', true ); - - // Add Source Sans Pro and Bitter fonts, used in the main stylesheet. - wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); - - // Add Genericons font, used in the main stylesheet. - wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.03' ); - - // Loads our main stylesheet. - wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' ); - - // Loads the Internet Explorer specific stylesheet. - wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '2013-07-18' ); - wp_style_add_data( 'twentythirteen-ie', 'conditional', 'lt IE 9' ); -} -add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' ); - -/** - * Filter the page title. - * - * Creates a nicely formatted and more specific title element text for output - * in head of document, based on current view. - * - * @since Twenty Thirteen 1.0 - * - * @param string $title Default title text for current view. - * @param string $sep Optional separator. - * @return string The filtered title. - */ -function twentythirteen_wp_title( $title, $sep ) { - global $paged, $page; - - if ( is_feed() ) - return $title; - - // Add the site name. - $title .= get_bloginfo( 'name', 'display' ); - - // Add the site description for the home/front page. - $site_description = get_bloginfo( 'description', 'display' ); - if ( $site_description && ( is_home() || is_front_page() ) ) - $title = "$title $sep $site_description"; - - // Add a page number if necessary. - if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) - $title = "$title $sep " . sprintf( __( 'Page %s', 'twentythirteen' ), max( $paged, $page ) ); - - return $title; -} -add_filter( 'wp_title', 'twentythirteen_wp_title', 10, 2 ); - -/** - * Register two widget areas. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_widgets_init() { - register_sidebar( array( - 'name' => __( 'Main Widget Area', 'twentythirteen' ), - 'id' => 'sidebar-1', - 'description' => __( 'Appears in the footer section of the site.', 'twentythirteen' ), - 'before_widget' => '', - 'before_title' => '

    ', - 'after_title' => '

    ', - ) ); - - register_sidebar( array( - 'name' => __( 'Secondary Widget Area', 'twentythirteen' ), - 'id' => 'sidebar-2', - 'description' => __( 'Appears on posts and pages in the sidebar.', 'twentythirteen' ), - 'before_widget' => '', - 'before_title' => '

    ', - 'after_title' => '

    ', - ) ); -} -add_action( 'widgets_init', 'twentythirteen_widgets_init' ); - -if ( ! function_exists( 'twentythirteen_paging_nav' ) ) : -/** - * Display navigation to next/previous set of posts when applicable. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_paging_nav() { - global $wp_query; - - // Don't print empty markup if there's only one page. - if ( $wp_query->max_num_pages < 2 ) - return; - ?> - - post_parent ) : get_adjacent_post( false, '', true ); - $next = get_adjacent_post( false, '', false ); - - if ( ! $next && ! $previous ) - return; - ?> - - ' . esc_html__( 'Sticky', 'twentythirteen' ) . ''; - - if ( ! has_post_format( 'link' ) && 'post' == get_post_type() ) - twentythirteen_entry_date(); - - // Translators: used between list items, there is a space after the comma. - $categories_list = get_the_category_list( __( ', ', 'twentythirteen' ) ); - if ( $categories_list ) { - echo '' . $categories_list . ''; - } - - // Translators: used between list items, there is a space after the comma. - $tag_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) ); - if ( $tag_list ) { - echo '' . $tag_list . ''; - } - - // Post author - if ( 'post' == get_post_type() ) { - printf( '', - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), - esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ), - get_the_author() - ); - } -} -endif; - -if ( ! function_exists( 'twentythirteen_entry_date' ) ) : -/** - * Print HTML with date information for current post. - * - * Create your own twentythirteen_entry_date() to override in a child theme. - * - * @since Twenty Thirteen 1.0 - * - * @param boolean $echo (optional) Whether to echo the date. Default true. - * @return string The HTML-formatted post date. - */ -function twentythirteen_entry_date( $echo = true ) { - if ( has_post_format( array( 'chat', 'status' ) ) ) - $format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' ); - else - $format_prefix = '%2$s'; - - $date = sprintf( '', - esc_url( get_permalink() ), - esc_attr( sprintf( __( 'Permalink to %s', 'twentythirteen' ), the_title_attribute( 'echo=0' ) ) ), - esc_attr( get_the_date( 'c' ) ), - esc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) ) - ); - - if ( $echo ) - echo $date; - - return $date; -} -endif; - -if ( ! function_exists( 'twentythirteen_the_attached_image' ) ) : -/** - * Print the attached image with a link to the next attached image. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_the_attached_image() { - /** - * Filter the image attachment size to use. - * - * @since Twenty thirteen 1.0 - * - * @param array $size { - * @type int The attachment height in pixels. - * @type int The attachment width in pixels. - * } - */ - $attachment_size = apply_filters( 'twentythirteen_attachment_size', array( 724, 724 ) ); - $next_attachment_url = wp_get_attachment_url(); - $post = get_post(); - - /* - * Grab the IDs of all the image attachments in a gallery so we can get the URL - * of the next adjacent image in a gallery, or the first image (if we're - * looking at the last image in a gallery), or, in a gallery of one, just the - * link to that image file. - */ - $attachment_ids = get_posts( array( - 'post_parent' => $post->post_parent, - 'fields' => 'ids', - 'numberposts' => -1, - 'post_status' => 'inherit', - 'post_type' => 'attachment', - 'post_mime_type' => 'image', - 'order' => 'ASC', - 'orderby' => 'menu_order ID', - ) ); - - // If there is more than 1 attachment in a gallery... - if ( count( $attachment_ids ) > 1 ) { - foreach ( $attachment_ids as $attachment_id ) { - if ( $attachment_id == $post->ID ) { - $next_id = current( $attachment_ids ); - break; - } - } - - // get the URL of the next image attachment... - if ( $next_id ) - $next_attachment_url = get_attachment_link( $next_id ); - - // or get the URL of the first image attachment. - else - $next_attachment_url = get_attachment_link( reset( $attachment_ids ) ); - } - - printf( '%3$s', - esc_url( $next_attachment_url ), - the_title_attribute( array( 'echo' => false ) ), - wp_get_attachment_image( $post->ID, $attachment_size ) - ); -} -endif; - -/** - * Return the post URL. - * - * @uses get_url_in_content() to get the URL in the post meta (if it exists) or - * the first link found in the post content. - * - * Falls back to the post permalink if no URL is found in the post. - * - * @since Twenty Thirteen 1.0 - * - * @return string The Link format URL. - */ -function twentythirteen_get_link_url() { - $content = get_the_content(); - $has_url = get_url_in_content( $content ); - - return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() ); -} - -if ( ! function_exists( 'twentythirteen_excerpt_more' ) && ! is_admin() ) : -/** - * Replaces "[...]" (appended to automatically generated excerpts) with ... - * and a Continue reading link. - * - * @since Twenty Thirteen 1.4 - * - * @param string $more Default Read More excerpt link. - * @return string Filtered Read More excerpt link. - */ -function twentythirteen_excerpt_more( $more ) { - $link = sprintf( '%2$s', - esc_url( get_permalink( get_the_ID() ) ), - /* translators: %s: Name of current post */ - sprintf( __( 'Continue reading %s ', 'twentythirteen' ), '' . get_the_title( get_the_ID() ) . '' ) - ); - return ' … ' . $link; -} -add_filter( 'excerpt_more', 'twentythirteen_excerpt_more' ); -endif; - -/** - * Extend the default WordPress body classes. - * - * Adds body classes to denote: - * 1. Single or multiple authors. - * 2. Active widgets in the sidebar to change the layout and spacing. - * 3. When avatars are disabled in discussion settings. - * - * @since Twenty Thirteen 1.0 - * - * @param array $classes A list of existing body class values. - * @return array The filtered body class list. - */ -function twentythirteen_body_class( $classes ) { - if ( ! is_multi_author() ) - $classes[] = 'single-author'; - - if ( is_active_sidebar( 'sidebar-2' ) && ! is_attachment() && ! is_404() ) - $classes[] = 'sidebar'; - - if ( ! get_option( 'show_avatars' ) ) - $classes[] = 'no-avatars'; - - return $classes; -} -add_filter( 'body_class', 'twentythirteen_body_class' ); - -/** - * Adjust content_width value for video post formats and attachment templates. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_content_width() { - global $content_width; - - if ( is_attachment() ) - $content_width = 724; - elseif ( has_post_format( 'audio' ) ) - $content_width = 484; -} -add_action( 'template_redirect', 'twentythirteen_content_width' ); - -/** - * Add postMessage support for site title and description for the Customizer. - * - * @since Twenty Thirteen 1.0 - * - * @param WP_Customize_Manager $wp_customize Customizer object. - */ -function twentythirteen_customize_register( $wp_customize ) { - $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; - $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; - $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; -} -add_action( 'customize_register', 'twentythirteen_customize_register' ); - -/** - * Enqueue Javascript postMessage handlers for the Customizer. - * - * Binds JavaScript handlers to make the Customizer preview - * reload changes asynchronously. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_customize_preview_js() { - wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true ); -} -add_action( 'customize_preview_init', 'twentythirteen_customize_preview_js' ); diff --git a/wp-content/themes/twentythirteen/genericons/COPYING.txt b/wp-content/themes/twentythirteen/genericons/COPYING.txt deleted file mode 100644 index aece214b7c..0000000000 --- a/wp-content/themes/twentythirteen/genericons/COPYING.txt +++ /dev/null @@ -1,9 +0,0 @@ -Genericons is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - -The fonts are distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -As a special exception, if you create a document which uses this font, and embed this font or unaltered portions of this font into the document, this font does not by itself cause the resulting document to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the document might be covered by the GNU General Public License. If you modify this font, you may extend this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. - -This license does not convey any intellectual property rights to third party trademarks that may be included in the icon font; such marks remain subject to all rights and guidelines of use of their owner. \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/genericons/Genericons-Regular.otf b/wp-content/themes/twentythirteen/genericons/Genericons-Regular.otf deleted file mode 100644 index 5cd41e8b81..0000000000 Binary files a/wp-content/themes/twentythirteen/genericons/Genericons-Regular.otf and /dev/null differ diff --git a/wp-content/themes/twentythirteen/genericons/LICENSE.txt b/wp-content/themes/twentythirteen/genericons/LICENSE.txt deleted file mode 100644 index d159169d10..0000000000 --- a/wp-content/themes/twentythirteen/genericons/LICENSE.txt +++ /dev/null @@ -1,339 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/wp-content/themes/twentythirteen/genericons/README.txt b/wp-content/themes/twentythirteen/genericons/README.txt deleted file mode 100644 index 7a0a92e5fd..0000000000 --- a/wp-content/themes/twentythirteen/genericons/README.txt +++ /dev/null @@ -1,123 +0,0 @@ - ___ ____ __ _ ____ ____ __ ___ __ __ _ ____ - / __)( __)( ( \( __)( _ \( )/ __)/ \ ( ( \/ ___) -( (_ \ ) _) / / ) _) ) / )(( (__( O )/ /\___ \ - \___/(____)\_)__)(____)(__\_)(__)\___)\__/ \_)__)(____/ - - -Genericons are vector icons embedded in a webfont designed to be clean and simple keeping with a generic aesthetic. - -Use genericons for instant HiDPI, to change icon colors on the fly, or even with CSS effects such as drop-shadows or gradients! - - -_ _ ____ ____ ____ ____ -| | [__ |__| | __ |___ -|__| ___] | | |__] |___ - - -To use it, place the font folder in your stylesheet directory and paste this in your CSS file: - -/* =Genericons, thanks to FontSquirrel.com for conversion! --------------------------------------------------------------- */ -@font-face { - font-family: 'Genericons'; - src: url('font/genericons-regular-webfont.eot'); - src: url('font/genericons-regular-webfont.eot?#iefix') format('embedded-opentype'), - url('font/genericons-regular-webfont.woff') format('woff'), - url('font/genericons-regular-webfont.ttf') format('truetype'), - url('font/genericons-regular-webfont.svg#genericonsregular') format('svg'); - font-weight: normal; - font-style: normal; - -} - -Note: the above only works if you don't use a CDN. If you do, or don't know what that is, you should use the syntax that's embedded in genericons.css. - -From then on, you can create an icon like this: - -.my-icon:before { - content: '\f101'; - display: inline-block; - -webkit-font-smoothing: antialiased; - font: normal 16px/1 'Genericons'; - vertical-align: top; -} - -This will output a comment icon before every element with the class "my-icon". The "content: '\f101';" part of this CSS is easily copied from the helper tool at http://genericons.com/ - -You can also use the bundled example.css if you'd rather insert the icons using HTML tags. - - -_ _ ____ ___ ____ ____ -|\ | | | | |___ [__ -| \| |__| | |___ ___] - - -Photoshop mockups: - -Genericons-Regular.otf found in the root directory of this zip has not been web-font-ified. So you can drop it in your system fonts folder and use the font in Photoshop if you like. - -For those of you using Genericons in your Photoshop mockup, remember to delete the old version of the font from Font Book, and grab the new one from the zip file. This also affects using it in your webdesigns: if you have an old version of the font installed locally, that's the font that'll be used in your website as well, so if you're missing icons, check for old versions of the font on your system. - -Pixel grid: - -Note that Genericons has been designed for a 16x16 pixel grid. That means it'll look sharp at font-size: 16px exactly. It'll also be crisp at multiples thereof, such as 32px or 64px. It'll also look reasonably crisp at in-between font sizes such as 24px or 48px, but not quite as crisp as 16 or 32. Please don't set the font-size to 17px, though, that'll just look terrible. - -Also note the CSS property "-webkit-font-smoothing: antialiased". That makes the icons look great in WebKit browsers. Please see http://noscope.com/2012/font-smoothing for more info. - -Updates: - -We don't often update icons, but do very carefully when we get good feedback suggesting improvements. Please be mindful if you upgrade, and check that the updated icons behave as you intended. - - - -____ _ _ ____ _ _ ____ ____ _ ____ ____ -| |__| |__| |\ | | __ |___ | | | | __ -|___ | | | | | \| |__] |___ |___ |__| |__] - -V3.0.3: -Bunch of updates mostly. -- Two new icons, Dropbox and Fullscreen. -- Updates to all icons containing an exclamation mark. -- Updates to Image and Quote. -- Nicer "Share" icon. -- Bigger default Linkedin icon. - -V3.0.2: -A slew of new stuff and updates. -- Social icons: Skype, Digg, Reddit, Stumbleupon, Pocket. -- New generic icons: heart, lock and print. -- New editing icons: code, bold, italic, image -- New interaction icons: subscribe, unsubscribe, subscribed, reply all, reply, flag. -- The hyperlink icon has been updated to be clearer, chunkier. -- The "home" icon has been updated for style, size and clarity. -- The email icon has been updated for style and clarity, and to fit with the new subscribe icons. -- The document icon has been updated for style. -- The "pin" icon has been updated for style and clarity. -- The Twitter icon has been scaled down to fit with the other social icons. - -V3.0.1: -Mostly maintenance. -- Fixed an issue with the example page that showed an old "top" icon instead of the actual NEW "refresh" icon. -- Added inverse Google+ and Path. -- Replaced tabs with spaces in the helper CSS. -- Changed the Genericons.com copy/paste tool to serve span's instead of div's for casual icon insertion. It's being converted to "inline-block" anyway. - -V3.0: -Mainly maintenance and a few new icons. -- Fast forward, rewind, PollDaddy, Notice, Info, Help, Portfolio -- Updated the feed icon. It's a bit smaller now for consistency, the previous one was rather big. -- So, the previous version numbering, 2.09, wasn't very PHP version compare friendly. So from now on it'll be 3.0, 3.1 etc. Props Ipstenu. -- Genericons.com now has a mini release blog. -- The CSS has prettier formatting, props Konstantin Obenland. - -V2.09: -Updated Facebook icon to new version. Updated Instagram logo to use new one-color version. Updated Google+ icon to use same radius as Instagram and Facebook. Added a bunch of new icons, cog, unapprove, cart, media player buttons, tablet, send to tablet. - -V2.06: -Included Base64 encoded version. This is necessary for Genericons to work with CDNs in Firefox. Firefox blocks fonts linked from a different domain. A CDN (typically s.example.com) usually puts the font on a subdomain, and is hence blocked in Firefox. - -V2.05: -Added a bunch of new icons, including upload to cloud, download to cloud, many more. - -V2: -Initial public release \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/genericons/font/genericons-regular-webfont.eot b/wp-content/themes/twentythirteen/genericons/font/genericons-regular-webfont.eot deleted file mode 100644 index 46574695ec..0000000000 Binary files a/wp-content/themes/twentythirteen/genericons/font/genericons-regular-webfont.eot and /dev/null differ diff --git a/wp-content/themes/twentythirteen/genericons/font/genericons-regular-webfont.svg b/wp-content/themes/twentythirteen/genericons/font/genericons-regular-webfont.svg deleted file mode 100644 index ef236c1020..0000000000 --- a/wp-content/themes/twentythirteen/genericons/font/genericons-regular-webfont.svg +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/genericons/font/genericons-regular-webfont.ttf b/wp-content/themes/twentythirteen/genericons/font/genericons-regular-webfont.ttf deleted file mode 100644 index b6f125e7ee..0000000000 Binary files a/wp-content/themes/twentythirteen/genericons/font/genericons-regular-webfont.ttf and /dev/null differ diff --git a/wp-content/themes/twentythirteen/genericons/font/genericons-regular-webfont.woff b/wp-content/themes/twentythirteen/genericons/font/genericons-regular-webfont.woff deleted file mode 100644 index da8be383d8..0000000000 Binary files a/wp-content/themes/twentythirteen/genericons/font/genericons-regular-webfont.woff and /dev/null differ diff --git a/wp-content/themes/twentythirteen/genericons/genericons.css b/wp-content/themes/twentythirteen/genericons/genericons.css deleted file mode 100644 index b10b86fcf8..0000000000 --- a/wp-content/themes/twentythirteen/genericons/genericons.css +++ /dev/null @@ -1,197 +0,0 @@ -/** - - Genericons Helper CSS - -*/ - - -/** - * The font was graciously generated by Font Squirrel (http://www.fontsquirrel.com). We love those guys. - */ - -@font-face { - font-family: 'Genericons'; - src: url('font/genericons-regular-webfont.eot'); -} - -@font-face { - font-family: 'Genericons'; - src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAENIABEAAAAAatQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABgAAAABwAAAAcaii0EkdERUYAAAGcAAAAHQAAACAArQAET1MvMgAAAbwAAABCAAAAYJdbaIVjbWFwAAACAAAAAJgAAAGyqWnWY2N2dCAAAAKYAAAADgAAAA4BYgHJZnBnbQAAAqgAAAGxAAACZVO0L6dnYXNwAAAEXAAAAAgAAAAIAAAAEGdseWYAAARkAAA5fgAAWkD4H3YjaGVhZAAAPeQAAAArAAAANgUfUT9oaGVhAAA+EAAAABwAAAAkEAMH3WhtdHgAAD4sAAAAiAAAAQpVkUB7bG9jYQAAPrQAAAECAAABAoDMauhtYXhwAAA/uAAAACAAAAAgAagCQm5hbWUAAD/YAAABYgAAAthC114IcG9zdAAAQTwAAAHUAAAFCuMEJONwcmVwAABDEAAAAC4AAAAusPIrFHdlYmYAAENAAAAABgAAAAbRQFLPAAAAAQAAAADMPaLPAAAAAM71j4QAAAAAzvWBvnjaY2BkYGDgA2IJBhBgYmAEwnogZgHzGAAJvwCyAAAAeNpjYGb/zDiBgZWBhdWY5QwDA8NMCM10hsEIzAdKYQeh3uF+DA6qf74ys6X9S2Ng4GBg0AAKMyIpUWBgBACOigvWAAB42mNgYGBmgGAZBkYGEFgD5DGC+SwME4C0AhCyMDCo/vnI+Ynzk+Qn1c8cXzi/SH7R/GL5xfNL5JfMLyVfmf//B6tg+MTwSeCTwmeGLwxfBL4ofDH44vAl4EvCl4KvDP//32LnZ+Hj4+PgY+LV4DHk0eZR5ZHnkeQR5uHlYeeugdqOFzCyMcCVMTIBCSZ0BQzDHgAA5FwqMwAAAQkARQBBAGYAfwC3AAB42l1Ru05bQRDdDQ8DgcTYIDnaFLOZkMZ7oQUJxNWNYmQ7heUIaTdykYtxAR9AgUQN2q8ZoKGkSJsGIRdIfEI+IRIza4iiNDs7s3POmTNLypGqd+lrz1PnJJDC3QbNNv1OSLWzAPek6+uNjLSDB1psZvTKdfv+Cwab0ZQ7agDlPW8pDxlNO4FatKf+0fwKhvv8H/M7GLQ00/TUOgnpIQTmm3FLg+8ZzbrLD/qC1eFiMDCkmKbiLj+mUv63NOdqy7C1kdG8gzMR+ck0QFNrbQSa/tQh1fNxFEuQy6axNpiYsv4kE8GFyXRVU7XM+NrBXbKz6GCDKs2BB9jDVnkMHg4PJhTStyTKLA0R9mKrxAgRkxwKOeXcyf6kQPlIEsa8SUo744a1BsaR18CgNk+z/zybTW1vHcL4WRzBd78ZSzr4yIbaGBFiO2IpgAlEQkZV+YYaz70sBuRS+89AlIDl8Y9/nQi07thEPJe1dQ4xVgh6ftvc8suKu1a5zotCd2+qaqjSKc37Xs6+xwOeHgvDQWPBm8/7/kqB+jwsrjRoDgRDejd6/6K16oirvBc+sifTv7FaAAAAAAEAAf//AA942q18C3xU1bnvWnvveSaZmT3PZJKZzHtCJpkJ88hkIIQhCAECCAQCCCooggTkjS9q3Vqpioo9tqJVK2hbsdpj90xA2mJrjtVaW0fLFbmt1h6xp1ptPcfe9rSKmc39vrVnQhBsz/39bmBm7732npm1vvU9/t9jLaIh8Ef/yj1DeKIlBlJLzIRMFP1i2Mbb/DXUZeNdIv2r0vPEE166+An4u/MJ7pnyBZeS0+R0+XVymi6HE+X4aaoQSsb9TSREyxEOvlQjwXfrSA18s424yJVEJgmZlmQhIVtSsqYki0lZn5DtKdlQkh1JuTYh15WoXJ+QhRNFoq9NJpOyrlTUCcbYcF7HG/C9xhCTdZaCncZkV6lgsiaTRbsL79sthlihgcZIx0Sa8TvO9+KgO2Xo7GnCSWVJIGWJk07DNUckiY57KZUj4Sjc1cE/GION9BLZmJDNJdkGHYR+2mEwJ6DHcp2lIEJ/dKWCg8YKYp1oHRYMRj7kypGCzQxXVKsjcNUxkVisIZ9gtXCCL0TszmRnOhKg5BW6mj5KV7/yirJfuUTZT5P7ju/bd5xPjG985RXuIWzdhyQWiEQlnaSVGHVdxE+uZ7SFvvkSciMQMyHzpWEj79DH5JqSrIfeBlhva0tyraVQD731lGSPpWCFM22pEIR+11LRWtAbczm5XpS5nOyBUfAOM/RbtoqyBsbS6IOxaKm1FtscYoHT5GBMNuAYv00jIoVtdpJKkkyaBAPEle70OR12rS8iAYHZ/0+ArHmq+8EPqVY59cMfKJ9IR6nx6FHlb0epxCPNTxNpVBJ8B1aV34a7Y0/uPnp09y3PPIPj5oh+PF9Nx3EX9LWpFDKWIYm8BYxVl6SyJSGTE7KQBErIvKWgp4wU2qRcY4GxxoBYOGsEB+AXaeWVghfQVoHuKHCEA0fwUn1XiHprVALRwSYtzgEHFyJcCvABDTAV3sNTCfimjqQJlU2sK9AvTWnYoCEwKcYS8pKhVDAD5Y1EtALFCxoDHPkccnCFdjpRI8bh207SnpN3bz1Ntt6tkfafPLn/C8+3lP8gcfe3PM94FH5JS4iROMhKImsTspgCZpStSeSJGkaZWiCIk/WCUUP9/aKRR8kxakGmgEI1QBRTSTZZZAdyUNFhwrsOEeTKpcoVEMdOgmKyM+M/cwryIynHjw/t46onQDSQr+PKcUr2DY07JRzSjNGlgaTIPoKiDnMSS8he4NA065++VNQT/GG9AN3SWwpu6Fa8VIy7sTE+ERrjlkIdNDpKxToHNtZBF2WHpRCFRn+pGPVjYzQE/c4Add164GtjfS5XqIsD/9a4PDHg30LUAc3e1hzwdawGJVYMTWQySsV0Z9ahdYgonxkxHc14KVwAH+MdmBY412XwTiSAT7kcMENkaDC/5cCW/OAQ42aCfD3WxI1QafX+8H25JYq0YMuWBVRakrsvvH+1IgFjcxqKh91K5RHKHlHUR0DWgbvIiA5pZiVB0kZkf0K2pXCKgMFrU0wThRJy/QmQ6EIY5qkgWICNGmAkDcBGKX+S9Tjop2IwEKFZPw5KbYsB2x5YJZBVBw6sUvJKXlp1gEfN8vivsEVS8sjR7Ca8K3k6ckBZJf3qcSqdaSGEp1U50EAPfWRmRctT7Kj+BOoks6XghKlpKhUCMB9mmI9ho9VWj1rEKRYafDgHFGTgsNZgdjibKrMAHabhznQ06+VRElw9NB2BC+qwm6gOf5TJZaa/f4V7gscyOXNR34UX9q1Ydnl8YBJPkNE+hVd///H+FY1TZsyNzr+z86K+o7882rdi+Qc3L33srslo/uCV1oNGIevIBiJfkZAvKcmtqEGofCXjxs6S3GkpNFKU2MJ66H0n9LPYP29BDvRko/i0xuLovmDJZUzVX3IFcJTlMrjRKuZrjDYPaWlL52cPXooD1VgPBULhjiQbnJi2klAqKRCrw0I02kgm3ZlJR3sEfOMi0Tg1cbpIVKuL82aqdWkddi/v0upMNE6jcSHaSk3U6fIKLq+uM2tHNRENkUepje765TG6i1ofVa5TfhEK0BnzrpMGs+u1Rr3ZJtSlui/PXr1nz9XZy3oSRuOkjvXZQem6uZnapqnLlvo4gyfQ6RFqGwyimzd43IE6ytdZm0OdUxbFaSCk/EK5TiC/pF+AL39U+U9l9zGlUP7jOl1zg/D8wpsnG5pnDT217ZGt5pZZl06knGCdGPZznD88UdRy3D03bN+/7amhWT594qI6E+3KCnXBxnpOV+O2wtiau/y83t3Q3OAEXZS8Vqj3addxTrRxOnxjc2MmjYzzJ5E+soDsIMU6QmJypITao7kkd6nztZDZNwuIhaVwIcxXbxLV6yKYsgtBHvJ1mto6wdnUHGppz0yexearPgLtRgOxtfZMzfcumIvT1Cwe0tMmz2Q877IW/YkLcmjj6ilMmA/mywJqHkw3b7e6Okk2Eq2l0awzlOWiWkKd/mSW47XE5rT1CNlIKBjQUi/n6hRcXNTE2bwUPmPNhr6FM0UfgpftW99SPlR2K2vg9WFox8Yb6Hffs+SVd5Wtf/c9R/+6567h55Q/U/FXdNbho/7v/Va57W9rf649MO+O9RO+qBz5gU+iC5yeqPYJOvd695f7nv77YtOkFZ6HXq5X/sQnz/3+b8HvcrMPKq9eW6Kd8zqkwWT9V5yz4tT9tyXK0U8fGFlA2+gtc5RjmvWPKY9xk3w9vaEv3mMpb/GkFtf6tY3UM5y7dEh5tPF+5ef3baSLR+JMfiTaBjjkN6DNYdgpXxY41JlKwmEKsGicZtJZp+BC/k4lXZ1ZrQ5fyLImXgj6pI4WSn52zTOhqDeRvPHxBUvnLkvuoXveMf7q/gMbpfWt11y1dvYm2rPz6XeUX39LeZUe03yDu3uzrs7981s0MT756CVXLH7iFzXR9vv/9w731Fv66to3L9D59Nd//MEv7l+KfSOAkXQSiZILCKpIUJYBMG9JWUzIvpTsLMlulXVaAHeeQDAKMNRgAVwpuwBLpQoTgHlcgOZkd47BhPHaVPTb/FNQv7qykWDAxHloEMFDICLtG9KQoX37hpR3qalWeTfW+5h2/vpL7lnWpijltqF9iBHw9qfwzr1IhZHa7iz9P8bsJTsv+JMyWs4hwAOLTyTNe9D3BjKf6VMHs+K2ZJFQNG7EBRYPUIVetexupv+5JHZdTBZd9fiMy2GIFesZNq4nYAsbKzY8JaZ7uFTS2Ux54FAP5+fRmHPSb9Nrn7wqO+R26/5tborONikvKCP8SzRBufl7NuW1PK+8m59helU5NnqEn01A21fpawbcsRiQx1qyl8h1CXlpSW5OFMJpwGSNpcKEOKD4RSqh142T0W6Q0QuT8ppSsXsN9rG7H4a0xlJYBe0guFcC7btRcA0ouDbnkuUXM6FtXorCTPUGYrcFsn0rL161BmW1UTzkjM3qR0UsL7IWWjpQaq0WaydIrROkVgtSG0GppVpbKtk5lXY6tTqtjtp40LadLqfa5qVqYw+XSaOuNSDjulCSBYpsHYnytNMKWho4WCft/YjOpRvp3I/27v1IOaR8TTn0UfpUSblx5u50eGMw4LCZ7G0TaUS+YYndbLfvvjCyIRi02KjZEptIgwvrATnU2zmbxqKt1eh5fv4k4ybl/QdfVR6iF27ZsedmgfuY3nrkjcs1U/g5n/kVOOO4Pym71gieh6hJw/G0OcBruNH7OJEu03EBHzVio63ByUHrw7T2wtxKf3x5JiB4jY019SanaDfmBukVm58/9XV/XKvhDpb3DtHtb7463NJ66wOqfzE2tzPIcnIFeYjISxNyS0qeXUK+AxA5HRyNlGwvFafbcfqme2H6GoAX16pzjJ4bOmpg8WV3Ug6Btk4WAyF8NNAF3LgO5lcHHscwb5q5AmctIOaNmhrvhFhv/+LB1WyuZ8NcF0lsJqjgAm+Cc128C+3udPEItfiDockrL2Pm1Cbi5KCZpK6ANhjgM6qkeqhfDIp+hwrrUWrBzIJ51cP9LDtNZf0BLd9DXWBPNS6cVZBgW6TTBd/k1AJrSDeUvB6fu9lrnW07cp8q2uCknGaqDyCtotFcfDcfNIdsHlHUx+ceumjgwK3lR278/YzcG9LiObbBULfHo9PR8qElt01z3L3ruh85HdKuG16i79Lf38hPyfm7wx4qaKehRlD9H/zqUfiVJufdT23g3LVNYqO93mFMz5x815GtRzr2Xnbqm0vWU9pQN7lhYmBigyds0V8hdD7ya0H4/TcPjAjCL4mKycCAap8Br94CunkWQ9owB3wCcEwVaasT5IEJ8pYYUtYBtinUmYDCHrEghhCWhepF6yGLua09rqIyu3MyBQAZp6A6bKA3gMLpbA9NJREjw3mcA2Wo0WX8XmrhAKVdsZBbvJauGRhYZ6NzlKcBls2usQ9OnTTXT2fn1t2+KNSbSvh9jhrlCIU/rTj7sstm969aferb/L+P+rkJnY3JmZNWzyj/J9e15bsbsjW2xsZgk3iX+23lPeU/Lz6LT5sAe2bJDUwDARL2x0DtdDBn0Oc7IcqdKdkG/pdFdsP4u9j4wQO2MCfYy/wG2a9yawwcEkuhTVVDOSCL18NMgOwXC/UuIE7AKmdyckwsdHQiiXxwu9CSUV3h8SYC0PbnkosRixkOoNWYyUCbQMnCaXT6ALegd/oiC9WBF/x1qtdbZqR2U/3B25MLuwIW5ePxRmSfcO2kCy+c1D1v/qdH+IbR9+jRdltL17CyjL74vafr2yINW4AZngRAtQCw1DTyXVJ0In4yJ+QJJaSQFgjSywiSKckZS6EJRg52MmAptDOXuTAdDp3uH/bUfDSHOGJGk9wAVBwp2OkncmRk2GqP2GJFePft8e0JakFMc+SQ1d7gjsTxj447l/NuWmjKgCC7clNQkANiUevswLN2a8E8AanZMQF9NNLco0o2mCoEyk6rw84J4L9EOVDQ0UjWpmIKJ3MGtKi+rSzqYOIcdhBeHaLlaIR7su/eYzT2lEwTL+94QvnZi5d/LzDbErj4Xp3n0Za71g4sC08xua67YucPLlc++PiOD7+xbMCq01kMuqDzxi8Jf7rqN688fOl1Lymf3vk35eqTF+eV3+Z2fbXz4C5OXnjNHUc3LErd81zu8q98n058+gQ1XX7wzWu/usbhrp/SUm8xpKgaXhvDsINkNymakO4AO2Yn5C60kcwmLmWkD5fksKWQAkrPLclzLYWZcDa5JE9W3V/wPZYBI85NAW1iiYHFqC9nikdMGltz1zTLArycbC04pyIBnSb0QhYDTWeDF2IwEps7PCE1eeqCz3geiGSDgWhnFoCpSj4mu+BrOV3OTmDSbGckClRmWAHJDNTPomEErgVVC/ABpsJ1tuOh+gZfvXuOZ1bT3gWPlvdc8tjf9971f75zfW5ondUjcBZeozFd0CeNbH3p5IJ9lyy63FYz0ds3fdF2i96w1VavBbT61Fl+hnIJvP7z0dYd66g703+ETv3ZtuPfvGzeTY8NL9/zWqveZDPkDTanOP/61cVbF7751Nf+fu/OBfGHr27tXXr/1thCm00JD6zecy0dZX70AW6VbpXmAChGM2khTBeyOIlJDRZRNUJjKRiA4nXV4JDV4vR1WiI+oXI88Fe67K9/VR7n7qycCN9VHv9r5ZwdK7iY6G4EF8ZPMgRjnPUl2ZqQTSwOh9E28D7ADZa1GFsrEo0FZcBkHa5r8vhUxncBdzdSaypJic0aDvFwCUyNxi3CowxopcXX2Vcu/MrGb5TpJrq61qL8Sbnjlhn52yz6LVu7Znfb0xOPLZdv1Fy+cbFysvwX5ST93/QnlKcr9LXKgOf+lbJMzRfSWTRh09+/lTD6VGOKZvDjrYRimJMgWsNgKzlXuYUNVDq5XyAYjxqFd45FfdD1xhYF35vRSUd60F8RSdsCejoAnpxsSMC3UjmYkJtOYLTSmSyEkCQWjH/VoZlJiXZmgsGsd2ZFGHUUeVFEoBpEiAYg7Vc/dbtvufTiGzatWHbtl2+f290mivQJZfC02N4xe84G4dHyHdf1Ttvma3bau6h7WaihPf4AfZk20BfuWH7xlHzwLNsRJDEymdzMbAdYCW9CjpbkhoQcSMkJFp4SSrJgAaGlcneFKAhhfcAoquCCp4ADabRgpExOMddzCkhs2AcjCuTkCeKw19PGvMpGjM2QQkMUZLnRF27BtoRYCE04nwEB9z7FAjZ+EEEwcOBP+UMVTgyrxgWckEiMgkieZUWk/oyGZPqVjyzKcWWZctyifERZFPGk8hzX3J+RMv3s7SxDMoSNPOntwXhd2/Ge3mbluZP4oerT/RlQZ4AtKGALhdiJCzzzZqBeFOgXB9+cyglGHowfWjAYL3sZ9GuB9zFz0gF0aXDA6J31Tcjsckg8pNUgnnOhHRgOhFvbEP6xSFyWdiZdFOmho8gGNDKVRm1UDPOusMi7snAe1YiarIG6MpR4uB+LLSL3Y4+n3CvarbZyr+eWb387w2mUd957j3oPvv/BB72c5j3lHep9r/wpvffbvJO+1lxPX6upUdrrm5V2n1Npq6mhx50PbdqkPK48TtPP0q4HnqWp8rMPPfRQOUCXPfgs1/TsA3RZ+dlNvzmLhzJkKXmGPMZ4yF6SexLy90rynETV9fnRONcHsYUaWLoHzq4pydeoxAKm+TGGmNqAaZbm5HvEQ88sX9d7AOlyjbVYJ1yNWqJBzNtqNXZvoCPZ3TNn3qVbbv/6Y/9aHGaAuccOtjUyaTIC5jnguD5N9RZv97zvY7xTswjudSRTuc/xjIRUMoSgOM5FUfJAxwjRSCgasWY7Q1lA1wLHJFLIwjSgYz+V70RD4oqwpwSdltPg/U40G3E0wFoA1U5mR1B44RJvZ+PgUEbQvOCVDo033AS74vJyzGTjBWWP4ldgMIFMwbhXJMSU3nl8rp436bVv/Ynetnby0n0vbd8hRztnb9usPH3wceWDvjl1S5fR9iLn/6Vy8Gf3iY994Vrq2zV31r3lr93Dm+hl1PrQN6n3slDgSuU3+7+hvH7VVWuoqH/gqk3/PnmKs3/mmxcusTtSyZUrF0TSejGVXjwwOVerjTW3JOKz6jiTweGcMbfPFo9Y+2KxFf45Wm5wd+8FV3jqw+9s3taVjQQ/uOlL3+e1Swfv2HbtwIqfUIdxw+K1yl+v2jHlc1y6t5Tb3vz7y7fdvPPYQ0P2jueuu0956tpdWzyNv93/EL3q6w/+L6/W8rZy74dfOz27z5xzfE2598R+GMU26c5duegX79Xqdm7eoPz6+mue9/oHLl7xzpx59u6eSy9bvLjeNdHVN2FZ3yyNtjs7EJ5qcWhoV4z3zvF4/UIsMHdRNKs3NDRfcMW0DQmr5ao752xYF4tt33nddXe6bG/cvnf79tZgU4A6fsJteLZnnn1yz/oNpOoj6gnw/nxyJbmR3EFvIrImIa8tyVJCvjUl31SSdyeL0k3o8kl7DLHiTRKe3vQlcBRvssjXIyoHxBlNyJtSciuIyJ0JOXFCXl8avnB9Qh+TSQkDHxeW5PWWQp6l+2SXRc6W5GwCTgo7oMlXGr7ct0PNcfkshT3QdHNSvr0k35Is3r4Hf+32W+GH99yOp3skcDvvUrGsYevIsIplZ1nkmSOFQe4TednID4UdIy1qc59FnjFSWMp/Ii8fKcyaqYeG4Zl9M2yxQt8MPXxouG/WTFtMHrQMLx1cBq2Dy/TyUsvwsqXLbTFyZMbMvlmDS5ctj1f+6DktDArn14NIZjSbUKxdYnHl2utRcH07QDeK7ihahsKeGtAFE0C0pbXQSgDRoTa4SSw6XUzKo9dDszuxfoeKGuxeQGs94P/GhQSNc2mQPowqxwX0dH0gYBhKBqNqN6G3zLlMvM7EZ9M9fLYHmsEHdoDdAQ+44tMBGNSZABXGeZphTrQDHWopf90LX9j5i39Zl6zzeTpD/iU2m6ve5gq3dfvqLc3eeL39nvuURuXjb8ye55u+8ouzbV16quUESo2NJtuUOXfuSiVnt1hfDcSmheqDA7Paa4O2VM+0UHPt0986+rurU00r4l2XX5B0TbampzRNWjO9w8EfZYAKnGP6y95rLu1KDm6VprfMmNKebfb0mm2xjoTT6Yn09ixPxuZPhQvLkpvyBxd3bbikr1XDiYJZZ6ox69xtcVuDoHPGfJ7++X2WxMKOVrOhRtTxfCiebU2mvFvvOiAc2pQPtuZWbt+R3jrZ5rHmLtq6qXzqjF+uYvovg87vAr6/CP3qvgTLrq5A9V5IA3cBgzYni+ksslw6AbyetSAUAJtQWAnKPU1hzi9cMohznhULgb4cWjorThTv5ZupVwMk16CWFE1qyB/OvBygIL/YAfoT9GtcGw12MBBkovgRXZy/qaZv+syDBwuP3L9rpbuhtuWqi6/ItsQ2br5285VLp4lWytWIvpap4fSmxTNsVv8F07sstGvaK7vWu7jg1EUrVg7k7bbeX+/NtTQ28GJjvcFwUueaNEH45iM/XTl/22QfZ2pqMBo0tllLvvLo725YfvtA1qapq9NplT/ytYFAe7SlzsY1eGvraH0gZgq188Xyu3W+lfO/PffmFXPa/WY95Sw3JKe1r1owb1JbTe1LBt/6TYg37wI6bgc6+sm14JUi3mopFRtakHANDiDchoR8eUlekmApwSXVlCCVr0vI3hPyCnBRS8WAl0WU1oGUewN46iXwyRWWQpyB+GK8jmUNe0D0rwfqB7wgTr5cIb4CjKPgaGjRz9uJAlUnymYQspYGuA1Sd/kGkCpzPMDuLRGH67ykE0/1iNiZV0oxnl1xTHVOHXOPoiA6oQh4SFlw/NH4MfSKmZ3I+H9wH6PhzuoTldvBAE6pw67ewH/wzRXkW71/15dO7r7rmhn9T9Kud3bbUvRLJ2/ZtfHCuU8qP3tntzid3tmZXnrNkX1bN3dPDgSnTFoyb9PyxqDfLwKoXLm6LebzOhoSmUCgoX5SbtHg5js2bsjlsumVl37x4ik5v79n2vr57QlXo9PR5IulgyHNfbtPfqm/dvc7ys+eXLVkaDNcTTJ9+R3a9eTgwI7yX/rnz01MjccXL1m3bEpPJNrYUG/XG6xml90TD4R8vp4OmzMUXJlMtLc3uFuic2avXnvBtJYWN4CyZm8yP6HN6fQF0hNdbr+f+QcgY1rMcSbJCiK3If4uRttYGrcOpzyVkHUnZLFUFHXYKLZiLYjYwN697D0IHKATWaEIBrvTWIihg9l0wLRGEVARllQE7QgThMoOE4laM0Wwbdfqxt5iNOlk2Bu8YSqNTNy0Ok91tW6rf/lMi15PD2T6OyJO+N+fySMeVvLTdvRd1ErB97nkkY9v14jt/qbFDyxaciAc6c9M6K3zR9kbPDrU39LRwsIBJbpXl9JtJxPJJDKbLCJryEayg9xAryaYe5xaki9LyMtLxeWXwWjI8kHg55Usgr4hJc8rFdPrrsG6mK6E/IUUxmEBYTsS8paSvEP1qr6YkNtPyN2l4WR3+5gVTZbkbkuhH2RiQUleYCmshbOhkjxkYcGdSEnehtbYVhq+LjJdj8Gwwo2VoM9P/rJLtYg6i6wfKbiFT+SGkR/++eC/PYLNBXeDHsNB9SOFWrhTN0Ke1ulr6+ob3FXL95lrZve620VrIZEGDdgvDvOaLiZbC6zF1oGlqBbXisNT+5azUP6QdXjCiktYAnW6mDdYHE3eq7Zs3/kFbIhYC6FrMOKxaDlMb3dOnicejrQnQpOnq8m7w+A4kZ3X4QUvFjVNffjdDmtB2wh2c8cW6ILNynyuSnLKBrLq0qBkO5kRjIZ5p0uNMamsgUAZhDdOs3Z4HMMgTrsTYTOGkjFH4GQhKbs2YE+D18KEGy6ZEIfSnexOtegHv5qFUkpXD6zpPvL7lRqr1UFz9QMdc9avn9O3VqOcmvfb73WvG9jZFTe9oDylbFP+9QVLW2ZtS2KJp23CpIVP0OB3n6TBJ55Q3nryu8pb26bFE9N6V3pbzV13/0uXudVrHvzB0UH6L9MugVba0Z5vb8/TgY5YbkK78JWBqwdWG+hLzppazawJE9d/bf3qvm7li7WrBq8eyK5oTE689d3du39/a7KzcXkm0dTfE8q9cuLpoaHDGzbC+ycre3tX9t4f85q7uszemHlw8H3Wwl+PP9Fe/vGUec0dLZMI1qVwGIOWiAd8wzuI3JiQ21KytlTUNqKYaikwdgtj3tpS1XE8U6pTX5Lr1cismKyk7QJqhUer6kLqeZj1RlasVJNjir1Q247soG0EC9sQCrPpFp82mC31zT4/skGtVTbm1PIwtbajh/qcLocummGlHDyLcYUzriy7PYX6WfUS+Lu6xAUJzYvU+aLmG+vhlNKX7tr7Er9w/TfwQveS8h8/4xcee8WfSPjpe7f96NnbNrR3rAzE4wGlec9zP73tf3XEj+O9Xx2746c/qdbr6DCvHSJTmL/oLMkeFm1ATzHMKCGWZFEtPACvMALjbRQxOF+LI/Q4mRVTS1Uq4QKsKOOI3UWzzmTWRTuRt3QGGgnoME0hgHtfLSSjJEKHhPDesIYOhed0ZsLKG8qb4Y0hLPZgeUvpGJab0dX01qGIsk/I5wU6FBmaA8/RSDiMGAhzf8+C39vL6rDU6j5iM2htGZeBZh2UN2glehVnU+4u/5kz063lD4WH6Ta67eHyR5Sz043lPyt3062cWfka/ygNKt9XXuYP0OXKy8qRcnb7OppSSuu2Kz/hfkxnKW8pB/kXaFo5qPwG7QTWwmCtk5U4yLgCGFuiEqSi4rklL5Xxw8iwxgXLk6oDHdqHNSz70P5wwKlarPMLsnyroYR1VMCOHHx7bQLrjUjBgHVaOrU4xQVYmAdQjaZLgi8pS5KU50dOA9ODZwRoUSpX6ge12F+B1JJ6ghWOWBkDU25EZi+YWKcN1C/SM+WAGEIrY+3KEFgNHi4VuBQyeNU/Vm/D+KeZhMnFjIMcjIOQfSIs0KCyDwaogiU5OBZeAPkp+ICRhusEuwf9i4agaD1c69A0hcIsguBxwDVmV/3hasHiWYECK3gNYELTcS5gophLxlKczT+iGvDnNT/avPlHyqfKO8qnPxJXPPj6B68/uEI90G9LtPUivvCZh+CMM5x5Cg7KQ/QNZYVyYgVRa8W0qD+A7MTLZkUoYe4ea0StCbkGa4sKts9MO6koWo6c3E/J/pNlwoopEWBgWPI04fepZZRn6FhDGkkbuapaQRnDqpJirBmVVCwKSqo+AVxQ0BiSrJRQl6RyOxNRtZaSA8qqcWMMAoZKxQmY5CQTPPDJkKWgZYSXDRbsKYa/4tVSukzKwV4irQb5QGb9oIeEdOdkqrJwIJIBFkYuAoABQ/iU9Gd4FogbZcG7iFtyRyLpCFhVCYQS/j6FZ/E+x566KB2JuBUCz7jH1WpVxtxJ7quOOZOQ0ykspjl3rNnzjvWcYXVV8ELDR19CYCCn4yY5NVJo03wit4+QYlt7CtHAMBzTYzhAqwFma4pEWya0MubLmEG+Erl/Sp2UfzLnpS4Pb9eBzo6CQbb9YyKBKaK8089zkrbd7W7SbXzq8+nF+VwcRzmNEcjWpIPnaYHUnkW3asQzQVIkSyaTqWQ6OVKlZFOiEOpIpVgx3kSgoi9RbEl3p6DFD6yRmYLYrS1R6MpDS3upkJsG1+cS/YJxRG8CmeV8cK+5VBACeLRguLzQ0gbn0VKhFQssohZmFNNdcJ4qFTon4ZEVWRS0eTifWiroe/E4NmEz/ikf2qCVh1f1+Hnnn0d56Tx/5yc7Kk+qas1zirDHtzP/mw7SQd31uusBVxDaw2WxAis5lWKlINVFAmaqtbt0UQrqabDW3tVB7/jd4fCGyOFI5DDXfDg8FDkcDh/+nbLzghV0sD29UL0fPhwZCh8un8Sn8JF34H6SjKv/tsGvzWcWx4VzzDStl2laNdbtVvVrM9abYmxbI5gsCDkMiE5IwYUlmaac3CQOU1JjUFVruodLejnw8iiLbcep1YLV0xaCzFxRiZvpf0mK+PXv73z9wfCZwmmhv6I1d37/64oo0f/avOJBjlf2Ysk02FlWOsef1Xc/WVvtvZdVzVXGEDh3DMHKGA7jGLy+84zCKw4TR00Dq5ezygYcVpG67Syy/I9GxWMd/j8e2a2c9M8Gp6iMcPb4JpDhceMLM10WTBa9TIt7W8A5bGaRgmY/qOXK2FvHjb0Fo4koTnIgWYyyGEQ0DJ9qieJpCxa3RMcoFEPpAwrJQk6OikVXE0vfua0FDdZO/P8j1ljE7Z8RrRoe+x+Q7qxYlgAS1KYn2uOkjtVYxpBLahKytYTJuWjFFrIFGUAvcMs9J8YlvMBLbMcclwd4pUbk670sgzNBPGQUrM0BptGjCC90JkeTH9c/YM2Ex4cDFymiCgCLCCqiPOCCZGcW0Cr4VDrO0ulzWrQ+axUQnbqC1tA2WrOGfqpor1D+Wzmu/PeaP9Jt81741fNz6U7lroff3vhCv1DJbu1nsEkg9NS67dvXKhpFs24bYMpTyl3zBwbm0R10+yOL5pc/VB8+yVVhFWDaKi0QzzYCLVIkzzxyoIBBpUA6gXUypNDcCi6GpUnMsenOG4nO7HJ7wpF2LO+VBWtRa7XlquME51LHBkZdZuqiUcr8TRqxZbFsAdUXkiEYsFEni76y8e77t2/fvW4LDEu586PbwhdpyEWj7Sf3t3UqbSY33sCB//k2ei0jyL5/u5QeN8FtddSX3h1fNB8/9yZ+rjyw/6RJaessH7k7juP/863KbUgTehk93tm2/yRR6w05ieHUGkIMHGbTDBS8B06ieWUE3mheUkbYmzLCk7Ov2TNErbdktQ416AvQsS+R+PzoCLzxeWl0hL2NjgDIPeuaPYMyLVUwXw1orHZyC8EqCUR5rmSyaGbCbDaBWIqOBjSkrNC8YAwzm8pkOg4uQbXm3AI8aivJtupqIcwa1LNEbSEBfGsBtFHkAkEMo7vsWMMzQV37YgDGbcPFMJwhx9zFcAVcahyIeMf/U7O0RDWczGwi0OzPUAQeZJRUrB5aOGxAJIJY7DRxoxlkWVWpTLiRcn78C9oFcxpxHbN3hHrB57kXcDAxgGtFeaqpwdbfHKFv0jeP0N+UDx8+JNyoPF1+n85VDnEuOodyrvL7aL9Uv0aCqTWSVpaf0QGVQMQ11fovdLaFEq6IKegxYEYxHm3gdLggBiuWJOQNaRTr7UF1CPCFoEUUcFHU8v8xPx+1iQFXwhgoWwpE0ZHhySm4AyOEMeJ6mnKeB3IoqL8FNtcj2hH4nJ7VqeFnhSzNoozgSwJHbWQUGQ01VvsqbmCVMg/f4ZMjvKTkR+EbMCmg3ivX4XvFR4Rvhm/1MVTGw4gNTNeDx2VE+eWJqEZyKVv0gz0m6kBxSRgu1ygzl64ssSGOszU6tsahF6tHCqbGFKsf0TN30YZpX7bogZ4o6G3AkipSNldX1bDCqka2BgIoPBYIEtkyAH+aC8EpAE03dfgtHAlRsuXAFvivVtacJuC+HztG99KFtOmnm06TXyjfUSKchT2CU6OW3hyjq18Bv4ls+qnyH8r3lG3HqEDfoEt/gWMgYHt1f9Q9xWhdX/FG7Uy7m6HjDQk0b5iLiGRpD3W6qBM9aFvKVu3q/G3LuI9zDz44ifv7sm0HP/kjd0NqOK38helbSl7eK7x+8fTpF38a2/uyhi2tGz1c1a38WG2JlURInFxKEHg0lIoNGLMnDU4wryDoTSU5jnHI1lJloaAZhbpo1uBD5loMBCcScssJuU0NAbW1YJi+IaBhtqapGUQ22qaWUfhR7zpd6AlGWcESVwnJsaVLWlZKlq36ihLt7KdTnrv5/WXhOUORHQ/sP3nl3KHw1of2nwQu/3m/8pPnbv7Dcko5NiGgY8l3j69ZHh6aG9l2cr+yZmhOeDs6lthI6TY2I6SyPoytdYpiVWIEC+2wUNtaKlrZUiYr5jhgCnxqBfpY9KuJrU1DBXZGbemZI88K0s1NoLY07gjaHrtYqG3G5CFYnAYW8NKLhRq2nqbWigqM5tSot2h3+s6sWGKxr1TFvawsaQKu5ghbjgfdB80jwQGvlE8QPvB5VPK4TIlTlyepLuXzSjdecQTvlCW2ZI/VEgFH3qNFeTERJ8w3Lj1D7ewaVwRhV7EUKOSC3YJDEmpzLBdWAUV2LYavquVXVKogoOULlPXK+gUHKwsHxxDPB68tUIbovgW0pPztKN5U7doqtGuat1E9oWJx0SC3SnqbjqB7IfikEY6sKiN/wqTqsb/qukLvuJWqmoqAj4WBcF3VmQWDevIxUV+0srL0zPs4/0EkIfAfqsE9ISkbS0UjW+ZmBHsma6BBNU6+khxKFut9rGy/CW5Zkyz8x9YI8rmCrx6OQXWNoDUb9YtRTOpaXWIkxFGxGSQ3k+aiolPAikmdi5JrN/yOk/4wa8GvDx5SfvM4L9le71sI5zT0ONwRyIPUteF3ZekPfT+4UlY+jCmnvCfojPJRDp/74TqZ2mJU1/y68sOjDyrvb/idmqvhgaYCrsF0VOmEQS0hUdCMLROkkoDqG4lAqnYIJwHp21KN5ejUaJhepQmWWOE3oJY2jH1RmNkgAQwQLrvE4NooOptobQa4vJ5o/h2+0cbQ680Ew0IupjyaWG6kOYlrHUHu/EkMP9eqS+W04wv9zpQqqTIXUIFtuFqkVCtaMeVeCCBaaPI2I48WeBfc0Zsd9erSg2GDyd6gJuCBwxCwd6Z7aNJL7SYaiFRxrKFyb4Du3KL8N/2qNDL41ae+OohvrVsf3rr1Yfpo9Q6f5/b3KM1gMcn6yiODgzSHD21VpLF7Z9klXKGcJEhTdYWykfEtx9Yp47pkdSlyQUMA7uiNcCZUlAPFhXb+RnpG0aMx5NlS1zL5yxkdz401KtLZGt6g4rbKOmnVk6hGRu5ns13L1mm5U3IOy/2wii6Qkqew7FU+Ibem5GklOcJW5iRY700p6Dqu5+1UNcf4gAgMZpgTm0IhVxJtiA8DIXBmwRhUoRujHZNLwwZzTy8+MFldK6oGPAqTu2DgWAOlclcF1zEuCzr8maC1Gj38zNE6DuHZxq8qPwvtAbbBSEaEQbdx/y8ah/suomxhMb4wFoIQ8FNQRYAGRx9jj9PIWYc32GF0XDBErS8FzIXx6kaSIGhVeLY4iGeGhTdgRpQ3ob1sYhoXjUgJK/3RvGN0sbIiiyW7wPtMVXKe0r4hne7o7i9fkji6bf9Jl6tSGcjtO77PE9x9dNUVu07u7+lVF6Gjjsc8hqBG/4GHopH0VLVcz26mJhoFRwKj4y/SOXPe7z8+h3rhOOdYv5KjByg5cBoRpQ/vHu9/f84c5Z3+1/rfn83NUnL8L0+TA8xBpYggNeia6VAn69g4eVVlVMp1q7qiast5Nd5bjfKqueXXNB9q/hVUtHtsbaohoSJBXHYqa9SkELosUabelO8spR8qtqV0Ka5KXzqo2BTbIF0K9sRGX9NK7LuA6bPUD5+KQuOHS5XvoH6iS5fyI+xZ/BjLK+S12H/0LtEjghbAlGB/yiMCAOE8O2PPoZ3K43OAvQ3sgxz4V3klzxMuXwYva0TJj9WU89BJsNciKcIFTDOgUYGRATxOXl2gTkFDQzc/5zmQeVTQ6lL2qp+gkdi2DVZWG43+ri6ByAP9ARa6YQj5U+gjR9RSX2RGC15oJC05a6+H80VJv4/UL1p8HSm2Wr8o+iei4AqJoj2UxjbAeo5wBtv0iWJ9Sxe2GQAkTshhW22i2NTGIql1paKnHSOpFJUHOVEU1L0i+FJRazSxM+b9Fe31TXhlKxWdbi87YzmRYkhVGcFSMYLR0yRmSABQFtNd3UkWQC12TuqBs8K0yn4SZ4Kenw2C/k+uOSL94z9OOnsDijL5f7tmLMGxXBPLC6EOnsryQiD5jVgXUN2zomlc+bJYjeGDFkX470Gbh1Ere+6cTFoggstXqgaCw3X9akoNa43VXTVUG0HUVBuuYNpHh3gyOj5vpfZPC7IcIV8i2JlACZExgqEIA0N6QDwqpGCl2MU6G1vgb0ZdFlXXkyN2kuuSiJSM6qYFLFeMdcahBAbyCj4jrivTaDm1ulgWwGQTIxN0meKlXIdYSo1+G2gGADLYAL8jmDl7yKExe6hu/wC+Jg5VGj/4SpoOvQK4f5qwPSKYaIyRYX/VDWLxDbXOBXNaDVg/ZgSPIIUOokNdx2ms5u60NZhrKWq0SAANNcSKWg3Lm2OBE4AXK9xvKFVXdfrtBD32CMFpwxH4K0c0Mspbb50mbylvsTlib4L0nvJIu/IXWtdOL6XrKAtFoE1Sj5X1AES1Mc0wW4tJMYKrV7zgtqWq1sb7WWsDM+Q/ARPBZiHkB1tbE0G85I0AePL5Q+ih8GKxkQVd/qEpwlL/gIYdKNBbq/2MVcK9OBRpiA5RhrsBFIG29/nG2yi1YBDe1PGcsZkBXA/sYwPxgngki16Gtr1sIF6E4z6LOkRco6AuTfD6YDAuwvpfoM5/2ntM6TJ7em7PWXcRvimqZf1sr1VOw/xnJXZjAI18NbNcGuaR4HYemAUt1rLitloLkt42tsXI+OScheHaosWMD1rAg0a3i+XdipzRipEvtuYC49UCNurVRtwKRhZVAdHhJGRFA9o6DEVjtyT0cDAIFFEugpPyG5yKfShj/ze5MJ4/Vn6D8dFYHlcgRtJVHYdRtcM1n+l2JRKFPZQ56JVRI46JKmXOgOhHg0PBcPEqHZHB4Uri1LUm3JiMiaAFZxIMIjhwmTRKlzY1TguCX6BlmsRWGjZqcVeWehYNMTKoVDCCp1VwNuTOKEMxGNDiogsH6IZORISRdBYjflhfwKrB8qPq0gsebMfoKxlVGX6KGkJCLZC9J8vWIZEDulW6VeAXd+K8Rlh5VqcahckCxDkhd5TkDgurJnWzzGqhg8e0vEZfO6EddVpaHLaE6tjSEbf1sOiob2oOshhIEgTtsIf4Qy24x4ncKQ5TTT1uqCGbrYe1xjqLzaX6KVmsZIpmNZ1ZPusCzJZ18U5X2IV1TjqXLqzV2XRYzhjVRW2RqKaq9w/8Qa//wyQ6MdHtuOOl6ZbpL93p7ErRiZNYs/Jq21QnNBv001+6w9GVUl7lIgyFcX+sNnYnzvcwfony6qTKd0M7Z6yAN/6s/ZfYbKo7MLnHrNnYnkYudQcmnDkXOG2HcQcm0c6o4jYj9bQ6YnWcswsT27EoS7U22skWEJ6zG1OSth2/9QvlGbPK3NFZyvHjt52zL1PyuHJ8Fnf0izRVnrHrtuO07Zx+byIon+D9mJn3Y8QobKW+pIJHm5jmr2Wrprlk0cjKHI2o6o0WNAg65vagodYn2Rh16MKZbKCQRLFgBqll7ipu08SwLC41dWDyyFLBxdUCNNQvAsjvKGK/is0+zA5azLOi/yKQU79gJqu/arjOyDBivCZS9dnVgJWgUv6Mz872E2ABY9XJQcj4qRqPIWNxAO/ZsYPq15XGBRFQflSPX40zs32OJLZfGa5P01U+VMGo+AmbGsmFIai/qwLWcZ/lznyWRw0w9lnKdoFSd9ZSt3Eqs2+o7PNExu/zRKr7PPGUbVSir2KuaZW9Sf7/oS46DnWdKWQaZeuEkTAV+IHICm+cUmGXhpzKjIu9Vvqo4q4bSLEJ+/j/iLx045DX58CuELDkIU6jFZqZ1J0XcdmqiMtf+Xd+xFXdb0tSR3n6rJFzn4VcZdx4ipkBtbDr1HjUdbYsukgH0yF2dY+PsRmqT7C949REkA7tvFkEg5T7nD3b+JQYPHfftiLrV2xk5LMqgn+PdWYU+nlWf8xj/bGx/piYZR/fH5Or2p/a8/VnfHj+3P58+0zs5rM9EpLj4zfj+4R5zytZnxIlrLv2sB2R1OwnatumUrGJ7UHSZMNUugWjkyj+uIFAE+CGw7yxtq6NmamI+LRBMLfGO1JqbVmqOpbW847Fxcriseod/3loCivlqxX0wYD1c8fJrfzymkiju74+c0Gj+2XROmMgHF685KuHas87dP74oT6L2Bhsagy0trdNywU8dkd7ZtKkhZunTTuTsmBreNWcBagrm8jyWgA5VKEDXvPRt1mC6O1znsWkEjwrsN0GcZdB+rbiUz/B8l7VfBnm5KzECTKJ1HawiJcJdD83tilbTRJj5hgXRtWQsvltNGhLRYM2dp6iPJzDbw/SxYMgBo4TMWmkcgmC8Ue41LCYdBmVAOKlsYtKXlHViaCy3Jir7bRGQmYajQgfW7Zwt3G3bbH8XHltyyOPbFFe09yhPD9UfpC7Yoh2/0kc+vrXh0Tmz5C19KTuAW0zKHgD7h9po1nepmbvMPlrW0s7Xj927HW66WNKPqb3vE4TyrHXfykQJbeX5mhu7+iyHoH0jD6+l75IX9yrvFipSQBtVcknNpAw2U5QNtwsWNhUwhC6L1XZqC6IMUJW82hEzizogkkgYBMjoAYVGior/GiTutGFP6lmhDGn35zAckhAB00YDMWwaDAMZzyXY1un0TBLYxrO4wenRBUL+3m2V4dWrdYcq2XK9Et0rNBCzXxKSiXxiVJXfaqfZir7iJw+z7g96B2q4/aoK8e9bJRw7VYLg21qvVGjG/dt1KGf5XZVh2LyIMQ38Ll/NpjM5w+CZUP/Yfel8/S7mZB/8HsYYYt+3i9upBb6/EXKvsP/8FdnKB/RF/AptjdeRe40oNu9LP6vHxfx1luBCryWVGoxUIR5MD1J4hCjcRrEXY9YGQOmawC37ZvzzJrTiDlYXQP+Q/yg4KaGyvF9c+YqUiWeWJUbN8uhYozdlMBELylwtZWlJoazfoee5yfO/tpxuSIeaJgmiIlslV1SixqhGgVgOsFXRT5+/E2NwPYnqSAgMclWt/ApdEDjPG7pwAr0grlUz8a+mZv7+zfPRI5Tz/o29qRyiB5OEQzvY5AaX+Wxs7G9ZHCvUZE4SD/zqNT6aFoqaulYUIIf22NSrSwQ1FwOAPOCoAPDoDfWmK02dT2GbMqNA4tZrMhvpv5ohDn80J3TmObhydYtZbJlK88qCFiUCcgGfw9vhT/+YUrO8vccIDPziGrRCzXOJMv56FXBEU7IzlJRcGJnBeysU/UYakrFGrZFVg0AHSZOLmdVnCpoDNwCH/HQ8ZhMXS+AzEvb6OO0jVU8Eqw15TD8TBm/SjDdMMWV4o9+PsOwCcbpOMLipXWsx0sYDjaxPVvVdQCc2mWgo4m5CyZ1m1bAXm7MjmtUsddYWTE6KThMIq5rkJ0iXMqeSjhbZAubdGyVUzCcQssZo5nKEbswtC83sPbobmVkBFO4I2oxCoLbfUNLZ0UfumT3UUwBS8waYn2Q2ucapHANm38OQ7cFXp9Sly2o2VGsAZ7i/NP7rAaYi8v6uMxZCgbtJ7iTJ6/9hB/meL2hUgGMFM6mbMGsXxfkUzpOapE+klroCDtwhEXRykSq1gVJDPtj5Kx3XDU4VavBAZnUlHBr10oG0QYkqqFqjZ5GLBhMqB9FARFIbS43lluMUp6r4grE+5iJUfIjFVTNPACJy4+UV1EfPYMNNGx/D+Q5DUNxDsD+VlLdv7gpUUm12ERXVufCGIorymQzG3VlRcqyttID7z7wAALWBx54l66FkcIRrh94AFrQMuMlrsiAw+i7WHOjEPUTgsSeY/VWGN8fOW98P4V1VyP4bzSv5gzgUs80JuBvbGW3Vewi5FndFsfqtli7nozm4S4V8pWaLg7zHaIAjfj6WCL/F8P1u2sAAHjaY2BkYGBgZjjy6Mpmh3h+m68M8hwMIHDua+N+ZJqDgQNCMYEoAHf+C1gAeNpjYGRg4GD4fwNEMjD8/w8kgSIogBUAY/wD9XjaNU+7FcJADJNNCvq87MMOvEdNxRyq0mWH1GEWegZhACz54nvnj+yTzvGDLQ8gKr8iEQDBRDKqgmqZMMq7/y5kd/UdCLFiC+ITZiivaz6fR0er6d054SksUgzmU3qFEXdFzV2Ez8Ywlc/m5Pilsr2VWitP/bGJ4wvDWi96P3Not+n2B3lgIYIAAAAmACYAJgAuAJIA3gFaAaABrgHkAjoC1AMkA4IEUAUiBXAFzgYgBw4H7ghiCPYJsgp4Cq4LCAs2C4AMHAyiDiAPnBBAEUYRvBMwE7wUHhRaFIYUshTcFVAVgBX6FpYXXBeSF/AYYBkCGYgaBhooGkoa1BryGyQbQBtsG5Yb+Bw2HLAdLh1yHYYdsh4cHjYeYB7iHyYf3iAgIFIgdCCaILIgxiDcIPAhBiEkIegiOCK6IxAjeCPQJDQkbCS8JVIlriYWJjomWCZ2JpQmoib0J3QnvCgGKJAopii8KQApIilMKcgqJCpiKpwqyCsUK2QrvCwWLFYsnizgLPYtBC0SLSAAAAABAAAAgAC9ABAAAAAAAAIAAQACABYAAAEAAYEAAAAAeNqNkr1OAkEUhc8CmmBhRSysNtFCTfiXqFBZiIkaQzRqZ7KaBYz8CStg4/PpC1j6EJZWfjMMwSCFmczOuWfOPffOzEpa0avi8hJJSZ/MCfaUIprgmFb15XBcZW+qSWjTKzu8pLF36/Ay/IfDSa173w6/aS2WcvhdudiOjlXTmXwNFaqvgR7UVYe4wOzC+AqIX1hboMiq/qpHoEhNUN0yESjUWPd8e0RT3RaaiNFTWVnGyI6MGuw+s5qKDfgWGSa3Q42QmYXtwabxD/SE0vi0YTZUdRWP/tTb5nTGw/Rq/LrW74K4QTVznr6KeOUYRVV0pVPd6By0KC89l7lI489prufu6Xe1mi5hJtGMbaKMnN+Q/bzdy2iPb4UTB3rE02jqsOae7nirjEp27uNR0MG/+j+BD21Xh+y24Qf2tjvcQYjr7CUnPVStm09eYLPycKb/Em9Zoq755u2fk2Pd/QGe+3ARAAB42m3S1XIUURRG4VmDBHd3d5k+Z5/uBIdAcHd3CRI0OBRPyCshmRWu6Kqp/6brm9qrutVujTy/frZS63/Pjz8/Wm3ajGEs4xhPDxOYyCQmM4WpTGM6M5jJLGYzh7nMYz4LWMgiFrOEpSxjOStYySpWs4a1rGM9G9jIJjazha1sYzsdKhKZoFDT0EsfO9jJLnazh73sYz8H6OcghxjgMEc4yjGOc4KTnOI0ZzjLOc5zgYtc4jJXuMo1rnODm9ziNne4yz3u84CHPOIxTxjkKc94zguGeMkrXvOGt7xjmPd84COf+MwXvvKN7z3DQ4OpDPT/3YGq03ErN7nZDbe4tdu4vW7fyCa9pJf0kl7SS3pJL+klvTTqVXqVXqVX6VV6lV6lV+lVepVe0kt6SS/pJb3U9bL3ZO/J3pO9J3tP7oy+X7uN2/3/0Amd0Amd0Amd0Amd+Od07wi7hF3CLmGXsEvYJewSdgm7hF3CLmGXsEvYJewSdomkl/SSXtLLelkv62W9rJf1sl7Wy3pZL/RCL/RCL/RCL/RCL/RCr+gVvaJX9Ipe0St6Ra/oFb1ar9ar9Wq9Wq/Wq/VqvVqv1mv0Gr1Gr9Frul7xuyp+V8XvqnTyb1UoNRm4Af+FsAGNAEuwCFBYsQEBjlmxRgYrWCGwEFlLsBRSWCGwgFkdsAYrXFhZsBQrAAAAAVLP0T8AAA==) format('woff'), - url('font/genericons-regular-webfont.ttf') format('truetype'), - url('font/genericons-regular-webfont.svg#genericonsregular') format('svg'); - font-weight: normal; - font-style: normal; -} - - -/** - * All Genericons - */ - -.genericon { - display: inline-block; - width: 16px; - height: 16px; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - font-size: 16px; - line-height: 1; - font-family: 'Genericons'; - text-decoration: inherit; - font-weight: normal; - font-style: normal; - vertical-align: top; -} - -/** - * IE7 and IE6 hacks - */ - -.genericon { - *overflow: auto; - *zoom: 1; - *display: inline; -} - -/** - * Individual icons - */ - -/* Post formats */ -.genericon-standard:before { content: '\f100'; } -.genericon-aside:before { content: '\f101'; } -.genericon-image:before { content: '\f102'; } -.genericon-gallery:before { content: '\f103'; } -.genericon-video:before { content: '\f104'; } -.genericon-status:before { content: '\f105'; } -.genericon-quote:before { content: '\f106'; } -.genericon-link:before { content: '\f107'; } -.genericon-chat:before { content: '\f108'; } -.genericon-audio:before { content: '\f109'; } - -/* Social icons */ -.genericon-github:before { content: '\f200'; } -.genericon-dribbble:before { content: '\f201'; } -.genericon-twitter:before { content: '\f202'; } -.genericon-facebook:before { content: '\f203'; } -.genericon-facebook-alt:before { content: '\f204'; } -.genericon-wordpress:before { content: '\f205'; } -.genericon-googleplus:before { content: '\f206'; } -.genericon-linkedin:before { content: '\f207'; } -.genericon-linkedin-alt:before { content: '\f208'; } -.genericon-pinterest:before { content: '\f209'; } -.genericon-pinterest-alt:before { content: '\f210'; } -.genericon-flickr:before { content: '\f211'; } -.genericon-vimeo:before { content: '\f212'; } -.genericon-youtube:before { content: '\f213'; } -.genericon-tumblr:before { content: '\f214'; } -.genericon-instagram:before { content: '\f215'; } -.genericon-codepen:before { content: '\f216'; } -.genericon-polldaddy:before { content: '\f217'; } -.genericon-googleplus-alt:before { content: '\f218'; } -.genericon-path:before { content: '\f219'; } -.genericon-skype:before { content: '\f220'; } -.genericon-digg:before { content: '\f221'; } -.genericon-reddit:before { content: '\f222'; } -.genericon-stumbleupon:before { content: '\f223'; } -.genericon-pocket:before { content: '\f224'; } -.genericon-dropbox:before { content: '\f225'; } - -/* Meta icons */ -.genericon-comment:before { content: '\f300'; } -.genericon-category:before { content: '\f301'; } -.genericon-tag:before { content: '\f302'; } -.genericon-time:before { content: '\f303'; } -.genericon-user:before { content: '\f304'; } -.genericon-day:before { content: '\f305'; } -.genericon-week:before { content: '\f306'; } -.genericon-month:before { content: '\f307'; } -.genericon-pinned:before { content: '\f308'; } - -/* Other icons */ -.genericon-search:before { content: '\f400'; } -.genericon-unzoom:before { content: '\f401'; } -.genericon-zoom:before { content: '\f402'; } -.genericon-show:before { content: '\f403'; } -.genericon-hide:before { content: '\f404'; } -.genericon-close:before { content: '\f405'; } -.genericon-close-alt:before { content: '\f406'; } -.genericon-trash:before { content: '\f407'; } -.genericon-star:before { content: '\f408'; } -.genericon-home:before { content: '\f409'; } -.genericon-mail:before { content: '\f410'; } -.genericon-edit:before { content: '\f411'; } -.genericon-reply:before { content: '\f412'; } -.genericon-feed:before { content: '\f413'; } -.genericon-warning:before { content: '\f414'; } -.genericon-share:before { content: '\f415'; } -.genericon-attachment:before { content: '\f416'; } -.genericon-location:before { content: '\f417'; } -.genericon-checkmark:before { content: '\f418'; } -.genericon-menu:before { content: '\f419'; } -.genericon-refresh:before { content: '\f420'; } -.genericon-minimize:before { content: '\f421'; } -.genericon-maximize:before { content: '\f422'; } -.genericon-404:before { content: '\f423'; } -.genericon-spam:before { content: '\f424'; } -.genericon-summary:before { content: '\f425'; } -.genericon-cloud:before { content: '\f426'; } -.genericon-key:before { content: '\f427'; } -.genericon-dot:before { content: '\f428'; } -.genericon-next:before { content: '\f429'; } -.genericon-previous:before { content: '\f430'; } -.genericon-expand:before { content: '\f431'; } -.genericon-collapse:before { content: '\f432'; } -.genericon-dropdown:before { content: '\f433'; } -.genericon-dropdown-left:before { content: '\f434'; } -.genericon-top:before { content: '\f435'; } -.genericon-draggable:before { content: '\f436'; } -.genericon-phone:before { content: '\f437'; } -.genericon-send-to-phone:before { content: '\f438'; } -.genericon-plugin:before { content: '\f439'; } -.genericon-cloud-download:before { content: '\f440'; } -.genericon-cloud-upload:before { content: '\f441'; } -.genericon-external:before { content: '\f442'; } -.genericon-document:before { content: '\f443'; } -.genericon-book:before { content: '\f444'; } -.genericon-cog:before { content: '\f445'; } -.genericon-unapprove:before { content: '\f446'; } -.genericon-cart:before { content: '\f447'; } -.genericon-pause:before { content: '\f448'; } -.genericon-stop:before { content: '\f449'; } -.genericon-skip-back:before { content: '\f450'; } -.genericon-skip-ahead:before { content: '\f451'; } -.genericon-play:before { content: '\f452'; } -.genericon-tablet:before { content: '\f453'; } -.genericon-send-to-tablet:before { content: '\f454'; } -.genericon-info:before { content: '\f455'; } -.genericon-notice:before { content: '\f456'; } -.genericon-help:before { content: '\f457'; } -.genericon-fastforward:before { content: '\f458'; } -.genericon-rewind:before { content: '\f459'; } -.genericon-portfolio:before { content: '\f460'; } -.genericon-heart:before { content: '\f461'; } -.genericon-code:before { content: '\f462'; } -.genericon-subscribe:before { content: '\f463'; } -.genericon-unsubscribe:before { content: '\f464'; } -.genericon-subscribed:before { content: '\f465'; } -.genericon-reply-alt:before { content: '\f466'; } -.genericon-reply-single:before { content: '\f467'; } -.genericon-flag:before { content: '\f468'; } -.genericon-print:before { content: '\f469'; } -.genericon-lock:before { content: '\f470'; } -.genericon-bold:before { content: '\f471'; } -.genericon-italic:before { content: '\f472'; } -.genericon-picture:before { content: '\f473'; } -.genericon-fullscreen:before { content: '\f474'; } - -/* Generic shapes */ -.genericon-uparrow:before { content: '\f500'; } -.genericon-rightarrow:before { content: '\f501'; } -.genericon-downarrow:before { content: '\f502'; } -.genericon-leftarrow:before { content: '\f503'; } - - - - - diff --git a/wp-content/themes/twentythirteen/header.php b/wp-content/themes/twentythirteen/header.php deleted file mode 100644 index 094f74cc9f..0000000000 --- a/wp-content/themes/twentythirteen/header.php +++ /dev/null @@ -1,51 +0,0 @@ - section and everything up till
    - * - * @package WordPress - * @subpackage Twenty_Thirteen - * @since Twenty Thirteen 1.0 - */ -?> - - - -> - - - - - <?php wp_title( '|', true, 'right' ); ?> - - - - - - -> -
    - - -
    diff --git a/wp-content/themes/twentythirteen/image.php b/wp-content/themes/twentythirteen/image.php deleted file mode 100644 index 9f5f29b471..0000000000 --- a/wp-content/themes/twentythirteen/image.php +++ /dev/null @@ -1,82 +0,0 @@ - - -
    -
    -
    > -
    -

    - - -
    - -
    - - -
    -
    - - - -
    - -
    - -
    -
    - - post_content ) ) : ?> -
    - - '' ) ); ?> -
    - - -
    -
    - - - -
    -
    - - diff --git a/wp-content/themes/twentythirteen/images/dotted-line-2x.png b/wp-content/themes/twentythirteen/images/dotted-line-2x.png deleted file mode 100644 index 07f6c93f29..0000000000 Binary files a/wp-content/themes/twentythirteen/images/dotted-line-2x.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/dotted-line-light-2x.png b/wp-content/themes/twentythirteen/images/dotted-line-light-2x.png deleted file mode 100644 index 059d4ec051..0000000000 Binary files a/wp-content/themes/twentythirteen/images/dotted-line-light-2x.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/dotted-line-light.png b/wp-content/themes/twentythirteen/images/dotted-line-light.png deleted file mode 100644 index b7f82cdbfd..0000000000 Binary files a/wp-content/themes/twentythirteen/images/dotted-line-light.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/dotted-line.png b/wp-content/themes/twentythirteen/images/dotted-line.png deleted file mode 100644 index 115b583f7f..0000000000 Binary files a/wp-content/themes/twentythirteen/images/dotted-line.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/headers/circle-thumbnail.png b/wp-content/themes/twentythirteen/images/headers/circle-thumbnail.png deleted file mode 100644 index 2f9344c519..0000000000 Binary files a/wp-content/themes/twentythirteen/images/headers/circle-thumbnail.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/headers/circle.png b/wp-content/themes/twentythirteen/images/headers/circle.png deleted file mode 100644 index 0bd940197e..0000000000 Binary files a/wp-content/themes/twentythirteen/images/headers/circle.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/headers/diamond-thumbnail.png b/wp-content/themes/twentythirteen/images/headers/diamond-thumbnail.png deleted file mode 100644 index 82777a04cb..0000000000 Binary files a/wp-content/themes/twentythirteen/images/headers/diamond-thumbnail.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/headers/diamond.png b/wp-content/themes/twentythirteen/images/headers/diamond.png deleted file mode 100644 index a14de61469..0000000000 Binary files a/wp-content/themes/twentythirteen/images/headers/diamond.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/headers/star-thumbnail.png b/wp-content/themes/twentythirteen/images/headers/star-thumbnail.png deleted file mode 100644 index 693bb7618b..0000000000 Binary files a/wp-content/themes/twentythirteen/images/headers/star-thumbnail.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/headers/star.png b/wp-content/themes/twentythirteen/images/headers/star.png deleted file mode 100644 index 24ca62686d..0000000000 Binary files a/wp-content/themes/twentythirteen/images/headers/star.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/search-icon-2x.png b/wp-content/themes/twentythirteen/images/search-icon-2x.png deleted file mode 100644 index 02b63b8027..0000000000 Binary files a/wp-content/themes/twentythirteen/images/search-icon-2x.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/images/search-icon.png b/wp-content/themes/twentythirteen/images/search-icon.png deleted file mode 100644 index 11d8dc8e50..0000000000 Binary files a/wp-content/themes/twentythirteen/images/search-icon.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/inc/back-compat.php b/wp-content/themes/twentythirteen/inc/back-compat.php deleted file mode 100644 index 993ef1c6a7..0000000000 --- a/wp-content/themes/twentythirteen/inc/back-compat.php +++ /dev/null @@ -1,63 +0,0 @@ -

    %s

    ', $message ); -} - -/** - * Prevent the Customizer from being loaded on WordPress versions prior to 3.6. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_customize() { - wp_die( sprintf( __( 'Twenty Thirteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentythirteen' ), $GLOBALS['wp_version'] ), '', array( - 'back_link' => true, - ) ); -} -add_action( 'load-customize.php', 'twentythirteen_customize' ); - -/** - * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_preview() { - if ( isset( $_GET['preview'] ) ) { - wp_die( sprintf( __( 'Twenty Thirteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentythirteen' ), $GLOBALS['wp_version'] ) ); - } -} -add_action( 'template_redirect', 'twentythirteen_preview' ); diff --git a/wp-content/themes/twentythirteen/inc/custom-header.php b/wp-content/themes/twentythirteen/inc/custom-header.php deleted file mode 100644 index 6a9a6adc5e..0000000000 --- a/wp-content/themes/twentythirteen/inc/custom-header.php +++ /dev/null @@ -1,230 +0,0 @@ - '220e10', - 'default-image' => '%s/images/headers/circle.png', - - // Set height and width, with a maximum value for the width. - 'height' => 230, - 'width' => 1600, - - // Callbacks for styling the header and the admin preview. - 'wp-head-callback' => 'twentythirteen_header_style', - 'admin-head-callback' => 'twentythirteen_admin_header_style', - 'admin-preview-callback' => 'twentythirteen_admin_header_image', - ); - - add_theme_support( 'custom-header', $args ); - - /* - * Default custom headers packaged with the theme. - * %s is a placeholder for the theme template directory URI. - */ - register_default_headers( array( - 'circle' => array( - 'url' => '%s/images/headers/circle.png', - 'thumbnail_url' => '%s/images/headers/circle-thumbnail.png', - 'description' => _x( 'Circle', 'header image description', 'twentythirteen' ) - ), - 'diamond' => array( - 'url' => '%s/images/headers/diamond.png', - 'thumbnail_url' => '%s/images/headers/diamond-thumbnail.png', - 'description' => _x( 'Diamond', 'header image description', 'twentythirteen' ) - ), - 'star' => array( - 'url' => '%s/images/headers/star.png', - 'thumbnail_url' => '%s/images/headers/star-thumbnail.png', - 'description' => _x( 'Star', 'header image description', 'twentythirteen' ) - ), - ) ); -} -add_action( 'after_setup_theme', 'twentythirteen_custom_header_setup', 11 ); - -/** - * Load our special font CSS files. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_custom_header_fonts() { - // Add Source Sans Pro and Bitter fonts. - wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); - - // Add Genericons font. - wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.03' ); -} -add_action( 'admin_print_styles-appearance_page_custom-header', 'twentythirteen_custom_header_fonts' ); - -/** - * Style the header text displayed on the blog. - * - * get_header_textcolor() options: Hide text (returns 'blank'), or any hex value. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_header_style() { - $header_image = get_header_image(); - $text_color = get_header_textcolor(); - - // If no custom options for text are set, let's bail. - if ( empty( $header_image ) && $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) - return; - - // If we get this far, we have custom styles. - ?> - - Header admin panel. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_admin_header_style() { - $header_image = get_header_image(); -?> - - Header admin panel. - * - * This callback overrides the default markup displayed there. - * - * @since Twenty Thirteen 1.0 - */ -function twentythirteen_admin_header_image() { - $style = 'color: #' . get_header_textcolor() . ';'; - if ( ! display_header_text() ) { - $style = 'display: none;'; - } - ?> -
    - -
    - - -
    -
    - - - - - - - - - - - - - -
    -
    - - - diff --git a/wp-content/themes/twentythirteen/js/functions.js b/wp-content/themes/twentythirteen/js/functions.js deleted file mode 100644 index fa8160d53a..0000000000 --- a/wp-content/themes/twentythirteen/js/functions.js +++ /dev/null @@ -1,132 +0,0 @@ -/** - * Functionality specific to Twenty Thirteen. - * - * Provides helper functions to enhance the theme experience. - */ - -( function( $ ) { - var body = $( 'body' ), - _window = $( window ), - nav, button, menu; - - nav = $( '#site-navigation' ); - button = nav.find( '.menu-toggle' ); - menu = nav.find( '.nav-menu' ); - - /** - * Adds a top margin to the footer if the sidebar widget area is higher - * than the rest of the page, to help the footer always visually clear - * the sidebar. - */ - $( function() { - if ( body.is( '.sidebar' ) ) { - var sidebar = $( '#secondary .widget-area' ), - secondary = ( 0 === sidebar.length ) ? -40 : sidebar.height(), - margin = $( '#tertiary .widget-area' ).height() - $( '#content' ).height() - secondary; - - if ( margin > 0 && _window.innerWidth() > 999 ) { - $( '#colophon' ).css( 'margin-top', margin + 'px' ); - } - } - } ); - - /** - * Enables menu toggle for small screens. - */ - ( function() { - if ( ! nav || ! button ) { - return; - } - - // Hide button if menu is missing or empty. - if ( ! menu || ! menu.children().length ) { - button.hide(); - return; - } - - button.on( 'click.twentythirteen', function() { - nav.toggleClass( 'toggled-on' ); - if ( nav.hasClass( 'toggled-on' ) ) { - $( this ).attr( 'aria-expanded', 'true' ); - menu.attr( 'aria-expanded', 'true' ); - } else { - $( this ).attr( 'aria-expanded', 'false' ); - menu.attr( 'aria-expanded', 'false' ); - } - } ); - - // Fix sub-menus for touch devices. - if ( 'ontouchstart' in window ) { - menu.find( '.menu-item-has-children > a, .page_item_has_children > a' ).on( 'touchstart.twentythirteen', function( e ) { - var el = $( this ).parent( 'li' ); - - if ( ! el.hasClass( 'focus' ) ) { - e.preventDefault(); - el.toggleClass( 'focus' ); - el.siblings( '.focus' ).removeClass( 'focus' ); - } - } ); - } - - // Better focus for hidden submenu items for accessibility. - menu.find( 'a' ).on( 'focus.twentythirteen blur.twentythirteen', function() { - $( this ).parents( '.menu-item, .page_item' ).toggleClass( 'focus' ); - } ); - } )(); - - /** - * @summary Add or remove ARIA attributes. - * Uses jQuery's width() function to determine the size of the window and add - * the default ARIA attributes for the menu toggle if it's visible. - * @since Twenty Thirteen 1.5 - */ - function onResizeARIA() { - if ( 643 > _window.width() ) { - button.attr( 'aria-expanded', 'false' ); - menu.attr( 'aria-expanded', 'false' ); - button.attr( 'aria-controls', 'primary-menu' ); - } else { - button.removeAttr( 'aria-expanded' ); - menu.removeAttr( 'aria-expanded' ); - button.removeAttr( 'aria-controls' ); - } - } - - _window - .on( 'load.twentythirteen', onResizeARIA ) - .on( 'resize.twentythirteen', function() { - onResizeARIA(); - } ); - - /** - * Makes "skip to content" link work correctly in IE9 and Chrome for better - * accessibility. - * - * @link http://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/ - */ - _window.on( 'hashchange.twentythirteen', function() { - var element = document.getElementById( location.hash.substring( 1 ) ); - - if ( element ) { - if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) { - element.tabIndex = -1; - } - - element.focus(); - } - } ); - - /** - * Arranges footer widgets vertically. - */ - if ( $.isFunction( $.fn.masonry ) ) { - var columnWidth = body.is( '.sidebar' ) ? 228 : 245; - - $( '#secondary .widget-area' ).masonry( { - itemSelector: '.widget', - columnWidth: columnWidth, - gutterWidth: 20, - isRTL: body.is( '.rtl' ) - } ); - } -} )( jQuery ); \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/js/html5.js b/wp-content/themes/twentythirteen/js/html5.js deleted file mode 100644 index 6168aacd5e..0000000000 --- a/wp-content/themes/twentythirteen/js/html5.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed -*/ -(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); -a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; -c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| -"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f); -if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d\n" -"Language-Team: LANGUAGE \n" - -#: 404.php:16 -msgid "Not Found" -msgstr "" - -#: 404.php:21 -msgid "This is somewhat embarrassing, isn’t it?" -msgstr "" - -#: 404.php:22 -msgid "It looks like nothing was found at this location. Maybe try a search?" -msgstr "" - -#: archive.php:29 -msgid "Daily Archives: %s" -msgstr "" - -#: archive.php:31 -msgid "Monthly Archives: %s" -msgstr "" - -#: archive.php:31 -msgctxt "monthly archives date format" -msgid "F Y" -msgstr "" - -#: archive.php:33 -msgid "Yearly Archives: %s" -msgstr "" - -#: archive.php:33 -msgctxt "yearly archives date format" -msgid "Y" -msgstr "" - -#: archive.php:35 -msgid "Archives" -msgstr "" - -#: author-bio.php:26 -msgid "About %s" -msgstr "" - -#: author-bio.php:30 -msgid "View all posts by %s " -msgstr "" - -#: author.php:31 -msgid "All posts by %s" -msgstr "" - -#: category.php:19 -msgid "Category Archives: %s" -msgstr "" - -#: comments.php:25 -msgctxt "comments title" -msgid "One thought on “%2$s”" -msgid_plural "%1$s thoughts on “%2$s”" -msgstr[0] "" -msgstr[1] "" - -#: comments.php:45 -msgid "Comment navigation" -msgstr "" - -#: comments.php:46 -msgid "← Older Comments" -msgstr "" - -#: comments.php:47 -msgid "Newer Comments →" -msgstr "" - -#: comments.php:52 -msgid "Comments are closed." -msgstr "" - -#. translators: %s: Name of current post -#: content-aside.php:16 content-audio.php:27 content-chat.php:26 -#: content-gallery.php:27 content-image.php:26 content-link.php:27 -#: content-quote.php:16 content-status.php:16 content-video.php:26 -#: content.php:44 functions.php:478 -msgid "Continue reading %s " -msgstr "" - -#: content-aside.php:20 content-audio.php:31 content-chat.php:30 -#: content-gallery.php:31 content-image.php:30 content-link.php:31 -#: content-quote.php:20 content-status.php:20 content-video.php:30 -#: content.php:48 image.php:70 page.php:35 -msgid "Pages:" -msgstr "" - -#: content-aside.php:27 content-aside.php:35 content-audio.php:38 -#: content-chat.php:36 content-gallery.php:46 content-image.php:42 -#: content-link.php:19 content-quote.php:32 content-status.php:26 -#: content-video.php:42 content.php:31 image.php:44 page.php:39 -msgid "Edit" -msgstr "" - -#: content-gallery.php:43 content-image.php:39 content-quote.php:29 -#: content-video.php:39 content.php:56 -msgid "Leave a comment" -msgstr "" - -#: content-gallery.php:43 content-image.php:39 content-quote.php:29 -#: content-video.php:39 content.php:56 -msgid "One comment so far" -msgstr "" - -#: content-gallery.php:43 content-image.php:39 content-quote.php:29 -#: content-video.php:39 content.php:56 -msgid "View all % comments" -msgstr "" - -#: content-none.php:12 -msgid "Nothing Found" -msgstr "" - -#: content-none.php:18 -msgid "" -"Ready to publish your first post? Get started here." -msgstr "" - -#: content-none.php:22 -msgid "" -"Sorry, but nothing matched your search terms. Please try again with " -"different keywords." -msgstr "" - -#: content-none.php:27 -msgid "" -"It seems we can’t find what you’re looking for. Perhaps " -"searching can help." -msgstr "" - -#. #-#-#-#-# twentythirteen.pot (Twenty Thirteen 1.6) #-#-#-#-# -#. Author URI of the plugin/theme -#: footer.php:19 -msgid "https://wordpress.org/" -msgstr "" - -#: footer.php:19 -msgid "Semantic Personal Publishing Platform" -msgstr "" - -#: footer.php:19 -msgid "Proudly powered by %s" -msgstr "" - -#: functions.php:97 -msgid "Navigation Menu" -msgstr "" - -#. Translators: If there are characters in your language that are not supported -#. by Source Sans Pro, translate this to 'off'. Do not translate into your own -#. language. -#: functions.php:128 -msgctxt "Source Sans Pro font: on or off" -msgid "on" -msgstr "" - -#. Translators: If there are characters in your language that are not supported -#. by Bitter, translate this to 'off'. Do not translate into your own language. -#: functions.php:134 -msgctxt "Bitter font: on or off" -msgid "on" -msgstr "" - -#: functions.php:218 -msgid "Page %s" -msgstr "" - -#: functions.php:231 -msgid "Main Widget Area" -msgstr "" - -#: functions.php:233 -msgid "Appears in the footer section of the site." -msgstr "" - -#: functions.php:241 -msgid "Secondary Widget Area" -msgstr "" - -#: functions.php:243 -msgid "Appears on posts and pages in the sidebar." -msgstr "" - -#: functions.php:266 -msgid "Posts navigation" -msgstr "" - -#: functions.php:270 -msgid " Older posts" -msgstr "" - -#: functions.php:274 -msgid "Newer posts " -msgstr "" - -#: functions.php:300 -msgid "Post navigation" -msgstr "" - -#: functions.php:303 -msgctxt "Previous post link" -msgid " %title" -msgstr "" - -#: functions.php:304 -msgctxt "Next post link" -msgid "%title " -msgstr "" - -#: functions.php:322 -msgid "Sticky" -msgstr "" - -#. Translators: used between list items, there is a space after the comma. -#: functions.php:328 functions.php:334 -msgid ", " -msgstr "" - -#: functions.php:343 -msgid "View all posts by %s" -msgstr "" - -#: functions.php:363 -msgctxt "1: post format name. 2: date" -msgid "%1$s on %2$s" -msgstr "" - -#: functions.php:369 -msgid "Permalink to %s" -msgstr "" - -#: header.php:43 -msgid "Menu" -msgstr "" - -#: header.php:44 -msgid "Skip to content" -msgstr "" - -#: image.php:22 -msgid "" -"Published on in %5$s" -msgstr "" - -#: image.php:38 -msgid "Link to full-size image" -msgstr "" - -#: image.php:39 -msgid "Full resolution" -msgstr "" - -#: image.php:51 -msgid " Previous" -msgstr "" - -#: image.php:52 -msgid "Next " -msgstr "" - -#: inc/back-compat.php:37 inc/back-compat.php:47 inc/back-compat.php:60 -msgid "" -"Twenty Thirteen requires at least WordPress version 3.6. You are running " -"version %s. Please upgrade and try again." -msgstr "" - -#: inc/custom-header.php:49 -msgctxt "header image description" -msgid "Circle" -msgstr "" - -#: inc/custom-header.php:54 -msgctxt "header image description" -msgid "Diamond" -msgstr "" - -#: inc/custom-header.php:59 -msgctxt "header image description" -msgid "Star" -msgstr "" - -#: search.php:18 -msgid "Search Results for: %s" -msgstr "" - -#: tag.php:21 -msgid "Tag Archives: %s" -msgstr "" - -#: taxonomy-post_format.php:23 -msgid "%s Archives" -msgstr "" - -#. Theme Name of the plugin/theme -msgid "Twenty Thirteen" -msgstr "" - -#. Theme URI of the plugin/theme -msgid "https://wordpress.org/themes/twentythirteen/" -msgstr "" - -#. Description of the plugin/theme -msgid "" -"The 2013 theme for WordPress takes us back to the blog, featuring a full " -"range of post formats, each displayed beautifully in their own unique way. " -"Design details abound, starting with a vibrant color scheme and matching " -"header images, beautiful typography and icons, and a flexible layout that " -"looks great on any device, big or small." -msgstr "" - -#. Author of the plugin/theme -msgid "the WordPress team" -msgstr "" diff --git a/wp-content/themes/twentythirteen/page.php b/wp-content/themes/twentythirteen/page.php deleted file mode 100644 index 5545367722..0000000000 --- a/wp-content/themes/twentythirteen/page.php +++ /dev/null @@ -1,50 +0,0 @@ - - -
    -
    - - - - -
    > -
    - -
    - -
    - - -

    -
    - -
    - - '', 'link_before' => '', 'link_after' => '' ) ); ?> -
    - -
    - ', '' ); ?> -
    -
    - - - - -
    -
    - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/readme.txt b/wp-content/themes/twentythirteen/readme.txt deleted file mode 100644 index 807443d7a1..0000000000 --- a/wp-content/themes/twentythirteen/readme.txt +++ /dev/null @@ -1,83 +0,0 @@ -=== Twenty Thirteen === -Contributors: the WordPress team -Requires at least: WordPress 3.6 -Tested up to: WordPress 4.3-trunk -Stable tag: 1.6 -License: GPLv2 or later -License URI: http://www.gnu.org/licenses/gpl-2.0.html -Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready, accessibility-ready - -== Description == -The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small. - -For more information about Twenty Thirteen please go to https://codex.wordpress.org/Twenty_Thirteen. - -== Installation == - -1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button. -2. Type in Twenty Thirteen in the search form and press the 'Enter' key in your keyboard. -3. Click on the 'Activate' button to use your new theme right away. -4. Go to https://codex.wordpress.org/Twenty_Thirteen for a guide to customize this theme. -5. Navigate to Appearance > Customize in your admin panel. - -== Copyright == - -Twenty Thirteen WordPress Theme, Copyright 2013-2015 WordPress.org & Automattic.com -Twenty Thirteen is Distributed under the terms of the GNU GPL - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -Twenty Thirteen Theme bundles the following third-party resources: - -HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas -Licenses: MIT/GPL2 -Source: https://github.com/aFarkas/html5shiv - -Genericons icon font, Copyright 2013-2015 Automattic.com -License: GNU GPL, Version 2 (or later) -Source: http://www.genericons.com - -== Changelog == - -= 1.6 = -* Released: August 18, 2015 - -https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_1.6 - -= 1.5 = -* Released: April 23, 2015 - -https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_1.5 - -= 1.4 = -* Released: December 18, 2014 - -https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_1.4 - -= 1.3 = -* Released: September 4, 2014 - -https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_1.3 - -= 1.2 = -* Released: May 8, 2014 - -https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_1.2 - -= 1.1 = -* Released: October 24, 2013 - -https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_1.1 - -= 1.0 = -* Released: August 1, 2013 - -Initial release. diff --git a/wp-content/themes/twentythirteen/rtl.css b/wp-content/themes/twentythirteen/rtl.css deleted file mode 100644 index 447d385c2b..0000000000 --- a/wp-content/themes/twentythirteen/rtl.css +++ /dev/null @@ -1,766 +0,0 @@ -/* -Theme Name: Twenty Thirteen -Description: Adds support for languages written in a Right To Left (RTL) direction. -It's easy, just a matter of overwriting all the horizontal positioning attributes -of your CSS stylesheet in a separate stylesheet file named rtl.css. - -See https://codex.wordpress.org/Right_to_Left_Language_Support -*/ - -/** - * Table of Contents: - * - * 1.0 - Reset - * 4.0 - Header - * 4.1 - Site Header - * 4.2 - Navigation - * 5.0 - Content - * 5.2 - Entry Meta - * 5.4 - Galleries - * 5.5 - Post Formats - * 5.6 - Attachments - * 5.7 - Post/Paging Navigation - * 5.8 - Author Bio - * 5.9 - Archives - * 5.10 - Search Results/No posts - * 5.12 - Comments - * 6.0 - Sidebar - * 6.1 - Widgets - * 7.0 - Footer - * 8.0 - Media Queries - * 9.0 - Print - * ---------------------------------------------------------------------------- - */ - - -/** - * 1.0 Reset - * ---------------------------------------------------------------------------- - */ - -body { - direction: rtl; - unicode-bidi: embed; -} - -a { - display: inline-block; -} - -blockquote blockquote { - margin-left: 0; - margin-right: 24px; -} - -menu, -ol, -ul { - padding: 0 40px 0 0; -} - -caption, -th, -td { - text-align: right; -} - -td { - padding-left: 10px; - padding-right: 0; -} - -.assistive-text:focus { - left: auto; - right: 5px; -} - - -/** - * 4.0 Header - * ---------------------------------------------------------------------------- - */ - -/** - * 4.1 Site Header - * ---------------------------------------------------------------------------- - */ - -.site-header > a:first-child { - display: inherit; -} - -.site-description { - font-style: normal; -} - - -/** - * 4.2 Navigation - * ---------------------------------------------------------------------------- - */ - -/* Navbar */ -ul.nav-menu, -div.nav-menu > ul { - margin: 0 -20px 0 0; - padding: 0 0 0 40px; -} - -.nav-menu .sub-menu, -.nav-menu .children { - float: right; - left: auto; - right: -2px; -} - -.nav-menu .sub-menu ul, -.nav-menu .children ul { - border-left: 2px solid #f7f5e7; - border-right: 0; - left: auto; - right: 100%; -} - -.main-navigation .search-form { - left: 0; - right: auto; -} - -.site-header .search-field { - background-position: 98% center; - padding: 0 34px 0 0; -} - -.nav-menu .current_page_item > a, -.nav-menu .current_page_ancestor > a, -.nav-menu .current-menu-item > a, -.nav-menu .current-menu-ancestor > a { - font-style: normal; -} - -.menu-toggle { - padding-left: 0; - padding-right: 20px; -} - - -/** - * 5.0 Content - * ---------------------------------------------------------------------------- - */ - -.sidebar .entry-header, -.sidebar .entry-content, -.sidebar .entry-summary, -.sidebar .entry-meta { - padding-left: 376px; - padding-right: 60px; -} - - -/** - * 5.2 Entry Meta - * ---------------------------------------------------------------------------- - */ - -.entry-meta > span { - margin-left: 20px; - margin-right: auto; -} - -.entry-meta > span:last-child { - margin-left: 0; - margin-right: auto; -} - -.featured-post:before { - margin-left: 2px; - margin-right: auto; -} - -.entry-meta .date a:before { - margin-left: 2px; -} - -.comments-link a:before { - margin-left: 2px; - margin-right: auto; -} - -.tags-links a:first-child:before { - margin-left: 2px; -} - -.edit-link a:before { - margin-left: 2px; -} - -.page-links .page-links-title { - margin-left: 20px; - margin-right: auto; -} - -/** - * 5.4 Galleries - * ---------------------------------------------------------------------------- - */ - -.gallery { - margin-left: auto; - margin-right: -4px; -} - -.gallery-item { - float: right; - margin: 0 0 4px 4px; -} - -.gallery-item a { - display: inline; -} - - -/** - * 5.5 Post Formats - * ---------------------------------------------------------------------------- - */ - -.entry-content a { - display: inline; -} - -.format-aside cite:before { - content: normal; - margin-right: auto; -} - -.format-aside cite:after { - content: "\2014"; - margin-left: 5px; -} - -.format-audio .entry-content:before { - float: right; - -webkit-transform: scaleX(-1); - -moz-transform: scaleX(-1); - -ms-transform: scaleX(-1); - -o-transform: scaleX(-1); - transform: scaleX(-1); -} - -.format-audio .audio-content { - background-position: right top; - float: left; - padding-left: 0; - padding-right: 35px; -} - -.format-chat .entry-meta .date a:before { - margin-left: 4px; - margin-right: auto; -} - -.format-image .wp-caption-text { - text-align: right; -} - -.format-link .entry-title { - margin-left: 20px; - margin-right: auto; -} - -.format-status .entry-content, -.format-status .entry-meta { - padding-left: 0; - padding-right: 35px; -} - -.sidebar .format-status .entry-content, -.sidebar .format-status .entry-meta { - padding-left: 376px; - padding-right: 95px; -} - -.format-status .entry-content:before, -.format-status .entry-meta:before { - left: auto; - right: 10px; -} - -.sidebar .format-status .entry-content:before, -.sidebar .format-status .entry-meta:before { - left: auto; - right: 70px; -} - -.format-status .entry-content p:first-child:before { - left: auto; - right: 4px; -} - -.sidebar .format-status .entry-content p:first-child:before { - left: auto; - right: 64px; -} - -.format-quote blockquote { - padding-left: 0; - padding-right: 75px; -} - -.format-quote blockquote:before { - content: '\201D'; - padding-left: 25px; - padding-right: 0; - left: auto; - right: -15px; -} - - -/** - * 5.6 Attachments - * ---------------------------------------------------------------------------- - */ - -.attachment .entry-title { - float: right; -} - -.attachment .entry-title:before { - margin-left: 10px; - margin-right: auto; -} - -.attachment .entry-meta { - float: left; -} - -.image-navigation .nav-previous { - left: auto; - right: 0; -} - -.image-navigation .nav-next { - left: 0; - right: auto; -} - -.attachment .entry-caption { - text-align: right; -} - - -/** - * 5.7 Post/Paging Navigation - * ---------------------------------------------------------------------------- - */ - -.navigation .nav-previous { - float: right; -} - -.navigation .nav-next { - float: left; -} - -.sidebar .paging-navigation .nav-links, -.sidebar .post-navigation .nav-links { - padding-left: 376px; - padding-right: 60px; -} - -.paging-navigation .nav-previous .meta-nav { - margin-left: 10px; - margin-right: auto; -} - -.paging-navigation .nav-next .meta-nav { - margin-left: auto; - margin-right: 10px; -} - -.post-navigation a[rel="next"] { - float: left; - text-align: left; -} - - -/** - * 5.8 Author Bio - * ---------------------------------------------------------------------------- - */ - -.author-info { - text-align: right; /* gallery & video post formats */ -} - -.author.sidebar .author-info { - padding-left: 376px; - padding-right: 60px; -} - -.author-avatar .avatar { - float: right; - margin: 0 0 30px 30px; -} - -.author-link { - margin-left: auto; - margin-right: 2px; -} - - -/** - * 5.9 Archives - * ---------------------------------------------------------------------------- - */ - -.sidebar .archive-meta { - padding-left: 316px; - padding-right: 0; -} - - -/** - * 5.10 Search Results/No posts - * ---------------------------------------------------------------------------- - */ - -.sidebar .page-content { - padding-left: 376px; - padding-right: 60px; -} - -/** - * 5.12 Comments - * ---------------------------------------------------------------------------- - */ - -.sidebar .comments-title, -.sidebar .comment-list, -.sidebar .comment-reply-title, -.sidebar .comment-navigation, -.sidebar .comment-respond .comment-form { - padding-left: 376px; - padding-right: 60px; -} - -.comment-list .children { - margin-left: auto; - margin-right: 20px; -} - -.comment-author { - float: right; - margin-left: 50px; - margin-right: auto; -} - -.comment-list .edit-link { - margin-left: auto; - margin-right: 20px; -} - -.comment-metadata, -.comment-content, -.comment-list .reply, -.comment-awaiting-moderation { - float: left; -} - -.comment-awaiting-moderation:before { - margin-left: 5px; - margin-right: auto; -} - -.comment-reply-link:before, -.comment-reply-login:before { - margin-left: 3px; - margin-right: auto; - -webkit-transform: scaleX(-1); - -moz-transform: scaleX(-1); - -ms-transform: scaleX(-1); - -o-transform: scaleX(-1); - transform: scaleX(-1); -} - -.comment-reply-title small a { - float: left; -} - -.comment-form [for="author"], -.comment-form [for="email"], -.comment-form [for="url"], -.comment-form [for="comment"] { - float: right; -} - -.form-allowed-tags code { - margin-left: auto; - margin-right: 3px; -} - -.sidebar .no-comments { - padding-left: 376px; - padding-right: 60px; -} - - -/** - * 6.0 Sidebar - * ---------------------------------------------------------------------------- - */ - -.site-main .widget-area { - float: left; -} - -.widget-area a { - max-width: 100%; -} - - -/** - * 6.1 Widgets - * ---------------------------------------------------------------------------- - */ - -.widget .widget-title { - font-style: normal; -} - -.widget li > ul, -.widget li > ol { - margin-left: auto; - margin-right: 20px; -} - -/** - * 7.0 Footer - * ---------------------------------------------------------------------------- - */ - -.site-footer .widget-area, -.sidebar .site-footer { - text-align: right; -} -.sidebar .site-footer .widget-area { - left: auto; - right: -158px; -} - -.site-footer .widget { - float: right; - margin-left: 20px; - margin-right: auto; -} - -.sidebar .site-footer .widget:nth-of-type(4), -.sidebar .site-footer .widget:nth-of-type(3) { - margin-left: 0; - margin-right: auto; -} - - -/** - * 8.0 Media Queries - * ---------------------------------------------------------------------------- - */ - -@media (max-width: 1069px) { - ul.nav-menu, - div.nav-menu > ul { - margin-left: auto; - margin-right: 0; - } - - .error404 .page-header, - .sidebar .format-image .entry-content img.size-full, - .sidebar .format-image .wp-caption:first-child .wp-caption-text { - margin-right: auto; - } - - .main-navigation .search-form { - left: 20px; - right: auto; - } - - .site-main .widget-area { - margin-left: 60px; - margin-right: auto; - } -} - -@media (max-width: 999px) { - .sidebar .entry-header, - .sidebar .entry-content, - .sidebar .entry-summary, - .sidebar .entry-meta, - .sidebar .comment-list, - .sidebar .comment-reply-title, - .sidebar .comment-navigation, - .sidebar .comment-respond .comment-form, - .sidebar .featured-gallery, - .sidebar .post-navigation .nav-links, - .author.sidebar .author-info, - .sidebar .format-image .entry-content { - max-width: 604px; - padding-left: 0; - padding-right: 0; - } - - .site-main .widget-area { - float: none; - margin-left: auto; - } - - .attachment .entry-meta { - float: right; - text-align: right; - } - - .sidebar .format-status .entry-content, - .sidebar .format-status .entry-meta { - padding-left: 0; - padding-right: 35px; - } - - .sidebar .format-status .entry-content:before, - .sidebar .format-status .entry-meta:before { - left: auto; - right: 10px; - } - - .sidebar .format-status .entry-content p:first-child:before { - left: auto; - right: 4px; - } - - .sidebar .site-footer .widget-area { - left: auto; - right: 0; - } - - .sidebar .paging-navigation .nav-links { - padding: 0 60px; - } -} - -@media (max-width: 767px) { - .format-image .entry-content img:first-of-type, - .format-image .wp-caption:first-child .wp-caption-text { - margin-right: auto; - } -} - -@media (max-width: 643px) { - .sidebar .entry-header, - .sidebar .entry-content, - .sidebar .entry-summary, - .sidebar .entry-meta, - .sidebar .comment-list, - .sidebar .comment-navigation, - .sidebar .featured-gallery, - .sidebar .post-navigation .nav-links, - .sidebar .format-image .entry-content { - padding-left: 20px; - padding-right: 20px; - } - - #content .format-status .entry-content, - #content .format-status .entry-met { - padding-left: 0; - padding-right: 35px; - } - - .menu-toggle:after { - padding-left: 0; - padding-right: 8px; - } - - .toggled-on .nav-menu, - .toggled-on .nav-menu > ul { - margin-left: auto; - margin-right: 0; - } - - .toggled-on .nav-menu li > ul { - margin-left: auto; - margin-right: 20px; - right: auto; - } - - #content .featured-gallery { - padding-left: 0; - padding-right: 24px; - } - - .gallery-columns-1 .gallery-item { - margin-left: 0; - margin-right: auto; - } - - .comment-author { - margin-left: 30px; - margin-right: auto; - } - - .format-audio .audio-content { - background: none; - float: none; - padding-left: 0; - padding-right: 0; - } - - .gallery-columns-3 .gallery-item:nth-of-type(3n) { - margin-left: 4px; - margin-right: auto; - } -} - -@media (max-width: 359px) { - .gallery { - margin-left: auto; - margin-right: 0; - } - - .gallery .gallery-item:nth-of-type(even) { - margin-left: 0; - margin-right: auto; - } - - .gallery .gallery-item, - .gallery.gallery-columns-3 .gallery-item:nth-of-type(even), - .gallery-columns-3 .gallery-item:nth-of-type(3n), - .gallery-columns-5 .gallery-item:nth-of-type(5n), - .gallery-columns-7 .gallery-item:nth-of-type(7n), - .gallery-columns-9 .gallery-item:nth-of-type(9n) { - margin-left: 4px; - margin-right: auto; - } - - .comment-author .avatar { - margin-left: 5px; - margin-right: auto; - } -} - - -/** - * 9.0 Print - * ---------------------------------------------------------------------------- - */ - -@media print { - .entry-content img.alignleft, - .entry-content .wp-caption.alignleft { - margin-left: auto; - margin-right: 0; - } - - .entry-content img.alignright, - .entry-content .wp-caption.alignright { - margin-left: 0; - margin-right: auto; - } -} \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/screenshot.png b/wp-content/themes/twentythirteen/screenshot.png deleted file mode 100644 index e53088b2e9..0000000000 Binary files a/wp-content/themes/twentythirteen/screenshot.png and /dev/null differ diff --git a/wp-content/themes/twentythirteen/search.php b/wp-content/themes/twentythirteen/search.php deleted file mode 100644 index 1519c13765..0000000000 --- a/wp-content/themes/twentythirteen/search.php +++ /dev/null @@ -1,36 +0,0 @@ - - -
    -
    - - - - - - - - - - - - - - - - -
    -
    - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/sidebar-main.php b/wp-content/themes/twentythirteen/sidebar-main.php deleted file mode 100644 index 3c700addda..0000000000 --- a/wp-content/themes/twentythirteen/sidebar-main.php +++ /dev/null @@ -1,18 +0,0 @@ - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/sidebar.php b/wp-content/themes/twentythirteen/sidebar.php deleted file mode 100644 index cb5cf98e9b..0000000000 --- a/wp-content/themes/twentythirteen/sidebar.php +++ /dev/null @@ -1,22 +0,0 @@ - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/single.php b/wp-content/themes/twentythirteen/single.php deleted file mode 100644 index 1694a0dcf2..0000000000 --- a/wp-content/themes/twentythirteen/single.php +++ /dev/null @@ -1,28 +0,0 @@ - - -
    -
    - - - - - - - - - - -
    -
    - - - \ No newline at end of file diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css deleted file mode 100644 index d547283d40..0000000000 --- a/wp-content/themes/twentythirteen/style.css +++ /dev/null @@ -1,3227 +0,0 @@ -/* -Theme Name: Twenty Thirteen -Theme URI: https://wordpress.org/themes/twentythirteen/ -Author: the WordPress team -Author URI: https://wordpress.org/ -Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small. -Version: 1.6 -License: GNU General Public License v2 or later -License URI: http://www.gnu.org/licenses/gpl-2.0.html -Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready, accessibility-ready -Text Domain: twentythirteen - -This theme, like WordPress, is licensed under the GPL. -Use it to make something cool, have fun, and share what you've learned with others. -*/ - - -/** - * Table of Contents: - * - * 1.0 - Reset - * 2.0 - Repeatable Patterns - * 3.0 - Basic Structure - * 4.0 - Header - * 4.1 - Site Header - * 4.2 - Navigation - * 5.0 - Content - * 5.1 - Entry Header - * 5.2 - Entry Meta - * 5.3 - Entry Content - * 5.4 - Galleries - * 5.5 - Post Formats - * 5.6 - Attachments - * 5.7 - Post/Paging Navigation - * 5.8 - Author Bio - * 5.9 - Archives - * 5.10 - Search Results/No posts - * 5.11 - 404 - * 5.12 - Comments - * 5.13 - Multisite - * 6.0 - Sidebar - * 6.1 - Widgets - * 7.0 - Footer - * 8.0 - Media Queries - * 9.0 - Print - * ---------------------------------------------------------------------------- - */ - - -/** - * 1.0 Reset - * - * Modified from Normalize.css to provide cross-browser consistency and a smart - * default styling of HTML elements. - * - * @see http://git.io/normalize - * ---------------------------------------------------------------------------- - */ - -* { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -article, -aside, -details, -figcaption, -figure, -footer, -header, -nav, -section, -summary { - display: block; -} - -audio, -canvas, -video { - display: inline-block; -} - -audio:not([controls]) { - display: none; - height: 0; -} - -[hidden] { - display: none; -} - -html { - font-size: 100%; - overflow-y: scroll; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} - -html, -button, -input, -select, -textarea { - font-family: "Source Sans Pro", Helvetica, sans-serif; -} - -body { - color: #141412; - line-height: 1.5; - margin: 0; -} - -a { - color: #ca3c08; - text-decoration: none; -} - -a:visited { - color: #ac0404; -} - -a:focus { - outline: thin dotted; -} - -a:active, -a:hover { - color: #ea9629; - outline: 0; -} - -a:hover { - text-decoration: underline; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - clear: both; - font-family: Bitter, Georgia, serif; - line-height: 1.3; -} - -h1 { - font-size: 48px; - margin: 33px 0; -} - -h2 { - font-size: 30px; - margin: 25px 0; -} - -h3 { - font-size: 22px; - margin: 22px 0; -} - -h4 { - font-size: 20px; - margin: 25px 0; -} - -h5 { - font-size: 18px; - margin: 30px 0; -} - -h6 { - font-size: 16px; - margin: 36px 0; -} - -address { - font-style: italic; - margin: 0 0 24px; -} - -abbr[title] { - border-bottom: 1px dotted; -} - -b, -strong { - font-weight: bold; -} - -dfn { - font-style: italic; -} - -mark { - background: #ff0; - color: #000; -} - -p { - margin: 0 0 24px; -} - -code, -kbd, -pre, -samp { - font-family: monospace, serif; - font-size: 14px; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; -} - -pre { - background: #f5f5f5; - color: #666; - font-family: monospace; - font-size: 14px; - margin: 20px 0; - overflow: auto; - padding: 20px; - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} - -blockquote, -q { - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; - quotes: none; -} - -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ""; - content: none; -} - -blockquote { - font-size: 18px; - font-style: italic; - font-weight: 300; - margin: 24px 40px; -} - -blockquote blockquote { - margin-right: 0; -} - -blockquote cite, -blockquote small { - font-size: 14px; - font-weight: normal; - text-transform: uppercase; -} - -blockquote em, -blockquote i { - font-style: normal; - font-weight: 300; -} - -blockquote strong, -blockquote b { - font-weight: 400; -} - -small { - font-size: smaller; -} - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -dl { - margin: 0 20px; -} - -dt { - font-weight: bold; -} - -dd { - margin: 0 0 20px; -} - -menu, -ol, -ul { - margin: 16px 0; - padding: 0 0 0 40px; -} - -ul { - list-style-type: square; -} - -nav ul, -nav ol { - list-style: none; - list-style-image: none; -} - -li > ul, -li > ol { - margin: 0; -} - -img { - -ms-interpolation-mode: bicubic; - border: 0; - vertical-align: middle; -} - -svg:not(:root) { - overflow: hidden; -} - -figure { - margin: 0; -} - -form { - margin: 0; -} - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -legend { - border: 0; - padding: 0; - white-space: normal; -} - -button, -input, -select, -textarea { - font-size: 100%; - margin: 0; - max-width: 100%; - vertical-align: baseline; -} - -button, -input { - line-height: normal; -} - -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; - cursor: pointer; -} - -button[disabled], -input[disabled] { - cursor: default; -} - -input[type="checkbox"], -input[type="radio"] { - padding: 0; -} - -input[type="search"] { - -webkit-appearance: textfield; - padding-right: 2px; /* Don't cut off the webkit search cancel button */ - width: 270px; -} - -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} - -textarea { - overflow: auto; - vertical-align: top; -} - -table { - border-bottom: 1px solid #ededed; - border-collapse: collapse; - border-spacing: 0; - font-size: 14px; - line-height: 2; - margin: 0 0 20px; - width: 100%; -} - -caption, -th, -td { - font-weight: normal; - text-align: left; -} - -caption { - font-size: 16px; - margin: 20px 0; -} - -th { - font-weight: bold; - text-transform: uppercase; -} - -td { - border-top: 1px solid #ededed; - padding: 6px 10px 6px 0; -} - -del { - color: #333; -} - -ins { - background: #fff9c0; - text-decoration: none; -} - -hr { - background: url(images/dotted-line.png) repeat center top; - background-size: 4px 4px; - border: 0; - height: 1px; - margin: 0 0 24px; -} - - -/** - * 2.0 Repeatable Patterns - * ---------------------------------------------------------------------------- - */ - -.genericon:before, -.menu-toggle:after, -.featured-post:before, -.date a:before, -.entry-meta .author a:before, -.format-audio .entry-content:before, -.comments-link a:before, -.tags-links a:first-child:before, -.categories-links a:first-child:before, -.edit-link a:before, -.attachment .entry-title:before, -.attachment-meta:before, -.attachment-meta a:before, -.comment-awaiting-moderation:before, -.comment-reply-link:before, -.comment-reply-login:before, -.comment-reply-title small a:before, -.bypostauthor > .comment-body .fn:before, -.error404 .page-title:before { - -webkit-font-smoothing: antialiased; - display: inline-block; - font: normal 16px/1 Genericons; - vertical-align: text-bottom; -} - -/* Clearing floats */ -.clear:after, -.attachment .entry-header:after, -.site-footer .widget-area:after, -.entry-content:after, -.page-content:after, -.navigation:after, -.nav-links:after, -.gallery:after, -.comment-form-author:after, -.comment-form-email:after, -.comment-form-url:after, -.comment-body:after { - clear: both; -} - -.clear:before, -.clear:after, -.attachment .entry-header:before, -.attachment .entry-header:after, -.site-footer .widget-area:before, -.site-footer .widget-area:after, -.entry-content:before, -.entry-content:after, -.page-content:before, -.page-content:after, -.navigation:before, -.navigation:after, -.nav-links:before, -.nav-links:after, -.gallery:before, -.gallery:after, -.comment-form-author:before, -.comment-form-author:after, -.comment-form-email:before, -.comment-form-email:after, -.comment-form-url:before, -.comment-form-url:after, -.comment-body:before, -.comment-body:after { - content: ""; - display: table; -} - -/* Assistive text */ -.screen-reader-text { - clip: rect(1px, 1px, 1px, 1px); - overflow: hidden; - position: absolute !important; - height: 1px; - width: 1px; -} - -.screen-reader-text:focus { - background-color: #f1f1f1; - border-radius: 3px; - box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); - clip: auto !important; - color: #21759b; - display: block; - font-size: 14px; - font-weight: bold; - height: auto; - line-height: normal; - padding: 15px 23px 14px; - position: absolute; - left: 5px; - top: 5px; - text-decoration: none; - width: auto; - z-index: 100000; /* Above WP toolbar */ -} - -/* Form fields, general styles first. */ -button, -input, -textarea { - border: 2px solid #d4d0ba; - font-family: inherit; - padding: 5px; -} - -input, -textarea { - color: #141412; -} - -input:focus, -textarea:focus { - border: 2px solid #c3c0ab; - outline: 0; -} - -/* Buttons */ -button, -input[type="submit"], -input[type="button"], -input[type="reset"] { - background: #e05d22; /* Old browsers */ - background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */ - background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */ - border: none; - border-bottom: 3px solid #b93207; - border-radius: 2px; - color: #fff; - display: inline-block; - padding: 11px 24px 10px; - text-decoration: none; -} - -button:hover, -button:focus, -input[type="submit"]:hover, -input[type="button"]:hover, -input[type="reset"]:hover, -input[type="submit"]:focus, -input[type="button"]:focus, -input[type="reset"]:focus { - background: #ed6a31; /* Old browsers */ - background: -webkit-linear-gradient(top, #ed6a31 0%, #e55627 100%); /* Chrome 10+, Safari 5.1+ */ - background: linear-gradient(to bottom, #ed6a31 0%, #e55627 100%); /* W3C */ - outline: none; -} - -button:active, -input[type="submit"]:active, -input[type="button"]:active, -input[type="reset"]:active { - background: #d94412; /* Old browsers */ - background: -webkit-linear-gradient(top, #d94412 0%, #e05d22 100%); /* Chrome 10+, Safari 5.1+ */ - background: linear-gradient(to bottom, #d94412 0%, #e05d22 100%); /* W3C */ - border: none; - border-top: 3px solid #b93207; - padding: 10px 24px 11px; -} - -.post-password-required input[type="submit"] { - padding: 7px 24px 4px; - vertical-align: bottom; -} - -.post-password-required input[type="submit"]:active { - padding: 5px 24px 6px; -} - -/* Placeholder text color -- selectors need to be separate to work. */ -::-webkit-input-placeholder { - color: #7d7b6d; -} - -:-moz-placeholder { - color: #7d7b6d; -} - -::-moz-placeholder { - color: #7d7b6d; -} - -:-ms-input-placeholder { - color: #7d7b6d; -} - -/* - * Responsive images - * - * Fluid images for posts, comments, and widgets - */ -.entry-content img, -.entry-summary img, -.comment-content img, -.widget img, -.wp-caption { - max-width: 100%; -} - -/* Make sure images with WordPress-added height and width attributes are scaled correctly. */ -.entry-content img, -.entry-summary img, -.comment-content img[height], -img[class*="align"], -img[class*="wp-image-"], -img[class*="attachment-"] { - height: auto; -} - -img.size-full, -img.size-large, -img.wp-post-image { - height: auto; - max-width: 100%; -} - -/* Make sure videos and embeds fit their containers. */ -embed, -iframe, -object, -video { - max-width: 100%; -} - -/* Override the Twitter embed fixed width. */ -.entry-content .twitter-tweet-rendered { - max-width: 100% !important; -} - -/* Images */ -.alignleft { - float: left; -} - -.alignright { - float: right; -} - -.aligncenter { - display: block; - margin-left: auto; - margin-right: auto; -} - -figure.wp-caption.alignleft, -img.alignleft { - margin: 5px 20px 5px 0; -} - -.wp-caption.alignleft { - margin: 5px 10px 5px 0; -} - -figure.wp-caption.alignright, -img.alignright { - margin: 5px 0 5px 20px; -} - -.wp-caption.alignright { - margin: 5px 0 5px 10px; -} - -img.aligncenter { - margin: 5px auto; -} - -img.alignnone { - margin: 5px 0; -} - -.wp-caption .wp-caption-text, -.entry-caption, -.gallery-caption { - color: #220e10; - font-size: 18px; - font-style: italic; - font-weight: 300; - margin: 0 0 24px; -} - -div.wp-caption.alignright img[class*="wp-image-"] { - float: right; -} - -div.wp-caption.alignright .wp-caption-text { - padding-left: 10px; -} - -img.wp-smiley, -.rsswidget img { - border: 0; - border-radius: 0; - box-shadow: none; - margin-bottom: 0; - margin-top: 0; - padding: 0; -} - -.wp-caption.alignleft + ul, -.wp-caption.alignleft + ol { - list-style-position: inside; -} - - -/** - * 3.0 Basic Structure - * ---------------------------------------------------------------------------- - */ - -.site { - background-color: #fff; - border-left: 1px solid #f2f2f2; - border-right: 1px solid #f2f2f2; - margin: 0 auto; - max-width: 1600px; - width: 100%; -} - -.site-main { - position: relative; -} - -.site-main .sidebar-container { - height: 0; - position: absolute; - top: 40px; - width: 100%; - z-index: 1; -} - -.site-main .sidebar-inner { - margin: 0 auto; - max-width: 1040px; -} - - -/** - * 4.0 Header - * ---------------------------------------------------------------------------- - */ - -/** - * 4.1 Site Header - * ---------------------------------------------------------------------------- - */ - -.site-header { - position: relative; -} - -.site-header .home-link { - color: #141412; - display: block; - margin: 0 auto; - max-width: 1080px; - min-height: 230px; - padding: 0 20px; - text-decoration: none; - width: 100%; -} - -.site-header .site-title:hover { - text-decoration: underline; -} - -.site-title { - font-size: 60px; - font-weight: bold; - line-height: 1; - margin: 0; - padding: 58px 0 10px; -} - -.site-description { - font: 300 italic 24px "Source Sans Pro", Helvetica, sans-serif; - margin: 0; -} - - -/** - * 4.2 Navigation - * ---------------------------------------------------------------------------- - */ - -.main-navigation { - clear: both; - margin: 0 auto; - max-width: 1080px; - min-height: 45px; - position: relative; -} - -ul.nav-menu, -div.nav-menu > ul { - margin: 0; - padding: 0 40px 0 0; -} - -.nav-menu li { - display: inline-block; - position: relative; -} - -.nav-menu li a { - color: #141412; - display: block; - font-size: 15px; - line-height: 1; - padding: 15px 20px; - text-decoration: none; -} - -.nav-menu li:hover > a, -.nav-menu li a:hover, -.nav-menu li:focus > a, -.nav-menu li a:focus { - background-color: #220e10; - color: #fff; -} - -.nav-menu .sub-menu, -.nav-menu .children { - background-color: #220e10; - border: 2px solid #f7f5e7; - border-top: 0; - padding: 0; - position: absolute; - left: -2px; - z-index: 99999; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(1px, 1px, 1px, 1px); -} - -.nav-menu .sub-menu ul, -.nav-menu .children ul { - border-left: 0; - left: 100%; - top: 0; -} - -ul.nav-menu ul a, -.nav-menu ul ul a { - color: #fff; - margin: 0; - width: 200px; -} - -ul.nav-menu ul a:hover, -.nav-menu ul ul a:hover, -ul.nav-menu ul a:focus, -.nav-menu ul ul a:focus { - background-color: #db572f; -} - -ul.nav-menu li:hover > ul, -.nav-menu ul li:hover > ul, -ul.nav-menu .focus > ul, -.nav-menu .focus > ul { - clip: inherit; - overflow: inherit; - height: inherit; - width: inherit; -} - -.nav-menu .current_page_item > a, -.nav-menu .current_page_ancestor > a, -.nav-menu .current-menu-item > a, -.nav-menu .current-menu-ancestor > a { - color: #bc360a; - font-style: italic; -} - -.menu-toggle { - display: none; -} - -/* Navbar */ -.navbar { - background-color: #f7f5e7; - margin: 0 auto; - max-width: 1600px; - width: 100%; -} - -.site-header .search-form { - position: absolute; - right: 20px; - top: 1px; -} - -.site-header .search-field { - background-color: transparent; - background-image: url(images/search-icon.png); - background-position: 5px center; - background-repeat: no-repeat; - background-size: 24px 24px; - border: none; - cursor: pointer; - height: 37px; - margin: 3px 0; - padding: 0 0 0 34px; - position: relative; - -webkit-transition: width 400ms ease, background 400ms ease; - transition: width 400ms ease, background 400ms ease; - width: 1px; -} - -.site-header .search-field:focus { - background-color: #fff; - border: 2px solid #c3c0ab; - cursor: text; - outline: 0; - width: 230px; -} - - -/** - * 5.0 Content - * ---------------------------------------------------------------------------- - */ - -.hentry { - padding: 40px 0; -} - -.entry-header, -.entry-content, -.entry-summary, -.entry-meta { - margin: 0 auto; - max-width: 604px; - width: 100%; -} - -.sidebar .entry-header, -.sidebar .entry-content, -.sidebar .entry-summary, -.sidebar .entry-meta { - max-width: 1040px; - padding: 0 376px 0 60px; -} - - -/** - * 5.1 Entry Header - * ---------------------------------------------------------------------------- - */ - -.sidebar .entry-header .entry-meta { - padding: 0; -} - -.entry-thumbnail img { - display: block; - margin: 0 auto 10px; -} - -.entry-header { - margin-bottom: 30px; -} - -.entry-title { - font-weight: normal; - margin: 0 0 5px; -} - -.entry-title a { - color: #141412; -} - -.entry-title a:hover { - color: #ea9629; -} - - -/** - * 5.2 Entry Meta - * ---------------------------------------------------------------------------- - */ - -.entry-meta { - clear: both; - font-size: 14px; -} - -.entry-meta a { - color: #bc360a; -} - -.entry-meta a:hover { - color: #bc360a; -} - -.entry-meta > span { - margin-right: 20px; -} - -.entry-meta > span:last-child { - margin-right: 0; -} - -.featured-post:before { - content: "\f308"; - margin-right: 2px; -} - -.entry-meta .date a:before { - content: "\f303"; -} - -.comments-link a:before { - content: "\f300"; - margin-right: 2px; - position: relative; - top: -1px; -} - -.entry-meta .author a:before { - content: "\f304"; - position: relative; - top: -1px; -} - -.categories-links a:first-child:before { - content: "\f301"; -} - -.tags-links a:first-child:before { - content: "\f302"; - position: relative; - top: -1px; -} - -.edit-link a:before { - content: "\f411"; - position: relative; - top: -1px; -} - -.single-author .entry-meta .author, -.sticky.format-standard .entry-meta .date, -.sticky.format-audio .entry-meta .date, -.sticky.format-chat .entry-meta .date, -.sticky.format-image .entry-meta .date, -.sticky.format-gallery .entry-meta .date { - display: none; -} - - -/** - * 5.3 Entry Content - * ---------------------------------------------------------------------------- - */ - -.entry-content { - -webkit-hyphens: auto; - -moz-hyphens: auto; - -ms-hyphens: auto; - hyphens: auto; - word-wrap: break-word; -} - -.entry-content a, -.comment-content a { - color: #bc360a; -} - -.entry-content a:hover, -.comment-content a:hover { - color: #ea9629; -} - -.entry-content .more-link { - white-space: nowrap; -} - -.entry-content blockquote { - font-size: 24px; -} - -.entry-content blockquote cite, -.entry-content blockquote small { - font-size: 16px; -} - -.entry-content img.alignleft, -.entry-content .wp-caption.alignleft { - margin-left: -60px; -} - -.entry-content img.alignright, -.entry-content .wp-caption.alignright { - margin-right: -60px; -} - -footer.entry-meta { - margin-top: 24px; -} - -.format-standard footer.entry-meta { - margin-top: 0; -} - -/* Page links */ -.page-links { - clear: both; - font-size: 16px; - font-style: italic; - font-weight: normal; - line-height: 2.2; - margin: 20px 0; - text-transform: uppercase; -} - -.page-links a, -.page-links > span { - background: #fff; - border: 1px solid #fff; - padding: 5px 10px; - text-decoration: none; -} - -.format-status .entry-content .page-links a, -.format-gallery .entry-content .page-links a, -.format-chat .entry-content .page-links a, -.format-quote .entry-content .page-links a, -.page-links a { - background: #e63f2a; - border: 1px solid #e63f2a; - color: #fff; -} - -.format-gallery .entry-content .page-links a:hover, -.format-audio .entry-content .page-links a:hover, -.format-status .entry-content .page-links a:hover, -.format-video .entry-content .page-links a:hover, -.format-chat .entry-content .page-links a:hover, -.format-quote .entry-content .page-links a:hover, -.page-links a:hover { - background: #fff; - color: #e63f2a; -} - -.format-status .entry-content .page-links > span, -.format-quote .entry-content .page-links > span { - background: none; -} - -.page-links .page-links-title { - background: transparent; - border: none; - margin-right: 20px; - padding: 0; -} - -/* Mediaelements */ -.hentry .mejs-mediaelement, -.hentry .mejs-container .mejs-controls { - background: #220e10; -} - -.hentry .mejs-controls .mejs-time-rail .mejs-time-loaded, -.hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { - background: #fff; -} - -.hentry .mejs-controls .mejs-time-rail .mejs-time-current { - background: #ea9629; -} - -.hentry .mejs-controls .mejs-time-rail .mejs-time-total, -.hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total { - background: #595959; -} - -.hentry .mejs-controls .mejs-time-rail span, -.hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total, -.hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { - border-radius: 0; -} - - -/** - * 5.4 Galleries - * ---------------------------------------------------------------------------- - */ - -.gallery { - margin-bottom: 20px; - margin-left: -4px; -} - -.gallery-item { - float: left; - margin: 0 4px 4px 0; - overflow: hidden; - position: relative; -} - -.gallery-columns-1.gallery-size-medium, -.gallery-columns-1.gallery-size-thumbnail, -.gallery-columns-2.gallery-size-thumbnail, -.gallery-columns-3.gallery-size-thumbnail { - display: table; - margin: 0 auto 20px; -} - -.gallery-columns-1 .gallery-item, -.gallery-columns-2 .gallery-item, -.gallery-columns-3 .gallery-item { - text-align: center; -} - -.gallery-columns-4 .gallery-item { - max-width: 23%; - max-width: -webkit-calc(25% - 4px); - max-width: calc(25% - 4px); -} - -.gallery-columns-5 .gallery-item { - max-width: 19%; - max-width: -webkit-calc(20% - 4px); - max-width: calc(20% - 4px); -} - -.gallery-columns-6 .gallery-item { - max-width: 15%; - max-width: -webkit-calc(16.7% - 4px); - max-width: calc(16.7% - 4px); -} - -.gallery-columns-7 .gallery-item { - max-width: 13%; - max-width: -webkit-calc(14.28% - 4px); - max-width: calc(14.28% - 4px); -} - -.gallery-columns-8 .gallery-item { - max-width: 11%; - max-width: -webkit-calc(12.5% - 4px); - max-width: calc(12.5% - 4px); -} - -.gallery-columns-9 .gallery-item { - max-width: 9%; - max-width: -webkit-calc(11.1% - 4px); - max-width: calc(11.1% - 4px); -} - -.gallery-columns-1 .gallery-item:nth-of-type(1n), -.gallery-columns-2 .gallery-item:nth-of-type(2n), -.gallery-columns-3 .gallery-item:nth-of-type(3n), -.gallery-columns-4 .gallery-item:nth-of-type(4n), -.gallery-columns-5 .gallery-item:nth-of-type(5n), -.gallery-columns-6 .gallery-item:nth-of-type(6n), -.gallery-columns-7 .gallery-item:nth-of-type(7n), -.gallery-columns-8 .gallery-item:nth-of-type(8n), -.gallery-columns-9 .gallery-item:nth-of-type(9n) { - margin-right: 0; -} - -.gallery-columns-1.gallery-size-medium figure.gallery-item:nth-of-type(1n+1), -.gallery-columns-1.gallery-size-thumbnail figure.gallery-item:nth-of-type(1n+1), -.gallery-columns-2.gallery-size-thumbnail figure.gallery-item:nth-of-type(2n+1), -.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1) { - clear: left; -} - -.gallery-caption { - background-color: rgba(0, 0, 0, 0.7); - box-sizing: border-box; - color: #fff; - font-size: 14px; - line-height: 1.3; - margin: 0; - max-height: 50%; - opacity: 0; - padding: 2px 8px; - position: absolute; - bottom: 0; - left: 0; - text-align: left; - -webkit-transition: opacity 400ms ease; - transition: opacity 400ms ease; - width: 100%; -} - -.gallery-caption:before { - box-shadow: 0 -10px 15px #000 inset; - content: ""; - height: 100%; - min-height: 49px; - position: absolute; - left: 0; - top: 0; - width: 100%; -} - -.gallery-item:hover .gallery-caption { - opacity: 1; -} - -.gallery-columns-7 .gallery-caption, -.gallery-columns-8 .gallery-caption, -.gallery-columns-9 .gallery-caption { - display: none; -} - - -/** - * 5.5 Post Formats - * ---------------------------------------------------------------------------- - */ - -/* Aside */ -.format-aside { - background-color: #f7f5e7; -} - -.blog .format-aside:first-of-type, -.single .format-aside:first-of-type, -.format-aside + .format-aside, -.format-aside + .format-link, -.format-link + .format-aside { - box-shadow: inset 0 2px 2px rgba(173, 165, 105, 0.2); -} - -.format-aside .entry-meta { - margin-top: 0; -} - -.format-aside blockquote { - font-size: 100%; - font-weight: normal; -} - -.format-aside cite { - font-size: 100%; - text-transform: none; -} - -.format-aside cite:before { - content: "\2014"; - margin-right: 5px; -} - -/* Audio */ -.format-audio { - background-color: #db572f; -} - -.format-audio .entry-title { - font-size: 28px; - font-weight: bold; -} - -.format-audio .entry-content:before { - content: "\f109"; - float: left; - font-size: 64px; - position: relative; - top: 4px; -} - -.format-audio .entry-content a, -.format-audio .entry-meta a, -.format-audio .entry-content a:hover, -.format-audio .entry-meta a:hover { - color: #fbfaf3; -} - -.format-audio .audio-content { - background: url(images/dotted-line.png) repeat-y left top; - background-size: 4px 4px; - float: right; - padding-left: 35px; - width: 80%; - width: -webkit-calc(100% - 85px); - width: calc(100% - 85px); -} - -.format-audio .wp-audio-shortcode { - height: 30px !important; /* Override mediaelement.js style */ - margin: 20px 0; - max-width: 400px !important; /* Override mediaelement.js style */ -} - -.format-audio audio { - max-width: 100% !important; /* Avoid player width overflow. */ -} - -/* Chat */ -.format-chat { - background-color: #eadaa6; -} - -.format-chat .entry-title { - font-size: 28px; - font-weight: bold; -} - -.format-chat .entry-meta a, -.format-chat .entry-content a { - color: #722d19; -} - -.format-chat .entry-meta .date a:before { - content: "\f108"; - margin-right: 2px; -} - -.format-chat .entry-meta .author { - display: none; -} - -.format-chat .chat { - margin: 0; -} - -.format-chat .chat .chat-timestamp { - color: #722d19; - float: right; - font-size: 12px; - font-weight: normal; - margin: 5px 10px 0; -} - -.format-chat .chat .fn { - font-style: normal; -} - -/* Gallery */ -.format-gallery { - background-color: #fbca3c; -} - -.format-gallery .entry-header { - margin-bottom: 15px; -} - -.format-gallery .entry-title { - font-size: 50px; - font-weight: 400; - margin: 0; -} - -.format-gallery .entry-meta a, -.format-gallery .entry-content a { - color: #722d19; -} - -/* Image */ -.format-image .entry-title { - font-size: 28px; - font-weight: bold; -} - -.format-image .categories-links, -.format-image .tags-links { - display: none; -} - -/* Link */ -.format-link { - background-color: #f7f5e7; -} - -.blog .format-link:first-of-type, -.single .format-link:first-of-type { - box-shadow: inset 0 2px 2px rgba(173, 165, 105, 0.2); -} - -.format-link .entry-header, -.format-link .entry-content p:last-child { - margin-bottom: 0; -} - -.format-link .entry-title { - color: #ca3c08; - display: inline; - font: 300 italic 20px "Source Sans Pro", Helvetica, sans-serif; - margin-right: 20px; -} - -.format-link .entry-title a { - color: #bc360a; -} - -.format-link div.entry-meta { - display: inline; -} - -/* Standard */ -.format-standard .wp-video, -.format-standard .wp-audio-shortcode, -.format-audio .wp-audio-shortcode, -.format-standard .video-player { - margin-bottom: 24px; -} - -/* Quote */ -.format-quote { - background-color: #210d10; -} - -.format-quote .entry-content, -.format-quote .entry-meta { - color: #f7f5e7; -} - -.format-quote .entry-content blockquote { - font-size: 28px; - margin: 0; -} - -.format-quote .entry-content a, -.format-quote .entry-meta a, -.format-quote .linked { - color: #e63f2a; -} - -.format-quote .entry-content cite a { - border-bottom: 1px dotted #fff; - color: #fff; -} - -.format-quote .entry-content cite a:hover { - text-decoration: none; -} - -.format-quote blockquote small, -.format-quote blockquote cite { - display: block; - font-size: 16px; -} - -.format-quote blockquote { - font-style: italic; - font-weight: 300; - padding-left: 75px; - position: relative; -} - -.format-quote blockquote:before { - content: '\201C'; - font-size: 140px; - font-weight: 400; - line-height: .8; - padding-right: 25px; - position: absolute; - left: -15px; - top: -3px; -} - -.format-quote .entry-meta .author { - display: none; -} - -/* Status */ -.format-status { - background-color: #722d19; - padding: 0; -} - -.format-status .entry-content, -.format-status .entry-meta { - padding-left: 35px; - position: relative; -} - -.format-status .entry-content a { - color: #eadaa6; -} - -.format-status .entry-meta a { - color: #f7f5e7; -} - -.sidebar .format-status .entry-content, -.sidebar .format-status .entry-meta { - padding-left: 95px; -} - -.format-status .entry-content:before, -.format-status .entry-meta:before { - background: url(images/dotted-line.png) repeat-y left bottom; - background-size: 4px 4px; - content: ""; - display: block; - height: 100%; - position: absolute; - left: 10px; - top: 0; - width: 1px; -} - -.sidebar .format-status .entry-content:before, -.sidebar .format-status .entry-meta:before { - left: 70px; -} - -.format-status .categories-links, -.format-status .tags-links { - display: none; -} - -/* Ensures the dots in the dot background are in lockstep. */ -.format-status .entry-meta:before { - background-position: left top; -} - -.format-status .entry-content { - color: #f7f5e7; - font-size: 24px; - font-style: italic; - font-weight: 300; - padding-bottom: 30px; - padding-top: 40px; - position: relative; -} - -.format-status .entry-content p:first-child:before { - background-color: rgba(0, 0, 0, 0.65); - content: ""; - height: 3px; - margin-top: 13px; - position: absolute; - left: 4px; - width: 13px; -} - -.sidebar .format-status .entry-content > p:first-child:before { - left: 64px; -} - -.format-status .entry-content p:last-child { - margin-bottom: 0; -} - -.format-status .entry-meta { - margin-top: 0; - padding-bottom: 40px; -} - -.format-status .entry-meta .date a:before { - content: "\f105"; -} - -/* Video */ -.format-video { - background-color: #db572f; -} - -.format-video .entry-content a, -.format-video .entry-meta a, -.format-video .entry-content a:hover, -.format-video .entry-meta a:hover { - color: #fbfaf3; -} - -.format-video .entry-title { - font-size: 50px; - font-weight: 400; -} - -.format-video .entry-meta { - color: #220e10; -} - - -/** - * 5.6 Attachments - * ---------------------------------------------------------------------------- - */ - -.attachment .hentry { - background-color: #e8e5ce; - margin: 0; - padding: 0; -} - -.attachment .entry-header { - margin-bottom: 0; - max-width: 1040px; - padding: 30px 0; -} - -.attachment .entry-title { - display: inline-block; - float: left; - font: 300 italic 30px "Source Sans Pro", Helvetica, sans-serif; - margin: 0; -} - -.attachment .entry-title:before { - content: "\f416"; - font-size: 32px; - margin-right: 10px; -} - -.attachment .entry-meta { - clear: none; - color: inherit; - float: right; - max-width: 604px; - padding: 9px 0 0; - text-align: right; -} - -.hentry.attachment:not(.image-attachment) .entry-meta { - max-width: 104px; -} - -.attachment footer.entry-meta { - display: none; -} - -.attachment-meta:before { - content: "\f307"; -} - -.full-size-link a:before { - content: "\f402"; -} - -.full-size-link:before { - content: none; -} - -.attachment .entry-meta a, -.attachment .entry-meta .edit-link:before, -.attachment .full-size-link:before { - color: #ca3c08; -} - -.attachment .entry-content { - background-color: #fff; - max-width: 100%; - padding: 40px 0; -} - -.image-navigation { - margin: 0 auto; - max-width: 1040px; - position: relative; -} - -.image-navigation a:hover { - text-decoration: none; -} - -.image-navigation .nav-previous, -.image-navigation .nav-next { - position: absolute; - top: 50px; -} - -.image-navigation .nav-previous { - left: 0; -} - -.image-navigation .nav-next { - right: 0; -} - -.image-navigation .meta-nav { - font-size: 32px; - font-weight: 300; - vertical-align: -4px; -} - -.attachment .entry-attachment, -.attachment .type-attachment p { - margin: 0 auto; - max-width: 724px; - text-align: center; -} - -.attachment .entry-attachment .attachment { - display: inline-block; -} - -.attachment .entry-caption { - text-align: left; -} - -.attachment .entry-description { - margin: 20px auto 0; - max-width: 604px; -} - -.attachment .entry-caption p:last-child, -.attachment .entry-description p:last-child { - margin: 0; -} - -.attachment .site-main .sidebar-container { - display: none; -} - -.attachment .entry-content .mejs-audio { - max-width: 400px; - margin: 0 auto; -} - -.attachment .entry-content .wp-video { - margin: 0 auto; -} - -.attachment .entry-content .mejs-container { - margin-bottom: 24px; -} - -/** - * 5.7 Post/Paging Navigation - * ---------------------------------------------------------------------------- - */ - -.navigation .nav-previous { - float: left; -} - -.navigation .nav-next { - float: right; -} - -.navigation a { - color: #bc360a; -} - -.navigation a:hover { - color: #ea9629; - text-decoration: none; -} - -.paging-navigation { - background-color: #e8e5ce; - padding: 40px 0; -} - -.paging-navigation .nav-links { - margin: 0 auto; - max-width: 604px; - width: 100%; -} - -.sidebar .paging-navigation .nav-links { - max-width: 1040px; - padding: 0 376px 0 60px; -} - -.paging-navigation .nav-next { - padding: 13px 0; -} - -.paging-navigation a { - font-size: 22px; - font-style: italic; - font-weight: 300; -} - -.paging-navigation .meta-nav { - background-color: #e63f2a; - border-radius: 50%; - color: #fff; - display: inline-block; - font-size: 26px; - padding: 3px 0 8px; - text-align: center; - width: 50px; -} - -.paging-navigation .nav-previous .meta-nav { - margin-right: 10px; - padding: 17px 0 23px; - width: 80px; -} - -.paging-navigation .nav-next .meta-nav { - margin-left: 10px; -} - -.paging-navigation a:hover .meta-nav { - background-color: #ea9629; - text-decoration: none; -} - -.post-navigation { - background-color: #fff; - color: #ca3c08; - font-size: 20px; - font-style: italic; - font-weight: 300; - padding: 20px 0; -} - -.post-navigation .nav-links { - margin: 0 auto; - max-width: 1040px; -} - -.sidebar .post-navigation .nav-links { - padding: 0 376px 0 60px; -} - -.post-navigation a[rel="next"] { - float: right; - text-align: right; -} - - -/** - * 5.8 Author Bio - * ---------------------------------------------------------------------------- - */ - -.author-info { - margin: 0 auto; - max-width: 604px; - padding: 30px 0 10px; - text-align: left; /* gallery & video post formats */ - width: 100%; -} - -.author.sidebar .author-info { - max-width: 1040px; - padding: 30px 376px 10px 60px; -} - -.single .author-info { - padding: 50px 0 0; -} - -.author-avatar .avatar { - float: left; - margin: 0 30px 30px 0; -} - -.single-format-status .author-description { - color: #f7f5e7; -} - -.author-description .author-title { - clear: none; - font: 300 italic 20px "Source Sans Pro", Helvetica, sans-serif; - margin: 0 0 8px; -} - -.author-link { - color: #ca3c08; - margin-left: 2px; -} - -.author.archive .author-link { - display: none; -} - - -/** - * 5.9 Archives - * ---------------------------------------------------------------------------- - */ - -.archive-header { - background-color: #e8e5ce; -} - -.archive-title, -.archive-meta { - font: 300 italic 30px "Source Sans Pro", Helvetica, sans-serif; - margin: 0 auto; - max-width: 1040px; - padding: 30px 0; - width: 100%; -} - -.archive-meta { - font-size: 16px; - font-style: normal; - font-weight: normal; - margin-top: -15px; - padding: 0 0 11px; -} - -.sidebar .archive-meta { - padding-right: 316px; -} - - -/** - * 5.10 Search Results/No posts - * ---------------------------------------------------------------------------- - */ - -.page-header { - background-color: #e8e5ce; -} - -.page-title { - font: 300 italic 30px "Source Sans Pro", Helvetica, sans-serif; - margin: 0 auto; - max-width: 1040px; - padding: 30px 0; - width: 100%; -} - -.page-content { - margin: 0 auto; - max-width: 604px; - padding: 40px 0; - width: 100%; -} - -.sidebar .page-content { - margin: 0 auto; - max-width: 1040px; - padding: 40px 376px 40px 60px; -} - - -/** - * 5.11 404 - * ---------------------------------------------------------------------------- - */ - -.error404 .page-header { - background-color: #fff; -} - -.error404 .page-title { - line-height: 0.6; - margin: 0; - padding: 300px; - position: relative; - text-align: center; - width: auto; -} - -.error404 .page-title:before { - color: #e8e5ce; - content: "\f423"; - font-size: 964px; - line-height: 0.6; - overflow: hidden; - position: absolute; - left: 7px; - top: 28px; -} - -.error404 .page-wrapper { - background-color: #e8e5ce; -} - -.error404 .page-header, -.error404 .page-content { - margin: 0 auto; - max-width: 1040px; - padding-bottom: 40px; - width: 100%; -} - - -/** - * 5.12 Comments - * ---------------------------------------------------------------------------- - */ - -.comments-title, -.comment-list, -.comment-reply-title, -.must-log-in, -.comment-respond .comment-form, -.comment-respond iframe { - display: block; - margin-left: auto; - margin-right: auto; - max-width: 604px; - width: 100%; -} - -.sidebar .comments-title, -.sidebar .comment-list, -.sidebar .must-log-in, -.sidebar .comment-reply-title, -.sidebar .comment-navigation, -.sidebar .comment-respond .comment-form { - max-width: 1040px; - padding-left: 60px; - padding-right: 376px; -} - -.comments-title { - font: 300 italic 28px "Source Sans Pro", Helvetica, sans-serif; -} - -.comment-list, -.comment-list .children { - list-style-type: none; - padding: 0; -} - -.comment-list .children { - margin-left: 20px; -} - -.comment-list > li:after, -.comment-list .children > li:before { - background: url(images/dotted-line.png) repeat left top; - background-size: 4px 4px; - content: ""; - display: block; - height: 1px; - width: 100%; -} - -.comment-list > li:last-child:after { - display: none; -} - -.comment-body { - padding: 24px 0; - position: relative; -} - -.comment-author { - float: left; - max-width: 74px; -} - -.comment-author .avatar { - display: block; - margin-bottom: 10px; -} - -.comment-author .fn { - word-wrap: break-word; -} - -.comment-author .fn, -.comment-author .url, -.comment-reply-link, -.comment-reply-login { - color: #bc360a; - font-size: 14px; - font-style: normal; - font-weight: normal; -} - -.says { - display: none; -} - -.no-avatars .comment-author { - margin: 0 0 5px; - max-width: 100%; - position: relative; -} - -.no-avatars .comment-metadata, -.no-avatars .comment-content, -.no-avatars .comment-list .reply { - width: 100%; -} - -.bypostauthor > .comment-body .fn:before { - content: "\f408"; - vertical-align: text-top; -} - -.comment-list .edit-link { - margin-left: 20px; -} - -.comment-metadata, -.comment-awaiting-moderation, -.comment-content, -.comment-list .reply { - float: right; - width: 79%; - width: -webkit-calc(100% - 124px); - width: calc(100% - 124px); - word-wrap: break-word; -} - -.comment-meta, -.comment-meta a { - color: #a2a2a2; - font-size: 13px; -} - -.comment-meta a:hover { - color: #ea9629; -} - -.comment-metadata { - margin-bottom: 20px; -} - -.ping-meta { - color: #a2a2a2; - font-size: 13px; - line-height: 2; -} - -.comment-awaiting-moderation { - color: #a2a2a2; -} - -.comment-awaiting-moderation:before { - content: "\f414"; - margin-right: 5px; - position: relative; - top: -2px; -} - -.comment-reply-link:before, -.comment-reply-login:before { - content: "\f412"; - margin-right: 3px; -} - -/* Comment form */ -.comment-respond { - background-color: #f7f5e7; - padding: 30px 0; -} - -.comment .comment-respond { - margin-bottom: 20px; - padding: 20px; -} - -.comment-reply-title { - font: 300 italic 28px "Source Sans Pro", Helvetica, sans-serif; -} - -.comment-reply-title small a { - color: #131310; - display: inline-block; - float: right; - height: 16px; - overflow: hidden; - width: 16px; -} - -.comment-reply-title small a:hover { - color: #ed331c; - text-decoration: none; -} - -.comment-reply-title small a:before { - content: "\f406"; - vertical-align: top; -} - -.sidebar .comment-list .comment-reply-title, -.sidebar .comment-list .comment-respond .comment-form { - padding: 0; -} - -.comment-form .comment-notes { - margin-bottom: 15px; -} - -.comment-form .comment-form-author, -.comment-form .comment-form-email, -.comment-form .comment-form-url { - margin-bottom: 8px; -} - -.comment-form [for="author"], -.comment-form [for="email"], -.comment-form [for="url"], -.comment-form [for="comment"] { - float: left; - padding: 5px 0; - width: 120px; -} - -.comment-form .required { - color: #ed331c; -} - -.comment-form input[type="text"], -.comment-form input[type="email"], -.comment-form input[type="url"] { - max-width: 270px; - width: 60%; -} - -.comment-form textarea { - width: 100%; -} - -.form-allowed-tags, -.form-allowed-tags code { - color: #686758; - font-size: 12px; -} - -.form-allowed-tags code { - font-size: 10px; - margin-left: 3px; -} - -.comment-list .pingback, -.comment-list .trackback { - padding-top: 24px; -} - -.comment-navigation { - font-size: 20px; - font-style: italic; - font-weight: 300; - margin: 0 auto; - max-width: 604px; - padding: 20px 0 30px; - width: 100%; -} - -.no-comments { - background-color: #f7f5e7; - font-size: 20px; - font-style: italic; - font-weight: 300; - margin: 0; - padding: 40px 0; - text-align: center; -} - -.sidebar .no-comments { - padding-left: 60px; - padding-right: 376px; -} - - -/** - * 5.13 Multisite - * ---------------------------------------------------------------------------- - */ - -.site-main .mu_register { - margin: 0 auto; - max-width: 604px; - width: 100%; -} - -.mu_alert { - margin-top: 25px; -} - -.site-main .mu_register input[type="submit"], -.site-main .mu_register #blog_title, -.site-main .mu_register #user_email, -.site-main .mu_register #blogname, -.site-main .mu_register #user_name { - font-size: inherit; - width: 270px; -} - -.site-main .mu_register input[type="submit"] { - width: auto; -} - - -/** - * 6.0 Sidebar - * ---------------------------------------------------------------------------- - */ - -.site-main .widget-area { - float: right; - width: 300px; -} - - -/** - * 6.1 Widgets - * ---------------------------------------------------------------------------- - */ - -.widget { - background-color: rgba(247, 245, 231, 0.7); - font-size: 14px; - -webkit-hyphens: auto; - -moz-hyphens: auto; - -ms-hyphens: auto; - hyphens: auto; - margin: 0 0 24px; - padding: 20px; - word-wrap: break-word; -} - -.widget .widget-title { - font: 300 italic 20px "Source Sans Pro", Helvetica, sans-serif; - margin: 0 0 10px; -} - -.widget ul, -.widget ol { - list-style-type: none; - margin: 0; - padding: 0; -} - -.widget li { - padding: 5px 0; -} - -.widget .children li:last-child { - padding-bottom: 0; -} - -.widget li > ul, -.widget li > ol { - margin-left: 20px; -} - -.widget a { - color: #bc360a; -} - -.widget a:hover { - color: #ea9629; -} - -/* Search widget */ -.search-form .search-submit { - display: none; -} - -/* RSS Widget */ -.widget_rss .rss-date { - display: block; -} - -.widget_rss .rss-date, -.widget_rss li > cite { - color: #a2a2a2; -} - -/* Calendar Widget */ -.widget_calendar table, -.widget_calendar td { - border: 0; - border-collapse: separate; - border-spacing: 1px; -} - -.widget_calendar caption { - font-size: 14px; - margin: 0; -} - -.widget_calendar th, -.widget_calendar td { - padding: 0; - text-align: center; -} - -.widget_calendar a { - display: block; -} - -.widget_calendar a:hover { - background-color: rgba(0, 0, 0, 0.15); -} - -.widget_calendar tbody td { - background-color: rgba(255, 255, 255, 0.5); -} - -.site-footer .widget_calendar tbody td { - background-color: rgba(255, 255, 255, 0.05); -} - -.widget_calendar tbody .pad, .site-footer .widget_calendar tbody .pad { - background-color: transparent; -} - - -/** - * 7.0 Footer - * ---------------------------------------------------------------------------- - */ - -.site-footer { - background-color: #e8e5ce; - color: #686758; - font-size: 14px; - text-align: center; -} - -.site-footer .widget-area, -.sidebar .site-footer { - text-align: left; -} - -.site-footer a { - color: #686758; -} - -.site-footer .sidebar-container { - background-color: #220e10; - padding: 20px 0; -} - -.site-footer .widget-area { - margin: 0 auto; - max-width: 1040px; - width: 100%; -} - -.sidebar .site-footer .widget-area { - max-width: 724px; - position: relative; - left: -158px; -} - -.site-footer .widget { - background: transparent; - color: #fff; - float: left; - margin-right: 20px; - width: 245px; -} - -.sidebar .site-footer .widget { - width: 228px; -} - -.sidebar .site-footer .widget:nth-of-type(4), -.sidebar .site-footer .widget:nth-of-type(3) { - margin-right: 0; -} - -.site-footer .widget a { - color: #e6402a; -} - -.site-footer .widget-title, -.site-footer .widget-title a, -.site-footer .wp-caption-text { - color: #fff; -} - -.site-info { - margin: 0 auto; - max-width: 1040px; - padding: 30px 0; - width: 100%; -} - -#wpstats { - display: block; - margin: -10px auto 0; -} - - -/** - * 8.0 Media Queries - * ---------------------------------------------------------------------------- - */ - -/* Does the same thing as , - * but in the future W3C standard way. -ms- prefix is required for IE10+ to - * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor - * the meta tag. See https://core.trac.wordpress.org/ticket/25888. - */ -@-ms-viewport { - width: device-width; -} -@viewport { - width: device-width; -} - -@media (max-width: 1599px) { - .site { - border: 0; - } -} - -@media (max-width: 1069px) { - .sidebar img.alignleft, - .sidebar .wp-caption.alignleft { - margin-left: 0; - } - - .sidebar img.alignright, - .sidebar .wp-caption.alignright { - margin-right: 0; - } - - .error404 .page-header { - margin-left: auto; - max-width: 604px; - width: 100%; - } - - .archive-header, - .search .page-header, - .archive .page-header, - .blog .page-header, - .error404 .page-content, - .search .page-content, - .archive .page-content, - .attachment .entry-header, - .attachment .entry-content, - .post-navigation .nav-links, - .sidebar .site-info, - .site-footer .widget-area { - padding-left: 20px; - padding-right: 20px; - } - - .error404 .page-title { - font-size: 24px; - padding: 180px; - } - - .error404 .page-title:before { - font-size: 554px; - } - - .attachment .image-navigation { - max-width: 724px; - } - - .image-navigation .nav-previous, - .image-navigation .nav-next { - position: static; - } - - .site-main .widget-area { - margin-right: 60px; - } -} - -@media (max-width: 999px) { - .sidebar .entry-header, - .sidebar .entry-content, - .sidebar .entry-summary, - .sidebar .entry-meta, - .sidebar .comment-list, - .sidebar .comment-reply-title, - .sidebar .comment-navigation, - .sidebar .comment-respond .comment-form, - .sidebar .featured-gallery, - .sidebar .post-navigation .nav-links, - .author.sidebar .author-info { - max-width: 604px; - padding-left: 0; - padding-right: 0; - } - - .sidebar .site-info, - .search.sidebar .page-content, - .blog.sidebar .page-content, - .attachment .entry-header, - .sidebar .comments-title { - max-width: 604px; - } - - .sidebar .archive-meta, - .attachment .entry-header, - .search.sidebar .page-content, - .blog.sidebar .page-content, - .sidebar .site-info, - .sidebar .comments-title, - .sidebar .no-comments { - padding-left: 0; - padding-right: 0; - } - - .attachment .entry-meta { - float: left; - text-align: left; - width: 100%; - } - - .attachment .entry-content { - max-width: 100%; - padding: 40px 0; - } - - .format-status .entry-content { - padding-top: 40px; - } - - .format-status .entry-meta { - padding-bottom: 40px; - } - - .sidebar .format-status .entry-content, - .sidebar .format-status .entry-meta { - padding-left: 35px; - } - - .sidebar .format-status .entry-content:before, - .sidebar .format-status .entry-meta:before { - left: 10px; - } - - .sidebar .format-status .entry-content p:first-child:before { - left: 4px; - } - - .sidebar .paging-navigation .nav-links { - padding: 0 60px; - } - - .site-main .sidebar-container { - height: auto; - margin: 0 auto; - max-width: 604px; - position: relative; - top: 20px; - } - - .site-main .widget-area { - float: none; - margin: 0; - width: 100%; - } - - .sidebar .site-footer .widget-area { - max-width: 100%; - left: 0; - } -} - -/* Collapse oversized image and pulled images after iPad breakpoint. */ -@media (max-width: 767px) { - .site-header .home-link { - min-height: 0; - } - .site-title { - font-size: 36px; - padding: 8px 0 10px; - } - .entry-content img.alignleft, - .entry-content .wp-caption.alignleft { - margin-left: 0; - } - - .entry-content img.alignright, - .entry-content .wp-caption.alignright { - margin-right: 0; - } - - .attachment .image-navigation, - .attachment .entry-attachment .attachment { - max-width: 604px; - padding: 0; - width: 100%; - } - - .gallery-caption { - display: none; - } -} - -@media (max-width: 643px) { - .site-title { - font-size: 30px; - } - - #content .entry-header, - #content .entry-content, - #content .entry-summary, - #content footer.entry-meta, - #content .featured-gallery, - .search.sidebar .page-content, - .blog.sidebar .page-content, - .sidebar .post-navigation .nav-links, - .paging-navigation .nav-links, - #content .author-info, - .comments-area .comments-title, - .comments-area .comment-list, - .comments-area .comment-navigation, - .comment-respond, - .sidebar .site-info, - .sidebar .paging-navigation .nav-links { - padding-left: 20px; - padding-right: 20px; - } - - #content .format-status .entry-content, - #content .format-status .entry-met { - padding-left: 35px; - } - - /* Small menu */ - .menu-toggle { - cursor: pointer; - display: inline-block; - font: bold 16px/1.3 "Source Sans Pro", Helvetica, sans-serif; - margin: 0; - } - - .menu-toggle, - .menu-toggle:hover, - .menu-toggle:focus, - .menu-toggle:active { - background: none; - border: none; - color: #141412; - padding: 12px 0 12px 20px; - } - - .menu-toggle:focus { - outline: thin dotted; - } - - .menu-toggle:after { - content: "\f502"; - font-size: 12px; - padding-left: 8px; - vertical-align: -4px; - } - - .toggled-on .menu-toggle:after { - content: "\f500"; - vertical-align: 2px; - } - - .toggled-on .nav-menu, - .toggled-on .nav-menu > ul { - display: block; - margin-left: 0; - padding: 0; - width: 100%; - } - - .toggled-on li, - .toggled-on .children { - display: block; - } - - .toggled-on .nav-menu li > ul { - background-color: transparent; - display: block; - float: none; - margin-left: 20px; - position: relative; - left: auto; - top: auto; - } - - .toggled-on .nav-menu li > ul a { - color: #141412; - width: auto; - } - - .toggled-on .nav-menu li:hover > a, - .toggled-on .nav-menu .children a { - background-color: transparent; - color: #141412; - } - - .toggled-on .nav-menu > li a:hover, - .toggled-on .nav-menu > ul a:hover { - background-color: #db572f; - color: #fff; - } - - .toggled-on .nav-menu > li a:focus, - .toggled-on .nav-menu > ul a:focus { - background-color: #220e10; - color: #fff; - } - - ul.nav-menu, - div.nav-menu > ul { - display: none; - } - - #content .featured-gallery { - padding-left: 24px; - } - - .gallery-columns-1 .gallery-item { - margin-right: 0; - width: 100%; - } - - .entry-title, - .format-chat .entry-title, - .format-image .entry-title, - .format-gallery .entry-title, - .format-video .entry-title { - font-size: 22px; - font-weight: bold; - } - - .format-quote blockquote, - .format-status .entry-content { - font-size: 18px; - } - - .format-quote blockquote small, - .format-quote blockquote cite { - font-size: 13px; - } - - .error404 .page-title { - padding: 40px 0 0; - } - - .error404 .page-title:before { - content: normal; - } - - .comment-author { - margin-right: 30px; - } - - .comment-author .avatar { - height: auto; - max-width: 100%; - } - - .comment-metadata, - .comment-content, - .comment-list .reply { - width: 70%; - width: -webkit-calc(100% - 104px); - width: calc(100% - 104px); - } - - .comment-form input[type="text"], - .comment-form input[type="email"], - .comment-form input[type="url"] { - width: -webkit-calc(100% - 120px); - width: calc(100% - 120px); - } - - .comment-form textarea { - height: 80px; /* Smaller field for mobile. */ - } - - /* Audio */ - .format-audio .entry-content:before { - display: none; - } - - .format-audio .audio-content { - background-image: none; - float: none; - padding-left: 0; - width: auto; - } -} - -/* Mobile devices */ -@media (max-width: 359px) { - .site-title { - font-weight: normal; - } - .site-description { - clip: rect(1px, 1px, 1px, 1px); - position: absolute; - } - .gallery { - margin-left: 0; - } - - .gallery .gallery-item, - .gallery-columns-2.gallery-size-thumbnail .gallery-item { - max-width: none; - width: 49%; - width: -webkit-calc(50% - 4px); - width: calc(50% - 4px); - } - - .gallery-columns-1.gallery-size-medium, - .gallery-columns-1.gallery-size-thumbnail, - .gallery-columns-2.gallery-size-thumbnail, - .gallery-columns-3.gallery-size-thumbnail { - display: block; - } - - .gallery-columns-1 .gallery-item, - .gallery-columns-1.gallery-size-medium .gallery-item, - .gallery-columns-1.gallery-size-thumbnail .gallery-item { - text-align: center; - width: 98%; - width: -webkit-calc(100% - 4px); - width: calc(100% - 4px); - } - - .gallery-columns-3 .gallery-item:nth-of-type(3n), - .gallery-columns-5 .gallery-item:nth-of-type(5n), - .gallery-columns-7 .gallery-item:nth-of-type(7n), - .gallery-columns-9 .gallery-item:nth-of-type(9n) { - margin-right: 4px; - } - - .gallery br { - display: none; - } - - .gallery .gallery-item:nth-of-type(even) { - margin-right: 0; - } - - /* Comments */ - .comment-author { - margin: 0 0 5px; - max-width: 100%; - } - - .comment-author .avatar { - display: inline; - margin: 0 5px 0 0; - max-width: 20px; - } - - .comment-metadata, - .comment-content, - .comment-list .reply { - width: 100%; - } -} - - -/** - * 9.0 Print - * ---------------------------------------------------------------------------- - */ - -/* Retina-specific styles. */ -@media print, - (-o-min-device-pixel-ratio: 5/4), - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - - .site-header .search-field { - background-image: url(images/search-icon-2x.png); - } - - .format-audio .audio-content, - .format-status .entry-content:before, - .format-status .entry-meta:before, - .comment-list > li:after, - .comment-list .children > li:before { - background-image: url(images/dotted-line-2x.png); - } -} - -@media print { - body { - background: none !important; - color: #000; - font-size: 10pt; - } - - footer a[rel="bookmark"]:link:after, - footer a[rel="bookmark"]:visited:after { - content: " [" attr(href) "] "; /* Show URLs */ - } - - .site { - max-width: 98%; - } - - .site-header { - background-image: none !important; - } - - .site-header .home-link { - max-width: none; - min-height: 0; - } - - .site-title { - color: #000; - font-size: 21pt; - } - - .site-description { - font-size: 10pt; - } - - .author-avatar, - .site-footer, - .comment-respond, - .comments-area .comment-edit-link, - .comments-area .reply, - .comments-link, - .entry-meta .edit-link, - .page-links, - .site-content nav, - .widget-area, - .main-navigation, - .navbar, - .more-link { - display: none; - } - - .entry-header, - .entry-content, - .entry-summary, - .entry-meta { - margin: 0; - width: 100%; - } - - .page-title, - .entry-title { - font-size: 21pt; - } - - .entry-meta, - .entry-meta a { - color: #444; - font-size: 10pt; - } - - .entry-content img.alignleft, - .entry-content .wp-caption.alignleft { - margin-left: 0; - } - - .entry-content img.alignright, - .entry-content .wp-caption.alignright { - margin-right: 0; - } - - .format-image .entry-content .size-full { - margin: 0; - } - - /* Remove colors from post formats */ - .hentry { - background-color: #fff; - } - - /* Comments */ - .comments-area > li.comment { - background: none; - position: relative; - width: auto; - } - - .comment-metadata { - float: none; - } - - .comment-author .fn, - .comment-reply-link, - .comment-reply-login { - color: #333; - } -} diff --git a/wp-content/themes/twentythirteen/tag.php b/wp-content/themes/twentythirteen/tag.php deleted file mode 100644 index f00180d3bb..0000000000 --- a/wp-content/themes/twentythirteen/tag.php +++ /dev/null @@ -1,43 +0,0 @@ - - -
    -
    - - -
    -

    - - -
    - -
    - - - - - - - - - - - - -
    -
    - - - diff --git a/wp-content/themes/twentythirteen/taxonomy-post_format.php b/wp-content/themes/twentythirteen/taxonomy-post_format.php deleted file mode 100644 index 3cf2970ee1..0000000000 --- a/wp-content/themes/twentythirteen/taxonomy-post_format.php +++ /dev/null @@ -1,41 +0,0 @@ - - -
    -
    - - -
    -

    ' . esc_html( get_post_format_string( get_post_format() ) ) . '' ); ?>

    -
    - - - - - - - - - - - - -
    -
    - - - diff --git a/wp-content/themes/twentytwelve/404.php b/wp-content/themes/twentytwelve/404.php deleted file mode 100644 index db3ef811b2..0000000000 --- a/wp-content/themes/twentytwelve/404.php +++ /dev/null @@ -1,29 +0,0 @@ - - -
    -
    - -
    -
    -

    -
    - -
    -

    - -
    -
    - -
    -
    - - \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/archive.php b/wp-content/themes/twentytwelve/archive.php deleted file mode 100644 index f71ecf90ed..0000000000 --- a/wp-content/themes/twentytwelve/archive.php +++ /dev/null @@ -1,63 +0,0 @@ - - -
    -
    - - -
    -

    ' . get_the_date() . '' ); - elseif ( is_month() ) : - printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '' ); - elseif ( is_year() ) : - printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '' ); - else : - _e( 'Archives', 'twentytwelve' ); - endif; - ?>

    -
    - - - - - - - -
    -
    - - - diff --git a/wp-content/themes/twentytwelve/author.php b/wp-content/themes/twentytwelve/author.php deleted file mode 100644 index 9a55c34199..0000000000 --- a/wp-content/themes/twentytwelve/author.php +++ /dev/null @@ -1,84 +0,0 @@ - - -
    -
    - - - - - -
    -

    ' . get_the_author() . '' ); ?>

    -
    - - - - - - -
    -
    - -
    -
    -

    -

    -
    -
    - - - - - - - - - - - - - -
    -
    - - - diff --git a/wp-content/themes/twentytwelve/category.php b/wp-content/themes/twentytwelve/category.php deleted file mode 100644 index 02f1326056..0000000000 --- a/wp-content/themes/twentytwelve/category.php +++ /dev/null @@ -1,51 +0,0 @@ - - -
    -
    - - -
    -

    ' . single_cat_title( '', false ) . '' ); ?>

    - - -
    - -
    - - - - - - - -
    -
    - - - diff --git a/wp-content/themes/twentytwelve/comments.php b/wp-content/themes/twentytwelve/comments.php deleted file mode 100644 index d6a733efe4..0000000000 --- a/wp-content/themes/twentytwelve/comments.php +++ /dev/null @@ -1,60 +0,0 @@ - - -
    - - - - -

    - ' . get_the_title() . '' ); - ?> -

    - -
      - 'twentytwelve_comment', 'style' => 'ol' ) ); ?> -
    - - 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> - - - - -

    - - - - - - -
    \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/content-aside.php b/wp-content/themes/twentytwelve/content-aside.php deleted file mode 100644 index 4a84ae76d0..0000000000 --- a/wp-content/themes/twentytwelve/content-aside.php +++ /dev/null @@ -1,28 +0,0 @@ - - -
    > -
    -

    -
    - →', 'twentytwelve' ) ); ?> -
    -
    - -
    - - - - - ', '' ); ?> -
    -
    diff --git a/wp-content/themes/twentytwelve/content-image.php b/wp-content/themes/twentytwelve/content-image.php deleted file mode 100644 index a683b83cfc..0000000000 --- a/wp-content/themes/twentytwelve/content-image.php +++ /dev/null @@ -1,28 +0,0 @@ - - -
    > -
    - →', 'twentytwelve' ) ); ?> -
    - -
    - -

    -

    -
    - - - - ', '' ); ?> -
    -
    diff --git a/wp-content/themes/twentytwelve/content-link.php b/wp-content/themes/twentytwelve/content-link.php deleted file mode 100644 index 31e4ec958a..0000000000 --- a/wp-content/themes/twentytwelve/content-link.php +++ /dev/null @@ -1,26 +0,0 @@ - - -
    > -
    -
    - →', 'twentytwelve' ) ); ?> -
    - -
    - - - - - ', '' ); ?> -
    -
    diff --git a/wp-content/themes/twentytwelve/content-none.php b/wp-content/themes/twentytwelve/content-none.php deleted file mode 100644 index b7757821c6..0000000000 --- a/wp-content/themes/twentytwelve/content-none.php +++ /dev/null @@ -1,20 +0,0 @@ - - -
    -
    -

    -
    - -
    -

    - -
    -
    diff --git a/wp-content/themes/twentytwelve/content-page.php b/wp-content/themes/twentytwelve/content-page.php deleted file mode 100644 index 0abcbf7911..0000000000 --- a/wp-content/themes/twentytwelve/content-page.php +++ /dev/null @@ -1,26 +0,0 @@ - - -
    > -
    - - - -

    -
    - -
    - - '' ) ); ?> -
    -
    - ', '' ); ?> -
    -
    diff --git a/wp-content/themes/twentytwelve/content-quote.php b/wp-content/themes/twentytwelve/content-quote.php deleted file mode 100644 index 0a98a96de3..0000000000 --- a/wp-content/themes/twentytwelve/content-quote.php +++ /dev/null @@ -1,25 +0,0 @@ - - -
    > -
    - →', 'twentytwelve' ) ); ?> -
    - -
    - - - - - ', '' ); ?> -
    -
    diff --git a/wp-content/themes/twentytwelve/content-status.php b/wp-content/themes/twentytwelve/content-status.php deleted file mode 100644 index 55b72db67d..0000000000 --- a/wp-content/themes/twentytwelve/content-status.php +++ /dev/null @@ -1,42 +0,0 @@ - - -
    > -
    -
    -

    -

    -
    - -
    - -
    - →', 'twentytwelve' ) ); ?> -
    - -
    - - - - ', '' ); ?> -
    -
    diff --git a/wp-content/themes/twentytwelve/content.php b/wp-content/themes/twentytwelve/content.php deleted file mode 100644 index 56493ed0bd..0000000000 --- a/wp-content/themes/twentytwelve/content.php +++ /dev/null @@ -1,73 +0,0 @@ - - -
    > - -
    - -
    - -
    - - - -

    - -

    - -

    - - - - -
    - - -
    - -
    - -
    - →', 'twentytwelve' ) ); ?> - '' ) ); ?> -
    - - - -
    diff --git a/wp-content/themes/twentytwelve/css/ie.css b/wp-content/themes/twentytwelve/css/ie.css deleted file mode 100644 index 706f5103ed..0000000000 --- a/wp-content/themes/twentytwelve/css/ie.css +++ /dev/null @@ -1,273 +0,0 @@ -/* -Styles for older IE versions (previous to IE9). -*/ - -body { - background-color: #e6e6e6; -} -body.custom-background-empty { - background-color: #fff; -} -body.custom-background-empty .site, -body.custom-background-white .site { - box-shadow: none; - margin-bottom: 0; - margin-top: 0; - padding: 0; -} -.assistive-text, -.site .screen-reader-text { - clip: rect(1px 1px 1px 1px); -} -.full-width .site-content { - float: none; - width: 100%; -} -img.size-full, -img.size-large, -img.header-image, -img.wp-post-image, -img[class*="align"], -img[class*="wp-image-"], -img[class*="attachment-"] { - width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */ -} -.author-avatar { - float: left; - margin-top: 8px; - margin-top: 0.571428571rem; -} -.author-description { - float: right; - width: 80%; -} -.site { - box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3); - margin: 48px auto; - max-width: 960px; - overflow: hidden; - padding: 0 40px; -} -.site-content { - float: left; - width: 65.104166667%; -} -body.template-front-page .site-content, -body.attachment .site-content, -body.full-width .site-content { - width: 100%; -} -.widget-area { - float: right; - width: 26.041666667%; -} -.site-header h1, -.site-header h2 { - text-align: left; -} -.site-header h1 { - font-size: 26px; - line-height: 1.846153846; -} -.main-navigation ul.nav-menu, -.main-navigation div.nav-menu > ul { - border-bottom: 1px solid #ededed; - border-top: 1px solid #ededed; - display: inline-block !important; - text-align: left; - width: 100%; -} -.main-navigation ul { - margin: 0; - text-indent: 0; -} -.main-navigation li a, -.main-navigation li { - display: inline-block; - text-decoration: none; -} -.ie7 .main-navigation li a, -.ie7 .main-navigation li { - display: inline; -} -.main-navigation li a { - border-bottom: 0; - color: #6a6a6a; - line-height: 3.692307692; - text-transform: uppercase; -} -.main-navigation li a:hover { - color: #000; -} -.main-navigation li { - margin: 0 40px 0 0; - position: relative; -} -.main-navigation li ul { - margin: 0; - padding: 0; - position: absolute; - top: 100%; - z-index: 1; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(1px, 1px, 1px, 1px); -} -.ie7 .main-navigation li ul { - clip: inherit; - display: none; - left: 0; - overflow: visible; -} -.main-navigation li ul ul, -.ie7 .main-navigation li ul ul { - top: 0; - left: 100%; -} -.main-navigation ul li:hover > ul, -.main-navigation ul li:focus > ul, -.main-navigation .focus > ul { - border-left: 0; - clip: inherit; - overflow: inherit; - height: inherit; - width: inherit; -} -.ie7 .main-navigation ul li:hover > ul, -.ie7 .main-navigation ul li:focus > ul { - display: block; -} -.main-navigation li ul li a { - background: #efefef; - border-bottom: 1px solid #ededed; - display: block; - font-size: 11px; - line-height: 2.181818182; - padding: 8px 10px; - width: 180px; -} -.main-navigation li ul li a:hover { - background: #e3e3e3; - color: #444; -} -.main-navigation .current-menu-item > a, -.main-navigation .current-menu-ancestor > a, -.main-navigation .current_page_item > a, -.main-navigation .current_page_ancestor > a { - color: #636363; - font-weight: bold; -} -.main-navigation .menu-toggle { - display: none; -} -.entry-header .entry-title { - font-size: 22px; -} -#respond form input[type="text"] { - width: 46.333333333%; -} -#respond form textarea.blog-textarea { - width: 79.666666667%; -} -.template-front-page .site-content, -.template-front-page article { - overflow: hidden; -} -.template-front-page.has-post-thumbnail article { - float: left; - width: 47.916666667%; -} -.entry-page-image { - float: right; - margin-bottom: 0; - width: 47.916666667%; -} -/* IE Front Page Template Widget fix */ -.template-front-page .widget-area { - clear: both; -} -.template-front-page .widget { - width: 100% !important; - border: none; -} -.template-front-page .widget-area .widget, -.template-front-page .first.front-widgets, -.template-front-page.two-sidebars .widget-area .front-widgets { - float: left; - margin-bottom: 24px; - width: 51.875%; -} -.template-front-page .second.front-widgets, -.template-front-page .widget-area .widget:nth-child(odd) { - clear: right; -} -.template-front-page .first.front-widgets, -.template-front-page .second.front-widgets, -.template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets { - float: right; - margin: 0 0 24px; - width: 39.0625%; -} -.template-front-page.two-sidebars .widget, -.template-front-page.two-sidebars .widget:nth-child(even) { - float: none; - width: auto; -} -/* add input font for ul { - text-align: right; -} -.rtl .main-navigation ul li ul li, -.rtl .main-navigation ul li ul li ul li { - margin-left: 40px; - margin-right: auto; -} -.rtl .main-navigation li ul ul { - position: absolute; - bottom: 0; - right: 100%; - z-index: 1; -} -.ie7 .rtl .main-navigation li ul ul { - position: absolute; - bottom: 0; - right: 100%; - z-index: 1; -} -.ie7 .rtl .main-navigation ul li { - z-index: 99; -} -.ie7 .rtl .main-navigation li ul { - position: absolute; - bottom: 100%; - right: 0; - z-index: 1; -} -.ie7 .rtl .main-navigation li { - margin-right: auto; - margin-left: 40px; -} -.ie7 .rtl .main-navigation li ul ul ul { - position: relative; - z-index: 1; -} \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/editor-style-rtl.css b/wp-content/themes/twentytwelve/editor-style-rtl.css deleted file mode 100644 index 5fd832c6ff..0000000000 --- a/wp-content/themes/twentytwelve/editor-style-rtl.css +++ /dev/null @@ -1,28 +0,0 @@ -/* -Theme Name: Twenty Twelve -Description: Used to style the TinyMCE editor for RTL languages. -See also rtl.css file. -*/ - -html .mceContentBody { - direction: rtl; - unicode-bidi: embed; -} -li { - margin: 0 24px 0 0; - margin: 0 1.714285714rem 0 0; -} -dl { - margin: 0 24px; - margin: 0 1.714285714rem; -} -tr th { - text-align: right; -} -td { - padding: 6px 0 6px 10px; - text-align: right; -} -.wp-caption { - text-align: right; -} \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/editor-style.css b/wp-content/themes/twentytwelve/editor-style.css deleted file mode 100644 index 24e9b24f63..0000000000 --- a/wp-content/themes/twentytwelve/editor-style.css +++ /dev/null @@ -1,342 +0,0 @@ -/* -Theme Name: Twenty Twelve -Description: Used to style the TinyMCE editor. -*/ - -html { - font-size: 87.5%; -} -html .mceContentBody { - max-width: 625px; -} -body { - color: #444; - font-family: "Open Sans", Helvetica, Arial, sans-serif; - font-size: 14px; - font-size: 1rem; - line-height: 1; - text-rendering: optimizeLegibility; - vertical-align: baseline; -} - - -/* =Headings --------------------------------------------------------------- */ - -h1, -h2, -h3, -h4, -h5, -h6 { - clear: both; - line-height: 1.846153846; - margin: 24px 0; - margin: 1.714285714rem 0; -} -h1 { - font-size: 21px; - font-size: 1.5rem; - line-height: 1.5; -} -h2 { - font-size: 18px; - font-size: 1.285714286rem; - line-height: 1.6; -} -h3 { - font-size: 16px; - font-size: 1.142857143rem; -} -h4 { - font-size: 14px; - font-size: 1rem; -} -h5 { - font-size: 13px; - font-size: 0.928571429rem; -} -h6 { - font-size: 12px; - font-size: 0.857142857rem; -} -hr { - background-color: #ccc; - border: 0; - height: 1px; - margin: 24px; - margin-bottom: 1.714285714rem; -} - - -/* =Text elements --------------------------------------------------------------- */ - -p { - line-height: 1.714285714; - margin: 0 0 24px; - margin: 0 0 1.714285714rem; -} -ul, -ol { - margin: 0 0 24px; - margin: 0 0 1.714285714rem; - line-height: 1.714285714; - padding: 0; -} -ul { - list-style: disc outside; -} -ol { - list-style: decimal outside; -} -ul ul, -ol ol, -ul ol, -ol ul { - margin-bottom: 0; -} -li { - margin: 0 0 0 24px; - margin: 0 0 0 1.714285714rem; -} -dl { - margin: 0 24px; - margin: 0 1.714285714rem; -} -dt { - font-weight: bold; - margin-bottom: 24px; - margin-bottom: 1.714285714rem; -} -dd { - line-height: 1.714285714; - margin: 0 0 24px; - margin: 0 0 1.714285714rem; -} -strong { - font-weight: bold; -} -cite, -em, -i { - font-style: italic; -} -cite { - border: none; -} -big { - font-size: 128.571429%; -} -.mceContentBody blockquote { - font-style: italic !important; - font-weight: normal; - margin: 0; - padding: 24px; - padding: 1.714285714rem; -} -pre { - border: 1px solid #ededed; - color: #666; - font-family: Consolas, Monaco, Lucida Console, monospace; - font-size: 12px; - font-size: 0.857142857rem; - line-height: 1.714285714; - margin: 24px 0; - margin: 1.714285714rem 0; - overflow: auto; - padding: 24px; - padding: 1.714285714rem; -} -code, -kbd, -samp, -var { - font-family: Consolas, Monaco, Lucida Console, monospace; - font-size: 12px; - font-size: 0.857142857rem; - line-height: 2; -} -abbr, -acronym, -dfn { - border-bottom: 1px dotted #666; - cursor: help; -} -address { - display: block; - line-height: 1.714285714; - margin: 0 0 24px; - margin: 0 0 1.714285714rem; -} -del { - color: #333; -} -ins { - background: #fff9c0; - border: none; - color: #333; - text-decoration: none; -} -sup, -sub { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} -sup { - top: -0.5em; -} -sub { - bottom: -0.25em; -} -input[type="text"] { - border: 1px solid #ccc; - border-radius: 3px; - font-family: inherit; - padding: 6px; - padding: 0.428571429rem; -} -textarea { - border: 1px solid #d5d2ca; - border-radius: 3px; - font-family: inherit; - font-size: 12px; - font-size: 0.857142857rem; - line-height: 1.714285714; - padding: 10px; - padding: 0.714285714rem; - width: 96%; -} - - -/* =Links --------------------------------------------------------------- */ - -a, -a em, -a strong { - color: #21759b; - outline: none; -} -a:focus, -a:active, -a:hover { - color: #0f3647; -} - - -/* =Alignment --------------------------------------------------------------- */ - -.alignleft { - display: inline; - float: left; - margin: 12px 24px 12px 0; - margin: 0.857142857rem 1.714285714rem 0.857142857rem 0; -} -.alignright { - display: inline; - float: right; - margin: 12px 0 12px 24px; - margin: 0.857142857rem 0 0.857142857rem 1.714285714rem; -} -.aligncenter { - clear: both; - display: block; - margin-top: 12px; - margin-top: 0.857142857rem; - margin-bottom: 12px; - margin-bottom: 0.857142857rem; -} - - -/* =Tables --------------------------------------------------------------- */ - -table { - border-bottom: 1px solid #ededed; - border-collapse: collapse; - border-spacing: 0; - color: #757575; - font-size: 12px; - font-size: 0.857142857rem; - line-height: 2; - margin: 0 0 24px; - margin: 0 0 1.714285714rem; - width: 100%; -} -tr th { - color: #636363; - font-size: 11px; - font-size: 0.785714286rem; - font-weight: bold; - line-height: 2.181818182; - text-align: left; - text-transform: uppercase; -} -td { - border-top: 1px solid #ededed !important; - color: #757575; - font-size: inherit; - font-weight: normal; - padding: 6px 10px 6px 0; - text-align: left; -} - - -/* =Images --------------------------------------------------------------- */ - -img, -.editor-attachment { - border: 0; - border-radius: 3px; - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); - max-width: 100%; -} -img.size-full { - width: auto/9; /* Prevent stretching of full-size images in IE8 */ -} -img[class*="wp-image-"] { - height: auto; - max-width: 100%; -} -img[class*="align"], -img[class*="wp-image-"], -img[class*="attachment-"] { - height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ -} -img.mce-wp-nextpage { - border-radius: 0; - box-shadow: none; -} -img.wp-smiley { - border: 0; - border-radius: 0; - box-shadow: none; - margin-bottom: 0; - margin-top: 0; - padding: 0; -} -.wp-caption { - background: transparent; - border: none; - margin: 0; - padding: 4px; - text-align: left; -} -.wp-caption-dt { - margin: 0; -} -.wp-caption .wp-caption-text, -.wp-caption-dd { - color: #757575; - font-style: italic; - font-size: 12px; - font-size: 0.857142857rem; - line-height: 2; - margin: 0 0 24px; - margin: 0 0 1.71429rem; -} diff --git a/wp-content/themes/twentytwelve/footer.php b/wp-content/themes/twentytwelve/footer.php deleted file mode 100644 index fe31e596d9..0000000000 --- a/wp-content/themes/twentytwelve/footer.php +++ /dev/null @@ -1,23 +0,0 @@ - -
    -
    -
    - - -
    -
    -
    - - - - \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php deleted file mode 100644 index 8d5facf0f7..0000000000 --- a/wp-content/themes/twentytwelve/functions.php +++ /dev/null @@ -1,496 +0,0 @@ - for posts and comments. - add_theme_support( 'automatic-feed-links' ); - - // This theme supports a variety of post formats. - add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) ); - - // This theme uses wp_nav_menu() in one location. - register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) ); - - /* - * This theme supports custom background color and image, - * and here we also set up the default background color. - */ - add_theme_support( 'custom-background', array( - 'default-color' => 'e6e6e6', - ) ); - - // This theme uses a custom image size for featured images, displayed on "standard" posts. - add_theme_support( 'post-thumbnails' ); - set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop -} -add_action( 'after_setup_theme', 'twentytwelve_setup' ); - -/** - * Add support for a custom header image. - */ -require( get_template_directory() . '/inc/custom-header.php' ); - -/** - * Return the Google font stylesheet URL if available. - * - * The use of Open Sans by default is localized. For languages that use - * characters not supported by the font, the font can be disabled. - * - * @since Twenty Twelve 1.2 - * - * @return string Font stylesheet or empty string if disabled. - */ -function twentytwelve_get_font_url() { - $font_url = ''; - - /* translators: If there are characters in your language that are not supported - * by Open Sans, translate this to 'off'. Do not translate into your own language. - */ - if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) { - $subsets = 'latin,latin-ext'; - - /* translators: To add an additional Open Sans character subset specific to your language, - * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language. - */ - $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' ); - - if ( 'cyrillic' == $subset ) - $subsets .= ',cyrillic,cyrillic-ext'; - elseif ( 'greek' == $subset ) - $subsets .= ',greek,greek-ext'; - elseif ( 'vietnamese' == $subset ) - $subsets .= ',vietnamese'; - - $query_args = array( - 'family' => 'Open+Sans:400italic,700italic,400,700', - 'subset' => $subsets, - ); - $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); - } - - return $font_url; -} - -/** - * Enqueue scripts and styles for front-end. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_scripts_styles() { - global $wp_styles; - - /* - * Adds JavaScript to pages with the comment form to support - * sites with threaded comments (when in use). - */ - if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) - wp_enqueue_script( 'comment-reply' ); - - // Adds JavaScript for handling the navigation menu hide-and-show behavior. - wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20140711', true ); - - $font_url = twentytwelve_get_font_url(); - if ( ! empty( $font_url ) ) - wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null ); - - // Loads our main stylesheet. - wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); - - // Loads the Internet Explorer specific stylesheet. - wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' ); - $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' ); -} -add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' ); - -/** - * Filter TinyMCE CSS path to include Google Fonts. - * - * Adds additional stylesheets to the TinyMCE editor if needed. - * - * @uses twentytwelve_get_font_url() To get the Google Font stylesheet URL. - * - * @since Twenty Twelve 1.2 - * - * @param string $mce_css CSS path to load in TinyMCE. - * @return string Filtered CSS path. - */ -function twentytwelve_mce_css( $mce_css ) { - $font_url = twentytwelve_get_font_url(); - - if ( empty( $font_url ) ) - return $mce_css; - - if ( ! empty( $mce_css ) ) - $mce_css .= ','; - - $mce_css .= esc_url_raw( str_replace( ',', '%2C', $font_url ) ); - - return $mce_css; -} -add_filter( 'mce_css', 'twentytwelve_mce_css' ); - -/** - * Filter the page title. - * - * Creates a nicely formatted and more specific title element text - * for output in head of document, based on current view. - * - * @since Twenty Twelve 1.0 - * - * @param string $title Default title text for current view. - * @param string $sep Optional separator. - * @return string Filtered title. - */ -function twentytwelve_wp_title( $title, $sep ) { - global $paged, $page; - - if ( is_feed() ) - return $title; - - // Add the site name. - $title .= get_bloginfo( 'name', 'display' ); - - // Add the site description for the home/front page. - $site_description = get_bloginfo( 'description', 'display' ); - if ( $site_description && ( is_home() || is_front_page() ) ) - $title = "$title $sep $site_description"; - - // Add a page number if necessary. - if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) - $title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) ); - - return $title; -} -add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 ); - -/** - * Filter the page menu arguments. - * - * Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_page_menu_args( $args ) { - if ( ! isset( $args['show_home'] ) ) - $args['show_home'] = true; - return $args; -} -add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' ); - -/** - * Register sidebars. - * - * Registers our main widget area and the front page widget areas. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_widgets_init() { - register_sidebar( array( - 'name' => __( 'Main Sidebar', 'twentytwelve' ), - 'id' => 'sidebar-1', - 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ), - 'before_widget' => '', - 'before_title' => '

    ', - 'after_title' => '

    ', - ) ); - - register_sidebar( array( - 'name' => __( 'First Front Page Widget Area', 'twentytwelve' ), - 'id' => 'sidebar-2', - 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), - 'before_widget' => '', - 'before_title' => '

    ', - 'after_title' => '

    ', - ) ); - - register_sidebar( array( - 'name' => __( 'Second Front Page Widget Area', 'twentytwelve' ), - 'id' => 'sidebar-3', - 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), - 'before_widget' => '', - 'before_title' => '

    ', - 'after_title' => '

    ', - ) ); -} -add_action( 'widgets_init', 'twentytwelve_widgets_init' ); - -if ( ! function_exists( 'twentytwelve_content_nav' ) ) : -/** - * Displays navigation to next/previous pages when applicable. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_content_nav( $html_id ) { - global $wp_query; - - if ( $wp_query->max_num_pages > 1 ) : ?> - - comment_type ) : - case 'pingback' : - case 'trackback' : - // Display trackbacks differently than normal comments. - ?> -
  • id="comment-"> -

    ', '' ); ?>

    - -
  • id="li-comment-"> -
    -
    - %1$s %2$s', - get_comment_author_link(), - // If current post author is also comment author, make it known visually. - ( $comment->user_id === $post->post_author ) ? '' . __( 'Post author', 'twentytwelve' ) . '' : '' - ); - printf( '', - esc_url( get_comment_link( $comment->comment_ID ) ), - get_comment_time( 'c' ), - /* translators: 1: date, 2: time */ - sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() ) - ); - ?> -
    - - comment_approved ) : ?> -

    - - -
    - - ', '

    ' ); ?> -
    - -
    - __( 'Reply', 'twentytwelve' ), 'after' => ' ', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> -
    -
    - ', - esc_url( get_permalink() ), - esc_attr( get_the_time() ), - esc_attr( get_the_date( 'c' ) ), - esc_html( get_the_date() ) - ); - - $author = sprintf( '', - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), - esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ), - get_the_author() - ); - - // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. - if ( $tag_list ) { - $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s by %4$s.', 'twentytwelve' ); - } elseif ( $categories_list ) { - $utility_text = __( 'This entry was posted in %1$s on %3$s by %4$s.', 'twentytwelve' ); - } else { - $utility_text = __( 'This entry was posted on %3$s by %4$s.', 'twentytwelve' ); - } - - printf( - $utility_text, - $categories_list, - $tag_list, - $date, - $author - ); -} -endif; - -/** - * Extend the default WordPress body classes. - * - * Extends the default WordPress body class to denote: - * 1. Using a full-width layout, when no active widgets in the sidebar - * or full-width template. - * 2. Front Page template: thumbnail in use and number of sidebars for - * widget areas. - * 3. White or empty background color to change the layout and spacing. - * 4. Custom fonts enabled. - * 5. Single or multiple authors. - * - * @since Twenty Twelve 1.0 - * - * @param array $classes Existing class values. - * @return array Filtered class values. - */ -function twentytwelve_body_class( $classes ) { - $background_color = get_background_color(); - $background_image = get_background_image(); - - if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) - $classes[] = 'full-width'; - - if ( is_page_template( 'page-templates/front-page.php' ) ) { - $classes[] = 'template-front-page'; - if ( has_post_thumbnail() ) - $classes[] = 'has-post-thumbnail'; - if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) ) - $classes[] = 'two-sidebars'; - } - - if ( empty( $background_image ) ) { - if ( empty( $background_color ) ) - $classes[] = 'custom-background-empty'; - elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) - $classes[] = 'custom-background-white'; - } - - // Enable custom font class only if the font CSS is queued to load. - if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) - $classes[] = 'custom-font-enabled'; - - if ( ! is_multi_author() ) - $classes[] = 'single-author'; - - return $classes; -} -add_filter( 'body_class', 'twentytwelve_body_class' ); - -/** - * Adjust content width in certain contexts. - * - * Adjusts content_width value for full-width and single image attachment - * templates, and when there are no active widgets in the sidebar. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_content_width() { - if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) { - global $content_width; - $content_width = 960; - } -} -add_action( 'template_redirect', 'twentytwelve_content_width' ); - -/** - * Register postMessage support. - * - * Add postMessage support for site title and description for the Customizer. - * - * @since Twenty Twelve 1.0 - * - * @param WP_Customize_Manager $wp_customize Customizer object. - */ -function twentytwelve_customize_register( $wp_customize ) { - $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; - $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; - $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; -} -add_action( 'customize_register', 'twentytwelve_customize_register' ); - -/** - * Enqueue Javascript postMessage handlers for the Customizer. - * - * Binds JS handlers to make the Customizer preview reload changes asynchronously. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_customize_preview_js() { - wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true ); -} -add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' ); diff --git a/wp-content/themes/twentytwelve/header.php b/wp-content/themes/twentytwelve/header.php deleted file mode 100644 index c3b99d6f3d..0000000000 --- a/wp-content/themes/twentytwelve/header.php +++ /dev/null @@ -1,53 +0,0 @@ - section and everything up till
    - * - * @package WordPress - * @subpackage Twenty_Twelve - * @since Twenty Twelve 1.0 - */ -?> - - - -> - - - - -<?php wp_title( '|', true, 'right' ); ?> - - - - - - - -> -
    - - -
    \ No newline at end of file diff --git a/wp-content/themes/twentytwelve/image.php b/wp-content/themes/twentytwelve/image.php deleted file mode 100644 index 976e017d50..0000000000 --- a/wp-content/themes/twentytwelve/image.php +++ /dev/null @@ -1,116 +0,0 @@ - - -
    -
    - - - -
    > -
    -

    - -
    - Published at %4$s × %5$s in %8$s.', 'twentytwelve' ), - esc_attr( get_the_date( 'c' ) ), - esc_html( get_the_date() ), - esc_url( wp_get_attachment_url() ), - $metadata['width'], - $metadata['height'], - esc_url( get_permalink( $post->post_parent ) ), - esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ), - get_the_title( $post->post_parent ) - ); - ?> - ', '' ); ?> -
    - - -
    - -
    - -
    -
    - $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); -foreach ( $attachments as $k => $attachment ) : - if ( $attachment->ID == $post->ID ) - break; -endforeach; - -// If there is more than 1 attachment in a gallery -if ( count( $attachments ) > 1 ) : - $k++; - if ( isset( $attachments[ $k ] ) ) : - // get the URL of the next image attachment - $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); - else : - // or get the URL of the first image attachment - $next_attachment_url = get_attachment_link( $attachments[0]->ID ); - endif; -else : - // or, if there's only 1 image, get the URL of the image - $next_attachment_url = wp_get_attachment_url(); -endif; -?> - ID, $attachment_size ); - ?> - - post_excerpt ) ) : ?> -
    - -
    - -
    - -
    - -
    - - '' ) ); ?> -
    - -
    - -
    - - - - - -
    -
    - - diff --git a/wp-content/themes/twentytwelve/inc/custom-header.php b/wp-content/themes/twentytwelve/inc/custom-header.php deleted file mode 100644 index 2a886bd409..0000000000 --- a/wp-content/themes/twentytwelve/inc/custom-header.php +++ /dev/null @@ -1,163 +0,0 @@ - '515151', - 'default-image' => '', - - // Set height and width, with a maximum value for the width. - 'height' => 250, - 'width' => 960, - 'max-width' => 2000, - - // Support flexible height and width. - 'flex-height' => true, - 'flex-width' => true, - - // Random image rotation off by default. - 'random-default' => false, - - // Callbacks for styling the header and the admin preview. - 'wp-head-callback' => 'twentytwelve_header_style', - 'admin-head-callback' => 'twentytwelve_admin_header_style', - 'admin-preview-callback' => 'twentytwelve_admin_header_image', - ); - - add_theme_support( 'custom-header', $args ); -} -add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' ); - -/** - * Load our special font CSS file. - * - * @since Twenty Twelve 1.2 - */ -function twentytwelve_custom_header_fonts() { - $font_url = twentytwelve_get_font_url(); - if ( ! empty( $font_url ) ) - wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null ); -} -add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts' ); - -/** - * Style the header text displayed on the blog. - * - * get_header_textcolor() options: 515151 is default, hide text (returns 'blank'), or any hex value. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_header_style() { - $text_color = get_header_textcolor(); - - // If no custom options for text are set, let's bail - if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) - return; - - // If we get this far, we have custom styles. - ?> - - Header admin panel. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_admin_header_style() { -?> - - Header admin panel. - * - * This callback overrides the default markup displayed there. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_admin_header_image() { - $style = 'color: #' . get_header_textcolor() . ';'; - if ( ! display_header_text() ) { - $style = 'display: none;'; - } - ?> -
    -

    -

    - - - -
    - - -
    -
    - - - - - - - - - - - -
    - - -
    -

    -
    - -
    -

    Get started here.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?>

    -
    - - -
    -

    -
    - -
    -

    - -
    - - -
    - - - -
    -
    - - - diff --git a/wp-content/themes/twentytwelve/js/html5.js b/wp-content/themes/twentytwelve/js/html5.js deleted file mode 100644 index 6168aacd5e..0000000000 --- a/wp-content/themes/twentytwelve/js/html5.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed -*/ -(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); -a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; -c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| -"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f); -if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d
    \n"; - else - $output .= "
  • \n"; - } - - /** - * Output a pingback comment. - * - * @access protected - * @since 3.6.0 - * - * @see wp_list_comments() - * - * @param object $comment The comment object. - * @param int $depth Depth of comment. - * @param array $args An array of arguments. - */ - protected function ping( $comment, $depth, $args ) { - $tag = ( 'div' == $args['style'] ) ? 'div' : 'li'; -?> - < id="comment-" > -
    - ', '' ); ?> -
    - - < has_children ? 'parent' : '' ); ?> id="comment-"> - -
    - -
    - - %s says:' ), get_comment_author_link() ); ?> -
    - comment_approved ) : ?> - -
    - - - - - $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> - - $add_below, - 'depth' => $depth, - 'max_depth' => $args['max_depth'], - 'before' => '
    ', - 'after' => '
    ' - ) ) ); - ?> - - -
    - - - < id="comment-" has_children ? 'parent' : '' ); ?>> -
    -
    -
    - - says:' ), sprintf( '%s', get_comment_author_link() ) ); ?> -
    - - - - comment_approved ) : ?> -

    - -
    - -
    - -
    - - 'div-comment', - 'depth' => $depth, - 'max_depth' => $args['max_depth'], - 'before' => '
    ', - 'after' => '
    ' - ) ) ); - ?> -
    -comments - * - * @global WP_Query $wp_query - * @global int $comment_alt - * @global int $comment_depth - * @global int $comment_thread_alt - * @global bool $overridden_cpage - * @global bool $in_comment_loop - * - * @param string|array $args { - * Optional. Formatting options. - * - * @type object $walker Instance of a Walker class to list comments. Default null. - * @type int $max_depth The maximum comments depth. Default empty. - * @type string $style The style of list ordering. Default 'ul'. Accepts 'ul', 'ol'. - * @type string $callback Callback function to use. Default null. - * @type string $end-callback Callback function to use at the end. Default null. - * @type string $type Type of comments to list. - * Default 'all'. Accepts 'all', 'comment', 'pingback', 'trackback', 'pings'. - * @type int $page Page ID to list comments for. Default empty. - * @type int $per_page Number of comments to list per page. Default empty. - * @type int $avatar_size Height and width dimensions of the avatar size. Default 32. - * @type string $reverse_top_level Ordering of the listed comments. Default null. Accepts 'desc', 'asc'. - * @type bool $reverse_children Whether to reverse child comments in the list. Default null. - * @type string $format How to format the comments list. - * Default 'html5' if the theme supports it. Accepts 'html5', 'xhtml'. - * @type bool $short_ping Whether to output short pings. Default false. - * @type bool $echo Whether to echo the output or return it. Default true. - * } - * @param array $comments Optional. Array of comment objects. - */ -function wp_list_comments( $args = array(), $comments = null ) { - global $wp_query, $comment_alt, $comment_depth, $comment_thread_alt, $overridden_cpage, $in_comment_loop; - - $in_comment_loop = true; - - $comment_alt = $comment_thread_alt = 0; - $comment_depth = 1; - - $defaults = array( - 'walker' => null, - 'max_depth' => '', - 'style' => 'ul', - 'callback' => null, - 'end-callback' => null, - 'type' => 'all', - 'page' => '', - 'per_page' => '', - 'avatar_size' => 32, - 'reverse_top_level' => null, - 'reverse_children' => '', - 'format' => current_theme_supports( 'html5', 'comment-list' ) ? 'html5' : 'xhtml', - 'short_ping' => false, - 'echo' => true, - ); - - $r = wp_parse_args( $args, $defaults ); - - /** - * Filter the arguments used in retrieving the comment list. - * - * @since 4.0.0 - * - * @see wp_list_comments() - * - * @param array $r An array of arguments for displaying comments. - */ - $r = apply_filters( 'wp_list_comments_args', $r ); - - // Figure out what comments we'll be looping through ($_comments) - if ( null !== $comments ) { - $comments = (array) $comments; - if ( empty($comments) ) - return; - if ( 'all' != $r['type'] ) { - $comments_by_type = separate_comments($comments); - if ( empty($comments_by_type[$r['type']]) ) - return; - $_comments = $comments_by_type[$r['type']]; - } else { - $_comments = $comments; - } - } else { - if ( empty($wp_query->comments) ) - return; - if ( 'all' != $r['type'] ) { - if ( empty($wp_query->comments_by_type) ) - $wp_query->comments_by_type = separate_comments($wp_query->comments); - if ( empty($wp_query->comments_by_type[$r['type']]) ) - return; - $_comments = $wp_query->comments_by_type[$r['type']]; - } else { - $_comments = $wp_query->comments; - } - } - - if ( '' === $r['per_page'] && get_option('page_comments') ) - $r['per_page'] = get_query_var('comments_per_page'); - - if ( empty($r['per_page']) ) { - $r['per_page'] = 0; - $r['page'] = 0; - } - - if ( '' === $r['max_depth'] ) { - if ( get_option('thread_comments') ) - $r['max_depth'] = get_option('thread_comments_depth'); - else - $r['max_depth'] = -1; - } - - if ( '' === $r['page'] ) { - if ( empty($overridden_cpage) ) { - $r['page'] = get_query_var('cpage'); - } else { - $threaded = ( -1 != $r['max_depth'] ); - $r['page'] = ( 'newest' == get_option('default_comments_page') ) ? get_comment_pages_count($_comments, $r['per_page'], $threaded) : 1; - set_query_var( 'cpage', $r['page'] ); - } - } - // Validation check - $r['page'] = intval($r['page']); - if ( 0 == $r['page'] && 0 != $r['per_page'] ) - $r['page'] = 1; - - if ( null === $r['reverse_top_level'] ) - $r['reverse_top_level'] = ( 'desc' == get_option('comment_order') ); - - if ( empty( $r['walker'] ) ) { - $walker = new Walker_Comment; - } else { - $walker = $r['walker']; - } - - $output = $walker->paged_walk( $_comments, $r['max_depth'], $r['page'], $r['per_page'], $r ); - $wp_query->max_num_comment_pages = $walker->max_pages; - - $in_comment_loop = false; - - if ( $r['echo'] ) { - echo $output; - } else { - return $output; - } -} - -/** - * Output a complete commenting form for use within a template. - * - * Most strings and form fields may be controlled through the $args array passed - * into the function, while you may also choose to use the comment_form_default_fields - * filter to modify the array of default fields if you'd just like to add a new - * one or remove a single field. All fields are also individually passed through - * a filter of the form comment_form_field_$name where $name is the key used - * in the array of fields. - * - * @since 3.0.0 - * @since 4.1.0 Introduced the 'class_submit' argument. - * @since 4.2.0 Introduced 'submit_button' and 'submit_fields' arguments. - * - * @param array $args { - * Optional. Default arguments and form fields to override. - * - * @type array $fields { - * Default comment fields, filterable by default via the 'comment_form_default_fields' hook. - * - * @type string $author Comment author field HTML. - * @type string $email Comment author email field HTML. - * @type string $url Comment author URL field HTML. - * } - * @type string $comment_field The comment textarea field HTML. - * @type string $must_log_in HTML element for a 'must be logged in to comment' message. - * @type string $logged_in_as HTML element for a 'logged in as [user]' message. - * @type string $comment_notes_before HTML element for a message displayed before the comment form. - * Default 'Your email address will not be published.'. - * @type string $comment_notes_after HTML element for a message displayed after the comment form. - * @type string $id_form The comment form element id attribute. Default 'commentform'. - * @type string $id_submit The comment submit element id attribute. Default 'submit'. - * @type string $class_submit The comment submit element class attribute. Default 'submit'. - * @type string $name_submit The comment submit element name attribute. Default 'submit'. - * @type string $title_reply The translatable 'reply' button label. Default 'Leave a Reply'. - * @type string $title_reply_to The translatable 'reply-to' button label. Default 'Leave a Reply to %s', - * where %s is the author of the comment being replied to. - * @type string $cancel_reply_link The translatable 'cancel reply' button label. Default 'Cancel reply'. - * @type string $label_submit The translatable 'submit' button label. Default 'Post a comment'. - * @type string $submit_button HTML format for the Submit button. - * Default: ''. - * @type string $submit_field HTML format for the markup surrounding the Submit button and comment hidden - * fields. Default: '

    %1$s %2$s', where %1$s is the - * submit button markup and %2$s is the comment hidden fields. - * @type string $format The comment form format. Default 'xhtml'. Accepts 'xhtml', 'html5'. - * } - * @param int|WP_Post $post_id Post ID or WP_Post object to generate the form for. Default current post. - */ -function comment_form( $args = array(), $post_id = null ) { - if ( null === $post_id ) - $post_id = get_the_ID(); - - $commenter = wp_get_current_commenter(); - $user = wp_get_current_user(); - $user_identity = $user->exists() ? $user->display_name : ''; - - $args = wp_parse_args( $args ); - if ( ! isset( $args['format'] ) ) - $args['format'] = current_theme_supports( 'html5', 'comment-form' ) ? 'html5' : 'xhtml'; - - $req = get_option( 'require_name_email' ); - $aria_req = ( $req ? " aria-required='true'" : '' ); - $html_req = ( $req ? " required='required'" : '' ); - $html5 = 'html5' === $args['format']; - $fields = array( - 'author' => '

    ' . ' ' . - '

    ', - 'email' => '', - 'url' => '

    ' . - '

    ', - ); - - $required_text = sprintf( ' ' . __('Required fields are marked %s'), '*' ); - - /** - * Filter the default comment form fields. - * - * @since 3.0.0 - * - * @param array $fields The default comment fields. - */ - $fields = apply_filters( 'comment_form_default_fields', $fields ); - $defaults = array( - 'fields' => $fields, - 'comment_field' => '

    ', - /** This filter is documented in wp-includes/link-template.php */ - 'must_log_in' => '', - /** This filter is documented in wp-includes/link-template.php */ - 'logged_in_as' => '

    ' . sprintf( __( 'Logged in as %2$s. Log out?' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '

    ', - 'comment_notes_before' => '

    ' . __( 'Your email address will not be published.' ) . ''. ( $req ? $required_text : '' ) . '

    ', - 'comment_notes_after' => '', - 'id_form' => 'commentform', - 'id_submit' => 'submit', - 'class_submit' => 'submit', - 'name_submit' => 'submit', - 'title_reply' => __( 'Leave a Reply' ), - 'title_reply_to' => __( 'Leave a Reply to %s' ), - 'cancel_reply_link' => __( 'Cancel reply' ), - 'label_submit' => __( 'Post Comment' ), - 'submit_button' => '', - 'submit_field' => '

    %1$s %2$s

    ', - 'format' => 'xhtml', - ); - - /** - * Filter the comment form default arguments. - * - * Use 'comment_form_default_fields' to filter the comment fields. - * - * @since 3.0.0 - * - * @param array $defaults The default comment form arguments. - */ - $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); - - // Ensure that the filtered args contain all required default values. - $args = array_merge( $defaults, $args ); - - if ( comments_open( $post_id ) ) : ?> - -
    -

    - - - - -
    > - - - - - - - $field ) { - /** - * Filter a comment form field for display. - * - * The dynamic portion of the filter hook, `$name`, refers to the name - * of the comment form field. Such as 'author', 'email', or 'url'. - * - * @since 3.0.0 - * - * @param string $field The HTML-formatted output of the comment form field. - */ - echo apply_filters( "comment_form_field_{$name}", $field ) . "\n"; - } - /** - * Fires after the comment fields in the comment form. - * - * @since 3.0.0 - */ - do_action( 'comment_form_after_fields' ); - ?> - - - - - tag. - * - * @since 1.5.0 - * - * @param int $post_id The post ID. - */ - do_action( 'comment_form', $post_id ); - ?> -
    - -
    - ]*href/i', $comment, $out ); - - /** - * Filter the maximum number of links allowed in a comment. - * - * @since 3.0.0 - * - * @param int $num_links The number of links allowed. - * @param string $url Comment author's URL. Included in allowed links total. - */ - $num_links = apply_filters( 'comment_max_links_url', $num_links, $url ); - - /* - * If the number of links in the comment exceeds the allowed amount, - * fail the check by returning false. - */ - if ( $num_links >= $max_links ) - return false; - } - - $mod_keys = trim(get_option('moderation_keys')); - - // If moderation 'keys' (keywords) are set, process them. - if ( !empty($mod_keys) ) { - $words = explode("\n", $mod_keys ); - - foreach ( (array) $words as $word) { - $word = trim($word); - - // Skip empty lines. - if ( empty($word) ) - continue; - - /* - * Do some escaping magic so that '#' (number of) characters in the spam - * words don't break things: - */ - $word = preg_quote($word, '#'); - - /* - * Check the comment fields for moderation keywords. If any are found, - * fail the check for the given field by returning false. - */ - $pattern = "#$word#i"; - if ( preg_match($pattern, $author) ) return false; - if ( preg_match($pattern, $email) ) return false; - if ( preg_match($pattern, $url) ) return false; - if ( preg_match($pattern, $comment) ) return false; - if ( preg_match($pattern, $user_ip) ) return false; - if ( preg_match($pattern, $user_agent) ) return false; - } - } - - /* - * Check if the option to approve comments by previously-approved authors is enabled. - * - * If it is enabled, check whether the comment author has a previously-approved comment, - * as well as whether there are any moderation keywords (if set) present in the author - * email address. If both checks pass, return true. Otherwise, return false. - */ - if ( 1 == get_option('comment_whitelist')) { - if ( 'trackback' != $comment_type && 'pingback' != $comment_type && $author != '' && $email != '' ) { - // expected_slashed ($author, $email) - $ok_to_comment = $wpdb->get_var("SELECT comment_approved FROM $wpdb->comments WHERE comment_author = '$author' AND comment_author_email = '$email' and comment_approved = '1' LIMIT 1"); - if ( ( 1 == $ok_to_comment ) && - ( empty($mod_keys) || false === strpos( $email, $mod_keys) ) ) - return true; - else - return false; - } else { - return false; - } - } - return true; -} - -/** - * Retrieve the approved comments for post $post_id. - * - * @since 2.0.0 - * @since 4.1.0 Refactored to leverage {@see WP_Comment_Query} over a direct query. - * - * @param int $post_id The ID of the post. - * @param array $args Optional. See {@see WP_Comment_Query::query()} for information - * on accepted arguments. - * @return int|array $comments The approved comments, or number of comments if `$count` - * argument is true. - */ -function get_approved_comments( $post_id, $args = array() ) { - if ( ! $post_id ) { - return array(); - } - - $defaults = array( - 'status' => 1, - 'post_id' => $post_id, - 'order' => 'ASC', - ); - $r = wp_parse_args( $args, $defaults ); - - $query = new WP_Comment_Query; - return $query->query( $r ); -} - -/** - * Retrieves comment data given a comment ID or comment object. - * - * If an object is passed then the comment data will be cached and then returned - * after being passed through a filter. If the comment is empty, then the global - * comment variable will be used, if it is set. - * - * @since 2.0.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * @global object $comment - * - * @param object|string|int $comment Comment to retrieve. - * @param string $output Optional. OBJECT or ARRAY_A or ARRAY_N constants. - * @return object|array|null Depends on $output value. - */ -function get_comment(&$comment, $output = OBJECT) { - global $wpdb; - - if ( empty($comment) ) { - if ( isset($GLOBALS['comment']) ) - $_comment = & $GLOBALS['comment']; - else - $_comment = null; - } elseif ( is_object($comment) ) { - wp_cache_add($comment->comment_ID, $comment, 'comment'); - $_comment = $comment; - } else { - if ( isset($GLOBALS['comment']) && ($GLOBALS['comment']->comment_ID == $comment) ) { - $_comment = & $GLOBALS['comment']; - } elseif ( ! $_comment = wp_cache_get($comment, 'comment') ) { - $_comment = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_ID = %d LIMIT 1", $comment)); - if ( ! $_comment ) - return null; - wp_cache_add($_comment->comment_ID, $_comment, 'comment'); - } - } - - /** - * Fires after a comment is retrieved. - * - * @since 2.3.0 - * - * @param mixed $_comment Comment data. - */ - $_comment = apply_filters( 'get_comment', $_comment ); - - if ( $output == OBJECT ) { - return $_comment; - } elseif ( $output == ARRAY_A ) { - $__comment = get_object_vars($_comment); - return $__comment; - } elseif ( $output == ARRAY_N ) { - $__comment = array_values(get_object_vars($_comment)); - return $__comment; - } else { - return $_comment; - } -} - -/** - * Retrieve a list of comments. - * - * The comment list can be for the blog as a whole or for an individual post. - * - * @since 2.7.0 - * - * @param string|array $args Optional. Array or string of arguments. See {@see WP_Comment_Query::parse_query()} - * for information on accepted arguments. Default empty. - * @return int|array List of comments or number of found comments if `$count` argument is true. - */ -function get_comments( $args = '' ) { - $query = new WP_Comment_Query; - return $query->query( $args ); -} - -/** - * WordPress Comment Query class. - * - * See WP_Comment_Query::__construct() for accepted arguments. - * - * @since 3.1.0 - */ -class WP_Comment_Query { - /** - * SQL for database query. - * - * @since 4.0.1 - * @access public - * @var string - */ - public $request; - - /** - * Metadata query container - * - * @since 3.5.0 - * @access public - * @var object WP_Meta_Query - */ - public $meta_query = false; - - /** - * Date query container - * - * @since 3.7.0 - * @access public - * @var object WP_Date_Query - */ - public $date_query = false; - - /** - * Query vars set by the user. - * - * @since 3.1.0 - * @access public - * @var array - */ - public $query_vars; - - /** - * Default values for query vars. - * - * @since 4.2.0 - * @access public - * @var array - */ - public $query_var_defaults; - - /** - * List of comments located by the query. - * - * @since 4.0.0 - * @access public - * @var array - */ - public $comments; - - /** - * Make private/protected methods readable for backwards compatibility. - * - * @since 4.0.0 - * @access public - * - * @param callable $name Method to call. - * @param array $arguments Arguments to pass when calling. - * @return mixed|false Return value of the callback, false otherwise. - */ - public function __call( $name, $arguments ) { - if ( 'get_search_sql' === $name ) { - return call_user_func_array( array( $this, $name ), $arguments ); - } - return false; - } - - /** - * Constructor. - * - * Sets up the comment query, based on the query vars passed. - * - * @since 4.2.0 - * @access public - * - * @param string|array $query { - * Optional. Array or query string of comment query parameters. Default empty. - * - * @type string $author_email Comment author email address. Default empty. - * @type array $author__in Array of author IDs to include comments for. Default empty. - * @type array $author__not_in Array of author IDs to exclude comments for. Default empty. - * @type array $comment__in Array of comment IDs to include. Default empty. - * @type array $comment__not_in Array of comment IDs to exclude. Default empty. - * @type bool $count Whether to return a comment count (true) or array of comment - * objects (false). Default false. - * @type array $date_query Date query clauses to limit comments by. See WP_Date_Query. - * Default null. - * @type string $fields Comment fields to return. Accepts 'ids' for comment IDs only or - * empty for all fields. Default empty. - * @type int $ID Currently unused. - * @type array $include_unapproved Array of IDs or email addresses of users whose unapproved comments - * will be returned by the query regardless of `$status`. Default empty. - * @type int $karma Karma score to retrieve matching comments for. Default empty. - * @type string $meta_key Include comments with a matching comment meta key. Default empty. - * @type string $meta_value Include comments with a matching comment meta value. Requires - * `$meta_key` to be set. Default empty. - * @type array $meta_query Meta query clauses to limit retrieved comments by. - * See WP_Meta_Query. Default empty. - * @type int $number Maximum number of comments to retrieve. Default null (no limit). - * @type int $offset Number of comments to offset the query. Used to build LIMIT clause. - * Default 0. - * @type string|array $orderby Comment status or array of statuses. To use 'meta_value' or - * 'meta_value_num', `$meta_key` must also be defined. To sort by - * a specific `$meta_query` clause, use that clause's array key. - * Accepts 'comment_agent', 'comment_approved', 'comment_author', - * 'comment_author_email', 'comment_author_IP', - * 'comment_author_url', 'comment_content', 'comment_date', - * 'comment_date_gmt', 'comment_ID', 'comment_karma', - * 'comment_parent', 'comment_post_ID', 'comment_type', 'user_id', - * 'meta_value', 'meta_value_num', the value of $meta_key, and the - * array keys of `$meta_query`. Also accepts false, an empty array, - * or 'none' to disable `ORDER BY` clause. - * Default: 'comment_date_gmt'. - * @type string $order How to order retrieved comments. Accepts 'ASC', 'DESC'. - * Default: 'DESC'. - * @type int $parent Parent ID of comment to retrieve children of. Default empty. - * @type array $post_author__in Array of author IDs to retrieve comments for. Default empty. - * @type array $post_author__not_in Array of author IDs *not* to retrieve comments for. Default empty. - * @type int $post_ID Currently unused. - * @type int $post_id Limit results to those affiliated with a given post ID. Default 0. - * @type array $post__in Array of post IDs to include affiliated comments for. Default empty. - * @type array $post__not_in Array of post IDs to exclude affiliated comments for. Default empty. - * @type int $post_author Comment author ID to limit results by. Default empty. - * @type string $post_status Post status to retrieve affiliated comments for. Default empty. - * @type string $post_type Post type to retrieve affiliated comments for. Default empty. - * @type string $post_name Post name to retrieve affiliated comments for. Default empty. - * @type int $post_parent Post parent ID to retrieve affiliated comments for. Default empty. - * @type string $search Search term(s) to retrieve matching comments for. Default empty. - * @type string $status Comment status to limit results by. Accepts 'hold' - * (`comment_status=0`), 'approve' (`comment_status=1`), 'all', or a - * custom comment status. Default 'all'. - * @type string|array $type Include comments of a given type, or array of types. Accepts - * 'comment', 'pings' (includes 'pingback' and 'trackback'), or any - * custom type string. Default empty. - * @type array $type__in Include comments from a given array of comment types. Default empty. - * @type array $type__not_in Exclude comments from a given array of comment types. Default empty. - * @type int $user_id Include comments for a specific user ID. Default empty. - * } - */ - public function __construct( $query = '' ) { - $this->query_var_defaults = array( - 'author_email' => '', - 'author__in' => '', - 'author__not_in' => '', - 'include_unapproved' => '', - 'fields' => '', - 'ID' => '', - 'comment__in' => '', - 'comment__not_in' => '', - 'karma' => '', - 'number' => '', - 'offset' => '', - 'orderby' => '', - 'order' => 'DESC', - 'parent' => '', - 'post_author__in' => '', - 'post_author__not_in' => '', - 'post_ID' => '', - 'post_id' => 0, - 'post__in' => '', - 'post__not_in' => '', - 'post_author' => '', - 'post_name' => '', - 'post_parent' => '', - 'post_status' => '', - 'post_type' => '', - 'status' => 'all', - 'type' => '', - 'type__in' => '', - 'type__not_in' => '', - 'user_id' => '', - 'search' => '', - 'count' => false, - 'meta_key' => '', - 'meta_value' => '', - 'meta_query' => '', - 'date_query' => null, // See WP_Date_Query - ); - - if ( ! empty( $query ) ) { - $this->query( $query ); - } - } - - /** - * Parse arguments passed to the comment query with default query parameters. - * - * @since 4.2.0 Extracted from WP_Comment_Query::query(). - * - * @access public - * - * @param string|array $query WP_Comment_Query arguments. See WP_Comment_Query::__construct() - */ - public function parse_query( $query = '' ) { - if ( empty( $query ) ) { - $query = $this->query_vars; - } - - $this->query_vars = wp_parse_args( $query, $this->query_var_defaults ); - do_action_ref_array( 'parse_comment_query', array( &$this ) ); - } - - /** - * Sets up the WordPress query for retrieving comments. - * - * @since 3.1.0 - * @since 4.1.0 Introduced 'comment__in', 'comment__not_in', 'post_author__in', - * 'post_author__not_in', 'author__in', 'author__not_in', 'post__in', - * 'post__not_in', 'include_unapproved', 'type__in', and 'type__not_in' - * arguments to $query_vars. - * @since 4.2.0 Moved parsing to WP_Comment_Query::parse_query(). - * @access public - * - * @param string|array $query Array or URL query string of parameters. - * @return array|int List of comments, or number of comments when 'count' is passed as a query var. - */ - public function query( $query ) { - $this->query_vars = wp_parse_args( $query ); - return $this->get_comments(); - } - - /** - * Get a list of comments matching the query vars. - * - * @since 4.2.0 - * @access public - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @return int|array The list of comments. - */ - public function get_comments() { - global $wpdb; - - $groupby = ''; - - $this->parse_query(); - - // Parse meta query - $this->meta_query = new WP_Meta_Query(); - $this->meta_query->parse_query_vars( $this->query_vars ); - - /** - * Fires before comments are retrieved. - * - * @since 3.1.0 - * - * @param WP_Comment_Query &$this Current instance of WP_Comment_Query, passed by reference. - */ - do_action_ref_array( 'pre_get_comments', array( &$this ) ); - - // Reparse query vars, in case they were modified in a 'pre_get_comments' callback. - $this->meta_query->parse_query_vars( $this->query_vars ); - if ( ! empty( $this->meta_query->queries ) ) { - $meta_query_clauses = $this->meta_query->get_sql( 'comment', $wpdb->comments, 'comment_ID', $this ); - } - - // $args can include anything. Only use the args defined in the query_var_defaults to compute the key. - $key = md5( serialize( wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) ) ) ); - $last_changed = wp_cache_get( 'last_changed', 'comment' ); - if ( ! $last_changed ) { - $last_changed = microtime(); - wp_cache_set( 'last_changed', $last_changed, 'comment' ); - } - $cache_key = "get_comments:$key:$last_changed"; - - if ( $cache = wp_cache_get( $cache_key, 'comment' ) ) { - $this->comments = $cache; - return $this->comments; - } - - $where = array(); - - // Assemble clauses related to 'comment_approved'. - $approved_clauses = array(); - - // 'status' accepts an array or a comma-separated string. - $status_clauses = array(); - $statuses = $this->query_vars['status']; - if ( ! is_array( $statuses ) ) { - $statuses = preg_split( '/[\s,]+/', $statuses ); - } - - // 'any' overrides other statuses. - if ( ! in_array( 'any', $statuses ) ) { - foreach ( $statuses as $status ) { - switch ( $status ) { - case 'hold' : - $status_clauses[] = "comment_approved = '0'"; - break; - - case 'approve' : - $status_clauses[] = "comment_approved = '1'"; - break; - - case 'all' : - case '' : - $status_clauses[] = "( comment_approved = '0' OR comment_approved = '1' )"; - break; - - default : - $status_clauses[] = $wpdb->prepare( "comment_approved = %s", $status ); - break; - } - } - - if ( ! empty( $status_clauses ) ) { - $approved_clauses[] = '( ' . implode( ' OR ', $status_clauses ) . ' )'; - } - } - - // User IDs or emails whose unapproved comments are included, regardless of $status. - if ( ! empty( $this->query_vars['include_unapproved'] ) ) { - $include_unapproved = $this->query_vars['include_unapproved']; - - // Accepts arrays or comma-separated strings. - if ( ! is_array( $include_unapproved ) ) { - $include_unapproved = preg_split( '/[\s,]+/', $include_unapproved ); - } - - $unapproved_ids = $unapproved_emails = array(); - foreach ( $include_unapproved as $unapproved_identifier ) { - // Numeric values are assumed to be user ids. - if ( is_numeric( $unapproved_identifier ) ) { - $approved_clauses[] = $wpdb->prepare( "( user_id = %d AND comment_approved = '0' )", $unapproved_identifier ); - - // Otherwise we match against email addresses. - } else { - $approved_clauses[] = $wpdb->prepare( "( comment_author_email = %s AND comment_approved = '0' )", $unapproved_identifier ); - } - } - } - - // Collapse comment_approved clauses into a single OR-separated clause. - if ( ! empty( $approved_clauses ) ) { - if ( 1 === count( $approved_clauses ) ) { - $where[] = $approved_clauses[0]; - } else { - $where[] = '( ' . implode( ' OR ', $approved_clauses ) . ' )'; - } - } - - $order = ( 'ASC' == strtoupper( $this->query_vars['order'] ) ) ? 'ASC' : 'DESC'; - - // Disable ORDER BY with 'none', an empty array, or boolean false. - if ( in_array( $this->query_vars['orderby'], array( 'none', array(), false ), true ) ) { - $orderby = ''; - } elseif ( ! empty( $this->query_vars['orderby'] ) ) { - $ordersby = is_array( $this->query_vars['orderby'] ) ? - $this->query_vars['orderby'] : - preg_split( '/[,\s]/', $this->query_vars['orderby'] ); - - $orderby_array = array(); - $found_orderby_comment_ID = false; - foreach ( $ordersby as $_key => $_value ) { - if ( ! $_value ) { - continue; - } - - if ( is_int( $_key ) ) { - $_orderby = $_value; - $_order = $order; - } else { - $_orderby = $_key; - $_order = $_value; - } - - if ( ! $found_orderby_comment_ID && 'comment_ID' === $_orderby ) { - $found_orderby_comment_ID = true; - } - - $parsed = $this->parse_orderby( $_orderby ); - - if ( ! $parsed ) { - continue; - } - - $orderby_array[] = $parsed . ' ' . $this->parse_order( $_order ); - } - - // If no valid clauses were found, order by comment_date_gmt. - if ( empty( $orderby_array ) ) { - $orderby_array[] = "$wpdb->comments.comment_date_gmt $order"; - } - - // To ensure determinate sorting, always include a comment_ID clause. - if ( ! $found_orderby_comment_ID ) { - $comment_ID_order = ''; - - // Inherit order from comment_date or comment_date_gmt, if available. - foreach ( $orderby_array as $orderby_clause ) { - if ( preg_match( '/comment_date(?:_gmt)*\ (ASC|DESC)/', $orderby_clause, $match ) ) { - $comment_ID_order = $match[1]; - break; - } - } - - // If no date-related order is available, use the date from the first available clause. - if ( ! $comment_ID_order ) { - foreach ( $orderby_array as $orderby_clause ) { - if ( false !== strpos( 'ASC', $orderby_clause ) ) { - $comment_ID_order = 'ASC'; - } else { - $comment_ID_order = 'DESC'; - } - - break; - } - } - - // Default to DESC. - if ( ! $comment_ID_order ) { - $comment_ID_order = 'DESC'; - } - - $orderby_array[] = "$wpdb->comments.comment_ID $comment_ID_order"; - } - - $orderby = implode( ', ', $orderby_array ); - } else { - $orderby = "$wpdb->comments.comment_date_gmt $order"; - } - - $number = absint( $this->query_vars['number'] ); - $offset = absint( $this->query_vars['offset'] ); - - if ( ! empty( $number ) ) { - if ( $offset ) { - $limits = 'LIMIT ' . $offset . ',' . $number; - } else { - $limits = 'LIMIT ' . $number; - } - } else { - $limits = ''; - } - - if ( $this->query_vars['count'] ) { - $fields = 'COUNT(*)'; - } else { - switch ( strtolower( $this->query_vars['fields'] ) ) { - case 'ids': - $fields = "$wpdb->comments.comment_ID"; - break; - default: - $fields = "*"; - break; - } - } - - $join = ''; - - $post_id = absint( $this->query_vars['post_id'] ); - if ( ! empty( $post_id ) ) { - $where[] = $wpdb->prepare( 'comment_post_ID = %d', $post_id ); - } - - // Parse comment IDs for an IN clause. - if ( ! empty( $this->query_vars['comment__in'] ) ) { - $where[] = "$wpdb->comments.comment_ID IN ( " . implode( ',', wp_parse_id_list( $this->query_vars['comment__in'] ) ) . ' )'; - } - - // Parse comment IDs for a NOT IN clause. - if ( ! empty( $this->query_vars['comment__not_in'] ) ) { - $where[] = "$wpdb->comments.comment_ID NOT IN ( " . implode( ',', wp_parse_id_list( $this->query_vars['comment__not_in'] ) ) . ' )'; - } - - // Parse comment post IDs for an IN clause. - if ( ! empty( $this->query_vars['post__in'] ) ) { - $where[] = 'comment_post_ID IN ( ' . implode( ',', wp_parse_id_list( $this->query_vars['post__in'] ) ) . ' )'; - } - - // Parse comment post IDs for a NOT IN clause. - if ( ! empty( $this->query_vars['post__not_in'] ) ) { - $where[] = 'comment_post_ID NOT IN ( ' . implode( ',', wp_parse_id_list( $this->query_vars['post__not_in'] ) ) . ' )'; - } - - if ( '' !== $this->query_vars['author_email'] ) { - $where[] = $wpdb->prepare( 'comment_author_email = %s', $this->query_vars['author_email'] ); - } - - if ( '' !== $this->query_vars['karma'] ) { - $where[] = $wpdb->prepare( 'comment_karma = %d', $this->query_vars['karma'] ); - } - - // Filtering by comment_type: 'type', 'type__in', 'type__not_in'. - $raw_types = array( - 'IN' => array_merge( (array) $this->query_vars['type'], (array) $this->query_vars['type__in'] ), - 'NOT IN' => (array) $this->query_vars['type__not_in'], - ); - - $comment_types = array(); - foreach ( $raw_types as $operator => $_raw_types ) { - $_raw_types = array_unique( $_raw_types ); - - foreach ( $_raw_types as $type ) { - switch ( $type ) { - // An empty translates to 'all', for backward compatibility - case '': - case 'all' : - break; - - case 'comment': - case 'comments': - $comment_types[ $operator ][] = "''"; - break; - - case 'pings': - $comment_types[ $operator ][] = "'pingback'"; - $comment_types[ $operator ][] = "'trackback'"; - break; - - default: - $comment_types[ $operator ][] = $wpdb->prepare( '%s', $type ); - break; - } - } - - if ( ! empty( $comment_types[ $operator ] ) ) { - $types_sql = implode( ', ', $comment_types[ $operator ] ); - $where[] = "comment_type $operator ($types_sql)"; - } - } - - if ( '' !== $this->query_vars['parent'] ) { - $where[] = $wpdb->prepare( 'comment_parent = %d', $this->query_vars['parent'] ); - } - - if ( is_array( $this->query_vars['user_id'] ) ) { - $where[] = 'user_id IN (' . implode( ',', array_map( 'absint', $this->query_vars['user_id'] ) ) . ')'; - } elseif ( '' !== $this->query_vars['user_id'] ) { - $where[] = $wpdb->prepare( 'user_id = %d', $this->query_vars['user_id'] ); - } - - if ( '' !== $this->query_vars['search'] ) { - $search_sql = $this->get_search_sql( - $this->query_vars['search'], - array( 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_author_IP', 'comment_content' ) - ); - - // Strip leading 'AND'. - $where[] = preg_replace( '/^\s*AND\s*/', '', $search_sql ); - } - - // If any post-related query vars are passed, join the posts table. - $join_posts_table = false; - $plucked = wp_array_slice_assoc( $this->query_vars, array( 'post_author', 'post_name', 'post_parent', 'post_status', 'post_type' ) ); - $post_fields = array_filter( $plucked ); - - if ( ! empty( $post_fields ) ) { - $join_posts_table = true; - foreach ( $post_fields as $field_name => $field_value ) { - // $field_value may be an array. - $esses = array_fill( 0, count( (array) $field_value ), '%s' ); - $where[] = $wpdb->prepare( " {$wpdb->posts}.{$field_name} IN (" . implode( ',', $esses ) . ')', $field_value ); - } - } - - // Comment author IDs for an IN clause. - if ( ! empty( $this->query_vars['author__in'] ) ) { - $where[] = 'user_id IN ( ' . implode( ',', wp_parse_id_list( $this->query_vars['author__in'] ) ) . ' )'; - } - - // Comment author IDs for a NOT IN clause. - if ( ! empty( $this->query_vars['author__not_in'] ) ) { - $where[] = 'user_id NOT IN ( ' . implode( ',', wp_parse_id_list( $this->query_vars['author__not_in'] ) ) . ' )'; - } - - // Post author IDs for an IN clause. - if ( ! empty( $this->query_vars['post_author__in'] ) ) { - $join_posts_table = true; - $where[] = 'post_author IN ( ' . implode( ',', wp_parse_id_list( $this->query_vars['post_author__in'] ) ) . ' )'; - } - - // Post author IDs for a NOT IN clause. - if ( ! empty( $this->query_vars['post_author__not_in'] ) ) { - $join_posts_table = true; - $where[] = 'post_author NOT IN ( ' . implode( ',', wp_parse_id_list( $this->query_vars['post_author__not_in'] ) ) . ' )'; - } - - if ( $join_posts_table ) { - $join = "JOIN $wpdb->posts ON $wpdb->posts.ID = $wpdb->comments.comment_post_ID"; - } - - if ( ! empty( $meta_query_clauses ) ) { - $join .= $meta_query_clauses['join']; - - // Strip leading 'AND'. - $where[] = preg_replace( '/^\s*AND\s*/', '', $meta_query_clauses['where'] ); - - if ( ! $this->query_vars['count'] ) { - $groupby = "{$wpdb->comments}.comment_ID"; - } - } - - $date_query = $this->query_vars['date_query']; - if ( ! empty( $date_query ) && is_array( $date_query ) ) { - $date_query_object = new WP_Date_Query( $date_query, 'comment_date' ); - $where[] = preg_replace( '/^\s*AND\s*/', '', $date_query_object->get_sql() ); - } - - $where = implode( ' AND ', $where ); - - $pieces = array( 'fields', 'join', 'where', 'orderby', 'limits', 'groupby' ); - /** - * Filter the comment query clauses. - * - * @since 3.1.0 - * - * @param array $pieces A compacted array of comment query clauses. - * @param WP_Comment_Query &$this Current instance of WP_Comment_Query, passed by reference. - */ - $clauses = apply_filters_ref_array( 'comments_clauses', array( compact( $pieces ), &$this ) ); - - $fields = isset( $clauses[ 'fields' ] ) ? $clauses[ 'fields' ] : ''; - $join = isset( $clauses[ 'join' ] ) ? $clauses[ 'join' ] : ''; - $where = isset( $clauses[ 'where' ] ) ? $clauses[ 'where' ] : ''; - $orderby = isset( $clauses[ 'orderby' ] ) ? $clauses[ 'orderby' ] : ''; - $limits = isset( $clauses[ 'limits' ] ) ? $clauses[ 'limits' ] : ''; - $groupby = isset( $clauses[ 'groupby' ] ) ? $clauses[ 'groupby' ] : ''; - - if ( $where ) { - $where = 'WHERE ' . $where; - } - - if ( $groupby ) { - $groupby = 'GROUP BY ' . $groupby; - } - - if ( $orderby ) { - $orderby = "ORDER BY $orderby"; - } - - $this->request = "SELECT $fields FROM $wpdb->comments $join $where $groupby $orderby $limits"; - - if ( $this->query_vars['count'] ) { - return $wpdb->get_var( $this->request ); - } - - if ( 'ids' == $this->query_vars['fields'] ) { - $this->comments = $wpdb->get_col( $this->request ); - return array_map( 'intval', $this->comments ); - } - - $results = $wpdb->get_results( $this->request ); - /** - * Filter the comment query results. - * - * @since 3.1.0 - * - * @param array $results An array of comments. - * @param WP_Comment_Query &$this Current instance of WP_Comment_Query, passed by reference. - */ - $comments = apply_filters_ref_array( 'the_comments', array( $results, &$this ) ); - - wp_cache_add( $cache_key, $comments, 'comment' ); - if ( '*' === $fields ) { - update_comment_cache( $comments ); - } - - $this->comments = $comments; - return $this->comments; - } - - /** - * Used internally to generate an SQL string for searching across multiple columns - * - * @since 3.1.0 - * @access protected - * - * @global wpdb $wpdb - * - * @param string $string - * @param array $cols - * @return string - */ - protected function get_search_sql( $string, $cols ) { - global $wpdb; - - $like = '%' . $wpdb->esc_like( $string ) . '%'; - - $searches = array(); - foreach ( $cols as $col ) { - $searches[] = $wpdb->prepare( "$col LIKE %s", $like ); - } - - return ' AND (' . implode(' OR ', $searches) . ')'; - } - - /** - * Parse and sanitize 'orderby' keys passed to the comment query. - * - * @since 4.2.0 - * @access protected - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param string $orderby Alias for the field to order by. - * @return string|false Value to used in the ORDER clause. False otherwise. - */ - protected function parse_orderby( $orderby ) { - global $wpdb; - - $allowed_keys = array( - 'comment_agent', - 'comment_approved', - 'comment_author', - 'comment_author_email', - 'comment_author_IP', - 'comment_author_url', - 'comment_content', - 'comment_date', - 'comment_date_gmt', - 'comment_ID', - 'comment_karma', - 'comment_parent', - 'comment_post_ID', - 'comment_type', - 'user_id', - ); - - if ( ! empty( $this->query_vars['meta_key'] ) ) { - $allowed_keys[] = $this->query_vars['meta_key']; - $allowed_keys[] = 'meta_value'; - $allowed_keys[] = 'meta_value_num'; - } - - $meta_query_clauses = $this->meta_query->get_clauses(); - if ( $meta_query_clauses ) { - $allowed_keys = array_merge( $allowed_keys, array_keys( $meta_query_clauses ) ); - } - - $parsed = false; - if ( $orderby == $this->query_vars['meta_key'] || $orderby == 'meta_value' ) { - $parsed = "$wpdb->commentmeta.meta_value"; - } elseif ( $orderby == 'meta_value_num' ) { - $parsed = "$wpdb->commentmeta.meta_value+0"; - } elseif ( in_array( $orderby, $allowed_keys ) ) { - - if ( isset( $meta_query_clauses[ $orderby ] ) ) { - $meta_clause = $meta_query_clauses[ $orderby ]; - $parsed = sprintf( "CAST(%s.meta_value AS %s)", esc_sql( $meta_clause['alias'] ), esc_sql( $meta_clause['cast'] ) ); - } else { - $parsed = "$wpdb->comments.$orderby"; - } - } - - return $parsed; - } - - /** - * Parse an 'order' query variable and cast it to ASC or DESC as necessary. - * - * @since 4.2.0 - * @access protected - * - * @param string $order The 'order' query variable. - * @return string The sanitized 'order' query variable. - */ - protected function parse_order( $order ) { - if ( ! is_string( $order ) || empty( $order ) ) { - return 'DESC'; - } - - if ( 'ASC' === strtoupper( $order ) ) { - return 'ASC'; - } else { - return 'DESC'; - } - } -} - -/** - * Retrieve all of the WordPress supported comment statuses. - * - * Comments have a limited set of valid status values, this provides the comment - * status values and descriptions. - * - * @since 2.7.0 - * - * @return array List of comment statuses. - */ -function get_comment_statuses() { - $status = array( - 'hold' => __('Unapproved'), - /* translators: comment status */ - 'approve' => _x('Approved', 'adjective'), - /* translators: comment status */ - 'spam' => _x('Spam', 'adjective'), - ); - - return $status; -} - -/** - * Gets the default comment status for a post type. - * - * @since 4.3.0 - * - * @param string $post_type Optional. Post type. Default 'post'. - * @param string $comment_type Optional. Comment type. Default 'comment'. - * @return string Expected return value is 'open' or 'closed'. - */ -function get_default_comment_status( $post_type = 'post', $comment_type = 'comment' ) { - switch ( $comment_type ) { - case 'pingback' : - case 'trackback' : - $supports = 'trackbacks'; - $option = 'ping'; - break; - default : - $supports = 'comments'; - $option = 'comment'; - } - - // Set the status. - if ( 'page' === $post_type ) { - $status = 'closed'; - } elseif ( post_type_supports( $post_type, $supports ) ) { - $status = get_option( "default_{$option}_status" ); - } else { - $status = 'closed'; - } - - /** - * Filter the default comment status for the given post type. - * - * @since 4.3.0 - * - * @param string $status Default status for the given post type, - * either 'open' or 'closed'. - * @param string $post_type Post type. Default is `post`. - * @param string $comment_type Type of comment. Default is `comment`. - */ - return apply_filters( 'get_default_comment_status' , $status, $post_type, $comment_type ); -} - -/** - * The date the last comment was modified. - * - * @since 1.5.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * @staticvar array $cache_lastcommentmodified - * - * @param string $timezone Which timezone to use in reference to 'gmt', 'blog', - * or 'server' locations. - * @return string Last comment modified date. - */ -function get_lastcommentmodified($timezone = 'server') { - global $wpdb; - static $cache_lastcommentmodified = array(); - - if ( isset($cache_lastcommentmodified[$timezone]) ) - return $cache_lastcommentmodified[$timezone]; - - $add_seconds_server = date('Z'); - - switch ( strtolower($timezone)) { - case 'gmt': - $lastcommentmodified = $wpdb->get_var("SELECT comment_date_gmt FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 1"); - break; - case 'blog': - $lastcommentmodified = $wpdb->get_var("SELECT comment_date FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 1"); - break; - case 'server': - $lastcommentmodified = $wpdb->get_var($wpdb->prepare("SELECT DATE_ADD(comment_date_gmt, INTERVAL %s SECOND) FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 1", $add_seconds_server)); - break; - } - - $cache_lastcommentmodified[$timezone] = $lastcommentmodified; - - return $lastcommentmodified; -} - -/** - * The amount of comments in a post or total comments. - * - * A lot like {@link wp_count_comments()}, in that they both return comment - * stats (albeit with different types). The {@link wp_count_comments()} actual - * caches, but this function does not. - * - * @since 2.0.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param int $post_id Optional. Comment amount in post if > 0, else total comments blog wide. - * @return array The amount of spam, approved, awaiting moderation, and total comments. - */ -function get_comment_count( $post_id = 0 ) { - global $wpdb; - - $post_id = (int) $post_id; - - $where = ''; - if ( $post_id > 0 ) { - $where = $wpdb->prepare("WHERE comment_post_ID = %d", $post_id); - } - - $totals = (array) $wpdb->get_results(" - SELECT comment_approved, COUNT( * ) AS total - FROM {$wpdb->comments} - {$where} - GROUP BY comment_approved - ", ARRAY_A); - - $comment_count = array( - "approved" => 0, - "awaiting_moderation" => 0, - "spam" => 0, - "total_comments" => 0 - ); - - foreach ( $totals as $row ) { - switch ( $row['comment_approved'] ) { - case 'spam': - $comment_count['spam'] = $row['total']; - $comment_count["total_comments"] += $row['total']; - break; - case 1: - $comment_count['approved'] = $row['total']; - $comment_count['total_comments'] += $row['total']; - break; - case 0: - $comment_count['awaiting_moderation'] = $row['total']; - $comment_count['total_comments'] += $row['total']; - break; - default: - break; - } - } - - return $comment_count; -} - -// -// Comment meta functions -// - -/** - * Add meta data field to a comment. - * - * @since 2.9.0 - * @link https://codex.wordpress.org/Function_Reference/add_comment_meta - * - * @param int $comment_id Comment ID. - * @param string $meta_key Metadata name. - * @param mixed $meta_value Metadata value. - * @param bool $unique Optional, default is false. Whether the same key should not be added. - * @return int|bool Meta ID on success, false on failure. - */ -function add_comment_meta($comment_id, $meta_key, $meta_value, $unique = false) { - return add_metadata('comment', $comment_id, $meta_key, $meta_value, $unique); -} - -/** - * Remove metadata matching criteria from a comment. - * - * You can match based on the key, or key and value. Removing based on key and - * value, will keep from removing duplicate metadata with the same key. It also - * allows removing all metadata matching key, if needed. - * - * @since 2.9.0 - * @link https://codex.wordpress.org/Function_Reference/delete_comment_meta - * - * @param int $comment_id comment ID - * @param string $meta_key Metadata name. - * @param mixed $meta_value Optional. Metadata value. - * @return bool True on success, false on failure. - */ -function delete_comment_meta($comment_id, $meta_key, $meta_value = '') { - return delete_metadata('comment', $comment_id, $meta_key, $meta_value); -} - -/** - * Retrieve comment meta field for a comment. - * - * @since 2.9.0 - * @link https://codex.wordpress.org/Function_Reference/get_comment_meta - * - * @param int $comment_id Comment ID. - * @param string $key Optional. The meta key to retrieve. By default, returns data for all keys. - * @param bool $single Whether to return a single value. - * @return mixed Will be an array if $single is false. Will be value of meta data field if $single - * is true. - */ -function get_comment_meta($comment_id, $key = '', $single = false) { - return get_metadata('comment', $comment_id, $key, $single); -} - -/** - * Update comment meta field based on comment ID. - * - * Use the $prev_value parameter to differentiate between meta fields with the - * same key and comment ID. - * - * If the meta field for the comment does not exist, it will be added. - * - * @since 2.9.0 - * @link https://codex.wordpress.org/Function_Reference/update_comment_meta - * - * @param int $comment_id Comment ID. - * @param string $meta_key Metadata key. - * @param mixed $meta_value Metadata value. - * @param mixed $prev_value Optional. Previous value to check before removing. - * @return int|bool Meta ID if the key didn't exist, true on successful update, false on failure. - */ -function update_comment_meta($comment_id, $meta_key, $meta_value, $prev_value = '') { - return update_metadata('comment', $comment_id, $meta_key, $meta_value, $prev_value); -} - -/** - * Sets the cookies used to store an unauthenticated commentator's identity. Typically used - * to recall previous comments by this commentator that are still held in moderation. - * - * @param object $comment Comment object. - * @param object $user Comment author's object. - * - * @since 3.4.0 - */ -function wp_set_comment_cookies($comment, $user) { - if ( $user->exists() ) - return; - - /** - * Filter the lifetime of the comment cookie in seconds. - * - * @since 2.8.0 - * - * @param int $seconds Comment cookie lifetime. Default 30000000. - */ - $comment_cookie_lifetime = apply_filters( 'comment_cookie_lifetime', 30000000 ); - $secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ); - setcookie( 'comment_author_' . COOKIEHASH, $comment->comment_author, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN, $secure ); - setcookie( 'comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN, $secure ); - setcookie( 'comment_author_url_' . COOKIEHASH, esc_url($comment->comment_author_url), time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN, $secure ); -} - -/** - * Sanitizes the cookies sent to the user already. - * - * Will only do anything if the cookies have already been created for the user. - * Mostly used after cookies had been sent to use elsewhere. - * - * @since 2.0.4 - */ -function sanitize_comment_cookies() { - if ( isset( $_COOKIE['comment_author_' . COOKIEHASH] ) ) { - /** - * Filter the comment author's name cookie before it is set. - * - * When this filter hook is evaluated in wp_filter_comment(), - * the comment author's name string is passed. - * - * @since 1.5.0 - * - * @param string $author_cookie The comment author name cookie. - */ - $comment_author = apply_filters( 'pre_comment_author_name', $_COOKIE['comment_author_' . COOKIEHASH] ); - $comment_author = wp_unslash($comment_author); - $comment_author = esc_attr($comment_author); - $_COOKIE['comment_author_' . COOKIEHASH] = $comment_author; - } - - if ( isset( $_COOKIE['comment_author_email_' . COOKIEHASH] ) ) { - /** - * Filter the comment author's email cookie before it is set. - * - * When this filter hook is evaluated in wp_filter_comment(), - * the comment author's email string is passed. - * - * @since 1.5.0 - * - * @param string $author_email_cookie The comment author email cookie. - */ - $comment_author_email = apply_filters( 'pre_comment_author_email', $_COOKIE['comment_author_email_' . COOKIEHASH] ); - $comment_author_email = wp_unslash($comment_author_email); - $comment_author_email = esc_attr($comment_author_email); - $_COOKIE['comment_author_email_'.COOKIEHASH] = $comment_author_email; - } - - if ( isset( $_COOKIE['comment_author_url_' . COOKIEHASH] ) ) { - /** - * Filter the comment author's URL cookie before it is set. - * - * When this filter hook is evaluated in wp_filter_comment(), - * the comment author's URL string is passed. - * - * @since 1.5.0 - * - * @param string $author_url_cookie The comment author URL cookie. - */ - $comment_author_url = apply_filters( 'pre_comment_author_url', $_COOKIE['comment_author_url_' . COOKIEHASH] ); - $comment_author_url = wp_unslash($comment_author_url); - $_COOKIE['comment_author_url_'.COOKIEHASH] = $comment_author_url; - } -} - -/** - * Validates whether this comment is allowed to be made. - * - * @since 2.0.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param array $commentdata Contains information on the comment - * @return int|string Signifies the approval status (0|1|'spam') - */ -function wp_allow_comment( $commentdata ) { - global $wpdb; - - // Simple duplicate check - // expected_slashed ($comment_post_ID, $comment_author, $comment_author_email, $comment_content) - $dupe = $wpdb->prepare( - "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_parent = %s AND comment_approved != 'trash' AND ( comment_author = %s ", - wp_unslash( $commentdata['comment_post_ID'] ), - wp_unslash( $commentdata['comment_parent'] ), - wp_unslash( $commentdata['comment_author'] ) - ); - if ( $commentdata['comment_author_email'] ) { - $dupe .= $wpdb->prepare( - "OR comment_author_email = %s ", - wp_unslash( $commentdata['comment_author_email'] ) - ); - } - $dupe .= $wpdb->prepare( - ") AND comment_content = %s LIMIT 1", - wp_unslash( $commentdata['comment_content'] ) - ); - if ( $wpdb->get_var( $dupe ) ) { - /** - * Fires immediately after a duplicate comment is detected. - * - * @since 3.0.0 - * - * @param array $commentdata Comment data. - */ - do_action( 'comment_duplicate_trigger', $commentdata ); - if ( defined( 'DOING_AJAX' ) ) { - die( __('Duplicate comment detected; it looks as though you’ve already said that!') ); - } - wp_die( __( 'Duplicate comment detected; it looks as though you’ve already said that!' ), 409 ); - } - - /** - * Fires immediately before a comment is marked approved. - * - * Allows checking for comment flooding. - * - * @since 2.3.0 - * - * @param string $comment_author_IP Comment author's IP address. - * @param string $comment_author_email Comment author's email. - * @param string $comment_date_gmt GMT date the comment was posted. - */ - do_action( - 'check_comment_flood', - $commentdata['comment_author_IP'], - $commentdata['comment_author_email'], - $commentdata['comment_date_gmt'] - ); - - if ( ! empty( $commentdata['user_id'] ) ) { - $user = get_userdata( $commentdata['user_id'] ); - $post_author = $wpdb->get_var( $wpdb->prepare( - "SELECT post_author FROM $wpdb->posts WHERE ID = %d LIMIT 1", - $commentdata['comment_post_ID'] - ) ); - } - - if ( isset( $user ) && ( $commentdata['user_id'] == $post_author || $user->has_cap( 'moderate_comments' ) ) ) { - // The author and the admins get respect. - $approved = 1; - } else { - // Everyone else's comments will be checked. - if ( check_comment( - $commentdata['comment_author'], - $commentdata['comment_author_email'], - $commentdata['comment_author_url'], - $commentdata['comment_content'], - $commentdata['comment_author_IP'], - $commentdata['comment_agent'], - $commentdata['comment_type'] - ) ) { - $approved = 1; - } else { - $approved = 0; - } - - if ( wp_blacklist_check( - $commentdata['comment_author'], - $commentdata['comment_author_email'], - $commentdata['comment_author_url'], - $commentdata['comment_content'], - $commentdata['comment_author_IP'], - $commentdata['comment_agent'] - ) ) { - $approved = 'spam'; - } - } - - /** - * Filter a comment's approval status before it is set. - * - * @since 2.1.0 - * - * @param bool|string $approved The approval status. Accepts 1, 0, or 'spam'. - * @param array $commentdata Comment data. - */ - $approved = apply_filters( 'pre_comment_approved', $approved, $commentdata ); - return $approved; -} - -/** - * Check whether comment flooding is occurring. - * - * Won't run, if current user can manage options, so to not block - * administrators. - * - * @since 2.3.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param string $ip Comment IP. - * @param string $email Comment author email address. - * @param string $date MySQL time string. - */ -function check_comment_flood_db( $ip, $email, $date ) { - global $wpdb; - if ( current_user_can( 'manage_options' ) ) - return; // don't throttle admins - $hour_ago = gmdate( 'Y-m-d H:i:s', time() - HOUR_IN_SECONDS ); - if ( $lasttime = $wpdb->get_var( $wpdb->prepare( "SELECT `comment_date_gmt` FROM `$wpdb->comments` WHERE `comment_date_gmt` >= %s AND ( `comment_author_IP` = %s OR `comment_author_email` = %s ) ORDER BY `comment_date_gmt` DESC LIMIT 1", $hour_ago, $ip, $email ) ) ) { - $time_lastcomment = mysql2date('U', $lasttime, false); - $time_newcomment = mysql2date('U', $date, false); - /** - * Filter the comment flood status. - * - * @since 2.1.0 - * - * @param bool $bool Whether a comment flood is occurring. Default false. - * @param int $time_lastcomment Timestamp of when the last comment was posted. - * @param int $time_newcomment Timestamp of when the new comment was posted. - */ - $flood_die = apply_filters( 'comment_flood_filter', false, $time_lastcomment, $time_newcomment ); - if ( $flood_die ) { - /** - * Fires before the comment flood message is triggered. - * - * @since 1.5.0 - * - * @param int $time_lastcomment Timestamp of when the last comment was posted. - * @param int $time_newcomment Timestamp of when the new comment was posted. - */ - do_action( 'comment_flood_trigger', $time_lastcomment, $time_newcomment ); - - if ( defined('DOING_AJAX') ) - die( __('You are posting comments too quickly. Slow down.') ); - - wp_die( __( 'You are posting comments too quickly. Slow down.' ), 429 ); - } - } -} - -/** - * Separates an array of comments into an array keyed by comment_type. - * - * @since 2.7.0 - * - * @param array $comments Array of comments - * @return array Array of comments keyed by comment_type. - */ -function separate_comments(&$comments) { - $comments_by_type = array('comment' => array(), 'trackback' => array(), 'pingback' => array(), 'pings' => array()); - $count = count($comments); - for ( $i = 0; $i < $count; $i++ ) { - $type = $comments[$i]->comment_type; - if ( empty($type) ) - $type = 'comment'; - $comments_by_type[$type][] = &$comments[$i]; - if ( 'trackback' == $type || 'pingback' == $type ) - $comments_by_type['pings'][] = &$comments[$i]; - } - - return $comments_by_type; -} - -/** - * Calculate the total number of comment pages. - * - * @since 2.7.0 - * - * @uses Walker_Comment - * - * @global WP_Query $wp_query - * - * @param array $comments Optional array of comment objects. Defaults to $wp_query->comments - * @param int $per_page Optional comments per page. - * @param bool $threaded Optional control over flat or threaded comments. - * @return int Number of comment pages. - */ -function get_comment_pages_count( $comments = null, $per_page = null, $threaded = null ) { - global $wp_query; - - if ( null === $comments && null === $per_page && null === $threaded && !empty($wp_query->max_num_comment_pages) ) - return $wp_query->max_num_comment_pages; - - if ( ( ! $comments || ! is_array( $comments ) ) && ! empty( $wp_query->comments ) ) - $comments = $wp_query->comments; - - if ( empty($comments) ) - return 0; - - if ( ! get_option( 'page_comments' ) ) - return 1; - - if ( !isset($per_page) ) - $per_page = (int) get_query_var('comments_per_page'); - if ( 0 === $per_page ) - $per_page = (int) get_option('comments_per_page'); - if ( 0 === $per_page ) - return 1; - - if ( !isset($threaded) ) - $threaded = get_option('thread_comments'); - - if ( $threaded ) { - $walker = new Walker_Comment; - $count = ceil( $walker->get_number_of_root_elements( $comments ) / $per_page ); - } else { - $count = ceil( count( $comments ) / $per_page ); - } - - return $count; -} - -/** - * Calculate what page number a comment will appear on for comment paging. - * - * @since 2.7.0 - * - * @global wpdb $wpdb - * - * @param int $comment_ID Comment ID. - * @param array $args Optional args. - * @return int|null Comment page number or null on error. - */ -function get_page_of_comment( $comment_ID, $args = array() ) { - global $wpdb; - - if ( !$comment = get_comment( $comment_ID ) ) - return; - - $defaults = array( 'type' => 'all', 'page' => '', 'per_page' => '', 'max_depth' => '' ); - $args = wp_parse_args( $args, $defaults ); - - if ( '' === $args['per_page'] && get_option('page_comments') ) - $args['per_page'] = get_query_var('comments_per_page'); - if ( empty($args['per_page']) ) { - $args['per_page'] = 0; - $args['page'] = 0; - } - if ( $args['per_page'] < 1 ) - return 1; - - if ( '' === $args['max_depth'] ) { - if ( get_option('thread_comments') ) - $args['max_depth'] = get_option('thread_comments_depth'); - else - $args['max_depth'] = -1; - } - - // Find this comment's top level parent if threading is enabled - if ( $args['max_depth'] > 1 && 0 != $comment->comment_parent ) - return get_page_of_comment( $comment->comment_parent, $args ); - - $allowedtypes = array( - 'comment' => '', - 'pingback' => 'pingback', - 'trackback' => 'trackback', - ); - - $comtypewhere = ( 'all' != $args['type'] && isset($allowedtypes[$args['type']]) ) ? " AND comment_type = '" . $allowedtypes[$args['type']] . "'" : ''; - - // Count comments older than this one - $oldercoms = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_parent = 0 AND comment_approved = '1' AND comment_date_gmt < '%s'" . $comtypewhere, $comment->comment_post_ID, $comment->comment_date_gmt ) ); - - // No older comments? Then it's page #1. - if ( 0 == $oldercoms ) - return 1; - - // Divide comments older than this one by comments per page to get this comment's page number - return ceil( ( $oldercoms + 1 ) / $args['per_page'] ); -} - -/** - * Does comment contain blacklisted characters or words. - * - * @since 1.5.0 - * - * @param string $author The author of the comment - * @param string $email The email of the comment - * @param string $url The url used in the comment - * @param string $comment The comment content - * @param string $user_ip The comment author IP address - * @param string $user_agent The author's browser user agent - * @return bool True if comment contains blacklisted content, false if comment does not - */ -function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_agent) { - /** - * Fires before the comment is tested for blacklisted characters or words. - * - * @since 1.5.0 - * - * @param string $author Comment author. - * @param string $email Comment author's email. - * @param string $url Comment author's URL. - * @param string $comment Comment content. - * @param string $user_ip Comment author's IP address. - * @param string $user_agent Comment author's browser user agent. - */ - do_action( 'wp_blacklist_check', $author, $email, $url, $comment, $user_ip, $user_agent ); - - $mod_keys = trim( get_option('blacklist_keys') ); - if ( '' == $mod_keys ) - return false; // If moderation keys are empty - $words = explode("\n", $mod_keys ); - - foreach ( (array) $words as $word ) { - $word = trim($word); - - // Skip empty lines - if ( empty($word) ) { continue; } - - // Do some escaping magic so that '#' chars in the - // spam words don't break things: - $word = preg_quote($word, '#'); - - $pattern = "#$word#i"; - if ( - preg_match($pattern, $author) - || preg_match($pattern, $email) - || preg_match($pattern, $url) - || preg_match($pattern, $comment) - || preg_match($pattern, $user_ip) - || preg_match($pattern, $user_agent) - ) - return true; - } - return false; -} - -/** - * Retrieve total comments for blog or single post. - * - * The properties of the returned object contain the 'moderated', 'approved', - * and spam comments for either the entire blog or single post. Those properties - * contain the amount of comments that match the status. The 'total_comments' - * property contains the integer of total comments. - * - * The comment stats are cached and then retrieved, if they already exist in the - * cache. - * - * @since 2.5.0 - * - * @global wpdb $wpdb - * - * @param int $post_id Optional. Post ID. - * @return object|array Comment stats. - */ -function wp_count_comments( $post_id = 0 ) { - global $wpdb; - - $post_id = (int) $post_id; - - /** - * Filter the comments count for a given post. - * - * @since 2.7.0 - * - * @param array $count An empty array. - * @param int $post_id The post ID. - */ - $stats = apply_filters( 'wp_count_comments', array(), $post_id ); - if ( !empty($stats) ) - return $stats; - - $count = wp_cache_get("comments-{$post_id}", 'counts'); - - if ( false !== $count ) - return $count; - - $where = ''; - if ( $post_id > 0 ) - $where = $wpdb->prepare( "WHERE comment_post_ID = %d", $post_id ); - - $count = $wpdb->get_results( "SELECT comment_approved, COUNT( * ) AS num_comments FROM {$wpdb->comments} {$where} GROUP BY comment_approved", ARRAY_A ); - - $total = 0; - $approved = array('0' => 'moderated', '1' => 'approved', 'spam' => 'spam', 'trash' => 'trash', 'post-trashed' => 'post-trashed'); - foreach ( (array) $count as $row ) { - // Don't count post-trashed toward totals - if ( 'post-trashed' != $row['comment_approved'] && 'trash' != $row['comment_approved'] ) - $total += $row['num_comments']; - if ( isset( $approved[$row['comment_approved']] ) ) - $stats[$approved[$row['comment_approved']]] = $row['num_comments']; - } - - $stats['total_comments'] = $total; - foreach ( $approved as $key ) { - if ( empty($stats[$key]) ) - $stats[$key] = 0; - } - - $stats = (object) $stats; - wp_cache_set("comments-{$post_id}", $stats, 'counts'); - - return $stats; -} - -/** - * Trashes or deletes a comment. - * - * The comment is moved to trash instead of permanently deleted unless trash is - * disabled, item is already in the trash, or $force_delete is true. - * - * The post comment count will be updated if the comment was approved and has a - * post ID available. - * - * @since 2.0.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param int $comment_id Comment ID - * @param bool $force_delete Whether to bypass trash and force deletion. Default is false. - * @return bool True on success, false on failure. - */ -function wp_delete_comment($comment_id, $force_delete = false) { - global $wpdb; - if (!$comment = get_comment($comment_id)) - return false; - - if ( !$force_delete && EMPTY_TRASH_DAYS && !in_array( wp_get_comment_status($comment_id), array( 'trash', 'spam' ) ) ) - return wp_trash_comment($comment_id); - - /** - * Fires immediately before a comment is deleted from the database. - * - * @since 1.2.0 - * - * @param int $comment_id The comment ID. - */ - do_action( 'delete_comment', $comment_id ); - - // Move children up a level. - $children = $wpdb->get_col( $wpdb->prepare("SELECT comment_ID FROM $wpdb->comments WHERE comment_parent = %d", $comment_id) ); - if ( !empty($children) ) { - $wpdb->update($wpdb->comments, array('comment_parent' => $comment->comment_parent), array('comment_parent' => $comment_id)); - clean_comment_cache($children); - } - - // Delete metadata - $meta_ids = $wpdb->get_col( $wpdb->prepare( "SELECT meta_id FROM $wpdb->commentmeta WHERE comment_id = %d", $comment_id ) ); - foreach ( $meta_ids as $mid ) - delete_metadata_by_mid( 'comment', $mid ); - - if ( ! $wpdb->delete( $wpdb->comments, array( 'comment_ID' => $comment_id ) ) ) - return false; - - /** - * Fires immediately after a comment is deleted from the database. - * - * @since 2.9.0 - * - * @param int $comment_id The comment ID. - */ - do_action( 'deleted_comment', $comment_id ); - - $post_id = $comment->comment_post_ID; - if ( $post_id && $comment->comment_approved == 1 ) - wp_update_comment_count($post_id); - - clean_comment_cache($comment_id); - - /** This action is documented in wp-includes/comment.php */ - do_action( 'wp_set_comment_status', $comment_id, 'delete' ); - - wp_transition_comment_status('delete', $comment->comment_approved, $comment); - return true; -} - -/** - * Moves a comment to the Trash - * - * If trash is disabled, comment is permanently deleted. - * - * @since 2.9.0 - * - * @param int $comment_id Comment ID. - * @return bool True on success, false on failure. - */ -function wp_trash_comment($comment_id) { - if ( !EMPTY_TRASH_DAYS ) - return wp_delete_comment($comment_id, true); - - if ( !$comment = get_comment($comment_id) ) - return false; - - /** - * Fires immediately before a comment is sent to the Trash. - * - * @since 2.9.0 - * - * @param int $comment_id The comment ID. - */ - do_action( 'trash_comment', $comment_id ); - - if ( wp_set_comment_status($comment_id, 'trash') ) { - add_comment_meta($comment_id, '_wp_trash_meta_status', $comment->comment_approved); - add_comment_meta($comment_id, '_wp_trash_meta_time', time() ); - - /** - * Fires immediately after a comment is sent to Trash. - * - * @since 2.9.0 - * - * @param int $comment_id The comment ID. - */ - do_action( 'trashed_comment', $comment_id ); - return true; - } - - return false; -} - -/** - * Removes a comment from the Trash - * - * @since 2.9.0 - * - * @param int $comment_id Comment ID. - * @return bool True on success, false on failure. - */ -function wp_untrash_comment($comment_id) { - if ( ! (int)$comment_id ) - return false; - - /** - * Fires immediately before a comment is restored from the Trash. - * - * @since 2.9.0 - * - * @param int $comment_id The comment ID. - */ - do_action( 'untrash_comment', $comment_id ); - - $status = (string) get_comment_meta($comment_id, '_wp_trash_meta_status', true); - if ( empty($status) ) - $status = '0'; - - if ( wp_set_comment_status($comment_id, $status) ) { - delete_comment_meta($comment_id, '_wp_trash_meta_time'); - delete_comment_meta($comment_id, '_wp_trash_meta_status'); - /** - * Fires immediately after a comment is restored from the Trash. - * - * @since 2.9.0 - * - * @param int $comment_id The comment ID. - */ - do_action( 'untrashed_comment', $comment_id ); - return true; - } - - return false; -} - -/** - * Marks a comment as Spam - * - * @since 2.9.0 - * - * @param int $comment_id Comment ID. - * @return bool True on success, false on failure. - */ -function wp_spam_comment($comment_id) { - if ( !$comment = get_comment($comment_id) ) - return false; - - /** - * Fires immediately before a comment is marked as Spam. - * - * @since 2.9.0 - * - * @param int $comment_id The comment ID. - */ - do_action( 'spam_comment', $comment_id ); - - if ( wp_set_comment_status($comment_id, 'spam') ) { - add_comment_meta($comment_id, '_wp_trash_meta_status', $comment->comment_approved); - /** - * Fires immediately after a comment is marked as Spam. - * - * @since 2.9.0 - * - * @param int $comment_id The comment ID. - */ - do_action( 'spammed_comment', $comment_id ); - return true; - } - - return false; -} - -/** - * Removes a comment from the Spam - * - * @since 2.9.0 - * - * @param int $comment_id Comment ID. - * @return bool True on success, false on failure. - */ -function wp_unspam_comment($comment_id) { - if ( ! (int)$comment_id ) - return false; - - /** - * Fires immediately before a comment is unmarked as Spam. - * - * @since 2.9.0 - * - * @param int $comment_id The comment ID. - */ - do_action( 'unspam_comment', $comment_id ); - - $status = (string) get_comment_meta($comment_id, '_wp_trash_meta_status', true); - if ( empty($status) ) - $status = '0'; - - if ( wp_set_comment_status($comment_id, $status) ) { - delete_comment_meta($comment_id, '_wp_trash_meta_status'); - /** - * Fires immediately after a comment is unmarked as Spam. - * - * @since 2.9.0 - * - * @param int $comment_id The comment ID. - */ - do_action( 'unspammed_comment', $comment_id ); - return true; - } - - return false; -} - -/** - * The status of a comment by ID. - * - * @since 1.0.0 - * - * @param int $comment_id Comment ID - * @return false|string Status might be 'trash', 'approved', 'unapproved', 'spam'. False on failure. - */ -function wp_get_comment_status($comment_id) { - $comment = get_comment($comment_id); - if ( !$comment ) - return false; - - $approved = $comment->comment_approved; - - if ( $approved == null ) - return false; - elseif ( $approved == '1' ) - return 'approved'; - elseif ( $approved == '0' ) - return 'unapproved'; - elseif ( $approved == 'spam' ) - return 'spam'; - elseif ( $approved == 'trash' ) - return 'trash'; - else - return false; -} - -/** - * Call hooks for when a comment status transition occurs. - * - * Calls hooks for comment status transitions. If the new comment status is not the same - * as the previous comment status, then two hooks will be ran, the first is - * 'transition_comment_status' with new status, old status, and comment data. The - * next action called is 'comment_OLDSTATUS_to_NEWSTATUS' the NEWSTATUS is the - * $new_status parameter and the OLDSTATUS is $old_status parameter; it has the - * comment data. - * - * The final action will run whether or not the comment statuses are the same. The - * action is named 'comment_NEWSTATUS_COMMENTTYPE', NEWSTATUS is from the $new_status - * parameter and COMMENTTYPE is comment_type comment data. - * - * @since 2.7.0 - * - * @param string $new_status New comment status. - * @param string $old_status Previous comment status. - * @param object $comment Comment data. - */ -function wp_transition_comment_status($new_status, $old_status, $comment) { - /* - * Translate raw statuses to human readable formats for the hooks. - * This is not a complete list of comment status, it's only the ones - * that need to be renamed - */ - $comment_statuses = array( - 0 => 'unapproved', - 'hold' => 'unapproved', // wp_set_comment_status() uses "hold" - 1 => 'approved', - 'approve' => 'approved', // wp_set_comment_status() uses "approve" - ); - if ( isset($comment_statuses[$new_status]) ) $new_status = $comment_statuses[$new_status]; - if ( isset($comment_statuses[$old_status]) ) $old_status = $comment_statuses[$old_status]; - - // Call the hooks - if ( $new_status != $old_status ) { - /** - * Fires when the comment status is in transition. - * - * @since 2.7.0 - * - * @param int|string $new_status The new comment status. - * @param int|string $old_status The old comment status. - * @param object $comment The comment data. - */ - do_action( 'transition_comment_status', $new_status, $old_status, $comment ); - /** - * Fires when the comment status is in transition from one specific status to another. - * - * The dynamic portions of the hook name, `$old_status`, and `$new_status`, - * refer to the old and new comment statuses, respectively. - * - * @since 2.7.0 - * - * @param object $comment Comment object. - */ - do_action( "comment_{$old_status}_to_{$new_status}", $comment ); - } - /** - * Fires when the status of a specific comment type is in transition. - * - * The dynamic portions of the hook name, `$new_status`, and `$comment->comment_type`, - * refer to the new comment status, and the type of comment, respectively. - * - * Typical comment types include an empty string (standard comment), 'pingback', - * or 'trackback'. - * - * @since 2.7.0 - * - * @param int $comment_ID The comment ID. - * @param obj $comment Comment object. - */ - do_action( "comment_{$new_status}_{$comment->comment_type}", $comment->comment_ID, $comment ); -} - -/** - * Get current commenter's name, email, and URL. - * - * Expects cookies content to already be sanitized. User of this function might - * wish to recheck the returned array for validity. - * - * @see sanitize_comment_cookies() Use to sanitize cookies - * - * @since 2.0.4 - * - * @return array Comment author, email, url respectively. - */ -function wp_get_current_commenter() { - // Cookies should already be sanitized. - - $comment_author = ''; - if ( isset($_COOKIE['comment_author_'.COOKIEHASH]) ) - $comment_author = $_COOKIE['comment_author_'.COOKIEHASH]; - - $comment_author_email = ''; - if ( isset($_COOKIE['comment_author_email_'.COOKIEHASH]) ) - $comment_author_email = $_COOKIE['comment_author_email_'.COOKIEHASH]; - - $comment_author_url = ''; - if ( isset($_COOKIE['comment_author_url_'.COOKIEHASH]) ) - $comment_author_url = $_COOKIE['comment_author_url_'.COOKIEHASH]; - - /** - * Filter the current commenter's name, email, and URL. - * - * @since 3.1.0 - * - * @param string $comment_author Comment author's name. - * @param string $comment_author_email Comment author's email. - * @param string $comment_author_url Comment author's URL. - */ - return apply_filters( 'wp_get_current_commenter', compact('comment_author', 'comment_author_email', 'comment_author_url') ); -} - -/** - * Inserts a comment into the database. - * - * @since 2.0.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param array $commentdata { - * Array of arguments for inserting a new comment. - * - * @type string $comment_agent The HTTP user agent of the `$comment_author` when - * the comment was submitted. Default empty. - * @type int|string $comment_approved Whether the comment has been approved. Default 1. - * @type string $comment_author The name of the author of the comment. Default empty. - * @type string $comment_author_email The email address of the `$comment_author`. Default empty. - * @type string $comment_author_IP The IP address of the `$comment_author`. Default empty. - * @type string $comment_author_url The URL address of the `$comment_author`. Default empty. - * @type string $comment_content The content of the comment. Default empty. - * @type string $comment_date The date the comment was submitted. To set the date - * manually, `$comment_date_gmt` must also be specified. - * Default is the current time. - * @type string $comment_date_gmt The date the comment was submitted in the GMT timezone. - * Default is `$comment_date` in the site's GMT timezone. - * @type int $comment_karma The karma of the comment. Default 0. - * @type int $comment_parent ID of this comment's parent, if any. Default 0. - * @type int $comment_post_ID ID of the post that relates to the comment, if any. - * Default empty. - * @type string $comment_type Comment type. Default empty. - * @type int $user_id ID of the user who submitted the comment. Default 0. - * } - * @return int|false The new comment's ID on success, false on failure. - */ -function wp_insert_comment( $commentdata ) { - global $wpdb; - $data = wp_unslash( $commentdata ); - - $comment_author = ! isset( $data['comment_author'] ) ? '' : $data['comment_author']; - $comment_author_email = ! isset( $data['comment_author_email'] ) ? '' : $data['comment_author_email']; - $comment_author_url = ! isset( $data['comment_author_url'] ) ? '' : $data['comment_author_url']; - $comment_author_IP = ! isset( $data['comment_author_IP'] ) ? '' : $data['comment_author_IP']; - - $comment_date = ! isset( $data['comment_date'] ) ? current_time( 'mysql' ) : $data['comment_date']; - $comment_date_gmt = ! isset( $data['comment_date_gmt'] ) ? get_gmt_from_date( $comment_date ) : $data['comment_date_gmt']; - - $comment_post_ID = ! isset( $data['comment_post_ID'] ) ? '' : $data['comment_post_ID']; - $comment_content = ! isset( $data['comment_content'] ) ? '' : $data['comment_content']; - $comment_karma = ! isset( $data['comment_karma'] ) ? 0 : $data['comment_karma']; - $comment_approved = ! isset( $data['comment_approved'] ) ? 1 : $data['comment_approved']; - $comment_agent = ! isset( $data['comment_agent'] ) ? '' : $data['comment_agent']; - $comment_type = ! isset( $data['comment_type'] ) ? '' : $data['comment_type']; - $comment_parent = ! isset( $data['comment_parent'] ) ? 0 : $data['comment_parent']; - - $user_id = ! isset( $data['user_id'] ) ? 0 : $data['user_id']; - - $compacted = compact( 'comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_author_IP', 'comment_date', 'comment_date_gmt', 'comment_content', 'comment_karma', 'comment_approved', 'comment_agent', 'comment_type', 'comment_parent', 'user_id' ); - if ( ! $wpdb->insert( $wpdb->comments, $compacted ) ) { - return false; - } - - $id = (int) $wpdb->insert_id; - - if ( $comment_approved == 1 ) { - wp_update_comment_count( $comment_post_ID ); - } - $comment = get_comment( $id ); - - /** - * Fires immediately after a comment is inserted into the database. - * - * @since 2.8.0 - * - * @param int $id The comment ID. - * @param obj $comment Comment object. - */ - do_action( 'wp_insert_comment', $id, $comment ); - - wp_cache_set( 'last_changed', microtime(), 'comment' ); - - return $id; -} - -/** - * Filters and sanitizes comment data. - * - * Sets the comment data 'filtered' field to true when finished. This can be - * checked as to whether the comment should be filtered and to keep from - * filtering the same comment more than once. - * - * @since 2.0.0 - * - * @param array $commentdata Contains information on the comment. - * @return array Parsed comment information. - */ -function wp_filter_comment($commentdata) { - if ( isset( $commentdata['user_ID'] ) ) { - /** - * Filter the comment author's user id before it is set. - * - * The first time this filter is evaluated, 'user_ID' is checked - * (for back-compat), followed by the standard 'user_id' value. - * - * @since 1.5.0 - * - * @param int $user_ID The comment author's user ID. - */ - $commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_ID'] ); - } elseif ( isset( $commentdata['user_id'] ) ) { - /** This filter is documented in wp-includes/comment.php */ - $commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_id'] ); - } - - /** - * Filter the comment author's browser user agent before it is set. - * - * @since 1.5.0 - * - * @param int $comment_agent The comment author's browser user agent. - */ - $commentdata['comment_agent'] = apply_filters( 'pre_comment_user_agent', ( isset( $commentdata['comment_agent'] ) ? $commentdata['comment_agent'] : '' ) ); - /** This filter is documented in wp-includes/comment.php */ - $commentdata['comment_author'] = apply_filters( 'pre_comment_author_name', $commentdata['comment_author'] ); - /** - * Filter the comment content before it is set. - * - * @since 1.5.0 - * - * @param int $comment_content The comment content. - */ - $commentdata['comment_content'] = apply_filters( 'pre_comment_content', $commentdata['comment_content'] ); - /** - * Filter the comment author's IP before it is set. - * - * @since 1.5.0 - * - * @param int $comment_author_ip The comment author's IP. - */ - $commentdata['comment_author_IP'] = apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] ); - /** This filter is documented in wp-includes/comment.php */ - $commentdata['comment_author_url'] = apply_filters( 'pre_comment_author_url', $commentdata['comment_author_url'] ); - /** This filter is documented in wp-includes/comment.php */ - $commentdata['comment_author_email'] = apply_filters( 'pre_comment_author_email', $commentdata['comment_author_email'] ); - $commentdata['filtered'] = true; - return $commentdata; -} - -/** - * Whether a comment should be blocked because of comment flood. - * - * @since 2.1.0 - * - * @param bool $block Whether plugin has already blocked comment. - * @param int $time_lastcomment Timestamp for last comment. - * @param int $time_newcomment Timestamp for new comment. - * @return bool Whether comment should be blocked. - */ -function wp_throttle_comment_flood($block, $time_lastcomment, $time_newcomment) { - if ( $block ) // a plugin has already blocked... we'll let that decision stand - return $block; - if ( ($time_newcomment - $time_lastcomment) < 15 ) - return true; - return false; -} - -/** - * Adds a new comment to the database. - * - * Filters new comment to ensure that the fields are sanitized and valid before - * inserting comment into database. Calls 'comment_post' action with comment ID - * and whether comment is approved by WordPress. Also has 'preprocess_comment' - * filter for processing the comment data before the function handles it. - * - * We use REMOTE_ADDR here directly. If you are behind a proxy, you should ensure - * that it is properly set, such as in wp-config.php, for your environment. - * See {@link https://core.trac.wordpress.org/ticket/9235} - * - * @since 1.5.0 - * @since 4.3.0 'comment_agent' and 'comment_author_IP' can be set via `$commentdata`. - * - * @see wp_insert_comment() - * - * @global wpdb $wpdb - * - * @param array $commentdata Contains information on the comment. See wp_insert_comment() - * for information on accepted arguments. - * @return int|false The ID of the comment on success, false on failure. - */ -function wp_new_comment( $commentdata ) { - global $wpdb; - - if ( isset( $commentdata['user_ID'] ) ) { - $commentdata['user_id'] = $commentdata['user_ID'] = (int) $commentdata['user_ID']; - } - - $prefiltered_user_id = ( isset( $commentdata['user_id'] ) ) ? (int) $commentdata['user_id'] : 0; - - /** - * Filter a comment's data before it is sanitized and inserted into the database. - * - * @since 1.5.0 - * - * @param array $commentdata Comment data. - */ - $commentdata = apply_filters( 'preprocess_comment', $commentdata ); - - $commentdata['comment_post_ID'] = (int) $commentdata['comment_post_ID']; - if ( isset( $commentdata['user_ID'] ) && $prefiltered_user_id !== (int) $commentdata['user_ID'] ) { - $commentdata['user_id'] = $commentdata['user_ID'] = (int) $commentdata['user_ID']; - } elseif ( isset( $commentdata['user_id'] ) ) { - $commentdata['user_id'] = (int) $commentdata['user_id']; - } - - $commentdata['comment_parent'] = isset($commentdata['comment_parent']) ? absint($commentdata['comment_parent']) : 0; - $parent_status = ( 0 < $commentdata['comment_parent'] ) ? wp_get_comment_status($commentdata['comment_parent']) : ''; - $commentdata['comment_parent'] = ( 'approved' == $parent_status || 'unapproved' == $parent_status ) ? $commentdata['comment_parent'] : 0; - - if ( ! isset( $commentdata['comment_author_IP'] ) ) { - $commentdata['comment_author_IP'] = $_SERVER['REMOTE_ADDR']; - } - $commentdata['comment_author_IP'] = preg_replace( '/[^0-9a-fA-F:., ]/', '', $commentdata['comment_author_IP'] ); - - if ( ! isset( $commentdata['comment_agent'] ) ) { - $commentdata['comment_agent'] = isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT']: ''; - } - $commentdata['comment_agent'] = substr( $commentdata['comment_agent'], 0, 254 ); - - if ( empty( $commentdata['comment_date'] ) ) { - $commentdata['comment_date'] = current_time('mysql'); - } - - if ( empty( $commentdata['comment_date_gmt'] ) ) { - $commentdata['comment_date_gmt'] = current_time( 'mysql', 1 ); - } - - $commentdata = wp_filter_comment($commentdata); - - $commentdata['comment_approved'] = wp_allow_comment($commentdata); - - $comment_ID = wp_insert_comment($commentdata); - if ( ! $comment_ID ) { - $fields = array( 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content' ); - - foreach( $fields as $field ) { - if ( isset( $commentdata[ $field ] ) ) { - $commentdata[ $field ] = $wpdb->strip_invalid_text_for_column( $wpdb->comments, $field, $commentdata[ $field ] ); - } - } - - $commentdata = wp_filter_comment( $commentdata ); - - $commentdata['comment_approved'] = wp_allow_comment( $commentdata ); - - $comment_ID = wp_insert_comment( $commentdata ); - if ( ! $comment_ID ) { - return false; - } - } - - /** - * Fires immediately after a comment is inserted into the database. - * - * @since 1.2.0 - * - * @param int $comment_ID The comment ID. - * @param int $comment_approved 1 (true) if the comment is approved, 0 (false) if not. - */ - do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'] ); - - if ( 'spam' !== $commentdata['comment_approved'] ) { // If it's spam save it silently for later crunching - if ( '0' == $commentdata['comment_approved'] ) { - wp_notify_moderator( $comment_ID ); - } - - // wp_notify_postauthor() checks if notifying the author of their own comment. - // By default, it won't, but filters can override this. - if ( get_option( 'comments_notify' ) && $commentdata['comment_approved'] ) { - wp_notify_postauthor( $comment_ID ); - } - } - - return $comment_ID; -} - -/** - * Sets the status of a comment. - * - * The 'wp_set_comment_status' action is called after the comment is handled. - * If the comment status is not in the list, then false is returned. - * - * @since 1.0.0 - * - * global wpdb $wpdb - * - * @param int $comment_id Comment ID. - * @param string $comment_status New comment status, either 'hold', 'approve', 'spam', or 'trash'. - * @param bool $wp_error Whether to return a WP_Error object if there is a failure. Default is false. - * @return bool|WP_Error True on success, false or WP_Error on failure. - */ -function wp_set_comment_status($comment_id, $comment_status, $wp_error = false) { - global $wpdb; - - switch ( $comment_status ) { - case 'hold': - case '0': - $status = '0'; - break; - case 'approve': - case '1': - $status = '1'; - if ( get_option('comments_notify') ) { - wp_notify_postauthor( $comment_id ); - } - break; - case 'spam': - $status = 'spam'; - break; - case 'trash': - $status = 'trash'; - break; - default: - return false; - } - - $comment_old = clone get_comment($comment_id); - - if ( !$wpdb->update( $wpdb->comments, array('comment_approved' => $status), array('comment_ID' => $comment_id) ) ) { - if ( $wp_error ) - return new WP_Error('db_update_error', __('Could not update comment status'), $wpdb->last_error); - else - return false; - } - - clean_comment_cache($comment_id); - - $comment = get_comment($comment_id); - - /** - * Fires immediately before transitioning a comment's status from one to another - * in the database. - * - * @since 1.5.0 - * - * @param int $comment_id Comment ID. - * @param string|bool $comment_status Current comment status. Possible values include - * 'hold', 'approve', 'spam', 'trash', or false. - */ - do_action( 'wp_set_comment_status', $comment_id, $comment_status ); - - wp_transition_comment_status($comment_status, $comment_old->comment_approved, $comment); - - wp_update_comment_count($comment->comment_post_ID); - - return true; -} - -/** - * Updates an existing comment in the database. - * - * Filters the comment and makes sure certain fields are valid before updating. - * - * @since 2.0.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param array $commentarr Contains information on the comment. - * @return int Comment was updated if value is 1, or was not updated if value is 0. - */ -function wp_update_comment($commentarr) { - global $wpdb; - - // First, get all of the original fields - $comment = get_comment($commentarr['comment_ID'], ARRAY_A); - if ( empty( $comment ) ) { - return 0; - } - - // Make sure that the comment post ID is valid (if specified). - if ( isset( $commentarr['comment_post_ID'] ) && ! get_post( $commentarr['comment_post_ID'] ) ) { - return 0; - } - - // Escape data pulled from DB. - $comment = wp_slash($comment); - - $old_status = $comment['comment_approved']; - - // Merge old and new fields with new fields overwriting old ones. - $commentarr = array_merge($comment, $commentarr); - - $commentarr = wp_filter_comment( $commentarr ); - - // Now extract the merged array. - $data = wp_unslash( $commentarr ); - - /** - * Filter the comment content before it is updated in the database. - * - * @since 1.5.0 - * - * @param string $comment_content The comment data. - */ - $data['comment_content'] = apply_filters( 'comment_save_pre', $data['comment_content'] ); - - $data['comment_date_gmt'] = get_gmt_from_date( $data['comment_date'] ); - - if ( ! isset( $data['comment_approved'] ) ) { - $data['comment_approved'] = 1; - } elseif ( 'hold' == $data['comment_approved'] ) { - $data['comment_approved'] = 0; - } elseif ( 'approve' == $data['comment_approved'] ) { - $data['comment_approved'] = 1; - } - - $comment_ID = $data['comment_ID']; - $comment_post_ID = $data['comment_post_ID']; - $keys = array( 'comment_post_ID', 'comment_content', 'comment_author', 'comment_author_email', 'comment_approved', 'comment_karma', 'comment_author_url', 'comment_date', 'comment_date_gmt', 'comment_type', 'comment_parent', 'user_id' ); - $data = wp_array_slice_assoc( $data, $keys ); - $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) ); - - clean_comment_cache( $comment_ID ); - wp_update_comment_count( $comment_post_ID ); - /** - * Fires immediately after a comment is updated in the database. - * - * The hook also fires immediately before comment status transition hooks are fired. - * - * @since 1.2.0 - * - * @param int $comment_ID The comment ID. - */ - do_action( 'edit_comment', $comment_ID ); - $comment = get_comment($comment_ID); - wp_transition_comment_status($comment->comment_approved, $old_status, $comment); - return $rval; -} - -/** - * Whether to defer comment counting. - * - * When setting $defer to true, all post comment counts will not be updated - * until $defer is set to false. When $defer is set to false, then all - * previously deferred updated post comment counts will then be automatically - * updated without having to call wp_update_comment_count() after. - * - * @since 2.5.0 - * @staticvar bool $_defer - * - * @param bool $defer - * @return bool - */ -function wp_defer_comment_counting($defer=null) { - static $_defer = false; - - if ( is_bool($defer) ) { - $_defer = $defer; - // flush any deferred counts - if ( !$defer ) - wp_update_comment_count( null, true ); - } - - return $_defer; -} - -/** - * Updates the comment count for post(s). - * - * When $do_deferred is false (is by default) and the comments have been set to - * be deferred, the post_id will be added to a queue, which will be updated at a - * later date and only updated once per post ID. - * - * If the comments have not be set up to be deferred, then the post will be - * updated. When $do_deferred is set to true, then all previous deferred post - * IDs will be updated along with the current $post_id. - * - * @since 2.1.0 - * @see wp_update_comment_count_now() For what could cause a false return value - * - * @staticvar array $_deferred - * - * @param int $post_id Post ID - * @param bool $do_deferred Whether to process previously deferred post comment counts - * @return bool|void True on success, false on failure - */ -function wp_update_comment_count($post_id, $do_deferred=false) { - static $_deferred = array(); - - if ( $do_deferred ) { - $_deferred = array_unique($_deferred); - foreach ( $_deferred as $i => $_post_id ) { - wp_update_comment_count_now($_post_id); - unset( $_deferred[$i] ); /** @todo Move this outside of the foreach and reset $_deferred to an array instead */ - } - } - - if ( wp_defer_comment_counting() ) { - $_deferred[] = $post_id; - return true; - } - elseif ( $post_id ) { - return wp_update_comment_count_now($post_id); - } - -} - -/** - * Updates the comment count for the post. - * - * @since 2.5.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param int $post_id Post ID - * @return bool True on success, false on '0' $post_id or if post with ID does not exist. - */ -function wp_update_comment_count_now($post_id) { - global $wpdb; - $post_id = (int) $post_id; - if ( !$post_id ) - return false; - if ( !$post = get_post($post_id) ) - return false; - - $old = (int) $post->comment_count; - $new = (int) $wpdb->get_var( $wpdb->prepare("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved = '1'", $post_id) ); - $wpdb->update( $wpdb->posts, array('comment_count' => $new), array('ID' => $post_id) ); - - clean_post_cache( $post ); - - /** - * Fires immediately after a post's comment count is updated in the database. - * - * @since 2.3.0 - * - * @param int $post_id Post ID. - * @param int $new The new comment count. - * @param int $old The old comment count. - */ - do_action( 'wp_update_comment_count', $post_id, $new, $old ); - /** This action is documented in wp-includes/post.php */ - do_action( 'edit_post', $post_id, $post ); - - return true; -} - -// -// Ping and trackback functions. -// - -/** - * Finds a pingback server URI based on the given URL. - * - * Checks the HTML for the rel="pingback" link and x-pingback headers. It does - * a check for the x-pingback headers first and returns that, if available. The - * check for the rel="pingback" has more overhead than just the header. - * - * @since 1.5.0 - * - * @param string $url URL to ping. - * @param int $deprecated Not Used. - * @return false|string False on failure, string containing URI on success. - */ -function discover_pingback_server_uri( $url, $deprecated = '' ) { - if ( !empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '2.7' ); - - $pingback_str_dquote = 'rel="pingback"'; - $pingback_str_squote = 'rel=\'pingback\''; - - /** @todo Should use Filter Extension or custom preg_match instead. */ - $parsed_url = parse_url($url); - - if ( ! isset( $parsed_url['host'] ) ) // Not an URL. This should never happen. - return false; - - //Do not search for a pingback server on our own uploads - $uploads_dir = wp_upload_dir(); - if ( 0 === strpos($url, $uploads_dir['baseurl']) ) - return false; - - $response = wp_safe_remote_head( $url, array( 'timeout' => 2, 'httpversion' => '1.0' ) ); - - if ( is_wp_error( $response ) ) - return false; - - if ( wp_remote_retrieve_header( $response, 'x-pingback' ) ) - return wp_remote_retrieve_header( $response, 'x-pingback' ); - - // Not an (x)html, sgml, or xml page, no use going further. - if ( preg_match('#(image|audio|video|model)/#is', wp_remote_retrieve_header( $response, 'content-type' )) ) - return false; - - // Now do a GET since we're going to look in the html headers (and we're sure it's not a binary file) - $response = wp_safe_remote_get( $url, array( 'timeout' => 2, 'httpversion' => '1.0' ) ); - - if ( is_wp_error( $response ) ) - return false; - - $contents = wp_remote_retrieve_body( $response ); - - $pingback_link_offset_dquote = strpos($contents, $pingback_str_dquote); - $pingback_link_offset_squote = strpos($contents, $pingback_str_squote); - if ( $pingback_link_offset_dquote || $pingback_link_offset_squote ) { - $quote = ($pingback_link_offset_dquote) ? '"' : '\''; - $pingback_link_offset = ($quote=='"') ? $pingback_link_offset_dquote : $pingback_link_offset_squote; - $pingback_href_pos = @strpos($contents, 'href=', $pingback_link_offset); - $pingback_href_start = $pingback_href_pos+6; - $pingback_href_end = @strpos($contents, $quote, $pingback_href_start); - $pingback_server_url_len = $pingback_href_end - $pingback_href_start; - $pingback_server_url = substr($contents, $pingback_href_start, $pingback_server_url_len); - - // We may find rel="pingback" but an incomplete pingback URL - if ( $pingback_server_url_len > 0 ) { // We got it! - return $pingback_server_url; - } - } - - return false; -} - -/** - * Perform all pingbacks, enclosures, trackbacks, and send to pingback services. - * - * @since 2.1.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - */ -function do_all_pings() { - global $wpdb; - - // Do pingbacks - while ($ping = $wpdb->get_row("SELECT ID, post_content, meta_id FROM {$wpdb->posts}, {$wpdb->postmeta} WHERE {$wpdb->posts}.ID = {$wpdb->postmeta}.post_id AND {$wpdb->postmeta}.meta_key = '_pingme' LIMIT 1")) { - delete_metadata_by_mid( 'post', $ping->meta_id ); - pingback( $ping->post_content, $ping->ID ); - } - - // Do Enclosures - while ($enclosure = $wpdb->get_row("SELECT ID, post_content, meta_id FROM {$wpdb->posts}, {$wpdb->postmeta} WHERE {$wpdb->posts}.ID = {$wpdb->postmeta}.post_id AND {$wpdb->postmeta}.meta_key = '_encloseme' LIMIT 1")) { - delete_metadata_by_mid( 'post', $enclosure->meta_id ); - do_enclose( $enclosure->post_content, $enclosure->ID ); - } - - // Do Trackbacks - $trackbacks = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE to_ping <> '' AND post_status = 'publish'"); - if ( is_array($trackbacks) ) - foreach ( $trackbacks as $trackback ) - do_trackbacks($trackback); - - //Do Update Services/Generic Pings - generic_ping(); -} - -/** - * Perform trackbacks. - * - * @since 1.5.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param int $post_id Post ID to do trackbacks on. - */ -function do_trackbacks($post_id) { - global $wpdb; - - $post = get_post( $post_id ); - $to_ping = get_to_ping($post_id); - $pinged = get_pung($post_id); - if ( empty($to_ping) ) { - $wpdb->update($wpdb->posts, array('to_ping' => ''), array('ID' => $post_id) ); - return; - } - - if ( empty($post->post_excerpt) ) { - /** This filter is documented in wp-includes/post-template.php */ - $excerpt = apply_filters( 'the_content', $post->post_content, $post->ID ); - } else { - /** This filter is documented in wp-includes/post-template.php */ - $excerpt = apply_filters( 'the_excerpt', $post->post_excerpt ); - } - - $excerpt = str_replace(']]>', ']]>', $excerpt); - $excerpt = wp_html_excerpt($excerpt, 252, '…'); - - /** This filter is documented in wp-includes/post-template.php */ - $post_title = apply_filters( 'the_title', $post->post_title, $post->ID ); - $post_title = strip_tags($post_title); - - if ( $to_ping ) { - foreach ( (array) $to_ping as $tb_ping ) { - $tb_ping = trim($tb_ping); - if ( !in_array($tb_ping, $pinged) ) { - trackback($tb_ping, $post_title, $excerpt, $post_id); - $pinged[] = $tb_ping; - } else { - $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET to_ping = TRIM(REPLACE(to_ping, %s, '')) WHERE ID = %d", $tb_ping, $post_id) ); - } - } - } -} - -/** - * Sends pings to all of the ping site services. - * - * @since 1.2.0 - * - * @param int $post_id Post ID. - * @return int Same as Post ID from parameter - */ -function generic_ping( $post_id = 0 ) { - $services = get_option('ping_sites'); - - $services = explode("\n", $services); - foreach ( (array) $services as $service ) { - $service = trim($service); - if ( '' != $service ) - weblog_ping($service); - } - - return $post_id; -} - -/** - * Pings back the links found in a post. - * - * @since 0.71 - * - * @global string $wp_version - * - * @param string $content Post content to check for links. - * @param int $post_ID Post ID. - */ -function pingback($content, $post_ID) { - global $wp_version; - include_once(ABSPATH . WPINC . '/class-IXR.php'); - include_once(ABSPATH . WPINC . '/class-wp-http-ixr-client.php'); - - // original code by Mort (http://mort.mine.nu:8080) - $post_links = array(); - - $pung = get_pung($post_ID); - - // Step 1 - // Parsing the post, external links (if any) are stored in the $post_links array - $post_links_temp = wp_extract_urls( $content ); - - // Step 2. - // Walking thru the links array - // first we get rid of links pointing to sites, not to specific files - // Example: - // http://dummy-weblog.org - // http://dummy-weblog.org/ - // http://dummy-weblog.org/post.php - // We don't wanna ping first and second types, even if they have a valid - - foreach ( (array) $post_links_temp as $link_test ) : - if ( !in_array($link_test, $pung) && (url_to_postid($link_test) != $post_ID) // If we haven't pung it already and it isn't a link to itself - && !is_local_attachment($link_test) ) : // Also, let's never ping local attachments. - if ( $test = @parse_url($link_test) ) { - if ( isset($test['query']) ) - $post_links[] = $link_test; - elseif ( isset( $test['path'] ) && ( $test['path'] != '/' ) && ( $test['path'] != '' ) ) - $post_links[] = $link_test; - } - endif; - endforeach; - - $post_links = array_unique( $post_links ); - /** - * Fires just before pinging back links found in a post. - * - * @since 2.0.0 - * - * @param array &$post_links An array of post links to be checked, passed by reference. - * @param array &$pung Whether a link has already been pinged, passed by reference. - * @param int $post_ID The post ID. - */ - do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post_ID ) ); - - foreach ( (array) $post_links as $pagelinkedto ) { - $pingback_server_url = discover_pingback_server_uri( $pagelinkedto ); - - if ( $pingback_server_url ) { - @ set_time_limit( 60 ); - // Now, the RPC call - $pagelinkedfrom = get_permalink($post_ID); - - // using a timeout of 3 seconds should be enough to cover slow servers - $client = new WP_HTTP_IXR_Client($pingback_server_url); - $client->timeout = 3; - /** - * Filter the user agent sent when pinging-back a URL. - * - * @since 2.9.0 - * - * @param string $concat_useragent The user agent concatenated with ' -- WordPress/' - * and the WordPress version. - * @param string $useragent The useragent. - * @param string $pingback_server_url The server URL being linked to. - * @param string $pagelinkedto URL of page linked to. - * @param string $pagelinkedfrom URL of page linked from. - */ - $client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . $wp_version, $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom ); - // when set to true, this outputs debug messages by itself - $client->debug = false; - - if ( $client->query('pingback.ping', $pagelinkedfrom, $pagelinkedto) || ( isset($client->error->code) && 48 == $client->error->code ) ) // Already registered - add_ping( $post_ID, $pagelinkedto ); - } - } -} - -/** - * Check whether blog is public before returning sites. - * - * @since 2.1.0 - * - * @param mixed $sites Will return if blog is public, will not return if not public. - * @return mixed Empty string if blog is not public, returns $sites, if site is public. - */ -function privacy_ping_filter($sites) { - if ( '0' != get_option('blog_public') ) - return $sites; - else - return ''; -} - -/** - * Send a Trackback. - * - * Updates database when sending trackback to prevent duplicates. - * - * @since 0.71 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param string $trackback_url URL to send trackbacks. - * @param string $title Title of post. - * @param string $excerpt Excerpt of post. - * @param int $ID Post ID. - * @return int|false|void Database query from update. - */ -function trackback($trackback_url, $title, $excerpt, $ID) { - global $wpdb; - - if ( empty($trackback_url) ) - return; - - $options = array(); - $options['timeout'] = 4; - $options['body'] = array( - 'title' => $title, - 'url' => get_permalink($ID), - 'blog_name' => get_option('blogname'), - 'excerpt' => $excerpt - ); - - $response = wp_safe_remote_post( $trackback_url, $options ); - - if ( is_wp_error( $response ) ) - return; - - $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET pinged = CONCAT(pinged, '\n', %s) WHERE ID = %d", $trackback_url, $ID) ); - return $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET to_ping = TRIM(REPLACE(to_ping, %s, '')) WHERE ID = %d", $trackback_url, $ID) ); -} - -/** - * Send a pingback. - * - * @since 1.2.0 - * - * @global string $wp_version - * - * @param string $server Host of blog to connect to. - * @param string $path Path to send the ping. - */ -function weblog_ping($server = '', $path = '') { - global $wp_version; - include_once(ABSPATH . WPINC . '/class-IXR.php'); - include_once(ABSPATH . WPINC . '/class-wp-http-ixr-client.php'); - - // using a timeout of 3 seconds should be enough to cover slow servers - $client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path)); - $client->timeout = 3; - $client->useragent .= ' -- WordPress/'.$wp_version; - - // when set to true, this outputs debug messages by itself - $client->debug = false; - $home = trailingslashit( home_url() ); - if ( !$client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, get_bloginfo('rss2_url') ) ) // then try a normal ping - $client->query('weblogUpdates.ping', get_option('blogname'), $home); -} - -/** - * Default filter attached to pingback_ping_source_uri to validate the pingback's Source URI - * - * @since 3.5.1 - * @see wp_http_validate_url() - * - * @param string $source_uri - * @return string - */ -function pingback_ping_source_uri( $source_uri ) { - return (string) wp_http_validate_url( $source_uri ); -} - -/** - * Default filter attached to xmlrpc_pingback_error. - * - * Returns a generic pingback error code unless the error code is 48, - * which reports that the pingback is already registered. - * - * @since 3.5.1 - * @link http://www.hixie.ch/specs/pingback/pingback#TOC3 - * - * @param IXR_Error $ixr_error - * @return IXR_Error - */ -function xmlrpc_pingback_error( $ixr_error ) { - if ( $ixr_error->code === 48 ) - return $ixr_error; - return new IXR_Error( 0, '' ); -} - -// -// Cache -// - -/** - * Removes comment ID from the comment cache. - * - * @since 2.3.0 - * - * @param int|array $ids Comment ID or array of comment IDs to remove from cache - */ -function clean_comment_cache($ids) { - foreach ( (array) $ids as $id ) - wp_cache_delete($id, 'comment'); - - wp_cache_set( 'last_changed', microtime(), 'comment' ); -} - -/** - * Updates the comment cache of given comments. - * - * Will add the comments in $comments to the cache. If comment ID already exists - * in the comment cache then it will not be updated. The comment is added to the - * cache using the comment group with the key using the ID of the comments. - * - * @since 2.3.0 - * - * @param array $comments Array of comment row objects - */ -function update_comment_cache($comments) { - foreach ( (array) $comments as $comment ) - wp_cache_add($comment->comment_ID, $comment, 'comment'); -} - -// -// Internal -// - -/** - * Close comments on old posts on the fly, without any extra DB queries. Hooked to the_posts. - * - * @access private - * @since 2.7.0 - * - * @param WP_Post $posts Post data object. - * @param WP_Query $query Query object. - * @return array - */ -function _close_comments_for_old_posts( $posts, $query ) { - if ( empty( $posts ) || ! $query->is_singular() || ! get_option( 'close_comments_for_old_posts' ) ) - return $posts; - - /** - * Filter the list of post types to automatically close comments for. - * - * @since 3.2.0 - * - * @param array $post_types An array of registered post types. Default array with 'post'. - */ - $post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) ); - if ( ! in_array( $posts[0]->post_type, $post_types ) ) - return $posts; - - $days_old = (int) get_option( 'close_comments_days_old' ); - if ( ! $days_old ) - return $posts; - - if ( time() - strtotime( $posts[0]->post_date_gmt ) > ( $days_old * DAY_IN_SECONDS ) ) { - $posts[0]->comment_status = 'closed'; - $posts[0]->ping_status = 'closed'; - } - - return $posts; -} - -/** - * Close comments on an old post. Hooked to comments_open and pings_open. - * - * @access private - * @since 2.7.0 - * - * @param bool $open Comments open or closed - * @param int $post_id Post ID - * @return bool $open - */ -function _close_comments_for_old_post( $open, $post_id ) { - if ( ! $open ) - return $open; - - if ( !get_option('close_comments_for_old_posts') ) - return $open; - - $days_old = (int) get_option('close_comments_days_old'); - if ( !$days_old ) - return $open; - - $post = get_post($post_id); - - /** This filter is documented in wp-includes/comment.php */ - $post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) ); - if ( ! in_array( $post->post_type, $post_types ) ) - return $open; - - if ( time() - strtotime( $post->post_date_gmt ) > ( $days_old * DAY_IN_SECONDS ) ) - return false; - - return $open; -} diff --git a/wp-includes/compat.php b/wp-includes/compat.php deleted file mode 100644 index 553faeb1d8..0000000000 --- a/wp-includes/compat.php +++ /dev/null @@ -1,262 +0,0 @@ - 1 && $str = array_pop( $pieces ) ); // If there's anything left over, repeat the loop. - - return join( '', array_slice( $chars, $start, $length ) ); -} - -if ( ! function_exists( 'mb_strlen' ) ) : - function mb_strlen( $str, $encoding = null ) { - return _mb_strlen( $str, $encoding ); - } -endif; - -/* - * Only understands UTF-8 and 8bit. All other character sets will be treated as 8bit. - * For $encoding === UTF-8, the $str input is expected to be a valid UTF-8 byte sequence. - * The behavior of this function for invalid inputs is undefined. - */ -function _mb_strlen( $str, $encoding = null ) { - if ( null === $encoding ) { - $encoding = get_option( 'blog_charset' ); - } - - // The solution below works only for UTF-8, - // so in case of a different charset just use built-in strlen() - if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) { - return strlen( $str ); - } - - if ( _wp_can_use_pcre_u() ) { - // Use the regex unicode support to separate the UTF-8 characters into an array - preg_match_all( '/./us', $str, $match ); - return count( $match[0] ); - } - - $regex = '/(?: - [\x00-\x7F] # single-byte sequences 0xxxxxxx - | [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx - | \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2 - | [\xE1-\xEC][\x80-\xBF]{2} - | \xED[\x80-\x9F][\x80-\xBF] - | [\xEE-\xEF][\x80-\xBF]{2} - | \xF0[\x90-\xBF][\x80-\xBF]{2} # four-byte sequences 11110xxx 10xxxxxx * 3 - | [\xF1-\xF3][\x80-\xBF]{3} - | \xF4[\x80-\x8F][\x80-\xBF]{2} - )/x'; - - $count = 1; // Start at 1 instead of 0 since the first thing we do is decrement - do { - // We had some string left over from the last round, but we counted it in that last round. - $count--; - - // Split by UTF-8 character, limit to 1000 characters (last array element will contain the rest of the string) - $pieces = preg_split( $regex, $str, 1000 ); - - // Increment - $count += count( $pieces ); - } while ( $str = array_pop( $pieces ) ); // If there's anything left over, repeat the loop. - - // Fencepost: preg_split() always returns one extra item in the array - return --$count; -} - -if ( !function_exists('hash_hmac') ): -function hash_hmac($algo, $data, $key, $raw_output = false) { - return _hash_hmac($algo, $data, $key, $raw_output); -} -endif; - -function _hash_hmac($algo, $data, $key, $raw_output = false) { - $packs = array('md5' => 'H32', 'sha1' => 'H40'); - - if ( !isset($packs[$algo]) ) - return false; - - $pack = $packs[$algo]; - - if (strlen($key) > 64) - $key = pack($pack, $algo($key)); - - $key = str_pad($key, 64, chr(0)); - - $ipad = (substr($key, 0, 64) ^ str_repeat(chr(0x36), 64)); - $opad = (substr($key, 0, 64) ^ str_repeat(chr(0x5C), 64)); - - $hmac = $algo($opad . pack($pack, $algo($ipad . $data))); - - if ( $raw_output ) - return pack( $pack, $hmac ); - return $hmac; -} - -if ( !function_exists('json_encode') ) { - function json_encode( $string ) { - global $wp_json; - - if ( ! ( $wp_json instanceof Services_JSON ) ) { - require_once( ABSPATH . WPINC . '/class-json.php' ); - $wp_json = new Services_JSON(); - } - - return $wp_json->encodeUnsafe( $string ); - } -} - -if ( !function_exists('json_decode') ) { - /** - * @global Services_JSON $wp_json - * @param string $string - * @param bool $assoc_array - * @return object|array - */ - function json_decode( $string, $assoc_array = false ) { - global $wp_json; - - if ( ! ($wp_json instanceof Services_JSON ) ) { - require_once( ABSPATH . WPINC . '/class-json.php' ); - $wp_json = new Services_JSON(); - } - - $res = $wp_json->decode( $string ); - if ( $assoc_array ) - $res = _json_decode_object_helper( $res ); - return $res; - } - - /** - * @param object $data - * @return array - */ - function _json_decode_object_helper($data) { - if ( is_object($data) ) - $data = get_object_vars($data); - return is_array($data) ? array_map(__FUNCTION__, $data) : $data; - } -} - -if ( ! function_exists( 'hash_equals' ) ) : -/** - * Compare two strings in constant time. - * - * This function was added in PHP 5.6. - * It can leak the length of a string. - * - * @since 3.9.2 - * - * @param string $a Expected string. - * @param string $b Actual string. - * @return bool Whether strings are equal. - */ -function hash_equals( $a, $b ) { - $a_length = strlen( $a ); - if ( $a_length !== strlen( $b ) ) { - return false; - } - $result = 0; - - // Do not attempt to "optimize" this. - for ( $i = 0; $i < $a_length; $i++ ) { - $result |= ord( $a[ $i ] ) ^ ord( $b[ $i ] ); - } - - return $result === 0; -} -endif; - -// JSON_PRETTY_PRINT was introduced in PHP 5.4 -// Defined here to prevent a notice when using it with wp_json_encode() -if ( ! defined( 'JSON_PRETTY_PRINT' ) ) { - define( 'JSON_PRETTY_PRINT', 128 ); -} diff --git a/wp-includes/cron.php b/wp-includes/cron.php deleted file mode 100644 index 8b88c1220b..0000000000 --- a/wp-includes/cron.php +++ /dev/null @@ -1,469 +0,0 @@ - $hook, 'timestamp' => $timestamp, 'schedule' => false, 'args' => $args ); - /** - * Filter a single event before it is scheduled. - * - * @since 3.1.0 - * - * @param object $event An object containing an event's data. - */ - $event = apply_filters( 'schedule_event', $event ); - - // A plugin disallowed this event - if ( ! $event ) - return false; - - $key = md5(serialize($event->args)); - - $crons[$event->timestamp][$event->hook][$key] = array( 'schedule' => $event->schedule, 'args' => $event->args ); - uksort( $crons, "strnatcasecmp" ); - _set_cron_array( $crons ); -} - -/** - * Schedule a periodic event. - * - * Schedules a hook which will be executed by the WordPress actions core on a - * specific interval, specified by you. The action will trigger when someone - * visits your WordPress site, if the scheduled time has passed. - * - * Valid values for the recurrence are hourly, daily and twicedaily. These can - * be extended using the cron_schedules filter in wp_get_schedules(). - * - * Use wp_next_scheduled() to prevent duplicates - * - * @since 2.1.0 - * - * @param int $timestamp Timestamp for when to run the event. - * @param string $recurrence How often the event should recur. - * @param string $hook Action hook to execute when cron is run. - * @param array $args Optional. Arguments to pass to the hook's callback function. - * @return false|void False when does not schedule event. - */ -function wp_schedule_event( $timestamp, $recurrence, $hook, $args = array()) { - $crons = _get_cron_array(); - $schedules = wp_get_schedules(); - - if ( !isset( $schedules[$recurrence] ) ) - return false; - - $event = (object) array( 'hook' => $hook, 'timestamp' => $timestamp, 'schedule' => $recurrence, 'args' => $args, 'interval' => $schedules[$recurrence]['interval'] ); - /** This filter is documented in wp-includes/cron.php */ - $event = apply_filters( 'schedule_event', $event ); - - // A plugin disallowed this event - if ( ! $event ) - return false; - - $key = md5(serialize($event->args)); - - $crons[$event->timestamp][$event->hook][$key] = array( 'schedule' => $event->schedule, 'args' => $event->args, 'interval' => $event->interval ); - uksort( $crons, "strnatcasecmp" ); - _set_cron_array( $crons ); -} - -/** - * Reschedule a recurring event. - * - * @since 2.1.0 - * - * @param int $timestamp Timestamp for when to run the event. - * @param string $recurrence How often the event should recur. - * @param string $hook Action hook to execute when cron is run. - * @param array $args Optional. Arguments to pass to the hook's callback function. - * @return false|void False when does not schedule event. - */ -function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array() ) { - $crons = _get_cron_array(); - $schedules = wp_get_schedules(); - $key = md5( serialize( $args ) ); - $interval = 0; - - // First we try to get it from the schedule - if ( isset( $schedules[ $recurrence ] ) ) { - $interval = $schedules[ $recurrence ]['interval']; - } - // Now we try to get it from the saved interval in case the schedule disappears - if ( 0 == $interval ) { - $interval = $crons[ $timestamp ][ $hook ][ $key ]['interval']; - } - // Now we assume something is wrong and fail to schedule - if ( 0 == $interval ) { - return false; - } - - $now = time(); - - if ( $timestamp >= $now ) { - $timestamp = $now + $interval; - } else { - $timestamp = $now + ( $interval - ( ( $now - $timestamp ) % $interval ) ); - } - - wp_schedule_event( $timestamp, $recurrence, $hook, $args ); -} - -/** - * Unschedule a previously scheduled cron job. - * - * The $timestamp and $hook parameters are required, so that the event can be - * identified. - * - * @since 2.1.0 - * - * @param int $timestamp Timestamp for when to run the event. - * @param string $hook Action hook, the execution of which will be unscheduled. - * @param array $args Arguments to pass to the hook's callback function. - * Although not passed to a callback function, these arguments are used - * to uniquely identify the scheduled event, so they should be the same - * as those used when originally scheduling the event. - */ -function wp_unschedule_event( $timestamp, $hook, $args = array() ) { - $crons = _get_cron_array(); - $key = md5(serialize($args)); - unset( $crons[$timestamp][$hook][$key] ); - if ( empty($crons[$timestamp][$hook]) ) - unset( $crons[$timestamp][$hook] ); - if ( empty($crons[$timestamp]) ) - unset( $crons[$timestamp] ); - _set_cron_array( $crons ); -} - -/** - * Unschedule all cron jobs attached to a specific hook. - * - * @since 2.1.0 - * - * @param string $hook Action hook, the execution of which will be unscheduled. - * @param array $args Optional. Arguments that were to be pass to the hook's callback function. - */ -function wp_clear_scheduled_hook( $hook, $args = array() ) { - // Backward compatibility - // Previously this function took the arguments as discrete vars rather than an array like the rest of the API - if ( !is_array($args) ) { - _deprecated_argument( __FUNCTION__, '3.0', __('This argument has changed to an array to match the behavior of the other cron functions.') ); - $args = array_slice( func_get_args(), 1 ); - } - - // This logic duplicates wp_next_scheduled() - // It's required due to a scenario where wp_unschedule_event() fails due to update_option() failing, - // and, wp_next_scheduled() returns the same schedule in an infinite loop. - $crons = _get_cron_array(); - if ( empty( $crons ) ) - return; - - $key = md5( serialize( $args ) ); - foreach ( $crons as $timestamp => $cron ) { - if ( isset( $cron[ $hook ][ $key ] ) ) { - wp_unschedule_event( $timestamp, $hook, $args ); - } - } -} - -/** - * Retrieve the next timestamp for a cron event. - * - * @since 2.1.0 - * - * @param string $hook Action hook to execute when cron is run. - * @param array $args Optional. Arguments to pass to the hook's callback function. - * @return false|int The UNIX timestamp of the next time the scheduled event will occur. - */ -function wp_next_scheduled( $hook, $args = array() ) { - $crons = _get_cron_array(); - $key = md5(serialize($args)); - if ( empty($crons) ) - return false; - foreach ( $crons as $timestamp => $cron ) { - if ( isset( $cron[$hook][$key] ) ) - return $timestamp; - } - return false; -} - -/** - * Send request to run cron through HTTP request that doesn't halt page loading. - * - * @since 2.1.0 - */ -function spawn_cron( $gmt_time = 0 ) { - if ( ! $gmt_time ) - $gmt_time = microtime( true ); - - if ( defined('DOING_CRON') || isset($_GET['doing_wp_cron']) ) - return; - - /* - * Get the cron lock, which is a unix timestamp of when the last cron was spawned - * and has not finished running. - * - * Multiple processes on multiple web servers can run this code concurrently, - * this lock attempts to make spawning as atomic as possible. - */ - $lock = get_transient('doing_cron'); - - if ( $lock > $gmt_time + 10 * MINUTE_IN_SECONDS ) - $lock = 0; - - // don't run if another process is currently running it or more than once every 60 sec. - if ( $lock + WP_CRON_LOCK_TIMEOUT > $gmt_time ) - return; - - //sanity check - $crons = _get_cron_array(); - if ( !is_array($crons) ) - return; - - $keys = array_keys( $crons ); - if ( isset($keys[0]) && $keys[0] > $gmt_time ) - return; - - if ( defined( 'ALTERNATE_WP_CRON' ) && ALTERNATE_WP_CRON ) { - if ( ! empty( $_POST ) || defined( 'DOING_AJAX' ) || defined( 'XMLRPC_REQUEST' ) ) { - return; - } - - $doing_wp_cron = sprintf( '%.22F', $gmt_time ); - set_transient( 'doing_cron', $doing_wp_cron ); - - ob_start(); - wp_redirect( add_query_arg( 'doing_wp_cron', $doing_wp_cron, wp_unslash( $_SERVER['REQUEST_URI'] ) ) ); - echo ' '; - - // flush any buffers and send the headers - while ( @ob_end_flush() ); - flush(); - - WP_DEBUG ? include_once( ABSPATH . 'wp-cron.php' ) : @include_once( ABSPATH . 'wp-cron.php' ); - return; - } - - // Set the cron lock with the current unix timestamp, when the cron is being spawned. - $doing_wp_cron = sprintf( '%.22F', $gmt_time ); - set_transient( 'doing_cron', $doing_wp_cron ); - - /** - * Filter the cron request arguments. - * - * @since 3.5.0 - * - * @param array $cron_request_array { - * An array of cron request URL arguments. - * - * @type string $url The cron request URL. - * @type int $key The 22 digit GMT microtime. - * @type array $args { - * An array of cron request arguments. - * - * @type int $timeout The request timeout in seconds. Default .01 seconds. - * @type bool $blocking Whether to set blocking for the request. Default false. - * @type bool $sslverify Whether SSL should be verified for the request. Default false. - * } - * } - */ - $cron_request = apply_filters( 'cron_request', array( - 'url' => add_query_arg( 'doing_wp_cron', $doing_wp_cron, site_url( 'wp-cron.php' ) ), - 'key' => $doing_wp_cron, - 'args' => array( - 'timeout' => 0.01, - 'blocking' => false, - /** This filter is documented in wp-includes/class-http.php */ - 'sslverify' => apply_filters( 'https_local_ssl_verify', false ) - ) - ) ); - - wp_remote_post( $cron_request['url'], $cron_request['args'] ); -} - -/** - * Run scheduled callbacks or spawn cron for all scheduled events. - * - * @since 2.1.0 - */ -function wp_cron() { - // Prevent infinite loops caused by lack of wp-cron.php - if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false || ( defined('DISABLE_WP_CRON') && DISABLE_WP_CRON ) ) - return; - - if ( false === $crons = _get_cron_array() ) - return; - - $gmt_time = microtime( true ); - $keys = array_keys( $crons ); - if ( isset($keys[0]) && $keys[0] > $gmt_time ) - return; - - $schedules = wp_get_schedules(); - foreach ( $crons as $timestamp => $cronhooks ) { - if ( $timestamp > $gmt_time ) break; - foreach ( (array) $cronhooks as $hook => $args ) { - if ( isset($schedules[$hook]['callback']) && !call_user_func( $schedules[$hook]['callback'] ) ) - continue; - spawn_cron( $gmt_time ); - break 2; - } - } -} - -/** - * Retrieve supported and filtered Cron recurrences. - * - * The supported recurrences are 'hourly' and 'daily'. A plugin may add more by - * hooking into the 'cron_schedules' filter. The filter accepts an array of - * arrays. The outer array has a key that is the name of the schedule or for - * example 'weekly'. The value is an array with two keys, one is 'interval' and - * the other is 'display'. - * - * The 'interval' is a number in seconds of when the cron job should run. So for - * 'hourly', the time is 3600 or 60*60. For weekly, the value would be - * 60*60*24*7 or 604800. The value of 'interval' would then be 604800. - * - * The 'display' is the description. For the 'weekly' key, the 'display' would - * be `__( 'Once Weekly' )`. - * - * For your plugin, you will be passed an array. you can easily add your - * schedule by doing the following. - * - * // Filter parameter variable name is 'array'. - * $array['weekly'] = array( - * 'interval' => 604800, - * 'display' => __( 'Once Weekly' ) - * ); - * - * - * @since 2.1.0 - * - * @return array - */ -function wp_get_schedules() { - $schedules = array( - 'hourly' => array( 'interval' => HOUR_IN_SECONDS, 'display' => __( 'Once Hourly' ) ), - 'twicedaily' => array( 'interval' => 12 * HOUR_IN_SECONDS, 'display' => __( 'Twice Daily' ) ), - 'daily' => array( 'interval' => DAY_IN_SECONDS, 'display' => __( 'Once Daily' ) ), - ); - /** - * Filter the non-default cron schedules. - * - * @since 2.1.0 - * - * @param array $new_schedules An array of non-default cron schedules. Default empty. - */ - return array_merge( apply_filters( 'cron_schedules', array() ), $schedules ); -} - -/** - * Retrieve Cron schedule for hook with arguments. - * - * @since 2.1.0 - * - * @param string $hook Action hook to execute when cron is run. - * @param array $args Optional. Arguments to pass to the hook's callback function. - * @return string|false False, if no schedule. Schedule on success. - */ -function wp_get_schedule($hook, $args = array()) { - $crons = _get_cron_array(); - $key = md5(serialize($args)); - if ( empty($crons) ) - return false; - foreach ( $crons as $timestamp => $cron ) { - if ( isset( $cron[$hook][$key] ) ) - return $cron[$hook][$key]['schedule']; - } - return false; -} - -// -// Private functions -// - -/** - * Retrieve cron info array option. - * - * @since 2.1.0 - * @access private - * - * @return false|array CRON info array. - */ -function _get_cron_array() { - $cron = get_option('cron'); - if ( ! is_array($cron) ) - return false; - - if ( !isset($cron['version']) ) - $cron = _upgrade_cron_array($cron); - - unset($cron['version']); - - return $cron; -} - -/** - * Updates the CRON option with the new CRON array. - * - * @since 2.1.0 - * @access private - * - * @param array $cron Cron info array from {@link _get_cron_array()}. - */ -function _set_cron_array($cron) { - $cron['version'] = 2; - update_option( 'cron', $cron ); -} - -/** - * Upgrade a Cron info array. - * - * This function upgrades the Cron info array to version 2. - * - * @since 2.1.0 - * @access private - * - * @param array $cron Cron info array from {@link _get_cron_array()}. - * @return array An upgraded Cron info array. - */ -function _upgrade_cron_array($cron) { - if ( isset($cron['version']) && 2 == $cron['version']) - return $cron; - - $new_cron = array(); - - foreach ( (array) $cron as $timestamp => $hooks) { - foreach ( (array) $hooks as $hook => $args ) { - $key = md5(serialize($args['args'])); - $new_cron[$timestamp][$hook][$key] = $args; - } - } - - $new_cron['version'] = 2; - update_option( 'cron', $new_cron ); - return $new_cron; -} diff --git a/wp-includes/css/admin-bar-rtl.css b/wp-includes/css/admin-bar-rtl.css deleted file mode 100644 index fff45052a6..0000000000 --- a/wp-includes/css/admin-bar-rtl.css +++ /dev/null @@ -1,1148 +0,0 @@ -#wpadminbar * { - height: auto; - width: auto; - margin: 0; - padding: 0; - position: static; - text-shadow: none; - text-transform: none; - letter-spacing: normal; - font: normal 13px/32px "Open Sans", sans-serif; - -webkit-border-radius: 0; - border-radius: 0; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - -webkit-transition: none; - transition: none; - -webkit-font-smoothing: subpixel-antialiased; /* Prevent Safari from switching to standard antialiasing on hover */ - -moz-osx-font-smoothing: auto; /* Prevent Firefox from inheriting from themes that use other values */ -} - -.rtl #wpadminbar * { - font-family: Tahoma, sans-serif; -} - -html:lang(he-il) .rtl #wpadminbar * { - font-family: Arial, sans-serif; -} - -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #eee; -} - -#wpadminbar #wp-admin-bar-site-name a.ab-item, -#wpadminbar #wp-admin-bar-my-sites a.ab-item { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -#wpadminbar ul li:before, -#wpadminbar ul li:after { - content: normal; -} - -#wpadminbar a, -#wpadminbar a:hover, -#wpadminbar a img, -#wpadminbar a img:hover { - outline: none; - border: none; - text-decoration: none; - background: none; -} - -#wpadminbar a:focus, -#wpadminbar a:active, -#wpadminbar input[type="text"], -#wpadminbar input[type="password"], -#wpadminbar input[type="number"], -#wpadminbar input[type="search"], -#wpadminbar input[type="email"], -#wpadminbar input[type="url"], -#wpadminbar select, -#wpadminbar textarea, -#wpadminbar div { - -webkit-box-shadow: none; - box-shadow: none; - outline: none; -} - -#wpadminbar { - direction: rtl; - color: #ccc; - font: normal 13px/32px "Open Sans", sans-serif; - height: 32px; - position: fixed; - top: 0; - right: 0; - width: 100%; - min-width: 600px; /* match the min-width of the body in wp-admin.css */ - z-index: 99999; - background: #23282d; -} - -#wpadminbar .ab-sub-wrapper, -#wpadminbar ul, -#wpadminbar ul li { - background: none; - clear: none; - list-style: none; - margin: 0; - padding: 0; - position: relative; - text-indent: 0; - z-index: 99999; -} - -#wpadminbar ul#wp-admin-bar-root-default>li { - margin-left: 0; -} - -#wpadminbar .quicklinks ul { - text-align: right; -} - -#wpadminbar li { - float: right; -} - -#wpadminbar .ab-empty-item { - outline: none; -} - -#wpadminbar .quicklinks .ab-top-secondary > li { - float: left; -} - -#wpadminbar .quicklinks a, -#wpadminbar .quicklinks .ab-empty-item, -#wpadminbar .shortlink-input { - height: 32px; - display: block; - padding: 0 10px; - margin: 0; -} - -#wpadminbar .quicklinks > ul > li > a { - padding: 0 7px 0 8px; -} - -#wpadminbar .menupop .ab-sub-wrapper, -#wpadminbar .shortlink-input { - margin: 0; - padding: 0; - -webkit-box-shadow: 0 3px 5px rgba(0,0,0,0.2); - box-shadow: 0 3px 5px rgba(0,0,0,0.2); - background: #32373c; - display: none; - position: absolute; - float: none; -} - -#wpadminbar.ie7 .menupop .ab-sub-wrapper, -#wpadminbar.ie7 .shortlink-input { - top: 32px; - right: 0; -} - -#wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper { - min-width: 100%; -} - -#wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper { - left: 0; - right: auto; -} - -#wpadminbar .ab-submenu { - padding: 6px 0; -} - -#wpadminbar .selected .shortlink-input { - display: block; -} - -#wpadminbar .quicklinks .menupop ul li { - float: none; -} - -#wpadminbar .quicklinks .menupop ul li a strong { - font-weight: bold; -} - -#wpadminbar .quicklinks .menupop ul li .ab-item, -#wpadminbar .quicklinks .menupop ul li a strong, -#wpadminbar .quicklinks .menupop.hover ul li .ab-item, -#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item, -#wpadminbar .shortlink-input { - line-height: 26px; - height: 26px; - white-space: nowrap; - min-width: 140px; -} - -#wpadminbar .shortlink-input { - width: 200px; -} - -#wpadminbar.nojs li:hover > .ab-sub-wrapper, -#wpadminbar li.hover > .ab-sub-wrapper { - display: block; -} - -#wpadminbar .menupop li:hover > .ab-sub-wrapper, -#wpadminbar .menupop li.hover > .ab-sub-wrapper { - margin-right: 100%; - margin-top: -32px; -} - -#wpadminbar .ab-top-secondary .menupop li:hover > .ab-sub-wrapper, -#wpadminbar .ab-top-secondary .menupop li.hover > .ab-sub-wrapper { - margin-right: 0; - right: inherit; - left: 100%; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar .ab-top-menu > li.hover > .ab-item { - background: #32373c; - color: #00b9eb; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #00b9eb; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon, -#wpadminbar .ab-icon, -#wpadminbar .ab-item:before { - position: relative; - float: right; - font: normal 20px/1 'dashicons'; - speak: none; - padding: 4px 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - background-image: none !important; - margin-left: 6px; -} - -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar #adminbarsearch:before { - color: #a0a5aa; - color: rgba(240,245,250,0.6); -} - -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar #adminbarsearch:before { - position: relative; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -#wpadminbar .ab-label { - display: inline-block; - height: 32px; -} - -#wpadminbar .ab-submenu .ab-item { - color: #b4b9be; - color: rgba(240,245,250,0.7); -} - -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop ul li a strong, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #b4b9be; - color: rgba(240,245,250,0.7); -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #00b9eb; -} - -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #b4b9be; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #00b9eb; -} - -#wpadminbar .menupop .menupop > .ab-item:before, -#wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before { - position: absolute; - font: normal 17px/1 'dashicons'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -#wpadminbar .menupop .menupop > .ab-item { - display: block; - padding-left: 2em; -} - -#wpadminbar .menupop .menupop > .ab-item:before { - top: 1px; - left: 4px; - content: '\f139'; - color: inherit; -} - -#wpadminbar .ab-top-secondary .menupop .menupop > .ab-item { - padding-right: 2em; - padding-left: 1em; -} - -#wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before { - top: 5px; - right: 3px; - content: '\f141'; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary { - display: block; - position: relative; - left: auto; - margin: 0; - -webkit-box-shadow: none; - box-shadow: none; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #464b50; -} - -#wpadminbar .quicklinks .menupop .ab-sub-secondary > li > a:hover, -#wpadminbar .quicklinks .menupop .ab-sub-secondary > li .ab-item:focus a { - color: #00b9eb; -} - -#wpadminbar .quicklinks a span#ab-updates { - background: #eee; - color: #32373c; - display: inline; - padding: 2px 5px; - font-size: 10px; - font-weight: bold; - -webkit-border-radius: 10px; - border-radius: 10px; -} - -#wpadminbar .quicklinks a:hover span#ab-updates { - background: #fff; - color: #000; -} - -#wpadminbar .ab-top-secondary { - float: left; -} - -#wpadminbar ul li:last-child, -#wpadminbar ul li:last-child .ab-item { - -webkit-box-shadow: none; - box-shadow: none; -} - -/** - * My Account - */ -#wp-admin-bar-my-account > ul { - min-width: 198px; -} - -#wp-admin-bar-my-account > .ab-item:before { - content: "\f110"; - top: 2px; - float: left; - margin-right: 6px; - margin-left: 0; -} - -#wp-admin-bar-my-account.with-avatar > .ab-item:before { - display: none; - content: none; -} - -#wp-admin-bar-my-account.with-avatar > ul { - min-width: 270px; -} - -#wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar .ab-item { - white-space: nowrap; -} - -#wpadminbar #wp-admin-bar-user-actions > li { - margin-right: 16px; - margin-left: 16px; -} - -#wpadminbar #wp-admin-bar-user-actions.ab-submenu { - padding: 6px 0 12px; -} - -#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions > li { - margin-right: 88px; -} - -#wpadminbar #wp-admin-bar-user-info { - margin-top: 6px; - margin-bottom: 15px; - height: auto; - background: none; -} - -#wp-admin-bar-user-info .avatar { - position: absolute; - right: -72px; - top: 4px; - width: 64px; - height: 64px; -} - -#wpadminbar #wp-admin-bar-user-info a { - background: none; - height: auto; -} - -#wpadminbar #wp-admin-bar-user-info span { - background: none; - padding: 0; - height: 18px; -} - -#wpadminbar #wp-admin-bar-user-info .display-name, -#wpadminbar #wp-admin-bar-user-info .username { - display: block; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #999; - font-size: 11px; -} - -#wpadminbar #wp-admin-bar-my-account.with-avatar > a img { - width: auto; - height: 16px; - padding: 0; - border: 1px solid #82878c; - background: #eee; - line-height: 24px; - vertical-align: middle; - margin: -4px 6px 0 0; - float: none; - display: inline; -} - -#wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar > a img { - width: auto; -} - -/** - * WP Logo - */ -#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon { - width: 15px; - height: 20px; - margin-left: 0; - padding: 6px 0 5px; -} - -#wpadminbar #wp-admin-bar-wp-logo > .ab-item { - padding: 0 7px; -} - -#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before { - content: '\f120'; - top: 2px; -} - -/* - * My Sites & Site Title - */ -#wpadminbar .quicklinks li .blavatar { - float: right; - font: normal 16px/1 'dashicons' !important; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - color: #eee; -} - -#wpadminbar .quicklinks li a:hover .blavatar { - color: #00b9eb; -} - -#wpadminbar .quicklinks li .blavatar:before { - content: '\f120'; - height: 16px; - width: 16px; - display: inline-block; - margin: 6px -2px 0 8px; -} - -#wpadminbar #wp-admin-bar-appearance { - margin-top: -12px; -} - -#wpadminbar #wp-admin-bar-my-sites > .ab-item:before, -#wpadminbar #wp-admin-bar-site-name > .ab-item:before { - content: '\f112'; - top: 2px; -} - -#wpadminbar #wp-admin-bar-customize > .ab-item:before { - content: '\f540'; - top: 2px; -} - - -#wpadminbar #wp-admin-bar-edit > .ab-item:before { - content: '\f464'; - top: 2px; -} - -#wpadminbar #wp-admin-bar-site-name > .ab-item:before { - content: "\f226"; -} - -.wp-admin #wpadminbar #wp-admin-bar-site-name > .ab-item:before { - content: "\f102"; -} - - - -/** - * Comments - */ -#wpadminbar #wp-admin-bar-comments .ab-icon { - margin-left: 6px; -} - -#wpadminbar #wp-admin-bar-comments .ab-icon:before { - content: '\f101'; - top: 3px; -} - -#wpadminbar #wp-admin-bar-comments .count-0 { - opacity: .5; -} - -/** - * New Content - */ -#wpadminbar #wp-admin-bar-new-content .ab-icon:before { - content: '\f132'; - top: 4px; -} - -/** - * Updates - */ -#wpadminbar #wp-admin-bar-updates .ab-icon:before { - content: '\f463'; - top: 2px; -} - -/** - * Search - */ -#wpadminbar.ie8 #wp-admin-bar-search { - display: block; - min-width: 32px; -} -#wpadminbar #wp-admin-bar-search .ab-item { - padding: 0; - background: transparent; -} - -#wpadminbar #adminbarsearch { - position: relative; - height: 32px; - padding: 0 2px; - z-index: 1; -} - -#wpadminbar #adminbarsearch:before { - position: absolute; - top: 6px; - right: 5px; - z-index: 20; - font: normal 20px/1 'dashicons' !important; - content: '\f179'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input { - position: relative; - z-index: 30; - font: 13px/24px "Open Sans", sans-serif; - height: 24px; - width: 24px; - max-width: none; - padding: 0 24px 0 3px; - margin: 0; - color: #ccc; - background-color: rgba( 255, 255, 255, 0 ); - border: none; - outline: none; - cursor: pointer; - -webkit-box-shadow: none; - box-shadow: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - -webkit-transition-duration: 400ms; - transition-duration: 400ms; - -webkit-transition-property: width, background; - transition-property: width, background; - -webkit-transition-timing-function: ease; - transition-timing-function: ease; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - z-index: 10; - color: #000; - width: 200px; - background-color: rgba( 255, 255, 255, 0.9 ); - cursor: text; - border: 0; -} - -#wpadminbar.ie7 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input { - margin-top: 3px; - width: 120px; -} - -#wpadminbar.ie8 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input { - /* IE8 z-index bug with transparent / empty elements - fill in with an encoded transparent GIF */ - background: transparent 100% 0 repeat scroll url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBR‌​AA7"); -} - -/* IE8 doesn't redraw the pseudo elements unless you make a change to the content */ -#wpadminbar.ie8 #adminbarsearch.adminbar-focused:before { - content: '\f179 '; /* extra space */ -} - -#wpadminbar.ie8 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - background: #fff; - z-index: -1; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #999; -} -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #999; -} -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #999; -} -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #999; -} - -#wpadminbar #adminbarsearch .adminbar-button { - display: none; -} - -/** - * Customize support classes - */ -.no-customize-support .hide-if-no-customize, -.customize-support .hide-if-customize, -.no-customize-support #wpadminbar .hide-if-no-customize, -.no-customize-support.wp-core-ui .hide-if-no-customize, -.no-customize-support .wp-core-ui .hide-if-no-customize, -.customize-support #wpadminbar .hide-if-customize, -.customize-support.wp-core-ui .hide-if-customize, -.customize-support .wp-core-ui .hide-if-customize { - display: none; -} - -/* Skip link */ -#wpadminbar .screen-reader-text, -#wpadminbar .screen-reader-text span { - position: absolute; - right: -1000em; - top: -1000em; - height: 1px; - width: 1px; - overflow: hidden; -} - -#wpadminbar .screen-reader-shortcut { - position: absolute; - top: -1000em; -} - -#wpadminbar .screen-reader-shortcut:focus { - right: 6px; - top: 7px; - height: auto; - width: auto; - display: block; - font-size: 14px; - font-weight: bold; - padding: 15px 23px 14px; - background: #f1f1f1; - color: #21759b; - z-index: 100000; - line-height: normal; - text-decoration: none; - -webkit-box-shadow: 0 0 2px 2px rgba(0,0,0,.6); - box-shadow: 0 0 2px 2px rgba(0,0,0,.6); -} - -/** - * IE 6-targeted rules - */ -* html #wpadminbar { - overflow: hidden; - position: absolute; -} - -* html #wpadminbar .quicklinks ul li a { - float: right; -} - -* html #wpadminbar .menupop a span { - background-image: none; -} - -/* No @font-face support */ -.no-font-face #wpadminbar ul.ab-top-menu > li > a.ab-item { - display: block; - width: 45px; - text-align: center; - overflow: hidden; - margin: 0 3px; -} - -.no-font-face #wpadminbar #wp-admin-bar-my-sites > .ab-item, -.no-font-face #wpadminbar #wp-admin-bar-site-name > .ab-item, -.no-font-face #wpadminbar #wp-admin-bar-edit > .ab-item { - text-indent: 0; -} - -.no-font-face #wpadminbar .ab-icon, -.no-font-face #wpadminbar .ab-icon:before, -.no-font-face #wpadminbar a.ab-item:before, -.no-font-face #wpadminbar #wp-admin-bar-wp-logo > .ab-item { - display: none !important; -} - -.no-font-face #wpadminbar ul.ab-top-menu > li > a > span.ab-label { - display: inline; -} - -.no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon { - display: inline !important; -} - -.no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon:before { - content: "Menu"; - font: 14px/45px sans-serif !important; - display: inline-block !important; - color: #fff; -} - -.no-font-face #wpadminbar #wp-admin-bar-site-name a.ab-item { - color: #fff; -} -/* End no @font-face */ - -@media screen and ( max-width: 782px ) { - /* Toolbar Touchification*/ - html #wpadminbar { - height: 46px; - min-width: 300px; - - /* These rules break dropdown tappability on Chrome/Android. - -webkit-transform: translate3d(0, 0, 0); - -webkit-backface-visibility: hidden; - -webkit-transition: 0; - transform: translate3d(0, 0, 0); - backface-visibility: hidden; - transition: 0; - */ - } - - #wpadminbar * { - font: normal 14px/32px "Open Sans", sans-serif; - } - - #wpadminbar .quicklinks > ul > li > a, - #wpadminbar .quicklinks .ab-empty-item { - padding: 0; - height: 46px; - line-height: 46px; - width: auto; - } - - #wpadminbar .ab-icon { - font: 40px/1 dashicons !important; - margin: 0; - padding: 0; - width: 52px; - height: 46px; - text-align: center; - } - - #wpadminbar .ab-icon:before { - text-align: center; - } - - #wpadminbar .ab-submenu { - padding: 0; - } - - #wpadminbar #wp-admin-bar-site-name a.ab-item, - #wpadminbar #wp-admin-bar-my-sites a.ab-item, - #wpadminbar #wp-admin-bar-my-account a.ab-item { - text-overflow: clip; - } - - #wpadminbar .ab-label { - display: none; - } - - #wpadminbar .menupop li:hover > .ab-sub-wrapper, - #wpadminbar .menupop li.hover > .ab-sub-wrapper { - margin-top: -46px; - } - - #wpadminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop > .ab-item { - padding-left: 30px; - } - - #wpadminbar .menupop .menupop > .ab-item:before { - top: 10px; - left: 6px; - } - - #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper .ab-item { - font-size: 16px; - padding: 6px 15px 12px; - } - - #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper a:empty { - display: none; - } - - /* WP logo */ - #wpadminbar #wp-admin-bar-wp-logo > .ab-item { - padding: 0; - } - - #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon { - padding: 0; - width: 52px; - height: 46px; - text-align: center; - vertical-align: top; - } - - #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before { - font: 28px/1 'dashicons' !important; - top: -3px; - } - - #wpadminbar .ab-icon, - #wpadminbar .ab-item:before { - padding: 0; - } - - /* My Sites and "Site Title" menu */ - #wpadminbar #wp-admin-bar-my-sites > .ab-item, - #wpadminbar #wp-admin-bar-site-name > .ab-item, - #wpadminbar #wp-admin-bar-customize > .ab-item, - #wpadminbar #wp-admin-bar-edit > .ab-item, - #wpadminbar #wp-admin-bar-my-account > .ab-item { - text-indent: 100%; - white-space: nowrap; - overflow: hidden; - width: 52px; - padding: 0; - color: #999; - position: relative; - } - - #wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon, - #wpadminbar .ab-icon, - #wpadminbar .ab-item:before { - padding: 0; - margin-left: 0; - } - - #wpadminbar #wp-admin-bar-edit > .ab-item:before, - #wpadminbar #wp-admin-bar-my-sites > .ab-item:before, - #wpadminbar #wp-admin-bar-site-name > .ab-item:before, - #wpadminbar #wp-admin-bar-customize > .ab-item:before, - #wpadminbar #wp-admin-bar-my-account > .ab-item:before { - display: block; - text-indent: 0; - font: normal 32px/1 'dashicons'; - speak: none; - top: 7px; - width: 52px; - text-align: center; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - } - - #wpadminbar #wp-admin-bar-appearance { - margin-top: 0; - } - - #wpadminbar .quicklinks li .blavatar:before { - display: none; - } - - /* Search */ - #wpadminbar #wp-admin-bar-search { - display: none; - } - - /* New Content */ - #wpadminbar #wp-admin-bar-new-content .ab-icon:before { - top: 0; - line-height: 53px; - height: 46px !important; - text-align: center; - width: 52px; - display: block; - } - - /* Updates */ - #wpadminbar #wp-admin-bar-updates { - text-align: center; - } - - #wpadminbar #wp-admin-bar-updates .ab-icon:before { - top: 3px; - } - - /* Comments */ - #wpadminbar #wp-admin-bar-comments .ab-icon { - margin: 0; - } - - #wpadminbar #wp-admin-bar-comments .ab-icon:before { - display: block; - font-size: 34px; - height: 46px; - line-height: 47px; - top: 0; - } - - /* My Account */ - #wpadminbar #wp-admin-bar-my-account > a { - position: relative; - white-space: nowrap; - text-indent: 150%; /* More than 100% indention is needed since this element has padding */ - width: 28px; - padding: 0 10px; - overflow: hidden; /* Prevent link text from forcing horizontal scrolling on mobile */ - } - - #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - position: absolute; - top: 13px; - left: 10px; - width: 26px; - height: 26px; - } - - #wpadminbar #wp-admin-bar-user-actions.ab-submenu { - padding: 0; - } - - #wpadminbar #wp-admin-bar-user-actions.ab-submenu img.avatar { - display: none; - } - - #wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions > li { - margin: 0; - } - - #wpadminbar #wp-admin-bar-user-info .display-name { - height: auto; - font-size: 16px; - line-height: 24px; - color: #eee; - } - - #wpadminbar #wp-admin-bar-user-info a { - padding-top: 4px; - } - - #wpadminbar #wp-admin-bar-user-info .username { - line-height: 0.8 !important; - margin-bottom: -2px; - } - - /* Show only default top level items */ - #wp-toolbar > ul > li { - display: none; - } - - #wpadminbar li#wp-admin-bar-menu-toggle, - #wpadminbar li#wp-admin-bar-wp-logo, - #wpadminbar li#wp-admin-bar-my-sites, - #wpadminbar li#wp-admin-bar-updates, - #wpadminbar li#wp-admin-bar-site-name, - #wpadminbar li#wp-admin-bar-customize, - #wpadminbar li#wp-admin-bar-new-content, - #wpadminbar li#wp-admin-bar-edit, - #wpadminbar li#wp-admin-bar-comments, - #wpadminbar li#wp-admin-bar-my-account { - display: block; - } - - /* Allow dropdown list items to appear normally */ - #wpadminbar li:hover ul li, - #wpadminbar li.hover ul li, - #wpadminbar li:hover ul li:hover ul li { - display: list-item; - } - - /* Override default min-width so dropdown lists aren't stretched - to 100% viewport width at responsive sizes. */ - #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper { - min-width: -webkit-fit-content; - min-width: -moz-fit-content; - min-width: fit-content; - } - - #wpadminbar ul#wp-admin-bar-root-default > li { - margin-left: 0; - } - - /* Experimental fix for touch toolbar dropdown positioning */ - #wpadminbar .ab-top-menu, - #wpadminbar .ab-top-secondary, - #wpadminbar #wp-admin-bar-wp-logo, - #wpadminbar #wp-admin-bar-my-sites, - #wpadminbar #wp-admin-bar-site-name, - #wpadminbar #wp-admin-bar-updates, - #wpadminbar #wp-admin-bar-comments, - #wpadminbar #wp-admin-bar-new-content, - #wpadminbar #wp-admin-bar-edit, - #wpadminbar #wp-admin-bar-my-account { - position: static; - } - - #wpadminbar #wp-admin-bar-my-account { - float: left; - } - - .network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account { - margin-left: 0; - } - - /* Realign arrows on taller responsive submenus */ - - #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before { - top: 10px; - right: 0; - } -} - -/* Smartphone */ -@media screen and (max-width: 600px) { - #wpadminbar { - position: absolute; - } - - #wp-responsive-overlay { - position: fixed; - top: 0; - right: 0; - width: 100%; - height: 100%; - z-index: 400; - } - - #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper { - width: 100%; - right: 0; - } - - #wpadminbar .menupop .menupop > .ab-item:before { - display: none; - } - - #wpadminbar #wp-admin-bar-wp-logo.menupop .ab-sub-wrapper { - margin-right: 0; - } - - #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper { - margin: 0; - width: 100%; - top: auto; - right: auto; - position: relative; - } - - #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper .ab-item { - font-size: 16px; - padding: 6px 30px 19px 15px; - } - - #wpadminbar li:hover ul li ul li { - display: list-item; - } - - #wpadminbar li#wp-admin-bar-wp-logo, - #wpadminbar li#wp-admin-bar-updates { - display: none; - } - - /* Make submenus full-width at this size */ - - #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper { - position: static; - -webkit-box-shadow: none; - box-shadow: none; - } -} - -/* Very narrow screens */ -@media screen and (max-width: 400px) { - #wpadminbar li#wp-admin-bar-comments { - display: none; - } -} diff --git a/wp-includes/css/admin-bar-rtl.min.css b/wp-includes/css/admin-bar-rtl.min.css deleted file mode 100644 index a521ad6c12..0000000000 --- a/wp-includes/css/admin-bar-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -#wpadminbar *{height:auto;width:auto;margin:0;padding:0;position:static;text-shadow:none;text-transform:none;letter-spacing:normal;font:400 13px/32px "Open Sans",sans-serif;-webkit-border-radius:0;border-radius:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-transition:none;transition:none;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto}.rtl #wpadminbar *{font-family:Tahoma,sans-serif}html:lang(he-il) .rtl #wpadminbar *{font-family:Arial,sans-serif}#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#eee}#wpadminbar #wp-admin-bar-my-sites a.ab-item,#wpadminbar #wp-admin-bar-site-name a.ab-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#wpadminbar ul li:after,#wpadminbar ul li:before{content:normal}#wpadminbar a,#wpadminbar a img,#wpadminbar a img:hover,#wpadminbar a:hover{outline:0;border:none;text-decoration:none;background:0 0}#wpadminbar a:active,#wpadminbar a:focus,#wpadminbar div,#wpadminbar input[type=text],#wpadminbar input[type=password],#wpadminbar input[type=number],#wpadminbar input[type=search],#wpadminbar input[type=email],#wpadminbar input[type=url],#wpadminbar select,#wpadminbar textarea{-webkit-box-shadow:none;box-shadow:none;outline:0}#wpadminbar{direction:rtl;color:#ccc;font:400 13px/32px "Open Sans",sans-serif;height:32px;position:fixed;top:0;right:0;width:100%;min-width:600px;z-index:99999;background:#23282d}#wpadminbar .ab-sub-wrapper,#wpadminbar ul,#wpadminbar ul li{background:0 0;clear:none;list-style:none;margin:0;padding:0;position:relative;text-indent:0;z-index:99999}#wpadminbar ul#wp-admin-bar-root-default>li{margin-left:0}#wpadminbar .quicklinks ul{text-align:right}#wpadminbar li{float:right}#wpadminbar .ab-empty-item{outline:0}#wpadminbar .quicklinks .ab-top-secondary>li{float:left}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks a,#wpadminbar .shortlink-input{height:32px;display:block;padding:0 10px;margin:0}#wpadminbar .quicklinks>ul>li>a{padding:0 7px 0 8px}#wpadminbar .menupop .ab-sub-wrapper,#wpadminbar .shortlink-input{margin:0;padding:0;-webkit-box-shadow:0 3px 5px rgba(0,0,0,.2);box-shadow:0 3px 5px rgba(0,0,0,.2);background:#32373c;display:none;position:absolute;float:none}#wpadminbar .selected .shortlink-input,#wpadminbar li.hover>.ab-sub-wrapper,#wpadminbar.nojs li:hover>.ab-sub-wrapper{display:block}#wpadminbar.ie7 .menupop .ab-sub-wrapper,#wpadminbar.ie7 .shortlink-input{top:32px;right:0}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:100%}#wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper{left:0;right:auto}#wpadminbar .ab-submenu{padding:6px 0}#wpadminbar .quicklinks .menupop ul li{float:none}#wpadminbar .quicklinks .menupop ul li a strong{font-weight:700}#wpadminbar .quicklinks .menupop ul li .ab-item,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li .ab-item,#wpadminbar .shortlink-input,#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item{line-height:26px;height:26px;white-space:nowrap;min-width:140px}#wpadminbar .shortlink-input{width:200px}#wpadminbar .menupop li.hover>.ab-sub-wrapper,#wpadminbar .menupop li:hover>.ab-sub-wrapper{margin-right:100%;margin-top:-32px}#wpadminbar .ab-top-secondary .menupop li.hover>.ab-sub-wrapper,#wpadminbar .ab-top-secondary .menupop li:hover>.ab-sub-wrapper{margin-right:0;right:inherit;left:100%}#wpadminbar .ab-top-menu>li.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{background:#32373c;color:#00b9eb}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label,#wpadminbar>#wp-toolbar li.hover span.ab-label{color:#00b9eb}#wpadminbar .ab-icon,#wpadminbar .ab-item:before,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon{position:relative;float:right;font:400 20px/1 dashicons;speak:none;padding:4px 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important;margin-left:6px}#wpadminbar #adminbarsearch:before,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:before{color:#a0a5aa;color:rgba(240,245,250,.6);position:relative;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}#wpadminbar .ab-label{display:inline-block;height:32px}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#b4b9be;color:rgba(240,245,250,.7)}#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#00b9eb}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#b4b9be}#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#00b9eb}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before,#wpadminbar .menupop .menupop>.ab-item:before{position:absolute;font:400 17px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar .menupop .menupop>.ab-item{display:block;padding-left:2em}#wpadminbar .menupop .menupop>.ab-item:before{top:1px;left:4px;content:'\f139';color:inherit}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item{padding-right:2em;padding-left:1em}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before{top:5px;right:3px;content:'\f141'}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary{display:block;position:relative;left:auto;margin:0;-webkit-box-shadow:none;box-shadow:none}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#464b50}#wpadminbar .quicklinks .menupop .ab-sub-secondary>li .ab-item:focus a,#wpadminbar .quicklinks .menupop .ab-sub-secondary>li>a:hover{color:#00b9eb}#wpadminbar .quicklinks a span#ab-updates{background:#eee;color:#32373c;display:inline;padding:2px 5px;font-size:10px;font-weight:700;-webkit-border-radius:10px;border-radius:10px}#wpadminbar .quicklinks a:hover span#ab-updates{background:#fff;color:#000}#wpadminbar .ab-top-secondary{float:left}#wpadminbar ul li:last-child,#wpadminbar ul li:last-child .ab-item{-webkit-box-shadow:none;box-shadow:none}#wp-admin-bar-my-account>ul{min-width:198px}#wp-admin-bar-my-account>.ab-item:before{content:"\f110";top:2px;float:left;margin-right:6px;margin-left:0}#wp-admin-bar-my-account.with-avatar>.ab-item:before{display:none;content:none}#wp-admin-bar-my-account.with-avatar>ul{min-width:270px}#wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar .ab-item{white-space:nowrap}#wpadminbar #wp-admin-bar-user-actions>li{margin-right:16px;margin-left:16px}#wpadminbar #wp-admin-bar-user-actions.ab-submenu{padding:6px 0 12px}#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li{margin-right:88px}#wpadminbar #wp-admin-bar-user-info{margin-top:6px;margin-bottom:15px;height:auto;background:0 0}#wp-admin-bar-user-info .avatar{position:absolute;right:-72px;top:4px;width:64px;height:64px}#wpadminbar #wp-admin-bar-user-info a{background:0 0;height:auto}#wpadminbar #wp-admin-bar-user-info span{background:0 0;padding:0;height:18px}#wpadminbar #wp-admin-bar-user-info .display-name,#wpadminbar #wp-admin-bar-user-info .username{display:block}#wpadminbar #wp-admin-bar-user-info .username{color:#999;font-size:11px}#wpadminbar #wp-admin-bar-my-account.with-avatar>a img{width:auto;height:16px;padding:0;border:1px solid #82878c;background:#eee;line-height:24px;vertical-align:middle;margin:-4px 6px 0 0;float:none;display:inline}#wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar>a img{width:auto}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon{width:15px;height:20px;margin-left:0;padding:6px 0 5px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item{padding:0 7px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before{content:'\f120';top:2px}#wpadminbar .quicklinks li .blavatar{float:right;font:400 16px/1 dashicons!important;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#eee}#wpadminbar .quicklinks li a:hover .blavatar{color:#00b9eb}#wpadminbar .quicklinks li .blavatar:before{content:'\f120';height:16px;width:16px;display:inline-block;margin:6px -2px 0 8px}#wpadminbar #wp-admin-bar-appearance{margin-top:-12px}#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:'\f112';top:2px}#wpadminbar #wp-admin-bar-customize>.ab-item:before{content:'\f540';top:2px}#wpadminbar #wp-admin-bar-edit>.ab-item:before{content:'\f464';top:2px}#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f226"}.wp-admin #wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f102"}#wpadminbar #wp-admin-bar-comments .ab-icon{margin-left:6px}#wpadminbar #wp-admin-bar-comments .ab-icon:before{content:'\f101';top:3px}#wpadminbar #wp-admin-bar-comments .count-0{opacity:.5}#wpadminbar #wp-admin-bar-new-content .ab-icon:before{content:'\f132';top:4px}#wpadminbar #wp-admin-bar-updates .ab-icon:before{content:'\f463';top:2px}#wpadminbar.ie8 #wp-admin-bar-search{display:block;min-width:32px}#wpadminbar #wp-admin-bar-search .ab-item{padding:0;background:0 0}#wpadminbar #adminbarsearch{position:relative;height:32px;padding:0 2px;z-index:1}#wpadminbar #adminbarsearch:before{position:absolute;top:6px;right:5px;z-index:20;font:400 20px/1 dashicons!important;content:'\f179';speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input{position:relative;z-index:30;font:13px/24px "Open Sans",sans-serif;height:24px;width:24px;max-width:none;padding:0 24px 0 3px;margin:0;color:#ccc;background-color:rgba(255,255,255,0);border:none;outline:0;cursor:pointer;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition-duration:400ms;transition-duration:400ms;-webkit-transition-property:width,background;transition-property:width,background;-webkit-transition-timing-function:ease;transition-timing-function:ease}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{z-index:10;color:#000;width:200px;background-color:rgba(255,255,255,.9);cursor:text;border:0}#wpadminbar.ie7>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input{margin-top:3px;width:120px}#wpadminbar.ie8>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBR‌​AA7) 100% 0}#wpadminbar.ie8 #adminbarsearch.adminbar-focused:before{content:'\f179 '}#wpadminbar.ie8>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{background:#fff;z-index:-1}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#999}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#999}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#999}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#999}#wpadminbar #adminbarsearch .adminbar-button,.customize-support #wpadminbar .hide-if-customize,.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support #wpadminbar .hide-if-no-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#wpadminbar .screen-reader-text,#wpadminbar .screen-reader-text span{position:absolute;right:-1000em;top:-1000em;height:1px;width:1px;overflow:hidden}#wpadminbar .screen-reader-shortcut{position:absolute;top:-1000em}#wpadminbar .screen-reader-shortcut:focus{right:6px;top:7px;height:auto;width:auto;display:block;font-size:14px;font-weight:700;padding:15px 23px 14px;background:#f1f1f1;color:#21759b;z-index:100000;line-height:normal;text-decoration:none;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,.6);box-shadow:0 0 2px 2px rgba(0,0,0,.6)}* html #wpadminbar{overflow:hidden;position:absolute}* html #wpadminbar .quicklinks ul li a{float:right}* html #wpadminbar .menupop a span{background-image:none}.no-font-face #wpadminbar ul.ab-top-menu>li>a.ab-item{display:block;width:45px;text-align:center;overflow:hidden;margin:0 3px}.no-font-face #wpadminbar #wp-admin-bar-edit>.ab-item,.no-font-face #wpadminbar #wp-admin-bar-my-sites>.ab-item,.no-font-face #wpadminbar #wp-admin-bar-site-name>.ab-item{text-indent:0}.no-font-face #wpadminbar #wp-admin-bar-wp-logo>.ab-item,.no-font-face #wpadminbar .ab-icon,.no-font-face #wpadminbar .ab-icon:before,.no-font-face #wpadminbar a.ab-item:before{display:none!important}.no-font-face #wpadminbar ul.ab-top-menu>li>a>span.ab-label{display:inline}.no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon{display:inline!important}.no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon:before{content:"Menu";font:14px/45px sans-serif!important;display:inline-block!important;color:#fff}.no-font-face #wpadminbar #wp-admin-bar-site-name a.ab-item{color:#fff}@media screen and (max-width:782px){#wpadminbar .ab-label,#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper a:empty{display:none}#wpadminbar ul#wp-admin-bar-root-default>li,.network-admin #wpadminbar ul#wp-admin-bar-top-secondary>li#wp-admin-bar-my-account{margin-left:0}html #wpadminbar{height:46px;min-width:300px}#wpadminbar *{font:400 14px/32px "Open Sans",sans-serif}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks>ul>li>a{padding:0;height:46px;line-height:46px;width:auto}#wpadminbar .ab-icon{font:40px/1 dashicons!important;margin:0;width:52px;height:46px;text-align:center}#wpadminbar .ab-icon:before{text-align:center}#wpadminbar .ab-submenu{padding:0}#wpadminbar #wp-admin-bar-my-account a.ab-item,#wpadminbar #wp-admin-bar-my-sites a.ab-item,#wpadminbar #wp-admin-bar-site-name a.ab-item{text-overflow:clip}#wpadminbar .menupop li.hover>.ab-sub-wrapper,#wpadminbar .menupop li:hover>.ab-sub-wrapper{margin-top:-46px}#wpadminbar #wp-admin-bar-comments .ab-icon,#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li{margin:0}#wpadminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop>.ab-item{padding-left:30px}#wpadminbar .menupop .menupop>.ab-item:before{top:10px;left:6px}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper .ab-item{font-size:16px;padding:6px 15px 12px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item{padding:0}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon{padding:0;width:52px;height:46px;text-align:center;vertical-align:top}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before{font:28px/1 dashicons!important;top:-3px}#wpadminbar .ab-icon,#wpadminbar .ab-item:before{padding:0}#wpadminbar #wp-admin-bar-customize>.ab-item,#wpadminbar #wp-admin-bar-edit>.ab-item,#wpadminbar #wp-admin-bar-my-account>.ab-item,#wpadminbar #wp-admin-bar-my-sites>.ab-item,#wpadminbar #wp-admin-bar-site-name>.ab-item{text-indent:100%;white-space:nowrap;overflow:hidden;width:52px;padding:0;color:#999;position:relative}#wpadminbar .ab-icon,#wpadminbar .ab-item:before,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon{padding:0;margin-left:0}#wpadminbar #wp-admin-bar-customize>.ab-item:before,#wpadminbar #wp-admin-bar-edit>.ab-item:before,#wpadminbar #wp-admin-bar-my-account>.ab-item:before,#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{display:block;text-indent:0;font:400 32px/1 dashicons;speak:none;top:7px;width:52px;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar #wp-admin-bar-appearance{margin-top:0}#wpadminbar #wp-admin-bar-search,#wpadminbar .quicklinks li .blavatar:before{display:none}#wpadminbar #wp-admin-bar-new-content .ab-icon:before{top:0;line-height:53px;height:46px!important;text-align:center;width:52px;display:block}#wpadminbar #wp-admin-bar-updates{text-align:center}#wpadminbar #wp-admin-bar-updates .ab-icon:before{top:3px}#wpadminbar #wp-admin-bar-comments .ab-icon:before{display:block;font-size:34px;height:46px;line-height:47px;top:0}#wp-toolbar>ul>li,#wpadminbar #wp-admin-bar-user-actions.ab-submenu img.avatar{display:none}#wpadminbar #wp-admin-bar-my-account>a{position:relative;white-space:nowrap;text-indent:150%;width:28px;padding:0 10px;overflow:hidden}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{position:absolute;top:13px;left:10px;width:26px;height:26px}#wpadminbar #wp-admin-bar-user-actions.ab-submenu{padding:0}#wpadminbar #wp-admin-bar-user-info .display-name{height:auto;font-size:16px;line-height:24px;color:#eee}#wpadminbar #wp-admin-bar-user-info a{padding-top:4px}#wpadminbar #wp-admin-bar-user-info .username{line-height:.8!important;margin-bottom:-2px}#wpadminbar li#wp-admin-bar-comments,#wpadminbar li#wp-admin-bar-customize,#wpadminbar li#wp-admin-bar-edit,#wpadminbar li#wp-admin-bar-menu-toggle,#wpadminbar li#wp-admin-bar-my-account,#wpadminbar li#wp-admin-bar-my-sites,#wpadminbar li#wp-admin-bar-new-content,#wpadminbar li#wp-admin-bar-site-name,#wpadminbar li#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo{display:block}#wpadminbar li.hover ul li,#wpadminbar li:hover ul li,#wpadminbar li:hover ul li:hover ul li{display:list-item}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}#wpadminbar #wp-admin-bar-comments,#wpadminbar #wp-admin-bar-edit,#wpadminbar #wp-admin-bar-my-account,#wpadminbar #wp-admin-bar-my-sites,#wpadminbar #wp-admin-bar-new-content,#wpadminbar #wp-admin-bar-site-name,#wpadminbar #wp-admin-bar-updates,#wpadminbar #wp-admin-bar-wp-logo,#wpadminbar .ab-top-menu,#wpadminbar .ab-top-secondary{position:static}#wpadminbar #wp-admin-bar-my-account{float:left}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before{top:10px;right:0}}@media screen and (max-width:600px){#wpadminbar{position:absolute}#wp-responsive-overlay{position:fixed;top:0;right:0;width:100%;height:100%;z-index:400}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{width:100%;right:0}#wpadminbar .menupop .menupop>.ab-item:before{display:none}#wpadminbar #wp-admin-bar-wp-logo.menupop .ab-sub-wrapper{margin-right:0}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper{margin:0;width:100%;top:auto;right:auto;position:static;-webkit-box-shadow:none;box-shadow:none}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper .ab-item{font-size:16px;padding:6px 30px 19px 15px}#wpadminbar li:hover ul li ul li{display:list-item}#wpadminbar li#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo{display:none}}@media screen and (max-width:400px){#wpadminbar li#wp-admin-bar-comments{display:none}} \ No newline at end of file diff --git a/wp-includes/css/admin-bar.css b/wp-includes/css/admin-bar.css deleted file mode 100644 index ff4bbbfed7..0000000000 --- a/wp-includes/css/admin-bar.css +++ /dev/null @@ -1,1148 +0,0 @@ -#wpadminbar * { - height: auto; - width: auto; - margin: 0; - padding: 0; - position: static; - text-shadow: none; - text-transform: none; - letter-spacing: normal; - font: normal 13px/32px "Open Sans", sans-serif; - -webkit-border-radius: 0; - border-radius: 0; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - -webkit-transition: none; - transition: none; - -webkit-font-smoothing: subpixel-antialiased; /* Prevent Safari from switching to standard antialiasing on hover */ - -moz-osx-font-smoothing: auto; /* Prevent Firefox from inheriting from themes that use other values */ -} - -.rtl #wpadminbar * { - font-family: Tahoma, sans-serif; -} - -html:lang(he-il) .rtl #wpadminbar * { - font-family: Arial, sans-serif; -} - -#wpadminbar a.ab-item, -#wpadminbar > #wp-toolbar span.ab-label, -#wpadminbar > #wp-toolbar span.noticon { - color: #eee; -} - -#wpadminbar #wp-admin-bar-site-name a.ab-item, -#wpadminbar #wp-admin-bar-my-sites a.ab-item { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -#wpadminbar ul li:before, -#wpadminbar ul li:after { - content: normal; -} - -#wpadminbar a, -#wpadminbar a:hover, -#wpadminbar a img, -#wpadminbar a img:hover { - outline: none; - border: none; - text-decoration: none; - background: none; -} - -#wpadminbar a:focus, -#wpadminbar a:active, -#wpadminbar input[type="text"], -#wpadminbar input[type="password"], -#wpadminbar input[type="number"], -#wpadminbar input[type="search"], -#wpadminbar input[type="email"], -#wpadminbar input[type="url"], -#wpadminbar select, -#wpadminbar textarea, -#wpadminbar div { - -webkit-box-shadow: none; - box-shadow: none; - outline: none; -} - -#wpadminbar { - direction: ltr; - color: #ccc; - font: normal 13px/32px "Open Sans", sans-serif; - height: 32px; - position: fixed; - top: 0; - left: 0; - width: 100%; - min-width: 600px; /* match the min-width of the body in wp-admin.css */ - z-index: 99999; - background: #23282d; -} - -#wpadminbar .ab-sub-wrapper, -#wpadminbar ul, -#wpadminbar ul li { - background: none; - clear: none; - list-style: none; - margin: 0; - padding: 0; - position: relative; - text-indent: 0; - z-index: 99999; -} - -#wpadminbar ul#wp-admin-bar-root-default>li { - margin-right: 0; -} - -#wpadminbar .quicklinks ul { - text-align: left; -} - -#wpadminbar li { - float: left; -} - -#wpadminbar .ab-empty-item { - outline: none; -} - -#wpadminbar .quicklinks .ab-top-secondary > li { - float: right; -} - -#wpadminbar .quicklinks a, -#wpadminbar .quicklinks .ab-empty-item, -#wpadminbar .shortlink-input { - height: 32px; - display: block; - padding: 0 10px; - margin: 0; -} - -#wpadminbar .quicklinks > ul > li > a { - padding: 0 8px 0 7px; -} - -#wpadminbar .menupop .ab-sub-wrapper, -#wpadminbar .shortlink-input { - margin: 0; - padding: 0; - -webkit-box-shadow: 0 3px 5px rgba(0,0,0,0.2); - box-shadow: 0 3px 5px rgba(0,0,0,0.2); - background: #32373c; - display: none; - position: absolute; - float: none; -} - -#wpadminbar.ie7 .menupop .ab-sub-wrapper, -#wpadminbar.ie7 .shortlink-input { - top: 32px; - left: 0; -} - -#wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper { - min-width: 100%; -} - -#wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper { - right: 0; - left: auto; -} - -#wpadminbar .ab-submenu { - padding: 6px 0; -} - -#wpadminbar .selected .shortlink-input { - display: block; -} - -#wpadminbar .quicklinks .menupop ul li { - float: none; -} - -#wpadminbar .quicklinks .menupop ul li a strong { - font-weight: bold; -} - -#wpadminbar .quicklinks .menupop ul li .ab-item, -#wpadminbar .quicklinks .menupop ul li a strong, -#wpadminbar .quicklinks .menupop.hover ul li .ab-item, -#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item, -#wpadminbar .shortlink-input { - line-height: 26px; - height: 26px; - white-space: nowrap; - min-width: 140px; -} - -#wpadminbar .shortlink-input { - width: 200px; -} - -#wpadminbar.nojs li:hover > .ab-sub-wrapper, -#wpadminbar li.hover > .ab-sub-wrapper { - display: block; -} - -#wpadminbar .menupop li:hover > .ab-sub-wrapper, -#wpadminbar .menupop li.hover > .ab-sub-wrapper { - margin-left: 100%; - margin-top: -32px; -} - -#wpadminbar .ab-top-secondary .menupop li:hover > .ab-sub-wrapper, -#wpadminbar .ab-top-secondary .menupop li.hover > .ab-sub-wrapper { - margin-left: 0; - left: inherit; - right: 100%; -} - -#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, -#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, -#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, -#wpadminbar .ab-top-menu > li.hover > .ab-item { - background: #32373c; - color: #00b9eb; -} - -#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, -#wpadminbar > #wp-toolbar li.hover span.ab-label, -#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { - color: #00b9eb; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon, -#wpadminbar .ab-icon, -#wpadminbar .ab-item:before { - position: relative; - float: left; - font: normal 20px/1 'dashicons'; - speak: none; - padding: 4px 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - background-image: none !important; - margin-right: 6px; -} - -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar #adminbarsearch:before { - color: #a0a5aa; - color: rgba(240,245,250,0.6); -} - -#wpadminbar .ab-icon:before, -#wpadminbar .ab-item:before, -#wpadminbar #adminbarsearch:before { - position: relative; - -webkit-transition: all .1s ease-in-out; - transition: all .1s ease-in-out; -} - -#wpadminbar .ab-label { - display: inline-block; - height: 32px; -} - -#wpadminbar .ab-submenu .ab-item { - color: #b4b9be; - color: rgba(240,245,250,0.7); -} - -#wpadminbar .quicklinks .menupop ul li a, -#wpadminbar .quicklinks .menupop ul li a strong, -#wpadminbar .quicklinks .menupop.hover ul li a, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a { - color: #b4b9be; - color: rgba(240,245,250,0.7); -} - -#wpadminbar .quicklinks .menupop ul li a:hover, -#wpadminbar .quicklinks .menupop ul li a:focus, -#wpadminbar .quicklinks .menupop ul li a:hover strong, -#wpadminbar .quicklinks .menupop ul li a:focus strong, -#wpadminbar .quicklinks .menupop.hover ul li a:hover, -#wpadminbar .quicklinks .menupop.hover ul li a:focus, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, -#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, -#wpadminbar li:hover .ab-icon:before, -#wpadminbar li:hover .ab-item:before, -#wpadminbar li a:focus .ab-icon:before, -#wpadminbar li .ab-item:focus:before, -#wpadminbar li.hover .ab-icon:before, -#wpadminbar li.hover .ab-item:before, -#wpadminbar li:hover #adminbarsearch:before, -#wpadminbar li #adminbarsearch.adminbar-focused:before { - color: #00b9eb; -} - -#wpadminbar.mobile .quicklinks .ab-icon:before, -#wpadminbar.mobile .quicklinks .ab-item:before { - color: #b4b9be; -} - -#wpadminbar.mobile .quicklinks .hover .ab-icon:before, -#wpadminbar.mobile .quicklinks .hover .ab-item:before { - color: #00b9eb; -} - -#wpadminbar .menupop .menupop > .ab-item:before, -#wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before { - position: absolute; - font: normal 17px/1 'dashicons'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -#wpadminbar .menupop .menupop > .ab-item { - display: block; - padding-right: 2em; -} - -#wpadminbar .menupop .menupop > .ab-item:before { - top: 1px; - right: 4px; - content: '\f139'; - color: inherit; -} - -#wpadminbar .ab-top-secondary .menupop .menupop > .ab-item { - padding-left: 2em; - padding-right: 1em; -} - -#wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before { - top: 5px; - left: 3px; - content: '\f141'; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary { - display: block; - position: relative; - right: auto; - margin: 0; - -webkit-box-shadow: none; - box-shadow: none; -} - -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, -#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #464b50; -} - -#wpadminbar .quicklinks .menupop .ab-sub-secondary > li > a:hover, -#wpadminbar .quicklinks .menupop .ab-sub-secondary > li .ab-item:focus a { - color: #00b9eb; -} - -#wpadminbar .quicklinks a span#ab-updates { - background: #eee; - color: #32373c; - display: inline; - padding: 2px 5px; - font-size: 10px; - font-weight: bold; - -webkit-border-radius: 10px; - border-radius: 10px; -} - -#wpadminbar .quicklinks a:hover span#ab-updates { - background: #fff; - color: #000; -} - -#wpadminbar .ab-top-secondary { - float: right; -} - -#wpadminbar ul li:last-child, -#wpadminbar ul li:last-child .ab-item { - -webkit-box-shadow: none; - box-shadow: none; -} - -/** - * My Account - */ -#wp-admin-bar-my-account > ul { - min-width: 198px; -} - -#wp-admin-bar-my-account > .ab-item:before { - content: "\f110"; - top: 2px; - float: right; - margin-left: 6px; - margin-right: 0; -} - -#wp-admin-bar-my-account.with-avatar > .ab-item:before { - display: none; - content: none; -} - -#wp-admin-bar-my-account.with-avatar > ul { - min-width: 270px; -} - -#wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar .ab-item { - white-space: nowrap; -} - -#wpadminbar #wp-admin-bar-user-actions > li { - margin-left: 16px; - margin-right: 16px; -} - -#wpadminbar #wp-admin-bar-user-actions.ab-submenu { - padding: 6px 0 12px; -} - -#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions > li { - margin-left: 88px; -} - -#wpadminbar #wp-admin-bar-user-info { - margin-top: 6px; - margin-bottom: 15px; - height: auto; - background: none; -} - -#wp-admin-bar-user-info .avatar { - position: absolute; - left: -72px; - top: 4px; - width: 64px; - height: 64px; -} - -#wpadminbar #wp-admin-bar-user-info a { - background: none; - height: auto; -} - -#wpadminbar #wp-admin-bar-user-info span { - background: none; - padding: 0; - height: 18px; -} - -#wpadminbar #wp-admin-bar-user-info .display-name, -#wpadminbar #wp-admin-bar-user-info .username { - display: block; -} - -#wpadminbar #wp-admin-bar-user-info .username { - color: #999; - font-size: 11px; -} - -#wpadminbar #wp-admin-bar-my-account.with-avatar > a img { - width: auto; - height: 16px; - padding: 0; - border: 1px solid #82878c; - background: #eee; - line-height: 24px; - vertical-align: middle; - margin: -4px 0 0 6px; - float: none; - display: inline; -} - -#wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar > a img { - width: auto; -} - -/** - * WP Logo - */ -#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon { - width: 15px; - height: 20px; - margin-right: 0; - padding: 6px 0 5px; -} - -#wpadminbar #wp-admin-bar-wp-logo > .ab-item { - padding: 0 7px; -} - -#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before { - content: '\f120'; - top: 2px; -} - -/* - * My Sites & Site Title - */ -#wpadminbar .quicklinks li .blavatar { - float: left; - font: normal 16px/1 'dashicons' !important; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - color: #eee; -} - -#wpadminbar .quicklinks li a:hover .blavatar { - color: #00b9eb; -} - -#wpadminbar .quicklinks li .blavatar:before { - content: '\f120'; - height: 16px; - width: 16px; - display: inline-block; - margin: 6px 8px 0 -2px; -} - -#wpadminbar #wp-admin-bar-appearance { - margin-top: -12px; -} - -#wpadminbar #wp-admin-bar-my-sites > .ab-item:before, -#wpadminbar #wp-admin-bar-site-name > .ab-item:before { - content: '\f112'; - top: 2px; -} - -#wpadminbar #wp-admin-bar-customize > .ab-item:before { - content: '\f540'; - top: 2px; -} - - -#wpadminbar #wp-admin-bar-edit > .ab-item:before { - content: '\f464'; - top: 2px; -} - -#wpadminbar #wp-admin-bar-site-name > .ab-item:before { - content: "\f226"; -} - -.wp-admin #wpadminbar #wp-admin-bar-site-name > .ab-item:before { - content: "\f102"; -} - - - -/** - * Comments - */ -#wpadminbar #wp-admin-bar-comments .ab-icon { - margin-right: 6px; -} - -#wpadminbar #wp-admin-bar-comments .ab-icon:before { - content: '\f101'; - top: 3px; -} - -#wpadminbar #wp-admin-bar-comments .count-0 { - opacity: .5; -} - -/** - * New Content - */ -#wpadminbar #wp-admin-bar-new-content .ab-icon:before { - content: '\f132'; - top: 4px; -} - -/** - * Updates - */ -#wpadminbar #wp-admin-bar-updates .ab-icon:before { - content: '\f463'; - top: 2px; -} - -/** - * Search - */ -#wpadminbar.ie8 #wp-admin-bar-search { - display: block; - min-width: 32px; -} -#wpadminbar #wp-admin-bar-search .ab-item { - padding: 0; - background: transparent; -} - -#wpadminbar #adminbarsearch { - position: relative; - height: 32px; - padding: 0 2px; - z-index: 1; -} - -#wpadminbar #adminbarsearch:before { - position: absolute; - top: 6px; - left: 5px; - z-index: 20; - font: normal 20px/1 'dashicons' !important; - content: '\f179'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input { - position: relative; - z-index: 30; - font: 13px/24px "Open Sans", sans-serif; - height: 24px; - width: 24px; - max-width: none; - padding: 0 3px 0 24px; - margin: 0; - color: #ccc; - background-color: rgba( 255, 255, 255, 0 ); - border: none; - outline: none; - cursor: pointer; - -webkit-box-shadow: none; - box-shadow: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - -webkit-transition-duration: 400ms; - transition-duration: 400ms; - -webkit-transition-property: width, background; - transition-property: width, background; - -webkit-transition-timing-function: ease; - transition-timing-function: ease; -} - -#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - z-index: 10; - color: #000; - width: 200px; - background-color: rgba( 255, 255, 255, 0.9 ); - cursor: text; - border: 0; -} - -#wpadminbar.ie7 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input { - margin-top: 3px; - width: 120px; -} - -#wpadminbar.ie8 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input { - /* IE8 z-index bug with transparent / empty elements - fill in with an encoded transparent GIF */ - background: transparent 0 0 repeat scroll url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBR‌​AA7"); -} - -/* IE8 doesn't redraw the pseudo elements unless you make a change to the content */ -#wpadminbar.ie8 #adminbarsearch.adminbar-focused:before { - content: '\f179 '; /* extra space */ -} - -#wpadminbar.ie8 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { - background: #fff; - z-index: -1; -} - -#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { - color: #999; -} -#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { - color: #999; -} -#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { - color: #999; -} -#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { - color: #999; -} - -#wpadminbar #adminbarsearch .adminbar-button { - display: none; -} - -/** - * Customize support classes - */ -.no-customize-support .hide-if-no-customize, -.customize-support .hide-if-customize, -.no-customize-support #wpadminbar .hide-if-no-customize, -.no-customize-support.wp-core-ui .hide-if-no-customize, -.no-customize-support .wp-core-ui .hide-if-no-customize, -.customize-support #wpadminbar .hide-if-customize, -.customize-support.wp-core-ui .hide-if-customize, -.customize-support .wp-core-ui .hide-if-customize { - display: none; -} - -/* Skip link */ -#wpadminbar .screen-reader-text, -#wpadminbar .screen-reader-text span { - position: absolute; - left: -1000em; - top: -1000em; - height: 1px; - width: 1px; - overflow: hidden; -} - -#wpadminbar .screen-reader-shortcut { - position: absolute; - top: -1000em; -} - -#wpadminbar .screen-reader-shortcut:focus { - left: 6px; - top: 7px; - height: auto; - width: auto; - display: block; - font-size: 14px; - font-weight: bold; - padding: 15px 23px 14px; - background: #f1f1f1; - color: #21759b; - z-index: 100000; - line-height: normal; - text-decoration: none; - -webkit-box-shadow: 0 0 2px 2px rgba(0,0,0,.6); - box-shadow: 0 0 2px 2px rgba(0,0,0,.6); -} - -/** - * IE 6-targeted rules - */ -* html #wpadminbar { - overflow: hidden; - position: absolute; -} - -* html #wpadminbar .quicklinks ul li a { - float: left; -} - -* html #wpadminbar .menupop a span { - background-image: none; -} - -/* No @font-face support */ -.no-font-face #wpadminbar ul.ab-top-menu > li > a.ab-item { - display: block; - width: 45px; - text-align: center; - overflow: hidden; - margin: 0 3px; -} - -.no-font-face #wpadminbar #wp-admin-bar-my-sites > .ab-item, -.no-font-face #wpadminbar #wp-admin-bar-site-name > .ab-item, -.no-font-face #wpadminbar #wp-admin-bar-edit > .ab-item { - text-indent: 0; -} - -.no-font-face #wpadminbar .ab-icon, -.no-font-face #wpadminbar .ab-icon:before, -.no-font-face #wpadminbar a.ab-item:before, -.no-font-face #wpadminbar #wp-admin-bar-wp-logo > .ab-item { - display: none !important; -} - -.no-font-face #wpadminbar ul.ab-top-menu > li > a > span.ab-label { - display: inline; -} - -.no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon { - display: inline !important; -} - -.no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon:before { - content: "Menu"; - font: 14px/45px sans-serif !important; - display: inline-block !important; - color: #fff; -} - -.no-font-face #wpadminbar #wp-admin-bar-site-name a.ab-item { - color: #fff; -} -/* End no @font-face */ - -@media screen and ( max-width: 782px ) { - /* Toolbar Touchification*/ - html #wpadminbar { - height: 46px; - min-width: 300px; - - /* These rules break dropdown tappability on Chrome/Android. - -webkit-transform: translate3d(0, 0, 0); - -webkit-backface-visibility: hidden; - -webkit-transition: 0; - transform: translate3d(0, 0, 0); - backface-visibility: hidden; - transition: 0; - */ - } - - #wpadminbar * { - font: normal 14px/32px "Open Sans", sans-serif; - } - - #wpadminbar .quicklinks > ul > li > a, - #wpadminbar .quicklinks .ab-empty-item { - padding: 0; - height: 46px; - line-height: 46px; - width: auto; - } - - #wpadminbar .ab-icon { - font: 40px/1 dashicons !important; - margin: 0; - padding: 0; - width: 52px; - height: 46px; - text-align: center; - } - - #wpadminbar .ab-icon:before { - text-align: center; - } - - #wpadminbar .ab-submenu { - padding: 0; - } - - #wpadminbar #wp-admin-bar-site-name a.ab-item, - #wpadminbar #wp-admin-bar-my-sites a.ab-item, - #wpadminbar #wp-admin-bar-my-account a.ab-item { - text-overflow: clip; - } - - #wpadminbar .ab-label { - display: none; - } - - #wpadminbar .menupop li:hover > .ab-sub-wrapper, - #wpadminbar .menupop li.hover > .ab-sub-wrapper { - margin-top: -46px; - } - - #wpadminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop > .ab-item { - padding-right: 30px; - } - - #wpadminbar .menupop .menupop > .ab-item:before { - top: 10px; - right: 6px; - } - - #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper .ab-item { - font-size: 16px; - padding: 6px 15px 12px; - } - - #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper a:empty { - display: none; - } - - /* WP logo */ - #wpadminbar #wp-admin-bar-wp-logo > .ab-item { - padding: 0; - } - - #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon { - padding: 0; - width: 52px; - height: 46px; - text-align: center; - vertical-align: top; - } - - #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before { - font: 28px/1 'dashicons' !important; - top: -3px; - } - - #wpadminbar .ab-icon, - #wpadminbar .ab-item:before { - padding: 0; - } - - /* My Sites and "Site Title" menu */ - #wpadminbar #wp-admin-bar-my-sites > .ab-item, - #wpadminbar #wp-admin-bar-site-name > .ab-item, - #wpadminbar #wp-admin-bar-customize > .ab-item, - #wpadminbar #wp-admin-bar-edit > .ab-item, - #wpadminbar #wp-admin-bar-my-account > .ab-item { - text-indent: 100%; - white-space: nowrap; - overflow: hidden; - width: 52px; - padding: 0; - color: #999; - position: relative; - } - - #wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon, - #wpadminbar .ab-icon, - #wpadminbar .ab-item:before { - padding: 0; - margin-right: 0; - } - - #wpadminbar #wp-admin-bar-edit > .ab-item:before, - #wpadminbar #wp-admin-bar-my-sites > .ab-item:before, - #wpadminbar #wp-admin-bar-site-name > .ab-item:before, - #wpadminbar #wp-admin-bar-customize > .ab-item:before, - #wpadminbar #wp-admin-bar-my-account > .ab-item:before { - display: block; - text-indent: 0; - font: normal 32px/1 'dashicons'; - speak: none; - top: 7px; - width: 52px; - text-align: center; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - } - - #wpadminbar #wp-admin-bar-appearance { - margin-top: 0; - } - - #wpadminbar .quicklinks li .blavatar:before { - display: none; - } - - /* Search */ - #wpadminbar #wp-admin-bar-search { - display: none; - } - - /* New Content */ - #wpadminbar #wp-admin-bar-new-content .ab-icon:before { - top: 0; - line-height: 53px; - height: 46px !important; - text-align: center; - width: 52px; - display: block; - } - - /* Updates */ - #wpadminbar #wp-admin-bar-updates { - text-align: center; - } - - #wpadminbar #wp-admin-bar-updates .ab-icon:before { - top: 3px; - } - - /* Comments */ - #wpadminbar #wp-admin-bar-comments .ab-icon { - margin: 0; - } - - #wpadminbar #wp-admin-bar-comments .ab-icon:before { - display: block; - font-size: 34px; - height: 46px; - line-height: 47px; - top: 0; - } - - /* My Account */ - #wpadminbar #wp-admin-bar-my-account > a { - position: relative; - white-space: nowrap; - text-indent: 150%; /* More than 100% indention is needed since this element has padding */ - width: 28px; - padding: 0 10px; - overflow: hidden; /* Prevent link text from forcing horizontal scrolling on mobile */ - } - - #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { - position: absolute; - top: 13px; - right: 10px; - width: 26px; - height: 26px; - } - - #wpadminbar #wp-admin-bar-user-actions.ab-submenu { - padding: 0; - } - - #wpadminbar #wp-admin-bar-user-actions.ab-submenu img.avatar { - display: none; - } - - #wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions > li { - margin: 0; - } - - #wpadminbar #wp-admin-bar-user-info .display-name { - height: auto; - font-size: 16px; - line-height: 24px; - color: #eee; - } - - #wpadminbar #wp-admin-bar-user-info a { - padding-top: 4px; - } - - #wpadminbar #wp-admin-bar-user-info .username { - line-height: 0.8 !important; - margin-bottom: -2px; - } - - /* Show only default top level items */ - #wp-toolbar > ul > li { - display: none; - } - - #wpadminbar li#wp-admin-bar-menu-toggle, - #wpadminbar li#wp-admin-bar-wp-logo, - #wpadminbar li#wp-admin-bar-my-sites, - #wpadminbar li#wp-admin-bar-updates, - #wpadminbar li#wp-admin-bar-site-name, - #wpadminbar li#wp-admin-bar-customize, - #wpadminbar li#wp-admin-bar-new-content, - #wpadminbar li#wp-admin-bar-edit, - #wpadminbar li#wp-admin-bar-comments, - #wpadminbar li#wp-admin-bar-my-account { - display: block; - } - - /* Allow dropdown list items to appear normally */ - #wpadminbar li:hover ul li, - #wpadminbar li.hover ul li, - #wpadminbar li:hover ul li:hover ul li { - display: list-item; - } - - /* Override default min-width so dropdown lists aren't stretched - to 100% viewport width at responsive sizes. */ - #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper { - min-width: -webkit-fit-content; - min-width: -moz-fit-content; - min-width: fit-content; - } - - #wpadminbar ul#wp-admin-bar-root-default > li { - margin-right: 0; - } - - /* Experimental fix for touch toolbar dropdown positioning */ - #wpadminbar .ab-top-menu, - #wpadminbar .ab-top-secondary, - #wpadminbar #wp-admin-bar-wp-logo, - #wpadminbar #wp-admin-bar-my-sites, - #wpadminbar #wp-admin-bar-site-name, - #wpadminbar #wp-admin-bar-updates, - #wpadminbar #wp-admin-bar-comments, - #wpadminbar #wp-admin-bar-new-content, - #wpadminbar #wp-admin-bar-edit, - #wpadminbar #wp-admin-bar-my-account { - position: static; - } - - #wpadminbar #wp-admin-bar-my-account { - float: right; - } - - .network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account { - margin-right: 0; - } - - /* Realign arrows on taller responsive submenus */ - - #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before { - top: 10px; - left: 0; - } -} - -/* Smartphone */ -@media screen and (max-width: 600px) { - #wpadminbar { - position: absolute; - } - - #wp-responsive-overlay { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 400; - } - - #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper { - width: 100%; - left: 0; - } - - #wpadminbar .menupop .menupop > .ab-item:before { - display: none; - } - - #wpadminbar #wp-admin-bar-wp-logo.menupop .ab-sub-wrapper { - margin-left: 0; - } - - #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper { - margin: 0; - width: 100%; - top: auto; - left: auto; - position: relative; - } - - #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper .ab-item { - font-size: 16px; - padding: 6px 15px 19px 30px; - } - - #wpadminbar li:hover ul li ul li { - display: list-item; - } - - #wpadminbar li#wp-admin-bar-wp-logo, - #wpadminbar li#wp-admin-bar-updates { - display: none; - } - - /* Make submenus full-width at this size */ - - #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper { - position: static; - -webkit-box-shadow: none; - box-shadow: none; - } -} - -/* Very narrow screens */ -@media screen and (max-width: 400px) { - #wpadminbar li#wp-admin-bar-comments { - display: none; - } -} diff --git a/wp-includes/css/admin-bar.min.css b/wp-includes/css/admin-bar.min.css deleted file mode 100644 index a6de96a021..0000000000 --- a/wp-includes/css/admin-bar.min.css +++ /dev/null @@ -1 +0,0 @@ -#wpadminbar *{height:auto;width:auto;margin:0;padding:0;position:static;text-shadow:none;text-transform:none;letter-spacing:normal;font:400 13px/32px "Open Sans",sans-serif;-webkit-border-radius:0;border-radius:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-transition:none;transition:none;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto}.rtl #wpadminbar *{font-family:Tahoma,sans-serif}html:lang(he-il) .rtl #wpadminbar *{font-family:Arial,sans-serif}#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#eee}#wpadminbar #wp-admin-bar-my-sites a.ab-item,#wpadminbar #wp-admin-bar-site-name a.ab-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#wpadminbar ul li:after,#wpadminbar ul li:before{content:normal}#wpadminbar a,#wpadminbar a img,#wpadminbar a img:hover,#wpadminbar a:hover{outline:0;border:none;text-decoration:none;background:0 0}#wpadminbar a:active,#wpadminbar a:focus,#wpadminbar div,#wpadminbar input[type=text],#wpadminbar input[type=password],#wpadminbar input[type=number],#wpadminbar input[type=search],#wpadminbar input[type=email],#wpadminbar input[type=url],#wpadminbar select,#wpadminbar textarea{-webkit-box-shadow:none;box-shadow:none;outline:0}#wpadminbar{direction:ltr;color:#ccc;font:400 13px/32px "Open Sans",sans-serif;height:32px;position:fixed;top:0;left:0;width:100%;min-width:600px;z-index:99999;background:#23282d}#wpadminbar .ab-sub-wrapper,#wpadminbar ul,#wpadminbar ul li{background:0 0;clear:none;list-style:none;margin:0;padding:0;position:relative;text-indent:0;z-index:99999}#wpadminbar ul#wp-admin-bar-root-default>li{margin-right:0}#wpadminbar .quicklinks ul{text-align:left}#wpadminbar li{float:left}#wpadminbar .ab-empty-item{outline:0}#wpadminbar .quicklinks .ab-top-secondary>li{float:right}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks a,#wpadminbar .shortlink-input{height:32px;display:block;padding:0 10px;margin:0}#wpadminbar .quicklinks>ul>li>a{padding:0 8px 0 7px}#wpadminbar .menupop .ab-sub-wrapper,#wpadminbar .shortlink-input{margin:0;padding:0;-webkit-box-shadow:0 3px 5px rgba(0,0,0,.2);box-shadow:0 3px 5px rgba(0,0,0,.2);background:#32373c;display:none;position:absolute;float:none}#wpadminbar .selected .shortlink-input,#wpadminbar li.hover>.ab-sub-wrapper,#wpadminbar.nojs li:hover>.ab-sub-wrapper{display:block}#wpadminbar.ie7 .menupop .ab-sub-wrapper,#wpadminbar.ie7 .shortlink-input{top:32px;left:0}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:100%}#wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper{right:0;left:auto}#wpadminbar .ab-submenu{padding:6px 0}#wpadminbar .quicklinks .menupop ul li{float:none}#wpadminbar .quicklinks .menupop ul li a strong{font-weight:700}#wpadminbar .quicklinks .menupop ul li .ab-item,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li .ab-item,#wpadminbar .shortlink-input,#wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item{line-height:26px;height:26px;white-space:nowrap;min-width:140px}#wpadminbar .shortlink-input{width:200px}#wpadminbar .menupop li.hover>.ab-sub-wrapper,#wpadminbar .menupop li:hover>.ab-sub-wrapper{margin-left:100%;margin-top:-32px}#wpadminbar .ab-top-secondary .menupop li.hover>.ab-sub-wrapper,#wpadminbar .ab-top-secondary .menupop li:hover>.ab-sub-wrapper{margin-left:0;left:inherit;right:100%}#wpadminbar .ab-top-menu>li.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{background:#32373c;color:#00b9eb}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label,#wpadminbar>#wp-toolbar li.hover span.ab-label{color:#00b9eb}#wpadminbar .ab-icon,#wpadminbar .ab-item:before,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon{position:relative;float:left;font:400 20px/1 dashicons;speak:none;padding:4px 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important;margin-right:6px}#wpadminbar #adminbarsearch:before,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:before{color:#a0a5aa;color:rgba(240,245,250,.6);position:relative;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}#wpadminbar .ab-label{display:inline-block;height:32px}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop ul li a strong,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#b4b9be;color:rgba(240,245,250,.7)}#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#00b9eb}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#b4b9be}#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#00b9eb}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before,#wpadminbar .menupop .menupop>.ab-item:before{position:absolute;font:400 17px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar .menupop .menupop>.ab-item{display:block;padding-right:2em}#wpadminbar .menupop .menupop>.ab-item:before{top:1px;right:4px;content:'\f139';color:inherit}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item{padding-left:2em;padding-right:1em}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before{top:5px;left:3px;content:'\f141'}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary{display:block;position:relative;right:auto;margin:0;-webkit-box-shadow:none;box-shadow:none}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#464b50}#wpadminbar .quicklinks .menupop .ab-sub-secondary>li .ab-item:focus a,#wpadminbar .quicklinks .menupop .ab-sub-secondary>li>a:hover{color:#00b9eb}#wpadminbar .quicklinks a span#ab-updates{background:#eee;color:#32373c;display:inline;padding:2px 5px;font-size:10px;font-weight:700;-webkit-border-radius:10px;border-radius:10px}#wpadminbar .quicklinks a:hover span#ab-updates{background:#fff;color:#000}#wpadminbar .ab-top-secondary{float:right}#wpadminbar ul li:last-child,#wpadminbar ul li:last-child .ab-item{-webkit-box-shadow:none;box-shadow:none}#wp-admin-bar-my-account>ul{min-width:198px}#wp-admin-bar-my-account>.ab-item:before{content:"\f110";top:2px;float:right;margin-left:6px;margin-right:0}#wp-admin-bar-my-account.with-avatar>.ab-item:before{display:none;content:none}#wp-admin-bar-my-account.with-avatar>ul{min-width:270px}#wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar .ab-item{white-space:nowrap}#wpadminbar #wp-admin-bar-user-actions>li{margin-left:16px;margin-right:16px}#wpadminbar #wp-admin-bar-user-actions.ab-submenu{padding:6px 0 12px}#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li{margin-left:88px}#wpadminbar #wp-admin-bar-user-info{margin-top:6px;margin-bottom:15px;height:auto;background:0 0}#wp-admin-bar-user-info .avatar{position:absolute;left:-72px;top:4px;width:64px;height:64px}#wpadminbar #wp-admin-bar-user-info a{background:0 0;height:auto}#wpadminbar #wp-admin-bar-user-info span{background:0 0;padding:0;height:18px}#wpadminbar #wp-admin-bar-user-info .display-name,#wpadminbar #wp-admin-bar-user-info .username{display:block}#wpadminbar #wp-admin-bar-user-info .username{color:#999;font-size:11px}#wpadminbar #wp-admin-bar-my-account.with-avatar>a img{width:auto;height:16px;padding:0;border:1px solid #82878c;background:#eee;line-height:24px;vertical-align:middle;margin:-4px 0 0 6px;float:none;display:inline}#wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar>a img{width:auto}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon{width:15px;height:20px;margin-right:0;padding:6px 0 5px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item{padding:0 7px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before{content:'\f120';top:2px}#wpadminbar .quicklinks li .blavatar{float:left;font:400 16px/1 dashicons!important;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#eee}#wpadminbar .quicklinks li a:hover .blavatar{color:#00b9eb}#wpadminbar .quicklinks li .blavatar:before{content:'\f120';height:16px;width:16px;display:inline-block;margin:6px 8px 0 -2px}#wpadminbar #wp-admin-bar-appearance{margin-top:-12px}#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:'\f112';top:2px}#wpadminbar #wp-admin-bar-customize>.ab-item:before{content:'\f540';top:2px}#wpadminbar #wp-admin-bar-edit>.ab-item:before{content:'\f464';top:2px}#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f226"}.wp-admin #wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:"\f102"}#wpadminbar #wp-admin-bar-comments .ab-icon{margin-right:6px}#wpadminbar #wp-admin-bar-comments .ab-icon:before{content:'\f101';top:3px}#wpadminbar #wp-admin-bar-comments .count-0{opacity:.5}#wpadminbar #wp-admin-bar-new-content .ab-icon:before{content:'\f132';top:4px}#wpadminbar #wp-admin-bar-updates .ab-icon:before{content:'\f463';top:2px}#wpadminbar.ie8 #wp-admin-bar-search{display:block;min-width:32px}#wpadminbar #wp-admin-bar-search .ab-item{padding:0;background:0 0}#wpadminbar #adminbarsearch{position:relative;height:32px;padding:0 2px;z-index:1}#wpadminbar #adminbarsearch:before{position:absolute;top:6px;left:5px;z-index:20;font:400 20px/1 dashicons!important;content:'\f179';speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input{position:relative;z-index:30;font:13px/24px "Open Sans",sans-serif;height:24px;width:24px;max-width:none;padding:0 3px 0 24px;margin:0;color:#ccc;background-color:rgba(255,255,255,0);border:none;outline:0;cursor:pointer;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition-duration:400ms;transition-duration:400ms;-webkit-transition-property:width,background;transition-property:width,background;-webkit-transition-timing-function:ease;transition-timing-function:ease}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{z-index:10;color:#000;width:200px;background-color:rgba(255,255,255,.9);cursor:text;border:0}#wpadminbar.ie7>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input{margin-top:3px;width:120px}#wpadminbar.ie8>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBR‌​AA7)}#wpadminbar.ie8 #adminbarsearch.adminbar-focused:before{content:'\f179 '}#wpadminbar.ie8>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{background:#fff;z-index:-1}#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder{color:#999}#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder{color:#999}#wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder{color:#999}#wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder{color:#999}#wpadminbar #adminbarsearch .adminbar-button,.customize-support #wpadminbar .hide-if-customize,.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support #wpadminbar .hide-if-no-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#wpadminbar .screen-reader-text,#wpadminbar .screen-reader-text span{position:absolute;left:-1000em;top:-1000em;height:1px;width:1px;overflow:hidden}#wpadminbar .screen-reader-shortcut{position:absolute;top:-1000em}#wpadminbar .screen-reader-shortcut:focus{left:6px;top:7px;height:auto;width:auto;display:block;font-size:14px;font-weight:700;padding:15px 23px 14px;background:#f1f1f1;color:#21759b;z-index:100000;line-height:normal;text-decoration:none;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,.6);box-shadow:0 0 2px 2px rgba(0,0,0,.6)}* html #wpadminbar{overflow:hidden;position:absolute}* html #wpadminbar .quicklinks ul li a{float:left}* html #wpadminbar .menupop a span{background-image:none}.no-font-face #wpadminbar ul.ab-top-menu>li>a.ab-item{display:block;width:45px;text-align:center;overflow:hidden;margin:0 3px}.no-font-face #wpadminbar #wp-admin-bar-edit>.ab-item,.no-font-face #wpadminbar #wp-admin-bar-my-sites>.ab-item,.no-font-face #wpadminbar #wp-admin-bar-site-name>.ab-item{text-indent:0}.no-font-face #wpadminbar #wp-admin-bar-wp-logo>.ab-item,.no-font-face #wpadminbar .ab-icon,.no-font-face #wpadminbar .ab-icon:before,.no-font-face #wpadminbar a.ab-item:before{display:none!important}.no-font-face #wpadminbar ul.ab-top-menu>li>a>span.ab-label{display:inline}.no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon{display:inline!important}.no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon:before{content:"Menu";font:14px/45px sans-serif!important;display:inline-block!important;color:#fff}.no-font-face #wpadminbar #wp-admin-bar-site-name a.ab-item{color:#fff}@media screen and (max-width:782px){#wpadminbar .ab-label,#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper a:empty{display:none}#wpadminbar ul#wp-admin-bar-root-default>li,.network-admin #wpadminbar ul#wp-admin-bar-top-secondary>li#wp-admin-bar-my-account{margin-right:0}html #wpadminbar{height:46px;min-width:300px}#wpadminbar *{font:400 14px/32px "Open Sans",sans-serif}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks>ul>li>a{padding:0;height:46px;line-height:46px;width:auto}#wpadminbar .ab-icon{font:40px/1 dashicons!important;margin:0;width:52px;height:46px;text-align:center}#wpadminbar .ab-icon:before{text-align:center}#wpadminbar .ab-submenu{padding:0}#wpadminbar #wp-admin-bar-my-account a.ab-item,#wpadminbar #wp-admin-bar-my-sites a.ab-item,#wpadminbar #wp-admin-bar-site-name a.ab-item{text-overflow:clip}#wpadminbar .menupop li.hover>.ab-sub-wrapper,#wpadminbar .menupop li:hover>.ab-sub-wrapper{margin-top:-46px}#wpadminbar #wp-admin-bar-comments .ab-icon,#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li{margin:0}#wpadminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop>.ab-item{padding-right:30px}#wpadminbar .menupop .menupop>.ab-item:before{top:10px;right:6px}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper .ab-item{font-size:16px;padding:6px 15px 12px}#wpadminbar #wp-admin-bar-wp-logo>.ab-item{padding:0}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon{padding:0;width:52px;height:46px;text-align:center;vertical-align:top}#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before{font:28px/1 dashicons!important;top:-3px}#wpadminbar .ab-icon,#wpadminbar .ab-item:before{padding:0}#wpadminbar #wp-admin-bar-customize>.ab-item,#wpadminbar #wp-admin-bar-edit>.ab-item,#wpadminbar #wp-admin-bar-my-account>.ab-item,#wpadminbar #wp-admin-bar-my-sites>.ab-item,#wpadminbar #wp-admin-bar-site-name>.ab-item{text-indent:100%;white-space:nowrap;overflow:hidden;width:52px;padding:0;color:#999;position:relative}#wpadminbar .ab-icon,#wpadminbar .ab-item:before,#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon{padding:0;margin-right:0}#wpadminbar #wp-admin-bar-customize>.ab-item:before,#wpadminbar #wp-admin-bar-edit>.ab-item:before,#wpadminbar #wp-admin-bar-my-account>.ab-item:before,#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{display:block;text-indent:0;font:400 32px/1 dashicons;speak:none;top:7px;width:52px;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#wpadminbar #wp-admin-bar-appearance{margin-top:0}#wpadminbar #wp-admin-bar-search,#wpadminbar .quicklinks li .blavatar:before{display:none}#wpadminbar #wp-admin-bar-new-content .ab-icon:before{top:0;line-height:53px;height:46px!important;text-align:center;width:52px;display:block}#wpadminbar #wp-admin-bar-updates{text-align:center}#wpadminbar #wp-admin-bar-updates .ab-icon:before{top:3px}#wpadminbar #wp-admin-bar-comments .ab-icon:before{display:block;font-size:34px;height:46px;line-height:47px;top:0}#wp-toolbar>ul>li,#wpadminbar #wp-admin-bar-user-actions.ab-submenu img.avatar{display:none}#wpadminbar #wp-admin-bar-my-account>a{position:relative;white-space:nowrap;text-indent:150%;width:28px;padding:0 10px;overflow:hidden}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{position:absolute;top:13px;right:10px;width:26px;height:26px}#wpadminbar #wp-admin-bar-user-actions.ab-submenu{padding:0}#wpadminbar #wp-admin-bar-user-info .display-name{height:auto;font-size:16px;line-height:24px;color:#eee}#wpadminbar #wp-admin-bar-user-info a{padding-top:4px}#wpadminbar #wp-admin-bar-user-info .username{line-height:.8!important;margin-bottom:-2px}#wpadminbar li#wp-admin-bar-comments,#wpadminbar li#wp-admin-bar-customize,#wpadminbar li#wp-admin-bar-edit,#wpadminbar li#wp-admin-bar-menu-toggle,#wpadminbar li#wp-admin-bar-my-account,#wpadminbar li#wp-admin-bar-my-sites,#wpadminbar li#wp-admin-bar-new-content,#wpadminbar li#wp-admin-bar-site-name,#wpadminbar li#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo{display:block}#wpadminbar li.hover ul li,#wpadminbar li:hover ul li,#wpadminbar li:hover ul li:hover ul li{display:list-item}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}#wpadminbar #wp-admin-bar-comments,#wpadminbar #wp-admin-bar-edit,#wpadminbar #wp-admin-bar-my-account,#wpadminbar #wp-admin-bar-my-sites,#wpadminbar #wp-admin-bar-new-content,#wpadminbar #wp-admin-bar-site-name,#wpadminbar #wp-admin-bar-updates,#wpadminbar #wp-admin-bar-wp-logo,#wpadminbar .ab-top-menu,#wpadminbar .ab-top-secondary{position:static}#wpadminbar #wp-admin-bar-my-account{float:right}#wpadminbar .ab-top-secondary .menupop .menupop>.ab-item:before{top:10px;left:0}}@media screen and (max-width:600px){#wpadminbar{position:absolute}#wp-responsive-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:400}#wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper{width:100%;left:0}#wpadminbar .menupop .menupop>.ab-item:before{display:none}#wpadminbar #wp-admin-bar-wp-logo.menupop .ab-sub-wrapper{margin-left:0}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper{margin:0;width:100%;top:auto;left:auto;position:static;-webkit-box-shadow:none;box-shadow:none}#wpadminbar .ab-top-menu>.menupop li>.ab-sub-wrapper .ab-item{font-size:16px;padding:6px 15px 19px 30px}#wpadminbar li:hover ul li ul li{display:list-item}#wpadminbar li#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo{display:none}}@media screen and (max-width:400px){#wpadminbar li#wp-admin-bar-comments{display:none}} \ No newline at end of file diff --git a/wp-includes/css/buttons-rtl.css b/wp-includes/css/buttons-rtl.css deleted file mode 100644 index 18dd46e531..0000000000 --- a/wp-includes/css/buttons-rtl.css +++ /dev/null @@ -1,372 +0,0 @@ -/* ---------------------------------------------------------------------------- - -NOTE: If you edit this file, you should make sure that the CSS rules for -buttons in the following files are updated. - -* jquery-ui-dialog.css -* editor.css - -WordPress-style Buttons -======================= -Create a button by adding the `.button` class to an element. For backwards -compatibility, we support several other classes (such as `.button-secondary`), -but these will *not* work with the stackable classes described below. - -Button Styles -------------- -To display a primary button style, add the `.button-primary` class to a button. - -Button Sizes ------------- -Adjust a button's size by adding the `.button-large` or `.button-small` class. - -Button States -------------- -Lock the state of a button by adding the name of the pseudoclass as -an actual class (e.g. `.hover` for `:hover`). - - -TABLE OF CONTENTS: ------------------- - 1.0 - Button Layouts - 2.0 - Default Button Style - 3.0 - Primary Button Style - 4.0 - Button Groups - 5.0 - Responsive Button Styles - ----------------------------------------------------------------------------- */ - -/* ---------------------------------------------------------------------------- - 1.0 - Button Layouts ----------------------------------------------------------------------------- */ - -.wp-core-ui .button, -.wp-core-ui .button-primary, -.wp-core-ui .button-secondary { - display: inline-block; - text-decoration: none; - font-size: 13px; - line-height: 26px; - height: 28px; - margin: 0; - padding: 0 10px 1px; - cursor: pointer; - border-width: 1px; - border-style: solid; - -webkit-appearance: none; - -webkit-border-radius: 3px; - border-radius: 3px; - white-space: nowrap; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -/* Remove the dotted border on :focus and the extra padding in Firefox */ -.wp-core-ui button::-moz-focus-inner, -.wp-core-ui input[type="reset"]::-moz-focus-inner, -.wp-core-ui input[type="button"]::-moz-focus-inner, -.wp-core-ui input[type="submit"]::-moz-focus-inner { - border-width: 0; - border-style: none; - padding: 0; -} - -.wp-core-ui .button.button-large, -.wp-core-ui .button-group.button-large .button { - height: 30px; - line-height: 28px; - padding: 0 12px 2px; -} - -.wp-core-ui .button.button-small, -.wp-core-ui .button-group.button-small .button { - height: 24px; - line-height: 22px; - padding: 0 8px 1px; - font-size: 11px; -} - -.wp-core-ui .button.button-hero, -.wp-core-ui .button-group.button-hero .button { - font-size: 14px; - height: 46px; - line-height: 44px; - padding: 0 36px; -} - -.wp-core-ui .button:active, -.wp-core-ui .button:focus { - outline: none; -} - -.ie8 .wp-core-ui .button-link:focus { - outline: #5b9dd9 solid 1px; -} - -.wp-core-ui .button.hidden { - display: none; -} - -/* Style Reset buttons as simple text links */ - -.wp-core-ui input[type="reset"], -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active, -.wp-core-ui input[type="reset"]:focus { - background: none; - border: none; - -webkit-box-shadow: none; - box-shadow: none; - padding: 0 2px 1px; - width: auto; -} - -/* ---------------------------------------------------------------------------- - 2.0 - Default Button Style ----------------------------------------------------------------------------- */ - -.wp-core-ui .button, -.wp-core-ui .button-secondary { - color: #555; - border-color: #cccccc; - background: #f7f7f7; - -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - vertical-align: top; -} - -.wp-core-ui p .button { - vertical-align: baseline; -} - -.wp-core-ui .button-link { - border: 0; - background: none; - outline: none; - cursor: pointer; -} - -.wp-core-ui .button.hover, -.wp-core-ui .button:hover, -.wp-core-ui .button-secondary:hover, -.wp-core-ui .button.focus, -.wp-core-ui .button:focus, -.wp-core-ui .button-secondary:focus { - background: #fafafa; - border-color: #999; - color: #23282d; -} - -.wp-core-ui .button.focus, -.wp-core-ui .button:focus, -.wp-core-ui .button-secondary:focus, -.wp-core-ui .button-link:focus { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.wp-core-ui .button.active, -.wp-core-ui .button.active:hover, -.wp-core-ui .button:active, -.wp-core-ui .button-secondary:active { - background: #eee; - border-color: #999; - color: #32373c; - -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); - box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); -} - -.wp-core-ui .button.active:focus { - -webkit-box-shadow: - inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.wp-core-ui .button[disabled], -.wp-core-ui .button:disabled, -.wp-core-ui .button.disabled, -.wp-core-ui .button-secondary[disabled], -.wp-core-ui .button-secondary:disabled, -.wp-core-ui .button-secondary.disabled, -.wp-core-ui .button-disabled { - color: #a0a5aa !important; - border-color: #ddd !important; - background: #f7f7f7 !important; - -webkit-box-shadow: none !important; - box-shadow: none !important; - text-shadow: 0 1px 0 #fff !important; - cursor: default; -} - -/* ---------------------------------------------------------------------------- - 3.0 - Primary Button Style ----------------------------------------------------------------------------- */ - -.wp-core-ui .button-primary { - background: #00a0d2; - border-color: #0073aa; - -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5), 0 1px 0 rgba( 0, 0, 0, 0.15 ); - box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5 ), 0 1px 0 rgba( 0, 0, 0, 0.15 ); - color: #fff; - text-decoration: none; -} - -.wp-core-ui .button-primary.hover, -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary.focus, -.wp-core-ui .button-primary:focus { - background: #0091cd; - border-color: #0073aa; - -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 ); - box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 ); - color: #fff; -} - -.wp-core-ui .button-primary.focus, -.wp-core-ui .button-primary:focus { - border-color: #0e3950; - -webkit-box-shadow: - inset 0 1px 0 rgba( 120, 200, 230, 0.6 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - inset 0 1px 0 rgba( 120, 200, 230, 0.6 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.wp-core-ui .button-primary.active, -.wp-core-ui .button-primary.active:hover, -.wp-core-ui .button-primary.active:focus, -.wp-core-ui .button-primary:active { - background: #0073aa; - border-color: #005082; - color: rgba( 255, 255, 255, 0.95 ); - -webkit-box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 ); - vertical-align: top; -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #94cde7 !important; - background: #298cba !important; - border-color: #1b607f !important; - -webkit-box-shadow: none !important; - box-shadow: none !important; - text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ) !important; - cursor: default; -} - -/* ---------------------------------------------------------------------------- - 4.0 - Button Groups ----------------------------------------------------------------------------- */ - -.wp-core-ui .button-group { - position: relative; - display: inline-block; - white-space: nowrap; - font-size: 0; - vertical-align: middle; -} - -.wp-core-ui .button-group > .button { - display: inline-block; - -webkit-border-radius: 0; - border-radius: 0; - margin-left: -1px; - z-index: 10; -} - -.wp-core-ui .button-group > .button-primary { - z-index: 100; -} - -.wp-core-ui .button-group > .button:hover { - z-index: 20; -} - -.wp-core-ui .button-group > .button:first-child { - -webkit-border-radius: 0 3px 3px 0; - border-radius: 0 3px 3px 0; -} - -.wp-core-ui .button-group > .button:last-child { - -webkit-border-radius: 3px 0 0 3px; - border-radius: 3px 0 0 3px; -} - -.wp-core-ui .button-group > .button:focus { - position: relative; - z-index: 1; -} - -/* ---------------------------------------------------------------------------- - 5.0 - Responsive Button Styles ----------------------------------------------------------------------------- */ - -@media screen and ( max-width: 782px ) { - - .wp-core-ui .button, - .wp-core-ui .button.button-large, - .wp-core-ui .button.button-small, - input#publish, - input#save-post, - a.preview { - padding: 6px 14px; - line-height: normal; - font-size: 14px; - vertical-align: middle; - height: auto; - margin-bottom: 4px; - } - - #media-upload.wp-core-ui .button { - padding: 0 10px 1px; - height: 24px; - line-height: 22px; - font-size: 13px; - } - - .media-frame.mode-grid .bulk-select .button { - margin-bottom: 0; - } - - /* Publish Metabox Options */ - .wp-core-ui .save-post-status.button { - position: relative; - margin: 0 10px 0 14px; /* 14px right margin to match all other buttons */ - } - - /* Reset responsive styles in Press This, Customizer */ - - .wp-core-ui.wp-customizer .button { - padding: 0 10px 1px; - font-size: 13px; - line-height: 26px; - height: 28px; - margin: 0; - vertical-align: inherit; - } - - /* Reset responsive styles on Log in button on iframed login form */ - - .interim-login .button.button-large { - height: 30px; - line-height: 28px; - padding: 0 12px 2px; - } - -} diff --git a/wp-includes/css/buttons-rtl.min.css b/wp-includes/css/buttons-rtl.min.css deleted file mode 100644 index 4b41b81087..0000000000 --- a/wp-includes/css/buttons-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -.wp-core-ui .button,.wp-core-ui .button-primary,.wp-core-ui .button-secondary{display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-core-ui button::-moz-focus-inner,.wp-core-ui input[type=reset]::-moz-focus-inner,.wp-core-ui input[type=button]::-moz-focus-inner,.wp-core-ui input[type=submit]::-moz-focus-inner{border-width:0;border-style:none;padding:0}.wp-core-ui .button-group.button-large .button,.wp-core-ui .button.button-large{height:30px;line-height:28px;padding:0 12px 2px}.wp-core-ui .button-group.button-small .button,.wp-core-ui .button.button-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.wp-core-ui .button-group.button-hero .button,.wp-core-ui .button.button-hero{font-size:14px;height:46px;line-height:44px;padding:0 36px}.wp-core-ui .button:active,.wp-core-ui .button:focus{outline:0}.ie8 .wp-core-ui .button-link:focus{outline:#5b9dd9 solid 1px}.wp-core-ui .button.hidden{display:none}.wp-core-ui input[type=reset],.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:focus,.wp-core-ui input[type=reset]:hover{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;padding:0 2px 1px;width:auto}.wp-core-ui .button,.wp-core-ui .button-secondary{color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);vertical-align:top}.wp-core-ui p .button{vertical-align:baseline}.wp-core-ui .button-link{border:0;background:0 0;outline:0;cursor:pointer}.wp-core-ui .button-secondary:focus,.wp-core-ui .button-secondary:hover,.wp-core-ui .button.focus,.wp-core-ui .button.hover,.wp-core-ui .button:focus,.wp-core-ui .button:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-core-ui .button-link:focus,.wp-core-ui .button-secondary:focus,.wp-core-ui .button.focus,.wp-core-ui .button:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-secondary:active,.wp-core-ui .button.active,.wp-core-ui .button.active:hover,.wp-core-ui .button:active{background:#eee;border-color:#999;color:#32373c;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}.wp-core-ui .button.active:focus{-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-disabled,.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled,.wp-core-ui .button-secondary[disabled],.wp-core-ui .button.disabled,.wp-core-ui .button:disabled,.wp-core-ui .button[disabled]{color:#a0a5aa!important;border-color:#ddd!important;background:#f7f7f7!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 1px 0 #fff!important;cursor:default}.wp-core-ui .button-primary{background:#00a0d2;border-color:#0073aa;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);color:#fff;text-decoration:none}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary.hover,.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#0091cd;border-color:#0073aa;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.6);box-shadow:inset 0 1px 0 rgba(120,200,230,.6);color:#fff}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary:focus{border-color:#0e3950;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.6),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 rgba(120,200,230,.6),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover,.wp-core-ui .button-primary:active{background:#0073aa;border-color:#005082;color:rgba(255,255,255,.95);-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);vertical-align:top}.wp-core-ui .button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#94cde7!important;background:#298cba!important;border-color:#1b607f!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.wp-core-ui .button-group{position:relative;display:inline-block;white-space:nowrap;font-size:0;vertical-align:middle}.wp-core-ui .button-group>.button{display:inline-block;-webkit-border-radius:0;border-radius:0;margin-left:-1px;z-index:10}.wp-core-ui .button-group>.button-primary{z-index:100}.wp-core-ui .button-group>.button:hover{z-index:20}.wp-core-ui .button-group>.button:first-child{-webkit-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.wp-core-ui .button-group>.button:last-child{-webkit-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.wp-core-ui .button-group>.button:focus{position:relative;z-index:1}@media screen and (max-width:782px){.wp-core-ui .button,.wp-core-ui .button.button-large,.wp-core-ui .button.button-small,a.preview,input#publish,input#save-post{padding:6px 14px;line-height:normal;font-size:14px;vertical-align:middle;height:auto;margin-bottom:4px}#media-upload.wp-core-ui .button{padding:0 10px 1px;height:24px;line-height:22px;font-size:13px}.media-frame.mode-grid .bulk-select .button{margin-bottom:0}.wp-core-ui .save-post-status.button{position:relative;margin:0 10px 0 14px}.wp-core-ui.wp-customizer .button{padding:0 10px 1px;font-size:13px;line-height:26px;height:28px;margin:0;vertical-align:inherit}.interim-login .button.button-large{height:30px;line-height:28px;padding:0 12px 2px}} \ No newline at end of file diff --git a/wp-includes/css/buttons.css b/wp-includes/css/buttons.css deleted file mode 100644 index b34f91a502..0000000000 --- a/wp-includes/css/buttons.css +++ /dev/null @@ -1,372 +0,0 @@ -/* ---------------------------------------------------------------------------- - -NOTE: If you edit this file, you should make sure that the CSS rules for -buttons in the following files are updated. - -* jquery-ui-dialog.css -* editor.css - -WordPress-style Buttons -======================= -Create a button by adding the `.button` class to an element. For backwards -compatibility, we support several other classes (such as `.button-secondary`), -but these will *not* work with the stackable classes described below. - -Button Styles -------------- -To display a primary button style, add the `.button-primary` class to a button. - -Button Sizes ------------- -Adjust a button's size by adding the `.button-large` or `.button-small` class. - -Button States -------------- -Lock the state of a button by adding the name of the pseudoclass as -an actual class (e.g. `.hover` for `:hover`). - - -TABLE OF CONTENTS: ------------------- - 1.0 - Button Layouts - 2.0 - Default Button Style - 3.0 - Primary Button Style - 4.0 - Button Groups - 5.0 - Responsive Button Styles - ----------------------------------------------------------------------------- */ - -/* ---------------------------------------------------------------------------- - 1.0 - Button Layouts ----------------------------------------------------------------------------- */ - -.wp-core-ui .button, -.wp-core-ui .button-primary, -.wp-core-ui .button-secondary { - display: inline-block; - text-decoration: none; - font-size: 13px; - line-height: 26px; - height: 28px; - margin: 0; - padding: 0 10px 1px; - cursor: pointer; - border-width: 1px; - border-style: solid; - -webkit-appearance: none; - -webkit-border-radius: 3px; - border-radius: 3px; - white-space: nowrap; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -/* Remove the dotted border on :focus and the extra padding in Firefox */ -.wp-core-ui button::-moz-focus-inner, -.wp-core-ui input[type="reset"]::-moz-focus-inner, -.wp-core-ui input[type="button"]::-moz-focus-inner, -.wp-core-ui input[type="submit"]::-moz-focus-inner { - border-width: 0; - border-style: none; - padding: 0; -} - -.wp-core-ui .button.button-large, -.wp-core-ui .button-group.button-large .button { - height: 30px; - line-height: 28px; - padding: 0 12px 2px; -} - -.wp-core-ui .button.button-small, -.wp-core-ui .button-group.button-small .button { - height: 24px; - line-height: 22px; - padding: 0 8px 1px; - font-size: 11px; -} - -.wp-core-ui .button.button-hero, -.wp-core-ui .button-group.button-hero .button { - font-size: 14px; - height: 46px; - line-height: 44px; - padding: 0 36px; -} - -.wp-core-ui .button:active, -.wp-core-ui .button:focus { - outline: none; -} - -.ie8 .wp-core-ui .button-link:focus { - outline: #5b9dd9 solid 1px; -} - -.wp-core-ui .button.hidden { - display: none; -} - -/* Style Reset buttons as simple text links */ - -.wp-core-ui input[type="reset"], -.wp-core-ui input[type="reset"]:hover, -.wp-core-ui input[type="reset"]:active, -.wp-core-ui input[type="reset"]:focus { - background: none; - border: none; - -webkit-box-shadow: none; - box-shadow: none; - padding: 0 2px 1px; - width: auto; -} - -/* ---------------------------------------------------------------------------- - 2.0 - Default Button Style ----------------------------------------------------------------------------- */ - -.wp-core-ui .button, -.wp-core-ui .button-secondary { - color: #555; - border-color: #cccccc; - background: #f7f7f7; - -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - vertical-align: top; -} - -.wp-core-ui p .button { - vertical-align: baseline; -} - -.wp-core-ui .button-link { - border: 0; - background: none; - outline: none; - cursor: pointer; -} - -.wp-core-ui .button.hover, -.wp-core-ui .button:hover, -.wp-core-ui .button-secondary:hover, -.wp-core-ui .button.focus, -.wp-core-ui .button:focus, -.wp-core-ui .button-secondary:focus { - background: #fafafa; - border-color: #999; - color: #23282d; -} - -.wp-core-ui .button.focus, -.wp-core-ui .button:focus, -.wp-core-ui .button-secondary:focus, -.wp-core-ui .button-link:focus { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.wp-core-ui .button.active, -.wp-core-ui .button.active:hover, -.wp-core-ui .button:active, -.wp-core-ui .button-secondary:active { - background: #eee; - border-color: #999; - color: #32373c; - -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); - box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); -} - -.wp-core-ui .button.active:focus { - -webkit-box-shadow: - inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.wp-core-ui .button[disabled], -.wp-core-ui .button:disabled, -.wp-core-ui .button.disabled, -.wp-core-ui .button-secondary[disabled], -.wp-core-ui .button-secondary:disabled, -.wp-core-ui .button-secondary.disabled, -.wp-core-ui .button-disabled { - color: #a0a5aa !important; - border-color: #ddd !important; - background: #f7f7f7 !important; - -webkit-box-shadow: none !important; - box-shadow: none !important; - text-shadow: 0 1px 0 #fff !important; - cursor: default; -} - -/* ---------------------------------------------------------------------------- - 3.0 - Primary Button Style ----------------------------------------------------------------------------- */ - -.wp-core-ui .button-primary { - background: #00a0d2; - border-color: #0073aa; - -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5), 0 1px 0 rgba( 0, 0, 0, 0.15 ); - box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5 ), 0 1px 0 rgba( 0, 0, 0, 0.15 ); - color: #fff; - text-decoration: none; -} - -.wp-core-ui .button-primary.hover, -.wp-core-ui .button-primary:hover, -.wp-core-ui .button-primary.focus, -.wp-core-ui .button-primary:focus { - background: #0091cd; - border-color: #0073aa; - -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 ); - box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 ); - color: #fff; -} - -.wp-core-ui .button-primary.focus, -.wp-core-ui .button-primary:focus { - border-color: #0e3950; - -webkit-box-shadow: - inset 0 1px 0 rgba( 120, 200, 230, 0.6 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - inset 0 1px 0 rgba( 120, 200, 230, 0.6 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.wp-core-ui .button-primary.active, -.wp-core-ui .button-primary.active:hover, -.wp-core-ui .button-primary.active:focus, -.wp-core-ui .button-primary:active { - background: #0073aa; - border-color: #005082; - color: rgba( 255, 255, 255, 0.95 ); - -webkit-box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 ); - vertical-align: top; -} - -.wp-core-ui .button-primary[disabled], -.wp-core-ui .button-primary:disabled, -.wp-core-ui .button-primary-disabled, -.wp-core-ui .button-primary.disabled { - color: #94cde7 !important; - background: #298cba !important; - border-color: #1b607f !important; - -webkit-box-shadow: none !important; - box-shadow: none !important; - text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ) !important; - cursor: default; -} - -/* ---------------------------------------------------------------------------- - 4.0 - Button Groups ----------------------------------------------------------------------------- */ - -.wp-core-ui .button-group { - position: relative; - display: inline-block; - white-space: nowrap; - font-size: 0; - vertical-align: middle; -} - -.wp-core-ui .button-group > .button { - display: inline-block; - -webkit-border-radius: 0; - border-radius: 0; - margin-right: -1px; - z-index: 10; -} - -.wp-core-ui .button-group > .button-primary { - z-index: 100; -} - -.wp-core-ui .button-group > .button:hover { - z-index: 20; -} - -.wp-core-ui .button-group > .button:first-child { - -webkit-border-radius: 3px 0 0 3px; - border-radius: 3px 0 0 3px; -} - -.wp-core-ui .button-group > .button:last-child { - -webkit-border-radius: 0 3px 3px 0; - border-radius: 0 3px 3px 0; -} - -.wp-core-ui .button-group > .button:focus { - position: relative; - z-index: 1; -} - -/* ---------------------------------------------------------------------------- - 5.0 - Responsive Button Styles ----------------------------------------------------------------------------- */ - -@media screen and ( max-width: 782px ) { - - .wp-core-ui .button, - .wp-core-ui .button.button-large, - .wp-core-ui .button.button-small, - input#publish, - input#save-post, - a.preview { - padding: 6px 14px; - line-height: normal; - font-size: 14px; - vertical-align: middle; - height: auto; - margin-bottom: 4px; - } - - #media-upload.wp-core-ui .button { - padding: 0 10px 1px; - height: 24px; - line-height: 22px; - font-size: 13px; - } - - .media-frame.mode-grid .bulk-select .button { - margin-bottom: 0; - } - - /* Publish Metabox Options */ - .wp-core-ui .save-post-status.button { - position: relative; - margin: 0 14px 0 10px; /* 14px right margin to match all other buttons */ - } - - /* Reset responsive styles in Press This, Customizer */ - - .wp-core-ui.wp-customizer .button { - padding: 0 10px 1px; - font-size: 13px; - line-height: 26px; - height: 28px; - margin: 0; - vertical-align: inherit; - } - - /* Reset responsive styles on Log in button on iframed login form */ - - .interim-login .button.button-large { - height: 30px; - line-height: 28px; - padding: 0 12px 2px; - } - -} diff --git a/wp-includes/css/buttons.min.css b/wp-includes/css/buttons.min.css deleted file mode 100644 index 9af9882d73..0000000000 --- a/wp-includes/css/buttons.min.css +++ /dev/null @@ -1 +0,0 @@ -.wp-core-ui .button,.wp-core-ui .button-primary,.wp-core-ui .button-secondary{display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-core-ui button::-moz-focus-inner,.wp-core-ui input[type=reset]::-moz-focus-inner,.wp-core-ui input[type=button]::-moz-focus-inner,.wp-core-ui input[type=submit]::-moz-focus-inner{border-width:0;border-style:none;padding:0}.wp-core-ui .button-group.button-large .button,.wp-core-ui .button.button-large{height:30px;line-height:28px;padding:0 12px 2px}.wp-core-ui .button-group.button-small .button,.wp-core-ui .button.button-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.wp-core-ui .button-group.button-hero .button,.wp-core-ui .button.button-hero{font-size:14px;height:46px;line-height:44px;padding:0 36px}.wp-core-ui .button:active,.wp-core-ui .button:focus{outline:0}.ie8 .wp-core-ui .button-link:focus{outline:#5b9dd9 solid 1px}.wp-core-ui .button.hidden{display:none}.wp-core-ui input[type=reset],.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:focus,.wp-core-ui input[type=reset]:hover{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;padding:0 2px 1px;width:auto}.wp-core-ui .button,.wp-core-ui .button-secondary{color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);vertical-align:top}.wp-core-ui p .button{vertical-align:baseline}.wp-core-ui .button-link{border:0;background:0 0;outline:0;cursor:pointer}.wp-core-ui .button-secondary:focus,.wp-core-ui .button-secondary:hover,.wp-core-ui .button.focus,.wp-core-ui .button.hover,.wp-core-ui .button:focus,.wp-core-ui .button:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-core-ui .button-link:focus,.wp-core-ui .button-secondary:focus,.wp-core-ui .button.focus,.wp-core-ui .button:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-secondary:active,.wp-core-ui .button.active,.wp-core-ui .button.active:hover,.wp-core-ui .button:active{background:#eee;border-color:#999;color:#32373c;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}.wp-core-ui .button.active:focus{-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-disabled,.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled,.wp-core-ui .button-secondary[disabled],.wp-core-ui .button.disabled,.wp-core-ui .button:disabled,.wp-core-ui .button[disabled]{color:#a0a5aa!important;border-color:#ddd!important;background:#f7f7f7!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 1px 0 #fff!important;cursor:default}.wp-core-ui .button-primary{background:#00a0d2;border-color:#0073aa;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);color:#fff;text-decoration:none}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary.hover,.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#0091cd;border-color:#0073aa;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.6);box-shadow:inset 0 1px 0 rgba(120,200,230,.6);color:#fff}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary:focus{border-color:#0e3950;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.6),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 rgba(120,200,230,.6),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover,.wp-core-ui .button-primary:active{background:#0073aa;border-color:#005082;color:rgba(255,255,255,.95);-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);vertical-align:top}.wp-core-ui .button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#94cde7!important;background:#298cba!important;border-color:#1b607f!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.wp-core-ui .button-group{position:relative;display:inline-block;white-space:nowrap;font-size:0;vertical-align:middle}.wp-core-ui .button-group>.button{display:inline-block;-webkit-border-radius:0;border-radius:0;margin-right:-1px;z-index:10}.wp-core-ui .button-group>.button-primary{z-index:100}.wp-core-ui .button-group>.button:hover{z-index:20}.wp-core-ui .button-group>.button:first-child{-webkit-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.wp-core-ui .button-group>.button:last-child{-webkit-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.wp-core-ui .button-group>.button:focus{position:relative;z-index:1}@media screen and (max-width:782px){.wp-core-ui .button,.wp-core-ui .button.button-large,.wp-core-ui .button.button-small,a.preview,input#publish,input#save-post{padding:6px 14px;line-height:normal;font-size:14px;vertical-align:middle;height:auto;margin-bottom:4px}#media-upload.wp-core-ui .button{padding:0 10px 1px;height:24px;line-height:22px;font-size:13px}.media-frame.mode-grid .bulk-select .button{margin-bottom:0}.wp-core-ui .save-post-status.button{position:relative;margin:0 14px 0 10px}.wp-core-ui.wp-customizer .button{padding:0 10px 1px;font-size:13px;line-height:26px;height:28px;margin:0;vertical-align:inherit}.interim-login .button.button-large{height:30px;line-height:28px;padding:0 12px 2px}} \ No newline at end of file diff --git a/wp-includes/css/customize-preview.css b/wp-includes/css/customize-preview.css deleted file mode 100644 index bc4a6fe903..0000000000 --- a/wp-includes/css/customize-preview.css +++ /dev/null @@ -1,6 +0,0 @@ -.customize-partial-refreshing { - opacity: 0.25; - -webkit-transition: opacity 0.25s; - transition: opacity 0.25s; - cursor: progress; -} diff --git a/wp-includes/css/customize-preview.min.css b/wp-includes/css/customize-preview.min.css deleted file mode 100644 index dadf3f5216..0000000000 --- a/wp-includes/css/customize-preview.min.css +++ /dev/null @@ -1 +0,0 @@ -.customize-partial-refreshing{opacity:.25;-webkit-transition:opacity .25s;transition:opacity .25s;cursor:progress} \ No newline at end of file diff --git a/wp-includes/css/dashicons.css b/wp-includes/css/dashicons.css deleted file mode 100644 index 33cf28781f..0000000000 --- a/wp-includes/css/dashicons.css +++ /dev/null @@ -1,1015 +0,0 @@ -@font-face { - font-family: "dashicons"; - src: url(../fonts/dashicons.eot); -} - -@font-face { - font-family: "dashicons"; - src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAGW8AA4AAAAAo7wAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABRAAAABwAAAAcb+kWhkdERUYAAAFgAAAAHwAAACABMQAET1MvMgAAAYAAAABAAAAAYJYFachjbWFwAAABwAAAATwAAAKatulUimdhc3AAAAL8AAAACAAAAAgAAAAQZ2x5ZgAAAwQAAFl6AACLYEUhCQtoZWFkAABcgAAAAC4AAAA2Cpn6WGhoZWEAAFywAAAAGwAAACQPogitaG10eAAAXMwAAAEvAAAEENEK6Wlsb2NhAABd/AAAAgoAAAIKw8CgEm1heHAAAGAIAAAAHwAAACABVwCzbmFtZQAAYCgAAAGdAAADWi+oduNwb3N0AABhyAAAA+oAAAoztf4M13dlYmYAAGW0AAAABgAAAAYlmlWwAAAAAQAAAADMPaLPAAAAANHVnZ0AAAAA0dXWGXjaY2BkYGDgA2IJBhBgYmBkYGRkBpIsYB4DAAR3ADcAeNpjYGY/xTiBgZWBhVWEZQMDA8M0CM20h8GIKQLIB0phB6He4X4MDqp/vjqzXwDxgaQGkGJEUqLAwAgANkAKxHja3ZA7SwNREIXnJmtkuXfHBbFYsViQFNutTxJsVoMmARUxhSSFxEcTq9iI6dJY2FnY+Gvs1EYbUTBYq5U696GNui4JWNjbeGDOcGD4DgwApKE3I8ASB3acJNbNFttPdg0i6IPh7AfZNEgejVJAIU1Tngo0TyWq0gY1qEUHkklbejKQeRnJOWUrTwUqr8q6rNd0Vdd1Q7f0oT4xlrGNZwIzZnKmEMcACRvIpSHyKZuwxylHUcIuUoXqtEW71JYg09KVvgy7bKZc5atQRbqkV7rsTd3UbX1kwGSMa3wTmgkTxXGnf8DCL/zEd3zDV3zBZ3zCR3zAe7zFG7zCC1zGJSziLM7gFE46e07T2XG2nXVRFzVRFRWxKhbFgoh4h9/xa37Jz/kZP+396q/EMvBTwFKJpX4fwL/XN7iViiEAAQAB//8AD3jarL0HfBRl+jg+78zOzG7aZrMtbTfZbEvZ1G0hZRMg9NBCiwpIWXoxijQJqBgRlRIbNsSGiD0qchaOs52uHbmIp4ce6slx6p16x9eDJPv6e553dpMN4n3v+//8s5l533ln5p133vL05xlO5OCPnOYPcQIncRouhdNyXKXOphP0Nr1ZR2zJRKcnp3sepY9HHqU7yNRHI4/yh6JN5EbuZ9r9M6HRj7ifiYfy3M8c4RL+KjmO58JcVH5R6oE6/RynIcEQMZmtxGwVAkENkSVDHjEZ5DRelmBn5UMkGAiG+GCgCsqrguL+aP2urHW31pQ+OKWkblbLiprow9H6py2WpRZLzohFpmF236QKefTiSy/1FXhTm325lilwaopF2MS/tis31e6ybinLzLWlkpTow/xrT7OzUy05gdHplXbfpZcuHi1XTPQVNOlWDs9hdXKEeLiI1CiruQzoE1uVyagzSCWE6OwFLr/OFyCnhY6WNWtaIjQlAqmsXtMSbWpZQ1PI6TUt/KGWNfDaAvdvqOMT6Rj0ZRqrxyxriFtD/F6RQLfiJjXeuTS6Prp+Kf8j6YxE9/OtvZOEfNqm2nTnUv46Vk7bIndFH4k+xk+jWnKapkC9EW6XvFyu4TI5F1cH9ZrStSSNuEkDCfjcrgItIa4A5PM17FiSiWQwmwIyMUlaIuW7XekNJETMrLRK+semTXe2fLmUSM3NDQ0NzzSMp09ahrTccSVZ0Pctb8rLK2jNi36LSRnZY8UTdPeVyi10XmNjwzPSISy5o2WIlYjjm6GCxsZm+uTSL1vu3NQ7Ayq4MC+ft0a/Yemb5F52YtMmsnAT3GKhcxueaWzgOBXMjzC803JOz+VwRThHiM7nKiFum2wvkKD3TV5bVYCrMhmkApdPtOlYGvBWmXU26ND+Q9FQW/TwtbTt2oeLamuLhFNFtdHGIzfffORm4SA5DcnNi805tBv6VMkLHfyhotpIpLYo2gQ38M9i8RFV78nFeI9IzlJ5CX2AHXB8/5wQYEQ5HD7RZrTpvHyrcKr3gJDflxkhp0VDz3fhiGjA8f+GOyn9RTrFqblszo6z3k0COOvFIJHTiN0mY6Mb4EUDGuWETMQ8eugl0pQ90+XO6HvjIuHatVXfzqXt7Z72Vk97vSCRpiw8lU0PSbnKlXq366J32vo2TK0a1u5phQtJx5zTdC+cyYAz2fQlXII8zJk3pKjUxxk5G7RdUrkJPjxIXBnBgMOs4U0SLjQ2f2A1Sh3z6T+uiH419uitY/ltPt/82US1hv6ZZBNrUXXPbutUi9VqmWq1CD/P9/mil4+99egY3noFyZg/u9pD/0xPkrzVP0fzLJbYhZxAPMQjq6W9sP5LuFHK6NptAyNLvDi0JcSIA1lP7DiatdgzsPTiR348ssSvZEPul9W1RT3f4ViLhqLavswwZsOWYkt/hpw+T1mnqgvzvZNw0C21LbW7jBaLcRdkeBfm6AOJZdFPMcfAI9fJPSCPlFthlnIEhtEl4dIzy9CdKuhK4g6aAri6VIaDfPtvJrw6YlyT3vebH+mpAP0o8LafmH+EwqZxI/TSAwej1x706UeMG/HKxIM/0r8F3g6QUrjgn6yw6VWYbwaYb4dgvmVyFfDsgjJVOXGFBG8VTJQ0UXBCaiFpKntBGV8OnRMiXpVp5uSAJ0snCJJU0rAwtGhrWRpR6TJL/JtI+uV/2Kj1P7T3ywULv3jyJrf78g+vUHld9WPG1Ov1wWXzx5WueXSWnDVq6KQh9K8HtxxdcVbUuq2ZZltBSvLZtvc3KzA8LKuhPW6uHN7eLsnw3pJstPldbtkddLntOm8g6A6aA0G/zWgyB82yyezlqgI+V4FkkNWfZgfvOnpX6yLavaj1ru67gpmffmIeAiXTlhMPKxli/qSv6kxX15kuIX/ZdDgDl3yaGYQzrYtI0YJZUBLIiZXMWkCHduG1rF0RuUCeDDAWRoUzZQAWUbkFUbC5lemdURXwszZIDS+PGDGnjb619SX60S7aHRZyRlWumkP48pUTJqycIJe9TCn9eU6bv5E+l0e3RQRyI2lYNWdE9MSE6iBcgc8ihfJymMc6zgF9UKUyy2UwPyXZqyHeQIZDX+BwB60wRwNBu4bY0wTh1F1EN++x0ItL7/mx4BR9gD5wJPNVUvrE3fSH/lIym8w+krHh4PfS3k1tr7XMef022kY695OMPT0dsQLSSds2fXbfLA5hZQTeV1lLWbCai365mrh8lVlS5TvcARV7b1MVAUjlhx9bL1vZelkH6yVIWohvwwb6Ln2SvrthA//Qmr1r1uyF+evp2Uo8Qj6CNry4LxP2wpg9O3bsge0EXrQmuj8cDkN7UrkIrO3lMC+0AL3NMAZ5MENKYI4EuVquAVb7uPOsd5vOpocmeWNbHLIHoZ1OODfoGM6rEo7l5fAODvYOx4tqexwM5BKP8t+7otgCKzyCHca3IsLsiyaUHBp8BelEsBEDIapPoMATYX80xcKuCocBp3vieTgRyyJMBXwQlvYyGsE6mEqwxagEdxAWBqwSWApAMZyKUQy0GzLC3p6ecPwf6Ye+E3H6QchvWdP3ZMJpxCUcjPkReJYMvZyHuERv1wMt4WCjG/AJTpPZZS9QyS6HvUAOBIVTUVNZpOJW4ZRwqm9oSy1AsTBf2pbpLzxEX5k1i75yqNCf2SacIsW9B1Wra7EvwuzVor//823PyS/s3v2C/NxtCs6Th8trgBrUIQUDRBoiPhvQb4jOZOnO7RYLbek9oCo5YJ0S/SuftSN6apTcuh1oLDq5b4h4/ICF9N3MZ+6I/rWbA7oS/uA9jsBMsXOtsHKXcm1QlM6XEUe+Ko3w6RlWAjM3RGAOmzLSeZzGLigNMJrRJUv2AnfA4YWF55KMBqAgTWYTIA2geUIEAS+7wgWAUjLlEb2GhFRuOM9riIv3+4geb5ePLHjhJ/oBfZF+8NMLCyBPKslIUvnTC71vkJVk/I87dvxIn6U302cxR+rpB0sMaXrj1VNt+pVk3vt3EfNy3yyzKVsUqhry8+mPRpdabdAaDJun2pfYHQbITm0jzxNRUJs0ctLsj3qOk01v/49Q/PXqjYsWCSOURy04pwnijEEPHc8a0lsk+NW8t5wkkX2vrpwvjxtrGVpYpFHN2FJ3oqWF/wdRqwQ+6CPJEi8Qf5Co6ZFoLv+CnNXSctWQR//wJ7pNuLn31Hxy3bfP0neiO4utnBibs8thRslcMluxHK5FAhB70OYR1/VsVTX3nQC6hm18a3S/vPzMGXEdrInugQ1g4jTSKYtyGtAWJVCbz10GeDEj6E5TmRESBgPOXxYJ00dXPTEm6/37H5z33J4VVenZXz16+9x5wlPnK+WPbZ7Z4ErfSYZO/kv5lgPvnb3qD32trbvOV4jTS+ynJVVAeaVw6fiOeqC3bQQACdvgBTXEBsgsur93EvGounonqbqi+6P7hXyEGPLy3knR/eJxeME2BACYktMKHTVAp7oQBxZIlgGuwMtAQD8c0JFYuaq5ZfL1tBs5hRa+tWUNbggJusOQiut2jH2edhPPmhZyGstpG2wpAAz6y2DJMByHz9UAvNVBT2dxFi4f3wuf5oSHiIJXb7MLXhLfYJlqeCBYi2rPnKklL0TCAKbDkTDQQ/EdAvnTyrjWFp19mZdCRbVhfOzABnTtqb5MoYO20TZG/yjvH0YYRJwBIMfgVfNd6YwSF3Vp+MrKgS/Av6SaUFj7Hv38vfduGjO+rz0j0nETy1ZLuyNSQ0mk9x9wTAres/OrIn0dVz3O8kJtoT+BH9AyjmBo/E0Nkj0OXOH9uDh284Vkb/+5KqsqD9Z9lZU3fyGl+caM8Z39J+zFf/ds5Q8pCO4BIiYZLWU1LRUKbisaX+OzZ0mSKr26cXHbouHeZHl57DYfVnH2ZVwOQg9DfLRbnd0yafms2cOLGV4s4g95Rk2bNspkSilaNHEolBjjcyXC8KKeUYvntN8LeI7LD6S78qV08ThxeUIhz9l3cU9cQC130ptJ8zff0APfSI0hT+/80qamUtU9nlCk57tvlBP4DAmesaufb7LD+vMCzuUAdlp5QxoPsLOM94X4jBgNpjonjWNZKZYKOeQuUvPWVT7fVW/RN+hC+oaSl9tbW9tb+ezEJCqx5HcMt8jLh6965MUvX3xk1fB4JmpvZRck/Ec3s6StFu8BHruTnGb4M1nhpuI/aS/iSMSFAIUM8RzjfRUeTLnHjHfZ/ciCARPmDxrtRrvf7vcCPSHthcXV165qBpQNSDssGgCvh3scQkeEHUciyJ8jTyLtBTpKgYUwQn4btkPAVIF/XcDTYUY8HunLxJUCnCODMefcG4Ojyv2Y6jDfX4/QgY0ZWFODqmSMP/7/p3p1sbqLSCzP6sXaxHV97UijYI7VyirDimN1/tp7ZiW0D9b4L16TIPknrhPXwUzmNDweAVBcR1fQVRzhD8G546ou5Zx4HEsRhPKtsXOG+H2iAUuBFLuFbGfnDonHgT1m54Acg1K8Prr/P56TFZpXroH+yGO0pZdRlwx3QX8onKGSGm1GJInqCU5xMSGP/efU2WGvbLDqPGdfJsA0t5JO2PW1K8Qdf0hJSSf0cGeEb8V/qRG6Z1041NoaCrN9D/KEg3c9q3CgwygUi28IM/lh/HBpsvhXpH6ImdhJUBTf2RJ9aQs9tIUQ8a+z+14kb2z8QYEZf+T+KJ2RzihYC/iLARrI78twAE4RTt1HCo62tx+ln9OX6edH27vJEnJ39EXpzEBR+1FScN9HZMnR3uWCml6p8P8RxrtpGY90Lm3FAykpa4hZQxiBUnjsyiuP0T8CefJHzAm/w4kLSwpwGE60iMLNJ15CCtltfV48FRl8+SC8qcH30hCRCPAs4iR6keidop44hVO0GxbDPZfiZGkju2ESdn9DPqSvzqAe6plBXyUfysuj+8fRqugSrJW/nbw/jqyjJTV0dzT6zTdAAoVruAQchc9iTwIqkNVPPHwrDbchnr+Uzudbf1kdthPL2RwUcXaRIkKACspECAQtTIHZDOPK+hN54eVcmsIHmtIZZYmTMUT0MX7TaDCjcMCE3CAxia9vOXx4i825FHDqi5oD18665poXr8mhh+3XZghy/tNW0lQhL/8dPX1YvbT3K/H4TXdH/9Qxc1ZHx6xAJVz0eoZqA1yCQI/sJ/ulQqmIrWVFpBjUoDxP/yf6KL31fbKcPvopmUGWv0dv5de8T1bQR9jh+/RWMv1T+gj3v84HLj9E0stIfhpJN51vQpDhJP3kli0n6Q+wP+9E6F225WT/NQiDOmOyMzOs31Jot3cwNmSynnyTUdCxjtMRd4jE+tBklmHh9XOhRWHEfxHAw8TjcJfDui13O1TNMQleEcrziGffN9/sw0nI6KnuaNPHGWM8uGg9YzI+HkwjIh3l5Jq48YPbVE8SaTqEMv20RkjywjADdZGHWaQyAA2x24xS4+sl9fUlPadL6llGTCmp7/lO1dx7gJxmqI/k82pLfmDI+KK+9uoWl4kQIqRm2Ny1BeXjinJF/uVwfUnfVVKjUkd9yetKHfUlvVNVzTTC8CjtTnIsvnjVlCFIk8NL5eWptEWuMpsZCY9oBczWq0rqgUHVJNBQZkYduBncRJ6cCwIP7k/gyTNiFADy2vx/kWd0JRKNsI8wEkBc13vgx/+YC9cWDdwlNTIqoBZY7bb/lEscq4H34JznSjzibYOh4RPyCmWLD8VHn+09T7MSX0USleciyuo7MZDnOIUHx3YcAX7fyGUOplmQhYJ5ABPFjA8Fcrm77wTKFwDoHAK6G2XOwEyQTiEfs5gyIq+NnYs2AXWDZzlOkYUrPHISPCmTy0U+Ayaiv4Az2jXxh4osQVEJf+i1nXecoj88QyRpKk1BakPIB0gKgJimAO1+Sjx+/Z1H6d8+o0/wX/VspSnCKaCDok3AfgBm/ZXnaeCRnN1YZSKxt9OzREDyrPY10kikZ+gPp+7Y2VOEtWGtDCmE8Wn0CTLlM2I+eieR+9oRdCIZhf3Q1x7vSxXryyMwpslMNwIEMzEqqBz3TpsGBVaijchHaDfU3o10Su9J/hB9gD+EiJg+AH02W9UcQeY0gvxphHRG14R7GJsSeyccK6ShlPpjeB9oRXgNu07QCDBQcB+roQrvhFE5RdukvfEHIl7AhwEhmI2SO5TTMZQOOCbCHZWToP1mpn+RnQDx3S782XUwRlUolpBemjiRfhMM+ubN3dixHV/93RcPbr1B+PxFuvjF1R3bd2zeOG+uPwjPepW8So9NHH/DVqXuN6BudazuQBB+XqyzQJbwB0hFdKUTI1x98MV3kTra3tE+b54vGKTfTBQ+hweMn0iKaYiGiCfonztv4+Yd2ztWv0juYPQFdD8QtACH09kMNkiyDoUnujKUruebVEyY5CoQ1z1yTbiq6ppHENZG97OFIK674VhB9C5PODdXKCs4dgPA2Cy2QNjaUNaoul8iacNFqEB3Jr5HOAoUGrHFV6cjlvKtQkccuEcwQzxFtUD2t/W1tzF4JxxX2I5D2AqYbizB+duWwFrEeKHIOXJI+/n5RiZ5REo9lg4GAT1bUZQo5KNoAJLBIlOFmBfywwqj3KakMboDqSLxOOP2rKjKYM/0BYK4A544xDCMQXzv2oPv3dSXedN7XZulmxdXllX97rJ93whfp71xHfLH176uy85dfLN+/rpv9lUofUuuA5rkDwDRzShhAb7fLMHOHRB9OOXS4FFIY3D5jmAZQXEXcOR+XzCNyCb+Vb6Z/OWKK2hu9ADNveIK4X98hbr8yqZmf2ActZFT5O4lI37YveLv9Jm/r9j9w4gl4h/o0TNn6FFSduaM2tOUwvOqMV5/c3P09n8e2vBY0ep7H/773x++d3XRYxsOKXh0gI7QM+6z8ZeyXjcsOpENv13nNeI2MBoc439N+YLZquh+sLsG93gYl2BvUJWd5wnDnyev92SexyO0Im8M03Pf+GATEANNQVyxTJYbuxOu3AgUKO3eCJfn4e1RPsZS84dWZYbrkTioD2eydUEMhEiHpMOch6vGFZ0hK6LF+E+GzpSUBR77SQ63Kz0YcKiEQLrblS9L6WZTvurwja4lQpa6oDykqrdV2h1mk0oYVlFZ5fN5K20evjQ/M9NwF71j8333LSU5JMe+cOEi+vnCRYsWkgKp7Ea6/l7BJOXke4RSWyVSjaUVwwTBZHTZK211QkNZvtUwxXf1/eSt+5aOGxfNXkRsi+CP/nnRIoR5v+Ad+zGUEE87kINjnCEmqmYEH7gp4j3GasE6An4H5vG6BB7UrNTlBNiJiACoNXu/pPC0cKrnuwjAYBSbdyu1wKIGkByOV6qwubhUAKFL/XpULcDlPIbPSxSIobBwXiChq0yirQz6hNjiSzeRc1N1IZDo+Q6BhW7ngZ30auJJnzZvGp2DhGBfO5KAgE3xH+iMojBQj9Mvu2x6yZAh9JEYETmYSVP3z2N85/SYfM0GlCHnjHH08P6Kktnsh0XsjPHk8U1Wo4gIxYh97cSDiqkTKOdDnBLf8CS8N1xnQHKgux0VXZHImhYULwLFg8LGuK42wsZRUvAWMoFGfPwAge4QTu0kwkuXwLgduuQlGqVf0uhLl1zyEhGEU0rJTujzpp3xUgBHcDXHbAcG3jNZebt4v8pq1g78x2Yi2YqjyGgf4N894nGpEXBpLvYKNKcqqOA8P1LqbpdN0AGIQ+Bjl71VRoMslRC4640P1q7z+lZNW7h6FY2u37rC5529eNd9f/RWLdsPLPV34fnPbBrXnKPR7rr88QkTo1Fiy7eNnTTyT/dfVIKQjpB3YU6r4LnI69iJV7YFvcQetIlvfERPdYeis0LHSOZHIf5BFIPAJOzA+dXJ1kEje0M94zjsqD91oXTAgBok/tfyYYZOwgjiD503KxoUERaQTudmmDwOnp3Nxg7ltD6AJYu4ZUxOJZsBkctA2Rhtgt/uDzK87kfBuF1B7GbE86wD8VBLjOxS6Fg4r5wzMgV5/BpgN11uo8nbPwxwjRnfoXXE1YVlKRk8ycUGb3jcW51m1CSlp9XZLSZdljGnNNNozDSnpEpySnL5fLITr7ra6WyYECzM0RuMNZ6KvDxvptlgLM6xZuVUNU0qLsnOqizMMl+tdADpXOR1JmUU039FwtEnRqoqfPpssznXBpskpKSYA/rkpOSUTK02XZdaGa55LUw/KcvKLqzLEOWyvMxhKSmWfK1WLaeONdlstYWZmRKvyc1tCgMMdpBO6VMYNwOjIAaUBjz/S0VCf5nwXH3JrSHjUzfcuPSlW0frTK/ddNXUKYJzoPAWKHwVC/l9l47329KuIBkjXvPufodGtx74eNzYqy8dH8g/t5D7FXh6jpYEV3tcvheTn+Hq6d/+mzpg4p5QNSu6Fkz/v9Qh7QWSpAPxZCw9t47zyxURsvmZYphtzCBpryJVRIk/bN2oI8AhR+5F0YwiJGdEdlwml85ZORdXw40AHrqVm43SEMCYQZcyrxlpEvRLyoQFqiRAvIJd8Aa9et2guYsZu+zvn96iHVYIVCTGS0oIE1NJFQ57tss+4aLpw4YWFGzraB2dX+xyXFBaXlHZ9+TiE0tPLKr5+ugnC6qrrblDq3JzqwMbJ01rsuRZcuvplCcDZo1WrSFb5jcW5OfnhRbTNLTkCiOrJh1KVusmu53OUU0X37Yne2qSRj0k0Lakri7KVCT7yDPR/WWeljq7PUWlsTu9ExyOM/v0GSVlBsPC3UNLfdlZ28zmMm9mZvRFYLHyw8iBIX0Us3sRWa8bGW0o652yrojo3KKeWRGZnYK5iAQFMajjWzd+Qa/fCAiucyO9/ou+N/nW3gMbydovNtI2VdfGL8jajdJePLMRRwGP+84y5S27LXYhBxgsTgsn4vCcfmwbl582xGYBo4VRlj54O/85m19g80U5Rp2gtBflqBFyOuG/85xiYHxTwjjF8QA1b4AdUxQOONL/BwwrTGDEaoCZW/tLu5UU6bTTyL8AjW3ishEjIHXAeAydwSpUhQS/ji2pyLYlS2+LZA2df2/k/vnDsmF1Ho/+fufdu7fx9dHn6tdumFUz5KIr1tZHUcCg6h+j/vWlh5dM/DF8OGjbG4k3CdtETot/Y/gmCaVIiKf0NrdNL5YcpvNhAR5aRh4ooa/cBpwwioI8d5GTA3YcMEYi4Ao72vhomHYyrq1RLODMUBRMsIEjgj0Z9Xs5BP5Vx4gEvLX6NcaICR21RXcFeicF747Tzthz4fCRlyOoCAkDgu8Oh3F5M4au14hWUA1//0coZgkljGGCiBRgs1MwVXSeie3UAu4vTWhnTETn/IU0D62CBKab8eoGN5K/9u4BKv3uINBEfSdgCgy0raYYzxQXY6OKa2qKlUb+PXoNTg9oUswOT+qCOeBmNgkWYpCJVFDOu+qJL0gQjaLpYzlBGESYbWmVeNvK+vrokron6y6BDH973Yzp9ZTnN1ssxywlxZboJsxMk8RL6mZ0z6iLLqmvX8my9fyu+vreCFw41XrMAtdZp8KF2C86Rmc0Ml3Ur6+v4TH7FwZidQzUxlcTSovlWF48J/1P56RGJLMRNiNV1pcZFk6Fw2iNAykQ3f3785XJ6nC4xxEOoxY/zIxbTrNMpH93vjK0h2X4YyXDzApATmODbEPQDQyQDTggnQHgNb4ocKEM1AunDi8Ij7CtmARrfefNw8Y+tA8I1S8eemhM6FZ6M986daV1eHi+eGD58vdevi403xuJLLj2zoMk+e6779lNzzx3x+alkUgwHLr2t+8vW440ejgBh6HUCGGAlStQ8KEIm2z3o3mtMwE12mMpzOk2RI/hCNLiEeFUXzsCGaawAVSXT7ulxjCz8ImgqCcOdpQFxPgWNdN6LP+156PNG/Hi8+2Jz/f2G1QAnkFwx+yOIqhTR+YDwR0U4xJApB1mz/qVBgzS5WlhjtUzyxmHvUAlAVNgUnmrHMSO/R6M49MC2Z1AVAI2FmKiCFZSIO09RA8f7ucSdh4mw+jI3ZmmYfUGQ26ut7Wt8Zqb140eZcmZGkzX3pLj85bn5uTkzBGKSTsZ/tIA4/ESWVFSXeyuKsnNdjiN+iFXja2pmTustLS+0Gyy03eyKqqqgIQsz8qJyQz4A9IfRTPXxE3gLuBmAY0McwrabFSIWnsM3fvtZrvbLtuDdj+QC2ZvjDbQEq8iFKsyyy63QmbApAMmncheN049t+Q0euNdANUYRbfdqBAbUllhga1wZOs1I2s1szOCQ+Z/vH3Wotq/1CyeNeuaWUtnPvP0qlAwR3212uwINc6Y1WzPctsdUyrsGuKkn2jspb0nMxab+GRVCp9Gnlnrzsq1WofTi5/gfyu8vLguP0+QZTl1avbE4W355ZPKSnt6Hn64J3z2bE+RY7zPrglVjLI7XZNTU5JrPcPD44uryZhAvViQUpRUW/ugoNWXF+sz6BlCCL/fnFlVhn2l8KWKniIXoEsBF+CGcHUMb6PVtyS7G3jF6FtwKzbfvBdVa04SNMsxW2+zVjH1DooaQE16DRGZ0Xdpw0ePxG2+m/cOzStDm++eVpQdR5hOmln9nGgce4Ni8n3jtyPuQIPvBuEsiguQsEQhuZAv/YNZgJflDd0bNwBvfuRYg+fOTQinFPshRj9G3xzx7Y2K8fcNYxvvZJdOVOqABdAJD429M+lk+DgV6CXUzpTBW4e4kQhFAzof73Lkw4Q3psdl/qpzJIqamG1wf0E87VfhrFOd6BpQWvH/ZoiJPqYg0YuUo3FkMtp6jGJHqm+VQkUtQTr/RLIejCvFHqR/FT5i5dsVhQH7p+nkzeh+FDFN+zix+GRcZBq3ZWDwRIecuB1orRBw6oGgLo2U8Ug2eaZ0f3KCrpzy3Z9/fjciHu9xoGAll1gsfE7fCbu6IE+twIROxu/26/dRlK5sin4/vkmNESYRi8Sez7dKe5meXkScroOpgWURpHeFr8ktbOBQ3Q/XdhLCcB3S+qgv5FExZxUB4AeCITGIMgBelW9KR2Mg1Y3Qsd/dv+1SldtQaHGmX2uxXJvutBQa3KpLt90ffYnkvv02/cvbsvp++t2DO87OE2wZTkux8cm5c580FlucGTZh3tkdDxLDxXjV2yS3X24hHeNSgDtEa0t9gn4wrrwiTp3oFHVOUS8aVteNufnIzWPqgox3J8PIaJoZ3c1MSR57gn+Sb7GtHrn45psXj1xtI5cxDp6uu7av/Z13UIawPeoa4G8QvyOsR3lQCcxE5OaZFoFJkKEFNp8LiwikdrQysOsc/ZQR8ReUiXCuMwKETqR3Eppzkc7VfT+GhXxIp6DNZ1i4bd9q1Gd2Lnhk3cqV6x5ZENM2d9NuVJyouta0TFkNKwRJMs+U1Wui0zEbxrvhTLQ3YvM3NvptNCUuA4c5lcy0ZWgj5mJWEnajHYkxP7MLi8tCgELTob4Czf/wDU4D5Rzp2RqJiIbeScIxZu0U7j0Qxtb0ZfKHICvt7T0QiSiKF8CdpJMZVEWr4H0QlwFdksKyitwa13Ejs8HLh1kTEwszOhamG5HPERQL+bVFNKWott5NThfxtzC+prao7wRz5cgvqhWfRdF/cQ1icOgYNM3AU9H9sGc2BuS0vBx4gxh3O7hyYLUI9iT66Sg+Oop48pBijcfWKmmmIej3EMrgYrheyzx3zqnLCW1fvqal5zu8UzS0rOk9gLbGioVvXybsDyLIU/REEekYzCEXsxJQ4FLQKdlj3itOF7NZQS7GLSLeEwPio0wyqKFjL+iAXPvmi8hBDUoUIUfHajTk4AVCPjsusJ+cD5n5Jwvs7BbMYBn2xZvcW2zu5jHfAdTz2IjyLHiIGR9NYqRA0GgSdMSkSN+DbmwJkdXeop4css8IK0PsLB0GJPbC2tZQVq5YtJ3+BkvJg4UVmTn0Zem+meN0PV/w9zvdqGDXGRqqNPzVnrGh1iRNsq5nmOrC6LPKKXm0JYkKim5O4U0RliBs55yJqxmpdsBrgYGCOKA/F+DLalIagPnX4KXzfY2hsPlY2up9q/2l9JhkZmC290aF5ehQlMmqd3MuCuAQ1c7NjK50NVXfWeCcsnr1lMCFOdHvxeMMQEevZMmPio0azmENzIM3md4cB9SURhK0AApVFaOtgAzR2QLB/l9cdxBHO6ILnd76f8GES/2BINyLOob4L/4EabrdvHi93VjgyHMWFhdfOLOkqNBpsxWYMnUkJZl6SZJGKK701jUMHTXy9ttHjhraUOetpAeZH1O0GO69okC511Ex4+IKB96bl5WthXvJe/QnXo7d3Dj+9tvHN7KbxW2+9SPNvjxHgTErXS8b9JqM9CyTrcDmKOR5azHxpKtCld7Ckhxran5+qjWnpNBbGT3InKwe9V0xMjN2Z3qSXp+UjnfmOYrseCft5tNit+ak5+en57Bb2VpT8H0K6hkAMKSp5AzAhwQYX1RbqGQbcIcp06+966rrQyYyjzShNV2kxyE8Rf/xMD2q6gKAUMKnuRqWjyWppMJIqgBG3Rc9omquuAPX4FKikxdKh9ERESgmmOlJRFLZ850mbz5TmAFpWEbqYWxQCxo0qcyxlREISnJAXjhuOZnedZo++ho9QqMVhdzPkbUvOVx55ZVXPjxp+rjWqhvI9V8kfXzHfcs3LStZu0zKaJugzb+FfkL/eaT9IfEefsclcmr22x2qEsF7/+zw1EfeSS513/7x5dkNHSOTmd6Q3BDTh+ShlBqBjGzIMFcxSMPgjl8XywGOPfDkBvLtF3ySwGumt7dPj56w8iGWeVVWb5jRd7kkfEh/lkj7kxvcpHzDk+3vz1BsFxT8+T3wLTkIi5w2XxLhPMSuq0oh2US0+XjOAQcqsylD7MdeJrGb+FZ9AO9yP537yVFyAwl9f030BPHtp1/T9cd2kfRlSy+N/q1148auje2RY+QOcgGxv3spPXr1t/RNuuGDP5CrifkherRt8WL6z5uvmDF9w4bpM66I6c8V3OpItIzVeYHWZ65eLmZZDVR7vy+FTdzp9HqddPGRvO+rRl41bN2ORz78MMo7fQAGvM6eNoePX/7jXbW1f9Q8fMczP0Zv9TnETqeX2d+hzvt2eJYB31vn1dvYM3SxZ+i8wgTi/B8nPVnbcvvF7Q+/+dNPEf5TkntwxAju5+TfP3uU/gX7D3CLIiPSME8IRV4KK57r12PTbvF4X3uEpghq5sSEDF1fJqLKdgVgn+EkooGxfkN6DjBiLvDS1dxorhVnpVXwVoV4pg2QRMlKqkLEjfovzHvjB4I+wC4w65mHEYEMIhK34MLZKjmrTLKAFthufQBAR0Cwy6KjYmxRVWuFOTX90uFNbbQlteCCyy4oSE2bc9kcYTEcVA9Rji4es9EZOnjdB68O2aTb2DxuY/SpZUPb/MOHLtEuq9jbVeRKFiq7Hqpcpl0ydLj/kuErUrUuKaPwolnjykcvXVcx+qKLHghuXbhwa7B+woT6/lxvM3ly0zPzPn2etvibmoSKW7rptXlDysiK3c9Lybrnd9NbyobkkfUf35yhldicGM8dlNdKy5htuZmgR5kGxTqE+Sk6HWarxix9s50+tGNqYC71Rv9pmWJdZ7GoxvyVdpHdP2VVub25Pn0wuUYQW3fQx3a0XL0wuoIWWyzr0RX4xE3CxouTcswlpmr98NRxAsCdO0i1dKv0OFfM1TCNfZoAYDmkCiIRbrYSHuGxqgxHJSTrGbx2+xSYbzYJMwx8piM32eIyN4+9qHlSlvui+bPybOmlFz916Woa/emzLq/FmO4ZNWPRyssvedI656KWOUJq9ryZU2fLvLRHthZVBP3VZl1m1fhRw9NM6ekTho8+TqN9p0aNbcyc9fiqYbtu2nXdleGW4tTooqaUlNHTF9jyh+Zbpswenx7TEZKdjLZCSUS/hbDehoYiNtKpMFXAyKExJRo8AmHXO/EtlBfRFKQiFfk9KWF1pALctXHlwFkOZ3Zwg7gsotAMMMXF/hwJOBpIGuFlCfh130C58zy5c5mtQworRFOUlLzuJCM7O62zfuts6GoIUZNSzLcOTknJZyTzAVLEWK6PH6CnhDYmJayp2RNL6THnUyNGNL5C73Y2NISenhcrLj4nVeSZiu0m+gs6mO7Zy0zI0YWyCmkjKzGi5MaHclckTEoIEEAEgAWUSXvDZ18Obzm5dcnFFy/ZenJL76TIQr69SzjV1c4vpN1hIPR7D8Cih1PFxXBZJLJ3axc9FGnv2ro3QvZd2BGJdHAiCXCTpLtkHbO/dEIbKpl/eB6w7Q0w88uJ7JZJgYKHsB/dBXFCUZTd+qCXmIOC204OBwJvbTh5csNbgUCk/eTXG8n8h7/5dt9D33zzcPtTT515uosIVx2JbuvpfWfjR73besR3T37dDpe+1f71yfa3goFINOmbh+Hih/Z9G35qIyMhV54oj75wnDd+4Y3+9jgHcytRX5wExzqAonFJpwsgmAd9QfVo/oaajCBLnG6gj81umRmNFUGJqJwTgm7RrNMSW0QRvQFDYd1Fu9HpBjLk9K5dPbuIJxJtkhqZbCyTpqg2oZvmrl1kNjsnq+Na+55diowa0m7i2bWrahcyKHiGCTB37aJtu+CPeHp2KXKzmN9T3P7UeI43Bg5+vpWIRhvDfcSfQJEaxeP9hH2LYtcabWKcD8kMDINkWADWVyJrgaPPxh4Kep/4JHN+HdKZdfMzP2G8NOCAocyXD9cu4yO9OugjYMR04vrBCxW6QhHEtEZwHeN65hLrkJQ6lHtjqnyUZqJSAsUvEdXTb+FNChiIxAGDgoOZ3qORebMzAxEzNARd2M++zB+CYQiLhr5M0RBBbm7AxgvtMGu5CUz2qAAJlD3mOwLE4Q5wzjTeZJbKVAgj4WdVybwYKBPdIYFYVWmClpSpAIQu3xn3dtu5M+7t1jecbnl0LLmRcLayjGKfvanS76owtJZVPRMaPfe6CcUpRKJtfE5l/bDayuQknWuYsDmv3Jouq0StWi0bQ7XVpUluoZLVtXNQ/T3uwz+Q6uTgjt13ekWTq9gq6kZMbq02pOrKfWNGVNFjj0/fMrWhyFZoLvaOriNvV8yfPnPkZO+wnMxM7wV11Y0F1w/257HFqZYBP/SY2bKStxeUEZhOGp4v5P/KrE36JUAlG46sX39EeIe5mamhQHFeT3BHL+Knrj/y05H1vZNQIsaeu5J7RxZlEeBEFcNTGUi/OlDUGWSIKiSUAd6XzUQwh4hDxRg7vz2HEGfQJU676f2ZplvP0BP08E03vFG1t+DeVZf8dPy3l2WMvudzSIccojr3M2PPEhsZSo9bVGTuXFJOQ3yq1DX2DP0z/R39/L1ZprGj/rJ90brX64boRu2Buw5fBuklc+m7/MiLoHpz335LsSpFIF/QPPpKNy8DjNXA3HoF6CX016jjxmJ/IeGSAcjVa0OxLRzKoi2kqgW22ExgIVYFgvoAI3LZSS2PVwCKIcpFaGfdSQ9bS1S7X3Coh9h41UhZX0ufyy2VyRswMSS9ISf1I2OVNnp/5XjJWRhU7xcLc+hv3Tl0q9mTlDSKjsoqVN2bqlN9RMfymuwsh/ZrQ4FRK4jHy519WfyJpx0FR8wjCqxbVWkF2aaqrN7N4zxuodnuukXrsmjTduSYo/MaZgrL2GmjxZLMJfrEq4B7wVWkIXGHd1UzgrBok+pVJkdB0IUgKiYxQTl43Bc2A6jAadxMtFmFNcXBmuJ4owEdYb1VDs55XsdX1X9yexVDgo+5vcoZxMXpfEEYDnZ/hnzkXnqa7qBL6XZ6eg/zfX3wHXIZSen9hD62OjPdlHnTTKdxPbnxr4+T4BU1yzTqzCS7KjjSbqcfZhbBEVzROdt9ududaUrPnLlJSEtJNsmaJf94+9+9r35Jvx9NJpF/EP7aG9Yvz31EsJBdWPe97JnvPMicXfeQFKdwi1qo9pNk8uIfr2jTTGvJcGeXp9dIc3YN65k5UxhB1CoVH6olKZIgkLoQUdPHyvKtF03c2PTKqf+hF1/O3xZtXkEOEun1B/sWkfuiI0ttU8jfFRvMuJ/0tPP5GKA+5r8qQyM0/yCvTmZ7gzlZzXwRKKM/0Dn0V4/QeZMdk052jLI/IH+K6bHi2tpiUlyMgUd+/QiwiJJTSgG/KHMmzORSZi4b6NaJ3AzFC1UWbIIXZQiJXgt2vXiu8asfXgtpG4AbwClgyBFYdsBNuEJ8A9Ab7hAJyi63FyaWS9V8e9mM7AvpF98/MpbkoEeqgttow9th8hrmYhhPcNPXLqevXaUZ5m+8Ll8Uk0no+ZYphxqISpIE3rZtqHeo5n+asz7MHqsSRIM7j6RFmyLo5arUAcy785VE5ElTln/yyfJh26qzHdnZo01Dq6qGprldtuRkZ3b1tqGvjNzQPkLgER/dxHXKDXJj3J5FQ0ySTEQ9FwyY0JeJdxMxQiYUEWefK9qyU3ikwr6ZfhKddD3/KNXyXR3RibKBPu1Z5+pz7OS7hMcrnSq6KTr+ev6Fvu38s3Aan/E0t1LOEyOAZS2o++SY/Aw5Ry1RNAyJh1w+p3cz01w5g1+yb3Xu6LBnutGYy783kKfX8mXkjQs7muk11EOvae64UIysnuKrMCSJYoUPyYT+fG8OaSLqss/pDyT98zJ6BukYtDU4Lh7vl/UnWhIdR2t/ZQOsPWD9o/DbCs2rV6jd+DSBnIQyTakx0vMdShtRqMswUjNab3S1q7rau3q2ospiwOdJB33BtAyDa9HHkaAJeFMWCAcrxBQq/DHmU+eJJNSJFvzoPNd7APYJOhFYvxbOi7hO5TUkkTQeyAaZ9wOHHNQDNvADDaGzWYU8IpxKKb3lrpNt49tvu63d7dLkzZm5acXKCZVtXz14ja2AnGaw2jDiN7fflktTctu3XlVcLKvVOSP8JSfoZfTvJ2+co9ertKFxHbf/6V9k2NPoQdN3WpUxYeGLbSptaWlDbrRJqSqmez0t7T1/36PdVL+m5Zy+T3in873Rf3yH/621rP6z5Kz4sfgxtknD9zuEiR/TPWTedrqH3ruDzGU7Mk8cC8d7tseP5+6g95K5Ci+oyOoFrgyojOnchdxsbl4sNkBMSNkArKA/4I7rXNkvL1Gi6a1ihL6bnbWQgWJ2fwj1toqXhF2MKeyZ0l6NNjW9L+jT0pJSVaIoETk5pcDuteRka3VJSTzheV4F+Cs5NUWrN5gzhZ9oSvTkDfV+f67FkG0pchcMC/qqhlRUBXLTHXyqOi/f568RtsRNWNCHU9VFa5NT0zOyk1ONmbxESktLAH+nZBgyM3MynJrkNKuQoQdyUK1xodJhSmu+zecLbhTVUpIsy5IkapJkIUnFbwz6/DbbB8wqIhJmPlYD/BH2WyDWbwu5pUzW9H/pu7gRw/+l/8igPuyz/Nd9WKZ0D33yf+lH/nA8FgCaLwOvC/zIx/9dVxKJddJv/nNnLmMXoe0PdujA+i/ipsLsc7viEnIvc6lBjXf/jxkLxH6EGQHFBejxMxgWSek5s6wzB3XuINTCfyoAXWEyWW1VvvpFTSNMplSBJMmpqcYMS1axu7ysqDgrK9OUkiZrhNuqLHKddWVw2sq2BQsuvXC5p62kIads6LTyZyY+PHzhvKaHPpw8R1ynD/qrK6ocbqO5tm7qtFn6JJfNUQADnW3S642WXJfD6c61Re+fdvVZlYbXAUWlTUlJUevV2Un65LNbJq/yW7IfvpZ2L19OPNc+7KtncPAg8Ks5AGttCAe5fFWG0YBAI43Ae8Y8FH0ud5nK78vQwwRA8gQ3gMhAtggTSRURbi+urTMas+wKQWLPUueM9Ht2tfGt+SVZwfJImS+rJF9efjuld/o6VoUtVtvSIiVCVtFSW7J71dLrfHcSvic8Y4a/rizgL69L4Bn3cmrmscWchomsRmYlrDDfbapmZhpwCFhIJWYEsx1fx2wgFfgkrmM2Rni9eBzZXHY1NwhWQv1Ouw5BmUwG1RhBcT8z34/5y5F+PTarH+5IqFQJARSOuWIPbj/0G8JJNxlUpdDBrB+agEaJ1T+4/XBHQqWIj8lpdvkv2g94Fj2qg2RQlYM765fthzsSKk3oqgQ5PvOdMJ/Xczema9KjGOA8nrt8ecyx8rxeu/QNdlLxBon5PEJ/HRnwF+i3CEX7tCNnKuIb+tIz/+3+PVyfGOsHPYPGAo9zqRKdgkCj0zDQTxmG/AmRmBwhheQ7uIz0JDwe9F5igYwOQjKTyohK0CPIERmpAK+vDNhFdxryPrYAEAe/FmWHv41uovf9vGsX9zOZQzaTORzkf45WkQtJ7V+2bPkL/T3dR3+POX73lNFr7g7O3/wYvXP9Y4/98/HHSLl32LxyCy9cZXJW+v2VzuTPurubVo4CaCkgdJ2alFvTPHG48VejC3l3/Uzv+8XzqxKfSmpZS5yluS9vDM8w3bt4/WPhx//52GPrr3iMJtfqL5g/K8/avHHqMEeWWiAtH36octWOmzx5dFCXvnDvgnEFBhKzW4/NQTP0ezmLtmdTIui5mOKD0awsip7Y76XnC+h/kS9hSmEGU1ASCuXiyGgTqnLv1bSGwqFWzb1w0JeSILzYnhAu7EdFO78idu0KOGDeExYjVmG0oEtFTBbcnZDGTzMrGZTVvicvkqcDd50NGLYB3s9VEAtoGSQBc+KBT09QFYNRqVhoQxSXysSH0fHS0FwF3jygamxt90Tf9njKNpTwAc/3no0l/UclDeQBT+vGEjr7aQy3CKdh3/toQWWlTqf1jBs/JD80WqKteHu7x0Pw/lUeOCrZ6PHwxXD/xug2OhtvIg88DRV5eD8GZIx2l64Kt2Zn583/Y+DClRfAutgDdHSV9CU3mbuIm8+t4jZzO7i7ULdsQG2HIU2Sy0S/IlsPMudBFPMAZ6YYDcTDIMZSZaSUC3BgIUfi8e5M8fBgRDJaCb5/EOgHGFHRxyQwsqTYM4hxTSMcm72Yh2sgL33a2nW2tUCfXe6qt9dpksf7xpUVFLSeuaC1deHyreqMjoX+W5w65NswoBpsmNU57qxc2JGh3lqxJLfvVlcIx5ZsUgb4oJ7P1Yf1ubxeqw1riUavTafd6Vq9xUg8Rgt9APcWI+2G/fowZnEnvNN6tqvVN+zyKc2llSa7pK5wTL7wllZfa2vr2dbhDc9/Ve6/5uuW3Bppzd41VXhTlbKHQ6k+q+Xra/zlXz2fOzSDXF5XWMSAn6Lpp7psfU6O3mhK7jEDRtYBg/K1wqXEorxxMTsQ5HlqueFMVouiAWPAq4tFobQo8r96ItnjoStjaYHbGJMGKtrGuFhIyI88f/lFKzD0UwvOf29lrEWVXgzS1tUe4ctjMXUAX6x6Yfp02o1mOISm4nL6NIM5yUaUfcaninwh3N6F2EgxWmB+SHF5dxJnBChQybUi5CW+fmdR50CWWbfEjFvQtiXxCD1MY++BFI1kj70uu9ds5atCKJ3iWCIE4SQCbL/Oit45Qke4sA67HNqnZGgb6mBwI50DucP3AShQ2zTqAjVk7jt8z978OzvaO+7Mf3BPVNx0/e3OpgWjiy0v0d/SDvrbl5zDNs6w3yntnbm88HKPs6GuMJ6JHiGz0XaIPsAsiAby9Sue9/+EQIWUEEI/wtxP/udXrHzKl9Tocg1N8j5FJ7pDSfrKYf5S2r3i+WXLnl9BPDVjxmclhdAekfkcHGc+0zboyaHcCG4MNx5WLxcDLioWZMaZeKDY7ivdiOvOec4xCRplJ2xiLBWWOby+jAw5s67MNf2Z6XzroMPoKzDWbMCLUCPWn0eXN3STiO5XUnGne+mcaVnZSQVzL1junjdu3Lxzjnt/RjuqRJuqWJ6/GiMlMWtvJUV+91XAI2mykTNwuVwhylfS+IIyoJdg05sQ3ugBASN74pYEAC1upnuWTaqx5PWKQ0ePHD1UQV4d8vmun96c51298Dcv08CsUVPe3L1g66xbesbPG99zy4wLGu4Qi/venrOtsXHbHKFq1lIVcWw/PGmhlX5ZRjMeSb/44JToZ+HpXdMXGFdNjvvdR6R7YSyYdAC4AYx7bCcSkMLIapklDCotyXod2gGHCAuVSmSdnkm2Au6ApLlgfH5j7VvT6Zkl9N/TPqxvzJ9wQdM4XmO4d5m15q2Fz+oNo7tOd4026J9d+EGDY8UDBg0/Rry4bP+rF05ZpKap5F8pi2dc+Or+0gIhVHv1T6HpbnoNH8g91dHxl23b/tLRcSo3+jtylW1u/dnNtQ18QpyVVIyrwLGoIUA6hQQgVGW9U3DHou7cuv+rd571B86+bBj13iHhDL2RrC75MrPvlrI3bWQ13V/Ir+W3y+pFt9zi9aF20dD0eEfP48RBMp2byVM+WnNxHj1Fvyohd9C53DnxdrS/jLfzn2Lt/KcgOxizS+iQGlXNjDJE+9JOFjyvOYK4uov7lNmzlnE13EjAbYoXfBqP+hC/zwHgxIvITHKhZBWVrTbZbor5EsCqcZsCzHwbx1BMiObF0Jm7TAKUhaJvk3BP68i6FY8t3nT0SqJ6Ps2XUm9W50q3v3LJb+aT1xd0TjGUXOW3TXy7daFW29mK+5tUk1jYr74HHt8tqlLNGS6jL6W6+po3HhOaQh3zQ6tmBRs2TLzq96R+aEkJEV7dNuPeueEZllDLdfOLq5y5094U9qy67AGBv+uyVfuGKvHDojVXLjNlpefk6i1pDnUGv31OeDvr90lktHyVtJXTKRZ/qgwzRoZVYsS6Aw59QRnvthNThtmuRIk1Syqh7wlS+mrmETT7P1Xw4z1LXww9No/oLtv8/cENGQDUav5W219Mf5C27qH/2I8mkLe9PqfltbZNPS/Puu+zTaRzGD09LFYEa7eKeKU90v3nk40KMdnoCqItINa+P0e7L+fPuC1Lvo9+eAlfTFfwZcuiH0ob6Q/2eXl9n1/Ol/G9hVaBvhn94BLeH/XxFcujR9i7vgnczHLmm6vEtwPgxqyVfBrCLFZgbruAGzeZyTVi6aFDPX84JLTwDxhTDMZRWdE3om9mjTIaUoxS47N9B599Vhj7bN9evkg3xGaVDXQT2QykjG2ILvE5WhZ3+FyjUYQC8HoMEmAcZuD7gUdTwIGGBOTlraGe6xDoi+tDrddoxdQkupRsyTZoXBo67thHdBxkDNlkC12alCpqC4N8G39pkHcJHXhPXzvshfe09swkuo0utRqTeTVZ/dpr9EY1nww01S5yeVKmXVtYTtXkTDlb7ytkjTwb2mpT2iojroS2BqFPYA2W8YAv84jIQWI2yZo1Lb0TUeirenrK6p3RvdFFcoomWWNLSebXkK9yUxxZNuEyYf4Fk23Ubnvywr49F06ykc9sTwhNfReRd0WtRZuejD7fVzi0yalm9N3v5w9NzHbew+QH52pq9ZLsDBEiutx6K4lbA4tOk1koI6IQCIoANM8b32vsbXNL6Y3+wyo9vbF07m0bDlMV0271PUdWs2NhPlxBVvsPn4/7VE2I3/Vm7KrofqYNey1W7b9itZzL6+Yg/vlllCoHHMJ7wQHBKFEkmXgNACHOG7IKX8Bw//30O2abfj9pS9Pw5FX64dy5RHX+EFby/cSQeBNpSxL5btKAak6SzhczmXCcNsBVZvpllEcWbcRG0Gx/ANd+Hd3PXIEGx7nonRQLtZmi2CsoPNx/rndQIHPV6r5MZtN8bsQSBUSzevv71DKgxVbqRS2YEn8BdWKDnxKLrEFTkObIBNIDrbRrxfreScwpHp/HwrcooRYiSuB9xcEKYyD029wAboh7TZ0vXjKG0zezuD8KYmEkMk1hptmqPYj3wiiFxNCOgIX2nvvNhRjhQvpl2eqYZQ/aREmNkd4DeC3ir7522o3a9Vhsuvj1YlyCrgIAgh7QKKfZj+IfZooei3/Yxhxf+Fa0QGd+Mhi7sD+mRRnjtlEIic5wQOvpmOsNBtsKBtB/qf847v0sHo+a2hcvqauvr1uyaGOJJW9SnhV3FivuFhRardY8WV0XWrTozKLFdfXRxwsxsH6Rqgt4FEteIQy9FVPRYM0thuwgGFDAXcwt49ZyHeddPYGMOFwwssaikj0d0TUSSwp6CjBjbH0Ard7SiCkYsDKrOCPTeckZQXYi4CDeAAAzSUb3Mo4FgUWltLdKTMibhJGkKW7BRQ/Rj9laq4Kf8a21a9+i39L36bdvrb2iKLCYPHF9z4Flyw70XP/+/gk3+w3rLtr8Wbblso2lC92L+eTU6scyUnUZgH5VUjJA+CFXly1whwUhObX4+tlEQxdJPk2SmZcX1PKusrVTg026Au2Kuha+3LQOD+za5XUtQbbkB5pRxJrWc+nat4hxoEV3/vml+uolYja0hP4DWnSpqrm+ZmpX+5WPF+eRP6dpVVodb80lRKUzlwVKBPKvWVD+XkZquipZu2ID/Zg3mxenWGnl5ps/oLcc2doy7uHG6d8sVtLNSvzWc32PlVgrsUDFtnNSFPMjkJAaKQtjCDP5BAYWQXdkxT9/YA+cX5jhzb3n9QHvjw0TT/XnPC/u643RD9F2AdehrO49EO47IathAbVhIDGMqB5B10ppb3+ok5T+6MFKW7rDsb9YLCMPw+VxeSI8QR+LP42e5GEl8gi+Gt6KBhN4oxro2Vnye/IbXBZXBDyYnxvC1TNODP1/QwRnJfuCDEH5jyL8McskyNQHZfhVGUmlmOkGRBm/2zB4U+3bVnXLsrXNZq1W2max9C2xTrH0/WSxCHdYpsyoId/XZGoEKVlVsWBMafkyUlxTM7WmJvrhKH7jyL6fRvLto/p+Yvl/j4rnR8mPbJO0WnPz2mW3VG2zQG2LobYkyxSrcLuF1lBdzbhl5aVjFlSokiVBU4j1Ta0ZOjJ6zSjy/ahox0jyfX+e7a8Zpdh8QfcATZ/CuJ9+bSsy7QZONnoHBHhoQc3FjQfxAiWv6lq9b/WalqmXwzB99XEEzSKZ80xR5Bj9Epnxbx/a9w2mGBloyuq1kxH0rp38GX3G8aEiovvQQSZ8hndghEXmdgPtmkqsUrv0Loyom2nIFWcsn6OBqJiNSoU+Q5aQOa6QeTezNHAIjyqxDHky9qGH+FtPtF1Se5FHN3FGS07OnKdLdWpXiU5HG6V3W9svuKCdtltcoip5qGWk0UDfj0Z18sK776mufoU+mp72UPS7adPGcTF7VkVWg7JxnCP1LCYFdy4vHo9AplCSxrg6JZGmhPUQ/3KCI+69YcoPppF8l6prgP/+MeZ2j0Em542gP42Yx2L7tyDqCvds5VuZHImMUSLrv3U7+eb29C/pu1+itJwh1G7Yk2mKN74b4/7bRsybN8KmfA1gDf8oYp8fB7wHa40TJzZjsCcVrOU0+XfyQS6TaYjqOE6P0u8Q4ULQxZyWlKnF/+JzM3rT25e0WcIk9eS3G9KtNPPk1yptVemIQFNxqfg9/f1zpDbrAqcro++zVmH55ZV/mU2vW1+ybnrJ+lr+h9ipbPp78aqMM5evglq0/+y7T6OjN738O0FtyXRmWVPUy+jvD8KVGS7nBb9f0Xfb5MrG9SXT13nWkXWz/06fILXZcKY1i74O45cSiwmI9lD53GhuAtfKzeHauU5uF3cPt497CkZS8CsMhVGApocIkK8kgCyjSpYwXpdDMJnxg0cSIiMt0ZuBo2RGUWboG1k5dKMoQAwE9WWE6FG1iJyDoDeYUWeI1nS1CBGZBNWu88oicpz5eOQ0w4OxHgHtsezMnkr2YT1OxS05aEBMGQQ8mkMMJjNcIB9ZMGGXJXfUxAU91vkTdlWPmrBQeLXAfuPC3fSjakzvJp7ItY2qzFJNklaj1VSPVRemqdOG2FvTUtKAqL0TDuW0arugH9VFd2b5VaNLyW+OVhpUclqe7ZYHeVJXV1lExh3NWDqcnH15CiztJbnk8SUYtI+Prro1maRm6KsnXFOkkdSaWqdWrZ+Y/9jMS8iDj6fk2g/MbVkpyz6BVi2/hJC62nLxID1JckdPmLArl9CTfDYx547afVsuyeu7bflb+5zBHXcvf3ufI7iDX12xgddkZeY2hIpzxiwgdyQLuSptqkPKkdTqB18ndyvHRA7knhkToCmj36Q3Ejk4JCnrwhkzN5AKeljFGzOs9MFxjZMBTRSiGyOpmHTHqjsRpqhS/u4XMglP7vqObBGINk0klq+aR9Li0id/Clnyc1vXfTpvXzkJGbL1OrqL1NAPiUBi3+b5LcmX9dLjLGpWADjdDLcLpT84QWQpw2zihFM/kCWL5uqndn49//DYsYfnf905VT9/AVlC8heQMb/7DWle+ZwsTGxsnCjIz62kB37zO/obwFT3w7w0y/OA+xzO7K2UaHB2/Nn0MNMAfgDPKdjdEtM6o7Y/rvfHZSbYY77oyBJLimGsEFA+XIHHyk0hIpuHNeWtn5CeKaVI6dHWzwVdqpEeNabqhPAVvLPFPjnLlpczkRc6DCqNVp83/tFxzWu/4mvKpudWXVWzueaKiopA7fpNHdb8YY7iFGt1dkNWjSEzO6lM3PS3j+dcbZZ4PvqpTpeertPxLl5ls01YuXLlbAfP56aoJClJbfIPb4pEfWnViyMzl765sboi3fbw7j92t63lv5KSckdPne1xTE5Vm7NqZk65wO5N9I8dTF8wa/AsYtNhRAR9AoVhUyItnn0ZqGb2jxQ0bugKi8HHlNBCjGZgxgkpStw4DBEDlLqqP4awCp6Xo3wFhQVnI4Iurs9g5LUXY5OJOtmIYXTwg2p4fxhoZNqNtHNeIfFAqgQdaQPqqRGfgIFZlLOxq+rIaRSDcuqE5w6O9aE838xIGGY5ThLMWkQWHwqfD4wDC2yCzBC+cNxGS2HVlBaElTiSA6YQcQsTRiPG7K6Ufo5HPk+wPnKK6H+oY7YlSMozixGdM17ACADsogRrJQd6k6NhuaSJ7s9ITs8LTR5SXT1k8pjqag35V3HRzCFDLps86bL09L5qZQziNCZur7cBFZ5J/WlDqlsmVw+pqASC5RK6Vz+kGm65bBL/TFZ6RvSRGB0qn9P+HBYzw3XOG5zL35aScxurfNEnFiy0nSFOMp4+C/Ok7dz2RRIl3NGmWCQNxRzr/xd+L33QnED/ZgOLnJsPPHUh5+EqWOy3OoyGqYmry0VGTtsZaf1/ySuTCHhpplZn7vksmvB/lU2c4dAJ4YHALudNYjHsEtZZRjzGSXytsUDAsjdo9rrjgiNnjG1IXG4sqo9SM40qLjydOMMHpryy6NiHCuCPeJQQCgrDgO1I+tV1x/iX86w9C29jIaucCUvx/EsQPaSYfwV6SjG/kfMvxNgRyw7YKCX2T3+/JL584ismxD5XAU+WHr/DHXRriE0DUF9WbgVwE2FPw7hC6EjUP3jocc9CRrIQyziLhUFtKE0cHfRQU/0CGvihU1xMJoFHg+BiSpKOrsp1pHuGuAsL3UOG5jUSz4whbndhExQMGizKi7qUFH6ULJfSp2R3cSBYWJg9JEia605mD3G3FbrdxeeMG/oMpbJvGZiAc3MpMa6UlorGoFk2OxP2QhXK/8t5pPDi3mN+X2JbaduBdQcO0O6B/a7GizV8VnLym6WyONvS6PE0ehKbXBUJV4XDiXvaNneYblJ+/srXmmsXf1+al19amp8HMOED7gMZCGIlHj5RviHncLt4/H6catDXSTz3tLXds4deSC/cw3JkH9lHf2Ah8lhkb8lzzknM9ZzFUY1fxPxJFb4fZ0QW9gr7XogXNtFmlt12LHAHzcjzIwRCrjqCVkEYlHhV26IIvh9NgRzpFNfSj2C5sQisnxz4fXQ4HEKqxCaLxwuKfclU54aZR2x6HfOsljEkLNwWPbKdn0sXRyIY8TOCsLTvRJj4oh9u5+dhBIpItEnVDLsE+ynsJb1OCAKaF21Os85mFnR6qE922kS3zia5v8BIdBvJWkD3azH3BYas20ivh4ZfDzmxlKzt2Tr4FABbPLWR3TrI38gMOO8XUuz/jtM8v6/Re/8N+3k+ZyLVqf+WJU2N4b0aaH1hDBs0AV/TzE3ipgJvMxO4m/7vlzDZIBO/KlJCm1ERE9YTJYwTfshkoACO+8PyeY12/ISeeE5etPu9bIt95MTDbFY6WdLXrk0rTtNq04ymVC1/KC29MD0tTVusTYt98QT+cWMx1eM5VC/jkdSI2DhcV+bxlNWFY2mPUQsVGHugOm2qqccA1aUbeoz4iB6tItVm0fLCCfvI4O8wJFBV54vYnRjFODFaN38y+rC4HiMas2RwuP++L/rjG/95IL6x2O/HNfAlLU6vDEOMiiRKsDadEENsYRR82QsqaUVlgR0Dd6FZXkRxRZRu6fGL66ZU2AsKCugB9PhGsViM3EB99Q3yCHkLdyHHBU0hKYjsaqDKik7GbuYWhyLUNAkjWSFTYVXJTFzF2PM0FssqIZ9EIrkdXR998lFXR44j66LR+SPqhg4JBaxlpcaUyrIWz5xUR+ucoUS4cUSWx5GTm54lprcEF44lpLCmoSTZNOHeO4aMnLV/u1ZOTnJqb3h8VMM9V2ilpCRn+uq7dt5wT46udvEV2zuuLKu7++6xRnuF352mzdxQmu02ZUgaonEOmVQ8YqNaMJW4h7vGpf55dEnSlGBeQ2VdYIyzboy2oLT9mdnJDm26nDz76SVr9kxR8pPuoCcpqr6BZvIAcbEX+Pv/NSYl+oyS+ASG7b/KY5RxSHWYV76OpExetsEM/l/zyIAgeYCTE787EItIeZ6krx2XAxwo9CTHLWByCxv3/+q6FuA2ijN8e3fS6WHLOr1j6SRZkvWwZVmWLQk/JL9ix07sEOJHnIdNnDqxE5OWJiQ4DpCAg0kIBdMEY8gAtkmYNn0QGmAMhpI+hgooDJQQk2mnDR3SyQCFBsJAY2vp7p5k7EBHo7ud092edNr99398//dfj0YS8e6nnPzp1Tc9d3ENOl2qpAIyB+mwjpS8dnxvsyf2m1hParOuI9WEZ69+glc2tBaMgCslQbfTnGE3C2Xr11ekmxvWpZtFxcyl/Pzld+xrXLxt3CeiXffNlYh8j5zLbC/1Wv1uoz6P9i9ul3ltuO2SUWL9RjG/CsdxHFQAWcRrKSqcEzZE4wztCbBcmGT7AjJe+Th2qEgMOI5A/DIGfDwAcATUQIDZeGhLjeRg9JqjzKXLHw++NrxMVpB3dPrvlwawFJm7IKkuntkcsMeead3cAKfVvkxkK/NetAWx9je6dAaFS88fG2rIU3o1vEJZqtl+9Xa9iWWdBsO7pzbXKXy8Rq5sSmRXrikYf+sTAAZ3nhm6gbNkE5L5udc3N4QMuWBXtcNXPKNFPaP+M6W82gcPlLpMEpdXL2HN7UV1vFyh9PHrZhrDOtaJBDPLmnbX9qOeFT7NYNrGSOOMMVsEzyHpgpZ0su7q5UCPlD22iVgZOCxF6pDCs6P0vQn4Llq9sao/mtydQFZQfiJVEwL8hJNKY8RiATx+OfliHrC/FunbMf86+x7oQ+pBHxwDF6CdPQXt4EIK8yzaO99eW4zZnnAeMA5M4llAfw3H0BVj6Gp0FeoF9bDoWvTPa8VrE8wlQhCGtvh88Y7Xnpu6DyebM5GbXEI/qS99ixQOG6cYYcwzUuCRQpjA4xkbc5huGE/eVAx4nj83gBFX4rnAKtWpJCLOH40XabgkwJBhpdXhFOP0cVY8TCLtRsP8DdgvZUJtVWPE5Yo0VtUKMpnSqZSptQpNeTCeZy1tXOOXadVq92hhuDVbD+RyRybHa6VCpMDhKIgIUi36VW7tg6XW9BdlVjIqf3T9ttGnRretj/pVDGvTumUSmcffvOb2uo3Hb2w0MjK3W508V7+3Lp6JTE07+pxW+SLr+tZFfCoadYc6rRqqpzD0e4TwrJMaaJhSCkd7iM1Jz3+G5aeIxMaRkytpiyGFxUHv+dzSm9As9SHNYwPOR0l5T40p9ynhs8AeVMIWgpEaDIZqYGeBHGemYC4RjPWKanH0DhhEv2h03jEqwhqwuzyGnq+EJE6mi15wb29uHrNYnC7i+WxuWi5YXI7rtzCfH9IYDMGkOngjf0jjD9L/Meg91ckV9GeCKlN5SFEqJHnBrDzEeY1K+oUwdmq2lpYTr6bNE2osYewljS2a2dN+Wwtj8tvmLtj8ktWi17K5acW82xLdqrmpUQC22V+BgcJgAA1c3l8IDxZ18fBTWYCxwc+UFosAD1osSqBBdwUDBvNszIe9keWlrcQduSWj2gdvxvUfn7ZWrwIjNj+8eMbm9+MxuYU6yK3mbkWaeynS5yhAsGcgLrEiASYHVlbKIflNA7RRATQCSYQKwyPjtAediwsyRokIZJ/XZ2dozUCtzFGZMvUaU5YeiYIpvS+cu0SizSlZY/knvNe3qa0pv69308YqK5jara6utRsPd98s2POzTLNafRZPGzLyFEDjK/DpJAM6s9dlBlqlU6VnWIVapYMqMGWp7Ozu3VrQ1NLrht/ASWFNxMrTZlfYrQdTk8ZMv914X/ctNntNNT93t15tWqKyZHoVQO3hnHpRR6OoD7i3CRdaORpJ/dROisI8AwQnKgaCc8B385m+ZbeqBItynzCEH3N9z+c5hRZegk6WpAjR8FDzxAElEl84uLdXvDK88XGv19ew0zSnYOoUgGbQi5YxGXJVpkZj0GvUqgyFHK0dNKAB0nJstqBgNKkywLNlwcLobfuvCxaazRq6yOuwVZTmecvKbMjSVILaHRMTO/pX5YYDOcPQ3zvS2zsiPT67aviVre3q1hpmj8loNsrUnMyoNGSps2RyuUyVocvSIP1GxrESn89tMSuUfFby8I6iTVZb62qrtTBYvEOikkulnATJKSYzg+EmPpxovq629AfW5cg6xLfopVI5lUrpB1Q11UiYdQmQuzhkZXA5Zw4H7YwY4BSg8bNTIGW0RIOGj9tpl+BK8AZjgMGnudJ5H8y6QkfHDeC6RJtvZduyGP/k668Ola340e9cDnlFOdf9WHttzfbRWpjReSxxblvnWvgK/MrSs//w8s6Tpaa1O3ZV/XhDDcijg4QQUfqByjPzQPOYNrRy3w1da9V18bITx1x9v93troEz8K6L4yB0+Y1hZ9bv+ydvDNRVrNoVszg7D84VE9NKzOWkCAbZQZXguuyLq5+S8CWxeOLAjn+kAADxkqe8FkZ9cTgiDczzbpDSrfAsod+oddng6ZzyismK8pycyHiEbVqYPyyWfevpwRwcO2OPHEokPwrGWsrLyspbYsGQ6fx5U2p9NhAuB1zNIkJUbFakJsSJ8zjTCvNRRTBOC6Dlkv1aZc7LzaQFk4XvKAT+gmhPKKSOWOd+eE4AxQZ1ZPZT7LCh5aqV+dza6zc2ZLnj0QIznJyYdMeZAwJ41W/1JH85dxuxP17jbpI+SZmQ5hugakiGhlEMXmOyo0rg9qCJkBMyIlsQ4IcRJQVnAGbVx/hJTpobNRjRLsfhiaJp40KfO9xyPAelU2pBuPqN0CLwgvDEv2/d88Vl4Hn6xKdCa7LDYXtWt8SjKJr7a99r+5u3P7J3D/uvjY92oFPg+fbu/rjqS/Do1qV7aGnyHbSg7NotHeZRP1ehIOD9+MOffzX2cMVnAlydW5zvPq3lGMDCoy8M7O87MH6Lt71jw8a7TqMzNP2Sz1/a08Em/wJGju/aLdZj3ITsrW2YA3K+oqXT4fLkYowJwXBhGWKU8Ebsa5kGDReHhi7CqelPYP8+wLTBByeBfmICfjw5kmx7Pvmzl+8Ed3Hb7v8CPgdH4HNf3D8zNbbz4AmkU1UA/YnhnQ8n6Jcef+oMktN3UNNcG6en5FS2WFHCbRejeQCTlGCi1YgGyWP0YF04pIfEODbBNJKBVGmhj2b/vKzbo/VFp9/seaC9xbf/yDizYwRUtYRBf1f9+JH9vpZ2yd0nPsZR84/gn7x3Hhmv7+oH4RZQNVKPLkw6Wtof6HlzOurTerrrR+CZRZg2LUYIXovKAdoc86JpEPreLK4KJ3zfeT7XlXuvO9ftPvj9WL336OHkIDzljMWdTqejMuZ0/F+8SbrGDXpLFuy/rWqD8R/gikgMv7Cdrh9LIOjiJp0HN4rmfhmJxYXjbHGItaF/CBs9oBCpcH5V0bHH/rHlSdDV2QUzBnsDa/R6qSqRot5YkkhWJ5fJQ4ZlJhO4TPq7QvVIbuW2kup0fC6D8yCRqGRyGB2SjHSYxxSSOCUSqUxDoHMvGOwC8BdgqdtTB0+CzsFBaS8AAELdQ5tCm47qIITfNMOj4KZmgPqmtfjoQ4vqWS2ok0HwKQveuPRegthNHantCIldXcEQGczwj70FGG8HrmC4DswQ8/xo6j7qj1whh6sLYZkjjjikrVJIXSAqQgQdZMWYIdIc3JyPkaqyTTGtZn1yZm+gNbuw5OU/5A+Dwf8eqlmdaysPLn2mshgsbXr3vLRfbm1YYsyQSgrgPfeUvPhyNKBryR+mS66+k7+1u3ODI5RRG/3bsvpKBYVzlkUbzr6gJoUdfSMf8SOnKsEiY0USduq1JJlcQra5IAWl4yUkQuHUS47ANtjWiN2SPbAf7hIhdQnz/FHmifkmjt8g620Ab5HhzJ5KSDCy/XAjeB4u/xD+HKxfDrrg5FsnT8Lt88cb51uJdP09cX81XXuBepHwGh5P1WqSEnWfFSlkkKzUEOgZ0lXwQwaY649+f6Ech2fTcpz56TkBvonkOKtBXV8rxkEXFuNztwmwDIlxupU5QM1z4h9P4Zgw+VIYMzlJj6dKMGOaXLLH9tL/AIxzQ2cAAHjaY2BkYGBgZOzcvTpCNJ7f5isDN/sFoAjDxavXJJFp9gtgcQ4GJhAPAGEpC8MAAHjaY2BkYGC/8P8GiGRgAJOMDCiAkQUAdcoEZAB42mP8wgAGTLMYGBiBbPYLDCnsFxh1gPR3ID6BxH8F4YPZE4C0CEQOjk8gyTOg0aFoatEw4wSIOnTMrMB+gWkPKgbZweQEpG8g3IfsBsYVUHoCmhwDFjZI/zGgeRFY3HUC4kew+08gaBgG6WE8A3U7CKtguh+uHuTHL1BzvqCGFczvsHBGtwfFzAmoZqKHPcNxNLEsoJ4uVDeDzeQE0r5APAPNLjM0d01AsysPiDmRwhCGJwLxRix+g+GfaOLbkMIQyc/ofJj5cP48JDOAdjEeQgtjkHs3AHEAkG0EDY/jaH78ghnGGPGLnjZDoOLCUDftBeKFiHSGEi9IYtgww3k0+1LQ7ETKQ2AMTaPo7oX75QtUXRpCPYrZIFyHFv6weOqB6tkFEmeKYGAAANkHWesAAAAAJgAmACYALgCGAKgA1AE+AZABqAHuAi4CkgLIAxADXAOSA9QEHASYBM4FCgUyBfIGHAZkBpIGzgcSB0YHqAfaCDgIUgh4CJYIwgjsCQgJFgkkCTIJQAlOCawJwgnuCi4KZAqCCpYK1Ar2Cy4LdgvoDEwMkAzEDPwNNg1mDZYNxA3yDh4OYA6gDswPGg9+D+AQBBA0EH4QxBDyEQ4RShFkEaISQBKIEqoSzBLuExgTqhPmFFIUfBScFLgVDBVUFZgWDhZQFpAW0hc0F8oYRBi4GNwY+BkOGU4ZiBniGigaYBqGGqoa5hs0G4ocPBxsHLwc7h02HWwdjh2yHkAeeB7WHvgfdB+2IAogbiC0INYg+CEQIZAhzCImIpoiuCNiI9IkWCSKJNIk7iUQJUIlkCWsJdwl/iaaJ0InxigSKCwoQihcKHIojCiiKLwo0ikKKSgp5CpKKrQriivmLIwtCC1SLaot5i4SLiAuoi7mLxgvTC+iL+IwSDCaMMYw8jEuMWQxfDGeMeQyujLoMzIzTjPQNBw0YDTWNUA2YDaMNxg3UDeMN8w4LDh0OJY5BDlIOZQ5rDnWOiQ6fjq2Ouo7EjtIO6g8Ojx0PKo9MD2cPhI+pj7OPuw/Cj8gPzY/Sj/CP9A/5kCUQQxBukIoQnZCtEMsQ2hDskPyRCZETkSCRLBE9EVaRZhFsEWwAAB42mNgZGBgZGHYwCDIAAJMQMwIhAwMDmA+AwAVeAEMAHjajVLJTgJBEH0zoJHEcPDgwXiY6EVNWMSALFeXRIkhGsXrIMMSEQYYFhOPfoEf4ne4XLx68RuMH2B81dMQwlxMpadfvX5V1V01AKJ4RghGOALgi8vHBlbo+dik5lvjELL41TiMDSOj8QLGxrXGi+Q/NI5gx/jReBlr5rrGL1g1J7GvSJpFjd+wZD5o/I6o+ejjzxBjn3CMEoqwMISDHvpoooM2/RRXh4wFm/499xaRp1RB9YjIQ4OophiPyMEYN/y69Ca6LWo8mos8ErSRsjjqPB1wl4p18i1GSGybNRyuBFmXbIz5bXSplDx3ZDZxpCseBupt44DqPrWSraOynVNRZy15TQ+7zJSkZVDAJU5RxhlRMCo2FxdUWHOKq7kOzVYq4YKMeLNsg0pP5xtOI+LY57fAt9q4ZU7R1MhKhyqcUhxptbLYo5f7x93LqstV3qKneit3ryrUVHOw1JRtVhxppTtVTiZUpl+ZmbV/V2Gr9E5ULfmHUuosx2kLzqsXCy97Wr1H5uXqXjmM60/nabFLXTJNnkn91h+P6YatAAAAeNptlGV0XFUYRbNDocXd3R0y97v3vTc4FFLc3a3QQilFSilW3N3d3a24u7u7u7uXVbLzj/mRs2bl3X0nJ2dPR2fHf68xoztSx/+86DP2R0cnnYxDH8ZlPPrSj/GZgAmZiImZhEmZjMmZgimZiqmZhmmZjumZgRmZiZmZhVmZjdmZgzmZi7mZh3mZj/lZgAVZiIVZhEXpokUiyBQqahraLMbiLMGSLMXSLMOyLEd/lmcFuhnAiqzEyqzCqqzG6qzBmqzF2qzDuqzH+mzAhmzExmzCpmzG5mzBlmzF1mzDtgxkO7ZnEIPZgR0Zwk4MZWeGsQu7shu7M5w9GMGejGQv9mYf9mU/RrE/B3AgB3Ewh3Aoh3E4R3AkR3E0x3Asx3E8J3AiJ3Eyp3Aqp3E6Z3AmZ3E253Au53E+F3AhF3Exl3Apl3E5V3AlV3E113At13E9N3AjN3Ezo7mFW7mN27mDO7mLu7mHe7mP+3mAB3mIh3mER3mMx3mCJ3mKp3mGZ3mO53mBF3mJl3mFV3mN13mDN3mLt3mHd3mP9/mAD/mIj/mET/mMz/mCL/mKr/mGb/mO7/mBH/mJn/mFX/mN3/mDP/mLv/mHMZ1j//2dfYcPHZxKd/+x2d3q6jJbZjLDzGYxK7M2G7Pdky15LXkteS15LTktOS05LTktOUlOkpPkJDlJTpKT5CQ5SU7ICc+H58O/K+SEnPB8eD57Pvs5spwsJ3s+e3/2fPH3xXuKzxXvKT5fep/3vsr7Ku+r5FRyKjmVnEpOJaeSU3u+9vPWcmo5tZxaTi2nllPLafw8jbxGXiOvkdf08JJ7Su4puaPkjlJX73OVWZuN2XNvckfJHSV3lNxRaslzT8k9JfeU3FNyT8k9JfeU3FNyTynJc1fJXSV3ldxVclfJXaWQ576S+0ruK7mv5L5SyHNnyZ0ld5bcV9hfdPW+DzObxazM2mzMHm7YY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY+hr9Papr5Hl6W1kefob+hu5h5d9n3vfly6zZSYzzGwWszJrU46e58rzep71POt51vOs51nPs57nWo6+Z33P+p71Pet71ves71nfs75nfc/6nvU963vW96zvuZHXyGvkNfLa8try2vLa8try2vLa8try2vLaPbzi90vRj6IfRT+KfhS9KHpR9KLoRdGLohdFL4peFL0oelH0ouhF0YuiF0Uvil4UvSh6UfSi6EXRi6IXRS+KXhS9KHpR9KHoQ9GHog9FH4o+FD0oelD0oOToN3TgiAFDRg4b9C8VmLmgAAAAAVWwJZkAAA==) format('woff'), - url(../fonts/dashicons.ttf) format("truetype"), - url(../fonts/dashicons.svg#dashicons) format("svg"); - font-weight: normal; - font-style: normal; -} - -.dashicons, -.dashicons-before:before { - display: inline-block; - width: 20px; - height: 20px; - font-size: 20px; - line-height: 1; - font-family: "dashicons"; - text-decoration: inherit; - font-weight: normal; - font-style: normal; - vertical-align: top; - text-align: center; - -webkit-transition: color .1s ease-in 0; - transition: color .1s ease-in 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -/* Admin Menu Icons */ - -.dashicons-menu:before { - content: "\f333"; -} - -.dashicons-admin-site:before { - content: "\f319"; -} - -.dashicons-dashboard:before { - content: "\f226"; -} - -.dashicons-admin-media:before { - content: "\f104"; -} - -.dashicons-admin-page:before { - content: "\f105"; -} - -.dashicons-admin-comments:before { - content: "\f101"; -} - -.dashicons-admin-appearance:before { - content: "\f100"; -} - -.dashicons-admin-plugins:before { - content: "\f106"; -} - -.dashicons-admin-users:before { - content: "\f110"; -} - -.dashicons-admin-tools:before { - content: "\f107"; -} - -.dashicons-admin-settings:before { - content: "\f108"; -} - -.dashicons-admin-network:before { - content: "\f112"; -} - -.dashicons-admin-generic:before { - content: "\f111"; -} - -.dashicons-admin-home:before { - content: "\f102"; -} - -.dashicons-admin-collapse:before { - content: "\f148"; -} - -.dashicons-filter:before { - content: "\f536"; -} - -.dashicons-admin-customizer:before { - content: "\f540"; -} - -.dashicons-admin-multisite:before { - content: "\f541"; -} - - -/* Both Admin Menu and Post Formats */ - -.dashicons-admin-links:before, -.dashicons-format-links:before { - content: "\f103"; -} - -.dashicons-admin-post:before, -.dashicons-format-standard:before { - content: "\f109"; -} - - -/* Post Format Icons */ - -.dashicons-format-image:before { - content: "\f128"; -} - -.dashicons-format-gallery:before { - content: "\f161"; -} - -.dashicons-format-audio:before { - content: "\f127"; -} - -.dashicons-format-video:before { - content: "\f126"; -} - -.dashicons-format-chat:before { - content: "\f125"; -} - -.dashicons-format-status:before { - content: "\f130"; -} - -.dashicons-format-aside:before { - content: "\f123"; -} - -.dashicons-format-quote:before { - content: "\f122"; -} - - -/* Welcome Screen Icons */ - -.dashicons-welcome-write-blog:before, -.dashicons-welcome-edit-page:before { - content: "\f119"; -} - -.dashicons-welcome-add-page:before { - content: "\f133"; -} - -.dashicons-welcome-view-site:before { - content: "\f115"; -} - -.dashicons-welcome-widgets-menus:before { - content: "\f116"; -} - -.dashicons-welcome-comments:before { - content: "\f117"; -} - -.dashicons-welcome-learn-more:before { - content: "\f118"; -} - - -/* Image Editing Icons */ - -.dashicons-image-crop:before { - content: "\f165"; -} - -.dashicons-image-rotate:before { - content: "\f531"; -} - - -.dashicons-image-rotate-left:before { - content: "\f166"; -} - -.dashicons-image-rotate-right:before { - content: "\f167"; -} - -.dashicons-image-flip-vertical:before { - content: "\f168"; -} - -.dashicons-image-flip-horizontal:before { - content: "\f169"; -} - -.dashicons-image-filter:before { - content: "\f533"; -} - - -/* Both Image Editing and TinyMCE */ - -.dashicons-undo:before { - content: "\f171"; -} - -.dashicons-redo:before { - content: "\f172"; -} - -/* TinyMCE Icons */ - -.dashicons-editor-bold:before { - content: "\f200"; -} - -.dashicons-editor-italic:before { - content: "\f201"; -} - -.dashicons-editor-ul:before { - content: "\f203"; -} - -.dashicons-editor-ol:before { - content: "\f204"; -} - -.dashicons-editor-quote:before { - content: "\f205"; -} - -.dashicons-editor-alignleft:before { - content: "\f206"; -} - -.dashicons-editor-aligncenter:before { - content: "\f207"; -} - -.dashicons-editor-alignright:before { - content: "\f208"; -} - -.dashicons-editor-insertmore:before { - content: "\f209"; -} - -.dashicons-editor-spellcheck:before { - content: "\f210"; -} - -.dashicons-editor-distractionfree:before, -.dashicons-editor-expand:before { - content: "\f211"; -} - -.dashicons-editor-contract:before { - content: "\f506"; -} - -.dashicons-editor-kitchensink:before { - content: "\f212"; -} - -.dashicons-editor-underline:before { - content: "\f213"; -} - -.dashicons-editor-justify:before { - content: "\f214"; -} - -.dashicons-editor-textcolor:before { - content: "\f215"; -} - -.dashicons-editor-paste-word:before { - content: "\f216"; -} - -.dashicons-editor-paste-text:before { - content: "\f217"; -} - -.dashicons-editor-removeformatting:before { - content: "\f218"; -} - -.dashicons-editor-video:before { - content: "\f219"; -} - -.dashicons-editor-customchar:before { - content: "\f220"; -} - -.dashicons-editor-outdent:before { - content: "\f221"; -} - -.dashicons-editor-indent:before { - content: "\f222"; -} - -.dashicons-editor-help:before { - content: "\f223"; -} - -.dashicons-editor-strikethrough:before { - content: "\f224"; -} - -.dashicons-editor-unlink:before { - content: "\f225"; -} - -.dashicons-editor-rtl:before { - content: "\f320"; -} - -.dashicons-editor-break:before { - content: "\f474"; -} - -.dashicons-editor-code:before { - content: "\f475"; -} - -.dashicons-editor-paragraph:before { - content: "\f476"; -} - -.dashicons-editor-table:before { - content: "\f535"; -} - -/* Post Icons */ - -.dashicons-align-left:before { - content: "\f135"; -} - -.dashicons-align-right:before { - content: "\f136"; -} - -.dashicons-align-center:before { - content: "\f134"; -} - -.dashicons-align-none:before { - content: "\f138"; -} - -.dashicons-lock:before { - content: "\f160"; -} - -.dashicons-unlock:before { - content: "\f528"; -} - -.dashicons-calendar:before { - content: "\f145"; -} - -.dashicons-calendar-alt:before { - content: "\f508"; -} - -.dashicons-visibility:before { - content: "\f177"; -} - -.dashicons-hidden:before { - content: "\f530"; -} - -.dashicons-post-status:before { - content: "\f173"; -} - -.dashicons-edit:before { - content: "\f464"; -} - -.dashicons-post-trash:before, -.dashicons-trash:before { - content: "\f182"; -} - -.dashicons-sticky:before { - content: "\f537"; -} - - -/* Sorting */ - -.dashicons-external:before { - content: "\f504"; -} - -.dashicons-arrow-up:before { - content: "\f142"; -} - -.dashicons-arrow-down:before { - content: "\f140"; -} - -.dashicons-arrow-left:before { - content: "\f141"; -} - -.dashicons-arrow-right:before { - content: "\f139"; -} - -.dashicons-arrow-up-alt:before { - content: "\f342"; -} - -.dashicons-arrow-down-alt:before { - content: "\f346"; -} - -.dashicons-arrow-left-alt:before { - content: "\f340"; -} - -.dashicons-arrow-right-alt:before { - content: "\f344"; -} - -.dashicons-arrow-up-alt2:before { - content: "\f343"; -} - -.dashicons-arrow-down-alt2:before { - content: "\f347"; -} - -.dashicons-arrow-left-alt2:before { - content: "\f341"; -} - -.dashicons-arrow-right-alt2:before { - content: "\f345"; -} - -.dashicons-leftright:before { - content: "\f229"; -} - -.dashicons-sort:before { - content: "\f156"; -} - -.dashicons-randomize:before { - content: "\f503" -} - -.dashicons-list-view:before { - content: "\f163"; -} - -.dashicons-exerpt-view:before, /* Misspelled. Use .dashicons-excerpt-view instead. */ -.dashicons-excerpt-view:before { - content: "\f164"; -} - -.dashicons-grid-view:before { - content: "\f509"; -} - - -/* WPorg specific icons: Jobs, Profiles, WordCamps */ - -.dashicons-hammer:before { - content: "\f308"; -} - -.dashicons-art:before { - content: "\f309"; -} - -.dashicons-migrate:before { - content: "\f310"; -} - -.dashicons-performance:before { - content: "\f311"; -} - -.dashicons-universal-access:before { - content: "\f483"; -} - -.dashicons-universal-access-alt:before { - content: "\f507"; -} - -.dashicons-tickets:before { - content: "\f486"; -} - -.dashicons-nametag:before { - content: "\f484"; -} - -.dashicons-clipboard:before { - content: "\f481"; -} - -.dashicons-heart:before { - content: "\f487"; -} - -.dashicons-megaphone:before { - content: "\f488"; -} - -.dashicons-schedule:before { - content: "\f489"; -} - - -/* Internal/Products */ - -.dashicons-wordpress:before { - content: "\f120"; -} - -.dashicons-wordpress-alt:before { - content: "\f324"; -} - -.dashicons-pressthis:before { - content: "\f157"; -} - -.dashicons-update:before { - content: "\f463"; -} - -.dashicons-screenoptions:before { - content: "\f180"; -} - -.dashicons-cart:before { - content: "\f174"; -} - -.dashicons-feedback:before { - content: "\f175"; -} - -.dashicons-cloud:before { - content: "\f176"; -} - -.dashicons-translation:before { - content: "\f326"; -} - - -/* Taxonomies */ - -.dashicons-tag:before { - content: "\f323"; -} - -.dashicons-category:before { - content: "\f318"; -} - - -/* Widget icons */ - -.dashicons-archive:before { - content: "\f480"; -} - -.dashicons-tagcloud:before { - content: "\f479"; -} - -.dashicons-text:before { - content: "\f478"; -} - - -/* Media icons */ - -.dashicons-media-archive:before { - content: "\f501" -} - -.dashicons-media-audio:before { - content: "\f500" -} - -.dashicons-media-code:before { - content: "\f499" -} - -.dashicons-media-default:before { - content: "\f498" -} - -.dashicons-media-document:before { - content: "\f497" -} - -.dashicons-media-interactive:before { - content: "\f496" -} - -.dashicons-media-spreadsheet:before { - content: "\f495" -} - -.dashicons-media-text:before { - content: "\f491" -} - -.dashicons-media-video:before { - content: "\f490" -} - -.dashicons-playlist-audio:before { - content: "\f492" -} - -.dashicons-playlist-video:before { - content: "\f493" -} - -.dashicons-controls-play:before { - content: "\f522" -} - -.dashicons-controls-pause:before { - content: "\f523" -} - -.dashicons-controls-forward:before { - content: "\f519" -} - -.dashicons-controls-skipforward:before { - content: "\f517" -} - -.dashicons-controls-back:before { - content: "\f518" -} - -.dashicons-controls-skipback:before { - content: "\f516" -} - -.dashicons-controls-repeat:before { - content: "\f515" -} - -.dashicons-controls-volumeon:before { - content: "\f521" -} - -.dashicons-controls-volumeoff:before { - content: "\f520" -} - - -/* Alerts/Notifications/Flags */ - -.dashicons-yes:before { - content: "\f147"; -} - -.dashicons-no:before { - content: "\f158"; -} - -.dashicons-no-alt:before { - content: "\f335"; -} - -.dashicons-plus:before { - content: "\f132"; -} - -.dashicons-plus-alt:before { - content: "\f502" -} - -.dashicons-plus-alt2:before { - content: "\f543" -} - -.dashicons-minus:before { - content: "\f460"; -} - -.dashicons-dismiss:before { - content: "\f153"; -} - -.dashicons-marker:before { - content: "\f159"; -} - -.dashicons-star-filled:before { - content: "\f155"; -} - -.dashicons-star-half:before { - content: "\f459"; -} - -.dashicons-star-empty:before { - content: "\f154"; -} - -.dashicons-flag:before { - content: "\f227"; -} - -.dashicons-info:before { - content: "\f348"; -} - -.dashicons-warning:before { - content: "\f534"; -} - - -/* Social Icons */ - -.dashicons-share:before { - content: "\f237"; -} - -.dashicons-share1:before { - content: "\f237"; -} - -.dashicons-share-alt:before { - content: "\f240"; -} - -.dashicons-share-alt2:before { - content: "\f242"; -} - -.dashicons-twitter:before { - content: "\f301"; -} - -.dashicons-rss:before { - content: "\f303"; -} - -.dashicons-email:before { - content: "\f465"; -} - -.dashicons-email-alt:before { - content: "\f466"; -} - -.dashicons-facebook:before { - content: "\f304"; -} - -.dashicons-facebook-alt:before { - content: "\f305"; -} - -.dashicons-networking:before { - content: "\f325"; -} - -.dashicons-googleplus:before { - content: "\f462"; -} - - -/* Misc/CPT */ - -.dashicons-location:before { - content: "\f230"; -} - -.dashicons-location-alt:before { - content: "\f231"; -} - -.dashicons-camera:before { - content: "\f306"; -} - -.dashicons-images-alt:before { - content: "\f232"; -} - -.dashicons-images-alt2:before { - content: "\f233"; -} - -.dashicons-video-alt:before { - content: "\f234"; -} - -.dashicons-video-alt2:before { - content: "\f235"; -} - -.dashicons-video-alt3:before { - content: "\f236"; -} - -.dashicons-vault:before { - content: "\f178"; -} - -.dashicons-shield:before { - content: "\f332"; -} - -.dashicons-shield-alt:before { - content: "\f334"; -} - -.dashicons-sos:before { - content: "\f468"; -} - -.dashicons-search:before { - content: "\f179"; -} - -.dashicons-slides:before { - content: "\f181"; -} - -.dashicons-analytics:before { - content: "\f183"; -} - -.dashicons-chart-pie:before { - content: "\f184"; -} - -.dashicons-chart-bar:before { - content: "\f185"; -} - -.dashicons-chart-line:before { - content: "\f238"; -} - -.dashicons-chart-area:before { - content: "\f239"; -} - -.dashicons-groups:before { - content: "\f307"; -} - -.dashicons-businessman:before { - content: "\f338"; -} - -.dashicons-id:before { - content: "\f336"; -} - -.dashicons-id-alt:before { - content: "\f337"; -} - -.dashicons-products:before { - content: "\f312"; -} - -.dashicons-awards:before { - content: "\f313"; -} - -.dashicons-forms:before { - content: "\f314"; -} - -.dashicons-testimonial:before { - content: "\f473"; -} - -.dashicons-portfolio:before { - content: "\f322"; -} - -.dashicons-book:before { - content: "\f330"; -} - -.dashicons-book-alt:before { - content: "\f331"; -} - -.dashicons-download:before { - content: "\f316"; -} - -.dashicons-upload:before { - content: "\f317"; -} - -.dashicons-backup:before { - content: "\f321"; -} - -.dashicons-clock:before { - content: "\f469"; -} - -.dashicons-lightbulb:before { - content: "\f339"; -} - -.dashicons-microphone:before { - content: "\f482"; -} - -.dashicons-desktop:before { - content: "\f472"; -} - -.dashicons-tablet:before { - content: "\f471"; -} - -.dashicons-smartphone:before { - content: "\f470"; -} - -.dashicons-phone:before { - content: "\f525"; -} - -.dashicons-smiley:before { - content: "\f328"; -} - -.dashicons-index-card:before { - content: "\f510"; -} - -.dashicons-carrot:before { - content: "\f511"; -} - -.dashicons-building:before { - content: "\f512"; -} - -.dashicons-store:before { - content: "\f513"; -} - -.dashicons-album:before { - content: "\f514"; -} - -.dashicons-palmtree:before { - content: "\f527"; -} - -.dashicons-tickets-alt:before { - content: "\f524"; -} - -.dashicons-money:before { - content: "\f526"; -} - -.dashicons-thumbs-up:before { - content: "\f529"; -} - -.dashicons-thumbs-down:before { - content: "\f542"; -} - -.dashicons-layout:before { - content: "\f538"; -} \ No newline at end of file diff --git a/wp-includes/css/dashicons.min.css b/wp-includes/css/dashicons.min.css deleted file mode 100644 index 2c8e0ebade..0000000000 --- a/wp-includes/css/dashicons.min.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:dashicons;src:url(../fonts/dashicons.eot)}@font-face{font-family:dashicons;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAGW8AA4AAAAAo7wAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABRAAAABwAAAAcb+kWhkdERUYAAAFgAAAAHwAAACABMQAET1MvMgAAAYAAAABAAAAAYJYFachjbWFwAAABwAAAATwAAAKatulUimdhc3AAAAL8AAAACAAAAAgAAAAQZ2x5ZgAAAwQAAFl6AACLYEUhCQtoZWFkAABcgAAAAC4AAAA2Cpn6WGhoZWEAAFywAAAAGwAAACQPogitaG10eAAAXMwAAAEvAAAEENEK6Wlsb2NhAABd/AAAAgoAAAIKw8CgEm1heHAAAGAIAAAAHwAAACABVwCzbmFtZQAAYCgAAAGdAAADWi+oduNwb3N0AABhyAAAA+oAAAoztf4M13dlYmYAAGW0AAAABgAAAAYlmlWwAAAAAQAAAADMPaLPAAAAANHVnZ0AAAAA0dXWGXjaY2BkYGDgA2IJBhBgYmBkYGRkBpIsYB4DAAR3ADcAeNpjYGY/xTiBgZWBhVWEZQMDA8M0CM20h8GIKQLIB0phB6He4X4MDqp/vjqzXwDxgaQGkGJEUqLAwAgANkAKxHja3ZA7SwNREIXnJmtkuXfHBbFYsViQFNutTxJsVoMmARUxhSSFxEcTq9iI6dJY2FnY+Gvs1EYbUTBYq5U696GNui4JWNjbeGDOcGD4DgwApKE3I8ASB3acJNbNFttPdg0i6IPh7AfZNEgejVJAIU1Tngo0TyWq0gY1qEUHkklbejKQeRnJOWUrTwUqr8q6rNd0Vdd1Q7f0oT4xlrGNZwIzZnKmEMcACRvIpSHyKZuwxylHUcIuUoXqtEW71JYg09KVvgy7bKZc5atQRbqkV7rsTd3UbX1kwGSMa3wTmgkTxXGnf8DCL/zEd3zDV3zBZ3zCR3zAe7zFG7zCC1zGJSziLM7gFE46e07T2XG2nXVRFzVRFRWxKhbFgoh4h9/xa37Jz/kZP+396q/EMvBTwFKJpX4fwL/XN7iViiEAAQAB//8AD3jarL0HfBRl+jg+78zOzG7aZrMtbTfZbEvZ1G0hZRMg9NBCiwpIWXoxijQJqBgRlRIbNsSGiD0qchaOs52uHbmIp4ce6slx6p16x9eDJPv6e553dpMN4n3v+//8s5l533ln5p133vL05xlO5OCPnOYPcQIncRouhdNyXKXOphP0Nr1ZR2zJRKcnp3sepY9HHqU7yNRHI4/yh6JN5EbuZ9r9M6HRj7ifiYfy3M8c4RL+KjmO58JcVH5R6oE6/RynIcEQMZmtxGwVAkENkSVDHjEZ5DRelmBn5UMkGAiG+GCgCsqrguL+aP2urHW31pQ+OKWkblbLiprow9H6py2WpRZLzohFpmF236QKefTiSy/1FXhTm325lilwaopF2MS/tis31e6ybinLzLWlkpTow/xrT7OzUy05gdHplXbfpZcuHi1XTPQVNOlWDs9hdXKEeLiI1CiruQzoE1uVyagzSCWE6OwFLr/OFyCnhY6WNWtaIjQlAqmsXtMSbWpZQ1PI6TUt/KGWNfDaAvdvqOMT6Rj0ZRqrxyxriFtD/F6RQLfiJjXeuTS6Prp+Kf8j6YxE9/OtvZOEfNqm2nTnUv46Vk7bIndFH4k+xk+jWnKapkC9EW6XvFyu4TI5F1cH9ZrStSSNuEkDCfjcrgItIa4A5PM17FiSiWQwmwIyMUlaIuW7XekNJETMrLRK+semTXe2fLmUSM3NDQ0NzzSMp09ahrTccSVZ0Pctb8rLK2jNi36LSRnZY8UTdPeVyi10XmNjwzPSISy5o2WIlYjjm6GCxsZm+uTSL1vu3NQ7Ayq4MC+ft0a/Yemb5F52YtMmsnAT3GKhcxueaWzgOBXMjzC803JOz+VwRThHiM7nKiFum2wvkKD3TV5bVYCrMhmkApdPtOlYGvBWmXU26ND+Q9FQW/TwtbTt2oeLamuLhFNFtdHGIzfffORm4SA5DcnNi805tBv6VMkLHfyhotpIpLYo2gQ38M9i8RFV78nFeI9IzlJ5CX2AHXB8/5wQYEQ5HD7RZrTpvHyrcKr3gJDflxkhp0VDz3fhiGjA8f+GOyn9RTrFqblszo6z3k0COOvFIJHTiN0mY6Mb4EUDGuWETMQ8eugl0pQ90+XO6HvjIuHatVXfzqXt7Z72Vk97vSCRpiw8lU0PSbnKlXq366J32vo2TK0a1u5phQtJx5zTdC+cyYAz2fQlXII8zJk3pKjUxxk5G7RdUrkJPjxIXBnBgMOs4U0SLjQ2f2A1Sh3z6T+uiH419uitY/ltPt/82US1hv6ZZBNrUXXPbutUi9VqmWq1CD/P9/mil4+99egY3noFyZg/u9pD/0xPkrzVP0fzLJbYhZxAPMQjq6W9sP5LuFHK6NptAyNLvDi0JcSIA1lP7DiatdgzsPTiR348ssSvZEPul9W1RT3f4ViLhqLavswwZsOWYkt/hpw+T1mnqgvzvZNw0C21LbW7jBaLcRdkeBfm6AOJZdFPMcfAI9fJPSCPlFthlnIEhtEl4dIzy9CdKuhK4g6aAri6VIaDfPtvJrw6YlyT3vebH+mpAP0o8LafmH+EwqZxI/TSAwej1x706UeMG/HKxIM/0r8F3g6QUrjgn6yw6VWYbwaYb4dgvmVyFfDsgjJVOXGFBG8VTJQ0UXBCaiFpKntBGV8OnRMiXpVp5uSAJ0snCJJU0rAwtGhrWRpR6TJL/JtI+uV/2Kj1P7T3ywULv3jyJrf78g+vUHld9WPG1Ov1wWXzx5WueXSWnDVq6KQh9K8HtxxdcVbUuq2ZZltBSvLZtvc3KzA8LKuhPW6uHN7eLsnw3pJstPldbtkddLntOm8g6A6aA0G/zWgyB82yyezlqgI+V4FkkNWfZgfvOnpX6yLavaj1ru67gpmffmIeAiXTlhMPKxli/qSv6kxX15kuIX/ZdDgDl3yaGYQzrYtI0YJZUBLIiZXMWkCHduG1rF0RuUCeDDAWRoUzZQAWUbkFUbC5lemdURXwszZIDS+PGDGnjb619SX60S7aHRZyRlWumkP48pUTJqycIJe9TCn9eU6bv5E+l0e3RQRyI2lYNWdE9MSE6iBcgc8ihfJymMc6zgF9UKUyy2UwPyXZqyHeQIZDX+BwB60wRwNBu4bY0wTh1F1EN++x0ItL7/mx4BR9gD5wJPNVUvrE3fSH/lIym8w+krHh4PfS3k1tr7XMef022kY695OMPT0dsQLSSds2fXbfLA5hZQTeV1lLWbCai365mrh8lVlS5TvcARV7b1MVAUjlhx9bL1vZelkH6yVIWohvwwb6Ln2SvrthA//Qmr1r1uyF+evp2Uo8Qj6CNry4LxP2wpg9O3bsge0EXrQmuj8cDkN7UrkIrO3lMC+0AL3NMAZ5MENKYI4EuVquAVb7uPOsd5vOpocmeWNbHLIHoZ1OODfoGM6rEo7l5fAODvYOx4tqexwM5BKP8t+7otgCKzyCHca3IsLsiyaUHBp8BelEsBEDIapPoMATYX80xcKuCocBp3vieTgRyyJMBXwQlvYyGsE6mEqwxagEdxAWBqwSWApAMZyKUQy0GzLC3p6ecPwf6Ye+E3H6QchvWdP3ZMJpxCUcjPkReJYMvZyHuERv1wMt4WCjG/AJTpPZZS9QyS6HvUAOBIVTUVNZpOJW4ZRwqm9oSy1AsTBf2pbpLzxEX5k1i75yqNCf2SacIsW9B1Wra7EvwuzVor//823PyS/s3v2C/NxtCs6Th8trgBrUIQUDRBoiPhvQb4jOZOnO7RYLbek9oCo5YJ0S/SuftSN6apTcuh1oLDq5b4h4/ICF9N3MZ+6I/rWbA7oS/uA9jsBMsXOtsHKXcm1QlM6XEUe+Ko3w6RlWAjM3RGAOmzLSeZzGLigNMJrRJUv2AnfA4YWF55KMBqAgTWYTIA2geUIEAS+7wgWAUjLlEb2GhFRuOM9riIv3+4geb5ePLHjhJ/oBfZF+8NMLCyBPKslIUvnTC71vkJVk/I87dvxIn6U302cxR+rpB0sMaXrj1VNt+pVk3vt3EfNy3yyzKVsUqhry8+mPRpdabdAaDJun2pfYHQbITm0jzxNRUJs0ctLsj3qOk01v/49Q/PXqjYsWCSOURy04pwnijEEPHc8a0lsk+NW8t5wkkX2vrpwvjxtrGVpYpFHN2FJ3oqWF/wdRqwQ+6CPJEi8Qf5Co6ZFoLv+CnNXSctWQR//wJ7pNuLn31Hxy3bfP0neiO4utnBibs8thRslcMluxHK5FAhB70OYR1/VsVTX3nQC6hm18a3S/vPzMGXEdrInugQ1g4jTSKYtyGtAWJVCbz10GeDEj6E5TmRESBgPOXxYJ00dXPTEm6/37H5z33J4VVenZXz16+9x5wlPnK+WPbZ7Z4ErfSYZO/kv5lgPvnb3qD32trbvOV4jTS+ynJVVAeaVw6fiOeqC3bQQACdvgBTXEBsgsur93EvGounonqbqi+6P7hXyEGPLy3knR/eJxeME2BACYktMKHTVAp7oQBxZIlgGuwMtAQD8c0JFYuaq5ZfL1tBs5hRa+tWUNbggJusOQiut2jH2edhPPmhZyGstpG2wpAAz6y2DJMByHz9UAvNVBT2dxFi4f3wuf5oSHiIJXb7MLXhLfYJlqeCBYi2rPnKklL0TCAKbDkTDQQ/EdAvnTyrjWFp19mZdCRbVhfOzABnTtqb5MoYO20TZG/yjvH0YYRJwBIMfgVfNd6YwSF3Vp+MrKgS/Av6SaUFj7Hv38vfduGjO+rz0j0nETy1ZLuyNSQ0mk9x9wTAres/OrIn0dVz3O8kJtoT+BH9AyjmBo/E0Nkj0OXOH9uDh284Vkb/+5KqsqD9Z9lZU3fyGl+caM8Z39J+zFf/ds5Q8pCO4BIiYZLWU1LRUKbisaX+OzZ0mSKr26cXHbouHeZHl57DYfVnH2ZVwOQg9DfLRbnd0yafms2cOLGV4s4g95Rk2bNspkSilaNHEolBjjcyXC8KKeUYvntN8LeI7LD6S78qV08ThxeUIhz9l3cU9cQC130ptJ8zff0APfSI0hT+/80qamUtU9nlCk57tvlBP4DAmesaufb7LD+vMCzuUAdlp5QxoPsLOM94X4jBgNpjonjWNZKZYKOeQuUvPWVT7fVW/RN+hC+oaSl9tbW9tb+ezEJCqx5HcMt8jLh6965MUvX3xk1fB4JmpvZRck/Ec3s6StFu8BHruTnGb4M1nhpuI/aS/iSMSFAIUM8RzjfRUeTLnHjHfZ/ciCARPmDxrtRrvf7vcCPSHthcXV165qBpQNSDssGgCvh3scQkeEHUciyJ8jTyLtBTpKgYUwQn4btkPAVIF/XcDTYUY8HunLxJUCnCODMefcG4Ojyv2Y6jDfX4/QgY0ZWFODqmSMP/7/p3p1sbqLSCzP6sXaxHV97UijYI7VyirDimN1/tp7ZiW0D9b4L16TIPknrhPXwUzmNDweAVBcR1fQVRzhD8G546ou5Zx4HEsRhPKtsXOG+H2iAUuBFLuFbGfnDonHgT1m54Acg1K8Prr/P56TFZpXroH+yGO0pZdRlwx3QX8onKGSGm1GJInqCU5xMSGP/efU2WGvbLDqPGdfJsA0t5JO2PW1K8Qdf0hJSSf0cGeEb8V/qRG6Z1041NoaCrN9D/KEg3c9q3CgwygUi28IM/lh/HBpsvhXpH6ImdhJUBTf2RJ9aQs9tIUQ8a+z+14kb2z8QYEZf+T+KJ2RzihYC/iLARrI78twAE4RTt1HCo62tx+ln9OX6edH27vJEnJ39EXpzEBR+1FScN9HZMnR3uWCml6p8P8RxrtpGY90Lm3FAykpa4hZQxiBUnjsyiuP0T8CefJHzAm/w4kLSwpwGE60iMLNJ15CCtltfV48FRl8+SC8qcH30hCRCPAs4iR6keidop44hVO0GxbDPZfiZGkju2ESdn9DPqSvzqAe6plBXyUfysuj+8fRqugSrJW/nbw/jqyjJTV0dzT6zTdAAoVruAQchc9iTwIqkNVPPHwrDbchnr+Uzudbf1kdthPL2RwUcXaRIkKACspECAQtTIHZDOPK+hN54eVcmsIHmtIZZYmTMUT0MX7TaDCjcMCE3CAxia9vOXx4i825FHDqi5oD18665poXr8mhh+3XZghy/tNW0lQhL/8dPX1YvbT3K/H4TXdH/9Qxc1ZHx6xAJVz0eoZqA1yCQI/sJ/ulQqmIrWVFpBjUoDxP/yf6KL31fbKcPvopmUGWv0dv5de8T1bQR9jh+/RWMv1T+gj3v84HLj9E0stIfhpJN51vQpDhJP3kli0n6Q+wP+9E6F225WT/NQiDOmOyMzOs31Jot3cwNmSynnyTUdCxjtMRd4jE+tBklmHh9XOhRWHEfxHAw8TjcJfDui13O1TNMQleEcrziGffN9/sw0nI6KnuaNPHGWM8uGg9YzI+HkwjIh3l5Jq48YPbVE8SaTqEMv20RkjywjADdZGHWaQyAA2x24xS4+sl9fUlPadL6llGTCmp7/lO1dx7gJxmqI/k82pLfmDI+KK+9uoWl4kQIqRm2Ny1BeXjinJF/uVwfUnfVVKjUkd9yetKHfUlvVNVzTTC8CjtTnIsvnjVlCFIk8NL5eWptEWuMpsZCY9oBczWq0rqgUHVJNBQZkYduBncRJ6cCwIP7k/gyTNiFADy2vx/kWd0JRKNsI8wEkBc13vgx/+YC9cWDdwlNTIqoBZY7bb/lEscq4H34JznSjzibYOh4RPyCmWLD8VHn+09T7MSX0USleciyuo7MZDnOIUHx3YcAX7fyGUOplmQhYJ5ABPFjA8Fcrm77wTKFwDoHAK6G2XOwEyQTiEfs5gyIq+NnYs2AXWDZzlOkYUrPHISPCmTy0U+Ayaiv4Az2jXxh4osQVEJf+i1nXecoj88QyRpKk1BakPIB0gKgJimAO1+Sjx+/Z1H6d8+o0/wX/VspSnCKaCDok3AfgBm/ZXnaeCRnN1YZSKxt9OzREDyrPY10kikZ+gPp+7Y2VOEtWGtDCmE8Wn0CTLlM2I+eieR+9oRdCIZhf3Q1x7vSxXryyMwpslMNwIEMzEqqBz3TpsGBVaijchHaDfU3o10Su9J/hB9gD+EiJg+AH02W9UcQeY0gvxphHRG14R7GJsSeyccK6ShlPpjeB9oRXgNu07QCDBQcB+roQrvhFE5RdukvfEHIl7AhwEhmI2SO5TTMZQOOCbCHZWToP1mpn+RnQDx3S782XUwRlUolpBemjiRfhMM+ubN3dixHV/93RcPbr1B+PxFuvjF1R3bd2zeOG+uPwjPepW8So9NHH/DVqXuN6BudazuQBB+XqyzQJbwB0hFdKUTI1x98MV3kTra3tE+b54vGKTfTBQ+hweMn0iKaYiGiCfonztv4+Yd2ztWv0juYPQFdD8QtACH09kMNkiyDoUnujKUruebVEyY5CoQ1z1yTbiq6ppHENZG97OFIK674VhB9C5PODdXKCs4dgPA2Cy2QNjaUNaoul8iacNFqEB3Jr5HOAoUGrHFV6cjlvKtQkccuEcwQzxFtUD2t/W1tzF4JxxX2I5D2AqYbizB+duWwFrEeKHIOXJI+/n5RiZ5REo9lg4GAT1bUZQo5KNoAJLBIlOFmBfywwqj3KakMboDqSLxOOP2rKjKYM/0BYK4A544xDCMQXzv2oPv3dSXedN7XZulmxdXllX97rJ93whfp71xHfLH176uy85dfLN+/rpv9lUofUuuA5rkDwDRzShhAb7fLMHOHRB9OOXS4FFIY3D5jmAZQXEXcOR+XzCNyCb+Vb6Z/OWKK2hu9ADNveIK4X98hbr8yqZmf2ActZFT5O4lI37YveLv9Jm/r9j9w4gl4h/o0TNn6FFSduaM2tOUwvOqMV5/c3P09n8e2vBY0ep7H/773x++d3XRYxsOKXh0gI7QM+6z8ZeyXjcsOpENv13nNeI2MBoc439N+YLZquh+sLsG93gYl2BvUJWd5wnDnyev92SexyO0Im8M03Pf+GATEANNQVyxTJYbuxOu3AgUKO3eCJfn4e1RPsZS84dWZYbrkTioD2eydUEMhEiHpMOch6vGFZ0hK6LF+E+GzpSUBR77SQ63Kz0YcKiEQLrblS9L6WZTvurwja4lQpa6oDykqrdV2h1mk0oYVlFZ5fN5K20evjQ/M9NwF71j8333LSU5JMe+cOEi+vnCRYsWkgKp7Ea6/l7BJOXke4RSWyVSjaUVwwTBZHTZK211QkNZvtUwxXf1/eSt+5aOGxfNXkRsi+CP/nnRIoR5v+Ad+zGUEE87kINjnCEmqmYEH7gp4j3GasE6An4H5vG6BB7UrNTlBNiJiACoNXu/pPC0cKrnuwjAYBSbdyu1wKIGkByOV6qwubhUAKFL/XpULcDlPIbPSxSIobBwXiChq0yirQz6hNjiSzeRc1N1IZDo+Q6BhW7ngZ30auJJnzZvGp2DhGBfO5KAgE3xH+iMojBQj9Mvu2x6yZAh9JEYETmYSVP3z2N85/SYfM0GlCHnjHH08P6Kktnsh0XsjPHk8U1Wo4gIxYh97cSDiqkTKOdDnBLf8CS8N1xnQHKgux0VXZHImhYULwLFg8LGuK42wsZRUvAWMoFGfPwAge4QTu0kwkuXwLgduuQlGqVf0uhLl1zyEhGEU0rJTujzpp3xUgBHcDXHbAcG3jNZebt4v8pq1g78x2Yi2YqjyGgf4N894nGpEXBpLvYKNKcqqOA8P1LqbpdN0AGIQ+Bjl71VRoMslRC4640P1q7z+lZNW7h6FY2u37rC5529eNd9f/RWLdsPLPV34fnPbBrXnKPR7rr88QkTo1Fiy7eNnTTyT/dfVIKQjpB3YU6r4LnI69iJV7YFvcQetIlvfERPdYeis0LHSOZHIf5BFIPAJOzA+dXJ1kEje0M94zjsqD91oXTAgBok/tfyYYZOwgjiD503KxoUERaQTudmmDwOnp3Nxg7ltD6AJYu4ZUxOJZsBkctA2Rhtgt/uDzK87kfBuF1B7GbE86wD8VBLjOxS6Fg4r5wzMgV5/BpgN11uo8nbPwxwjRnfoXXE1YVlKRk8ycUGb3jcW51m1CSlp9XZLSZdljGnNNNozDSnpEpySnL5fLITr7ra6WyYECzM0RuMNZ6KvDxvptlgLM6xZuVUNU0qLsnOqizMMl+tdADpXOR1JmUU039FwtEnRqoqfPpssznXBpskpKSYA/rkpOSUTK02XZdaGa55LUw/KcvKLqzLEOWyvMxhKSmWfK1WLaeONdlstYWZmRKvyc1tCgMMdpBO6VMYNwOjIAaUBjz/S0VCf5nwXH3JrSHjUzfcuPSlW0frTK/ddNXUKYJzoPAWKHwVC/l9l47329KuIBkjXvPufodGtx74eNzYqy8dH8g/t5D7FXh6jpYEV3tcvheTn+Hq6d/+mzpg4p5QNSu6Fkz/v9Qh7QWSpAPxZCw9t47zyxURsvmZYphtzCBpryJVRIk/bN2oI8AhR+5F0YwiJGdEdlwml85ZORdXw40AHrqVm43SEMCYQZcyrxlpEvRLyoQFqiRAvIJd8Aa9et2guYsZu+zvn96iHVYIVCTGS0oIE1NJFQ57tss+4aLpw4YWFGzraB2dX+xyXFBaXlHZ9+TiE0tPLKr5+ugnC6qrrblDq3JzqwMbJ01rsuRZcuvplCcDZo1WrSFb5jcW5OfnhRbTNLTkCiOrJh1KVusmu53OUU0X37Yne2qSRj0k0Lakri7KVCT7yDPR/WWeljq7PUWlsTu9ExyOM/v0GSVlBsPC3UNLfdlZ28zmMm9mZvRFYLHyw8iBIX0Us3sRWa8bGW0o652yrojo3KKeWRGZnYK5iAQFMajjWzd+Qa/fCAiucyO9/ou+N/nW3gMbydovNtI2VdfGL8jajdJePLMRRwGP+84y5S27LXYhBxgsTgsn4vCcfmwbl582xGYBo4VRlj54O/85m19g80U5Rp2gtBflqBFyOuG/85xiYHxTwjjF8QA1b4AdUxQOONL/BwwrTGDEaoCZW/tLu5UU6bTTyL8AjW3ishEjIHXAeAydwSpUhQS/ji2pyLYlS2+LZA2df2/k/vnDsmF1Ho/+fufdu7fx9dHn6tdumFUz5KIr1tZHUcCg6h+j/vWlh5dM/DF8OGjbG4k3CdtETot/Y/gmCaVIiKf0NrdNL5YcpvNhAR5aRh4ooa/cBpwwioI8d5GTA3YcMEYi4Ao72vhomHYyrq1RLODMUBRMsIEjgj0Z9Xs5BP5Vx4gEvLX6NcaICR21RXcFeicF747Tzthz4fCRlyOoCAkDgu8Oh3F5M4au14hWUA1//0coZgkljGGCiBRgs1MwVXSeie3UAu4vTWhnTETn/IU0D62CBKab8eoGN5K/9u4BKv3uINBEfSdgCgy0raYYzxQXY6OKa2qKlUb+PXoNTg9oUswOT+qCOeBmNgkWYpCJVFDOu+qJL0gQjaLpYzlBGESYbWmVeNvK+vrokron6y6BDH973Yzp9ZTnN1ssxywlxZboJsxMk8RL6mZ0z6iLLqmvX8my9fyu+vreCFw41XrMAtdZp8KF2C86Rmc0Ml3Ur6+v4TH7FwZidQzUxlcTSovlWF48J/1P56RGJLMRNiNV1pcZFk6Fw2iNAykQ3f3785XJ6nC4xxEOoxY/zIxbTrNMpH93vjK0h2X4YyXDzApATmODbEPQDQyQDTggnQHgNb4ocKEM1AunDi8Ij7CtmARrfefNw8Y+tA8I1S8eemhM6FZ6M986daV1eHi+eGD58vdevi403xuJLLj2zoMk+e6779lNzzx3x+alkUgwHLr2t+8vW440ejgBh6HUCGGAlStQ8KEIm2z3o3mtMwE12mMpzOk2RI/hCNLiEeFUXzsCGaawAVSXT7ulxjCz8ImgqCcOdpQFxPgWNdN6LP+156PNG/Hi8+2Jz/f2G1QAnkFwx+yOIqhTR+YDwR0U4xJApB1mz/qVBgzS5WlhjtUzyxmHvUAlAVNgUnmrHMSO/R6M49MC2Z1AVAI2FmKiCFZSIO09RA8f7ucSdh4mw+jI3ZmmYfUGQ26ut7Wt8Zqb140eZcmZGkzX3pLj85bn5uTkzBGKSTsZ/tIA4/ESWVFSXeyuKsnNdjiN+iFXja2pmTustLS+0Gyy03eyKqqqgIQsz8qJyQz4A9IfRTPXxE3gLuBmAY0McwrabFSIWnsM3fvtZrvbLtuDdj+QC2ZvjDbQEq8iFKsyyy63QmbApAMmncheN049t+Q0euNdANUYRbfdqBAbUllhga1wZOs1I2s1szOCQ+Z/vH3Wotq/1CyeNeuaWUtnPvP0qlAwR3212uwINc6Y1WzPctsdUyrsGuKkn2jspb0nMxab+GRVCp9Gnlnrzsq1WofTi5/gfyu8vLguP0+QZTl1avbE4W355ZPKSnt6Hn64J3z2bE+RY7zPrglVjLI7XZNTU5JrPcPD44uryZhAvViQUpRUW/ugoNWXF+sz6BlCCL/fnFlVhn2l8KWKniIXoEsBF+CGcHUMb6PVtyS7G3jF6FtwKzbfvBdVa04SNMsxW2+zVjH1DooaQE16DRGZ0Xdpw0ePxG2+m/cOzStDm++eVpQdR5hOmln9nGgce4Ni8n3jtyPuQIPvBuEsiguQsEQhuZAv/YNZgJflDd0bNwBvfuRYg+fOTQinFPshRj9G3xzx7Y2K8fcNYxvvZJdOVOqABdAJD429M+lk+DgV6CXUzpTBW4e4kQhFAzof73Lkw4Q3psdl/qpzJIqamG1wf0E87VfhrFOd6BpQWvH/ZoiJPqYg0YuUo3FkMtp6jGJHqm+VQkUtQTr/RLIejCvFHqR/FT5i5dsVhQH7p+nkzeh+FDFN+zix+GRcZBq3ZWDwRIecuB1orRBw6oGgLo2U8Ug2eaZ0f3KCrpzy3Z9/fjciHu9xoGAll1gsfE7fCbu6IE+twIROxu/26/dRlK5sin4/vkmNESYRi8Sez7dKe5meXkScroOpgWURpHeFr8ktbOBQ3Q/XdhLCcB3S+qgv5FExZxUB4AeCITGIMgBelW9KR2Mg1Y3Qsd/dv+1SldtQaHGmX2uxXJvutBQa3KpLt90ffYnkvv02/cvbsvp++t2DO87OE2wZTkux8cm5c580FlucGTZh3tkdDxLDxXjV2yS3X24hHeNSgDtEa0t9gn4wrrwiTp3oFHVOUS8aVteNufnIzWPqgox3J8PIaJoZ3c1MSR57gn+Sb7GtHrn45psXj1xtI5cxDp6uu7av/Z13UIawPeoa4G8QvyOsR3lQCcxE5OaZFoFJkKEFNp8LiwikdrQysOsc/ZQR8ReUiXCuMwKETqR3Eppzkc7VfT+GhXxIp6DNZ1i4bd9q1Gd2Lnhk3cqV6x5ZENM2d9NuVJyouta0TFkNKwRJMs+U1Wui0zEbxrvhTLQ3YvM3NvptNCUuA4c5lcy0ZWgj5mJWEnajHYkxP7MLi8tCgELTob4Czf/wDU4D5Rzp2RqJiIbeScIxZu0U7j0Qxtb0ZfKHICvt7T0QiSiKF8CdpJMZVEWr4H0QlwFdksKyitwa13Ejs8HLh1kTEwszOhamG5HPERQL+bVFNKWott5NThfxtzC+prao7wRz5cgvqhWfRdF/cQ1icOgYNM3AU9H9sGc2BuS0vBx4gxh3O7hyYLUI9iT66Sg+Oop48pBijcfWKmmmIej3EMrgYrheyzx3zqnLCW1fvqal5zu8UzS0rOk9gLbGioVvXybsDyLIU/REEekYzCEXsxJQ4FLQKdlj3itOF7NZQS7GLSLeEwPio0wyqKFjL+iAXPvmi8hBDUoUIUfHajTk4AVCPjsusJ+cD5n5Jwvs7BbMYBn2xZvcW2zu5jHfAdTz2IjyLHiIGR9NYqRA0GgSdMSkSN+DbmwJkdXeop4css8IK0PsLB0GJPbC2tZQVq5YtJ3+BkvJg4UVmTn0Zem+meN0PV/w9zvdqGDXGRqqNPzVnrGh1iRNsq5nmOrC6LPKKXm0JYkKim5O4U0RliBs55yJqxmpdsBrgYGCOKA/F+DLalIagPnX4KXzfY2hsPlY2up9q/2l9JhkZmC290aF5ehQlMmqd3MuCuAQ1c7NjK50NVXfWeCcsnr1lMCFOdHvxeMMQEevZMmPio0azmENzIM3md4cB9SURhK0AApVFaOtgAzR2QLB/l9cdxBHO6ILnd76f8GES/2BINyLOob4L/4EabrdvHi93VjgyHMWFhdfOLOkqNBpsxWYMnUkJZl6SZJGKK701jUMHTXy9ttHjhraUOetpAeZH1O0GO69okC511Ex4+IKB96bl5WthXvJe/QnXo7d3Dj+9tvHN7KbxW2+9SPNvjxHgTErXS8b9JqM9CyTrcDmKOR5azHxpKtCld7Ckhxran5+qjWnpNBbGT3InKwe9V0xMjN2Z3qSXp+UjnfmOYrseCft5tNit+ak5+en57Bb2VpT8H0K6hkAMKSp5AzAhwQYX1RbqGQbcIcp06+966rrQyYyjzShNV2kxyE8Rf/xMD2q6gKAUMKnuRqWjyWppMJIqgBG3Rc9omquuAPX4FKikxdKh9ERESgmmOlJRFLZ850mbz5TmAFpWEbqYWxQCxo0qcyxlREISnJAXjhuOZnedZo++ho9QqMVhdzPkbUvOVx55ZVXPjxp+rjWqhvI9V8kfXzHfcs3LStZu0zKaJugzb+FfkL/eaT9IfEefsclcmr22x2qEsF7/+zw1EfeSS513/7x5dkNHSOTmd6Q3BDTh+ShlBqBjGzIMFcxSMPgjl8XywGOPfDkBvLtF3ySwGumt7dPj56w8iGWeVVWb5jRd7kkfEh/lkj7kxvcpHzDk+3vz1BsFxT8+T3wLTkIi5w2XxLhPMSuq0oh2US0+XjOAQcqsylD7MdeJrGb+FZ9AO9yP537yVFyAwl9f030BPHtp1/T9cd2kfRlSy+N/q1148auje2RY+QOcgGxv3spPXr1t/RNuuGDP5CrifkherRt8WL6z5uvmDF9w4bpM66I6c8V3OpItIzVeYHWZ65eLmZZDVR7vy+FTdzp9HqddPGRvO+rRl41bN2ORz78MMo7fQAGvM6eNoePX/7jXbW1f9Q8fMczP0Zv9TnETqeX2d+hzvt2eJYB31vn1dvYM3SxZ+i8wgTi/B8nPVnbcvvF7Q+/+dNPEf5TkntwxAju5+TfP3uU/gX7D3CLIiPSME8IRV4KK57r12PTbvF4X3uEpghq5sSEDF1fJqLKdgVgn+EkooGxfkN6DjBiLvDS1dxorhVnpVXwVoV4pg2QRMlKqkLEjfovzHvjB4I+wC4w65mHEYEMIhK34MLZKjmrTLKAFthufQBAR0Cwy6KjYmxRVWuFOTX90uFNbbQlteCCyy4oSE2bc9kcYTEcVA9Rji4es9EZOnjdB68O2aTb2DxuY/SpZUPb/MOHLtEuq9jbVeRKFiq7Hqpcpl0ydLj/kuErUrUuKaPwolnjykcvXVcx+qKLHghuXbhwa7B+woT6/lxvM3ly0zPzPn2etvibmoSKW7rptXlDysiK3c9Lybrnd9NbyobkkfUf35yhldicGM8dlNdKy5htuZmgR5kGxTqE+Sk6HWarxix9s50+tGNqYC71Rv9pmWJdZ7GoxvyVdpHdP2VVub25Pn0wuUYQW3fQx3a0XL0wuoIWWyzr0RX4xE3CxouTcswlpmr98NRxAsCdO0i1dKv0OFfM1TCNfZoAYDmkCiIRbrYSHuGxqgxHJSTrGbx2+xSYbzYJMwx8piM32eIyN4+9qHlSlvui+bPybOmlFz916Woa/emzLq/FmO4ZNWPRyssvedI656KWOUJq9ryZU2fLvLRHthZVBP3VZl1m1fhRw9NM6ekTho8+TqN9p0aNbcyc9fiqYbtu2nXdleGW4tTooqaUlNHTF9jyh+Zbpswenx7TEZKdjLZCSUS/hbDehoYiNtKpMFXAyKExJRo8AmHXO/EtlBfRFKQiFfk9KWF1pALctXHlwFkOZ3Zwg7gsotAMMMXF/hwJOBpIGuFlCfh130C58zy5c5mtQworRFOUlLzuJCM7O62zfuts6GoIUZNSzLcOTknJZyTzAVLEWK6PH6CnhDYmJayp2RNL6THnUyNGNL5C73Y2NISenhcrLj4nVeSZiu0m+gs6mO7Zy0zI0YWyCmkjKzGi5MaHclckTEoIEEAEgAWUSXvDZ18Obzm5dcnFFy/ZenJL76TIQr69SzjV1c4vpN1hIPR7D8Cih1PFxXBZJLJ3axc9FGnv2ro3QvZd2BGJdHAiCXCTpLtkHbO/dEIbKpl/eB6w7Q0w88uJ7JZJgYKHsB/dBXFCUZTd+qCXmIOC204OBwJvbTh5csNbgUCk/eTXG8n8h7/5dt9D33zzcPtTT515uosIVx2JbuvpfWfjR73besR3T37dDpe+1f71yfa3goFINOmbh+Hih/Z9G35qIyMhV54oj75wnDd+4Y3+9jgHcytRX5wExzqAonFJpwsgmAd9QfVo/oaajCBLnG6gj81umRmNFUGJqJwTgm7RrNMSW0QRvQFDYd1Fu9HpBjLk9K5dPbuIJxJtkhqZbCyTpqg2oZvmrl1kNjsnq+Na+55diowa0m7i2bWrahcyKHiGCTB37aJtu+CPeHp2KXKzmN9T3P7UeI43Bg5+vpWIRhvDfcSfQJEaxeP9hH2LYtcabWKcD8kMDINkWADWVyJrgaPPxh4Kep/4JHN+HdKZdfMzP2G8NOCAocyXD9cu4yO9OugjYMR04vrBCxW6QhHEtEZwHeN65hLrkJQ6lHtjqnyUZqJSAsUvEdXTb+FNChiIxAGDgoOZ3qORebMzAxEzNARd2M++zB+CYQiLhr5M0RBBbm7AxgvtMGu5CUz2qAAJlD3mOwLE4Q5wzjTeZJbKVAgj4WdVybwYKBPdIYFYVWmClpSpAIQu3xn3dtu5M+7t1jecbnl0LLmRcLayjGKfvanS76owtJZVPRMaPfe6CcUpRKJtfE5l/bDayuQknWuYsDmv3Jouq0StWi0bQ7XVpUluoZLVtXNQ/T3uwz+Q6uTgjt13ekWTq9gq6kZMbq02pOrKfWNGVNFjj0/fMrWhyFZoLvaOriNvV8yfPnPkZO+wnMxM7wV11Y0F1w/257HFqZYBP/SY2bKStxeUEZhOGp4v5P/KrE36JUAlG46sX39EeIe5mamhQHFeT3BHL+Knrj/y05H1vZNQIsaeu5J7RxZlEeBEFcNTGUi/OlDUGWSIKiSUAd6XzUQwh4hDxRg7vz2HEGfQJU676f2ZplvP0BP08E03vFG1t+DeVZf8dPy3l2WMvudzSIccojr3M2PPEhsZSo9bVGTuXFJOQ3yq1DX2DP0z/R39/L1ZprGj/rJ90brX64boRu2Buw5fBuklc+m7/MiLoHpz335LsSpFIF/QPPpKNy8DjNXA3HoF6CX016jjxmJ/IeGSAcjVa0OxLRzKoi2kqgW22ExgIVYFgvoAI3LZSS2PVwCKIcpFaGfdSQ9bS1S7X3Coh9h41UhZX0ufyy2VyRswMSS9ISf1I2OVNnp/5XjJWRhU7xcLc+hv3Tl0q9mTlDSKjsoqVN2bqlN9RMfymuwsh/ZrQ4FRK4jHy519WfyJpx0FR8wjCqxbVWkF2aaqrN7N4zxuodnuukXrsmjTduSYo/MaZgrL2GmjxZLMJfrEq4B7wVWkIXGHd1UzgrBok+pVJkdB0IUgKiYxQTl43Bc2A6jAadxMtFmFNcXBmuJ4owEdYb1VDs55XsdX1X9yexVDgo+5vcoZxMXpfEEYDnZ/hnzkXnqa7qBL6XZ6eg/zfX3wHXIZSen9hD62OjPdlHnTTKdxPbnxr4+T4BU1yzTqzCS7KjjSbqcfZhbBEVzROdt9ududaUrPnLlJSEtJNsmaJf94+9+9r35Jvx9NJpF/EP7aG9Yvz31EsJBdWPe97JnvPMicXfeQFKdwi1qo9pNk8uIfr2jTTGvJcGeXp9dIc3YN65k5UxhB1CoVH6olKZIgkLoQUdPHyvKtF03c2PTKqf+hF1/O3xZtXkEOEun1B/sWkfuiI0ttU8jfFRvMuJ/0tPP5GKA+5r8qQyM0/yCvTmZ7gzlZzXwRKKM/0Dn0V4/QeZMdk052jLI/IH+K6bHi2tpiUlyMgUd+/QiwiJJTSgG/KHMmzORSZi4b6NaJ3AzFC1UWbIIXZQiJXgt2vXiu8asfXgtpG4AbwClgyBFYdsBNuEJ8A9Ab7hAJyi63FyaWS9V8e9mM7AvpF98/MpbkoEeqgttow9th8hrmYhhPcNPXLqevXaUZ5m+8Ll8Uk0no+ZYphxqISpIE3rZtqHeo5n+asz7MHqsSRIM7j6RFmyLo5arUAcy785VE5ElTln/yyfJh26qzHdnZo01Dq6qGprldtuRkZ3b1tqGvjNzQPkLgER/dxHXKDXJj3J5FQ0ySTEQ9FwyY0JeJdxMxQiYUEWefK9qyU3ikwr6ZfhKddD3/KNXyXR3RibKBPu1Z5+pz7OS7hMcrnSq6KTr+ev6Fvu38s3Aan/E0t1LOEyOAZS2o++SY/Aw5Ry1RNAyJh1w+p3cz01w5g1+yb3Xu6LBnutGYy783kKfX8mXkjQs7muk11EOvae64UIysnuKrMCSJYoUPyYT+fG8OaSLqss/pDyT98zJ6BukYtDU4Lh7vl/UnWhIdR2t/ZQOsPWD9o/DbCs2rV6jd+DSBnIQyTakx0vMdShtRqMswUjNab3S1q7rau3q2ospiwOdJB33BtAyDa9HHkaAJeFMWCAcrxBQq/DHmU+eJJNSJFvzoPNd7APYJOhFYvxbOi7hO5TUkkTQeyAaZ9wOHHNQDNvADDaGzWYU8IpxKKb3lrpNt49tvu63d7dLkzZm5acXKCZVtXz14ja2AnGaw2jDiN7fflktTctu3XlVcLKvVOSP8JSfoZfTvJ2+co9ertKFxHbf/6V9k2NPoQdN3WpUxYeGLbSptaWlDbrRJqSqmez0t7T1/36PdVL+m5Zy+T3in873Rf3yH/621rP6z5Kz4sfgxtknD9zuEiR/TPWTedrqH3ruDzGU7Mk8cC8d7tseP5+6g95K5Ci+oyOoFrgyojOnchdxsbl4sNkBMSNkArKA/4I7rXNkvL1Gi6a1ihL6bnbWQgWJ2fwj1toqXhF2MKeyZ0l6NNjW9L+jT0pJSVaIoETk5pcDuteRka3VJSTzheV4F+Cs5NUWrN5gzhZ9oSvTkDfV+f67FkG0pchcMC/qqhlRUBXLTHXyqOi/f568RtsRNWNCHU9VFa5NT0zOyk1ONmbxESktLAH+nZBgyM3MynJrkNKuQoQdyUK1xodJhSmu+zecLbhTVUpIsy5IkapJkIUnFbwz6/DbbB8wqIhJmPlYD/BH2WyDWbwu5pUzW9H/pu7gRw/+l/8igPuyz/Nd9WKZ0D33yf+lH/nA8FgCaLwOvC/zIx/9dVxKJddJv/nNnLmMXoe0PdujA+i/ipsLsc7viEnIvc6lBjXf/jxkLxH6EGQHFBejxMxgWSek5s6wzB3XuINTCfyoAXWEyWW1VvvpFTSNMplSBJMmpqcYMS1axu7ysqDgrK9OUkiZrhNuqLHKddWVw2sq2BQsuvXC5p62kIads6LTyZyY+PHzhvKaHPpw8R1ynD/qrK6ocbqO5tm7qtFn6JJfNUQADnW3S642WXJfD6c61Re+fdvVZlYbXAUWlTUlJUevV2Un65LNbJq/yW7IfvpZ2L19OPNc+7KtncPAg8Ks5AGttCAe5fFWG0YBAI43Ae8Y8FH0ud5nK78vQwwRA8gQ3gMhAtggTSRURbi+urTMas+wKQWLPUueM9Ht2tfGt+SVZwfJImS+rJF9efjuld/o6VoUtVtvSIiVCVtFSW7J71dLrfHcSvic8Y4a/rizgL69L4Bn3cmrmscWchomsRmYlrDDfbapmZhpwCFhIJWYEsx1fx2wgFfgkrmM2Rni9eBzZXHY1NwhWQv1Ouw5BmUwG1RhBcT8z34/5y5F+PTarH+5IqFQJARSOuWIPbj/0G8JJNxlUpdDBrB+agEaJ1T+4/XBHQqWIj8lpdvkv2g94Fj2qg2RQlYM765fthzsSKk3oqgQ5PvOdMJ/Xczema9KjGOA8nrt8ecyx8rxeu/QNdlLxBon5PEJ/HRnwF+i3CEX7tCNnKuIb+tIz/+3+PVyfGOsHPYPGAo9zqRKdgkCj0zDQTxmG/AmRmBwhheQ7uIz0JDwe9F5igYwOQjKTyohK0CPIERmpAK+vDNhFdxryPrYAEAe/FmWHv41uovf9vGsX9zOZQzaTORzkf45WkQtJ7V+2bPkL/T3dR3+POX73lNFr7g7O3/wYvXP9Y4/98/HHSLl32LxyCy9cZXJW+v2VzuTPurubVo4CaCkgdJ2alFvTPHG48VejC3l3/Uzv+8XzqxKfSmpZS5yluS9vDM8w3bt4/WPhx//52GPrr3iMJtfqL5g/K8/avHHqMEeWWiAtH36octWOmzx5dFCXvnDvgnEFBhKzW4/NQTP0ezmLtmdTIui5mOKD0awsip7Y76XnC+h/kS9hSmEGU1ASCuXiyGgTqnLv1bSGwqFWzb1w0JeSILzYnhAu7EdFO78idu0KOGDeExYjVmG0oEtFTBbcnZDGTzMrGZTVvicvkqcDd50NGLYB3s9VEAtoGSQBc+KBT09QFYNRqVhoQxSXysSH0fHS0FwF3jygamxt90Tf9njKNpTwAc/3no0l/UclDeQBT+vGEjr7aQy3CKdh3/toQWWlTqf1jBs/JD80WqKteHu7x0Pw/lUeOCrZ6PHwxXD/xug2OhtvIg88DRV5eD8GZIx2l64Kt2Zn583/Y+DClRfAutgDdHSV9CU3mbuIm8+t4jZzO7i7ULdsQG2HIU2Sy0S/IlsPMudBFPMAZ6YYDcTDIMZSZaSUC3BgIUfi8e5M8fBgRDJaCb5/EOgHGFHRxyQwsqTYM4hxTSMcm72Yh2sgL33a2nW2tUCfXe6qt9dpksf7xpUVFLSeuaC1deHyreqMjoX+W5w65NswoBpsmNU57qxc2JGh3lqxJLfvVlcIx5ZsUgb4oJ7P1Yf1ubxeqw1riUavTafd6Vq9xUg8Rgt9APcWI+2G/fowZnEnvNN6tqvVN+zyKc2llSa7pK5wTL7wllZfa2vr2dbhDc9/Ve6/5uuW3Bppzd41VXhTlbKHQ6k+q+Xra/zlXz2fOzSDXF5XWMSAn6Lpp7psfU6O3mhK7jEDRtYBg/K1wqXEorxxMTsQ5HlqueFMVouiAWPAq4tFobQo8r96ItnjoStjaYHbGJMGKtrGuFhIyI88f/lFKzD0UwvOf29lrEWVXgzS1tUe4ctjMXUAX6x6Yfp02o1mOISm4nL6NIM5yUaUfcaninwh3N6F2EgxWmB+SHF5dxJnBChQybUi5CW+fmdR50CWWbfEjFvQtiXxCD1MY++BFI1kj70uu9ds5atCKJ3iWCIE4SQCbL/Oit45Qke4sA67HNqnZGgb6mBwI50DucP3AShQ2zTqAjVk7jt8z978OzvaO+7Mf3BPVNx0/e3OpgWjiy0v0d/SDvrbl5zDNs6w3yntnbm88HKPs6GuMJ6JHiGz0XaIPsAsiAby9Sue9/+EQIWUEEI/wtxP/udXrHzKl9Tocg1N8j5FJ7pDSfrKYf5S2r3i+WXLnl9BPDVjxmclhdAekfkcHGc+0zboyaHcCG4MNx5WLxcDLioWZMaZeKDY7ivdiOvOec4xCRplJ2xiLBWWOby+jAw5s67MNf2Z6XzroMPoKzDWbMCLUCPWn0eXN3STiO5XUnGne+mcaVnZSQVzL1junjdu3Lxzjnt/RjuqRJuqWJ6/GiMlMWtvJUV+91XAI2mykTNwuVwhylfS+IIyoJdg05sQ3ugBASN74pYEAC1upnuWTaqx5PWKQ0ePHD1UQV4d8vmun96c51298Dcv08CsUVPe3L1g66xbesbPG99zy4wLGu4Qi/venrOtsXHbHKFq1lIVcWw/PGmhlX5ZRjMeSb/44JToZ+HpXdMXGFdNjvvdR6R7YSyYdAC4AYx7bCcSkMLIapklDCotyXod2gGHCAuVSmSdnkm2Au6ApLlgfH5j7VvT6Zkl9N/TPqxvzJ9wQdM4XmO4d5m15q2Fz+oNo7tOd4026J9d+EGDY8UDBg0/Rry4bP+rF05ZpKap5F8pi2dc+Or+0gIhVHv1T6HpbnoNH8g91dHxl23b/tLRcSo3+jtylW1u/dnNtQ18QpyVVIyrwLGoIUA6hQQgVGW9U3DHou7cuv+rd571B86+bBj13iHhDL2RrC75MrPvlrI3bWQ13V/Ir+W3y+pFt9zi9aF20dD0eEfP48RBMp2byVM+WnNxHj1Fvyohd9C53DnxdrS/jLfzn2Lt/KcgOxizS+iQGlXNjDJE+9JOFjyvOYK4uov7lNmzlnE13EjAbYoXfBqP+hC/zwHgxIvITHKhZBWVrTbZbor5EsCqcZsCzHwbx1BMiObF0Jm7TAKUhaJvk3BP68i6FY8t3nT0SqJ6Ps2XUm9W50q3v3LJb+aT1xd0TjGUXOW3TXy7daFW29mK+5tUk1jYr74HHt8tqlLNGS6jL6W6+po3HhOaQh3zQ6tmBRs2TLzq96R+aEkJEV7dNuPeueEZllDLdfOLq5y5094U9qy67AGBv+uyVfuGKvHDojVXLjNlpefk6i1pDnUGv31OeDvr90lktHyVtJXTKRZ/qgwzRoZVYsS6Aw59QRnvthNThtmuRIk1Syqh7wlS+mrmETT7P1Xw4z1LXww9No/oLtv8/cENGQDUav5W219Mf5C27qH/2I8mkLe9PqfltbZNPS/Puu+zTaRzGD09LFYEa7eKeKU90v3nk40KMdnoCqItINa+P0e7L+fPuC1Lvo9+eAlfTFfwZcuiH0ob6Q/2eXl9n1/Ol/G9hVaBvhn94BLeH/XxFcujR9i7vgnczHLmm6vEtwPgxqyVfBrCLFZgbruAGzeZyTVi6aFDPX84JLTwDxhTDMZRWdE3om9mjTIaUoxS47N9B599Vhj7bN9evkg3xGaVDXQT2QykjG2ILvE5WhZ3+FyjUYQC8HoMEmAcZuD7gUdTwIGGBOTlraGe6xDoi+tDrddoxdQkupRsyTZoXBo67thHdBxkDNlkC12alCpqC4N8G39pkHcJHXhPXzvshfe09swkuo0utRqTeTVZ/dpr9EY1nww01S5yeVKmXVtYTtXkTDlb7ytkjTwb2mpT2iojroS2BqFPYA2W8YAv84jIQWI2yZo1Lb0TUeirenrK6p3RvdFFcoomWWNLSebXkK9yUxxZNuEyYf4Fk23Ubnvywr49F06ykc9sTwhNfReRd0WtRZuejD7fVzi0yalm9N3v5w9NzHbew+QH52pq9ZLsDBEiutx6K4lbA4tOk1koI6IQCIoANM8b32vsbXNL6Y3+wyo9vbF07m0bDlMV0271PUdWs2NhPlxBVvsPn4/7VE2I3/Vm7KrofqYNey1W7b9itZzL6+Yg/vlllCoHHMJ7wQHBKFEkmXgNACHOG7IKX8Bw//30O2abfj9pS9Pw5FX64dy5RHX+EFby/cSQeBNpSxL5btKAak6SzhczmXCcNsBVZvpllEcWbcRG0Gx/ANd+Hd3PXIEGx7nonRQLtZmi2CsoPNx/rndQIHPV6r5MZtN8bsQSBUSzevv71DKgxVbqRS2YEn8BdWKDnxKLrEFTkObIBNIDrbRrxfreScwpHp/HwrcooRYiSuB9xcEKYyD029wAboh7TZ0vXjKG0zezuD8KYmEkMk1hptmqPYj3wiiFxNCOgIX2nvvNhRjhQvpl2eqYZQ/aREmNkd4DeC3ir7522o3a9Vhsuvj1YlyCrgIAgh7QKKfZj+IfZooei3/Yxhxf+Fa0QGd+Mhi7sD+mRRnjtlEIic5wQOvpmOsNBtsKBtB/qf847v0sHo+a2hcvqauvr1uyaGOJJW9SnhV3FivuFhRardY8WV0XWrTozKLFdfXRxwsxsH6Rqgt4FEteIQy9FVPRYM0thuwgGFDAXcwt49ZyHeddPYGMOFwwssaikj0d0TUSSwp6CjBjbH0Ard7SiCkYsDKrOCPTeckZQXYi4CDeAAAzSUb3Mo4FgUWltLdKTMibhJGkKW7BRQ/Rj9laq4Kf8a21a9+i39L36bdvrb2iKLCYPHF9z4Flyw70XP/+/gk3+w3rLtr8Wbblso2lC92L+eTU6scyUnUZgH5VUjJA+CFXly1whwUhObX4+tlEQxdJPk2SmZcX1PKusrVTg026Au2Kuha+3LQOD+za5XUtQbbkB5pRxJrWc+nat4hxoEV3/vml+uolYja0hP4DWnSpqrm+ZmpX+5WPF+eRP6dpVVodb80lRKUzlwVKBPKvWVD+XkZquipZu2ID/Zg3mxenWGnl5ps/oLcc2doy7uHG6d8sVtLNSvzWc32PlVgrsUDFtnNSFPMjkJAaKQtjCDP5BAYWQXdkxT9/YA+cX5jhzb3n9QHvjw0TT/XnPC/u643RD9F2AdehrO49EO47IathAbVhIDGMqB5B10ppb3+ok5T+6MFKW7rDsb9YLCMPw+VxeSI8QR+LP42e5GEl8gi+Gt6KBhN4oxro2Vnye/IbXBZXBDyYnxvC1TNODP1/QwRnJfuCDEH5jyL8McskyNQHZfhVGUmlmOkGRBm/2zB4U+3bVnXLsrXNZq1W2max9C2xTrH0/WSxCHdYpsyoId/XZGoEKVlVsWBMafkyUlxTM7WmJvrhKH7jyL6fRvLto/p+Yvl/j4rnR8mPbJO0WnPz2mW3VG2zQG2LobYkyxSrcLuF1lBdzbhl5aVjFlSokiVBU4j1Ta0ZOjJ6zSjy/ahox0jyfX+e7a8Zpdh8QfcATZ/CuJ9+bSsy7QZONnoHBHhoQc3FjQfxAiWv6lq9b/WalqmXwzB99XEEzSKZ80xR5Bj9Epnxbx/a9w2mGBloyuq1kxH0rp38GX3G8aEiovvQQSZ8hndghEXmdgPtmkqsUrv0Loyom2nIFWcsn6OBqJiNSoU+Q5aQOa6QeTezNHAIjyqxDHky9qGH+FtPtF1Se5FHN3FGS07OnKdLdWpXiU5HG6V3W9svuKCdtltcoip5qGWk0UDfj0Z18sK776mufoU+mp72UPS7adPGcTF7VkVWg7JxnCP1LCYFdy4vHo9AplCSxrg6JZGmhPUQ/3KCI+69YcoPppF8l6prgP/+MeZ2j0Em542gP42Yx2L7tyDqCvds5VuZHImMUSLrv3U7+eb29C/pu1+itJwh1G7Yk2mKN74b4/7bRsybN8KmfA1gDf8oYp8fB7wHa40TJzZjsCcVrOU0+XfyQS6TaYjqOE6P0u8Q4ULQxZyWlKnF/+JzM3rT25e0WcIk9eS3G9KtNPPk1yptVemIQFNxqfg9/f1zpDbrAqcro++zVmH55ZV/mU2vW1+ybnrJ+lr+h9ipbPp78aqMM5evglq0/+y7T6OjN738O0FtyXRmWVPUy+jvD8KVGS7nBb9f0Xfb5MrG9SXT13nWkXWz/06fILXZcKY1i74O45cSiwmI9lD53GhuAtfKzeHauU5uF3cPt497CkZS8CsMhVGApocIkK8kgCyjSpYwXpdDMJnxg0cSIiMt0ZuBo2RGUWboG1k5dKMoQAwE9WWE6FG1iJyDoDeYUWeI1nS1CBGZBNWu88oicpz5eOQ0w4OxHgHtsezMnkr2YT1OxS05aEBMGQQ8mkMMJjNcIB9ZMGGXJXfUxAU91vkTdlWPmrBQeLXAfuPC3fSjakzvJp7ItY2qzFJNklaj1VSPVRemqdOG2FvTUtKAqL0TDuW0arugH9VFd2b5VaNLyW+OVhpUclqe7ZYHeVJXV1lExh3NWDqcnH15CiztJbnk8SUYtI+Prro1maRm6KsnXFOkkdSaWqdWrZ+Y/9jMS8iDj6fk2g/MbVkpyz6BVi2/hJC62nLxID1JckdPmLArl9CTfDYx547afVsuyeu7bflb+5zBHXcvf3ufI7iDX12xgddkZeY2hIpzxiwgdyQLuSptqkPKkdTqB18ndyvHRA7knhkToCmj36Q3Ejk4JCnrwhkzN5AKeljFGzOs9MFxjZMBTRSiGyOpmHTHqjsRpqhS/u4XMglP7vqObBGINk0klq+aR9Li0id/Clnyc1vXfTpvXzkJGbL1OrqL1NAPiUBi3+b5LcmX9dLjLGpWADjdDLcLpT84QWQpw2zihFM/kCWL5uqndn49//DYsYfnf905VT9/AVlC8heQMb/7DWle+ZwsTGxsnCjIz62kB37zO/obwFT3w7w0y/OA+xzO7K2UaHB2/Nn0MNMAfgDPKdjdEtM6o7Y/rvfHZSbYY77oyBJLimGsEFA+XIHHyk0hIpuHNeWtn5CeKaVI6dHWzwVdqpEeNabqhPAVvLPFPjnLlpczkRc6DCqNVp83/tFxzWu/4mvKpudWXVWzueaKiopA7fpNHdb8YY7iFGt1dkNWjSEzO6lM3PS3j+dcbZZ4PvqpTpeertPxLl5ls01YuXLlbAfP56aoJClJbfIPb4pEfWnViyMzl765sboi3fbw7j92t63lv5KSckdPne1xTE5Vm7NqZk65wO5N9I8dTF8wa/AsYtNhRAR9AoVhUyItnn0ZqGb2jxQ0bugKi8HHlNBCjGZgxgkpStw4DBEDlLqqP4awCp6Xo3wFhQVnI4Iurs9g5LUXY5OJOtmIYXTwg2p4fxhoZNqNtHNeIfFAqgQdaQPqqRGfgIFZlLOxq+rIaRSDcuqE5w6O9aE838xIGGY5ThLMWkQWHwqfD4wDC2yCzBC+cNxGS2HVlBaElTiSA6YQcQsTRiPG7K6Ufo5HPk+wPnKK6H+oY7YlSMozixGdM17ACADsogRrJQd6k6NhuaSJ7s9ITs8LTR5SXT1k8pjqag35V3HRzCFDLps86bL09L5qZQziNCZur7cBFZ5J/WlDqlsmVw+pqASC5RK6Vz+kGm65bBL/TFZ6RvSRGB0qn9P+HBYzw3XOG5zL35aScxurfNEnFiy0nSFOMp4+C/Ok7dz2RRIl3NGmWCQNxRzr/xd+L33QnED/ZgOLnJsPPHUh5+EqWOy3OoyGqYmry0VGTtsZaf1/ySuTCHhpplZn7vksmvB/lU2c4dAJ4YHALudNYjHsEtZZRjzGSXytsUDAsjdo9rrjgiNnjG1IXG4sqo9SM40qLjydOMMHpryy6NiHCuCPeJQQCgrDgO1I+tV1x/iX86w9C29jIaucCUvx/EsQPaSYfwV6SjG/kfMvxNgRyw7YKCX2T3+/JL584ismxD5XAU+WHr/DHXRriE0DUF9WbgVwE2FPw7hC6EjUP3jocc9CRrIQyziLhUFtKE0cHfRQU/0CGvihU1xMJoFHg+BiSpKOrsp1pHuGuAsL3UOG5jUSz4whbndhExQMGizKi7qUFH6ULJfSp2R3cSBYWJg9JEia605mD3G3FbrdxeeMG/oMpbJvGZiAc3MpMa6UlorGoFk2OxP2QhXK/8t5pPDi3mN+X2JbaduBdQcO0O6B/a7GizV8VnLym6WyONvS6PE0ehKbXBUJV4XDiXvaNneYblJ+/srXmmsXf1+al19amp8HMOED7gMZCGIlHj5RviHncLt4/H6catDXSTz3tLXds4deSC/cw3JkH9lHf2Ah8lhkb8lzzknM9ZzFUY1fxPxJFb4fZ0QW9gr7XogXNtFmlt12LHAHzcjzIwRCrjqCVkEYlHhV26IIvh9NgRzpFNfSj2C5sQisnxz4fXQ4HEKqxCaLxwuKfclU54aZR2x6HfOsljEkLNwWPbKdn0sXRyIY8TOCsLTvRJj4oh9u5+dhBIpItEnVDLsE+ynsJb1OCAKaF21Os85mFnR6qE922kS3zia5v8BIdBvJWkD3azH3BYas20ivh4ZfDzmxlKzt2Tr4FABbPLWR3TrI38gMOO8XUuz/jtM8v6/Re/8N+3k+ZyLVqf+WJU2N4b0aaH1hDBs0AV/TzE3ipgJvMxO4m/7vlzDZIBO/KlJCm1ERE9YTJYwTfshkoACO+8PyeY12/ISeeE5etPu9bIt95MTDbFY6WdLXrk0rTtNq04ymVC1/KC29MD0tTVusTYt98QT+cWMx1eM5VC/jkdSI2DhcV+bxlNWFY2mPUQsVGHugOm2qqccA1aUbeoz4iB6tItVm0fLCCfvI4O8wJFBV54vYnRjFODFaN38y+rC4HiMas2RwuP++L/rjG/95IL6x2O/HNfAlLU6vDEOMiiRKsDadEENsYRR82QsqaUVlgR0Dd6FZXkRxRZRu6fGL66ZU2AsKCugB9PhGsViM3EB99Q3yCHkLdyHHBU0hKYjsaqDKik7GbuYWhyLUNAkjWSFTYVXJTFzF2PM0FssqIZ9EIrkdXR998lFXR44j66LR+SPqhg4JBaxlpcaUyrIWz5xUR+ucoUS4cUSWx5GTm54lprcEF44lpLCmoSTZNOHeO4aMnLV/u1ZOTnJqb3h8VMM9V2ilpCRn+uq7dt5wT46udvEV2zuuLKu7++6xRnuF352mzdxQmu02ZUgaonEOmVQ8YqNaMJW4h7vGpf55dEnSlGBeQ2VdYIyzboy2oLT9mdnJDm26nDz76SVr9kxR8pPuoCcpqr6BZvIAcbEX+Pv/NSYl+oyS+ASG7b/KY5RxSHWYV76OpExetsEM/l/zyIAgeYCTE787EItIeZ6krx2XAxwo9CTHLWByCxv3/+q6FuA2ijN8e3fS6WHLOr1j6SRZkvWwZVmWLQk/JL9ix07sEOJHnIdNnDqxE5OWJiQ4DpCAg0kIBdMEY8gAtkmYNn0QGmAMhpI+hgooDJQQk2mnDR3SyQCFBsJAY2vp7p5k7EBHo7ud092edNr99398//dfj0YS8e6nnPzp1Tc9d3ENOl2qpAIyB+mwjpS8dnxvsyf2m1hParOuI9WEZ69+glc2tBaMgCslQbfTnGE3C2Xr11ekmxvWpZtFxcyl/Pzld+xrXLxt3CeiXffNlYh8j5zLbC/1Wv1uoz6P9i9ul3ltuO2SUWL9RjG/CsdxHFQAWcRrKSqcEzZE4wztCbBcmGT7AjJe+Th2qEgMOI5A/DIGfDwAcATUQIDZeGhLjeRg9JqjzKXLHw++NrxMVpB3dPrvlwawFJm7IKkuntkcsMeead3cAKfVvkxkK/NetAWx9je6dAaFS88fG2rIU3o1vEJZqtl+9Xa9iWWdBsO7pzbXKXy8Rq5sSmRXrikYf+sTAAZ3nhm6gbNkE5L5udc3N4QMuWBXtcNXPKNFPaP+M6W82gcPlLpMEpdXL2HN7UV1vFyh9PHrZhrDOtaJBDPLmnbX9qOeFT7NYNrGSOOMMVsEzyHpgpZ0su7q5UCPlD22iVgZOCxF6pDCs6P0vQn4Llq9sao/mtydQFZQfiJVEwL8hJNKY8RiATx+OfliHrC/FunbMf86+x7oQ+pBHxwDF6CdPQXt4EIK8yzaO99eW4zZnnAeMA5M4llAfw3H0BVj6Gp0FeoF9bDoWvTPa8VrE8wlQhCGtvh88Y7Xnpu6DyebM5GbXEI/qS99ixQOG6cYYcwzUuCRQpjA4xkbc5huGE/eVAx4nj83gBFX4rnAKtWpJCLOH40XabgkwJBhpdXhFOP0cVY8TCLtRsP8DdgvZUJtVWPE5Yo0VtUKMpnSqZSptQpNeTCeZy1tXOOXadVq92hhuDVbD+RyRybHa6VCpMDhKIgIUi36VW7tg6XW9BdlVjIqf3T9ttGnRretj/pVDGvTumUSmcffvOb2uo3Hb2w0MjK3W508V7+3Lp6JTE07+pxW+SLr+tZFfCoadYc6rRqqpzD0e4TwrJMaaJhSCkd7iM1Jz3+G5aeIxMaRkytpiyGFxUHv+dzSm9As9SHNYwPOR0l5T40p9ynhs8AeVMIWgpEaDIZqYGeBHGemYC4RjPWKanH0DhhEv2h03jEqwhqwuzyGnq+EJE6mi15wb29uHrNYnC7i+WxuWi5YXI7rtzCfH9IYDMGkOngjf0jjD9L/Meg91ckV9GeCKlN5SFEqJHnBrDzEeY1K+oUwdmq2lpYTr6bNE2osYewljS2a2dN+Wwtj8tvmLtj8ktWi17K5acW82xLdqrmpUQC22V+BgcJgAA1c3l8IDxZ18fBTWYCxwc+UFosAD1osSqBBdwUDBvNszIe9keWlrcQduSWj2gdvxvUfn7ZWrwIjNj+8eMbm9+MxuYU6yK3mbkWaeynS5yhAsGcgLrEiASYHVlbKIflNA7RRATQCSYQKwyPjtAediwsyRokIZJ/XZ2dozUCtzFGZMvUaU5YeiYIpvS+cu0SizSlZY/knvNe3qa0pv69308YqK5jara6utRsPd98s2POzTLNafRZPGzLyFEDjK/DpJAM6s9dlBlqlU6VnWIVapYMqMGWp7Ozu3VrQ1NLrht/ASWFNxMrTZlfYrQdTk8ZMv914X/ctNntNNT93t15tWqKyZHoVQO3hnHpRR6OoD7i3CRdaORpJ/dROisI8AwQnKgaCc8B385m+ZbeqBItynzCEH3N9z+c5hRZegk6WpAjR8FDzxAElEl84uLdXvDK88XGv19ew0zSnYOoUgGbQi5YxGXJVpkZj0GvUqgyFHK0dNKAB0nJstqBgNKkywLNlwcLobfuvCxaazRq6yOuwVZTmecvKbMjSVILaHRMTO/pX5YYDOcPQ3zvS2zsiPT67aviVre3q1hpmj8loNsrUnMyoNGSps2RyuUyVocvSIP1GxrESn89tMSuUfFby8I6iTVZb62qrtTBYvEOikkulnATJKSYzg+EmPpxovq629AfW5cg6xLfopVI5lUrpB1Q11UiYdQmQuzhkZXA5Zw4H7YwY4BSg8bNTIGW0RIOGj9tpl+BK8AZjgMGnudJ5H8y6QkfHDeC6RJtvZduyGP/k668Ola340e9cDnlFOdf9WHttzfbRWpjReSxxblvnWvgK/MrSs//w8s6Tpaa1O3ZV/XhDDcijg4QQUfqByjPzQPOYNrRy3w1da9V18bITx1x9v93troEz8K6L4yB0+Y1hZ9bv+ydvDNRVrNoVszg7D84VE9NKzOWkCAbZQZXguuyLq5+S8CWxeOLAjn+kAADxkqe8FkZ9cTgiDczzbpDSrfAsod+oddng6ZzyismK8pycyHiEbVqYPyyWfevpwRwcO2OPHEokPwrGWsrLyspbYsGQ6fx5U2p9NhAuB1zNIkJUbFakJsSJ8zjTCvNRRTBOC6Dlkv1aZc7LzaQFk4XvKAT+gmhPKKSOWOd+eE4AxQZ1ZPZT7LCh5aqV+dza6zc2ZLnj0QIznJyYdMeZAwJ41W/1JH85dxuxP17jbpI+SZmQ5hugakiGhlEMXmOyo0rg9qCJkBMyIlsQ4IcRJQVnAGbVx/hJTpobNRjRLsfhiaJp40KfO9xyPAelU2pBuPqN0CLwgvDEv2/d88Vl4Hn6xKdCa7LDYXtWt8SjKJr7a99r+5u3P7J3D/uvjY92oFPg+fbu/rjqS/Do1qV7aGnyHbSg7NotHeZRP1ehIOD9+MOffzX2cMVnAlydW5zvPq3lGMDCoy8M7O87MH6Lt71jw8a7TqMzNP2Sz1/a08Em/wJGju/aLdZj3ITsrW2YA3K+oqXT4fLkYowJwXBhGWKU8Ebsa5kGDReHhi7CqelPYP8+wLTBByeBfmICfjw5kmx7Pvmzl+8Ed3Hb7v8CPgdH4HNf3D8zNbbz4AmkU1UA/YnhnQ8n6Jcef+oMktN3UNNcG6en5FS2WFHCbRejeQCTlGCi1YgGyWP0YF04pIfEODbBNJKBVGmhj2b/vKzbo/VFp9/seaC9xbf/yDizYwRUtYRBf1f9+JH9vpZ2yd0nPsZR84/gn7x3Hhmv7+oH4RZQNVKPLkw6Wtof6HlzOurTerrrR+CZRZg2LUYIXovKAdoc86JpEPreLK4KJ3zfeT7XlXuvO9ftPvj9WL336OHkIDzljMWdTqejMuZ0/F+8SbrGDXpLFuy/rWqD8R/gikgMv7Cdrh9LIOjiJp0HN4rmfhmJxYXjbHGItaF/CBs9oBCpcH5V0bHH/rHlSdDV2QUzBnsDa/R6qSqRot5YkkhWJ5fJQ4ZlJhO4TPq7QvVIbuW2kup0fC6D8yCRqGRyGB2SjHSYxxSSOCUSqUxDoHMvGOwC8BdgqdtTB0+CzsFBaS8AAELdQ5tCm47qIITfNMOj4KZmgPqmtfjoQ4vqWS2ok0HwKQveuPRegthNHantCIldXcEQGczwj70FGG8HrmC4DswQ8/xo6j7qj1whh6sLYZkjjjikrVJIXSAqQgQdZMWYIdIc3JyPkaqyTTGtZn1yZm+gNbuw5OU/5A+Dwf8eqlmdaysPLn2mshgsbXr3vLRfbm1YYsyQSgrgPfeUvPhyNKBryR+mS66+k7+1u3ODI5RRG/3bsvpKBYVzlkUbzr6gJoUdfSMf8SOnKsEiY0USduq1JJlcQra5IAWl4yUkQuHUS47ANtjWiN2SPbAf7hIhdQnz/FHmifkmjt8g620Ab5HhzJ5KSDCy/XAjeB4u/xD+HKxfDrrg5FsnT8Lt88cb51uJdP09cX81XXuBepHwGh5P1WqSEnWfFSlkkKzUEOgZ0lXwQwaY649+f6Ech2fTcpz56TkBvonkOKtBXV8rxkEXFuNztwmwDIlxupU5QM1z4h9P4Zgw+VIYMzlJj6dKMGOaXLLH9tL/AIxzQ2cAAHjaY2BkYGBgZOzcvTpCNJ7f5isDN/sFoAjDxavXJJFp9gtgcQ4GJhAPAGEpC8MAAHjaY2BkYGC/8P8GiGRgAJOMDCiAkQUAdcoEZAB42mP8wgAGTLMYGBiBbPYLDCnsFxh1gPR3ID6BxH8F4YPZE4C0CEQOjk8gyTOg0aFoatEw4wSIOnTMrMB+gWkPKgbZweQEpG8g3IfsBsYVUHoCmhwDFjZI/zGgeRFY3HUC4kew+08gaBgG6WE8A3U7CKtguh+uHuTHL1BzvqCGFczvsHBGtwfFzAmoZqKHPcNxNLEsoJ4uVDeDzeQE0r5APAPNLjM0d01AsysPiDmRwhCGJwLxRix+g+GfaOLbkMIQyc/ofJj5cP48JDOAdjEeQgtjkHs3AHEAkG0EDY/jaH78ghnGGPGLnjZDoOLCUDftBeKFiHSGEi9IYtgww3k0+1LQ7ETKQ2AMTaPo7oX75QtUXRpCPYrZIFyHFv6weOqB6tkFEmeKYGAAANkHWesAAAAAJgAmACYALgCGAKgA1AE+AZABqAHuAi4CkgLIAxADXAOSA9QEHASYBM4FCgUyBfIGHAZkBpIGzgcSB0YHqAfaCDgIUgh4CJYIwgjsCQgJFgkkCTIJQAlOCawJwgnuCi4KZAqCCpYK1Ar2Cy4LdgvoDEwMkAzEDPwNNg1mDZYNxA3yDh4OYA6gDswPGg9+D+AQBBA0EH4QxBDyEQ4RShFkEaISQBKIEqoSzBLuExgTqhPmFFIUfBScFLgVDBVUFZgWDhZQFpAW0hc0F8oYRBi4GNwY+BkOGU4ZiBniGigaYBqGGqoa5hs0G4ocPBxsHLwc7h02HWwdjh2yHkAeeB7WHvgfdB+2IAogbiC0INYg+CEQIZAhzCImIpoiuCNiI9IkWCSKJNIk7iUQJUIlkCWsJdwl/iaaJ0InxigSKCwoQihcKHIojCiiKLwo0ikKKSgp5CpKKrQriivmLIwtCC1SLaot5i4SLiAuoi7mLxgvTC+iL+IwSDCaMMYw8jEuMWQxfDGeMeQyujLoMzIzTjPQNBw0YDTWNUA2YDaMNxg3UDeMN8w4LDh0OJY5BDlIOZQ5rDnWOiQ6fjq2Ouo7EjtIO6g8Ojx0PKo9MD2cPhI+pj7OPuw/Cj8gPzY/Sj/CP9A/5kCUQQxBukIoQnZCtEMsQ2hDskPyRCZETkSCRLBE9EVaRZhFsEWwAAB42mNgZGBgZGHYwCDIAAJMQMwIhAwMDmA+AwAVeAEMAHjajVLJTgJBEH0zoJHEcPDgwXiY6EVNWMSALFeXRIkhGsXrIMMSEQYYFhOPfoEf4ne4XLx68RuMH2B81dMQwlxMpadfvX5V1V01AKJ4RghGOALgi8vHBlbo+dik5lvjELL41TiMDSOj8QLGxrXGi+Q/NI5gx/jReBlr5rrGL1g1J7GvSJpFjd+wZD5o/I6o+ejjzxBjn3CMEoqwMISDHvpoooM2/RRXh4wFm/499xaRp1RB9YjIQ4OophiPyMEYN/y69Ca6LWo8mos8ErSRsjjqPB1wl4p18i1GSGybNRyuBFmXbIz5bXSplDx3ZDZxpCseBupt44DqPrWSraOynVNRZy15TQ+7zJSkZVDAJU5RxhlRMCo2FxdUWHOKq7kOzVYq4YKMeLNsg0pP5xtOI+LY57fAt9q4ZU7R1MhKhyqcUhxptbLYo5f7x93LqstV3qKneit3ryrUVHOw1JRtVhxppTtVTiZUpl+ZmbV/V2Gr9E5ULfmHUuosx2kLzqsXCy97Wr1H5uXqXjmM60/nabFLXTJNnkn91h+P6YatAAAAeNptlGV0XFUYRbNDocXd3R0y97v3vTc4FFLc3a3QQilFSilW3N3d3a24u7u7u7uXVbLzj/mRs2bl3X0nJ2dPR2fHf68xoztSx/+86DP2R0cnnYxDH8ZlPPrSj/GZgAmZiImZhEmZjMmZgimZiqmZhmmZjumZgRmZiZmZhVmZjdmZgzmZi7mZh3mZj/lZgAVZiIVZhEXpokUiyBQqahraLMbiLMGSLMXSLMOyLEd/lmcFuhnAiqzEyqzCqqzG6qzBmqzF2qzDuqzH+mzAhmzExmzCpmzG5mzBlmzF1mzDtgxkO7ZnEIPZgR0Zwk4MZWeGsQu7shu7M5w9GMGejGQv9mYf9mU/RrE/B3AgB3Ewh3Aoh3E4R3AkR3E0x3Asx3E8J3AiJ3Eyp3Aqp3E6Z3AmZ3E253Au53E+F3AhF3Exl3Apl3E5V3AlV3E113At13E9N3AjN3Ezo7mFW7mN27mDO7mLu7mHe7mP+3mAB3mIh3mER3mMx3mCJ3mKp3mGZ3mO53mBF3mJl3mFV3mN13mDN3mLt3mHd3mP9/mAD/mIj/mET/mMz/mCL/mKr/mGb/mO7/mBH/mJn/mFX/mN3/mDP/mLv/mHMZ1j//2dfYcPHZxKd/+x2d3q6jJbZjLDzGYxK7M2G7Pdky15LXkteS15LTktOS05LTktOUlOkpPkJDlJTpKT5CQ5SU7ICc+H58O/K+SEnPB8eD57Pvs5spwsJ3s+e3/2fPH3xXuKzxXvKT5fep/3vsr7Ku+r5FRyKjmVnEpOJaeSU3u+9vPWcmo5tZxaTi2nllPLafw8jbxGXiOvkdf08JJ7Su4puaPkjlJX73OVWZuN2XNvckfJHSV3lNxRaslzT8k9JfeU3FNyT8k9JfeU3FNyTynJc1fJXSV3ldxVclfJXaWQ576S+0ruK7mv5L5SyHNnyZ0ld5bcV9hfdPW+DzObxazM2mzMHm7YY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY9hj2GPYY+hr9Papr5Hl6W1kefob+hu5h5d9n3vfly6zZSYzzGwWszJrU46e58rzep71POt51vOs51nPs57nWo6+Z33P+p71Pet71ves71nfs75nfc/6nvU963vW96zvuZHXyGvkNfLa8try2vLa8try2vLa8try2vLaPbzi90vRj6IfRT+KfhS9KHpR9KLoRdGLohdFL4peFL0oelH0ouhF0YuiF0Uvil4UvSh6UfSi6EXRi6IXRS+KXhS9KHpR9KHoQ9GHog9FH4o+FD0oelD0oOToN3TgiAFDRg4b9C8VmLmgAAAAAVWwJZkAAA==) format('woff'),url(../fonts/dashicons.ttf) format("truetype"),url(../fonts/dashicons.svg#dashicons) format("svg");font-weight:400;font-style:normal}.dashicons,.dashicons-before:before{display:inline-block;width:20px;height:20px;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;font-weight:400;font-style:normal;vertical-align:top;text-align:center;-webkit-transition:color .1s ease-in 0;transition:color .1s ease-in 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.dashicons-menu:before{content:"\f333"}.dashicons-admin-site:before{content:"\f319"}.dashicons-dashboard:before{content:"\f226"}.dashicons-admin-media:before{content:"\f104"}.dashicons-admin-page:before{content:"\f105"}.dashicons-admin-comments:before{content:"\f101"}.dashicons-admin-appearance:before{content:"\f100"}.dashicons-admin-plugins:before{content:"\f106"}.dashicons-admin-users:before{content:"\f110"}.dashicons-admin-tools:before{content:"\f107"}.dashicons-admin-settings:before{content:"\f108"}.dashicons-admin-network:before{content:"\f112"}.dashicons-admin-generic:before{content:"\f111"}.dashicons-admin-home:before{content:"\f102"}.dashicons-admin-collapse:before{content:"\f148"}.dashicons-filter:before{content:"\f536"}.dashicons-admin-customizer:before{content:"\f540"}.dashicons-admin-multisite:before{content:"\f541"}.dashicons-admin-links:before,.dashicons-format-links:before{content:"\f103"}.dashicons-admin-post:before,.dashicons-format-standard:before{content:"\f109"}.dashicons-format-image:before{content:"\f128"}.dashicons-format-gallery:before{content:"\f161"}.dashicons-format-audio:before{content:"\f127"}.dashicons-format-video:before{content:"\f126"}.dashicons-format-chat:before{content:"\f125"}.dashicons-format-status:before{content:"\f130"}.dashicons-format-aside:before{content:"\f123"}.dashicons-format-quote:before{content:"\f122"}.dashicons-welcome-edit-page:before,.dashicons-welcome-write-blog:before{content:"\f119"}.dashicons-welcome-add-page:before{content:"\f133"}.dashicons-welcome-view-site:before{content:"\f115"}.dashicons-welcome-widgets-menus:before{content:"\f116"}.dashicons-welcome-comments:before{content:"\f117"}.dashicons-welcome-learn-more:before{content:"\f118"}.dashicons-image-crop:before{content:"\f165"}.dashicons-image-rotate:before{content:"\f531"}.dashicons-image-rotate-left:before{content:"\f166"}.dashicons-image-rotate-right:before{content:"\f167"}.dashicons-image-flip-vertical:before{content:"\f168"}.dashicons-image-flip-horizontal:before{content:"\f169"}.dashicons-image-filter:before{content:"\f533"}.dashicons-undo:before{content:"\f171"}.dashicons-redo:before{content:"\f172"}.dashicons-editor-bold:before{content:"\f200"}.dashicons-editor-italic:before{content:"\f201"}.dashicons-editor-ul:before{content:"\f203"}.dashicons-editor-ol:before{content:"\f204"}.dashicons-editor-quote:before{content:"\f205"}.dashicons-editor-alignleft:before{content:"\f206"}.dashicons-editor-aligncenter:before{content:"\f207"}.dashicons-editor-alignright:before{content:"\f208"}.dashicons-editor-insertmore:before{content:"\f209"}.dashicons-editor-spellcheck:before{content:"\f210"}.dashicons-editor-distractionfree:before,.dashicons-editor-expand:before{content:"\f211"}.dashicons-editor-contract:before{content:"\f506"}.dashicons-editor-kitchensink:before{content:"\f212"}.dashicons-editor-underline:before{content:"\f213"}.dashicons-editor-justify:before{content:"\f214"}.dashicons-editor-textcolor:before{content:"\f215"}.dashicons-editor-paste-word:before{content:"\f216"}.dashicons-editor-paste-text:before{content:"\f217"}.dashicons-editor-removeformatting:before{content:"\f218"}.dashicons-editor-video:before{content:"\f219"}.dashicons-editor-customchar:before{content:"\f220"}.dashicons-editor-outdent:before{content:"\f221"}.dashicons-editor-indent:before{content:"\f222"}.dashicons-editor-help:before{content:"\f223"}.dashicons-editor-strikethrough:before{content:"\f224"}.dashicons-editor-unlink:before{content:"\f225"}.dashicons-editor-rtl:before{content:"\f320"}.dashicons-editor-break:before{content:"\f474"}.dashicons-editor-code:before{content:"\f475"}.dashicons-editor-paragraph:before{content:"\f476"}.dashicons-editor-table:before{content:"\f535"}.dashicons-align-left:before{content:"\f135"}.dashicons-align-right:before{content:"\f136"}.dashicons-align-center:before{content:"\f134"}.dashicons-align-none:before{content:"\f138"}.dashicons-lock:before{content:"\f160"}.dashicons-unlock:before{content:"\f528"}.dashicons-calendar:before{content:"\f145"}.dashicons-calendar-alt:before{content:"\f508"}.dashicons-visibility:before{content:"\f177"}.dashicons-hidden:before{content:"\f530"}.dashicons-post-status:before{content:"\f173"}.dashicons-edit:before{content:"\f464"}.dashicons-post-trash:before,.dashicons-trash:before{content:"\f182"}.dashicons-sticky:before{content:"\f537"}.dashicons-external:before{content:"\f504"}.dashicons-arrow-up:before{content:"\f142"}.dashicons-arrow-down:before{content:"\f140"}.dashicons-arrow-left:before{content:"\f141"}.dashicons-arrow-right:before{content:"\f139"}.dashicons-arrow-up-alt:before{content:"\f342"}.dashicons-arrow-down-alt:before{content:"\f346"}.dashicons-arrow-left-alt:before{content:"\f340"}.dashicons-arrow-right-alt:before{content:"\f344"}.dashicons-arrow-up-alt2:before{content:"\f343"}.dashicons-arrow-down-alt2:before{content:"\f347"}.dashicons-arrow-left-alt2:before{content:"\f341"}.dashicons-arrow-right-alt2:before{content:"\f345"}.dashicons-leftright:before{content:"\f229"}.dashicons-sort:before{content:"\f156"}.dashicons-randomize:before{content:"\f503"}.dashicons-list-view:before{content:"\f163"}.dashicons-excerpt-view:before,.dashicons-exerpt-view:before{content:"\f164"}.dashicons-grid-view:before{content:"\f509"}.dashicons-hammer:before{content:"\f308"}.dashicons-art:before{content:"\f309"}.dashicons-migrate:before{content:"\f310"}.dashicons-performance:before{content:"\f311"}.dashicons-universal-access:before{content:"\f483"}.dashicons-universal-access-alt:before{content:"\f507"}.dashicons-tickets:before{content:"\f486"}.dashicons-nametag:before{content:"\f484"}.dashicons-clipboard:before{content:"\f481"}.dashicons-heart:before{content:"\f487"}.dashicons-megaphone:before{content:"\f488"}.dashicons-schedule:before{content:"\f489"}.dashicons-wordpress:before{content:"\f120"}.dashicons-wordpress-alt:before{content:"\f324"}.dashicons-pressthis:before{content:"\f157"}.dashicons-update:before{content:"\f463"}.dashicons-screenoptions:before{content:"\f180"}.dashicons-cart:before{content:"\f174"}.dashicons-feedback:before{content:"\f175"}.dashicons-cloud:before{content:"\f176"}.dashicons-translation:before{content:"\f326"}.dashicons-tag:before{content:"\f323"}.dashicons-category:before{content:"\f318"}.dashicons-archive:before{content:"\f480"}.dashicons-tagcloud:before{content:"\f479"}.dashicons-text:before{content:"\f478"}.dashicons-media-archive:before{content:"\f501"}.dashicons-media-audio:before{content:"\f500"}.dashicons-media-code:before{content:"\f499"}.dashicons-media-default:before{content:"\f498"}.dashicons-media-document:before{content:"\f497"}.dashicons-media-interactive:before{content:"\f496"}.dashicons-media-spreadsheet:before{content:"\f495"}.dashicons-media-text:before{content:"\f491"}.dashicons-media-video:before{content:"\f490"}.dashicons-playlist-audio:before{content:"\f492"}.dashicons-playlist-video:before{content:"\f493"}.dashicons-controls-play:before{content:"\f522"}.dashicons-controls-pause:before{content:"\f523"}.dashicons-controls-forward:before{content:"\f519"}.dashicons-controls-skipforward:before{content:"\f517"}.dashicons-controls-back:before{content:"\f518"}.dashicons-controls-skipback:before{content:"\f516"}.dashicons-controls-repeat:before{content:"\f515"}.dashicons-controls-volumeon:before{content:"\f521"}.dashicons-controls-volumeoff:before{content:"\f520"}.dashicons-yes:before{content:"\f147"}.dashicons-no:before{content:"\f158"}.dashicons-no-alt:before{content:"\f335"}.dashicons-plus:before{content:"\f132"}.dashicons-plus-alt:before{content:"\f502"}.dashicons-plus-alt2:before{content:"\f543"}.dashicons-minus:before{content:"\f460"}.dashicons-dismiss:before{content:"\f153"}.dashicons-marker:before{content:"\f159"}.dashicons-star-filled:before{content:"\f155"}.dashicons-star-half:before{content:"\f459"}.dashicons-star-empty:before{content:"\f154"}.dashicons-flag:before{content:"\f227"}.dashicons-info:before{content:"\f348"}.dashicons-warning:before{content:"\f534"}.dashicons-share1:before,.dashicons-share:before{content:"\f237"}.dashicons-share-alt:before{content:"\f240"}.dashicons-share-alt2:before{content:"\f242"}.dashicons-twitter:before{content:"\f301"}.dashicons-rss:before{content:"\f303"}.dashicons-email:before{content:"\f465"}.dashicons-email-alt:before{content:"\f466"}.dashicons-facebook:before{content:"\f304"}.dashicons-facebook-alt:before{content:"\f305"}.dashicons-networking:before{content:"\f325"}.dashicons-googleplus:before{content:"\f462"}.dashicons-location:before{content:"\f230"}.dashicons-location-alt:before{content:"\f231"}.dashicons-camera:before{content:"\f306"}.dashicons-images-alt:before{content:"\f232"}.dashicons-images-alt2:before{content:"\f233"}.dashicons-video-alt:before{content:"\f234"}.dashicons-video-alt2:before{content:"\f235"}.dashicons-video-alt3:before{content:"\f236"}.dashicons-vault:before{content:"\f178"}.dashicons-shield:before{content:"\f332"}.dashicons-shield-alt:before{content:"\f334"}.dashicons-sos:before{content:"\f468"}.dashicons-search:before{content:"\f179"}.dashicons-slides:before{content:"\f181"}.dashicons-analytics:before{content:"\f183"}.dashicons-chart-pie:before{content:"\f184"}.dashicons-chart-bar:before{content:"\f185"}.dashicons-chart-line:before{content:"\f238"}.dashicons-chart-area:before{content:"\f239"}.dashicons-groups:before{content:"\f307"}.dashicons-businessman:before{content:"\f338"}.dashicons-id:before{content:"\f336"}.dashicons-id-alt:before{content:"\f337"}.dashicons-products:before{content:"\f312"}.dashicons-awards:before{content:"\f313"}.dashicons-forms:before{content:"\f314"}.dashicons-testimonial:before{content:"\f473"}.dashicons-portfolio:before{content:"\f322"}.dashicons-book:before{content:"\f330"}.dashicons-book-alt:before{content:"\f331"}.dashicons-download:before{content:"\f316"}.dashicons-upload:before{content:"\f317"}.dashicons-backup:before{content:"\f321"}.dashicons-clock:before{content:"\f469"}.dashicons-lightbulb:before{content:"\f339"}.dashicons-microphone:before{content:"\f482"}.dashicons-desktop:before{content:"\f472"}.dashicons-tablet:before{content:"\f471"}.dashicons-smartphone:before{content:"\f470"}.dashicons-phone:before{content:"\f525"}.dashicons-smiley:before{content:"\f328"}.dashicons-index-card:before{content:"\f510"}.dashicons-carrot:before{content:"\f511"}.dashicons-building:before{content:"\f512"}.dashicons-store:before{content:"\f513"}.dashicons-album:before{content:"\f514"}.dashicons-palmtree:before{content:"\f527"}.dashicons-tickets-alt:before{content:"\f524"}.dashicons-money:before{content:"\f526"}.dashicons-thumbs-up:before{content:"\f529"}.dashicons-thumbs-down:before{content:"\f542"}.dashicons-layout:before{content:"\f538"} \ No newline at end of file diff --git a/wp-includes/css/editor-rtl.css b/wp-includes/css/editor-rtl.css deleted file mode 100644 index a961b7afd1..0000000000 --- a/wp-includes/css/editor-rtl.css +++ /dev/null @@ -1,1748 +0,0 @@ -/*------------------------------------------------------------------------------ - TinyMCE and Quicklinks toolbars -------------------------------------------------------------------------------*/ - -/* TinyMCE widgets/containers */ - -.mce-container, -.mce-container *, -.mce-widget, -.mce-widget * { - color: inherit; - font-family: inherit; -} - -/* TinyMCE windows */ -#mce-modal-block, -#mce-modal-block.mce-fade { - opacity: 0.7; - filter: alpha(opacity=70); - -webkit-transition: none; - transition: none; -} - -.mce-window { - -webkit-border-radius: 0; - border-radius: 0; - -webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - -webkit-font-smoothing: subpixel-antialiased; - -webkit-transition: none; - transition: none; -} - -.mce-window .mce-container-body.mce-abs-layout { - overflow: visible; -} - -.mce-window .mce-window-head { - background: #fcfcfc; - border-bottom: 1px solid #dfdfdf; - padding: 0; - min-height: 36px; -} - -.mce-window .mce-window-head .mce-title { - color: #444; - font-size: 18px; - font-weight: 600; - line-height: 36px; - margin: 0; - padding: 0 16px 0 36px; -} - -.mce-window .mce-window-head .mce-close { - color: transparent; - top: 0; - left: 0; - width: 36px; - height: 36px; - line-height: 36px; - text-align: center; -} - -.mce-window .mce-window-head .mce-close:before { - font: normal 20px/36px 'dashicons'; - text-align: center; - color: #666; - width: 36px; - height: 36px; - display: block; -} - -.mce-window .mce-window-head .mce-close:hover:before { - color: #00a0d2; -} - -.mce-window .mce-window-head .mce-dragh { - width: -webkit-calc( 100% - 36px ); - width: calc( 100% - 36px ); -} - -.mce-window .mce-foot { - border-top: 1px solid #dfdfdf; -} - -.mce-textbox, -.mce-checkbox i.mce-i-checkbox, -#wp-link .query-results { - border: 1px solid #ddd; - -webkit-border-radius: 0; - border-radius: 0; - -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.07); - box-shadow: inset 0 1px 2px rgba(0,0,0,0.07); - -webkit-transition: .05s all ease-in-out; - transition: .05s all ease-in-out; -} - -.mce-textbox:focus, -.mce-textbox.mce-focus, -.mce-checkbox:focus i.mce-i-checkbox, -#wp-link .query-results:focus { - border-color: #5b9dd9; - -webkit-box-shadow: 0 0 2px rgba(30,140,190,0.8); - box-shadow: 0 0 2px rgba(30,140,190,0.8); -} - -.mce-window .mce-wp-help { - height: 360px; - width: 460px; - overflow: auto; -} - -.mce-window .mce-wp-help * { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.mce-window .mce-wp-help > .mce-container-body { - width: auto !important; -} - -.mce-window .wp-editor-help { - padding: 10px 20px 0 10px; -} - -.mce-window .wp-editor-help h2, -.mce-window .wp-editor-help p { - margin: 8px 0; - white-space: normal; - font-size: 14px; - font-weight: normal; -} - -.mce-window .wp-editor-help table { - width: 100%; - margin-bottom: 20px; -} - -.mce-window .wp-editor-help td, -.mce-window .wp-editor-help th { - font-size: 13px; - padding: 5px; - vertical-align: middle; - word-wrap: break-word; - white-space: normal; -} - -.mce-window .wp-editor-help th { - font-weight: bold; - padding-bottom: 0; -} - -.mce-window .wp-editor-help kbd { - font-family: monospace; - padding: 2px 7px 3px; - font-weight: bold; - margin: 0; - background: #eaeaea; - background: rgba(0,0,0,0.08); -} - -.mce-window .wp-help-header td { - font-weight: bold; - padding: 0 5px; -} - -.mce-window .wp-help-th-center td:nth-child(odd), -.mce-window .wp-help-th-center th:nth-child(odd) { - text-align: center; -} - -/* TinyMCE menus */ -.mce-menu, -.mce-floatpanel.mce-popover { - border-color: rgba(0,0,0,0.15); - -webkit-border-radius: 0; - border-radius: 0; - -webkit-box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 ); - box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 ); -} - -.mce-menu, -.mce-floatpanel.mce-popover.mce-bottom { - margin-top: 2px; -} - -.mce-floatpanel .mce-arrow { - display: none; -} - -.mce-menu .mce-container-body { - min-width: 160px; -} - -.mce-menu-item { - border: none; - margin-bottom: 2px; -} - -.mce-menu-has-icons i.mce-ico { - line-height: 20px; -} - -/* TinyMCE panel */ -div.mce-panel { - border: 0; - background: #fff; -} - -.mce-panel.mce-menu { - border: 1px solid #ddd; -} - -div.mce-tab { - line-height: 13px; -} - -/* TinyMCE toolbars */ -div.mce-toolbar-grp { - border-bottom: 1px solid #dedede; - background: #f5f5f5; - padding: 0; - position: relative; -} - -div.mce-inline-toolbar-grp { - border: 1px solid #a0a5aa; - -webkit-border-radius: 2px; - border-radius: 2px; - -webkit-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.15 ); - box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.15 ); - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin-bottom: 8px; - position: absolute; - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - max-width: 98%; - z-index: 100100; /* Same as the other TinyMCE "panels" */ -} - -div.mce-inline-toolbar-grp > div.mce-stack-layout { - padding: 1px; -} - -div.mce-inline-toolbar-grp.mce-arrow-up { - margin-bottom: 0; - margin-top: 8px; -} - -div.mce-inline-toolbar-grp:before, -div.mce-inline-toolbar-grp:after { - position: absolute; - right: 50%; - display: block; - width: 0; - height: 0; - border-style: solid; - border-color: transparent; - content: ''; -} - -div.mce-inline-toolbar-grp.mce-arrow-up:before { - top: -9px; - border-bottom-color: #a0a5aa; - border-width: 0 9px 9px; - margin-right: -9px; -} - -div.mce-inline-toolbar-grp.mce-arrow-down:before { - bottom: -9px; - border-top-color: #a0a5aa; - border-width: 9px 9px 0; - margin-right: -9px; -} - -div.mce-inline-toolbar-grp.mce-arrow-up:after { - top: -8px; - border-bottom-color: #f5f5f5; - border-width: 0 8px 8px; - margin-right: -8px; -} - -div.mce-inline-toolbar-grp.mce-arrow-down:after { - bottom: -8px; - border-top-color: #f5f5f5; - border-width: 8px 8px 0; - margin-right: -8px; -} - -div.mce-inline-toolbar-grp.mce-arrow-left:before, -div.mce-inline-toolbar-grp.mce-arrow-left:after { - margin: 0; -} - -div.mce-inline-toolbar-grp.mce-arrow-left:before { - right: 20px; -} -div.mce-inline-toolbar-grp.mce-arrow-left:after { - right: 21px; -} - -div.mce-inline-toolbar-grp.mce-arrow-right:before, -div.mce-inline-toolbar-grp.mce-arrow-right:after { - right: auto; - margin: 0; -} - -div.mce-inline-toolbar-grp.mce-arrow-right:before { - left: 20px; -} - -div.mce-inline-toolbar-grp.mce-arrow-right:after { - left: 21px; -} - -div.mce-inline-toolbar-grp.mce-arrow-full { - left: 0; -} - -div.mce-inline-toolbar-grp.mce-arrow-full > div { - width: 100%; - overflow-x: auto; -} - -div.mce-toolbar-grp > div { - padding: 3px; -} - -.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first { - padding-left: 32px; -} - -.mce-toolbar .mce-btn-group { - margin: 0; -} - -div.mce-statusbar { - border-top: 1px solid #e5e5e5; -} - -div.mce-path { - padding: 2px 10px; - margin: 0; -} - -.mce-path, -.mce-path-item, -.mce-path .mce-divider { - font-size: 12px; -} - -.mce-toolbar .mce-btn, -.qt-dfw { - border-color: transparent; - background: transparent; - -webkit-box-shadow: none; - box-shadow: none; - text-shadow: none; - cursor: pointer; -} - -.mce-toolbar .mce-btn-group .mce-btn, -.qt-dfw { - border: 1px solid transparent; - margin: 2px; - -webkit-border-radius: 2px; - border-radius: 2px; -} - -.mce-toolbar .mce-btn-group .mce-btn:hover, -.mce-toolbar .mce-btn-group .mce-btn:focus, -.qt-dfw:hover, -.qt-dfw:focus { - background: #fafafa; - border-color: #999; - color: #23282d; - -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - outline: none; -} - -.mce-toolbar .mce-btn-group .mce-btn.mce-active, -.mce-toolbar .mce-btn-group .mce-btn:active, -.qt-dfw.active { - background: #ebebeb; - border-color: #999; - -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.3 ); - box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.3 ); -} - -.mce-toolbar .mce-btn-group .mce-btn.mce-active:hover { - border-color: #555; -} - -.mce-toolbar .mce-btn-group .mce-btn.mce-active:hover i.mce-ico { - color: #555; -} - -.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:hover, -.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus { - color: #a0a5aa; - background: none; - border-color: #ddd; - text-shadow: 0 1px 0 #fff; - -webkit-box-shadow: none; - box-shadow: none; -} - -.mce-toolbar .mce-btn-group .mce-first, -.mce-toolbar .mce-btn-group .mce-last { - border-color: transparent; -} - -.mce-toolbar .mce-btn button, -.qt-dfw { - padding: 2px 3px; - line-height: normal; -} - -.mce-toolbar .mce-listbox button { - font-size: 13px; - line-height: 20px; - padding-right: 6px; - padding-left: 20px; -} - -.mce-toolbar .mce-btn i { - text-shadow: none; -} - -.mce-toolbar .mce-btn-group > div { - white-space: normal; -} - -.mce-toolbar .mce-colorbutton .mce-open { - border-left: 0; -} - -.mce-toolbar .mce-colorbutton .mce-preview { - margin: 0; - padding: 0; - top: auto; - bottom: 2px; - right: 3px; - height: 3px; - width: 20px; -} - -/* mce listbox */ -.mce-toolbar .mce-btn-group .mce-btn.mce-listbox { - -webkit-border-radius: 0; - border-radius: 0; - direction: rtl; - background: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: inset 0 1px 1px -1px rgba(0, 0, 0, .2); - box-shadow: inset 0 1px 1px -1px rgba(0, 0, 0, .2); -} - -.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:hover { - border-color: #b4b9be; -} - -.mce-panel .mce-btn i.mce-caret { - border-top: 6px solid #777; - margin-right: 2px; - margin-left: 2px; -} - -.mce-listbox i.mce-caret { - left: 4px; -} - -.mce-panel .mce-btn:hover i.mce-caret { - border-top-color: #32373c; -} - -.mce-panel .mce-active i.mce-caret { - border-top: 0; - border-bottom: 6px solid #32373c; - margin-top: 7px; -} - -.mce-listbox.mce-active i.mce-caret { - margin-top: -3px; -} - -.mce-toolbar .mce-splitbtn:hover .mce-open { - border-left-color: transparent; -} - -.mce-toolbar .mce-splitbtn .mce-open.mce-active { - background: transparent; - outline: none; -} - -.mce-menu .mce-menu-item:hover, -.mce-menu .mce-menu-item.mce-selected, -.mce-menu .mce-menu-item:focus, -.mce-menu .mce-menu-item-normal.mce-active, -.mce-menu .mce-menu-item-preview.mce-active { - background: #0073aa; /* See color scheme. */ -} - -.mce-menu .mce-menu-item-preview.mce-active { - border-right: none; -} - -.mce-menu .mce-menu-item-preview.mce-active .mce-text { - color: #fff; -} - -.mce-menu .mce-menu-item.mce-disabled { - cursor: default; -} - -.mce-menu .mce-menu-item.mce-disabled:hover { - background: #ccc; -} - -/* Menubar */ -.mce-menubar { - border-color: #e5e5e5; - background: #fff; - border-width: 0px 0px 1px; -} - -.mce-menubar .mce-menubtn { - margin: 2px; -} - -.mce-menubar .mce-menubtn:hover, -.mce-menubar .mce-menubtn.mce-active, -.mce-menubar .mce-menubtn:focus { - border-color: transparent; - background: transparent; -} - -.mce-menubar .mce-menubtn:focus { - color: #124964; - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -div.mce-menu .mce-menu-item-sep, -.mce-menu-item-sep:hover { - border-bottom: 1px solid #ddd; - height: 0px; - margin: 5px 0; -} - -.mce-menubtn span { - margin-left: 0; - padding-right: 3px; -} - -.mce-menu-has-icons i.mce-ico:before { - margin-right: -2px; -} - -/* Buttons in modals */ -.mce-primary button, -.mce-primary button i { - text-align: center; - color: #fff; - text-shadow: none; - padding: 0; - line-height: 26px; -} - -.mce-window .mce-btn { - color: #555; - background: #f7f7f7; - text-decoration: none; - font-size: 13px; - line-height: 26px; - height: 28px; - margin: 0; - padding: 0; - cursor: pointer; - border: 1px solid #ccc; - -webkit-appearance: none; - -webkit-border-radius: 3px; - border-radius: 3px; - white-space: nowrap; - -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); -} - -/* Remove the dotted border on :focus and the extra padding in Firefox */ -.mce-window .mce-btn::-moz-focus-inner { - border-width: 1px 0; - border-style: solid none; - border-color: transparent; - padding: 0; -} - -.mce-window .mce-btn:hover, -.mce-window .mce-btn:focus { - background: #fafafa; - border-color: #999; - color: #23282d; -} - -.mce-window .mce-btn:focus { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); -} - -.mce-window .mce-btn:active { - background: #eee; - border-color: #999; - color: #32373c; - -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); - box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); -} - -.mce-window .mce-btn.mce-disabled { - color: #a0a5aa; - border-color: #ddd; - background: #f7f7f7; - -webkit-box-shadow: none; - box-shadow: none; - text-shadow: 0 1px 0 #fff; - cursor: default; -} - -.mce-window .mce-btn.mce-primary { - background: #00a0d2; - border-color: #0073aa; - -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5), 0 1px 0 rgba( 0, 0, 0, 0.15 ); - box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5 ), 0 1px 0 rgba( 0, 0, 0, 0.15 ); - color: #fff; - text-decoration: none; -} - -.mce-window .mce-btn.mce-primary:hover, -.mce-window .mce-btn.mce-primary:focus { - background: #1e8cbe; - border-color: #0073aa; - -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 ); - box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 ); - color: #fff; -} - -.mce-window .mce-btn.mce-primary:focus { - border-color: #0e3950; - -webkit-box-shadow: - inset 0 1px 0 rgba( 120, 200, 230, 0.6 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); - box-shadow: - inset 0 1px 0 rgba( 120, 200, 230, 0.6 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); -} - -.mce-window .mce-btn.mce-primary:active { - background: #1b7aa6; - border-color: #005684; - color: rgba( 255, 255, 255, 0.95 ); - -webkit-box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 ); - vertical-align: top; -} - -.mce-window .mce-btn.mce-primary.mce-disabled { - color: #94cde7; - background: #298cba; - border-color: #1b607f; - -webkit-box-shadow: none; - box-shadow: none; - text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ); - cursor: default; -} - -.mce-menubtn.mce-fixed-width button { - overflow-x: hidden; - text-overflow: ellipsis; - width: 110px; -} - -/* Charmap modal */ -.mce-charmap { - margin: 3px; -} - -.mce-charmap td { - padding: 0; - border-color: #dfdfdf; - cursor: pointer; -} - -.mce-charmap td:hover { - background: #f3f3f3; -} - -.mce-charmap td div { - width: 18px; - height: 22px; - line-height: 22px; -} - -/* TinyMCE tooltips */ -.mce-tooltip { - margin-top: 2px; -} - -.mce-tooltip-inner { - -webkit-border-radius: 3px; - border-radius: 3px; - -webkit-box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 ); - box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 ); - color: #fff; - font-size: 12px; -} - -/* TinyMCE icons */ -.mce-ico { - font-family: 'tinymce', Arial; -} - -.mce-btn-small .mce-ico { - font-family: 'tinymce-small', Arial; -} - -.mce-toolbar .mce-ico { - color: #777; - line-height: 20px; - width: 20px; - height: 20px; - text-align: center; - text-shadow: none; - margin: 0; - padding: 0; -} - -.qt-dfw { - color: #777; - line-height: 20px; - width: 28px; - height: 26px; - text-align: center; - text-shadow: none; -} - -.mce-toolbar .mce-btn .mce-open { - line-height: 20px; -} - -.mce-toolbar .mce-btn:hover .mce-open, -.mce-toolbar .mce-btn:focus .mce-open, -.mce-toolbar .mce-btn.mce-active .mce-open { - border-right-color: #999; -} - -i.mce-i-bold, -i.mce-i-italic, -i.mce-i-bullist, -i.mce-i-numlist, -i.mce-i-blockquote, -i.mce-i-alignleft, -i.mce-i-aligncenter, -i.mce-i-alignright, -i.mce-i-link, -i.mce-i-unlink, -i.mce-i-wp_more, -i.mce-i-strikethrough, -i.mce-i-spellchecker, -i.mce-i-fullscreen, -i.mce-i-wp_fullscreen, -i.mce-i-dfw, -i.mce-i-wp_adv, -i.mce-i-underline, -i.mce-i-alignjustify, -i.mce-i-forecolor, -i.mce-i-backcolor, -i.mce-i-pastetext, -i.mce-i-pasteword, -i.mce-i-removeformat, -i.mce-i-charmap, -i.mce-i-outdent, -i.mce-i-indent, -i.mce-i-undo, -i.mce-i-redo, -i.mce-i-help, -i.mce-i-wp_help, -i.mce-i-wp-media-library, -i.mce-i-ltr, -i.mce-i-wp_page, -i.mce-i-hr, -i.mce-i-wp_code, -i.mce-i-dashicon, -.mce-close { - font: normal 20px/1 'dashicons'; - padding: 0; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - margin-right: -2px; - padding-left: 2px; -} - -.qt-dfw { - font: normal 20px/1 'dashicons'; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -i.mce-i-bold:before { - content: '\f200'; -} - -i.mce-i-italic:before { - content: '\f201'; -} - -i.mce-i-bullist:before { - content: '\f203'; -} - -i.mce-i-numlist:before { - content: '\f204'; -} - -i.mce-i-blockquote:before { - content: '\f205'; -} - -i.mce-i-alignleft:before { - content: '\f206'; -} - -i.mce-i-aligncenter:before { - content: '\f207'; -} - -i.mce-i-alignright:before { - content: '\f208'; -} - -i.mce-i-link:before { - content: '\f103'; -} - -i.mce-i-unlink:before { - content: '\f225'; -} - -i.mce-i-wp_more:before { - content: '\f209'; -} - -i.mce-i-strikethrough:before { - content: '\f224'; -} - -i.mce-i-spellchecker:before { - content: '\f210'; -} - -i.mce-i-fullscreen:before, -i.mce-i-wp_fullscreen:before, -i.mce-i-dfw:before, -.qt-dfw:before { - content: '\f211'; -} - -i.mce-i-wp_adv:before { - content: '\f212'; -} - -i.mce-i-underline:before { - content: '\f213'; -} - -i.mce-i-alignjustify:before { - content: '\f214'; -} - -i.mce-i-forecolor:before, -i.mce-i-backcolor:before { - content: '\f215'; -} - -i.mce-i-pastetext:before { - content: '\f217'; -} - -i.mce-i-removeformat:before { - content: '\f218'; -} - -i.mce-i-charmap:before { - content: '\f220'; -} - -i.mce-i-outdent:before { - content: '\f221'; -} - -i.mce-i-indent:before { - content: '\f222'; -} - -i.mce-i-undo:before { - content: '\f171'; -} - -i.mce-i-redo:before { - content: '\f172'; -} - -i.mce-i-help:before, -i.mce-i-wp_help:before { - content: '\f223'; -} - -i.mce-i-wp-media-library:before { - content: '\f104'; -} - -i.mce-i-ltr:before { - content: '\f320'; -} - -i.mce-i-wp_page:before { - content: '\f105'; -} - -i.mce-i-hr:before { - content: '\f460'; -} - -.mce-close:before { - content: '\f158'; -} - -i.mce-i-wp_code:before { - content: '\f475'; -} - -/* RTL button icons */ -.rtl i.mce-i-outdent:before { - content: '\f222'; -} - -.rtl i.mce-i-indent:before { - content: '\f221'; -} - -/* Editors */ -.wp-editor-wrap { - position: relative; -} - -.wp-editor-tools { - position: relative; - z-index: 1; -} - -.wp-editor-tools:after { - clear: both; - content: ''; - display: table; -} - -.wp-editor-container { - clear: both; -} - -.wp-editor-area { - font-family: Consolas, Monaco, monospace; - font-size: 13px; - padding: 10px; - margin: 1px 0 0; - line-height: 150%; - border: 0 none; - outline: none; - display: block; - resize: vertical; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.rtl .wp-editor-area { - font-family: Tahoma, Monaco, monospace; -} - -.locale-he-il .wp-editor-area { - font-family: Arial, Monaco, monospace; -} - -.wp-editor-container textarea.wp-editor-area { - width: 100%; - margin: 0; - -webkit-box-shadow: none; - box-shadow: none; -} - -.wp-editor-tabs { - float: left; -} - -.wp-switch-editor { - float: right; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - position: relative; - top: 1px; - background: #ebebeb; - color: #777; - cursor: pointer; - font: 13px/19px "Open Sans", sans-serif; - height: 20px; - margin: 5px 5px 0 0; - padding: 3px 8px 4px; - border: 1px solid #e5e5e5; -} - -.wp-switch-editor:focus { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - outline: none; - color: #23282d; -} - -.wp-switch-editor:active, -.html-active .switch-html:focus, -.tmce-active .switch-tmce:focus { - -webkit-box-shadow: none; - box-shadow: none; -} - -.wp-switch-editor:active { - background-color: #f5f5f5; - -webkit-box-shadow: none; - box-shadow: none; -} - -.js .tmce-active .wp-editor-area { - color: white; -} - -.tmce-active .quicktags-toolbar { - display: none; -} - -.tmce-active .switch-tmce, -.html-active .switch-html { - background: #f5f5f5; - color: #555; - border-bottom-color: #f5f5f5; -} - -.wp-media-buttons { - float: right; -} - -.wp-media-buttons .button { - margin-left: 5px; - margin-bottom: 4px; - padding-right: 7px; - padding-left: 7px; -} - -.wp-media-buttons .button:active { - position: relative; - top: 1px; - margin-top: -1px; - margin-bottom: 1px; -} - -.wp-media-buttons .insert-media { - padding-right: 5px; -} - -.wp-media-buttons a { - text-decoration: none; - color: #464646; - font-size: 12px; -} - -.wp-media-buttons img { - padding: 0 4px; - vertical-align: middle; -} - -.wp-media-buttons span.wp-media-buttons-icon { - display: inline-block; - width: 18px; - height: 18px; - vertical-align: text-top; - margin: 0 2px; -} - -.wp-media-buttons .add_media span.wp-media-buttons-icon { - background: none; -} - -.wp-media-buttons .add_media span.wp-media-buttons-icon:before { - font: normal 18px/1 'dashicons'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.wp-media-buttons .add_media span.wp-media-buttons-icon:before { - content: '\f104'; -} - -/* Quicktags */ -.quicktags-toolbar { - padding: 3px; - position: relative; - border-bottom: 1px solid #dedede; - background: #f5f5f5; - min-height: 30px; -} - -.has-dfw .quicktags-toolbar { - padding-left: 35px; -} - -.wp-core-ui .quicktags-toolbar input.button.button-small { - margin: 2px; -} - -.quicktags-toolbar input[value="link"] { - text-decoration: underline; -} - -.quicktags-toolbar input[value="del"] { - text-decoration: line-through; -} - -.quicktags-toolbar input[value="i"] { - font-style: italic; -} - -.quicktags-toolbar input[value="b"] { - font-weight: bold; -} - -.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw, -.qt-dfw { - position: absolute; - top: 0; - left: 0; - margin: 5px 0 0 5px; -} - -.qt-fullscreen { - position: static; - margin: 2px; -} - -@media screen and ( max-width: 782px ) { - .mce-toolbar .mce-btn button, - .qt-dfw { - padding: 6px 7px; - } - - .mce-toolbar .mce-btn-group .mce-btn { - margin: 1px; - } - - .qt-dfw { - width: 36px; - height: 34px; - } - - .mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw { - margin: 4px 0 0 4px; - } - - .mce-toolbar .mce-colorbutton .mce-preview { - right: 8px; - bottom: 6px; - } - - .mce-window .mce-btn { - padding: 2px 0; - } - - .has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first, - .has-dfw .quicktags-toolbar { - padding-left: 40px; - } -} - -@media screen and ( min-width: 782px ) { - .wp-core-ui .quicktags-toolbar input.button.button-small { - /* .button-small is normaly 11px, but a bit too small for these buttons. */ - font-size: 12px; - height: 26px; - line-height: 24px; - } -} - -#wp_editbtns, -#wp_gallerybtns { - padding: 2px; - position: absolute; - display: none; - z-index: 100020; -} - -#wp_editimgbtn, -#wp_delimgbtn, -#wp_editgallery, -#wp_delgallery { - border-color: #999; - background-color: #eee; - margin: 2px; - padding: 2px; - border-width: 1px; - border-style: solid; - -webkit-border-radius: 3px; - border-radius: 3px; -} - -#wp_editimgbtn:hover, -#wp_delimgbtn:hover, -#wp_editgallery:hover, -#wp_delgallery:hover { - border-color: #555; - background-color: #ccc; -} - -/*------------------------------------------------------------------------------ - wp-link -------------------------------------------------------------------------------*/ - -#wp-link-wrap { - display: none; - background-color: #fff; - -webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - width: 500px; - overflow: hidden; - margin-right: -250px; - margin-top: -125px; - position: fixed; - top: 50%; - right: 50%; - z-index: 100105; - -webkit-transition: height 0.2s, margin-top 0.2s; - transition: height 0.2s, margin-top 0.2s; -} - -#wp-link-backdrop { - display: none; - position: fixed; - top: 0; - right: 0; - left: 0; - bottom: 0; - min-height: 360px; - background: #000; - opacity: 0.7; - filter: alpha(opacity=70); - z-index: 100100; -} - -#wp-link { - position: relative; - height: 100%; -} - -#wp-link-wrap.search-panel-visible { - height: 500px; - margin-top: -250px; -} - -#wp-link-wrap .wp-link-text-field { - display: none; -} - -#wp-link-wrap.has-text-field .wp-link-text-field { - display: block; -} - -#link-modal-title { - background: #fcfcfc; - border-bottom: 1px solid #dfdfdf; - height: 36px; - font-size: 18px; - font-weight: 600; - line-height: 36px; - padding: 0 16px 0 36px; - top: 0; - left: 0; - right: 0; -} - -#wp-link-close { - color: #666; - padding: 0; - position: absolute; - top: 0; - left: 0; - width: 36px; - height: 36px; - text-align: center; - background: none; - border: none; - cursor: pointer; -} - -#wp-link-close:before { - font: normal 20px/36px 'dashicons'; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - width: 36px; - height: 36px; - content: '\f158'; -} - -#wp-link-close:hover, -#wp-link-close:focus { - color: #00a0d2; -} - -#wp-link-close:focus { - outline: none; - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -#link-selector { - padding: 0 16px 50px; -} - -#wp-link-wrap.search-panel-visible #link-selector { - -webkit-overflow-scrolling: touch; - padding: 0 16px; - position: absolute; - top: 36px; - right: 0; - left: 0; - bottom: 44px; -} - -#wp-link ol, -#wp-link ul { - list-style: none; - margin: 0; - padding: 0; -} - -#wp-link-search-toggle:after { - display: inline-block; - font: normal 20px/1 'dashicons'; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - content: '\f140'; -} - -.search-panel-visible #wp-link-search-toggle:after { - content: '\f142'; -} - -#wp-link input[type="text"] { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -#wp-link #link-options { - padding: 8px 0 12px; -} - -#wp-link p.howto { - margin: 3px 0; -} - -#wp-link p.howto a { - text-decoration: none; - color: inherit; -} - -#wp-link-search-toggle { - cursor: pointer; -} - -#wp-link label input[type="text"] { - margin-top: 5px; - width: 70%; -} - -#wp-link #link-options label span, -#wp-link #search-panel label span.search-label { - display: inline-block; - width: 80px; - text-align: left; - padding-left: 5px; - max-width: 24%; - vertical-align: middle; - word-wrap: break-word; -} - -#wp-link .link-search-field { - float: right; - width: 250px; - max-width: 70%; -} - -#wp-link .link-search-wrapper { - margin: 5px 0 9px; - display: block; - overflow: hidden; -} - -#wp-link .link-search-wrapper span { - float: right; - margin-top: 4px; -} - -#wp-link .link-search-wrapper .spinner { - margin-top: 5px; -} - -#wp-link .link-target { - padding: 3px 0 0; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -#wp-link .link-target label { - max-width: 70%; -} - -#wp-link .query-results { - border: 1px #dfdfdf solid; - margin: 0; - background: #fff; - overflow: auto; - position: absolute; - right: 16px; - left: 16px; - bottom: 16px; - top: 172px; -} - -.has-text-field #wp-link .query-results { - top: 205px; -} - -#wp-link li { - clear: both; - margin-bottom: 0; - border-bottom: 1px solid #f1f1f1; - color: #32373c; - padding: 4px 10px 4px 6px; - cursor: pointer; - position: relative; -} - -#wp-link .query-notice { - padding: 0; - border-bottom: 1px solid #dfdfdf; - background-color: #f7fcfe; - color: #000; -} - -#wp-link .query-notice .query-notice-default, -#wp-link .query-notice .query-notice-hint { - display: block; - padding: 6px; - border-right: 4px solid #00a0d2; -} - -#wp-link .unselectable.no-matches-found { - padding: 0; - border-bottom: 1px solid #dfdfdf; - background-color: #fef7f1; -} - -#wp-link .no-matches-found .item-title { - display: block; - padding: 6px; - border-right: 4px solid #d54e21; -} - -#wp-link .query-results em { - font-style: normal; -} - -#wp-link li:hover { - background: #eaf2fa; - color: #151515; -} - -#wp-link li.unselectable { - border-bottom: 1px solid #dfdfdf; -} - -#wp-link li.unselectable:hover { - background: #fff; - cursor: auto; - color: #32373c; -} - -#wp-link li.selected { - background: #ddd; - color: #32373c; -} - -#wp-link li.selected .item-title { - font-weight: bold; -} - -#wp-link li:last-child { - border: none; -} - -#wp-link .item-title { - display: inline-block; - width: 80%; - width: -webkit-calc(100% - 68px); - width: calc(100% - 68px); - word-wrap: break-word; -} - -#wp-link .item-info { - text-transform: uppercase; - color: #666; - font-size: 11px; - position: absolute; - left: 5px; - top: 5px; -} - -#wp-link #search-results, -#wp-link #search-panel { - display: none; -} - -#wp-link-wrap.search-panel-visible #search-panel { - display: block; -} - -#wp-link .river-waiting { - display: none; - padding: 10px 0; -} - -#wp-link .submitbox { - padding: 8px 16px; - background: #fcfcfc; - border-top: 1px solid #dfdfdf; - position: absolute; - bottom: 0; - right: 0; - left: 0; -} - -#wp-link-cancel { - line-height: 25px; - float: right; -} - -#wp-link-update { - line-height: 23px; - float: left; -} - -#wp-link-submit { - float: left; - margin-bottom: 0; -} - -@media screen and ( max-width: 782px ) { - #wp-link-wrap { - margin-top: -140px; - } - - #wp-link-wrap.search-panel-visible .query-results { - top: 195px; - } - - #wp-link-wrap.search-panel-visible.has-text-field .query-results { - top: 235px; - } - - #link-selector { - padding: 0 16px 60px; - } - - #wp-link-wrap.search-panel-visible #link-selector { - bottom: 52px; - } - - #wp-link-cancel { - line-height: 32px; - } -} - -@media screen and ( max-width: 520px ) { - #wp-link-wrap { - width: auto; - margin-right: 0; - right: 10px; - left: 10px; - max-width: 500px; - } -} - -@media screen and ( max-height: 520px ) { - #wp-link-wrap { - -webkit-transition: none; - transition: none; - } - - #wp-link-wrap.search-panel-visible { - height: auto; - margin-top: 0; - top: 10px; - bottom: 10px; - } - - .search-panel-visible #link-selector { - overflow: auto; - } - - .search-panel-visible #search-panel .query-results { - position: static; - } -} - -@media screen and ( max-height: 290px ) { - #wp-link-wrap { - height: auto; - margin-top: 0; - top: 10px; - bottom: 10px; - } - - #link-selector { - overflow: auto; - height: -webkit-calc(100% - 92px); - height: calc(100% - 92px); - padding-bottom: 2px; - } - - #search-panel .query-results { - position: static; - } -} - -div.wp-link-preview { - float: right; - margin: 5px; - max-width: 694px; - overflow: hidden; - text-overflow: ellipsis; -} - -div.wp-link-preview a { - color: #0073aa; - text-decoration: underline; - -webkit-transition-property: border, background, color; - transition-property: border, background, color; - -webkit-transition-duration: .05s; - transition-duration: .05s; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; - cursor: pointer; -} - -@media screen and ( max-width: 782px ) { - div.wp-link-preview { - margin: 8px 5px 8px 0; - max-width: 70%; - max-width: -webkit-calc(100% - 86px); - max-width: calc(100% - 86px); - } -} - -/* =Overlay Body --------------------------------------------------------------- */ - -.mce-fullscreen { - z-index: 100010; -} - -/* =Localization --------------------------------------------------------------- */ -.rtl .wp-switch-editor, -.rtl .quicktags-toolbar input { - font-family: Tahoma, sans-serif; -} - -/* rtl:ignore */ -.mce-rtl .mce-flow-layout .mce-flow-layout-item > div { - direction: rtl; -} - -/* rtl:ignore */ -.mce-rtl .mce-listbox i.mce-caret { - left: 6px; -} - -html:lang(he-il) .rtl .wp-switch-editor, -html:lang(he-il) .rtl .quicktags-toolbar input { - font-family: Arial, sans-serif; -} - -/* HiDPI */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - .wp-media-buttons .add_media span.wp-media-buttons-icon { - background: none; - } -} diff --git a/wp-includes/css/editor-rtl.min.css b/wp-includes/css/editor-rtl.min.css deleted file mode 100644 index 012ab17860..0000000000 --- a/wp-includes/css/editor-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -.mce-container,.mce-container *,.mce-widget,.mce-widget *{color:inherit;font-family:inherit}#mce-modal-block,#mce-modal-block.mce-fade{opacity:.7;filter:alpha(opacity=70);-webkit-transition:none;transition:none}.mce-window{-webkit-border-radius:0;border-radius:0;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3);-webkit-font-smoothing:subpixel-antialiased;-webkit-transition:none;transition:none}.mce-window .mce-container-body.mce-abs-layout{overflow:visible}.mce-window .mce-window-head{background:#fcfcfc;border-bottom:1px solid #dfdfdf;padding:0;min-height:36px}.mce-window .mce-window-head .mce-title{color:#444;font-size:18px;font-weight:600;line-height:36px;margin:0;padding:0 16px 0 36px}.mce-window .mce-window-head .mce-close{color:transparent;top:0;left:0;width:36px;height:36px;line-height:36px;text-align:center}.mce-window .mce-window-head .mce-close:before{font:400 20px/36px dashicons;text-align:center;color:#666;width:36px;height:36px;display:block}.mce-window .mce-window-head .mce-close:hover:before{color:#00a0d2}.mce-window .mce-window-head .mce-dragh{width:-webkit-calc(100% - 36px);width:calc(100% - 36px)}.mce-window .mce-foot{border-top:1px solid #dfdfdf}#wp-link .query-results,.mce-checkbox i.mce-i-checkbox,.mce-textbox{border:1px solid #ddd;-webkit-border-radius:0;border-radius:0;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07);-webkit-transition:.05s all ease-in-out;transition:.05s all ease-in-out}#wp-link .query-results:focus,.mce-checkbox:focus i.mce-i-checkbox,.mce-textbox.mce-focus,.mce-textbox:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 2px rgba(30,140,190,.8);box-shadow:0 0 2px rgba(30,140,190,.8)}.mce-window .mce-wp-help{height:360px;width:460px;overflow:auto}.mce-window .mce-wp-help *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mce-window .mce-wp-help>.mce-container-body{width:auto!important}.mce-window .wp-editor-help{padding:10px 20px 0 10px}.mce-window .wp-editor-help h2,.mce-window .wp-editor-help p{margin:8px 0;white-space:normal;font-size:14px;font-weight:400}.mce-window .wp-editor-help table{width:100%;margin-bottom:20px}.mce-window .wp-editor-help td,.mce-window .wp-editor-help th{font-size:13px;padding:5px;vertical-align:middle;word-wrap:break-word;white-space:normal}.mce-window .wp-editor-help th{font-weight:700;padding-bottom:0}.mce-window .wp-editor-help kbd{font-family:monospace;padding:2px 7px 3px;font-weight:700;margin:0;background:#eaeaea;background:rgba(0,0,0,.08)}.mce-window .wp-help-header td{font-weight:700;padding:0 5px}.mce-window .wp-help-th-center td:nth-child(odd),.mce-window .wp-help-th-center th:nth-child(odd){text-align:center}.mce-floatpanel.mce-popover,.mce-menu{border-color:rgba(0,0,0,.15);-webkit-border-radius:0;border-radius:0;-webkit-box-shadow:0 3px 5px rgba(0,0,0,.2);box-shadow:0 3px 5px rgba(0,0,0,.2)}.mce-floatpanel.mce-popover.mce-bottom,.mce-menu{margin-top:2px}.mce-floatpanel .mce-arrow{display:none}.mce-menu .mce-container-body{min-width:160px}.mce-menu-item{border:none;margin-bottom:2px}.mce-menu-has-icons i.mce-ico{line-height:20px}div.mce-panel{border:0;background:#fff}.mce-panel.mce-menu{border:1px solid #ddd}div.mce-tab{line-height:13px}div.mce-toolbar-grp{border-bottom:1px solid #dedede;background:#f5f5f5;padding:0;position:relative}div.mce-inline-toolbar-grp{border:1px solid #a0a5aa;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.15);box-shadow:0 1px 3px rgba(0,0,0,.15);box-sizing:border-box;margin-bottom:8px;position:absolute;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;max-width:98%;z-index:100100}.wp-editor-area,div.mce-inline-toolbar-grp{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}div.mce-inline-toolbar-grp>div.mce-stack-layout{padding:1px}div.mce-inline-toolbar-grp.mce-arrow-up{margin-bottom:0;margin-top:8px}div.mce-inline-toolbar-grp:after,div.mce-inline-toolbar-grp:before{position:absolute;right:50%;display:block;width:0;height:0;border-style:solid;border-color:transparent;content:''}div.mce-inline-toolbar-grp.mce-arrow-up:before{top:-9px;border-bottom-color:#a0a5aa;border-width:0 9px 9px;margin-right:-9px}div.mce-inline-toolbar-grp.mce-arrow-down:before{bottom:-9px;border-top-color:#a0a5aa;border-width:9px 9px 0;margin-right:-9px}div.mce-inline-toolbar-grp.mce-arrow-up:after{top:-8px;border-bottom-color:#f5f5f5;border-width:0 8px 8px;margin-right:-8px}div.mce-inline-toolbar-grp.mce-arrow-down:after{bottom:-8px;border-top-color:#f5f5f5;border-width:8px 8px 0;margin-right:-8px}.mce-toolbar .mce-btn-group,div.mce-inline-toolbar-grp.mce-arrow-left:after,div.mce-inline-toolbar-grp.mce-arrow-left:before,div.mce-path{margin:0}div.mce-inline-toolbar-grp.mce-arrow-left:before{right:20px}div.mce-inline-toolbar-grp.mce-arrow-left:after{right:21px}div.mce-inline-toolbar-grp.mce-arrow-right:after,div.mce-inline-toolbar-grp.mce-arrow-right:before{right:auto;margin:0}div.mce-inline-toolbar-grp.mce-arrow-right:before{left:20px}div.mce-inline-toolbar-grp.mce-arrow-right:after{left:21px}div.mce-inline-toolbar-grp.mce-arrow-full{left:0}div.mce-inline-toolbar-grp.mce-arrow-full>div{width:100%;overflow-x:auto}div.mce-toolbar-grp>div{padding:3px}.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-left:32px}div.mce-statusbar{border-top:1px solid #e5e5e5}div.mce-path{padding:2px 10px}.mce-path,.mce-path .mce-divider,.mce-path-item{font-size:12px}.mce-toolbar .mce-btn,.qt-dfw{border-color:transparent;background:0 0;-webkit-box-shadow:none;box-shadow:none;text-shadow:none;cursor:pointer}.mce-toolbar .mce-btn-group .mce-btn,.qt-dfw{border:1px solid transparent;margin:2px;-webkit-border-radius:2px;border-radius:2px}.mce-toolbar .mce-btn-group .mce-btn:focus,.mce-toolbar .mce-btn-group .mce-btn:hover,.qt-dfw:focus,.qt-dfw:hover{background:#fafafa;border-color:#999;color:#23282d;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);outline:0}.mce-toolbar .mce-btn-group .mce-btn.mce-active,.mce-toolbar .mce-btn-group .mce-btn:active,.qt-dfw.active{background:#ebebeb;border-color:#999;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.3);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.3)}.mce-toolbar .mce-btn-group .mce-btn.mce-active:hover{border-color:#555}.mce-toolbar .mce-btn-group .mce-btn.mce-active:hover i.mce-ico{color:#555}.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:hover{color:#a0a5aa;background:0 0;border-color:#ddd;text-shadow:0 1px 0 #fff;-webkit-box-shadow:none;box-shadow:none}.mce-toolbar .mce-btn-group .mce-first,.mce-toolbar .mce-btn-group .mce-last{border-color:transparent}.mce-toolbar .mce-btn button,.qt-dfw{padding:2px 3px;line-height:normal}.mce-toolbar .mce-listbox button{font-size:13px;line-height:20px;padding-right:6px;padding-left:20px}.mce-toolbar .mce-btn i{text-shadow:none}.mce-toolbar .mce-btn-group>div{white-space:normal}.mce-toolbar .mce-colorbutton .mce-open{border-left:0}.mce-toolbar .mce-colorbutton .mce-preview{margin:0;padding:0;top:auto;bottom:2px;right:3px;height:3px;width:20px}.mce-toolbar .mce-btn-group .mce-btn.mce-listbox{-webkit-border-radius:0;border-radius:0;direction:rtl;background:#fff;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 1px -1px rgba(0,0,0,.2);box-shadow:inset 0 1px 1px -1px rgba(0,0,0,.2)}.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:hover{border-color:#b4b9be}.mce-panel .mce-btn i.mce-caret{border-top:6px solid #777;margin-right:2px;margin-left:2px}.mce-listbox i.mce-caret{left:4px}.mce-panel .mce-btn:hover i.mce-caret{border-top-color:#32373c}.mce-panel .mce-active i.mce-caret{border-top:0;border-bottom:6px solid #32373c;margin-top:7px}.mce-listbox.mce-active i.mce-caret{margin-top:-3px}.mce-toolbar .mce-splitbtn:hover .mce-open{border-left-color:transparent}.mce-toolbar .mce-splitbtn .mce-open.mce-active{background:0 0;outline:0}.mce-menu .mce-menu-item-normal.mce-active,.mce-menu .mce-menu-item-preview.mce-active,.mce-menu .mce-menu-item.mce-selected,.mce-menu .mce-menu-item:focus,.mce-menu .mce-menu-item:hover{background:#0073aa}.mce-menu .mce-menu-item-preview.mce-active{border-right:none}.mce-menu .mce-menu-item-preview.mce-active .mce-text{color:#fff}.mce-menu .mce-menu-item.mce-disabled{cursor:default}.mce-menu .mce-menu-item.mce-disabled:hover{background:#ccc}.mce-menubar{border-color:#e5e5e5;background:#fff;border-width:0 0 1px}.mce-menubar .mce-menubtn{margin:2px}.mce-menubar .mce-menubtn.mce-active,.mce-menubar .mce-menubtn:focus,.mce-menubar .mce-menubtn:hover{border-color:transparent;background:0 0}.mce-menubar .mce-menubtn:focus{color:#124964;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.mce-menu-item-sep:hover,div.mce-menu .mce-menu-item-sep{border-bottom:1px solid #ddd;height:0;margin:5px 0}.mce-menubtn span{margin-left:0;padding-right:3px}.mce-menu-has-icons i.mce-ico:before{margin-right:-2px}.mce-primary button,.mce-primary button i{text-align:center;color:#fff;text-shadow:none;padding:0;line-height:26px}.mce-window .mce-btn{color:#555;background:#f7f7f7;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0;cursor:pointer;border:1px solid #ccc;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08)}.mce-window .mce-btn::-moz-focus-inner{border-width:1px 0;border-style:solid none;border-color:transparent;padding:0}.mce-window .mce-btn:focus,.mce-window .mce-btn:hover{background:#fafafa;border-color:#999;color:#23282d}.mce-window .mce-btn:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.mce-window .mce-btn:active{background:#eee;border-color:#999;color:#32373c;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}.mce-window .mce-btn.mce-disabled{color:#a0a5aa;border-color:#ddd;background:#f7f7f7;-webkit-box-shadow:none;box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default}.mce-window .mce-btn.mce-primary{background:#00a0d2;border-color:#0073aa;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);color:#fff;text-decoration:none}.mce-window .mce-btn.mce-primary:focus,.mce-window .mce-btn.mce-primary:hover{background:#1e8cbe;border-color:#0073aa;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.6);box-shadow:inset 0 1px 0 rgba(120,200,230,.6);color:#fff}.mce-window .mce-btn.mce-primary:focus{border-color:#0e3950;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.6),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 rgba(120,200,230,.6),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.mce-window .mce-btn.mce-primary:active{background:#1b7aa6;border-color:#005684;color:rgba(255,255,255,.95);-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);vertical-align:top}.mce-window .mce-btn.mce-primary.mce-disabled{color:#94cde7;background:#298cba;border-color:#1b607f;-webkit-box-shadow:none;box-shadow:none;text-shadow:0 -1px 0 rgba(0,0,0,.1);cursor:default}#wp-link li,#wp-link-close,#wp-link-search-toggle,.mce-charmap td{cursor:pointer}.mce-toolbar .mce-ico,.qt-dfw{text-align:center;text-shadow:none}.mce-menubtn.mce-fixed-width button{overflow-x:hidden;text-overflow:ellipsis;width:110px}.mce-charmap{margin:3px}.mce-charmap td{padding:0;border-color:#dfdfdf}.mce-charmap td:hover{background:#f3f3f3}.mce-charmap td div{width:18px;height:22px;line-height:22px}.mce-toolbar .mce-btn .mce-open,.qt-dfw{line-height:20px}.mce-tooltip{margin-top:2px}.mce-tooltip-inner{-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 3px 5px rgba(0,0,0,.2);box-shadow:0 3px 5px rgba(0,0,0,.2);color:#fff;font-size:12px}.mce-ico{font-family:tinymce,Arial}.mce-btn-small .mce-ico{font-family:tinymce-small,Arial}.mce-toolbar .mce-ico{color:#777;line-height:20px;width:20px;height:20px;margin:0;padding:0}.qt-dfw{color:#777;width:28px;height:26px}.mce-toolbar .mce-btn.mce-active .mce-open,.mce-toolbar .mce-btn:focus .mce-open,.mce-toolbar .mce-btn:hover .mce-open{border-right-color:#999}.mce-close,i.mce-i-aligncenter,i.mce-i-alignjustify,i.mce-i-alignleft,i.mce-i-alignright,i.mce-i-backcolor,i.mce-i-blockquote,i.mce-i-bold,i.mce-i-bullist,i.mce-i-charmap,i.mce-i-dashicon,i.mce-i-dfw,i.mce-i-forecolor,i.mce-i-fullscreen,i.mce-i-help,i.mce-i-hr,i.mce-i-indent,i.mce-i-italic,i.mce-i-link,i.mce-i-ltr,i.mce-i-numlist,i.mce-i-outdent,i.mce-i-pastetext,i.mce-i-pasteword,i.mce-i-redo,i.mce-i-removeformat,i.mce-i-spellchecker,i.mce-i-strikethrough,i.mce-i-underline,i.mce-i-undo,i.mce-i-unlink,i.mce-i-wp-media-library,i.mce-i-wp_adv,i.mce-i-wp_code,i.mce-i-wp_fullscreen,i.mce-i-wp_help,i.mce-i-wp_more,i.mce-i-wp_page{font:400 20px/1 dashicons;padding:0 0 0 2px;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:-2px}.qt-dfw{font:400 20px/1 dashicons;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}i.mce-i-bold:before{content:'\f200'}i.mce-i-italic:before{content:'\f201'}i.mce-i-bullist:before{content:'\f203'}i.mce-i-numlist:before{content:'\f204'}i.mce-i-blockquote:before{content:'\f205'}i.mce-i-alignleft:before{content:'\f206'}i.mce-i-aligncenter:before{content:'\f207'}i.mce-i-alignright:before{content:'\f208'}i.mce-i-link:before{content:'\f103'}i.mce-i-unlink:before{content:'\f225'}i.mce-i-wp_more:before{content:'\f209'}i.mce-i-strikethrough:before{content:'\f224'}i.mce-i-spellchecker:before{content:'\f210'}.qt-dfw:before,i.mce-i-dfw:before,i.mce-i-fullscreen:before,i.mce-i-wp_fullscreen:before{content:'\f211'}i.mce-i-wp_adv:before{content:'\f212'}i.mce-i-underline:before{content:'\f213'}i.mce-i-alignjustify:before{content:'\f214'}i.mce-i-backcolor:before,i.mce-i-forecolor:before{content:'\f215'}i.mce-i-pastetext:before{content:'\f217'}i.mce-i-removeformat:before{content:'\f218'}i.mce-i-charmap:before{content:'\f220'}i.mce-i-outdent:before{content:'\f221'}i.mce-i-indent:before{content:'\f222'}i.mce-i-undo:before{content:'\f171'}i.mce-i-redo:before{content:'\f172'}i.mce-i-help:before,i.mce-i-wp_help:before{content:'\f223'}i.mce-i-wp-media-library:before{content:'\f104'}i.mce-i-ltr:before{content:'\f320'}i.mce-i-wp_page:before{content:'\f105'}i.mce-i-hr:before{content:'\f460'}.mce-close:before{content:'\f158'}i.mce-i-wp_code:before{content:'\f475'}.rtl i.mce-i-outdent:before{content:'\f222'}.rtl i.mce-i-indent:before{content:'\f221'}.wp-editor-wrap{position:relative}.wp-editor-tools{position:relative;z-index:1}.wp-editor-tools:after{clear:both;content:'';display:table}.wp-editor-container{clear:both}.wp-editor-area{font-family:Consolas,Monaco,monospace;font-size:13px;padding:10px;margin:1px 0 0;line-height:150%;border:0;outline:0;display:block;resize:vertical;box-sizing:border-box}.rtl .wp-editor-area{font-family:Tahoma,Monaco,monospace}.locale-he-il .wp-editor-area{font-family:Arial,Monaco,monospace}.wp-editor-container textarea.wp-editor-area{width:100%;margin:0;-webkit-box-shadow:none;box-shadow:none}.wp-editor-tabs{float:left}.wp-switch-editor{float:right;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;position:relative;top:1px;background:#ebebeb;color:#777;cursor:pointer;font:13px/19px "Open Sans",sans-serif;height:20px;margin:5px 5px 0 0;padding:3px 8px 4px;border:1px solid #e5e5e5}.wp-switch-editor:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);outline:0;color:#23282d}.html-active .switch-html:focus,.tmce-active .switch-tmce:focus,.wp-switch-editor:active{-webkit-box-shadow:none;box-shadow:none}.wp-switch-editor:active{background-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none}.js .tmce-active .wp-editor-area{color:#fff}.tmce-active .quicktags-toolbar{display:none}.html-active .switch-html,.tmce-active .switch-tmce{background:#f5f5f5;color:#555;border-bottom-color:#f5f5f5}.wp-media-buttons{float:right}.wp-media-buttons .button{margin-left:5px;margin-bottom:4px;padding-right:7px;padding-left:7px}.wp-media-buttons .button:active{position:relative;top:1px;margin-top:-1px;margin-bottom:1px}.wp-media-buttons .insert-media{padding-right:5px}.wp-media-buttons a{text-decoration:none;color:#464646;font-size:12px}.wp-media-buttons img{padding:0 4px;vertical-align:middle}.wp-media-buttons span.wp-media-buttons-icon{display:inline-block;width:18px;height:18px;vertical-align:text-top;margin:0 2px}#wp-link-close:before,#wp-link-search-toggle:after{vertical-align:top;speak:none;-moz-osx-font-smoothing:grayscale}.wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}.wp-media-buttons .add_media span.wp-media-buttons-icon:before{font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:'\f104'}.quicktags-toolbar{padding:3px;position:relative;border-bottom:1px solid #dedede;background:#f5f5f5;min-height:30px}.has-dfw .quicktags-toolbar{padding-left:35px}.wp-core-ui .quicktags-toolbar input.button.button-small{margin:2px}.quicktags-toolbar input[value=link]{text-decoration:underline}.quicktags-toolbar input[value=del]{text-decoration:line-through}.quicktags-toolbar input[value="i"]{font-style:italic}.quicktags-toolbar input[value="b"]{font-weight:700}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw,.qt-dfw{position:absolute;top:0;left:0;margin:5px 0 0 5px}.qt-fullscreen{position:static;margin:2px}@media screen and (max-width:782px){.mce-toolbar .mce-btn button,.qt-dfw{padding:6px 7px}.mce-toolbar .mce-btn-group .mce-btn{margin:1px}.qt-dfw{width:36px;height:34px}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw{margin:4px 0 0 4px}.mce-toolbar .mce-colorbutton .mce-preview{right:8px;bottom:6px}.mce-window .mce-btn{padding:2px 0}.has-dfw .quicktags-toolbar,.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-left:40px}}@media screen and (min-width:782px){.wp-core-ui .quicktags-toolbar input.button.button-small{font-size:12px;height:26px;line-height:24px}}#wp_editbtns,#wp_gallerybtns{padding:2px;position:absolute;display:none;z-index:100020}#wp_delgallery,#wp_delimgbtn,#wp_editgallery,#wp_editimgbtn{border-color:#999;background-color:#eee;margin:2px;padding:2px;border-width:1px;border-style:solid;-webkit-border-radius:3px;border-radius:3px}#wp_delgallery:hover,#wp_delimgbtn:hover,#wp_editgallery:hover,#wp_editimgbtn:hover{border-color:#555;background-color:#ccc}#wp-link-wrap{display:none;background-color:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3);width:500px;overflow:hidden;margin-right:-250px;margin-top:-125px;position:fixed;top:50%;right:50%;z-index:100105;-webkit-transition:height .2s,margin-top .2s;transition:height .2s,margin-top .2s}#wp-link-backdrop{display:none;position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:100100}#wp-link{position:relative;height:100%}#wp-link-wrap.search-panel-visible{height:500px;margin-top:-250px}#wp-link-wrap .wp-link-text-field{display:none}#wp-link-wrap.has-text-field .wp-link-text-field{display:block}#link-modal-title{background:#fcfcfc;border-bottom:1px solid #dfdfdf;height:36px;font-size:18px;font-weight:600;line-height:36px;padding:0 16px 0 36px;top:0;left:0;right:0}#wp-link-close{color:#666;padding:0;position:absolute;top:0;left:0;width:36px;height:36px;text-align:center;background:0 0;border:none}#wp-link-close:before{font:400 20px/36px dashicons;-webkit-font-smoothing:antialiased;width:36px;height:36px;content:'\f158'}#wp-link-close:focus,#wp-link-close:hover{color:#00a0d2}#wp-link-close:focus{outline:0;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#link-selector{padding:0 16px 50px}#wp-link-wrap.search-panel-visible #link-selector{-webkit-overflow-scrolling:touch;padding:0 16px;position:absolute;top:36px;right:0;left:0;bottom:44px}#wp-link ol,#wp-link ul{list-style:none;margin:0;padding:0}#wp-link-search-toggle:after{display:inline-block;font:400 20px/1 dashicons;-webkit-font-smoothing:antialiased;content:'\f140'}.search-panel-visible #wp-link-search-toggle:after{content:'\f142'}#wp-link input[type=text]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wp-link #link-options{padding:8px 0 12px}#wp-link p.howto{margin:3px 0}#wp-link p.howto a{text-decoration:none;color:inherit}#wp-link label input[type=text]{margin-top:5px;width:70%}#wp-link #link-options label span,#wp-link #search-panel label span.search-label{display:inline-block;width:80px;text-align:left;padding-left:5px;max-width:24%;vertical-align:middle;word-wrap:break-word}#wp-link .link-search-field{float:right;width:250px;max-width:70%}#wp-link .link-search-wrapper{margin:5px 0 9px;display:block;overflow:hidden}#wp-link .link-search-wrapper span{float:right;margin-top:4px}#wp-link .link-search-wrapper .spinner{margin-top:5px}#wp-link .link-target{padding:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#wp-link .link-target label{max-width:70%}#wp-link .query-results{border:1px solid #dfdfdf;margin:0;background:#fff;overflow:auto;position:absolute;right:16px;left:16px;bottom:16px;top:172px}.has-text-field #wp-link .query-results{top:205px}#wp-link li{clear:both;margin-bottom:0;border-bottom:1px solid #f1f1f1;color:#32373c;padding:4px 10px 4px 6px;position:relative}#wp-link .query-notice,#wp-link li.unselectable{border-bottom:1px solid #dfdfdf}#wp-link .query-notice{padding:0;background-color:#f7fcfe;color:#000}#wp-link .query-notice .query-notice-default,#wp-link .query-notice .query-notice-hint{display:block;padding:6px;border-right:4px solid #00a0d2}#wp-link .unselectable.no-matches-found{padding:0;border-bottom:1px solid #dfdfdf;background-color:#fef7f1}#wp-link .no-matches-found .item-title{display:block;padding:6px;border-right:4px solid #d54e21}#wp-link .query-results em{font-style:normal}#wp-link li:hover{background:#eaf2fa;color:#151515}#wp-link li.unselectable:hover{background:#fff;cursor:auto;color:#32373c}#wp-link li.selected{background:#ddd;color:#32373c}#wp-link li.selected .item-title{font-weight:700}#wp-link li:last-child{border:none}#wp-link .item-title{display:inline-block;width:80%;width:-webkit-calc(100% - 68px);width:calc(100% - 68px);word-wrap:break-word}#wp-link .item-info{text-transform:uppercase;color:#666;font-size:11px;position:absolute;left:5px;top:5px}#wp-link #search-panel,#wp-link #search-results{display:none}#wp-link-wrap.search-panel-visible #search-panel{display:block}#wp-link .river-waiting{display:none;padding:10px 0}#wp-link .submitbox{padding:8px 16px;background:#fcfcfc;border-top:1px solid #dfdfdf;position:absolute;bottom:0;right:0;left:0}#wp-link-cancel{line-height:25px;float:right}#wp-link-update{line-height:23px;float:left}#wp-link-submit{float:left;margin-bottom:0}@media screen and (max-width:782px){#wp-link-wrap{margin-top:-140px}#wp-link-wrap.search-panel-visible .query-results{top:195px}#wp-link-wrap.search-panel-visible.has-text-field .query-results{top:235px}#link-selector{padding:0 16px 60px}#wp-link-wrap.search-panel-visible #link-selector{bottom:52px}#wp-link-cancel{line-height:32px}}@media screen and (max-width:520px){#wp-link-wrap{width:auto;margin-right:0;right:10px;left:10px;max-width:500px}}@media screen and (max-height:520px){#wp-link-wrap{-webkit-transition:none;transition:none}#wp-link-wrap.search-panel-visible{height:auto;margin-top:0;top:10px;bottom:10px}.search-panel-visible #link-selector{overflow:auto}.search-panel-visible #search-panel .query-results{position:static}}@media screen and (max-height:290px){#wp-link-wrap{height:auto;margin-top:0;top:10px;bottom:10px}#link-selector{overflow:auto;height:-webkit-calc(100% - 92px);height:calc(100% - 92px);padding-bottom:2px}#search-panel .query-results{position:static}}div.wp-link-preview{float:right;margin:5px;max-width:694px;overflow:hidden;text-overflow:ellipsis}div.wp-link-preview a{color:#0073aa;text-decoration:underline;-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;cursor:pointer}@media screen and (max-width:782px){div.wp-link-preview{margin:8px 5px 8px 0;max-width:70%;max-width:-webkit-calc(100% - 86px);max-width:calc(100% - 86px)}}.mce-fullscreen{z-index:100010}.rtl .quicktags-toolbar input,.rtl .wp-switch-editor{font-family:Tahoma,sans-serif}.mce-rtl .mce-flow-layout .mce-flow-layout-item>div{direction:rtl}.mce-rtl .mce-listbox i.mce-caret{left:6px}html:lang(he-il) .rtl .quicktags-toolbar input,html:lang(he-il) .rtl .wp-switch-editor{font-family:Arial,sans-serif}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}} \ No newline at end of file diff --git a/wp-includes/css/editor.css b/wp-includes/css/editor.css deleted file mode 100644 index b89e93907e..0000000000 --- a/wp-includes/css/editor.css +++ /dev/null @@ -1,1748 +0,0 @@ -/*------------------------------------------------------------------------------ - TinyMCE and Quicklinks toolbars -------------------------------------------------------------------------------*/ - -/* TinyMCE widgets/containers */ - -.mce-container, -.mce-container *, -.mce-widget, -.mce-widget * { - color: inherit; - font-family: inherit; -} - -/* TinyMCE windows */ -#mce-modal-block, -#mce-modal-block.mce-fade { - opacity: 0.7; - filter: alpha(opacity=70); - -webkit-transition: none; - transition: none; -} - -.mce-window { - -webkit-border-radius: 0; - border-radius: 0; - -webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - -webkit-font-smoothing: subpixel-antialiased; - -webkit-transition: none; - transition: none; -} - -.mce-window .mce-container-body.mce-abs-layout { - overflow: visible; -} - -.mce-window .mce-window-head { - background: #fcfcfc; - border-bottom: 1px solid #dfdfdf; - padding: 0; - min-height: 36px; -} - -.mce-window .mce-window-head .mce-title { - color: #444; - font-size: 18px; - font-weight: 600; - line-height: 36px; - margin: 0; - padding: 0 36px 0 16px; -} - -.mce-window .mce-window-head .mce-close { - color: transparent; - top: 0; - right: 0; - width: 36px; - height: 36px; - line-height: 36px; - text-align: center; -} - -.mce-window .mce-window-head .mce-close:before { - font: normal 20px/36px 'dashicons'; - text-align: center; - color: #666; - width: 36px; - height: 36px; - display: block; -} - -.mce-window .mce-window-head .mce-close:hover:before { - color: #00a0d2; -} - -.mce-window .mce-window-head .mce-dragh { - width: -webkit-calc( 100% - 36px ); - width: calc( 100% - 36px ); -} - -.mce-window .mce-foot { - border-top: 1px solid #dfdfdf; -} - -.mce-textbox, -.mce-checkbox i.mce-i-checkbox, -#wp-link .query-results { - border: 1px solid #ddd; - -webkit-border-radius: 0; - border-radius: 0; - -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.07); - box-shadow: inset 0 1px 2px rgba(0,0,0,0.07); - -webkit-transition: .05s all ease-in-out; - transition: .05s all ease-in-out; -} - -.mce-textbox:focus, -.mce-textbox.mce-focus, -.mce-checkbox:focus i.mce-i-checkbox, -#wp-link .query-results:focus { - border-color: #5b9dd9; - -webkit-box-shadow: 0 0 2px rgba(30,140,190,0.8); - box-shadow: 0 0 2px rgba(30,140,190,0.8); -} - -.mce-window .mce-wp-help { - height: 360px; - width: 460px; - overflow: auto; -} - -.mce-window .mce-wp-help * { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.mce-window .mce-wp-help > .mce-container-body { - width: auto !important; -} - -.mce-window .wp-editor-help { - padding: 10px 10px 0 20px; -} - -.mce-window .wp-editor-help h2, -.mce-window .wp-editor-help p { - margin: 8px 0; - white-space: normal; - font-size: 14px; - font-weight: normal; -} - -.mce-window .wp-editor-help table { - width: 100%; - margin-bottom: 20px; -} - -.mce-window .wp-editor-help td, -.mce-window .wp-editor-help th { - font-size: 13px; - padding: 5px; - vertical-align: middle; - word-wrap: break-word; - white-space: normal; -} - -.mce-window .wp-editor-help th { - font-weight: bold; - padding-bottom: 0; -} - -.mce-window .wp-editor-help kbd { - font-family: monospace; - padding: 2px 7px 3px; - font-weight: bold; - margin: 0; - background: #eaeaea; - background: rgba(0,0,0,0.08); -} - -.mce-window .wp-help-header td { - font-weight: bold; - padding: 0 5px; -} - -.mce-window .wp-help-th-center td:nth-child(odd), -.mce-window .wp-help-th-center th:nth-child(odd) { - text-align: center; -} - -/* TinyMCE menus */ -.mce-menu, -.mce-floatpanel.mce-popover { - border-color: rgba(0,0,0,0.15); - -webkit-border-radius: 0; - border-radius: 0; - -webkit-box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 ); - box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 ); -} - -.mce-menu, -.mce-floatpanel.mce-popover.mce-bottom { - margin-top: 2px; -} - -.mce-floatpanel .mce-arrow { - display: none; -} - -.mce-menu .mce-container-body { - min-width: 160px; -} - -.mce-menu-item { - border: none; - margin-bottom: 2px; -} - -.mce-menu-has-icons i.mce-ico { - line-height: 20px; -} - -/* TinyMCE panel */ -div.mce-panel { - border: 0; - background: #fff; -} - -.mce-panel.mce-menu { - border: 1px solid #ddd; -} - -div.mce-tab { - line-height: 13px; -} - -/* TinyMCE toolbars */ -div.mce-toolbar-grp { - border-bottom: 1px solid #dedede; - background: #f5f5f5; - padding: 0; - position: relative; -} - -div.mce-inline-toolbar-grp { - border: 1px solid #a0a5aa; - -webkit-border-radius: 2px; - border-radius: 2px; - -webkit-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.15 ); - box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.15 ); - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin-bottom: 8px; - position: absolute; - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - max-width: 98%; - z-index: 100100; /* Same as the other TinyMCE "panels" */ -} - -div.mce-inline-toolbar-grp > div.mce-stack-layout { - padding: 1px; -} - -div.mce-inline-toolbar-grp.mce-arrow-up { - margin-bottom: 0; - margin-top: 8px; -} - -div.mce-inline-toolbar-grp:before, -div.mce-inline-toolbar-grp:after { - position: absolute; - left: 50%; - display: block; - width: 0; - height: 0; - border-style: solid; - border-color: transparent; - content: ''; -} - -div.mce-inline-toolbar-grp.mce-arrow-up:before { - top: -9px; - border-bottom-color: #a0a5aa; - border-width: 0 9px 9px; - margin-left: -9px; -} - -div.mce-inline-toolbar-grp.mce-arrow-down:before { - bottom: -9px; - border-top-color: #a0a5aa; - border-width: 9px 9px 0; - margin-left: -9px; -} - -div.mce-inline-toolbar-grp.mce-arrow-up:after { - top: -8px; - border-bottom-color: #f5f5f5; - border-width: 0 8px 8px; - margin-left: -8px; -} - -div.mce-inline-toolbar-grp.mce-arrow-down:after { - bottom: -8px; - border-top-color: #f5f5f5; - border-width: 8px 8px 0; - margin-left: -8px; -} - -div.mce-inline-toolbar-grp.mce-arrow-left:before, -div.mce-inline-toolbar-grp.mce-arrow-left:after { - margin: 0; -} - -div.mce-inline-toolbar-grp.mce-arrow-left:before { - left: 20px; -} -div.mce-inline-toolbar-grp.mce-arrow-left:after { - left: 21px; -} - -div.mce-inline-toolbar-grp.mce-arrow-right:before, -div.mce-inline-toolbar-grp.mce-arrow-right:after { - left: auto; - margin: 0; -} - -div.mce-inline-toolbar-grp.mce-arrow-right:before { - right: 20px; -} - -div.mce-inline-toolbar-grp.mce-arrow-right:after { - right: 21px; -} - -div.mce-inline-toolbar-grp.mce-arrow-full { - right: 0; -} - -div.mce-inline-toolbar-grp.mce-arrow-full > div { - width: 100%; - overflow-x: auto; -} - -div.mce-toolbar-grp > div { - padding: 3px; -} - -.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first { - padding-right: 32px; -} - -.mce-toolbar .mce-btn-group { - margin: 0; -} - -div.mce-statusbar { - border-top: 1px solid #e5e5e5; -} - -div.mce-path { - padding: 2px 10px; - margin: 0; -} - -.mce-path, -.mce-path-item, -.mce-path .mce-divider { - font-size: 12px; -} - -.mce-toolbar .mce-btn, -.qt-dfw { - border-color: transparent; - background: transparent; - -webkit-box-shadow: none; - box-shadow: none; - text-shadow: none; - cursor: pointer; -} - -.mce-toolbar .mce-btn-group .mce-btn, -.qt-dfw { - border: 1px solid transparent; - margin: 2px; - -webkit-border-radius: 2px; - border-radius: 2px; -} - -.mce-toolbar .mce-btn-group .mce-btn:hover, -.mce-toolbar .mce-btn-group .mce-btn:focus, -.qt-dfw:hover, -.qt-dfw:focus { - background: #fafafa; - border-color: #999; - color: #23282d; - -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - outline: none; -} - -.mce-toolbar .mce-btn-group .mce-btn.mce-active, -.mce-toolbar .mce-btn-group .mce-btn:active, -.qt-dfw.active { - background: #ebebeb; - border-color: #999; - -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.3 ); - box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.3 ); -} - -.mce-toolbar .mce-btn-group .mce-btn.mce-active:hover { - border-color: #555; -} - -.mce-toolbar .mce-btn-group .mce-btn.mce-active:hover i.mce-ico { - color: #555; -} - -.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:hover, -.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus { - color: #a0a5aa; - background: none; - border-color: #ddd; - text-shadow: 0 1px 0 #fff; - -webkit-box-shadow: none; - box-shadow: none; -} - -.mce-toolbar .mce-btn-group .mce-first, -.mce-toolbar .mce-btn-group .mce-last { - border-color: transparent; -} - -.mce-toolbar .mce-btn button, -.qt-dfw { - padding: 2px 3px; - line-height: normal; -} - -.mce-toolbar .mce-listbox button { - font-size: 13px; - line-height: 20px; - padding-left: 6px; - padding-right: 20px; -} - -.mce-toolbar .mce-btn i { - text-shadow: none; -} - -.mce-toolbar .mce-btn-group > div { - white-space: normal; -} - -.mce-toolbar .mce-colorbutton .mce-open { - border-right: 0; -} - -.mce-toolbar .mce-colorbutton .mce-preview { - margin: 0; - padding: 0; - top: auto; - bottom: 2px; - left: 3px; - height: 3px; - width: 20px; -} - -/* mce listbox */ -.mce-toolbar .mce-btn-group .mce-btn.mce-listbox { - -webkit-border-radius: 0; - border-radius: 0; - direction: ltr; - background: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: inset 0 1px 1px -1px rgba(0, 0, 0, .2); - box-shadow: inset 0 1px 1px -1px rgba(0, 0, 0, .2); -} - -.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:hover { - border-color: #b4b9be; -} - -.mce-panel .mce-btn i.mce-caret { - border-top: 6px solid #777; - margin-left: 2px; - margin-right: 2px; -} - -.mce-listbox i.mce-caret { - right: 4px; -} - -.mce-panel .mce-btn:hover i.mce-caret { - border-top-color: #32373c; -} - -.mce-panel .mce-active i.mce-caret { - border-top: 0; - border-bottom: 6px solid #32373c; - margin-top: 7px; -} - -.mce-listbox.mce-active i.mce-caret { - margin-top: -3px; -} - -.mce-toolbar .mce-splitbtn:hover .mce-open { - border-right-color: transparent; -} - -.mce-toolbar .mce-splitbtn .mce-open.mce-active { - background: transparent; - outline: none; -} - -.mce-menu .mce-menu-item:hover, -.mce-menu .mce-menu-item.mce-selected, -.mce-menu .mce-menu-item:focus, -.mce-menu .mce-menu-item-normal.mce-active, -.mce-menu .mce-menu-item-preview.mce-active { - background: #0073aa; /* See color scheme. */ -} - -.mce-menu .mce-menu-item-preview.mce-active { - border-left: none; -} - -.mce-menu .mce-menu-item-preview.mce-active .mce-text { - color: #fff; -} - -.mce-menu .mce-menu-item.mce-disabled { - cursor: default; -} - -.mce-menu .mce-menu-item.mce-disabled:hover { - background: #ccc; -} - -/* Menubar */ -.mce-menubar { - border-color: #e5e5e5; - background: #fff; - border-width: 0px 0px 1px; -} - -.mce-menubar .mce-menubtn { - margin: 2px; -} - -.mce-menubar .mce-menubtn:hover, -.mce-menubar .mce-menubtn.mce-active, -.mce-menubar .mce-menubtn:focus { - border-color: transparent; - background: transparent; -} - -.mce-menubar .mce-menubtn:focus { - color: #124964; - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -div.mce-menu .mce-menu-item-sep, -.mce-menu-item-sep:hover { - border-bottom: 1px solid #ddd; - height: 0px; - margin: 5px 0; -} - -.mce-menubtn span { - margin-right: 0; - padding-left: 3px; -} - -.mce-menu-has-icons i.mce-ico:before { - margin-left: -2px; -} - -/* Buttons in modals */ -.mce-primary button, -.mce-primary button i { - text-align: center; - color: #fff; - text-shadow: none; - padding: 0; - line-height: 26px; -} - -.mce-window .mce-btn { - color: #555; - background: #f7f7f7; - text-decoration: none; - font-size: 13px; - line-height: 26px; - height: 28px; - margin: 0; - padding: 0; - cursor: pointer; - border: 1px solid #ccc; - -webkit-appearance: none; - -webkit-border-radius: 3px; - border-radius: 3px; - white-space: nowrap; - -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); -} - -/* Remove the dotted border on :focus and the extra padding in Firefox */ -.mce-window .mce-btn::-moz-focus-inner { - border-width: 1px 0; - border-style: solid none; - border-color: transparent; - padding: 0; -} - -.mce-window .mce-btn:hover, -.mce-window .mce-btn:focus { - background: #fafafa; - border-color: #999; - color: #23282d; -} - -.mce-window .mce-btn:focus { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); -} - -.mce-window .mce-btn:active { - background: #eee; - border-color: #999; - color: #32373c; - -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); - box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); -} - -.mce-window .mce-btn.mce-disabled { - color: #a0a5aa; - border-color: #ddd; - background: #f7f7f7; - -webkit-box-shadow: none; - box-shadow: none; - text-shadow: 0 1px 0 #fff; - cursor: default; -} - -.mce-window .mce-btn.mce-primary { - background: #00a0d2; - border-color: #0073aa; - -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5), 0 1px 0 rgba( 0, 0, 0, 0.15 ); - box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5 ), 0 1px 0 rgba( 0, 0, 0, 0.15 ); - color: #fff; - text-decoration: none; -} - -.mce-window .mce-btn.mce-primary:hover, -.mce-window .mce-btn.mce-primary:focus { - background: #1e8cbe; - border-color: #0073aa; - -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 ); - box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 ); - color: #fff; -} - -.mce-window .mce-btn.mce-primary:focus { - border-color: #0e3950; - -webkit-box-shadow: - inset 0 1px 0 rgba( 120, 200, 230, 0.6 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); - box-shadow: - inset 0 1px 0 rgba( 120, 200, 230, 0.6 ), - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); -} - -.mce-window .mce-btn.mce-primary:active { - background: #1b7aa6; - border-color: #005684; - color: rgba( 255, 255, 255, 0.95 ); - -webkit-box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 ); - vertical-align: top; -} - -.mce-window .mce-btn.mce-primary.mce-disabled { - color: #94cde7; - background: #298cba; - border-color: #1b607f; - -webkit-box-shadow: none; - box-shadow: none; - text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ); - cursor: default; -} - -.mce-menubtn.mce-fixed-width button { - overflow-x: hidden; - text-overflow: ellipsis; - width: 110px; -} - -/* Charmap modal */ -.mce-charmap { - margin: 3px; -} - -.mce-charmap td { - padding: 0; - border-color: #dfdfdf; - cursor: pointer; -} - -.mce-charmap td:hover { - background: #f3f3f3; -} - -.mce-charmap td div { - width: 18px; - height: 22px; - line-height: 22px; -} - -/* TinyMCE tooltips */ -.mce-tooltip { - margin-top: 2px; -} - -.mce-tooltip-inner { - -webkit-border-radius: 3px; - border-radius: 3px; - -webkit-box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 ); - box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 ); - color: #fff; - font-size: 12px; -} - -/* TinyMCE icons */ -.mce-ico { - font-family: 'tinymce', Arial; -} - -.mce-btn-small .mce-ico { - font-family: 'tinymce-small', Arial; -} - -.mce-toolbar .mce-ico { - color: #777; - line-height: 20px; - width: 20px; - height: 20px; - text-align: center; - text-shadow: none; - margin: 0; - padding: 0; -} - -.qt-dfw { - color: #777; - line-height: 20px; - width: 28px; - height: 26px; - text-align: center; - text-shadow: none; -} - -.mce-toolbar .mce-btn .mce-open { - line-height: 20px; -} - -.mce-toolbar .mce-btn:hover .mce-open, -.mce-toolbar .mce-btn:focus .mce-open, -.mce-toolbar .mce-btn.mce-active .mce-open { - border-left-color: #999; -} - -i.mce-i-bold, -i.mce-i-italic, -i.mce-i-bullist, -i.mce-i-numlist, -i.mce-i-blockquote, -i.mce-i-alignleft, -i.mce-i-aligncenter, -i.mce-i-alignright, -i.mce-i-link, -i.mce-i-unlink, -i.mce-i-wp_more, -i.mce-i-strikethrough, -i.mce-i-spellchecker, -i.mce-i-fullscreen, -i.mce-i-wp_fullscreen, -i.mce-i-dfw, -i.mce-i-wp_adv, -i.mce-i-underline, -i.mce-i-alignjustify, -i.mce-i-forecolor, -i.mce-i-backcolor, -i.mce-i-pastetext, -i.mce-i-pasteword, -i.mce-i-removeformat, -i.mce-i-charmap, -i.mce-i-outdent, -i.mce-i-indent, -i.mce-i-undo, -i.mce-i-redo, -i.mce-i-help, -i.mce-i-wp_help, -i.mce-i-wp-media-library, -i.mce-i-ltr, -i.mce-i-wp_page, -i.mce-i-hr, -i.mce-i-wp_code, -i.mce-i-dashicon, -.mce-close { - font: normal 20px/1 'dashicons'; - padding: 0; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - margin-left: -2px; - padding-right: 2px; -} - -.qt-dfw { - font: normal 20px/1 'dashicons'; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -i.mce-i-bold:before { - content: '\f200'; -} - -i.mce-i-italic:before { - content: '\f201'; -} - -i.mce-i-bullist:before { - content: '\f203'; -} - -i.mce-i-numlist:before { - content: '\f204'; -} - -i.mce-i-blockquote:before { - content: '\f205'; -} - -i.mce-i-alignleft:before { - content: '\f206'; -} - -i.mce-i-aligncenter:before { - content: '\f207'; -} - -i.mce-i-alignright:before { - content: '\f208'; -} - -i.mce-i-link:before { - content: '\f103'; -} - -i.mce-i-unlink:before { - content: '\f225'; -} - -i.mce-i-wp_more:before { - content: '\f209'; -} - -i.mce-i-strikethrough:before { - content: '\f224'; -} - -i.mce-i-spellchecker:before { - content: '\f210'; -} - -i.mce-i-fullscreen:before, -i.mce-i-wp_fullscreen:before, -i.mce-i-dfw:before, -.qt-dfw:before { - content: '\f211'; -} - -i.mce-i-wp_adv:before { - content: '\f212'; -} - -i.mce-i-underline:before { - content: '\f213'; -} - -i.mce-i-alignjustify:before { - content: '\f214'; -} - -i.mce-i-forecolor:before, -i.mce-i-backcolor:before { - content: '\f215'; -} - -i.mce-i-pastetext:before { - content: '\f217'; -} - -i.mce-i-removeformat:before { - content: '\f218'; -} - -i.mce-i-charmap:before { - content: '\f220'; -} - -i.mce-i-outdent:before { - content: '\f221'; -} - -i.mce-i-indent:before { - content: '\f222'; -} - -i.mce-i-undo:before { - content: '\f171'; -} - -i.mce-i-redo:before { - content: '\f172'; -} - -i.mce-i-help:before, -i.mce-i-wp_help:before { - content: '\f223'; -} - -i.mce-i-wp-media-library:before { - content: '\f104'; -} - -i.mce-i-ltr:before { - content: '\f320'; -} - -i.mce-i-wp_page:before { - content: '\f105'; -} - -i.mce-i-hr:before { - content: '\f460'; -} - -.mce-close:before { - content: '\f158'; -} - -i.mce-i-wp_code:before { - content: '\f475'; -} - -/* RTL button icons */ -.rtl i.mce-i-outdent:before { - content: '\f222'; -} - -.rtl i.mce-i-indent:before { - content: '\f221'; -} - -/* Editors */ -.wp-editor-wrap { - position: relative; -} - -.wp-editor-tools { - position: relative; - z-index: 1; -} - -.wp-editor-tools:after { - clear: both; - content: ''; - display: table; -} - -.wp-editor-container { - clear: both; -} - -.wp-editor-area { - font-family: Consolas, Monaco, monospace; - font-size: 13px; - padding: 10px; - margin: 1px 0 0; - line-height: 150%; - border: 0 none; - outline: none; - display: block; - resize: vertical; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.rtl .wp-editor-area { - font-family: Tahoma, Monaco, monospace; -} - -.locale-he-il .wp-editor-area { - font-family: Arial, Monaco, monospace; -} - -.wp-editor-container textarea.wp-editor-area { - width: 100%; - margin: 0; - -webkit-box-shadow: none; - box-shadow: none; -} - -.wp-editor-tabs { - float: right; -} - -.wp-switch-editor { - float: left; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - position: relative; - top: 1px; - background: #ebebeb; - color: #777; - cursor: pointer; - font: 13px/19px "Open Sans", sans-serif; - height: 20px; - margin: 5px 0 0 5px; - padding: 3px 8px 4px; - border: 1px solid #e5e5e5; -} - -.wp-switch-editor:focus { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - outline: none; - color: #23282d; -} - -.wp-switch-editor:active, -.html-active .switch-html:focus, -.tmce-active .switch-tmce:focus { - -webkit-box-shadow: none; - box-shadow: none; -} - -.wp-switch-editor:active { - background-color: #f5f5f5; - -webkit-box-shadow: none; - box-shadow: none; -} - -.js .tmce-active .wp-editor-area { - color: white; -} - -.tmce-active .quicktags-toolbar { - display: none; -} - -.tmce-active .switch-tmce, -.html-active .switch-html { - background: #f5f5f5; - color: #555; - border-bottom-color: #f5f5f5; -} - -.wp-media-buttons { - float: left; -} - -.wp-media-buttons .button { - margin-right: 5px; - margin-bottom: 4px; - padding-left: 7px; - padding-right: 7px; -} - -.wp-media-buttons .button:active { - position: relative; - top: 1px; - margin-top: -1px; - margin-bottom: 1px; -} - -.wp-media-buttons .insert-media { - padding-left: 5px; -} - -.wp-media-buttons a { - text-decoration: none; - color: #464646; - font-size: 12px; -} - -.wp-media-buttons img { - padding: 0 4px; - vertical-align: middle; -} - -.wp-media-buttons span.wp-media-buttons-icon { - display: inline-block; - width: 18px; - height: 18px; - vertical-align: text-top; - margin: 0 2px; -} - -.wp-media-buttons .add_media span.wp-media-buttons-icon { - background: none; -} - -.wp-media-buttons .add_media span.wp-media-buttons-icon:before { - font: normal 18px/1 'dashicons'; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.wp-media-buttons .add_media span.wp-media-buttons-icon:before { - content: '\f104'; -} - -/* Quicktags */ -.quicktags-toolbar { - padding: 3px; - position: relative; - border-bottom: 1px solid #dedede; - background: #f5f5f5; - min-height: 30px; -} - -.has-dfw .quicktags-toolbar { - padding-right: 35px; -} - -.wp-core-ui .quicktags-toolbar input.button.button-small { - margin: 2px; -} - -.quicktags-toolbar input[value="link"] { - text-decoration: underline; -} - -.quicktags-toolbar input[value="del"] { - text-decoration: line-through; -} - -.quicktags-toolbar input[value="i"] { - font-style: italic; -} - -.quicktags-toolbar input[value="b"] { - font-weight: bold; -} - -.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw, -.qt-dfw { - position: absolute; - top: 0; - right: 0; - margin: 5px 5px 0 0; -} - -.qt-fullscreen { - position: static; - margin: 2px; -} - -@media screen and ( max-width: 782px ) { - .mce-toolbar .mce-btn button, - .qt-dfw { - padding: 6px 7px; - } - - .mce-toolbar .mce-btn-group .mce-btn { - margin: 1px; - } - - .qt-dfw { - width: 36px; - height: 34px; - } - - .mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw { - margin: 4px 4px 0 0; - } - - .mce-toolbar .mce-colorbutton .mce-preview { - left: 8px; - bottom: 6px; - } - - .mce-window .mce-btn { - padding: 2px 0; - } - - .has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first, - .has-dfw .quicktags-toolbar { - padding-right: 40px; - } -} - -@media screen and ( min-width: 782px ) { - .wp-core-ui .quicktags-toolbar input.button.button-small { - /* .button-small is normaly 11px, but a bit too small for these buttons. */ - font-size: 12px; - height: 26px; - line-height: 24px; - } -} - -#wp_editbtns, -#wp_gallerybtns { - padding: 2px; - position: absolute; - display: none; - z-index: 100020; -} - -#wp_editimgbtn, -#wp_delimgbtn, -#wp_editgallery, -#wp_delgallery { - border-color: #999; - background-color: #eee; - margin: 2px; - padding: 2px; - border-width: 1px; - border-style: solid; - -webkit-border-radius: 3px; - border-radius: 3px; -} - -#wp_editimgbtn:hover, -#wp_delimgbtn:hover, -#wp_editgallery:hover, -#wp_delgallery:hover { - border-color: #555; - background-color: #ccc; -} - -/*------------------------------------------------------------------------------ - wp-link -------------------------------------------------------------------------------*/ - -#wp-link-wrap { - display: none; - background-color: #fff; - -webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - width: 500px; - overflow: hidden; - margin-left: -250px; - margin-top: -125px; - position: fixed; - top: 50%; - left: 50%; - z-index: 100105; - -webkit-transition: height 0.2s, margin-top 0.2s; - transition: height 0.2s, margin-top 0.2s; -} - -#wp-link-backdrop { - display: none; - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - min-height: 360px; - background: #000; - opacity: 0.7; - filter: alpha(opacity=70); - z-index: 100100; -} - -#wp-link { - position: relative; - height: 100%; -} - -#wp-link-wrap.search-panel-visible { - height: 500px; - margin-top: -250px; -} - -#wp-link-wrap .wp-link-text-field { - display: none; -} - -#wp-link-wrap.has-text-field .wp-link-text-field { - display: block; -} - -#link-modal-title { - background: #fcfcfc; - border-bottom: 1px solid #dfdfdf; - height: 36px; - font-size: 18px; - font-weight: 600; - line-height: 36px; - padding: 0 36px 0 16px; - top: 0; - right: 0; - left: 0; -} - -#wp-link-close { - color: #666; - padding: 0; - position: absolute; - top: 0; - right: 0; - width: 36px; - height: 36px; - text-align: center; - background: none; - border: none; - cursor: pointer; -} - -#wp-link-close:before { - font: normal 20px/36px 'dashicons'; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - width: 36px; - height: 36px; - content: '\f158'; -} - -#wp-link-close:hover, -#wp-link-close:focus { - color: #00a0d2; -} - -#wp-link-close:focus { - outline: none; - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba(30, 140, 190, .8); -} - -#link-selector { - padding: 0 16px 50px; -} - -#wp-link-wrap.search-panel-visible #link-selector { - -webkit-overflow-scrolling: touch; - padding: 0 16px; - position: absolute; - top: 36px; - left: 0; - right: 0; - bottom: 44px; -} - -#wp-link ol, -#wp-link ul { - list-style: none; - margin: 0; - padding: 0; -} - -#wp-link-search-toggle:after { - display: inline-block; - font: normal 20px/1 'dashicons'; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - content: '\f140'; -} - -.search-panel-visible #wp-link-search-toggle:after { - content: '\f142'; -} - -#wp-link input[type="text"] { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -#wp-link #link-options { - padding: 8px 0 12px; -} - -#wp-link p.howto { - margin: 3px 0; -} - -#wp-link p.howto a { - text-decoration: none; - color: inherit; -} - -#wp-link-search-toggle { - cursor: pointer; -} - -#wp-link label input[type="text"] { - margin-top: 5px; - width: 70%; -} - -#wp-link #link-options label span, -#wp-link #search-panel label span.search-label { - display: inline-block; - width: 80px; - text-align: right; - padding-right: 5px; - max-width: 24%; - vertical-align: middle; - word-wrap: break-word; -} - -#wp-link .link-search-field { - float: left; - width: 250px; - max-width: 70%; -} - -#wp-link .link-search-wrapper { - margin: 5px 0 9px; - display: block; - overflow: hidden; -} - -#wp-link .link-search-wrapper span { - float: left; - margin-top: 4px; -} - -#wp-link .link-search-wrapper .spinner { - margin-top: 5px; -} - -#wp-link .link-target { - padding: 3px 0 0; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -#wp-link .link-target label { - max-width: 70%; -} - -#wp-link .query-results { - border: 1px #dfdfdf solid; - margin: 0; - background: #fff; - overflow: auto; - position: absolute; - left: 16px; - right: 16px; - bottom: 16px; - top: 172px; -} - -.has-text-field #wp-link .query-results { - top: 205px; -} - -#wp-link li { - clear: both; - margin-bottom: 0; - border-bottom: 1px solid #f1f1f1; - color: #32373c; - padding: 4px 6px 4px 10px; - cursor: pointer; - position: relative; -} - -#wp-link .query-notice { - padding: 0; - border-bottom: 1px solid #dfdfdf; - background-color: #f7fcfe; - color: #000; -} - -#wp-link .query-notice .query-notice-default, -#wp-link .query-notice .query-notice-hint { - display: block; - padding: 6px; - border-left: 4px solid #00a0d2; -} - -#wp-link .unselectable.no-matches-found { - padding: 0; - border-bottom: 1px solid #dfdfdf; - background-color: #fef7f1; -} - -#wp-link .no-matches-found .item-title { - display: block; - padding: 6px; - border-left: 4px solid #d54e21; -} - -#wp-link .query-results em { - font-style: normal; -} - -#wp-link li:hover { - background: #eaf2fa; - color: #151515; -} - -#wp-link li.unselectable { - border-bottom: 1px solid #dfdfdf; -} - -#wp-link li.unselectable:hover { - background: #fff; - cursor: auto; - color: #32373c; -} - -#wp-link li.selected { - background: #ddd; - color: #32373c; -} - -#wp-link li.selected .item-title { - font-weight: bold; -} - -#wp-link li:last-child { - border: none; -} - -#wp-link .item-title { - display: inline-block; - width: 80%; - width: -webkit-calc(100% - 68px); - width: calc(100% - 68px); - word-wrap: break-word; -} - -#wp-link .item-info { - text-transform: uppercase; - color: #666; - font-size: 11px; - position: absolute; - right: 5px; - top: 5px; -} - -#wp-link #search-results, -#wp-link #search-panel { - display: none; -} - -#wp-link-wrap.search-panel-visible #search-panel { - display: block; -} - -#wp-link .river-waiting { - display: none; - padding: 10px 0; -} - -#wp-link .submitbox { - padding: 8px 16px; - background: #fcfcfc; - border-top: 1px solid #dfdfdf; - position: absolute; - bottom: 0; - left: 0; - right: 0; -} - -#wp-link-cancel { - line-height: 25px; - float: left; -} - -#wp-link-update { - line-height: 23px; - float: right; -} - -#wp-link-submit { - float: right; - margin-bottom: 0; -} - -@media screen and ( max-width: 782px ) { - #wp-link-wrap { - margin-top: -140px; - } - - #wp-link-wrap.search-panel-visible .query-results { - top: 195px; - } - - #wp-link-wrap.search-panel-visible.has-text-field .query-results { - top: 235px; - } - - #link-selector { - padding: 0 16px 60px; - } - - #wp-link-wrap.search-panel-visible #link-selector { - bottom: 52px; - } - - #wp-link-cancel { - line-height: 32px; - } -} - -@media screen and ( max-width: 520px ) { - #wp-link-wrap { - width: auto; - margin-left: 0; - left: 10px; - right: 10px; - max-width: 500px; - } -} - -@media screen and ( max-height: 520px ) { - #wp-link-wrap { - -webkit-transition: none; - transition: none; - } - - #wp-link-wrap.search-panel-visible { - height: auto; - margin-top: 0; - top: 10px; - bottom: 10px; - } - - .search-panel-visible #link-selector { - overflow: auto; - } - - .search-panel-visible #search-panel .query-results { - position: static; - } -} - -@media screen and ( max-height: 290px ) { - #wp-link-wrap { - height: auto; - margin-top: 0; - top: 10px; - bottom: 10px; - } - - #link-selector { - overflow: auto; - height: -webkit-calc(100% - 92px); - height: calc(100% - 92px); - padding-bottom: 2px; - } - - #search-panel .query-results { - position: static; - } -} - -div.wp-link-preview { - float: left; - margin: 5px; - max-width: 694px; - overflow: hidden; - text-overflow: ellipsis; -} - -div.wp-link-preview a { - color: #0073aa; - text-decoration: underline; - -webkit-transition-property: border, background, color; - transition-property: border, background, color; - -webkit-transition-duration: .05s; - transition-duration: .05s; - -webkit-transition-timing-function: ease-in-out; - transition-timing-function: ease-in-out; - cursor: pointer; -} - -@media screen and ( max-width: 782px ) { - div.wp-link-preview { - margin: 8px 0 8px 5px; - max-width: 70%; - max-width: -webkit-calc(100% - 86px); - max-width: calc(100% - 86px); - } -} - -/* =Overlay Body --------------------------------------------------------------- */ - -.mce-fullscreen { - z-index: 100010; -} - -/* =Localization --------------------------------------------------------------- */ -.rtl .wp-switch-editor, -.rtl .quicktags-toolbar input { - font-family: Tahoma, sans-serif; -} - -/* rtl:ignore */ -.mce-rtl .mce-flow-layout .mce-flow-layout-item > div { - direction: rtl; -} - -/* rtl:ignore */ -.mce-rtl .mce-listbox i.mce-caret { - left: 6px; -} - -html:lang(he-il) .rtl .wp-switch-editor, -html:lang(he-il) .rtl .quicktags-toolbar input { - font-family: Arial, sans-serif; -} - -/* HiDPI */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - .wp-media-buttons .add_media span.wp-media-buttons-icon { - background: none; - } -} diff --git a/wp-includes/css/editor.min.css b/wp-includes/css/editor.min.css deleted file mode 100644 index 7415d7754a..0000000000 --- a/wp-includes/css/editor.min.css +++ /dev/null @@ -1 +0,0 @@ -.mce-container,.mce-container *,.mce-widget,.mce-widget *{color:inherit;font-family:inherit}#mce-modal-block,#mce-modal-block.mce-fade{opacity:.7;filter:alpha(opacity=70);-webkit-transition:none;transition:none}.mce-window{-webkit-border-radius:0;border-radius:0;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3);-webkit-font-smoothing:subpixel-antialiased;-webkit-transition:none;transition:none}.mce-window .mce-container-body.mce-abs-layout{overflow:visible}.mce-window .mce-window-head{background:#fcfcfc;border-bottom:1px solid #dfdfdf;padding:0;min-height:36px}.mce-window .mce-window-head .mce-title{color:#444;font-size:18px;font-weight:600;line-height:36px;margin:0;padding:0 36px 0 16px}.mce-window .mce-window-head .mce-close{color:transparent;top:0;right:0;width:36px;height:36px;line-height:36px;text-align:center}.mce-window .mce-window-head .mce-close:before{font:400 20px/36px dashicons;text-align:center;color:#666;width:36px;height:36px;display:block}.mce-window .mce-window-head .mce-close:hover:before{color:#00a0d2}.mce-window .mce-window-head .mce-dragh{width:-webkit-calc(100% - 36px);width:calc(100% - 36px)}.mce-window .mce-foot{border-top:1px solid #dfdfdf}#wp-link .query-results,.mce-checkbox i.mce-i-checkbox,.mce-textbox{border:1px solid #ddd;-webkit-border-radius:0;border-radius:0;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07);-webkit-transition:.05s all ease-in-out;transition:.05s all ease-in-out}#wp-link .query-results:focus,.mce-checkbox:focus i.mce-i-checkbox,.mce-textbox.mce-focus,.mce-textbox:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 2px rgba(30,140,190,.8);box-shadow:0 0 2px rgba(30,140,190,.8)}.mce-window .mce-wp-help{height:360px;width:460px;overflow:auto}.mce-window .mce-wp-help *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mce-window .mce-wp-help>.mce-container-body{width:auto!important}.mce-window .wp-editor-help{padding:10px 10px 0 20px}.mce-window .wp-editor-help h2,.mce-window .wp-editor-help p{margin:8px 0;white-space:normal;font-size:14px;font-weight:400}.mce-window .wp-editor-help table{width:100%;margin-bottom:20px}.mce-window .wp-editor-help td,.mce-window .wp-editor-help th{font-size:13px;padding:5px;vertical-align:middle;word-wrap:break-word;white-space:normal}.mce-window .wp-editor-help th{font-weight:700;padding-bottom:0}.mce-window .wp-editor-help kbd{font-family:monospace;padding:2px 7px 3px;font-weight:700;margin:0;background:#eaeaea;background:rgba(0,0,0,.08)}.mce-window .wp-help-header td{font-weight:700;padding:0 5px}.mce-window .wp-help-th-center td:nth-child(odd),.mce-window .wp-help-th-center th:nth-child(odd){text-align:center}.mce-floatpanel.mce-popover,.mce-menu{border-color:rgba(0,0,0,.15);-webkit-border-radius:0;border-radius:0;-webkit-box-shadow:0 3px 5px rgba(0,0,0,.2);box-shadow:0 3px 5px rgba(0,0,0,.2)}.mce-floatpanel.mce-popover.mce-bottom,.mce-menu{margin-top:2px}.mce-floatpanel .mce-arrow{display:none}.mce-menu .mce-container-body{min-width:160px}.mce-menu-item{border:none;margin-bottom:2px}.mce-menu-has-icons i.mce-ico{line-height:20px}div.mce-panel{border:0;background:#fff}.mce-panel.mce-menu{border:1px solid #ddd}div.mce-tab{line-height:13px}div.mce-toolbar-grp{border-bottom:1px solid #dedede;background:#f5f5f5;padding:0;position:relative}div.mce-inline-toolbar-grp{border:1px solid #a0a5aa;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.15);box-shadow:0 1px 3px rgba(0,0,0,.15);box-sizing:border-box;margin-bottom:8px;position:absolute;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;max-width:98%;z-index:100100}.wp-editor-area,div.mce-inline-toolbar-grp{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}div.mce-inline-toolbar-grp>div.mce-stack-layout{padding:1px}div.mce-inline-toolbar-grp.mce-arrow-up{margin-bottom:0;margin-top:8px}div.mce-inline-toolbar-grp:after,div.mce-inline-toolbar-grp:before{position:absolute;left:50%;display:block;width:0;height:0;border-style:solid;border-color:transparent;content:''}div.mce-inline-toolbar-grp.mce-arrow-up:before{top:-9px;border-bottom-color:#a0a5aa;border-width:0 9px 9px;margin-left:-9px}div.mce-inline-toolbar-grp.mce-arrow-down:before{bottom:-9px;border-top-color:#a0a5aa;border-width:9px 9px 0;margin-left:-9px}div.mce-inline-toolbar-grp.mce-arrow-up:after{top:-8px;border-bottom-color:#f5f5f5;border-width:0 8px 8px;margin-left:-8px}div.mce-inline-toolbar-grp.mce-arrow-down:after{bottom:-8px;border-top-color:#f5f5f5;border-width:8px 8px 0;margin-left:-8px}.mce-toolbar .mce-btn-group,div.mce-inline-toolbar-grp.mce-arrow-left:after,div.mce-inline-toolbar-grp.mce-arrow-left:before,div.mce-path{margin:0}div.mce-inline-toolbar-grp.mce-arrow-left:before{left:20px}div.mce-inline-toolbar-grp.mce-arrow-left:after{left:21px}div.mce-inline-toolbar-grp.mce-arrow-right:after,div.mce-inline-toolbar-grp.mce-arrow-right:before{left:auto;margin:0}div.mce-inline-toolbar-grp.mce-arrow-right:before{right:20px}div.mce-inline-toolbar-grp.mce-arrow-right:after{right:21px}div.mce-inline-toolbar-grp.mce-arrow-full{right:0}div.mce-inline-toolbar-grp.mce-arrow-full>div{width:100%;overflow-x:auto}div.mce-toolbar-grp>div{padding:3px}.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-right:32px}div.mce-statusbar{border-top:1px solid #e5e5e5}div.mce-path{padding:2px 10px}.mce-path,.mce-path .mce-divider,.mce-path-item{font-size:12px}.mce-toolbar .mce-btn,.qt-dfw{border-color:transparent;background:0 0;-webkit-box-shadow:none;box-shadow:none;text-shadow:none;cursor:pointer}.mce-toolbar .mce-btn-group .mce-btn,.qt-dfw{border:1px solid transparent;margin:2px;-webkit-border-radius:2px;border-radius:2px}.mce-toolbar .mce-btn-group .mce-btn:focus,.mce-toolbar .mce-btn-group .mce-btn:hover,.qt-dfw:focus,.qt-dfw:hover{background:#fafafa;border-color:#999;color:#23282d;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);outline:0}.mce-toolbar .mce-btn-group .mce-btn.mce-active,.mce-toolbar .mce-btn-group .mce-btn:active,.qt-dfw.active{background:#ebebeb;border-color:#999;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.3);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.3)}.mce-toolbar .mce-btn-group .mce-btn.mce-active:hover{border-color:#555}.mce-toolbar .mce-btn-group .mce-btn.mce-active:hover i.mce-ico{color:#555}.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus,.mce-toolbar .mce-btn-group .mce-btn.mce-disabled:hover{color:#a0a5aa;background:0 0;border-color:#ddd;text-shadow:0 1px 0 #fff;-webkit-box-shadow:none;box-shadow:none}.mce-toolbar .mce-btn-group .mce-first,.mce-toolbar .mce-btn-group .mce-last{border-color:transparent}.mce-toolbar .mce-btn button,.qt-dfw{padding:2px 3px;line-height:normal}.mce-toolbar .mce-listbox button{font-size:13px;line-height:20px;padding-left:6px;padding-right:20px}.mce-toolbar .mce-btn i{text-shadow:none}.mce-toolbar .mce-btn-group>div{white-space:normal}.mce-toolbar .mce-colorbutton .mce-open{border-right:0}.mce-toolbar .mce-colorbutton .mce-preview{margin:0;padding:0;top:auto;bottom:2px;left:3px;height:3px;width:20px}.mce-toolbar .mce-btn-group .mce-btn.mce-listbox{-webkit-border-radius:0;border-radius:0;direction:ltr;background:#fff;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 1px -1px rgba(0,0,0,.2);box-shadow:inset 0 1px 1px -1px rgba(0,0,0,.2)}.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:hover{border-color:#b4b9be}.mce-panel .mce-btn i.mce-caret{border-top:6px solid #777;margin-left:2px;margin-right:2px}.mce-listbox i.mce-caret{right:4px}.mce-panel .mce-btn:hover i.mce-caret{border-top-color:#32373c}.mce-panel .mce-active i.mce-caret{border-top:0;border-bottom:6px solid #32373c;margin-top:7px}.mce-listbox.mce-active i.mce-caret{margin-top:-3px}.mce-toolbar .mce-splitbtn:hover .mce-open{border-right-color:transparent}.mce-toolbar .mce-splitbtn .mce-open.mce-active{background:0 0;outline:0}.mce-menu .mce-menu-item-normal.mce-active,.mce-menu .mce-menu-item-preview.mce-active,.mce-menu .mce-menu-item.mce-selected,.mce-menu .mce-menu-item:focus,.mce-menu .mce-menu-item:hover{background:#0073aa}.mce-menu .mce-menu-item-preview.mce-active{border-left:none}.mce-menu .mce-menu-item-preview.mce-active .mce-text{color:#fff}.mce-menu .mce-menu-item.mce-disabled{cursor:default}.mce-menu .mce-menu-item.mce-disabled:hover{background:#ccc}.mce-menubar{border-color:#e5e5e5;background:#fff;border-width:0 0 1px}.mce-menubar .mce-menubtn{margin:2px}.mce-menubar .mce-menubtn.mce-active,.mce-menubar .mce-menubtn:focus,.mce-menubar .mce-menubtn:hover{border-color:transparent;background:0 0}.mce-menubar .mce-menubtn:focus{color:#124964;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.mce-menu-item-sep:hover,div.mce-menu .mce-menu-item-sep{border-bottom:1px solid #ddd;height:0;margin:5px 0}.mce-menubtn span{margin-right:0;padding-left:3px}.mce-menu-has-icons i.mce-ico:before{margin-left:-2px}.mce-primary button,.mce-primary button i{text-align:center;color:#fff;text-shadow:none;padding:0;line-height:26px}.mce-window .mce-btn{color:#555;background:#f7f7f7;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0;cursor:pointer;border:1px solid #ccc;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08)}.mce-window .mce-btn::-moz-focus-inner{border-width:1px 0;border-style:solid none;border-color:transparent;padding:0}.mce-window .mce-btn:focus,.mce-window .mce-btn:hover{background:#fafafa;border-color:#999;color:#23282d}.mce-window .mce-btn:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.mce-window .mce-btn:active{background:#eee;border-color:#999;color:#32373c;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}.mce-window .mce-btn.mce-disabled{color:#a0a5aa;border-color:#ddd;background:#f7f7f7;-webkit-box-shadow:none;box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default}.mce-window .mce-btn.mce-primary{background:#00a0d2;border-color:#0073aa;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);color:#fff;text-decoration:none}.mce-window .mce-btn.mce-primary:focus,.mce-window .mce-btn.mce-primary:hover{background:#1e8cbe;border-color:#0073aa;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.6);box-shadow:inset 0 1px 0 rgba(120,200,230,.6);color:#fff}.mce-window .mce-btn.mce-primary:focus{border-color:#0e3950;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.6),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:inset 0 1px 0 rgba(120,200,230,.6),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.mce-window .mce-btn.mce-primary:active{background:#1b7aa6;border-color:#005684;color:rgba(255,255,255,.95);-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);vertical-align:top}.mce-window .mce-btn.mce-primary.mce-disabled{color:#94cde7;background:#298cba;border-color:#1b607f;-webkit-box-shadow:none;box-shadow:none;text-shadow:0 -1px 0 rgba(0,0,0,.1);cursor:default}#wp-link li,#wp-link-close,#wp-link-search-toggle,.mce-charmap td{cursor:pointer}.mce-toolbar .mce-ico,.qt-dfw{text-align:center;text-shadow:none}.mce-menubtn.mce-fixed-width button{overflow-x:hidden;text-overflow:ellipsis;width:110px}.mce-charmap{margin:3px}.mce-charmap td{padding:0;border-color:#dfdfdf}.mce-charmap td:hover{background:#f3f3f3}.mce-charmap td div{width:18px;height:22px;line-height:22px}.mce-toolbar .mce-btn .mce-open,.qt-dfw{line-height:20px}.mce-tooltip{margin-top:2px}.mce-tooltip-inner{-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 3px 5px rgba(0,0,0,.2);box-shadow:0 3px 5px rgba(0,0,0,.2);color:#fff;font-size:12px}.mce-ico{font-family:tinymce,Arial}.mce-btn-small .mce-ico{font-family:tinymce-small,Arial}.mce-toolbar .mce-ico{color:#777;line-height:20px;width:20px;height:20px;margin:0;padding:0}.qt-dfw{color:#777;width:28px;height:26px}.mce-toolbar .mce-btn.mce-active .mce-open,.mce-toolbar .mce-btn:focus .mce-open,.mce-toolbar .mce-btn:hover .mce-open{border-left-color:#999}.mce-close,i.mce-i-aligncenter,i.mce-i-alignjustify,i.mce-i-alignleft,i.mce-i-alignright,i.mce-i-backcolor,i.mce-i-blockquote,i.mce-i-bold,i.mce-i-bullist,i.mce-i-charmap,i.mce-i-dashicon,i.mce-i-dfw,i.mce-i-forecolor,i.mce-i-fullscreen,i.mce-i-help,i.mce-i-hr,i.mce-i-indent,i.mce-i-italic,i.mce-i-link,i.mce-i-ltr,i.mce-i-numlist,i.mce-i-outdent,i.mce-i-pastetext,i.mce-i-pasteword,i.mce-i-redo,i.mce-i-removeformat,i.mce-i-spellchecker,i.mce-i-strikethrough,i.mce-i-underline,i.mce-i-undo,i.mce-i-unlink,i.mce-i-wp-media-library,i.mce-i-wp_adv,i.mce-i-wp_code,i.mce-i-wp_fullscreen,i.mce-i-wp_help,i.mce-i-wp_more,i.mce-i-wp_page{font:400 20px/1 dashicons;padding:0 2px 0 0;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-left:-2px}.qt-dfw{font:400 20px/1 dashicons;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}i.mce-i-bold:before{content:'\f200'}i.mce-i-italic:before{content:'\f201'}i.mce-i-bullist:before{content:'\f203'}i.mce-i-numlist:before{content:'\f204'}i.mce-i-blockquote:before{content:'\f205'}i.mce-i-alignleft:before{content:'\f206'}i.mce-i-aligncenter:before{content:'\f207'}i.mce-i-alignright:before{content:'\f208'}i.mce-i-link:before{content:'\f103'}i.mce-i-unlink:before{content:'\f225'}i.mce-i-wp_more:before{content:'\f209'}i.mce-i-strikethrough:before{content:'\f224'}i.mce-i-spellchecker:before{content:'\f210'}.qt-dfw:before,i.mce-i-dfw:before,i.mce-i-fullscreen:before,i.mce-i-wp_fullscreen:before{content:'\f211'}i.mce-i-wp_adv:before{content:'\f212'}i.mce-i-underline:before{content:'\f213'}i.mce-i-alignjustify:before{content:'\f214'}i.mce-i-backcolor:before,i.mce-i-forecolor:before{content:'\f215'}i.mce-i-pastetext:before{content:'\f217'}i.mce-i-removeformat:before{content:'\f218'}i.mce-i-charmap:before{content:'\f220'}i.mce-i-outdent:before{content:'\f221'}i.mce-i-indent:before{content:'\f222'}i.mce-i-undo:before{content:'\f171'}i.mce-i-redo:before{content:'\f172'}i.mce-i-help:before,i.mce-i-wp_help:before{content:'\f223'}i.mce-i-wp-media-library:before{content:'\f104'}i.mce-i-ltr:before{content:'\f320'}i.mce-i-wp_page:before{content:'\f105'}i.mce-i-hr:before{content:'\f460'}.mce-close:before{content:'\f158'}i.mce-i-wp_code:before{content:'\f475'}.rtl i.mce-i-outdent:before{content:'\f222'}.rtl i.mce-i-indent:before{content:'\f221'}.wp-editor-wrap{position:relative}.wp-editor-tools{position:relative;z-index:1}.wp-editor-tools:after{clear:both;content:'';display:table}.wp-editor-container{clear:both}.wp-editor-area{font-family:Consolas,Monaco,monospace;font-size:13px;padding:10px;margin:1px 0 0;line-height:150%;border:0;outline:0;display:block;resize:vertical;box-sizing:border-box}.rtl .wp-editor-area{font-family:Tahoma,Monaco,monospace}.locale-he-il .wp-editor-area{font-family:Arial,Monaco,monospace}.wp-editor-container textarea.wp-editor-area{width:100%;margin:0;-webkit-box-shadow:none;box-shadow:none}.wp-editor-tabs{float:right}.wp-switch-editor{float:left;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;position:relative;top:1px;background:#ebebeb;color:#777;cursor:pointer;font:13px/19px "Open Sans",sans-serif;height:20px;margin:5px 0 0 5px;padding:3px 8px 4px;border:1px solid #e5e5e5}.wp-switch-editor:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);outline:0;color:#23282d}.html-active .switch-html:focus,.tmce-active .switch-tmce:focus,.wp-switch-editor:active{-webkit-box-shadow:none;box-shadow:none}.wp-switch-editor:active{background-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none}.js .tmce-active .wp-editor-area{color:#fff}.tmce-active .quicktags-toolbar{display:none}.html-active .switch-html,.tmce-active .switch-tmce{background:#f5f5f5;color:#555;border-bottom-color:#f5f5f5}.wp-media-buttons{float:left}.wp-media-buttons .button{margin-right:5px;margin-bottom:4px;padding-left:7px;padding-right:7px}.wp-media-buttons .button:active{position:relative;top:1px;margin-top:-1px;margin-bottom:1px}.wp-media-buttons .insert-media{padding-left:5px}.wp-media-buttons a{text-decoration:none;color:#464646;font-size:12px}.wp-media-buttons img{padding:0 4px;vertical-align:middle}.wp-media-buttons span.wp-media-buttons-icon{display:inline-block;width:18px;height:18px;vertical-align:text-top;margin:0 2px}#wp-link-close:before,#wp-link-search-toggle:after{vertical-align:top;speak:none;-moz-osx-font-smoothing:grayscale}.wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}.wp-media-buttons .add_media span.wp-media-buttons-icon:before{font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:'\f104'}.quicktags-toolbar{padding:3px;position:relative;border-bottom:1px solid #dedede;background:#f5f5f5;min-height:30px}.has-dfw .quicktags-toolbar{padding-right:35px}.wp-core-ui .quicktags-toolbar input.button.button-small{margin:2px}.quicktags-toolbar input[value=link]{text-decoration:underline}.quicktags-toolbar input[value=del]{text-decoration:line-through}.quicktags-toolbar input[value="i"]{font-style:italic}.quicktags-toolbar input[value="b"]{font-weight:700}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw,.qt-dfw{position:absolute;top:0;right:0;margin:5px 5px 0 0}.qt-fullscreen{position:static;margin:2px}@media screen and (max-width:782px){.mce-toolbar .mce-btn button,.qt-dfw{padding:6px 7px}.mce-toolbar .mce-btn-group .mce-btn{margin:1px}.qt-dfw{width:36px;height:34px}.mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw{margin:4px 4px 0 0}.mce-toolbar .mce-colorbutton .mce-preview{left:8px;bottom:6px}.mce-window .mce-btn{padding:2px 0}.has-dfw .quicktags-toolbar,.has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-right:40px}}@media screen and (min-width:782px){.wp-core-ui .quicktags-toolbar input.button.button-small{font-size:12px;height:26px;line-height:24px}}#wp_editbtns,#wp_gallerybtns{padding:2px;position:absolute;display:none;z-index:100020}#wp_delgallery,#wp_delimgbtn,#wp_editgallery,#wp_editimgbtn{border-color:#999;background-color:#eee;margin:2px;padding:2px;border-width:1px;border-style:solid;-webkit-border-radius:3px;border-radius:3px}#wp_delgallery:hover,#wp_delimgbtn:hover,#wp_editgallery:hover,#wp_editimgbtn:hover{border-color:#555;background-color:#ccc}#wp-link-wrap{display:none;background-color:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3);width:500px;overflow:hidden;margin-left:-250px;margin-top:-125px;position:fixed;top:50%;left:50%;z-index:100105;-webkit-transition:height .2s,margin-top .2s;transition:height .2s,margin-top .2s}#wp-link-backdrop{display:none;position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:100100}#wp-link{position:relative;height:100%}#wp-link-wrap.search-panel-visible{height:500px;margin-top:-250px}#wp-link-wrap .wp-link-text-field{display:none}#wp-link-wrap.has-text-field .wp-link-text-field{display:block}#link-modal-title{background:#fcfcfc;border-bottom:1px solid #dfdfdf;height:36px;font-size:18px;font-weight:600;line-height:36px;padding:0 36px 0 16px;top:0;right:0;left:0}#wp-link-close{color:#666;padding:0;position:absolute;top:0;right:0;width:36px;height:36px;text-align:center;background:0 0;border:none}#wp-link-close:before{font:400 20px/36px dashicons;-webkit-font-smoothing:antialiased;width:36px;height:36px;content:'\f158'}#wp-link-close:focus,#wp-link-close:hover{color:#00a0d2}#wp-link-close:focus{outline:0;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#link-selector{padding:0 16px 50px}#wp-link-wrap.search-panel-visible #link-selector{-webkit-overflow-scrolling:touch;padding:0 16px;position:absolute;top:36px;left:0;right:0;bottom:44px}#wp-link ol,#wp-link ul{list-style:none;margin:0;padding:0}#wp-link-search-toggle:after{display:inline-block;font:400 20px/1 dashicons;-webkit-font-smoothing:antialiased;content:'\f140'}.search-panel-visible #wp-link-search-toggle:after{content:'\f142'}#wp-link input[type=text]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wp-link #link-options{padding:8px 0 12px}#wp-link p.howto{margin:3px 0}#wp-link p.howto a{text-decoration:none;color:inherit}#wp-link label input[type=text]{margin-top:5px;width:70%}#wp-link #link-options label span,#wp-link #search-panel label span.search-label{display:inline-block;width:80px;text-align:right;padding-right:5px;max-width:24%;vertical-align:middle;word-wrap:break-word}#wp-link .link-search-field{float:left;width:250px;max-width:70%}#wp-link .link-search-wrapper{margin:5px 0 9px;display:block;overflow:hidden}#wp-link .link-search-wrapper span{float:left;margin-top:4px}#wp-link .link-search-wrapper .spinner{margin-top:5px}#wp-link .link-target{padding:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#wp-link .link-target label{max-width:70%}#wp-link .query-results{border:1px solid #dfdfdf;margin:0;background:#fff;overflow:auto;position:absolute;left:16px;right:16px;bottom:16px;top:172px}.has-text-field #wp-link .query-results{top:205px}#wp-link li{clear:both;margin-bottom:0;border-bottom:1px solid #f1f1f1;color:#32373c;padding:4px 6px 4px 10px;position:relative}#wp-link .query-notice,#wp-link li.unselectable{border-bottom:1px solid #dfdfdf}#wp-link .query-notice{padding:0;background-color:#f7fcfe;color:#000}#wp-link .query-notice .query-notice-default,#wp-link .query-notice .query-notice-hint{display:block;padding:6px;border-left:4px solid #00a0d2}#wp-link .unselectable.no-matches-found{padding:0;border-bottom:1px solid #dfdfdf;background-color:#fef7f1}#wp-link .no-matches-found .item-title{display:block;padding:6px;border-left:4px solid #d54e21}#wp-link .query-results em{font-style:normal}#wp-link li:hover{background:#eaf2fa;color:#151515}#wp-link li.unselectable:hover{background:#fff;cursor:auto;color:#32373c}#wp-link li.selected{background:#ddd;color:#32373c}#wp-link li.selected .item-title{font-weight:700}#wp-link li:last-child{border:none}#wp-link .item-title{display:inline-block;width:80%;width:-webkit-calc(100% - 68px);width:calc(100% - 68px);word-wrap:break-word}#wp-link .item-info{text-transform:uppercase;color:#666;font-size:11px;position:absolute;right:5px;top:5px}#wp-link #search-panel,#wp-link #search-results{display:none}#wp-link-wrap.search-panel-visible #search-panel{display:block}#wp-link .river-waiting{display:none;padding:10px 0}#wp-link .submitbox{padding:8px 16px;background:#fcfcfc;border-top:1px solid #dfdfdf;position:absolute;bottom:0;left:0;right:0}#wp-link-cancel{line-height:25px;float:left}#wp-link-update{line-height:23px;float:right}#wp-link-submit{float:right;margin-bottom:0}@media screen and (max-width:782px){#wp-link-wrap{margin-top:-140px}#wp-link-wrap.search-panel-visible .query-results{top:195px}#wp-link-wrap.search-panel-visible.has-text-field .query-results{top:235px}#link-selector{padding:0 16px 60px}#wp-link-wrap.search-panel-visible #link-selector{bottom:52px}#wp-link-cancel{line-height:32px}}@media screen and (max-width:520px){#wp-link-wrap{width:auto;margin-left:0;left:10px;right:10px;max-width:500px}}@media screen and (max-height:520px){#wp-link-wrap{-webkit-transition:none;transition:none}#wp-link-wrap.search-panel-visible{height:auto;margin-top:0;top:10px;bottom:10px}.search-panel-visible #link-selector{overflow:auto}.search-panel-visible #search-panel .query-results{position:static}}@media screen and (max-height:290px){#wp-link-wrap{height:auto;margin-top:0;top:10px;bottom:10px}#link-selector{overflow:auto;height:-webkit-calc(100% - 92px);height:calc(100% - 92px);padding-bottom:2px}#search-panel .query-results{position:static}}div.wp-link-preview{float:left;margin:5px;max-width:694px;overflow:hidden;text-overflow:ellipsis}div.wp-link-preview a{color:#0073aa;text-decoration:underline;-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;cursor:pointer}@media screen and (max-width:782px){div.wp-link-preview{margin:8px 0 8px 5px;max-width:70%;max-width:-webkit-calc(100% - 86px);max-width:calc(100% - 86px)}}.mce-fullscreen{z-index:100010}.rtl .quicktags-toolbar input,.rtl .wp-switch-editor{font-family:Tahoma,sans-serif}.mce-rtl .mce-flow-layout .mce-flow-layout-item>div{direction:rtl}.mce-rtl .mce-listbox i.mce-caret{left:6px}html:lang(he-il) .rtl .quicktags-toolbar input,html:lang(he-il) .rtl .wp-switch-editor{font-family:Arial,sans-serif}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}} \ No newline at end of file diff --git a/wp-includes/css/jquery-ui-dialog-rtl.css b/wp-includes/css/jquery-ui-dialog-rtl.css deleted file mode 100644 index 2a6107029d..0000000000 --- a/wp-includes/css/jquery-ui-dialog-rtl.css +++ /dev/null @@ -1,362 +0,0 @@ -/*! - * jQuery UI CSS Framework 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - * - * http://api.jqueryui.com/category/theming/ - */ - -/* Layout helpers -----------------------------------*/ -.ui-helper-hidden { - display: none; -} -.ui-helper-hidden-accessible { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; -} -.ui-helper-reset { - margin: 0; - padding: 0; - border: 0; - outline: 0; - line-height: 1.3; - text-decoration: none; - font-size: 100%; - list-style: none; -} -.ui-helper-clearfix:before, -.ui-helper-clearfix:after { - content: ""; - display: table; - border-collapse: collapse; -} -.ui-helper-clearfix:after { - clear: both; -} -.ui-helper-clearfix { - min-height: 0; /* support: IE7 */ -} -.ui-helper-zfix { - width: 100%; - height: 100%; - top: 0; - right: 0; - position: absolute; - opacity: 0; - filter:Alpha(Opacity=0); /* support: IE8 */ -} - -.ui-front { - z-index: 100; -} - - -/* Interaction Cues -----------------------------------*/ -.ui-state-disabled { - cursor: default !important; -} - - -/* Icons -----------------------------------*/ - -/* states and images */ -.ui-icon { - display: block; - text-indent: -99999px; - overflow: hidden; - background-repeat: no-repeat; -} - - -/* Misc visuals -----------------------------------*/ - -/* Overlays */ -.ui-widget-overlay { - position: fixed; - top: 0; - right: 0; - width: 100%; - height: 100%; -} - -/*! - * jQuery UI Resizable 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ -.ui-resizable { - position: relative; -} -.ui-resizable-handle { - position: absolute; - font-size: 0.1px; - display: block; - -ms-touch-action: none; - touch-action: none; -} -.ui-resizable-disabled .ui-resizable-handle, -.ui-resizable-autohide .ui-resizable-handle { - display: none; -} -.ui-resizable-n { - cursor: n-resize; - height: 7px; - width: 100%; - top: -5px; - right: 0; -} -.ui-resizable-s { - cursor: s-resize; - height: 7px; - width: 100%; - bottom: -5px; - right: 0; -} -/* rtl:ignore */ -.ui-resizable-e { - cursor: e-resize; - width: 7px; - right: -5px; - top: 0; - height: 100%; -} -/* rtl:ignore */ -.ui-resizable-w { - cursor: w-resize; - width: 7px; - left: -5px; - top: 0; - height: 100%; -} -/* rtl:ignore */ -.ui-resizable-se { - cursor: se-resize; - width: 12px; - height: 12px; - right: 1px; - bottom: 1px; -} -/* rtl:ignore */ -.ui-resizable-sw { - cursor: sw-resize; - width: 9px; - height: 9px; - left: -5px; - bottom: -5px; -} -/* rtl:ignore */ -.ui-resizable-nw { - cursor: nw-resize; - width: 9px; - height: 9px; - left: -5px; - top: -5px; -} -/* rtl:ignore */ -.ui-resizable-ne { - cursor: ne-resize; - width: 9px; - height: 9px; - right: -5px; - top: -5px; -} - -/* WP buttons: see buttons.css. */ - -.ui-button { - display: inline-block; - text-decoration: none; - font-size: 13px; - line-height: 26px; - height: 28px; - margin: 0; - padding: 0 10px 1px; - cursor: pointer; - border-width: 1px; - border-style: solid; - -webkit-appearance: none; - -webkit-border-radius: 3px; - border-radius: 3px; - white-space: nowrap; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - color: #555; - border-color: #cccccc; - background: #f7f7f7; - -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - vertical-align: top; -} - -.ui-button:active, -.ui-button:focus { - outline: none; -} - -/* Remove the dotted border on :focus and the extra padding in Firefox */ -.ui-button::-moz-focus-inner { - border-width: 1px 0; - border-style: solid none; - border-color: transparent; - padding: 0; -} - -.ui-button:hover, -.ui-button:focus { - background: #fafafa; - border-color: #999; - color: #23282d; -} - -.ui-button:focus { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); -} - -.ui-button:active { - background: #eee; - border-color: #999; - color: #32373c; - -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); - box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); -} - -.ui-button[disabled], -.ui-button:disabled { - color: #a0a5aa !important; - border-color: #ddd !important; - background: #f7f7f7 !important; - -webkit-box-shadow: none !important; - box-shadow: none !important; - text-shadow: 0 1px 0 #fff !important; - cursor: default; -} - -@media screen and ( max-width: 782px ) { - - .ui-button { - padding: 10px 14px; - line-height: 1; - font-size: 14px; - vertical-align: middle; - height: auto; - margin-bottom: 4px; - } - -} - -/* WP Theme */ - -.ui-dialog { - position: absolute; - top: 0; - right: 0; - z-index: 100102; - background-color: #fff; - -webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); -} - -.ui-dialog-titlebar { - background: #fcfcfc; - border-bottom: 1px solid #dfdfdf; - height: 36px; - font-size: 18px; - font-weight: 600; - line-height: 36px; - padding: 0 16px 0 36px; -} - -.ui-button.ui-dialog-titlebar-close { - background: none; - border: none; - -webkit-box-shadow: none; - box-shadow: none; - color: #666; - cursor: pointer; - display: block; - padding: 0; - position: absolute; - top: 0; - left: 0; - width: 36px; - height: 36px; - text-align: center; -} - -.ui-dialog-titlebar-close:before { - font: normal 20px/1 'dashicons'; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - line-height: 36px; - width: 36px; - height: 36px; - content: '\f158'; -} - -.ui-button.ui-dialog-titlebar-close:hover { - color: #00a0d2; -} - -.ui-dialog-titlebar-close .ui-button-text { - display: none; -} - -.ui-dialog-content { - padding: 16px; - overflow: auto; -} - -.ui-dialog-buttonpane { - background: #fcfcfc; - border-top: 1px solid #dfdfdf; - padding: 16px; -} - -.ui-dialog-buttonpane .ui-button { - margin-right: 16px; -} - -.ui-dialog-buttonpane .ui-dialog-buttonset { - float: left; -} - -.ui-draggable .ui-dialog-titlebar { - cursor: move; -} - -.ui-widget-overlay { - position: fixed; - top: 0; - right: 0; - left: 0; - bottom: 0; - min-height: 360px; - background: #000; - opacity: 0.7; - filter: alpha(opacity=70); - z-index: 100101; -} diff --git a/wp-includes/css/jquery-ui-dialog-rtl.min.css b/wp-includes/css/jquery-ui-dialog-rtl.min.css deleted file mode 100644 index bf7be0aea8..0000000000 --- a/wp-includes/css/jquery-ui-dialog-rtl.min.css +++ /dev/null @@ -1,17 +0,0 @@ -/*! - * jQuery UI CSS Framework 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - * - * http://api.jqueryui.com/category/theming/ - */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-button,.ui-helper-reset{text-decoration:none;margin:0}.ui-helper-zfix,.ui-widget-overlay{width:100%;height:100%}.ui-helper-reset{padding:0;border:0;outline:0;line-height:1.3;font-size:100%;list-style:none}.ui-helper-clearfix:after,.ui-helper-clearfix:before{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{top:0;right:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}/*! - * jQuery UI Resizable 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-autohide .ui-resizable-handle,.ui-resizable-disabled .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;right:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;right:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-button{display:inline-block;font-size:13px;line-height:26px;height:28px;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);vertical-align:top}.ui-button:active,.ui-button:focus{outline:0}.ui-button::-moz-focus-inner{border-width:1px 0;border-style:solid none;border-color:transparent;padding:0}.ui-button:focus,.ui-button:hover{background:#fafafa;border-color:#999;color:#23282d}.ui-button:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ui-button:active{background:#eee;border-color:#999;color:#32373c;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}.ui-button:disabled,.ui-button[disabled]{color:#a0a5aa!important;border-color:#ddd!important;background:#f7f7f7!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 1px 0 #fff!important;cursor:default}@media screen and (max-width:782px){.ui-button{padding:10px 14px;line-height:1;font-size:14px;vertical-align:middle;height:auto;margin-bottom:4px}}.ui-dialog{position:absolute;top:0;right:0;z-index:100102;background-color:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3)}.ui-dialog-titlebar{background:#fcfcfc;border-bottom:1px solid #dfdfdf;height:36px;font-size:18px;font-weight:600;line-height:36px;padding:0 16px 0 36px}.ui-button.ui-dialog-titlebar-close{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;color:#666;cursor:pointer;display:block;padding:0;position:absolute;top:0;left:0;width:36px;height:36px;text-align:center}.ui-dialog-titlebar-close:before{font:400 20px/1 dashicons;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:36px;width:36px;height:36px;content:'\f158'}.ui-button.ui-dialog-titlebar-close:hover{color:#00a0d2}.ui-dialog-titlebar-close .ui-button-text{display:none}.ui-dialog-content{padding:16px;overflow:auto}.ui-dialog-buttonpane{background:#fcfcfc;border-top:1px solid #dfdfdf;padding:16px}.ui-dialog-buttonpane .ui-button{margin-right:16px}.ui-dialog-buttonpane .ui-dialog-buttonset{float:left}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-widget-overlay{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:100101} \ No newline at end of file diff --git a/wp-includes/css/jquery-ui-dialog.css b/wp-includes/css/jquery-ui-dialog.css deleted file mode 100644 index 091cb7480c..0000000000 --- a/wp-includes/css/jquery-ui-dialog.css +++ /dev/null @@ -1,362 +0,0 @@ -/*! - * jQuery UI CSS Framework 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - * - * http://api.jqueryui.com/category/theming/ - */ - -/* Layout helpers -----------------------------------*/ -.ui-helper-hidden { - display: none; -} -.ui-helper-hidden-accessible { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; -} -.ui-helper-reset { - margin: 0; - padding: 0; - border: 0; - outline: 0; - line-height: 1.3; - text-decoration: none; - font-size: 100%; - list-style: none; -} -.ui-helper-clearfix:before, -.ui-helper-clearfix:after { - content: ""; - display: table; - border-collapse: collapse; -} -.ui-helper-clearfix:after { - clear: both; -} -.ui-helper-clearfix { - min-height: 0; /* support: IE7 */ -} -.ui-helper-zfix { - width: 100%; - height: 100%; - top: 0; - left: 0; - position: absolute; - opacity: 0; - filter:Alpha(Opacity=0); /* support: IE8 */ -} - -.ui-front { - z-index: 100; -} - - -/* Interaction Cues -----------------------------------*/ -.ui-state-disabled { - cursor: default !important; -} - - -/* Icons -----------------------------------*/ - -/* states and images */ -.ui-icon { - display: block; - text-indent: -99999px; - overflow: hidden; - background-repeat: no-repeat; -} - - -/* Misc visuals -----------------------------------*/ - -/* Overlays */ -.ui-widget-overlay { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; -} - -/*! - * jQuery UI Resizable 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ -.ui-resizable { - position: relative; -} -.ui-resizable-handle { - position: absolute; - font-size: 0.1px; - display: block; - -ms-touch-action: none; - touch-action: none; -} -.ui-resizable-disabled .ui-resizable-handle, -.ui-resizable-autohide .ui-resizable-handle { - display: none; -} -.ui-resizable-n { - cursor: n-resize; - height: 7px; - width: 100%; - top: -5px; - left: 0; -} -.ui-resizable-s { - cursor: s-resize; - height: 7px; - width: 100%; - bottom: -5px; - left: 0; -} -/* rtl:ignore */ -.ui-resizable-e { - cursor: e-resize; - width: 7px; - right: -5px; - top: 0; - height: 100%; -} -/* rtl:ignore */ -.ui-resizable-w { - cursor: w-resize; - width: 7px; - left: -5px; - top: 0; - height: 100%; -} -/* rtl:ignore */ -.ui-resizable-se { - cursor: se-resize; - width: 12px; - height: 12px; - right: 1px; - bottom: 1px; -} -/* rtl:ignore */ -.ui-resizable-sw { - cursor: sw-resize; - width: 9px; - height: 9px; - left: -5px; - bottom: -5px; -} -/* rtl:ignore */ -.ui-resizable-nw { - cursor: nw-resize; - width: 9px; - height: 9px; - left: -5px; - top: -5px; -} -/* rtl:ignore */ -.ui-resizable-ne { - cursor: ne-resize; - width: 9px; - height: 9px; - right: -5px; - top: -5px; -} - -/* WP buttons: see buttons.css. */ - -.ui-button { - display: inline-block; - text-decoration: none; - font-size: 13px; - line-height: 26px; - height: 28px; - margin: 0; - padding: 0 10px 1px; - cursor: pointer; - border-width: 1px; - border-style: solid; - -webkit-appearance: none; - -webkit-border-radius: 3px; - border-radius: 3px; - white-space: nowrap; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - color: #555; - border-color: #cccccc; - background: #f7f7f7; - -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 ); - vertical-align: top; -} - -.ui-button:active, -.ui-button:focus { - outline: none; -} - -/* Remove the dotted border on :focus and the extra padding in Firefox */ -.ui-button::-moz-focus-inner { - border-width: 1px 0; - border-style: solid none; - border-color: transparent; - padding: 0; -} - -.ui-button:hover, -.ui-button:focus { - background: #fafafa; - border-color: #999; - color: #23282d; -} - -.ui-button:focus { - -webkit-box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); - box-shadow: - 0 0 0 1px #5b9dd9, - 0 0 2px 1px rgba( 30, 140, 190, 0.8 ); -} - -.ui-button:active { - background: #eee; - border-color: #999; - color: #32373c; - -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); - box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); -} - -.ui-button[disabled], -.ui-button:disabled { - color: #a0a5aa !important; - border-color: #ddd !important; - background: #f7f7f7 !important; - -webkit-box-shadow: none !important; - box-shadow: none !important; - text-shadow: 0 1px 0 #fff !important; - cursor: default; -} - -@media screen and ( max-width: 782px ) { - - .ui-button { - padding: 10px 14px; - line-height: 1; - font-size: 14px; - vertical-align: middle; - height: auto; - margin-bottom: 4px; - } - -} - -/* WP Theme */ - -.ui-dialog { - position: absolute; - top: 0; - left: 0; - z-index: 100102; - background-color: #fff; - -webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); -} - -.ui-dialog-titlebar { - background: #fcfcfc; - border-bottom: 1px solid #dfdfdf; - height: 36px; - font-size: 18px; - font-weight: 600; - line-height: 36px; - padding: 0 36px 0 16px; -} - -.ui-button.ui-dialog-titlebar-close { - background: none; - border: none; - -webkit-box-shadow: none; - box-shadow: none; - color: #666; - cursor: pointer; - display: block; - padding: 0; - position: absolute; - top: 0; - right: 0; - width: 36px; - height: 36px; - text-align: center; -} - -.ui-dialog-titlebar-close:before { - font: normal 20px/1 'dashicons'; - vertical-align: top; - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - line-height: 36px; - width: 36px; - height: 36px; - content: '\f158'; -} - -.ui-button.ui-dialog-titlebar-close:hover { - color: #00a0d2; -} - -.ui-dialog-titlebar-close .ui-button-text { - display: none; -} - -.ui-dialog-content { - padding: 16px; - overflow: auto; -} - -.ui-dialog-buttonpane { - background: #fcfcfc; - border-top: 1px solid #dfdfdf; - padding: 16px; -} - -.ui-dialog-buttonpane .ui-button { - margin-left: 16px; -} - -.ui-dialog-buttonpane .ui-dialog-buttonset { - float: right; -} - -.ui-draggable .ui-dialog-titlebar { - cursor: move; -} - -.ui-widget-overlay { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - min-height: 360px; - background: #000; - opacity: 0.7; - filter: alpha(opacity=70); - z-index: 100101; -} diff --git a/wp-includes/css/jquery-ui-dialog.min.css b/wp-includes/css/jquery-ui-dialog.min.css deleted file mode 100644 index f60030dfcb..0000000000 --- a/wp-includes/css/jquery-ui-dialog.min.css +++ /dev/null @@ -1,17 +0,0 @@ -/*! - * jQuery UI CSS Framework 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - * - * http://api.jqueryui.com/category/theming/ - */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-button,.ui-helper-reset{text-decoration:none;margin:0}.ui-helper-zfix,.ui-widget-overlay{width:100%;height:100%}.ui-helper-reset{padding:0;border:0;outline:0;line-height:1.3;font-size:100%;list-style:none}.ui-helper-clearfix:after,.ui-helper-clearfix:before{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}/*! - * jQuery UI Resizable 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-autohide .ui-resizable-handle,.ui-resizable-disabled .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-button{display:inline-block;font-size:13px;line-height:26px;height:28px;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);vertical-align:top}.ui-button:active,.ui-button:focus{outline:0}.ui-button::-moz-focus-inner{border-width:1px 0;border-style:solid none;border-color:transparent;padding:0}.ui-button:focus,.ui-button:hover{background:#fafafa;border-color:#999;color:#23282d}.ui-button:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ui-button:active{background:#eee;border-color:#999;color:#32373c;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}.ui-button:disabled,.ui-button[disabled]{color:#a0a5aa!important;border-color:#ddd!important;background:#f7f7f7!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 1px 0 #fff!important;cursor:default}@media screen and (max-width:782px){.ui-button{padding:10px 14px;line-height:1;font-size:14px;vertical-align:middle;height:auto;margin-bottom:4px}}.ui-dialog{position:absolute;top:0;left:0;z-index:100102;background-color:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3)}.ui-dialog-titlebar{background:#fcfcfc;border-bottom:1px solid #dfdfdf;height:36px;font-size:18px;font-weight:600;line-height:36px;padding:0 36px 0 16px}.ui-button.ui-dialog-titlebar-close{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;color:#666;cursor:pointer;display:block;padding:0;position:absolute;top:0;right:0;width:36px;height:36px;text-align:center}.ui-dialog-titlebar-close:before{font:400 20px/1 dashicons;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:36px;width:36px;height:36px;content:'\f158'}.ui-button.ui-dialog-titlebar-close:hover{color:#00a0d2}.ui-dialog-titlebar-close .ui-button-text{display:none}.ui-dialog-content{padding:16px;overflow:auto}.ui-dialog-buttonpane{background:#fcfcfc;border-top:1px solid #dfdfdf;padding:16px}.ui-dialog-buttonpane .ui-button{margin-left:16px}.ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-widget-overlay{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:100101} \ No newline at end of file diff --git a/wp-includes/css/media-views-rtl.css b/wp-includes/css/media-views-rtl.css deleted file mode 100644 index abab3daedf..0000000000 --- a/wp-includes/css/media-views-rtl.css +++ /dev/null @@ -1,2581 +0,0 @@ -/** - * Base Styles - */ -.media-modal * { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} - -.media-frame input, -.media-frame select, -.media-frame textarea { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.media-modal, -.media-frame { - font-family: "Open Sans", sans-serif; - font-size: 12px; - -webkit-overflow-scrolling: touch; -} - -.media-frame input, -.media-frame textarea { - padding: 6px 8px; -} - -.media-frame select, -.wp-admin .media-frame select { - line-height: 28px; - margin-top: 3px; -} - -.media-frame a { - border-bottom: none; - color: #21759b; -} - -.media-frame a:hover { - color: #d54e21; -} - -.media-frame a.button { - color: #32373c; -} - -.media-frame a.button:hover { - color: #23282d; -} - -.media-frame a.button-primary, -.media-frame a.button-primary:hover { - color: #fff; -} - -.media-frame input[type="text"], -.media-frame input[type="password"], -.media-frame input[type="number"], -.media-frame input[type="search"], -.media-frame input[type="email"], -.media-frame input[type="url"], -.media-frame textarea, -.media-frame select { - font-family: "Open Sans", sans-serif; - font-size: 12px; - border-width: 1px; - border-style: solid; - border-color: #dfdfdf; -} - -.media-frame input[type="text"]:focus, -.media-frame input[type="password"]:focus, -.media-frame input[type="number"]:focus, -.media-frame input[type="search"]:focus, -.media-frame input[type="email"]:focus, -.media-frame input[type="url"]:focus, -.media-frame textarea:focus, -.media-frame select:focus { - border-color: #5b9dd9; -} - -.media-frame select { - height: 24px; - padding: 2px; -} - -.media-frame input:disabled, -.media-frame textarea:disabled, -.media-frame input[readonly], -.media-frame textarea[readonly] { - background-color: #eee; -} - -.media-frame input[type="search"] { - -webkit-appearance: textfield; -} - -.media-frame :-moz-placeholder { - color: #a9a9a9; -} - -.media-frame .hidden { - display: none; -} - -/*! - * jQuery UI Draggable/Sortable 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ -.ui-draggable-handle, -.ui-sortable-handle { - -ms-touch-action: none; - touch-action: none; -} - -/** - * Modal - */ -.media-modal { - position: fixed; - top: 30px; - right: 30px; - left: 30px; - bottom: 30px; - z-index: 160000; -} - -.wp-customizer .media-modal { - z-index: 560000; -} - -.media-modal-backdrop { - position: fixed; - top: 0; - right: 0; - left: 0; - bottom: 0; - min-height: 360px; - background: #000; - opacity: 0.7; - z-index: 159900; -} - -.wp-customizer .media-modal-backdrop { - z-index: 559900; -} - -.media-modal-close { - position: absolute; - top: 0; - left: 0; - width: 50px; - height: 50px; - padding: 0; - z-index: 1000; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; -} - -.media-modal-close:active { - -webkit-box-shadow: none; - box-shadow: none; -} - -.media-modal-close span.media-modal-icon { - background-image: none; -} - -.media-modal-close .media-modal-icon:before { - content: '\f158'; - font: normal 20px/1 'dashicons'; - speak: none; - vertical-align: middle; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - color: #666; -} - -.media-modal-close:hover .media-modal-icon:before { - color: #00a0d2; -} - -.media-modal-close:active { - outline: 0; -} - -.media-modal-content { - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; - overflow: auto; - min-height: 300px; - -webkit-box-shadow: 0 5px 15px rgba(0,0,0,0.7); - box-shadow: 0 5px 15px rgba(0,0,0,0.7); - background: #fcfcfc; - -webkit-font-smoothing: subpixel-antialiased; -} - -/* higher specificity */ -.wp-core-ui .media-modal-icon { - background-image: url(../images/uploader-icons.png); - background-repeat: no-repeat; -} - -/** - * Toolbar - */ -.media-toolbar { - position: absolute; - top: 0; - right: 0; - left: 0; - z-index: 100; - height: 60px; - padding: 0 16px; - border: 0 solid #dfdfdf; - overflow: hidden; -} - -.media-toolbar-primary { - float: left; - height: 100%; -} - -.media-toolbar-secondary { - float: right; - height: 100%; -} - -.media-toolbar-primary > .media-button, -.media-toolbar-primary > .media-button-group { - margin-right: 10px; - float: right; - margin-top: 15px; -} - -.media-toolbar-secondary > .media-button, -.media-toolbar-secondary > .media-button-group { - margin-left: 10px; - margin-top: 15px; -} - -/** - * Sidebar - */ -.media-sidebar { - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 267px; - padding: 0 16px 24px; - z-index: 75; - background: #f3f3f3; - border-right: 1px solid #ddd; - overflow: auto; - -webkit-overflow-scrolling: touch; -} - -.hide-toolbar .media-sidebar { - bottom: 0; -} - -.media-sidebar .sidebar-title { - font-size: 20px; - margin: 0; - padding: 12px 10px 10px; - line-height: 28px; -} - -.media-sidebar .sidebar-content { - padding: 0 10px; - margin-bottom: 130px; -} - -.media-sidebar .search { - display: block; - width: 100%; -} - -.media-sidebar h3, -.image-details h3 { - position: relative; - font-weight: bold; - text-transform: uppercase; - font-size: 12px; - color: #666; - margin: 24px 0 8px; -} - -.media-sidebar .setting, -.attachment-details .setting { - display: block; - float: right; - width: 100%; - margin: 1px 0; -} - -.media-sidebar .setting label, -.attachment-details .setting label { - display: block; -} - -.media-sidebar .setting .link-to-custom, -.attachment-details .setting .link-to-custom { - margin: 3px 2px 0; -} - -.media-sidebar .setting span, -.attachment-details .setting span { - min-width: 30%; - margin-left: 4%; - font-size: 12px; - text-align: left; - word-wrap: break-word; -} - -.media-sidebar .setting .name { - max-width: 80px; -} - -.media-sidebar .setting select, -.attachment-details .setting select { - max-width: 65%; -} - -.media-sidebar .setting input[type="checkbox"], -.media-sidebar .field input[type="checkbox"], -.media-sidebar .setting input[type="radio"], -.media-sidebar .field input[type="radio"], -.attachment-details .setting input[type="checkbox"], -.attachment-details .field input[type="checkbox"], -.attachment-details .setting input[type="radio"], -.attachment-details .field input[type="radio"] { - float: none; - margin: 8px 3px 0; - padding: 0; -} - -.media-sidebar .setting span, -.attachment-details .setting span, -.compat-item label span { - float: right; - min-height: 22px; - padding-top: 8px; - line-height: 16px; - font-weight: normal; - color: #666; -} - -.compat-item label span { - text-align: left; -} - -.media-sidebar .setting input[type="text"], -.media-sidebar .setting input[type="password"], -.media-sidebar .setting input[type="email"], -.media-sidebar .setting input[type="number"], -.media-sidebar .setting input[type="search"], -.media-sidebar .setting input[type="tel"], -.media-sidebar .setting input[type="url"], -.media-sidebar .setting textarea, -.media-sidebar .setting .value, -.attachment-details .setting input[type="text"], -.attachment-details .setting input[type="password"], -.attachment-details .setting input[type="email"], -.attachment-details .setting input[type="number"], -.attachment-details .setting input[type="search"], -.attachment-details .setting input[type="tel"], -.attachment-details .setting input[type="url"], -.attachment-details .setting textarea, -.attachment-details .setting .value { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin: 1px; - width: 65%; - float: left; -} - -.media-sidebar .setting .value, -.attachment-details .setting .value { - margin: 0 1px; - text-align: right; -} - -.media-sidebar .setting textarea, -.attachment-details .setting textarea, -.compat-item .field textarea { - height: 62px; - resize: vertical; -} - -.media-sidebar select, -.attachment-details select { - margin-top: 3px; -} - -.compat-item { - float: right; - width: 100%; - overflow: hidden; -} - -.compat-item table { - width: 100%; - table-layout: fixed; - border-spacing: 0; - border: 0; -} - -.compat-item tr { - padding: 2px 0; - display: block; - overflow: hidden; -} - -.compat-item .label, -.compat-item .field { - display: block; - margin: 0; - padding: 0; -} - -.compat-item .label { - min-width: 30%; - margin-left: 4%; - float: right; - text-align: left; -} - -.compat-item .label span { - display: block; - width: 100%; -} - -.compat-item .field { - float: left; - width: 65%; - margin: 1px; -} - -.compat-item .field input[type="text"], -.compat-item .field input[type="password"], -.compat-item .field input[type="email"], -.compat-item .field input[type="number"], -.compat-item .field input[type="search"], -.compat-item .field input[type="tel"], -.compat-item .field input[type="url"], -.compat-item .field textarea { - width: 100%; - margin: 0; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.sidebar-for-errors .attachment-details, -.sidebar-for-errors .compat-item, -.sidebar-for-errors .media-sidebar .media-progress-bar, -.sidebar-for-errors .upload-details { - display: none !important; -} - -/** - * Menu - */ -.media-menu { - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; - margin: 0; - padding: 10px 0; - background: #f3f3f3; - border-left-width: 1px; - border-left-style: solid; - border-left-color: #ccc; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.media-menu > a { - display: block; - position: relative; - padding: 8px 20px; - margin: 0; - line-height: 18px; - font-size: 14px; - color: #0073aa; - text-decoration: none; -} - -.media-menu > a:hover { - color: #21759B; - background: rgba( 0, 0, 0, 0.04 ); -} - -.media-menu > a:active { - outline: none; -} - -.media-menu .active, -.media-menu .active:hover { - color: #23282d; - font-weight: bold; -} - -.media-menu .separator { - height: 0; - margin: 12px 20px; - padding: 0; - border-top: 1px solid #ddd; -} - -/** - * Menu - */ -.media-router { - position: relative; - padding: 0 6px; - margin: 0; - clear: both; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.media-router a { - -webkit-transition: none; - transition: none; -} - -.media-router > a { - position: relative; - float: right; - padding: 8px 10px 9px; - margin: 0; - height: 18px; - line-height: 18px; - font-size: 14px; - text-decoration: none; -} - -.media-router > a:last-child { - border-left: 0; -} - -.media-router > a:active { - outline: none; -} - -.media-router .active, -.media-router .active:hover { - color: #32373c; -} - -.media-router .active, -.media-router > a.active:last-child { - margin: -1px -1px 0; - background: #fff; - border: 1px solid #ddd; - border-bottom: none; -} - -.media-router .active:after { - display: none; -} - -/** - * Frame - */ -.media-frame { - overflow: hidden; - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; -} - -.media-frame-menu { - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 200px; - z-index: 150; -} - -.media-frame-title { - position: absolute; - top: 0; - right: 200px; - left: 0; - height: 50px; - z-index: 200; -} - -.media-frame-router { - position: absolute; - top: 50px; - right: 200px; - left: 0; - height: 36px; - z-index: 200; -} - -.media-frame-content { - position: absolute; - top: 84px; - right: 200px; - left: 0; - bottom: 61px; - height: auto; - width: auto; - margin: 0; - overflow: auto; - background: #fff; - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; -} - -.media-frame-toolbar { - position: absolute; - right: 200px; - left: 0; - bottom: 0; - height: 60px; - z-index: 100; -} - -.media-frame.hide-menu .media-frame-title, -.media-frame.hide-menu .media-frame-router, -.media-frame.hide-menu .media-frame-toolbar, -.media-frame.hide-menu .media-frame-content { - right: 0; -} - -.media-frame.hide-menu .media-frame-menu { - right: -200px; -} - -.media-frame.hide-toolbar .media-frame-content { - bottom: 0; -} - -.media-frame.hide-toolbar .media-frame-toolbar { - bottom: -61px; -} - -.media-frame.hide-router .media-frame-content { - top: 50px; -} - -.media-frame.hide-router .media-frame-router { - display: none; -} - -.media-frame.hide-router .media-frame-title { - border-bottom: 1px solid #dfdfdf; - -webkit-box-shadow: 0 4px 4px -4px rgba( 0, 0, 0, 0.1 ); - box-shadow: 0 4px 4px -4px rgba( 0, 0, 0, 0.1 ); -} - -.media-frame-title .dashicons { - display: none; -} - -.media-frame-title h1 { - padding: 0 16px; - font-size: 22px; - line-height: 50px; - margin: 0; -} - -.media-frame-title .suggested-dimensions { - font-size: 14px; - float: left; - margin-left: 20px; -} - -.media-frame-content .crop-content { - height: 100%; -} - -.wp-customizer:not(.mobile) .media-frame-content .crop-content.site-icon { - margin-left: 300px; -} - -.media-frame-content .crop-content .crop-image { - display: block; - margin: auto; - max-width: 100%; - max-height: 100%; -} - -.media-frame-content .crop-content .upload-errors -{ - position: absolute; - width: 300px; - top: 50%; - right: 50%; - margin-right: -150px; - margin-left: -150px; - z-index: 600000; -} - -/** - * Iframes - */ -.media-frame .media-iframe { - overflow: hidden; -} - -.media-frame .media-iframe, -.media-frame .media-iframe iframe { - height: 100%; - width: 100%; - border: 0; -} - -/** - * Attachment Browser Filters - */ -.media-frame select.attachment-filters { - margin-top: 11px; - margin-left: 2%; - max-width: 42%; - max-width: -webkit-calc(48% - 12px); - max-width: calc(48% - 12px); -} - -.media-frame select.attachment-filters:last-of-type { - margin-left: 0; -} - -/** - * Search - */ -.media-frame .search { - margin-top: 11px; - padding: 4px; - font-size: 13px; - color: #464646; - font-family: "Open Sans", sans-serif; - -webkit-appearance: none; -} - -.media-toolbar-primary .search { - max-width: 100%; -} - -/** - * Attachments - */ -.wp-core-ui .attachments { - margin: 0; - -webkit-overflow-scrolling: touch; -} - -/** - * Attachment - */ -.wp-core-ui .attachment { - position: relative; - float: right; - padding: 8px; - margin: 0; - color: #464646; - cursor: pointer; - list-style: none; - text-align: center; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - width: 25%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.wp-core-ui .attachment:focus, -.wp-core-ui .selected.attachment:focus, -.wp-core-ui .attachment.details:focus { - -webkit-box-shadow: - inset 0 0 2px 3px #fff, - inset 0 0 0 7px #5b9dd9; - box-shadow: - inset 0 0 2px 3px #fff, - inset 0 0 0 7px #5b9dd9; - outline: none; -} - -.wp-core-ui .selected.attachment { - -webkit-box-shadow: - inset 0 0 0 5px #fff, - inset 0 0 0 7px #ccc; - box-shadow: - inset 0 0 0 5px #fff, - inset 0 0 0 7px #ccc; -} - -.wp-core-ui .attachment.details { - -webkit-box-shadow: - inset 0 0 0 3px #fff, - inset 0 0 0 7px #1e8cbe; - box-shadow: - inset 0 0 0 3px #fff, - inset 0 0 0 7px #1e8cbe; -} - -.wp-core-ui .attachment-preview { - position: relative; - -webkit-box-shadow: - inset 0 0 15px rgba( 0, 0, 0, 0.1 ), - inset 0 0 0 1px rgba( 0, 0, 0, 0.05 ); - box-shadow: - inset 0 0 15px rgba( 0, 0, 0, 0.1 ), - inset 0 0 0 1px rgba( 0, 0, 0, 0.05 ); - background: #eee; - cursor: pointer; -} - -.wp-core-ui .attachment-preview:before { - content: ''; - display: block; - padding-top: 100%; -} - -.wp-core-ui .attachment .icon { - margin: 0 auto; - overflow: hidden; -} - -.wp-core-ui .attachment .thumbnail { - overflow: hidden; - position: absolute; - top: 0; - left: 0; - bottom: 0; - right: 0; - opacity: 1; - -webkit-transition: opacity .1s; - transition: opacity .1s; -} - -.wp-core-ui .attachment .portrait img { - max-width: 100%; -} - -.wp-core-ui .attachment .landscape img { - max-height: 100%; -} - -.wp-core-ui .attachment .thumbnail:after { - content: ''; - display: block; - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; - -webkit-box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.1 ); - overflow: hidden; -} - -.wp-core-ui .attachment .thumbnail img { - top: 0; - right: 0; -} - -.wp-core-ui .attachment .thumbnail .centered { - position: absolute; - top: 0; - right: 0; - width: 100%; - height: 100%; - -webkit-transform: translate( -50%, 50% ); - -ms-transform: translate(-50%,50%); /* Fails with spaces?? Weird! */ - transform: translate( -50%, 50% ); -} - -.wp-core-ui .attachment .thumbnail .centered img { - -webkit-transform: translate( 50%, -50% ); - -ms-transform: translate(50%,-50%); - transform: translate( 50%, -50% ); -} - -.wp-core-ui .attachments-browser .attachment .thumbnail .centered img.icon { - -webkit-transform: translate( 50%, -70% ); - -ms-transform: translate(50%,-70%); - transform: translate( 50%, -70% ); -} - -.ie8 .wp-core-ui .attachment img.icon { - top: 20%; - position: relative; -} - -.wp-core-ui .attachment .filename { - position: absolute; - right: 0; - left: 0; - bottom: 0; - overflow: hidden; - max-height: 100%; - word-wrap: break-word; - text-align: center; - font-weight: bold; - background: rgba( 255, 255, 255, 0.8 ); - -webkit-box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15 ); - box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15 ); -} - -.wp-core-ui .attachment .filename div { - padding: 5px 10px; -} - -.wp-core-ui .attachment .thumbnail img { - position: absolute; -} - -.wp-core-ui .attachment-close { - display: block; - position: absolute; - top: 5px; - left: 5px; - height: 22px; - width: 22px; - padding: 0; - background-color: #fff; - background-position: -96px 4px; - -webkit-border-radius: 3px; - border-radius: 3px; - -webkit-box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.3 ); -} - -.wp-core-ui .attachment-close:hover, -.wp-core-ui .attachment-close:focus { - background-position: -36px 4px; -} - -.wp-core-ui .attachment .check { - display: none; - height: 24px; - width: 24px; - padding: 0; - position: absolute; - z-index: 10; - top: 0; - left: 0; - outline: none; - background: #eee; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba( 0, 0, 0, 0.15 ); - box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba( 0, 0, 0, 0.15 ); -} - -.wp-core-ui .attachment .check .media-modal-icon { - display: block; - background-position: -1px 0; - height: 15px; - width: 15px; - margin: 5px; -} - -.wp-core-ui .attachment .check:hover .media-modal-icon { - background-position: -40px 0; -} - -.wp-core-ui .attachment.selected .check { - display: block; -} - -.wp-core-ui .attachment.details .check, -.wp-core-ui .attachment.selected .check:focus, -.wp-core-ui .media-frame.mode-grid .attachment.selected .check { - background-color: #1e8cbe; - -webkit-box-shadow: - 0 0 0 1px #fff, - 0 0 0 2px #1e8cbe; - box-shadow: - 0 0 0 1px #fff, - 0 0 0 2px #1e8cbe; -} - -.wp-core-ui .attachment.details .check .media-modal-icon, -.wp-core-ui .media-frame.mode-grid .attachment.selected .check .media-modal-icon { - background-position: -21px 0; -} - -.wp-core-ui .attachment.details .check:hover .media-modal-icon, -.wp-core-ui .attachment.selected .check:focus .media-modal-icon, -.wp-core-ui .media-frame.mode-grid .attachment.selected .check:hover .media-modal-icon { - background-position: -60px 0; -} - -.wp-core-ui .media-frame .attachment .describe { - position: relative; - display: block; - width: 100%; - margin: 0; - padding: 8px; - font-size: 12px; - -webkit-border-radius: 0; - border-radius: 0; -} - -/** - * Attachments Browser - */ -.media-frame .attachments-browser { - position: relative; - width: 100%; - height: 100%; - overflow: hidden; -} - -.attachments-browser .media-toolbar { - left: 300px; - height: 50px; -} - -.attachments-browser.hide-sidebar .media-toolbar { - left: 0; -} - -.attachments-browser .media-toolbar-primary > .media-button, -.attachments-browser .media-toolbar-primary > .media-button-group, -.attachments-browser .media-toolbar-secondary > .media-button, -.attachments-browser .media-toolbar-secondary > .media-button-group { - margin: 11px 0; -} - -.attachments-browser .attachments { - padding: 2px 8px 8px; -} - -.attachments-browser .attachments, -.attachments-browser .uploader-inline { - position: absolute; - top: 50px; - right: 0; - left: 300px; - bottom: 0; - overflow: auto; - outline: none; -} - -.attachments-browser .uploader-inline.hidden { - display: none; -} - -.attachments-browser .media-toolbar-primary { - max-width: 33%; -} - -.attachments-browser .media-toolbar-secondary { - max-width: 66%; -} - -.uploader-inline .close { - background-color: transparent; - border: 0; - cursor: pointer; - height: 48px; - position: absolute; - left: 0; - text-align: center; - top: 0; - width: 50px; - z-index: 1; -} - -.uploader-inline .close:before { - font: normal 30px/50px 'dashicons' !important; - color: #777; - display: inline-block; - content: '\f335'; - font-weight: 300; -} - -.attachments-browser.hide-sidebar .attachments, -.attachments-browser.hide-sidebar .uploader-inline { - left: 0; - margin-left: 0; -} - -.attachments-browser .instructions { - display: inline-block; - margin-top: 16px; - line-height: 18px; - font-size: 13px; - color: #666; - margin-left: 0.5em; -} - -.attachments-browser .no-media { - padding: 2em 2em 0 0; -} - -/** - * Progress Bar - */ -.media-progress-bar { - position: relative; - height: 10px; - width: 70%; - margin: 10px auto; - -webkit-border-radius: 10px; - border-radius: 10px; - background: #dfdfdf; - background: rgba( 0, 0, 0, 0.1 ); -} - -.media-progress-bar div { - height: 10px; - min-width: 20px; - width: 0; - background: #1e8cbe; - -webkit-border-radius: 10px; - border-radius: 10px; - -webkit-transition: width 300ms; - transition: width 300ms; -} - -.media-uploader-status .media-progress-bar { - display: none; - width: 100%; -} - -.uploading.media-uploader-status .media-progress-bar { - display: block; -} - -.attachment-preview .media-progress-bar { - position: absolute; - top: 50%; - right: 15%; - width: 70%; - margin: -5px 0 0 0; -} - -.media-uploader-status { - position: relative; - margin: 0 auto; - padding-bottom: 10px; - max-width: 400px; -} - -.uploader-inline .media-uploader-status h3 { - display: none; -} - -.media-uploader-status .upload-details { - display: none; - font-size: 12px; - color: #666; -} - -.uploading.media-uploader-status .upload-details { - display: block; -} - -.media-uploader-status .upload-detail-separator { - padding: 0 4px; -} - -.media-uploader-status .upload-count { - color: #464646; -} - -.media-uploader-status .upload-dismiss-errors, -.media-uploader-status .upload-errors { - display: none; -} - -.errors.media-uploader-status .upload-dismiss-errors, -.errors.media-uploader-status .upload-errors { - display: block; -} - -.media-uploader-status .upload-dismiss-errors { - text-decoration: none; -} - -.media-sidebar .media-uploader-status .upload-dismiss-errors { - position: absolute; - top: 0; - left: 0; -} - -.upload-errors .upload-error { - padding: 12px; - margin-bottom: 12px; - background: #fff; - border-right: 4px solid #dd3d36; - -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); -} - -.upload-errors .upload-error-filename { - font-weight: bold; -} - -.upload-errors .upload-error-message { - display: block; - padding-top: 8px; - word-wrap: break-word; -} - -.uploader-window { - position: fixed; - top: 0; - right: 0; - left: 0; - bottom: 0; - background: rgba( 0, 86, 132, 0.9 ); - z-index: 250000; - display: none; - text-align: center; - opacity: 0; - -webkit-transition: opacity 250ms; - transition: opacity 250ms; -} - -.uploader-window-content { - position: absolute; - top: 10px; - right: 10px; - left: 10px; - bottom: 10px; - border: 1px dashed #fff; -} - -.uploader-window h3 { - margin: -0.5em 0 0; - position: absolute; - top: 50%; - right: 0; - left: 0; - -webkit-transform: translateY( -50% ); - -ms-transform: translateY(-50%); - transform: translateY( -50% ); - font-size: 40px; - color: #fff; - padding: 0; -} - -.uploader-window .media-progress-bar { - margin-top: 20px; - max-width: 300px; - background: transparent; - border-color: #fff; - display: none; -} - -.uploader-window .media-progress-bar div { - background: #fff; -} - -.uploading .uploader-window .media-progress-bar { - display: block; -} - -.media-frame .uploader-inline { - margin-bottom: 20px; - padding: 0; - text-align: center; -} - -.uploader-inline-content { - position: absolute; - top: 30%; - right: 0; - left: 0; -} - -.uploader-inline-content .upload-ui { - margin: 2em 0; -} - -.uploader-inline-content .post-upload-ui { - margin-bottom: 2em; -} - -.uploader-inline .has-upload-message .upload-ui { - margin: 0 0 4em; -} - -.uploader-inline h3 { - font-size: 20px; - line-height: 28px; - font-weight: 400; - margin: 0; -} - -.uploader-inline .has-upload-message .upload-instructions { - font-size: 14px; - color: #464646; - font-weight: normal; -} - -.uploader-inline .drop-instructions { - display: none; -} - -.supports-drag-drop .uploader-inline .drop-instructions { - display: block; -} - -.uploader-inline p { - font-size: 12px; - margin: 0.5em 0; -} - -.uploader-inline .media-progress-bar { - display: none; -} - -.uploading.uploader-inline .media-progress-bar { - display: block; -} - -.uploader-inline .browser { - display: inline-block !important; -} - -/** - * Selection - */ -.media-selection { - position: absolute; - top: 0; - right: 0; - left: 350px; - height: 60px; - padding: 0 16px 0 0; - overflow: hidden; - white-space: nowrap; -} - -.media-selection .selection-info { - display: inline-block; - font-size: 12px; - height: 60px; - margin-left: 10px; - vertical-align: top; -} - -.media-selection.empty, -.media-selection.editing { - display: none; -} - -.media-selection.one .edit-selection { - display: none; -} - -.media-selection .count { - display: block; - padding-top: 12px; - font-size: 14px; - line-height: 20px; - font-weight: bold; -} - -.media-selection .button-link { - float: right; - padding: 1px 8px; - margin: 1px -8px 1px 8px; - line-height: 16px; - border-left: 1px solid #dfdfdf; - color: #21759B; -} - -.media-selection .button-link:hover, -.media-selection .button-link:focus { - background: #21759B; - color: #fff; - border-color: transparent; -} - -.media-selection .button-link:last-child { - border-left: 0; - margin-left: 0; -} - -.selection-info .clear-selection { - color: red; -} - -.selection-info .clear-selection:hover, -.selection-info .clear-selection:focus { - background: red; - color: #fff; -} - -.media-selection .selection-view { - display: inline-block; - vertical-align: top; -} - -.media-selection .attachments { - display: inline-block; - height: 48px; - margin: 6px; - padding: 0; - overflow: hidden; - vertical-align: top; -} - -.media-selection .attachment { - width: 40px; - padding: 0; - margin: 4px; -} - -.media-selection .attachment .thumbnail { - top: 0; - left: 0; - bottom: 0; - right: 0; -} - -.media-selection .attachment .icon { - width: 50%; -} - -.media-selection .attachment-preview { - -webkit-box-shadow: none; - box-shadow: none; - background: none; -} - -.wp-core-ui .media-selection .attachment:focus, -.wp-core-ui .media-selection .selected.attachment:focus, -.wp-core-ui .media-selection .attachment.details:focus { - -webkit-box-shadow: - 0 0 0 1px #fff, - 0 0 2px 3px #5b9dd9; - box-shadow: - 0 0 0 1px #fff, - 0 0 2px 3px #5b9dd9; -} - -.wp-core-ui .media-selection .selected.attachment { - -webkit-box-shadow: none; - box-shadow: none; -} - -.wp-core-ui .media-selection .attachment.details { - -webkit-box-shadow: - 0 0 0 1px #fff, - 0 0 0 3px #1e8cbe; - box-shadow: - 0 0 0 1px #fff, - 0 0 0 3px #1e8cbe; -} - -.media-selection:after { - content: ''; - display: block; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 25px; - background-image: -webkit-gradient(linear, left top, right top, from(rgba( 255, 255, 255, 1 )), to(rgba( 255, 255, 255, 0 ))); - background-image: -webkit-linear-gradient(left, rgba( 255, 255, 255, 1 ), rgba( 255, 255, 255, 0 )); - background-image: linear-gradient(to right, rgba( 255, 255, 255, 1 ) , rgba( 255, 255, 255, 0 ) ); -} - -.media-selection .attachment .filename { - display: none; -} - -/** - * Spinner - */ -.media-frame .spinner { - background: url(../images/spinner.gif) no-repeat; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - float: left; - display: inline-block; - visibility: hidden; - opacity: 0.7; - filter: alpha(opacity=70); - width: 20px; - height: 20px; - margin: 0; - vertical-align: middle; -} - -.media-frame .spinner.is-active { - visibility: visible; -} - -.media-toolbar .spinner { - margin-top: 14px; -} - -/** - * Attachment Details - */ -.attachment-details { - position: relative; - overflow: auto; -} - -.attachment-details .settings-save-status { - float: left; - text-transform: none; - z-index: 10; -} - -.attachment-details .settings-save-status .spinner { - margin-right: 5px; -} - -.attachment-details .settings-save-status .saved { - float: left; - display: none; -} - -.attachment-details.save-waiting .settings-save-status .spinner { - visibility: visible; -} - -.attachment-details.save-complete .settings-save-status .saved { - display: block; -} - -.attachment-info { - overflow: hidden; - min-height: 60px; - margin-bottom: 16px; - line-height: 18px; - color: #666; - border-bottom: 1px solid #ddd; - padding-bottom: 11px; -} - -.attachment-info .filename { - font-weight: bold; - color: #464646; - word-wrap: break-word; -} - -.attachment-info .thumbnail { - position: relative; - float: right; - max-width: 120px; - max-height: 120px; - margin-top: 5px; - margin-left: 10px; - margin-bottom: 5px; -} - -.uploading .attachment-info .thumbnail { - width: 120px; - height: 80px; - -webkit-box-shadow: inset 0 0 15px rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 0 15px rgba( 0, 0, 0, 0.1 ); -} - -.uploading .attachment-info .media-progress-bar { - margin-top: 35px; -} - -.attachment-info .thumbnail-image:after { - content: ''; - display: block; - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; - -webkit-box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15 ); - box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15 ); - overflow: hidden; -} - -.attachment-info .thumbnail img { - display: block; - max-width: 120px; - max-height: 120px; - margin: 0 auto; -} - -.attachment-info .details { - float: right; - font-size: 12px; - max-width: 100%; -} - -.attachment-info .edit-attachment, -.attachment-info .delete-attachment, -.attachment-info .trash-attachment, -.attachment-info .untrash-attachment { - display: block; - text-decoration: none; - white-space: nowrap; -} - -.attachment-details.needs-refresh .attachment-info .edit-attachment { - display: none; -} - -.attachment-info .edit-attachment { - display: block; -} - -.media-modal .delete-attachment, -.media-modal .trash-attachment, -.media-modal .untrash-attachment { - display: inline; - padding: 0; - color: #bc0b0b; -} - -.media-modal .delete-attachment:hover, -.media-modal .delete-attachment:focus, -.media-modal .trash-attachment:hover, -.media-modal .trash-attachment:focus, -.media-modal .untrash-attachment:hover, -.media-modal .untrash-attachment:focus { - color: red; -} - -/** - * Attachment Display Settings - */ -.attachment-display-settings { - width: 100%; - float: right; - overflow: hidden; -} - -.attachment-display-settings h4 { - margin: 1.4em 0 0.4em; -} - -.collection-settings { - overflow: hidden; -} - -.collection-settings .setting input[type="checkbox"] { - float: right; - margin-left: 8px; -} - -.collection-settings .setting span { - min-width: inherit; -} - -/** - * Image Editor - */ -.media-modal .imgedit-wrap { - position: static; -} - -.media-modal .imgedit-wait { - height: auto !important; - left: 0; - bottom: 0; - right: 0; -} - -.media-modal .imgedit-wrap .imgedit-panel-content { - padding: 16px; - position: absolute; - top: 0; - left: 282px; - bottom: 0; - right: 0; - overflow: auto; -} - -.media-modal .imgedit-wrap .imgedit-settings { - background: #f3f3f3; - border-right: 1px solid #ddd; - padding: 0 16px 16px; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 250px; - overflow: auto; -} - -.media-modal .imgedit-group { - background: none; - border: none; - border-bottom: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - margin: 0; - margin-bottom: 16px; - padding: 0; - padding-bottom: 16px; - position: relative; /* RTL fix, #WP29352 */ -} - -.media-modal .imgedit-group:last-of-type { - border: none; - margin: 0; - padding: 0; -} - -.media-modal .imgedit-group-top h3 { - text-transform: uppercase; - font-size: 12px; - color: #666; - margin: 0; - margin-top: 24px; -} - -.media-modal .imgedit-group-top h3 a { - text-decoration: none; - color: #666; -} - -.media-modal .imgedit-help-toggle { - margin-top: -2px; - cursor: pointer; - color: #666; -} - -.media-modal .imgedit-help-toggled span.dashicons:before { - content: '\f142'; -} - -.media-modal .imgedit-group img { - margin-top: 5px; -} - -.media-modal .imgedit-wrap div.updated { - margin: 0; - margin-bottom: 16px; -} - - -/** - * Embed from URL and Image Details - */ -.embed-url { - display: block; - position: relative; - padding: 16px; - margin: 0; - z-index: 250; - background: #fff; - font-size: 18px; -} - -.media-frame .embed-url input { - font-size: 18px; - padding: 12px 14px; - width: 100%; - min-width: 200px; - -webkit-box-shadow: inset -2px 2px 4px -2px rgba( 0, 0, 0, 0.1 ); - box-shadow: inset -2px 2px 4px -2px rgba( 0, 0, 0, 0.1 ); -} - -.media-frame .embed-url .spinner { - position: absolute; - top: 32px; - left: 26px; -} - -.media-frame .embed-loading .embed-url .spinner { - visibility: visible; -} - -.embed-link-settings, -.embed-media-settings { - position: absolute; - top: 70px; - right: 0; - left: 0; - bottom: 0; - padding: 16px 16px 32px; - overflow: auto; -} - -.media-embed .embed-link-settings { - /* avoid Firefox to give focus to the embed preview container parent */ - overflow: visible; -} - -.embed-preview img, -.embed-preview iframe, -.embed-preview embed, -.mejs-container video { - max-width: 100%; - vertical-align: middle; -} - -.embed-preview a { - display: inline-block; -} - -.embed-preview img { - display: block; - height: auto; -} - -.mejs-container:focus { - outline: 1px solid #5b9dd9; - -webkit-box-shadow: 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.image-details .media-modal { - right: 140px; - left: 140px; -} - -.image-details .media-frame-title, -.image-details .media-frame-content, -.image-details .media-frame-router { - right: 0; -} - -.image-details .embed-media-settings { - top: 0; - overflow: visible; - padding: 0; -} - -.image-details .embed-media-settings, -.image-details .embed-media-settings div { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.image-details .column-settings { - background: #f3f3f3; - border-left: 1px solid #ddd; - min-height: 100%; - width: 55%; - position: absolute; - top: 0; - right: 0; -} - -.image-details .column-settings h3 { - margin: 20px; - padding-top: 20px; - border-top: 1px solid #ddd; -} - -.image-details .column-image { - width: 45%; - position: absolute; - right: 55%; - top: 0; -} - -.image-details .image { - margin: 20px; -} - -.image-details .image img { - max-width: 100%; - max-height: 500px; -} - -.image-details .advanced-toggle { - padding: 0; - color: #666; - text-transform: uppercase; -} - -.image-details .advanced-toggle:after { - font: normal 20px/1 'dashicons'; - speak: none; - vertical-align: top; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - content: '\f140'; - display: inline-block; - margin-top: -2px; -} - -.image-details .advanced-visible .advanced-toggle:after { - content: '\f142'; -} - -.image-details .embed-media-settings .size { - margin-bottom: 4px; -} - -.image-details .custom-size span { - display: block; -} - -.image-details .custom-size label { - display: block; - float: right; -} - -.image-details .custom-size span small { - color: #999; - font-size: inherit; -} - -.image-details .custom-size input { - width: 5em; -} - -.image-details .custom-size .sep { - float: right; - margin: 26px 6px 0 6px; -} - -.image-details .custom-size:after { - content: ''; - display: table; - clear: both; -} - -.media-embed .thumbnail { - max-width: 100%; - max-height: 200px; - position: relative; - float: right; -} - -.media-embed .thumbnail img { - max-height: 200px; - display: block; -} - -.media-embed .thumbnail:after { - content: ''; - display: block; - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; - -webkit-box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.1 ); - overflow: hidden; -} - -.media-embed .setting { - width: 100%; - margin: 10px 0; - float: right; - display: block; - clear: both; -} - -.image-details .embed-media-settings .setting { - float: none; - width: auto; -} - -.image-details .actions { - margin: 10px 0; -} - -.image-details .hidden { - display: none; -} - -.media-embed .setting input[type="text"], -.media-embed .setting textarea { - display: block; - width: 100%; - max-width: 400px; - margin: 1px 0; -} - -.image-details .embed-media-settings .setting input[type="text"], -.image-details .embed-media-settings .setting textarea { - max-width: inherit; - width: 70%; -} - -.image-details .embed-media-settings .setting input.link-to-custom, -.image-details .embed-media-settings .link-target, -.image-details .embed-media-settings .custom-size { - margin-right: 27%; - width: 70%; -} - -.image-details .embed-media-settings .link-target { - margin-top: 24px; -} - -.media-embed .setting input.hidden, -.media-embed .setting textarea.hidden { - display: none; -} - -.media-embed .setting span { - display: block; - width: 200px; - font-size: 13px; - line-height: 24px; - color: #666; -} - -.image-details .embed-media-settings .setting span { - float: right; - width: 25%; - text-align: left; - margin: 8px 1% 0 1%; - line-height: 1.1; -} - -.media-embed .setting .button-group { - margin: 2px 0; -} - -.media-embed-sidebar { - position: absolute; - top: 0; - right: 440px; -} - -.advanced-section, -.link-settings { - margin-top: 10px; -} - -/* Drag & drop on the editor upload */ -.wp-editor-wrap .uploader-editor { - background: rgba( 150, 150, 150, 0.9 ); - position: absolute; - top: 0; - right: 0; - width: 100%; - height: 100%; - z-index: 99998; /* under the toolbar */ - display: none; - text-align: center; -} - -.wp-editor-wrap .uploader-editor-content { - border: 1px dashed #fff; - position: absolute; - top: 10px; - right: 10px; - left: 10px; - bottom: 10px; -} - -.wp-editor-wrap .uploader-editor .uploader-editor-title { - position: absolute; - top: 50%; - right: 0; - left: 0; - -webkit-transform: translateY( -50% ); - -ms-transform: translateY(-50%); - transform: translateY( -50% ); - font-size: 3em; - line-height: 1.3; - font-weight: bold; - color: #fff; - padding: 0; - margin: 0; - display: none; -} - -.wp-editor-wrap .uploader-editor.droppable { - background: rgba( 0, 86, 132, 0.9 ); -} - -.wp-editor-wrap .uploader-editor.droppable .uploader-editor-title { - display: block; -} - -/** - * IE7 Fixes - */ -.ie7 .media-frame .attachments-browser { - position: static; -} - -.ie7 .media-frame .embed-url input { - margin-top: 4px; - width: 90%; -} - -.ie7 .compat-item { - width: 99%; -} - -.ie7 .attachment-display-settings { - width: auto; -} - -.ie7 .attachment-preview, -.ie7 .attachment-preview .thumbnail { - width: 120px; - height: 120px; -} - -.ie7 .media-frame .attachment .describe { - width: 102px; -} - -.ie7 .media-sidebar .setting select { - max-width: 55%; -} - -.ie7 .media-sidebar .setting input[type="text"], -.ie7 .media-sidebar .setting input[type="password"], -.ie7 .media-sidebar .setting input[type="email"], -.ie7 .media-sidebar .setting input[type="number"], -.ie7 .media-sidebar .setting input[type="search"], -.ie7 .media-sidebar .setting input[type="tel"], -.ie7 .media-sidebar .setting input[type="url"], -.ie7 .media-sidebar .setting textarea { - width: 55%; -} - -.ie7 .media-sidebar .setting .link-to-custom { - float: right; -} - -/** - * Localization - */ -.rtl .media-modal, -.rtl .media-frame, -.rtl .media-frame .search, -.rtl .media-frame input[type="text"], -.rtl .media-frame input[type="password"], -.rtl .media-frame input[type="number"], -.rtl .media-frame input[type="search"], -.rtl .media-frame input[type="email"], -.rtl .media-frame input[type="url"], -.rtl .media-frame input[type="tel"], -.rtl .media-frame textarea, -.rtl .media-frame select { - font-family: Tahoma, sans-serif; -} - -:lang(he-il) .rtl .media-modal, -:lang(he-il) .rtl .media-frame, -:lang(he-il) .rtl .media-frame .search, -:lang(he-il) .rtl .media-frame input[type="text"], -:lang(he-il) .rtl .media-frame input[type="password"], -:lang(he-il) .rtl .media-frame input[type="number"], -:lang(he-il) .rtl .media-frame input[type="search"], -:lang(he-il) .rtl .media-frame input[type="email"], -:lang(he-il) .rtl .media-frame input[type="url"], -:lang(he-il) .rtl .media-frame textarea, -:lang(he-il) .rtl .media-frame select { - font-family: Arial, sans-serif; -} - -/** - * Responsive layout - */ -@media only screen and (max-width: 900px) { - - /* Drop-down menu */ - .media-frame:not(.hide-menu) .media-frame-title, - .media-frame:not(.hide-menu) .media-frame-router, - .media-frame:not(.hide-menu) .media-frame-content, - .media-frame:not(.hide-menu) .media-frame-toolbar { - right: 0; - } - - .media-frame:not(.hide-menu) .media-frame-menu { - position: static; - width: 0; - } - - .media-frame:not(.hide-menu) .media-menu { - width: auto; - max-width: 80%; - overflow: auto; - z-index: 2000; - top: 50px; - right: -300px; - left: auto; - bottom: auto; - padding: 5px 0; - border: 1px solid #ccc; - } - - .media-frame:not(.hide-menu) .media-menu.visible { - right: 0; - } - - .media-frame:not(.hide-menu) .media-menu > a { - padding: 12px 16px; - font-size: 16px; - } - - .media-frame:not(.hide-menu) .media-menu > a.active { - display: none; - } - - .media-frame:not(.hide-menu) .media-menu .separator { - margin: 5px 10px; - } - - .media-frame:not(.hide-menu) .media-frame-title { - right: 0; - color: #21759b; - } - - .media-frame:not(.hide-menu) .media-frame-title .dashicons { - display: inline-block; - line-height: 50px; - } - - .media-frame:not(.hide-menu) .media-frame-title h1 { - line-height: 3; - font-size: 18px; - float: right; - cursor: pointer; - } - /* End drop-down menu */ - - .media-sidebar { - width: 230px; - } - - .attachments-browser .attachments, - .attachments-browser .uploader-inline, - .attachments-browser .media-toolbar { - left: 262px; - } - - .media-sidebar .setting, - .attachment-details .setting { - margin: 6px 0px; - } - - .media-sidebar .setting input, - .media-sidebar .setting textarea, - .media-sidebar .setting span, - .attachment-details .setting input, - .attachment-details .setting textarea, - .attachment-details .setting span, - .compat-item label span { - float: none; - } - - .media-sidebar .setting span, - .attachment-details .setting span, - .compat-item label span { - text-align: inherit; - min-height: 16px; - margin: 0; - padding: 8px 2px 0; - } - - .media-sidebar .setting .value, - .attachment-details .setting .value { - float: none; - width: auto; - } - - .media-sidebar .setting input[type="text"], - .media-sidebar .setting input[type="password"], - .media-sidebar .setting input[type="email"], - .media-sidebar .setting input[type="number"], - .media-sidebar .setting input[type="search"], - .media-sidebar .setting input[type="tel"], - .media-sidebar .setting input[type="url"], - .media-sidebar .setting textarea, - .media-sidebar .setting select, - .attachment-details .setting input[type="text"], - .attachment-details .setting input[type="password"], - .attachment-details .setting input[type="email"], - .attachment-details .setting input[type="number"], - .attachment-details .setting input[type="search"], - .attachment-details .setting input[type="tel"], - .attachment-details .setting input[type="url"], - .attachment-details .setting textarea, - .attachment-details .setting select { - float: none; - width: 98%; - max-width: none; - height: auto; - } - - .media-sidebar .setting select.columns, - .attachment-details .setting select.columns { - width: auto; - } - - .media-frame input, - .media-frame textarea, - .media-frame .search { - padding: 3px 6px; - } - - .image-details .column-image { - width: 30%; - right: 70%; - } - - .image-details .column-settings { - width: 70%; - } - - .image-details .media-modal { - right: 30px; - left: 30px; - } - - .image-details .embed-media-settings .setting { - margin: 20px; - } - - .image-details .embed-media-settings .setting span { - float: none; - text-align: right; - width: 100%; - margin-bottom: 4px; - } - - .image-details .embed-media-settings .setting input.link-to-custom, - .image-details .embed-media-settings .setting input[type="text"], - .image-details .embed-media-settings .setting textarea { - width: 100%; - margin-right: 0; - } - - .image-details .embed-media-settings .custom-size { - margin-right: 20px; - } - - .collection-settings .setting input[type="checkbox"] { - margin-top: 0; - } - - .media-selection { - min-width: 120px; - } - - .media-selection:after { - background: none; - } - - .media-selection .attachments { - display: none; - } - - .media-modal .attachments-browser .media-toolbar .search { - max-width: 100%; - height: auto; - float: left; - } - - .media-modal .attachments-browser .media-toolbar .attachment-filters { - height: auto; - } - - .media-modal .attachments-browser .media-toolbar .spinner { - margin: 14px 2px 0; - } - - /* Text inputs need to be 16px, or they force zooming on iOS */ - .media-frame input[type="text"], - .media-frame input[type="password"], - .media-frame input[type="number"], - .media-frame input[type="search"], - .media-frame input[type="email"], - .media-frame input[type="url"], - .media-frame textarea, - .media-frame select { - font-size: 16px; - } -} - -/* Responsive on portrait and landscape */ -@media only screen and (max-width: 640px), screen and (max-height: 400px) { - /* Full-bleed modal */ - .media-modal, - .image-details .media-modal { - position: fixed; - top: 0; - right: 0; - left: 0; - bottom: 0; - } - - .media-modal-backdrop { - position: fixed; - } - - .media-sidebar { - z-index: 1900; - max-width: 70%; - bottom: 120%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - padding-bottom: 0; - } - - .media-sidebar.visible { - bottom: 0; - } - - .attachments-browser .attachments, - .attachments-browser .uploader-inline, - .attachments-browser .media-toolbar { - left: 0; - } - - .image-details .media-frame-title { - display: block; - top: 0; - font-size: 14px; - } - - .image-details .column-image, - .image-details .column-settings { - width: 100%; - position: relative; - right: 0; - } - - .image-details .column-settings { - padding: 4px 0; - } - - /* Media tabs on the top */ - .media-frame-content .media-toolbar .instructions { - display: none; - } -} - -/* Landscape specific header override */ -@media screen and (max-height: 400px) { - .media-menu { - padding: 0; - } - - .media-frame-router { - top: 44px; - } - - .media-frame-content { - top: 78px; - } - - .attachments-browser .attachments { - top: 40px; - } - - /* Prevent unnecessary scrolling on title input */ - .embed-link-settings { - overflow: visible; - } -} - -@media only screen and (max-width: 480px) { - .media-modal-close { - top: -5px; - } - - .media-modal .media-frame-title { - height: 40px; - } - - .wp-core-ui.wp-customizer .media-button { - margin-top: 13px; - } - - .media-modal .media-frame-title h1, - .media-frame:not(.hide-menu) .media-frame-title h1 { - font-size: 18px; - line-height: 40px; - } - - .media-frame:not(.hide-menu) .media-frame-title .dashicons { - line-height: 40px; - } - - .media-frame-router, - .media-frame:not(.hide-menu) .media-menu { - top: 40px; - } - - .media-frame-content { - top: 74px; - } - - .media-frame.hide-router .media-frame-content { - top: 40px; - } -} - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - - .media-modal-icon { - background-image: url(../images/uploader-icons-2x.png); - -webkit-background-size: 134px 15px; - background-size: 134px 15px; - } - - .media-frame .spinner { - background-image: url(../images/spinner-2x.gif); - } -} - -.media-frame-content[data-columns="1"] .attachment { - width: 100%; -} - -.media-frame-content[data-columns="2"] .attachment { - width: 50%; -} - -.media-frame-content[data-columns="3"] .attachment { - width: 33.33%; -} - -.media-frame-content[data-columns="4"] .attachment { - width: 25%; -} - -.media-frame-content[data-columns="5"] .attachment { - width: 20%; -} - -.media-frame-content[data-columns="6"] .attachment { - width: 16.66%; -} - -.media-frame-content[data-columns="7"] .attachment { - width: 14.28%; -} - -.media-frame-content[data-columns="8"] .attachment { - width: 12.5%; -} - -.media-frame-content[data-columns="9"] .attachment { - width: 11.11%; -} - -.media-frame-content[data-columns="10"] .attachment { - width: 10%; -} - -.media-frame-content[data-columns="11"] .attachment { - width: 9.09%; -} - -.media-frame-content[data-columns="12"] .attachment { - width: 8.33%; -} diff --git a/wp-includes/css/media-views-rtl.min.css b/wp-includes/css/media-views-rtl.min.css deleted file mode 100644 index 1f5349f32c..0000000000 --- a/wp-includes/css/media-views-rtl.min.css +++ /dev/null @@ -1,8 +0,0 @@ -.media-modal *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.media-frame input,.media-frame select,.media-frame textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.media-frame,.media-modal{font-family:"Open Sans",sans-serif;font-size:12px;-webkit-overflow-scrolling:touch}.media-frame input,.media-frame textarea{padding:6px 8px}.media-frame select,.wp-admin .media-frame select{line-height:28px;margin-top:3px}.media-frame a{border-bottom:none;color:#21759b}.media-frame a:hover{color:#d54e21}.media-frame a.button{color:#32373c}.media-frame a.button:hover{color:#23282d}.media-frame a.button-primary,.media-frame a.button-primary:hover{color:#fff}.media-frame input[type=text],.media-frame input[type=password],.media-frame input[type=number],.media-frame input[type=search],.media-frame input[type=email],.media-frame input[type=url],.media-frame select,.media-frame textarea{font-family:"Open Sans",sans-serif;font-size:12px;border-width:1px;border-style:solid;border-color:#dfdfdf}.media-frame input[type=text]:focus,.media-frame input[type=password]:focus,.media-frame input[type=number]:focus,.media-frame input[type=search]:focus,.media-frame input[type=email]:focus,.media-frame input[type=url]:focus,.media-frame select:focus,.media-frame textarea:focus{border-color:#5b9dd9}.media-frame select{height:24px;padding:2px}.media-frame input:disabled,.media-frame input[readonly],.media-frame textarea:disabled,.media-frame textarea[readonly]{background-color:#eee}.media-frame input[type=search]{-webkit-appearance:textfield}.media-frame :-moz-placeholder{color:#a9a9a9}.media-frame .hidden{display:none}/*! - * jQuery UI Draggable/Sortable 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */.ui-draggable-handle,.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.media-modal{position:fixed;top:30px;right:30px;left:30px;bottom:30px;z-index:160000}.wp-customizer .media-modal{z-index:560000}.media-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:159900}.wp-customizer .media-modal-backdrop{z-index:559900}.media-modal-close{position:absolute;top:0;left:0;width:50px;height:50px;padding:0;z-index:1000;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.media-modal-close:active{-webkit-box-shadow:none;box-shadow:none;outline:0}.media-modal-close span.media-modal-icon{background-image:none}.media-modal-close .media-modal-icon:before{content:'\f158';font:400 20px/1 dashicons;speak:none;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#666}.media-modal-close:hover .media-modal-icon:before{color:#00a0d2}.media-modal-content{position:absolute;top:0;right:0;left:0;bottom:0;overflow:auto;min-height:300px;-webkit-box-shadow:0 5px 15px rgba(0,0,0,.7);box-shadow:0 5px 15px rgba(0,0,0,.7);background:#fcfcfc;-webkit-font-smoothing:subpixel-antialiased}.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons.png);background-repeat:no-repeat}.media-menu,.media-sidebar{top:0;bottom:0;left:0;background:#f3f3f3}.media-toolbar{position:absolute;top:0;right:0;left:0;z-index:100;height:60px;padding:0 16px;border:0 solid #dfdfdf;overflow:hidden}.media-toolbar-primary{float:left;height:100%}.media-toolbar-secondary{float:right;height:100%}.media-toolbar-primary>.media-button,.media-toolbar-primary>.media-button-group{margin-right:10px;float:right;margin-top:15px}.media-toolbar-secondary>.media-button,.media-toolbar-secondary>.media-button-group{margin-left:10px;margin-top:15px}.media-sidebar{position:absolute;width:267px;padding:0 16px 24px;z-index:75;border-right:1px solid #ddd;overflow:auto;-webkit-overflow-scrolling:touch}.hide-toolbar .media-sidebar{bottom:0}.media-sidebar .sidebar-title{font-size:20px;margin:0;padding:12px 10px 10px;line-height:28px}.media-sidebar .sidebar-content{padding:0 10px;margin-bottom:130px}.media-sidebar .search{display:block;width:100%}.image-details h3,.media-sidebar h3{position:relative;font-weight:700;text-transform:uppercase;font-size:12px;color:#666;margin:24px 0 8px}.attachment-details .setting,.media-sidebar .setting{display:block;float:right;width:100%;margin:1px 0}.attachment-details .setting label,.media-sidebar .setting label{display:block}.attachment-details .setting .link-to-custom,.media-sidebar .setting .link-to-custom{margin:3px 2px 0}.attachment-details .setting span,.media-sidebar .setting span{min-width:30%;margin-left:4%;font-size:12px;text-align:left;word-wrap:break-word}.media-sidebar .setting .name{max-width:80px}.attachment-details .setting select,.media-sidebar .setting select{max-width:65%}.attachment-details .field input[type=radio],.attachment-details .field input[type=checkbox],.attachment-details .setting input[type=radio],.attachment-details .setting input[type=checkbox],.media-sidebar .field input[type=radio],.media-sidebar .field input[type=checkbox],.media-sidebar .setting input[type=radio],.media-sidebar .setting input[type=checkbox]{float:none;margin:8px 3px 0;padding:0}.attachment-details .setting span,.compat-item label span,.media-sidebar .setting span{float:right;min-height:22px;padding-top:8px;line-height:16px;font-weight:400;color:#666}.media-menu>a,.media-router>a{text-decoration:none;line-height:18px;font-size:14px}.compat-item label span{text-align:left}.attachment-details .setting .value,.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=password],.attachment-details .setting input[type=number],.attachment-details .setting input[type=search],.attachment-details .setting input[type=email],.attachment-details .setting input[type=url],.attachment-details .setting textarea,.media-sidebar .setting .value,.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=url],.media-sidebar .setting textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:1px;width:65%;float:left}.attachment-details .setting .value,.media-sidebar .setting .value{margin:0 1px;text-align:right}.attachment-details .setting textarea,.compat-item .field textarea,.media-sidebar .setting textarea{height:62px;resize:vertical}.attachment-details select,.media-sidebar select{margin-top:3px}.compat-item{float:right;width:100%;overflow:hidden}.compat-item table{width:100%;table-layout:fixed;border-spacing:0;border:0}.compat-item tr{padding:2px 0;display:block;overflow:hidden}.compat-item .field,.compat-item .label{display:block;margin:0;padding:0}.compat-item .label{min-width:30%;margin-left:4%;float:right;text-align:left}.compat-item .label span{display:block;width:100%}.compat-item .field{float:left;width:65%;margin:1px}.compat-item .field input[type=tel],.compat-item .field input[type=text],.compat-item .field input[type=password],.compat-item .field input[type=number],.compat-item .field input[type=search],.compat-item .field input[type=email],.compat-item .field input[type=url],.compat-item .field textarea{width:100%;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.sidebar-for-errors .attachment-details,.sidebar-for-errors .compat-item,.sidebar-for-errors .media-sidebar .media-progress-bar,.sidebar-for-errors .upload-details{display:none!important}.media-menu{position:absolute;right:0;margin:0;padding:10px 0;border-left-width:1px;border-left-style:solid;border-left-color:#ccc;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.media-menu>a{display:block;position:relative;padding:8px 20px;margin:0;color:#0073aa}.media-frame-title .dashicons,.media-frame.hide-router .media-frame-router,.media-router .active:after{display:none}.media-menu>a:hover{color:#21759B;background:rgba(0,0,0,.04)}.media-menu>a:active{outline:0}.media-menu .active,.media-menu .active:hover{color:#23282d;font-weight:700}.media-menu .separator{height:0;margin:12px 20px;padding:0;border-top:1px solid #ddd}.media-router{position:relative;padding:0 6px;margin:0;clear:both;user-select:none}.media-router,.wp-core-ui .attachment{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.media-router a{-webkit-transition:none;transition:none}.media-router>a{position:relative;float:right;padding:8px 10px 9px;margin:0;height:18px}.media-router>a:last-child{border-left:0}.media-router>a:active{outline:0}.media-router .active,.media-router .active:hover{color:#32373c}.media-router .active,.media-router>a.active:last-child{margin:-1px -1px 0;background:#fff;border:1px solid #ddd;border-bottom:none}.media-frame{overflow:hidden;position:absolute;top:0;right:0;left:0;bottom:0}.media-frame-menu{position:absolute;top:0;right:0;bottom:0;width:200px;z-index:150}.media-frame-content,.media-frame-router,.media-frame-title,.media-frame-toolbar{left:0;position:absolute;right:200px}.media-frame-title{top:0;height:50px;z-index:200}.media-frame-router{top:50px;height:36px;z-index:200}.media-frame-content{top:84px;bottom:61px;height:auto;width:auto;margin:0;overflow:auto;background:#fff;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.media-frame-toolbar{bottom:0;height:60px;z-index:100}.media-frame.hide-menu .media-frame-content,.media-frame.hide-menu .media-frame-router,.media-frame.hide-menu .media-frame-title,.media-frame.hide-menu .media-frame-toolbar{right:0}.media-frame.hide-menu .media-frame-menu{right:-200px}.media-frame.hide-toolbar .media-frame-content{bottom:0}.media-frame.hide-toolbar .media-frame-toolbar{bottom:-61px}.media-frame.hide-router .media-frame-content{top:50px}.media-frame.hide-router .media-frame-title{border-bottom:1px solid #dfdfdf;-webkit-box-shadow:0 4px 4px -4px rgba(0,0,0,.1);box-shadow:0 4px 4px -4px rgba(0,0,0,.1)}.media-frame-title h1{padding:0 16px;font-size:22px;line-height:50px;margin:0}.media-frame-title .suggested-dimensions{font-size:14px;float:left;margin-left:20px}.media-frame-content .crop-content{height:100%}.wp-customizer:not(.mobile) .media-frame-content .crop-content.site-icon{margin-left:300px}.media-frame-content .crop-content .crop-image{display:block;margin:auto;max-width:100%;max-height:100%}.media-frame-content .crop-content .upload-errors{position:absolute;width:300px;top:50%;right:50%;margin-right:-150px;margin-left:-150px;z-index:600000}.media-frame .media-iframe{overflow:hidden}.media-frame .media-iframe,.media-frame .media-iframe iframe{height:100%;width:100%;border:0}.media-frame select.attachment-filters{margin-top:11px;margin-left:2%;max-width:42%;max-width:-webkit-calc(48% - 12px);max-width:calc(48% - 12px)}.media-toolbar-primary .search,.wp-core-ui .attachment .portrait img{max-width:100%}.media-frame select.attachment-filters:last-of-type{margin-left:0}.media-frame .search{margin-top:11px;padding:4px;font-size:13px;color:#464646;font-family:"Open Sans",sans-serif;-webkit-appearance:none}.wp-core-ui .attachments{margin:0;-webkit-overflow-scrolling:touch}.wp-core-ui .attachment{position:relative;float:right;padding:8px;margin:0;color:#464646;cursor:pointer;list-style:none;text-align:center;user-select:none;width:25%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-core-ui .attachment.details:focus,.wp-core-ui .attachment:focus,.wp-core-ui .selected.attachment:focus{-webkit-box-shadow:inset 0 0 2px 3px #fff,inset 0 0 0 7px #5b9dd9;box-shadow:inset 0 0 2px 3px #fff,inset 0 0 0 7px #5b9dd9;outline:0}.wp-core-ui .selected.attachment{-webkit-box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 7px #ccc;box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 7px #ccc}.wp-core-ui .attachment.details{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #1e8cbe;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #1e8cbe}.wp-core-ui .attachment-preview{position:relative;-webkit-box-shadow:inset 0 0 15px rgba(0,0,0,.1),inset 0 0 0 1px rgba(0,0,0,.05);box-shadow:inset 0 0 15px rgba(0,0,0,.1),inset 0 0 0 1px rgba(0,0,0,.05);background:#eee;cursor:pointer}.wp-core-ui .attachment-preview:before{content:'';display:block;padding-top:100%}.wp-core-ui .attachment .icon{margin:0 auto;overflow:hidden}.wp-core-ui .attachment .thumbnail{overflow:hidden;position:absolute;top:0;left:0;bottom:0;right:0;opacity:1;-webkit-transition:opacity .1s;transition:opacity .1s}.wp-core-ui .attachment .landscape img{max-height:100%}.wp-core-ui .attachment .thumbnail:after{content:'';display:block;position:absolute;top:0;right:0;left:0;bottom:0;-webkit-box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);overflow:hidden}.wp-core-ui .attachment .thumbnail img{top:0;right:0}.wp-core-ui .attachment .thumbnail .centered{position:absolute;top:0;right:0;width:100%;height:100%;-webkit-transform:translate(-50%,50%);-ms-transform:translate(-50%,50%);transform:translate(-50%,50%)}.wp-core-ui .attachment .thumbnail .centered img{-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%)}.wp-core-ui .attachments-browser .attachment .thumbnail .centered img.icon{-webkit-transform:translate(50%,-70%);-ms-transform:translate(50%,-70%);transform:translate(50%,-70%)}.ie8 .wp-core-ui .attachment img.icon{top:20%;position:relative}.wp-core-ui .attachment .filename{position:absolute;right:0;left:0;bottom:0;overflow:hidden;max-height:100%;word-wrap:break-word;text-align:center;font-weight:700;background:rgba(255,255,255,.8);-webkit-box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}.wp-core-ui .attachment .filename div{padding:5px 10px}.wp-core-ui .attachment .thumbnail img{position:absolute}.wp-core-ui .attachment-close{display:block;position:absolute;top:5px;left:5px;height:22px;width:22px;padding:0;background-color:#fff;background-position:-96px 4px;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.3);box-shadow:0 0 0 1px rgba(0,0,0,.3)}.wp-core-ui .attachment-close:focus,.wp-core-ui .attachment-close:hover{background-position:-36px 4px}.wp-core-ui .attachment .check{display:none;height:24px;width:24px;padding:0;position:absolute;z-index:10;top:0;left:0;outline:0;background:#eee;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px rgba(0,0,0,.15);box-shadow:0 0 0 1px #fff,0 0 0 2px rgba(0,0,0,.15)}.wp-core-ui .attachment .check .media-modal-icon{display:block;background-position:-1px 0;height:15px;width:15px;margin:5px}.wp-core-ui .attachment .check:hover .media-modal-icon{background-position:-40px 0}.wp-core-ui .attachment.selected .check{display:block}.wp-core-ui .attachment.details .check,.wp-core-ui .attachment.selected .check:focus,.wp-core-ui .media-frame.mode-grid .attachment.selected .check{background-color:#1e8cbe;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #1e8cbe;box-shadow:0 0 0 1px #fff,0 0 0 2px #1e8cbe}.wp-core-ui .attachment.details .check .media-modal-icon,.wp-core-ui .media-frame.mode-grid .attachment.selected .check .media-modal-icon{background-position:-21px 0}.wp-core-ui .attachment.details .check:hover .media-modal-icon,.wp-core-ui .attachment.selected .check:focus .media-modal-icon,.wp-core-ui .media-frame.mode-grid .attachment.selected .check:hover .media-modal-icon{background-position:-60px 0}.wp-core-ui .media-frame .attachment .describe{position:relative;display:block;width:100%;margin:0;padding:8px;font-size:12px;-webkit-border-radius:0;border-radius:0}.media-frame .attachments-browser{position:relative;width:100%;height:100%;overflow:hidden}.attachments-browser .media-toolbar{left:300px;height:50px}.attachments-browser.hide-sidebar .media-toolbar{left:0}.attachments-browser .media-toolbar-primary>.media-button,.attachments-browser .media-toolbar-primary>.media-button-group,.attachments-browser .media-toolbar-secondary>.media-button,.attachments-browser .media-toolbar-secondary>.media-button-group{margin:11px 0}.attachments-browser .attachments{padding:2px 8px 8px}.attachments-browser .attachments,.attachments-browser .uploader-inline{position:absolute;top:50px;right:0;left:300px;bottom:0;overflow:auto;outline:0}.attachments-browser .uploader-inline.hidden{display:none}.attachments-browser .media-toolbar-primary{max-width:33%}.attachments-browser .media-toolbar-secondary{max-width:66%}.uploader-inline .close{background-color:transparent;border:0;cursor:pointer;height:48px;position:absolute;left:0;text-align:center;top:0;width:50px;z-index:1}.uploader-inline .close:before{font:400 30px/50px dashicons!important;color:#777;display:inline-block;content:'\f335';font-weight:300}.attachments-browser.hide-sidebar .attachments,.attachments-browser.hide-sidebar .uploader-inline{left:0;margin-left:0}.attachments-browser .instructions{display:inline-block;margin-top:16px;line-height:18px;font-size:13px;color:#666;margin-left:.5em}.attachments-browser .no-media{padding:2em 2em 0 0}.media-progress-bar{position:relative;height:10px;width:70%;margin:10px auto;-webkit-border-radius:10px;border-radius:10px;background:#dfdfdf;background:rgba(0,0,0,.1)}.media-progress-bar div{height:10px;min-width:20px;width:0;background:#1e8cbe;-webkit-border-radius:10px;border-radius:10px;-webkit-transition:width 300ms;transition:width 300ms}.media-uploader-status .media-progress-bar{display:none;width:100%}.uploading.media-uploader-status .media-progress-bar{display:block}.attachment-preview .media-progress-bar{position:absolute;top:50%;right:15%;width:70%;margin:-5px 0 0}.media-uploader-status{position:relative;margin:0 auto;padding-bottom:10px;max-width:400px}.uploader-inline .media-uploader-status h3{display:none}.media-uploader-status .upload-details{display:none;font-size:12px;color:#666}.uploading.media-uploader-status .upload-details{display:block}.media-uploader-status .upload-detail-separator{padding:0 4px}.media-uploader-status .upload-count{color:#464646}.media-uploader-status .upload-dismiss-errors,.media-uploader-status .upload-errors{display:none}.errors.media-uploader-status .upload-dismiss-errors,.errors.media-uploader-status .upload-errors{display:block}.media-uploader-status .upload-dismiss-errors{text-decoration:none}.media-sidebar .media-uploader-status .upload-dismiss-errors{position:absolute;top:0;left:0}.upload-errors .upload-error{padding:12px;margin-bottom:12px;background:#fff;border-right:4px solid #dd3d36;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.upload-errors .upload-error-filename{font-weight:700}.upload-errors .upload-error-message{display:block;padding-top:8px;word-wrap:break-word}.uploader-window{position:fixed;top:0;right:0;left:0;bottom:0;background:rgba(0,86,132,.9);z-index:250000;display:none;text-align:center;opacity:0;-webkit-transition:opacity 250ms;transition:opacity 250ms}.uploader-window-content{position:absolute;top:10px;right:10px;left:10px;bottom:10px;border:1px dashed #fff}.uploader-window h3{margin:-.5em 0 0;position:absolute;top:50%;right:0;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-size:40px;color:#fff;padding:0}.uploader-window .media-progress-bar{margin-top:20px;max-width:300px;background:0 0;border-color:#fff;display:none}.uploader-window .media-progress-bar div{background:#fff}.uploading .uploader-window .media-progress-bar{display:block}.media-frame .uploader-inline{margin-bottom:20px;padding:0;text-align:center}.uploader-inline-content{position:absolute;top:30%;right:0;left:0}.uploader-inline-content .upload-ui{margin:2em 0}.uploader-inline-content .post-upload-ui{margin-bottom:2em}.uploader-inline .has-upload-message .upload-ui{margin:0 0 4em}.uploader-inline h3{font-size:20px;line-height:28px;font-weight:400;margin:0}.uploader-inline .has-upload-message .upload-instructions{font-size:14px;color:#464646;font-weight:400}.uploader-inline .drop-instructions{display:none}.supports-drag-drop .uploader-inline .drop-instructions{display:block}.uploader-inline p{font-size:12px;margin:.5em 0}.uploader-inline .media-progress-bar{display:none}.uploading.uploader-inline .media-progress-bar{display:block}.uploader-inline .browser{display:inline-block!important}.media-selection{position:absolute;top:0;right:0;left:350px;height:60px;padding:0 16px 0 0;overflow:hidden;white-space:nowrap}.media-selection .selection-info{display:inline-block;font-size:12px;height:60px;margin-left:10px;vertical-align:top}.media-selection.editing,.media-selection.empty,.media-selection.one .edit-selection{display:none}.media-selection .count{display:block;padding-top:12px;font-size:14px;line-height:20px;font-weight:700}.media-selection .attachments,.media-selection .selection-view{display:inline-block;vertical-align:top}.media-selection .button-link{float:right;padding:1px 8px;margin:1px -8px 1px 8px;line-height:16px;border-left:1px solid #dfdfdf;color:#21759B}.media-selection .button-link:focus,.media-selection .button-link:hover{background:#21759B;color:#fff;border-color:transparent}.media-selection .button-link:last-child{border-left:0;margin-left:0}.selection-info .clear-selection{color:red}.selection-info .clear-selection:focus,.selection-info .clear-selection:hover{background:red;color:#fff}.media-selection .attachments{height:48px;margin:6px;padding:0;overflow:hidden}.media-selection .attachment{width:40px;padding:0;margin:4px}.media-selection .attachment .thumbnail{top:0;left:0;bottom:0;right:0}.media-selection .attachment .icon{width:50%}.media-selection .attachment-preview{-webkit-box-shadow:none;box-shadow:none;background:0 0}.wp-core-ui .media-selection .attachment.details:focus,.wp-core-ui .media-selection .attachment:focus,.wp-core-ui .media-selection .selected.attachment:focus{-webkit-box-shadow:0 0 0 1px #fff,0 0 2px 3px #5b9dd9;box-shadow:0 0 0 1px #fff,0 0 2px 3px #5b9dd9}.wp-core-ui .media-selection .selected.attachment{-webkit-box-shadow:none;box-shadow:none}.wp-core-ui .media-selection .attachment.details{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #1e8cbe;box-shadow:0 0 0 1px #fff,0 0 0 3px #1e8cbe}.media-selection:after{content:'';display:block;position:absolute;top:0;left:0;bottom:0;width:25px;background-image:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,1)),to(rgba(255,255,255,0)));background-image:-webkit-linear-gradient(left,rgba(255,255,255,1),rgba(255,255,255,0));background-image:linear-gradient(to right,rgba(255,255,255,1) ,rgba(255,255,255,0))}.media-selection .attachment .filename{display:none}.media-frame .spinner{background:url(../images/spinner.gif) no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;float:left;display:inline-block;visibility:hidden;opacity:.7;filter:alpha(opacity=70);width:20px;height:20px;margin:0;vertical-align:middle}.attachment-details.save-waiting .settings-save-status .spinner,.media-frame .embed-loading .embed-url .spinner,.media-frame .spinner.is-active{visibility:visible}.media-toolbar .spinner{margin-top:14px}.attachment-details{position:relative;overflow:auto}.attachment-details .settings-save-status{float:left;text-transform:none;z-index:10}.attachment-details .settings-save-status .spinner{margin-right:5px}.attachment-details .settings-save-status .saved{float:left;display:none}.attachment-details.save-complete .settings-save-status .saved{display:block}.attachment-info{overflow:hidden;min-height:60px;margin-bottom:16px;line-height:18px;color:#666;border-bottom:1px solid #ddd;padding-bottom:11px}.attachment-info .filename{font-weight:700;color:#464646;word-wrap:break-word}.attachment-info .thumbnail{position:relative;float:right;max-width:120px;max-height:120px;margin-top:5px;margin-left:10px;margin-bottom:5px}.uploading .attachment-info .thumbnail{width:120px;height:80px;-webkit-box-shadow:inset 0 0 15px rgba(0,0,0,.1);box-shadow:inset 0 0 15px rgba(0,0,0,.1)}.uploading .attachment-info .media-progress-bar{margin-top:35px}.attachment-info .thumbnail-image:after{content:'';display:block;position:absolute;top:0;right:0;left:0;bottom:0;-webkit-box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);overflow:hidden}.attachment-info .thumbnail img{display:block;max-width:120px;max-height:120px;margin:0 auto}.attachment-info .details{float:right;font-size:12px;max-width:100%}.attachment-info .delete-attachment,.attachment-info .edit-attachment,.attachment-info .trash-attachment,.attachment-info .untrash-attachment{display:block;text-decoration:none;white-space:nowrap}.attachment-details.needs-refresh .attachment-info .edit-attachment{display:none}.attachment-info .edit-attachment{display:block}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment{display:inline;padding:0;color:#bc0b0b}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover{color:red}.attachment-display-settings{width:100%;float:right;overflow:hidden}.attachment-display-settings h4{margin:1.4em 0 .4em}.collection-settings{overflow:hidden}.collection-settings .setting input[type=checkbox]{float:right;margin-left:8px}.collection-settings .setting span{min-width:inherit}.media-modal .imgedit-wrap{position:static}.media-modal .imgedit-wait{height:auto!important;left:0;bottom:0;right:0}.media-modal .imgedit-wrap .imgedit-panel-content{padding:16px;position:absolute;top:0;left:282px;bottom:0;right:0;overflow:auto}.media-modal .imgedit-wrap .imgedit-settings{background:#f3f3f3;border-right:1px solid #ddd;padding:0 16px 16px;position:absolute;top:0;left:0;bottom:0;width:250px;overflow:auto}.media-modal .imgedit-group{background:0 0;border:none;border-bottom:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;margin:0 0 16px;padding:0 0 16px;position:relative}.media-modal .imgedit-group:last-of-type{border:none;margin:0;padding:0}.media-modal .imgedit-group-top h3{text-transform:uppercase;font-size:12px;color:#666;margin:24px 0 0}.media-modal .imgedit-group-top h3 a{text-decoration:none;color:#666}.media-modal .imgedit-help-toggle{margin-top:-2px;cursor:pointer;color:#666}.media-modal .imgedit-help-toggled span.dashicons:before{content:'\f142'}.media-modal .imgedit-group img{margin-top:5px}.media-modal .imgedit-wrap div.updated{margin:0 0 16px}.embed-url{display:block;position:relative;padding:16px;margin:0;z-index:250;background:#fff;font-size:18px}.media-frame .embed-url input{font-size:18px;padding:12px 14px;width:100%;min-width:200px;-webkit-box-shadow:inset -2px 2px 4px -2px rgba(0,0,0,.1);box-shadow:inset -2px 2px 4px -2px rgba(0,0,0,.1)}.media-frame .embed-url .spinner{position:absolute;top:32px;left:26px}.embed-link-settings,.embed-media-settings{position:absolute;top:70px;right:0;left:0;bottom:0;padding:16px 16px 32px;overflow:auto}.media-embed .embed-link-settings{overflow:visible}.embed-preview embed,.embed-preview iframe,.embed-preview img,.mejs-container video{max-width:100%;vertical-align:middle}.embed-preview a{display:inline-block}.embed-preview img{display:block;height:auto}.mejs-container:focus{outline:#5b9dd9 solid 1px;-webkit-box-shadow:0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 2px 1px rgba(30,140,190,.8)}.image-details .media-modal{right:140px;left:140px}.image-details .media-frame-content,.image-details .media-frame-router,.image-details .media-frame-title{right:0}.image-details .embed-media-settings{top:0;overflow:visible;padding:0}.image-details .embed-media-settings,.image-details .embed-media-settings div{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.image-details .column-settings{background:#f3f3f3;border-left:1px solid #ddd;min-height:100%;width:55%;position:absolute;top:0;right:0}.image-details .column-settings h3{margin:20px;padding-top:20px;border-top:1px solid #ddd}.image-details .column-image{width:45%;position:absolute;right:55%;top:0}.image-details .image{margin:20px}.image-details .image img{max-width:100%;max-height:500px}.image-details .advanced-toggle{padding:0;color:#666;text-transform:uppercase}.image-details .advanced-toggle:after{font:400 20px/1 dashicons;speak:none;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:'\f140';display:inline-block;margin-top:-2px}.image-details .advanced-visible .advanced-toggle:after{content:'\f142'}.image-details .embed-media-settings .size{margin-bottom:4px}.image-details .custom-size span{display:block}.image-details .custom-size label{display:block;float:right}.image-details .custom-size span small{color:#999;font-size:inherit}.image-details .custom-size input{width:5em}.image-details .custom-size .sep{float:right;margin:26px 6px 0}.image-details .custom-size:after{content:'';display:table;clear:both}.media-embed .thumbnail{max-width:100%;max-height:200px;position:relative;float:right}.media-embed .thumbnail img{max-height:200px;display:block}.media-embed .thumbnail:after{content:'';display:block;position:absolute;top:0;right:0;left:0;bottom:0;-webkit-box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);overflow:hidden}.media-embed .setting{width:100%;margin:10px 0;float:right;display:block;clear:both}.image-details .embed-media-settings .setting{float:none;width:auto}.image-details .actions{margin:10px 0}.image-details .hidden{display:none}.media-embed .setting input[type=text],.media-embed .setting textarea{display:block;width:100%;max-width:400px;margin:1px 0}.image-details .embed-media-settings .setting input[type=text],.image-details .embed-media-settings .setting textarea{max-width:inherit;width:70%}.image-details .embed-media-settings .custom-size,.image-details .embed-media-settings .link-target,.image-details .embed-media-settings .setting input.link-to-custom{margin-right:27%;width:70%}.image-details .embed-media-settings .link-target{margin-top:24px}.media-embed .setting input.hidden,.media-embed .setting textarea.hidden{display:none}.media-embed .setting span{display:block;width:200px;font-size:13px;line-height:24px;color:#666}.image-details .embed-media-settings .setting span{float:right;width:25%;text-align:left;margin:8px 1% 0;line-height:1.1}.media-embed .setting .button-group{margin:2px 0}.media-embed-sidebar{position:absolute;top:0;right:440px}.advanced-section,.link-settings{margin-top:10px}.wp-editor-wrap .uploader-editor{background:rgba(150,150,150,.9);position:absolute;top:0;right:0;width:100%;height:100%;z-index:99998;display:none;text-align:center}.wp-editor-wrap .uploader-editor-content{border:1px dashed #fff;position:absolute;top:10px;right:10px;left:10px;bottom:10px}.wp-editor-wrap .uploader-editor .uploader-editor-title{position:absolute;top:50%;right:0;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-size:3em;line-height:1.3;font-weight:700;color:#fff;padding:0;margin:0;display:none}.wp-editor-wrap .uploader-editor.droppable{background:rgba(0,86,132,.9)}.wp-editor-wrap .uploader-editor.droppable .uploader-editor-title{display:block}.ie7 .media-frame .attachments-browser{position:static}.ie7 .media-frame .embed-url input{margin-top:4px;width:90%}.ie7 .compat-item{width:99%}.ie7 .attachment-display-settings{width:auto}.ie7 .attachment-preview,.ie7 .attachment-preview .thumbnail{width:120px;height:120px}.ie7 .media-frame .attachment .describe{width:102px}.ie7 .media-sidebar .setting select{max-width:55%}.ie7 .media-sidebar .setting input[type=tel],.ie7 .media-sidebar .setting input[type=text],.ie7 .media-sidebar .setting input[type=password],.ie7 .media-sidebar .setting input[type=number],.ie7 .media-sidebar .setting input[type=search],.ie7 .media-sidebar .setting input[type=email],.ie7 .media-sidebar .setting input[type=url],.ie7 .media-sidebar .setting textarea{width:55%}.ie7 .media-sidebar .setting .link-to-custom{float:right}.rtl .media-frame,.rtl .media-frame .search,.rtl .media-frame input[type=tel],.rtl .media-frame input[type=text],.rtl .media-frame input[type=password],.rtl .media-frame input[type=number],.rtl .media-frame input[type=search],.rtl .media-frame input[type=email],.rtl .media-frame input[type=url],.rtl .media-frame select,.rtl .media-frame textarea,.rtl .media-modal{font-family:Tahoma,sans-serif}:lang(he-il) .rtl .media-frame,:lang(he-il) .rtl .media-frame .search,:lang(he-il) .rtl .media-frame input[type=text],:lang(he-il) .rtl .media-frame input[type=password],:lang(he-il) .rtl .media-frame input[type=number],:lang(he-il) .rtl .media-frame input[type=search],:lang(he-il) .rtl .media-frame input[type=email],:lang(he-il) .rtl .media-frame input[type=url],:lang(he-il) .rtl .media-frame select,:lang(he-il) .rtl .media-frame textarea,:lang(he-il) .rtl .media-modal{font-family:Arial,sans-serif}@media only screen and (max-width:900px){.media-frame:not(.hide-menu) .media-frame-content,.media-frame:not(.hide-menu) .media-frame-router,.media-frame:not(.hide-menu) .media-frame-title,.media-frame:not(.hide-menu) .media-frame-toolbar{right:0}.media-frame:not(.hide-menu) .media-frame-menu{position:static;width:0}.media-frame:not(.hide-menu) .media-menu{width:auto;max-width:80%;overflow:auto;z-index:2000;top:50px;right:-300px;left:auto;bottom:auto;padding:5px 0;border:1px solid #ccc}.media-frame:not(.hide-menu) .media-menu.visible{right:0}.media-frame:not(.hide-menu) .media-menu>a{padding:12px 16px;font-size:16px}.media-frame:not(.hide-menu) .media-menu>a.active{display:none}.media-frame:not(.hide-menu) .media-menu .separator{margin:5px 10px}.media-frame:not(.hide-menu) .media-frame-title{right:0;color:#21759b}.media-frame:not(.hide-menu) .media-frame-title .dashicons{display:inline-block;line-height:50px}.media-frame:not(.hide-menu) .media-frame-title h1{line-height:3;font-size:18px;float:right;cursor:pointer}.media-sidebar{width:230px}.attachments-browser .attachments,.attachments-browser .media-toolbar,.attachments-browser .uploader-inline{left:262px}.attachment-details .setting,.media-sidebar .setting{margin:6px 0}.attachment-details .setting input,.attachment-details .setting span,.attachment-details .setting textarea,.compat-item label span,.media-sidebar .setting input,.media-sidebar .setting span,.media-sidebar .setting textarea{float:none}.attachment-details .setting span,.compat-item label span,.media-sidebar .setting span{text-align:inherit;min-height:16px;margin:0;padding:8px 2px 0}.attachment-details .setting .value,.media-sidebar .setting .value{float:none;width:auto}.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=password],.attachment-details .setting input[type=number],.attachment-details .setting input[type=search],.attachment-details .setting input[type=email],.attachment-details .setting input[type=url],.attachment-details .setting select,.attachment-details .setting textarea,.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=url],.media-sidebar .setting select,.media-sidebar .setting textarea{float:none;width:98%;max-width:none;height:auto}.attachment-details .setting select.columns,.media-sidebar .setting select.columns{width:auto}.media-frame .search,.media-frame input,.media-frame textarea{padding:3px 6px}.image-details .column-image{width:30%;right:70%}.image-details .column-settings{width:70%}.image-details .media-modal{right:30px;left:30px}.image-details .embed-media-settings .setting{margin:20px}.image-details .embed-media-settings .setting span{float:none;text-align:right;width:100%;margin-bottom:4px}.image-details .embed-media-settings .setting input.link-to-custom,.image-details .embed-media-settings .setting input[type=text],.image-details .embed-media-settings .setting textarea{width:100%;margin-right:0}.image-details .embed-media-settings .custom-size{margin-right:20px}.collection-settings .setting input[type=checkbox]{margin-top:0}.media-selection{min-width:120px}.media-selection:after{background:0 0}.media-selection .attachments{display:none}.media-modal .attachments-browser .media-toolbar .search{max-width:100%;height:auto;float:left}.media-modal .attachments-browser .media-toolbar .attachment-filters{height:auto}.media-modal .attachments-browser .media-toolbar .spinner{margin:14px 2px 0}.media-frame input[type=text],.media-frame input[type=password],.media-frame input[type=number],.media-frame input[type=search],.media-frame input[type=email],.media-frame input[type=url],.media-frame select,.media-frame textarea{font-size:16px}}@media only screen and (max-width:640px),screen and (max-height:400px){.image-details .media-modal,.media-modal{position:fixed;top:0;right:0;left:0;bottom:0}.media-modal-backdrop{position:fixed}.media-sidebar{z-index:1900;max-width:70%;bottom:120%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding-bottom:0}.media-sidebar.visible{bottom:0}.attachments-browser .attachments,.attachments-browser .media-toolbar,.attachments-browser .uploader-inline{left:0}.image-details .media-frame-title{display:block;top:0;font-size:14px}.image-details .column-image,.image-details .column-settings{width:100%;position:relative;right:0}.image-details .column-settings{padding:4px 0}.media-frame-content .media-toolbar .instructions{display:none}}@media screen and (max-height:400px){.media-menu{padding:0}.media-frame-router{top:44px}.media-frame-content{top:78px}.attachments-browser .attachments{top:40px}.embed-link-settings{overflow:visible}}@media only screen and (max-width:480px){.media-modal-close{top:-5px}.media-modal .media-frame-title{height:40px}.wp-core-ui.wp-customizer .media-button{margin-top:13px}.media-frame:not(.hide-menu) .media-frame-title h1,.media-modal .media-frame-title h1{font-size:18px;line-height:40px}.media-frame:not(.hide-menu) .media-frame-title .dashicons{line-height:40px}.media-frame-router,.media-frame:not(.hide-menu) .media-menu{top:40px}.media-frame-content{top:74px}.media-frame.hide-router .media-frame-content{top:40px}}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.media-modal-icon{background-image:url(../images/uploader-icons-2x.png);-webkit-background-size:134px 15px;background-size:134px 15px}.media-frame .spinner{background-image:url(../images/spinner-2x.gif)}}.media-frame-content[data-columns="1"] .attachment{width:100%}.media-frame-content[data-columns="2"] .attachment{width:50%}.media-frame-content[data-columns="3"] .attachment{width:33.33%}.media-frame-content[data-columns="4"] .attachment{width:25%}.media-frame-content[data-columns="5"] .attachment{width:20%}.media-frame-content[data-columns="6"] .attachment{width:16.66%}.media-frame-content[data-columns="7"] .attachment{width:14.28%}.media-frame-content[data-columns="8"] .attachment{width:12.5%}.media-frame-content[data-columns="9"] .attachment{width:11.11%}.media-frame-content[data-columns="10"] .attachment{width:10%}.media-frame-content[data-columns="11"] .attachment{width:9.09%}.media-frame-content[data-columns="12"] .attachment{width:8.33%} \ No newline at end of file diff --git a/wp-includes/css/media-views.css b/wp-includes/css/media-views.css deleted file mode 100644 index 2d4aba7453..0000000000 --- a/wp-includes/css/media-views.css +++ /dev/null @@ -1,2581 +0,0 @@ -/** - * Base Styles - */ -.media-modal * { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} - -.media-frame input, -.media-frame select, -.media-frame textarea { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.media-modal, -.media-frame { - font-family: "Open Sans", sans-serif; - font-size: 12px; - -webkit-overflow-scrolling: touch; -} - -.media-frame input, -.media-frame textarea { - padding: 6px 8px; -} - -.media-frame select, -.wp-admin .media-frame select { - line-height: 28px; - margin-top: 3px; -} - -.media-frame a { - border-bottom: none; - color: #21759b; -} - -.media-frame a:hover { - color: #d54e21; -} - -.media-frame a.button { - color: #32373c; -} - -.media-frame a.button:hover { - color: #23282d; -} - -.media-frame a.button-primary, -.media-frame a.button-primary:hover { - color: #fff; -} - -.media-frame input[type="text"], -.media-frame input[type="password"], -.media-frame input[type="number"], -.media-frame input[type="search"], -.media-frame input[type="email"], -.media-frame input[type="url"], -.media-frame textarea, -.media-frame select { - font-family: "Open Sans", sans-serif; - font-size: 12px; - border-width: 1px; - border-style: solid; - border-color: #dfdfdf; -} - -.media-frame input[type="text"]:focus, -.media-frame input[type="password"]:focus, -.media-frame input[type="number"]:focus, -.media-frame input[type="search"]:focus, -.media-frame input[type="email"]:focus, -.media-frame input[type="url"]:focus, -.media-frame textarea:focus, -.media-frame select:focus { - border-color: #5b9dd9; -} - -.media-frame select { - height: 24px; - padding: 2px; -} - -.media-frame input:disabled, -.media-frame textarea:disabled, -.media-frame input[readonly], -.media-frame textarea[readonly] { - background-color: #eee; -} - -.media-frame input[type="search"] { - -webkit-appearance: textfield; -} - -.media-frame :-moz-placeholder { - color: #a9a9a9; -} - -.media-frame .hidden { - display: none; -} - -/*! - * jQuery UI Draggable/Sortable 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ -.ui-draggable-handle, -.ui-sortable-handle { - -ms-touch-action: none; - touch-action: none; -} - -/** - * Modal - */ -.media-modal { - position: fixed; - top: 30px; - left: 30px; - right: 30px; - bottom: 30px; - z-index: 160000; -} - -.wp-customizer .media-modal { - z-index: 560000; -} - -.media-modal-backdrop { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - min-height: 360px; - background: #000; - opacity: 0.7; - z-index: 159900; -} - -.wp-customizer .media-modal-backdrop { - z-index: 559900; -} - -.media-modal-close { - position: absolute; - top: 0; - right: 0; - width: 50px; - height: 50px; - padding: 0; - z-index: 1000; - -webkit-transition: color .1s ease-in-out, background .1s ease-in-out; - transition: color .1s ease-in-out, background .1s ease-in-out; -} - -.media-modal-close:active { - -webkit-box-shadow: none; - box-shadow: none; -} - -.media-modal-close span.media-modal-icon { - background-image: none; -} - -.media-modal-close .media-modal-icon:before { - content: '\f158'; - font: normal 20px/1 'dashicons'; - speak: none; - vertical-align: middle; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - color: #666; -} - -.media-modal-close:hover .media-modal-icon:before { - color: #00a0d2; -} - -.media-modal-close:active { - outline: 0; -} - -.media-modal-content { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - overflow: auto; - min-height: 300px; - -webkit-box-shadow: 0 5px 15px rgba(0,0,0,0.7); - box-shadow: 0 5px 15px rgba(0,0,0,0.7); - background: #fcfcfc; - -webkit-font-smoothing: subpixel-antialiased; -} - -/* higher specificity */ -.wp-core-ui .media-modal-icon { - background-image: url(../images/uploader-icons.png); - background-repeat: no-repeat; -} - -/** - * Toolbar - */ -.media-toolbar { - position: absolute; - top: 0; - left: 0; - right: 0; - z-index: 100; - height: 60px; - padding: 0 16px; - border: 0 solid #dfdfdf; - overflow: hidden; -} - -.media-toolbar-primary { - float: right; - height: 100%; -} - -.media-toolbar-secondary { - float: left; - height: 100%; -} - -.media-toolbar-primary > .media-button, -.media-toolbar-primary > .media-button-group { - margin-left: 10px; - float: left; - margin-top: 15px; -} - -.media-toolbar-secondary > .media-button, -.media-toolbar-secondary > .media-button-group { - margin-right: 10px; - margin-top: 15px; -} - -/** - * Sidebar - */ -.media-sidebar { - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 267px; - padding: 0 16px 24px; - z-index: 75; - background: #f3f3f3; - border-left: 1px solid #ddd; - overflow: auto; - -webkit-overflow-scrolling: touch; -} - -.hide-toolbar .media-sidebar { - bottom: 0; -} - -.media-sidebar .sidebar-title { - font-size: 20px; - margin: 0; - padding: 12px 10px 10px; - line-height: 28px; -} - -.media-sidebar .sidebar-content { - padding: 0 10px; - margin-bottom: 130px; -} - -.media-sidebar .search { - display: block; - width: 100%; -} - -.media-sidebar h3, -.image-details h3 { - position: relative; - font-weight: bold; - text-transform: uppercase; - font-size: 12px; - color: #666; - margin: 24px 0 8px; -} - -.media-sidebar .setting, -.attachment-details .setting { - display: block; - float: left; - width: 100%; - margin: 1px 0; -} - -.media-sidebar .setting label, -.attachment-details .setting label { - display: block; -} - -.media-sidebar .setting .link-to-custom, -.attachment-details .setting .link-to-custom { - margin: 3px 2px 0; -} - -.media-sidebar .setting span, -.attachment-details .setting span { - min-width: 30%; - margin-right: 4%; - font-size: 12px; - text-align: right; - word-wrap: break-word; -} - -.media-sidebar .setting .name { - max-width: 80px; -} - -.media-sidebar .setting select, -.attachment-details .setting select { - max-width: 65%; -} - -.media-sidebar .setting input[type="checkbox"], -.media-sidebar .field input[type="checkbox"], -.media-sidebar .setting input[type="radio"], -.media-sidebar .field input[type="radio"], -.attachment-details .setting input[type="checkbox"], -.attachment-details .field input[type="checkbox"], -.attachment-details .setting input[type="radio"], -.attachment-details .field input[type="radio"] { - float: none; - margin: 8px 3px 0; - padding: 0; -} - -.media-sidebar .setting span, -.attachment-details .setting span, -.compat-item label span { - float: left; - min-height: 22px; - padding-top: 8px; - line-height: 16px; - font-weight: normal; - color: #666; -} - -.compat-item label span { - text-align: right; -} - -.media-sidebar .setting input[type="text"], -.media-sidebar .setting input[type="password"], -.media-sidebar .setting input[type="email"], -.media-sidebar .setting input[type="number"], -.media-sidebar .setting input[type="search"], -.media-sidebar .setting input[type="tel"], -.media-sidebar .setting input[type="url"], -.media-sidebar .setting textarea, -.media-sidebar .setting .value, -.attachment-details .setting input[type="text"], -.attachment-details .setting input[type="password"], -.attachment-details .setting input[type="email"], -.attachment-details .setting input[type="number"], -.attachment-details .setting input[type="search"], -.attachment-details .setting input[type="tel"], -.attachment-details .setting input[type="url"], -.attachment-details .setting textarea, -.attachment-details .setting .value { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin: 1px; - width: 65%; - float: right; -} - -.media-sidebar .setting .value, -.attachment-details .setting .value { - margin: 0 1px; - text-align: left; -} - -.media-sidebar .setting textarea, -.attachment-details .setting textarea, -.compat-item .field textarea { - height: 62px; - resize: vertical; -} - -.media-sidebar select, -.attachment-details select { - margin-top: 3px; -} - -.compat-item { - float: left; - width: 100%; - overflow: hidden; -} - -.compat-item table { - width: 100%; - table-layout: fixed; - border-spacing: 0; - border: 0; -} - -.compat-item tr { - padding: 2px 0; - display: block; - overflow: hidden; -} - -.compat-item .label, -.compat-item .field { - display: block; - margin: 0; - padding: 0; -} - -.compat-item .label { - min-width: 30%; - margin-right: 4%; - float: left; - text-align: right; -} - -.compat-item .label span { - display: block; - width: 100%; -} - -.compat-item .field { - float: right; - width: 65%; - margin: 1px; -} - -.compat-item .field input[type="text"], -.compat-item .field input[type="password"], -.compat-item .field input[type="email"], -.compat-item .field input[type="number"], -.compat-item .field input[type="search"], -.compat-item .field input[type="tel"], -.compat-item .field input[type="url"], -.compat-item .field textarea { - width: 100%; - margin: 0; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.sidebar-for-errors .attachment-details, -.sidebar-for-errors .compat-item, -.sidebar-for-errors .media-sidebar .media-progress-bar, -.sidebar-for-errors .upload-details { - display: none !important; -} - -/** - * Menu - */ -.media-menu { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - margin: 0; - padding: 10px 0; - background: #f3f3f3; - border-right-width: 1px; - border-right-style: solid; - border-right-color: #ccc; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.media-menu > a { - display: block; - position: relative; - padding: 8px 20px; - margin: 0; - line-height: 18px; - font-size: 14px; - color: #0073aa; - text-decoration: none; -} - -.media-menu > a:hover { - color: #21759B; - background: rgba( 0, 0, 0, 0.04 ); -} - -.media-menu > a:active { - outline: none; -} - -.media-menu .active, -.media-menu .active:hover { - color: #23282d; - font-weight: bold; -} - -.media-menu .separator { - height: 0; - margin: 12px 20px; - padding: 0; - border-top: 1px solid #ddd; -} - -/** - * Menu - */ -.media-router { - position: relative; - padding: 0 6px; - margin: 0; - clear: both; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.media-router a { - -webkit-transition: none; - transition: none; -} - -.media-router > a { - position: relative; - float: left; - padding: 8px 10px 9px; - margin: 0; - height: 18px; - line-height: 18px; - font-size: 14px; - text-decoration: none; -} - -.media-router > a:last-child { - border-right: 0; -} - -.media-router > a:active { - outline: none; -} - -.media-router .active, -.media-router .active:hover { - color: #32373c; -} - -.media-router .active, -.media-router > a.active:last-child { - margin: -1px -1px 0; - background: #fff; - border: 1px solid #ddd; - border-bottom: none; -} - -.media-router .active:after { - display: none; -} - -/** - * Frame - */ -.media-frame { - overflow: hidden; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; -} - -.media-frame-menu { - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 200px; - z-index: 150; -} - -.media-frame-title { - position: absolute; - top: 0; - left: 200px; - right: 0; - height: 50px; - z-index: 200; -} - -.media-frame-router { - position: absolute; - top: 50px; - left: 200px; - right: 0; - height: 36px; - z-index: 200; -} - -.media-frame-content { - position: absolute; - top: 84px; - left: 200px; - right: 0; - bottom: 61px; - height: auto; - width: auto; - margin: 0; - overflow: auto; - background: #fff; - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; -} - -.media-frame-toolbar { - position: absolute; - left: 200px; - right: 0; - bottom: 0; - height: 60px; - z-index: 100; -} - -.media-frame.hide-menu .media-frame-title, -.media-frame.hide-menu .media-frame-router, -.media-frame.hide-menu .media-frame-toolbar, -.media-frame.hide-menu .media-frame-content { - left: 0; -} - -.media-frame.hide-menu .media-frame-menu { - left: -200px; -} - -.media-frame.hide-toolbar .media-frame-content { - bottom: 0; -} - -.media-frame.hide-toolbar .media-frame-toolbar { - bottom: -61px; -} - -.media-frame.hide-router .media-frame-content { - top: 50px; -} - -.media-frame.hide-router .media-frame-router { - display: none; -} - -.media-frame.hide-router .media-frame-title { - border-bottom: 1px solid #dfdfdf; - -webkit-box-shadow: 0 4px 4px -4px rgba( 0, 0, 0, 0.1 ); - box-shadow: 0 4px 4px -4px rgba( 0, 0, 0, 0.1 ); -} - -.media-frame-title .dashicons { - display: none; -} - -.media-frame-title h1 { - padding: 0 16px; - font-size: 22px; - line-height: 50px; - margin: 0; -} - -.media-frame-title .suggested-dimensions { - font-size: 14px; - float: right; - margin-right: 20px; -} - -.media-frame-content .crop-content { - height: 100%; -} - -.wp-customizer:not(.mobile) .media-frame-content .crop-content.site-icon { - margin-right: 300px; -} - -.media-frame-content .crop-content .crop-image { - display: block; - margin: auto; - max-width: 100%; - max-height: 100%; -} - -.media-frame-content .crop-content .upload-errors -{ - position: absolute; - width: 300px; - top: 50%; - left: 50%; - margin-left: -150px; - margin-right: -150px; - z-index: 600000; -} - -/** - * Iframes - */ -.media-frame .media-iframe { - overflow: hidden; -} - -.media-frame .media-iframe, -.media-frame .media-iframe iframe { - height: 100%; - width: 100%; - border: 0; -} - -/** - * Attachment Browser Filters - */ -.media-frame select.attachment-filters { - margin-top: 11px; - margin-right: 2%; - max-width: 42%; - max-width: -webkit-calc(48% - 12px); - max-width: calc(48% - 12px); -} - -.media-frame select.attachment-filters:last-of-type { - margin-right: 0; -} - -/** - * Search - */ -.media-frame .search { - margin-top: 11px; - padding: 4px; - font-size: 13px; - color: #464646; - font-family: "Open Sans", sans-serif; - -webkit-appearance: none; -} - -.media-toolbar-primary .search { - max-width: 100%; -} - -/** - * Attachments - */ -.wp-core-ui .attachments { - margin: 0; - -webkit-overflow-scrolling: touch; -} - -/** - * Attachment - */ -.wp-core-ui .attachment { - position: relative; - float: left; - padding: 8px; - margin: 0; - color: #464646; - cursor: pointer; - list-style: none; - text-align: center; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - width: 25%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.wp-core-ui .attachment:focus, -.wp-core-ui .selected.attachment:focus, -.wp-core-ui .attachment.details:focus { - -webkit-box-shadow: - inset 0 0 2px 3px #fff, - inset 0 0 0 7px #5b9dd9; - box-shadow: - inset 0 0 2px 3px #fff, - inset 0 0 0 7px #5b9dd9; - outline: none; -} - -.wp-core-ui .selected.attachment { - -webkit-box-shadow: - inset 0 0 0 5px #fff, - inset 0 0 0 7px #ccc; - box-shadow: - inset 0 0 0 5px #fff, - inset 0 0 0 7px #ccc; -} - -.wp-core-ui .attachment.details { - -webkit-box-shadow: - inset 0 0 0 3px #fff, - inset 0 0 0 7px #1e8cbe; - box-shadow: - inset 0 0 0 3px #fff, - inset 0 0 0 7px #1e8cbe; -} - -.wp-core-ui .attachment-preview { - position: relative; - -webkit-box-shadow: - inset 0 0 15px rgba( 0, 0, 0, 0.1 ), - inset 0 0 0 1px rgba( 0, 0, 0, 0.05 ); - box-shadow: - inset 0 0 15px rgba( 0, 0, 0, 0.1 ), - inset 0 0 0 1px rgba( 0, 0, 0, 0.05 ); - background: #eee; - cursor: pointer; -} - -.wp-core-ui .attachment-preview:before { - content: ''; - display: block; - padding-top: 100%; -} - -.wp-core-ui .attachment .icon { - margin: 0 auto; - overflow: hidden; -} - -.wp-core-ui .attachment .thumbnail { - overflow: hidden; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - opacity: 1; - -webkit-transition: opacity .1s; - transition: opacity .1s; -} - -.wp-core-ui .attachment .portrait img { - max-width: 100%; -} - -.wp-core-ui .attachment .landscape img { - max-height: 100%; -} - -.wp-core-ui .attachment .thumbnail:after { - content: ''; - display: block; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - -webkit-box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.1 ); - overflow: hidden; -} - -.wp-core-ui .attachment .thumbnail img { - top: 0; - left: 0; -} - -.wp-core-ui .attachment .thumbnail .centered { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - -webkit-transform: translate( 50%, 50% ); - -ms-transform: translate(50%,50%); /* Fails with spaces?? Weird! */ - transform: translate( 50%, 50% ); -} - -.wp-core-ui .attachment .thumbnail .centered img { - -webkit-transform: translate( -50%, -50% ); - -ms-transform: translate(-50%,-50%); - transform: translate( -50%, -50% ); -} - -.wp-core-ui .attachments-browser .attachment .thumbnail .centered img.icon { - -webkit-transform: translate( -50%, -70% ); - -ms-transform: translate(-50%,-70%); - transform: translate( -50%, -70% ); -} - -.ie8 .wp-core-ui .attachment img.icon { - top: 20%; - position: relative; -} - -.wp-core-ui .attachment .filename { - position: absolute; - left: 0; - right: 0; - bottom: 0; - overflow: hidden; - max-height: 100%; - word-wrap: break-word; - text-align: center; - font-weight: bold; - background: rgba( 255, 255, 255, 0.8 ); - -webkit-box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15 ); - box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15 ); -} - -.wp-core-ui .attachment .filename div { - padding: 5px 10px; -} - -.wp-core-ui .attachment .thumbnail img { - position: absolute; -} - -.wp-core-ui .attachment-close { - display: block; - position: absolute; - top: 5px; - right: 5px; - height: 22px; - width: 22px; - padding: 0; - background-color: #fff; - background-position: -96px 4px; - -webkit-border-radius: 3px; - border-radius: 3px; - -webkit-box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.3 ); -} - -.wp-core-ui .attachment-close:hover, -.wp-core-ui .attachment-close:focus { - background-position: -36px 4px; -} - -.wp-core-ui .attachment .check { - display: none; - height: 24px; - width: 24px; - padding: 0; - position: absolute; - z-index: 10; - top: 0; - right: 0; - outline: none; - background: #eee; - -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba( 0, 0, 0, 0.15 ); - box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba( 0, 0, 0, 0.15 ); -} - -.wp-core-ui .attachment .check .media-modal-icon { - display: block; - background-position: -1px 0; - height: 15px; - width: 15px; - margin: 5px; -} - -.wp-core-ui .attachment .check:hover .media-modal-icon { - background-position: -40px 0; -} - -.wp-core-ui .attachment.selected .check { - display: block; -} - -.wp-core-ui .attachment.details .check, -.wp-core-ui .attachment.selected .check:focus, -.wp-core-ui .media-frame.mode-grid .attachment.selected .check { - background-color: #1e8cbe; - -webkit-box-shadow: - 0 0 0 1px #fff, - 0 0 0 2px #1e8cbe; - box-shadow: - 0 0 0 1px #fff, - 0 0 0 2px #1e8cbe; -} - -.wp-core-ui .attachment.details .check .media-modal-icon, -.wp-core-ui .media-frame.mode-grid .attachment.selected .check .media-modal-icon { - background-position: -21px 0; -} - -.wp-core-ui .attachment.details .check:hover .media-modal-icon, -.wp-core-ui .attachment.selected .check:focus .media-modal-icon, -.wp-core-ui .media-frame.mode-grid .attachment.selected .check:hover .media-modal-icon { - background-position: -60px 0; -} - -.wp-core-ui .media-frame .attachment .describe { - position: relative; - display: block; - width: 100%; - margin: 0; - padding: 8px; - font-size: 12px; - -webkit-border-radius: 0; - border-radius: 0; -} - -/** - * Attachments Browser - */ -.media-frame .attachments-browser { - position: relative; - width: 100%; - height: 100%; - overflow: hidden; -} - -.attachments-browser .media-toolbar { - right: 300px; - height: 50px; -} - -.attachments-browser.hide-sidebar .media-toolbar { - right: 0; -} - -.attachments-browser .media-toolbar-primary > .media-button, -.attachments-browser .media-toolbar-primary > .media-button-group, -.attachments-browser .media-toolbar-secondary > .media-button, -.attachments-browser .media-toolbar-secondary > .media-button-group { - margin: 11px 0; -} - -.attachments-browser .attachments { - padding: 2px 8px 8px; -} - -.attachments-browser .attachments, -.attachments-browser .uploader-inline { - position: absolute; - top: 50px; - left: 0; - right: 300px; - bottom: 0; - overflow: auto; - outline: none; -} - -.attachments-browser .uploader-inline.hidden { - display: none; -} - -.attachments-browser .media-toolbar-primary { - max-width: 33%; -} - -.attachments-browser .media-toolbar-secondary { - max-width: 66%; -} - -.uploader-inline .close { - background-color: transparent; - border: 0; - cursor: pointer; - height: 48px; - position: absolute; - right: 0; - text-align: center; - top: 0; - width: 50px; - z-index: 1; -} - -.uploader-inline .close:before { - font: normal 30px/50px 'dashicons' !important; - color: #777; - display: inline-block; - content: '\f335'; - font-weight: 300; -} - -.attachments-browser.hide-sidebar .attachments, -.attachments-browser.hide-sidebar .uploader-inline { - right: 0; - margin-right: 0; -} - -.attachments-browser .instructions { - display: inline-block; - margin-top: 16px; - line-height: 18px; - font-size: 13px; - color: #666; - margin-right: 0.5em; -} - -.attachments-browser .no-media { - padding: 2em 0 0 2em; -} - -/** - * Progress Bar - */ -.media-progress-bar { - position: relative; - height: 10px; - width: 70%; - margin: 10px auto; - -webkit-border-radius: 10px; - border-radius: 10px; - background: #dfdfdf; - background: rgba( 0, 0, 0, 0.1 ); -} - -.media-progress-bar div { - height: 10px; - min-width: 20px; - width: 0; - background: #1e8cbe; - -webkit-border-radius: 10px; - border-radius: 10px; - -webkit-transition: width 300ms; - transition: width 300ms; -} - -.media-uploader-status .media-progress-bar { - display: none; - width: 100%; -} - -.uploading.media-uploader-status .media-progress-bar { - display: block; -} - -.attachment-preview .media-progress-bar { - position: absolute; - top: 50%; - left: 15%; - width: 70%; - margin: -5px 0 0 0; -} - -.media-uploader-status { - position: relative; - margin: 0 auto; - padding-bottom: 10px; - max-width: 400px; -} - -.uploader-inline .media-uploader-status h3 { - display: none; -} - -.media-uploader-status .upload-details { - display: none; - font-size: 12px; - color: #666; -} - -.uploading.media-uploader-status .upload-details { - display: block; -} - -.media-uploader-status .upload-detail-separator { - padding: 0 4px; -} - -.media-uploader-status .upload-count { - color: #464646; -} - -.media-uploader-status .upload-dismiss-errors, -.media-uploader-status .upload-errors { - display: none; -} - -.errors.media-uploader-status .upload-dismiss-errors, -.errors.media-uploader-status .upload-errors { - display: block; -} - -.media-uploader-status .upload-dismiss-errors { - text-decoration: none; -} - -.media-sidebar .media-uploader-status .upload-dismiss-errors { - position: absolute; - top: 0; - right: 0; -} - -.upload-errors .upload-error { - padding: 12px; - margin-bottom: 12px; - background: #fff; - border-left: 4px solid #dd3d36; - -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); -} - -.upload-errors .upload-error-filename { - font-weight: bold; -} - -.upload-errors .upload-error-message { - display: block; - padding-top: 8px; - word-wrap: break-word; -} - -.uploader-window { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: rgba( 0, 86, 132, 0.9 ); - z-index: 250000; - display: none; - text-align: center; - opacity: 0; - -webkit-transition: opacity 250ms; - transition: opacity 250ms; -} - -.uploader-window-content { - position: absolute; - top: 10px; - left: 10px; - right: 10px; - bottom: 10px; - border: 1px dashed #fff; -} - -.uploader-window h3 { - margin: -0.5em 0 0; - position: absolute; - top: 50%; - left: 0; - right: 0; - -webkit-transform: translateY( -50% ); - -ms-transform: translateY(-50%); - transform: translateY( -50% ); - font-size: 40px; - color: #fff; - padding: 0; -} - -.uploader-window .media-progress-bar { - margin-top: 20px; - max-width: 300px; - background: transparent; - border-color: #fff; - display: none; -} - -.uploader-window .media-progress-bar div { - background: #fff; -} - -.uploading .uploader-window .media-progress-bar { - display: block; -} - -.media-frame .uploader-inline { - margin-bottom: 20px; - padding: 0; - text-align: center; -} - -.uploader-inline-content { - position: absolute; - top: 30%; - left: 0; - right: 0; -} - -.uploader-inline-content .upload-ui { - margin: 2em 0; -} - -.uploader-inline-content .post-upload-ui { - margin-bottom: 2em; -} - -.uploader-inline .has-upload-message .upload-ui { - margin: 0 0 4em; -} - -.uploader-inline h3 { - font-size: 20px; - line-height: 28px; - font-weight: 400; - margin: 0; -} - -.uploader-inline .has-upload-message .upload-instructions { - font-size: 14px; - color: #464646; - font-weight: normal; -} - -.uploader-inline .drop-instructions { - display: none; -} - -.supports-drag-drop .uploader-inline .drop-instructions { - display: block; -} - -.uploader-inline p { - font-size: 12px; - margin: 0.5em 0; -} - -.uploader-inline .media-progress-bar { - display: none; -} - -.uploading.uploader-inline .media-progress-bar { - display: block; -} - -.uploader-inline .browser { - display: inline-block !important; -} - -/** - * Selection - */ -.media-selection { - position: absolute; - top: 0; - left: 0; - right: 350px; - height: 60px; - padding: 0 0 0 16px; - overflow: hidden; - white-space: nowrap; -} - -.media-selection .selection-info { - display: inline-block; - font-size: 12px; - height: 60px; - margin-right: 10px; - vertical-align: top; -} - -.media-selection.empty, -.media-selection.editing { - display: none; -} - -.media-selection.one .edit-selection { - display: none; -} - -.media-selection .count { - display: block; - padding-top: 12px; - font-size: 14px; - line-height: 20px; - font-weight: bold; -} - -.media-selection .button-link { - float: left; - padding: 1px 8px; - margin: 1px 8px 1px -8px; - line-height: 16px; - border-right: 1px solid #dfdfdf; - color: #21759B; -} - -.media-selection .button-link:hover, -.media-selection .button-link:focus { - background: #21759B; - color: #fff; - border-color: transparent; -} - -.media-selection .button-link:last-child { - border-right: 0; - margin-right: 0; -} - -.selection-info .clear-selection { - color: red; -} - -.selection-info .clear-selection:hover, -.selection-info .clear-selection:focus { - background: red; - color: #fff; -} - -.media-selection .selection-view { - display: inline-block; - vertical-align: top; -} - -.media-selection .attachments { - display: inline-block; - height: 48px; - margin: 6px; - padding: 0; - overflow: hidden; - vertical-align: top; -} - -.media-selection .attachment { - width: 40px; - padding: 0; - margin: 4px; -} - -.media-selection .attachment .thumbnail { - top: 0; - right: 0; - bottom: 0; - left: 0; -} - -.media-selection .attachment .icon { - width: 50%; -} - -.media-selection .attachment-preview { - -webkit-box-shadow: none; - box-shadow: none; - background: none; -} - -.wp-core-ui .media-selection .attachment:focus, -.wp-core-ui .media-selection .selected.attachment:focus, -.wp-core-ui .media-selection .attachment.details:focus { - -webkit-box-shadow: - 0 0 0 1px #fff, - 0 0 2px 3px #5b9dd9; - box-shadow: - 0 0 0 1px #fff, - 0 0 2px 3px #5b9dd9; -} - -.wp-core-ui .media-selection .selected.attachment { - -webkit-box-shadow: none; - box-shadow: none; -} - -.wp-core-ui .media-selection .attachment.details { - -webkit-box-shadow: - 0 0 0 1px #fff, - 0 0 0 3px #1e8cbe; - box-shadow: - 0 0 0 1px #fff, - 0 0 0 3px #1e8cbe; -} - -.media-selection:after { - content: ''; - display: block; - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 25px; - background-image: -webkit-gradient(linear, right top, left top, from(rgba( 255, 255, 255, 1 )), to(rgba( 255, 255, 255, 0 ))); - background-image: -webkit-linear-gradient(right, rgba( 255, 255, 255, 1 ), rgba( 255, 255, 255, 0 )); - background-image: linear-gradient(to left, rgba( 255, 255, 255, 1 ) , rgba( 255, 255, 255, 0 ) ); -} - -.media-selection .attachment .filename { - display: none; -} - -/** - * Spinner - */ -.media-frame .spinner { - background: url(../images/spinner.gif) no-repeat; - -webkit-background-size: 20px 20px; - background-size: 20px 20px; - float: right; - display: inline-block; - visibility: hidden; - opacity: 0.7; - filter: alpha(opacity=70); - width: 20px; - height: 20px; - margin: 0; - vertical-align: middle; -} - -.media-frame .spinner.is-active { - visibility: visible; -} - -.media-toolbar .spinner { - margin-top: 14px; -} - -/** - * Attachment Details - */ -.attachment-details { - position: relative; - overflow: auto; -} - -.attachment-details .settings-save-status { - float: right; - text-transform: none; - z-index: 10; -} - -.attachment-details .settings-save-status .spinner { - margin-left: 5px; -} - -.attachment-details .settings-save-status .saved { - float: right; - display: none; -} - -.attachment-details.save-waiting .settings-save-status .spinner { - visibility: visible; -} - -.attachment-details.save-complete .settings-save-status .saved { - display: block; -} - -.attachment-info { - overflow: hidden; - min-height: 60px; - margin-bottom: 16px; - line-height: 18px; - color: #666; - border-bottom: 1px solid #ddd; - padding-bottom: 11px; -} - -.attachment-info .filename { - font-weight: bold; - color: #464646; - word-wrap: break-word; -} - -.attachment-info .thumbnail { - position: relative; - float: left; - max-width: 120px; - max-height: 120px; - margin-top: 5px; - margin-right: 10px; - margin-bottom: 5px; -} - -.uploading .attachment-info .thumbnail { - width: 120px; - height: 80px; - -webkit-box-shadow: inset 0 0 15px rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 0 15px rgba( 0, 0, 0, 0.1 ); -} - -.uploading .attachment-info .media-progress-bar { - margin-top: 35px; -} - -.attachment-info .thumbnail-image:after { - content: ''; - display: block; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - -webkit-box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15 ); - box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15 ); - overflow: hidden; -} - -.attachment-info .thumbnail img { - display: block; - max-width: 120px; - max-height: 120px; - margin: 0 auto; -} - -.attachment-info .details { - float: left; - font-size: 12px; - max-width: 100%; -} - -.attachment-info .edit-attachment, -.attachment-info .delete-attachment, -.attachment-info .trash-attachment, -.attachment-info .untrash-attachment { - display: block; - text-decoration: none; - white-space: nowrap; -} - -.attachment-details.needs-refresh .attachment-info .edit-attachment { - display: none; -} - -.attachment-info .edit-attachment { - display: block; -} - -.media-modal .delete-attachment, -.media-modal .trash-attachment, -.media-modal .untrash-attachment { - display: inline; - padding: 0; - color: #bc0b0b; -} - -.media-modal .delete-attachment:hover, -.media-modal .delete-attachment:focus, -.media-modal .trash-attachment:hover, -.media-modal .trash-attachment:focus, -.media-modal .untrash-attachment:hover, -.media-modal .untrash-attachment:focus { - color: red; -} - -/** - * Attachment Display Settings - */ -.attachment-display-settings { - width: 100%; - float: left; - overflow: hidden; -} - -.attachment-display-settings h4 { - margin: 1.4em 0 0.4em; -} - -.collection-settings { - overflow: hidden; -} - -.collection-settings .setting input[type="checkbox"] { - float: left; - margin-right: 8px; -} - -.collection-settings .setting span { - min-width: inherit; -} - -/** - * Image Editor - */ -.media-modal .imgedit-wrap { - position: static; -} - -.media-modal .imgedit-wait { - height: auto !important; - right: 0; - bottom: 0; - left: 0; -} - -.media-modal .imgedit-wrap .imgedit-panel-content { - padding: 16px; - position: absolute; - top: 0; - right: 282px; - bottom: 0; - left: 0; - overflow: auto; -} - -.media-modal .imgedit-wrap .imgedit-settings { - background: #f3f3f3; - border-left: 1px solid #ddd; - padding: 0 16px 16px; - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 250px; - overflow: auto; -} - -.media-modal .imgedit-group { - background: none; - border: none; - border-bottom: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - margin: 0; - margin-bottom: 16px; - padding: 0; - padding-bottom: 16px; - position: relative; /* RTL fix, #WP29352 */ -} - -.media-modal .imgedit-group:last-of-type { - border: none; - margin: 0; - padding: 0; -} - -.media-modal .imgedit-group-top h3 { - text-transform: uppercase; - font-size: 12px; - color: #666; - margin: 0; - margin-top: 24px; -} - -.media-modal .imgedit-group-top h3 a { - text-decoration: none; - color: #666; -} - -.media-modal .imgedit-help-toggle { - margin-top: -2px; - cursor: pointer; - color: #666; -} - -.media-modal .imgedit-help-toggled span.dashicons:before { - content: '\f142'; -} - -.media-modal .imgedit-group img { - margin-top: 5px; -} - -.media-modal .imgedit-wrap div.updated { - margin: 0; - margin-bottom: 16px; -} - - -/** - * Embed from URL and Image Details - */ -.embed-url { - display: block; - position: relative; - padding: 16px; - margin: 0; - z-index: 250; - background: #fff; - font-size: 18px; -} - -.media-frame .embed-url input { - font-size: 18px; - padding: 12px 14px; - width: 100%; - min-width: 200px; - -webkit-box-shadow: inset 2px 2px 4px -2px rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 2px 2px 4px -2px rgba( 0, 0, 0, 0.1 ); -} - -.media-frame .embed-url .spinner { - position: absolute; - top: 32px; - right: 26px; -} - -.media-frame .embed-loading .embed-url .spinner { - visibility: visible; -} - -.embed-link-settings, -.embed-media-settings { - position: absolute; - top: 70px; - left: 0; - right: 0; - bottom: 0; - padding: 16px 16px 32px; - overflow: auto; -} - -.media-embed .embed-link-settings { - /* avoid Firefox to give focus to the embed preview container parent */ - overflow: visible; -} - -.embed-preview img, -.embed-preview iframe, -.embed-preview embed, -.mejs-container video { - max-width: 100%; - vertical-align: middle; -} - -.embed-preview a { - display: inline-block; -} - -.embed-preview img { - display: block; - height: auto; -} - -.mejs-container:focus { - outline: 1px solid #5b9dd9; - -webkit-box-shadow: 0 0 2px 1px rgba(30, 140, 190, .8); - box-shadow: 0 0 2px 1px rgba(30, 140, 190, .8); -} - -.image-details .media-modal { - left: 140px; - right: 140px; -} - -.image-details .media-frame-title, -.image-details .media-frame-content, -.image-details .media-frame-router { - left: 0; -} - -.image-details .embed-media-settings { - top: 0; - overflow: visible; - padding: 0; -} - -.image-details .embed-media-settings, -.image-details .embed-media-settings div { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.image-details .column-settings { - background: #f3f3f3; - border-right: 1px solid #ddd; - min-height: 100%; - width: 55%; - position: absolute; - top: 0; - left: 0; -} - -.image-details .column-settings h3 { - margin: 20px; - padding-top: 20px; - border-top: 1px solid #ddd; -} - -.image-details .column-image { - width: 45%; - position: absolute; - left: 55%; - top: 0; -} - -.image-details .image { - margin: 20px; -} - -.image-details .image img { - max-width: 100%; - max-height: 500px; -} - -.image-details .advanced-toggle { - padding: 0; - color: #666; - text-transform: uppercase; -} - -.image-details .advanced-toggle:after { - font: normal 20px/1 'dashicons'; - speak: none; - vertical-align: top; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - content: '\f140'; - display: inline-block; - margin-top: -2px; -} - -.image-details .advanced-visible .advanced-toggle:after { - content: '\f142'; -} - -.image-details .embed-media-settings .size { - margin-bottom: 4px; -} - -.image-details .custom-size span { - display: block; -} - -.image-details .custom-size label { - display: block; - float: left; -} - -.image-details .custom-size span small { - color: #999; - font-size: inherit; -} - -.image-details .custom-size input { - width: 5em; -} - -.image-details .custom-size .sep { - float: left; - margin: 26px 6px 0 6px; -} - -.image-details .custom-size:after { - content: ''; - display: table; - clear: both; -} - -.media-embed .thumbnail { - max-width: 100%; - max-height: 200px; - position: relative; - float: left; -} - -.media-embed .thumbnail img { - max-height: 200px; - display: block; -} - -.media-embed .thumbnail:after { - content: ''; - display: block; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - -webkit-box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.1 ); - box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.1 ); - overflow: hidden; -} - -.media-embed .setting { - width: 100%; - margin: 10px 0; - float: left; - display: block; - clear: both; -} - -.image-details .embed-media-settings .setting { - float: none; - width: auto; -} - -.image-details .actions { - margin: 10px 0; -} - -.image-details .hidden { - display: none; -} - -.media-embed .setting input[type="text"], -.media-embed .setting textarea { - display: block; - width: 100%; - max-width: 400px; - margin: 1px 0; -} - -.image-details .embed-media-settings .setting input[type="text"], -.image-details .embed-media-settings .setting textarea { - max-width: inherit; - width: 70%; -} - -.image-details .embed-media-settings .setting input.link-to-custom, -.image-details .embed-media-settings .link-target, -.image-details .embed-media-settings .custom-size { - margin-left: 27%; - width: 70%; -} - -.image-details .embed-media-settings .link-target { - margin-top: 24px; -} - -.media-embed .setting input.hidden, -.media-embed .setting textarea.hidden { - display: none; -} - -.media-embed .setting span { - display: block; - width: 200px; - font-size: 13px; - line-height: 24px; - color: #666; -} - -.image-details .embed-media-settings .setting span { - float: left; - width: 25%; - text-align: right; - margin: 8px 1% 0 1%; - line-height: 1.1; -} - -.media-embed .setting .button-group { - margin: 2px 0; -} - -.media-embed-sidebar { - position: absolute; - top: 0; - left: 440px; -} - -.advanced-section, -.link-settings { - margin-top: 10px; -} - -/* Drag & drop on the editor upload */ -.wp-editor-wrap .uploader-editor { - background: rgba( 150, 150, 150, 0.9 ); - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 99998; /* under the toolbar */ - display: none; - text-align: center; -} - -.wp-editor-wrap .uploader-editor-content { - border: 1px dashed #fff; - position: absolute; - top: 10px; - left: 10px; - right: 10px; - bottom: 10px; -} - -.wp-editor-wrap .uploader-editor .uploader-editor-title { - position: absolute; - top: 50%; - left: 0; - right: 0; - -webkit-transform: translateY( -50% ); - -ms-transform: translateY(-50%); - transform: translateY( -50% ); - font-size: 3em; - line-height: 1.3; - font-weight: bold; - color: #fff; - padding: 0; - margin: 0; - display: none; -} - -.wp-editor-wrap .uploader-editor.droppable { - background: rgba( 0, 86, 132, 0.9 ); -} - -.wp-editor-wrap .uploader-editor.droppable .uploader-editor-title { - display: block; -} - -/** - * IE7 Fixes - */ -.ie7 .media-frame .attachments-browser { - position: static; -} - -.ie7 .media-frame .embed-url input { - margin-top: 4px; - width: 90%; -} - -.ie7 .compat-item { - width: 99%; -} - -.ie7 .attachment-display-settings { - width: auto; -} - -.ie7 .attachment-preview, -.ie7 .attachment-preview .thumbnail { - width: 120px; - height: 120px; -} - -.ie7 .media-frame .attachment .describe { - width: 102px; -} - -.ie7 .media-sidebar .setting select { - max-width: 55%; -} - -.ie7 .media-sidebar .setting input[type="text"], -.ie7 .media-sidebar .setting input[type="password"], -.ie7 .media-sidebar .setting input[type="email"], -.ie7 .media-sidebar .setting input[type="number"], -.ie7 .media-sidebar .setting input[type="search"], -.ie7 .media-sidebar .setting input[type="tel"], -.ie7 .media-sidebar .setting input[type="url"], -.ie7 .media-sidebar .setting textarea { - width: 55%; -} - -.ie7 .media-sidebar .setting .link-to-custom { - float: left; -} - -/** - * Localization - */ -.rtl .media-modal, -.rtl .media-frame, -.rtl .media-frame .search, -.rtl .media-frame input[type="text"], -.rtl .media-frame input[type="password"], -.rtl .media-frame input[type="number"], -.rtl .media-frame input[type="search"], -.rtl .media-frame input[type="email"], -.rtl .media-frame input[type="url"], -.rtl .media-frame input[type="tel"], -.rtl .media-frame textarea, -.rtl .media-frame select { - font-family: Tahoma, sans-serif; -} - -:lang(he-il) .rtl .media-modal, -:lang(he-il) .rtl .media-frame, -:lang(he-il) .rtl .media-frame .search, -:lang(he-il) .rtl .media-frame input[type="text"], -:lang(he-il) .rtl .media-frame input[type="password"], -:lang(he-il) .rtl .media-frame input[type="number"], -:lang(he-il) .rtl .media-frame input[type="search"], -:lang(he-il) .rtl .media-frame input[type="email"], -:lang(he-il) .rtl .media-frame input[type="url"], -:lang(he-il) .rtl .media-frame textarea, -:lang(he-il) .rtl .media-frame select { - font-family: Arial, sans-serif; -} - -/** - * Responsive layout - */ -@media only screen and (max-width: 900px) { - - /* Drop-down menu */ - .media-frame:not(.hide-menu) .media-frame-title, - .media-frame:not(.hide-menu) .media-frame-router, - .media-frame:not(.hide-menu) .media-frame-content, - .media-frame:not(.hide-menu) .media-frame-toolbar { - left: 0; - } - - .media-frame:not(.hide-menu) .media-frame-menu { - position: static; - width: 0; - } - - .media-frame:not(.hide-menu) .media-menu { - width: auto; - max-width: 80%; - overflow: auto; - z-index: 2000; - top: 50px; - left: -300px; - right: auto; - bottom: auto; - padding: 5px 0; - border: 1px solid #ccc; - } - - .media-frame:not(.hide-menu) .media-menu.visible { - left: 0; - } - - .media-frame:not(.hide-menu) .media-menu > a { - padding: 12px 16px; - font-size: 16px; - } - - .media-frame:not(.hide-menu) .media-menu > a.active { - display: none; - } - - .media-frame:not(.hide-menu) .media-menu .separator { - margin: 5px 10px; - } - - .media-frame:not(.hide-menu) .media-frame-title { - left: 0; - color: #21759b; - } - - .media-frame:not(.hide-menu) .media-frame-title .dashicons { - display: inline-block; - line-height: 50px; - } - - .media-frame:not(.hide-menu) .media-frame-title h1 { - line-height: 3; - font-size: 18px; - float: left; - cursor: pointer; - } - /* End drop-down menu */ - - .media-sidebar { - width: 230px; - } - - .attachments-browser .attachments, - .attachments-browser .uploader-inline, - .attachments-browser .media-toolbar { - right: 262px; - } - - .media-sidebar .setting, - .attachment-details .setting { - margin: 6px 0px; - } - - .media-sidebar .setting input, - .media-sidebar .setting textarea, - .media-sidebar .setting span, - .attachment-details .setting input, - .attachment-details .setting textarea, - .attachment-details .setting span, - .compat-item label span { - float: none; - } - - .media-sidebar .setting span, - .attachment-details .setting span, - .compat-item label span { - text-align: inherit; - min-height: 16px; - margin: 0; - padding: 8px 2px 0; - } - - .media-sidebar .setting .value, - .attachment-details .setting .value { - float: none; - width: auto; - } - - .media-sidebar .setting input[type="text"], - .media-sidebar .setting input[type="password"], - .media-sidebar .setting input[type="email"], - .media-sidebar .setting input[type="number"], - .media-sidebar .setting input[type="search"], - .media-sidebar .setting input[type="tel"], - .media-sidebar .setting input[type="url"], - .media-sidebar .setting textarea, - .media-sidebar .setting select, - .attachment-details .setting input[type="text"], - .attachment-details .setting input[type="password"], - .attachment-details .setting input[type="email"], - .attachment-details .setting input[type="number"], - .attachment-details .setting input[type="search"], - .attachment-details .setting input[type="tel"], - .attachment-details .setting input[type="url"], - .attachment-details .setting textarea, - .attachment-details .setting select { - float: none; - width: 98%; - max-width: none; - height: auto; - } - - .media-sidebar .setting select.columns, - .attachment-details .setting select.columns { - width: auto; - } - - .media-frame input, - .media-frame textarea, - .media-frame .search { - padding: 3px 6px; - } - - .image-details .column-image { - width: 30%; - left: 70%; - } - - .image-details .column-settings { - width: 70%; - } - - .image-details .media-modal { - left: 30px; - right: 30px; - } - - .image-details .embed-media-settings .setting { - margin: 20px; - } - - .image-details .embed-media-settings .setting span { - float: none; - text-align: left; - width: 100%; - margin-bottom: 4px; - } - - .image-details .embed-media-settings .setting input.link-to-custom, - .image-details .embed-media-settings .setting input[type="text"], - .image-details .embed-media-settings .setting textarea { - width: 100%; - margin-left: 0; - } - - .image-details .embed-media-settings .custom-size { - margin-left: 20px; - } - - .collection-settings .setting input[type="checkbox"] { - margin-top: 0; - } - - .media-selection { - min-width: 120px; - } - - .media-selection:after { - background: none; - } - - .media-selection .attachments { - display: none; - } - - .media-modal .attachments-browser .media-toolbar .search { - max-width: 100%; - height: auto; - float: right; - } - - .media-modal .attachments-browser .media-toolbar .attachment-filters { - height: auto; - } - - .media-modal .attachments-browser .media-toolbar .spinner { - margin: 14px 2px 0; - } - - /* Text inputs need to be 16px, or they force zooming on iOS */ - .media-frame input[type="text"], - .media-frame input[type="password"], - .media-frame input[type="number"], - .media-frame input[type="search"], - .media-frame input[type="email"], - .media-frame input[type="url"], - .media-frame textarea, - .media-frame select { - font-size: 16px; - } -} - -/* Responsive on portrait and landscape */ -@media only screen and (max-width: 640px), screen and (max-height: 400px) { - /* Full-bleed modal */ - .media-modal, - .image-details .media-modal { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - } - - .media-modal-backdrop { - position: fixed; - } - - .media-sidebar { - z-index: 1900; - max-width: 70%; - bottom: 120%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - padding-bottom: 0; - } - - .media-sidebar.visible { - bottom: 0; - } - - .attachments-browser .attachments, - .attachments-browser .uploader-inline, - .attachments-browser .media-toolbar { - right: 0; - } - - .image-details .media-frame-title { - display: block; - top: 0; - font-size: 14px; - } - - .image-details .column-image, - .image-details .column-settings { - width: 100%; - position: relative; - left: 0; - } - - .image-details .column-settings { - padding: 4px 0; - } - - /* Media tabs on the top */ - .media-frame-content .media-toolbar .instructions { - display: none; - } -} - -/* Landscape specific header override */ -@media screen and (max-height: 400px) { - .media-menu { - padding: 0; - } - - .media-frame-router { - top: 44px; - } - - .media-frame-content { - top: 78px; - } - - .attachments-browser .attachments { - top: 40px; - } - - /* Prevent unnecessary scrolling on title input */ - .embed-link-settings { - overflow: visible; - } -} - -@media only screen and (max-width: 480px) { - .media-modal-close { - top: -5px; - } - - .media-modal .media-frame-title { - height: 40px; - } - - .wp-core-ui.wp-customizer .media-button { - margin-top: 13px; - } - - .media-modal .media-frame-title h1, - .media-frame:not(.hide-menu) .media-frame-title h1 { - font-size: 18px; - line-height: 40px; - } - - .media-frame:not(.hide-menu) .media-frame-title .dashicons { - line-height: 40px; - } - - .media-frame-router, - .media-frame:not(.hide-menu) .media-menu { - top: 40px; - } - - .media-frame-content { - top: 74px; - } - - .media-frame.hide-router .media-frame-content { - top: 40px; - } -} - -/** - * HiDPI Displays - */ -@media print, - (-webkit-min-device-pixel-ratio: 1.25), - (min-resolution: 120dpi) { - - .media-modal-icon { - background-image: url(../images/uploader-icons-2x.png); - -webkit-background-size: 134px 15px; - background-size: 134px 15px; - } - - .media-frame .spinner { - background-image: url(../images/spinner-2x.gif); - } -} - -.media-frame-content[data-columns="1"] .attachment { - width: 100%; -} - -.media-frame-content[data-columns="2"] .attachment { - width: 50%; -} - -.media-frame-content[data-columns="3"] .attachment { - width: 33.33%; -} - -.media-frame-content[data-columns="4"] .attachment { - width: 25%; -} - -.media-frame-content[data-columns="5"] .attachment { - width: 20%; -} - -.media-frame-content[data-columns="6"] .attachment { - width: 16.66%; -} - -.media-frame-content[data-columns="7"] .attachment { - width: 14.28%; -} - -.media-frame-content[data-columns="8"] .attachment { - width: 12.5%; -} - -.media-frame-content[data-columns="9"] .attachment { - width: 11.11%; -} - -.media-frame-content[data-columns="10"] .attachment { - width: 10%; -} - -.media-frame-content[data-columns="11"] .attachment { - width: 9.09%; -} - -.media-frame-content[data-columns="12"] .attachment { - width: 8.33%; -} diff --git a/wp-includes/css/media-views.min.css b/wp-includes/css/media-views.min.css deleted file mode 100644 index b6d0b5f2f9..0000000000 --- a/wp-includes/css/media-views.min.css +++ /dev/null @@ -1,8 +0,0 @@ -.media-modal *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.media-frame input,.media-frame select,.media-frame textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.media-frame,.media-modal{font-family:"Open Sans",sans-serif;font-size:12px;-webkit-overflow-scrolling:touch}.media-frame input,.media-frame textarea{padding:6px 8px}.media-frame select,.wp-admin .media-frame select{line-height:28px;margin-top:3px}.media-frame a{border-bottom:none;color:#21759b}.media-frame a:hover{color:#d54e21}.media-frame a.button{color:#32373c}.media-frame a.button:hover{color:#23282d}.media-frame a.button-primary,.media-frame a.button-primary:hover{color:#fff}.media-frame input[type=text],.media-frame input[type=password],.media-frame input[type=number],.media-frame input[type=search],.media-frame input[type=email],.media-frame input[type=url],.media-frame select,.media-frame textarea{font-family:"Open Sans",sans-serif;font-size:12px;border-width:1px;border-style:solid;border-color:#dfdfdf}.media-frame input[type=text]:focus,.media-frame input[type=password]:focus,.media-frame input[type=number]:focus,.media-frame input[type=search]:focus,.media-frame input[type=email]:focus,.media-frame input[type=url]:focus,.media-frame select:focus,.media-frame textarea:focus{border-color:#5b9dd9}.media-frame select{height:24px;padding:2px}.media-frame input:disabled,.media-frame input[readonly],.media-frame textarea:disabled,.media-frame textarea[readonly]{background-color:#eee}.media-frame input[type=search]{-webkit-appearance:textfield}.media-frame :-moz-placeholder{color:#a9a9a9}.media-frame .hidden{display:none}/*! - * jQuery UI Draggable/Sortable 1.11.4 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */.ui-draggable-handle,.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.media-modal{position:fixed;top:30px;left:30px;right:30px;bottom:30px;z-index:160000}.wp-customizer .media-modal{z-index:560000}.media-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:159900}.wp-customizer .media-modal-backdrop{z-index:559900}.media-modal-close{position:absolute;top:0;right:0;width:50px;height:50px;padding:0;z-index:1000;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.media-modal-close:active{-webkit-box-shadow:none;box-shadow:none;outline:0}.media-modal-close span.media-modal-icon{background-image:none}.media-modal-close .media-modal-icon:before{content:'\f158';font:400 20px/1 dashicons;speak:none;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#666}.media-modal-close:hover .media-modal-icon:before{color:#00a0d2}.media-modal-content{position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto;min-height:300px;-webkit-box-shadow:0 5px 15px rgba(0,0,0,.7);box-shadow:0 5px 15px rgba(0,0,0,.7);background:#fcfcfc;-webkit-font-smoothing:subpixel-antialiased}.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons.png);background-repeat:no-repeat}.media-menu,.media-sidebar{top:0;bottom:0;right:0;background:#f3f3f3}.media-toolbar{position:absolute;top:0;left:0;right:0;z-index:100;height:60px;padding:0 16px;border:0 solid #dfdfdf;overflow:hidden}.media-toolbar-primary{float:right;height:100%}.media-toolbar-secondary{float:left;height:100%}.media-toolbar-primary>.media-button,.media-toolbar-primary>.media-button-group{margin-left:10px;float:left;margin-top:15px}.media-toolbar-secondary>.media-button,.media-toolbar-secondary>.media-button-group{margin-right:10px;margin-top:15px}.media-sidebar{position:absolute;width:267px;padding:0 16px 24px;z-index:75;border-left:1px solid #ddd;overflow:auto;-webkit-overflow-scrolling:touch}.hide-toolbar .media-sidebar{bottom:0}.media-sidebar .sidebar-title{font-size:20px;margin:0;padding:12px 10px 10px;line-height:28px}.media-sidebar .sidebar-content{padding:0 10px;margin-bottom:130px}.media-sidebar .search{display:block;width:100%}.image-details h3,.media-sidebar h3{position:relative;font-weight:700;text-transform:uppercase;font-size:12px;color:#666;margin:24px 0 8px}.attachment-details .setting,.media-sidebar .setting{display:block;float:left;width:100%;margin:1px 0}.attachment-details .setting label,.media-sidebar .setting label{display:block}.attachment-details .setting .link-to-custom,.media-sidebar .setting .link-to-custom{margin:3px 2px 0}.attachment-details .setting span,.media-sidebar .setting span{min-width:30%;margin-right:4%;font-size:12px;text-align:right;word-wrap:break-word}.media-sidebar .setting .name{max-width:80px}.attachment-details .setting select,.media-sidebar .setting select{max-width:65%}.attachment-details .field input[type=radio],.attachment-details .field input[type=checkbox],.attachment-details .setting input[type=radio],.attachment-details .setting input[type=checkbox],.media-sidebar .field input[type=radio],.media-sidebar .field input[type=checkbox],.media-sidebar .setting input[type=radio],.media-sidebar .setting input[type=checkbox]{float:none;margin:8px 3px 0;padding:0}.attachment-details .setting span,.compat-item label span,.media-sidebar .setting span{float:left;min-height:22px;padding-top:8px;line-height:16px;font-weight:400;color:#666}.media-menu>a,.media-router>a{text-decoration:none;line-height:18px;font-size:14px}.compat-item label span{text-align:right}.attachment-details .setting .value,.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=password],.attachment-details .setting input[type=number],.attachment-details .setting input[type=search],.attachment-details .setting input[type=email],.attachment-details .setting input[type=url],.attachment-details .setting textarea,.media-sidebar .setting .value,.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=url],.media-sidebar .setting textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:1px;width:65%;float:right}.attachment-details .setting .value,.media-sidebar .setting .value{margin:0 1px;text-align:left}.attachment-details .setting textarea,.compat-item .field textarea,.media-sidebar .setting textarea{height:62px;resize:vertical}.attachment-details select,.media-sidebar select{margin-top:3px}.compat-item{float:left;width:100%;overflow:hidden}.compat-item table{width:100%;table-layout:fixed;border-spacing:0;border:0}.compat-item tr{padding:2px 0;display:block;overflow:hidden}.compat-item .field,.compat-item .label{display:block;margin:0;padding:0}.compat-item .label{min-width:30%;margin-right:4%;float:left;text-align:right}.compat-item .label span{display:block;width:100%}.compat-item .field{float:right;width:65%;margin:1px}.compat-item .field input[type=tel],.compat-item .field input[type=text],.compat-item .field input[type=password],.compat-item .field input[type=number],.compat-item .field input[type=search],.compat-item .field input[type=email],.compat-item .field input[type=url],.compat-item .field textarea{width:100%;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.sidebar-for-errors .attachment-details,.sidebar-for-errors .compat-item,.sidebar-for-errors .media-sidebar .media-progress-bar,.sidebar-for-errors .upload-details{display:none!important}.media-menu{position:absolute;left:0;margin:0;padding:10px 0;border-right-width:1px;border-right-style:solid;border-right-color:#ccc;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.media-menu>a{display:block;position:relative;padding:8px 20px;margin:0;color:#0073aa}.media-frame-title .dashicons,.media-frame.hide-router .media-frame-router,.media-router .active:after{display:none}.media-menu>a:hover{color:#21759B;background:rgba(0,0,0,.04)}.media-menu>a:active{outline:0}.media-menu .active,.media-menu .active:hover{color:#23282d;font-weight:700}.media-menu .separator{height:0;margin:12px 20px;padding:0;border-top:1px solid #ddd}.media-router{position:relative;padding:0 6px;margin:0;clear:both;user-select:none}.media-router,.wp-core-ui .attachment{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.media-router a{-webkit-transition:none;transition:none}.media-router>a{position:relative;float:left;padding:8px 10px 9px;margin:0;height:18px}.media-router>a:last-child{border-right:0}.media-router>a:active{outline:0}.media-router .active,.media-router .active:hover{color:#32373c}.media-router .active,.media-router>a.active:last-child{margin:-1px -1px 0;background:#fff;border:1px solid #ddd;border-bottom:none}.media-frame{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.media-frame-menu{position:absolute;top:0;left:0;bottom:0;width:200px;z-index:150}.media-frame-content,.media-frame-router,.media-frame-title,.media-frame-toolbar{right:0;position:absolute;left:200px}.media-frame-title{top:0;height:50px;z-index:200}.media-frame-router{top:50px;height:36px;z-index:200}.media-frame-content{top:84px;bottom:61px;height:auto;width:auto;margin:0;overflow:auto;background:#fff;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.media-frame-toolbar{bottom:0;height:60px;z-index:100}.media-frame.hide-menu .media-frame-content,.media-frame.hide-menu .media-frame-router,.media-frame.hide-menu .media-frame-title,.media-frame.hide-menu .media-frame-toolbar{left:0}.media-frame.hide-menu .media-frame-menu{left:-200px}.media-frame.hide-toolbar .media-frame-content{bottom:0}.media-frame.hide-toolbar .media-frame-toolbar{bottom:-61px}.media-frame.hide-router .media-frame-content{top:50px}.media-frame.hide-router .media-frame-title{border-bottom:1px solid #dfdfdf;-webkit-box-shadow:0 4px 4px -4px rgba(0,0,0,.1);box-shadow:0 4px 4px -4px rgba(0,0,0,.1)}.media-frame-title h1{padding:0 16px;font-size:22px;line-height:50px;margin:0}.media-frame-title .suggested-dimensions{font-size:14px;float:right;margin-right:20px}.media-frame-content .crop-content{height:100%}.wp-customizer:not(.mobile) .media-frame-content .crop-content.site-icon{margin-right:300px}.media-frame-content .crop-content .crop-image{display:block;margin:auto;max-width:100%;max-height:100%}.media-frame-content .crop-content .upload-errors{position:absolute;width:300px;top:50%;left:50%;margin-left:-150px;margin-right:-150px;z-index:600000}.media-frame .media-iframe{overflow:hidden}.media-frame .media-iframe,.media-frame .media-iframe iframe{height:100%;width:100%;border:0}.media-frame select.attachment-filters{margin-top:11px;margin-right:2%;max-width:42%;max-width:-webkit-calc(48% - 12px);max-width:calc(48% - 12px)}.media-toolbar-primary .search,.wp-core-ui .attachment .portrait img{max-width:100%}.media-frame select.attachment-filters:last-of-type{margin-right:0}.media-frame .search{margin-top:11px;padding:4px;font-size:13px;color:#464646;font-family:"Open Sans",sans-serif;-webkit-appearance:none}.wp-core-ui .attachments{margin:0;-webkit-overflow-scrolling:touch}.wp-core-ui .attachment{position:relative;float:left;padding:8px;margin:0;color:#464646;cursor:pointer;list-style:none;text-align:center;user-select:none;width:25%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-core-ui .attachment.details:focus,.wp-core-ui .attachment:focus,.wp-core-ui .selected.attachment:focus{-webkit-box-shadow:inset 0 0 2px 3px #fff,inset 0 0 0 7px #5b9dd9;box-shadow:inset 0 0 2px 3px #fff,inset 0 0 0 7px #5b9dd9;outline:0}.wp-core-ui .selected.attachment{-webkit-box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 7px #ccc;box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 7px #ccc}.wp-core-ui .attachment.details{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #1e8cbe;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #1e8cbe}.wp-core-ui .attachment-preview{position:relative;-webkit-box-shadow:inset 0 0 15px rgba(0,0,0,.1),inset 0 0 0 1px rgba(0,0,0,.05);box-shadow:inset 0 0 15px rgba(0,0,0,.1),inset 0 0 0 1px rgba(0,0,0,.05);background:#eee;cursor:pointer}.wp-core-ui .attachment-preview:before{content:'';display:block;padding-top:100%}.wp-core-ui .attachment .icon{margin:0 auto;overflow:hidden}.wp-core-ui .attachment .thumbnail{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;opacity:1;-webkit-transition:opacity .1s;transition:opacity .1s}.wp-core-ui .attachment .landscape img{max-height:100%}.wp-core-ui .attachment .thumbnail:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);overflow:hidden}.wp-core-ui .attachment .thumbnail img{top:0;left:0}.wp-core-ui .attachment .thumbnail .centered{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-transform:translate(50%,50%);-ms-transform:translate(50%,50%);transform:translate(50%,50%)}.wp-core-ui .attachment .thumbnail .centered img{-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wp-core-ui .attachments-browser .attachment .thumbnail .centered img.icon{-webkit-transform:translate(-50%,-70%);-ms-transform:translate(-50%,-70%);transform:translate(-50%,-70%)}.ie8 .wp-core-ui .attachment img.icon{top:20%;position:relative}.wp-core-ui .attachment .filename{position:absolute;left:0;right:0;bottom:0;overflow:hidden;max-height:100%;word-wrap:break-word;text-align:center;font-weight:700;background:rgba(255,255,255,.8);-webkit-box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}.wp-core-ui .attachment .filename div{padding:5px 10px}.wp-core-ui .attachment .thumbnail img{position:absolute}.wp-core-ui .attachment-close{display:block;position:absolute;top:5px;right:5px;height:22px;width:22px;padding:0;background-color:#fff;background-position:-96px 4px;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.3);box-shadow:0 0 0 1px rgba(0,0,0,.3)}.wp-core-ui .attachment-close:focus,.wp-core-ui .attachment-close:hover{background-position:-36px 4px}.wp-core-ui .attachment .check{display:none;height:24px;width:24px;padding:0;position:absolute;z-index:10;top:0;right:0;outline:0;background:#eee;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px rgba(0,0,0,.15);box-shadow:0 0 0 1px #fff,0 0 0 2px rgba(0,0,0,.15)}.wp-core-ui .attachment .check .media-modal-icon{display:block;background-position:-1px 0;height:15px;width:15px;margin:5px}.wp-core-ui .attachment .check:hover .media-modal-icon{background-position:-40px 0}.wp-core-ui .attachment.selected .check{display:block}.wp-core-ui .attachment.details .check,.wp-core-ui .attachment.selected .check:focus,.wp-core-ui .media-frame.mode-grid .attachment.selected .check{background-color:#1e8cbe;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #1e8cbe;box-shadow:0 0 0 1px #fff,0 0 0 2px #1e8cbe}.wp-core-ui .attachment.details .check .media-modal-icon,.wp-core-ui .media-frame.mode-grid .attachment.selected .check .media-modal-icon{background-position:-21px 0}.wp-core-ui .attachment.details .check:hover .media-modal-icon,.wp-core-ui .attachment.selected .check:focus .media-modal-icon,.wp-core-ui .media-frame.mode-grid .attachment.selected .check:hover .media-modal-icon{background-position:-60px 0}.wp-core-ui .media-frame .attachment .describe{position:relative;display:block;width:100%;margin:0;padding:8px;font-size:12px;-webkit-border-radius:0;border-radius:0}.media-frame .attachments-browser{position:relative;width:100%;height:100%;overflow:hidden}.attachments-browser .media-toolbar{right:300px;height:50px}.attachments-browser.hide-sidebar .media-toolbar{right:0}.attachments-browser .media-toolbar-primary>.media-button,.attachments-browser .media-toolbar-primary>.media-button-group,.attachments-browser .media-toolbar-secondary>.media-button,.attachments-browser .media-toolbar-secondary>.media-button-group{margin:11px 0}.attachments-browser .attachments{padding:2px 8px 8px}.attachments-browser .attachments,.attachments-browser .uploader-inline{position:absolute;top:50px;left:0;right:300px;bottom:0;overflow:auto;outline:0}.attachments-browser .uploader-inline.hidden{display:none}.attachments-browser .media-toolbar-primary{max-width:33%}.attachments-browser .media-toolbar-secondary{max-width:66%}.uploader-inline .close{background-color:transparent;border:0;cursor:pointer;height:48px;position:absolute;right:0;text-align:center;top:0;width:50px;z-index:1}.uploader-inline .close:before{font:400 30px/50px dashicons!important;color:#777;display:inline-block;content:'\f335';font-weight:300}.attachments-browser.hide-sidebar .attachments,.attachments-browser.hide-sidebar .uploader-inline{right:0;margin-right:0}.attachments-browser .instructions{display:inline-block;margin-top:16px;line-height:18px;font-size:13px;color:#666;margin-right:.5em}.attachments-browser .no-media{padding:2em 0 0 2em}.media-progress-bar{position:relative;height:10px;width:70%;margin:10px auto;-webkit-border-radius:10px;border-radius:10px;background:#dfdfdf;background:rgba(0,0,0,.1)}.media-progress-bar div{height:10px;min-width:20px;width:0;background:#1e8cbe;-webkit-border-radius:10px;border-radius:10px;-webkit-transition:width 300ms;transition:width 300ms}.media-uploader-status .media-progress-bar{display:none;width:100%}.uploading.media-uploader-status .media-progress-bar{display:block}.attachment-preview .media-progress-bar{position:absolute;top:50%;left:15%;width:70%;margin:-5px 0 0}.media-uploader-status{position:relative;margin:0 auto;padding-bottom:10px;max-width:400px}.uploader-inline .media-uploader-status h3{display:none}.media-uploader-status .upload-details{display:none;font-size:12px;color:#666}.uploading.media-uploader-status .upload-details{display:block}.media-uploader-status .upload-detail-separator{padding:0 4px}.media-uploader-status .upload-count{color:#464646}.media-uploader-status .upload-dismiss-errors,.media-uploader-status .upload-errors{display:none}.errors.media-uploader-status .upload-dismiss-errors,.errors.media-uploader-status .upload-errors{display:block}.media-uploader-status .upload-dismiss-errors{text-decoration:none}.media-sidebar .media-uploader-status .upload-dismiss-errors{position:absolute;top:0;right:0}.upload-errors .upload-error{padding:12px;margin-bottom:12px;background:#fff;border-left:4px solid #dd3d36;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.upload-errors .upload-error-filename{font-weight:700}.upload-errors .upload-error-message{display:block;padding-top:8px;word-wrap:break-word}.uploader-window{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,86,132,.9);z-index:250000;display:none;text-align:center;opacity:0;-webkit-transition:opacity 250ms;transition:opacity 250ms}.uploader-window-content{position:absolute;top:10px;left:10px;right:10px;bottom:10px;border:1px dashed #fff}.uploader-window h3{margin:-.5em 0 0;position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-size:40px;color:#fff;padding:0}.uploader-window .media-progress-bar{margin-top:20px;max-width:300px;background:0 0;border-color:#fff;display:none}.uploader-window .media-progress-bar div{background:#fff}.uploading .uploader-window .media-progress-bar{display:block}.media-frame .uploader-inline{margin-bottom:20px;padding:0;text-align:center}.uploader-inline-content{position:absolute;top:30%;left:0;right:0}.uploader-inline-content .upload-ui{margin:2em 0}.uploader-inline-content .post-upload-ui{margin-bottom:2em}.uploader-inline .has-upload-message .upload-ui{margin:0 0 4em}.uploader-inline h3{font-size:20px;line-height:28px;font-weight:400;margin:0}.uploader-inline .has-upload-message .upload-instructions{font-size:14px;color:#464646;font-weight:400}.uploader-inline .drop-instructions{display:none}.supports-drag-drop .uploader-inline .drop-instructions{display:block}.uploader-inline p{font-size:12px;margin:.5em 0}.uploader-inline .media-progress-bar{display:none}.uploading.uploader-inline .media-progress-bar{display:block}.uploader-inline .browser{display:inline-block!important}.media-selection{position:absolute;top:0;left:0;right:350px;height:60px;padding:0 0 0 16px;overflow:hidden;white-space:nowrap}.media-selection .selection-info{display:inline-block;font-size:12px;height:60px;margin-right:10px;vertical-align:top}.media-selection.editing,.media-selection.empty,.media-selection.one .edit-selection{display:none}.media-selection .count{display:block;padding-top:12px;font-size:14px;line-height:20px;font-weight:700}.media-selection .attachments,.media-selection .selection-view{display:inline-block;vertical-align:top}.media-selection .button-link{float:left;padding:1px 8px;margin:1px 8px 1px -8px;line-height:16px;border-right:1px solid #dfdfdf;color:#21759B}.media-selection .button-link:focus,.media-selection .button-link:hover{background:#21759B;color:#fff;border-color:transparent}.media-selection .button-link:last-child{border-right:0;margin-right:0}.selection-info .clear-selection{color:red}.selection-info .clear-selection:focus,.selection-info .clear-selection:hover{background:red;color:#fff}.media-selection .attachments{height:48px;margin:6px;padding:0;overflow:hidden}.media-selection .attachment{width:40px;padding:0;margin:4px}.media-selection .attachment .thumbnail{top:0;right:0;bottom:0;left:0}.media-selection .attachment .icon{width:50%}.media-selection .attachment-preview{-webkit-box-shadow:none;box-shadow:none;background:0 0}.wp-core-ui .media-selection .attachment.details:focus,.wp-core-ui .media-selection .attachment:focus,.wp-core-ui .media-selection .selected.attachment:focus{-webkit-box-shadow:0 0 0 1px #fff,0 0 2px 3px #5b9dd9;box-shadow:0 0 0 1px #fff,0 0 2px 3px #5b9dd9}.wp-core-ui .media-selection .selected.attachment{-webkit-box-shadow:none;box-shadow:none}.wp-core-ui .media-selection .attachment.details{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 3px #1e8cbe;box-shadow:0 0 0 1px #fff,0 0 0 3px #1e8cbe}.media-selection:after{content:'';display:block;position:absolute;top:0;right:0;bottom:0;width:25px;background-image:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,1)),to(rgba(255,255,255,0)));background-image:-webkit-linear-gradient(right,rgba(255,255,255,1),rgba(255,255,255,0));background-image:linear-gradient(to left,rgba(255,255,255,1) ,rgba(255,255,255,0))}.media-selection .attachment .filename{display:none}.media-frame .spinner{background:url(../images/spinner.gif) no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;float:right;display:inline-block;visibility:hidden;opacity:.7;filter:alpha(opacity=70);width:20px;height:20px;margin:0;vertical-align:middle}.attachment-details.save-waiting .settings-save-status .spinner,.media-frame .embed-loading .embed-url .spinner,.media-frame .spinner.is-active{visibility:visible}.media-toolbar .spinner{margin-top:14px}.attachment-details{position:relative;overflow:auto}.attachment-details .settings-save-status{float:right;text-transform:none;z-index:10}.attachment-details .settings-save-status .spinner{margin-left:5px}.attachment-details .settings-save-status .saved{float:right;display:none}.attachment-details.save-complete .settings-save-status .saved{display:block}.attachment-info{overflow:hidden;min-height:60px;margin-bottom:16px;line-height:18px;color:#666;border-bottom:1px solid #ddd;padding-bottom:11px}.attachment-info .filename{font-weight:700;color:#464646;word-wrap:break-word}.attachment-info .thumbnail{position:relative;float:left;max-width:120px;max-height:120px;margin-top:5px;margin-right:10px;margin-bottom:5px}.uploading .attachment-info .thumbnail{width:120px;height:80px;-webkit-box-shadow:inset 0 0 15px rgba(0,0,0,.1);box-shadow:inset 0 0 15px rgba(0,0,0,.1)}.uploading .attachment-info .media-progress-bar{margin-top:35px}.attachment-info .thumbnail-image:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);overflow:hidden}.attachment-info .thumbnail img{display:block;max-width:120px;max-height:120px;margin:0 auto}.attachment-info .details{float:left;font-size:12px;max-width:100%}.attachment-info .delete-attachment,.attachment-info .edit-attachment,.attachment-info .trash-attachment,.attachment-info .untrash-attachment{display:block;text-decoration:none;white-space:nowrap}.attachment-details.needs-refresh .attachment-info .edit-attachment{display:none}.attachment-info .edit-attachment{display:block}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment{display:inline;padding:0;color:#bc0b0b}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover{color:red}.attachment-display-settings{width:100%;float:left;overflow:hidden}.attachment-display-settings h4{margin:1.4em 0 .4em}.collection-settings{overflow:hidden}.collection-settings .setting input[type=checkbox]{float:left;margin-right:8px}.collection-settings .setting span{min-width:inherit}.media-modal .imgedit-wrap{position:static}.media-modal .imgedit-wait{height:auto!important;right:0;bottom:0;left:0}.media-modal .imgedit-wrap .imgedit-panel-content{padding:16px;position:absolute;top:0;right:282px;bottom:0;left:0;overflow:auto}.media-modal .imgedit-wrap .imgedit-settings{background:#f3f3f3;border-left:1px solid #ddd;padding:0 16px 16px;position:absolute;top:0;right:0;bottom:0;width:250px;overflow:auto}.media-modal .imgedit-group{background:0 0;border:none;border-bottom:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;margin:0 0 16px;padding:0 0 16px;position:relative}.media-modal .imgedit-group:last-of-type{border:none;margin:0;padding:0}.media-modal .imgedit-group-top h3{text-transform:uppercase;font-size:12px;color:#666;margin:24px 0 0}.media-modal .imgedit-group-top h3 a{text-decoration:none;color:#666}.media-modal .imgedit-help-toggle{margin-top:-2px;cursor:pointer;color:#666}.media-modal .imgedit-help-toggled span.dashicons:before{content:'\f142'}.media-modal .imgedit-group img{margin-top:5px}.media-modal .imgedit-wrap div.updated{margin:0 0 16px}.embed-url{display:block;position:relative;padding:16px;margin:0;z-index:250;background:#fff;font-size:18px}.media-frame .embed-url input{font-size:18px;padding:12px 14px;width:100%;min-width:200px;-webkit-box-shadow:inset 2px 2px 4px -2px rgba(0,0,0,.1);box-shadow:inset 2px 2px 4px -2px rgba(0,0,0,.1)}.media-frame .embed-url .spinner{position:absolute;top:32px;right:26px}.embed-link-settings,.embed-media-settings{position:absolute;top:70px;left:0;right:0;bottom:0;padding:16px 16px 32px;overflow:auto}.media-embed .embed-link-settings{overflow:visible}.embed-preview embed,.embed-preview iframe,.embed-preview img,.mejs-container video{max-width:100%;vertical-align:middle}.embed-preview a{display:inline-block}.embed-preview img{display:block;height:auto}.mejs-container:focus{outline:#5b9dd9 solid 1px;-webkit-box-shadow:0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 2px 1px rgba(30,140,190,.8)}.image-details .media-modal{left:140px;right:140px}.image-details .media-frame-content,.image-details .media-frame-router,.image-details .media-frame-title{left:0}.image-details .embed-media-settings{top:0;overflow:visible;padding:0}.image-details .embed-media-settings,.image-details .embed-media-settings div{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.image-details .column-settings{background:#f3f3f3;border-right:1px solid #ddd;min-height:100%;width:55%;position:absolute;top:0;left:0}.image-details .column-settings h3{margin:20px;padding-top:20px;border-top:1px solid #ddd}.image-details .column-image{width:45%;position:absolute;left:55%;top:0}.image-details .image{margin:20px}.image-details .image img{max-width:100%;max-height:500px}.image-details .advanced-toggle{padding:0;color:#666;text-transform:uppercase}.image-details .advanced-toggle:after{font:400 20px/1 dashicons;speak:none;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:'\f140';display:inline-block;margin-top:-2px}.image-details .advanced-visible .advanced-toggle:after{content:'\f142'}.image-details .embed-media-settings .size{margin-bottom:4px}.image-details .custom-size span{display:block}.image-details .custom-size label{display:block;float:left}.image-details .custom-size span small{color:#999;font-size:inherit}.image-details .custom-size input{width:5em}.image-details .custom-size .sep{float:left;margin:26px 6px 0}.image-details .custom-size:after{content:'';display:table;clear:both}.media-embed .thumbnail{max-width:100%;max-height:200px;position:relative;float:left}.media-embed .thumbnail img{max-height:200px;display:block}.media-embed .thumbnail:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);overflow:hidden}.media-embed .setting{width:100%;margin:10px 0;float:left;display:block;clear:both}.image-details .embed-media-settings .setting{float:none;width:auto}.image-details .actions{margin:10px 0}.image-details .hidden{display:none}.media-embed .setting input[type=text],.media-embed .setting textarea{display:block;width:100%;max-width:400px;margin:1px 0}.image-details .embed-media-settings .setting input[type=text],.image-details .embed-media-settings .setting textarea{max-width:inherit;width:70%}.image-details .embed-media-settings .custom-size,.image-details .embed-media-settings .link-target,.image-details .embed-media-settings .setting input.link-to-custom{margin-left:27%;width:70%}.image-details .embed-media-settings .link-target{margin-top:24px}.media-embed .setting input.hidden,.media-embed .setting textarea.hidden{display:none}.media-embed .setting span{display:block;width:200px;font-size:13px;line-height:24px;color:#666}.image-details .embed-media-settings .setting span{float:left;width:25%;text-align:right;margin:8px 1% 0;line-height:1.1}.media-embed .setting .button-group{margin:2px 0}.media-embed-sidebar{position:absolute;top:0;left:440px}.advanced-section,.link-settings{margin-top:10px}.wp-editor-wrap .uploader-editor{background:rgba(150,150,150,.9);position:absolute;top:0;left:0;width:100%;height:100%;z-index:99998;display:none;text-align:center}.wp-editor-wrap .uploader-editor-content{border:1px dashed #fff;position:absolute;top:10px;left:10px;right:10px;bottom:10px}.wp-editor-wrap .uploader-editor .uploader-editor-title{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-size:3em;line-height:1.3;font-weight:700;color:#fff;padding:0;margin:0;display:none}.wp-editor-wrap .uploader-editor.droppable{background:rgba(0,86,132,.9)}.wp-editor-wrap .uploader-editor.droppable .uploader-editor-title{display:block}.ie7 .media-frame .attachments-browser{position:static}.ie7 .media-frame .embed-url input{margin-top:4px;width:90%}.ie7 .compat-item{width:99%}.ie7 .attachment-display-settings{width:auto}.ie7 .attachment-preview,.ie7 .attachment-preview .thumbnail{width:120px;height:120px}.ie7 .media-frame .attachment .describe{width:102px}.ie7 .media-sidebar .setting select{max-width:55%}.ie7 .media-sidebar .setting input[type=tel],.ie7 .media-sidebar .setting input[type=text],.ie7 .media-sidebar .setting input[type=password],.ie7 .media-sidebar .setting input[type=number],.ie7 .media-sidebar .setting input[type=search],.ie7 .media-sidebar .setting input[type=email],.ie7 .media-sidebar .setting input[type=url],.ie7 .media-sidebar .setting textarea{width:55%}.ie7 .media-sidebar .setting .link-to-custom{float:left}.rtl .media-frame,.rtl .media-frame .search,.rtl .media-frame input[type=tel],.rtl .media-frame input[type=text],.rtl .media-frame input[type=password],.rtl .media-frame input[type=number],.rtl .media-frame input[type=search],.rtl .media-frame input[type=email],.rtl .media-frame input[type=url],.rtl .media-frame select,.rtl .media-frame textarea,.rtl .media-modal{font-family:Tahoma,sans-serif}:lang(he-il) .rtl .media-frame,:lang(he-il) .rtl .media-frame .search,:lang(he-il) .rtl .media-frame input[type=text],:lang(he-il) .rtl .media-frame input[type=password],:lang(he-il) .rtl .media-frame input[type=number],:lang(he-il) .rtl .media-frame input[type=search],:lang(he-il) .rtl .media-frame input[type=email],:lang(he-il) .rtl .media-frame input[type=url],:lang(he-il) .rtl .media-frame select,:lang(he-il) .rtl .media-frame textarea,:lang(he-il) .rtl .media-modal{font-family:Arial,sans-serif}@media only screen and (max-width:900px){.media-frame:not(.hide-menu) .media-frame-content,.media-frame:not(.hide-menu) .media-frame-router,.media-frame:not(.hide-menu) .media-frame-title,.media-frame:not(.hide-menu) .media-frame-toolbar{left:0}.media-frame:not(.hide-menu) .media-frame-menu{position:static;width:0}.media-frame:not(.hide-menu) .media-menu{width:auto;max-width:80%;overflow:auto;z-index:2000;top:50px;left:-300px;right:auto;bottom:auto;padding:5px 0;border:1px solid #ccc}.media-frame:not(.hide-menu) .media-menu.visible{left:0}.media-frame:not(.hide-menu) .media-menu>a{padding:12px 16px;font-size:16px}.media-frame:not(.hide-menu) .media-menu>a.active{display:none}.media-frame:not(.hide-menu) .media-menu .separator{margin:5px 10px}.media-frame:not(.hide-menu) .media-frame-title{left:0;color:#21759b}.media-frame:not(.hide-menu) .media-frame-title .dashicons{display:inline-block;line-height:50px}.media-frame:not(.hide-menu) .media-frame-title h1{line-height:3;font-size:18px;float:left;cursor:pointer}.media-sidebar{width:230px}.attachments-browser .attachments,.attachments-browser .media-toolbar,.attachments-browser .uploader-inline{right:262px}.attachment-details .setting,.media-sidebar .setting{margin:6px 0}.attachment-details .setting input,.attachment-details .setting span,.attachment-details .setting textarea,.compat-item label span,.media-sidebar .setting input,.media-sidebar .setting span,.media-sidebar .setting textarea{float:none}.attachment-details .setting span,.compat-item label span,.media-sidebar .setting span{text-align:inherit;min-height:16px;margin:0;padding:8px 2px 0}.attachment-details .setting .value,.media-sidebar .setting .value{float:none;width:auto}.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=password],.attachment-details .setting input[type=number],.attachment-details .setting input[type=search],.attachment-details .setting input[type=email],.attachment-details .setting input[type=url],.attachment-details .setting select,.attachment-details .setting textarea,.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=url],.media-sidebar .setting select,.media-sidebar .setting textarea{float:none;width:98%;max-width:none;height:auto}.attachment-details .setting select.columns,.media-sidebar .setting select.columns{width:auto}.media-frame .search,.media-frame input,.media-frame textarea{padding:3px 6px}.image-details .column-image{width:30%;left:70%}.image-details .column-settings{width:70%}.image-details .media-modal{left:30px;right:30px}.image-details .embed-media-settings .setting{margin:20px}.image-details .embed-media-settings .setting span{float:none;text-align:left;width:100%;margin-bottom:4px}.image-details .embed-media-settings .setting input.link-to-custom,.image-details .embed-media-settings .setting input[type=text],.image-details .embed-media-settings .setting textarea{width:100%;margin-left:0}.image-details .embed-media-settings .custom-size{margin-left:20px}.collection-settings .setting input[type=checkbox]{margin-top:0}.media-selection{min-width:120px}.media-selection:after{background:0 0}.media-selection .attachments{display:none}.media-modal .attachments-browser .media-toolbar .search{max-width:100%;height:auto;float:right}.media-modal .attachments-browser .media-toolbar .attachment-filters{height:auto}.media-modal .attachments-browser .media-toolbar .spinner{margin:14px 2px 0}.media-frame input[type=text],.media-frame input[type=password],.media-frame input[type=number],.media-frame input[type=search],.media-frame input[type=email],.media-frame input[type=url],.media-frame select,.media-frame textarea{font-size:16px}}@media only screen and (max-width:640px),screen and (max-height:400px){.image-details .media-modal,.media-modal{position:fixed;top:0;left:0;right:0;bottom:0}.media-modal-backdrop{position:fixed}.media-sidebar{z-index:1900;max-width:70%;bottom:120%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding-bottom:0}.media-sidebar.visible{bottom:0}.attachments-browser .attachments,.attachments-browser .media-toolbar,.attachments-browser .uploader-inline{right:0}.image-details .media-frame-title{display:block;top:0;font-size:14px}.image-details .column-image,.image-details .column-settings{width:100%;position:relative;left:0}.image-details .column-settings{padding:4px 0}.media-frame-content .media-toolbar .instructions{display:none}}@media screen and (max-height:400px){.media-menu{padding:0}.media-frame-router{top:44px}.media-frame-content{top:78px}.attachments-browser .attachments{top:40px}.embed-link-settings{overflow:visible}}@media only screen and (max-width:480px){.media-modal-close{top:-5px}.media-modal .media-frame-title{height:40px}.wp-core-ui.wp-customizer .media-button{margin-top:13px}.media-frame:not(.hide-menu) .media-frame-title h1,.media-modal .media-frame-title h1{font-size:18px;line-height:40px}.media-frame:not(.hide-menu) .media-frame-title .dashicons{line-height:40px}.media-frame-router,.media-frame:not(.hide-menu) .media-menu{top:40px}.media-frame-content{top:74px}.media-frame.hide-router .media-frame-content{top:40px}}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.media-modal-icon{background-image:url(../images/uploader-icons-2x.png);-webkit-background-size:134px 15px;background-size:134px 15px}.media-frame .spinner{background-image:url(../images/spinner-2x.gif)}}.media-frame-content[data-columns="1"] .attachment{width:100%}.media-frame-content[data-columns="2"] .attachment{width:50%}.media-frame-content[data-columns="3"] .attachment{width:33.33%}.media-frame-content[data-columns="4"] .attachment{width:25%}.media-frame-content[data-columns="5"] .attachment{width:20%}.media-frame-content[data-columns="6"] .attachment{width:16.66%}.media-frame-content[data-columns="7"] .attachment{width:14.28%}.media-frame-content[data-columns="8"] .attachment{width:12.5%}.media-frame-content[data-columns="9"] .attachment{width:11.11%}.media-frame-content[data-columns="10"] .attachment{width:10%}.media-frame-content[data-columns="11"] .attachment{width:9.09%}.media-frame-content[data-columns="12"] .attachment{width:8.33%} \ No newline at end of file diff --git a/wp-includes/css/wp-auth-check-rtl.css b/wp-includes/css/wp-auth-check-rtl.css deleted file mode 100644 index 404cc32cc2..0000000000 --- a/wp-includes/css/wp-auth-check-rtl.css +++ /dev/null @@ -1,109 +0,0 @@ -/*------------------------------------------------------------------------------ - Interim login dialog -------------------------------------------------------------------------------*/ - -#wp-auth-check-wrap.hidden { - display: none; -} - -#wp-auth-check-wrap #wp-auth-check-bg { - position: fixed; - top: 0; - bottom: 0; - right: 0; - left: 0; - background: #000; - opacity: 0.7; - filter: alpha(opacity=70); - z-index: 1000010; /* needs to appear above .notification-dialog */ -} - -#wp-auth-check-wrap #wp-auth-check { - position: fixed; - right: 50%; - overflow: hidden; - top: 40px; - bottom: 20px; - max-height: 415px; - width: 380px; - margin: 0 -190px 0 0; - padding: 30px 0 0; - background-color: #f1f1f1; - z-index: 1000011; /* needs to appear above #wp-auth-check-bg */ - -webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); -} - -@media screen and ( max-width: 380px ) { - #wp-auth-check-wrap #wp-auth-check { - right: 0; - width: 100%; - margin: 0; - } -} - -#wp-auth-check-wrap.fallback #wp-auth-check { - max-height: 180px; - overflow: auto; -} - -#wp-auth-check-wrap #wp-auth-check-form { - background: url(../images/spinner-2x.gif) no-repeat center center; - -webkit-background-size: 16px 16px; - background-size: 16px 16px; - height: 100%; - overflow: auto; - -webkit-overflow-scrolling: touch; -} - -#wp-auth-check-wrap #wp-auth-check-form iframe { - height: 98%; /* Scrollbar fix */ - width: 100%; -} - -#wp-auth-check-wrap .wp-auth-check-close { - position: absolute; - top: 8px; - left: 8px; - height: 22px; - width: 22px; - cursor: pointer; -} - -#wp-auth-check-wrap .wp-auth-check-close:before { - content: '\f158'; - display: block !important; - font: normal 20px/1 'dashicons'; - speak: none; - height: 22px; - margin: 2px 0; - text-align: center; - width: 22px; - color: #777; - -webkit-font-smoothing: antialiased !important; - -moz-osx-font-smoothing: grayscale; -} - -#wp-auth-check-wrap .wp-auth-check-close:hover:before { - color: #0073aa; -} - -#wp-auth-check-wrap .wp-auth-check-close:focus { - outline: 1px dotted #82878c; -} - -#wp-auth-check-wrap .wp-auth-fallback-expired { - outline: 0; -} - -#wp-auth-check-wrap .wp-auth-fallback { - font-size: 14px; - line-height: 21px; - padding: 0 25px; - display: none; -} - -#wp-auth-check-wrap.fallback .wp-auth-fallback, -#wp-auth-check-wrap.fallback .wp-auth-check-close { - display: block; -} diff --git a/wp-includes/css/wp-auth-check-rtl.min.css b/wp-includes/css/wp-auth-check-rtl.min.css deleted file mode 100644 index b5c12324e2..0000000000 --- a/wp-includes/css/wp-auth-check-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -#wp-auth-check-wrap.hidden{display:none}#wp-auth-check-wrap #wp-auth-check-bg{position:fixed;top:0;bottom:0;right:0;left:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000010}#wp-auth-check-wrap #wp-auth-check{position:fixed;right:50%;overflow:hidden;top:40px;bottom:20px;max-height:415px;width:380px;margin:0 -190px 0 0;padding:30px 0 0;background-color:#f1f1f1;z-index:1000011;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3)}@media screen and (max-width:380px){#wp-auth-check-wrap #wp-auth-check{right:0;width:100%;margin:0}}#wp-auth-check-wrap.fallback #wp-auth-check{max-height:180px;overflow:auto}#wp-auth-check-wrap #wp-auth-check-form{background:url(../images/spinner-2x.gif) center center no-repeat;-webkit-background-size:16px 16px;background-size:16px 16px;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}#wp-auth-check-wrap #wp-auth-check-form iframe{height:98%;width:100%}#wp-auth-check-wrap .wp-auth-check-close{position:absolute;top:8px;left:8px;height:22px;width:22px;cursor:pointer}#wp-auth-check-wrap .wp-auth-check-close:before{content:'\f158';display:block!important;font:400 20px/1 dashicons;speak:none;height:22px;margin:2px 0;text-align:center;width:22px;color:#777;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale}#wp-auth-check-wrap .wp-auth-check-close:hover:before{color:#0073aa}#wp-auth-check-wrap .wp-auth-check-close:focus{outline:#82878c dotted 1px}#wp-auth-check-wrap .wp-auth-fallback-expired{outline:0}#wp-auth-check-wrap .wp-auth-fallback{font-size:14px;line-height:21px;padding:0 25px;display:none}#wp-auth-check-wrap.fallback .wp-auth-check-close,#wp-auth-check-wrap.fallback .wp-auth-fallback{display:block} \ No newline at end of file diff --git a/wp-includes/css/wp-auth-check.css b/wp-includes/css/wp-auth-check.css deleted file mode 100644 index 32bd8dd6a5..0000000000 --- a/wp-includes/css/wp-auth-check.css +++ /dev/null @@ -1,109 +0,0 @@ -/*------------------------------------------------------------------------------ - Interim login dialog -------------------------------------------------------------------------------*/ - -#wp-auth-check-wrap.hidden { - display: none; -} - -#wp-auth-check-wrap #wp-auth-check-bg { - position: fixed; - top: 0; - bottom: 0; - left: 0; - right: 0; - background: #000; - opacity: 0.7; - filter: alpha(opacity=70); - z-index: 1000010; /* needs to appear above .notification-dialog */ -} - -#wp-auth-check-wrap #wp-auth-check { - position: fixed; - left: 50%; - overflow: hidden; - top: 40px; - bottom: 20px; - max-height: 415px; - width: 380px; - margin: 0 0 0 -190px; - padding: 30px 0 0; - background-color: #f1f1f1; - z-index: 1000011; /* needs to appear above #wp-auth-check-bg */ - -webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); - box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); -} - -@media screen and ( max-width: 380px ) { - #wp-auth-check-wrap #wp-auth-check { - left: 0; - width: 100%; - margin: 0; - } -} - -#wp-auth-check-wrap.fallback #wp-auth-check { - max-height: 180px; - overflow: auto; -} - -#wp-auth-check-wrap #wp-auth-check-form { - background: url(../images/spinner-2x.gif) no-repeat center center; - -webkit-background-size: 16px 16px; - background-size: 16px 16px; - height: 100%; - overflow: auto; - -webkit-overflow-scrolling: touch; -} - -#wp-auth-check-wrap #wp-auth-check-form iframe { - height: 98%; /* Scrollbar fix */ - width: 100%; -} - -#wp-auth-check-wrap .wp-auth-check-close { - position: absolute; - top: 8px; - right: 8px; - height: 22px; - width: 22px; - cursor: pointer; -} - -#wp-auth-check-wrap .wp-auth-check-close:before { - content: '\f158'; - display: block !important; - font: normal 20px/1 'dashicons'; - speak: none; - height: 22px; - margin: 2px 0; - text-align: center; - width: 22px; - color: #777; - -webkit-font-smoothing: antialiased !important; - -moz-osx-font-smoothing: grayscale; -} - -#wp-auth-check-wrap .wp-auth-check-close:hover:before { - color: #0073aa; -} - -#wp-auth-check-wrap .wp-auth-check-close:focus { - outline: 1px dotted #82878c; -} - -#wp-auth-check-wrap .wp-auth-fallback-expired { - outline: 0; -} - -#wp-auth-check-wrap .wp-auth-fallback { - font-size: 14px; - line-height: 21px; - padding: 0 25px; - display: none; -} - -#wp-auth-check-wrap.fallback .wp-auth-fallback, -#wp-auth-check-wrap.fallback .wp-auth-check-close { - display: block; -} diff --git a/wp-includes/css/wp-auth-check.min.css b/wp-includes/css/wp-auth-check.min.css deleted file mode 100644 index 7ab9be8ba1..0000000000 --- a/wp-includes/css/wp-auth-check.min.css +++ /dev/null @@ -1 +0,0 @@ -#wp-auth-check-wrap.hidden{display:none}#wp-auth-check-wrap #wp-auth-check-bg{position:fixed;top:0;bottom:0;left:0;right:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000010}#wp-auth-check-wrap #wp-auth-check{position:fixed;left:50%;overflow:hidden;top:40px;bottom:20px;max-height:415px;width:380px;margin:0 0 0 -190px;padding:30px 0 0;background-color:#f1f1f1;z-index:1000011;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3)}@media screen and (max-width:380px){#wp-auth-check-wrap #wp-auth-check{left:0;width:100%;margin:0}}#wp-auth-check-wrap.fallback #wp-auth-check{max-height:180px;overflow:auto}#wp-auth-check-wrap #wp-auth-check-form{background:url(../images/spinner-2x.gif) center center no-repeat;-webkit-background-size:16px 16px;background-size:16px 16px;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}#wp-auth-check-wrap #wp-auth-check-form iframe{height:98%;width:100%}#wp-auth-check-wrap .wp-auth-check-close{position:absolute;top:8px;right:8px;height:22px;width:22px;cursor:pointer}#wp-auth-check-wrap .wp-auth-check-close:before{content:'\f158';display:block!important;font:400 20px/1 dashicons;speak:none;height:22px;margin:2px 0;text-align:center;width:22px;color:#777;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale}#wp-auth-check-wrap .wp-auth-check-close:hover:before{color:#0073aa}#wp-auth-check-wrap .wp-auth-check-close:focus{outline:#82878c dotted 1px}#wp-auth-check-wrap .wp-auth-fallback-expired{outline:0}#wp-auth-check-wrap .wp-auth-fallback{font-size:14px;line-height:21px;padding:0 25px;display:none}#wp-auth-check-wrap.fallback .wp-auth-check-close,#wp-auth-check-wrap.fallback .wp-auth-fallback{display:block} \ No newline at end of file diff --git a/wp-includes/css/wp-pointer-rtl.css b/wp-includes/css/wp-pointer-rtl.css deleted file mode 100644 index 52192c2e24..0000000000 --- a/wp-includes/css/wp-pointer-rtl.css +++ /dev/null @@ -1,212 +0,0 @@ -.wp-pointer-content { - padding: 0 0 10px; - position: relative; - font-size: 13px; - background: #fff; - border: 1px solid #dfdfdf; - -webkit-box-shadow: 0 3px 6px rgba(0,0,0,0.075); - box-shadow: 0 3px 6px rgba(0,0,0,0.075); -} - -.wp-pointer-content h3 { - position: relative; - margin: -1px -1px 5px; - padding: 15px 60px 14px 18px; - border: 1px solid #3592b6; - border-bottom: none; - line-height: 1.4em; - font-size: 14px; - color: #fff; - background: #00a0d2; -} - -.wp-pointer-content h3:before { - background: #fff; - -webkit-border-radius: 50%; - border-radius: 50%; - color: #00a0d2; - content: '\f227'; - font: normal 20px/1.6 'dashicons'; - position: absolute; - top: 8px; - right: 15px; - speak: none; - text-align: center; - width: 32px; - height: 32px; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.wp-pointer-content p { - padding: 0 15px; -} - -.wp-pointer-buttons { - margin: 0; - padding: 5px 15px; - overflow: auto; -} - -.wp-pointer-buttons a { - float: left; - display: inline-block; - text-decoration: none; -} - -.wp-pointer-buttons a.close { - padding-right: 3px; - position: relative; -} - -.wp-pointer-buttons a.close:before { - background: none; - color: #b4b9be; - content: '\f153'; - display: block !important; - font: normal 16px/1 'dashicons'; - speak: none; - margin: 1px 0; - text-align: center; - -webkit-font-smoothing: antialiased !important; - width: 10px; - height: 100%; - position: absolute; - right: -15px; - top: 1px; -} - -.wp-pointer-buttons a.close:hover:before { - color: #c00; -} - -/* The arrow base class must take up no space, even with transparent borders. */ -.wp-pointer-arrow, -.wp-pointer-arrow-inner { - position: absolute; - width: 0; - height: 0; -} - -.wp-pointer-arrow { - z-index: 10; - width: 0; - height: 0; - border: 0 solid transparent; -} - -.wp-pointer-arrow-inner { - z-index: 20; -} - -/* Make Room for the Arrow! */ -.wp-pointer-top, -.wp-pointer-undefined { - padding-top: 13px; -} - -.wp-pointer-bottom { - margin-top: -13px; - padding-bottom: 13px; -} - -/* rtl:ignore */ -.wp-pointer-left { - padding-left: 13px; -} -/* rtl:ignore */ -.wp-pointer-right { - margin-left: -13px; - padding-right: 13px; -} - -/* Base Size & Positioning */ -.wp-pointer-top .wp-pointer-arrow, -.wp-pointer-bottom .wp-pointer-arrow, -.wp-pointer-undefined .wp-pointer-arrow { - right: 50px; -} - -.wp-pointer-left .wp-pointer-arrow, -.wp-pointer-right .wp-pointer-arrow { - top: 50%; - margin-top: -15px; -} - -/* Arrow Sprite */ -.wp-pointer-top .wp-pointer-arrow, -.wp-pointer-undefined .wp-pointer-arrow { - top: 0; - border-width: 0 13px 13px 13px; - border-bottom-color: #3592b6; -} - -.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer-undefined .wp-pointer-arrow-inner { - top: 1px; - margin-right: -13px; - margin-top: -13px; - border: 13px solid transparent; - border-bottom-color: #00a0d2; - display: block; - content: ' '; -} - -.wp-pointer-bottom .wp-pointer-arrow { - bottom: 0; - border-width: 13px 13px 0 13px; - border-top-color: #ccc; -} - -.wp-pointer-bottom .wp-pointer-arrow-inner { - bottom: 1px; - margin-right: -13px; - margin-bottom: -13px; - border: 13px solid transparent; - border-top-color: #fff; - display: block; - content: ' '; -} - -/* rtl:ignore */ -.wp-pointer-left .wp-pointer-arrow { - left: 0; - border-width: 13px 13px 13px 0; - border-right-color: #ccc; -} - -/* rtl:ignore */ -.wp-pointer-left .wp-pointer-arrow-inner { - left: 1px; - margin-left: -13px; - margin-top: -13px; - border: 13px solid transparent; - border-right-color: #fff; - display: block; - content: ' '; -} - -/* rtl:ignore */ -.wp-pointer-right .wp-pointer-arrow { - right: 0; - border-width: 13px 0 13px 13px; - border-left-color: #ccc; -} - -/* rtl:ignore */ -.wp-pointer-right .wp-pointer-arrow-inner { - right: 1px; - margin-right: -13px; - margin-top: -13px; - border: 13px solid transparent; - border-left-color: #fff; - display: block; - content: ' '; -} - -/* Disable pointers at responsive sizes */ -@media screen and ( max-width: 782px ) { - .wp-pointer { - display: none; - } -} diff --git a/wp-includes/css/wp-pointer-rtl.min.css b/wp-includes/css/wp-pointer-rtl.min.css deleted file mode 100644 index 6f52d54dfa..0000000000 --- a/wp-includes/css/wp-pointer-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -.wp-pointer-content{padding:0 0 10px;position:relative;font-size:13px;background:#fff;border:1px solid #dfdfdf;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.075);box-shadow:0 3px 6px rgba(0,0,0,.075)}.wp-pointer-content h3{position:relative;margin:-1px -1px 5px;padding:15px 60px 14px 18px;border:1px solid #3592b6;border-bottom:none;line-height:1.4em;font-size:14px;color:#fff;background:#00a0d2}.wp-pointer-content h3:before{background:#fff;-webkit-border-radius:50%;border-radius:50%;color:#00a0d2;content:'\f227';font:400 20px/1.6 dashicons;position:absolute;top:8px;right:15px;speak:none;text-align:center;width:32px;height:32px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-pointer-content p{padding:0 15px}.wp-pointer-buttons{margin:0;padding:5px 15px;overflow:auto}.wp-pointer-buttons a{float:left;display:inline-block;text-decoration:none}.wp-pointer-buttons a.close{padding-right:3px;position:relative}.wp-pointer-buttons a.close:before{background:0 0;color:#b4b9be;content:'\f153';display:block!important;font:400 16px/1 dashicons;speak:none;margin:1px 0;text-align:center;-webkit-font-smoothing:antialiased!important;width:10px;height:100%;position:absolute;right:-15px;top:1px}.wp-pointer-buttons a.close:hover:before{color:#c00}.wp-pointer-arrow,.wp-pointer-arrow-inner{position:absolute;width:0;height:0}.wp-pointer-arrow{z-index:10;width:0;height:0;border:0 solid transparent}.wp-pointer-arrow-inner{z-index:20}.wp-pointer-top,.wp-pointer-undefined{padding-top:13px}.wp-pointer-bottom{margin-top:-13px;padding-bottom:13px}.wp-pointer-left{padding-left:13px}.wp-pointer-right{margin-left:-13px;padding-right:13px}.wp-pointer-bottom .wp-pointer-arrow,.wp-pointer-top .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{right:50px}.wp-pointer-left .wp-pointer-arrow,.wp-pointer-right .wp-pointer-arrow{top:50%;margin-top:-15px}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{top:0;border-width:0 13px 13px;border-bottom-color:#3592b6}.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer-undefined .wp-pointer-arrow-inner{top:1px;margin-right:-13px;margin-top:-13px;border:13px solid transparent;border-bottom-color:#00a0d2;display:block;content:' '}.wp-pointer-bottom .wp-pointer-arrow{bottom:0;border-width:13px 13px 0;border-top-color:#ccc}.wp-pointer-bottom .wp-pointer-arrow-inner{bottom:1px;margin-right:-13px;margin-bottom:-13px;border:13px solid transparent;border-top-color:#fff;display:block;content:' '}.wp-pointer-left .wp-pointer-arrow{left:0;border-width:13px 13px 13px 0;border-right-color:#ccc}.wp-pointer-left .wp-pointer-arrow-inner{left:1px;margin-left:-13px;margin-top:-13px;border:13px solid transparent;border-right-color:#fff;display:block;content:' '}.wp-pointer-right .wp-pointer-arrow{right:0;border-width:13px 0 13px 13px;border-left-color:#ccc}.wp-pointer-right .wp-pointer-arrow-inner{right:1px;margin-right:-13px;margin-top:-13px;border:13px solid transparent;border-left-color:#fff;display:block;content:' '}@media screen and (max-width:782px){.wp-pointer{display:none}} \ No newline at end of file diff --git a/wp-includes/css/wp-pointer.css b/wp-includes/css/wp-pointer.css deleted file mode 100644 index f7e461628d..0000000000 --- a/wp-includes/css/wp-pointer.css +++ /dev/null @@ -1,212 +0,0 @@ -.wp-pointer-content { - padding: 0 0 10px; - position: relative; - font-size: 13px; - background: #fff; - border: 1px solid #dfdfdf; - -webkit-box-shadow: 0 3px 6px rgba(0,0,0,0.075); - box-shadow: 0 3px 6px rgba(0,0,0,0.075); -} - -.wp-pointer-content h3 { - position: relative; - margin: -1px -1px 5px; - padding: 15px 18px 14px 60px; - border: 1px solid #3592b6; - border-bottom: none; - line-height: 1.4em; - font-size: 14px; - color: #fff; - background: #00a0d2; -} - -.wp-pointer-content h3:before { - background: #fff; - -webkit-border-radius: 50%; - border-radius: 50%; - color: #00a0d2; - content: '\f227'; - font: normal 20px/1.6 'dashicons'; - position: absolute; - top: 8px; - left: 15px; - speak: none; - text-align: center; - width: 32px; - height: 32px; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.wp-pointer-content p { - padding: 0 15px; -} - -.wp-pointer-buttons { - margin: 0; - padding: 5px 15px; - overflow: auto; -} - -.wp-pointer-buttons a { - float: right; - display: inline-block; - text-decoration: none; -} - -.wp-pointer-buttons a.close { - padding-left: 3px; - position: relative; -} - -.wp-pointer-buttons a.close:before { - background: none; - color: #b4b9be; - content: '\f153'; - display: block !important; - font: normal 16px/1 'dashicons'; - speak: none; - margin: 1px 0; - text-align: center; - -webkit-font-smoothing: antialiased !important; - width: 10px; - height: 100%; - position: absolute; - left: -15px; - top: 1px; -} - -.wp-pointer-buttons a.close:hover:before { - color: #c00; -} - -/* The arrow base class must take up no space, even with transparent borders. */ -.wp-pointer-arrow, -.wp-pointer-arrow-inner { - position: absolute; - width: 0; - height: 0; -} - -.wp-pointer-arrow { - z-index: 10; - width: 0; - height: 0; - border: 0 solid transparent; -} - -.wp-pointer-arrow-inner { - z-index: 20; -} - -/* Make Room for the Arrow! */ -.wp-pointer-top, -.wp-pointer-undefined { - padding-top: 13px; -} - -.wp-pointer-bottom { - margin-top: -13px; - padding-bottom: 13px; -} - -/* rtl:ignore */ -.wp-pointer-left { - padding-left: 13px; -} -/* rtl:ignore */ -.wp-pointer-right { - margin-left: -13px; - padding-right: 13px; -} - -/* Base Size & Positioning */ -.wp-pointer-top .wp-pointer-arrow, -.wp-pointer-bottom .wp-pointer-arrow, -.wp-pointer-undefined .wp-pointer-arrow { - left: 50px; -} - -.wp-pointer-left .wp-pointer-arrow, -.wp-pointer-right .wp-pointer-arrow { - top: 50%; - margin-top: -15px; -} - -/* Arrow Sprite */ -.wp-pointer-top .wp-pointer-arrow, -.wp-pointer-undefined .wp-pointer-arrow { - top: 0; - border-width: 0 13px 13px 13px; - border-bottom-color: #3592b6; -} - -.wp-pointer-top .wp-pointer-arrow-inner, -.wp-pointer-undefined .wp-pointer-arrow-inner { - top: 1px; - margin-left: -13px; - margin-top: -13px; - border: 13px solid transparent; - border-bottom-color: #00a0d2; - display: block; - content: ' '; -} - -.wp-pointer-bottom .wp-pointer-arrow { - bottom: 0; - border-width: 13px 13px 0 13px; - border-top-color: #ccc; -} - -.wp-pointer-bottom .wp-pointer-arrow-inner { - bottom: 1px; - margin-left: -13px; - margin-bottom: -13px; - border: 13px solid transparent; - border-top-color: #fff; - display: block; - content: ' '; -} - -/* rtl:ignore */ -.wp-pointer-left .wp-pointer-arrow { - left: 0; - border-width: 13px 13px 13px 0; - border-right-color: #ccc; -} - -/* rtl:ignore */ -.wp-pointer-left .wp-pointer-arrow-inner { - left: 1px; - margin-left: -13px; - margin-top: -13px; - border: 13px solid transparent; - border-right-color: #fff; - display: block; - content: ' '; -} - -/* rtl:ignore */ -.wp-pointer-right .wp-pointer-arrow { - right: 0; - border-width: 13px 0 13px 13px; - border-left-color: #ccc; -} - -/* rtl:ignore */ -.wp-pointer-right .wp-pointer-arrow-inner { - right: 1px; - margin-right: -13px; - margin-top: -13px; - border: 13px solid transparent; - border-left-color: #fff; - display: block; - content: ' '; -} - -/* Disable pointers at responsive sizes */ -@media screen and ( max-width: 782px ) { - .wp-pointer { - display: none; - } -} diff --git a/wp-includes/css/wp-pointer.min.css b/wp-includes/css/wp-pointer.min.css deleted file mode 100644 index d337dbb8f4..0000000000 --- a/wp-includes/css/wp-pointer.min.css +++ /dev/null @@ -1 +0,0 @@ -.wp-pointer-content{padding:0 0 10px;position:relative;font-size:13px;background:#fff;border:1px solid #dfdfdf;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.075);box-shadow:0 3px 6px rgba(0,0,0,.075)}.wp-pointer-content h3{position:relative;margin:-1px -1px 5px;padding:15px 18px 14px 60px;border:1px solid #3592b6;border-bottom:none;line-height:1.4em;font-size:14px;color:#fff;background:#00a0d2}.wp-pointer-content h3:before{background:#fff;-webkit-border-radius:50%;border-radius:50%;color:#00a0d2;content:'\f227';font:400 20px/1.6 dashicons;position:absolute;top:8px;left:15px;speak:none;text-align:center;width:32px;height:32px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-pointer-content p{padding:0 15px}.wp-pointer-buttons{margin:0;padding:5px 15px;overflow:auto}.wp-pointer-buttons a{float:right;display:inline-block;text-decoration:none}.wp-pointer-buttons a.close{padding-left:3px;position:relative}.wp-pointer-buttons a.close:before{background:0 0;color:#b4b9be;content:'\f153';display:block!important;font:400 16px/1 dashicons;speak:none;margin:1px 0;text-align:center;-webkit-font-smoothing:antialiased!important;width:10px;height:100%;position:absolute;left:-15px;top:1px}.wp-pointer-buttons a.close:hover:before{color:#c00}.wp-pointer-arrow,.wp-pointer-arrow-inner{position:absolute;width:0;height:0}.wp-pointer-arrow{z-index:10;width:0;height:0;border:0 solid transparent}.wp-pointer-arrow-inner{z-index:20}.wp-pointer-top,.wp-pointer-undefined{padding-top:13px}.wp-pointer-bottom{margin-top:-13px;padding-bottom:13px}.wp-pointer-left{padding-left:13px}.wp-pointer-right{margin-left:-13px;padding-right:13px}.wp-pointer-bottom .wp-pointer-arrow,.wp-pointer-top .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{left:50px}.wp-pointer-left .wp-pointer-arrow,.wp-pointer-right .wp-pointer-arrow{top:50%;margin-top:-15px}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{top:0;border-width:0 13px 13px;border-bottom-color:#3592b6}.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer-undefined .wp-pointer-arrow-inner{top:1px;margin-left:-13px;margin-top:-13px;border:13px solid transparent;border-bottom-color:#00a0d2;display:block;content:' '}.wp-pointer-bottom .wp-pointer-arrow{bottom:0;border-width:13px 13px 0;border-top-color:#ccc}.wp-pointer-bottom .wp-pointer-arrow-inner{bottom:1px;margin-left:-13px;margin-bottom:-13px;border:13px solid transparent;border-top-color:#fff;display:block;content:' '}.wp-pointer-left .wp-pointer-arrow{left:0;border-width:13px 13px 13px 0;border-right-color:#ccc}.wp-pointer-left .wp-pointer-arrow-inner{left:1px;margin-left:-13px;margin-top:-13px;border:13px solid transparent;border-right-color:#fff;display:block;content:' '}.wp-pointer-right .wp-pointer-arrow{right:0;border-width:13px 0 13px 13px;border-left-color:#ccc}.wp-pointer-right .wp-pointer-arrow-inner{right:1px;margin-right:-13px;margin-top:-13px;border:13px solid transparent;border-left-color:#fff;display:block;content:' '}@media screen and (max-width:782px){.wp-pointer{display:none}} \ No newline at end of file diff --git a/wp-includes/date.php b/wp-includes/date.php deleted file mode 100644 index 2e903a2518..0000000000 --- a/wp-includes/date.php +++ /dev/null @@ -1,1013 +0,0 @@ -', '>=', '<', '<=', - * 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN'. Default '='. - * @type string $relation Optional. The boolean relationship between the date queries. Accepts 'OR' or 'AND'. - * Default 'OR'. - * @type array { - * Optional. An array of first-order clause parameters, or another fully-formed date query. - * - * @type string|array $before { - * Optional. Date to retrieve posts before. Accepts `strtotime()`-compatible string, - * or array of 'year', 'month', 'day' values. - * - * @type string $year The four-digit year. Default empty. Accepts any four-digit year. - * @type string $month Optional when passing array.The month of the year. - * Default (string:empty)|(array:1). Accepts numbers 1-12. - * @type string $day Optional when passing array.The day of the month. - * Default (string:empty)|(array:1). Accepts numbers 1-31. - * } - * @type string|array $after { - * Optional. Date to retrieve posts after. Accepts `strtotime()`-compatible string, - * or array of 'year', 'month', 'day' values. - * - * @type string $year The four-digit year. Accepts any four-digit year. Default empty. - * @type string $month Optional when passing array. The month of the year. Accepts numbers 1-12. - * Default (string:empty)|(array:12). - * @type string $day Optional when passing array.The day of the month. Accepts numbers 1-31. - * Default (string:empty)|(array:last day of month). - * } - * @type string $column Optional. Used to add a clause comparing a column other than the - * column specified in the top-level `$column` parameter. Accepts - * 'post_date', 'post_date_gmt', 'post_modified', 'post_modified_gmt', - * 'comment_date', 'comment_date_gmt'. Default is the value of - * top-level `$column`. - * @type string $compare Optional. The comparison operator. Accepts '=', '!=', '>', '>=', - * '<', '<=', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN'. 'IN', - * 'NOT IN', 'BETWEEN', and 'NOT BETWEEN'. Comparisons support - * arrays in some time-related parameters. Default '='. - * @type bool $inclusive Optional. Include results from dates specified in 'before' or - * 'after'. Default false. - * @type int|array $year Optional. The four-digit year number. Accepts any four-digit year - * or an array of years if `$compare` supports it. Default empty. - * @type int|array $month Optional. The two-digit month number. Accepts numbers 1-12 or an - * array of valid numbers if `$compare` supports it. Default empty. - * @type int|array $week Optional. The week number of the year. Accepts numbers 0-53 or an - * array of valid numbers if `$compare` supports it. Default empty. - * @type int|array $dayofyear Optional. The day number of the year. Accepts numbers 1-366 or an - * array of valid numbers if `$compare` supports it. - * @type int|array $day Optional. The day of the month. Accepts numbers 1-31 or an array - * of valid numbers if `$compare` supports it. Default empty. - * @type int|array $dayofweek Optional. The day number of the week. Accepts numbers 1-7 (1 is - * Sunday) or an array of valid numbers if `$compare` supports it. - * Default empty. - * @type int|array $dayofweek_iso Optional. The day number of the week (ISO). Accepts numbers 1-7 - * (1 is Monday) or an array of valid numbers if `$compare` supports it. - * Default empty. - * @type int|array $hour Optional. The hour of the day. Accepts numbers 0-23 or an array - * of valid numbers if `$compare` supports it. Default empty. - * @type int|array $minute Optional. The minute of the hour. Accepts numbers 0-60 or an array - * of valid numbers if `$compare` supports it. Default empty. - * @type int|array $second Optional. The second of the minute. Accepts numbers 0-60 or an - * array of valid numbers if `$compare` supports it. Default empty. - * } - * } - * } - * @param array $default_column Optional. Default column to query against. Default 'post_date'. - * Accepts 'post_date', 'post_date_gmt', 'post_modified', 'post_modified_gmt', - * 'comment_date', 'comment_date_gmt'. - */ - public function __construct( $date_query, $default_column = 'post_date' ) { - - if ( isset( $date_query['relation'] ) && 'OR' === strtoupper( $date_query['relation'] ) ) { - $this->relation = 'OR'; - } else { - $this->relation = 'AND'; - } - - if ( ! is_array( $date_query ) ) { - return; - } - - // Support for passing time-based keys in the top level of the $date_query array. - if ( ! isset( $date_query[0] ) && ! empty( $date_query ) ) { - $date_query = array( $date_query ); - } - - if ( empty( $date_query ) ) { - return; - } - - if ( ! empty( $date_query['column'] ) ) { - $date_query['column'] = esc_sql( $date_query['column'] ); - } else { - $date_query['column'] = esc_sql( $default_column ); - } - - $this->column = $this->validate_column( $this->column ); - - $this->compare = $this->get_compare( $date_query ); - - $this->queries = $this->sanitize_query( $date_query ); - } - - /** - * Recursive-friendly query sanitizer. - * - * Ensures that each query-level clause has a 'relation' key, and that - * each first-order clause contains all the necessary keys from - * `$defaults`. - * - * @since 4.1.0 - * @access public - * - * @param array $queries - * @param array $parent_query - * - * @return array Sanitized queries. - */ - public function sanitize_query( $queries, $parent_query = null ) { - $cleaned_query = array(); - - $defaults = array( - 'column' => 'post_date', - 'compare' => '=', - 'relation' => 'AND', - ); - - // Numeric keys should always have array values. - foreach ( $queries as $qkey => $qvalue ) { - if ( is_numeric( $qkey ) && ! is_array( $qvalue ) ) { - unset( $queries[ $qkey ] ); - } - } - - // Each query should have a value for each default key. Inherit from the parent when possible. - foreach ( $defaults as $dkey => $dvalue ) { - if ( isset( $queries[ $dkey ] ) ) { - continue; - } - - if ( isset( $parent_query[ $dkey ] ) ) { - $queries[ $dkey ] = $parent_query[ $dkey ]; - } else { - $queries[ $dkey ] = $dvalue; - } - } - - // Validate the dates passed in the query. - if ( $this->is_first_order_clause( $queries ) ) { - $this->validate_date_values( $queries ); - } - - foreach ( $queries as $key => $q ) { - if ( ! is_array( $q ) || in_array( $key, $this->time_keys, true ) ) { - // This is a first-order query. Trust the values and sanitize when building SQL. - $cleaned_query[ $key ] = $q; - } else { - // Any array without a time key is another query, so we recurse. - $cleaned_query[] = $this->sanitize_query( $q, $queries ); - } - } - - return $cleaned_query; - } - - /** - * Determine whether this is a first-order clause. - * - * Checks to see if the current clause has any time-related keys. - * If so, it's first-order. - * - * @param array $query Query clause. - * @return bool True if this is a first-order clause. - */ - protected function is_first_order_clause( $query ) { - $time_keys = array_intersect( $this->time_keys, array_keys( $query ) ); - return ! empty( $time_keys ); - } - - /** - * Determines and validates what comparison operator to use. - * - * @since 3.7.0 - * @access public - * - * @param array $query A date query or a date subquery. - * @return string The comparison operator. - */ - public function get_compare( $query ) { - if ( ! empty( $query['compare'] ) && in_array( $query['compare'], array( '=', '!=', '>', '>=', '<', '<=', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN' ) ) ) - return strtoupper( $query['compare'] ); - - return $this->compare; - } - - /** - * Validates the given date_query values and triggers errors if something is not valid. - * - * Note that date queries with invalid date ranges are allowed to - * continue (though of course no items will be found for impossible dates). - * This method only generates debug notices for these cases. - * - * @since 4.1.0 - * @access public - * - * @param array $date_query The date_query array. - * @return bool True if all values in the query are valid, false if one or more fail. - */ - public function validate_date_values( $date_query = array() ) { - if ( empty( $date_query ) ) { - return false; - } - - $valid = true; - - /* - * Validate 'before' and 'after' up front, then let the - * validation routine continue to be sure that all invalid - * values generate errors too. - */ - if ( array_key_exists( 'before', $date_query ) && is_array( $date_query['before'] ) ){ - $valid = $this->validate_date_values( $date_query['before'] ); - } - - if ( array_key_exists( 'after', $date_query ) && is_array( $date_query['after'] ) ){ - $valid = $this->validate_date_values( $date_query['after'] ); - } - - // Array containing all min-max checks. - $min_max_checks = array(); - - // Days per year. - if ( array_key_exists( 'year', $date_query ) ) { - /* - * If a year exists in the date query, we can use it to get the days. - * If multiple years are provided (as in a BETWEEN), use the first one. - */ - if ( is_array( $date_query['year'] ) ) { - $_year = reset( $date_query['year'] ); - } else { - $_year = $date_query['year']; - } - - $max_days_of_year = date( 'z', mktime( 0, 0, 0, 12, 31, $_year ) ) + 1; - } else { - // otherwise we use the max of 366 (leap-year) - $max_days_of_year = 366; - } - - $min_max_checks['dayofyear'] = array( - 'min' => 1, - 'max' => $max_days_of_year - ); - - // Days per week. - $min_max_checks['dayofweek'] = array( - 'min' => 1, - 'max' => 7 - ); - - // Days per week. - $min_max_checks['dayofweek_iso'] = array( - 'min' => 1, - 'max' => 7 - ); - - // Months per year. - $min_max_checks['month'] = array( - 'min' => 1, - 'max' => 12 - ); - - // Weeks per year. - if ( isset( $_year ) ) { - // If we have a specific year, use it to calculate number of weeks. - $date = new DateTime(); - $date->setISODate( $_year, 53 ); - $week_count = $date->format( "W" ) === "53" ? 53 : 52; - - } else { - // Otherwise set the week-count to a maximum of 53. - $week_count = 53; - } - - $min_max_checks['week'] = array( - 'min' => 1, - 'max' => $week_count - ); - - // Days per month. - $min_max_checks['day'] = array( - 'min' => 1, - 'max' => 31 - ); - - // Hours per day. - $min_max_checks['hour'] = array( - 'min' => 0, - 'max' => 23 - ); - - // Minutes per hour. - $min_max_checks['minute'] = array( - 'min' => 0, - 'max' => 59 - ); - - // Seconds per minute. - $min_max_checks['second'] = array( - 'min' => 0, - 'max' => 59 - ); - - // Concatenate and throw a notice for each invalid value. - foreach ( $min_max_checks as $key => $check ) { - if ( ! array_key_exists( $key, $date_query ) ) { - continue; - } - - // Throw a notice for each failing value. - foreach ( (array) $date_query[ $key ] as $_value ) { - $is_between = $_value >= $check['min'] && $_value <= $check['max']; - - if ( ! is_numeric( $_value ) || ! $is_between ) { - $error = sprintf( - /* translators: Date query invalid date message: 1: invalid value, 2: type of value, 3: minimum valid value, 4: maximum valid value */ - __( 'Invalid value %1$s for %2$s. Expected value should be between %3$s and %4$s.' ), - '' . esc_html( $_value ) . '', - '' . esc_html( $key ) . '', - '' . esc_html( $check['min'] ) . '', - '' . esc_html( $check['max'] ) . '' - ); - - _doing_it_wrong( __CLASS__, $error, '4.1.0' ); - - $valid = false; - } - } - } - - // If we already have invalid date messages, don't bother running through checkdate(). - if ( ! $valid ) { - return $valid; - } - - $day_month_year_error_msg = ''; - - $day_exists = array_key_exists( 'day', $date_query ) && is_numeric( $date_query['day'] ); - $month_exists = array_key_exists( 'month', $date_query ) && is_numeric( $date_query['month'] ); - $year_exists = array_key_exists( 'year', $date_query ) && is_numeric( $date_query['year'] ); - - if ( $day_exists && $month_exists && $year_exists ) { - // 1. Checking day, month, year combination. - if ( ! wp_checkdate( $date_query['month'], $date_query['day'], $date_query['year'], sprintf( '%s-%s-%s', $date_query['year'], $date_query['month'], $date_query['day'] ) ) ) { - /* translators: 1: year, 2: month, 3: day of month */ - $day_month_year_error_msg = sprintf( - __( 'The following values do not describe a valid date: year %1$s, month %2$s, day %3$s.' ), - '' . esc_html( $date_query['year'] ) . '', - '' . esc_html( $date_query['month'] ) . '', - '' . esc_html( $date_query['day'] ) . '' - ); - - $valid = false; - } - - } elseif ( $day_exists && $month_exists ) { - /* - * 2. checking day, month combination - * We use 2012 because, as a leap year, it's the most permissive. - */ - if ( ! wp_checkdate( $date_query['month'], $date_query['day'], 2012, sprintf( '2012-%s-%s', $date_query['month'], $date_query['day'] ) ) ) { - /* translators: 1: month, 2: day of month */ - $day_month_year_error_msg = sprintf( - __( 'The following values do not describe a valid date: month %1$s, day %2$s.' ), - '' . esc_html( $date_query['month'] ) . '', - '' . esc_html( $date_query['day'] ) . '' - ); - - $valid = false; - } - } - - if ( ! empty( $day_month_year_error_msg ) ) { - _doing_it_wrong( __CLASS__, $day_month_year_error_msg, '4.1.0' ); - } - - return $valid; - } - - /** - * Validates a column name parameter. - * - * Column names without a table prefix (like 'post_date') are checked against a whitelist of - * known tables, and then, if found, have a table prefix (such as 'wp_posts.') prepended. - * Prefixed column names (such as 'wp_posts.post_date') bypass this whitelist check, - * and are only sanitized to remove illegal characters. - * - * @since 3.7.0 - * @access public - * - * @param string $column The user-supplied column name. - * @return string A validated column name value. - */ - public function validate_column( $column ) { - global $wpdb; - - $valid_columns = array( - 'post_date', 'post_date_gmt', 'post_modified', - 'post_modified_gmt', 'comment_date', 'comment_date_gmt', - 'user_registered', - ); - - // Attempt to detect a table prefix. - if ( false === strpos( $column, '.' ) ) { - /** - * Filter the list of valid date query columns. - * - * @since 3.7.0 - * @since 4.1.0 Added 'user_registered' to the default recognized columns. - * - * @param array $valid_columns An array of valid date query columns. Defaults - * are 'post_date', 'post_date_gmt', 'post_modified', - * 'post_modified_gmt', 'comment_date', 'comment_date_gmt', - * 'user_registered' - */ - if ( ! in_array( $column, apply_filters( 'date_query_valid_columns', $valid_columns ) ) ) { - $column = 'post_date'; - } - - $known_columns = array( - $wpdb->posts => array( - 'post_date', - 'post_date_gmt', - 'post_modified', - 'post_modified_gmt', - ), - $wpdb->comments => array( - 'comment_date', - 'comment_date_gmt', - ), - $wpdb->users => array( - 'user_registered', - ), - ); - - // If it's a known column name, add the appropriate table prefix. - foreach ( $known_columns as $table_name => $table_columns ) { - if ( in_array( $column, $table_columns ) ) { - $column = $table_name . '.' . $column; - break; - } - } - - } - - // Remove unsafe characters. - return preg_replace( '/[^a-zA-Z0-9_$\.]/', '', $column ); - } - - /** - * Generate WHERE clause to be appended to a main query. - * - * @since 3.7.0 - * @access public - * - * @return string MySQL WHERE clause. - */ - public function get_sql() { - $sql = $this->get_sql_clauses(); - - $where = $sql['where']; - - /** - * Filter the date query WHERE clause. - * - * @since 3.7.0 - * - * @param string $where WHERE clause of the date query. - * @param WP_Date_Query $this The WP_Date_Query instance. - */ - return apply_filters( 'get_date_sql', $where, $this ); - } - - /** - * Generate SQL clauses to be appended to a main query. - * - * Called by the public {@see WP_Date_Query::get_sql()}, this method - * is abstracted out to maintain parity with the other Query classes. - * - * @since 4.1.0 - * @access protected - * - * @return array { - * Array containing JOIN and WHERE SQL clauses to append to the main query. - * - * @type string $join SQL fragment to append to the main JOIN clause. - * @type string $where SQL fragment to append to the main WHERE clause. - * } - */ - protected function get_sql_clauses() { - $sql = $this->get_sql_for_query( $this->queries ); - - if ( ! empty( $sql['where'] ) ) { - $sql['where'] = ' AND ' . $sql['where']; - } - - return $sql; - } - - /** - * Generate SQL clauses for a single query array. - * - * If nested subqueries are found, this method recurses the tree to - * produce the properly nested SQL. - * - * @since 4.1.0 - * @access protected - * - * @param array $query Query to parse. - * @param int $depth Optional. Number of tree levels deep we currently are. - * Used to calculate indentation. Default 0. - * @return array { - * Array containing JOIN and WHERE SQL clauses to append to a single query array. - * - * @type string $join SQL fragment to append to the main JOIN clause. - * @type string $where SQL fragment to append to the main WHERE clause. - * } - */ - protected function get_sql_for_query( $query, $depth = 0 ) { - $sql_chunks = array( - 'join' => array(), - 'where' => array(), - ); - - $sql = array( - 'join' => '', - 'where' => '', - ); - - $indent = ''; - for ( $i = 0; $i < $depth; $i++ ) { - $indent .= " "; - } - - foreach ( $query as $key => $clause ) { - if ( 'relation' === $key ) { - $relation = $query['relation']; - } elseif ( is_array( $clause ) ) { - - // This is a first-order clause. - if ( $this->is_first_order_clause( $clause ) ) { - $clause_sql = $this->get_sql_for_clause( $clause, $query ); - - $where_count = count( $clause_sql['where'] ); - if ( ! $where_count ) { - $sql_chunks['where'][] = ''; - } elseif ( 1 === $where_count ) { - $sql_chunks['where'][] = $clause_sql['where'][0]; - } else { - $sql_chunks['where'][] = '( ' . implode( ' AND ', $clause_sql['where'] ) . ' )'; - } - - $sql_chunks['join'] = array_merge( $sql_chunks['join'], $clause_sql['join'] ); - // This is a subquery, so we recurse. - } else { - $clause_sql = $this->get_sql_for_query( $clause, $depth + 1 ); - - $sql_chunks['where'][] = $clause_sql['where']; - $sql_chunks['join'][] = $clause_sql['join']; - } - } - } - - // Filter to remove empties. - $sql_chunks['join'] = array_filter( $sql_chunks['join'] ); - $sql_chunks['where'] = array_filter( $sql_chunks['where'] ); - - if ( empty( $relation ) ) { - $relation = 'AND'; - } - - // Filter duplicate JOIN clauses and combine into a single string. - if ( ! empty( $sql_chunks['join'] ) ) { - $sql['join'] = implode( ' ', array_unique( $sql_chunks['join'] ) ); - } - - // Generate a single WHERE clause with proper brackets and indentation. - if ( ! empty( $sql_chunks['where'] ) ) { - $sql['where'] = '( ' . "\n " . $indent . implode( ' ' . "\n " . $indent . $relation . ' ' . "\n " . $indent, $sql_chunks['where'] ) . "\n" . $indent . ')'; - } - - return $sql; - } - - /** - * Turns a single date clause into pieces for a WHERE clause. - * - * A wrapper for get_sql_for_clause(), included here for backward - * compatibility while retaining the naming convention across Query classes. - * - * @since 3.7.0 - * @access protected - * - * @param array $query Date query arguments. - * @return array { - * Array containing JOIN and WHERE SQL clauses to append to the main query. - * - * @type string $join SQL fragment to append to the main JOIN clause. - * @type string $where SQL fragment to append to the main WHERE clause. - * } - */ - protected function get_sql_for_subquery( $query ) { - return $this->get_sql_for_clause( $query, '' ); - } - - /** - * Turns a first-order date query into SQL for a WHERE clause. - * - * @since 4.1.0 - * @access protected - * - * @param array $query Date query clause. - * @param array $parent_query Parent query of the current date query. - * @return array { - * Array containing JOIN and WHERE SQL clauses to append to the main query. - * - * @type string $join SQL fragment to append to the main JOIN clause. - * @type string $where SQL fragment to append to the main WHERE clause. - * } - */ - protected function get_sql_for_clause( $query, $parent_query ) { - global $wpdb; - - // The sub-parts of a $where part. - $where_parts = array(); - - $column = ( ! empty( $query['column'] ) ) ? esc_sql( $query['column'] ) : $this->column; - - $column = $this->validate_column( $column ); - - $compare = $this->get_compare( $query ); - - $inclusive = ! empty( $query['inclusive'] ); - - // Assign greater- and less-than values. - $lt = '<'; - $gt = '>'; - - if ( $inclusive ) { - $lt .= '='; - $gt .= '='; - } - - // Range queries. - if ( ! empty( $query['after'] ) ) - $where_parts[] = $wpdb->prepare( "$column $gt %s", $this->build_mysql_datetime( $query['after'], ! $inclusive ) ); - - if ( ! empty( $query['before'] ) ) - $where_parts[] = $wpdb->prepare( "$column $lt %s", $this->build_mysql_datetime( $query['before'], $inclusive ) ); - - // Specific value queries. - - if ( isset( $query['year'] ) && $value = $this->build_value( $compare, $query['year'] ) ) - $where_parts[] = "YEAR( $column ) $compare $value"; - - if ( isset( $query['month'] ) && $value = $this->build_value( $compare, $query['month'] ) ) { - $where_parts[] = "MONTH( $column ) $compare $value"; - } elseif ( isset( $query['monthnum'] ) && $value = $this->build_value( $compare, $query['monthnum'] ) ) { - $where_parts[] = "MONTH( $column ) $compare $value"; - } - if ( isset( $query['week'] ) && false !== ( $value = $this->build_value( $compare, $query['week'] ) ) ) { - $where_parts[] = _wp_mysql_week( $column ) . " $compare $value"; - } elseif ( isset( $query['w'] ) && false !== ( $value = $this->build_value( $compare, $query['w'] ) ) ) { - $where_parts[] = _wp_mysql_week( $column ) . " $compare $value"; - } - if ( isset( $query['dayofyear'] ) && $value = $this->build_value( $compare, $query['dayofyear'] ) ) - $where_parts[] = "DAYOFYEAR( $column ) $compare $value"; - - if ( isset( $query['day'] ) && $value = $this->build_value( $compare, $query['day'] ) ) - $where_parts[] = "DAYOFMONTH( $column ) $compare $value"; - - if ( isset( $query['dayofweek'] ) && $value = $this->build_value( $compare, $query['dayofweek'] ) ) - $where_parts[] = "DAYOFWEEK( $column ) $compare $value"; - - if ( isset( $query['dayofweek_iso'] ) && $value = $this->build_value( $compare, $query['dayofweek_iso'] ) ) - $where_parts[] = "WEEKDAY( $column ) + 1 $compare $value"; - - if ( isset( $query['hour'] ) || isset( $query['minute'] ) || isset( $query['second'] ) ) { - // Avoid notices. - foreach ( array( 'hour', 'minute', 'second' ) as $unit ) { - if ( ! isset( $query[ $unit ] ) ) { - $query[ $unit ] = null; - } - } - - if ( $time_query = $this->build_time_query( $column, $compare, $query['hour'], $query['minute'], $query['second'] ) ) { - $where_parts[] = $time_query; - } - } - - /* - * Return an array of 'join' and 'where' for compatibility - * with other query classes. - */ - return array( - 'where' => $where_parts, - 'join' => array(), - ); - } - - /** - * Builds and validates a value string based on the comparison operator. - * - * @since 3.7.0 - * @access public - * - * @param string $compare The compare operator to use - * @param string|array $value The value - * @return string|false|int The value to be used in SQL or false on error. - */ - public function build_value( $compare, $value ) { - if ( ! isset( $value ) ) - return false; - - switch ( $compare ) { - case 'IN': - case 'NOT IN': - $value = (array) $value; - - // Remove non-numeric values. - $value = array_filter( $value, 'is_numeric' ); - - if ( empty( $value ) ) { - return false; - } - - return '(' . implode( ',', array_map( 'intval', $value ) ) . ')'; - - case 'BETWEEN': - case 'NOT BETWEEN': - if ( ! is_array( $value ) || 2 != count( $value ) ) { - $value = array( $value, $value ); - } else { - $value = array_values( $value ); - } - - // If either value is non-numeric, bail. - foreach ( $value as $v ) { - if ( ! is_numeric( $v ) ) { - return false; - } - } - - $value = array_map( 'intval', $value ); - - return $value[0] . ' AND ' . $value[1]; - - default; - if ( ! is_numeric( $value ) ) { - return false; - } - - return (int) $value; - } - } - - /** - * Builds a MySQL format date/time based on some query parameters. - * - * You can pass an array of values (year, month, etc.) with missing parameter values being defaulted to - * either the maximum or minimum values (controlled by the $default_to parameter). Alternatively you can - * pass a string that that will be run through strtotime(). - * - * @since 3.7.0 - * @access public - * - * @param string|array $datetime An array of parameters or a strotime() string - * @param bool $default_to_max Whether to round up incomplete dates. Supported by values - * of $datetime that are arrays, or string values that are a - * subset of MySQL date format ('Y', 'Y-m', 'Y-m-d', 'Y-m-d H:i'). - * Default: false. - * @return string|false A MySQL format date/time or false on failure - */ - public function build_mysql_datetime( $datetime, $default_to_max = false ) { - $now = current_time( 'timestamp' ); - - if ( ! is_array( $datetime ) ) { - - /* - * Try to parse some common date formats, so we can detect - * the level of precision and support the 'inclusive' parameter. - */ - if ( preg_match( '/^(\d{4})$/', $datetime, $matches ) ) { - // Y - $datetime = array( - 'year' => intval( $matches[1] ), - ); - - } elseif ( preg_match( '/^(\d{4})\-(\d{2})$/', $datetime, $matches ) ) { - // Y-m - $datetime = array( - 'year' => intval( $matches[1] ), - 'month' => intval( $matches[2] ), - ); - - } elseif ( preg_match( '/^(\d{4})\-(\d{2})\-(\d{2})$/', $datetime, $matches ) ) { - // Y-m-d - $datetime = array( - 'year' => intval( $matches[1] ), - 'month' => intval( $matches[2] ), - 'day' => intval( $matches[3] ), - ); - - } elseif ( preg_match( '/^(\d{4})\-(\d{2})\-(\d{2}) (\d{2}):(\d{2})$/', $datetime, $matches ) ) { - // Y-m-d H:i - $datetime = array( - 'year' => intval( $matches[1] ), - 'month' => intval( $matches[2] ), - 'day' => intval( $matches[3] ), - 'hour' => intval( $matches[4] ), - 'minute' => intval( $matches[5] ), - ); - } - - // If no match is found, we don't support default_to_max. - if ( ! is_array( $datetime ) ) { - // @todo Timezone issues here possibly - return gmdate( 'Y-m-d H:i:s', strtotime( $datetime, $now ) ); - } - } - - $datetime = array_map( 'absint', $datetime ); - - if ( ! isset( $datetime['year'] ) ) - $datetime['year'] = gmdate( 'Y', $now ); - - if ( ! isset( $datetime['month'] ) ) - $datetime['month'] = ( $default_to_max ) ? 12 : 1; - - if ( ! isset( $datetime['day'] ) ) - $datetime['day'] = ( $default_to_max ) ? (int) date( 't', mktime( 0, 0, 0, $datetime['month'], 1, $datetime['year'] ) ) : 1; - - if ( ! isset( $datetime['hour'] ) ) - $datetime['hour'] = ( $default_to_max ) ? 23 : 0; - - if ( ! isset( $datetime['minute'] ) ) - $datetime['minute'] = ( $default_to_max ) ? 59 : 0; - - if ( ! isset( $datetime['second'] ) ) - $datetime['second'] = ( $default_to_max ) ? 59 : 0; - - return sprintf( '%04d-%02d-%02d %02d:%02d:%02d', $datetime['year'], $datetime['month'], $datetime['day'], $datetime['hour'], $datetime['minute'], $datetime['second'] ); - } - - /** - * Builds a query string for comparing time values (hour, minute, second). - * - * If just hour, minute, or second is set than a normal comparison will be done. - * However if multiple values are passed, a pseudo-decimal time will be created - * in order to be able to accurately compare against. - * - * @since 3.7.0 - * @access public - * - * @param string $column The column to query against. Needs to be pre-validated! - * @param string $compare The comparison operator. Needs to be pre-validated! - * @param int|null $hour Optional. An hour value (0-23). - * @param int|null $minute Optional. A minute value (0-59). - * @param int|null $second Optional. A second value (0-59). - * @return string|false A query part or false on failure. - */ - public function build_time_query( $column, $compare, $hour = null, $minute = null, $second = null ) { - global $wpdb; - - // Have to have at least one - if ( ! isset( $hour ) && ! isset( $minute ) && ! isset( $second ) ) - return false; - - // Complex combined queries aren't supported for multi-value queries - if ( in_array( $compare, array( 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN' ) ) ) { - $return = array(); - - if ( isset( $hour ) && false !== ( $value = $this->build_value( $compare, $hour ) ) ) - $return[] = "HOUR( $column ) $compare $value"; - - if ( isset( $minute ) && false !== ( $value = $this->build_value( $compare, $minute ) ) ) - $return[] = "MINUTE( $column ) $compare $value"; - - if ( isset( $second ) && false !== ( $value = $this->build_value( $compare, $second ) ) ) - $return[] = "SECOND( $column ) $compare $value"; - - return implode( ' AND ', $return ); - } - - // Cases where just one unit is set - if ( isset( $hour ) && ! isset( $minute ) && ! isset( $second ) && false !== ( $value = $this->build_value( $compare, $hour ) ) ) { - return "HOUR( $column ) $compare $value"; - } elseif ( ! isset( $hour ) && isset( $minute ) && ! isset( $second ) && false !== ( $value = $this->build_value( $compare, $minute ) ) ) { - return "MINUTE( $column ) $compare $value"; - } elseif ( ! isset( $hour ) && ! isset( $minute ) && isset( $second ) && false !== ( $value = $this->build_value( $compare, $second ) ) ) { - return "SECOND( $column ) $compare $value"; - } - - // Single units were already handled. Since hour & second isn't allowed, minute must to be set. - if ( ! isset( $minute ) ) - return false; - - $format = $time = ''; - - // Hour - if ( $hour ) { - $format .= '%H.'; - $time .= sprintf( '%02d', $hour ) . '.'; - } else { - $format .= '0.'; - $time .= '0.'; - } - - // Minute - $format .= '%i'; - $time .= sprintf( '%02d', $minute ); - - if ( isset( $second ) ) { - $format .= '%s'; - $time .= sprintf( '%02d', $second ); - } - - return $wpdb->prepare( "DATE_FORMAT( $column, %s ) $compare %f", $format, $time ); - } -} diff --git a/wp-includes/default-constants.php b/wp-includes/default-constants.php deleted file mode 100644 index 7325845966..0000000000 --- a/wp-includes/default-constants.php +++ /dev/null @@ -1,338 +0,0 @@ - 'widget_pages', 'description' => __( 'A list of your site’s Pages.') ); - parent::__construct('pages', __('Pages'), $widget_ops); - } - - /** - * @param array $args - * @param array $instance - */ - public function widget( $args, $instance ) { - - /** - * Filter the widget title. - * - * @since 2.6.0 - * - * @param string $title The widget title. Default 'Pages'. - * @param array $instance An array of the widget's settings. - * @param mixed $id_base The widget ID. - */ - $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Pages' ) : $instance['title'], $instance, $this->id_base ); - - $sortby = empty( $instance['sortby'] ) ? 'menu_order' : $instance['sortby']; - $exclude = empty( $instance['exclude'] ) ? '' : $instance['exclude']; - - if ( $sortby == 'menu_order' ) - $sortby = 'menu_order, post_title'; - - /** - * Filter the arguments for the Pages widget. - * - * @since 2.8.0 - * - * @see wp_list_pages() - * - * @param array $args An array of arguments to retrieve the pages list. - */ - $out = wp_list_pages( apply_filters( 'widget_pages_args', array( - 'title_li' => '', - 'echo' => 0, - 'sort_column' => $sortby, - 'exclude' => $exclude - ) ) ); - - if ( ! empty( $out ) ) { - echo $args['before_widget']; - if ( $title ) { - echo $args['before_title'] . $title . $args['after_title']; - } - ?> -
      - -
    - 'post_title', 'title' => '', 'exclude' => '') ); - $title = esc_attr( $instance['title'] ); - $exclude = esc_attr( $instance['exclude'] ); - ?> -

    -

    - - -

    -

    - -
    - -

    - __( "Your blogroll" ) ); - parent::__construct('links', __('Links'), $widget_ops); - } - - /** - * @param array $args - * @param array $instance - */ - public function widget( $args, $instance ) { - $show_description = isset($instance['description']) ? $instance['description'] : false; - $show_name = isset($instance['name']) ? $instance['name'] : false; - $show_rating = isset($instance['rating']) ? $instance['rating'] : false; - $show_images = isset($instance['images']) ? $instance['images'] : true; - $category = isset($instance['category']) ? $instance['category'] : false; - $orderby = isset( $instance['orderby'] ) ? $instance['orderby'] : 'name'; - $order = $orderby == 'rating' ? 'DESC' : 'ASC'; - $limit = isset( $instance['limit'] ) ? $instance['limit'] : -1; - - $before_widget = preg_replace( '/id="[^"]*"/', 'id="%id"', $args['before_widget'] ); - - /** - * Filter the arguments for the Links widget. - * - * @since 2.6.0 - * - * @see wp_list_bookmarks() - * - * @param array $args An array of arguments to retrieve the links list. - */ - wp_list_bookmarks( apply_filters( 'widget_links_args', array( - 'title_before' => $args['before_title'], 'title_after' => $args['after_title'], - 'category_before' => $before_widget, 'category_after' => $args['after_widget'], - 'show_images' => $show_images, 'show_description' => $show_description, - 'show_name' => $show_name, 'show_rating' => $show_rating, - 'category' => $category, 'class' => 'linkcat widget', - 'orderby' => $orderby, 'order' => $order, - 'limit' => $limit, - ) ) ); - } - - /** - * @param array $new_instance - * @param array $old_instance - * @return array - */ - public function update( $new_instance, $old_instance ) { - $new_instance = (array) $new_instance; - $instance = array( 'images' => 0, 'name' => 0, 'description' => 0, 'rating' => 0 ); - foreach ( $instance as $field => $val ) { - if ( isset($new_instance[$field]) ) - $instance[$field] = 1; - } - - $instance['orderby'] = 'name'; - if ( in_array( $new_instance['orderby'], array( 'name', 'rating', 'id', 'rand' ) ) ) - $instance['orderby'] = $new_instance['orderby']; - - $instance['category'] = intval( $new_instance['category'] ); - $instance['limit'] = ! empty( $new_instance['limit'] ) ? intval( $new_instance['limit'] ) : -1; - - return $instance; - } - - /** - * @param array $instance - */ - public function form( $instance ) { - - //Defaults - $instance = wp_parse_args( (array) $instance, array( 'images' => true, 'name' => true, 'description' => false, 'rating' => false, 'category' => false, 'orderby' => 'name', 'limit' => -1 ) ); - $link_cats = get_terms( 'link_category' ); - if ( ! $limit = intval( $instance['limit'] ) ) - $limit = -1; -?> -

    - - - - -

    -

    - id="get_field_id('images'); ?>" name="get_field_name('images'); ?>" /> -
    - id="get_field_id('name'); ?>" name="get_field_name('name'); ?>" /> -
    - id="get_field_id('description'); ?>" name="get_field_name('description'); ?>" /> -
    - id="get_field_id('rating'); ?>" name="get_field_name('rating'); ?>" /> - -

    -

    - - -

    - 'widget_search', 'description' => __( "A search form for your site.") ); - parent::__construct( 'search', _x( 'Search', 'Search widget' ), $widget_ops ); - } - - /** - * @param array $args - * @param array $instance - */ - public function widget( $args, $instance ) { - /** This filter is documented in wp-includes/default-widgets.php */ - $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); - - echo $args['before_widget']; - if ( $title ) { - echo $args['before_title'] . $title . $args['after_title']; - } - - // Use current theme search form if it exists - get_search_form(); - - echo $args['after_widget']; - } - - /** - * @param array $instance - */ - public function form( $instance ) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '') ); - $title = $instance['title']; -?> -

    - '')); - $instance['title'] = strip_tags($new_instance['title']); - return $instance; - } - -} - -/** - * Archives widget class - * - * @since 2.8.0 - */ -class WP_Widget_Archives extends WP_Widget { - - public function __construct() { - $widget_ops = array('classname' => 'widget_archive', 'description' => __( 'A monthly archive of your site’s Posts.') ); - parent::__construct('archives', __('Archives'), $widget_ops); - } - - /** - * @param array $args - * @param array $instance - */ - public function widget( $args, $instance ) { - $c = ! empty( $instance['count'] ) ? '1' : '0'; - $d = ! empty( $instance['dropdown'] ) ? '1' : '0'; - - /** This filter is documented in wp-includes/default-widgets.php */ - $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Archives' ) : $instance['title'], $instance, $this->id_base ); - - echo $args['before_widget']; - if ( $title ) { - echo $args['before_title'] . $title . $args['after_title']; - } - - if ( $d ) { - $dropdown_id = "{$this->id_base}-dropdown-{$this->number}"; -?> - - - -
      - 'monthly', - 'show_post_count' => $c - ) ) ); -?> -
    - '', 'count' => 0, 'dropdown' => '') ); - $instance['title'] = strip_tags($new_instance['title']); - $instance['count'] = $new_instance['count'] ? 1 : 0; - $instance['dropdown'] = $new_instance['dropdown'] ? 1 : 0; - - return $instance; - } - - /** - * @param array $instance - */ - public function form( $instance ) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'count' => 0, 'dropdown' => '') ); - $title = strip_tags($instance['title']); - $count = $instance['count'] ? 'checked="checked"' : ''; - $dropdown = $instance['dropdown'] ? 'checked="checked"' : ''; -?> -

    -

    - id="get_field_id('dropdown'); ?>" name="get_field_name('dropdown'); ?>" /> -
    - id="get_field_id('count'); ?>" name="get_field_name('count'); ?>" /> -

    - 'widget_meta', 'description' => __( "Login, RSS, & WordPress.org links.") ); - parent::__construct('meta', __('Meta'), $widget_ops); - } - - /** - * @param array $args - * @param array $instance - */ - public function widget( $args, $instance ) { - /** This filter is documented in wp-includes/default-widgets.php */ - $title = apply_filters( 'widget_title', empty($instance['title']) ? __( 'Meta' ) : $instance['title'], $instance, $this->id_base ); - - echo $args['before_widget']; - if ( $title ) { - echo $args['before_title'] . $title . $args['after_title']; - } -?> -
      - -
    • -
    • RSS'); ?>
    • -
    • RSS'); ?>
    • -%s', - esc_url( __( 'https://wordpress.org/' ) ), - esc_attr__( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.' ), - _x( 'WordPress.org', 'meta widget link text' ) - ) ); - - wp_meta(); -?> -
    - '' ) ); - $title = strip_tags($instance['title']); -?> -

    - 'widget_calendar', 'description' => __( 'A calendar of your site’s Posts.') ); - parent::__construct('calendar', __('Calendar'), $widget_ops); - } - - /** - * @param array $args - * @param array $instance - */ - public function widget( $args, $instance ) { - /** This filter is documented in wp-includes/default-widgets.php */ - $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); - - echo $args['before_widget']; - if ( $title ) { - echo $args['before_title'] . $title . $args['after_title']; - } - echo '
    '; - get_calendar(); - echo '
    '; - echo $args['after_widget']; - } - - /** - * @param array $new_instance - * @param array $old_instance - * @return array - */ - public function update( $new_instance, $old_instance ) { - $instance = $old_instance; - $instance['title'] = strip_tags($new_instance['title']); - - return $instance; - } - - /** - * @param array $instance - */ - public function form( $instance ) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); - $title = strip_tags($instance['title']); -?> -

    -

    - 'widget_text', 'description' => __('Arbitrary text or HTML.')); - $control_ops = array('width' => 400, 'height' => 350); - parent::__construct('text', __('Text'), $widget_ops, $control_ops); - } - - /** - * @param array $args - * @param array $instance - */ - public function widget( $args, $instance ) { - /** This filter is documented in wp-includes/default-widgets.php */ - $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); - - /** - * Filter the content of the Text widget. - * - * @since 2.3.0 - * - * @param string $widget_text The widget content. - * @param WP_Widget $instance WP_Widget instance. - */ - $text = apply_filters( 'widget_text', empty( $instance['text'] ) ? '' : $instance['text'], $instance ); - echo $args['before_widget']; - if ( ! empty( $title ) ) { - echo $args['before_title'] . $title . $args['after_title']; - } ?> -
    - '', 'text' => '' ) ); - $title = strip_tags($instance['title']); - $text = esc_textarea($instance['text']); -?> -

    -

    - -

    -

    - -

    /> 

    - 'widget_categories', 'description' => __( "A list or dropdown of categories." ) ); - parent::__construct('categories', __('Categories'), $widget_ops); - } - - /** - * @staticvar bool $first_dropdown - * - * @param array $args - * @param array $instance - */ - public function widget( $args, $instance ) { - static $first_dropdown = true; - - /** This filter is documented in wp-includes/default-widgets.php */ - $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Categories' ) : $instance['title'], $instance, $this->id_base ); - - $c = ! empty( $instance['count'] ) ? '1' : '0'; - $h = ! empty( $instance['hierarchical'] ) ? '1' : '0'; - $d = ! empty( $instance['dropdown'] ) ? '1' : '0'; - - echo $args['before_widget']; - if ( $title ) { - echo $args['before_title'] . $title . $args['after_title']; - } - - $cat_args = array( - 'orderby' => 'name', - 'show_count' => $c, - 'hierarchical' => $h - ); - - if ( $d ) { - $dropdown_id = ( $first_dropdown ) ? 'cat' : "{$this->id_base}-dropdown-{$this->number}"; - $first_dropdown = false; - - echo ''; - - $cat_args['show_option_none'] = __( 'Select Category' ); - $cat_args['id'] = $dropdown_id; - - /** - * Filter the arguments for the Categories widget drop-down. - * - * @since 2.8.0 - * - * @see wp_dropdown_categories() - * - * @param array $cat_args An array of Categories widget drop-down arguments. - */ - wp_dropdown_categories( apply_filters( 'widget_categories_dropdown_args', $cat_args ) ); -?> - - - - -
      - -
    - '') ); - $title = esc_attr( $instance['title'] ); - $count = isset($instance['count']) ? (bool) $instance['count'] :false; - $hierarchical = isset( $instance['hierarchical'] ) ? (bool) $instance['hierarchical'] : false; - $dropdown = isset( $instance['dropdown'] ) ? (bool) $instance['dropdown'] : false; -?> -

    -

    - -

    /> -
    - - /> -
    - - /> -

    - 'widget_recent_entries', 'description' => __( "Your site’s most recent Posts.") ); - parent::__construct('recent-posts', __('Recent Posts'), $widget_ops); - $this->alt_option_name = 'widget_recent_entries'; - - add_action( 'save_post', array($this, 'flush_widget_cache') ); - add_action( 'deleted_post', array($this, 'flush_widget_cache') ); - add_action( 'switch_theme', array($this, 'flush_widget_cache') ); - } - - /** - * @param array $args - * @param array $instance - */ - public function widget( $args, $instance ) { - $cache = array(); - if ( ! $this->is_preview() ) { - $cache = wp_cache_get( 'widget_recent_posts', 'widget' ); - } - - if ( ! is_array( $cache ) ) { - $cache = array(); - } - - if ( ! isset( $args['widget_id'] ) ) { - $args['widget_id'] = $this->id; - } - - if ( isset( $cache[ $args['widget_id'] ] ) ) { - echo $cache[ $args['widget_id'] ]; - return; - } - - ob_start(); - - $title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : __( 'Recent Posts' ); - - /** This filter is documented in wp-includes/default-widgets.php */ - $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); - - $number = ( ! empty( $instance['number'] ) ) ? absint( $instance['number'] ) : 5; - if ( ! $number ) - $number = 5; - $show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : false; - - /** - * Filter the arguments for the Recent Posts widget. - * - * @since 3.4.0 - * - * @see WP_Query::get_posts() - * - * @param array $args An array of arguments used to retrieve the recent posts. - */ - $r = new WP_Query( apply_filters( 'widget_posts_args', array( - 'posts_per_page' => $number, - 'no_found_rows' => true, - 'post_status' => 'publish', - 'ignore_sticky_posts' => true - ) ) ); - - if ($r->have_posts()) : -?> - - -
      - have_posts() ) : $r->the_post(); ?> -
    • - - - - -
    • - -
    - -is_preview() ) { - $cache[ $args['widget_id'] ] = ob_get_flush(); - wp_cache_set( 'widget_recent_posts', $cache, 'widget' ); - } else { - ob_end_flush(); - } - } - - /** - * @param array $new_instance - * @param array $old_instance - * @return array - */ - public function update( $new_instance, $old_instance ) { - $instance = $old_instance; - $instance['title'] = strip_tags($new_instance['title']); - $instance['number'] = (int) $new_instance['number']; - $instance['show_date'] = isset( $new_instance['show_date'] ) ? (bool) $new_instance['show_date'] : false; - $this->flush_widget_cache(); - - $alloptions = wp_cache_get( 'alloptions', 'options' ); - if ( isset($alloptions['widget_recent_entries']) ) - delete_option('widget_recent_entries'); - - return $instance; - } - - /** - * @access public - */ - public function flush_widget_cache() { - wp_cache_delete('widget_recent_posts', 'widget'); - } - - /** - * @param array $instance - */ - public function form( $instance ) { - $title = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; - $number = isset( $instance['number'] ) ? absint( $instance['number'] ) : 5; - $show_date = isset( $instance['show_date'] ) ? (bool) $instance['show_date'] : false; -?> -

    -

    - -

    -

    - -

    id="get_field_id( 'show_date' ); ?>" name="get_field_name( 'show_date' ); ?>" /> -

    - 'widget_recent_comments', 'description' => __( 'Your site’s most recent comments.' ) ); - parent::__construct('recent-comments', __('Recent Comments'), $widget_ops); - $this->alt_option_name = 'widget_recent_comments'; - - if ( is_active_widget(false, false, $this->id_base) ) - add_action( 'wp_head', array($this, 'recent_comments_style') ); - - add_action( 'comment_post', array($this, 'flush_widget_cache') ); - add_action( 'edit_comment', array($this, 'flush_widget_cache') ); - add_action( 'transition_comment_status', array($this, 'flush_widget_cache') ); - } - - /** - * @access public - */ - public function recent_comments_style() { - /** - * Filter the Recent Comments default widget styles. - * - * @since 3.1.0 - * - * @param bool $active Whether the widget is active. Default true. - * @param string $id_base The widget ID. - */ - if ( ! current_theme_supports( 'widgets' ) // Temp hack #14876 - || ! apply_filters( 'show_recent_comments_widget_style', true, $this->id_base ) ) - return; - ?> - -is_preview() ) { - $cache = wp_cache_get('widget_recent_comments', 'widget'); - } - if ( ! is_array( $cache ) ) { - $cache = array(); - } - - if ( ! isset( $args['widget_id'] ) ) - $args['widget_id'] = $this->id; - - if ( isset( $cache[ $args['widget_id'] ] ) ) { - echo $cache[ $args['widget_id'] ]; - return; - } - - $output = ''; - - $title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : __( 'Recent Comments' ); - - /** This filter is documented in wp-includes/default-widgets.php */ - $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); - - $number = ( ! empty( $instance['number'] ) ) ? absint( $instance['number'] ) : 5; - if ( ! $number ) - $number = 5; - - /** - * Filter the arguments for the Recent Comments widget. - * - * @since 3.4.0 - * - * @see WP_Comment_Query::query() for information on accepted arguments. - * - * @param array $comment_args An array of arguments used to retrieve the recent comments. - */ - $comments = get_comments( apply_filters( 'widget_comments_args', array( - 'number' => $number, - 'status' => 'approve', - 'post_status' => 'publish' - ) ) ); - - $output .= $args['before_widget']; - if ( $title ) { - $output .= $args['before_title'] . $title . $args['after_title']; - } - - $output .= '
      '; - if ( is_array( $comments ) && $comments ) { - // Prime cache for associated posts. (Prime post term cache if we need it for permalinks.) - $post_ids = array_unique( wp_list_pluck( $comments, 'comment_post_ID' ) ); - _prime_post_caches( $post_ids, strpos( get_option( 'permalink_structure' ), '%category%' ), false ); - - foreach ( (array) $comments as $comment) { - $output .= '
    • '; - /* translators: comments widget: 1: comment author, 2: post link */ - $output .= sprintf( _x( '%1$s on %2$s', 'widgets' ), - '' . get_comment_author_link() . '', - '' . get_the_title( $comment->comment_post_ID ) . '' - ); - $output .= '
    • '; - } - } - $output .= '
    '; - $output .= $args['after_widget']; - - echo $output; - - if ( ! $this->is_preview() ) { - $cache[ $args['widget_id'] ] = $output; - wp_cache_set( 'widget_recent_comments', $cache, 'widget' ); - } - } - - /** - * @param array $new_instance - * @param array $old_instance - * @return array - */ - public function update( $new_instance, $old_instance ) { - $instance = $old_instance; - $instance['title'] = strip_tags($new_instance['title']); - $instance['number'] = absint( $new_instance['number'] ); - $this->flush_widget_cache(); - - $alloptions = wp_cache_get( 'alloptions', 'options' ); - if ( isset($alloptions['widget_recent_comments']) ) - delete_option('widget_recent_comments'); - - return $instance; - } - - /** - * @param array $instance - */ - public function form( $instance ) { - $title = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; - $number = isset( $instance['number'] ) ? absint( $instance['number'] ) : 5; -?> -

    -

    - -

    -

    - __('Entries from any RSS or Atom feed.') ); - $control_ops = array( 'width' => 400, 'height' => 200 ); - parent::__construct( 'rss', __('RSS'), $widget_ops, $control_ops ); - } - - /** - * @param array $args - * @param array $instance - */ - public function widget( $args, $instance ) { - if ( isset($instance['error']) && $instance['error'] ) - return; - - $url = ! empty( $instance['url'] ) ? $instance['url'] : ''; - while ( stristr($url, 'http') != $url ) - $url = substr($url, 1); - - if ( empty($url) ) - return; - - // self-url destruction sequence - if ( in_array( untrailingslashit( $url ), array( site_url(), home_url() ) ) ) - return; - - $rss = fetch_feed($url); - $title = $instance['title']; - $desc = ''; - $link = ''; - - if ( ! is_wp_error($rss) ) { - $desc = esc_attr(strip_tags(@html_entity_decode($rss->get_description(), ENT_QUOTES, get_option('blog_charset')))); - if ( empty($title) ) - $title = esc_html(strip_tags($rss->get_title())); - $link = esc_url(strip_tags($rss->get_permalink())); - while ( stristr($link, 'http') != $link ) - $link = substr($link, 1); - } - - if ( empty($title) ) - $title = empty($desc) ? __('Unknown Feed') : $desc; - - /** This filter is documented in wp-includes/default-widgets.php */ - $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); - - $url = esc_url(strip_tags($url)); - $icon = includes_url('images/rss.png'); - if ( $title ) - $title = "RSS $title"; - - echo $args['before_widget']; - if ( $title ) { - echo $args['before_title'] . $title . $args['after_title']; - } - wp_widget_rss_output( $rss, $instance ); - echo $args['after_widget']; - - if ( ! is_wp_error($rss) ) - $rss->__destruct(); - unset($rss); - } - - /** - * @param array $new_instance - * @param array $old_instance - * @return array - */ - public function update( $new_instance, $old_instance ) { - $testurl = ( isset( $new_instance['url'] ) && ( !isset( $old_instance['url'] ) || ( $new_instance['url'] != $old_instance['url'] ) ) ); - return wp_widget_rss_process( $new_instance, $testurl ); - } - - /** - * @param array $instance - */ - public function form( $instance ) { - if ( empty( $instance ) ) { - $instance = array( 'title' => '', 'url' => '', 'items' => 10, 'error' => false, 'show_summary' => 0, 'show_author' => 0, 'show_date' => 0 ); - } - $instance['number'] = $this->number; - - wp_widget_rss_form( $instance ); - } -} - -/** - * Display the RSS entries in a list. - * - * @since 2.5.0 - * - * @param string|array|object $rss RSS url. - * @param array $args Widget arguments. - */ -function wp_widget_rss_output( $rss, $args = array() ) { - if ( is_string( $rss ) ) { - $rss = fetch_feed($rss); - } elseif ( is_array($rss) && isset($rss['url']) ) { - $args = $rss; - $rss = fetch_feed($rss['url']); - } elseif ( !is_object($rss) ) { - return; - } - - if ( is_wp_error($rss) ) { - if ( is_admin() || current_user_can('manage_options') ) - echo '

    ' . sprintf( __('RSS Error: %s'), $rss->get_error_message() ) . '

    '; - return; - } - - $default_args = array( 'show_author' => 0, 'show_date' => 0, 'show_summary' => 0, 'items' => 0 ); - $args = wp_parse_args( $args, $default_args ); - - $items = (int) $args['items']; - if ( $items < 1 || 20 < $items ) - $items = 10; - $show_summary = (int) $args['show_summary']; - $show_author = (int) $args['show_author']; - $show_date = (int) $args['show_date']; - - if ( !$rss->get_item_quantity() ) { - echo '
    • ' . __( 'An error has occurred, which probably means the feed is down. Try again later.' ) . '
    '; - $rss->__destruct(); - unset($rss); - return; - } - - echo '
      '; - foreach ( $rss->get_items( 0, $items ) as $item ) { - $link = $item->get_link(); - while ( stristr( $link, 'http' ) != $link ) { - $link = substr( $link, 1 ); - } - $link = esc_url( strip_tags( $link ) ); - - $title = esc_html( trim( strip_tags( $item->get_title() ) ) ); - if ( empty( $title ) ) { - $title = __( 'Untitled' ); - } - - $desc = @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option( 'blog_charset' ) ); - $desc = esc_attr( wp_trim_words( $desc, 55, ' […]' ) ); - - $summary = ''; - if ( $show_summary ) { - $summary = $desc; - - // Change existing [...] to […]. - if ( '[...]' == substr( $summary, -5 ) ) { - $summary = substr( $summary, 0, -5 ) . '[…]'; - } - - $summary = '
      ' . esc_html( $summary ) . '
      '; - } - - $date = ''; - if ( $show_date ) { - $date = $item->get_date( 'U' ); - - if ( $date ) { - $date = ' ' . date_i18n( get_option( 'date_format' ), $date ) . ''; - } - } - - $author = ''; - if ( $show_author ) { - $author = $item->get_author(); - if ( is_object($author) ) { - $author = $author->get_name(); - $author = ' ' . esc_html( strip_tags( $author ) ) . ''; - } - } - - if ( $link == '' ) { - echo "
    • $title{$date}{$summary}{$author}
    • "; - } elseif ( $show_summary ) { - echo "
    • $title{$date}{$summary}{$author}
    • "; - } else { - echo "
    • $title{$date}{$author}
    • "; - } - } - echo '
    '; - $rss->__destruct(); - unset($rss); -} - -/** - * Display RSS widget options form. - * - * The options for what fields are displayed for the RSS form are all booleans - * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author', - * 'show_date'. - * - * @since 2.5.0 - * - * @param array|string $args Values for input fields. - * @param array $inputs Override default display options. - */ -function wp_widget_rss_form( $args, $inputs = null ) { - $default_inputs = array( 'url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true ); - $inputs = wp_parse_args( $inputs, $default_inputs ); - - $args['number'] = esc_attr( $args['number'] ); - $args['title'] = isset( $args['title'] ) ? esc_attr( $args['title'] ) : ''; - $args['url'] = isset( $args['url'] ) ? esc_url( $args['url'] ) : ''; - $args['items'] = isset( $args['items'] ) ? (int) $args['items'] : 0; - - if ( $args['items'] < 1 || 20 < $args['items'] ) { - $args['items'] = 10; - } - - $args['show_summary'] = isset( $args['show_summary'] ) ? (int) $args['show_summary'] : (int) $inputs['show_summary']; - $args['show_author'] = isset( $args['show_author'] ) ? (int) $args['show_author'] : (int) $inputs['show_author']; - $args['show_date'] = isset( $args['show_date'] ) ? (int) $args['show_date'] : (int) $inputs['show_date']; - - if ( ! empty( $args['error'] ) ) { - echo '

    ' . sprintf( __( 'RSS Error: %s' ), $args['error'] ) . '

    '; - } - - if ( $inputs['url'] ) : -?> -

    -

    - -

    -

    - -

    -

    - -

    /> -

    - -

    /> -

    - -

    /> -

    - - -get_error_message(); - } else { - $link = esc_url(strip_tags($rss->get_permalink())); - while ( stristr($link, 'http') != $link ) - $link = substr($link, 1); - - $rss->__destruct(); - unset($rss); - } - } - - return compact( 'title', 'url', 'link', 'items', 'error', 'show_summary', 'show_author', 'show_date' ); -} - -/** - * Tag cloud widget class - * - * @since 2.8.0 - */ -class WP_Widget_Tag_Cloud extends WP_Widget { - - public function __construct() { - $widget_ops = array( 'description' => __( "A cloud of your most used tags.") ); - parent::__construct('tag_cloud', __('Tag Cloud'), $widget_ops); - } - - /** - * @param array $args - * @param array $instance - */ - public function widget( $args, $instance ) { - $current_taxonomy = $this->_get_current_taxonomy($instance); - if ( !empty($instance['title']) ) { - $title = $instance['title']; - } else { - if ( 'post_tag' == $current_taxonomy ) { - $title = __('Tags'); - } else { - $tax = get_taxonomy($current_taxonomy); - $title = $tax->labels->name; - } - } - - /** This filter is documented in wp-includes/default-widgets.php */ - $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); - - echo $args['before_widget']; - if ( $title ) { - echo $args['before_title'] . $title . $args['after_title']; - } - echo '
    '; - - /** - * Filter the taxonomy used in the Tag Cloud widget. - * - * @since 2.8.0 - * @since 3.0.0 Added taxonomy drop-down. - * - * @see wp_tag_cloud() - * - * @param array $current_taxonomy The taxonomy to use in the tag cloud. Default 'tags'. - */ - wp_tag_cloud( apply_filters( 'widget_tag_cloud_args', array( - 'taxonomy' => $current_taxonomy - ) ) ); - - echo "
    \n"; - echo $args['after_widget']; - } - - /** - * @param array $new_instance - * @param array $old_instance - * @return array - */ - public function update( $new_instance, $old_instance ) { - $instance = array(); - $instance['title'] = strip_tags(stripslashes($new_instance['title'])); - $instance['taxonomy'] = stripslashes($new_instance['taxonomy']); - return $instance; - } - - /** - * @param array $instance - */ - public function form( $instance ) { - $current_taxonomy = $this->_get_current_taxonomy($instance); -?> -

    -

    -

    -

    __('Add a custom menu to your sidebar.') ); - parent::__construct( 'nav_menu', __('Custom Menu'), $widget_ops ); - } - - /** - * @param array $args - * @param array $instance - */ - public function widget( $args, $instance ) { - // Get menu - $nav_menu = ! empty( $instance['nav_menu'] ) ? wp_get_nav_menu_object( $instance['nav_menu'] ) : false; - - if ( !$nav_menu ) - return; - - /** This filter is documented in wp-includes/default-widgets.php */ - $instance['title'] = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); - - echo $args['before_widget']; - - if ( !empty($instance['title']) ) - echo $args['before_title'] . $instance['title'] . $args['after_title']; - - $nav_menu_args = array( - 'fallback_cb' => '', - 'menu' => $nav_menu - ); - - /** - * Filter the arguments for the Custom Menu widget. - * - * @since 4.2.0 - * - * @param array $nav_menu_args { - * An array of arguments passed to wp_nav_menu() to retrieve a custom menu. - * - * @type callback|bool $fallback_cb Callback to fire if the menu doesn't exist. Default empty. - * @type mixed $menu Menu ID, slug, or name. - * } - * @param stdClass $nav_menu Nav menu object for the current menu. - * @param array $args Display arguments for the current widget. - */ - wp_nav_menu( apply_filters( 'widget_nav_menu_args', $nav_menu_args, $nav_menu, $args ) ); - - echo $args['after_widget']; - } - - /** - * @param array $new_instance - * @param array $old_instance - * @return array - */ - public function update( $new_instance, $old_instance ) { - $instance = array(); - if ( ! empty( $new_instance['title'] ) ) { - $instance['title'] = strip_tags( stripslashes($new_instance['title']) ); - } - if ( ! empty( $new_instance['nav_menu'] ) ) { - $instance['nav_menu'] = (int) $new_instance['nav_menu']; - } - return $instance; - } - - /** - * @param array $instance - */ - public function form( $instance ) { - $title = isset( $instance['title'] ) ? $instance['title'] : ''; - $nav_menu = isset( $instance['nav_menu'] ) ? $instance['nav_menu'] : ''; - - // Get menus - $menus = wp_get_nav_menus(); - - // If no menus exists, direct the user to go and create some. - ?> - - - $post->ID, - 'Author_ID' => $post->post_author, - 'Date' => $post->post_date, - 'Content' => $post->post_content, - 'Excerpt' => $post->post_excerpt, - 'Title' => $post->post_title, - 'Category' => $post->post_category, - 'post_status' => $post->post_status, - 'comment_status' => $post->comment_status, - 'ping_status' => $post->ping_status, - 'post_password' => $post->post_password, - 'to_ping' => $post->to_ping, - 'pinged' => $post->pinged, - 'post_type' => $post->post_type, - 'post_name' => $post->post_name - ); - - return $postdata; -} - -/** - * Sets up the WordPress Loop. - * - * @since 1.0.1 - * @deprecated 1.5.0 - * @deprecated Use The Loop - {@link https://codex.wordpress.org/The_Loop Use new WordPress Loop} - */ -function start_wp() { - global $wp_query; - - _deprecated_function( __FUNCTION__, '1.5', __('new WordPress Loop') ); - - // Since the old style loop is being used, advance the query iterator here. - $wp_query->next_post(); - - setup_postdata( get_post() ); -} - -/** - * Return or Print Category ID. - * - * @since 0.71 - * @deprecated 0.71 - * @deprecated use get_the_category() - * @see get_the_category() - * - * @param bool $echo - * @return null|int - */ -function the_category_ID($echo = true) { - _deprecated_function( __FUNCTION__, '0.71', 'get_the_category()' ); - - // Grab the first cat in the list. - $categories = get_the_category(); - $cat = $categories[0]->term_id; - - if ( $echo ) - echo $cat; - - return $cat; -} - -/** - * Print category with optional text before and after. - * - * @since 0.71 - * @deprecated 0.71 - * @deprecated use get_the_category_by_ID() - * @see get_the_category_by_ID() - * - * @param string $before - * @param string $after - */ -function the_category_head($before='', $after='') { - global $currentcat, $previouscat; - - _deprecated_function( __FUNCTION__, '0.71', 'get_the_category_by_ID()' ); - - // Grab the first cat in the list. - $categories = get_the_category(); - $currentcat = $categories[0]->category_id; - if ( $currentcat != $previouscat ) { - echo $before; - echo get_the_category_by_ID($currentcat); - echo $after; - $previouscat = $currentcat; - } -} - -/** - * Prints link to the previous post. - * - * @since 1.5.0 - * @deprecated 2.0.0 - * @deprecated Use previous_post_link() - * @see previous_post_link() - * - * @param string $format - * @param string $previous - * @param string $title - * @param string $in_same_cat - * @param int $limitprev - * @param string $excluded_categories - */ -function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') { - - _deprecated_function( __FUNCTION__, '2.0', 'previous_post_link()' ); - - if ( empty($in_same_cat) || 'no' == $in_same_cat ) - $in_same_cat = false; - else - $in_same_cat = true; - - $post = get_previous_post($in_same_cat, $excluded_categories); - - if ( !$post ) - return; - - $string = ''.$previous; - if ( 'yes' == $title ) - $string .= apply_filters('the_title', $post->post_title, $post->ID); - $string .= ''; - $format = str_replace('%', $string, $format); - echo $format; -} - -/** - * Prints link to the next post. - * - * @since 0.71 - * @deprecated 2.0.0 - * @deprecated Use next_post_link() - * @see next_post_link() - * - * @param string $format - * @param string $next - * @param string $title - * @param string $in_same_cat - * @param int $limitnext - * @param string $excluded_categories - */ -function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') { - _deprecated_function( __FUNCTION__, '2.0', 'next_post_link()' ); - - if ( empty($in_same_cat) || 'no' == $in_same_cat ) - $in_same_cat = false; - else - $in_same_cat = true; - - $post = get_next_post($in_same_cat, $excluded_categories); - - if ( !$post ) - return; - - $string = ''.$next; - if ( 'yes' == $title ) - $string .= apply_filters('the_title', $post->post_title, $post->ID); - $string .= ''; - $format = str_replace('%', $string, $format); - echo $format; -} - -/** - * Whether user can create a post. - * - * @since 1.5.0 - * @deprecated 2.0.0 - * @deprecated Use current_user_can() - * @see current_user_can() - * - * @param int $user_id - * @param int $blog_id Not Used - * @param int $category_id Not Used - * @return bool - */ -function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None') { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); - - $author_data = get_userdata($user_id); - return ($author_data->user_level > 1); -} - -/** - * Whether user can create a post. - * - * @since 1.5.0 - * @deprecated 2.0.0 - * @deprecated Use current_user_can() - * @see current_user_can() - * - * @param int $user_id - * @param int $blog_id Not Used - * @param int $category_id Not Used - * @return bool - */ -function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None') { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); - - $author_data = get_userdata($user_id); - return ($author_data->user_level >= 1); -} - -/** - * Whether user can edit a post. - * - * @since 1.5.0 - * @deprecated 2.0.0 - * @deprecated Use current_user_can() - * @see current_user_can() - * - * @param int $user_id - * @param int $post_id - * @param int $blog_id Not Used - * @return bool - */ -function user_can_edit_post($user_id, $post_id, $blog_id = 1) { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); - - $author_data = get_userdata($user_id); - $post = get_post($post_id); - $post_author_data = get_userdata($post->post_author); - - if ( (($user_id == $post_author_data->ID) && !($post->post_status == 'publish' && $author_data->user_level < 2)) - || ($author_data->user_level > $post_author_data->user_level) - || ($author_data->user_level >= 10) ) { - return true; - } else { - return false; - } -} - -/** - * Whether user can delete a post. - * - * @since 1.5.0 - * @deprecated 2.0.0 - * @deprecated Use current_user_can() - * @see current_user_can() - * - * @param int $user_id - * @param int $post_id - * @param int $blog_id Not Used - * @return bool - */ -function user_can_delete_post($user_id, $post_id, $blog_id = 1) { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); - - // right now if one can edit, one can delete - return user_can_edit_post($user_id, $post_id, $blog_id); -} - -/** - * Whether user can set new posts' dates. - * - * @since 1.5.0 - * @deprecated 2.0.0 - * @deprecated Use current_user_can() - * @see current_user_can() - * - * @param int $user_id - * @param int $blog_id Not Used - * @param int $category_id Not Used - * @return bool - */ -function user_can_set_post_date($user_id, $blog_id = 1, $category_id = 'None') { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); - - $author_data = get_userdata($user_id); - return (($author_data->user_level > 4) && user_can_create_post($user_id, $blog_id, $category_id)); -} - -/** - * Whether user can delete a post. - * - * @since 1.5.0 - * @deprecated 2.0.0 - * @deprecated Use current_user_can() - * @see current_user_can() - * - * @param int $user_id - * @param int $post_id - * @param int $blog_id Not Used - * @return bool returns true if $user_id can edit $post_id's date - */ -function user_can_edit_post_date($user_id, $post_id, $blog_id = 1) { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); - - $author_data = get_userdata($user_id); - return (($author_data->user_level > 4) && user_can_edit_post($user_id, $post_id, $blog_id)); -} - -/** - * Whether user can delete a post. - * - * @since 1.5.0 - * @deprecated 2.0.0 - * @deprecated Use current_user_can() - * @see current_user_can() - * - * @param int $user_id - * @param int $post_id - * @param int $blog_id Not Used - * @return bool returns true if $user_id can edit $post_id's comments - */ -function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); - - // right now if one can edit a post, one can edit comments made on it - return user_can_edit_post($user_id, $post_id, $blog_id); -} - -/** - * Whether user can delete a post. - * - * @since 1.5.0 - * @deprecated 2.0.0 - * @deprecated Use current_user_can() - * @see current_user_can() - * - * @param int $user_id - * @param int $post_id - * @param int $blog_id Not Used - * @return bool returns true if $user_id can delete $post_id's comments - */ -function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1) { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); - - // right now if one can edit comments, one can delete comments - return user_can_edit_post_comments($user_id, $post_id, $blog_id); -} - -/** - * Can user can edit other user. - * - * @since 1.5.0 - * @deprecated 2.0.0 - * @deprecated Use current_user_can() - * @see current_user_can() - * - * @param int $user_id - * @param int $other_user - * @return bool - */ -function user_can_edit_user($user_id, $other_user) { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); - - $user = get_userdata($user_id); - $other = get_userdata($other_user); - if ( $user->user_level > $other->user_level || $user->user_level > 8 || $user->ID == $other->ID ) - return true; - else - return false; -} - -/** - * Gets the links associated with category $cat_name. - * - * @since 0.71 - * @deprecated 2.1.0 - * @deprecated Use get_bookmarks() - * @see get_bookmarks() - * - * @param string $cat_name Optional. The category name to use. If no match is found uses all. - * @param string $before Optional. The html to output before the link. - * @param string $after Optional. The html to output after the link. - * @param string $between Optional. The html to output between the link/image and its description. Not used if no image or $show_images is true. - * @param bool $show_images Optional. Whether to show images (if defined). - * @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url', 'description' or 'rating'. Or maybe owner. - * If you start the name with an underscore the order will be reversed. You can also specify 'rand' as the order which will return links in a - * random order. - * @param bool $show_description Optional. Whether to show the description if show_images=false/not defined. - * @param bool $show_rating Optional. Show rating stars/chars. - * @param int $limit Optional. Limit to X entries. If not specified, all entries are shown. - * @param int $show_updated Optional. Whether to show last updated timestamp - */ -function get_linksbyname($cat_name = "noname", $before = '', $after = '
    ', $between = " ", $show_images = true, $orderby = 'id', - $show_description = true, $show_rating = false, - $limit = -1, $show_updated = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' ); - - $cat_id = -1; - $cat = get_term_by('name', $cat_name, 'link_category'); - if ( $cat ) - $cat_id = $cat->term_id; - - get_links($cat_id, $before, $after, $between, $show_images, $orderby, $show_description, $show_rating, $limit, $show_updated); -} - -/** - * Gets the links associated with the named category. - * - * @since 1.0.1 - * @deprecated 2.1.0 - * @deprecated Use wp_list_bookmarks() - * @see wp_list_bookmarks() - * - * @param string $category The category to use. - * @param string $args - * @return string|null - */ -function wp_get_linksbyname($category, $args = '') { - _deprecated_function(__FUNCTION__, '2.1', 'wp_list_bookmarks()'); - - $defaults = array( - 'after' => '
    ', - 'before' => '', - 'categorize' => 0, - 'category_after' => '', - 'category_before' => '', - 'category_name' => $category, - 'show_description' => 1, - 'title_li' => '', - ); - - $r = wp_parse_args( $args, $defaults ); - - return wp_list_bookmarks($r); -} - -/** - * Gets an array of link objects associated with category $cat_name. - * - * $links = get_linkobjectsbyname( 'fred' ); - * foreach ( $links as $link ) { - * echo '
  • ' . $link->link_name . '
  • '; - * } - * - * @since 1.0.1 - * @deprecated 2.1.0 - * @deprecated Use get_bookmarks() - * @see get_bookmarks() - * - * @param string $cat_name The category name to use. If no match is found uses all. - * @param string $orderby The order to output the links. E.g. 'id', 'name', 'url', 'description', or 'rating'. - * Or maybe owner. If you start the name with an underscore the order will be reversed. You can also - * specify 'rand' as the order which will return links in a random order. - * @param int $limit Limit to X entries. If not specified, all entries are shown. - * @return array - */ -function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' ); - - $cat_id = -1; - $cat = get_term_by('name', $cat_name, 'link_category'); - if ( $cat ) - $cat_id = $cat->term_id; - - return get_linkobjects($cat_id, $orderby, $limit); -} - -/** - * Gets an array of link objects associated with category n. - * - * Usage: - * - * $links = get_linkobjects(1); - * if ($links) { - * foreach ($links as $link) { - * echo '
  • '.$link->link_name.'
    '.$link->link_description.'
  • '; - * } - * } - * - * Fields are: - * - * - link_id - * - link_url - * - link_name - * - link_image - * - link_target - * - link_category - * - link_description - * - link_visible - * - link_owner - * - link_rating - * - link_updated - * - link_rel - * - link_notes - * - * @since 1.0.1 - * @deprecated 2.1.0 - * @deprecated Use get_bookmarks() - * @see get_bookmarks() - * - * @param int $category The category to use. If no category supplied uses all - * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url', - * 'description', or 'rating'. Or maybe owner. If you start the name with an - * underscore the order will be reversed. You can also specify 'rand' as the - * order which will return links in a random order. - * @param int $limit Limit to X entries. If not specified, all entries are shown. - * @return array - */ -function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' ); - - $links = get_bookmarks( array( 'category' => $category, 'orderby' => $orderby, 'limit' => $limit ) ) ; - - $links_array = array(); - foreach ($links as $link) - $links_array[] = $link; - - return $links_array; -} - -/** - * Gets the links associated with category 'cat_name' and display rating stars/chars. - * - * @since 0.71 - * @deprecated 2.1.0 - * @deprecated Use get_bookmarks() - * @see get_bookmarks() - * - * @param string $cat_name The category name to use. If no match is found uses all - * @param string $before The html to output before the link - * @param string $after The html to output after the link - * @param string $between The html to output between the link/image and its description. Not used if no image or show_images is true - * @param bool $show_images Whether to show images (if defined). - * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url', - * 'description', or 'rating'. Or maybe owner. If you start the name with an - * underscore the order will be reversed. You can also specify 'rand' as the - * order which will return links in a random order. - * @param bool $show_description Whether to show the description if show_images=false/not defined - * @param int $limit Limit to X entries. If not specified, all entries are shown. - * @param int $show_updated Whether to show last updated timestamp - */ -function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '
    ', $between = " ", - $show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' ); - - get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated); -} - -/** - * Gets the links associated with category n and display rating stars/chars. - * - * @since 0.71 - * @deprecated 2.1.0 - * @deprecated Use get_bookmarks() - * @see get_bookmarks() - * - * @param int $category The category to use. If no category supplied uses all - * @param string $before The html to output before the link - * @param string $after The html to output after the link - * @param string $between The html to output between the link/image and its description. Not used if no image or show_images == true - * @param bool $show_images Whether to show images (if defined). - * @param string $orderby The order to output the links. E.g. 'id', 'name', 'url', - * 'description', or 'rating'. Or maybe owner. If you start the name with an - * underscore the order will be reversed. You can also specify 'rand' as the - * order which will return links in a random order. - * @param bool $show_description Whether to show the description if show_images=false/not defined. - * @param int $limit Limit to X entries. If not specified, all entries are shown. - * @param int $show_updated Whether to show last updated timestamp - */ -function get_links_withrating($category = -1, $before = '', $after = '
    ', $between = " ", $show_images = true, - $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' ); - - get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated); -} - -/** - * Gets the auto_toggle setting. - * - * @since 0.71 - * @deprecated 2.1.0 - * @deprecated No alternative function available - * - * @param int $id The category to get. If no category supplied uses 0 - * @return int Only returns 0. - */ -function get_autotoggle($id = 0) { - _deprecated_function( __FUNCTION__, '2.1' ); - return 0; -} - -/** - * @since 0.71 - * @deprecated 2.1.0 - * @deprecated Use wp_list_categories() - * @see wp_list_categories() - * - * @param int $optionall - * @param string $all - * @param string $sort_column - * @param string $sort_order - * @param string $file - * @param bool $list - * @param int $optiondates - * @param int $optioncount - * @param int $hide_empty - * @param int $use_desc_for_title - * @param bool $children - * @param int $child_of - * @param int $categories - * @param int $recurse - * @param string $feed - * @param string $feed_image - * @param string $exclude - * @param bool $hierarchical - * @return false|null - */ -function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0, - $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0, - $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) { - _deprecated_function( __FUNCTION__, '2.1', 'wp_list_categories()' ); - - $query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children', - 'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical'); - return wp_list_cats($query); -} - -/** - * @since 1.2.0 - * @deprecated 2.1.0 - * @deprecated Use wp_list_categories() - * @see wp_list_categories() - * - * @param string|array $args - * @return false|null|string - */ -function wp_list_cats($args = '') { - _deprecated_function( __FUNCTION__, '2.1', 'wp_list_categories()' ); - - $r = wp_parse_args( $args ); - - // Map to new names. - if ( isset($r['optionall']) && isset($r['all'])) - $r['show_option_all'] = $r['all']; - if ( isset($r['sort_column']) ) - $r['orderby'] = $r['sort_column']; - if ( isset($r['sort_order']) ) - $r['order'] = $r['sort_order']; - if ( isset($r['optiondates']) ) - $r['show_last_update'] = $r['optiondates']; - if ( isset($r['optioncount']) ) - $r['show_count'] = $r['optioncount']; - if ( isset($r['list']) ) - $r['style'] = $r['list'] ? 'list' : 'break'; - $r['title_li'] = ''; - - return wp_list_categories($r); -} - -/** - * @since 0.71 - * @deprecated 2.1.0 - * @deprecated Use wp_dropdown_categories() - * @see wp_dropdown_categories() - * - * @param int $optionall - * @param string $all - * @param string $orderby - * @param string $order - * @param int $show_last_update - * @param int $show_count - * @param int $hide_empty - * @param bool $optionnone - * @param int $selected - * @param int $exclude - * @return string - */ -function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc', - $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false, - $selected = 0, $exclude = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'wp_dropdown_categories()' ); - - $show_option_all = ''; - if ( $optionall ) - $show_option_all = $all; - - $show_option_none = ''; - if ( $optionnone ) - $show_option_none = __('None'); - - $vars = compact('show_option_all', 'show_option_none', 'orderby', 'order', - 'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude'); - $query = add_query_arg($vars, ''); - return wp_dropdown_categories($query); -} - -/** - * List authors. - * - * @since 1.2.0 - * @deprecated 2.1.0 - * @deprecated Use wp_list_authors() - * @see wp_list_authors() - * - * @param bool $optioncount - * @param bool $exclude_admin - * @param bool $show_fullname - * @param bool $hide_empty - * @param string $feed - * @param string $feed_image - * @return null|string - */ -function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') { - _deprecated_function( __FUNCTION__, '2.1', 'wp_list_authors()' ); - - $args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image'); - return wp_list_authors($args); -} - -/** - * @since 1.0.1 - * @deprecated 2.1.0 - * @deprecated Use wp_get_post_categories() - * @see wp_get_post_categories() - * - * @param int $blogid Not Used - * @param int $post_ID - * @return array - */ -function wp_get_post_cats($blogid = '1', $post_ID = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'wp_get_post_categories()' ); - return wp_get_post_categories($post_ID); -} - -/** - * Sets the categories that the post id belongs to. - * - * @since 1.0.1 - * @deprecated 2.1.0 - * @deprecated Use wp_set_post_categories() - * @see wp_set_post_categories() - * - * @param int $blogid Not used - * @param int $post_ID - * @param array $post_categories - * @return bool|mixed - */ -function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) { - _deprecated_function( __FUNCTION__, '2.1', 'wp_set_post_categories()' ); - return wp_set_post_categories($post_ID, $post_categories); -} - -/** - * @since 0.71 - * @deprecated 2.1.0 - * @deprecated Use wp_get_archives() - * @see wp_get_archives() - * - * @param string $type - * @param string $limit - * @param string $format - * @param string $before - * @param string $after - * @param bool $show_post_count - * @return string|null - */ -function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) { - _deprecated_function( __FUNCTION__, '2.1', 'wp_get_archives()' ); - $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count'); - return wp_get_archives($args); -} - -/** - * Returns or Prints link to the author's posts. - * - * @since 1.2.0 - * @deprecated 2.1.0 - * @deprecated Use get_author_posts_url() - * @see get_author_posts_url() - * - * @param bool $echo - * @param int $author_id - * @param string $author_nicename Optional. - * @return string|null - */ -function get_author_link($echo, $author_id, $author_nicename = '') { - _deprecated_function( __FUNCTION__, '2.1', 'get_author_posts_url()' ); - - $link = get_author_posts_url($author_id, $author_nicename); - - if ( $echo ) - echo $link; - return $link; -} - -/** - * Print list of pages based on arguments. - * - * @since 0.71 - * @deprecated 2.1.0 - * @deprecated Use wp_link_pages() - * @see wp_link_pages() - * - * @param string $before - * @param string $after - * @param string $next_or_number - * @param string $nextpagelink - * @param string $previouspagelink - * @param string $pagelink - * @param string $more_file - * @return string - */ -function link_pages($before='
    ', $after='
    ', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page', - $pagelink='%', $more_file='') { - _deprecated_function( __FUNCTION__, '2.1', 'wp_link_pages()' ); - - $args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file'); - return wp_link_pages($args); -} - -/** - * Get value based on option. - * - * @since 0.71 - * @deprecated 2.1.0 - * @deprecated Use get_option() - * @see get_option() - * - * @param string $option - * @return string - */ -function get_settings($option) { - _deprecated_function( __FUNCTION__, '2.1', 'get_option()' ); - - return get_option($option); -} - -/** - * Print the permalink of the current post in the loop. - * - * @since 0.71 - * @deprecated 1.2.0 - * @deprecated Use the_permalink() - * @see the_permalink() - */ -function permalink_link() { - _deprecated_function( __FUNCTION__, '1.2', 'the_permalink()' ); - the_permalink(); -} - -/** - * Print the permalink to the RSS feed. - * - * @since 0.71 - * @deprecated 2.3.0 - * @deprecated Use the_permalink_rss() - * @see the_permalink_rss() - * - * @param string $deprecated - */ -function permalink_single_rss($deprecated = '') { - _deprecated_function( __FUNCTION__, '2.3', 'the_permalink_rss()' ); - the_permalink_rss(); -} - -/** - * Gets the links associated with category. - * - * @see get_links() for argument information that can be used in $args - * @since 1.0.1 - * @deprecated 2.1.0 - * @deprecated Use wp_list_bookmarks() - * @see wp_list_bookmarks() - * - * @param string $args a query string - * @return null|string - */ -function wp_get_links($args = '') { - _deprecated_function( __FUNCTION__, '2.1', 'wp_list_bookmarks()' ); - - if ( strpos( $args, '=' ) === false ) { - $cat_id = $args; - $args = add_query_arg( 'category', $cat_id, $args ); - } - - $defaults = array( - 'after' => '
    ', - 'before' => '', - 'between' => ' ', - 'categorize' => 0, - 'category' => '', - 'echo' => true, - 'limit' => -1, - 'orderby' => 'name', - 'show_description' => true, - 'show_images' => true, - 'show_rating' => false, - 'show_updated' => true, - 'title_li' => '', - ); - - $r = wp_parse_args( $args, $defaults ); - - return wp_list_bookmarks($r); -} - -/** - * Gets the links associated with category by id. - * - * @since 0.71 - * @deprecated 2.1.0 - * @deprecated Use get_bookmarks() - * @see get_bookmarks() - * - * @param int $category The category to use. If no category supplied uses all - * @param string $before the html to output before the link - * @param string $after the html to output after the link - * @param string $between the html to output between the link/image and its description. - * Not used if no image or show_images == true - * @param bool $show_images whether to show images (if defined). - * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url', - * 'description', or 'rating'. Or maybe owner. If you start the name with an - * underscore the order will be reversed. You can also specify 'rand' as the order - * which will return links in a random order. - * @param bool $show_description whether to show the description if show_images=false/not defined. - * @param bool $show_rating show rating stars/chars - * @param int $limit Limit to X entries. If not specified, all entries are shown. - * @param int $show_updated whether to show last updated timestamp - * @param bool $echo whether to echo the results, or return them instead - * @return null|string - */ -function get_links($category = -1, $before = '', $after = '
    ', $between = ' ', $show_images = true, $orderby = 'name', - $show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' ); - - $order = 'ASC'; - if ( substr($orderby, 0, 1) == '_' ) { - $order = 'DESC'; - $orderby = substr($orderby, 1); - } - - if ( $category == -1 ) //get_bookmarks uses '' to signify all categories - $category = ''; - - $results = get_bookmarks(array('category' => $category, 'orderby' => $orderby, 'order' => $order, 'show_updated' => $show_updated, 'limit' => $limit)); - - if ( !$results ) - return; - - $output = ''; - - foreach ( (array) $results as $row ) { - if ( !isset($row->recently_updated) ) - $row->recently_updated = false; - $output .= $before; - if ( $show_updated && $row->recently_updated ) - $output .= get_option('links_recently_updated_prepend'); - $the_link = '#'; - if ( !empty($row->link_url) ) - $the_link = esc_url($row->link_url); - $rel = $row->link_rel; - if ( '' != $rel ) - $rel = ' rel="' . $rel . '"'; - - $desc = esc_attr(sanitize_bookmark_field('link_description', $row->link_description, $row->link_id, 'display')); - $name = esc_attr(sanitize_bookmark_field('link_name', $row->link_name, $row->link_id, 'display')); - $title = $desc; - - if ( $show_updated ) - if (substr($row->link_updated_f, 0, 2) != '00') - $title .= ' ('.__('Last updated') . ' ' . date(get_option('links_updated_date_format'), $row->link_updated_f + (get_option('gmt_offset') * HOUR_IN_SECONDS)) . ')'; - - if ( '' != $title ) - $title = ' title="' . $title . '"'; - - $alt = ' alt="' . $name . '"'; - - $target = $row->link_target; - if ( '' != $target ) - $target = ' target="' . $target . '"'; - - $output .= ''; - - if ( $row->link_image != null && $show_images ) { - if ( strpos($row->link_image, 'http') !== false ) - $output .= "link_image\" $alt $title />"; - else // If it's a relative path - $output .= "link_image\" $alt $title />"; - } else { - $output .= $name; - } - - $output .= ''; - - if ( $show_updated && $row->recently_updated ) - $output .= get_option('links_recently_updated_append'); - - if ( $show_description && '' != $desc ) - $output .= $between . $desc; - - if ($show_rating) { - $output .= $between . get_linkrating($row); - } - - $output .= "$after\n"; - } // end while - - if ( !$echo ) - return $output; - echo $output; -} - -/** - * Output entire list of links by category. - * - * Output a list of all links, listed by category, using the settings in - * $wpdb->linkcategories and output it as a nested HTML unordered list. - * - * @since 1.0.1 - * @deprecated 2.1.0 - * @deprecated Use wp_list_bookmarks() - * @see wp_list_bookmarks() - * - * @param string $order Sort link categories by 'name' or 'id' - */ -function get_links_list($order = 'name') { - _deprecated_function( __FUNCTION__, '2.1', 'wp_list_bookmarks()' ); - - $order = strtolower($order); - - // Handle link category sorting - $direction = 'ASC'; - if ( '_' == substr($order,0,1) ) { - $direction = 'DESC'; - $order = substr($order,1); - } - - if ( !isset($direction) ) - $direction = ''; - - $cats = get_categories(array('type' => 'link', 'orderby' => $order, 'order' => $direction, 'hierarchical' => 0)); - - // Display each category - if ( $cats ) { - foreach ( (array) $cats as $cat ) { - // Handle each category. - - // Display the category name - echo '
  • ' . apply_filters('link_category', $cat->name ) . "

    \n\t
      \n"; - // Call get_links() with all the appropriate params - get_links($cat->term_id, '
    • ', "
    • ", "\n", true, 'name', false); - - // Close the last category - echo "\n\t
    \n
  • \n"; - } - } -} - -/** - * Show the link to the links popup and the number of links. - * - * @since 0.71 - * @deprecated 2.1.0 - * @deprecated {@internal Use function instead is unknown}} - * - * @param string $text the text of the link - * @param int $width the width of the popup window - * @param int $height the height of the popup window - * @param string $file the page to open in the popup window - * @param bool $count the number of links in the db - */ -function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) { - _deprecated_function( __FUNCTION__, '2.1' ); -} - -/** - * @since 1.0.1 - * @deprecated 2.1.0 - * @deprecated Use sanitize_bookmark_field() - * @see sanitize_bookmark_field() - * - * @param object $link - * @return mixed - */ -function get_linkrating($link) { - _deprecated_function( __FUNCTION__, '2.1', 'sanitize_bookmark_field()' ); - return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display'); -} - -/** - * Gets the name of category by id. - * - * @since 0.71 - * @deprecated 2.1.0 - * @deprecated Use get_category() - * @see get_category() - * - * @param int $id The category to get. If no category supplied uses 0 - * @return string - */ -function get_linkcatname($id = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'get_category()' ); - - $id = (int) $id; - - if ( empty($id) ) - return ''; - - $cats = wp_get_link_cats($id); - - if ( empty($cats) || ! is_array($cats) ) - return ''; - - $cat_id = (int) $cats[0]; // Take the first cat. - - $cat = get_category($cat_id); - return $cat->name; -} - -/** - * Print RSS comment feed link. - * - * @since 1.0.1 - * @deprecated 2.5.0 - * @deprecated Use post_comments_feed_link() - * @see post_comments_feed_link() - * - * @param string $link_text - */ -function comments_rss_link($link_text = 'Comments RSS') { - _deprecated_function( __FUNCTION__, '2.5', 'post_comments_feed_link()' ); - post_comments_feed_link($link_text); -} - -/** - * Print/Return link to category RSS2 feed. - * - * @since 1.2.0 - * @deprecated 2.5.0 - * @deprecated Use get_category_feed_link() - * @see get_category_feed_link() - * - * @param bool $echo - * @param int $cat_ID - * @return string - */ -function get_category_rss_link($echo = false, $cat_ID = 1) { - _deprecated_function( __FUNCTION__, '2.5', 'get_category_feed_link()' ); - - $link = get_category_feed_link($cat_ID, 'rss2'); - - if ( $echo ) - echo $link; - return $link; -} - -/** - * Print/Return link to author RSS feed. - * - * @since 1.2.0 - * @deprecated 2.5.0 - * @deprecated Use get_author_feed_link() - * @see get_author_feed_link() - * - * @param bool $echo - * @param int $author_id - * @return string - */ -function get_author_rss_link($echo = false, $author_id = 1) { - _deprecated_function( __FUNCTION__, '2.5', 'get_author_feed_link()' ); - - $link = get_author_feed_link($author_id); - if ( $echo ) - echo $link; - return $link; -} - -/** - * Return link to the post RSS feed. - * - * @since 1.5.0 - * @deprecated 2.2.0 - * @deprecated Use get_post_comments_feed_link() - * @see get_post_comments_feed_link() - * - * @return string - */ -function comments_rss() { - _deprecated_function( __FUNCTION__, '2.2', 'get_post_comments_feed_link()' ); - return esc_url( get_post_comments_feed_link() ); -} - -/** - * An alias of wp_create_user(). - * - * @since 2.0.0 - * @deprecated 2.0.0 - * @deprecated Use wp_create_user() - * @see wp_create_user() - * - * @param string $username The user's username. - * @param string $password The user's password. - * @param string $email The user's email. - * @return int The new user's ID. - */ -function create_user($username, $password, $email) { - _deprecated_function( __FUNCTION__, '2.0', 'wp_create_user()' ); - return wp_create_user($username, $password, $email); -} - -/** - * Unused function. - * - * @deprecated 2.5.0 -*/ -function gzip_compression() { - _deprecated_function( __FUNCTION__, '2.5' ); - return false; -} - -/** - * Retrieve an array of comment data about comment $comment_ID. - * - * @since 0.71 - * @deprecated 2.7.0 - * @deprecated Use get_comment() - * @see get_comment() - * - * @param int $comment_ID The ID of the comment - * @param int $no_cache Whether to use the cache (cast to bool) - * @param bool $include_unapproved Whether to include unapproved comments - * @return array The comment data - */ -function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) { - _deprecated_function( __FUNCTION__, '2.7', 'get_comment()' ); - return get_comment($comment_ID, ARRAY_A); -} - -/** - * Retrieve the category name by the category ID. - * - * @since 0.71 - * @deprecated 2.8.0 - * @deprecated Use get_cat_name() - * @see get_cat_name() - * - * @param int $cat_ID Category ID - * @return string category name - */ -function get_catname( $cat_ID ) { - _deprecated_function( __FUNCTION__, '2.8', 'get_cat_name()' ); - return get_cat_name( $cat_ID ); -} - -/** - * Retrieve category children list separated before and after the term IDs. - * - * @since 1.2.0 - * @deprecated 2.8.0 - * @deprecated Use get_term_children() - * @see get_term_children() - * - * @param int $id Category ID to retrieve children. - * @param string $before Optional. Prepend before category term ID. - * @param string $after Optional, default is empty string. Append after category term ID. - * @param array $visited Optional. Category Term IDs that have already been added. - * @return string - */ -function get_category_children( $id, $before = '/', $after = '', $visited = array() ) { - _deprecated_function( __FUNCTION__, '2.8', 'get_term_children()' ); - if ( 0 == $id ) - return ''; - - $chain = ''; - /** TODO: consult hierarchy */ - $cat_ids = get_all_category_ids(); - foreach ( (array) $cat_ids as $cat_id ) { - if ( $cat_id == $id ) - continue; - - $category = get_category( $cat_id ); - if ( is_wp_error( $category ) ) - return $category; - if ( $category->parent == $id && !in_array( $category->term_id, $visited ) ) { - $visited[] = $category->term_id; - $chain .= $before.$category->term_id.$after; - $chain .= get_category_children( $category->term_id, $before, $after ); - } - } - return $chain; -} - -/** - * Retrieves all category IDs. - * - * @since 2.0.0 - * @deprecated 4.0.0 Use get_terms() instead. - * @see get_terms() - * @link https://codex.wordpress.org/Function_Reference/get_all_category_ids - * - * @return object List of all of the category IDs. - */ -function get_all_category_ids() { - _deprecated_function( __FUNCTION__, '4.0', 'get_terms()' ); - - if ( ! $cat_ids = wp_cache_get( 'all_category_ids', 'category' ) ) { - $cat_ids = get_terms( 'category', array('fields' => 'ids', 'get' => 'all') ); - wp_cache_add( 'all_category_ids', $cat_ids, 'category' ); - } - - return $cat_ids; -} - -/** - * Retrieve the description of the author of the current post. - * - * @since 1.5.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('description') - * @see get_the_author_meta() - * - * @return string The author's description. - */ -function get_the_author_description() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'description\')' ); - return get_the_author_meta('description'); -} - -/** - * Display the description of the author of the current post. - * - * @since 1.0.0 - * @deprecated 2.8.0 - * @deprecated Use the_author_meta('description') - * @see the_author_meta() - */ -function the_author_description() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'description\')' ); - the_author_meta('description'); -} - -/** - * Retrieve the login name of the author of the current post. - * - * @since 1.5.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('login') - * @see get_the_author_meta() - * - * @return string The author's login name (username). - */ -function get_the_author_login() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'login\')' ); - return get_the_author_meta('login'); -} - -/** - * Display the login name of the author of the current post. - * - * @since 0.71 - * @deprecated 2.8.0 - * @deprecated Use the_author_meta('login') - * @see the_author_meta() - */ -function the_author_login() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'login\')' ); - the_author_meta('login'); -} - -/** - * Retrieve the first name of the author of the current post. - * - * @since 1.5.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('first_name') - * @see get_the_author_meta() - * - * @return string The author's first name. - */ -function get_the_author_firstname() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'first_name\')' ); - return get_the_author_meta('first_name'); -} - -/** - * Display the first name of the author of the current post. - * - * @since 0.71 - * @deprecated 2.8.0 - * @deprecated Use the_author_meta('first_name') - * @see the_author_meta() - */ -function the_author_firstname() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'first_name\')' ); - the_author_meta('first_name'); -} - -/** - * Retrieve the last name of the author of the current post. - * - * @since 1.5.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('last_name') - * @see get_the_author_meta() - * - * @return string The author's last name. - */ -function get_the_author_lastname() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'last_name\')' ); - return get_the_author_meta('last_name'); -} - -/** - * Display the last name of the author of the current post. - * - * @since 0.71 - * @deprecated 2.8.0 - * @deprecated Use the_author_meta('last_name') - * @see the_author_meta() - */ -function the_author_lastname() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'last_name\')' ); - the_author_meta('last_name'); -} - -/** - * Retrieve the nickname of the author of the current post. - * - * @since 1.5.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('nickname') - * @see get_the_author_meta() - * - * @return string The author's nickname. - */ -function get_the_author_nickname() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'nickname\')' ); - return get_the_author_meta('nickname'); -} - -/** - * Display the nickname of the author of the current post. - * - * @since 0.71 - * @deprecated 2.8.0 - * @deprecated Use the_author_meta('nickname') - * @see the_author_meta() - */ -function the_author_nickname() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'nickname\')' ); - the_author_meta('nickname'); -} - -/** - * Retrieve the email of the author of the current post. - * - * @since 1.5.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('email') - * @see get_the_author_meta() - * - * @return string The author's username. - */ -function get_the_author_email() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'email\')' ); - return get_the_author_meta('email'); -} - -/** - * Display the email of the author of the current post. - * - * @since 0.71 - * @deprecated 2.8.0 - * @deprecated Use the_author_meta('email') - * @see the_author_meta() - */ -function the_author_email() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'email\')' ); - the_author_meta('email'); -} - -/** - * Retrieve the ICQ number of the author of the current post. - * - * @since 1.5.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('icq') - * @see get_the_author_meta() - * - * @return string The author's ICQ number. - */ -function get_the_author_icq() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'icq\')' ); - return get_the_author_meta('icq'); -} - -/** - * Display the ICQ number of the author of the current post. - * - * @since 0.71 - * @deprecated 2.8.0 - * @deprecated Use the_author_meta('icq') - * @see the_author_meta() - */ -function the_author_icq() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'icq\')' ); - the_author_meta('icq'); -} - -/** - * Retrieve the Yahoo! IM name of the author of the current post. - * - * @since 1.5.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('yim') - * @see get_the_author_meta() - * - * @return string The author's Yahoo! IM name. - */ -function get_the_author_yim() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'yim\')' ); - return get_the_author_meta('yim'); -} - -/** - * Display the Yahoo! IM name of the author of the current post. - * - * @since 0.71 - * @deprecated 2.8.0 - * @deprecated Use the_author_meta('yim') - * @see the_author_meta() - */ -function the_author_yim() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'yim\')' ); - the_author_meta('yim'); -} - -/** - * Retrieve the MSN address of the author of the current post. - * - * @since 1.5.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('msn') - * @see get_the_author_meta() - * - * @return string The author's MSN address. - */ -function get_the_author_msn() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'msn\')' ); - return get_the_author_meta('msn'); -} - -/** - * Display the MSN address of the author of the current post. - * - * @since 0.71 - * @deprecated 2.8.0 - * @deprecated Use the_author_meta('msn') - * @see the_author_meta() - */ -function the_author_msn() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'msn\')' ); - the_author_meta('msn'); -} - -/** - * Retrieve the AIM address of the author of the current post. - * - * @since 1.5.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('aim') - * @see get_the_author_meta() - * - * @return string The author's AIM address. - */ -function get_the_author_aim() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'aim\')' ); - return get_the_author_meta('aim'); -} - -/** - * Display the AIM address of the author of the current post. - * - * @since 0.71 - * @see the_author_meta() - * @deprecated 2.8.0 - * @deprecated Use the_author_meta('aim') - */ -function the_author_aim() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'aim\')' ); - the_author_meta('aim'); -} - -/** - * Retrieve the specified author's preferred display name. - * - * @since 1.0.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('display_name') - * @see get_the_author_meta() - * - * @param int $auth_id The ID of the author. - * @return string The author's display name. - */ -function get_author_name( $auth_id = false ) { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'display_name\')' ); - return get_the_author_meta('display_name', $auth_id); -} - -/** - * Retrieve the URL to the home page of the author of the current post. - * - * @since 1.5.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('url') - * @see get_the_author_meta() - * - * @return string The URL to the author's page. - */ -function get_the_author_url() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'url\')' ); - return get_the_author_meta('url'); -} - -/** - * Display the URL to the home page of the author of the current post. - * - * @since 0.71 - * @deprecated 2.8.0 - * @deprecated Use the_author_meta('url') - * @see the_author_meta() - */ -function the_author_url() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'url\')' ); - the_author_meta('url'); -} - -/** - * Retrieve the ID of the author of the current post. - * - * @since 1.5.0 - * @deprecated 2.8.0 - * @deprecated Use get_the_author_meta('ID') - * @see get_the_author_meta() - * - * @return string|int The author's ID. - */ -function get_the_author_ID() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'ID\')' ); - return get_the_author_meta('ID'); -} - -/** - * Display the ID of the author of the current post. - * - * @since 0.71 - * @deprecated 2.8.0 - * @deprecated Use the_author_meta('ID') - * @see the_author_meta() -*/ -function the_author_ID() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'ID\')' ); - the_author_meta('ID'); -} - -/** - * Display the post content for the feed. - * - * For encoding the html or the $encode_html parameter, there are three possible - * values. '0' will make urls footnotes and use make_url_footnote(). '1' will - * encode special characters and automatically display all of the content. The - * value of '2' will strip all HTML tags from the content. - * - * Also note that you cannot set the amount of words and not set the html - * encoding. If that is the case, then the html encoding will default to 2, - * which will strip all HTML tags. - * - * To restrict the amount of words of the content, you can use the cut - * parameter. If the content is less than the amount, then there won't be any - * dots added to the end. If there is content left over, then dots will be added - * and the rest of the content will be removed. - * - * @since 0.71 - * - * @deprecated 2.9.0 - * @deprecated Use the_content_feed() - * @see the_content_feed() - * - * @param string $more_link_text Optional. Text to display when more content is available but not displayed. - * @param int $stripteaser Optional. Default is 0. - * @param string $more_file Optional. - * @param int $cut Optional. Amount of words to keep for the content. - * @param int $encode_html Optional. How to encode the content. - */ -function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) { - _deprecated_function( __FUNCTION__, '2.9', 'the_content_feed' ); - $content = get_the_content($more_link_text, $stripteaser); - $content = apply_filters('the_content_rss', $content); - if ( $cut && !$encode_html ) - $encode_html = 2; - if ( 1== $encode_html ) { - $content = esc_html($content); - $cut = 0; - } elseif ( 0 == $encode_html ) { - $content = make_url_footnote($content); - } elseif ( 2 == $encode_html ) { - $content = strip_tags($content); - } - if ( $cut ) { - $blah = explode(' ', $content); - if ( count($blah) > $cut ) { - $k = $cut; - $use_dotdotdot = 1; - } else { - $k = count($blah); - $use_dotdotdot = 0; - } - - /** @todo Check performance, might be faster to use array slice instead. */ - for ( $i=0; $i<$k; $i++ ) - $excerpt .= $blah[$i].' '; - $excerpt .= ($use_dotdotdot) ? '...' : ''; - $content = $excerpt; - } - $content = str_replace(']]>', ']]>', $content); - echo $content; -} - -/** - * Strip HTML and put links at the bottom of stripped content. - * - * Searches for all of the links, strips them out of the content, and places - * them at the bottom of the content with numbers. - * - * @since 0.71 - * @deprecated 2.9.0 - * - * @param string $content Content to get links - * @return string HTML stripped out of content with links at the bottom. - */ -function make_url_footnote( $content ) { - _deprecated_function( __FUNCTION__, '2.9', '' ); - preg_match_all( '/(.+?)<\/a>/', $content, $matches ); - $links_summary = "\n"; - for ( $i = 0, $c = count( $matches[0] ); $i < $c; $i++ ) { - $link_match = $matches[0][$i]; - $link_number = '['.($i+1).']'; - $link_url = $matches[2][$i]; - $link_text = $matches[4][$i]; - $content = str_replace( $link_match, $link_text . ' ' . $link_number, $content ); - $link_url = ( ( strtolower( substr( $link_url, 0, 7 ) ) != 'http://' ) && ( strtolower( substr( $link_url, 0, 8 ) ) != 'https://' ) ) ? get_option( 'home' ) . $link_url : $link_url; - $links_summary .= "\n" . $link_number . ' ' . $link_url; - } - $content = strip_tags( $content ); - $content .= $links_summary; - return $content; -} - -/** - * Retrieve translated string with vertical bar context - * - * Quite a few times, there will be collisions with similar translatable text - * found in more than two places but with different translated context. - * - * In order to use the separate contexts, the _c() function is used and the - * translatable string uses a pipe ('|') which has the context the string is in. - * - * When the translated string is returned, it is everything before the pipe, not - * including the pipe character. If there is no pipe in the translated text then - * everything is returned. - * - * @since 2.2.0 - * @deprecated 2.9.0 - * @deprecated Use _x() - * @see _x() - * - * @param string $text Text to translate - * @param string $domain Optional. Domain to retrieve the translated text - * @return string Translated context string without pipe - */ -function _c( $text, $domain = 'default' ) { - _deprecated_function( __FUNCTION__, '2.9', '_x()' ); - return before_last_bar( translate( $text, $domain ) ); -} - -/** - * Translates $text like translate(), but assumes that the text - * contains a context after its last vertical bar. - * - * @since 2.5.0 - * @deprecated 3.0.0 - * @deprecated Use _x() - * @see _x() - * - * @param string $text Text to translate - * @param string $domain Domain to retrieve the translated text - * @return string Translated text - */ -function translate_with_context( $text, $domain = 'default' ) { - _deprecated_function( __FUNCTION__, '2.9', '_x()' ); - return before_last_bar( translate( $text, $domain ) ); -} - -/** - * A version of _n(), which supports contexts. - * Strips everything from the translation after the last bar. - * - * @since 2.7.0 - * @deprecated 3.0.0 - * @deprecated Use _nx() - * @see _nx() - * @see _n() For parameters. - * @see _c() For parameters. _c() is deprecated. - * - */ -function _nc( $single, $plural, $number, $domain = 'default' ) { - _deprecated_function( __FUNCTION__, '2.9', '_nx()' ); - return before_last_bar( _n( $single, $plural, $number, $domain ) ); -} - -/** - * Retrieve the plural or single form based on the amount. - * - * @since 1.2.0 - * @deprecated 2.8.0 - * @deprecated Use _n() - * @see _n() - */ -function __ngettext() { - _deprecated_function( __FUNCTION__, '2.8', '_n()' ); - $args = func_get_args(); - return call_user_func_array('_n', $args); -} - -/** - * Register plural strings in POT file, but don't translate them. - * - * @since 2.5.0 - * @deprecated 2.8.0 - * @deprecated Use _n_noop() - * @see _n_noop() - */ -function __ngettext_noop() { - _deprecated_function( __FUNCTION__, '2.8', '_n_noop()' ); - $args = func_get_args(); - return call_user_func_array('_n_noop', $args); - -} - -/** - * Retrieve all autoload options, or all options if no autoloaded ones exist. - * - * @since 1.0.0 - * @deprecated 3.0.0 - * @deprecated Use wp_load_alloptions()) - * @see wp_load_alloptions() - * - * @return array List of all options. - */ -function get_alloptions() { - _deprecated_function( __FUNCTION__, '3.0', 'wp_load_alloptions()' ); - return wp_load_alloptions(); -} - -/** - * Retrieve HTML content of attachment image with link. - * - * @since 2.0.0 - * @deprecated 2.5.0 - * @deprecated Use wp_get_attachment_link() - * @see wp_get_attachment_link() - * - * @param int $id Optional. Post ID. - * @param bool $fullsize Optional, default is false. Whether to use full size image. - * @param array $max_dims Optional. Max image dimensions. - * @param bool $permalink Optional, default is false. Whether to include permalink to image. - * @return string - */ -function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false, $permalink = false) { - _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_link()' ); - $id = (int) $id; - $_post = get_post($id); - - if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) ) - return __('Missing Attachment'); - - if ( $permalink ) - $url = get_attachment_link($_post->ID); - - $post_title = esc_attr($_post->post_title); - - $innerHTML = get_attachment_innerHTML($_post->ID, $fullsize, $max_dims); - return "$innerHTML"; -} - -/** - * Retrieve icon URL and Path. - * - * @since 2.1.0 - * @deprecated 2.5.0 - * @deprecated Use wp_get_attachment_image_src() - * @see wp_get_attachment_image_src() - * - * @param int $id Optional. Post ID. - * @param bool $fullsize Optional, default to false. Whether to have full image. - * @return array Icon URL and full path to file, respectively. - */ -function get_attachment_icon_src( $id = 0, $fullsize = false ) { - _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image_src()' ); - $id = (int) $id; - if ( !$post = get_post($id) ) - return false; - - $file = get_attached_file( $post->ID ); - - if ( !$fullsize && $src = wp_get_attachment_thumb_url( $post->ID ) ) { - // We have a thumbnail desired, specified and existing - - $src_file = basename($src); - } elseif ( wp_attachment_is_image( $post->ID ) ) { - // We have an image without a thumbnail - - $src = wp_get_attachment_url( $post->ID ); - $src_file = & $file; - } elseif ( $src = wp_mime_type_icon( $post->ID ) ) { - // No thumb, no image. We'll look for a mime-related icon instead. - - $icon_dir = apply_filters( 'icon_dir', get_template_directory() . '/images' ); - $src_file = $icon_dir . '/' . basename($src); - } - - if ( !isset($src) || !$src ) - return false; - - return array($src, $src_file); -} - -/** - * Retrieve HTML content of icon attachment image element. - * - * @since 2.0.0 - * @deprecated 2.5.0 - * @deprecated Use wp_get_attachment_image() - * @see wp_get_attachment_image() - * - * @param int $id Optional. Post ID. - * @param bool $fullsize Optional, default to false. Whether to have full size image. - * @param array $max_dims Optional. Dimensions of image. - * @return false|string HTML content. - */ -function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) { - _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image()' ); - $id = (int) $id; - if ( !$post = get_post($id) ) - return false; - - if ( !$src = get_attachment_icon_src( $post->ID, $fullsize ) ) - return false; - - list($src, $src_file) = $src; - - // Do we need to constrain the image? - if ( ($max_dims = apply_filters('attachment_max_dims', $max_dims)) && file_exists($src_file) ) { - - $imagesize = getimagesize($src_file); - - if (($imagesize[0] > $max_dims[0]) || $imagesize[1] > $max_dims[1] ) { - $actual_aspect = $imagesize[0] / $imagesize[1]; - $desired_aspect = $max_dims[0] / $max_dims[1]; - - if ( $actual_aspect >= $desired_aspect ) { - $height = $actual_aspect * $max_dims[0]; - $constraint = "width='{$max_dims[0]}' "; - $post->iconsize = array($max_dims[0], $height); - } else { - $width = $max_dims[1] / $actual_aspect; - $constraint = "height='{$max_dims[1]}' "; - $post->iconsize = array($width, $max_dims[1]); - } - } else { - $post->iconsize = array($imagesize[0], $imagesize[1]); - $constraint = ''; - } - } else { - $constraint = ''; - } - - $post_title = esc_attr($post->post_title); - - $icon = "$post_title"; - - return apply_filters( 'attachment_icon', $icon, $post->ID ); -} - -/** - * Retrieve HTML content of image element. - * - * @since 2.0.0 - * @deprecated 2.5.0 - * @deprecated Use wp_get_attachment_image() - * @see wp_get_attachment_image() - * - * @param int $id Optional. Post ID. - * @param bool $fullsize Optional, default to false. Whether to have full size image. - * @param array $max_dims Optional. Dimensions of image. - * @return false|string - */ -function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) { - _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image()' ); - $id = (int) $id; - if ( !$post = get_post($id) ) - return false; - - if ( $innerHTML = get_attachment_icon($post->ID, $fullsize, $max_dims)) - return $innerHTML; - - $innerHTML = esc_attr($post->post_title); - - return apply_filters('attachment_innerHTML', $innerHTML, $post->ID); -} - -/** - * Retrieve bookmark data based on ID. - * - * @since 2.0.0 - * @deprecated 2.1.0 - * @deprecated Use get_bookmark() - * @see get_bookmark() - * - * @param int $bookmark_id ID of link - * @param string $output OBJECT, ARRAY_N, or ARRAY_A - * @return object|array - */ -function get_link($bookmark_id, $output = OBJECT, $filter = 'raw') { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmark()' ); - return get_bookmark($bookmark_id, $output, $filter); -} - -/** - * Performs esc_url() for database or redirect usage. - * - * @since 2.3.1 - * @deprecated 2.8.0 - * @deprecated Use esc_url_raw() - * @see esc_url_raw() - * - * @param string $url The URL to be cleaned. - * @param array $protocols An array of acceptable protocols. - * @return string The cleaned URL. - */ -function sanitize_url( $url, $protocols = null ) { - _deprecated_function( __FUNCTION__, '2.8', 'esc_url_raw()' ); - return esc_url_raw( $url, $protocols ); -} - -/** - * Checks and cleans a URL. - * - * A number of characters are removed from the URL. If the URL is for displaying - * (the default behaviour) ampersands are also replaced. The 'clean_url' filter - * is applied to the returned cleaned URL. - * - * @since 1.2.0 - * @deprecated 3.0.0 - * @deprecated Use esc_url() - * @see Alias for esc_url() - * - * @param string $url The URL to be cleaned. - * @param array $protocols Optional. An array of acceptable protocols. - * @param string $context Optional. How the URL will be used. Default is 'display'. - * @return string The cleaned $url after the 'clean_url' filter is applied. - */ -function clean_url( $url, $protocols = null, $context = 'display' ) { - if ( $context == 'db' ) - _deprecated_function( 'clean_url( $context = \'db\' )', '3.0', 'esc_url_raw()' ); - else - _deprecated_function( __FUNCTION__, '3.0', 'esc_url()' ); - return esc_url( $url, $protocols, $context ); -} - -/** - * Escape single quotes, specialchar double quotes, and fix line endings. - * - * The filter 'js_escape' is also applied by esc_js() - * - * @since 2.0.4 - * @deprecated 2.8.0 - * @deprecated Use esc_js() - * @see esc_js() - * - * @param string $text The text to be escaped. - * @return string Escaped text. - */ -function js_escape( $text ) { - _deprecated_function( __FUNCTION__, '2.8', 'esc_js()' ); - return esc_js( $text ); -} - -/** - * Escaping for HTML blocks. - * - * @deprecated 2.8.0 - * @deprecated Use esc_html() - * @see esc_html() - */ -function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { - _deprecated_function( __FUNCTION__, '2.8', 'esc_html()' ); - if ( func_num_args() > 1 ) { // Maintain backwards compat for people passing additional args - $args = func_get_args(); - return call_user_func_array( '_wp_specialchars', $args ); - } else { - return esc_html( $string ); - } -} - -/** - * Escaping for HTML attributes. - * - * @since 2.0.6 - * @deprecated 2.8.0 - * @deprecated Use esc_attr() - * @see esc_attr() - * - * @param string $text - * @return string - */ -function attribute_escape( $text ) { - _deprecated_function( __FUNCTION__, '2.8', 'esc_attr()' ); - return esc_attr( $text ); -} - -/** - * Register widget for sidebar with backwards compatibility. - * - * Allows $name to be an array that accepts either three elements to grab the - * first element and the third for the name or just uses the first element of - * the array for the name. - * - * Passes to {@link wp_register_sidebar_widget()} after argument list and - * backwards compatibility is complete. - * - * @since 2.2.0 - * @deprecated 2.8.0 - * @deprecated Use wp_register_sidebar_widget() - * @see wp_register_sidebar_widget() - * - * @param string|int $name Widget ID. - * @param callback $output_callback Run when widget is called. - * @param string $classname Classname widget option. - * @param mixed $params ,... Widget parameters. - */ -function register_sidebar_widget($name, $output_callback, $classname = '') { - _deprecated_function( __FUNCTION__, '2.8', 'wp_register_sidebar_widget()' ); - // Compat - if ( is_array($name) ) { - if ( count($name) == 3 ) - $name = sprintf($name[0], $name[2]); - else - $name = $name[0]; - } - - $id = sanitize_title($name); - $options = array(); - if ( !empty($classname) && is_string($classname) ) - $options['classname'] = $classname; - $params = array_slice(func_get_args(), 2); - $args = array($id, $name, $output_callback, $options); - if ( !empty($params) ) - $args = array_merge($args, $params); - - call_user_func_array('wp_register_sidebar_widget', $args); -} - -/** - * Alias of {@link wp_unregister_sidebar_widget()}. - * - * @since 2.2.0 - * @deprecated 2.8.0 - * @deprecated Use wp_unregister_sidebar_widget() - * @see wp_unregister_sidebar_widget() - * - * @param int|string $id Widget ID. - */ -function unregister_sidebar_widget($id) { - _deprecated_function( __FUNCTION__, '2.8', 'wp_unregister_sidebar_widget()' ); - return wp_unregister_sidebar_widget($id); -} - -/** - * Registers widget control callback for customizing options. - * - * Allows $name to be an array that accepts either three elements to grab the - * first element and the third for the name or just uses the first element of - * the array for the name. - * - * Passes to {@link wp_register_widget_control()} after the argument list has - * been compiled. - * - * @since 2.2.0 - * @deprecated 2.8.0 - * @deprecated Use wp_register_widget_control() - * @see wp_register_widget_control() - * - * @param int|string $name Sidebar ID. - * @param callback $control_callback Widget control callback to display and process form. - * @param int $width Widget width. - * @param int $height Widget height. - */ -function register_widget_control($name, $control_callback, $width = '', $height = '') { - _deprecated_function( __FUNCTION__, '2.8', 'wp_register_widget_control()' ); - // Compat - if ( is_array($name) ) { - if ( count($name) == 3 ) - $name = sprintf($name[0], $name[2]); - else - $name = $name[0]; - } - - $id = sanitize_title($name); - $options = array(); - if ( !empty($width) ) - $options['width'] = $width; - if ( !empty($height) ) - $options['height'] = $height; - $params = array_slice(func_get_args(), 4); - $args = array($id, $name, $control_callback, $options); - if ( !empty($params) ) - $args = array_merge($args, $params); - - call_user_func_array('wp_register_widget_control', $args); -} - -/** - * Alias of {@link wp_unregister_widget_control()}. - * - * @since 2.2.0 - * @deprecated 2.8.0 - * @deprecated Use wp_unregister_widget_control() - * @see wp_unregister_widget_control() - * - * @param int|string $id Widget ID. - */ -function unregister_widget_control($id) { - _deprecated_function( __FUNCTION__, '2.8', 'wp_unregister_widget_control()' ); - return wp_unregister_widget_control($id); -} - -/** - * Remove user meta data. - * - * @since 2.0.0 - * @deprecated 3.0.0 - * @deprecated Use delete_user_meta() - * @see delete_user_meta() - * - * @param int $user_id User ID. - * @param string $meta_key Metadata key. - * @param mixed $meta_value Metadata value. - * @return bool True deletion completed and false if user_id is not a number. - */ -function delete_usermeta( $user_id, $meta_key, $meta_value = '' ) { - _deprecated_function( __FUNCTION__, '3.0', 'delete_user_meta()' ); - global $wpdb; - if ( !is_numeric( $user_id ) ) - return false; - $meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key); - - if ( is_array($meta_value) || is_object($meta_value) ) - $meta_value = serialize($meta_value); - $meta_value = trim( $meta_value ); - - $cur = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) ); - - if ( $cur && $cur->umeta_id ) - do_action( 'delete_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value ); - - if ( ! empty($meta_value) ) - $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s AND meta_value = %s", $user_id, $meta_key, $meta_value) ); - else - $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) ); - - clean_user_cache( $user_id ); - wp_cache_delete( $user_id, 'user_meta' ); - - if ( $cur && $cur->umeta_id ) - do_action( 'deleted_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value ); - - return true; -} - -/** - * Retrieve user metadata. - * - * If $user_id is not a number, then the function will fail over with a 'false' - * boolean return value. Other returned values depend on whether there is only - * one item to be returned, which be that single item type. If there is more - * than one metadata value, then it will be list of metadata values. - * - * @since 2.0.0 - * @deprecated 3.0.0 - * @deprecated Use get_user_meta() - * @see get_user_meta() - * - * @param int $user_id User ID - * @param string $meta_key Optional. Metadata key. - * @return mixed - */ -function get_usermeta( $user_id, $meta_key = '' ) { - _deprecated_function( __FUNCTION__, '3.0', 'get_user_meta()' ); - global $wpdb; - $user_id = (int) $user_id; - - if ( !$user_id ) - return false; - - if ( !empty($meta_key) ) { - $meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key); - $user = wp_cache_get($user_id, 'users'); - // Check the cached user object - if ( false !== $user && isset($user->$meta_key) ) - $metas = array($user->$meta_key); - else - $metas = $wpdb->get_col( $wpdb->prepare("SELECT meta_value FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) ); - } else { - $metas = $wpdb->get_col( $wpdb->prepare("SELECT meta_value FROM $wpdb->usermeta WHERE user_id = %d", $user_id) ); - } - - if ( empty($metas) ) { - if ( empty($meta_key) ) - return array(); - else - return ''; - } - - $metas = array_map('maybe_unserialize', $metas); - - if ( count($metas) == 1 ) - return $metas[0]; - else - return $metas; -} - -/** - * Update metadata of user. - * - * There is no need to serialize values, they will be serialized if it is - * needed. The metadata key can only be a string with underscores. All else will - * be removed. - * - * Will remove the metadata, if the meta value is empty. - * - * @since 2.0.0 - * @deprecated 3.0.0 - * @deprecated Use update_user_meta() - * @see update_user_meta() - * - * @param int $user_id User ID - * @param string $meta_key Metadata key. - * @param mixed $meta_value Metadata value. - * @return bool True on successful update, false on failure. - */ -function update_usermeta( $user_id, $meta_key, $meta_value ) { - _deprecated_function( __FUNCTION__, '3.0', 'update_user_meta()' ); - global $wpdb; - if ( !is_numeric( $user_id ) ) - return false; - $meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key); - - /** @todo Might need fix because usermeta data is assumed to be already escaped */ - if ( is_string($meta_value) ) - $meta_value = stripslashes($meta_value); - $meta_value = maybe_serialize($meta_value); - - if (empty($meta_value)) { - return delete_usermeta($user_id, $meta_key); - } - - $cur = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) ); - - if ( $cur ) - do_action( 'update_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value ); - - if ( !$cur ) - $wpdb->insert($wpdb->usermeta, compact('user_id', 'meta_key', 'meta_value') ); - elseif ( $cur->meta_value != $meta_value ) - $wpdb->update($wpdb->usermeta, compact('meta_value'), compact('user_id', 'meta_key') ); - else - return false; - - clean_user_cache( $user_id ); - wp_cache_delete( $user_id, 'user_meta' ); - - if ( !$cur ) - do_action( 'added_usermeta', $wpdb->insert_id, $user_id, $meta_key, $meta_value ); - else - do_action( 'updated_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value ); - - return true; -} - -/** - * Get users for the blog. - * - * For setups that use the multi-blog feature. Can be used outside of the - * multi-blog feature. - * - * @since 2.2.0 - * @deprecated 3.1.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * @uses $blog_id The Blog id of the blog for those that use more than one blog - * - * @param int $id Blog ID. - * @return array List of users that are part of that Blog ID - */ -function get_users_of_blog( $id = '' ) { - _deprecated_function( __FUNCTION__, '3.1', 'get_users()' ); - - global $wpdb, $blog_id; - if ( empty($id) ) - $id = (int) $blog_id; - $blog_prefix = $wpdb->get_blog_prefix($id); - $users = $wpdb->get_results( "SELECT user_id, user_id AS ID, user_login, display_name, user_email, meta_value FROM $wpdb->users, $wpdb->usermeta WHERE {$wpdb->users}.ID = {$wpdb->usermeta}.user_id AND meta_key = '{$blog_prefix}capabilities' ORDER BY {$wpdb->usermeta}.user_id" ); - return $users; -} - -/** - * Enable/disable automatic general feed link outputting. - * - * @since 2.8.0 - * @deprecated 3.0.0 - * @deprecated Use add_theme_support( 'automatic-feed-links' ) - * - * @param bool $add Optional, default is true. Add or remove links. Defaults to true. - */ -function automatic_feed_links( $add = true ) { - _deprecated_function( __FUNCTION__, '3.0', "add_theme_support( 'automatic-feed-links' )" ); - - if ( $add ) - add_theme_support( 'automatic-feed-links' ); - else - remove_action( 'wp_head', 'feed_links_extra', 3 ); // Just do this yourself in 3.0+ -} - -/** - * Retrieve user data based on field. - * - * @since 1.5.0 - * @deprecated 3.0.0 - * @deprecated Use get_the_author_meta() - * @see get_the_author_meta() - */ -function get_profile( $field, $user = false ) { - _deprecated_function( __FUNCTION__, '3.0', 'get_the_author_meta()' ); - if ( $user ) { - $user = get_user_by( 'login', $user ); - $user = $user->ID; - } - return get_the_author_meta( $field, $user ); -} - -/** - * Number of posts user has written. - * - * @since 0.71 - * @deprecated 3.0.0 - * @deprecated Use count_user_posts() - * @see count_user_posts() - */ -function get_usernumposts( $userid ) { - _deprecated_function( __FUNCTION__, '3.0', 'count_user_posts()' ); - return count_user_posts( $userid ); -} - -/** - * Callback used to change %uXXXX to &#YYY; syntax - * - * @since 2.8.0 - * @access private - * @deprecated 3.0.0 - * - * @param array $matches Single Match - * @return string An HTML entity - */ -function funky_javascript_callback($matches) { - return "&#".base_convert($matches[1],16,10).";"; -} - -/** - * Fixes JavaScript bugs in browsers. - * - * Converts unicode characters to HTML numbered entities. - * - * @since 1.5.0 - * @uses $is_macIE - * @uses $is_winIE - * @deprecated 3.0.0 - * - * @param string $text Text to be made safe. - * @return string Fixed text. - */ -function funky_javascript_fix($text) { - _deprecated_function( __FUNCTION__, '3.0' ); - // Fixes for browsers' JavaScript bugs. - global $is_macIE, $is_winIE; - - if ( $is_winIE || $is_macIE ) - $text = preg_replace_callback("/\%u([0-9A-F]{4,4})/", - "funky_javascript_callback", - $text); - - return $text; -} - -/** - * Checks that the taxonomy name exists. - * - * @since 2.3.0 - * @deprecated 3.0.0 - * @deprecated Use taxonomy_exists() - * @see taxonomy_exists() - * - * @param string $taxonomy Name of taxonomy object - * @return bool Whether the taxonomy exists. - */ -function is_taxonomy( $taxonomy ) { - _deprecated_function( __FUNCTION__, '3.0', 'taxonomy_exists()' ); - return taxonomy_exists( $taxonomy ); -} - -/** - * Check if Term exists. - * - * @since 2.3.0 - * @deprecated 3.0.0 - * @deprecated Use term_exists() - * @see term_exists() - * - * @param int|string $term The term to check - * @param string $taxonomy The taxonomy name to use - * @param int $parent ID of parent term under which to confine the exists search. - * @return mixed Get the term id or Term Object, if exists. - */ -function is_term( $term, $taxonomy = '', $parent = 0 ) { - _deprecated_function( __FUNCTION__, '3.0', 'term_exists()' ); - return term_exists( $term, $taxonomy, $parent ); -} - -/** - * Is the current admin page generated by a plugin? - * - * @since 1.5.0 - * @deprecated 3.1.0 - * @deprecated Use global $plugin_page and/or get_plugin_page_hookname() hooks. - * - * @global $plugin_page - * - * @return bool - */ -function is_plugin_page() { - _deprecated_function( __FUNCTION__, '3.1' ); - - global $plugin_page; - - if ( isset($plugin_page) ) - return true; - - return false; -} - -/** - * Update the categories cache. - * - * This function does not appear to be used anymore or does not appear to be - * needed. It might be a legacy function left over from when there was a need - * for updating the category cache. - * - * @since 1.5.0 - * @deprecated 3.1.0 - * - * @return bool Always return True - */ -function update_category_cache() { - _deprecated_function( __FUNCTION__, '3.1' ); - - return true; -} - -/** - * Check for PHP timezone support - * - * @since 2.9.0 - * @deprecated 3.2.0 - * - * @return bool - */ -function wp_timezone_supported() { - _deprecated_function( __FUNCTION__, '3.2' ); - - return true; -} - -/** - * Display editor: TinyMCE, HTML, or both. - * - * @since 2.1.0 - * @deprecated 3.3.0 - * @deprecated Use wp_editor() - * @see wp_editor() - * - * @param string $content Textarea content. - * @param string $id Optional, default is 'content'. HTML ID attribute value. - * @param string $prev_id Optional, not used - * @param bool $media_buttons Optional, default is true. Whether to display media buttons. - * @param int $tab_index Optional, not used - */ -function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) { - _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); - - wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) ); -} - -/** - * Perform the query to get the $metavalues array(s) needed by _fill_user and _fill_many_users - * - * @since 3.0.0 - * @deprecated 3.3.0 - * - * @param array $ids User ID numbers list. - * @return array of arrays. The array is indexed by user_id, containing $metavalues object arrays. - */ -function get_user_metavalues($ids) { - _deprecated_function( __FUNCTION__, '3.3' ); - - $objects = array(); - - $ids = array_map('intval', $ids); - foreach ( $ids as $id ) - $objects[$id] = array(); - - $metas = update_meta_cache('user', $ids); - - foreach ( $metas as $id => $meta ) { - foreach ( $meta as $key => $metavalues ) { - foreach ( $metavalues as $value ) { - $objects[$id][] = (object)array( 'user_id' => $id, 'meta_key' => $key, 'meta_value' => $value); - } - } - } - - return $objects; -} - -/** - * Sanitize every user field. - * - * If the context is 'raw', then the user object or array will get minimal santization of the int fields. - * - * @since 2.3.0 - * @deprecated 3.3.0 - * - * @param object|array $user The User Object or Array - * @param string $context Optional, default is 'display'. How to sanitize user fields. - * @return object|array The now sanitized User Object or Array (will be the same type as $user) - */ -function sanitize_user_object($user, $context = 'display') { - _deprecated_function( __FUNCTION__, '3.3' ); - - if ( is_object($user) ) { - if ( !isset($user->ID) ) - $user->ID = 0; - if ( ! ( $user instanceof WP_User ) ) { - $vars = get_object_vars($user); - foreach ( array_keys($vars) as $field ) { - if ( is_string($user->$field) || is_numeric($user->$field) ) - $user->$field = sanitize_user_field($field, $user->$field, $user->ID, $context); - } - } - $user->filter = $context; - } else { - if ( !isset($user['ID']) ) - $user['ID'] = 0; - foreach ( array_keys($user) as $field ) - $user[$field] = sanitize_user_field($field, $user[$field], $user['ID'], $context); - $user['filter'] = $context; - } - - return $user; -} - -/** - * Get boundary post relational link. - * - * Can either be start or end post relational link. - * - * @since 2.8.0 - * @deprecated 3.3.0 - * - * @param string $title Optional. Link title format. - * @param bool $in_same_cat Optional. Whether link should be in a same category. - * @param string $excluded_categories Optional. Excluded categories IDs. - * @param bool $start Optional, default is true. Whether to display link to first or last post. - * @return string - */ -function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $start = true) { - _deprecated_function( __FUNCTION__, '3.3' ); - - $posts = get_boundary_post($in_same_cat, $excluded_categories, $start); - // If there is no post stop. - if ( empty($posts) ) - return; - - // Even though we limited get_posts to return only 1 item it still returns an array of objects. - $post = $posts[0]; - - if ( empty($post->post_title) ) - $post->post_title = $start ? __('First Post') : __('Last Post'); - - $date = mysql2date(get_option('date_format'), $post->post_date); - - $title = str_replace('%title', $post->post_title, $title); - $title = str_replace('%date', $date, $title); - $title = apply_filters('the_title', $title, $post->ID); - - $link = $start ? "\n"; - - $boundary = $start ? 'start' : 'end'; - return apply_filters( "{$boundary}_post_rel_link", $link ); -} - -/** - * Display relational link for the first post. - * - * @since 2.8.0 - * @deprecated 3.3.0 - * - * @param string $title Optional. Link title format. - * @param bool $in_same_cat Optional. Whether link should be in a same category. - * @param string $excluded_categories Optional. Excluded categories IDs. - */ -function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') { - _deprecated_function( __FUNCTION__, '3.3' ); - - echo get_boundary_post_rel_link($title, $in_same_cat, $excluded_categories, true); -} - -/** - * Get site index relational link. - * - * @since 2.8.0 - * @deprecated 3.3.0 - * - * @return string - */ -function get_index_rel_link() { - _deprecated_function( __FUNCTION__, '3.3' ); - - $link = "\n"; - return apply_filters( "index_rel_link", $link ); -} - -/** - * Display relational link for the site index. - * - * @since 2.8.0 - * @deprecated 3.3.0 - */ -function index_rel_link() { - _deprecated_function( __FUNCTION__, '3.3' ); - - echo get_index_rel_link(); -} - -/** - * Get parent post relational link. - * - * @since 2.8.0 - * @deprecated 3.3.0 - * - * @param string $title Optional. Link title format. - * @return string - */ -function get_parent_post_rel_link($title = '%title') { - _deprecated_function( __FUNCTION__, '3.3' ); - - if ( ! empty( $GLOBALS['post'] ) && ! empty( $GLOBALS['post']->post_parent ) ) - $post = get_post($GLOBALS['post']->post_parent); - - if ( empty($post) ) - return; - - $date = mysql2date(get_option('date_format'), $post->post_date); - - $title = str_replace('%title', $post->post_title, $title); - $title = str_replace('%date', $date, $title); - $title = apply_filters('the_title', $title, $post->ID); - - $link = "\n"; - - return apply_filters( "parent_post_rel_link", $link ); -} - -/** - * Display relational link for parent item - * - * @since 2.8.0 - * @deprecated 3.3.0 - */ -function parent_post_rel_link($title = '%title') { - _deprecated_function( __FUNCTION__, '3.3' ); - - echo get_parent_post_rel_link($title); -} - -/** - * Add the "Dashboard"/"Visit Site" menu. - * - * @since 3.2.0 - * @deprecated 3.3.0 - */ -function wp_admin_bar_dashboard_view_site_menu( $wp_admin_bar ) { - _deprecated_function( __FUNCTION__, '3.3' ); - - $user_id = get_current_user_id(); - - if ( 0 != $user_id ) { - if ( is_admin() ) - $wp_admin_bar->add_menu( array( 'id' => 'view-site', 'title' => __( 'Visit Site' ), 'href' => home_url() ) ); - elseif ( is_multisite() ) - $wp_admin_bar->add_menu( array( 'id' => 'dashboard', 'title' => __( 'Dashboard' ), 'href' => get_dashboard_url( $user_id ) ) ); - else - $wp_admin_bar->add_menu( array( 'id' => 'dashboard', 'title' => __( 'Dashboard' ), 'href' => admin_url() ) ); - } -} - -/** - * Checks if the current user belong to a given blog. - * - * @since MU - * @deprecated 3.3.0 - * @deprecated Use is_user_member_of_blog() - * @see is_user_member_of_blog() - * - * @param int $blog_id Blog ID - * @return bool True if the current users belong to $blog_id, false if not. - */ -function is_blog_user( $blog_id = 0 ) { - _deprecated_function( __FUNCTION__, '3.3', 'is_user_member_of_blog()' ); - - return is_user_member_of_blog( get_current_user_id(), $blog_id ); -} - -/** - * Open the file handle for debugging. - * - * @since 0.71 - * @deprecated Use error_log() - * @link http://www.php.net/manual/en/function.error-log.php - * @deprecated 3.4.0 - */ -function debug_fopen( $filename, $mode ) { - _deprecated_function( __FUNCTION__, 'error_log()' ); - return false; -} - -/** - * Write contents to the file used for debugging. - * - * @since 0.71 - * @deprecated Use error_log() instead. - * @link http://www.php.net/manual/en/function.error-log.php - * @deprecated 3.4.0 - */ -function debug_fwrite( $fp, $string ) { - _deprecated_function( __FUNCTION__, 'error_log()' ); - if ( ! empty( $GLOBALS['debug'] ) ) - error_log( $string ); -} - -/** - * Close the debugging file handle. - * - * @since 0.71 - * @deprecated Use error_log() - * @link http://www.php.net/manual/en/function.error-log.php - * @deprecated 3.4.0 - */ -function debug_fclose( $fp ) { - _deprecated_function( __FUNCTION__, 'error_log()' ); -} - -/** - * Retrieve list of themes with theme data in theme directory. - * - * The theme is broken, if it doesn't have a parent theme and is missing either - * style.css and, or index.php. If the theme has a parent theme then it is - * broken, if it is missing style.css; index.php is optional. - * - * @since 1.5.0 - * @deprecated 3.4.0 - * @deprecated Use wp_get_themes() - * @see wp_get_themes() - * - * @return array Theme list with theme data. - */ -function get_themes() { - _deprecated_function( __FUNCTION__, '3.4', 'wp_get_themes()' ); - - global $wp_themes; - if ( isset( $wp_themes ) ) - return $wp_themes; - - $themes = wp_get_themes(); - $wp_themes = array(); - - foreach ( $themes as $theme ) { - $name = $theme->get('Name'); - if ( isset( $wp_themes[ $name ] ) ) - $wp_themes[ $name . '/' . $theme->get_stylesheet() ] = $theme; - else - $wp_themes[ $name ] = $theme; - } - - return $wp_themes; -} - -/** - * Retrieve theme data. - * - * @since 1.5.0 - * @deprecated 3.4.0 - * @deprecated Use wp_get_theme() - * @see wp_get_theme() - * - * @param string $theme Theme name. - * @return array|null Null, if theme name does not exist. Theme data, if exists. - */ -function get_theme( $theme ) { - _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme( $stylesheet )' ); - - $themes = get_themes(); - if ( is_array( $themes ) && array_key_exists( $theme, $themes ) ) - return $themes[ $theme ]; - return null; -} - -/** - * Retrieve current theme name. - * - * @since 1.5.0 - * @deprecated 3.4.0 - * @deprecated Use (string) wp_get_theme() - * @see wp_get_theme() - * - * @return string - */ -function get_current_theme() { - _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' ); - - if ( $theme = get_option( 'current_theme' ) ) - return $theme; - - return wp_get_theme()->get('Name'); -} - -/** - * Accepts matches array from preg_replace_callback in wpautop() or a string. - * - * Ensures that the contents of a `
    ...
    ` HTML block are not - * converted into paragraphs or line-breaks. - * - * @since 1.2.0 - * @deprecated 3.4.0 - * - * @param array|string $matches The array or string - * @return string The pre block without paragraph/line-break conversion. - */ -function clean_pre($matches) { - _deprecated_function( __FUNCTION__, '3.4' ); - - if ( is_array($matches) ) - $text = $matches[1] . $matches[2] . ""; - else - $text = $matches; - - $text = str_replace(array('
    ', '
    ', '
    '), array('', '', ''), $text); - $text = str_replace('

    ', "\n", $text); - $text = str_replace('

    ', '', $text); - - return $text; -} - - -/** - * Add callbacks for image header display. - * - * @since 2.1.0 - * @deprecated 3.4.0 - * @deprecated Use add_theme_support('custom-header', $args) - * @see add_theme_support() - * - * @param callback $wp_head_callback Call on 'wp_head' action. - * @param callback $admin_head_callback Call on custom header administration screen. - * @param callback $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional. - */ -function add_custom_image_header( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' ) { - _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-header\', $args )' ); - $args = array( - 'wp-head-callback' => $wp_head_callback, - 'admin-head-callback' => $admin_head_callback, - ); - if ( $admin_preview_callback ) - $args['admin-preview-callback'] = $admin_preview_callback; - return add_theme_support( 'custom-header', $args ); -} - -/** - * Remove image header support. - * - * @since 3.1.0 - * @deprecated 3.4.0 - * @deprecated Use remove_theme_support('custom-header') - * @see remove_theme_support() - * - * @return null|bool Whether support was removed. - */ -function remove_custom_image_header() { - _deprecated_function( __FUNCTION__, '3.4', 'remove_theme_support( \'custom-header\' )' ); - return remove_theme_support( 'custom-header' ); -} - -/** - * Add callbacks for background image display. - * - * @since 3.0.0 - * @deprecated 3.4.0 - * @deprecated Use add_theme_support('custom-background, $args) - * @see add_theme_support() - * - * @param callback $wp_head_callback Call on 'wp_head' action. - * @param callback $admin_head_callback Call on custom background administration screen. - * @param callback $admin_preview_callback Output a custom background image div on the custom background administration screen. Optional. - */ -function add_custom_background( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' ) { - _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-background\', $args )' ); - $args = array(); - if ( $wp_head_callback ) - $args['wp-head-callback'] = $wp_head_callback; - if ( $admin_head_callback ) - $args['admin-head-callback'] = $admin_head_callback; - if ( $admin_preview_callback ) - $args['admin-preview-callback'] = $admin_preview_callback; - return add_theme_support( 'custom-background', $args ); -} - -/** - * Remove custom background support. - * - * @since 3.1.0 - * @see add_custom_background() - * - * @return null|bool Whether support was removed. - */ -function remove_custom_background() { - _deprecated_function( __FUNCTION__, '3.4', 'remove_theme_support( \'custom-background\' )' ); - return remove_theme_support( 'custom-background' ); -} - -/** - * Retrieve theme data from parsed theme file. - * - * @since 1.5.0 - * @deprecated 3.4.0 - * @deprecated Use wp_get_theme() - * @see wp_get_theme() - * - * @param string $theme_file Theme file path. - * @return array Theme data. - */ -function get_theme_data( $theme_file ) { - _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' ); - $theme = new WP_Theme( basename( dirname( $theme_file ) ), dirname( dirname( $theme_file ) ) ); - - $theme_data = array( - 'Name' => $theme->get('Name'), - 'URI' => $theme->display('ThemeURI', true, false), - 'Description' => $theme->display('Description', true, false), - 'Author' => $theme->display('Author', true, false), - 'AuthorURI' => $theme->display('AuthorURI', true, false), - 'Version' => $theme->get('Version'), - 'Template' => $theme->get('Template'), - 'Status' => $theme->get('Status'), - 'Tags' => $theme->get('Tags'), - 'Title' => $theme->get('Name'), - 'AuthorName' => $theme->get('Author'), - ); - - foreach ( apply_filters( 'extra_theme_headers', array() ) as $extra_header ) { - if ( ! isset( $theme_data[ $extra_header ] ) ) - $theme_data[ $extra_header ] = $theme->get( $extra_header ); - } - - return $theme_data; -} - -/** - * Alias of update_post_cache(). - * - * @see update_post_cache() Posts and pages are the same, alias is intentional - * - * @since 1.5.1 - * @deprecated 3.4.0 - * - * @param array $pages list of page objects - */ -function update_page_cache( &$pages ) { - _deprecated_function( __FUNCTION__, '3.4', 'update_post_cache()' ); - - update_post_cache( $pages ); -} - -/** - * Will clean the page in the cache. - * - * Clean (read: delete) page from cache that matches $id. Will also clean cache - * associated with 'all_page_ids' and 'get_pages'. - * - * @since 2.0.0 - * @deprecated 3.4.0 - * - * @param int $id Page ID to clean - */ -function clean_page_cache( $id ) { - _deprecated_function( __FUNCTION__, '3.4', 'clean_post_cache()' ); - - clean_post_cache( $id ); -} - -/** - * Retrieve nonce action "Are you sure" message. - * - * Deprecated in 3.4.1 and 3.5.0. Backported to 3.3.3. - * - * @since 2.0.4 - * @deprecated 3.4.1 - * @deprecated Use wp_nonce_ays() - * @see wp_nonce_ays() - * - * @param string $action Nonce action. - * @return string Are you sure message. - */ -function wp_explain_nonce( $action ) { - _deprecated_function( __FUNCTION__, '3.4.1', 'wp_nonce_ays()' ); - return __( 'Are you sure you want to do this?' ); -} - -/** - * Display "sticky" CSS class, if a post is sticky. - * - * @since 2.7.0 - * @deprecated 3.5.0 - * @deprecated Use post_class() - * @see post_class() - * - * @param int $post_id An optional post ID. - */ -function sticky_class( $post_id = null ) { - _deprecated_function( __FUNCTION__, '3.5', 'post_class()' ); - if ( is_sticky( $post_id ) ) - echo ' sticky'; -} - -/** - * Retrieve post ancestors. - * - * This is no longer needed as WP_Post lazy-loads the ancestors - * property with get_post_ancestors(). - * - * @since 2.3.4 - * @deprecated 3.5.0 - * @see get_post_ancestors() - */ -function _get_post_ancestors( &$post ) { - _deprecated_function( __FUNCTION__, '3.5' ); -} - -/** - * Load an image from a string, if PHP supports it. - * - * @since 2.1.0 - * @deprecated 3.5.0 - * @see wp_get_image_editor() - * - * @param string $file Filename of the image to load. - * @return resource The resulting image resource on success, Error string on failure. - */ -function wp_load_image( $file ) { - _deprecated_function( __FUNCTION__, '3.5', 'wp_get_image_editor()' ); - - if ( is_numeric( $file ) ) - $file = get_attached_file( $file ); - - if ( ! is_file( $file ) ) - return sprintf(__('File “%s” doesn’t exist?'), $file); - - if ( ! function_exists('imagecreatefromstring') ) - return __('The GD image library is not installed.'); - - // Set artificially high because GD uses uncompressed images in memory - @ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) ); - $image = imagecreatefromstring( file_get_contents( $file ) ); - - if ( !is_resource( $image ) ) - return sprintf(__('File “%s” is not an image.'), $file); - - return $image; -} - -/** - * Scale down an image to fit a particular size and save a new copy of the image. - * - * The PNG transparency will be preserved using the function, as well as the - * image type. If the file going in is PNG, then the resized image is going to - * be PNG. The only supported image types are PNG, GIF, and JPEG. - * - * Some functionality requires API to exist, so some PHP version may lose out - * support. This is not the fault of WordPress (where functionality is - * downgraded, not actual defects), but of your PHP version. - * - * @since 2.5.0 - * @deprecated 3.5.0 - * @see wp_get_image_editor() - * - * @param string $file Image file path. - * @param int $max_w Maximum width to resize to. - * @param int $max_h Maximum height to resize to. - * @param bool $crop Optional. Whether to crop image or resize. - * @param string $suffix Optional. File suffix. - * @param string $dest_path Optional. New image file path. - * @param int $jpeg_quality Optional, default is 90. Image quality percentage. - * @return mixed WP_Error on failure. String with new destination path. - */ -function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) { - _deprecated_function( __FUNCTION__, '3.5', 'wp_get_image_editor()' ); - - $editor = wp_get_image_editor( $file ); - if ( is_wp_error( $editor ) ) - return $editor; - $editor->set_quality( $jpeg_quality ); - - $resized = $editor->resize( $max_w, $max_h, $crop ); - if ( is_wp_error( $resized ) ) - return $resized; - - $dest_file = $editor->generate_filename( $suffix, $dest_path ); - $saved = $editor->save( $dest_file ); - - if ( is_wp_error( $saved ) ) - return $saved; - - return $dest_file; -} - -/** - * Retrieve a single post, based on post ID. - * - * Has categories in 'post_category' property or key. Has tags in 'tags_input' - * property or key. - * - * @since 1.0.0 - * @deprecated 3.5.0 - * @see get_post() - * - * @param int $postid Post ID. - * @param string $mode How to return result, either OBJECT, ARRAY_N, or ARRAY_A. - * @return WP_Post|null Post object or array holding post contents and information - */ -function wp_get_single_post( $postid = 0, $mode = OBJECT ) { - _deprecated_function( __FUNCTION__, '3.5', 'get_post()' ); - return get_post( $postid, $mode ); -} - -/** - * Check that the user login name and password is correct. - * - * @since 0.71 - * @deprecated 3.5.0 - * @deprecated Use wp_authenticate() - * @see wp_authenticate() - * - * @param string $user_login User name. - * @param string $user_pass User password. - * @return bool False if does not authenticate, true if username and password authenticates. - */ -function user_pass_ok($user_login, $user_pass) { - _deprecated_function( __FUNCTION__, '3.5', 'wp_authenticate()' ); - $user = wp_authenticate( $user_login, $user_pass ); - if ( is_wp_error( $user ) ) - return false; - - return true; -} - -/** - * Callback formerly fired on the save_post hook. No longer needed. - * - * @since 2.3.0 - * @deprecated 3.5.0 - */ -function _save_post_hook() {} - -/** - * Check if the installed version of GD supports particular image type - * - * @since 2.9.0 - * @deprecated 3.5.0 - * @see wp_image_editor_supports() - * - * @param string $mime_type - * @return bool - */ -function gd_edit_image_support($mime_type) { - _deprecated_function( __FUNCTION__, '3.5', 'wp_image_editor_supports()' ); - - if ( function_exists('imagetypes') ) { - switch( $mime_type ) { - case 'image/jpeg': - return (imagetypes() & IMG_JPG) != 0; - case 'image/png': - return (imagetypes() & IMG_PNG) != 0; - case 'image/gif': - return (imagetypes() & IMG_GIF) != 0; - } - } else { - switch( $mime_type ) { - case 'image/jpeg': - return function_exists('imagecreatefromjpeg'); - case 'image/png': - return function_exists('imagecreatefrompng'); - case 'image/gif': - return function_exists('imagecreatefromgif'); - } - } - return false; -} - -/** - * Converts an integer byte value to a shorthand byte value. - * - * @since 2.3.0 - * @deprecated 3.6.0 - * @deprecated Use size_format() - * - * @param int $bytes An integer byte value. - * @return string A shorthand byte value. - */ -function wp_convert_bytes_to_hr( $bytes ) { - _deprecated_function( __FUNCTION__, '3.6', 'size_format()' ); - - $units = array( 0 => 'B', 1 => 'kB', 2 => 'MB', 3 => 'GB', 4 => 'TB' ); - $log = log( $bytes, 1024 ); - $power = (int) $log; - $size = pow( 1024, $log - $power ); - - if ( ! is_nan( $size ) && array_key_exists( $power, $units ) ) { - $unit = $units[ $power ]; - } else { - $size = $bytes; - $unit = $units[0]; - } - - return $size . $unit; -} - -/** - * Formerly used internally to tidy up the search terms. - * - * @access private - * @since 2.9.0 - * @deprecated 3.7.0 - */ -function _search_terms_tidy( $t ) { - _deprecated_function( __FUNCTION__, '3.7' ); - return trim( $t, "\"'\n\r " ); -} - -/** - * Determine if TinyMCE is available. - * - * Checks to see if the user has deleted the tinymce files to slim down - * their WordPress install. - * - * @since 2.1.0 - * @deprecated 3.9.0 - * - * @return bool Whether TinyMCE exists. - */ -function rich_edit_exists() { - global $wp_rich_edit_exists; - _deprecated_function( __FUNCTION__, '3.9' ); - - if ( ! isset( $wp_rich_edit_exists ) ) - $wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' ); - - return $wp_rich_edit_exists; -} - -/** - * Old callback for tag link tooltips. - * - * @since 2.7.0 - * @deprecated 3.9.0 - * @access private - */ -function default_topic_count_text( $count ) { - return $count; -} - -/** - * Formerly used to escape strings before inserting into the DB. - * - * Has not performed this function for many, many years. Use wpdb::prepare() instead. - * - * @since 0.71 - * @deprecated 3.9.0 - * - * @param string $content The text to format. - * @return string The very same text. - */ -function format_to_post( $content ) { - _deprecated_function( __FUNCTION__, '3.9' ); - return $content; -} - -/** - * Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described. - * - * @since 2.5.0 - * @deprecated 4.0.0 - * @deprecated Use wpdb::esc_like() - * - * @param string $text The text to be escaped. - * @return string text, safe for inclusion in LIKE query. - */ -function like_escape($text) { - _deprecated_function( __FUNCTION__, '4.0', 'wpdb::esc_like()' ); - return str_replace( array( "%", "_" ), array( "\\%", "\\_" ), $text ); -} - -/** - * Determines if the URL can be accessed over SSL. - * - * Determines if the URL can be accessed over SSL by using the WordPress HTTP API to access - * the URL using https as the scheme. - * - * @since 2.5.0 - * @deprecated 4.0.0 - * - * @param string $url The URL to test. - * @return bool Whether SSL access is available. - */ -function url_is_accessable_via_ssl( $url ) { - _deprecated_function( __FUNCTION__, '4.0' ); - - $response = wp_remote_get( set_url_scheme( $url, 'https' ) ); - - if ( !is_wp_error( $response ) ) { - $status = wp_remote_retrieve_response_code( $response ); - if ( 200 == $status || 401 == $status ) { - return true; - } - } - - return false; -} - -/** - * Start preview theme output buffer. - * - * Will only perform task if the user has permissions and template and preview - * query variables exist. - * - * @since 2.6.0 - * @deprecated 4.3.0 - */ -function preview_theme() { - _deprecated_function( __FUNCTION__, '4.3' ); -} - -/** - * Private function to modify the current template when previewing a theme - * - * @since 2.9.0 - * @deprecated 4.3.0 - * @access private - * - * @return string - */ -function _preview_theme_template_filter() { - _deprecated_function( __FUNCTION__, '4.3' ); - return ''; -} - -/** - * Private function to modify the current stylesheet when previewing a theme - * - * @since 2.9.0 - * @deprecated 4.3.0 - * @access private - * - * @return string - */ -function _preview_theme_stylesheet_filter() { - _deprecated_function( __FUNCTION__, '4.3' ); - return ''; -} - -/** - * Callback function for ob_start() to capture all links in the theme. - * - * @since 2.6.0 - * @deprecated 4.3.0 - * @access private - * - * @param string $content - * @return string - */ -function preview_theme_ob_filter( $content ) { - _deprecated_function( __FUNCTION__, '4.3' ); - return $content; -} - -/** - * Manipulates preview theme links in order to control and maintain location. - * - * Callback function for preg_replace_callback() to accept and filter matches. - * - * @since 2.6.0 - * @deprecated 4.3.0 - * @access private - * - * @param array $matches - * @return string - */ -function preview_theme_ob_filter_callback( $matches ) { - _deprecated_function( __FUNCTION__, '4.3' ); - return ''; -} - -/** - * Formats text for the rich text editor. - * - * The filter 'richedit_pre' is applied here. If $text is empty the filter will - * be applied to an empty string. - * - * @since 2.0.0 - * @deprecated 4.3.0 - * - * @param string $text The text to be formatted. - * @return string The formatted text after filter is applied. - */ -function wp_richedit_pre($text) { - _deprecated_function( __FUNCTION__, '4.3', 'format_for_editor()' ); - - if ( empty( $text ) ) { - /** - * Filter text returned for the rich text editor. - * - * This filter is first evaluated, and the value returned, if an empty string - * is passed to wp_richedit_pre(). If an empty string is passed, it results - * in a break tag and line feed. - * - * If a non-empty string is passed, the filter is evaluated on the wp_richedit_pre() - * return after being formatted. - * - * @since 2.0.0 - * @deprecated 4.3.0 - * - * @param string $output Text for the rich text editor. - */ - return apply_filters( 'richedit_pre', '' ); - } - - $output = convert_chars($text); - $output = wpautop($output); - $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); - - /** This filter is documented in wp-includes/deprecated.php */ - return apply_filters( 'richedit_pre', $output ); -} - -/** - * Formats text for the HTML editor. - * - * Unless $output is empty it will pass through htmlspecialchars before the - * 'htmledit_pre' filter is applied. - * - * @since 2.5.0 - * @deprecated 4.3.0 - * - * @param string $output The text to be formatted. - * @return string Formatted text after filter applied. - */ -function wp_htmledit_pre($output) { - _deprecated_function( __FUNCTION__, '4.3', 'format_for_editor()' ); - - if ( !empty($output) ) - $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); // convert only < > & - - /** - * Filter the text before it is formatted for the HTML editor. - * - * @since 2.5.0 - * @deprecated 4.3.0 - * - * @param string $output The HTML-formatted text. - */ - return apply_filters( 'htmledit_pre', $output ); -} - diff --git a/wp-includes/feed-atom-comments.php b/wp-includes/feed-atom-comments.php deleted file mode 100644 index 785a0c247a..0000000000 --- a/wp-includes/feed-atom-comments.php +++ /dev/null @@ -1,115 +0,0 @@ -'; - -/** This action is documented in wp-includes/feed-rss2.php */ -do_action( 'rss_tag_pre', 'atom-comments' ); -?> - -> - <?php - if ( is_singular() ) - printf( ent2ncr( __( 'Comments on %s' ) ), get_the_title_rss() ); - elseif ( is_search() ) - printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() ); - else - printf( ent2ncr( __( 'Comments for %s' ) ), get_bloginfo_rss( 'name' ) . get_wp_title_rss() ); - ?> - - - - - - - - - - - - - - - - - - -comment_post_ID ); -?> - - <?php - if ( !is_singular() ) { - $title = get_the_title($comment_post->ID); - /** This filter is documented in wp-includes/feed.php */ - $title = apply_filters( 'the_title_rss', $title ); - printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); - } else { - printf(ent2ncr(__('By: %s')), get_comment_author_rss()); - } - ?> - - - - - ' . get_comment_author_url() . ''; ?> - - - - - - - - ]]> - - ]]> -comment_parent == 0 ) : // This comment is top level ?> - -comment_parent); - // The rel attribute below and the id tag above should be GUIDs, but WP doesn't create them for comments (unlike posts). Either way, it's more important that they both use the same system -?> - -comment_ID, $comment_post->ID ); -?> - - - diff --git a/wp-includes/feed-atom.php b/wp-includes/feed-atom.php deleted file mode 100644 index ae4cd7976c..0000000000 --- a/wp-includes/feed-atom.php +++ /dev/null @@ -1,87 +0,0 @@ -'; - -/** This action is documented in wp-includes/feed-rss2.php */ -do_action( 'rss_tag_pre', 'atom' ); -?> - - > - <?php bloginfo_rss('name'); wp_title_rss(); ?> - - - - - - - - - - - - - - - - - <![CDATA[<?php the_title_rss() ?>]]> - - - - - - ]]> - - ]]> - - - - - - - - diff --git a/wp-includes/feed-rdf.php b/wp-includes/feed-rdf.php deleted file mode 100644 index 1e8327b0dc..0000000000 --- a/wp-includes/feed-rdf.php +++ /dev/null @@ -1,85 +0,0 @@ -'; - -/** This action is documented in wp-includes/feed-rss2.php */ -do_action( 'rss_tag_pre', 'rdf' ); -?> - -> -"> - <?php bloginfo_rss('name'); wp_title_rss(); ?> - - - - - - 2000-01-01T12:00+00:00 - - - - - - - - - - - - <?php the_title_rss() ?> - - post_date_gmt, false); ?> - ]]> - - - ]]> - - ]]> - ]]> - - - - - diff --git a/wp-includes/feed-rss.php b/wp-includes/feed-rss.php deleted file mode 100644 index a355a8af40..0000000000 --- a/wp-includes/feed-rss.php +++ /dev/null @@ -1,46 +0,0 @@ -'; ?> - - - <?php bloginfo_rss('name'); wp_title_rss(); ?> - - - - http://backend.userland.com/rss092 - - - - - - - <?php the_title_rss() ?> - ]]> - - - - - - diff --git a/wp-includes/feed-rss2-comments.php b/wp-includes/feed-rss2-comments.php deleted file mode 100644 index c8e8d498ea..0000000000 --- a/wp-includes/feed-rss2-comments.php +++ /dev/null @@ -1,101 +0,0 @@ -'; - -/** This action is documented in wp-includes/feed-rss2.php */ -do_action( 'rss_tag_pre', 'rss2-comments' ); -?> - - - -> - - <?php - if ( is_singular() ) - printf( ent2ncr( __( 'Comments on: %s' ) ), get_the_title_rss() ); - elseif ( is_search() ) - printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() ); - else - printf( ent2ncr( __( 'Comments for %s' ) ), get_bloginfo_rss( 'name' ) . get_wp_title_rss() ); - ?> - - - - - - - comment_post_ID ); - ?> - - <?php - if ( !is_singular() ) { - $title = get_the_title($comment_post->ID); - /** This filter is documented in wp-includes/feed.php */ - $title = apply_filters( 'the_title_rss', $title ); - printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); - } else { - printf(ent2ncr(__('By: %s')), get_comment_author_rss()); - } - ?> - - ]]> - - - - - ]]> - - ]]> - ]]> -comment_ID The ID of the comment being displayed. - * @param int $comment_post->ID The ID of the post the comment is connected to. - */ - do_action( 'commentrss2_item', $comment->comment_ID, $comment_post->ID ); -?> - - - - diff --git a/wp-includes/feed-rss2.php b/wp-includes/feed-rss2.php deleted file mode 100644 index c82fc63c56..0000000000 --- a/wp-includes/feed-rss2.php +++ /dev/null @@ -1,117 +0,0 @@ -'; - -/** - * Fires between the xml and rss tags in a feed. - * - * @since 4.0.0 - * - * @param string $context Type of feed. Possible values include 'rss2', 'rss2-comments', - * 'rdf', 'atom', and 'atom-comments'. - */ -do_action( 'rss_tag_pre', 'rss2' ); -?> - -> - - - <?php bloginfo_rss('name'); wp_title_rss(); ?> - - - - - - - - - - <?php the_title_rss() ?> - - - - ]]> - - - - - ]]> - - ]]> - - 0 ) : ?> - ]]> - - ]]> - - - - - - - - - - diff --git a/wp-includes/feed.php b/wp-includes/feed.php deleted file mode 100644 index f40f41a6ad..0000000000 --- a/wp-includes/feed.php +++ /dev/null @@ -1,690 +0,0 @@ -get_error_message(); - } - - if ( $title && $sep && ' ' !== substr( $title, 0, 1 ) ) { - $title = " $sep " . $title; - } - - /** - * Filter the blog title for use as the feed title. - * - * @since 2.2.0 - * - * @param string $title The current blog title. - * @param string $sep Separator used by wp_title(). - */ - $title = apply_filters( 'get_wp_title_rss', $title, $sep ); - return $title; -} - -/** - * Display the blog title for display of the feed title. - * - * @since 2.2.0 - * @see wp_title() $sep parameter usage. - * - * @param string $sep Optional. - */ -function wp_title_rss( $sep = '»' ) { - /** - * Filter the blog title for display of the feed title. - * - * @since 2.2.0 - * - * @see get_wp_title_rss() - * - * @param string $wp_title The current blog title. - * @param string $sep Separator used by wp_title(). - */ - echo apply_filters( 'wp_title_rss', get_wp_title_rss( $sep ), $sep ); -} - -/** - * Retrieve the current post title for the feed. - * - * @since 2.0.0 - * - * @return string Current post title. - */ -function get_the_title_rss() { - $title = get_the_title(); - /** - * Filter the post title for use in a feed. - * - * @since 1.2.0 - * - * @param string $title The current post title. - */ - $title = apply_filters( 'the_title_rss', $title ); - return $title; -} - -/** - * Display the post title in the feed. - * - * @since 0.71 - */ -function the_title_rss() { - echo get_the_title_rss(); -} - -/** - * Retrieve the post content for feeds. - * - * @since 2.9.0 - * @see get_the_content() - * - * @param string $feed_type The type of feed. rss2 | atom | rss | rdf - * @return string The filtered content. - */ -function get_the_content_feed($feed_type = null) { - if ( !$feed_type ) - $feed_type = get_default_feed(); - - /** This filter is documented in wp-includes/post-template.php */ - $content = apply_filters( 'the_content', get_the_content() ); - $content = str_replace(']]>', ']]>', $content); - /** - * Filter the post content for use in feeds. - * - * @since 2.9.0 - * - * @param string $content The current post content. - * @param string $feed_type Type of feed. Possible values include 'rss2', 'atom'. - * Default 'rss2'. - */ - return apply_filters( 'the_content_feed', $content, $feed_type ); -} - -/** - * Display the post content for feeds. - * - * @since 2.9.0 - * - * @param string $feed_type The type of feed. rss2 | atom | rss | rdf - */ -function the_content_feed($feed_type = null) { - echo get_the_content_feed($feed_type); -} - -/** - * Display the post excerpt for the feed. - * - * @since 0.71 - */ -function the_excerpt_rss() { - $output = get_the_excerpt(); - /** - * Filter the post excerpt for a feed. - * - * @since 1.2.0 - * - * @param string $output The current post excerpt. - */ - echo apply_filters( 'the_excerpt_rss', $output ); -} - -/** - * Display the permalink to the post for use in feeds. - * - * @since 2.3.0 - */ -function the_permalink_rss() { - /** - * Filter the permalink to the post for use in feeds. - * - * @since 2.3.0 - * - * @param string $post_permalink The current post permalink. - */ - echo esc_url( apply_filters( 'the_permalink_rss', get_permalink() ) ); -} - -/** - * Outputs the link to the comments for the current post in an xml safe way - * - * @since 3.0.0 - * @return none - */ -function comments_link_feed() { - /** - * Filter the comments permalink for the current post. - * - * @since 3.6.0 - * - * @param string $comment_permalink The current comment permalink with - * '#comments' appended. - */ - echo esc_url( apply_filters( 'comments_link_feed', get_comments_link() ) ); -} - -/** - * Display the feed GUID for the current comment. - * - * @since 2.5.0 - * - * @param int|object $comment_id Optional comment object or id. Defaults to global comment object. - */ -function comment_guid($comment_id = null) { - echo esc_url( get_comment_guid($comment_id) ); -} - -/** - * Retrieve the feed GUID for the current comment. - * - * @since 2.5.0 - * - * @param int|object $comment_id Optional comment object or id. Defaults to global comment object. - * @return false|string false on failure or guid for comment on success. - */ -function get_comment_guid($comment_id = null) { - $comment = get_comment($comment_id); - - if ( !is_object($comment) ) - return false; - - return get_the_guid($comment->comment_post_ID) . '#comment-' . $comment->comment_ID; -} - -/** - * Display the link to the comments. - * - * @since 1.5.0 - */ -function comment_link() { - /** - * Filter the current comment's permalink. - * - * @since 3.6.0 - * - * @see get_comment_link() - * - * @param string $comment_permalink The current comment permalink. - */ - echo esc_url( apply_filters( 'comment_link', get_comment_link() ) ); -} - -/** - * Retrieve the current comment author for use in the feeds. - * - * @since 2.0.0 - * - * @return string Comment Author - */ -function get_comment_author_rss() { - /** - * Filter the current comment author for use in a feed. - * - * @since 1.5.0 - * - * @see get_comment_author() - * - * @param string $comment_author The current comment author. - */ - return apply_filters( 'comment_author_rss', get_comment_author() ); -} - -/** - * Display the current comment author in the feed. - * - * @since 1.0.0 - */ -function comment_author_rss() { - echo get_comment_author_rss(); -} - -/** - * Display the current comment content for use in the feeds. - * - * @since 1.0.0 - */ -function comment_text_rss() { - $comment_text = get_comment_text(); - /** - * Filter the current comment content for use in a feed. - * - * @since 1.5.0 - * - * @param string $comment_text The content of the current comment. - */ - $comment_text = apply_filters( 'comment_text_rss', $comment_text ); - echo $comment_text; -} - -/** - * Retrieve all of the post categories, formatted for use in feeds. - * - * All of the categories for the current post in the feed loop, will be - * retrieved and have feed markup added, so that they can easily be added to the - * RSS2, Atom, or RSS1 and RSS0.91 RDF feeds. - * - * @since 2.1.0 - * - * @param string $type Optional, default is the type returned by get_default_feed(). - * @return string All of the post categories for displaying in the feed. - */ -function get_the_category_rss($type = null) { - if ( empty($type) ) - $type = get_default_feed(); - $categories = get_the_category(); - $tags = get_the_tags(); - $the_list = ''; - $cat_names = array(); - - $filter = 'rss'; - if ( 'atom' == $type ) - $filter = 'raw'; - - if ( !empty($categories) ) foreach ( (array) $categories as $category ) { - $cat_names[] = sanitize_term_field('name', $category->name, $category->term_id, 'category', $filter); - } - - if ( !empty($tags) ) foreach ( (array) $tags as $tag ) { - $cat_names[] = sanitize_term_field('name', $tag->name, $tag->term_id, 'post_tag', $filter); - } - - $cat_names = array_unique($cat_names); - - foreach ( $cat_names as $cat_name ) { - if ( 'rdf' == $type ) - $the_list .= "\t\t\n"; - elseif ( 'atom' == $type ) - $the_list .= sprintf( '', esc_attr( get_bloginfo_rss( 'url' ) ), esc_attr( $cat_name ) ); - else - $the_list .= "\t\t\n"; - } - - /** - * Filter all of the post categories for display in a feed. - * - * @since 1.2.0 - * - * @param string $the_list All of the RSS post categories. - * @param string $type Type of feed. Possible values include 'rss2', 'atom'. - * Default 'rss2'. - */ - return apply_filters( 'the_category_rss', $the_list, $type ); -} - -/** - * Display the post categories in the feed. - * - * @since 0.71 - * @see get_the_category_rss() For better explanation. - * - * @param string $type Optional, default is the type returned by get_default_feed(). - */ -function the_category_rss($type = null) { - echo get_the_category_rss($type); -} - -/** - * Display the HTML type based on the blog setting. - * - * The two possible values are either 'xhtml' or 'html'. - * - * @since 2.2.0 - */ -function html_type_rss() { - $type = get_bloginfo('html_type'); - if (strpos($type, 'xhtml') !== false) - $type = 'xhtml'; - else - $type = 'html'; - echo $type; -} - -/** - * Display the rss enclosure for the current post. - * - * Uses the global $post to check whether the post requires a password and if - * the user has the password for the post. If not then it will return before - * displaying. - * - * Also uses the function get_post_custom() to get the post's 'enclosure' - * metadata field and parses the value to display the enclosure(s). The - * enclosure(s) consist of enclosure HTML tag(s) with a URI and other - * attributes. - * - * @since 1.5.0 - */ -function rss_enclosure() { - if ( post_password_required() ) - return; - - foreach ( (array) get_post_custom() as $key => $val) { - if ($key == 'enclosure') { - foreach ( (array) $val as $enc ) { - $enclosure = explode("\n", $enc); - - // only get the first element, e.g. audio/mpeg from 'audio/mpeg mpga mp2 mp3' - $t = preg_split('/[ \t]/', trim($enclosure[2]) ); - $type = $t[0]; - - /** - * Filter the RSS enclosure HTML link tag for the current post. - * - * @since 2.2.0 - * - * @param string $html_link_tag The HTML link tag with a URI and other attributes. - */ - echo apply_filters( 'rss_enclosure', '' . "\n" ); - } - } - } -} - -/** - * Display the atom enclosure for the current post. - * - * Uses the global $post to check whether the post requires a password and if - * the user has the password for the post. If not then it will return before - * displaying. - * - * Also uses the function get_post_custom() to get the post's 'enclosure' - * metadata field and parses the value to display the enclosure(s). The - * enclosure(s) consist of link HTML tag(s) with a URI and other attributes. - * - * @since 2.2.0 - */ -function atom_enclosure() { - if ( post_password_required() ) - return; - - foreach ( (array) get_post_custom() as $key => $val ) { - if ($key == 'enclosure') { - foreach ( (array) $val as $enc ) { - $enclosure = explode("\n", $enc); - /** - * Filter the atom enclosure HTML link tag for the current post. - * - * @since 2.2.0 - * - * @param string $html_link_tag The HTML link tag with a URI and other attributes. - */ - echo apply_filters( 'atom_enclosure', '' . "\n" ); - } - } - } -} - -/** - * Determine the type of a string of data with the data formatted. - * - * Tell whether the type is text, html, or xhtml, per RFC 4287 section 3.1. - * - * In the case of WordPress, text is defined as containing no markup, - * xhtml is defined as "well formed", and html as tag soup (i.e., the rest). - * - * Container div tags are added to xhtml values, per section 3.1.1.3. - * - * @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1 - * - * @since 2.5.0 - * - * @param string $data Input string - * @return array array(type, value) - */ -function prep_atom_text_construct($data) { - if (strpos($data, '<') === false && strpos($data, '&') === false) { - return array('text', $data); - } - - $parser = xml_parser_create(); - xml_parse($parser, '
    ' . $data . '
    ', true); - $code = xml_get_error_code($parser); - xml_parser_free($parser); - - if (!$code) { - if (strpos($data, '<') === false) { - return array('text', $data); - } else { - $data = "
    $data
    "; - return array('xhtml', $data); - } - } - - if (strpos($data, ']]>') === false) { - return array('html', ""); - } else { - return array('html', htmlspecialchars($data)); - } -} - -/** - * Displays Site Icon in atom feeds. - * - * @since 4.3.0 - * - * @see get_site_icon_url() - */ -function atom_site_icon() { - $url = get_site_icon_url( 32 ); - if ( $url ) { - echo "$url\n"; - } -} - -/** - * Displays Site Icon in RSS2. - * - * @since 4.3.0 - */ -function rss2_site_icon() { - $rss_title = get_wp_title_rss(); - if ( empty( $rss_title ) ) { - $rss_title = get_bloginfo_rss( 'name' ); - } - - $url = get_site_icon_url( 32 ); - if ( $url ) { - echo ' - - ' . convert_chars( $url ) . ' - ' . $rss_title . ' - ' . get_bloginfo_rss( 'url' ) . ' - 32 - 32 - ' . "\n"; - } -} - -/** - * Display the link for the currently displayed feed in a XSS safe way. - * - * Generate a correct link for the atom:self element. - * - * @since 2.5.0 - */ -function self_link() { - $host = @parse_url(home_url()); - /** - * Filter the current feed URL. - * - * @since 3.6.0 - * - * @see set_url_scheme() - * @see wp_unslash() - * - * @param string $feed_link The link for the feed with set URL scheme. - */ - echo esc_url( apply_filters( 'self_link', set_url_scheme( 'http://' . $host['host'] . wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) ); -} - -/** - * Return the content type for specified feed type. - * - * @since 2.8.0 - */ -function feed_content_type( $type = '' ) { - if ( empty($type) ) - $type = get_default_feed(); - - $types = array( - 'rss' => 'application/rss+xml', - 'rss2' => 'application/rss+xml', - 'rss-http' => 'text/xml', - 'atom' => 'application/atom+xml', - 'rdf' => 'application/rdf+xml' - ); - - $content_type = ( !empty($types[$type]) ) ? $types[$type] : 'application/octet-stream'; - - /** - * Filter the content type for a specific feed type. - * - * @since 2.8.0 - * - * @param string $content_type Content type indicating the type of data that a feed contains. - * @param string $type Type of feed. Possible values include 'rss2', 'atom'. - * Default 'rss2'. - */ - return apply_filters( 'feed_content_type', $content_type, $type ); -} - -/** - * Build SimplePie object based on RSS or Atom feed from URL. - * - * @since 2.8.0 - * - * @param mixed $url URL of feed to retrieve. If an array of URLs, the feeds are merged - * using SimplePie's multifeed feature. - * See also {@link ​http://simplepie.org/wiki/faq/typical_multifeed_gotchas} - * - * @return WP_Error|SimplePie WP_Error object on failure or SimplePie object on success - */ -function fetch_feed( $url ) { - require_once( ABSPATH . WPINC . '/class-feed.php' ); - - $feed = new SimplePie(); - - $feed->set_sanitize_class( 'WP_SimplePie_Sanitize_KSES' ); - // We must manually overwrite $feed->sanitize because SimplePie's - // constructor sets it before we have a chance to set the sanitization class - $feed->sanitize = new WP_SimplePie_Sanitize_KSES(); - - $feed->set_cache_class( 'WP_Feed_Cache' ); - $feed->set_file_class( 'WP_SimplePie_File' ); - - $feed->set_feed_url( $url ); - /** This filter is documented in wp-includes/class-feed.php */ - $feed->set_cache_duration( apply_filters( 'wp_feed_cache_transient_lifetime', 12 * HOUR_IN_SECONDS, $url ) ); - /** - * Fires just before processing the SimplePie feed object. - * - * @since 3.0.0 - * - * @param object &$feed SimplePie feed object, passed by reference. - * @param mixed $url URL of feed to retrieve. If an array of URLs, the feeds are merged. - */ - do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ); - $feed->init(); - $feed->set_output_encoding( get_option( 'blog_charset' ) ); - $feed->handle_content_type(); - - if ( $feed->error() ) - return new WP_Error( 'simplepie-error', $feed->error() ); - - return $feed; -} diff --git a/wp-includes/fonts/dashicons.eot b/wp-includes/fonts/dashicons.eot deleted file mode 100644 index 96f628853e..0000000000 Binary files a/wp-includes/fonts/dashicons.eot and /dev/null differ diff --git a/wp-includes/fonts/dashicons.svg b/wp-includes/fonts/dashicons.svg deleted file mode 100644 index 6bc971eb33..0000000000 --- a/wp-includes/fonts/dashicons.svg +++ /dev/null @@ -1,267 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/wp-includes/fonts/dashicons.ttf b/wp-includes/fonts/dashicons.ttf deleted file mode 100644 index c6651419a5..0000000000 Binary files a/wp-includes/fonts/dashicons.ttf and /dev/null differ diff --git a/wp-includes/fonts/dashicons.woff b/wp-includes/fonts/dashicons.woff deleted file mode 100644 index 9e41bf04e6..0000000000 Binary files a/wp-includes/fonts/dashicons.woff and /dev/null differ diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php deleted file mode 100644 index fa9551a3e4..0000000000 --- a/wp-includes/formatting.php +++ /dev/null @@ -1,4607 +0,0 @@ -', - $open_sq_flag = '', - $apos_flag = ''; - - // If there's nothing to do, just stop. - if ( empty( $text ) || false === $run_texturize ) { - return $text; - } - - // Set up static variables. Run once only. - if ( $reset || ! isset( $static_characters ) ) { - /** - * Filter whether to skip running wptexturize(). - * - * Passing false to the filter will effectively short-circuit wptexturize(). - * returning the original text passed to the function instead. - * - * The filter runs only once, the first time wptexturize() is called. - * - * @since 4.0.0 - * - * @see wptexturize() - * - * @param bool $run_texturize Whether to short-circuit wptexturize(). - */ - $run_texturize = apply_filters( 'run_wptexturize', $run_texturize ); - if ( false === $run_texturize ) { - return $text; - } - - /* translators: opening curly double quote */ - $opening_quote = _x( '“', 'opening curly double quote' ); - /* translators: closing curly double quote */ - $closing_quote = _x( '”', 'closing curly double quote' ); - - /* translators: apostrophe, for example in 'cause or can't */ - $apos = _x( '’', 'apostrophe' ); - - /* translators: prime, for example in 9' (nine feet) */ - $prime = _x( '′', 'prime' ); - /* translators: double prime, for example in 9" (nine inches) */ - $double_prime = _x( '″', 'double prime' ); - - /* translators: opening curly single quote */ - $opening_single_quote = _x( '‘', 'opening curly single quote' ); - /* translators: closing curly single quote */ - $closing_single_quote = _x( '’', 'closing curly single quote' ); - - /* translators: en dash */ - $en_dash = _x( '–', 'en dash' ); - /* translators: em dash */ - $em_dash = _x( '—', 'em dash' ); - - $default_no_texturize_tags = array('pre', 'code', 'kbd', 'style', 'script', 'tt'); - $default_no_texturize_shortcodes = array('code'); - - // if a plugin has provided an autocorrect array, use it - if ( isset($wp_cockneyreplace) ) { - $cockney = array_keys( $wp_cockneyreplace ); - $cockneyreplace = array_values( $wp_cockneyreplace ); - } else { - /* translators: This is a comma-separated list of words that defy the syntax of quotations in normal use, - * for example... 'We do not have enough words yet' ... is a typical quoted phrase. But when we write - * lines of code 'til we have enough of 'em, then we need to insert apostrophes instead of quotes. - */ - $cockney = explode( ',', _x( "'tain't,'twere,'twas,'tis,'twill,'til,'bout,'nuff,'round,'cause,'em", - 'Comma-separated list of words to texturize in your language' ) ); - - $cockneyreplace = explode( ',', _x( '’tain’t,’twere,’twas,’tis,’twill,’til,’bout,’nuff,’round,’cause,’em', - 'Comma-separated list of replacement words in your language' ) ); - } - - $static_characters = array_merge( array( '...', '``', '\'\'', ' (tm)' ), $cockney ); - $static_replacements = array_merge( array( '…', $opening_quote, $closing_quote, ' ™' ), $cockneyreplace ); - - - // Pattern-based replacements of characters. - // Sort the remaining patterns into several arrays for performance tuning. - $dynamic_characters = array( 'apos' => array(), 'quote' => array(), 'dash' => array() ); - $dynamic_replacements = array( 'apos' => array(), 'quote' => array(), 'dash' => array() ); - $dynamic = array(); - $spaces = wp_spaces_regexp(); - - // '99' and '99" are ambiguous among other patterns; assume it's an abbreviated year at the end of a quotation. - if ( "'" !== $apos || "'" !== $closing_single_quote ) { - $dynamic[ '/\'(\d\d)\'(?=\Z|[.,:;!?)}\-\]]|>|' . $spaces . ')/' ] = $apos_flag . '$1' . $closing_single_quote; - } - if ( "'" !== $apos || '"' !== $closing_quote ) { - $dynamic[ '/\'(\d\d)"(?=\Z|[.,:;!?)}\-\]]|>|' . $spaces . ')/' ] = $apos_flag . '$1' . $closing_quote; - } - - // '99 '99s '99's (apostrophe) But never '9 or '99% or '999 or '99.0. - if ( "'" !== $apos ) { - $dynamic[ '/\'(?=\d\d(?:\Z|(?![%\d]|[.,]\d)))/' ] = $apos_flag; - } - - // Quoted Numbers like '0.42' - if ( "'" !== $opening_single_quote && "'" !== $closing_single_quote ) { - $dynamic[ '/(?<=\A|' . $spaces . ')\'(\d[.,\d]*)\'/' ] = $open_sq_flag . '$1' . $closing_single_quote; - } - - // Single quote at start, or preceded by (, {, <, [, ", -, or spaces. - if ( "'" !== $opening_single_quote ) { - $dynamic[ '/(?<=\A|[([{"\-]|<|' . $spaces . ')\'/' ] = $open_sq_flag; - } - - // Apostrophe in a word. No spaces, double apostrophes, or other punctuation. - if ( "'" !== $apos ) { - $dynamic[ '/(? is found. - . '-(?!->)' // Dash not followed by end of comment. - . '[^\-]*+' // Consume non-dashes. - . ')*+' // Loop possessively. - . '(?:-->)?'; // End of comment. If not found, match all input. - - $shortcode_regex = - '\[' // Find start of shortcode. - . '[\/\[]?' // Shortcodes may begin with [/ or [[ - . $tagregexp // Only match registered shortcodes, because performance. - . '(?:' - . '[^\[\]<>]+' // Shortcodes do not contain other shortcodes. Quantifier critical. - . '|' - . '<[^\[\]>]*>' // HTML elements permitted. Prevents matching ] before >. - . ')*+' // Possessive critical. - . '\]' // Find end of shortcode. - . '\]?'; // Shortcodes may end with ]] - - $regex = - '/(' // Capture the entire match. - . '<' // Find start of element. - . '(?(?=!--)' // Is this a comment? - . $comment_regex // Find end of comment. - . '|' - . '[^>]*>' // Find end of element. - . ')' - . '|' - . $shortcode_regex // Find shortcodes. - . ')/s'; - - $textarr = preg_split( $regex, $text, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ); - - foreach ( $textarr as &$curl ) { - // Only call _wptexturize_pushpop_element if $curl is a delimiter. - $first = $curl[0]; - if ( '<' === $first && ''; - $quote_pattern = "/$needle(?=\\Z|[.,:;!?)}\\-\\]]|>|" . $spaces . ")/"; - $prime_pattern = "/(?<=\\d)$needle/"; - $flag_after_digit = "/(?<=\\d)$flag/"; - $flag_no_digit = "/(? &$sentence ) { - if ( false === strpos( $sentence, $needle ) ) { - continue; - } elseif ( 0 !== $key && 0 === substr_count( $sentence, $close_quote ) ) { - $sentence = preg_replace( $quote_pattern, $flag, $sentence, -1, $count ); - if ( $count > 1 ) { - // This sentence appears to have multiple closing quotes. Attempt Vulcan logic. - $sentence = preg_replace( $flag_no_digit, $close_quote, $sentence, -1, $count2 ); - if ( 0 === $count2 ) { - // Try looking for a quote followed by a period. - $count2 = substr_count( $sentence, "$flag." ); - if ( $count2 > 0 ) { - // Assume the rightmost quote-period match is the end of quotation. - $pos = strrpos( $sentence, "$flag." ); - } else { - // When all else fails, make the rightmost candidate a closing quote. - // This is most likely to be problematic in the context of bug #18549. - $pos = strrpos( $sentence, $flag ); - } - $sentence = substr_replace( $sentence, $close_quote, $pos, strlen( $flag ) ); - } - // Use conventional replacement on any remaining primes and quotes. - $sentence = preg_replace( $prime_pattern, $prime, $sentence ); - $sentence = preg_replace( $flag_after_digit, $prime, $sentence ); - $sentence = str_replace( $flag, $close_quote, $sentence ); - } elseif ( 1 == $count ) { - // Found only one closing quote candidate, so give it priority over primes. - $sentence = str_replace( $flag, $close_quote, $sentence ); - $sentence = preg_replace( $prime_pattern, $prime, $sentence ); - } else { - // No closing quotes found. Just run primes pattern. - $sentence = preg_replace( $prime_pattern, $prime, $sentence ); - } - } else { - $sentence = preg_replace( $prime_pattern, $prime, $sentence ); - $sentence = preg_replace( $quote_pattern, $close_quote, $sentence ); - } - if ( '"' == $needle && false !== strpos( $sentence, '"' ) ) { - $sentence = str_replace( '"', $close_quote, $sentence ); - } - } - - return implode( $open_quote, $sentences ); -} - -/** - * Search for disabled element tags. Push element to stack on tag open and pop - * on tag close. - * - * Assumes first char of $text is tag opening and last char is tag closing. - * Assumes second char of $text is optionally '/' to indicate closing as in . - * - * @since 2.9.0 - * @access private - * - * @param string $text Text to check. Must be a tag like `` or `[shortcode]`. - * @param array $stack List of open tag elements. - * @param array $disabled_elements The tag names to match against. Spaces are not allowed in tag names. - */ -function _wptexturize_pushpop_element( $text, &$stack, $disabled_elements ) { - // Is it an opening tag or closing tag? - if ( '/' !== $text[1] ) { - $opening_tag = true; - $name_offset = 1; - } elseif ( 0 == count( $stack ) ) { - // Stack is empty. Just stop. - return; - } else { - $opening_tag = false; - $name_offset = 2; - } - - // Parse out the tag name. - $space = strpos( $text, ' ' ); - if ( false === $space ) { - $space = -1; - } else { - $space -= $name_offset; - } - $tag = substr( $text, $name_offset, $space ); - - // Handle disabled tags. - if ( in_array( $tag, $disabled_elements ) ) { - if ( $opening_tag ) { - /* - * This disables texturize until we find a closing tag of our type - * (e.g.
    ) even if there was invalid nesting before that
    -			 *
    -			 * Example: in the case 
    sadsadasd"baba"
    - * "baba" won't be texturize - */ - - array_push( $stack, $tag ); - } elseif ( end( $stack ) == $tag ) { - array_pop( $stack ); - } - } -} - -/** - * Replaces double line-breaks with paragraph elements. - * - * A group of regex replaces used to identify text formatted with newlines and - * replace double line-breaks with HTML paragraph tags. The remaining line-breaks - * after conversion become <
    > tags, unless $br is set to '0' or 'false'. - * - * @since 0.71 - * - * @param string $pee The text which has to be formatted. - * @param bool $br Optional. If set, this will convert all remaining line-breaks - * after paragraphing. Default true. - * @return string Text which has been converted into correct paragraph tags. - */ -function wpautop( $pee, $br = true ) { - $pre_tags = array(); - - if ( trim($pee) === '' ) - return ''; - - // Just to make things a little easier, pad the end. - $pee = $pee . "\n"; - - /* - * Pre tags shouldn't be touched by autop. - * Replace pre tags with placeholders and bring them back after autop. - */ - if ( strpos($pee, '', $pee ); - $last_pee = array_pop($pee_parts); - $pee = ''; - $i = 0; - - foreach ( $pee_parts as $pee_part ) { - $start = strpos($pee_part, ''; - - $pee .= substr( $pee_part, 0, $start ) . $name; - $i++; - } - - $pee .= $last_pee; - } - // Change multiple
    s into two line breaks, which will turn into paragraphs. - $pee = preg_replace('|\s*|', "\n\n", $pee); - - $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)'; - - // Add a single line break above block-level opening tags. - $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee); - - // Add a double line break below block-level closing tags. - $pee = preg_replace('!()!', "$1\n\n", $pee); - - // Standardize newline characters to "\n". - $pee = str_replace(array("\r\n", "\r"), "\n", $pee); - - // Find newlines in all elements and add placeholders. - $pee = wp_replace_in_html_tags( $pee, array( "\n" => " " ) ); - - // Collapse line breaks before and after ', $pee ); - } - - /* - * Collapse line breaks inside elements, before and elements - * so they don't get autop'd. - */ - if ( strpos( $pee, '' ) !== false ) { - $pee = preg_replace( '|(]*>)\s*|', '$1', $pee ); - $pee = preg_replace( '|\s*|', '', $pee ); - $pee = preg_replace( '%\s*(]*>)\s*%', '$1', $pee ); - } - - /* - * Collapse line breaks inside