diff --git a/src/Plugin/TemplateRenderer.php b/src/Plugin/TemplateRenderer.php new file mode 100644 index 0000000000000000000000000000000000000000..1259b953f5f4da1ed87d6fc66485926cf2ce25d3 --- /dev/null +++ b/src/Plugin/TemplateRenderer.php @@ -0,0 +1,31 @@ +<?php + +namespace WPDesk\PluginBuilder\Plugin; + +interface TemplateRenderer { + + /** + * Init base variables for plugin + */ + public function init_template_base_variables(); + + /** + * Renders end returns selected template + * + * @param string $name Name of the template. + * @param string $path Additional inner path to the template. + * @param array $args args Accessible from template. + * + * @return string + */ + public function load_template( $name, $path = '', $args = array() ); + + /** + * Get template path. + * + * @return string + */ + public function get_template_path(); + +} +