public
Description: A stripped down WordPress for theme developers.
Homepage: www.toine.ca
Clone URL: git://github.com/thetoine/wish-you-were-simple.git
name age message
file 404.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file README.markdown Sun Nov 08 19:10:40 -0800 2009 Revamped CSS. More cleanup. Converted font-size... [thetoine]
file _post.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file archive.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file archives.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file comments-popup.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file comments.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file footer.php Fri Nov 06 13:15:41 -0800 2009 tweaks tweaks [thetoine]
file functions.php Mon Nov 09 11:17:26 -0800 2009 updated preview screenshot [thetoine]
file header.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file image.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file index.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
directory javascript/ Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file links.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file page-wide.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file page.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file reset.css Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file rtl.css Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file screenshot.png Mon Nov 09 11:17:26 -0800 2009 updated preview screenshot [thetoine]
file search.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file searchform.php Sun Nov 08 19:10:40 -0800 2009 Revamped CSS. More cleanup. Converted font-size... [thetoine]
file sidebar.php Sun Nov 08 19:10:40 -0800 2009 Revamped CSS. More cleanup. Converted font-size... [thetoine]
file single.php Fri Nov 06 12:23:15 -0800 2009 adding all files [thetoine]
file style.css Mon Nov 09 11:21:28 -0800 2009 Added GPL license. [thetoine]
README.markdown

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

Javascript constants

  • WP_THEME_PATH = export current theme path

Credits