From 488434f6fa105f994c38f774c0c8835f0eca04e2 Mon Sep 17 00:00:00 2001 From: Banana Date: Sun, 2 Jun 2024 11:05:15 +0200 Subject: [PATCH] a better html structure... Signed-off-by: Banana --- webroot/view/entry/entry.html | 15 +++++++++------ webroot/view/list/list.html | 24 ++++++++++++++---------- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/webroot/view/entry/entry.html b/webroot/view/entry/entry.html index 23a3c0d..e9c992a 100644 --- a/webroot/view/entry/entry.html +++ b/webroot/view/entry/entry.html @@ -1,15 +1,18 @@ +

t('text.home'); ?> | t('text.new'); ?>

- t('text.home'); ?> - '.$be.' | '; + echo ''.$be.''; + if(++$i !== $crumbs) { + echo ' | '; + } } ?> - t('text.new'); ?> - +

Created: , Updated:

diff --git a/webroot/view/list/list.html b/webroot/view/list/list.html index 1e5517e..b04147b 100644 --- a/webroot/view/list/list.html +++ b/webroot/view/list/list.html @@ -3,23 +3,27 @@ -

- t('text.home'); ?> | +

t('text.home'); ?> | t('text.new'); ?>

$v) { + echo '

'; $_link = ''; + $crumbs = count($v['breadcrumb']); + $i = 0; foreach($v['breadcrumb'] as $be) { $_link .= '/'.$be; - echo ''.$be.' | '; + echo ''.$be.''; + if(++$i !== $crumbs) { + echo ' | '; + } } + echo '

'; ?> - t('text.new'); ?> -

-

+ -- 2.39.5