From 306a852c3ec3e9fbe1ef3a43f805ff25fd7b4717 Mon Sep 17 00:00:00 2001 From: interlope Date: Tue, 2 Jun 2026 00:38:31 +0200 Subject: [PATCH] feat: update social network icons to use blowdit_asset function and prevent duplication in navbar --- php/home.php | 4 ++-- php/icons.php | 6 ++++++ php/navbar.php | 36 ++++++++++++++++++++++-------------- 3 files changed, 30 insertions(+), 16 deletions(-) diff --git a/php/home.php b/php/home.php index 6eb563c..627b674 100644 --- a/php/home.php +++ b/php/home.php @@ -19,12 +19,12 @@
$label) : ?> - <?php echo htmlspecialchars($label, ENT_QUOTES, 'UTF-8') ?> + <?php echo htmlspecialchars($label, ENT_QUOTES, 'UTF-8') ?> - <?php echo $L->get('RSS'); ?> + <?php echo $L->get('RSS'); ?>
diff --git a/php/icons.php b/php/icons.php index 3e785fa..d9c7b37 100644 --- a/php/icons.php +++ b/php/icons.php @@ -34,6 +34,12 @@ if (!function_exists('blowdit_icon')) { . 'stroke-linejoin="round" aria-hidden="true">' . $paths[$name] . ''; } + // Theme asset URL with an mtime cache-buster (so edited images/SVGs refetch). + function blowdit_asset($rel) { + $v = @filemtime(THEME_DIR . $rel); + return DOMAIN_THEME . $rel . ($v ? '?v=' . $v : ''); + } + // Map a theme key to its toggle icon name. function blowdit_theme_icon($theme) { $map = array( diff --git a/php/navbar.php b/php/navbar.php index d74dbf6..39003b5 100644 --- a/php/navbar.php +++ b/php/navbar.php @@ -23,23 +23,31 @@ - - $label) : ?> + + + + $label) : ?> + + + + - - - - +