Пример #1
0
} elseif ($race['id'] == RACE_HUMAN) {
    $prevRaceId = RACE_WORGEN;
}
if (!isset($prevRaceId)) {
    $prevRaceId = $race['id'] - 1;
}
if (!isset($nextRaceId)) {
    $nextRaceId = $race['id'] + 1;
}
?>
<a class="ui-button next-race button1-next" href="<?php 
echo WoW_Utils::GetRaceKeyById($nextRaceId);
?>
"><span><span><?php 
echo sprintf(WoW_Locale::GetString('template_game_race_next'), WoW_Locale::GetString('character_race_' . $nextRaceId));
?>
</span></span></a>
<a class="ui-button previous-race button1-previous" href="<?php 
echo WoW_Utils::GetRaceKeyById($prevRaceId);
?>
"><span><span><?php 
echo sprintf(WoW_Locale::GetString('template_game_race_prev'), WoW_Locale::GetString('character_race_' . $prevRaceId));
?>
</span></span></a>


			</div>
        </div>
	</div>
</div>