Added WP-Theme
This commit is contained in:
47
as-coaching-theme/index.php
Normal file
47
as-coaching-theme/index.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* Blog index and fallback template.
|
||||
*
|
||||
* @package AS_Coaching
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<main id="content" class="site-main">
|
||||
<div class="post-listing">
|
||||
<div class="container">
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<div class="post-grid">
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'post-card' ); ?>>
|
||||
<header class="post-card__header">
|
||||
<h2 class="post-card__title">
|
||||
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
||||
</h2>
|
||||
<p class="post-card__meta"><?php echo esc_html( get_the_date() ); ?></p>
|
||||
</header>
|
||||
<div class="post-card__excerpt">
|
||||
<?php the_excerpt(); ?>
|
||||
</div>
|
||||
<a class="btn btn--primary" href="<?php the_permalink(); ?>"><?php esc_html_e( 'Weiterlesen', 'as-coaching' ); ?></a>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
<?php the_posts_pagination(); ?>
|
||||
<?php else : ?>
|
||||
<div class="as-empty-state__card">
|
||||
<h1 class="entry-title"><?php esc_html_e( 'Noch keine Inhalte vorhanden', 'as-coaching' ); ?></h1>
|
||||
<p><?php esc_html_e( 'Lege Seiten oder Beiträge an und nutze die mitgelieferten Gutenberg-Patterns für den Start.', 'as-coaching' ); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
Reference in New Issue
Block a user