87 lines
4.1 KiB
PHP
87 lines
4.1 KiB
PHP
<?php
|
|
/**
|
|
* The template part for selected header
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly
|
|
}
|
|
|
|
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
|
$toplogo_teasers = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'toplogo_teasers' ) : '';
|
|
?>
|
|
|
|
<div class="top_wrapper">
|
|
<section class="page_toplogo table_section table_section_md ds section_padding_top_15 section_padding_bottom_15">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-12 display_table padding_0">
|
|
<div class="header_left_logo display_table_cell_md">
|
|
<?php get_template_part( 'template-parts/header/header-logo' ); ?>
|
|
</div>
|
|
<div class="header_right_buttons display_table_cell_md text-md-right">
|
|
<div class="inline-teasers-wrap">
|
|
<?php foreach ( $toplogo_teasers as $teaser ) : ?>
|
|
<div class="media small-media teaser inline-block text-left">
|
|
<div class="media-left media-middle">
|
|
<?php if ( $teaser['teaser_icon']['type'] === 'icon-font') : ?>
|
|
<div class="teaser_icon highlight light_bg_color round">
|
|
<i class="<?php echo esc_attr( $teaser['teaser_icon']['icon-class'] ); ?>"></i>
|
|
</div>
|
|
<?php else:
|
|
echo wp_get_attachment_image( $teaser['teaser_icon']['attachment-id'] );
|
|
endif; ?>
|
|
</div>
|
|
<div class="media-body media-middle grey">
|
|
<?php if ( $teaser['teaser_text_link'] ) : ?>
|
|
<a href="<?php echo esc_url( $teaser['teaser_text_link'] ) ?>">
|
|
<?php endif;
|
|
echo wp_kses_post( $teaser['teaser_text'] );
|
|
if ( $teaser['teaser_text_link'] ) : ?>
|
|
</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<header class="page_header header_darkgrey ds thin_header toggler_left columns_margin_0">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-12 display_table">
|
|
|
|
<div class="header_mainmenu display_table_cell">
|
|
<div class="mainmenu_wrapper primary-navigation">
|
|
<?php wp_nav_menu( array(
|
|
'theme_location' => 'primary',
|
|
'menu_class' => 'sf-menu nav-menu nav',
|
|
'container' => 'ul'
|
|
) ); ?>
|
|
</div>
|
|
<!-- header toggler -->
|
|
<span class="toggle_menu"><span></span></span>
|
|
</div>
|
|
|
|
<div class="header_right_buttons display_table_cell text-right">
|
|
<?php if ( ! empty( $social_icons ) ) : ?>
|
|
<div class="page_social_icons darklinks">
|
|
<?php
|
|
//get icons-social shortcode to render icons in team member item
|
|
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
|
if ( ! empty( $shortcodes_extension ) ) {
|
|
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $social_icons ) );
|
|
}
|
|
?>
|
|
</div><!-- eof social icons -->
|
|
<?php endif; //social icons ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
</div>
|