1
Fork 0
mirror of https://github.com/Quackster/Havana.git synced 2025-07-03 21:27:46 +00:00
Havana/tools/www-tpl/default-en/quickmenu/rooms.tpl

19 lines
818 B
Smarty
Raw Normal View History

2022-09-03 15:05:14 +10:00
<ul id="quickmenu-rooms">
{% if rooms|length > 0 %}
{% set num = 0 %}
{% for room in rooms %}
{% if num % 2 == 0 %}
<li class="even">
{% else %}
<li class="odd">
{% endif %}
<a href="{{ site.sitePath }}/client?forwardId=2&amp;roomId={{ room.getData().getId() }}" onclick="roomForward(this, '{{ room.getData().getId() }}', 'private'); return false;" target="client" id="room-navigation-link_{{ room.getData().getId() }}">{% autoescape 'html' %}{{ room.getData().getName() }}{% endautoescape %}</a></li>
{% set num = num + 1 %}
{% endfor %}
{% else %}
<li class="odd">You don't have any rooms yet</li>
{% endif %}
</ul>
<p class="create-room"><a href="{{ site.sitePath }}/client?shortcut=roomomatic" onclick="HabboClient.openShortcut(this, 'roomomatic'); return false;" target="client">Create a new room</a></p>