LAW-1824 menu extra fields and REST endpoint

This commit is contained in:
Andrey Morgachev
2018-08-17 14:46:31 +03:00
parent 3b5be35fe8
commit 013e82d75d
7 changed files with 439 additions and 26 deletions

View File

@@ -1,3 +1,8 @@
<?php
require_once 'inc/walker-nav-menu.php';
?>
</div><!-- .content -->
<footer>
@@ -10,18 +15,25 @@
'container' => 'div',
'container_class' => 'footer-menu',
'depth' => 1,
'walker' => new LawCarta_Walker_Nav_Menu(),
'theme_location' => 'bottom',
]);
}
if (has_nav_menu('social')):
if (has_nav_menu('social')) {
wp_nav_menu([
'menu' => 'social',
'menu_class' => 'nav',
'container' => 'div',
'container_class' => 'footer-social',
'depth' => 1,
'walker' => new LawCarta_Walker_Nav_Menu(),
'hide_title' => true,
'item_wrap' => '',
'items_wrap' => '%3$s',
'theme_location' => 'social',
]);
}
?>
<div class="footer-social">
<!--
<a href="#" class="twitter"><span class="icon-twitter"></span></a>
<a href="#" class="facebook"><span class="icon-facebook"></span></a>
-->
</div>
<?php endif; ?>
</div>
<div class="footer-copyright">&copy; <?= get_option('lawcarta_company'); ?>. All rights reserved.</div>
</div>