added variables in create_html with compact
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
<p>hello <?php echo esc_html($name); ?></p>
|
||||
<p class="second_el_to_change">to change</p>
|
||||
|
||||
Reference in New Issue
Block a user