aboutsummaryrefslogtreecommitdiff
path: root/srcs/wordpress/wp-content/themes/twentysixteen/template-parts
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/wordpress/wp-content/themes/twentysixteen/template-parts')
-rw-r--r--srcs/wordpress/wp-content/themes/twentysixteen/template-parts/biography.php40
-rw-r--r--srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-none.php38
-rw-r--r--srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-page.php47
-rw-r--r--srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-search.php53
-rw-r--r--srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-single.php55
-rw-r--r--srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content.php61
6 files changed, 0 insertions, 294 deletions
diff --git a/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/biography.php b/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/biography.php
deleted file mode 100644
index 264adc5..0000000
--- a/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/biography.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/**
- * The template part for displaying an Author biography
- *
- * @package WordPress
- * @subpackage Twenty_Sixteen
- * @since Twenty Sixteen 1.0
- */
-?>
-
-<div class="author-info">
- <div class="author-avatar">
- <?php
- /**
- * Filter the Twenty Sixteen author bio avatar size.
- *
- * @since Twenty Sixteen 1.0
- *
- * @param int $size The avatar height and width size in pixels.
- */
- $author_bio_avatar_size = apply_filters( 'twentysixteen_author_bio_avatar_size', 42 );
-
- echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
- ?>
- </div><!-- .author-avatar -->
-
- <div class="author-description">
- <h2 class="author-title"><span class="author-heading"><?php _e( 'Author:', 'twentysixteen' ); ?></span> <?php echo get_the_author(); ?></h2>
-
- <p class="author-bio">
- <?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
- /* translators: %s: The post author display name. */
- printf( __( 'View all posts by %s', 'twentysixteen' ), get_the_author() );
- ?>
- </a>
- </p><!-- .author-bio -->
- </div><!-- .author-description -->
-</div><!-- .author-info -->
diff --git a/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-none.php b/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-none.php
deleted file mode 100644
index ad401cf..0000000
--- a/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-none.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-/**
- * The template part for displaying a message that posts cannot be found
- *
- * @package WordPress
- * @subpackage Twenty_Sixteen
- * @since Twenty Sixteen 1.0
- */
-?>
-
-<section class="no-results not-found">
- <header class="page-header">
- <h1 class="page-title"><?php _e( 'Nothing Found', 'twentysixteen' ); ?></h1>
- </header><!-- .page-header -->
-
- <div class="page-content">
- <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
-
- <p>
- <?php
- /* translators: %s: Post editor URL. */
- printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentysixteen' ), esc_url( admin_url( 'post-new.php' ) ) );
- ?>
- </p>
-
- <?php elseif ( is_search() ) : ?>
-
- <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentysixteen' ); ?></p>
- <?php get_search_form(); ?>
-
- <?php else : ?>
-
- <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentysixteen' ); ?></p>
- <?php get_search_form(); ?>
-
- <?php endif; ?>
- </div><!-- .page-content -->
-</section><!-- .no-results -->
diff --git a/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-page.php b/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-page.php
deleted file mode 100644
index 58af8e0..0000000
--- a/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-page.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-/**
- * The template used for displaying page content
- *
- * @package WordPress
- * @subpackage Twenty_Sixteen
- * @since Twenty Sixteen 1.0
- */
-?>
-
-<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <header class="entry-header">
- <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
- </header><!-- .entry-header -->
-
- <?php twentysixteen_post_thumbnail(); ?>
-
- <div class="entry-content">
- <?php
- the_content();
-
- wp_link_pages(
- array(
- 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
- 'after' => '</div>',
- 'link_before' => '<span>',
- 'link_after' => '</span>',
- 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
- 'separator' => '<span class="screen-reader-text">, </span>',
- )
- );
- ?>
- </div><!-- .entry-content -->
-
- <?php
- edit_post_link(
- sprintf(
- /* translators: %s: Post title. */
- __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
- get_the_title()
- ),
- '<footer class="entry-footer"><span class="edit-link">',
- '</span></footer><!-- .entry-footer -->'
- );
- ?>
-
-</article><!-- #post-<?php the_ID(); ?> -->
diff --git a/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-search.php b/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-search.php
deleted file mode 100644
index 6a912eb..0000000
--- a/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-search.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * The template part for displaying results in search pages
- *
- * @package WordPress
- * @subpackage Twenty_Sixteen
- * @since Twenty Sixteen 1.0
- */
-?>
-
-<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <header class="entry-header">
- <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
- </header><!-- .entry-header -->
-
- <?php twentysixteen_post_thumbnail(); ?>
-
- <?php twentysixteen_excerpt(); ?>
-
- <?php if ( 'post' === get_post_type() ) : ?>
-
- <footer class="entry-footer">
- <?php twentysixteen_entry_meta(); ?>
- <?php
- edit_post_link(
- sprintf(
- /* translators: %s: Post title. */
- __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
- get_the_title()
- ),
- '<span class="edit-link">',
- '</span>'
- );
- ?>
- </footer><!-- .entry-footer -->
-
- <?php else : ?>
-
- <?php
- edit_post_link(
- sprintf(
- /* translators: %s: Post title. */
- __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
- get_the_title()
- ),
- '<footer class="entry-footer"><span class="edit-link">',
- '</span></footer><!-- .entry-footer -->'
- );
- ?>
-
- <?php endif; ?>
-</article><!-- #post-<?php the_ID(); ?> -->
-
diff --git a/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-single.php b/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-single.php
deleted file mode 100644
index 1eb9f26..0000000
--- a/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content-single.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * The template part for displaying single posts
- *
- * @package WordPress
- * @subpackage Twenty_Sixteen
- * @since Twenty Sixteen 1.0
- */
-?>
-
-<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <header class="entry-header">
- <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
- </header><!-- .entry-header -->
-
- <?php twentysixteen_excerpt(); ?>
-
- <?php twentysixteen_post_thumbnail(); ?>
-
- <div class="entry-content">
- <?php
- the_content();
-
- wp_link_pages(
- array(
- 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
- 'after' => '</div>',
- 'link_before' => '<span>',
- 'link_after' => '</span>',
- 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
- 'separator' => '<span class="screen-reader-text">, </span>',
- )
- );
-
- if ( '' !== get_the_author_meta( 'description' ) ) {
- get_template_part( 'template-parts/biography' );
- }
- ?>
- </div><!-- .entry-content -->
-
- <footer class="entry-footer">
- <?php twentysixteen_entry_meta(); ?>
- <?php
- edit_post_link(
- sprintf(
- /* translators: %s: Post title. */
- __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
- get_the_title()
- ),
- '<span class="edit-link">',
- '</span>'
- );
- ?>
- </footer><!-- .entry-footer -->
-</article><!-- #post-<?php the_ID(); ?> -->
diff --git a/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content.php b/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content.php
deleted file mode 100644
index 1497c76..0000000
--- a/srcs/wordpress/wp-content/themes/twentysixteen/template-parts/content.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * The template part for displaying content
- *
- * @package WordPress
- * @subpackage Twenty_Sixteen
- * @since Twenty Sixteen 1.0
- */
-?>
-
-<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <header class="entry-header">
- <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
- <span class="sticky-post"><?php _e( 'Featured', 'twentysixteen' ); ?></span>
- <?php endif; ?>
-
- <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
- </header><!-- .entry-header -->
-
- <?php twentysixteen_excerpt(); ?>
-
- <?php twentysixteen_post_thumbnail(); ?>
-
- <div class="entry-content">
- <?php
- the_content(
- sprintf(
- /* translators: %s: Post title. */
- __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
- get_the_title()
- )
- );
-
- wp_link_pages(
- array(
- 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
- 'after' => '</div>',
- 'link_before' => '<span>',
- 'link_after' => '</span>',
- 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
- 'separator' => '<span class="screen-reader-text">, </span>',
- )
- );
- ?>
- </div><!-- .entry-content -->
-
- <footer class="entry-footer">
- <?php twentysixteen_entry_meta(); ?>
- <?php
- edit_post_link(
- sprintf(
- /* translators: %s: Post title. */
- __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
- get_the_title()
- ),
- '<span class="edit-link">',
- '</span>'
- );
- ?>
- </footer><!-- .entry-footer -->
-</article><!-- #post-<?php the_ID(); ?> -->