1
Fork 0
mirror of https://github.com/Quackster/Havana.git synced 2025-07-02 04:37:47 +00:00
Havana/tools/www-tpl/default-en/habblet/hot_groups.tpl
2023-01-14 15:24:44 +10:00

45 lines
1.3 KiB
Smarty

<div id="groups-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list two-cols clearfix">
{% set position = "right" %}
{% set i = 0 %}
{% set lefts = 0 %}
{% set rights = 0 %}
{% for group in groups %}
{% if i % 2 == 0 %}
{% set position = "right" %}
{% set rights = rights + 1 %}
{% else %}
{% set position = "left" %}
{% set lefts = lefts + 1 %}
{% endif %}
{% if lefts % 2 == 0 %}
{% set status = "odd" %}
{% else %}
{% set status = "even" %}
{% endif %}
<li class="{{ status }} {{ position }}" style="background-image: url({{ site.sitePath }}/habbo-imaging/badge/{{ group.badge }}.gif)">
<a class="item" href="{{ group.generateClickLink() }}">{% autoescape 'html' %}{{ group.name }}{% endautoescape %}</a>
</li>
{% set i = i + 1 %}
{% endfor %}
</ul>
<div class="habblet-button-row clearfix"><a class="new-button" id="purchase-group-button" href="#"><b>Create/buy a Group</b><i></i></a>
</div>
</div>
<div id="groups-habblet-group-purchase-button" class="habblet-list-container"></div>
<script type="text/javascript">
$("purchase-group-button").observe("click", function(e) { Event.stop(e); GroupPurchase.open(); });
</script>
</div>