';
dynamic_sidebar( 'header-widget' );
echo '';
}
}
}
/*-----------------------------------------------------------------
* BREADCRUMB
-----------------------------------------------------------------*/
add_filter( 'rank_math/frontend/breadcrumb/args', function( $args ) {
$args = array(
'delimiter' => '',
'wrap_before' => '',
'before' => '',
'after' => '',
);
return $args;
});
if ( ! function_exists( 'igthemes_breadcrumb' ) ) {
// start function
function igthemes_breadcrumb() {
if (get_theme_mod('post_breadcrumb')==true) {
if ( function_exists('bcn_display') && !is_home() ) { ?>
','
');
}
elseif (function_exists('rank_math_the_breadcrumbs')){
rank_math_the_breadcrumbs();
}
else {
if (!is_home()) {
echo '';
}
}
}
}
}
//DISPLAY BREADCRUMBS
if ( ! function_exists( 'igthemes_top_breadcrumb' ) ) {
//start function
function igthemes_top_breadcrumb() {
if (is_singular('post')) {
igthemes_breadcrumb();
}
}
}
/*-----------------------------------------------------------------
* PORTFOLIO SECTIONS
-----------------------------------------------------------------*/
if ( ! function_exists( 'igthemes_home_portfolio' ) ) {
//start function
function igthemes_home_portfolio() {
if (is_home() && get_theme_mod('home_portfolio',0)=='1') {
echo '';
$cat = get_theme_mod('home_portfolio_tax');
if ( get_theme_mod('home_portfolio_title','Our new projects')) {
echo '
' . get_theme_mod('home_portfolio_title','Our new projects') . '
';
}
if ( get_theme_mod('home_portfolio_description','See our latest works!')) {
echo '
' . get_theme_mod('home_porfolio_description','See our latest works!') . '
';
}
echo do_shortcode('[ig-portfolio-gallery cat="'. $cat .'" title="true" perpage="4"]');
echo '
';
}
}
}
/*-----------------------------------------------------------------
* TESTIMONIALS SECTIONS
-----------------------------------------------------------------*/
if ( ! function_exists( 'igthemes_home_testimonials' ) ) {
//start function
function igthemes_home_testimonials() {
if (is_home() && get_theme_mod('home_testimonials',0)=='1') {
echo '';
$cat = get_theme_mod('home_testimonials_tax');
if ( get_theme_mod('home_testimonials_title','What our clients says')) {
echo '
' . get_theme_mod('home_testimonials_title','What our clients says') . '
';
}
if ( get_theme_mod('home_testimonials_description','We make every thing with best quality, our customers and partners are very happy!')) {
echo '
' . get_theme_mod('home_testimonials_description','We make every thing with best quality, our customers and partners are very happy!') . '
';
}
echo do_shortcode('[ig-testimonials-carousel perpage="8" items="2" cat="'. $cat .'"]');
echo '
';
}
}
}