Example #1
0
function ewww_image_optimizer_progressbar_style()
{
    wp_add_inline_style('jquery-ui-progressbar', ".ui-widget-header { background-color: " . ewww_image_optimizer_admin_background() . "; }");
    ewwwio_memory(__FUNCTION__);
}
Example #2
0
function ewww_image_optimizer_progressbar_style()
{
    //	if (function_exists('wp_add_inline_style')) {
    //		$user_info = wp_get_current_user();
    //		$fill_color = ewww_image_optimizer_admin_background();
    /*			case 'midnight':
    				$fill_style = ".ui-widget-header { background-color: #e14d43; }";
    				break;
    			case 'blue':
    				$fill_style = ".ui-widget-header { background-color: #096484; }";
    				break;
    			case 'light':
    				$fill_style = ".ui-widget-header { background-color: #04a4cc; }";
    				break;
    			case 'ectoplasm':
    				$fill_style = ".ui-widget-header { background-color: #a3b745; }";
    				break;
    			case 'coffee':
    				$fill_style = ".ui-widget-header { background-color: #c7a589; }";
    				break;
    			case 'ocean':
    				$fill_style = ".ui-widget-header { background-color: #9ebaa0; }";
    				break;
    			case 'sunrise':
    				$fill_style = ".ui-widget-header { background-color: #dd823b; }";
    				break;
    			default:
    				$fill_style = ".ui-widget-header { background-color: #0074a2; }";
    		}*/
    wp_add_inline_style('jquery-ui-progressbar', ".ui-widget-header { background-color: " . ewww_image_optimizer_admin_background() . "; }");
    //	}
}