forked from lonchbox/foundation_s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
95 lines (87 loc) · 2.84 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
/**
* The template for displaying the footer.
*
* Contains the closing of the id=main div and all content after
*
* @package _s
*/
?>
</div><!-- #main -->
<footer id="colophon" class="site-footer row" role="contentinfo">
<div class="large-12 small-12 columns">
<?php
/* A sidebar in the footer? Yep. You can can customize
* your footer with three columns of widgets.
*/
if ( ! is_404() )
get_sidebar( 'footer' );
?>
</div>
<div class="large-12 columns">
<?php
wp_nav_menu( array(
'walker' => new MV_Cleaner_Walker_Nav_Menu(),
'theme_location'=> 'footer-menu',
'container' => false,
'items_wrap' => '<dl id="%1$s" class="sub-nav"><dt>Submenu:</dt>%3$s</dl>',
) );
?>
</div>
<div class="site-info large-12 columns">
<?php do_action( '_s_credits' ); ?>
<div class="large-4 columns">
<p class="copyright row"><?php echo date("Y",time()); ?> © <?php _e('All rights reserved','_s') ?> <?php bloginfo( 'name' ); ?> </p>
</div>
<div class="large-4 columns">
<?php /*Custom footer links*/
$footerPages = of_get_option('footer_pages');
?>
<?php if($footerPages != ''): ?>
<dl id="legal" class="sub-nav">
<?php
$footerPages = of_get_option('footer_pages');
$footerParam;
foreach($footerPages as $key => $value){
if($value == 1){
$footerParam[] = $key;
}
}
$customFooterPages = array(
'post_type' => 'page',
'post__in' => $footerParam,
'order' => 'ASC',
'orderby' => 'menu_order'
);
?>
<?php
$gp_query= NULL;
$gp_query = new WP_Query($customFooterPages);
if( $gp_query->have_posts() ): while ( $gp_query->have_posts() ) : $gp_query->the_post(); ?>
<dd><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></dd>
<?php endwhile; endif; wp_reset_query(); ?>
</dl>
<?php endif; ?>
</div>
<div id="credits" class="large-4 columns">
<p class="row">
<?php printf( __( 'Theme: <!--%1$s--> foundation_s by %2$s.', '_s' ), '_s', '<a href="http://lonchbox.com/" rel="designer">lonchbox</a>' ); ?>
<a class="wordpress" href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', '_s' ); ?>"><span aria-hidden="true" class="icon-wordpress"></span></a>
</p>
</div>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
<script>
document.write('<script src=<?php echo get_template_directory_uri(); ?>/js/foundation/vendor/' + ('__proto__' in {} ? 'zepto' : 'jquery') + '.js><\/script>');</script>
<?php wp_footer(); ?>
<script>
document.getElementById("glyphs").addEventListener("click", function(e) {
var target = e.target;
if (target.tagName === "INPUT") {
target.select();
}
});
</script>
</body>
</html>