diff options
author | polo <ordipolo@gmx.fr> | 2025-04-07 07:46:27 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-04-07 07:46:27 +0200 |
commit | 09bea09c8157ff45279f0d06aa9d313448c0bec5 (patch) | |
tree | 4f79c47678df12cb508607be040050c8f08455aa /src/view/GridBuilder.php | |
parent | 022d0c36258c874a21a36e207ae89aa8d91e44a1 (diff) | |
download | cms-09bea09c8157ff45279f0d06aa9d313448c0bec5.zip |
nouvelle "news"
Diffstat (limited to 'src/view/GridBuilder.php')
-rw-r--r-- | src/view/GridBuilder.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/GridBuilder.php b/src/view/GridBuilder.php index e183e6f..fdc5426 100644 --- a/src/view/GridBuilder.php +++ b/src/view/GridBuilder.php | |||
@@ -27,9 +27,9 @@ class GridBuilder extends AbstractBuilder | |||
27 | $share_button = '<p class="share hidden"><img class="action_icon" src="assets/share.svg"></p>'; | 27 | $share_button = '<p class="share hidden"><img class="action_icon" src="assets/share.svg"></p>'; |
28 | $html = ''; | 28 | $html = ''; |
29 | 29 | ||
30 | if(CURRENT_PAGE === 'accueil'){ | 30 | if(Director::$page_path->getLast()->getEndOfPath() === 'accueil'){ |
31 | $new_button = '<p><a class="link_to_article" href="' . new URL(['page' => 'article', 'id' => $id]) . '"> | 31 | $new_button = '<p><a class="link_to_article" href="' . new URL(['page' => 'article', 'id' => $id]) . '"> |
32 | <button><img class="action_icon" src="assets/book-open.svg">Nouvel article</button></a></p>'; | 32 | <button><img class="action_icon" src="assets/edit.svg">Nouvel article</button></a></p>'; |
33 | } | 33 | } |
34 | else{ | 34 | else{ |
35 | $new_button = '<p id="new-' . $id . '">' . "\n" . | 35 | $new_button = '<p id="new-' . $id . '">' . "\n" . |