diff options
Diffstat (limited to 'src/view/templates/post_block.php')
-rw-r--r-- | src/view/templates/post_block.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/view/templates/post_block.php b/src/view/templates/post_block.php new file mode 100644 index 0000000..d88d780 --- /dev/null +++ b/src/view/templates/post_block.php | |||
@@ -0,0 +1,11 @@ | |||
1 | <?php declare(strict_types=1); ?> | ||
2 | <section class="<?= $section_class ?>" id="<?= $this->id_node ?>"> | ||
3 | <h3><?= $title ?></h3> | ||
4 | <?= $new_article ?> | ||
5 | <script> | ||
6 | var clone<?= $this->id_node ?> = document.currentScript.previousElementSibling.cloneNode(true); | ||
7 | </script> | ||
8 | <div class="<?= $section_child_class ?>"> | ||
9 | <?= $content ?> | ||
10 | </div> | ||
11 | </section> \ No newline at end of file | ||