<div class="rankings blockHome" style="height: 580px;">
	<!--Open sub-block-->
	<div class="h2-title h2-title-table flex-s-c"><span>Guilds</span></div>
	<div class="table tabTable-block active" id="players">
		<div class="tableBlock">
			<div class="tableBlock-title">
				<div class="tableBlock-title_player" style="color: white">Guild</div>
				<div class="tableBlock-title_level" style="color: white">Score</div>
				<div class="tableBlock-title_score" style="color: white">Mark</div>
			</div>
			<div id="top_players">
				<?php
				$topGuilds = LoadCacheData('rankings_guilds.cache');
				if (is_array($topGuilds)) {
					foreach ($topGuilds as $key => $row) {
						if ($key == 0) continue;
						if ($key >= 11) continue;

						echo '<div class="tableBlock-content">
								<div class="tableBlock-conten_number" style="color: #696868;">' . $key . '</div>
								<div class="tableBlock-conten_name">' . guildProfile($row[0]) . '</div>
								<div class="tableBlock-conten_lvl">' . number_format($row[2]) . '</div>
								<div class="tableBlock-conten_scr">' . returnGuildLogo($row[3], 22) . '</div>
							</div>';
					}
				}
				?>
			</div>
			<div class="all-button"><a href="<?php echo __BASE_URL__; ?>rankings/guilds" class="button buttonsub">Ver Todos</a></div>
		</div>
	</div>
</div>