wp redesign

This commit is contained in:
Jerry
2022-11-08 14:50:27 +01:00
parent 7ba868e59f
commit 36951740a5
70 changed files with 473 additions and 24105 deletions

View File

@@ -30,78 +30,111 @@ if ($tIds !== false) {
?>
<div class="content no-pb">
<div class="th-header">
<h1>FAQs</h1>
</div>
<div class="main-page">
<div class="faq-search">
<div class="cont">
<form method="POST" id="search-form" action="/faq-page">
<input type="text" placeholder="What do you need help with?" name="search_text" value="<?= enableSearchQuery()?$_POST['search_text']:''?>">
<a href="#" class="start-search">
<span class="icon-search"></span>
</a>
</form>
</div>
</div>
<div class="breadcrumbs">
<div class="cont">
<ol class="breadcrumb">
<li><a href="#">Home</a></li>
<li class="active">FAQs</li>
</ol>
<div class="inner-cont">
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li class="active">FAQ</li>
</ol>
</div>
</div>
</div>
<div class="page-head">
<div class="cont">
<div class="inner-cont">
<h1>Frequently Asked Questions</h1>
</div>
</div>
</div>
<div class="faq-list">
<div class="cont">
<?php foreach ($terms as $term):?>
<div class="front-accordion">
<div class="fa-head">
<a class="collapse-link" data-toggle="collapse" href="#fc-<?= $term->term_id ?>" aria-expanded="true"><span class="icon-caret"></span> <?= $term->name?></a>
<div class="inner-cont">
<div class="faq-search">
<div class="search-input with-btn">
<form method="POST" class="si-flex" id="search-form" action="/faq-page">
<div class="left">
<span class="icon-search hide-sm"></span>
<button type="reset" class="button clear link">
<span class="icon-close"></span>
</button>
<input
type="text"
class="form-control"
placeholder="What do you need help with?"
name="search_text"
value="<?= enableSearchQuery()?$_POST['search_text']:''?>"
>
</div>
<div class="right">
<button type="submit" class="button action start-search">
<span class="icon-search show-sm"></span>
<span class="btn-text hide-sm">Search</span>
</button>
</div>
</form>
</div>
</div>
<div class="fa-body collapse in" id="fc-<?= $term->term_id ?>">
<div class="fa-cont">
<?php
$posts = getFaqPosts(['post_type' => 'fac_category_answer',
'numberposts' => -1,
'suppress_filters' => false,
'tax_query' => [
[
'taxonomy' => 'fac_category_type',
'field' => 'id',
'terms' => $term->term_id,
'include_children' => false
<?php foreach ($terms as $term):?>
<div class="front-accordion">
<div class="fa-head">
<button class="button borderless collapse-toggle" data-bs-target="#fc-<?= $term->term_id ?>" data-bs-toggle="collapse" role="button" aria-expanded="true">
<?= $term->name?>
<span class="icon-down"></span>
</button>
</div>
<div class="fa-body collapse show" id="fc-<?= $term->term_id ?>">
<div class="fa-cont">
<?php
$posts = getFaqPosts(['post_type' => 'fac_category_answer',
'numberposts' => -1,
'suppress_filters' => false,
'tax_query' => [
[
'taxonomy' => 'fac_category_type',
'field' => 'id',
'terms' => $term->term_id,
'include_children' => false
]
]
]
]);
foreach ($posts as $post) {
]);
foreach ($posts as $post) {
echo '
<div class="faq-question">
<a href="'.get_permalink($post).'">'.$post->post_title.'</a>
</div>
';
}
echo '
<div class="faq-question">
<a href="'.get_permalink($post).'">'.$post->post_title.'</a>
</div>
';
}
?>
?>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
<div class="mp-feature with-bg bot-form">
<div class="cont">
<div class="inner-cont">
<div class="flex">
<div class="col">
<div class="mp-interested centered">
<h4>Interested? Get to know more</h4>
<div class="buttons">
<a href="/contact-us" class="button action big">Request a demo</a>
<a href="<?= get_lawcarta_url()?>/user/registration" class="button secondary big">Sign Up For Free</a>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<div class="mp-small-block">
<div class="cont">
<div class="sb-head">Interested? Get to know more</div>
<div class="buttons">
<a href="/contact-us" class="button xxl mp-top-right">Request a demo</a>
<a href="<?= get_lawcarta_url()?>/user/registration" class="button xxl mp-top-left">Sign Up For Free</a>
</div>
</div>
</div>
</div>
</div>
<?php
get_footer();