<?php
$allRevuesCount = wp_count_posts('revues')->publish;
$allArticlesCount = wp_count_posts('articles')->publish;
$allEtiquettesCount = wp_count_terms('etiquettes', ['hide_empty' => true]);
?>

<ul class="statistics-datas content-section">
	<li class="statistics-datas__item">
		<div class="statistics-datas__item-icon">
			<img src="<?php echo get_template_directory_uri(); ?>/resources/img/icons/icon-circle.svg" alt="Revues">
		</div>
		<span class="statistics-datas__item-number"><?php echo $allRevuesCount; ?></span>
		<span class="statistics-datas__item-label">Revues</span>
	</li>
	<li class="statistics-datas__item">
		<div class="statistics-datas__item-icon">
			<img src="<?php echo get_template_directory_uri(); ?>/resources/img/icons/icon-rectangle-rotated.svg" alt="Revues">
		</div>
		<span class="statistics-datas__item-number"><?php echo $allArticlesCount; ?></span>
		<span class="statistics-datas__item-label">Articles</span>
	</li>
	<li class="statistics-datas__item">
		<div class="statistics-datas__item-icon">
			<img src="<?php echo get_template_directory_uri(); ?>/resources/img/icons/icon-losange.svg" alt="Revues">
		</div>
		<span class="statistics-datas__item-number"><?php echo $allEtiquettesCount; ?></span>
		<span class="statistics-datas__item-label">Thématiques</span>
	</li>
</ul>