carrington theme framework for wordpress (refresh denver)
DESCRIPTION
Carrington Theme Framework for WordPress overview, presented at Refresh Denver 2009-01-21.TRANSCRIPT
CarringtonA Theme Framework for WordPress
Alex King
Agenda
• Introduction
• Use Cases
• Carrington Principles
• WordPress Stack
• Abstractions
• Demo/Code Examples
• Resources
• Q & A
Introduction
• Personal Background
• Crowd Favorite
• Carrington’s Purpose
Use Cases
• Guest Columnists
• Article Types (magazine sites)
• Asides / Link Stories
• Registered Commenters
Carrington Principles
• Convention over code
• Developer-friendly abstraction levels
• Structure for rules hierarchy
• Multiple templates instead of conditionals
WordPress Stack1. Request comes in
2. .htaccess rules applied
3. No file match = hand off to WordPress
4. Load code (including plugins and theme)
5. Prep data (plugins applied)
6. Hand off to theme
Theme Load
Posts
Post
Page
HeaderContent/Excerpt
Sidebar FooterLoop
Comments
Directory StructureWP Default Carrington Blog
General TemplatesHeader, Sidebar, Footer
• {dir}-default.php
• home.php
• search.php
• single.php
• page.php
• author-{username}.php
• role-{role}.php
• cat-{slug}.php
• tag-{slug}.php
• single-{content}.php(cat, tag, author, meta, etc.)
Content TemplatesContent, Excerpt
• {dir}-default.php
• home.php
• search.php
• single.php
• page.php
• author-{username}.php
• role-{role}.php
• cat-{slug}.php
• tag-{slug}.php
• meta-{key}.php
• meta-{key}-{value}.php
• parent-{slug}.php
Comment Templates
• comment-default.php
• ping.php
• author.php
• user-{username}.php
• role-{role}.php
Demo/Code Examples
• General (Header / Footer / Sidebar)
• Content
• Comments
Resources
• Carrington Homehttp://carringtontheme.com
• SVNhttp://code.google.com/p/carrington
• Documentationhttp://crowdfavorite.com/wordpress/carrington
WordCamp Denver
• February 28, 2009
• Denver Art Museum
• $20 for all day event, includes t-shirt
• http://denver.wordcamp.org
Q & A
we specialize in
WordPress Development, Design & Consulting