', $content );
}
if ( ! function_exists( 'activello_header_menu' ) ) :
/**
* Header menu (should you choose to use one)
*/
function activello_header_menu() {
// display the WordPress Custom Menu if available
wp_nav_menu(array(
'menu' => 'primary',
'theme_location' => 'primary',
'depth' => 2,
'container' => 'div',
'container_class' => 'collapse navbar-collapse navbar-ex1-collapse',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new wp_bootstrap_navwalker()
));
} /* end header menu */
endif;
if ( ! function_exists( 'activello_footer_links' ) ) :
/**
* Footer menu (should you choose to use one)
*/
function activello_footer_links() {
// display the WordPress Custom Menu if available
wp_nav_menu(array(
'container' => '', // remove nav container
'container_class' => 'footer-links clearfix', // class of container (should you choose to use it)
'menu' => esc_html__( 'Footer Links', 'activello' ), // nav name
'menu_class' => 'nav footer-nav clearfix', // adding custom nav class
'theme_location' => 'footer-links', // where it's located in the theme
'before' => '', // before the menu
'after' => '', // after the menu
'link_before' => '', // before each link
'link_after' => '', // after each link
'depth' => 0, // limit the depth of the nav
'fallback_cb' => 'activello_footer_links_fallback' // fallback function
));
} /* end activello footer link */
endif;
if ( ! function_exists( 'activello_featured_slider' ) ) :
/**
* Featured image slider, displayed on front page for static page and blog
*/
function activello_featured_slider() {
if ( ( is_home() || is_front_page() ) && get_theme_mod( 'activello_featured_hide' ) == 1 ) {
wp_enqueue_style( 'flexslider-css' );
wp_enqueue_script( 'flexslider-js' );
echo '
';
echo '
';
$count = 4;
$slidecat = get_theme_mod( 'activello_featured_cat' );
$query = new WP_Query( array( 'cat' => $slidecat,'posts_per_page' => $count ) );
if ($query->have_posts()) :
while ($query->have_posts()) : $query->the_post();
echo '