diff options
Diffstat (limited to 'src/View/templates/post_block.php')
| -rw-r--r-- | src/View/templates/post_block.php | 14 |
1 files changed, 14 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..43dbe01 --- /dev/null +++ b/src/View/templates/post_block.php | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | <?php declare(strict_types=1); ?> | ||
| 2 | <section class="<?= $section_class ?>" block-type="<?= $node->getName() ?>" 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" style="<?= $cols_min_width ?>"> | ||
| 9 | <?= $content ?> | ||
| 10 | </div> | ||
| 11 | <div class="fetch_articles"> | ||
| 12 | <button class="<?= $fetch_button_hidden ?>" onclick="fetchArticles(<?= $this->id_node ?>)">Articles suivants</button> | ||
| 13 | </div> | ||
| 14 | </section> \ No newline at end of file | ||
