summaryrefslogtreecommitdiff
path: root/template-parts
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-07-21 16:19:29 -0500
committerZach van Rijn <me@zv.io>2021-07-21 16:19:29 -0500
commit69c17f9c1942fd0d6a5ea941636e87723b8a6fe2 (patch)
treee1d0212147048204b0eede0aa6ff79849ed479da /template-parts
parent74a7109a2a5ab0d191f26c917ae69e46f0d83b32 (diff)
downloadblog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.gz
blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.bz2
blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.xz
blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.zip
dos2unix on all .php files, begin paring down admin page and site branding.
Diffstat (limited to 'template-parts')
-rw-r--r--template-parts/404/404-layout.php56
-rw-r--r--template-parts/404/index.php18
-rw-r--r--template-parts/advanced-footer/layout-4.php100
-rw-r--r--template-parts/blog/blog-layout.php84
-rw-r--r--template-parts/blog/index.php18
-rw-r--r--template-parts/content-404.php50
-rw-r--r--template-parts/content-blog.php56
-rw-r--r--template-parts/content-none.php96
-rw-r--r--template-parts/content-page.php174
-rw-r--r--template-parts/content-single.php70
-rw-r--r--template-parts/content.php198
-rw-r--r--template-parts/footer/footer-sml-layout-2.php128
-rw-r--r--template-parts/footer/footer-sml-layout.php80
-rw-r--r--template-parts/footer/index.php18
-rw-r--r--template-parts/header/header-main-layout.php60
-rw-r--r--template-parts/header/index.php18
-rw-r--r--template-parts/index.php18
-rw-r--r--template-parts/single/index.php18
-rw-r--r--template-parts/single/single-layout.php140
19 files changed, 700 insertions, 700 deletions
diff --git a/template-parts/404/404-layout.php b/template-parts/404/404-layout.php
index bd57724..a80ea2e 100644
--- a/template-parts/404/404-layout.php
+++ b/template-parts/404/404-layout.php
@@ -1,28 +1,28 @@
-<?php
-/**
- * Template for 404
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since Astra 1.0.0
- */
-
-?>
-<div <?php echo astra_attr( '404_page', array( 'class' => 'ast-404-layout-1' ) ); ?> >
-
- <?php astra_the_title( '<header class="page-header"><h1 class="page-title">', '</h1></header><!-- .page-header -->' ); ?>
-
- <div class="page-content">
-
- <div class="page-sub-title">
- <?php echo esc_html( astra_default_strings( 'string-404-sub-title', false ) ); ?>
- </div>
-
- <div class="ast-404-search">
- <?php the_widget( 'WP_Widget_Search' ); ?>
- </div>
-
- </div><!-- .page-content -->
-</div>
+<?php
+/**
+ * Template for 404
+ *
+ * @package Astra
+ * @author Astra
+ * @copyright Copyright (c) 2020, Astra
+ * @link https://wpastra.com/
+ * @since Astra 1.0.0
+ */
+
+?>
+<div <?php echo astra_attr( '404_page', array( 'class' => 'ast-404-layout-1' ) ); ?> >
+
+ <?php astra_the_title( '<header class="page-header"><h1 class="page-title">', '</h1></header><!-- .page-header -->' ); ?>
+
+ <div class="page-content">
+
+ <div class="page-sub-title">
+ <?php echo esc_html( astra_default_strings( 'string-404-sub-title', false ) ); ?>
+ </div>
+
+ <div class="ast-404-search">
+ <?php the_widget( 'WP_Widget_Search' ); ?>
+ </div>
+
+ </div><!-- .page-content -->
+</div>
diff --git a/template-parts/404/index.php b/template-parts/404/index.php
index 8b96815..820bcb9 100644
--- a/template-parts/404/index.php
+++ b/template-parts/404/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/advanced-footer/layout-4.php b/template-parts/advanced-footer/layout-4.php
index 91bf587..8dc56f3 100644
--- a/template-parts/advanced-footer/layout-4.php
+++ b/template-parts/advanced-footer/layout-4.php
@@ -1,50 +1,50 @@
-<?php
-/**
- * Footer Layout 4
- *
- * @package Astra Addon
- * @since Astra 1.0.12
- */
-
-/**
- * Hide advanced footer markup if:
- *
- * - User is not logged in. [AND]
- * - All widgets are not active.
- */
-if ( ! is_user_logged_in() ) {
- if (
- ! is_active_sidebar( 'advanced-footer-widget-1' ) &&
- ! is_active_sidebar( 'advanced-footer-widget-2' ) &&
- ! is_active_sidebar( 'advanced-footer-widget-3' ) &&
- ! is_active_sidebar( 'advanced-footer-widget-4' )
- ) {
- return;
- }
-}
-
-$classes[] = 'footer-adv';
-$classes[] = 'footer-adv-layout-4';
-$classes = implode( ' ', $classes );
-?>
-
-<div class="<?php echo esc_attr( $classes ); ?>">
- <div class="footer-adv-overlay">
- <div class="ast-container">
- <div class="ast-row">
- <div class="<?php echo astra_attr( 'ast-layout-4-grid' ); ?> footer-adv-widget footer-adv-widget-1" <?php echo wp_kses_post( apply_filters( 'astra_sidebar_data_attrs', '', 'advanced-footer-widget-1' ) ); ?>>
- <?php astra_get_footer_widget( 'advanced-footer-widget-1' ); ?>
- </div>
- <div class="<?php echo astra_attr( 'ast-layout-4-grid' ); ?> footer-adv-widget footer-adv-widget-2" <?php echo wp_kses_post( apply_filters( 'astra_sidebar_data_attrs', '', 'advanced-footer-widget-2' ) ); ?>>
- <?php astra_get_footer_widget( 'advanced-footer-widget-2' ); ?>
- </div>
- <div class="<?php echo astra_attr( 'ast-layout-4-grid' ); ?> footer-adv-widget footer-adv-widget-3" <?php echo wp_kses_post( apply_filters( 'astra_sidebar_data_attrs', '', 'advanced-footer-widget-3' ) ); ?>>
- <?php astra_get_footer_widget( 'advanced-footer-widget-3' ); ?>
- </div>
- <div class="<?php echo astra_attr( 'ast-layout-4-grid' ); ?> footer-adv-widget footer-adv-widget-4" <?php echo wp_kses_post( apply_filters( 'astra_sidebar_data_attrs', '', 'advanced-footer-widget-4' ) ); ?>>
- <?php astra_get_footer_widget( 'advanced-footer-widget-4' ); ?>
- </div>
- </div><!-- .ast-row -->
- </div><!-- .ast-container -->
- </div><!-- .footer-adv-overlay-->
-</div><!-- .ast-theme-footer .footer-adv-layout-4 -->
+<?php
+/**
+ * Footer Layout 4
+ *
+ * @package Astra Addon
+ * @since Astra 1.0.12
+ */
+
+/**
+ * Hide advanced footer markup if:
+ *
+ * - User is not logged in. [AND]
+ * - All widgets are not active.
+ */
+if ( ! is_user_logged_in() ) {
+ if (
+ ! is_active_sidebar( 'advanced-footer-widget-1' ) &&
+ ! is_active_sidebar( 'advanced-footer-widget-2' ) &&
+ ! is_active_sidebar( 'advanced-footer-widget-3' ) &&
+ ! is_active_sidebar( 'advanced-footer-widget-4' )
+ ) {
+ return;
+ }
+}
+
+$classes[] = 'footer-adv';
+$classes[] = 'footer-adv-layout-4';
+$classes = implode( ' ', $classes );
+?>
+
+<div class="<?php echo esc_attr( $classes ); ?>">
+ <div class="footer-adv-overlay">
+ <div class="ast-container">
+ <div class="ast-row">
+ <div class="<?php echo astra_attr( 'ast-layout-4-grid' ); ?> footer-adv-widget footer-adv-widget-1" <?php echo wp_kses_post( apply_filters( 'astra_sidebar_data_attrs', '', 'advanced-footer-widget-1' ) ); ?>>
+ <?php astra_get_footer_widget( 'advanced-footer-widget-1' ); ?>
+ </div>
+ <div class="<?php echo astra_attr( 'ast-layout-4-grid' ); ?> footer-adv-widget footer-adv-widget-2" <?php echo wp_kses_post( apply_filters( 'astra_sidebar_data_attrs', '', 'advanced-footer-widget-2' ) ); ?>>
+ <?php astra_get_footer_widget( 'advanced-footer-widget-2' ); ?>
+ </div>
+ <div class="<?php echo astra_attr( 'ast-layout-4-grid' ); ?> footer-adv-widget footer-adv-widget-3" <?php echo wp_kses_post( apply_filters( 'astra_sidebar_data_attrs', '', 'advanced-footer-widget-3' ) ); ?>>
+ <?php astra_get_footer_widget( 'advanced-footer-widget-3' ); ?>
+ </div>
+ <div class="<?php echo astra_attr( 'ast-layout-4-grid' ); ?> footer-adv-widget footer-adv-widget-4" <?php echo wp_kses_post( apply_filters( 'astra_sidebar_data_attrs', '', 'advanced-footer-widget-4' ) ); ?>>
+ <?php astra_get_footer_widget( 'advanced-footer-widget-4' ); ?>
+ </div>
+ </div><!-- .ast-row -->
+ </div><!-- .ast-container -->
+ </div><!-- .footer-adv-overlay-->
+</div><!-- .ast-theme-footer .footer-adv-layout-4 -->
diff --git a/template-parts/blog/blog-layout.php b/template-parts/blog/blog-layout.php
index 66acc03..660e953 100644
--- a/template-parts/blog/blog-layout.php
+++ b/template-parts/blog/blog-layout.php
@@ -1,42 +1,42 @@
-<?php
-/**
- * Template for Blog
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since Astra 1.0.0
- */
-
-?>
-<div <?php astra_blog_layout_class( 'blog-layout-1' ); ?>>
- <div class="post-content <?php echo astra_attr( 'ast-grid-common-col' ); ?>" >
- <?php astra_blog_post_thumbnail_and_title_order(); ?>
- <div class="entry-content clear"
- <?php
- echo astra_attr(
- 'article-entry-content-blog-layout',
- array(
- 'class' => '',
- )
- );
- ?>
- >
- <?php
- astra_entry_content_before();
- astra_the_excerpt();
- astra_entry_content_after();
-
- wp_link_pages(
- array(
- 'before' => '<div class="page-links">' . esc_html( astra_default_strings( 'string-blog-page-links-before', false ) ),
- 'after' => '</div>',
- 'link_before' => '<span class="page-link">',
- 'link_after' => '</span>',
- )
- );
- ?>
- </div><!-- .entry-content .clear -->
- </div><!-- .post-content -->
-</div> <!-- .blog-layout-1 -->
+<?php
+/**
+ * Template for Blog
+ *
+ * @package Astra
+ * @author Astra
+ * @copyright Copyright (c) 2020, Astra
+ * @link https://wpastra.com/
+ * @since Astra 1.0.0
+ */
+
+?>
+<div <?php astra_blog_layout_class( 'blog-layout-1' ); ?>>
+ <div class="post-content <?php echo astra_attr( 'ast-grid-common-col' ); ?>" >
+ <?php astra_blog_post_thumbnail_and_title_order(); ?>
+ <div class="entry-content clear"
+ <?php
+ echo astra_attr(
+ 'article-entry-content-blog-layout',
+ array(
+ 'class' => '',
+ )
+ );
+ ?>
+ >
+ <?php
+ astra_entry_content_before();
+ astra_the_excerpt();
+ astra_entry_content_after();
+
+ wp_link_pages(
+ array(
+ 'before' => '<div class="page-links">' . esc_html( astra_default_strings( 'string-blog-page-links-before', false ) ),
+ 'after' => '</div>',
+ 'link_before' => '<span class="page-link">',
+ 'link_after' => '</span>',
+ )
+ );
+ ?>
+ </div><!-- .entry-content .clear -->
+ </div><!-- .post-content -->
+</div> <!-- .blog-layout-1 -->
diff --git a/template-parts/blog/index.php b/template-parts/blog/index.php
index 8b96815..820bcb9 100644
--- a/template-parts/blog/index.php
+++ b/template-parts/blog/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/content-404.php b/template-parts/content-404.php
index 6d89689..850912b 100644
--- a/template-parts/content-404.php
+++ b/template-parts/content-404.php
@@ -1,25 +1,25 @@
-<?php
-/**
- * Template part for displaying a 404 page.
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package Astra
- * @since 1.2.7
- */
-
-?>
-
-<?php astra_entry_before(); ?>
-
-<section class="error-404 not-found">
-
- <?php astra_entry_top(); ?>
-
- <?php astra_entry_content_404_page(); ?>
-
- <?php astra_entry_bottom(); ?>
-
-</section><!-- .error-404 -->
-
-<?php astra_entry_after(); ?>
+<?php
+/**
+ * Template part for displaying a 404 page.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package Astra
+ * @since 1.2.7
+ */
+
+?>
+
+<?php astra_entry_before(); ?>
+
+<section class="error-404 not-found">
+
+ <?php astra_entry_top(); ?>
+
+ <?php astra_entry_content_404_page(); ?>
+
+ <?php astra_entry_bottom(); ?>
+
+</section><!-- .error-404 -->
+
+<?php astra_entry_after(); ?>
diff --git a/template-parts/content-blog.php b/template-parts/content-blog.php
index 7992674..7276a01 100644
--- a/template-parts/content-blog.php
+++ b/template-parts/content-blog.php
@@ -1,28 +1,28 @@
-<?php
-/**
- * Template part for displaying posts.
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package Astra
- * @since 1.0.0
- */
-
-?>
-<?php astra_entry_before(); ?>
-<article
-<?php
- echo astra_attr(
- 'article-blog',
- array(
- 'id' => 'post-' . get_the_id(),
- 'class' => join( ' ', get_post_class() ),
- )
- );
- ?>
->
- <?php astra_entry_top(); ?>
- <?php astra_entry_content_blog(); ?>
- <?php astra_entry_bottom(); ?>
-</article><!-- #post-## -->
-<?php astra_entry_after(); ?>
+<?php
+/**
+ * Template part for displaying posts.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package Astra
+ * @since 1.0.0
+ */
+
+?>
+<?php astra_entry_before(); ?>
+<article
+<?php
+ echo astra_attr(
+ 'article-blog',
+ array(
+ 'id' => 'post-' . get_the_id(),
+ 'class' => join( ' ', get_post_class() ),
+ )
+ );
+ ?>
+>
+ <?php astra_entry_top(); ?>
+ <?php astra_entry_content_blog(); ?>
+ <?php astra_entry_bottom(); ?>
+</article><!-- #post-## -->
+<?php astra_entry_after(); ?>
diff --git a/template-parts/content-none.php b/template-parts/content-none.php
index 56a9a14..cab9fe2 100644
--- a/template-parts/content-none.php
+++ b/template-parts/content-none.php
@@ -1,48 +1,48 @@
-<?php
-/**
- * Template part for displaying a message that posts cannot be found.
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package Astra
- * @since 1.0.0
- */
-
-?>
-
-<section class="no-results not-found">
- <div class="page-content">
-
- <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
-
- <p>
- <?php
- printf(
- wp_kses(
- /* translators: 1: link to new post */
- __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'astra' ),
- array(
- 'a' => array(
- 'href' => array(),
- ),
- )
- ),
- esc_url( admin_url( 'post-new.php' ) )
- );
- ?>
- </p>
-
- <?php elseif ( is_search() ) : ?>
-
- <p><?php echo esc_html( astra_default_strings( 'string-search-nothing-found-message', false ) ); ?></p>
- <?php get_search_form(); ?>
-
- <?php else : ?>
-
- <p><?php echo esc_html( astra_default_strings( 'string-content-nothing-found-message', false ) ); ?></p>
- <?php get_search_form(); ?>
-
- <?php endif; ?>
-
- </div><!-- .page-content -->
-</section><!-- .no-results -->
+<?php
+/**
+ * Template part for displaying a message that posts cannot be found.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package Astra
+ * @since 1.0.0
+ */
+
+?>
+
+<section class="no-results not-found">
+ <div class="page-content">
+
+ <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
+
+ <p>
+ <?php
+ printf(
+ wp_kses(
+ /* translators: 1: link to new post */
+ __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'astra' ),
+ array(
+ 'a' => array(
+ 'href' => array(),
+ ),
+ )
+ ),
+ esc_url( admin_url( 'post-new.php' ) )
+ );
+ ?>
+ </p>
+
+ <?php elseif ( is_search() ) : ?>
+
+ <p><?php echo esc_html( astra_default_strings( 'string-search-nothing-found-message', false ) ); ?></p>
+ <?php get_search_form(); ?>
+
+ <?php else : ?>
+
+ <p><?php echo esc_html( astra_default_strings( 'string-content-nothing-found-message', false ) ); ?></p>
+ <?php get_search_form(); ?>
+
+ <?php endif; ?>
+
+ </div><!-- .page-content -->
+</section><!-- .no-results -->
diff --git a/template-parts/content-page.php b/template-parts/content-page.php
index 274f34c..9f07e4d 100644
--- a/template-parts/content-page.php
+++ b/template-parts/content-page.php
@@ -1,87 +1,87 @@
-<?php
-/**
- * Template part for displaying page content in page.php.
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package Astra
- * @since 1.0.0
- */
-
-?>
-<?php astra_entry_before(); ?>
-<article
-<?php
- echo astra_attr(
- 'article-page',
- array(
- 'id' => 'post-' . get_the_id(),
- 'class' => join( ' ', get_post_class() ),
- )
- );
- ?>
->
- <?php astra_entry_top(); ?>
- <header class="entry-header <?php astra_entry_header_class(); ?>">
- <?php astra_get_post_thumbnail(); ?>
-
- <?php
- astra_the_title(
- '<h1 class="entry-title" ' . astra_attr(
- 'article-title-content-page',
- array(
- 'class' => '',
- )
- ) . '>',
- '</h1>'
- );
- ?>
- </header><!-- .entry-header -->
-
- <div class="entry-content clear"
- <?php
- echo astra_attr(
- 'article-entry-content-page',
- array(
- 'class' => '',
- )
- );
- ?>
- >
-
- <?php astra_entry_content_before(); ?>
-
- <?php the_content(); ?>
-
- <?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 -->
-
- <?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 )
- ),
- '<footer class="entry-footer"><span class="edit-link">',
- '</span></footer><!-- .entry-footer -->'
- );
- ?>
-
- <?php astra_entry_bottom(); ?>
-
-</article><!-- #post-## -->
-
-<?php astra_entry_after(); ?>
+<?php
+/**
+ * Template part for displaying page content in page.php.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package Astra
+ * @since 1.0.0
+ */
+
+?>
+<?php astra_entry_before(); ?>
+<article
+<?php
+ echo astra_attr(
+ 'article-page',
+ array(
+ 'id' => 'post-' . get_the_id(),
+ 'class' => join( ' ', get_post_class() ),
+ )
+ );
+ ?>
+>
+ <?php astra_entry_top(); ?>
+ <header class="entry-header <?php astra_entry_header_class(); ?>">
+ <?php astra_get_post_thumbnail(); ?>
+
+ <?php
+ astra_the_title(
+ '<h1 class="entry-title" ' . astra_attr(
+ 'article-title-content-page',
+ array(
+ 'class' => '',
+ )
+ ) . '>',
+ '</h1>'
+ );
+ ?>
+ </header><!-- .entry-header -->
+
+ <div class="entry-content clear"
+ <?php
+ echo astra_attr(
+ 'article-entry-content-page',
+ array(
+ 'class' => '',
+ )
+ );
+ ?>
+ >
+
+ <?php astra_entry_content_before(); ?>
+
+ <?php the_content(); ?>
+
+ <?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 -->
+
+ <?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 )
+ ),
+ '<footer class="entry-footer"><span class="edit-link">',
+ '</span></footer><!-- .entry-footer -->'
+ );
+ ?>
+
+ <?php astra_entry_bottom(); ?>
+
+</article><!-- #post-## -->
+
+<?php astra_entry_after(); ?>
diff --git a/template-parts/content-single.php b/template-parts/content-single.php
index 8fa2e65..bce22b0 100644
--- a/template-parts/content-single.php
+++ b/template-parts/content-single.php
@@ -1,35 +1,35 @@
-<?php
-/**
- * Template part for displaying single posts.
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package Astra
- * @since 1.0.0
- */
-
-?>
-
-<?php astra_entry_before(); ?>
-
-<article
-<?php
- echo astra_attr(
- 'article-single',
- array(
- 'id' => 'post-' . get_the_id(),
- 'class' => join( ' ', get_post_class() ),
- )
- );
- ?>
->
-
- <?php astra_entry_top(); ?>
-
- <?php astra_entry_content_single(); ?>
-
- <?php astra_entry_bottom(); ?>
-
-</article><!-- #post-## -->
-
-<?php astra_entry_after(); ?>
+<?php
+/**
+ * Template part for displaying single posts.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package Astra
+ * @since 1.0.0
+ */
+
+?>
+
+<?php astra_entry_before(); ?>
+
+<article
+<?php
+ echo astra_attr(
+ 'article-single',
+ array(
+ 'id' => 'post-' . get_the_id(),
+ 'class' => join( ' ', get_post_class() ),
+ )
+ );
+ ?>
+>
+
+ <?php astra_entry_top(); ?>
+
+ <?php astra_entry_content_single(); ?>
+
+ <?php astra_entry_bottom(); ?>
+
+</article><!-- #post-## -->
+
+<?php astra_entry_after(); ?>
diff --git a/template-parts/content.php b/template-parts/content.php
index fe10036..d84563c 100644
--- a/template-parts/content.php
+++ b/template-parts/content.php
@@ -1,99 +1,99 @@
-<?php
-/**
- * Template part for displaying posts.
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package Astra
- * @since 1.0.0
- */
-
-?>
-
-<?php astra_entry_before(); ?>
-
-<article
-<?php
- echo astra_attr(
- 'article-content',
- array(
- 'id' => 'post-' . get_the_id(),
- 'class' => join( ' ', get_post_class() ),
- )
- );
- ?>
->
- <?php astra_entry_top(); ?>
-
- <header class="entry-header <?php astra_entry_header_class(); ?>">
-
- <?php
- astra_the_title(
- sprintf(
- '<h2 class="entry-title" ' . astra_attr(
- 'article-title-content',
- array(
- 'class' => '',
- )
- ) . '><a href="%s" rel="bookmark">',
- esc_url( get_permalink() )
- ),
- '</a></h2>'
- );
- ?>
-
- </header><!-- .entry-header -->
-
- <div class="entry-content clear"
- <?php
- echo astra_attr(
- 'article-entry-content',
- array(
- 'class' => '',
- )
- );
- ?>
- >
-
- <?php astra_entry_content_before(); ?>
-
- <?php
- the_content(
- sprintf(
- wp_kses(
- /* translators: %s: Name of current post. */
- __( 'Continue reading %s', 'astra' ) . ' <span class="meta-nav">&rarr;</span>',
- array(
- 'span' => array(
- 'class' => array(),
- ),
- )
- ),
- the_title( '<span class="screen-reader-text">"', '"</span>', false )
- )
- );
- ?>
-
- <?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 -->
-
- <footer class="entry-footer">
- <?php astra_entry_footer(); ?>
- </footer><!-- .entry-footer -->
-
- <?php astra_entry_bottom(); ?>
-
-</article><!-- #post-## -->
-
-<?php astra_entry_after(); ?>
+<?php
+/**
+ * Template part for displaying posts.
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package Astra
+ * @since 1.0.0
+ */
+
+?>
+
+<?php astra_entry_before(); ?>
+
+<article
+<?php
+ echo astra_attr(
+ 'article-content',
+ array(
+ 'id' => 'post-' . get_the_id(),
+ 'class' => join( ' ', get_post_class() ),
+ )
+ );
+ ?>
+>
+ <?php astra_entry_top(); ?>
+
+ <header class="entry-header <?php astra_entry_header_class(); ?>">
+
+ <?php
+ astra_the_title(
+ sprintf(
+ '<h2 class="entry-title" ' . astra_attr(
+ 'article-title-content',
+ array(
+ 'class' => '',
+ )
+ ) . '><a href="%s" rel="bookmark">',
+ esc_url( get_permalink() )
+ ),
+ '</a></h2>'
+ );
+ ?>
+
+ </header><!-- .entry-header -->
+
+ <div class="entry-content clear"
+ <?php
+ echo astra_attr(
+ 'article-entry-content',
+ array(
+ 'class' => '',
+ )
+ );
+ ?>
+ >
+
+ <?php astra_entry_content_before(); ?>
+
+ <?php
+ the_content(
+ sprintf(
+ wp_kses(
+ /* translators: %s: Name of current post. */
+ __( 'Continue reading %s', 'astra' ) . ' <span class="meta-nav">&rarr;</span>',
+ array(
+ 'span' => array(
+ 'class' => array(),
+ ),
+ )
+ ),
+ the_title( '<span class="screen-reader-text">"', '"</span>', false )
+ )
+ );
+ ?>
+
+ <?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 -->
+
+ <footer class="entry-footer">
+ <?php astra_entry_footer(); ?>
+ </footer><!-- .entry-footer -->
+
+ <?php astra_entry_bottom(); ?>
+
+</article><!-- #post-## -->
+
+<?php astra_entry_after(); ?>
diff --git a/template-parts/footer/footer-sml-layout-2.php b/template-parts/footer/footer-sml-layout-2.php
index 65916e3..2d1bb15 100644
--- a/template-parts/footer/footer-sml-layout-2.php
+++ b/template-parts/footer/footer-sml-layout-2.php
@@ -1,64 +1,64 @@
-<?php
-/**
- * Template for Small Footer Layout 2
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since Astra 1.0.0
- */
-
-$section_1 = astra_get_small_footer( 'footer-sml-section-1' );
-$section_2 = astra_get_small_footer( 'footer-sml-section-2' );
-$sections = 0;
-
-if ( '' != $section_1 ) {
- $sections++;
-}
-
-if ( '' != $section_2 ) {
- $sections++;
-}
-
-switch ( $sections ) {
-
- case '2':
- $section_class = 'ast-small-footer-section-equally ' . astra_attr( 'ast-grid-col-6' );
- break;
-
- case '1':
- default:
- $section_class = 'ast-small-footer-section-equally ' . astra_attr( 'ast-grid-common-col' );
- break;
-}
-
-?>
-
-<div class="ast-small-footer footer-sml-layout-2">
- <div class="ast-footer-overlay">
- <div class="ast-container">
- <div class="ast-small-footer-wrap" >
- <div class="ast-row ast-flex">
-
- <?php if ( $section_1 ) : ?>
- <div class="ast-small-footer-section ast-small-footer-section-1 <?php echo esc_attr( $section_class ); ?>" >
- <?php
- echo $section_1; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- ?>
- </div>
- <?php endif; ?>
-
- <?php if ( $section_2 ) : ?>
- <div class="ast-small-footer-section ast-small-footer-section-2 <?php echo esc_attr( $section_class ); ?>" >
- <?php
- echo $section_2; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- ?>
- </div>
- <?php endif; ?>
-
- </div> <!-- .ast-row.ast-flex -->
- </div><!-- .ast-small-footer-wrap -->
- </div><!-- .ast-container -->
- </div><!-- .ast-footer-overlay -->
-</div><!-- .ast-small-footer-->
+<?php
+/**
+ * Template for Small Footer Layout 2
+ *
+ * @package Astra
+ * @author Astra
+ * @copyright Copyright (c) 2020, Astra
+ * @link https://wpastra.com/
+ * @since Astra 1.0.0
+ */
+
+$section_1 = astra_get_small_footer( 'footer-sml-section-1' );
+$section_2 = astra_get_small_footer( 'footer-sml-section-2' );
+$sections = 0;
+
+if ( '' != $section_1 ) {
+ $sections++;
+}
+
+if ( '' != $section_2 ) {
+ $sections++;
+}
+
+switch ( $sections ) {
+
+ case '2':
+ $section_class = 'ast-small-footer-section-equally ' . astra_attr( 'ast-grid-col-6' );
+ break;
+
+ case '1':
+ default:
+ $section_class = 'ast-small-footer-section-equally ' . astra_attr( 'ast-grid-common-col' );
+ break;
+}
+
+?>
+
+<div class="ast-small-footer footer-sml-layout-2">
+ <div class="ast-footer-overlay">
+ <div class="ast-container">
+ <div class="ast-small-footer-wrap" >
+ <div class="ast-row ast-flex">
+
+ <?php if ( $section_1 ) : ?>
+ <div class="ast-small-footer-section ast-small-footer-section-1 <?php echo esc_attr( $section_class ); ?>" >
+ <?php
+ echo $section_1; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+ ?>
+ </div>
+ <?php endif; ?>
+
+ <?php if ( $section_2 ) : ?>
+ <div class="ast-small-footer-section ast-small-footer-section-2 <?php echo esc_attr( $section_class ); ?>" >
+ <?php
+ echo $section_2; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+ ?>
+ </div>
+ <?php endif; ?>
+
+ </div> <!-- .ast-row.ast-flex -->
+ </div><!-- .ast-small-footer-wrap -->
+ </div><!-- .ast-container -->
+ </div><!-- .ast-footer-overlay -->
+</div><!-- .ast-small-footer-->
diff --git a/template-parts/footer/footer-sml-layout.php b/template-parts/footer/footer-sml-layout.php
index 0fb6592..dcf5459 100644
--- a/template-parts/footer/footer-sml-layout.php
+++ b/template-parts/footer/footer-sml-layout.php
@@ -1,40 +1,40 @@
-<?php
-/**
- * Template for Small Footer Layout 1
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since Astra 1.0.0
- */
-
-$section_1 = astra_get_small_footer( 'footer-sml-section-1' );
-$section_2 = astra_get_small_footer( 'footer-sml-section-2' );
-
-?>
-
-<div class="ast-small-footer footer-sml-layout-1">
- <div class="ast-footer-overlay">
- <div class="ast-container">
- <div class="ast-small-footer-wrap" >
- <?php if ( $section_1 ) : ?>
- <div class="ast-small-footer-section ast-small-footer-section-1" >
- <?php
- echo $section_1; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- ?>
- </div>
- <?php endif; ?>
-
- <?php if ( $section_2 ) : ?>
- <div class="ast-small-footer-section ast-small-footer-section-2" >
- <?php
- echo $section_2; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- ?>
- </div>
- <?php endif; ?>
-
- </div><!-- .ast-row .ast-small-footer-wrap -->
- </div><!-- .ast-container -->
- </div><!-- .ast-footer-overlay -->
-</div><!-- .ast-small-footer-->
+<?php
+/**
+ * Template for Small Footer Layout 1
+ *
+ * @package Astra
+ * @author Astra
+ * @copyright Copyright (c) 2020, Astra
+ * @link https://wpastra.com/
+ * @since Astra 1.0.0
+ */
+
+$section_1 = astra_get_small_footer( 'footer-sml-section-1' );
+$section_2 = astra_get_small_footer( 'footer-sml-section-2' );
+
+?>
+
+<div class="ast-small-footer footer-sml-layout-1">
+ <div class="ast-footer-overlay">
+ <div class="ast-container">
+ <div class="ast-small-footer-wrap" >
+ <?php if ( $section_1 ) : ?>
+ <div class="ast-small-footer-section ast-small-footer-section-1" >
+ <?php
+ echo $section_1; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+ ?>
+ </div>
+ <?php endif; ?>
+
+ <?php if ( $section_2 ) : ?>
+ <div class="ast-small-footer-section ast-small-footer-section-2" >
+ <?php
+ echo $section_2; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+ ?>
+ </div>
+ <?php endif; ?>
+
+ </div><!-- .ast-row .ast-small-footer-wrap -->
+ </div><!-- .ast-container -->
+ </div><!-- .ast-footer-overlay -->
+</div><!-- .ast-small-footer-->
diff --git a/template-parts/footer/index.php b/template-parts/footer/index.php
index 8b96815..820bcb9 100644
--- a/template-parts/footer/index.php
+++ b/template-parts/footer/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/header/header-main-layout.php b/template-parts/header/header-main-layout.php
index e40b7c4..42e03f5 100644
--- a/template-parts/header/header-main-layout.php
+++ b/template-parts/header/header-main-layout.php
@@ -1,30 +1,30 @@
-<?php
-/**
- * Template for Primary Header
- *
- * The header layout 2 for Astra Theme. ( No of sections - 1 [ Section 1 limit - 3 )
- * This is the template that displays all of the <head> section and everything up until <div id="content">
- *
- * @see https://developer.wordpress.org/themes/basics/template-files/#template-partials
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since Astra 1.0.0
- */
-
-?>
-
-<div class="main-header-bar-wrap">
- <div <?php echo astra_attr( 'main-header-bar' ); ?>>
- <?php astra_main_header_bar_top(); ?>
- <div class="ast-container">
-
- <div class="ast-flex main-header-container">
- <?php astra_masthead_content(); ?>
- </div><!-- Main Header Container -->
- </div><!-- ast-row -->
- <?php astra_main_header_bar_bottom(); ?>
- </div> <!-- Main Header Bar -->
-</div> <!-- Main Header Bar Wrap -->
+<?php
+/**
+ * Template for Primary Header
+ *
+ * The header layout 2 for Astra Theme. ( No of sections - 1 [ Section 1 limit - 3 )
+ * This is the template that displays all of the <head> section and everything up until <div id="content">
+ *
+ * @see https://developer.wordpress.org/themes/basics/template-files/#template-partials
+ *
+ * @package Astra
+ * @author Astra
+ * @copyright Copyright (c) 2020, Astra
+ * @link https://wpastra.com/
+ * @since Astra 1.0.0
+ */
+
+?>
+
+<div class="main-header-bar-wrap">
+ <div <?php echo astra_attr( 'main-header-bar' ); ?>>
+ <?php astra_main_header_bar_top(); ?>
+ <div class="ast-container">
+
+ <div class="ast-flex main-header-container">
+ <?php astra_masthead_content(); ?>
+ </div><!-- Main Header Container -->
+ </div><!-- ast-row -->
+ <?php astra_main_header_bar_bottom(); ?>
+ </div> <!-- Main Header Bar -->
+</div> <!-- Main Header Bar Wrap -->
diff --git a/template-parts/header/index.php b/template-parts/header/index.php
index 8b96815..820bcb9 100644
--- a/template-parts/header/index.php
+++ b/template-parts/header/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/index.php b/template-parts/index.php
index 8b96815..820bcb9 100644
--- a/template-parts/index.php
+++ b/template-parts/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/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>