Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
53 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?php | ||
|
||
echo £('div.dm_chess_not_created.clearfix', | ||
echo _tag('div.dm_chess_not_created.clearfix', | ||
|
||
£('noscript', __('Your browser does not support JavaScript.')). | ||
_tag('noscript', __('Your browser does not support JavaScript.')). | ||
|
||
£('div.yescript', __('Creating a new game...')) | ||
_tag('div.yescript', __('Creating a new game...')) | ||
|
||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
<?php | ||
|
||
echo £('div.dm_chess_table', | ||
echo _tag('div.dm_chess_table', | ||
|
||
£('div.dm_chess_oponnent', $player->Opponent->isAi | ||
_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') | ||
). | ||
|
||
£('div.dm_chess_separator'). | ||
_tag('div.dm_chess_separator'). | ||
|
||
£('div.dm_chess_current_player', | ||
£('div.player.white', | ||
£('div.dm_chess_piece.king.white', ''). | ||
£('p', __($player->isWhite() ? 'Your turn' : 'Waiting for opponent')) | ||
_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')) | ||
). | ||
£('div.player.black', | ||
£('div.dm_chess_piece.king.black', ''). | ||
£('p', __($player->isBlack() ? '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')) | ||
) | ||
). | ||
|
||
£('div.dm_chess_separator'). | ||
_tag('div.dm_chess_separator'). | ||
|
||
£('div.dm_chess_permalink', | ||
_tag('div.dm_chess_permalink', | ||
__('To continue later, use this url:'). | ||
£link($sf_request->getUri())->text($sf_request->getUri())->set('mt10') | ||
_link($sf_request->getUri())->text($sf_request->getUri())->set('mt10') | ||
). | ||
|
||
£('div.dm_chess_give_up', | ||
£link('+/dmChessGame/resign')->param('player', $player->code)->text(__('Resign'))->title(__('Resign this game')) | ||
_tag('div.dm_chess_give_up', | ||
_link('+/dmChessGame/resign')->param('player', $player->code)->text(__('Resign'))->title(__('Resign this game')) | ||
) | ||
|
||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<?php | ||
|
||
echo £('div.dm_chess_table.finished', | ||
echo _tag('div.dm_chess_table.finished', | ||
|
||
£('p.game_over', __('Game over')). | ||
_tag('p.game_over', __('Game over')). | ||
|
||
£('div.dm_chess_separator'). | ||
_tag('div.dm_chess_separator'). | ||
|
||
(($winner = $player->Game->Winner) | ||
? | ||
£('div.dm_chess_current_player', | ||
£('div.player.clearfix', | ||
£('div.dm_chess_piece.king.fleft.'.$winner->color, ''). | ||
£('p', __('%1% is victorious', array('%1%' => $winner->color))) | ||
_tag('div.dm_chess_current_player', | ||
_tag('div.player.clearfix', | ||
_tag('div.dm_chess_piece.king.fleft.'.$winner->color, ''). | ||
_tag('p', __('%1% is victorious', array('%1%' => $winner->color))) | ||
) | ||
) | ||
: ___('Draw') | ||
). | ||
|
||
£('div.dm_chess_separator'). | ||
_tag('div.dm_chess_separator'). | ||
|
||
£link($dm_page)->text(__('Start a new game'))->currentSpan(false) | ||
_link($dm_page)->text(__('Start a new game'))->currentSpan(false) | ||
|
||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<?php | ||
|
||
echo £('div.dm_chess_table', | ||
echo _tag('div.dm_chess_table', | ||
|
||
__('To invite someone to play, give this url:'). | ||
|
||
£('div.dm_chess_join_url', | ||
£link($dm_page)->param('g', $player->Game->code)->getAbsoluteHref() | ||
_tag('div.dm_chess_join_url', | ||
_link($dm_page)->param('g', $player->Game->code)->getAbsoluteHref() | ||
). | ||
|
||
£('div.dm_chess_separator'). | ||
_tag('div.dm_chess_separator'). | ||
|
||
£('div.dm_chess_join_ai', | ||
£link('+/dmChessGame/inviteAi')->param('player', $player->code)->text(__('Or challenge the Artificial Intelligence')) | ||
_tag('div.dm_chess_join_ai', | ||
_link('+/dmChessGame/inviteAi')->param('player', $player->code)->text(__('Or challenge the Artificial Intelligence')) | ||
) | ||
|
||
); |