-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-client-questions-answers.php
38 lines (38 loc) · 1.82 KB
/
page-client-questions-answers.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/*
Template Name: Вопросы и ответы
Template Post Type: page
*/
?>
<?php get_header(); ?>
<div class="client">
<h1 class="title-h1 client__title"><?php the_title(); ?></h1>
<div class="container client__wrapper">
<section class="client__container">
<div class="akkardion-faq">
<?php
$question_answers = get_field('question-answer');
if($question_answers) {
foreach($question_answers as $question_answer) {
$question_vopros = $question_answer['question-vopros'];
$question_otvet = $question_answer['question-otvet'];
echo '<div class="akkardion__wrapper"><h4 class="akkardion__title">— '. $question_vopros . '</h4><p class="akkardion__text">' . $question_otvet . '</p></div>';
}
}
?>
</div>
</section>
<button class="title-h3 client__nav_btn">Навигация</button>
<div class="client__nav">
<button class="client__nav_esc"></button>
<div class="title-h3 client__nav_title">Быстрая Навигация:</div>
<ul class="client__nav_links">
<li class="client__nav_link"><a href="<?php echo get_permalink(34); ?>" class="text"><span>Условия сотрудничества</span></a></li>
<li class="client__nav_link"><a href="<?php echo get_permalink(22); ?>" class="text"><span>Доставка и оплата</span></a></li>
<li class="client__nav_link"><a href="<?php echo get_permalink(18); ?>" class="text"><span>Возврат и обмен</span></a></li>
<li class="client__nav_link active"><a href="<?php echo get_permalink(20); ?>" class="text">Вопросы и ответы</a></li>
</ul>
</div>
</div>
</div>
<?php get_footer(); ?>