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> <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");
} }
?> ?>

View File

@@ -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();