li > a{'; $adventure_resort_theme_css .='text-transform:Capitalize;'; $adventure_resort_theme_css .='}'; } if($adventure_resort_nav_menu == 'Lowercase'){ $adventure_resort_theme_css .='.main-navigation .menu > li > a{'; $adventure_resort_theme_css .='text-transform:Lowercase;'; $adventure_resort_theme_css .='}'; } if($adventure_resort_nav_menu == 'Uppercase'){ $adventure_resort_theme_css .='.main-navigation .menu > li > a{'; $adventure_resort_theme_css .='text-transform:Uppercase;'; $adventure_resort_theme_css .='}'; } $adventure_resort_menu_font_size = get_theme_mod( 'adventure_resort_menu_font_size'); if($adventure_resort_menu_font_size != ''){ $adventure_resort_theme_css .='.main-navigation .menu > li > a{'; $adventure_resort_theme_css .='font-size: '.esc_attr($adventure_resort_menu_font_size).'px;'; $adventure_resort_theme_css .='}'; } $adventure_resort_nav_menu_font_weight = get_theme_mod( 'adventure_resort_nav_menu_font_weight',500); if($adventure_resort_menu_font_size != ''){ $adventure_resort_theme_css .='.main-navigation .menu > li > a{'; $adventure_resort_theme_css .='font-weight: '.esc_attr($adventure_resort_nav_menu_font_weight).';'; $adventure_resort_theme_css .='}'; } /*-------------------- Global First Color -------------------*/ $adventure_resort_first_color = get_theme_mod('adventure_resort_first_color'); $adventure_resort_second_color = get_theme_mod('adventure_resort_second_color'); if ($adventure_resort_first_color) { $adventure_resort_theme_css .= ':root {'; $adventure_resort_theme_css .= '--first-color: ' . esc_attr($adventure_resort_first_color) . ' !important;'; $adventure_resort_theme_css .= '} '; } if ($adventure_resort_second_color) { $adventure_resort_theme_css .= ':root {'; $adventure_resort_theme_css .= '--second-color: ' . esc_attr($adventure_resort_second_color) . ' !important;'; $adventure_resort_theme_css .= '} '; } /*-------------------- Heading typography -------------------*/ $adventure_resort_heading_color = get_theme_mod('adventure_resort_heading_color'); $adventure_resort_heading_font_family = get_theme_mod('adventure_resort_heading_font_family'); $adventure_resort_heading_font_size = get_theme_mod('adventure_resort_heading_font_size'); if($adventure_resort_heading_color != false || $adventure_resort_heading_font_family != false || $adventure_resort_heading_font_size != false){ $adventure_resort_theme_css .='h1, h2, h3, h4, h5, h6, .navbar-brand h1.site-title, h2.entry-title, h1.entry-title, h2.page-title, #latest_post h2, h2.woocommerce-loop-product__title, #top-slider .slider-inner-box h3, .featured h3.main-heading, .article-box h3.entry-title, .featured h4.main-heading, .ser-content h4 a, #colophon h5, .sidebar h5{'; $adventure_resort_theme_css .='color: '.esc_attr($adventure_resort_heading_color).'!important; font-family: '.esc_attr($adventure_resort_heading_font_family).'!important; font-size: '.esc_attr($adventure_resort_heading_font_size).'px !important;'; $adventure_resort_theme_css .='}'; } $adventure_resort_paragraph_color = get_theme_mod('adventure_resort_paragraph_color'); $adventure_resort_paragraph_font_family = get_theme_mod('adventure_resort_paragraph_font_family'); $adventure_resort_paragraph_font_size = get_theme_mod('adventure_resort_paragraph_font_size'); if($adventure_resort_paragraph_color != false || $adventure_resort_paragraph_font_family != false || $adventure_resort_paragraph_font_size != false){ $adventure_resort_theme_css .='p, p.site-title, span, .article-box p, ul, li{'; $adventure_resort_theme_css .='color: '.esc_attr($adventure_resort_paragraph_color).'!important; font-family: '.esc_attr($adventure_resort_paragraph_font_family).'!important; font-size: '.esc_attr($adventure_resort_paragraph_font_size).'px !important;'; $adventure_resort_theme_css .='}'; } /*------------------ Slider CSS -------------------*/ $adventure_resort_slider_content_layout = get_theme_mod( 'adventure_resort_slider_content_layout','Left'); if($adventure_resort_slider_content_layout == 'Left'){ $adventure_resort_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{'; $adventure_resort_theme_css .='text-align : left;'; $adventure_resort_theme_css .='}'; } if($adventure_resort_slider_content_layout == 'Center'){ $adventure_resort_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{'; $adventure_resort_theme_css .='text-align : center;'; $adventure_resort_theme_css .='}'; $adventure_resort_theme_css .='.slider-inner-box{'; $adventure_resort_theme_css .='left: 25%; right:25%;'; $adventure_resort_theme_css .='}'; } if($adventure_resort_slider_content_layout == 'Right'){ $adventure_resort_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{'; $adventure_resort_theme_css .='text-align : right;'; $adventure_resort_theme_css .='}'; $adventure_resort_theme_css .='.slider-inner-box{'; $adventure_resort_theme_css .='left: 70%; right:8%;'; $adventure_resort_theme_css .='}'; } /*------------------ Slider CSS -------------------*/ $adventure_resort_slider_opacity_setting = get_theme_mod( 'adventure_resort_slider_opacity_setting',true); $adventure_resort_image_opacity_color = get_theme_mod( 'adventure_resort_image_opacity_color'); $adventure_resort_slider_opacity = get_theme_mod( 'adventure_resort_slider_opacity', '0.7'); if( $adventure_resort_slider_opacity_setting != false) { $adventure_resort_theme_css .='#top-slider .slider-image img{'; $adventure_resort_theme_css .='opacity: '. $adventure_resort_slider_opacity. ';'; $adventure_resort_theme_css .='}'; if( $adventure_resort_image_opacity_color != '') { $adventure_resort_theme_css .='#top-slider .slider-image{'; $adventure_resort_theme_css .='background-color: '. $adventure_resort_image_opacity_color. ';'; $adventure_resort_theme_css .='}'; } } else { $adventure_resort_theme_css .='#top-slider .slider-image img{'; $adventure_resort_theme_css .='opacity: 1;'; $adventure_resort_theme_css .='}'; } /*------------------ Footer CSS -------------------*/ $adventure_resort_footer_bg_color = get_theme_mod( 'adventure_resort_footer_bg_color'); if($adventure_resort_footer_bg_color != '' ){ $adventure_resort_theme_css .='#colophon {'; $adventure_resort_theme_css .='background-color: '.esc_attr($adventure_resort_footer_bg_color).'; '; $adventure_resort_theme_css .='}'; } $adventure_resort_footer_content_color = get_theme_mod( 'adventure_resort_footer_content_color'); if($adventure_resort_footer_content_color != ''){ $adventure_resort_theme_css .='#colophon, #colophon a, #colophon h5, #colophon .widget #wp-calendar caption {'; $adventure_resort_theme_css .='color: '.esc_attr($adventure_resort_footer_content_color).';'; $adventure_resort_theme_css .='}'; } /*------------------ Copyright CSS -------------------*/ $adventure_resort_copyright_text_color = get_theme_mod( 'adventure_resort_copyright_text_color'); if($adventure_resort_copyright_text_color != ''){ $adventure_resort_theme_css .='#colophon .site-info a, #colophon .site-info span {'; $adventure_resort_theme_css .='color: '.esc_attr($adventure_resort_copyright_text_color).';'; $adventure_resort_theme_css .='}'; } /*--------------------------- Featured Image Border Radius -------------------*/ $adventure_resort_post_page_image_border_radius = get_theme_mod('adventure_resort_post_page_image_border_radius', 0); if($adventure_resort_post_page_image_border_radius != false){ $adventure_resort_theme_css .='.article-box img{'; $adventure_resort_theme_css .='border-radius: '.esc_attr($adventure_resort_post_page_image_border_radius).'px;'; $adventure_resort_theme_css .='}'; } /*--------------------------- Post Page Image Box Shadow -------------------*/ $adventure_resort_post_page_image_box_shadow = get_theme_mod('adventure_resort_post_page_image_box_shadow',0); if($adventure_resort_post_page_image_box_shadow != false){ $adventure_resort_theme_css .='.article-box img{'; $adventure_resort_theme_css .='box-shadow: '.esc_attr($adventure_resort_post_page_image_box_shadow).'px '.esc_attr($adventure_resort_post_page_image_box_shadow).'px '.esc_attr($adventure_resort_post_page_image_box_shadow).'px #cccccc;'; $adventure_resort_theme_css .='}'; } /*---------------- Single post Settings ------------------*/ $adventure_resort_single_post_navigation_show_hide = get_theme_mod('adventure_resort_single_post_navigation_show_hide',true); if($adventure_resort_single_post_navigation_show_hide != true){ $adventure_resort_theme_css .='.nav-links{'; $adventure_resort_theme_css .='display: none;'; $adventure_resort_theme_css .='}'; } /*--------------------------- Single Post Page Image Box Shadow -------------------*/ $adventure_resort_single_post_page_image_box_shadow = get_theme_mod('adventure_resort_single_post_page_image_box_shadow',0); if($adventure_resort_single_post_page_image_box_shadow != false){ $adventure_resort_theme_css .='.single-post .entry-header img{'; $adventure_resort_theme_css .='box-shadow: '.esc_attr($adventure_resort_single_post_page_image_box_shadow).'px '.esc_attr($adventure_resort_single_post_page_image_box_shadow).'px '.esc_attr($adventure_resort_single_post_page_image_box_shadow).'px #cccccc;'; $adventure_resort_theme_css .='}'; } /*--------------------------- Single Post Page Image Border Radius -------------------*/ $adventure_resort_single_post_page_image_border_radius = get_theme_mod('adventure_resort_single_post_page_image_border_radius', 0); if($adventure_resort_single_post_page_image_border_radius != false){ $adventure_resort_theme_css .='.single-post .entry-header img{'; $adventure_resort_theme_css .='border-radius: '.esc_attr($adventure_resort_single_post_page_image_border_radius).'px;'; $adventure_resort_theme_css .='}'; }