|
|
|
@ -66,6 +66,7 @@
|
|
|
|
|
$id = html_sanitize($room->get_room_identifier());
|
|
|
|
|
$language = html_sanitize($room->get_language_flag());
|
|
|
|
|
$name = html_sanitize($room->name);
|
|
|
|
|
$name_trunc = truncate($name, 16);
|
|
|
|
|
$desc = html_sanitize($room->description);
|
|
|
|
|
$users = html_sanitize($room->active_users);
|
|
|
|
|
$users_cutoff = html_sanitize($room->format_user_cutoff_period());
|
|
|
|
@ -93,71 +94,65 @@
|
|
|
|
|
itemscope
|
|
|
|
|
itemtype="https://schema.org/EntryPoint"
|
|
|
|
|
data-id="<?=$id?>"
|
|
|
|
|
data-icon='<?=room_icon($room, '64x64')?>'
|
|
|
|
|
data-icon-safe='<?=$room->icon_safety()?>'
|
|
|
|
|
data-icon='<?=room_icon($room, '64x64')?>:<?=$room->icon_safety()?>'
|
|
|
|
|
>
|
|
|
|
|
<td class="td_language tbl_communities__td" title="Language flag for '<?=$name?>'"><?=$language?></td>
|
|
|
|
|
<td class="td_name tbl_communities__td">
|
|
|
|
|
<td class="td_language tbl_cell" title="Language flag for '<?=$name_trunc?>'"><?=$language?></td>
|
|
|
|
|
<td class="td_name tbl_cell">
|
|
|
|
|
<a
|
|
|
|
|
href="<?=$preview_link?>"
|
|
|
|
|
class="td_name-inner"
|
|
|
|
|
target="_blank"
|
|
|
|
|
title="Click here to preview '<?=$name?>'"
|
|
|
|
|
title="Click here to preview '<?=$name_trunc?>'"
|
|
|
|
|
rel="noopener noreferrer external nofollow"
|
|
|
|
|
itemprop="name"
|
|
|
|
|
><?=
|
|
|
|
|
$name
|
|
|
|
|
?></a>
|
|
|
|
|
<span class="room-labels-container">
|
|
|
|
|
<?php foreach ($room->get_room_tags() as $tag): if (CommunityTag::is_showcased_tag($tag->text)): ?>
|
|
|
|
|
<span><?php /* class="tags-container" */ ?>
|
|
|
|
|
<?php foreach ($room->get_showcased_room_tags() as $tag): ?>
|
|
|
|
|
<span
|
|
|
|
|
class="room-label room-label-view-main <?=$tag->get_tag_classname()?> badge"
|
|
|
|
|
class="tag tag-view-main <?=$tag->get_tag_classname()?> badge"
|
|
|
|
|
title="<?=$tag->get_description_sanitized()?>"
|
|
|
|
|
><?=
|
|
|
|
|
truncate($tag->get_text_sanitized(), 16)
|
|
|
|
|
?></span>
|
|
|
|
|
<?php endif; endforeach; ?>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
<!--noindex--><td
|
|
|
|
|
class="td_description tbl_communities__td noindex robots-noindex robots-nocontent"
|
|
|
|
|
title="Description for '<?=$name?>'"
|
|
|
|
|
class="td_description tbl_cell noindex robots-noindex robots-nocontent"
|
|
|
|
|
title="Description for '<?=$name_trunc?>'"
|
|
|
|
|
itemprop="description"
|
|
|
|
|
><?=$desc?></td><!--/noindex-->
|
|
|
|
|
<td
|
|
|
|
|
class="td_users tbl_communities__td"
|
|
|
|
|
title="'<?=$name?>' has had <?=$users?> active users in the last <?=$users_cutoff?>."
|
|
|
|
|
class="td_users tbl_cell"
|
|
|
|
|
title="'<?=$name_trunc?>' has had <?=$users?> active users in the last <?=$users_cutoff?>."
|
|
|
|
|
><?=$users?></td>
|
|
|
|
|
<td class="td_preview tbl_communities__td">
|
|
|
|
|
<td class="td_preview tbl_cell">
|
|
|
|
|
<a
|
|
|
|
|
href="<?=$preview_link?>"
|
|
|
|
|
class="protocol-indicator__parent"
|
|
|
|
|
title="Click here to preview '<?=$name?>'"
|
|
|
|
|
title="Click here to preview '<?=$name_trunc?>'"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer external nofollow"
|
|
|
|
|
>
|
|
|
|
|
<span class="protocol-indicator"></span>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="td_qr_code tbl_communities__td">
|
|
|
|
|
<td class="td_qr_code tbl_cell">
|
|
|
|
|
<a
|
|
|
|
|
class="qr-code-button"
|
|
|
|
|
href="<?=room_qr_code($room)?>"
|
|
|
|
|
target="_blank"
|
|
|
|
|
>
|
|
|
|
|
<img
|
|
|
|
|
<div
|
|
|
|
|
class="qr-code-icon"
|
|
|
|
|
width="36"
|
|
|
|
|
height="41"
|
|
|
|
|
src="qrcode-solid.svg"
|
|
|
|
|
alt="QR code pictogram linking to '<?=$name?>' Community QR code"
|
|
|
|
|
title="Click here to view the details for '<?=$name?>'"
|
|
|
|
|
>
|
|
|
|
|
title="Click here to view details for '<?=$name_trunc?>'"
|
|
|
|
|
></div>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="td_server_icon tbl_communities__td"
|
|
|
|
|
<td class="td_server_icon tbl_cell"
|
|
|
|
|
title="Host: <?=$hostname?>"
|
|
|
|
|
item="image"
|
|
|
|
|
>
|
|
|
|
|
<?php if (empty($server_icon)): ?>
|
|
|
|
|
<div class="td_server_icon-circle" style="background-color: <?=$icon_color?>">
|
|
|
|
@ -167,16 +162,16 @@
|
|
|
|
|
<div class="td_server_icon-circle" style="background-image: url('<?=$server_icon?>')"></div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="td_join_url tbl_communities__td">
|
|
|
|
|
<div class="join_url_container" data-url="<?=$join_link?>">
|
|
|
|
|
<td class="td_join_url tbl_cell">
|
|
|
|
|
<div class="join_url_container">
|
|
|
|
|
<span class="join_url show-from-w5"
|
|
|
|
|
><?=truncate($join_link, 32)?></span>
|
|
|
|
|
<a
|
|
|
|
|
class="noscript"
|
|
|
|
|
title="Right click and copy this link to join '<?=$name?>'."
|
|
|
|
|
href="<?=$join_link?>"
|
|
|
|
|
title="Right click and copy this link to join '<?=$name_trunc?>'."
|
|
|
|
|
rel="external nofollow"
|
|
|
|
|
>Copy this<span class="hidden">link to join '<?=$name?>'.</span></a>
|
|
|
|
|
>Copy this<span class="hidden">link to join '<?=$name_trunc?>'.</span></a>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|