From 4dfaa90630d49ad7c61875f6afe1f8ef66730c42 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 4 Jan 2021 11:38:44 +0100 Subject: [PATCH] feat(single): add a way to hide main title --- components/article.php | 72 ++++++++++++++++++++++++++++++++++++++++++ single-notitle.php | 14 ++++++++ single.php | 71 ++--------------------------------------- 3 files changed, 88 insertions(+), 69 deletions(-) create mode 100644 components/article.php create mode 100644 single-notitle.php diff --git a/components/article.php b/components/article.php new file mode 100644 index 0000000..6c263e2 --- /dev/null +++ b/components/article.php @@ -0,0 +1,72 @@ +
+ +
+ + + +ID, 'flag'); +if ($flags) { + foreach( $flags as $flag ) { + $term_meta = get_option( "taxonomy_term_$flag->term_id" ); + echo "
"; + echo $flag->description; + echo "
"; + } +} ?> + + +
+ +

+ + +
+ +
+
+ +
+
+ + +
+ $value ) { + echo "
" . $value . "
"; + } + + } + ?> + + +
+ + + + + diff --git a/single-notitle.php b/single-notitle.php new file mode 100644 index 0000000..400c929 --- /dev/null +++ b/single-notitle.php @@ -0,0 +1,14 @@ + +
+ + + +
+ + diff --git a/single.php b/single.php index 18164aa..137efd4 100644 --- a/single.php +++ b/single.php @@ -1,76 +1,9 @@
- + + - - - ID, 'flag'); - if ($flags) { - foreach( $flags as $flag ) { - $term_meta = get_option( "taxonomy_term_$flag->term_id" ); - echo "
"; - echo $flag->description; - echo "
"; - } - } ?> - - -
-

- -
- -
-
- -
-
- - -
- $value ) { - echo "
" . $value . "
"; - } - - } - ?> - - -
- - - - -