| Server IP : 103.82.32.14 / Your IP : 216.73.217.55 Web Server : Apache/2.2.32 (Unix) mod_ssl/2.2.32 OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 System : Linux cloud.lonmanhoabinh.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : lonmakmf ( 524) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/lonmakmf/public_html/wp-content/themes/origamiez/parts/ |
Upload File : |
<?php
$is_display_top_bar = (int)get_theme_mod('is_display_top_bar', 1);
$is_display_top_social_links = (int)get_theme_mod('is_display_top_social_links', 1);
ob_start();
if($is_display_top_social_links):
$socials = origamiez_get_socials();
if (!empty($socials)):
foreach($socials as $social_slug => $social):
$url = get_theme_mod("{$social_slug}_url", '');
$color = get_theme_mod("{$social_slug}_color", $social['color']);
if($url):
$style = '';
if ($color) {
$style = "color: {$color};";
}
if ('fa fa-rss' == $social['icon'] && empty($url)){
$url = get_bloginfo('rss2_url');
}
?>
<a href="<?php echo esc_url($url); ?>"
data-placement="bottom"
data-toggle="tooltip"
title="<?php echo esc_attr($social['label']);?>"
rel="nofollow"
target="_blank"
class="origamiez-tooltip social-link social-link-first"
style="<?php echo esc_attr($style);?>">
<span class="<?php echo esc_attr($social['icon']); ?>"></span>
</a>
<?php
endif;
endforeach;
endif;
endif;
$social_link_html = ob_get_clean();
if($is_display_top_bar && (has_nav_menu('top-nav') || !empty($social_link_html))):
$size_of_top_bar_col_left = $is_display_top_social_links ? 'col-sm-8' : 'col-sm-12';
?>
<div id="origamiez-top-bar">
<div id="origamiez-top-bar-inner"
class="<?php echo esc_attr(origamiez_get_wrap_classes()); ?> clearfix">
<div class="row">
<?php
if (has_nav_menu('top-nav')) {
?>
<div class="origamiez-top-bar-col-left col-xs-12 <?php echo esc_attr($size_of_top_bar_col_left); ?>">
<?php
$is_enable_convert_flat_menus = (int)get_theme_mod('is_enable_convert_flat_menus', 1);
$menu_class = $is_enable_convert_flat_menus ? 'hide-only-screen-and-max-width-639 clearfix' : 'clearfix';
wp_nav_menu(
array(
'theme_location' => 'top-nav',
'container' => 'nav',
'container_id' => 'top-nav',
'container_class' => 'clearfix',
'menu_id' => 'top-menu',
'menu_class' => $menu_class
)
);
?>
</div>
<?php
}
?>
<?php
if(!empty($social_link_html)):
$size_of_top_bar_col_right = has_nav_menu('top-nav') ? 'col-sm-4' : 'col-sm-12';
?>
<div class="origamiez-top-bar-col-right col-xs-12 <?php echo esc_attr($size_of_top_bar_col_right); ?>">
<div id="top-social-link-inner" class="clearfix">
<?php echo htmlspecialchars_decode(esc_html($social_link_html)); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php
endif;