_exists( 'ubermenu_get_menu_instance_by_theme_location' ) || ( function_exists( 'ubermenu_get_menu_instance_by_theme_location' ) && ! ubermenu_get_menu_instance_by_theme_location( 'main_navigation' ) ) ) { avada_mobile_main_menu(); } } } } if ( ! function_exists( 'avada_default_menu_fallback' ) ) { /** * Return null. * * @param array $args Menu arguments. Irrelevant in this context. * @return null */ function avada_default_menu_fallback( $args ) { return null; } } if ( ! function_exists( 'avada_contact_info' ) ) { /** * Returns the markup for the contact-info area. */ function avada_contact_info() { $phone_number = do_shortcode( Avada()->settings->get( 'header_number' ) ); $email = antispambot( Avada()->settings->get( 'header_email' ) ); $header_position = Avada()->settings->get( 'header_position' ); $html = ''; if ( $phone_number || $email ) { $html .= '
'; $html .= $phone_number; if ( $phone_number && $email ) { if ( 'Top' == $header_position ) { $html .= '' . apply_filters( 'avada_header_separator', '|' ) . ''; } else { $html .= '
'; } } $html .= sprintf( apply_filters( 'avada_header_contact_info_email', '%s' ), $email, $email ); $html .= '
'; } return $html; } } if ( ! function_exists( 'avada_secondary_nav' ) ) { /** * Retuerns the markup for nav menu. */ function avada_secondary_nav() { if ( has_nav_menu( 'top_navigation' ) ) { return wp_nav_menu( array( 'theme_location' => 'top_navigation', 'depth' => 5, 'items_wrap' => '', 'container_class' => 'fusion-secondary-menu', 'container' => 'nav', 'fallback_cb' => 'Avada_Nav_Walker::fallback', 'walker' => new Avada_Nav_Walker(), 'echo' => false, ) ); } } } if ( ! function_exists( 'avada_header_social_links' ) ) { /** * Return the social links maekup. * * @return string */ function avada_header_social_links() { global $social_icons; $options = array( 'position' => 'header', 'icon_colors' => Avada()->settings->get( 'header_social_links_icon_color' ), 'box_colors' => Avada()->settings->get( 'header_social_links_box_color' ), 'icon_boxed' => Avada()->settings->get( 'header_social_links_boxed' ), 'icon_boxed_radius' => Avada_Sanitize::size( Avada()->settings->get( 'header_social_links_boxed_radius' ) ), 'tooltip_placement' => Avada()->settings->get( 'header_social_links_tooltip_placement' ), 'linktarget' => Avada()->settings->get( 'social_icons_new' ), ); $render_social_icons = $social_icons->render_social_icons( $options ); $html = ( $render_social_icons ) ? '' : ''; return $html; } } if ( ! function_exists( 'avada_secondary_header_content' ) ) { /** * Get the secondary header content based on the content area. * * @param string $content_area Secondary header content area from theme optins. * @return string Html for the content. */ function avada_secondary_header_content( $content_area ) { if ( Avada()->settings->get( $content_area ) == 'Contact Info' ) { return avada_contact_info(); } elseif ( Avada()->settings->get( $content_area ) == 'Social Links' ) { return avada_header_social_links(); } elseif ( Avada()->settings->get( $content_area ) == 'Navigation' ) { $mobile_menu_wrapper = ''; if ( has_nav_menu( 'top_navigation' ) ) { $mobile_menu_wrapper = '
'; } return avada_secondary_nav() . $mobile_menu_wrapper; } } } if ( ! function_exists( 'avada_header_content_3' ) ) { /** * Renders the 3rd content in headers. */ function avada_header_content_3() { if ( 'v4' != Avada()->settings->get( 'header_layout' ) && Avada()->settings->get( 'header_position' ) == 'Top' ) { return; } $header_content_3 = Avada()->settings->get( 'header_v4_content' ); $html = ''; if ( 'Tagline' == $header_content_3 ) { $html .= avada_header_tagline(); } elseif ( 'Tagline And Search' == $header_content_3 ) { if ( 'Top' == Avada()->settings->get( 'header_position' ) ) { if ( 'Right' == Avada()->settings->get( 'logo_alignment' ) ) { $html .= avada_header_tagline(); $html .= ''; } else { $html .= ''; $html .= avada_header_tagline(); } } else { $html .= avada_header_tagline(); $html .= ''; } } elseif ( 'Search' == $header_content_3 ) { $html .= ''; } elseif ( 'Banner' == $header_content_3 ) { $html .= avada_header_banner(); } echo '
' . $html . '
'; } } if ( Avada()->settings->get( 'header_position' ) == 'Top' ) { add_action( 'avada_logo_append', 'avada_header_content_3', 10 ); } if ( ! function_exists( 'avada_header_banner' ) ) { /** * Returns the header banner. * * @return string */ function avada_header_banner() { return '
' . do_shortcode( Avada()->settings->get( 'header_banner_code' ) ) . '
'; } } if ( ! function_exists( 'avada_header_tagline' ) ) { /** * Returns the headers tagline. * * @return string */ function avada_header_tagline() { return '

' . do_shortcode( Avada()->settings->get( 'header_tagline' ) ) . '

'; } } if ( ! function_exists( 'avada_modern_menu' ) ) { /** * Gets the menu-mobile-modern template part. * * @return string */ function avada_modern_menu() { ob_start(); get_template_part( 'templates/menu-mobile-modern' ); return ob_get_contents(); } } if ( ! function_exists( 'avada_mobile_main_menu' ) ) { /** * Gets the menu-mobile-main template part. */ function avada_mobile_main_menu() { get_template_part( 'templates/menu-mobile-main' ); } } /* Omit closing PHP tag to avoid "Headers already sent" issues. */ elagero – Casa Rural "El Agero"

Fatal error: Uncaught Error: Call to undefined function avada_header_template() in /homepages/13/d610622462/htdocs/2016/elagero.com/wp-content/themes/Avada/header.php:86 Stack trace: #0 /homepages/13/d610622462/htdocs/2016/elagero.com/wp-includes/template.php(684): require_once() #1 /homepages/13/d610622462/htdocs/2016/elagero.com/wp-includes/template.php(643): load_template('/homepages/13/d...', true) #2 /homepages/13/d610622462/htdocs/2016/elagero.com/wp-includes/general-template.php(45): locate_template(Array, true) #3 /homepages/13/d610622462/htdocs/2016/elagero.com/wp-content/themes/Avada/author.php(8): get_header() #4 /homepages/13/d610622462/htdocs/2016/elagero.com/wp-includes/template-loader.php(74): include('/homepages/13/d...') #5 /homepages/13/d610622462/htdocs/2016/elagero.com/wp-blog-header.php(19): require_once('/homepages/13/d...') #6 /homepages/13/d610622462/htdocs/2016/elagero.com/index.php(17): require('/homepages/13/d...') #7 {main} thrown in /homepages/13/d610622462/htdocs/2016/elagero.com/wp-content/themes/Avada/header.php on line 86