diff options
| author | polo <ordipolo@gmx.fr> | 2025-09-29 20:20:26 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-09-29 20:20:26 +0200 |
| commit | 23fe455ead832c97fdabafca78393e21a18086bf (patch) | |
| tree | f49603ceff42972ee3f3dae88050c2da586f2759 /src/view/NewBuilder.php | |
| parent | 58d2a7f5f0b8fbb93730ad2332fa484bbfc80d4c (diff) | |
| download | cms-23fe455ead832c97fdabafca78393e21a18086bf.tar.gz cms-23fe455ead832c97fdabafca78393e21a18086bf.tar.bz2 cms-23fe455ead832c97fdabafca78393e21a18086bf.zip | |
présentation mosaïque
Diffstat (limited to 'src/view/NewBuilder.php')
| -rw-r--r-- | src/view/NewBuilder.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/NewBuilder.php b/src/view/NewBuilder.php index 2a082dd..83dd728 100644 --- a/src/view/NewBuilder.php +++ b/src/view/NewBuilder.php | |||
| @@ -56,9 +56,11 @@ class NewBuilder extends AbstractBuilder | |||
| 56 | if(Director::$page_path->getLast()->getEndOfPath() === 'article'){ | 56 | if(Director::$page_path->getLast()->getEndOfPath() === 'article'){ |
| 57 | $content = $node->getArticle()->getContent(); | 57 | $content = $node->getArticle()->getContent(); |
| 58 | $from_to_button = '<p><a class="link_to_article" href="' . new URL(isset($_GET['from']) ? ['page' => $_GET['from']] : []) . '"><button>Retour</button></a></p>'; | 58 | $from_to_button = '<p><a class="link_to_article" href="' . new URL(isset($_GET['from']) ? ['page' => $_GET['from']] : []) . '"><button>Retour</button></a></p>'; |
| 59 | $overflow = ''; | ||
| 59 | } | 60 | } |
| 60 | else{ | 61 | else{ |
| 61 | $from_to_button = '<p><a class="link_to_article" href="' . new URL(['page' => 'article', 'id' => $id, 'from' => CURRENT_PAGE]) . '"><button><img class="action_icon" src="assets/book-open.svg">Lire la suite</button></a></p>'; | 62 | $from_to_button = '<p><a class="link_to_article" href="' . new URL(['page' => 'article', 'id' => $id, 'from' => CURRENT_PAGE]) . '"><button><img class="action_icon" src="assets/book-open.svg">Lire la suite</button></a></p>'; |
| 63 | $overflow = ' overflow_hidden'; | ||
| 62 | } | 64 | } |
| 63 | 65 | ||
| 64 | $date = $node->getArticle()->getDateTime()->format('Y-m-d\TH:i:s.v\Z'); // format: 2025-07-17T13:54:00.000Z | 66 | $date = $node->getArticle()->getDateTime()->format('Y-m-d\TH:i:s.v\Z'); // format: 2025-07-17T13:54:00.000Z |
