-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
42 lines (42 loc) · 2.22 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
</main>
<?php
$main_menu = is_active_sidebar('floatmenu');
$social_menu = has_nav_menu('social');
$main_nav = has_nav_menu('main');
if($main_nav===true||$social_menu===true||$main_menu===ture):?>
<aside id="menu-wrap" class="menu-wrap none" role="navigation" aria-hidden="true">
<?php if($social_menu===true):?>
<nav class="social-nav">
<?php wp_nav_menu(array('theme_location'=>'social','container'=>false,'items_wrap'=>'<ul id="%1$s" class="%2$s" itemscope itemtype="http://schema.org/SiteNavigationElement">%3$s</ul>'));?>
</nav>
<?php endif;?>
<?php if($main_nav===true):?>
<nav class="main-nav">
<?php wp_nav_menu(array('theme_location'=>'main','container'=>false,'items_wrap'=>'<ul id="%1$s" class="%2$s" itemscope itemtype="http://schema.org/SiteNavigationElement">%3$s</ul>'));?>
</nav>
<?php endif;?>
<?php if($main_menu===true):?>
<ul class="widget-area" role="navigation">
<?php dynamic_sidebar('floatmenu');?>
</ul>
<?php endif;?>
</aside>
<button id="menu-toggle" class="menu-toggle" tabindex="0" title="メニューウィンドウの切り替えボタン">+</button>
<?php endif;?>
<?php
wp_footer();
if(has_class('highlight-js')===true):?>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.10.0/styles/default.min.css">
<script async src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.10.0/highlight.min.js" onload="hljs.initHighlightingOnLoad();"></script>
<?php endif;?>
<?php if(get_post_format()==='link'):?>
<script async src="//cdn.embedly.com/widgets/platform.js" onload="linkStyled();"></script>
<?php endif;?>
<script src="<?php echo get_template_directory_uri();?>/inc/js/app.js"></script>
<?php
$footer = get_option('insert_into_footer');
if($footer!==false){
echo $footer;
}?>
</body>
</html>