2025-02-26 20:30:02 +03:00
|
|
|
<?php get_header(); ?>
|
|
|
|
|
<div class="content-middle articles-wrapper">
|
|
|
|
|
<?php get_template_part('partials/rubrics-mobile'); ?>
|
|
|
|
|
|
|
|
|
|
<div class="section-title desktop">
|
|
|
|
|
<h1 class="section-title__title"><?= get_the_author(); ?></h1>
|
|
|
|
|
</div>
|
|
|
|
|
|
2025-07-25 21:05:36 +03:00
|
|
|
<?php if (!is_paged()) {
|
|
|
|
|
$author_description = get_the_author_meta('description');
|
|
|
|
|
if (!empty($author_description)) {
|
|
|
|
|
echo '<div class="article-item__text">';
|
|
|
|
|
echo nl2br(esc_html($author_description));
|
|
|
|
|
echo '</div>';
|
|
|
|
|
}
|
|
|
|
|
}?>
|
|
|
|
|
|
2025-02-26 20:30:02 +03:00
|
|
|
<div class="articles-preview">
|
|
|
|
|
<?php
|
|
|
|
|
$paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;
|
|
|
|
|
$args = array(
|
|
|
|
|
'post_type' => 'post',
|
|
|
|
|
'posts_per_page' => 11,
|
|
|
|
|
'paged' => $paged,
|
|
|
|
|
'author' => get_queried_object_id()
|
|
|
|
|
);
|
|
|
|
|
$query = new WP_Query($args);
|
|
|
|
|
?>
|
|
|
|
|
<?php get_template_part('partials/post-list', null, ['query' => $query]); ?>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php custom_pagination(); ?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php get_footer(); ?>
|