mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Check for pixelegg theme and switch to SVG
This commit is contained in:
parent
9f8600ca34
commit
eb2cee5678
@ -987,7 +987,7 @@ abstract class Framework extends Framework\Extra
|
||||
self::includeJS('/api/images.php', array(
|
||||
'template' => $GLOBALS['egw_info']['server']['template_set'],
|
||||
'etag' => md5(json_encode(Image::map($GLOBALS['egw_info']['server']['template_set']))),
|
||||
'svg' => Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'modern',
|
||||
'svg' => Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'pixelegg',
|
||||
));
|
||||
self::includeJS('/api/user.php', array(
|
||||
'user' => $GLOBALS['egw_info']['user']['account_lid'],
|
||||
|
@ -31,7 +31,7 @@ class Image
|
||||
*/
|
||||
static function find($app,$image,$extension='',$_svg=false)
|
||||
{
|
||||
$svg = Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'modern' ? null : $_svg;
|
||||
$svg = Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'pixelegg' ? null : $_svg;
|
||||
static $image_map_no_svg = null, $image_map_svg = null;
|
||||
if (is_null($svg)) $svg = self::svg_usable ();
|
||||
if ($svg)
|
||||
|
Loading…
Reference in New Issue
Block a user