From 5d1ccb55a02c63f3523d191d2507e78318d87bb7 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 2 Aug 2022 14:03:52 +0200 Subject: [PATCH] fix some more missing images in calendar --- api/src/Framework/Ajax.php | 4 ++-- calendar/templates/default/app.css | 6 +++--- calendar/templates/mobile/app.css | 6 +++--- calendar/templates/pixelegg/app.css | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/api/src/Framework/Ajax.php b/api/src/Framework/Ajax.php index 518851c407..63aae4c89c 100755 --- a/api/src/Framework/Ajax.php +++ b/api/src/Framework/Ajax.php @@ -707,7 +707,7 @@ abstract class Ajax extends Api\Framework } $var = array(); - $var['icon_or_star'] = $GLOBALS['egw_info']['server']['webserver_url'] . $this->template_dir.'/images/bullet.svg'; + $var['icon_or_star'] = Api\Image::find('api', 'bullet'); $var['target'] = ''; if(is_array($item_link)) { @@ -1167,4 +1167,4 @@ abstract class Ajax extends Api\Framework * Constant is read by admin_hooks::config to set default for fw_mobile_app_list. */ const DEFAULT_MOBILE_APPS = 'calendar,infolog,timesheet,resources,addressbook,projectmanager,tracker,mail,filemanager'; -} +} \ No newline at end of file diff --git a/calendar/templates/default/app.css b/calendar/templates/default/app.css index 8e57e6e733..ce8989ca30 100644 --- a/calendar/templates/default/app.css +++ b/calendar/templates/default/app.css @@ -173,12 +173,12 @@ } #calendar-sidebox_date .flatpickr-prev-month { order: 1; - background-image: url(./images/previous.svg); + background-image: url(../default/images/previous.svg); margin-right: 0px; } #calendar-sidebox_date .flatpickr-next-month { order: 3; - background-image: url(./images/next.svg); + background-image: url(../default/images/next.svg); } #calendar-sidebox_date div.flatpickr-calendar.inline { width: 100% !important; @@ -372,7 +372,7 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget color: #626161; } #calendar-view .calendar_calBirthday, #calendar-planner .calendar_plannerHeader .calendar_calBirthdayIcon { - background-image: url(images/cake.png); + background-image: url(../default/images/cake.svg); background-repeat: no-repeat; background-size: 16px; background-position: 10px center; diff --git a/calendar/templates/mobile/app.css b/calendar/templates/mobile/app.css index 42e832a016..ec5e3a594b 100644 --- a/calendar/templates/mobile/app.css +++ b/calendar/templates/mobile/app.css @@ -189,12 +189,12 @@ } #calendar-sidebox_date .flatpickr-prev-month { order: 1; - background-image: url(./images/previous.svg); + background-image: url(../default/images/previous.svg); margin-right: 0px; } #calendar-sidebox_date .flatpickr-next-month { order: 3; - background-image: url(./images/next.svg); + background-image: url(../default/images/next.svg); } #calendar-sidebox_date div.flatpickr-calendar.inline { width: 100% !important; @@ -382,7 +382,7 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget } #calendar-view .calendar_calBirthday, #calendar-planner .calendar_plannerHeader .calendar_calBirthdayIcon { - background-image: url(images/cake.png); + background-image: url(../default/images/cake.svg); background-repeat: no-repeat; background-size: 16px; background-position: 10px center; diff --git a/calendar/templates/pixelegg/app.css b/calendar/templates/pixelegg/app.css index ec8c6f775e..06ef6e9cd2 100755 --- a/calendar/templates/pixelegg/app.css +++ b/calendar/templates/pixelegg/app.css @@ -177,12 +177,12 @@ } #calendar-sidebox_date .flatpickr-prev-month { order: 1; - background-image: url(./images/previous.svg); + background-image: url(../default/images/previous.svg); margin-right: 0px; } #calendar-sidebox_date .flatpickr-next-month { order: 3; - background-image: url(./images/next.svg); + background-image: url(../default/images/next.svg); } #calendar-sidebox_date div.flatpickr-calendar.inline { width: 100% !important; @@ -370,7 +370,7 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget } #calendar-view .calendar_calBirthday, #calendar-planner .calendar_plannerHeader .calendar_calBirthdayIcon { - background-image: url(images/cake.png); + background-image: url(../default/images/cake.svg); background-repeat: no-repeat; background-size: 16px; background-position: 10px center;