Skip to content

tmf/wordpress-twig-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress Twig Theme

This theme demonstrates how the Twig templating engine and other reusable, modern components can be used in an object-oriented way in a wordpress theme.

The actual twig template is based on the free, responsive http://html5up.net/escape-velocity/ template.

Inspired / adapted from

Installation

This theme requires the composer autoloader: the vendor directory (with the autoload.php entry point) is expected in the root of the wordpress installation. The easiest way to install:

Usage

  • adapt the needed views field ($viewsByTemplate) in the Tmf\Theme\WordpressTheme class
  • register the needed scripts in Tmf\Theme\WordpressTheme::init
  • adapt Tmf\Theme\WordpressTheme::getViewData to the configured views
  • edit the twig templates in the views folder

About

Use the Twig Templating engine in Wordpress Themes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published