removed templates in path to include html

This commit is contained in:
asus
2024-02-08 15:28:18 +01:00
parent 2f62f06f04
commit 0113500b13
2 changed files with 1 additions and 2 deletions

View File

@@ -2,6 +2,6 @@
<p class="first_el_to_change">to change</p>
<?php
foreach($names as $name) {
include($template_dir."presentation.html");
include($html_dir."templates/presentation.html");
}
?>

View File

@@ -11,7 +11,6 @@
# a list of variables to make available to this files
function create_html($files, $vars) {
$html_dir = plugin_dir_path(__DIR__).'html/';
$template_dir = plugin_dir_path(__DIR__).'html/templates/';
extract($vars);
ob_start();