0) { $rgb[$i] = round($rgb[$i] * $percent) + round(255 * (1-$percent)); } else { $positivePercent = $percent - ($percent*2); $rgb[$i] = round($rgb[$i] * $positivePercent) + round(0 * (1-$positivePercent)); } if ($rgb[$i] > 255) { $rgb[$i] = 255; } } $hex = ''; for($i=0; $i < 3; $i++) { $hexDigit = dechex($rgb[$i]); if(strlen($hexDigit) == 1) { $hexDigit = "0" . $hexDigit; } $hex .= $hexDigit; } return $hash.$hex; } function solofolio_css() { WP_Filesystem(); global $wp_filesystem; $layout_spacing = get_theme_mod('solofolio_layout_spacing', '20'); $header_width = get_theme_mod('solofolio_header_width', '200'); $entry_width = get_theme_mod('solofolio_entry_width', '900'); $is_heights = get_theme_mod('solofolio_layout_mode') == 'heights'; $is_horizon = get_theme_mod('solofolio_layout_mode') == 'horizon'; $center_blog = get_theme_mod('solofolio_blog_center_layout'); $background_color = get_theme_mod('solofolio_background_color'); $header_background_color = get_theme_mod('solofolio_header_background_color'); $styles = ""; $styles = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $styles); $styles = str_replace(': ', ':', $styles); $styles = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $styles); return $styles; } ?>