Restructure theme, use autoloader

This commit is contained in:
QWp6t
2015-12-18 16:41:37 -08:00
committed by Ben Word
parent 8d7bcee4c4
commit 9eaffa3a2d
47 changed files with 771 additions and 393 deletions

View File

@@ -0,0 +1,27 @@
<?php namespace Roots\Sage\Template;
/**
* Interface IWrapper
* @package Roots\Sage
* @author QWp6t
*/
interface IWrapper {
/**
* Get a list of potential wrappers
* Useful for passing to WordPress's locate_template()
*
* @return string[] List of wrappers; e.g., `base-page.php`, `base.php`
*/
public function getWrappers();
/**
* @return string Template file that is being wrapped; e.g., `page.php`, `single.php`, `singular.php`
*/
public function getTemplate();
/**
* @return string Slug of the Wrapper; e.g., `base`
*/
public function getSlug();
}