/home/bdqbpbxa/demo-subdomains/uvitme.goodface.com.ua/wp-content/themes/uvitme/footer.php
		<?php global $static_frontpage_id, $certificates, $offer, $phone, $mail; ?>
		</main>
		<footer class="footer">
			<div class="container padding">
				<div class="footer__top-block">
					<div class="footer-top__left-block">
						<a href="<?php echo $offer; ?>" target="_blank" class="footer-top-left__link mob body-regular hover">
							<?php pll_e('Публичная оферта'); ?>
						</a>
						<a href="<?php echo $certificates; ?>" target="_blank" class="footer-top-left__link body-regular hover">
							<span class="footer-link__img">
								<svg width="17" height="22" viewBox="0 0 17 22" fill="#D8261E" xmlns="http://www.w3.org/2000/svg">
									<path d="M4.03809 1.34375C4.03809 1.03692 4.28682 0.788193 4.59364 0.788193H12.4061C12.713 0.788193 12.9617 1.03692 12.9617 1.34375V5.25C12.9617 5.55682 12.713 5.80555 12.4061 5.80555H4.59364C4.28682 5.80555 4.03809 5.55682 4.03809 5.25V1.34375ZM5.1492 1.8993V4.69444H11.8506V1.8993H5.1492Z" fill="#D8261E" />
									<path d="M1.46864 3.4618C1.40878 3.4618 1.35138 3.48558 1.30905 3.52791C1.26673 3.57023 1.24295 3.62764 1.24295 3.6875V20.0937C1.24295 20.1536 1.26673 20.211 1.30905 20.2533C1.35138 20.2957 1.40878 20.3194 1.46864 20.3194H15.5311C15.591 20.3194 15.6484 20.2957 15.6907 20.2533C15.7331 20.211 15.7568 20.1536 15.7568 20.0937V3.6875C15.7568 3.62764 15.7331 3.57023 15.6907 3.52791C15.6484 3.48558 15.591 3.4618 15.5311 3.4618H12.4061C12.0993 3.4618 11.8506 3.21307 11.8506 2.90625C11.8506 2.59942 12.0993 2.35069 12.4061 2.35069H15.5311C15.8857 2.35069 16.2257 2.49153 16.4764 2.74223C16.7271 2.99293 16.8679 3.33296 16.8679 3.6875V20.0937C16.8679 20.4483 16.7271 20.7883 16.4764 21.039C16.2257 21.2897 15.8857 21.4306 15.5311 21.4306H1.46864C1.1141 21.4306 0.774078 21.2897 0.523377 21.039C0.272678 20.7883 0.131836 20.4483 0.131836 20.0937V3.6875C0.131836 3.33295 0.272678 2.99293 0.523377 2.74223C0.774077 2.49153 1.1141 2.35069 1.46864 2.35069H4.59364C4.90047 2.35069 5.1492 2.59942 5.1492 2.90625C5.1492 3.21307 4.90047 3.4618 4.59364 3.4618H1.46864Z" fill="#D8261E" />
									<path d="M4.81934 13.8437C4.81934 13.5369 5.06807 13.2882 5.37489 13.2882H11.6249C11.9317 13.2882 12.1804 13.5369 12.1804 13.8437C12.1804 14.1506 11.9317 14.3993 11.6249 14.3993H5.37489C5.06807 14.3993 4.81934 14.1506 4.81934 13.8437Z" fill="#D8261E" />
									<path d="M4.81934 10.7187C4.81934 10.4119 5.06807 10.1632 5.37489 10.1632H11.6249C11.9317 10.1632 12.1804 10.4119 12.1804 10.7187C12.1804 11.0256 11.9317 11.2743 11.6249 11.2743H5.37489C5.06807 11.2743 4.81934 11.0256 4.81934 10.7187Z" fill="#D8261E" />
								</svg>
							</span>
							<p><?php pll_e('Сертификаты HACCP и GMP'); ?></p>
						</a>
					</div>

					<div class="footer-top__right-block">
						<a href="tel:<?php $formattedPhone = preg_replace(array('/\s/', '/\-/', '/\(/', '/\)/'), '', $phone);
										echo $formattedPhone; ?>" class="js-gtm footer-top-right__link body-regular hover phone" data-label="footer" data-event="phone">
							<span class="footer-link__img">
								<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
									<path d="M6.03089 10.189C6.84127 11.8458 8.18424 13.1826 9.84469 13.9855C9.96618 14.043 10.1006 14.068 10.2346 14.0578C10.3687 14.0477 10.4978 14.0028 10.6092 13.9276L13.0541 12.2973C13.1622 12.2252 13.2866 12.1812 13.4161 12.1693C13.5455 12.1574 13.6758 12.178 13.7953 12.2292L18.3692 14.1895C18.5246 14.2555 18.6543 14.3702 18.7388 14.5163C18.8233 14.6625 18.8581 14.8321 18.8378 14.9997C18.6932 16.1309 18.1413 17.1707 17.2853 17.9243C16.4293 18.6779 15.328 19.0937 14.1875 19.0937C10.6651 19.0937 7.28696 17.6945 4.79624 15.2038C2.30552 12.713 0.90625 9.3349 0.90625 5.81249C0.90631 4.67203 1.32206 3.5707 2.07567 2.71471C2.82927 1.85872 3.86904 1.30677 5.00029 1.1622C5.16788 1.14191 5.33753 1.17665 5.48366 1.26116C5.6298 1.34568 5.74451 1.4754 5.81052 1.63077L7.77248 6.20869C7.82323 6.3271 7.84391 6.45623 7.83267 6.58456C7.82144 6.7129 7.77864 6.83647 7.70809 6.94426L6.08345 9.42666C6.0095 9.53833 5.96579 9.66727 5.95658 9.80088C5.94736 9.9345 5.97297 10.0682 6.03089 10.189Z" stroke="#D8261E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
								</svg>

							</span>
							<p><?php echo $phone; ?></p>
						</a>
						<a href="mailto:<?php echo $mail; ?>" class="js-gtm footer-top-right__link body-regular hover" data-label="footer" data-event="email">
							<span class="footer-link__img">
								<svg width="21" height="17" viewBox="0 0 21 17" fill="none" xmlns="http://www.w3.org/2000/svg">
									<path fill-rule="evenodd" clip-rule="evenodd" d="M0.375 1.46875C0.375 1.05454 0.710786 0.71875 1.125 0.71875H19.875C20.2892 0.71875 20.625 1.05454 20.625 1.46875V14.75C20.625 15.1561 20.4637 15.5456 20.1765 15.8328C19.8893 16.1199 19.4999 16.2812 19.0938 16.2812H1.90625C1.50014 16.2812 1.11066 16.1199 0.823493 15.8328C0.536328 15.5456 0.375 15.1561 0.375 14.75V1.46875ZM1.875 2.21875V14.75C1.875 14.7583 1.87829 14.7662 1.88415 14.7721C1.89001 14.778 1.89796 14.7812 1.90625 14.7812H19.0938C19.102 14.7812 19.11 14.778 19.1158 14.7721C19.1217 14.7662 19.125 14.7583 19.125 14.75V2.21875H1.875Z" fill="#D8261E" />
									<path fill-rule="evenodd" clip-rule="evenodd" d="M0.572139 0.961961C0.852033 0.656622 1.32646 0.635995 1.6318 0.915889L10.5 9.04508L19.3682 0.915889C19.6735 0.635995 20.148 0.656622 20.4279 0.961961C20.7078 1.2673 20.6871 1.74173 20.3818 2.02162L11.0068 10.6154C10.7201 10.8782 10.28 10.8782 9.99321 10.6154L0.618211 2.02162C0.312872 1.74173 0.292245 1.2673 0.572139 0.961961Z" fill="#D8261E" />
								</svg>

							</span>
							<p><?php echo $mail; ?></p>
						</a>
					</div>

					<div class="footer-top__mob-block">
						<a href="<?php echo $offer; ?>" target="_blank" class="footer-mob__link"><?php pll_e('Публичная оферта'); ?></a>
					</div>
				</div>

				<div class="footer__mid-block">
					<ul class="lang">
						<?php pll_the_languages(array('hide_current' => 1)); ?>
					</ul>

					<a href="#" class="footer-top-right__btn-to-top body-regular btn-to-top">
						<?php pll_e('Наверх'); ?> ↑
					</a>
				</div>

				<div class="footer__bot-block subholder-reg">
					<p><?php the_field('main_notice', $static_frontpage_id); ?></p>

					<p><?php echo current_time('Y'); ?> &copy; <?php echo get_option('blogname'); ?></p>
				</div>
			</div>
		</footer>
		</div>
		<?php wp_footer(); ?>
		<input type="hidden" id="aname">
<input type="hidden" id="atel">
<input type="hidden" id="atext">
	<script>
	$(document).on('submit', '.wpcf7-form', function(e){
		$('#aname').val($(e.target).find('input[type="text"]').val())
		$('#atel').val($(e.target).find('input[type="tel"]').val())
		if($(e.target).find('textarea').length > 0){
			$('#atext').val('Это с формы с вопросом. Сам вопрос: '+$(e.target).find('textarea').val())
		}else{
			$('#atext').val('Это бесплатная консультация')
		}
	})
	$(document).on('wpcf7mailsent', function(e){
		tel = $('#atel').val()
		names = $('#aname').val()
		msg = $('#atext').val()
		param = window.location.search.replace('?','').split('&')
		source = ''; medium = ''; campaign = ''; term = ''; content = '';
		if(Array.isArray(param) == true){
			for(var i = 0; i < param.length; i++){
				if(param[i].indexOf('utm_source') != -1){
					source = param[i].split('=')[1]
				}
				if(param[i].indexOf('utm_medium') != -1){
					medium = param[i].split('=')[1]
				}
				if(param[i].indexOf('utm_campaign') != -1){
					campaign = param[i].split('=')[1]
				}
				if(param[i].indexOf('utm_term') != -1){
					term = param[i].split('=')[1]
				}
				if(param[i].indexOf('utm_content') != -1){
					content = param[i].split('=')[1]
				}
			}
		}
		$('body').append('<iframe style="display:none" id="sendForm" src="https://buratino.gavrelets.ru/form.php?tel='+tel+'&name='+names+'&msg='+msg+'&source='+source+'&medium='+medium+'&campaign='+campaign+'&term='+term+'&content='+content+'">')
		setTimeout(() => {
			$('#sendForm').remove()
		}, 4000)
	})
	</script>
		</body>

		</html>