Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
|
||||
/**
|
||||
* Load Template Files
|
||||
*
|
||||
* @author Rene Hermenau
|
||||
*/
|
||||
class mashsbBuildTemplates {
|
||||
|
||||
/**
|
||||
* Return template content
|
||||
* @return string name of view
|
||||
* @param string name of template
|
||||
* @param array $args optional
|
||||
*/
|
||||
public function get_template($template, $args = array() ) {
|
||||
ob_start();
|
||||
include MASHSB_PLUGIN_DIR . '/templates/' . $template . '.php';
|
||||
$html = ob_get_clean();
|
||||
return $html;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user