twentyGOLEM/wp-content/themes/twentyeleven
nacin 9db8f895a0 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: http://svn.automattic.com/wordpress/trunk@17733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-28 08:06:57 +00:00
..
colors Twenty Eleven: functions.php cleanup and introduction of theme options; see #17198 2011-04-26 22:52:18 +00:00
images Twenty Eleven: add first batch of new header images, courtesy of the immeasurable photomatt archives - see #17198 2011-04-27 21:44:09 +00:00
inc Rewrite of Twenty Eleven theme-options.php. Including: 2011-04-28 08:06:57 +00:00
js Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
languages Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
404.php Provide more arguments to the widgets on the 404 page so as to avoid notices. See #17198 2011-04-21 07:43:25 +00:00
archive.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
author.php Twenty Eleven: strip trailing spaces, props kawauso - see #17198 2011-04-26 18:34:52 +00:00
category.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
comments.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
content-aside.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
content-featured.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
content-gallery.php Twenty Eleven: strip trailing spaces, props kawauso - see #17198 2011-04-26 18:34:52 +00:00
content-intro.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
content-link.php Twenty Eleven: strip trailing spaces, props kawauso - see #17198 2011-04-26 18:34:52 +00:00
content-page.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
content-single.php Twenty Eleven: strip trailing spaces, props kawauso - see #17198 2011-04-26 18:34:52 +00:00
content.php Twenty Eleven: strip trailing spaces, props kawauso - see #17198 2011-04-26 18:34:52 +00:00
footer.php Twenty Eleven: strip trailing spaces, props kawauso - see #17198 2011-04-26 18:34:52 +00:00
functions.php Twenty Eleven: add first batch of new header images, courtesy of the immeasurable photomatt archives - see #17198 2011-04-27 21:44:09 +00:00
header.php Twenty Eleven: add additional conditional IDs for the html element, props iandstewart - see #17198 2011-04-26 18:54:03 +00:00
image.php Twenty Eleven: strip trailing spaces, props kawauso - see #17198 2011-04-26 18:34:52 +00:00
index.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
license.txt Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
page.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
readme.txt Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
rtl.css Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
screenshot.png Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
search.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
searchform.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
showcase.php Twenty Eleven: add support for Status and Quote formats, props iandstewart - see #17198 2011-04-26 18:46:31 +00:00
sidebar.php Twenty Eleven: strip trailing spaces, props kawauso - see #17198 2011-04-26 18:34:52 +00:00
single.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00
style.css Twenty Eleven: theme options - see #17198 2011-04-27 23:03:27 +00:00
tag.php Importing Duster theme, first pass at a candidate for twentyeleven theme. 2011-04-20 21:46:33 +00:00

readme.txt

= TWENTY ELEVEN =

* by the WordPress team, http://wordpress.org/

== ABOUT TWENTY ELEVEN ==