-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
Move team page to twig template
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
<div class="TableContainer"> | ||
<table class="Table1" cellpadding="0" cellspacing="0"> | ||
<div class="CaptionContainer"> | ||
<div class="CaptionInnerContainer"> | ||
<span class="CaptionEdgeLeftTop" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);"></span> | ||
<span class="CaptionEdgeRightTop" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);"></span> | ||
<span class="CaptionBorderTop" style="background-image:url({{ template_path }}/images/content/table-headline-border.gif);"></span> | ||
<span class="CaptionVerticalLeft" style="background-image:url({{ template_path }}/images/content/box-frame-vertical.gif);"></span> | ||
<div class="Text" >Support in game</div> | ||
<span class="CaptionVerticalRight" style="background-image:url({{ template_path }}/images/content/box-frame-vertical.gif);"></span> | ||
<span class="CaptionBorderBottom" style="background-image:url({{ template_path }}/images/content/table-headline-border.gif);"></span> | ||
<span class="CaptionEdgeLeftBottom" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);"></span> | ||
<span class="CaptionEdgeRightBottom" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);"></span> | ||
</div> | ||
</div> | ||
|
||
<tr> | ||
<td> | ||
<div class="InnerTableContainer"> | ||
<table cellspacing="1" cellpadding="4" border="0" width="100%"> | ||
{% if config.team_style == 1 %} | ||
<tr> | ||
<td width="10%"> | ||
<span><b>Group</b></span> | ||
</td> | ||
|
||
<td width="40%"> | ||
<span><b>Name</b></span> | ||
</td> | ||
|
||
{% if config.team_display_status %} | ||
<td width="10%"> | ||
<span><b>Status</b></span> | ||
</td> | ||
{% endif %} | ||
|
||
{% if (config.multiworld or config.team_display_world) %} | ||
<td width="20%"> | ||
<span><b>World</b></span> | ||
</td> | ||
{% endif %} | ||
|
||
{% if config.team_display_lastlogin %} | ||
<td width="20%"> | ||
<span><b>Last login</b></span> | ||
</td> | ||
{% endif %} | ||
</tr> | ||
|
||
{% for group in groupmember|reverse %} | ||
{% for member in group.members|reverse %} | ||
<tr> | ||
<td>{{ group.group_name }}</td> | ||
|
||
<td> | ||
{% if config.account_country %} | ||
{{ member.flag_image|raw }} | ||
{% endif %} | ||
{{ member.link|raw }} | ||
</td> | ||
|
||
{% if config.team_display_status %} | ||
<td> | ||
{% if member.status %} | ||
<span style="color: green"><b>Online</b></span> | ||
{% else %} | ||
<span style="color: red"><b>Offline</b></span> | ||
{% endif %} | ||
</td> | ||
{% endif %} | ||
|
||
{% if (config.multiworld or config.team_display_world) %} | ||
<td> | ||
<span><b>{{ member.world_name }}</b></span> | ||
</td> | ||
{% endif %} | ||
|
||
{% if config.team_display_lastlogin %} | ||
<td> | ||
{{ member.last_login }} | ||
</td> | ||
{% endif %} | ||
</tr> | ||
{% endfor %} | ||
{% endfor %} | ||
|
||
{% elseif config.team_style == 2 %} | ||
{% for group in groupmember|reverse %} | ||
This comment has been minimized.
Sorry, something went wrong. |
||
<div style="text-align:center"><h2>{{ group.group_name }}</h2></div> | ||
|
||
<table cellspacing="1" cellpadding="4" border="0" width="100%"> | ||
<tr> | ||
<td width="40%"> | ||
<span><b>Name</b></span> | ||
</td> | ||
|
||
{% if config.team_display_status %} | ||
<td width="20%"> | ||
<span><b>Status</b></span> | ||
</td> | ||
{% endif %} | ||
|
||
{% if (config.multiworld or config.team_display_world) %} | ||
<td width="20%"> | ||
<span><b>World</b></span> | ||
</td> | ||
{% endif %} | ||
|
||
{% if config.team_display_lastlogin %} | ||
<td width="20%"> | ||
<span><b>Last login</b></span> | ||
</td> | ||
{% endif %} | ||
</tr> | ||
|
||
{% for member in group.members %} | ||
<tr> | ||
<td> | ||
{% if config.account_country %} | ||
{{ member.flag_image|raw }} | ||
{% endif %} | ||
{{ member.link|raw }} | ||
</td> | ||
|
||
{% if config.team_display_status %} | ||
<td> | ||
{% if member.status %} | ||
<span style="color: green"><b>Online</b></span> | ||
{% else %} | ||
<span style="color: red"><b>Offline</b></span> | ||
{% endif %} | ||
</td> | ||
{% endif %} | ||
|
||
{% if (config.multiworld or config.team_display_world) %} | ||
<td> | ||
<span><b>{{ member.world_name }}</b></span> | ||
</td> | ||
{% endif %} | ||
|
||
{% if config.team_display_lastlogin %} | ||
<td> | ||
{{ member.last_login }} | ||
</td> | ||
{% endif %} | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
This comment has been minimized.
Sorry, something went wrong. |
||
{% endfor %} | ||
{% endif %} | ||
</table> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> |
2 comments
on commit 3b96b21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fatal error: Uncaught E_OTS_NotLoaded in system/libs/pot/OTS_Player.php:2316 Stack trace: #0 system/pages/team.php(62): OTS_Player->getWorldId() #1 public_html/index.php(392): require('...') #2 {main} thrown in system/libs/pot/OTS_Player.php on line 2316
the checks to see if multiworld etc have been removed from the php.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this also breaks the tibiacom layout because there is an error with the table and div closes.
'world_name' => ($config['multiworld'] || $config['team_display_world'] ? getWorldName($member->getWorldId()) : ""),