/home/bdqbpbxa/demo-subdomains/homesearch.goodface.com.ua/wp-content/themes/homesearch/about-us.php
<?php
// Template name: About us
get_header();
?>
<main>
<?php
get_template_part('templates/inner-page-main');
$srcset = get_template_directory_uri() . "/assets/images/lazyload.png";
?>
<?php
$text_section = get_field('text_section');
if ($text_section['content']) :
?>
<section class="about-us-main <?php echo get_section_color($text_section['block_color']); ?>">
<div class="container -smaller">
<div class="about-us-main__content editor -max-width-710">
<?php echo $text_section['content']; ?>
</div>
</div>
</section>
<?php
endif;
?>
<?php
$awards = get_field('awards-section');
if ($awards['title'] && $awards['awards_list']) :
?>
<section class="awards-section">
<div class="container -smaller">
<h2 class="title-2 mob-title-2 -centered-title"><?php echo $awards['title']; ?></h2>
<div class="info-card-list -max-width-1120">
<?php
foreach($awards['awards_list'] as $item) {
$args['link_class'] = '--rectangle-arrow-link';
$args['obj'] = $item;
get_template_part('templates/cards/info-card-award', null, $args);
}
?>
</div>
</div>
</section>
<?php
endif;
?>
<?php
$team_section = get_field('team_section');
if ($team_section['text_content']) :
?>
<section class="team-section <?php echo get_section_color($team_section['block_color']); ?>">
<div class="container">
<div class="editor">
<?php echo $team_section['text_content']; ?>
</div>
<?php
if ($team_section['bigger_card_list']) :
?>
<div class="team-bigger-list">
<?php
foreach($team_section['bigger_card_list'] as $item) {
$args['obj'] = $item;
$args['card_type'] = 'bigger';
get_template_part('templates/cards/team-card', null, $args);
}
?>
</div>
<?php
endif;
?>
</div>
<?php
if ($team_section['smaller_card_list']) :
?>
<div class="container -smaller">
<div class="team-smaller-list">
<?php
foreach($team_section['smaller_card_list'] as $item) {
$args['obj'] = $item;
$args['card_type'] = 'smaller';
get_template_part('templates/cards/team-card', null, $args);
}
?>
</div>
</div>
<?php
endif;
?>
</section>
<?php
endif;
?>
<?php
$agents_section = get_field('agents_section');
if ($agents_section['title']) :
?>
<section class="clients-section <?php echo get_section_color($agents_section['block_color']); ?>">
<div class="container -smaller">
<h2 class="title title-2 mob-title-2 -centered-title">
<?php echo $agents_section['title']; ?>
</h2>
<?php
if ($agents_section['agents_logo']) :
?>
<div class="clients-list">
<?php
foreach($agents_section['agents_logo'] as $item) :
?>
<div class="client-item">
<img
class="-lazyload"
srcset="<?php echo $srcset; ?>"
src="<?php echo $item['url']; ?>"
alt="<?php echo $item['alt']; ?>"
/>
</div>
<?php
endforeach;
?>
</div>
<?php
endif;
?>
</div>
</section>
<?php
endif;
get_template_part('templates/testimonials-section');
$news_container = get_field('news_container');
if ($news_container['title'] && $news_container['news_list']) :
?>
<section class="news-section <?php echo get_section_color($news_container['block_color']); ?>">
<div class="container -smaller">
<h2 class="title-2 mob-title-2 -centered-title"><?php echo $news_container['title']; ?></h2>
<div class="info-card-list -max-width-1120">
<?php
foreach($news_container['news_list'] as $item) {
$args['link_class'] = '--arrow-link';
$args['card_class'] = '-img-auto-width';
$args['obj'] = $item;
get_template_part('templates/cards/info-card-award', null, $args);
}
?>
</div>
</div>
</section>
<?php
endif;
$careers_container = get_field('careers_container');
if ($careers_container['title']) :
?>
<section class="small-info-section <?php echo get_section_color($careers_container['block_color']); ?>">
<div class="container -smaller">
<div class="careers-small-content">
<?php
if ($careers_container['subtitle']) :
?>
<p class="pre-title"><?php echo $careers_container['subtitle']; ?></p>
<?php
endif;
?>
<h2 class="title title-2 mob-title-2"><?php echo $careers_container['title']; ?></h2>
<?php
if ($careers_container['text']) :
?>
<p class="text text-2 mob-text-2">
<?php echo $careers_container['text']; ?>
</p>
<?php
endif;
$link = get_link_group_field($careers_container['link']);
if ($link) :
?>
<a href="<?php echo $link['url']; ?>" <?php echo $link['target']; ?> class="link link-1 mob-link-1 --arrow-link"> <?php echo $link['title']; ?> </a>
<?php
endif;
?>
</div>
</div>
</section>
<?php
endif;
$args = [];
$args['obj'] = get_field('call_to_action')['call_to_action'];
get_template_part('templates/small-info-section', null, $args);
?>
</main>
<?php
get_footer();
?>