<?php

/*
 * @copyright   2014 Mautic Contributors. All rights reserved
 * @author      Mautic
 *
 * @link        http://mautic.org
 *
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
?>
<ul class="twitter-tags tag-cloud">
    <?php foreach ($activity as $tag => $t): ?>
        <?php
        if ($t['count'] / 10 < 1):
            $fontSize = ($t['count'] / 10) + 1;
        elseif ($t['count'] / 10 > 2):
            $fontSize = 2;
        else:
            $fontSize = $t['count'] / 10;
        endif; ?>

    <li style="font-size: <?php echo $fontSize; ?>em"><a href="<?php echo $t['url']; ?>" target="_new"><?php echo $tag; ?></a></li>
    <?php endforeach; ?>
</ul>