update to ver 3-09-25

This commit is contained in:
argoexpert press
2025-09-03 00:13:32 +03:00
parent 60037c5091
commit f99899e53e
12 changed files with 236 additions and 108 deletions

View File

@@ -1,49 +1,90 @@
<?php get_header(); ?>
<?php get_header( 'rfo' ); ?>
<?php if (in_category('events')) : ?>
<?php get_template_part('single-events'); ?>
<? else : ?>
<div class="content-middle articles-wrapper">
<?php get_template_part('partials/rubrics-mobile'); ?>
<div class="content-rfo">
<?php get_template_part('spravochniki/breadcrumbs'); ?>
<h1 class="rfo__rubric"><?php the_title(); ?></h1>
<div class="article-single">
<div class="article-time article-single__time">
<?php if (!in_category('partners')) : ?>
<img src="<?= get_asset('/icons/time.svg'); ?>" alt="" />
<?php
$formatted_date = format_event_date();
?>
<?= $formatted_date; ?>
<div class="featured-post">
<?if ( has_post_thumbnail() ) :?>
<div class="featured-image-dir-wrapper">
<div class="featured-image-dir">
<!--<img src="https://agroexpert.press/wp-content/uploads/2024/06/korma-proizvodstvo.jpg" />-->
<?php the_post_thumbnail(); ?>
</div>
</div>
<div class="photo-credit-tag">
<span><?the_post_thumbnail_caption()?></span>
</div>
<? endif; ?>
</div>
<?php if (!in_category('partners')) : ?>
<div class="article-single__tag"><?=get_category_name(); ?></div>
<? endif; ?>
<h1 class="article-single__title">
<?php the_title(); ?>
</h1>
<div class="article-single__content">
<?php
//$content = get_the_content();
$post_id = get_the_ID();
if ( $post_id == 26011 ) {
the_content();
} else {
$content = apply_filters('the_content', get_the_content());
echo replace_first_figure_in_content($content);
}
//the_content(); ?>
<div class="article-social">Подписывайтесь на нас в <a href="https://dzen.ru/agroexpert_press?favid=254170145" target="_blank">Дзен</a> и <a href="https://t.me/agroexpert_press" target="_blank">Telegram</a></div>
</div>
</div>
<div class="article-single--rfo">
<div class="article-info--rfo">
<div class="article-info-element--rfo">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_362_2372)">
<circle cx="12" cy="12" r="9" stroke="#006842" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
<path d="M12 8V13.3333H16.3333" stroke="#006842" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</g>
<defs>
<clipPath id="clip0_362_2372">
<rect width="24" height="24" fill="white" />
</clipPath>
</defs>
</svg>
<div><?=calculate_reading_time()?> на прочтение</div>
</div>
</div>
<div class="article-text--rfo">
<?php
//$content = get_the_content();
$post_id = get_the_ID();
//echo replace_first_figure_in_content($content);
$content = apply_filters('the_content', get_the_content());
echo delete_first_figure_in_content($content);?>
<div class="social-post--rfo">
<div class="social-post-info--rfo">Подписывайтесь на нас в <a href="https://dzen.ru/agroexpert_press?favid=254170145" target="_blank">Дзен</a> и <a href="https://t.me/agroexpert_press" target="_blank">Telegram</a></div>
<div class="social-post-icons--rfo">
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="36" height="36" rx="10" fill="white" />
<path d="M19.7357 19.7357C18.3214 21.195 18.2186 23.0143 18.0964 27C21.8121 27 24.3771 26.9871 25.7014 25.7014C26.9871 24.3771 27 21.69 27 18.0964C23.0143 18.225 21.195 18.3214 19.7357 19.7357ZM9 18.0964C9 21.69 9.01286 24.3771 10.2986 25.7014C11.6229 26.9871 14.1879 27 17.9036 27C17.775 23.0143 17.6786 21.195 16.2643 19.7357C14.805 18.3214 12.9857 18.2186 9 18.0964ZM17.9036 9C14.1943 9 11.6229 9.01286 10.2986 10.2986C9.01286 11.6229 9 14.31 9 17.9036C12.9857 17.775 14.805 17.6786 16.2643 16.2643C17.6786 14.805 17.7814 12.9857 17.9036 9ZM19.7357 16.2643C18.3214 14.805 18.2186 12.9857 18.0964 9C21.8121 9 24.3771 9.01286 25.7014 10.2986C26.9871 11.6229 27 14.31 27 17.9036C23.0143 17.775 21.195 17.6786 19.7357 16.2643Z" fill="black" />
<path d="M27 18.0964V17.9036C23.0143 17.775 21.195 17.6786 19.7357 16.2643C18.3214 14.805 18.2186 12.9857 18.0964 9H17.9036C17.775 12.9857 17.6786 14.805 16.2643 16.2643C14.805 17.6786 12.9857 17.7814 9 17.9036V18.0964C12.9857 18.225 14.805 18.3214 16.2643 19.7357C17.6786 21.195 17.7814 23.0143 17.9036 27H18.0964C18.225 23.0143 18.3214 21.195 19.7357 19.7357C21.195 18.3214 23.0143 18.2186 27 18.0964Z" fill="white" />
</svg>
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="36" height="36" rx="10" fill="white" />
<path d="M26.1 11.3418L23.3951 25.4628C23.3951 25.4628 23.0167 26.4419 21.977 25.9724L15.7361 21.0171L15.7072 21.0025C16.5502 20.2187 23.0872 14.1322 23.3729 13.8563C23.8151 13.429 23.5406 13.1747 23.027 13.4974L13.3711 19.8475L9.64587 18.5495C9.64587 18.5495 9.05963 18.3335 9.00323 17.864C8.94609 17.3937 9.66517 17.1393 9.66517 17.1393L24.8518 10.9699C24.8518 10.9699 26.1 10.4019 26.1 11.3418Z" fill="black" />
</svg>
</div>
</div>
</div>
</div>
</div>
<?php // get_template_part('partials/rtb-single'); ?>
<?php get_template_part('partials/featured-posts'); ?>
<?php if (!in_category('partners')) : ?>
<?php get_template_part('partials/related-posts'); ?>
<?php get_template_part('rfo/related-posts'); ?>
<? else : ?>
<div class="section-title">
<h2 class="section-title__title subtitle-18">Еще по теме</h2>
@@ -68,12 +109,14 @@
<? endforeach; ?>
</div>
<? endif; ?>
<a href="<?= home_url(); ?>" class="articles-preview__show-next desktop">На главную</a>
<div class="article-show-next__rfo">
<a href="<?= home_url(); ?>/rfo">На главную</a>
</div>
<div class="articles__spacer-container">
<div class="articles__spacer"></div>
<div class="articles__spacer"></div>
</div>
</div>
<? endif; ?>
<?php get_footer(); ?>
<?php get_footer( 'rfo' ); ?>