blob: bbca6d0d8c0462007f906abb4ead0dc3559310e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
/**
* @var array<string, int> $hashtags
*/
?>
<? if (count($hashtags) > 0) : ?>
<div class="indented new_section">
<ol class="tagcloud">
<? $highest_ranking = max($hashtags); ?>
<? foreach ($hashtags as $tag => $count) : ?>
<?php $size = floor($count / $highest_ranking * 10) > 0 ? floor($count / $highest_ranking * 10) : 1 ?>
<li class="size<?= (int) $size ?>">
<a href="<?= URLHelper::getLink("dispatch.php/blubber", ['search' => "#".$tag]) ?>"
data-tag="<?= htmlReady($tag) ?>"
class="blubber_hashtag">
<?= htmlReady("#".$tag) ?>
</a>
</li>
<? endforeach ?>
</ol>
</div>
<? endif ?>
|