Skip to content
Snippets Groups Projects

TemplateRenderer interface.

Closed Krzysztof Dyszczyk requested to merge feature/template-renderer into master
1 file
+ 31
0
Compare changes
  • Side-by-side
  • Inline
+ 31
0
<?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();
}
Loading