Explorar o código

calendar misc text issue

causefx %!s(int64=7) %!d(string=hai) anos
pai
achega
1cd6cbea43
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      api/functions/homepage-connect-functions.php

+ 2 - 1
api/functions/homepage-connect-functions.php

@@ -1159,7 +1159,8 @@ function getCalendar()
 							'imagetypeFilter' => 'ical',
 							'className' => 'bg-calendar calendar-item bg-custom-calendar',
 							'start' => $startDate,
-							'end' => $endDate
+							'end' => $endDate,
+							'bgColor' => str_replace('text', 'bg', $extraClass),
 						);
 					}
 				}