This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
qdouze2-wordpress-theme/components/globalflag.php
2023-05-21 16:12:00 +02:00

17 lines
385 B
PHP

<?php $flags = get_terms(
array(
'taxonomy' => 'flag',
'hide_empty' => false,
)
);
if ($flags) {
foreach( $flags as $flag ) {
if ($flag->slug == "global") {
$term_meta = get_option( "taxonomy_term_$flag->term_id" );
echo "<div class='toast bg-soft-" . $term_meta['niveau'] . "'>";
echo $flag->description;
echo "</div>";
}
}
} ?>