mirror of
https://github.com/Quackster/Havana.git
synced 2025-07-02 04:37:47 +00:00
69 lines
3 KiB
Smarty
69 lines
3 KiB
Smarty
{% set groupsList = sticker.getOwnerGroups() %}
|
|
|
|
<div class="movable widget GroupsWidget" id="widget-{{ sticker.getId() }}" style="left: {{ sticker.getX() }}px; top: {{ sticker.getY() }}px; z-index: {{ sticker.getZ() }}">
|
|
<div class="w_skin_{{ sticker.getSkin() }}">
|
|
<div class="widget-corner" id="widget-{{ sticker.getId() }}-handle">
|
|
<div class="widget-headline"><h3>
|
|
{% if editMode %}
|
|
<img src="{{ site.staticContentPath }}/web-gallery/images/myhabbo/icon_edit.gif" width="19" height="18" class="edit-button" id="widget-{{ sticker.getId() }}-edit" />
|
|
<script language="JavaScript" type="text/javascript">
|
|
Event.observe("widget-{{ sticker.getId() }}-edit", "click", function(e) { openEditMenu(e, {{ sticker.getId() }}, "widget", "widget-{{ sticker.getId() }}-edit"); }, false);
|
|
</script>
|
|
{% endif %}
|
|
<span class="header-left"> </span><span class="header-middle">My Groups ({{ groupsList|length }})</span><span class="header-right"> </span></h3>
|
|
</div>
|
|
</div>
|
|
<div class="widget-body">
|
|
<div class="widget-content">
|
|
|
|
{% if groupsList|length == 0 %}
|
|
<div class="groups-list-none">
|
|
You are not a member of any Groups</div>
|
|
{% else %}
|
|
<div class="groups-list-container">
|
|
<ul class="groups-list">
|
|
|
|
{% for group in groupsList %}
|
|
<li title="{{ group.getName() }}" id="groups-list-{{ sticker.getId() }}-{{ group.getId() }}">
|
|
<div class="groups-list-icon"><a href="{{ group.generateClickLink() }}"><img src="{{ site.sitePath }}/habbo-imaging/badge/{{ group.getBadge() }}.gif"/></a></div>
|
|
<div class="groups-list-open"></div>
|
|
<h4>
|
|
{% autoescape 'html' %}
|
|
<a href="{{ group.generateClickLink() }}">{{ group.getName() }}</a>
|
|
</h4>
|
|
<p>
|
|
Group created:<br />
|
|
<b>{{ group.getCreatedDate() }}</b>
|
|
{% set member = group.getMember(user.id) %}
|
|
|
|
{% if member.isFavourite(group.id) %}
|
|
<img src="{{ site.staticContentPath }}/web-gallery/images/groups/favourite_group_icon.gif" width="15" height="15" class="groups-list-icon" alt="Favorite" title="Favorite" />
|
|
{% endif %}
|
|
{% if member.getMemberRank().getRankId() == 3 %}
|
|
<img src="{{ site.staticContentPath }}/web-gallery/images/groups/owner_icon.gif" width="15" height="15" class="groups-list-icon" alt="Owner" title="Owner" />
|
|
{% endif %}
|
|
{% if member.getMemberRank().getRankId() == 2 %}
|
|
<img src="{{ site.staticContentPath }}/web-gallery/images/groups/administrator_icon.gif" width="15" height="15" class="groups-list-icon" alt="Admin" title="Admin" />
|
|
{% endif %}
|
|
</p>
|
|
<div class="clear"></div>
|
|
{% endautoescape %}
|
|
</li>
|
|
{% endfor %}
|
|
|
|
</ul></div>
|
|
{% endif %}
|
|
<div class="groups-list-loading"><div><a href="#" class="groups-loading-close"></a></div><div class="clear"></div><p style="text-align:center"><img src="{{ site.staticContentPath }}/web-gallery/images/progress_bubbles.gif" alt="" width="29" height="6" /></p></div>
|
|
<div class="groups-list-info"></div>
|
|
|
|
<div class="clear"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
new GroupsWidget('{{ sticker.getUserId }}', '{{ sticker.getId() }}');
|
|
|
|
</script>
|