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

18 lines
387 B
PHP
Raw Permalink Normal View History

2022-12-17 19:46:29 +01:00
<?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" );
2023-11-20 13:10:56 +01:00
echo "<div class='toast bg-soft c-" . $term_meta['niveau'] . "'>";
2022-12-17 19:46:29 +01:00
echo $flag->description;
echo "</div>";
}
}
} ?>