Your IP : 216.73.216.1


Current Path : /home/fotouserdopd8j/agenciacrabli.com/wp-contentn/themes/pally/
Upload File :
Current File : /home/fotouserdopd8j/agenciacrabli.com/wp-contentn/themes/pally/author.php

	<?php
/**
 * The template for displaying author pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package pally
 */

get_header();
?>
<div class="column col-12">
	<main id="primary" class="site-main">
	<?php if (function_exists('pally_nav_breadcrumb')) pally_nav_breadcrumb(); ?>
		<?php if ( have_posts() ) : ?>
			<header class="page-header">
				<h1 class="page-title"><?php esc_html_e( 'Über den/die Autor*in', 'pally' ); ?></h1>
			</header><!-- .page-header -->
			<div class="author-biog">
				<div class="container author-header">
					<div class="columns">
						<div class="column col-xs-6 col-sm-4 col-auto">
								<?php echo get_avatar( get_the_author_meta( 'ID' ), 128 ); ?>
						</div>
						<div class="column col-xs-6 col-sm-8 col-auto">
								<h2><?php	echo get_the_author();?></h2>
						</div>
					</div>
				</div>
				<?php
				the_archive_description( '<div class="archive-description">', '</div>' );
				$author_id = get_the_author_meta( 'ID' );
				$author_url = get_the_author_meta( 'url', $author_id );
				if (!empty($author_url)) {
				?>
				<a href="<?php echo $author_url ?>"><?php esc_html_e( 'Zur Website des/der Autor*in', 'pally' ); ?></a>
				<?php } ?>
			</div>
			<div class="author-articles">
				<h2>Artikel von
				<?php
				echo get_the_author();?></h2>
			</div>
			<?php
			/* Start the Loop */
			while ( have_posts() ) :
				the_post();
				/*
				 * Include the Post-Type-specific template for the content.
				 * If you want to override this in a child theme, then include a file
				 * called content-___.php (where ___ is the Post Type name) and that will be used instead.
				 */
				get_template_part( 'template-parts/content', 'author' );

			endwhile;

			the_posts_navigation();

		else :

			get_template_part( 'template-parts/content', 'none' );

		endif;
		?>

	</main><!-- #main -->
</div>
<?php
get_sidebar();
get_footer();