Skip to content

Latest commit

 

History

History
executable file
·
37 lines (23 loc) · 1.74 KB

README.md

File metadata and controls

executable file
·
37 lines (23 loc) · 1.74 KB

alt tag

Light, well-structured wordpress theme framework based on “Laravel Blade” template engine and on conception to separate template logic from view.

Why Blade?

Blade is the simple, yet powerful templating engine provided with Laravel. Unlike other popular PHP templating engines, Blade does not restrict you from using plain PHP code in your views. All Blade views are compiled into plain PHP code and cached until they are modified, meaning Blade adds essentially zero overhead to your application.

What’s about structure?

The biggest problem with wordpress theme development is that you always need to repeat same code. New approach, that assumes that template data will be collected and prepared separately from actual render allows you to have the project structured more accurate.

alt tag

How it works?

ClassyTemplate repeats the wordpress template hierarchy and uses it separately for scopes and templates. This allows to use the same scope with different templates and different scopes with the same template.

Example of project structure

alt tag

Installation

  1. Navigate to your WordPress themes directory cd ~/Sites/mysite/wp-content/themes
  2. Clone repository git clone [email protected]:anrw/wp-scratch-theme.git
  3. Navigate to it cd wp-scratch-theme
  4. Install composer dependencies composer install

Documentation

  1. Custom post types
  2. Taxonomies
  3. Post formats
  4. Sidebars

Requirements:

PHP: 5.4+