Commit Graph

549 Commits

Author SHA1 Message Date
Andrew Nacin e4f3593e5d Twenty Eleven:
* Use add_option(), rather than get_option() with defaults, to prevent notoption queries.
 * Add twentyeleven_theme_options_validate filter, that way one doesn't need to add a filter to sanitize_option_\$option to allow more options in.
 * Some inline doc modifications and additions.
see #17198.



git-svn-id: https://develop.svn.wordpress.org/trunk@17734 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 08:52:37 +00:00
Andrew Nacin 7b1ee2dd6f Rewrite of Twenty Eleven theme-options.php. Including:
* Full inline documentation.
 * Enqueue scripts/styles on admin_enqueue_scripts and use hook_suffix rather than GET[page]
 * Add filters to twentyeleven_color_schemes(), twentyeleven_layouts(), which necessitates adding a thumbnail URL value here, rather than generating them in the form.
 * Add a twentyeleven_default_theme_options filter.
 * Remove manual check for REQUEST[settings-updated], instead using settings_errors(), since we're using options.php.
 * Abstract out the default link color, rather than hardcoding it in certain places.
 * Use checked().
 * Rename some variables and functions for clarity.
 * Remove unnecessary functions twentyeleven_current_layout() and twentyeleven_current_color_scheme(), as we already have twentyeleven_get_theme_options().
 * Add a twentyeleven_color_schemes action to allow for enqueueing custom color schemes.
 * Add a twentyeleven_layout_classes filter, to allow filtering what gets sent back to body_class().
 * Hook into wp_enqueue_scripts rather than wp_print_styles for enqueueing the color stylesheet.
 * Rewrite the register_setting() callback to start from scratch with an empty array. Improve the link_color logic.
 * Use submit_button().
 * Use esc_attr() rather than esc_attr_e() for non-translations.

TODO:
 * Implement settings sections/fields logic to allow extension of the options page.
 * Consider re-doing this in a class. It'll be cleaner.
 * Store a DB version so we can do an add_option(), rather than calling get_option() with defaults.

see #17198.



git-svn-id: https://develop.svn.wordpress.org/trunk@17733 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 08:06:57 +00:00
Lance Willett e2a1502510 Twenty Eleven: theme options - see #17198
* First pass at Link Color CSS rules
 * Add new function to return default values
 * Implement better validation for hex color value
 * Fix missing esc_attr()

git-svn-id: https://develop.svn.wordpress.org/trunk@17732 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-27 23:03:27 +00:00
Lance Willett 311e42024c Twenty Eleven: add first batch of new header images, courtesy of the immeasurable photomatt archives - see #17198
git-svn-id: https://develop.svn.wordpress.org/trunk@17729 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-27 21:44:09 +00:00
Ian Stewart 5ff6ec04cb Twenty Eleven: first pass at print styles; See ##17198
git-svn-id: https://develop.svn.wordpress.org/trunk@17726 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-27 21:03:58 +00:00
Lance Willett fa229e3871 Twenty Eleven: fix spacing and add a few missing esc_attr() calls in widgets.php - see #17198
git-svn-id: https://develop.svn.wordpress.org/trunk@17723 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-27 04:45:11 +00:00
Lance Willett 785060ffe1 Twenty Eleven: set default case for switch statement in the twentyeleven_comment(), props greenshady - see #17198
git-svn-id: https://develop.svn.wordpress.org/trunk@17722 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-27 04:38:36 +00:00
Ian Stewart b6894e1703 Twenty Eleven: functions.php cleanup and introduction of theme options; see #17198
* Cleanup functions.php, adding comments and function_exists() checks following Twenty Ten's example
* Theme option for choosing an alternate (dark) color scheme. It currently only loads a placeholder CSS file with dark styles to follow.
* Theme option for selecting a link color that loads an internal style block for resetting link colors. An updated style.css will follow to take advantage of this.
* Theme options for selecting an alternate layout. Adds a class to the body element. An updated style.css will follow to take advantage of this.


git-svn-id: https://develop.svn.wordpress.org/trunk@17721 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-26 22:52:18 +00:00
Lance Willett d59e482e59 Twenty Eleven: move widgets.php into /inc - see #17198
git-svn-id: https://develop.svn.wordpress.org/trunk@17720 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-26 21:05:43 +00:00
Lance Willett 27b9bdaba4 Twenty Eleven: minor style fixes (overflow) for international blogs and replacing em dash with the proper CSS value for the entity. Props matveb, see #17198
git-svn-id: https://develop.svn.wordpress.org/trunk@17719 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-26 18:59:32 +00:00
Lance Willett 30fac1abcb Twenty Eleven: add additional conditional IDs for the html element, props iandstewart - see #17198
git-svn-id: https://develop.svn.wordpress.org/trunk@17718 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-26 18:54:03 +00:00
Lance Willett f63ee143f3 Twenty Eleven: add support for Status and Quote formats, props iandstewart - see #17198
git-svn-id: https://develop.svn.wordpress.org/trunk@17717 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-26 18:46:31 +00:00
Lance Willett f5756c89cf Twenty Eleven: strip trailing spaces, props kawauso - see #17198
git-svn-id: https://develop.svn.wordpress.org/trunk@17714 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-26 18:34:52 +00:00
Peter Westwood 527965ab24 Provide more arguments to the widgets on the 404 page so as to avoid notices. See #17198
git-svn-id: https://develop.svn.wordpress.org/trunk@17672 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-21 07:43:25 +00:00
Peter Westwood 1b008323df Fix html5 js link. See #17198 props Jayjdk
git-svn-id: https://develop.svn.wordpress.org/trunk@17671 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-21 07:28:08 +00:00
Matt Mullenweg d7266c0c00 Importing Duster theme, first pass at a candidate for twentyeleven theme.
Nice to have, but optional, improvements it'd be nice to have:

* Ability to have random rotating headers. (Core improvement to custom header functionality.)
* Color and layout options.
* More post formats. (Currently supporst  Asides, Links, and Galleries.)
* CMS-style slider home page option.

Welcome, TwentyEleven née Duster. :) Track at #17198.

git-svn-id: https://develop.svn.wordpress.org/trunk@17669 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-20 21:46:33 +00:00
potbot 77ccb220a4 POT, generated from r17478
git-svn-id: https://develop.svn.wordpress.org/trunk@17479 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-22 08:27:30 +00:00
Andrew Nacin e63f2549db Back compat with the gallery_style filter in Twenty Ten. fixes #16610 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@17478 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-22 08:23:30 +00:00
Ryan Boren f7f96d2f1f 3.0 compat for twentyten
git-svn-id: https://develop.svn.wordpress.org/trunk@17469 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-21 18:35:37 +00:00
Andrew Nacin e08ea2a111 Clear floats before page links in Twenty Ten. props chipbennett, fixes #16178.
git-svn-id: https://develop.svn.wordpress.org/trunk@17331 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-19 19:56:54 +00:00
potbot bea3157e88 POT, generated from r17305
git-svn-id: https://develop.svn.wordpress.org/trunk@17306 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-15 01:27:02 +00:00
Andrew Nacin 211ed39112 Add twentyten_attachment_height filter. props lancewillett, fixes #14402.
git-svn-id: https://develop.svn.wordpress.org/trunk@17305 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-15 01:12:00 +00:00
Andrew Nacin 5670ad00c6 Check for theme support before calling has_post_thumbnail for child theme compatibility. see #14903.
git-svn-id: https://develop.svn.wordpress.org/trunk@17300 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-14 19:16:21 +00:00
Andrew Nacin 26e7626463 Add post format CSS to Twenty Ten. props iandstewart, fixes #16141.
git-svn-id: https://develop.svn.wordpress.org/trunk@17236 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-07 17:07:34 +00:00
Andrew Nacin 61161d86ba Correct docs for TT version number. props Jayjdk, fixes #16087.
git-svn-id: https://develop.svn.wordpress.org/trunk@17212 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-03 22:47:05 +00:00
potbot cd7212fd83 POT, generated from r17164
git-svn-id: https://develop.svn.wordpress.org/trunk@17165 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-28 23:26:59 +00:00
Andrew Nacin ca57ff7d68 We'll release Twenty Ten 1.2 with 3.1. fixes #15990.
git-svn-id: https://develop.svn.wordpress.org/trunk@17164 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-28 22:57:37 +00:00
potbot 84dfe07aa9 POT, generated from r17111
git-svn-id: https://develop.svn.wordpress.org/trunk@17112 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-22 18:27:03 +00:00
Andrew Nacin d99ae62140 Revert [16614] and [16614]. Deal with plural form issues in early 3.2 and remove the hacks from Twenty Ten. see #13651.
git-svn-id: https://develop.svn.wordpress.org/trunk@17111 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-22 18:06:56 +00:00
potbot a316d3ec29 POT, generated from r17092
git-svn-id: https://develop.svn.wordpress.org/trunk@17093 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-20 22:21:43 +00:00
Andrew Nacin 21ea69a1d7 Handle 'This gallery contains X photos' properly in Twenty Ten. fixes #15858.
git-svn-id: https://develop.svn.wordpress.org/trunk@17072 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-20 09:34:58 +00:00
Mark Jaquith 589ccc5ac7 Mark Twenty Ten as GPL per new theme directory guidelines. props pross. fixes #15632
git-svn-id: https://develop.svn.wordpress.org/trunk@16883 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-12 07:02:18 +00:00
Andrew Nacin 82c7adaec6 Utilize gallery-columns-# classes in Twenty Ten. props ianstewart, lancewillett. fixes #15103.
git-svn-id: https://develop.svn.wordpress.org/trunk@16869 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-11 04:05:32 +00:00
potbot aa21762023 POT, generated from r16866
git-svn-id: https://develop.svn.wordpress.org/trunk@16867 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-10 20:21:45 +00:00
Andrew Nacin 468bab05a7 Deprecate twentyten_remove_gallery_css in favor of the use_default_gallery_style filter. see #15103.
git-svn-id: https://develop.svn.wordpress.org/trunk@16866 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-10 19:27:12 +00:00
potbot 2fcbcdad76 POT, generated from r16782
git-svn-id: https://develop.svn.wordpress.org/trunk@16783 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-08 00:21:45 +00:00
Andrew Nacin 52c8599189 Add 'View Galleries' link for post formats. fixes #15506.
git-svn-id: https://develop.svn.wordpress.org/trunk@16782 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-07 23:31:35 +00:00
potbot 7e29ed550e POT, generated from r16729
git-svn-id: https://develop.svn.wordpress.org/trunk@16730 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-05 04:21:31 +00:00
Andrew Nacin d61f1f5ce2 Fix typo in TT loop.php. props wpcanyon, markmcwilliams. fixes #15537.
git-svn-id: https://develop.svn.wordpress.org/trunk@16727 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-05 02:18:07 +00:00
Andrew Nacin 9071bdef45 Fix comment number in Twenty Ten when there is one comment. Due to how these values are then passed to comments_popup_link(). We need to fix this. see #13651.
git-svn-id: https://develop.svn.wordpress.org/trunk@16726 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-05 02:15:51 +00:00
potbot bc10d6fb59 POT, generated from r16675
git-svn-id: https://develop.svn.wordpress.org/trunk@16676 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-02 00:21:46 +00:00
Andrew Nacin 4c0ef1e0ba Allow the various header constants to be redefined in Twenty Ten. see #14903.
git-svn-id: https://develop.svn.wordpress.org/trunk@16675 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-02 00:17:12 +00:00
potbot 0829265944 POT, generated from r16617
git-svn-id: https://develop.svn.wordpress.org/trunk@16618 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-29 20:21:41 +00:00
Nikolay Bachiyski ca368c129f Make comments_popup_link() calls in Twenty Ten respect languages with multiple plural forms until we add such support in comments_number(). See #13651, props zeo
git-svn-id: https://develop.svn.wordpress.org/trunk@16614 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-29 18:42:31 +00:00
potbot bb266c9801 POT, generated from r16590
git-svn-id: https://develop.svn.wordpress.org/trunk@16591 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-25 20:21:41 +00:00
Andrew Nacin af99a5e368 Only link to the Gallery category if the post is in the category. (It may be a format.) see #15506, see #15378.
git-svn-id: https://develop.svn.wordpress.org/trunk@16589 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-25 18:59:19 +00:00
potbot c05b55b066 POT, generated from r16540
git-svn-id: https://develop.svn.wordpress.org/trunk@16541 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-23 00:22:47 +00:00
Andrew Nacin f82118f579 Add a simple filter to allow removing the recent comments default widget styles. fixes #15493, see #14876.
git-svn-id: https://develop.svn.wordpress.org/trunk@16522 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-21 13:55:11 +00:00
potbot 794e39317a POT, generated from r16480
git-svn-id: https://develop.svn.wordpress.org/trunk@16481 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 08:21:40 +00:00
Andrew Nacin c5665d8ed2 Twenty Ten code cleanups. props lancewillett, fixes #15476.
git-svn-id: https://develop.svn.wordpress.org/trunk@16480 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 05:37:47 +00:00