diff options
Diffstat (limited to 'template-parts/single')
-rw-r--r-- | template-parts/single/index.php | 18 | ||||
-rw-r--r-- | template-parts/single/single-layout.php | 140 |
2 files changed, 79 insertions, 79 deletions
diff --git a/template-parts/single/index.php b/template-parts/single/index.php index 8b96815..820bcb9 100644 --- a/template-parts/single/index.php +++ b/template-parts/single/index.php @@ -1,9 +1,9 @@ -<?php
-/**
- * Index file
- *
- * @package Astra
- * @since Astra 1.0.0
- */
-
-/* Silence is golden, and we agree. */
+<?php +/** + * Index file + * + * @package Astra + * @since Astra 1.0.0 + */ + +/* Silence is golden, and we agree. */ diff --git a/template-parts/single/single-layout.php b/template-parts/single/single-layout.php index 5441117..18459cf 100644 --- a/template-parts/single/single-layout.php +++ b/template-parts/single/single-layout.php @@ -1,70 +1,70 @@ -<?php
-/**
- * Template for Single post
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since Astra 1.0.0
- */
-
-?>
-
-<div <?php astra_blog_layout_class( 'single-layout-1' ); ?>>
-
- <?php astra_single_header_before(); ?>
-
- <header class="entry-header <?php astra_entry_header_class(); ?>">
-
- <?php astra_single_header_top(); ?>
-
- <?php astra_blog_post_thumbnail_and_title_order(); ?>
-
- <?php astra_single_header_bottom(); ?>
-
- </header><!-- .entry-header -->
-
- <?php astra_single_header_after(); ?>
-
- <div class="entry-content clear"
- <?php
- echo astra_attr(
- 'article-entry-content-single-layout',
- array(
- 'class' => '',
- )
- );
- ?>
- >
-
- <?php astra_entry_content_before(); ?>
-
- <?php the_content(); ?>
-
- <?php
- astra_edit_post_link(
- sprintf(
- /* translators: %s: Name of current post */
- esc_html__( 'Edit %s', 'astra' ),
- the_title( '<span class="screen-reader-text">"', '"</span>', false )
- ),
- '<span class="edit-link">',
- '</span>'
- );
- ?>
-
- <?php astra_entry_content_after(); ?>
-
- <?php
- wp_link_pages(
- array(
- 'before' => '<div class="page-links">' . esc_html( astra_default_strings( 'string-single-page-links-before', false ) ),
- 'after' => '</div>',
- 'link_before' => '<span class="page-link">',
- 'link_after' => '</span>',
- )
- );
- ?>
- </div><!-- .entry-content .clear -->
-</div>
+<?php +/** + * Template for Single post + * + * @package Astra + * @author Astra + * @copyright Copyright (c) 2020, Astra + * @link https://wpastra.com/ + * @since Astra 1.0.0 + */ + +?> + +<div <?php astra_blog_layout_class( 'single-layout-1' ); ?>> + + <?php astra_single_header_before(); ?> + + <header class="entry-header <?php astra_entry_header_class(); ?>"> + + <?php astra_single_header_top(); ?> + + <?php astra_blog_post_thumbnail_and_title_order(); ?> + + <?php astra_single_header_bottom(); ?> + + </header><!-- .entry-header --> + + <?php astra_single_header_after(); ?> + + <div class="entry-content clear" + <?php + echo astra_attr( + 'article-entry-content-single-layout', + array( + 'class' => '', + ) + ); + ?> + > + + <?php astra_entry_content_before(); ?> + + <?php the_content(); ?> + + <?php + astra_edit_post_link( + sprintf( + /* translators: %s: Name of current post */ + esc_html__( 'Edit %s', 'astra' ), + the_title( '<span class="screen-reader-text">"', '"</span>', false ) + ), + '<span class="edit-link">', + '</span>' + ); + ?> + + <?php astra_entry_content_after(); ?> + + <?php + wp_link_pages( + array( + 'before' => '<div class="page-links">' . esc_html( astra_default_strings( 'string-single-page-links-before', false ) ), + 'after' => '</div>', + 'link_before' => '<span class="page-link">', + 'link_after' => '</span>', + ) + ); + ?> + </div><!-- .entry-content .clear --> +</div> |