function css() { global $ss_settings; $content_opacity = $ss_settings['body_bg_opacity']; $bg_color = $ss_settings['body_bg']; if (isset($bg_color['background-color'])) { $bg_color = $bg_color['background-color']; } else { $bg_color = '#ffffff'; } // Style defaults to null. $style = null; // The Content background color if ($content_opacity < 100) { $content_bg = 'background:' . StacheStack_Color::get_rgba($bg_color, $content_opacity) . ';'; $style = '.wrap.main-section div.content .bg {' . $content_bg . '}'; } wp_add_inline_style('stachestack_css', $style); }
function stachestack_get_rgba($hex, $opacity, $echo) { _stachestack_deprecated_function(__FUNCTION__, '3.2', 'StacheStack_Color::sanitize_hex()'); return StacheStack_Color::get_rgba($hex, $opacity, $echo); }