Your SlideShare is downloading. ×

Carrington CMS Theme Framework for WordPress

9,424

Published on

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

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,424
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
18
Comments
0
Likes
6
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Carrington The CMS Theme Framework for WordPress Alex King Sunday, March 1, 2009
  • 2. I’m Kind of a Big Deal • Original WordPress Contributor Sunday, March 1, 2009
  • 3. I’m Kind of a Big Deal • Original WordPress Contributor • Founder of Crowd Favorite Sunday, March 1, 2009
  • 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. Sunday, March 1, 2009
  • 6. Sunday, March 1, 2009
  • 7. Carrington The CMS Theme Framework for WordPress Sunday, March 1, 2009
  • 8. Sunday, March 1, 2009
  • 9. Comments Sunday, March 1, 2009
  • 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. OK, what was the syntax for getting the comment user ID and the post author ID again? Sunday, March 1, 2009
  • 12. So the_author_ID() calls get_the_author_ID() which uses global $authordata... HUH? Sunday, March 1, 2009
  • 13. Comments á la Carrington Sunday, March 1, 2009
  • 14. Code Sunday, March 1, 2009
  • 15. Comment Templates • • user-{username}.php comment-default.php • • role-{role}.php ping.php • author.php Sunday, March 1, 2009
  • 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. Content Featured Columnist Sunday, March 1, 2009
  • 18. Code Sunday, March 1, 2009
  • 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. General Advice Column Sunday, March 1, 2009
  • 21. Code Sunday, March 1, 2009
  • 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. Context Types • COMMENT = comment & user info (dir: comment) Sunday, March 1, 2009
  • 24. Context Types • COMMENT = comment & user info (dir: comment) • CONTENT = individual post/page info (dirs: content, excerpt - single) Sunday, March 1, 2009
  • 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. Structure Posts Single Page Sunday, March 1, 2009
  • 27. Structure Posts Single Header Page Sunday, March 1, 2009
  • 28. Structure Posts Single Loop Header Page Sunday, March 1, 2009
  • 29. Structure Posts Content/ Single Loop Header Excerpt Page Sunday, March 1, 2009
  • 30. Structure Posts Content/ Single Loop Header Excerpt Comments Page Sunday, March 1, 2009
  • 31. Structure Posts Content/ Single Loop Header Sidebar Excerpt Comments Page Sunday, March 1, 2009
  • 32. Structure Posts Content/ Single Loop Header Sidebar Footer Excerpt Comments Page Sunday, March 1, 2009
  • 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. Sunday, March 1, 2009
  • 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. Moderator Sunday, March 1, 2009
  • 37. Q &A we specialize in WordPress Development, Design & Consulting Sunday, March 1, 2009

×