sweedy/sections/specia-header.php

115 lines
4.6 KiB
PHP

<?php
$hide_show_social= get_theme_mod('hide_show_social','off');
$hide_show_contact_infos= get_theme_mod('hide_show_contact_infos','off');
// if ( ($hide_show_social) && ($hide_show_contact_infos) != 'off') :
if (True):
?>
<section class="header-top-info-1">
<div class="container">
<div class="row">
<?php
$hide_show_contact_infos="on";// get_theme_mod('hide_show_contact_infos','off');
$header_email="Gratis Versand nach &Ouml;sterreich und Deutschland ab 40 Euro!"; //get_theme_mod('header_email','');
$header_contact=""; //get_theme_mod('header_contact_num','');
?>
<div class="col-md-6 col-sm-7">
<?php if($hide_show_contact_infos == 'on') { ?>
<!-- Start Contact Info -->
<ul class="info pull-left" style="color: white;">
<?php if($header_email) { ?>
<li><i class="fa fa-truck" style="color: lightgreen;"></i><div style="display: inline; color: white;"><?php echo esc_html($header_email); ?></div></li>
<?php } ?>
<?php if($header_contact) { ?>
<li><a href="tel:<?php echo esc_html($header_contact); ?>"><i class="fa fa-phone"></i> <?php echo esc_html($header_contact); ?></a></li>
<?php } ?>
</ul>
<!-- /End Contact Info -->
<?php } ?>
</div>
<div class="col-md-6 col-sm-5">
<!-- Start Social Media Icons -->
<?php
$hide_show_social= get_theme_mod('hide_show_social','off');
$facebook_link="https://facebook.com/sweedy"; # get_theme_mod('facebook_link','');
$linkedin_link= get_theme_mod('linkedin_link','');
$twitter_link= get_theme_mod('twitter_link','');
$googleplus_link= get_theme_mod('googleplus_link','');
$instagram_link= get_theme_mod('instagram_link','');
$dribble_link= get_theme_mod('dribble_link','');
$github_link= get_theme_mod('github_link','');
$bitbucket_link= get_theme_mod('bitbucket_link','');
$email_link= get_theme_mod('email_link','');
$skype_link= get_theme_mod('skype_link','');
$skype_action_link= get_theme_mod('skype_action_link','');
$vk_link= get_theme_mod('vk_link','');
$pinterest_link= get_theme_mod('pinterest_link','');
?>
<?php if(True or $hide_show_social == 'on') { ?>
<ul class="social pull-right" style="display: inline;">
<?php if($facebook_link) { ?>
<li style="color: white; font-family: 'Open-Sans', sans-serif; font-size: 13px;">Besuchen Sie uns auf Facebook:</li>
<li><a href="<?php echo esc_url($facebook_link); ?>"><i class="fa fa-facebook"></i></a></li>
<?php } ?>
<?php if($linkedin_link) { ?>
<li><a href="<?php echo esc_url($linkedin_link); ?>"><i class="fa fa-linkedin"></i></a></li>
<?php } ?>
<?php if($twitter_link) { ?>
<li><a href="<?php echo esc_url($twitter_link); ?>"><i class="fa fa-twitter"></i></a></li>
<?php } ?>
<?php if($googleplus_link) { ?>
<li><a href="<?php echo esc_url($googleplus_link); ?>"><i class="fa fa-google-plus"></i></a></li>
<?php } ?>
<?php if($instagram_link) { ?>
<li><a href="<?php echo esc_url($instagram_link); ?>"><i class="fa fa-instagram"></i></a></li>
<?php } ?>
<?php if($dribble_link) { ?>
<li><a href="<?php echo esc_url($dribble_link); ?>"><i class="fa fa-dribbble"></i></a></li>
<?php } ?>
<?php if($github_link) { ?>
<li><a href="<?php echo esc_url($github_link); ?>"><i class="fa fa-github-alt"></i></a></li>
<?php } ?>
<?php if($bitbucket_link) { ?>
<li><a href="<?php echo esc_url($bitbucket_link); ?>"><i class="fa fa-bitbucket"></i></a></li>
<?php } ?>
<?php if($email_link) { ?>
<li><a href="mailto:<?php echo esc_attr($email_link); ?>"><i class="fa fa-envelope-o"></i></a></li>
<?php } ?>
<?php if($skype_link) { ?>
<li><a href="<?php echo esc_attr($skype_link); ?>?<?php echo esc_attr($skype_action_link); ?>"><i class="fa fa-skype"></i></a></li>
<?php } ?>
<?php if($vk_link) { ?>
<li><a href="<?php echo esc_url($vk_link); ?>"><i class="fa fa-vk"></i></a></li>
<?php } ?>
<?php if($pinterest_link) { ?>
<li><a href="<?php echo esc_url($pinterest_link); ?>"><i class="fa fa-pinterest-square"></i></a></li>
<?php } ?>
</ul>
<?php } ?>
<!-- /End Social Media Icons-->
</div>
</div>
</div>
</section>
<div class="clearfix"></div>
<?php endif; ?>