Factor out function out of themes

This commit is contained in:
Michal Čihař 2011-08-22 14:57:12 +02:00
parent 98112c58f2
commit 00fab43533
2 changed files with 9 additions and 17 deletions

View File

@ -12,12 +12,10 @@ if (!defined('PMA_MINIMUM_COMMON') && !defined('TESTSUITE')) {
exit();
}
function PMA_ieFilter($start_color, $end_color)
{
return PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 6 && PMA_USR_BROWSER_VER <= 8
? 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="' . $start_color . '", endColorstr="' . $end_color . '");'
: '';
}
/**
* Theme helpers.
*/
require 'libraries/theme.lib.php';
?>
/******************************************************************************/
/* general tags */

View File

@ -12,17 +12,11 @@ if (!defined('PMA_MINIMUM_COMMON')) {
exit();
}
function PMA_ieFilter($start_color, $end_color)
{
return PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 6 && PMA_USR_BROWSER_VER <= 8
? 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="' . $start_color . '", endColorstr="' . $end_color . '");'
: '';
}
function PMA_ieClearFilter() {
return PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 6 && PMA_USR_BROWSER_VER <= 8
? 'filter: none'
: '';
}
/**
* Theme helpers.
*/
require 'libraries/theme.lib.php';
?>
/******************************************************************************/