thetoine / wish-you-were-simple
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
404.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
README.markdown | Sun Nov 08 19:10:40 -0800 2009 | |
| |
_post.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
archive.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
archives.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
comments-popup.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
comments.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
footer.php | Fri Nov 06 13:15:41 -0800 2009 | |
| |
functions.php | Mon Nov 09 11:17:26 -0800 2009 | |
| |
header.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
image.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
index.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
javascript/ | Fri Nov 06 12:23:15 -0800 2009 | |
| |
links.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
page-wide.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
page.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
reset.css | Fri Nov 06 12:23:15 -0800 2009 | |
| |
rtl.css | Fri Nov 06 12:23:15 -0800 2009 | |
| |
screenshot.png | Mon Nov 09 11:17:26 -0800 2009 | |
| |
search.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
searchform.php | Sun Nov 08 19:10:40 -0800 2009 | |
| |
sidebar.php | Sun Nov 08 19:10:40 -0800 2009 | |
| |
single.php | Fri Nov 06 12:23:15 -0800 2009 | |
| |
style.css | Mon Nov 09 11:21:28 -0800 2009 |
Wish You Were Simple
Stripped down theme for WordPress theme developers.
The name? I know... WordPress is relatively simple and straight forward but I wanted something even more minimalist to start with.
Sidebars
This theme come with 3 sidebar zones (à la Drupal blocks). Your existing widgets might end up in header zone by default, just move them to sidebar zone.
if ( function_exists('register_sidebar') ) {
register_sidebar(array( 'name' => '(1) Header', 'before_widget' => '<div id="%1$s" class="header-widgets widget %2$s">', 'after_widget' => '</div>'));
register_sidebar(array( 'name' => '(2) Sidebar', 'before_widget' => '<li id="%1$s" class="sidebar-widgets widget %2$s">', 'after_widget' => '</li>'));
register_sidebar(array( 'name' => '(3) Footer', 'before_widget' => '<div id="%1$s" class="footer-widgets widget %2$s">', 'after_widget' => '</div>'));
}
function.php
Assets
Stylesheets and Javascripts are loaded through wp_head() filter.
Add CSS to load with $stylesheets array :
$stylesheets = array(
"reset.css",
"style.css"
"some-path/my-cute-stylesheet.css"
);
Add scripts to load with $scripts array :
$scripts = array(
"jquery-1.3.2.min.js",
"main.js"
);
$version global is used for preventing browser caching. Change as you release to another random value.
Theme Options Page
This theme come with basic theme option that you can use in your theme file.
Options can be grouped by sets, simply populate the options_sets array with additional options.
$options_sets = array(
'sets' => array(
'title' => 'Misc.',
'intro_text' => 'Change misc. settings here.',
'set_options' => array(
0 => array(
'label' => 'Google Analytics Account ID',
'help_text' => 'Insert only your tracker ID (UA-XXXXXXX-X). Leave empty for no tracking',
'type' => 'text', // available: text, textarea
'option_slug' => 'google_analytics_id' // option name, slugifed, no spaces or accents
)
)
)
);
Access them in your theme with get_option(option_name)
Included scripts
- jQuery (loaded by default)
- cufon http://wiki.github.com/sorccu/cufon/about
- jQuery.corner http://www.malsup.com/jquery/corner/
- jQuery.swfobject http://jquery.thewikies.com/swfobject/
Javascript constants
- WP_THEME_PATH = export current theme path
Credits
- Eric Meyer's CSS reset http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
- WordPress's default Kubrick theme http://www.wordpress.org
