new
This commit is contained in:
@@ -9,6 +9,10 @@ $intro = isset( $content['intro'] ) ? $content['intro'] : array();
|
||||
$cards = isset( $content['cards'] ) ? $content['cards'] : array();
|
||||
$formats = isset( $content['formats'] ) ? $content['formats'] : array();
|
||||
$faq = isset( $content['faq'] ) ? $content['faq'] : array();
|
||||
$prices = isset( $content['price_cards'] ) ? $content['price_cards'] : array();
|
||||
$terms = isset( $content['conditions'] ) ? $content['conditions'] : array();
|
||||
$reviews = isset( $content['reviews'] ) ? $content['reviews'] : array();
|
||||
$links = isset( $content['related_links'] ) ? $content['related_links'] : array();
|
||||
|
||||
get_header();
|
||||
?>
|
||||
@@ -92,6 +96,28 @@ get_header();
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $prices ) : ?>
|
||||
<section class="service-prices">
|
||||
<div class="service-prices__inner">
|
||||
<div class="service-prices__head">
|
||||
<span class="section-kicker">Ориентиры</span>
|
||||
<h2 class="section-title">Цены и условия расчета</h2>
|
||||
<p class="service-prices__lead">Финальная стоимость зависит от веса, начинки, декора, срочности и доставки. Ниже указаны ориентиры, точный расчет сделаем после заявки.</p>
|
||||
</div>
|
||||
<div class="service-prices__grid">
|
||||
<?php foreach ( $prices as $item ) : ?>
|
||||
<article class="service-price-card">
|
||||
<span class="service-price-card__price"><?php echo esc_html( $item['price'] ); ?></span>
|
||||
<h3 class="service-price-card__title"><?php echo esc_html( $item['title'] ); ?></h3>
|
||||
<p class="service-price-card__text"><?php echo esc_html( $item['text'] ); ?></p>
|
||||
</article>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<button class="button-main" type="button" data-lead-open data-lead-source="Получить расчет: блок цен <?php echo esc_attr( $page['label'] ); ?>">Получить точный расчет</button>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $formats ) : ?>
|
||||
<section class="service-formats">
|
||||
<div class="service-formats__inner">
|
||||
@@ -108,6 +134,45 @@ get_header();
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $terms ) : ?>
|
||||
<section class="service-terms">
|
||||
<div class="service-terms__inner">
|
||||
<div class="service-terms__head">
|
||||
<span class="section-kicker">Важно</span>
|
||||
<h2 class="section-title">Условия заказа</h2>
|
||||
</div>
|
||||
<div class="service-terms__grid">
|
||||
<?php foreach ( $terms as $item ) : ?>
|
||||
<article class="service-term-card">
|
||||
<h3 class="service-term-card__title"><?php echo esc_html( $item['title'] ); ?></h3>
|
||||
<p class="service-term-card__text"><?php echo esc_html( $item['text'] ); ?></p>
|
||||
</article>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $reviews ) : ?>
|
||||
<section class="service-reviews">
|
||||
<div class="service-reviews__inner">
|
||||
<div class="service-reviews__head">
|
||||
<span class="section-kicker">Отзывы</span>
|
||||
<h2 class="section-title">Что говорят клиенты</h2>
|
||||
</div>
|
||||
<div class="service-reviews__grid">
|
||||
<?php foreach ( $reviews as $item ) : ?>
|
||||
<article class="service-review-card">
|
||||
<p class="service-review-card__text"><?php echo esc_html( $item['text'] ); ?></p>
|
||||
<span class="service-review-card__author"><?php echo esc_html( $item['name'] ); ?></span>
|
||||
<span class="service-review-card__occasion"><?php echo esc_html( $item['occasion'] ); ?></span>
|
||||
</article>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<section class="service-process">
|
||||
<div class="service-process__inner">
|
||||
<div class="service-process__content">
|
||||
@@ -145,6 +210,25 @@ get_header();
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $links ) : ?>
|
||||
<section class="service-related">
|
||||
<div class="service-related__inner">
|
||||
<div class="service-related__head">
|
||||
<span class="section-kicker">Полезно</span>
|
||||
<h2 class="section-title">Разделы, которые помогут с выбором</h2>
|
||||
</div>
|
||||
<div class="service-related__grid">
|
||||
<?php foreach ( $links as $item ) : ?>
|
||||
<a class="service-related-card" href="<?php echo esc_url( home_url( $item['url'] ) ); ?>">
|
||||
<span class="service-related-card__title"><?php echo esc_html( $item['title'] ); ?></span>
|
||||
<span class="service-related-card__text"><?php echo esc_html( $item['text'] ); ?></span>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<section class="service-lead" id="lead-form">
|
||||
<div class="service-lead__inner">
|
||||
<div class="service-lead__content">
|
||||
|
||||
Reference in New Issue
Block a user