new format author and date
This commit is contained in:
@@ -6,6 +6,15 @@
|
|||||||
<h1 class="section-title__title"><?= get_the_author(); ?></h1>
|
<h1 class="section-title__title"><?= get_the_author(); ?></h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?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>';
|
||||||
|
}
|
||||||
|
}?>
|
||||||
|
|
||||||
<div class="articles-preview">
|
<div class="articles-preview">
|
||||||
<?php
|
<?php
|
||||||
$paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;
|
$paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;
|
||||||
|
|||||||
@@ -18,29 +18,36 @@
|
|||||||
|
|
||||||
'3' => [
|
'3' => [
|
||||||
'name' => 'Юлия Макеева',
|
'name' => 'Юлия Макеева',
|
||||||
'position' => 'Редактор сайта',
|
'position' => 'директор по медиапродуктам',
|
||||||
'image' => 'https://vetandlife.ru/wp-content/uploads/2021/12/makeeva.png'
|
'image' => 'https://vetandlife.ru/wp-content/uploads/2021/12/makeeva.png'
|
||||||
],
|
],
|
||||||
|
|
||||||
'4' => [
|
'4' => [
|
||||||
|
'name' => 'Александра Рыжкова',
|
||||||
|
'position' => 'замдиректора по медиапродуктам',
|
||||||
|
'image' => 'https://agroexpert.press/wp-content/uploads/2025/07/aleksandra-ryzhkova.jpg'
|
||||||
|
],
|
||||||
|
|
||||||
|
|
||||||
|
'5' => [
|
||||||
'name' => 'Елена Орехова',
|
'name' => 'Елена Орехова',
|
||||||
'position' => 'Заместитель редактора',
|
'position' => 'Редактор сайта',
|
||||||
'image' => 'https://agroexpert.press/wp-content/uploads/2024/04/orexova.jpg'
|
'image' => 'https://agroexpert.press/wp-content/uploads/2024/04/orexova.jpg'
|
||||||
],
|
],
|
||||||
|
|
||||||
'5' => [
|
'6' => [
|
||||||
'name' => 'Елена Каримова',
|
'name' => 'Елена Каримова',
|
||||||
'position' => 'Научный обозреватель',
|
'position' => 'Научный обозреватель',
|
||||||
'image' => 'https://agroexpert.press/wp-content/uploads/2024/04/karimova.jpg'
|
'image' => 'https://agroexpert.press/wp-content/uploads/2024/04/karimova.jpg'
|
||||||
],
|
],
|
||||||
|
|
||||||
'6' => [
|
'7' => [
|
||||||
'name' => 'Ильяс Левашов',
|
'name' => 'Ильяс Левашов',
|
||||||
'position' => 'Автор',
|
'position' => 'Автор',
|
||||||
'image' => 'https://vetandlife.ru/wp-content/uploads/2024/04/iilyas-levashov.jpg'
|
'image' => 'https://vetandlife.ru/wp-content/uploads/2024/04/iilyas-levashov.jpg'
|
||||||
],
|
],
|
||||||
|
|
||||||
'7' => [
|
'8' => [
|
||||||
'name' => 'Юлия Ликарчук',
|
'name' => 'Юлия Ликарчук',
|
||||||
'position' => 'Автор',
|
'position' => 'Автор',
|
||||||
'image' => 'https://vetandlife.ru/wp-content/uploads/2021/12/likarchyk.png'
|
'image' => 'https://vetandlife.ru/wp-content/uploads/2021/12/likarchyk.png'
|
||||||
|
|||||||
@@ -19,6 +19,10 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.byline{
|
||||||
|
margin-bottom: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 1024px) {
|
@media (max-width: 1024px) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
18
single.php
18
single.php
@@ -13,8 +13,9 @@
|
|||||||
<?php
|
<?php
|
||||||
$formatted_date = format_event_date();
|
$formatted_date = format_event_date();
|
||||||
?>
|
?>
|
||||||
|
<time datetime="<?php echo get_the_date('c'); ?>">
|
||||||
<?= $formatted_date; ?>
|
<?= $formatted_date; ?>
|
||||||
|
</time>
|
||||||
<? endif; ?>
|
<? endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php if (!in_category('partners')) : ?>
|
<?php if (!in_category('partners')) : ?>
|
||||||
@@ -29,15 +30,12 @@
|
|||||||
|
|
||||||
<?php if (!in_category('partners')) : ?>
|
<?php if (!in_category('partners')) : ?>
|
||||||
<?php if ( $author AND $author->display_name !== 'agroexpert.press' AND $author->display_name !== 'Анна Купровская') : ?>
|
<?php if ( $author AND $author->display_name !== 'agroexpert.press' AND $author->display_name !== 'Анна Купровская') : ?>
|
||||||
<div class="article-author">
|
<p class="byline">
|
||||||
<div class="article-author__name">
|
Автор <span class="article-author__name">
|
||||||
<a href="<?= get_author_posts_url($author->ID); ?>">
|
<a href="<?= get_author_posts_url($author->ID); ?>">
|
||||||
<?= $author->display_name; ?></a><br>
|
<?=$author->display_name; ?></a>
|
||||||
<? if ( $author->description !== '' ):?>
|
</span>
|
||||||
<?=$author->description?>
|
</p>
|
||||||
<?endif?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="article-single__content">
|
<div class="article-single__content">
|
||||||
|
|||||||
Reference in New Issue
Block a user