aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-08-02 16:02:29 +0000
committerMario <mario@mariovavti.com>2024-08-02 16:02:29 +0000
commit56cb6f1034b36dca0cd91bc51c491bb2fe5809ef (patch)
tree440443af190841dd47decb33d4678dbf71d8ae91 /include/conversation.php
parent7eb23aa8b8d161a74ea59bc4c6eef5357fe6b1c0 (diff)
downloadvolse-hubzilla-56cb6f1034b36dca0cd91bc51c491bb2fe5809ef.tar.gz
volse-hubzilla-56cb6f1034b36dca0cd91bc51c491bb2fe5809ef.tar.bz2
volse-hubzilla-56cb6f1034b36dca0cd91bc51c491bb2fe5809ef.zip
streamline location rendering
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php12
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 .= '&nbsp;<span class="smalltext">(' . $coord . ')</span>';
+ $location .= '&nbsp;(' . $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>';
}