lbell / pretty-google-calendar

Simple WordPress plugin to embed Google Calendars in way that doesn't suck.
13 stars 7 forks source link

Update helpers.js #31

Closed OoZAGoO closed 10 months ago

OoZAGoO commented 1 year ago

Added possibility to set front and backcolor on mutiply calendars (comma seperated).

Use first "|" after id to set bg-color (optional) Use first "|" after id and second "|" after bg-color to set bg-color and textColor (optional)

lbell commented 1 year ago

Nice! Looks promising. I'll see about including in next release.

OoZAGoO commented 1 year ago

Nice. Here you can see the implementation: https://www.ttc-richelsdorf.de/hallennutzungsplan-weissberghalle/

lbell commented 10 months ago

With v1.7.0 (and FullCalendar 6.1.9) events from each calendar get their own class: pgcal-event-0 for the first cal, pgcal-event-1 for the second cal.

This should allow custom CSS to do the coloring (and greater flexibility) rather than need to pollute the shortcode args .

Does that accomplish what you need rather than implement this fix?