-
Notifications
You must be signed in to change notification settings - Fork 7
/
footer.php
145 lines (126 loc) · 4.55 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<footer class="footer" role="contentinfo">
<?php
$homeid = "option";
?>
<div class="footer-top bg-dark">
<div class="container">
<div class="row">
<div class="col-lg-6 has-border">
<div class="container-xs">
<strong><?php echo get_field('discussion_text',$homeid);?></strong>
<div class="link-container d-flex justify-content-between">
<a href="https://github.com/dashpay"><div class="icon-el github"></div></a>
<a href="https://discordapp.com/invite/PXbUxJB"><div class="icon-el discord"></div></a>
<a href="https://t.me/dash_chat"><div class="icon-el telegram"></div></a>
<a href="https://www.dash.org/forum/"><div class="icon-el dashforum"></div></a>
<a href="https://blog.dash.org/"><div class="icon-el dashblog"></div></a>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="container-xs">
<strong><?php echo get_field('social_text',$homeid);?></strong>
<div class="link-container d-flex justify-content-between">
<a href="https://reddit.com/r/dashpay/"><div class="icon-el reddit"></div></a>
<a href="https://twitter.com/Dashpay"><div class="icon-el twitter"></div></a>
<a href="https://www.youtube.com/c/DashOrg"><div class="icon-el youtube"></div></a>
<a href="https://www.linkedin.com/company/10424093"><div class="icon-el linkedin"></div></a>
<a href="https://www.facebook.com/DashPay"><div class="icon-el facebook"></div></a>
<a href="https://www.instagram.com/dashpay/"><div class="icon-el instagram"></div></a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer-bottom">
<div class="container">
<div class="brand">
<div class="logo">
<a href="<?php echo home_url(); ?>">
<?php get_template_part('inc/dashlogo.svg'); ?>
</a>
</div>
<p><?php echo get_field('dash_tagline',$homeid); ?></p>
</div>
<div class="row">
<div class="col-lg-7 has-border">
<div class="row sitemap">
<?php while( have_rows('navigation_main',$homeid) ): the_row();
$posts = get_sub_field('nav_item_list');
?>
<div class="col-lg-3 col-6">
<!-- <h4 class="text-white"><?php echo get_sub_field('nav_item_title'); ?></h4> -->
<?php
$idx = 0;
foreach( $posts as $post):
setup_postdata($post);
$idx++; ?>
<?php if ($idx==1) {?>
<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
<?php } else { ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php }?>
<?php endforeach;
wp_reset_postdata(); ?>
</div>
<?php endwhile; ?>
</div>
</div>
<div class="col-lg-2 has-border">
<div class="about">
<?php
$posts = get_field('navigation_about_links',$homeid);
foreach( $posts as $post):
setup_postdata($post); ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php endforeach;
wp_reset_postdata(); ?>
<a href="https://insight.dash.org"><?php echo(get_field('block_explorer',$homeid)); ?></a>
</div>
</div>
<div class="col-lg-3">
<div class="row newsletter">
<div class="col-12">
<?php get_template_part('inc/newsletterform'); ?>
</div>
</div>
<div class="support">
<p><?php echo get_field('support_page_text',$homeid);?></p>
<a href="<?php echo get_field('support_page_url',$homeid);?>" class="btn btn-ghost">
<?php echo get_field('support_page_button',$homeid);?>
</a>
</div>
<div class="status d-flex justify-content-center mt-3">
<a href="https://statuspage.freshping.io/1446-Dash">
<img src="https://statuspage.freshping.io/badge/6bd13996-45b7-47b0-aaa4-5762412982a7?0.8091951318490984"/>
</a>
</div>
<div class="trustpilot">
<a href="https://www.trustpilot.com/review/www.dash.org" target="_blank" rel="noopener"><img src="/wp-content/themes/dash-theme/assets/img/trustpilot.svg"></a>
</div>
</div>
</div>
</div>
</div>
<div class="footer-terms">
<div class="terms container">
<?php
$posts = get_field('navigation_privacy',$homeid);
$post = $posts[0];
setup_postdata($post);
?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<span class="divider">|</span>
<?php
$post = $posts[1];
setup_postdata($post); ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php wp_reset_postdata(); ?>
</div>
</div>
</footer>
</div>
<?php wp_footer(); ?>
</body>
</html>