added variables in create_html with compact

This commit is contained in:
asus
2024-02-08 15:24:22 +01:00
parent 070364c992
commit 2f62f06f04
9 changed files with 37 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
<p>i am a new p</p>
<p class="first_el_to_change">to change</p>
<?php
foreach($names as $name) {
include($template_dir."presentation.html");

View File

@@ -1 +1,9 @@
<?php
foreach($ages as $age) {
?>
<p>age <?php echo esc_html($age); ?></p>
<?php
}
?>
<p class="third_el_to_change">to change</p>
<p>aaaaaand this is the end</p>

View File

@@ -1 +1,2 @@
<p>hello <?php echo esc_html($name); ?></p>
<p class="second_el_to_change">to change</p>