44 lines
2.1 KiB
PHP
44 lines
2.1 KiB
PHP
<?php
|
|
//author.php
|
|
get_header();
|
|
|
|
if(is_author()){
|
|
$author_id = get_the_author_meta('ID');
|
|
$author_name = get_the_author_meta('display_name');
|
|
$author_description = get_the_author_meta('description', $author_id);
|
|
$author_avatar = get_avatar_url( $author_id, array(
|
|
'size' => 450,
|
|
'default'=>'mystery',
|
|
) );
|
|
?>
|
|
<div class="author-bio_container ppd-container layout">
|
|
<div class="author-bio__img">
|
|
<img src="<?php echo $author_avatar; ?>" />
|
|
</div>
|
|
<div class="author-bio__txt">
|
|
<span class="author-bio__name-label">Автор</span>
|
|
<p class="author-bio__name"><?php echo $author_name; ?></p>
|
|
<p class="author-bio__description"><?php echo $author_description; ?></p>
|
|
</div>
|
|
</div>
|
|
<div class="layout ppd-container align-start column_mobile">
|
|
<div class="layout column align-end links-container" style="min-width: 288px;">
|
|
<div class="layout align-center" style="min-width: 288px; height: 36px; margin-left: 12px;">
|
|
<div style="font-weight: 500; font-size: 17px; margin-right: 12px;">Мы в соц.сетях</div>
|
|
<?php if (have_rows('social_links', 'option')) : ?>
|
|
<?php while (have_rows('social_links', 'option')) : the_row(); ?>
|
|
<a href="<?= get_sub_field('social_link'); ?>" target="_blank" style="width: 26px; height: 26px; margin: 0px 2px;"><img src="<?= get_sub_field('social_icon')['url'] ?>" style="width: 26px; height: 26px;" alt="logo"></a>
|
|
<?php endwhile; ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layout ppd-container column">
|
|
<div class="layout article-cards wrap">
|
|
<?php
|
|
echo do_shortcode('[ajax_load_more post_type="post" container_type="div" posts_per_page="8" scroll="false" button_label="Показать ещё" button_loading_label="Загрузка..." author="'.$author_id.'"]');
|
|
echo '</div>';
|
|
echo '</div>';
|
|
}
|
|
get_footer();
|
|
?>
|