-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathfooter.php
More file actions
executable file
·49 lines (45 loc) · 1.42 KB
/
footer.php
File metadata and controls
executable file
·49 lines (45 loc) · 1.42 KB
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
<?php if ( ! is_page_template( 'page-full.php' ) ) : ?>
</div><!-- /.mdc-grid__inner -->
<?php endif; ?>
</main><!-- /#main -->
<footer id="footer" class="mdc-layout-grid__cell mdc-layout-grid__cell--span-12">
<div class="mdc-layout-grid footer__content">
<?php
if ( is_active_sidebar( 'secondary_widget_area' ) ) :
?>
<div id="widget-area" class="mdc-layout-grid widget-area" role="complementary">
<div class="mdc-layout-grid__inner">
<?php dynamic_sidebar( 'secondary_widget_area' ); ?>
</div>
<?php
if ( current_user_can( 'manage_options' ) ) :
?>
<span class="edit-link"><a href="<?php echo esc_url( admin_url( 'widgets.php' ) ); ?>" class="badge badge-info"><?php esc_html_e( 'Edit', 'my-theme' ); ?></a></span><!-- Show Edit Widget link -->
<?php
endif;
?>
</div><!-- /.widget-area -->
<?php
endif;
?>
<p class="copyright">
<?php printf( esc_html__( '© %1$s %2$s. All rights reserved.', 'my-theme' ), wp_date( 'Y' ), get_bloginfo( 'name', 'display' ) ); ?>
</p>
<?php
wp_nav_menu(
array(
'container' => '',
'depth' => 1,
'theme_location' => 'footer-menu',
'items_wrap' => '<ul class="mdc-list">%3$s</ul>',
)
);
?>
</div><!-- /.footer-content -->
</footer>
</div><!-- /#wrapper -->
<?php
wp_footer();
?>
</body>
</html>