-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
113 lines (57 loc) · 3.65 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
<div class="clear"></div>
</div>
</div>
<?php
global $col_6;
$page_sections = get_post_meta(get_the_ID(), "mb_page_sections_in", true);
if($page_sections!="") {
foreach($page_sections as $page_section){
if($page_section['section']!="") {
$args = array( 'post_type' => 'mt_section', 'p' => $page_section['section'] );
$query = new WP_Query( $args );
while ( $query->have_posts() ) : $query->the_post();
global $post;
$class = ""; if(get_post_meta(get_the_ID(), "mt_class", true)!="") { $class = get_post_meta(get_the_ID(), "mt_class", true); }
?><section data-type="background" data-speed="<?php if(get_post_meta(get_the_ID(), "mt_paralex_speed", true)!="" and get_post_meta(get_the_ID(), "mt_paralex_speed_on", true)!="no"){ echo get_post_meta(get_the_ID(), "mt_paralex_speed", true); }?>" class="mt-boxed-version mt-style-<?php echo get_the_ID(); ?> <?php echo $class; ?>" ><div class="mt-section-bg mt-section-bg-<?php echo get_the_ID(); ?>"></div><div class="container"><div class="row"><div class="col-md-12"><?php the_content(); ?></div></div></div></section><?php
endwhile; wp_reset_query();
}
}
}
$args = array( 'post_type' => 'mt_section', 'posts_per_page' => 999 );
$query = new WP_Query( $args );
while ( $query->have_posts() ) : $query->the_post();
global $post;
$in_all_page = get_post_meta(get_the_ID(), "mt_in_all_pages", true);
if($in_all_page=="yes") {
$class = ""; if(get_post_meta(get_the_ID(), "mt_class", true)!="") { $class = get_post_meta(get_the_ID(), "mt_class", true); }
?><section data-type="background" data-speed="<?php if(get_post_meta(get_the_ID(), "mt_paralex_speed", true)!="" and get_post_meta(get_the_ID(), "mt_paralex_speed_on", true)!="no"){ echo get_post_meta(get_the_ID(), "mt_paralex_speed", true); }?>" class="mt-boxed-version mt-style-<?php echo get_the_ID(); ?> <?php echo $class; ?>" ><div class="mt-section-bg mt-section-bg-<?php echo get_the_ID(); ?>"></div><div class="container"><div class="row"><div class="col-md-12"><?php the_content(); ?></div></div></div></section><?php
}
endwhile; wp_reset_query();
?>
<?php
$mt_homepage_bg_p_image = get_option("themename_theme_options");
if (!empty($mt_homepage_bg_p_image['footer_bottom']) or !empty($mt_homepage_bg_p_image['footer_top']) ) { ?>
<footer id="footer">
<?php if(!empty($mt_homepage_bg_p_image['footer_top'])) { if ($mt_homepage_bg_p_image['footer_top'] != '0') { function_footer_widget_areas(); echo '<div class="mt-subfooter-line"></div>'; } } ?>
<?php if(!empty($mt_homepage_bg_p_image['footer_bottom'])) { if ($mt_homepage_bg_p_image['footer_bottom'] != '0') { ?>
<div class="container">
<div class="row" id="sub-footer">
<div id="footer-left" class="col-md-6 <?php echo $col_6; ?>">
<div><p><?php if($mt_homepage_bg_p_image['copyright_text']!="") { echo $mt_homepage_bg_p_image['copyright_text']; } else { echo "Copyright 2013. Powered by WordPress Theme. By M.Bitenieks"; } ?></p></div>
</div>
<div id="footer-right" class="col-md-6 <?php echo $col_6; ?>">
<div id="button-nav"><?php wp_nav_menu( array('theme_location' => "footer_menu", 'container' =>false, 'fallback_cb' => false, 'menu_class' => 'bottom-menu', 'menu_id' => 'menu_footer','echo' => true, 'before' => '','after' => '', 'link_before' => '','link_after' => '', 'depth' => 1)); ?></div>
</div>
</div>
<?php if (ot_get_option('bottom_footer_html')) { ?>
<div class="row">
<div class="col-md-12 footer_widget_midle"> <?php echo of_get_option('bottom_footer_html'); ?> </div>
</div>
<?php } ?>
</div>
<?php } } ?>
</footer>
<?php } ?>
<?php wp_footer(); ?>
</body>
</html>