feat: update social network icons to use blowdit_asset function and prevent duplication in navbar

This commit is contained in:
interlope committed 2026-06-02 00:38:31 +02:00
1 parent a669bbba55
commit 306a852c3e
3 files changed
+30 -16

No files matched your search

+6
View File
@@ -34,6 +34,12 @@ if (!function_exists('blowdit_icon')) {
. 'stroke-linejoin="round" aria-hidden="true">' . $paths[$name] . '</svg>';
}
// 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(