/home/techb158/public_html/wp-content/themes/engitech/inc/frontend
Edit: /home/techb158/public_html/wp-content/themes/engitech/inc/frontend/builder.php (5231B)
get_queried_object_id() );
if ($metabox_fb != '') {
$header_builder = $metabox_fb;
}else{
$header_builder = engitech_get_option('header_select');
}
}
}else{
$header_builder = engitech_get_option('header_select');
}
if( !$header_builder ) {
get_template_part('inc/frontend/header/header-default');
}else{
echo '';
}
}
}
/** header mobile **/
if ( ! function_exists( 'engitech_mobile_builder' ) ) {
function engitech_mobile_builder (){
if ( is_page() ) {
if ( function_exists('rwmb_meta') ) {
global $wp_query;
$metabox_hmb = rwmb_meta( 'select_header_mobile', 'field_type=select_advanced', $wp_query->get_queried_object_id() );
if ($metabox_hmb != '') {
$mobile_builder = $metabox_hmb;
}else{
$mobile_builder = engitech_get_option('header_mobile');
}
}
}else{
$mobile_builder = engitech_get_option('header_mobile');
}
if( !$mobile_builder ) {
get_template_part('inc/frontend/header/header-mobile');
}else{
echo '';
}
}
}
/** side panel **/
if ( ! function_exists( 'engitech_sidepanel_builder' ) ) {
function engitech_sidepanel_builder (){
$panel_builder = engitech_get_option('sidepanel_layout');
if( !$panel_builder ) {
return;
}else{
if ( did_action( 'elementor/loaded' ) ) {
echo \Elementor\Plugin::$instance->frontend->get_builder_content( $panel_builder );
}
}
}
}
/** 404 template **/
if ( ! function_exists( 'engitech_404_builder' ) ) {
function engitech_404_builder (){
$error_builder = engitech_get_option('page_404');
if( !$error_builder ) { ?>
frontend->get_builder_content( $error_builder );
}
}
}
}
/** footer **/
if ( ! function_exists( 'engitech_footer_builder' ) ) {
function engitech_footer_builder (){
$footer_builder = '';
if ( is_page() ) {
if ( function_exists('rwmb_meta') ) {
global $wp_query;
$metabox_fb = rwmb_meta( 'select_footer', 'field_type=select_advanced', $wp_query->get_queried_object_id() );
if ($metabox_fb != '') {
$footer_builder = $metabox_fb;
}else{
$footer_builder = engitech_get_option('footer_layout');
}
}
}else{
$footer_builder = engitech_get_option('footer_layout');
}
if( !$footer_builder ) {
return;
}else{
echo '';
}
}
}