Date post: | 18-May-2015 |
Category: |
Technology |
Upload: | alexkingorg |
View: | 9,424 times |
Download: | 1 times |
CarringtonThe CMS Theme Framework for WordPress
Alex King
Sunday, March 1, 2009
I’m Kind of a Big Deal
• Original WordPress Contributor
Sunday, March 1, 2009
I’m Kind of a Big Deal
• Original WordPress Contributor
• Founder of Crowd Favorite
Sunday, March 1, 2009
I’m Kind of a Big Deal
• Original WordPress Contributor
• Founder of Crowd Favorite
• That guy in the sweater
Sunday, March 1, 2009
Sunday, March 1, 2009
Sunday, March 1, 2009
CarringtonThe CMS Theme Framework
for WordPress
Sunday, March 1, 2009
Sunday, March 1, 2009
Comments
Sunday, March 1, 2009
$boring = ‘writing the same conditional code again and again and again and again’;
if ($boring) {
echo ‘<em>Facepalm!</em>’;
}
comments.php
Sunday, March 1, 2009
OK, what was the syntax for getting the comment
user ID and the post author ID again?
Sunday, March 1, 2009
So the_author_ID() calls get_the_author_ID()
which uses global $authordata... HUH?
Sunday, March 1, 2009
Commentsá la Carrington
Sunday, March 1, 2009
Code
Sunday, March 1, 2009
Comment Templates
• comment-default.php
• ping.php
• author.php
• user-{username}.php
• role-{role}.php
Sunday, March 1, 2009
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
ContentFeatured Columnist
Sunday, March 1, 2009
Code
Sunday, March 1, 2009
Content TemplatesContent, Excerpt
• {dir}-default.php
• page.php
• parent-{slug}.php
• author-{username}.php
• role-{role}.php
• cat-{slug}.php
• tag-{slug}.php
• meta-{key}.php
• meta-{key}-{value}.php
Sunday, March 1, 2009
GeneralAdvice Column
Sunday, March 1, 2009
Code
Sunday, March 1, 2009
General TemplatesHeader, Sidebar, Footer
• {dir}-default.php
• home.php
• search.php
• single.php
• page.php
• author.php
• author-{username}.php
• role-{role}.php
• category.php
• cat-{slug}.php
• tag.php
• tag-{slug}.php
• single-{content}.php(cat, tag, author, meta, etc.)
Sunday, March 1, 2009
Context Types
• COMMENT = comment & user info(dir: comment)
Sunday, March 1, 2009
Context Types
• COMMENT = comment & user info(dir: comment)
• CONTENT = individual post/page info(dirs: content, excerpt - single)
Sunday, March 1, 2009
Context Types
• COMMENT = comment & user info(dir: comment)
• CONTENT = individual post/page info(dirs: content, excerpt - single)
• GENERAL = type of page(dirs: header, sidebar, footer, loop, posts)
Sunday, March 1, 2009
Structure
Posts
Single
Page
Sunday, March 1, 2009
Structure
Posts
Single
Page
Header
Sunday, March 1, 2009
Structure
Posts
Single
Page
Header Loop
Sunday, March 1, 2009
Structure
Posts
Single
Page
HeaderContent/Excerpt
Loop
Sunday, March 1, 2009
Structure
Posts
Single
Page
HeaderContent/Excerpt
Loop
Comments
Sunday, March 1, 2009
Structure
Posts
Single
Page
HeaderContent/Excerpt
SidebarLoop
Comments
Sunday, March 1, 2009
Structure
Posts
Single
Page
HeaderContent/Excerpt
Sidebar FooterLoop
Comments
Sunday, March 1, 2009
League night at The Denverer was fantastic!
– Alex KingI always check with The Denverer for which REI to shop at.
– Alexander K.
The Denverer has great prime rib.
– A. King
The Denverer always knows the best places to buy sweaters.
– A. Thomas King
Sunday, March 1, 2009
Sunday, March 1, 2009
Resources
• Carrington Web Sitehttp://carringtontheme.com
• SVNhttp://code.google.com/p/carrington
• Documentationhttp://crowdfavorite.com/wordpress/carrington
Sunday, March 1, 2009
Moderator
Sunday, March 1, 2009
Q & A
we specialize in
WordPress Development, Design & Consulting
Sunday, March 1, 2009