77 lines
No EOL
4 KiB
PHP
77 lines
No EOL
4 KiB
PHP
<?php
|
|
$professions = get_field('professions', 'options');
|
|
?>
|
|
|
|
<?php if(!empty($professions)) : ?>
|
|
|
|
<?php if(!isset($list_only)) : ?>
|
|
<div class="professions fw fw-container">
|
|
<div class="professions__wrapper wrapper">
|
|
<?php if(!empty($professions['title']) || !empty($professions['subtitle']['text'])) : ?>
|
|
<h2 class="professions__title textblock__title title">
|
|
<?php if(!empty($professions['title'])) : ?>
|
|
<span class="title-text"><?php echo $professions['title']; ?></span>
|
|
<?php endif; ?>
|
|
|
|
<?php if(!empty($professions['subtitle'])) : ?>
|
|
<span class="professions__subtitle subtitle-text textblock__subtitle subtitle subtitle_paint"><?php echo $professions['subtitle']; ?></span>
|
|
<?php endif; ?>
|
|
</h2>
|
|
<?php endif; ?>
|
|
|
|
<?php if(!empty($professions['text']) && empty($hide_text)) : ?>
|
|
<div class="professions__text description"><?php echo $professions['text']; ?></div>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if(!empty($professions['list'])) : ?>
|
|
<div class="professions__list professions-list">
|
|
<?php foreach($professions['list'] as $p) : ?>
|
|
<div class="professions-list__item professions-item">
|
|
<?php if(!empty($p['image'])) : ?>
|
|
<div class="professions-item__image">
|
|
<div class="image-border-wrap">
|
|
<img src="<?php echo $p['image']; ?>" alt="<?php echo (!empty($p['title']) ? $p['title'] : ' '); ?>" />
|
|
|
|
<?php
|
|
$borders = $p['image_borders'];
|
|
set_query_var('borders', $borders);
|
|
get_template_part('partials/borders');
|
|
?>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="professions-item__info">
|
|
|
|
<?php if(!empty($p['title'])) : ?>
|
|
<h3 class="professions-item__title subtitle"><?php echo $p['title']; ?></h3>
|
|
<?php endif; ?>
|
|
|
|
<?php if(!empty($p['text'])) : ?>
|
|
<div class="professions-item__text description"><?php echo $p['text']; ?></div>
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
<?php if(!empty($p['button']['url']) && empty($hide_links)) : ?>
|
|
<div class="professions-item__btn-wrap">
|
|
<a class="professions-item__btn btn anchor-scroll" href="<?php echo $p['button']['url']; ?>" title="<?php echo $p['title']; ?>"><?php echo $p['title']; ?> <i class="btn__icon btn__icon_arrow-right"></i></a>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if(!empty($professions['button']['url']) && empty($hide_btn)) : ?>
|
|
<div class="professions__btn-wrap">
|
|
<a class="professions__btn btn" href="<?php echo $professions['button']['url']; ?>" target="<?php echo $professions['button']['target']; ?>" title="<?php echo $professions['button']['title']; ?>"><?php echo $professions['button']['title']; ?> <i class="btn__icon btn__icon_arrow-right"></i></a>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if(!isset($list_only)) : ?>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php endif; ?>
|