Back to PhocaDownloadRenderFront class

Method renderOverlibCSS

public static
renderOverlibCSS
(mixed $ol_fg_color, mixed $ol_bg_color, mixed $ol_tf_color, mixed $ol_cf_color, mixed $opacity = 0.8)

Method renderOverlibCSS - Source code

public static function renderOverlibCSS($ol_fg_color, $ol_bg_color, $ol_tf_color, $ol_cf_color, $opacity = 0.8)
{
    $opacityPer = (float) $opacity * 100;
    $css = "<style type=\"text/css\">\n" . ".bgPhocaClass{\r\n\t\t\tbackground:" . $ol_bg_color . ";\r\n\t\t\tfilter:alpha(opacity=" . $opacityPer . ");\r\n\t\t\topacity: " . $opacity . ";\r\n\t\t\t-moz-opacity:" . $opacity . ";\r\n\t\t\tz-index:1000;\r\n\t\t\t}\r\n\t\t\t.fgPhocaClass{\r\n\t\t\tbackground:" . $ol_fg_color . ";\r\n\t\t\tfilter:alpha(opacity=100);\r\n\t\t\topacity: 1;\r\n\t\t\t-moz-opacity:1;\r\n\t\t\tz-index:1000;\r\n\t\t\t}\r\n\t\t\t.fontPhocaClass{\r\n\t\t\tcolor:" . $ol_tf_color . ";\r\n\t\t\tz-index:1001;\r\n\t\t\t}\r\n\t\t\t.capfontPhocaClass, .capfontclosePhocaClass{\r\n\t\t\tcolor:" . $ol_cf_color . ";\r\n\t\t\tfont-weight:bold;\r\n\t\t\tz-index:1001;\r\n\t\t\t}" . " </style>\n";
    return $css;
}