Skip to content

Commit

Permalink
Merge pull request #102 from dkcreatto/patch-1
Browse files Browse the repository at this point in the history
updated theme structure chart
  • Loading branch information
retlehs authored Aug 11, 2017
2 parents 338cbcd + 8ce2b30 commit 72a1e6b
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions sage/theme-configuration-and-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,30 +69,32 @@ Sage registers two sidebars by default: Primary & Footer. Add additional sidebar

```shell
themes/your-theme-name/ # β†’ Root of your Sage based theme
β”œβ”€β”€ assets # β†’ Front-end assets
β”‚ β”œβ”€β”€ config.json # β†’ Settings for compiled assets
β”‚ β”œβ”€β”€ build/ # β†’ Webpack and ESLint config
β”‚ β”œβ”€β”€ fonts/ # β†’ Theme fonts
β”‚ β”œβ”€β”€ images/ # β†’ Theme images
β”‚ β”œβ”€β”€ scripts/ # β†’ Theme JS
β”‚ └── styles/ # β†’ Theme stylesheets
β”œβ”€β”€ composer.json # β†’ Autoloading for `src/` files
β”œβ”€β”€ composer.lock # β†’ Composer lock file (never edit)
β”œβ”€β”€ dist/ # β†’ Built theme assets (never edit)
β”œβ”€β”€ functions.php # β†’ Composer autoloader, theme includes
β”œβ”€β”€ index.php # β†’ Never manually edit
β”œβ”€β”€ node_modules/ # β†’ Node.js packages (never edit)
β”œβ”€β”€ package.json # β†’ Node.js dependencies and scripts
β”œβ”€β”€ screenshot.png # β†’ Theme screenshot for WP admin
β”œβ”€β”€ src/ # β†’ Theme PHP
β”œβ”€β”€ app/ # β†’ Theme PHP
β”‚ β”œβ”€β”€ lib/Sage/ # β†’ Blade implementation, asset manifest
β”‚ β”œβ”€β”€ admin.php # β†’ Theme customizer setup
β”‚ β”œβ”€β”€ filters.php # β†’ Theme filters
β”‚ β”œβ”€β”€ helpers.php # β†’ Helper functions
β”‚ └── setup.php # β†’ Theme setup
β”œβ”€β”€ style.css # β†’ Theme meta information
β”œβ”€β”€ templates/ # β†’ Theme templates
β”‚ β”œβ”€β”€ layouts/ # β†’ Base templates
β”‚ └── partials/ # β†’ Partial templates
β”œβ”€β”€ composer.json # β†’ Autoloading for `app/` files
β”œβ”€β”€ composer.lock # β†’ Composer lock file (never edit)
β”œβ”€β”€ dist/ # β†’ Built theme assets (never edit)
β”œβ”€β”€ node_modules/ # β†’ Node.js packages (never edit)
β”œβ”€β”€ package.json # β†’ Node.js dependencies and scripts
β”œβ”€β”€ resources/ # β†’ Theme assets and templates
β”‚ β”œβ”€β”€ assets/ # β†’ Front-end assets
β”‚ β”‚ β”œβ”€β”€ config.json # β†’ Settings for compiled assets
β”‚ β”‚ β”œβ”€β”€ build/ # β†’ Webpack and ESLint config
β”‚ β”‚ β”œβ”€β”€ fonts/ # β†’ Theme fonts
β”‚ β”‚ β”œβ”€β”€ images/ # β†’ Theme images
β”‚ β”‚ β”œβ”€β”€ scripts/ # β†’ Theme JS
β”‚ β”‚ └── styles/ # β†’ Theme stylesheets
β”‚ β”œβ”€β”€ controllers/ # β†’ Controller files
β”‚ β”œβ”€β”€ functions.php # β†’ Composer autoloader, theme includes
β”‚ β”œβ”€β”€ index.php # β†’ Never manually edit
β”‚ β”œβ”€β”€ screenshot.png # β†’ Theme screenshot for WP admin
β”‚ β”œβ”€β”€ style.css # β†’ Theme meta information
β”‚ └── views/ # β†’ Theme templates
β”‚ β”œβ”€β”€ layouts/ # β†’ Base templates
β”‚ └── partials/ # β†’ Partial templates
└── vendor/ # β†’ Composer packages (never edit)
```

0 comments on commit 72a1e6b

Please sign in to comment.