89 lines
3.0 KiB
PHP
89 lines
3.0 KiB
PHP
<?php
|
|
/**
|
|
* The template for the footer menus
|
|
*
|
|
* @package Pirate Rogue
|
|
* @since Pirate Rogue 1.0
|
|
* @version 1.0
|
|
*/
|
|
?>
|
|
|
|
<div class="footer-menus-wrap cf">
|
|
<h2 class="screen-reader-text"><?php _e('Navigation','pirate-rogue'); ?></h2>
|
|
<?php if ( '' != get_theme_mod( 'pirate_rogue_footermenu_image' ) ) {
|
|
|
|
$footerfeature_image = get_theme_mod( 'pirate_rogue_footermenu_image' );
|
|
$imagesrc = '';
|
|
if (isset($footerfeature_image)) {
|
|
if (is_int($footerfeature_image)) {
|
|
$imagesrc = wp_get_attachment_image_src( $footerfeature_image, 'pirate-rogue-featured' )[0];
|
|
} else {
|
|
$imagesrc = esc_url( $footerfeature_image );
|
|
}
|
|
}
|
|
|
|
// $image = absint(get_theme_mod( 'pirate_rogue_footermenu_image' ));
|
|
// $imagesrc = wp_get_attachment_image_src( $image, 'pirate-rogue-featured-bottom' )[0];
|
|
|
|
?>
|
|
<div class="custom-logo-wrap" aria-hidden="true" role="presentation">
|
|
<img src="<?php echo $imagesrc; ?>" alt="">
|
|
</div>
|
|
<?php } else { ?>
|
|
<p class="title-footer">
|
|
<?php if ( '' == get_theme_mod( 'pirate_rogue_footermenu_image' ) ) : ?>
|
|
<?php bloginfo( 'name' ); ?>
|
|
<?php endif; ?>
|
|
</p>
|
|
<?php }
|
|
if (has_nav_menu( 'footer-one' ) ) : ?>
|
|
<nav id="footer-menu-one" class="footer-menu">
|
|
<?php
|
|
$location = 'footer-one';
|
|
$menu_obj = pirate_rogue_get_menu_by_location($location );
|
|
wp_nav_menu( array(
|
|
'theme_location' => 'footer-one',
|
|
'items_wrap' => '<h3 class="footer-menu-title">'.esc_html($menu_obj->name).'</h3><ul id="%1$s" class="%2$s">%3$s</ul>',
|
|
'container' => 'false',
|
|
)); ?>
|
|
</nav>
|
|
<?php endif; ?>
|
|
<?php if (has_nav_menu( 'footer-two' ) ) : ?>
|
|
<nav id="footer-menu-two" class="footer-menu">
|
|
<?php
|
|
$location = 'footer-two';
|
|
$menu_obj = pirate_rogue_get_menu_by_location($location );
|
|
wp_nav_menu( array(
|
|
'theme_location' => 'footer-two',
|
|
'items_wrap' => '<h3 class="footer-menu-title">'.esc_html($menu_obj->name).'</h3><ul id="%1$s" class="%2$s">%3$s</ul>',
|
|
'container' => 'false',
|
|
)); ?>
|
|
</nav>
|
|
<?php endif; ?>
|
|
<?php if (has_nav_menu( 'footer-three' ) ) : ?>
|
|
<nav id="footer-menu-three" class="footer-menu">
|
|
<?php
|
|
$location = 'footer-three';
|
|
$menu_obj = pirate_rogue_get_menu_by_location($location );
|
|
wp_nav_menu( array(
|
|
'theme_location' => 'footer-three',
|
|
'items_wrap' => '<h3 class="footer-menu-title">'.esc_html($menu_obj->name).'</h3><ul id="%1$s" class="%2$s">%3$s</ul>',
|
|
'container' => 'false',
|
|
)); ?>
|
|
</nav>
|
|
<?php endif; ?>
|
|
|
|
<?php if (has_nav_menu( 'footer-four' ) ) : ?>
|
|
<nav id="footer-menu-four" class="footer-menu">
|
|
<?php
|
|
$location = 'footer-four';
|
|
$menu_obj = pirate_rogue_get_menu_by_location($location );
|
|
wp_nav_menu( array(
|
|
'theme_location' => 'footer-four',
|
|
'items_wrap' => '<h3 class="footer-menu-title">'.esc_html($menu_obj->name).'</h3><ul id="%1$s" class="%2$s">%3$s</ul>',
|
|
'container' => 'false',
|
|
)); ?>
|
|
</nav>
|
|
<?php endif; ?>
|
|
</div>
|