-
Notifications
You must be signed in to change notification settings - Fork 37
/
footer.php
98 lines (83 loc) · 4.05 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
<!-- Instagram -->
<?php if (td_util::get_option('tds_footer_instagram') == 'show') { ?>
<div class="td-main-content-wrap td-footer-instagram-container td-container-wrap">
<?php
//get the instagram id from the panel
$tds_footer_instagram_id = td_util::get_option('tds_footer_instagram_id');
?>
<div class="td-instagram-user">
<h4 class="td-footer-instagram-title">
<?php echo __td('Follow us on Instagram', TD_THEME_NAME); ?>
<a class="td-footer-instagram-user-link" href="https://www.instagram.com/<?php echo $tds_footer_instagram_id ?>" target="_blank">@<?php echo $tds_footer_instagram_id ?></a>
</h4>
</div>
<?php
//get the other panel seetings
$tds_footer_instagram_nr_of_row_images = intval(td_util::get_option('tds_footer_instagram_on_row_images_number'));
$tds_footer_instagram_nr_of_rows = intval(td_util::get_option('tds_footer_instagram_rows_number'));
$tds_footer_instagram_img_gap = td_util::get_option('tds_footer_instagram_image_gap');
$tds_footer_instagram_header = td_util::get_option('tds_footer_instagram_header_section');
//show the insta block
echo td_global_blocks::get_instance('td_block_instagram')->render(
array(
'instagram_id' => $tds_footer_instagram_id,
'instagram_header' => /*td_util::get_option('tds_footer_instagram_header_section')*/ 1,
'instagram_images_per_row' => $tds_footer_instagram_nr_of_row_images,
'instagram_number_of_rows' => $tds_footer_instagram_nr_of_rows,
'instagram_margin' => $tds_footer_instagram_img_gap
)
);
?>
</div>
<?php } ?>
<div class="td-footer-ad td-container-wrap">
<?php
$tds_footer_top_title = td_util::get_option('tds_footer_top_title'); // ad title
echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'footer_top', 'spot_title' => $tds_footer_top_title)); // ad spot
?>
</div>
<div class="td-footer-outer-wrapper td-container-wrap">
<!-- Footer -->
<?php
if (td_util::get_option('tds_footer') != 'no') {
td_api_footer_template::_helper_show_footer();
}
?>
<!-- Sub Footer -->
<?php if (td_util::get_option('tds_sub_footer') != 'no') { ?>
<div class="td-sub-footer-container">
<div class="td-container">
<div class="td-pb-row">
<div class="td-pb-span12 td-sub-footer-menu">
<?php
wp_nav_menu(array(
'theme_location' => 'footer-menu',
'menu_class'=> 'td-subfooter-menu',
'fallback_cb' => 'td_wp_footer_menu'
));
//if no menu
function td_wp_footer_menu() {
//do nothing?
}
?>
</div>
<div class="td-pb-span12 td-sub-footer-copy">
<?php
$tds_footer_copyright = stripslashes(td_util::get_option('tds_footer_copyright'));
$tds_footer_copy_symbol = td_util::get_option('tds_footer_copy_symbol');
//show copyright symbol
if ($tds_footer_copy_symbol == '') {
echo '© ';
}
echo $tds_footer_copyright;
?>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div><!--close td-outer-wrap-->
<?php wp_footer(); ?>
</body>
</html>