0 ):
$elementor = get_post_meta( $topbar_template_part, '_elementor_edit_mode', true );
if(class_exists('Elementor\Plugin') && $elementor ){
$topbar_template_part = Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $topbar_template_part );
}else{
// Get Polylang Translation of template
if ( function_exists( 'pll_get_post' ) ) {
$topbar_template_part = pll_get_post( $topbar_template_part, pll_current_language() );
}
// Get template content
if ( ! empty( $topbar_template_part ) ) {
$template = get_post( $topbar_template_part );
if ( $template && ! is_wp_error( $template ) ) {
$topbar_template_part = do_shortcode ($template->post_content);
}
}
}
?>
';
foreach($topbar_left as $item):
$html .= '
';
endforeach;
$html .= '
';
echo $html;
endif;
?>
';
$args = array(
'theme_location' => '',
'menu' => esc_attr( $topbar_menu ),
'menu_id' => 'top-menu',
'menu_class' => '',
'fallback_cb' => false,
'container' =>'',
'link_before' => '',
'link_after' => '',
);
wp_nav_menu( $args );
echo '
';
}
?>
';
foreach($topbar_icons as $item):
if($item['icon']!=''){
$html .= '';
}
endforeach;
$html .= '';
echo $html;
endif;
?>