php-calendar icon indicating copy to clipboard operation
php-calendar copied to clipboard

Festivities

Open sabas opened this issue 11 years ago • 4 comments

Different color for days which are: -national / local festivities -other days off

sabas avatar Apr 17 '13 10:04 sabas

We could expand categories to cover this issue. Maybe have full day events with categories change the background for the entire day. Or add another category attribute that does it.

sproctor avatar May 08 '13 14:05 sproctor

"change the background for the entire day" <- what about css classes? and some definition for rules to apply them (if festivity add .festivity class to the div)

sabas avatar May 08 '13 15:05 sabas

The same logic applies for classes as it does for any kind of style. For something programmatic like this, it's easier to add the style to each place it's to be applied. I'm not sure that we want users to have too much control over the CSS as it opens up a path to XSS and similar attacks.

sproctor avatar May 08 '13 15:05 sproctor

The idea is very much interesting and a simple class, similar to Twitter Bootstrap styles may be applied. The user will then have the possibility of assigning a color to each festivity.

madahmani avatar May 08 '13 15:05 madahmani