diff --git a/sites/+components/communities-json-ld.php b/sites/+components/communities-json-ld.php new file mode 100644 index 0000000..437837f --- /dev/null +++ b/sites/+components/communities-json-ld.php @@ -0,0 +1,31 @@ + "https://www.w3.org/ns/activitystreams", + "summary" => "Active Session Communities", + "type" => "Collection", + "totalItems" => count($rooms), + "items" => array_map(function(\CommunityRoom $room) { + $values = array( + "type" => "Group", + "name" => $room->name, + "summary" => $room->description, + "startTime" => $room->created ? date('Y-m-d\TH:i:s', intval($room->created)) : null, + "url" => $room->get_preview_url(), + "icon" => room_icon($room, '64x64') + ); + return array_filter($values, function ($value) { + return $value != null; + }); + }, $rooms) + ); +?> + + \ No newline at end of file diff --git a/sites/+components/qr_modals.php b/sites/+components/qr_modals.php index ac0e9e6..628c225 100644 --- a/sites/+components/qr_modals.php +++ b/sites/+components/qr_modals.php @@ -23,6 +23,7 @@ id="details-modal-community-name" data-hydrate-with="name;preview_link:href" title="Open preview in new tab" + href="#" >
@@ -52,6 +53,7 @@ data-hydrate-with="hostname;hostname:href" target="_blank" rel="noopener noreferrer" + href="#" >
diff --git a/sites/index.php b/sites/index.php index 3703c7f..f55c3a1 100644 --- a/sites/index.php +++ b/sites/index.php @@ -49,6 +49,7 @@ +