<?php

$educational_university_first_color = get_theme_mod('educational_university_first_color');
$educational_university_color_scheme_css = '';

/*------------------ Global First Color -----------*/

if ($educational_university_first_color) {
  $educational_university_color_scheme_css .= ':root {';
  $educational_university_color_scheme_css .= '--first-theme-color: ' . esc_attr($educational_university_first_color) . ' !important;';
  $educational_university_color_scheme_css .= '} ';
}

// Sticky Header
$educational_university_resp_stickyheader = get_theme_mod( 'educational_university_sticky_header',false);
if($educational_university_resp_stickyheader != true){
    $educational_university_color_scheme_css .='.header-fixed{';
        $educational_university_color_scheme_css .='position:static;';
    $educational_university_color_scheme_css .='} ';
}
if($educational_university_resp_stickyheader == true){
    $educational_university_color_scheme_css .='@media screen and (max-width:575px) {';
    $educational_university_color_scheme_css .='.header-fixed{';
        $educational_university_color_scheme_css .='position:fixed;';
    $educational_university_color_scheme_css .='} }';
}else if($educational_university_resp_stickyheader == false){
    $educational_university_color_scheme_css .='@media screen and (max-width:575px){';
    $educational_university_color_scheme_css .='.header-fixed{';
        $educational_university_color_scheme_css .='position:static;';
    $educational_university_color_scheme_css .='} }';
}

//---------------------------------Logo-Max-height--------- 
  $educational_university_logo_width = get_theme_mod('educational_university_logo_width', 85);

  if($educational_university_logo_width != false){

    $educational_university_color_scheme_css .='.educational-university-logo img{';

      $educational_university_color_scheme_css .='width: '.esc_html($educational_university_logo_width).'px;';

    $educational_university_color_scheme_css .='}';
  }

    // by default header
    $educational_university_banner = get_theme_mod('educational_university_banner', true);

    if($educational_university_banner != true){

        $educational_university_color_scheme_css .='.page-template-template-home-page .main-header{';

            $educational_university_color_scheme_css .='position: static;';

        $educational_university_color_scheme_css .='}';

    }

/*--------------------------- Woocommerce Product Image Border Radius -------------------*/

$educational_university_woo_product_img_border_radius = get_theme_mod('educational_university_woo_product_img_border_radius');
  if($educational_university_woo_product_img_border_radius != false){
    $educational_university_color_scheme_css .='.woocommerce ul.products li.product a img{';
    $educational_university_color_scheme_css .='border-radius: '.esc_attr($educational_university_woo_product_img_border_radius).'px;';
    $educational_university_color_scheme_css .='}';
}  

/*--------------------------- Scroll to top positions -------------------*/

$educational_university_scroll_position = get_theme_mod( 'educational_university_scroll_position','Right');
if($educational_university_scroll_position == 'Right'){
    $educational_university_color_scheme_css .='#button{';
        $educational_university_color_scheme_css .='right: 20px;';
    $educational_university_color_scheme_css .='}';
}else if($educational_university_scroll_position == 'Left'){
    $educational_university_color_scheme_css .='#button{';
        $educational_university_color_scheme_css .='left: 20px;';
    $educational_university_color_scheme_css .='}';
}else if($educational_university_scroll_position == 'Center'){
    $educational_university_color_scheme_css .='#button{';
        $educational_university_color_scheme_css .='right: 50%;left: 50%;';
    $educational_university_color_scheme_css .='}';
}

/*--------------------------- Footer background image -------------------*/

$educational_university_footer_bg_image = get_theme_mod('educational_university_footer_bg_image');
if($educational_university_footer_bg_image != false){
    $educational_university_color_scheme_css .='#footer{';
        $educational_university_color_scheme_css .='background: url('.esc_attr($educational_university_footer_bg_image).');';
        $educational_university_color_scheme_css .= 'background-size: cover;';  
    $educational_university_color_scheme_css .='}';
}

/*--------------------------- Footer image position -------------------*/

$educational_university_footer_img_position = get_theme_mod('educational_university_footer_img_position','center center');
if($educational_university_footer_img_position != false){
    $educational_university_color_scheme_css .='#footer{';
        $educational_university_color_scheme_css .='background-position: '.esc_attr($educational_university_footer_img_position).';';
    $educational_university_color_scheme_css .='}';
}

/*--------------------------- Blog Post Page Image Box Shadow -------------------*/

$educational_university_blog_post_page_image_box_shadow = get_theme_mod('educational_university_blog_post_page_image_box_shadow',0);
if($educational_university_blog_post_page_image_box_shadow != false){
    $educational_university_color_scheme_css .='.blog-post img{';
        $educational_university_color_scheme_css .='box-shadow: '.esc_attr($educational_university_blog_post_page_image_box_shadow).'px '.esc_attr($educational_university_blog_post_page_image_box_shadow).'px '.esc_attr($educational_university_blog_post_page_image_box_shadow).'px #cccccc;';
    $educational_university_color_scheme_css .='}';
}


/*--------------------------- Single Post Page Image Box Shadow -------------------*/

$educational_university_single_post_page_image_box_shadow = get_theme_mod('educational_university_single_post_page_image_box_shadow',0);
if($educational_university_single_post_page_image_box_shadow != false){
    $educational_university_color_scheme_css .='.single-post img{';
        $educational_university_color_scheme_css .='box-shadow: '.esc_attr($educational_university_single_post_page_image_box_shadow).'px '.esc_attr($educational_university_single_post_page_image_box_shadow).'px '.esc_attr($educational_university_single_post_page_image_box_shadow).'px #cccccc;';
    $educational_university_color_scheme_css .='}';
}  

/*--------------------------- Woocommerce Product Sale Position -------------------*/    

$educational_university_product_sale_position = get_theme_mod( 'educational_university_product_sale_position','Left');
if($educational_university_product_sale_position == 'Right'){
    $educational_university_color_scheme_css .='.woocommerce ul.products li.product .onsale{';
        $educational_university_color_scheme_css .='left:auto !important; right:1em !important;';
    $educational_university_color_scheme_css .='}';
}else if($educational_university_product_sale_position == 'Left'){
    $educational_university_color_scheme_css .='.woocommerce ul.products li.product .onsale {';
        $educational_university_color_scheme_css .='right:auto !important; left:1em !important;';
    $educational_university_color_scheme_css .='}';
}        

/*--------------------------- Shop page pagination -------------------*/

$educational_university_wooproducts_nav = get_theme_mod('educational_university_wooproducts_nav', 'Yes');
if($educational_university_wooproducts_nav == 'No'){
  $educational_university_color_scheme_css .='.woocommerce nav.woocommerce-pagination{';
    $educational_university_color_scheme_css .='display: none;';
  $educational_university_color_scheme_css .='}';
}

/*--------------------------- Related Product -------------------*/

$educational_university_related_product_enable = get_theme_mod('educational_university_related_product_enable',true);
if($educational_university_related_product_enable == false){
  $educational_university_color_scheme_css .='.related.products{';
    $educational_university_color_scheme_css .='display: none;';
  $educational_university_color_scheme_css .='}';
}

/*--------------------------- Scroll to Top Button Shape -------------------*/

$educational_university_scroll_top_shape = get_theme_mod('educational_university_scroll_top_shape', 'circle');
if($educational_university_scroll_top_shape == 'box' ){
    $educational_university_color_scheme_css .='#button{';
        $educational_university_color_scheme_css .=' border-radius: 0%';
    $educational_university_color_scheme_css .='}';
}elseif($educational_university_scroll_top_shape == 'curved' ){
    $educational_university_color_scheme_css .='#button{';
        $educational_university_color_scheme_css .=' border-radius: 20%';
    $educational_university_color_scheme_css .='}';
}elseif($educational_university_scroll_top_shape == 'circle' ){
    $educational_university_color_scheme_css .='#button{';
        $educational_university_color_scheme_css .=' border-radius: 50%;';
    $educational_university_color_scheme_css .='}';
}

/*--------------------------- Post Layout -------------------*/

$educational_university_blog_layouts = get_theme_mod('educational_university_blog_layout_option_setting', 'Left');
if ($educational_university_blog_layouts == 'Left') {
    $educational_university_color_scheme_css .= '.postsec-list .listarticle{';
    $educational_university_color_scheme_css .= 'text-align:left;';
    $educational_university_color_scheme_css .= '}';
} elseif ($educational_university_blog_layouts == 'Center') {
    $educational_university_color_scheme_css .= '.postsec-list .listarticle{';
    $educational_university_color_scheme_css .= 'text-align:center;';
    $educational_university_color_scheme_css .= '}';
} elseif ($educational_university_blog_layouts == 'Right') {
    $educational_university_color_scheme_css .= '.postsec-list .listarticle{';
    $educational_university_color_scheme_css .= 'text-align:right;';
    $educational_university_color_scheme_css .= '}';
}