aboutsummaryrefslogtreecommitdiff
path: root/srcs/wordpress/wp-content/themes/twentynineteen/template-parts/post
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/wordpress/wp-content/themes/twentynineteen/template-parts/post')
-rw-r--r--srcs/wordpress/wp-content/themes/twentynineteen/template-parts/post/author-bio.php30
-rw-r--r--srcs/wordpress/wp-content/themes/twentynineteen/template-parts/post/discussion-meta.php32
2 files changed, 0 insertions, 62 deletions
diff --git a/srcs/wordpress/wp-content/themes/twentynineteen/template-parts/post/author-bio.php b/srcs/wordpress/wp-content/themes/twentynineteen/template-parts/post/author-bio.php
deleted file mode 100644
index 4ed9bf3..0000000
--- a/srcs/wordpress/wp-content/themes/twentynineteen/template-parts/post/author-bio.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-/**
- * The template for displaying Author info
- *
- * @package WordPress
- * @subpackage Twenty_Nineteen
- * @since 1.0.0
- */
-
-if ( (bool) get_the_author_meta( 'description' ) ) : ?>
-<div class="author-bio">
- <h2 class="author-title">
- <span class="author-heading">
- <?php
- printf(
- /* translators: %s: Post author. */
- __( 'Published by %s', 'twentynineteen' ),
- esc_html( get_the_author() )
- );
- ?>
- </span>
- </h2>
- <p class="author-description">
- <?php the_author_meta( 'description' ); ?>
- <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
- <?php _e( 'View more posts', 'twentynineteen' ); ?>
- </a>
- </p><!-- .author-description -->
-</div><!-- .author-bio -->
-<?php endif; ?>
diff --git a/srcs/wordpress/wp-content/themes/twentynineteen/template-parts/post/discussion-meta.php b/srcs/wordpress/wp-content/themes/twentynineteen/template-parts/post/discussion-meta.php
deleted file mode 100644
index e54b5b7..0000000
--- a/srcs/wordpress/wp-content/themes/twentynineteen/template-parts/post/discussion-meta.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-/**
- * The template for displaying Current Discussion on posts
- *
- * @package WordPress
- * @subpackage Twenty_Nineteen
- * @since 1.0.0
- */
-
-/* Get data from current discussion on post. */
-$discussion = twentynineteen_get_discussion_data();
-$has_responses = $discussion->responses > 0;
-
-if ( $has_responses ) {
- /* translators: %d: Number of comments. */
- $meta_label = sprintf( _n( '%d Comment', '%d Comments', $discussion->responses, 'twentynineteen' ), $discussion->responses );
-} else {
- $meta_label = __( 'No comments', 'twentynineteen' );
-}
-?>
-
-<div class="discussion-meta">
- <?php
- if ( $has_responses ) {
- twentynineteen_discussion_avatars_list( $discussion->authors );
- }
- ?>
- <p class="discussion-meta-info">
- <?php echo twentynineteen_get_icon_svg( 'comment', 24 ); ?>
- <span><?php echo esc_html( $meta_label ); ?></span>
- </p>
-</div><!-- .discussion-meta -->