<?php 
global $opt_themes;
$color						= $opt_themes['color_texts'];
$color_texts				= $color;
$color_heading				= $color;
$color_link					= $opt_themes['color_link'];
$color_background			= $opt_themes['color_background'];
$color_background_ft		= $opt_themes['color_background_ft'];
$color_background_hd		= $opt_themes['color_background_hd'];
$color_rgb_background		= rgb($opt_themes['color_background']);
$color_background_body		= $opt_themes['color_background_body'];
$color_button				= $opt_themes['color_button'];
$color_svg					= $opt_themes['color_svg'];
$color_border				= $opt_themes['color_border'];
$color_border1				= rgb($opt_themes['color_border']);
$color_border2				= rgb2($opt_themes['color_border']);
$color_border3				= rgb_2($opt_themes['color_border']);
$color_rgb_texts			= rgb_1($color_texts);
$fonts					    = $opt_themes['font_body']; 
$color_rate					= $opt_themes['color_rate'];
$font_body_rtl				= '';
$font_body_rtl_alt			= '';
if ( $font_body_rtl === FALSE or $font_body_rtl == '' ) $font_body_rtl = $font_body_rtl_alt;
$font_body_custom_fonts_rtl = '';
$color_nav					= $opt_themes['color_nav'];
$color_rgb_nav				= rgb_2($opt_themes['color_nav']);
$putih						= '#ffffff';
$color_logo_header			= $opt_themes['color_logo_header'];
$color_header_link			= $opt_themes['color_header_link'];
$color_rgb					= $opt_themes['color_rgb'];
$color_rgb2					= rgb3($opt_themes['color_rgb']);
$color_rgb3					= rgb2($opt_themes['color_rgb']);
$color_rgb1					= rgb($opt_themes['color_rgb']);
$app_alternatives_icon		= EX_THEMES_URI.'/assets/img/app-alternatives.svg';
$star_icon					= EX_THEMES_URI.'/assets/img/stars-solid.svg';
$review_icon				= EX_THEMES_URI.'/assets/img/review.svg';
$download_icon				= EX_THEMES_URI.'/assets/img/download.svg';
$color_link_footers			= $opt_themes['color_link_footers'];
?>

<!--[ <?php echo strtolower(TEXT_DOMAIN); ?> v.<?php echo strtolower(VERSION); ?> ]-->
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta content='yes' name='apple-mobile-web-app-capable'/>
<meta content='width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=5.0' name='viewport'/>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
<meta content='true' name='MSSmartTagsPreventParsing'/> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="x-dns-prefetch-control" content="on">

<style id="root-style-<?php echo strtolower(THEMES_NAMES); ?>-v<?php echo VERSION; ?>">
<!-- :root{
	--putih: <?php echo $putih;?>;
	--color_rgb_texts: <?php echo $color_rgb_texts;?>;
	--color_heading: <?php echo $color_heading;?>;
	--color_link_footers: <?php echo $color_link_footers;?>;
	--color_rgb2: <?php echo $color_rgb2;?>;
	--color_rgb3: <?php echo $color_rgb3;?>;
	--color_rgb1: <?php echo $color_rgb1;?>;
	--color_rgb: <?php echo $color_rgb;?>;
	--color_header_link: <?php echo $color_header_link;?>;
	--color_header_link_hover: <?php echo $opt_themes['color_header_link_hover']; ?>;
	--color_logo_header: <?php echo $color_logo_header;?>;
	--color_border1: <?php echo $color_border1;?>;
	--color_border2: <?php echo $color_border2;?>;
	--color_border3: <?php echo $color_border3;?>;
	--color_rate: <?php echo $color_rate;?>;
	--color_texts: <?php echo $color_texts;?>;
	--color_text: <?php echo $color;?>;
	--color_button: <?php echo $color_button;?>;
	--color_rgb_button: <?php echo rgb($color_button);?>;
	--color_button_hover: <?php echo $opt_themes['color_button_hover'];?>;
	--color_link: <?php echo $color_link;?>; 
	--color_border: <?php echo $color_border;?>;
	--color_svg: <?php echo $color_svg;?>;
	--color_background: <?php echo $color_background;?>;
	--color_background_body: <?php echo $color_background_body;?>;
	--color_background_hd: <?php echo $color_background_hd;?>;
	--color_background_ft: <?php echo $color_background_ft;?>;
	--color_background_ft_alt: <?php echo $opt_themes['color_background_ft_alt']; ?>;
	--color_rgb_background: <?php echo $color_rgb_background;?>;
	--fonts: <?php echo $fonts;?>;
	--font_body_rtl: <?php echo $font_body_rtl;?>;
	--font_body_custom_fonts_rtl: <?php echo $font_body_custom_fonts_rtl;?>;
	--color_nav: <?php echo $color_nav;?>;
	--color_nav_bg: <?php echo $opt_themes['color_nav_bg'];?>;
	--color_rgb_nav: <?php echo rgb($opt_themes['color_nav_bg']);?>;
	--editor-img-width: 350px;
	--editor-img-height: 194px;
	--accent: #007aff;	
	--cate-title-color: #1d1d1f;
	--heading-color: #1d1d1f;
	--meta-bg: #efeff4;
	--app_alternatives_icon: url(<?php echo $app_alternatives_icon; ?>);
	--star_icon: url(<?php echo $star_icon; ?>);
	--review_icon: url(<?php echo $review_icon; ?>);
	--download_icon: url(<?php echo $download_icon; ?>);
	--color_border_background_ft: <?php echo rgb($opt_themes['color_background_ft']); ?>; 
}
}-->
</style>
 

<?php  
if(!empty($opt_themes['color_button'])){
?>

<!--[ Theme Color Chrome, Firefox OS and Opera ]--> 
<meta content='<?php echo $opt_themes['color_button']; ?>' name='theme-color' />
<!--[ end Theme Color Chrome, Firefox OS and Opera ]--> 

<!--[ Theme Color Windows Phone ]-->  
<meta content='<?php echo $opt_themes['color_button']; ?>' name='msapplication-navbutton-color' />
<meta content='<?php echo $opt_themes['color_button']; ?>' name='apple-mobile-web-app-status-bar-style' />
<!--[ end Theme Color Windows Phone ]-->
<?php } ?>

<!--[ Favicon ]-->   
<?php if ( get_theme_mod( 'themeslug_favicon' ) ) { ?>
<link rel="shortcut icon" href="<?php echo esc_url( get_theme_mod( 'themeslug_favicon' ) ); ?>" />
<link href='<?php echo esc_url( get_theme_mod( 'themeslug_favicon' ) ); ?>' rel='icon' type='image/x-icon' /> 
<?php } elseif (!empty($opt_themes['favicon'])) { ?>
<link rel="icon" href="<?php echo $opt_themes['favicon']['url']; ?>" />
<link rel="shortcut icon" href="<?php echo $opt_themes['favicon']['url']; ?>" />
<link href='<?php echo $opt_themes['favicon']['url']; ?>' rel='icon' type='image/x-icon' /> 
<?php } ?>
<!--[ end Favicon ]-->

<link rel="preconnect" href="//play-lh.googleusercontent.com">
 
<style>
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@100..900&display=swap'); 
<?php if(is_rtl()){?>
@font-face{
font-family: "Arabic";
src: url("<?php echo get_template_directory_uri(); ?>/assets/fonts/Arabic.eot");
src: url("<?php echo get_template_directory_uri(); ?>/assets/fonts/Arabic.eot?#iefix")format("embedded-opentype"),
	 url("<?php echo get_template_directory_uri(); ?>/assets/fonts/Arabic.woff")format("woff"),
	 url("<?php echo get_template_directory_uri(); ?>/assets/fonts/Arabic.woff2")format("woff2"),
	 url("<?php echo get_template_directory_uri(); ?>/assets/fonts/Arabic.ttf")format("truetype"),
	 url("<?php echo get_template_directory_uri(); ?>/assets/fonts/Arabic.svg#Arabic")format("svg");
font-weight:normal;
font-style:normal;
font-display:swap;
}
<?php } ?> 
div.swiper-slide {
  width: auto !important;
} 
</style>

<?php
echo $opt_themes['font_body_url']; 
echo $opt_themes['header_section']; 
if ( is_user_logged_in() && !$opt_themes['no_bar_admin'] ) {
?>
<style>
#masthead {
	margin-top: 2rem;
}
</style>
<?php } ?>
