File: //proc/7575/cwd/wp-content/themes/polygant_2025/page-home.php
<?php
/**
* Template Name: Home
*/
get_header('new');
get_template_part('template-parts/hero-section');
get_template_part('template-parts/services-section');
get_template_part('template-parts/cases-section');
//get_template_part('template-parts/res-section');
get_template_part('template-parts/reviews-section');
get_template_part('template-parts/contact-us-section');
?>
<?php if( get_field("faq_-__верхний_заголовок") ): ?>
<?php $faqSchema = ''; ?>
<section class="section-faq-home-page">
<div class="container">
<div class="container-faq-home">
<div class="faq-home-left">
<div class="faq-top-title"><?php the_field('faq_-__верхний_заголовок');?></div>
<div class="faq-title"><?php the_field('faq_-_основной_заголовок');?></div>
<div class="faq-subtitl-wrp">
<img src="https://polygant.net/wp-content/uploads/2023/06/faq.png" alt="">
<div class="faq-subtitl"> <?php the_field('faq_-_текст_под_картинкой');?></div>
</div>
</div>
<div class="faq-home-right">
<div class="daccordion2" id="daccordion2">
<?php if(get_field('faq_вопрос_ответ' , 233 )): ?>
<?php while(has_sub_field('faq_вопрос_ответ' , 233 )): ?>
<?php $faqSchema .= '{
"@type": "Question",
"name": "'.get_sub_field('faq_-_вопрос' , 233 ).'",
"acceptedAnswer": {
"@type": "Answer",
"text": "'.get_sub_field('faq_-_ответ' , 233 ).'"
} },'; ?>
<div class="daccordion__item2">
<div class="daccordion__title2"><?php the_sub_field('faq_-_вопрос' , 233 ); ?><div class="arrac"><svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="5.65625" y="12.728" width="10" height="2" rx="1" transform="rotate(-45 5.65625 12.728)" fill="#29292D"/><rect x="7.07031" y="0.000244141" width="10" height="2" rx="1" transform="rotate(45 7.07031 0.000244141)" fill="#29292D"/></svg> </div></div>
<div class="daccordion__content2"><?php the_sub_field('faq_-_ответ' , 233 ); ?>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity":[
<?php echo rtrim($faqSchema,','); ?>
]
}
</script>
</div>
</div>
</div>
</div>
</section>
<?php else :?>
<?php endif; ?>
<section class="blog">
<div class="container">
<h2 class="blog__title">
<?php the_field('read_our_blog' , 233 );?>
</h2>
<div class="blog__wrapper">
<?php
$posts = get_posts( array(
'numberposts' => 6,
'post_type' => 'blog',
'suppress_filters' => false, // подавление работы фильтров изменения SQL запроса
) );
foreach( $posts as $post ){
setup_postdata($post);
?>
<a href="<?php the_permalink(); ?>" class="blog-item">
<div class="blog-item__title">
<?php the_title(); ?>
</div>
<div class="blog-item__meta">
<div class="blog-item__el">
<div class="blog-item__el-icon">
<svg width="13" height="15" viewBox="0 0 13 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_96_189)">
<path d="M2 15C1.45 15 0.979 14.8043 0.587 14.413C0.195667 14.021 0 13.55 0 13V4C0 3.45 0.195667 2.97933 0.587 2.588C0.979 2.196 1.45 2 2 2H3V0.975C3 0.691667 3.09567 0.458333 3.287 0.275C3.479 0.0916668 3.71667 0 4 0C4.28333 0 4.521 0.0956666 4.713 0.287C4.90433 0.479 5 0.716667 5 1V2H8V0.975C8 0.691667 8.096 0.458333 8.288 0.275C8.47933 0.0916668 8.71667 0 9 0C9.28333 0 9.52067 0.0956666 9.712 0.287C9.904 0.479 10 0.716667 10 1V2H11C11.55 2 12.021 2.196 12.413 2.588C12.8043 2.97933 13 3.45 13 4V13C13 13.55 12.8043 14.021 12.413 14.413C12.021 14.8043 11.55 15 11 15H2ZM2 13H11V6H2V13Z" fill="#9CA1AB"/>
<rect x="4" y="7" width="2" height="2" fill="#9CA1AB"/>
<rect x="4" y="10" width="2" height="2" fill="#9CA1AB"/>
<rect x="7" y="7" width="2" height="2" fill="#9CA1AB"/>
<rect x="7" y="10" width="2" height="2" fill="#9CA1AB"/>
</g>
<defs>
<clipPath id="clip0_96_189">
<rect width="13" height="15" fill="white"/>
</clipPath>
</defs>
</svg>
</div>
<div class="blog-item__el-value">
<?php echo get_the_date('d F Y'); ?>
</div>
</div>
<div class="blog-item__el">
<div class="blog-item__el-icon">
<svg width="19" height="12" viewBox="0 0 19 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_96_195)">
<path d="M9.5 0C5.18182 0 1.49409 2.488 0 6C1.49409 9.512 5.18182 12 9.5 12C13.8182 12 17.5059 9.512 19 6C17.5059 2.488 13.8182 0 9.5 0ZM9.5 10C7.11636 10 5.18182 8.208 5.18182 6C5.18182 3.792 7.11636 2 9.5 2C11.8836 2 13.8182 3.792 13.8182 6C13.8182 8.208 11.8836 10 9.5 10ZM9.5 3.6C8.06636 3.6 6.90909 4.672 6.90909 6C6.90909 7.328 8.06636 8.4 9.5 8.4C10.9336 8.4 12.0909 7.328 12.0909 6C12.0909 4.672 10.9336 3.6 9.5 3.6Z" fill="#9CA1AB"/>
</g>
<defs>
<clipPath id="clip0_96_195">
<rect width="19" height="12" fill="white"/>
</clipPath>
</defs>
</svg>
</div>
<div class="blog-item__el-value">
<?php pvc_post_views(get_the_ID(), true); ?>
</div>
</div>
</div>
</a>
<?php
}
wp_reset_postdata(); // сброс
?>
</div>
<a href="/blog/" class="blog__link">
<?php the_field('read_more_2' , 233 );?>
<svg width="8" height="13" viewBox="0 0 8 13" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M0.701814 10.821C0.357147 11.1657 0.357146 11.7245 0.701814 12.0692C1.04648 12.4138 1.6053 12.4138 1.94997 12.0692L7.0567 6.96242C7.06091 6.95836 7.0651 6.95426 7.06925 6.95011C7.30422 6.71514 7.379 6.38066 7.29361 6.08234C7.25375 5.94299 7.17895 5.81152 7.0692 5.70177C7.06612 5.69869 7.06303 5.69564 7.05991 5.69262L1.99144 0.624142C1.64677 0.279475 1.08796 0.279475 0.743289 0.624143C0.398621 0.96881 0.398622 1.52763 0.743289 1.8723L5.1969 6.32591L0.701814 10.821Z"
fill="#6352CD" />
</svg>
</a>
</div>
</section>
<?php
// //sliders section
// get_template_part('template-parts/section', 'sliders');
// //Hire Developers
// get_template_part('template-parts/section', 'developers');
// //carousel recommendation
// get_template_part('template-parts/section', 'recommend');
// //carousel recommendation
// get_template_part('template-parts/section', 'grid');
// //carousel recommendation
// get_template_part('template-parts/section', 'location');
// //carousel recommendation
// get_template_part('template-parts/section', 'form');
get_footer('new');
?>
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>