diff options
author | Mario <mario@mariovavti.com> | 2024-08-02 16:02:29 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-08-02 16:02:29 +0000 |
commit | 56cb6f1034b36dca0cd91bc51c491bb2fe5809ef (patch) | |
tree | 440443af190841dd47decb33d4678dbf71d8ae91 /include | |
parent | 7eb23aa8b8d161a74ea59bc4c6eef5357fe6b1c0 (diff) | |
download | volse-hubzilla-56cb6f1034b36dca0cd91bc51c491bb2fe5809ef.tar.gz volse-hubzilla-56cb6f1034b36dca0cd91bc51c491bb2fe5809ef.tar.bz2 volse-hubzilla-56cb6f1034b36dca0cd91bc51c491bb2fe5809ef.zip |
streamline location rendering
Diffstat (limited to 'include')
-rw-r--r-- | include/conversation.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/conversation.php b/include/conversation.php index e4b39d5b1..b3ba96a82 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1467,14 +1467,18 @@ function render_location_default($item) { $location = $item['location']; $coord = $item['coord']; - if($coord) { + if ($coord) { if($location) - $location .= ' <span class="smalltext">(' . $coord . ')</span>'; + $location .= ' (' . $coord . ')'; else - $location = '<span class="smalltext">' . $coord . '</span>'; + $location = $coord; } - return $location; + if (!$location) { + return ''; + } + + return '<i class="bi bi-geo-alt" title="' . $location . '"></i>'; } |