github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

thetoine / wish-you-were-simple

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A stripped down WordPress for theme developers. — Read more

  cancel

www.toine.ca

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added GPL license. 
thetoine (author)
Mon Nov 09 11:21:28 -0800 2009
commit  012fffea00385d893d29db02b632094350288f17
tree    7271174d7aa524f83ca34e99ba2a850feba84032
parent  e0132675722b1901dcca206d9c32323023b369e0
wish-you-were-simple /
name age
history
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

  • 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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server