<{if !empty($chess_gamedata.offer_draw)}> <{/if}>
<{if $chess_gamedata.fen_active_color eq 'w'}> <{$smarty.const._MD_CHESS_LABEL_WHITE}> (<{$chess_white_user|replace:' ':' '}>) <{$smarty.const._MD_CHESS_LABEL_TO_MOVE}> <{else}> <{$smarty.const._MD_CHESS_LABEL_BLACK}> (<{$chess_black_user|replace:' ':' '}>) <{$smarty.const._MD_CHESS_LABEL_TO_MOVE}> <{/if}>
<{if $chess_gamedata.offer_draw eq 'w'}> <{$smarty.const._MD_CHESS_WHITE_OFFERED_DRAW}> <{else}> <{$smarty.const._MD_CHESS_BLACK_OFFERED_DRAW}> <{/if}>
<{if $chess_move_result}>
<{$chess_move_result}>
<{/if}> <{if $chess_draw_claim_error_text}>
<{$chess_draw_claim_error_text}>
<{/if}> <{* if user is a player, provide player controls *}> <{if $chess_user_color}>
<{/if}> <{* provide move-entry field only if the current user can move *}> <{if $can_move}> <{if $chess_gamedata.start_date}> <{/if}> <{/if}> <{* if user is a player, provide player controls *}> <{if $chess_user_color}> <{* if no draw offer pending, provide offer-draw button *}> <{if not $selfplay and empty($chess_gamedata.offer_draw)}> <{* if opponent offered draw, provide accept-draw and reject-draw buttons *}> <{elseif not $selfplay and !empty($chess_gamedata.offer_draw) and $chess_gamedata.offer_draw ne $chess_user_color}> <{/if}> <{* if self-play, provide restart button *}> <{if $selfplay}> <{/if}> <{* if self-play, or if deletion of games is allowed, provide delete button *}> <{if $selfplay or $chess_allow_delete}> <{/if}> <{/if}> <{* if user is a player, provide player controls *}> <{if $chess_user_color}>
<{$smarty.const._MD_CHESS_MOVE_ENTRY}>
<{$smarty.const._MD_CHESS_NORMAL_MOVE}>
<{$smarty.const._MD_CHESS_CLAIM_DRAW_50}>
<{$smarty.const._MD_CHESS_CLAIM_DRAW_3}>
<{$smarty.const._MD_CHESS_RESIGN}>
<{$smarty.const._MD_CHESS_OFFER_DRAW}>
<{$smarty.const._MD_CHESS_ACCEPT_DRAW}>
<{$smarty.const._MD_CHESS_REJECT_DRAW}>
<{$smarty.const._MD_CHESS_RESTART}>
<{$smarty.const._MD_CHESS_DELETE}>
<{$smarty.const._MD_CHESS_WANT_ARBITRATION}>
<{* The confirm checkbox is only applicable if Javascript is enabled. *}>
<{/if}> <{* security token *}> <{$chess_xoops_request_token}>