Carrington CMS Theme Framework for WordPress

9,990 views
9,799 views

Published on

A brief overview of the Carrington CMS theme framework for WordPress - including its purpose and example usage. From WordCamp Denver 2009.

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

No Downloads
Views
Total views
9,990
On SlideShare
0
From Embeds
0
Number of Embeds
136
Actions
Shares
0
Downloads
22
Comments
0
Likes
6
Embeds 0
No embeds

No notes for slide

Carrington CMS Theme Framework for WordPress

  1. 1. Carrington The CMS Theme Framework for WordPress Alex King Sunday, March 1, 2009
  2. 2. I’m Kind of a Big Deal • Original WordPress Contributor Sunday, March 1, 2009
  3. 3. I’m Kind of a Big Deal • Original WordPress Contributor • Founder of Crowd Favorite Sunday, March 1, 2009
  4. 4. I’m Kind of a Big Deal • Original WordPress Contributor • Founder of Crowd Favorite • That guy in the sweater Sunday, March 1, 2009
  5. 5. Sunday, March 1, 2009
  6. 6. Sunday, March 1, 2009
  7. 7. Carrington The CMS Theme Framework for WordPress Sunday, March 1, 2009
  8. 8. Sunday, March 1, 2009
  9. 9. Comments Sunday, March 1, 2009
  10. 10. comments.php $boring = ‘writing the same conditional code again and again and again and again’; if ($boring) { echo ‘<em>Facepalm!</em>’; } Sunday, March 1, 2009
  11. 11. OK, what was the syntax for getting the comment user ID and the post author ID again? Sunday, March 1, 2009
  12. 12. So the_author_ID() calls get_the_author_ID() which uses global $authordata... HUH? Sunday, March 1, 2009
  13. 13. Comments á la Carrington Sunday, March 1, 2009
  14. 14. Code Sunday, March 1, 2009
  15. 15. Comment Templates • • user-{username}.php comment-default.php • • role-{role}.php ping.php • author.php Sunday, March 1, 2009
  16. 16. Carrington Principles • Convention over code (it’s a framework) • Templates replace code = Designer-friendly • Developer-friendly abstraction levels • Structure for rules hierarchy Sunday, March 1, 2009
  17. 17. Content Featured Columnist Sunday, March 1, 2009
  18. 18. Code Sunday, March 1, 2009
  19. 19. Content Templates Content, Excerpt • • cat-{slug}.php {dir}-default.php • • tag-{slug}.php page.php • • meta-{key}.php parent-{slug}.php • • meta-{key}-{value}.php author-{username}.php • role-{role}.php Sunday, March 1, 2009
  20. 20. General Advice Column Sunday, March 1, 2009
  21. 21. Code Sunday, March 1, 2009
  22. 22. General Templates Header, Sidebar, Footer • • role-{role}.php {dir}-default.php • • category.php home.php • • cat-{slug}.php search.php • • tag.php single.php • • tag-{slug}.php page.php • • single-{content}.php author.php • (cat, tag, author, meta, etc.) author-{username}.php Sunday, March 1, 2009
  23. 23. Context Types • COMMENT = comment & user info (dir: comment) Sunday, March 1, 2009
  24. 24. Context Types • COMMENT = comment & user info (dir: comment) • CONTENT = individual post/page info (dirs: content, excerpt - single) Sunday, March 1, 2009
  25. 25. Context Types • COMMENT = comment & user info (dir: comment) • CONTENT = individual post/page info (dirs: content, excerpt - single) • GENERAL = type of page posts) (dirs: header, sidebar, footer, loop, Sunday, March 1, 2009
  26. 26. Structure Posts Single Page Sunday, March 1, 2009
  27. 27. Structure Posts Single Header Page Sunday, March 1, 2009
  28. 28. Structure Posts Single Loop Header Page Sunday, March 1, 2009
  29. 29. Structure Posts Content/ Single Loop Header Excerpt Page Sunday, March 1, 2009
  30. 30. Structure Posts Content/ Single Loop Header Excerpt Comments Page Sunday, March 1, 2009
  31. 31. Structure Posts Content/ Single Loop Header Sidebar Excerpt Comments Page Sunday, March 1, 2009
  32. 32. Structure Posts Content/ Single Loop Header Sidebar Footer Excerpt Comments Page Sunday, March 1, 2009
  33. 33. League night at The Denverer was fantastic! I always check with – Alex King The Denverer for which REI to shop at. – Alexander K. The Denverer always knows the best places The Denverer has to buy sweaters. great prime rib. – A. Thomas King – A. King Sunday, March 1, 2009
  34. 34. Sunday, March 1, 2009
  35. 35. Resources • Carrington Web Site http://carringtontheme.com • SVN http://code.google.com/p/carrington • Documentation http://crowdfavorite.com/wordpress/carrington Sunday, March 1, 2009
  36. 36. Moderator Sunday, March 1, 2009
  37. 37. Q &A we specialize in WordPress Development, Design & Consulting Sunday, March 1, 2009

×