Playdate Design Outline

Introduction to Themes

  • Explain purpose public themes
  • Show documentation

Theme Structure

  • Theme Folder
    • theme.ini, theme.jpg
    • index.php
    • collections/
      • browse.php
      • show.php
    • css/
      • screen.css
      • print.css
    • custom.php
    • javascripts/
    • common/
      • header.php
      • footer.php
    • images/
    • items/
      • browse.php
      • show.php
  • Explain routing: that example.com/items/browse corresponds to /theme/items/browse.php. Similar in other cases.

Helper Functions

A brief demonstration of what various theme helper functions can do. Go through index.php and header.php, explain what various functions do.

  • header()
  • footer()
  • settings()
  • css()
  • js()
  • common()
  • nav()
    • Show how to add a navigation.

Public Home Page

  • Getting featured item
  • Getting featured collection
  • Getting recent items uses a custom loop

Items and Collections

  • Go over items/show.php
    • Demonstrate how to alter show_item_metadata() to hide empty fields
    • Demonstrate how to show specific fields using item() helper
    • Explain the listing of collection
      • Checks to see if the item belongs to a collection, then prints the collection
    • Displaying files for Item

Questions, go w/ the crowd, etc.