From 840f111e7524ce44983c756d8200500726ca522a Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 17 Jan 2021 11:27:29 +0100 Subject: [PATCH] feat: add global flags --- components/globalflag.php | 17 +++++++++++++++++ home.php | 1 + 2 files changed, 18 insertions(+) create mode 100644 components/globalflag.php diff --git a/components/globalflag.php b/components/globalflag.php new file mode 100644 index 0000000..aedf851 --- /dev/null +++ b/components/globalflag.php @@ -0,0 +1,17 @@ + 'flag', + 'hide_empty' => false, + ) +); + +if ($flags) { + foreach( $flags as $flag ) { + if ($flag->slug == "global") { + $term_meta = get_option( "taxonomy_term_$flag->term_id" ); + echo "
"; + echo $flag->description; + echo "
"; + } + } +} ?> diff --git a/home.php b/home.php index 0781071..a7e565b 100644 --- a/home.php +++ b/home.php @@ -1,5 +1,6 @@
+