| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/clients/client2/web6/web/wp-content/themes/saashub/ |
Upload File : |
<?php
/*
* The header for our theme.
* Author & Copyright: VictorThemes
* URL: http://themeforest.net/user/VictorThemes
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<?php
// if the `wp_site_icon` function does not exist (ie we're on < WP 4.3)
if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) { ?>
<link rel="shortcut icon" href="<?php echo esc_url(SAASHUB_IMAGES); ?>/favicon.png" />
<?php }
$saashub_all_element_color = cs_get_customize_option( 'all_element_colors' );
?>
<meta name="msapplication-TileColor" content="<?php echo esc_attr($saashub_all_element_color); ?>">
<meta name="theme-color" content="<?php echo esc_attr($saashub_all_element_color); ?>">
<link rel="profile" href="//gmpg.org/xfn/11">
<?php
// Metabox
global $post;
$saashub_id = ( isset( $post ) ) ? $post->ID : false;
$saashub_id = ( is_home() ) ? get_option( 'page_for_posts' ) : $saashub_id;
$saashub_id = ( saashub_is_woocommerce_shop() ) ? wc_get_page_id( 'shop' ) : $saashub_id;
$saashub_id = ( ! is_tag() && ! is_archive() && ! is_search() && ! is_404() && ! is_singular('testimonial') ) ? $saashub_id : false;
$saashub_meta = get_post_meta( $saashub_id, 'page_type_metabox', true );
// Header Style
$fullwidth = cs_get_option("need_fullwidth");
if($fullwidth) {
$fullwidth_cls = ' container-fluid';
} else {
$fullwidth_cls = ' container';
}
if ($saashub_meta) {
$one_page_menu = $saashub_meta['one_page_menu'];
$header_style = $saashub_meta['header_style'];
$sticky_header = $saashub_meta['sticky_header'];
$sticky_footer = $saashub_meta['sticky_footer'];
} else {
$one_page_menu = '';
$header_style = cs_get_option('header_style');
$sticky_header = cs_get_option('sticky_header');
$sticky_footer = cs_get_option('sticky_footer');
}
if($saashub_meta && $header_style != 'default') {
$header_style = $saashub_meta['header_style'];
} else {
$header_style = cs_get_option('header_style');
}
if($saashub_meta && $sticky_header != 'default') {
$sticky_header = $saashub_meta['sticky_header'];
} else {
$sticky_header = cs_get_option('sticky_header');
}
if($saashub_meta && $sticky_footer != 'default') {
$sticky_footer = $saashub_meta['sticky_footer'];
} else {
$sticky_footer = cs_get_option('sticky_footer');
}
if ($header_style === 'transparent-header') {
if(is_404()) {
$style_class = ' sahub-transparent-header dark-transparent';
} else {
$style_class = ' sahub-transparent-header light-transparent';
}
} elseif ($header_style === 'transparent-header-dark') {
$style_class = ' sahub-transparent-header dark-transparent';
} else {
$style_class = '';
}
if($one_page_menu) {
$parallax_menu_class = ' smooth-scroll';
} else {
$parallax_menu_class = '';
}
if ($sticky_footer === 'yes') {
$footer_class = ' sahub-sticky-footer';
} else {
$footer_class = '';
}
if ($sticky_header === 'yes') {
$header_class = ' sahub-sticky';
} else {
$header_class = '';
}
// fullwidth Topbar
if ($saashub_meta) {
$hide_header = $saashub_meta['hide_header'];
$full_page = $saashub_meta['full_page'];
} else {
$full_page = '';
$hide_header = '';
}
wp_head();
$logo_column = cs_get_option('logo_column');
$menu_column = cs_get_option('menu_column');
$button_column = cs_get_option('button_column');
$logo_column = $logo_column ? $logo_column : '2';
$menu_column = $menu_column ? $menu_column : '9';
$button_column = $button_column ? $button_column : '1';
if ($saashub_meta) {
$header_btns = $saashub_meta['header_btns'];
} else {
$header_btns = cs_get_option('header_btns');
}
$header_btns = $header_btns ? $header_btns : cs_get_option('header_btns');
/*<script data-ad-client="ca-pub-1943906092680535" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>*/ ?>
<script data-ad-client="ca-pub-1943906092680535" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</head>
<body <?php body_class(); ?>>
<!-- Full Page -->
<!-- SaaSHub Main Wrap -->
<?php if (!$full_page) { ?>
<div class="sahub-main-wrap <?php echo esc_attr($footer_class.$style_class); ?>">
<!-- SaaSHub Main Wrap Inner -->
<div class="main-wrap-inner">
<?php if(!$hide_header) { ?>
<!-- Header -->
<?php do_action( 'saashub_before_header_action' ); // SaaSHub Action ?>
<header class="sahub-header<?php echo esc_attr($parallax_menu_class . $header_class); ?>">
<div class="<?php echo esc_attr($fullwidth_cls); ?>">
<div class="row align-items-center">
<div class="col-lg-<?php echo esc_attr($logo_column); ?> col-md-3 col-5">
<?php get_template_part( 'layouts/header/logo' ); ?>
</div>
<div class="col-lg-<?php echo esc_attr($menu_column); ?> col-md-6 col-4">
<?php get_template_part( 'layouts/header/menu', 'bar' ); ?>
</div>
<div class="col-lg-<?php echo esc_attr($button_column); ?> col-md-3 col-3">
<div class="header-right">
<?php if($header_btns) { echo do_shortcode($header_btns); } ?>
</div>
</div>
</div>
</div>
</header>
<?php do_action( 'saashub_after_header_action' ); // SaaSHub Action
}
// Title Area
$saashub_need_title_bar = cs_get_option('need_title_bar');
if($saashub_need_title_bar) {
if( !is_404() ) { get_template_part( 'layouts/header/title', 'bar' ); }
}
}