Rework template wrapper, bring back template_part()

This commit is contained in:
QWp6t
2016-07-15 05:31:02 -07:00
parent 0a71544b83
commit eb3a7add85
8 changed files with 130 additions and 109 deletions

View File

@@ -13,15 +13,15 @@ interface WrapperInterface
*
* @return string Wrapper template (FQPN of, e.g., `base-page.php`, `base.php`)
*/
public function getWrapper();
public function wrap();
/**
* @return string Wrapped template (FQPN of, e.g., `page.php`, `single.php`, `singular.php`)
*/
public function getTemplate();
public function unwrap();
/**
* @return string Slug of the WrapperInterface; e.g., `base`
*/
public function getSlug();
public function slug();
}