mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02: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(
|
self::includeJS('/api/images.php', array(
|
||||||
'template' => $GLOBALS['egw_info']['server']['template_set'],
|
'template' => $GLOBALS['egw_info']['server']['template_set'],
|
||||||
'etag' => md5(json_encode(Image::map($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(
|
self::includeJS('/api/user.php', array(
|
||||||
'user' => $GLOBALS['egw_info']['user']['account_lid'],
|
'user' => $GLOBALS['egw_info']['user']['account_lid'],
|
||||||
|
@ -31,7 +31,7 @@ class Image
|
|||||||
*/
|
*/
|
||||||
static function find($app,$image,$extension='',$_svg=false)
|
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;
|
static $image_map_no_svg = null, $image_map_svg = null;
|
||||||
if (is_null($svg)) $svg = self::svg_usable ();
|
if (is_null($svg)) $svg = self::svg_usable ();
|
||||||
if ($svg)
|
if ($svg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user