diff --git a/system/pages/team.php b/system/pages/team.php index 202ee1bb..16b9beb4 100644 --- a/system/pages/team.php +++ b/system/pages/team.php @@ -56,11 +56,11 @@ foreach($groupList as $id => $group) 'group_name' => $group->getName(), 'player' => $member, 'outfit' => $config['team_display_outfit'] ? $config['outfit_images_url'] . '?id=' . $member->getLookType() . ($outfit_addons ? '&addons=' . $member->getLookAddons() : '') . '&head=' . $member->getLookHead() . '&body=' . $member->getLookBody() . '&legs=' . $member->getLookLegs() . '&feet=' . $member->getLookFeet() : null, - 'status' => $member->isOnline(), + 'status' => $config['team_display_status'] ? $member->isOnline() : null, 'link' => getPlayerLink($member->getName()), - 'flag_image' => getFlagImage($member->getAccount()->getCountry()), - 'world_name' => getWorldName($member->getWorldId()), - 'last_login' => $lastLogin + 'flag_image' => $config['account_country'] ? getFlagImage($member->getAccount()->getCountry()) : null, + 'world_name' => ($config['multiworld'] || $config['team_display_world']) ? getWorldName($member->getWorldId()) : null, + 'last_login' => $config['team_display_lastlogin'] ? $lastLogin : null ); } diff --git a/system/templates/team.html.twig b/system/templates/team.html.twig index b3353644..93fdbf19 100644 --- a/system/templates/team.html.twig +++ b/system/templates/team.html.twig @@ -52,89 +52,17 @@ {% for group in groupmember|reverse %} - {% for member in group.members|reverse %} - - {{ group.group_name }} - - {% if config.team_display_outfit %} - - player outfit - - {% endif %} - - - {% if config.account_country %} - {{ member.flag_image|raw }} - {% endif %} - {{ member.link|raw }} - - - {% if config.team_display_status %} - - {% if member.status %} - Online - {% else %} - Offline - {% endif %} - - {% endif %} - - {% if (config.multiworld or config.team_display_world) %} - - {{ member.world_name }} - - {% endif %} - - {% if config.team_display_lastlogin %} - - {{ member.last_login }} - - {% endif %} - - {% endfor %} - {% endfor %} - - {% elseif config.team_style == 2 %} - {% for group in groupmember|reverse %} -

{{ group.group_name }}

- - + {% if group.members is not empty %} + {% for member in group.members|reverse %} - {% if config.team_display_outfit %} - - {% endif %} + - - - {% if config.team_display_status %} - - {% endif %} - - {% if (config.multiworld or config.team_display_world) %} - - {% endif %} - - {% if config.team_display_lastlogin %} - - {% endif %} - - - {% for member in group.members %} - {% if config.team_display_outfit %} {% endif %} - + - {% endif %} + {% endif %} {% endfor %} -
Outfit{{ group.group_name }} - Name - - Status - - World - - Last login -
player outfit {% if config.account_country %} {{ member.flag_image|raw }} @@ -162,10 +90,86 @@ {{ member.last_login }}
+ {% endif %} + {% endfor %} + + {% elseif config.team_style == 2 %} + {% for group in groupmember|reverse %} + {% if group.members is not empty %} +

{{ group.group_name }}

+ + + + {% if config.team_display_outfit %} + + {% endif %} + + + + {% if config.team_display_status %} + + {% endif %} + + {% if (config.multiworld or config.team_display_world) %} + + {% endif %} + + {% if config.team_display_lastlogin %} + + {% endif %} + + + {% for member in group.members %} + + {% if config.team_display_outfit %} + + {% endif %} + + + + {% if config.team_display_status %} + + {% endif %} + + {% if (config.multiworld or config.team_display_world) %} + + {% endif %} + + {% if config.team_display_lastlogin %} + + {% endif %} + + {% endfor %} +
Outfit + Name + + Status + + World + + Last login +
+ player outfit + + {% if config.account_country %} + {{ member.flag_image|raw }} + {% endif %} + {{ member.link|raw }} + + {% if member.status %} + Online + {% else %} + Offline + {% endif %} + + {{ member.world_name }} + + {{ member.last_login }} +
+ {% endif %} {% endfor %} {% endif %}