Carrington
A Theme Framework for WordPress



                                  Alex King
Agenda

• Introduction            • Abstractions
• Use Cases               • Demo/Code Examples
• Carrington Principles   ...
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
• Mu...
WordPress Stack
1. Request comes in
2. .htaccess rules applied
3. No file match = hand off to WordPress
4. Load code (inclu...
Theme Load
Posts


                         Content/
Post              Loop
        Header                                ...
Directory Structure
WP Default   Carrington Blog
General Templates
                Header, Sidebar, Footer


•                           • author-{username}.php
    {dir}-...
Content Templates
                 Content, Excerpt


•                           • role-{role}.php
    {dir}-default.php
...
Comment Templates

•   comment-default.php
                          • user-{username}.php
•   ping.php
                  ...
Demo/Code Examples

• General (Header / Footer / Sidebar)
• Content
• Comments
Resources
• Carrington Home
  http://carringtontheme.com

• SVN
  http://code.google.com/p/carrington

• Documentation
  h...
WordCamp Denver

• February 28, 2009
• Denver Art Museum
• $20 for all day event,
  includes t-shirt
• http://denver.wordc...
Q &A


               we specialize in
WordPress Development, Design & Consulting
Upcoming SlideShare
Loading in …5
×

Carrington Theme Framework for WordPress (Refresh Denver)

8,200 views

Published on

Carrington Theme Framework for WordPress overview, presented at Refresh Denver 2009-01-21.

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
8,200
On SlideShare
0
From Embeds
0
Number of Embeds
2,779
Actions
Shares
0
Downloads
33
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Carrington Theme Framework for WordPress (Refresh Denver)

  1. 1. Carrington A Theme Framework for WordPress Alex King
  2. 2. Agenda • Introduction • Abstractions • Use Cases • Demo/Code Examples • Carrington Principles • Resources • WordPress Stack • Q &A
  3. 3. Introduction • Personal Background • Crowd Favorite • Carrington’s Purpose
  4. 4. Use Cases • Guest Columnists • Article Types (magazine sites) • Asides / Link Stories • Registered Commenters
  5. 5. Carrington Principles • Convention over code • Developer-friendly abstraction levels • Structure for rules hierarchy • Multiple templates instead of conditionals
  6. 6. WordPress Stack 1. 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
  7. 7. Theme Load Posts Content/ Post Loop Header Sidebar Footer Excerpt Comments Page
  8. 8. Directory Structure WP Default Carrington Blog
  9. 9. General Templates Header, Sidebar, Footer • • author-{username}.php {dir}-default.php • • role-{role}.php home.php • • cat-{slug}.php search.php • • tag-{slug}.php single.php • • single-{content}.php page.php (cat, tag, author, meta, etc.)
  10. 10. Content Templates Content, Excerpt • • role-{role}.php {dir}-default.php • • cat-{slug}.php home.php • • tag-{slug}.php search.php • • meta-{key}.php single.php • • meta-{key}-{value}.php page.php • • parent-{slug}.php author-{username}.php
  11. 11. Comment Templates • comment-default.php • user-{username}.php • ping.php • role-{role}.php • author.php
  12. 12. Demo/Code Examples • General (Header / Footer / Sidebar) • Content • Comments
  13. 13. Resources • Carrington Home http://carringtontheme.com • SVN http://code.google.com/p/carrington • Documentation http://crowdfavorite.com/wordpress/carrington
  14. 14. WordCamp Denver • February 28, 2009 • Denver Art Museum • $20 for all day event, includes t-shirt • http://denver.wordcamp.org
  15. 15. Q &A we specialize in WordPress Development, Design & Consulting

×