This repository was archived by the owner on Jul 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
95 lines (84 loc) · 4.67 KB
/
footer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php get_template_part( 'template-parts/instagram' ); ?>
<footer>
<div class="flex-container">
<div class="footer-col--xs footer__brand">
<?php the_custom_logo(); ?>
<?php if ( have_rows('social_links', 'option') ) : ?>
<div class="footer__social">
<?php while ( have_rows('social_links', 'option') ) : the_row(); ?>
<?php $social_icon = get_sub_field('social_icon'); ?>
<a href="<?php the_sub_field('social_link'); ?>" target="_blank" class="footer__social__link">
<img src="<?= $social_icon['url']; ?>" alt="<?= $social_icon['alt']; ?>">
</a>
<?php endwhile; ?>
</div>
<?php endif; ?>
</div>
<div class="footer-col--xs footer-menu--left">
<?php wp_nav_menu(
array(
'theme_location' => 'footer_menu',
'container' => 'nav',
'menu_class' => 'nav--footer'
)
); ?>
</div>
<div class="footer-col--sm footer-menu--right">
<?php wp_nav_menu(
array(
'theme_location' => 'footer_info_menu',
'container' => 'nav',
'menu_class' => 'nav--footer'
)
); ?>
<?php if ( have_rows( 'payment_methods', 'option' ) ) : ?>
<div class="footer__payment">
<?php while ( have_rows( 'payment_methods', 'option' ) ) : the_row(); ?>
<?php $pay_logo = get_sub_field('provider_logo'); ?>
<?php $pay_link = get_sub_field('provider_link'); ?>
<div class="footer__payment__icon">
<?php if ( $pay_logo && $pay_link ) : ?>
<a href="<?= $pay_link; ?>" target="_blank">
<img src="<?= $pay_logo['url']; ?>" alt="<?= $pay_logo['alt']; ?>">
</a>
<?php else : ?>
<img src="<?= $pay_logo['url']; ?>" alt="<?= $pay_logo['alt']; ?>">
<?php endif; ?>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>
</div>
<div class="footer-col--md">
<!-- <div class="form-row--lg">
<h5><?php esc_html_e( 'MATH naujienlaiškis', 'math' ); ?></h5>
</div>
<form action="">
<div class="form-row">
<label for="user-email" name="user-email" class="block">
<?php esc_html_e( 'El. Pašto adresas *', 'math' ); ?>
</label>
<input type="email" id="user-email" required>
</div>
<div class="form-row">
<label for="aggree-privacy" class="aggree">
<input type="checkbox" name="aggree-privacy" id="aggree-privacy">
<?php esc_html_e( 'Užpildydamas šią formą aš sutinku su MATH privatumo politika.', 'math' ); ?>
</label>
</div>
<div class="form-row">
<label for="aggree-newsletter" class="aggree">
<input type="checkbox" name="aggree-newsletter" id="aggree-newsletter">
<?php esc_html_e( 'Sutinku gauti naujienas apie MATH produktus nurodytu el. paštu.', 'math' ); ?>
</label>
</div>
<div class="form-row">
<input type="submit" value="<?php esc_html_e( 'Užsisakyti naujienas', 'math' ); ?>">
</div>
</form> -->
</div>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>