ID, 'basetheme_header_layout', 1 ); if( $layout ){ return trim( $layout ); }elseif ( $layout = basetheme_fnc_theme_options('header_skin','') ){ return trim( $layout ); } return $layout; } add_filter( 'basetheme_fnc_get_header_layout', 'basetheme_fnc_get_header_layout' ); /** * Hook to select header layout for archive layout */ function basetheme_fnc_get_footer_layout( $layout='' ){ global $post; $layout = get_post_meta( $post->ID, 'basetheme_footer_layout', 1 ); if( $layout ){ return trim( $layout ); }elseif ( $layout = basetheme_fnc_theme_options('footer_skin', '' ) ){ return trim( $layout ); } return $layout; } add_filter( 'basetheme_fnc_get_footer_layout', 'basetheme_fnc_get_footer_layout' ); /** * Render Custom Css Renderig by Visual composer */ // if ( !function_exists( 'basetheme_fnc_print_style_footer' ) ) { // function basetheme_fnc_print_style_footer(){ // $footer = basetheme_fnc_get_footer_profile( 'default' ); // if($footer!='default'){ // $shortcodes_custom_css = get_post_meta( $footer, '_wpb_shortcodes_custom_css', true ); // if ( ! empty( $shortcodes_custom_css ) ) { // echo ''; // } // } // } // add_action('wp_head','basetheme_fnc_print_style_footer', 18); // } /** * Hook to show breadscrumbs */ function prestabrain_fnc_render_breadcrumbs(){ global $post; $disable = get_post_meta( $post->ID, 'basetheme_disable_breadscrumb', 1 ); if( $disable || is_front_page() ){ return true; } echo '
'; basetheme_fnc_breadcrumbs(); echo '
'; } add_action( 'basetheme_template_header_after', 'prestabrain_fnc_render_breadcrumbs' ); /** * Main Container */ function basetheme_template_main_container_class( $class ){ global $post; global $edubase_wpopconfig; $layoutcls = get_post_meta( $post->ID, 'basetheme_enable_fullwidth_layout', 1 ); if( $layoutcls ) { $edubase_wpopconfig['layout'] = 'fullwidth'; return 'container-fluid'; } return $class; } add_filter( 'basetheme_template_main_container_class', 'basetheme_template_main_container_class', 1 , 1 );