Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-builder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-builder
Merge requests
!17
TemplateRenderer interface.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Closed
TemplateRenderer interface.
feature/template-renderer
into
master
Overview
6
Commits
1
Pipelines
1
Changes
1
Closed
Krzysztof Dyszczyk
requested to merge
feature/template-renderer
into
master
6 years ago
Overview
6
Commits
1
Pipelines
1
Changes
1
0
0
Merge request reports
Viewing commit
fafc6f1e
Show latest version
1 file
+
31
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
fafc6f1e
TemplateRenderer interface.
· fafc6f1e
Grzegorz Rola
authored
6 years ago
src/Plugin/TemplateRenderer.php
0 → 100644
+
31
−
0
View file @ fafc6f1e
Edit in single-file editor
Open in Web IDE
<?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