Commit Graph

59 Commits

Author SHA1 Message Date
Mark Jaquith 504b94b1b3 Use ImageOptim to losslessly smush our images. About half a MB in savings! fixes #22381. props waldojaquith
git-svn-id: https://develop.svn.wordpress.org/trunk@22425 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 18:49:10 +00:00
Lance Willett a2445aef9b Twenty Eleven image optimization, compress PNG files a bit more.
git-svn-id: https://develop.svn.wordpress.org/trunk@22217 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 16:41:15 +00:00
Lance Willett 1a766217d9 Twenty Eleven: escape i18n attributes as late as possible, props mfields. See #21756.
git-svn-id: https://develop.svn.wordpress.org/trunk@22199 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 21:30:42 +00:00
Daryl Koopersmith 771ca21787 Theme Customizer: Ensure that JS color controls always use real color values, even if the server-side value is a hex value without a hash. fixes #20448, see #19910.
Adds WP_Customize_Setting->sanitize_js_callback and 'customize_sanitize_js_$settingID' filter, to filter values before they're passed to JS using WP_Customize_Setting->js_value().

Adds support for regular hex colors to the color picker.

Changes color methods:
* sanitize_hex_color() accepts 3 and 6 digit hex colors (with hashes) and the empty string.
* sanitize_hex_color_no_hash() accepts 3 and 6 digit hex colors (without hashes) and the empty string.
* maybe_hash_hex_color() ensures that a hex color has a hash, and otherwise leaves the value untouched.


git-svn-id: https://develop.svn.wordpress.org/trunk@20936 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 18:44:31 +00:00
Daryl Koopersmith 16aaa01c48 Twenty Eleven theme customizer integration. props lancewillett, Otto42. fixes #20448, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20916 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 21:50:01 +00:00
Mark Jaquith f7239248cb Remove some dead add_option() code in Twenty Eleven. props Mamaduka, emhr. fixes #19743
git-svn-id: https://develop.svn.wordpress.org/trunk@20875 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 07:38:13 +00:00
Andrew Nacin 8c380f31ed Check for wp_get_theme() in Twenty Eleven before using it, for compatibility down to WP 3.2 when Twenty Eleven was first released. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20508 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 17:32:53 +00:00
Andrew Nacin 43913e382c (string) WP_Theme is now the theme name, translated. Good replacement for get_current_theme(); better than wp_get_theme()->display('Name'). see #20103, see #20138.
git-svn-id: https://develop.svn.wordpress.org/trunk@20039 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 19:27:54 +00:00
Ryan Boren 6aeab508e9 Contextual help back compat for twentyeleven. Props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@19580 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-10 18:31:44 +00:00
Andrew Nacin 030e0764b5 Standardize some final help strings. We're done, aside from typos. props zeo, jane, duck_, fixes #19020.
git-svn-id: https://develop.svn.wordpress.org/trunk@19538 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-02 04:31:01 +00:00
Andrew Nacin ce22f02ff7 Switch to 'Overview' for Twenty Eleven. Use the theme's textdomain. props SergeyBiryukov, see [19493], #19020.
git-svn-id: https://develop.svn.wordpress.org/trunk@19502 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 00:33:09 +00:00
Andrew Nacin 94d5ab637c Indent code within an inside Twenty Eleven's ephemera widget. props lloydbudd, fixes #18751.
git-svn-id: https://develop.svn.wordpress.org/trunk@19308 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-16 00:08:29 +00:00
Ryan Boren a9e58170af Contextual help for Twenty Eleven theme options page. see #19020
git-svn-id: https://develop.svn.wordpress.org/trunk@19237 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-10 14:01:46 +00:00
Ryan Boren f14c0a52b4 phpdoc fix. Props Jayjdk. fixes #18965
git-svn-id: https://develop.svn.wordpress.org/trunk@18978 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-17 15:58:16 +00:00
Andrew Nacin f376d654b8 Fix @sinces in Twenty Eleven. see #18045.
git-svn-id: https://develop.svn.wordpress.org/trunk@18458 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-21 21:44:47 +00:00
Andrew Nacin f4ca2f5b82 Use the Settings fields/sections API in Twenty Eleven. props chipbennett for initial patch. see #18045. for 3.3.
git-svn-id: https://develop.svn.wordpress.org/trunk@18455 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-21 21:37:31 +00:00
Andrew Nacin 3cd6df39aa Twenty Eleven: Prefix theme_options_render_page(). props chipbennett, see #18045. for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@18430 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-11 20:15:37 +00:00
Ryan Boren 76e5ba0e53 twentyeleven code tidy up. Props dd32, lancewillett. fixes #17748
git-svn-id: https://develop.svn.wordpress.org/trunk@18385 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-30 21:57:50 +00:00
Andrew Ozz f40eb65b33 Twenty Eleven RTL update, props yoavf, fixes #17882
git-svn-id: https://develop.svn.wordpress.org/trunk@18342 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-25 20:24:07 +00:00
Ryan Boren feaf2597bf Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@18276 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-11 15:44:06 +00:00
Dion Hulse b7798052e9 Remove debug comments & more housecleaning. See #17748
git-svn-id: https://develop.svn.wordpress.org/trunk@18266 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-11 03:44:42 +00:00
Andrew Nacin b5b775f852 New comment bubble styling! props matveb, iandstewart, fixes #17741.
git-svn-id: https://develop.svn.wordpress.org/trunk@18255 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-10 23:10:23 +00:00
Andrew Ozz 9a7f69f2aa Twenty Eleven code review and cleanup, props dd32, fixes #17748
git-svn-id: https://develop.svn.wordpress.org/trunk@18253 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-10 23:01:16 +00:00
Ryan Boren 69b5356889 Use no_found_rows for some queries. Props pavelevap. fixes #17745
git-svn-id: https://develop.svn.wordpress.org/trunk@18239 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-10 20:14:59 +00:00
Ryan Boren f2af00cb68 Add missing textdomain to twentyeleven contextual help. Props pavelevap. see #17744
git-svn-id: https://develop.svn.wordpress.org/trunk@18235 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-10 17:13:23 +00:00
Dion Hulse b1cfb86661 * Don't clear link colour when switching layouts
* Update "default colour" link when a custom colour has been selected
Fixes #17746

git-svn-id: https://develop.svn.wordpress.org/trunk@18229 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-10 13:41:51 +00:00
Andrew Nacin 6b27776490 Twenty Eleven: Properly handle the default link color for the dark theme. props dcowgill for the patch refresh. fixes #17351.
git-svn-id: https://develop.svn.wordpress.org/trunk@18198 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-08 17:39:12 +00:00
Ian Stewart 5830f73e7d Twenty Eleven: miscellaneous bug fixes and improvements
* Only style images uploaded to the WordPress media library with border styles (and not placeholder images for content added by plugins)
* Prevent content added by plugins and long custom excerpts from overflowing the featured post slider
* Make sure small thumbnails will never appear in the Custom Header area
* Better indicate the current featured post with custom link color and cursor
* Add a class for text-only featured posts
* Style improvements for small screens


git-svn-id: https://develop.svn.wordpress.org/trunk@18181 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-07 21:28:56 +00:00
Andrew Nacin aba7c4e9ce Use default argument for get_option(). props dcowgill, westi. fixes #17686.
git-svn-id: https://develop.svn.wordpress.org/trunk@18152 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-05 19:53:31 +00:00
Andrew Nacin 3e27653486 Sanity check in twentyeleven_get_theme_options() -- if the option doesn't exist, return the default options instead. We already instantiate the option on admin_init. fixes #17686.
git-svn-id: https://develop.svn.wordpress.org/trunk@18141 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-04 22:05:29 +00:00
Ryan Boren e1e318b9ff Check result of add_theme_page(). Return if false. Props greuben. fixes #17677
git-svn-id: https://develop.svn.wordpress.org/trunk@18135 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-03 22:37:13 +00:00
Ryan Boren f786d16ed3 Add rtl class to the admin body if is_rtl(). RTL fixes for twentyeleven theme-options.php. Props rasheed. fixes #17603
git-svn-id: https://develop.svn.wordpress.org/trunk@18125 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-02 22:19:58 +00:00
Ryan Boren 0c893945ba Retain screen-reader-text for pages shown in the admin. see #17524
git-svn-id: https://develop.svn.wordpress.org/trunk@18123 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-02 21:59:11 +00:00
Ian Stewart e6a591e5a8 Twenty Eleven: accessibility improvements and minor style fixes for galleries; See #17524
* Improved color contrast for light and dark color schemes
* Skip link for skipping directly to sidebar content
* Skip links visible on :focus
* Using a more semantic, general class name of .assistive-text instead of .section-heading and .screen-reader-text
* Focus styles for password inputs (and a minor style fix)


git-svn-id: https://develop.svn.wordpress.org/trunk@18117 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-02 19:30:07 +00:00
Ryan Boren b41246fa30 Contextual help for twentyeleven's theme options screen. Props sbressler, dougwrites, jane. fixes #17357
git-svn-id: https://develop.svn.wordpress.org/trunk@18101 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-01 19:28:42 +00:00
Ian Stewart f313a881e8 Twenty Eleven: bug fixes and enhancements ...
* Improvements to the dark color scheme; Props matveb
* Remove link colors from the dark color scheme and let the default link color cascade
* Check for multiple authors before showing author information on single posts
* Remove the span before the edit link on the image template
* Add a comment icon; Props hugobaeta
* Replace the default reply text with an icon to prevent i18n issues with the design; Props matveb
* Don't output sidebar on the no sidebar layout
* Use the search form styling from the header for all search forms
* Style fixes for no search results page
* Fixes for fancy blockquote styles
* Style fixes for the showcase slider
* Margin for galleries
* Only showing the top post navigation on paged results
* Remove floats from images for the smallest screen sizes


git-svn-id: https://develop.svn.wordpress.org/trunk@18072 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-30 01:29:55 +00:00
Ian Stewart e606e90f44 Twenty Eleven: Add the Ephemera title to the theme textdomain; Props knutsp; Fixes #17572
git-svn-id: https://develop.svn.wordpress.org/trunk@18059 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-26 20:50:53 +00:00
Ian Stewart 064786d47c Twenty Eleven: focus styles for all links; Fixes #17410
git-svn-id: https://develop.svn.wordpress.org/trunk@18057 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-26 18:41:35 +00:00
Ian Stewart 7d65cc5e09 Twenty Eleven: Style fixes and showcase improvements; Props matveb
* Remove bottom border from last post
* Improve featured posts on the showcase: move slider navigation to the top right; make sure the bottom border shows; make the reading more link thicker
* Positioning fix for image post format meta
* Dark stylesheet improvements
* Ensure search input text is centred vertically


git-svn-id: https://develop.svn.wordpress.org/trunk@18050 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-25 21:19:52 +00:00
Ryan Boren ccba8dfbf3 Validation fixes. Props ocean90, peaceablewhale. see #17364
git-svn-id: https://develop.svn.wordpress.org/trunk@18010 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-23 23:33:30 +00:00
Andrew Nacin 0aae52702f Leverage option_page_capability_* filter in Twenty Eleven. fixes #14365.
git-svn-id: https://develop.svn.wordpress.org/trunk@17987 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-22 21:32:44 +00:00
Andrew Nacin 5c6a5a0045 Fix Twenty Eleven phpdoc subpackage names. props zeo, fixes #17444.
git-svn-id: https://develop.svn.wordpress.org/trunk@17959 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-18 19:06:09 +00:00
Lance Willett cfdfbac9e9 Twenty Eleven: run twentyeleven_url_grabber once in widgets.php, props duck_ -- closes #17279
git-svn-id: https://develop.svn.wordpress.org/trunk@17917 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-13 16:25:53 +00:00
Lance Willett 563f488c69 Twenty Eleven footer style fixes, props matveb
* Improve footer credits, add WordPress PNG
 * Add hover color to footer links

git-svn-id: https://develop.svn.wordpress.org/trunk@17908 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-12 23:13:56 +00:00
Lance Willett 21c7b3c8d3 Twenty Eleven updates and fixes, see #17198
* Add explanatory comments in all templates, following Twenty Ten's example
 * Stick with twentyeleven_ for prefixing filter names
 * Use post format content templates in search results
 * First pass at adding a template for adding a sidebar to pages
 * Add a featured post header to standard sticky posts
 * Style fixes: print media, comment styles for pages with sidebars, color of meta links on image post format

git-svn-id: https://develop.svn.wordpress.org/trunk@17802 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-04 22:54:50 +00:00
Ian Stewart 9af6ba3236 Twenty Eleven: updated DocBlock comments following Twenty Ten's example; See #17198
git-svn-id: https://develop.svn.wordpress.org/trunk@17787 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-02 21:04:44 +00:00
Andrew Nacin d23b2f19f5 Escape urls in the Epherma widget. see #17198.
git-svn-id: https://develop.svn.wordpress.org/trunk@17759 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 23:59:08 +00:00
Ian Stewart 11ceee4a24 Twenty Eleven: make sure that link color options set in theme-options.php will override showcase.php recent posts and ephemera widget link colors; See #17198
git-svn-id: https://develop.svn.wordpress.org/trunk@17755 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 22:04:39 +00:00
Lance Willett 7e151d5953 Twenty Eleven: theme options - see #17198
* Make color swatch clickable to open palette
 * Change color picker link to a submit button to match existing UI

git-svn-id: https://develop.svn.wordpress.org/trunk@17754 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 19:01:51 +00:00
Andrew Nacin 81755c790e Rename twentyeleven_color_schemes hook to twentyeleven_enqueue_color_scheme, so its purpose is clear. Also rename twentyeleven_color_styles() to twentyeleven_enqueue_color_scheme(), and twentyeleven_link_color() (which sounds like a getter) to twentyeleven_print_link_color_style(). Some tidying in twentyeleven_layout_classes(). see #17198.
git-svn-id: https://develop.svn.wordpress.org/trunk@17740 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 11:05:53 +00:00