removed templates in path to include html
This commit is contained in:
@@ -2,6 +2,6 @@
|
|||||||
<p class="first_el_to_change">to change</p>
|
<p class="first_el_to_change">to change</p>
|
||||||
<?php
|
<?php
|
||||||
foreach($names as $name) {
|
foreach($names as $name) {
|
||||||
include($template_dir."presentation.html");
|
include($html_dir."templates/presentation.html");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
# a list of variables to make available to this files
|
# a list of variables to make available to this files
|
||||||
function create_html($files, $vars) {
|
function create_html($files, $vars) {
|
||||||
$html_dir = plugin_dir_path(__DIR__).'html/';
|
$html_dir = plugin_dir_path(__DIR__).'html/';
|
||||||
$template_dir = plugin_dir_path(__DIR__).'html/templates/';
|
|
||||||
extract($vars);
|
extract($vars);
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|||||||
Reference in New Issue
Block a user