diff options
Diffstat (limited to 'src/view/templates')
| -rw-r--r-- | src/view/templates/modify_block.php | 7 | ||||
| -rw-r--r-- | src/view/templates/news_block.php | 5 | ||||
| -rw-r--r-- | src/view/templates/post_block.php | 5 |
3 files changed, 15 insertions, 2 deletions
diff --git a/src/view/templates/modify_block.php b/src/view/templates/modify_block.php index 1d097e0..3620100 100644 --- a/src/view/templates/modify_block.php +++ b/src/view/templates/modify_block.php | |||
| @@ -47,4 +47,11 @@ if(Blocks::hasPresentation($child_node->getName())){ | |||
| 47 | <?php | 47 | <?php |
| 48 | } | 48 | } |
| 49 | ?> | 49 | ?> |
| 50 | <div class="pagination_limit"> | ||
| 51 | <label for="pagination_limit_<?= $child_node->getId() ?>"> | ||
| 52 | Nombre max d'articles affichés | ||
| 53 | <input type="number" id="pagination_limit_<?= $child_node->getId() ?>" name="pagination_limit" onchange="changePaginationLimit(<?= $child_node->getId() ?>)" min="0" max="30" value="<?= $child_node->getNodeData()->getPaginationLimit() ?>"> | ||
| 54 | <i>(mettre 0 désactive la pagination)</i> | ||
| 55 | </label> | ||
| 56 | </div> | ||
| 50 | </div> \ No newline at end of file | 57 | </div> \ No newline at end of file |
diff --git a/src/view/templates/news_block.php b/src/view/templates/news_block.php index 9d01513..43dbe01 100644 --- a/src/view/templates/news_block.php +++ b/src/view/templates/news_block.php | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | <?php declare(strict_types=1); ?> | 1 | <?php declare(strict_types=1); ?> |
| 2 | <section class="<?= $section_class ?>" id="<?= $this->id_node ?>"> | 2 | <section class="<?= $section_class ?>" block-type="<?= $node->getName() ?>" id="<?= $this->id_node ?>"> |
| 3 | <h3><?= $title ?></h3> | 3 | <h3><?= $title ?></h3> |
| 4 | <?= $new_article ?> | 4 | <?= $new_article ?> |
| 5 | <script> | 5 | <script> |
| @@ -8,4 +8,7 @@ | |||
| 8 | <div class="section_child" style="<?= $cols_min_width ?>"> | 8 | <div class="section_child" style="<?= $cols_min_width ?>"> |
| 9 | <?= $content ?> | 9 | <?= $content ?> |
| 10 | </div> | 10 | </div> |
| 11 | <div class="fetch_articles"> | ||
| 12 | <button class="<?= $fetch_button_hidden ?>" onclick="fetchArticles(<?= $this->id_node ?>)">Articles suivants</button> | ||
| 13 | </div> | ||
| 11 | </section> \ No newline at end of file | 14 | </section> \ No newline at end of file |
diff --git a/src/view/templates/post_block.php b/src/view/templates/post_block.php index 9d01513..43dbe01 100644 --- a/src/view/templates/post_block.php +++ b/src/view/templates/post_block.php | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | <?php declare(strict_types=1); ?> | 1 | <?php declare(strict_types=1); ?> |
| 2 | <section class="<?= $section_class ?>" id="<?= $this->id_node ?>"> | 2 | <section class="<?= $section_class ?>" block-type="<?= $node->getName() ?>" id="<?= $this->id_node ?>"> |
| 3 | <h3><?= $title ?></h3> | 3 | <h3><?= $title ?></h3> |
| 4 | <?= $new_article ?> | 4 | <?= $new_article ?> |
| 5 | <script> | 5 | <script> |
| @@ -8,4 +8,7 @@ | |||
| 8 | <div class="section_child" style="<?= $cols_min_width ?>"> | 8 | <div class="section_child" style="<?= $cols_min_width ?>"> |
| 9 | <?= $content ?> | 9 | <?= $content ?> |
| 10 | </div> | 10 | </div> |
| 11 | <div class="fetch_articles"> | ||
| 12 | <button class="<?= $fetch_button_hidden ?>" onclick="fetchArticles(<?= $this->id_node ?>)">Articles suivants</button> | ||
| 13 | </div> | ||
| 11 | </section> \ No newline at end of file | 14 | </section> \ No newline at end of file |
