SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Downloaden Sie, um offline zu lesen
Carrington
                The 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
Carrington
                        The CMS Theme Framework
                             for WordPress




Sunday, March 1, 2009
Sunday, March 1, 2009
Comments




Sunday, March 1, 2009
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
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

                    •                         • user-{username}.php
                        comment-default.php
                    •                         • role-{role}.php
                        ping.php
                    •   author.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
Content
                        Featured Columnist




Sunday, March 1, 2009
Code




Sunday, March 1, 2009
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
General
                        Advice Column




Sunday, March 1, 2009
Code




Sunday, March 1, 2009
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
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 posts)
                      (dirs: header, sidebar, footer, loop,




Sunday, March 1, 2009
Structure
        Posts



       Single



         Page




Sunday, March 1, 2009
Structure
        Posts



       Single           Header




         Page




Sunday, March 1, 2009
Structure
        Posts



       Single                    Loop
                        Header




         Page




Sunday, March 1, 2009
Structure
        Posts


                                        Content/
       Single                    Loop
                        Header
                                        Excerpt



         Page




Sunday, March 1, 2009
Structure
        Posts


                                        Content/
       Single                    Loop
                        Header
                                        Excerpt
                                                   Comments


         Page




Sunday, March 1, 2009
Structure
        Posts


                                        Content/
       Single                    Loop
                        Header                                Sidebar
                                        Excerpt
                                                   Comments


         Page




Sunday, March 1, 2009
Structure
        Posts


                                        Content/
       Single                    Loop
                        Header                                Sidebar   Footer
                                        Excerpt
                                                   Comments


         Page




Sunday, March 1, 2009
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
Sunday, March 1, 2009
Resources
                    • Carrington Web Site
                      http://carringtontheme.com

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

                    • Documentation
                      http://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

Weitere ähnliche Inhalte

Mehr von alexkingorg (9)

Carrington Core (2014)
Carrington Core (2014)Carrington Core (2014)
Carrington Core (2014)
 
Great expectations
Great expectationsGreat expectations
Great expectations
 
Development Approach
Development ApproachDevelopment Approach
Development Approach
 
WPHC Meetup Discussion
WPHC Meetup DiscussionWPHC Meetup Discussion
WPHC Meetup Discussion
 
BDW Blogging
BDW BloggingBDW Blogging
BDW Blogging
 
Carrington Theme Framework for WordPress (Refresh Denver)
Carrington Theme Framework for WordPress (Refresh Denver)Carrington Theme Framework for WordPress (Refresh Denver)
Carrington Theme Framework for WordPress (Refresh Denver)
 
WordPress Widgets - Widget Summit 2008
WordPress Widgets - Widget Summit 2008WordPress Widgets - Widget Summit 2008
WordPress Widgets - Widget Summit 2008
 
WordPress Plugins (WordCamp Utah)
WordPress Plugins (WordCamp Utah)WordPress Plugins (WordCamp Utah)
WordPress Plugins (WordCamp Utah)
 
Addictomatic
AddictomaticAddictomatic
Addictomatic
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

Carrington CMS Theme Framework for WordPress

  • 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
  • 7. Carrington The CMS Theme Framework for WordPress 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
  • 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
  • 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
  • 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
  • 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
  • 37. Q &A we specialize in WordPress Development, Design & Consulting Sunday, March 1, 2009