'primary-menu',
'menu' => '',
'container' => 'nav',
'container_class' => '',
'container_id' => 'the_nav',
'menu_class' => '',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '
',
'depth' => 5,
'walker' => new wp_bootstrap_navwalker()
)
);
}
}
if(!function_exists('heading_split')) {
function heading_split( $input ){
global $DC_Diya;
$main_str = explode(" ", $input);
$count = count($main_str)-1;
echo '' . join(" ", array_slice( $main_str, 0, -1 ) ) . ' ' . end( $main_str ) . '
';
}
}
/*======================================================
Fetch all portfolio categories
======================================================*/
function get_portfolio_categories() {
$args = array(
'type' => 'portfolio',
'orderby' => 'name',
'order' => 'ASC',
'taxonomy' => 'portfolio_cat',
'parent' => ''
);
$categories = get_categories($args);
return $categories;
}
/*======================================================
Fetch all slide categories
======================================================*/
function get_slide_categories() {
$args = array(
'type' => 'slides',
'orderby' => 'name',
'order' => 'ASC',
'taxonomy' => 'slider_cat',
'parent' => ''
);
$slide_categories = get_categories($args);
return $slide_categories;
}
function diyacomments($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
extract($args, EXTR_SKIP);
if ( 'div' == $args['style'] ) {
$tag = 'div';
$add_below = 'comment';
} else {
$tag = 'li';
$add_below = 'div-comment';
}
?>
< id="comment-">
comment_approved == '0') : ?>
$add_below,
'depth' => $depth,
'max_depth' => $args['max_depth']))), 1 );
?>
echo '
';
if (!is_front_page()) {
echo '- ';
bloginfo('name');
echo "
".$separator;
if ( is_category() || is_single() ) {
the_category(', ');
if ( is_single() ) {
echo $separator;
the_title();
}
} elseif ( is_page() && $post->post_parent ) {
$home = get_page(get_option('page_on_front'));
for ($i = count($post->ancestors)-1; $i >= 0; $i--) {
if (($home->ID) != ($post->ancestors[$i])) {
echo '- ';
echo get_the_title($post->ancestors[$i]);
echo "
".$separator;
}
}
echo the_title();
} elseif (is_page()) {
echo the_title();
} elseif (is_404()) {
echo "404";
}
} else {
bloginfo('name');
}
echo '
';
}