<?php header("Content-type: text/css; charset: UTF-8"); ?> 

<?php
require_once( '../../../../wp-load.php' );

if(session_id() == '') {
	session_start();
}
?>

<?php
$custom_skin_arr = array();

wp_reset_query();
global $wpdb;

$pp_skins_obj = array();

$wpdb->query("SELECT * FROM `".$wpdb->prefix."options` WHERE `option_name` = '".$_SESSION['pp_skin']."'");
$pp_skins_obj = $wpdb->last_result;
$skin_settings_arr = unserialize($pp_skins_obj[0]->option_value);

foreach($skin_settings_arr['settings'] as $key => $skin_setting)
{
    if(!empty($skin_setting))
    {
    	$custom_skin_arr[$key] = $skin_setting;
    }
}

?>

<?php
	$pp_blog_title_font_color = $custom_skin_arr['pp_blog_title_font_color'];
	
	if(!empty($pp_blog_title_font_color))
	{
?>
h3.post_heading a, h5.post_heading a { color:<?php echo $pp_blog_title_font_color; ?>; }
<?php
	}
?>

<?php
	$pp_dropcap_bg_color = $custom_skin_arr['pp_dropcap_bg_color'];
	
	if(!empty($pp_dropcap_bg_color))
	{
?>
.dropcap.circle, .dropcap.box { background:<?php echo $pp_dropcap_bg_color; ?>; }
<?php
	}
?>

<?php
	$pp_pricing_active_bg_color = $custom_skin_arr['pp_pricing_active_bg_color'];
	
	if(!empty($pp_pricing_active_bg_color))
	{
?>
.pricing_box.large .header { background:<?php echo $pp_pricing_active_bg_color; ?>; }
.pricing_box.large { border:1px solid <?php echo $pp_pricing_active_bg_color; ?>; }
<?php
	}
?>

<?php
	$pp_pricing_default_bg_color = $custom_skin_arr['pp_pricing_default_bg_color'];
	
	if(!empty($pp_pricing_default_bg_color))
	{
?>
.pricing_box .header { background:<?php echo $pp_pricing_default_bg_color; ?>; }
<?php
	}
?>

<?php
	$pp_pricing_border_color = $custom_skin_arr['pp_pricing_border_color'];
	
	if(!empty($pp_pricing_border_color))
	{
?>
.pricing_box .header { border-bottom:1px solid <?php echo $pp_pricing_border_color; ?>; }
#content_wrapper .pricing_box ul li { border-bottom: 2px dotted <?php echo $pp_pricing_border_color; ?>; }
.pricing_box { border:1px solid <?php echo $pp_pricing_border_color; ?>; }
<?php
	}
?>

<?php
	$pp_footer_bg_color = $custom_skin_arr['pp_footer_bg_color'];
	
	if(!empty($pp_footer_bg_color))
	{
?>
#footer, #footer h2.widgettitle span { background:<?php echo $pp_footer_bg_color; ?>; }
<?php
	}
?>

<?php
	$pp_h1_font_color = $custom_skin_arr['pp_h1_font_color'];
	
	if(!empty($pp_h1_font_color))
	{
?>
h1,h2,h3,h4,h5,h6 { color:<?php echo $pp_h1_font_color; ?>; }
<?php
	}
?>

<?php
	$pp_page_header_font_color = $custom_skin_arr['pp_page_header_font_color'];
	
	if(!empty($pp_page_header_font_color))
	{
?>
.caption_header h1, .caption_header, .caption_header a { color:<?php echo $pp_page_header_font_color; ?>; }
<?php
	}
?>

<?php
	$pp_font_color = $custom_skin_arr['pp_font_color'];
	
	if(!empty($pp_font_color))
	{
?>
body { color:<?php echo $pp_font_color; ?>; }
<?php
	}
	
?>

<?php
	$pp_link_color = $custom_skin_arr['pp_link_color'];
	
	if(!empty($pp_link_color))
	{
?>
a, .tagline_text, .filter li a.active, .post_header h3 a:hover, .sidebar_wrapper a:hover, .sidebar_wrapper a:active, .sidebar_wrapper ul.twitter a, #footer .sidebar_widget li ul.twitter a, a:hover, .post_header h3 a:hover, .caption_breadcrumbs a:hover, .caption_breadcrumbs a:active { color:<?php echo $pp_link_color; ?>; }
.colorful_bg { background:<?php echo $pp_link_color; ?>; }
<?php
	}
	
?>

<?php
	$pp_hover_link_color = $custom_skin_arr['pp_hover_link_color'];
	
	if(!empty($pp_hover_link_color))
	{
?>
a:hover { color:<?php echo $pp_hover_link_color; ?>; }
<?php
	}	
?>

<?php
	$pp_active_link_color = $custom_skin_arr['pp_active_link_color'];
	
	if(!empty($pp_active_link_color))
	{
?>
a:active, .top_info a:active { color:<?php echo $pp_active_link_color; ?>; }
<?php
	}	
?>

<?php
	$pp_button_bg_color = $custom_skin_arr['pp_button_bg_color'];
	
	if(!empty($pp_button_bg_color))
	{
?>
input[type=submit], input[type=button], a.button, input[type=submit]:active, input[type=button]:active, a.button:active, .woocommerce ul.products li.product a.add_to_cart_button, .woocommerce-page ul.products li.product a.add_to_cart_button, .woocommerce ul.products li.product a.add_to_cart_button.loading, .woocommerce-page ul.products li.product a.add_to_cart_button.loading, .woocommerce ul.products li.product a.add_to_cart_button:hover, .woocommerce-page ul.products li.product a.add_to_cart_button:hover, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce #content input.button, .woocommerce-page a.button, .woocommerce-page button.button, .woocommerce-page input.button, .woocommerce-page #respond input#submit, .woocommerce-page #content input.button, .woocommerce .widget_shopping_cart .widget_shopping_cart_content a.button, .woocommerce table.cart td.actions .button.alt.checkout-button, .woocommerce #payment #place_order, .woocommerce-page #payment #place_order, .woocommerce table.cart td.actions .button.alt {  background-color: <?php echo $pp_button_bg_color; ?> !important; }

<?php
	}
	
?>


<?php
	$pp_overall_color = $custom_skin_arr['pp_overall_color'];
	
	if(!empty($pp_overall_color))
	{
?>
.portfolio200_overlay, .portfolio460_overlay, .portfolio305_overlay, .portfolio195_overlay, .post_img_overlay, .blog_thumb_overlay, .post_full_img_overlay, .post_half_img_overlay, .post_third_img_overlay, .colorful_bg, .flex-control-nav li a.active, .flex-control-nav li a:hover, .portfolio_single_navi a:hover, #toTop:hover, #sc_chat_box div.sc-chat-header, #sc_chat_box .sc-chat-wrapper .sc-start-chat-btn a:hover, .widget_tag_cloud div a:hover, .meta-tags a:hover, #footer .widget_tag_cloud div a:hover, #footer .meta-tags a:hover {  background-color: <?php echo $pp_overall_color; ?>; }
.portfolio_desc.hover, .member_item_info:hover { border-bottom: 2px solid <?php echo $pp_overall_color; ?>; }
.filter li a.active  { border-bottom: 3px solid <?php echo $pp_overall_color; ?>; color: <?php echo $pp_overall_color; ?>; }
.widget_tag_cloud div a:hover, .meta-tags a:hover, #footer .widget_tag_cloud div a:hover, #footer .meta-tags a:hover { border: 1px solid <?php echo $pp_overall_color; ?>; }
.post_color_date { color: <?php echo $pp_overall_color; ?>; }

<?php
	}
	
?>

<?php
	$pp_button_font_color = $custom_skin_arr['pp_button_font_color'];
	
	if(!empty($pp_button_font_color))
	{
?>
input[type=submit], input[type=button], a.button, .woocommerce-page ul.products li.product a.add_to_cart_button, .woocommerce ul.products li.product a.add_to_cart_button.loading, .woocommerce-page ul.products li.product a.add_to_cart_button.loading, .woocommerce ul.products li.product a.add_to_cart_button:hover, .woocommerce-page ul.products li.product a.add_to_cart_button:hover, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce #content input.button, .woocommerce-page a.button, .woocommerce-page button.button, .woocommerce-page input.button, .woocommerce-page #respond input#submit, .woocommerce-page #content input.button, .woocommerce .widget_shopping_cart .widget_shopping_cart_content a.button, .woocommerce table.cart td.actions .button.alt.checkout-button, .woocommerce #payment #place_order, .woocommerce-page #payment #place_order, .woocommerce table.cart td.actions .button.alt { 
	color: <?php echo $pp_button_font_color; ?> !important;
}
input[type=submit]:hover, input[type=button]:hover, a.button:hover, .woocommerce-page ul.products li.product a.add_to_cart_button, .woocommerce ul.products li.product a.add_to_cart_button.loading, .woocommerce-page ul.products li.product a.add_to_cart_button.loading, .woocommerce ul.products li.product a.add_to_cart_button:hover, .woocommerce-page ul.products li.product a.add_to_cart_button:hover, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce #content input.button, .woocommerce-page a.button, .woocommerce-page button.button, .woocommerce-page input.button, .woocommerce-page #respond input#submit, .woocommerce-page #content input.button, .woocommerce .widget_shopping_cart .widget_shopping_cart_content a.button, .woocommerce table.cart td.actions .button.alt.checkout-button, .woocommerce #payment #place_order, .woocommerce-page #payment #place_order, .woocommerce table.cart td.actions .button.alt
{
	color: <?php echo $pp_button_font_color; ?> !important;
}
<?php
	}
	
?>

<?php
	$pp_button_border_color = $custom_skin_arr['pp_button_border_color'];
	
	if(!empty($pp_button_border_color))
	{
?>
input[type=submit], input[type=button], a.button, .woocommerce-page ul.products li.product a.add_to_cart_button, .woocommerce ul.products li.product a.add_to_cart_button.loading, .woocommerce-page ul.products li.product a.add_to_cart_button.loading, .woocommerce ul.products li.product a.add_to_cart_button:hover, .woocommerce-page ul.products li.product a.add_to_cart_button:hover, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce #content input.button, .woocommerce-page a.button, .woocommerce-page button.button, .woocommerce-page input.button, .woocommerce-page #respond input#submit, .woocommerce-page #content input.button, .woocommerce .widget_shopping_cart .widget_shopping_cart_content a.button, .woocommerce table.cart td.actions .button.alt.checkout-button, .woocommerce #payment #place_order, .woocommerce-page #payment #place_order, .woocommerce table.cart td.actions .button.alt { 
	border: 1px solid <?php echo $pp_button_border_color; ?> !important;
}
<?php
	}
	
?>

<?php
    $pp_menu_link_color = $custom_skin_arr['pp_menu_link_color'];
    
    if(!empty($pp_menu_link_color))
    {
?>
#menu_wrapper .nav ul li a, #menu_wrapper div .nav li a { color: <?php echo $pp_menu_link_color; ?>; }
<?php
    }
?>

<?php
    $pp_menu_link_hover_color = $custom_skin_arr['pp_menu_link_hover_color'];
    
    if(!empty($pp_menu_link_hover_color))
    {
?>
#menu_wrapper .nav ul li a.hover, #menu_wrapper .nav ul li a:hover, #menu_wrapper div .nav li a.hover, #menu_wrapper div .nav li a:hover { color: <?php echo $pp_menu_link_hover_color; ?>; border-bottom: 5px solid <?php echo $pp_menu_link_hover_color; ?>; }
<?php
    }
?>

<?php
    $pp_menu_link_active_color = $custom_skin_arr['pp_menu_link_active_color'];
    
    if(!empty($pp_menu_link_active_color))
    {
?>
#menu_wrapper div .nav li.current-menu-item > a, #menu_wrapper div .nav li.current-menu-parent > a, #menu_wrapper div .nav li.current-menu-ancestor > a { color: <?php echo $pp_menu_link_active_color; ?>; border-bottom: 5px solid <?php echo $pp_menu_link_active_color; ?>; }
<?php
    }
?>

<?php
    $pp_submenu_link_color = $custom_skin_arr['pp_submenu_link_color'];
    
    if(!empty($pp_submenu_link_color))
    {
?>
#menu_wrapper div .nav li ul li a, #menu_wrapper div .nav li.current-menu-item ul li a, #menu_wrapper div .nav li ul li.current-menu-item a, #menu_wrapper .nav ul li ul li a, #menu_wrapper .nav ul li.current-menu-item ul li a, #menu_wrapper .nav ul li ul li.current-menu-item a, #menu_wrapper div .nav li.current-menu-parent ul li a, #menu_wrapper div .nav li ul li.current-menu-parent a { color: <?php echo $pp_submenu_link_color; ?>; }
<?php
    }
?>

<?php
    $pp_submenu_hover_color = $custom_skin_arr['pp_submenu_hover_color'];
    
    if(!empty($pp_submenu_hover_color))
    {
?>
#menu_wrapper .nav ul li ul li a:hover, #menu_wrapper .nav ul li ul li a:hover, #menu_wrapper div .nav li ul li a:hover, #menu_wrapper div .nav li ul li a:hover, #menu_wrapper div .nav li.current-menu-item ul li a:hover, #menu_wrapper div .nav li.current-menu-parent ul li a:hover { color: <?php echo $pp_submenu_hover_color; ?>; }
<?php
    }
?>

<?php
    $pp_footer_widget_title_color = $custom_skin_arr['pp_footer_widget_title_color'];
    
    if(!empty($pp_footer_widget_title_color))
    {
?>
#footer ul li.widget .widgettitle { color: <?php echo $pp_footer_widget_title_color; ?>; }
<?php
    }
?>

<?php
    $pp_footer_font_color = $custom_skin_arr['pp_footer_font_color'];
    
    if(!empty($pp_footer_font_color))
    {
?>
#footer { color: <?php echo $pp_footer_font_color; ?>; }
<?php
    }
?>

<?php
    $pp_footer_link_color = $custom_skin_arr['pp_footer_link_color'];
    
    if(!empty($pp_footer_link_color))
    {
?>
#footer a, #footer a:hover, #footer a:active { color: <?php echo $pp_footer_link_color; ?>; }
<?php
    }
?>

<?php
    $pp_below_footer_color = $custom_skin_arr['pp_below_footer_color'];
    
    if(!empty($pp_below_footer_color))
    {
?>
#copyright { color: <?php echo $pp_below_footer_color; ?>; }
<?php
    }
?>

<?php
    $pp_below_footer_background_color = $custom_skin_arr['pp_below_footer_background_color'];
    
    if(!empty($pp_below_footer_background_color))
    {
?>
#copyright { background-color: <?php echo $pp_below_footer_background_color; ?>; }
<?php
	}
?>

<?php
//Get Theme Layout
if(isset($_SESSION['pp_theme_layout']))
{
    $pp_theme_layout = $_SESSION['pp_theme_layout'];
}
else
{
    $pp_theme_layout = get_option('pp_theme_layout');
}

if($pp_theme_layout == 'boxed')
{
	//Get BG Patterns
	if(isset($_SESSION['pp_boxed_bg_img_pattern']))
	{
	    $pp_boxed_bg_img_pattern = $_SESSION['pp_boxed_bg_img_pattern'];
	}
	else
	{
	    $pp_boxed_bg_img_pattern = get_option('pp_boxed_bg_img_pattern');
	}
	
	if(!empty($pp_boxed_bg_img_pattern))
	{
?>
body { background: url('<?php echo get_stylesheet_directory_uri(); ?>/images/patterns/<?php echo $pp_boxed_bg_img_pattern; ?>') repeat !important; }
<?php
	}
}
?>