/home/bdqbpbxa/demo-subdomains/ecosphere.goodface.com.ua/wp-content/themes/ecosphere/footer.php
<?php $current_lang = pll_current_language(); ?>
<?php
if (!is_front_page()) :
?>
<footer class="footer text-3 mob-text-3">
<div class="container">
<div class="footer__mob">
<?php
$footer_link = get_field("footer-link-{$current_lang}", "option");
$footer_link_obj = getLink($footer_link);
if ($footer_link_obj['displayed']) :
?>
<a href="<?php echo $footer_link_obj['url']; ?>" target="_blank" class="default-link -light">
<?php echo $footer_link_obj['title']; ?>
</a>
<?php
endif;
?>
</div>
<div class="footer__content">
<div class="footer__left">
<?php
$copyright = get_field("copyright-{$current_lang}", "option");
if ($copyright) :
?>
<span><?php echo $copyright; ?></span>
<?php
endif;
?>
<?php
$footer_link = get_field("footer-link-{$current_lang}", "option");
$footer_link_obj = getLink($footer_link);
if ($footer_link_obj['displayed']) :
?>
<a href="<?php echo $footer_link_obj['url']; ?>" target="_blank" class="default-link -light">
<?php echo $footer_link_obj['title']; ?>
</a>
<?php
endif;
?>
</div>
<div class="footer__right">
<?php
if ($current_lang == 'en') {
echo 'Website development';
} else {
echo 'Розробка сайту';
}
?>
<a
href="https://goodface.agency/"
target="_blank"
class="default-link -light"
>
Goodface
</a>
</div>
</div>
</div>
</footer>
<?php
endif;
?>
</div>
<?php
if (is_singular('brand') || is_page_template('products.php')) :
?>
<div class="modal-bg" >
<div class="package-modal">
<div class="close"></div>
<div class="package-modal__content --tabs-container">
</div>
</div>
</div>
<div class="removed-div">
<?php
$posts = get_posts([
'numberposts' => -1,
'post_type' => 'package-format',
]);
foreach($posts as $post) {
$format = get_field('format', $post);
$packagesObject[$post->ID] = $format;
}
?>
<script>
var packagesObject = {
<?php
foreach($packagesObject as $key=>$item) :
?>
'<?php echo $key; ?>' : {
'name' : '<?php echo $item['name']; ?>',
'weight' : '<?php echo $item['weight']; ?>',
'table' : {
<?php
foreach($item['format-table'] as $key=>$row) :
?>
'<?php echo $key?>' : {
'item-1' : `<?php echo $row['item-1']?>`,
'item-2' : `<?php echo $row['item-2']?>`,
'item-3' : `<?php echo $row['item-3']?>`,
},
<?php
endforeach;
?>
},
},
<?php
endforeach;
?>
};
</script>
</div>
<?php
endif;
if (is_page_template('products.php')) :
?>
<span class="site-link-img">
<span class="content">
<svg width="13" height="12" viewBox="0 0 13 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 1C2.5 0.447715 2.94772 0 3.5 0H11.5C12.0523 0 12.5 0.447715 12.5 1V9C12.5 9.55229 12.0523 10 11.5 10C10.9477 10 10.5 9.55229 10.5 9V3.41421L2.20711 11.7071C1.81658 12.0976 1.18342 12.0976 0.792893 11.7071C0.402369 11.3166 0.402369 10.6834 0.792893 10.2929L9.08579 2H3.5C2.94772 2 2.5 1.55228 2.5 1Z" fill="#F1F8EF"/>
</svg>
<span>
Text
</span>
</span>
</span>
<?php
endif;
?>
<?php
wp_footer();
?>
</body>
</html>