first commit
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<?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' ) : '';
|
||||
?>
|
||||
|
||||
<header class="page_header header_white toggler_xs_right columns_margin_0">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-12 display_table">
|
||||
<div class="header_left_logo display_table_cell">
|
||||
<?php get_template_part( 'template-parts/header/header-logo-light' ); ?>
|
||||
</div>
|
||||
|
||||
<div class="header_mainmenu display_table_cell text-center">
|
||||
<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 hidden-xs">
|
||||
<?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>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
|
||||
<?php get_template_part( 'template-parts/header/top-logo' ); ?>
|
||||
|
||||
<header class="page_header header_white bordered_items columns_margin_0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<nav class="mainmenu_wrapper primary-navigation">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'sf-menu nav-menu nav',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
</div><!-- eof .col-sm-* -->
|
||||
</div><!-- eof .row-->
|
||||
</div> <!-- eof .container-->
|
||||
</header><!-- eof .page_header -->
|
||||
@@ -0,0 +1,87 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
<header class="page_header_side ls">
|
||||
<span class="toggle_menu_side header-slide"><span></span></span>
|
||||
<div class="scrollbar-macosx">
|
||||
<div class="side_header_inner">
|
||||
<div class="text-center">
|
||||
<?php get_template_part( 'template-parts/header/header-logo-light' ); ?>
|
||||
</div>
|
||||
<div class="header-side-menu darklinks">
|
||||
<nav class="mainmenu_side_wrapper">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'nav menu-side-click',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
</div>
|
||||
<?php
|
||||
$header_phone = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_phone' ) : '';
|
||||
$header_email = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_email' ) : '';
|
||||
if ( $header_phone || $header_email ): ?>
|
||||
<div class="logo-meta text-center">
|
||||
<?php if ( $header_phone ) : ?>
|
||||
<strong class="grey"><?php echo esc_html( $header_phone ); ?></strong>
|
||||
<?php endif; //header_phone
|
||||
?>
|
||||
<?php if ( $header_email ) :
|
||||
if ( $header_phone && $header_email ):
|
||||
?>
|
||||
|
||||
<?php
|
||||
endif; //header_phone && header_email
|
||||
echo esc_html( $header_email );
|
||||
endif; //header_phone
|
||||
?>
|
||||
</div><!-- eof logo-meta -->
|
||||
<?php endif; //header_phone || header_email ?>
|
||||
|
||||
<?php
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
if ( ! empty( $social_icons ) ) : ?>
|
||||
|
||||
<?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 ) );
|
||||
}
|
||||
?>
|
||||
|
||||
<?php endif; //social icons ?>
|
||||
|
||||
</div><!-- eof .side_header_inner -->
|
||||
</div><!-- eof .scrollbar-macosx-->
|
||||
</header><!-- eof .page_header_side-->
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
<header class="page_header_side header_side_right ls">
|
||||
<span class="toggle_menu_side header-slide"><span></span></span>
|
||||
<div class="scrollbar-macosx">
|
||||
<div class="side_header_inner">
|
||||
<div class="text-center">
|
||||
<?php get_template_part( 'template-parts/header/header-logo-light' ); ?>
|
||||
</div>
|
||||
<div class="header-side-menu darklinks">
|
||||
<nav class="mainmenu_side_wrapper">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'nav menu-side-click',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
</div>
|
||||
<?php
|
||||
$header_phone = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_phone' ) : '';
|
||||
$header_email = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_email' ) : '';
|
||||
if ( $header_phone || $header_email ): ?>
|
||||
<div class="logo-meta text-center">
|
||||
<?php if ( $header_phone ) : ?>
|
||||
<strong class="grey"><?php echo esc_html( $header_phone ); ?></strong>
|
||||
<?php endif; //header_phone
|
||||
?>
|
||||
<?php if ( $header_email ) :
|
||||
if ( $header_phone && $header_email ):
|
||||
?>
|
||||
<?php
|
||||
endif; //header_phone && header_email
|
||||
echo esc_html( $header_email );
|
||||
endif; //header_phone
|
||||
?>
|
||||
</div><!-- eof logo-meta -->
|
||||
<?php endif; //header_phone || header_email ?>
|
||||
|
||||
<?php
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
if ( ! empty( $social_icons ) ) : ?>
|
||||
|
||||
<?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 ) );
|
||||
}
|
||||
?>
|
||||
|
||||
<?php endif; //social icons ?>
|
||||
|
||||
</div><!-- eof .side_header_inner -->
|
||||
</div><!-- eof .scrollbar-macosx-->
|
||||
</header><!-- eof .page_header_side-->
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
<header class="page_header_side ls">
|
||||
<span class="toggle_menu_side"><span></span></span>
|
||||
<div class="scrollbar-macosx">
|
||||
<div class="side_header_inner">
|
||||
<div class="text-center">
|
||||
<?php get_template_part( 'template-parts/header/header-logo-light' ); ?>
|
||||
</div>
|
||||
<div class="widget widget_nav_menu greylinks">
|
||||
<nav class="mainmenu_side_wrapper">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'nav sf-menu-side',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
</div>
|
||||
<?php
|
||||
$header_phone = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_phone' ) : '';
|
||||
$header_email = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_email' ) : '';
|
||||
if ( $header_phone || $header_email ): ?>
|
||||
<div class="logo-meta text-center">
|
||||
<?php if ( $header_phone ) : ?>
|
||||
<strong class="grey"><?php echo esc_html( $header_phone ); ?></strong>
|
||||
<?php endif; //header_phone
|
||||
?>
|
||||
<?php if ( $header_email ) :
|
||||
if ( $header_phone && $header_email ):
|
||||
?>
|
||||
<?php
|
||||
endif; //header_phone && header_email
|
||||
echo esc_html( $header_email );
|
||||
endif; //header_phone
|
||||
?>
|
||||
</div><!-- eof logo-meta -->
|
||||
<?php endif; //header_phone || header_email ?>
|
||||
|
||||
<?php
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
if ( ! empty( $social_icons ) ) : ?>
|
||||
|
||||
<?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 ) );
|
||||
}
|
||||
?>
|
||||
|
||||
<?php endif; //social icons ?>
|
||||
|
||||
</div><!-- eof .side_header_inner -->
|
||||
</div><!-- eof .scrollbar-macosx-->
|
||||
</header><!-- eof .page_header_side-->
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
<header class="page_header_side header_side_right ls">
|
||||
<span class="toggle_menu_side"><span></span></span>
|
||||
<div class="scrollbar-macosx">
|
||||
<div class="side_header_inner">
|
||||
<div class="text-center">
|
||||
<?php get_template_part( 'template-parts/header/header-logo-light' ); ?>
|
||||
</div>
|
||||
<div class="widget widget_nav_menu greylinks">
|
||||
<nav class="mainmenu_side_wrapper">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'nav sf-menu-side',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
</div>
|
||||
<?php
|
||||
$header_phone = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_phone' ) : '';
|
||||
$header_email = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_email' ) : '';
|
||||
if ( $header_phone || $header_email ): ?>
|
||||
<div class="logo-meta text-center">
|
||||
<?php if ( $header_phone ) : ?>
|
||||
<strong class="grey"><?php echo esc_html( $header_phone ); ?></strong>
|
||||
<?php endif; //header_phone
|
||||
?>
|
||||
<?php if ( $header_email ) :
|
||||
if ( $header_phone && $header_email ):
|
||||
?>
|
||||
<?php
|
||||
endif; //header_phone && header_email
|
||||
echo esc_html( $header_email );
|
||||
endif; //header_phone
|
||||
?>
|
||||
</div><!-- eof logo-meta -->
|
||||
<?php endif; //header_phone || header_email ?>
|
||||
|
||||
<?php
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
if ( ! empty( $social_icons ) ) : ?>
|
||||
|
||||
<?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 ) );
|
||||
}
|
||||
?>
|
||||
|
||||
<?php endif; //social icons ?>
|
||||
|
||||
</div><!-- eof .side_header_inner -->
|
||||
</div><!-- eof .scrollbar-macosx-->
|
||||
</header><!-- eof .page_header_side-->
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
|
||||
<header class="page_header header_white toggler_right">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="display_table_md">
|
||||
<div class="display_table_cell_md">
|
||||
<div class="header_left_logo">
|
||||
<?php
|
||||
get_template_part( 'template-parts/header/header-logo-light' );
|
||||
?>
|
||||
</div><!-- eof .header_left_logo -->
|
||||
</div>
|
||||
<div class="display_table_cell_md">
|
||||
<nav class="mainmenu_wrapper primary-navigation text-md-right">
|
||||
<?php wp_nav_menu( array (
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'sf-menu nav-menu nav',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
<span class="toggle_menu"><span></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- eof .col-sm-* -->
|
||||
</div><!-- eof .row-->
|
||||
</div> <!-- eof .container-->
|
||||
</header><!-- eof .page_header -->
|
||||
@@ -0,0 +1,76 @@
|
||||
<?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' ) : '';
|
||||
$header_phone = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_phone' ) : '';
|
||||
$header_email = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'header_email' ) : '';
|
||||
|
||||
if ( ( ! empty( $social_icons ) ) || ( ! empty( $header_phone ) ) || ( ! empty( $header_email ) ) ) : ?>
|
||||
<section class="page_topline ls section_padding_top_5 section_padding_bottom_5 table_section table_section_md">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3 text-center text-md-left">
|
||||
<?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><!-- eof .col- -->
|
||||
<div class="col-md-9 text-center text-md-right">
|
||||
<div class="inline-content small-text">
|
||||
<?php
|
||||
|
||||
if ( $header_phone ) : ?>
|
||||
<span>
|
||||
<i class="rt-icon2-printer2 highlight rightpadding_5"></i> <?php echo esc_html( $header_phone ); ?>
|
||||
</span>
|
||||
<?php endif; //header_phone
|
||||
if ( $header_email ) : ?>
|
||||
<span>
|
||||
<i class="rt-icon2-mail highlight rightpadding_5"></i> <?php echo esc_html( $header_email ); ?>
|
||||
</span>
|
||||
<?php endif; //header_phone ?>
|
||||
</div>
|
||||
</div><!-- eof .col- -->
|
||||
</div>
|
||||
</div>
|
||||
</section><!-- .page_topline -->
|
||||
<?php endif; ?>
|
||||
<header class="page_header header_white toggler_right">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="display_table_md">
|
||||
<div class="display_table_cell_md">
|
||||
<div class="header_left_logo">
|
||||
<?php
|
||||
get_template_part( 'template-parts/header/header-logo-light' );
|
||||
?>
|
||||
</div><!-- eof .header_left_logo -->
|
||||
</div>
|
||||
<div class="display_table_cell_md">
|
||||
<nav class="mainmenu_wrapper primary-navigation text-md-right">
|
||||
<?php wp_nav_menu( array (
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'sf-menu nav-menu nav',
|
||||
'container' => 'ul'
|
||||
) ); ?>
|
||||
</nav>
|
||||
<span class="toggle_menu"><span></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- eof .col-sm-* -->
|
||||
</div><!-- eof .row-->
|
||||
</div> <!-- eof .container-->
|
||||
</header><!-- eof .page_header -->
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* The Header Logo for our theme
|
||||
*
|
||||
* Displays logo in header section
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$logo_image = ( function_exists( 'fw_get_db_settings_option' ) ) ? fw_get_db_customizer_option( 'logo_image_light' ) : '';
|
||||
$logo_text = ( function_exists( 'fw_get_db_settings_option' ) ) ? fw_get_db_customizer_option( 'logo_text' ) : get_option( 'blogname' );
|
||||
$logo_class = 'logo';
|
||||
if ( ! $logo_text ) {
|
||||
$logo_class .= ' logo_image_only';
|
||||
}
|
||||
if ( ! $logo_image ) {
|
||||
$logo_class .= ' logo_text_only';
|
||||
}
|
||||
if ( $logo_image && $logo_text ) {
|
||||
$logo_class .= ' logo_image_and_text';
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"
|
||||
rel="home" class="<?php echo esc_attr( $logo_class ); ?>">
|
||||
<?php if ( $logo_image ) : ?>
|
||||
<img src="<?php echo esc_attr( $logo_image['url'] ); ?>" alt="<?php echo esc_attr( $logo_text ); ?>">
|
||||
<?php endif; //logo_image ?>
|
||||
<?php if ( !$logo_image && $logo_text ) : ?>
|
||||
<span class="logo_text">
|
||||
<?php echo esc_html( $logo_text ); ?>
|
||||
</span>
|
||||
<?php endif; //logo_text ?>
|
||||
</a>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* The Header Logo for our theme
|
||||
*
|
||||
* Displays logo in header section
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$logo_image = ( function_exists( 'fw_get_db_settings_option' ) ) ? fw_get_db_customizer_option( 'logo_image' ) : '';
|
||||
$logo_text = ( function_exists( 'fw_get_db_settings_option' ) ) ? fw_get_db_customizer_option( 'logo_text' ) : get_option( 'blogname' );
|
||||
$logo_class = 'logo';
|
||||
if ( ! $logo_text ) {
|
||||
$logo_class .= ' logo_image_only';
|
||||
}
|
||||
if ( ! $logo_image ) {
|
||||
$logo_class .= ' logo_text_only';
|
||||
}
|
||||
if ( $logo_image && $logo_text ) {
|
||||
$logo_class .= ' logo_image_and_text';
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"
|
||||
rel="home" class="<?php echo esc_attr( $logo_class ); ?>">
|
||||
<?php if ( $logo_image ) : ?>
|
||||
<img src="<?php echo esc_attr( $logo_image['url'] ); ?>" alt="<?php echo esc_attr( $logo_text ); ?>">
|
||||
<?php endif; //logo_image ?>
|
||||
<?php if ( !$logo_image && $logo_text ) : ?>
|
||||
<span class="logo_text">
|
||||
<?php echo esc_html( $logo_text ); ?>
|
||||
</span>
|
||||
<?php endif; //logo_text ?>
|
||||
</a>
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$left_teaser = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'tl_left_teaser' ) : '';
|
||||
|
||||
$right_teaser1 = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'tl_right_teaser1' ) : '';
|
||||
|
||||
$right_teaser2 = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'tl_right_teaser2' ) : '';
|
||||
|
||||
?>
|
||||
|
||||
<section class="page_topline ls table_section section_padding_top_5 section_padding_bottom_5">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 text-center text-sm-left">
|
||||
<p class="greylinks">
|
||||
<i class="<?php echo esc_html( $left_teaser['icon'] ) ?> grey rightpadding_5" aria-hidden="true"></i>
|
||||
<?php echo esc_html( $left_teaser['text'] ); ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-sm-6 text-center text-sm-right">
|
||||
<div class="inline-content">
|
||||
<?php if ( $right_teaser1['text'] ) : ?>
|
||||
<p class="greylinks">
|
||||
<i class="<?php echo esc_html( $right_teaser1['icon'] ) ?> grey rightpadding_5" aria-hidden="true"></i>
|
||||
<?php echo esc_html( $right_teaser1['text'] ); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php if ( $right_teaser2['text'] ) : ?>
|
||||
<p class="greylinks">
|
||||
<i class="<?php echo esc_html( $right_teaser2['icon'] ) ?> grey rightpadding_5" aria-hidden="true"></i>
|
||||
<?php if ( ! empty ( $right_teaser2['link'] ) ) : ?>
|
||||
<a href="<?php echo esc_url( $right_teaser2['link'] ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo esc_html( $right_teaser2['text'] ); ?>
|
||||
<?php if ( ! empty ( $right_teaser2['link'] ) ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$left_teaser = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'tl_left_teaser' ) : '';
|
||||
|
||||
?>
|
||||
|
||||
<section class="page_topline cs main_color2 table_section table_section_sm section_padding_top_5 section_padding_bottom_5">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-8 text-center text-sm-left">
|
||||
<?php if ( $left_teaser['text'] ) : ?>
|
||||
<div>
|
||||
<i class="<?php echo esc_html( $left_teaser['icon'] ) ?> rightpadding_5" aria-hidden="true"></i>
|
||||
<?php echo esc_html( $left_teaser['text'] ); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="col-sm-4 text-center text-sm-right greylinks">
|
||||
<?php
|
||||
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'social_icons' ) : '';
|
||||
if ( ! empty( $social_icons ) ) : ?>
|
||||
<span class="rightpadding_10"><?php echo esc_html__( 'Follow Us:', 'solarify' ); ?></span>
|
||||
<?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 ) );
|
||||
} ?>
|
||||
|
||||
<?php endif; //social icons?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
|
||||
<section class="page_toplogo table_section table_section_md ds section_padding_top_25 section_padding_bottom_25">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3 text-center text-md-left">
|
||||
<?php get_template_part( 'template-parts/header/header-logo' ); ?>
|
||||
</div>
|
||||
<div class="col-md-9 text-center text-md-right">
|
||||
<?php
|
||||
$toplogo_teasers = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'toplogo_teasers' ) : '';
|
||||
if ( ! empty( $toplogo_teasers ) ) : ?>
|
||||
<div class="inline-teasers-wrap">
|
||||
<?php
|
||||
foreach ( $toplogo_teasers as $teaser ) :
|
||||
?>
|
||||
|
||||
<div class="teaser small-teaser media">
|
||||
<div class="media-left media-middle">
|
||||
<div class="teaser_icon size_small border_icon highlight2 rounded"> <i class="<?php echo esc_attr( $teaser['teaser_icon'] ) ?>"></i> </div>
|
||||
</div>
|
||||
<div class="media-body media-middle">
|
||||
<h4><?php echo esc_html( $teaser['teaser_text_top'] ) ?></h4>
|
||||
<p class="greylinks fontsize_12">
|
||||
<?php if ( !empty ( $teaser['teaser_text_bottom_link'] ) ) : ?>
|
||||
<a href="<?php echo esc_url( $teaser['teaser_text_bottom_link'] ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo esc_html( $teaser['teaser_text_bottom'] ) ?>
|
||||
<?php if ( !empty ( $teaser['teaser_text_bottom_link'] ) ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; //social icons?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* The template part for selected header
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
|
||||
<section class="page_toplogo table_section table_section_md ls section_padding_top_5 section_padding_bottom_5">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3 text-center text-md-left header_left_logo">
|
||||
<?php get_template_part( 'template-parts/header/header-logo-light' ); ?>
|
||||
|
||||
<!-- header toggler -->
|
||||
<span class="toggle_menu"><span></span></span>
|
||||
</div>
|
||||
<div class="col-md-9 text-center text-md-right">
|
||||
<?php
|
||||
$toplogo_teasers = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'toplogo_teasers' ) : '';
|
||||
if ( ! empty( $toplogo_teasers ) ) : ?>
|
||||
<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">
|
||||
<div class="teaser_icon with_background highlight round">
|
||||
<?php if ( $teaser['teaser_icon']['type'] === 'icon-font') : ?>
|
||||
<i class="<?php echo esc_attr( $teaser['teaser_icon']['icon-class'] ); ?>"></i>
|
||||
<?php else:
|
||||
echo wp_get_attachment_image( $teaser['teaser_icon']['attachment-id'] );
|
||||
endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="media-body media-middle grey darklinks">
|
||||
<?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>
|
||||
<?php endif; //toplogo teasers?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user