This is a stripped down blank theme, meant to be used as a parent theme. It includes alot of functions borrowed from the silverstreak mini framework: http://github.com/vanntastic/silverstreak. I felt that alot of the wordpress functions could be more simplified and easier to use. This theme attempts to be pragmatic and allows you to keep your code elegant. It also makes assumptions for you, so you don't have to worry about trivial things such as where your images, js, or css directories are.
- Rake (if you want to use the setup task) : http://rake.rubyforge.org/
-
Clone the git repo into your wordpress theme directory
git clone git@github.com:vanntastic/silverstreak_wp.git /path/to/your/wp-site/wp-content/themes/silverstreak_wp
-
Cd into the root of the silverstreak_wp theme directory
cd /path/to/your/wp-site/wp-content/themes/silverstreak_wp
-
Run:
rake ss:setup FOR='name_of_theme'
That should setup your child theme folder and the necessary directories, if you are on a mac and have textmate installed, then it also has the added bonus of opening up the header.php file in textmate.
-
Start working on your theme!
Inserts an image tag from the images directory.
image($filename, $attrs)
USAGE
image('header.png',"title='header'");
Inserts a dynamic page title, place this in between your title tags.
page_title($content)
USAGE
page_title('Welcome to my site!');
Includes a javascript library from the js folder.
include_js($libs)
USAGE
include_js('app');
// including multiple js files
include_js(array('app','loader'))
Include google's ajax libraries
include_js_lib($libs)
USAGE
include_js_lib('jquery-1.3.2');
//multiple libraries
include_js_lib('jquery-1.3.2', 'jqueryui-1.7.2');
Includes a css file from the css folder.
include_css($libs)
USAGE
// include a single css file
include_css('app');
// including multiple css files
include_css(array('app','print'))
// include the 960 css framework
include_css('960')