-
Notifications
You must be signed in to change notification settings - Fork 6
/
_table.php
35 lines (27 loc) · 1.01 KB
/
_table.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
echo _tag('div.dm_chess_table',
_tag('div.dm_chess_oponnent', $player->Opponent->isAi
? __('Opponent is Crafty A.I.').' '.
$player->Opponent->getLevelSelect()->render('dm_chess_level_select', $player->Opponent->aiLevel)
: __('Human opponent')
).
_tag('div.dm_chess_separator').
_tag('div.dm_chess_current_player',
_tag('div.player.white',
_tag('div.dm_chess_piece.king.white', '').
_tag('p', __($player->isWhite() ? 'Your turn' : 'Waiting for opponent'))
).
_tag('div.player.black',
_tag('div.dm_chess_piece.king.black', '').
_tag('p', __($player->isBlack() ? 'Your turn' : 'Waiting for opponent'))
)
).
_tag('div.dm_chess_separator').
_tag('div.dm_chess_permalink',
__('To continue later, use this url:').
_link($sf_request->getUri())->text($sf_request->getUri())->set('mt10')
).
_tag('div.dm_chess_give_up',
_link('+/dmChessGame/resign')->param('player', $player->code)->text(__('Resign'))->title(__('Resign this game'))
)
);