', $content );
}
if ( ! function_exists( 'activello_header_menu' ) ) :
/**
* Header menu (should you choose to use one)
*/
function activello_header_menu() {
if( has_nav_menu('primary')){
// display the WordPress Custom Menu if available
wp_nav_menu(array(
'menu' => 'primary',
'theme_location' => 'primary',
'depth' => 3,
'container' => 'div',
'container_class' => 'collapse navbar-collapse navbar-ex1-collapse',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new activello_wp_bootstrap_navwalker()
));
}else{
echo '
';
wp_list_pages(array(
'depth' => 1, //number of tiers, 0 for unlimited
'exclude' => '', //comma seperated IDs of pages you want to exclude
'title_li' => '', //must override it to empty string so that it does not break our nav
'sort_column' => 'post_title', //see documentation for other possibilites
'sort_order' => 'ASC', //ASCending or DESCending
));
echo '
';
}
} /* end header menu */
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 '
';
$slidecat = get_theme_mod( 'activello_featured_cat' );
$query = new WP_Query( array( 'cat' => $slidecat,'posts_per_page' => -1 ) );
if ($query->have_posts()) :
while ($query->have_posts()) : $query->the_post();
if ( (function_exists( 'has_post_thumbnail' )) && ( has_post_thumbnail() ) ) :
echo '