Forums
Home / Plugin: DH Events Calendar / [Plugin: DH Events Calendar] Works Fine !!
(@manichooo)
12 years, 5 months ago
Great Plugin !!
http://wordpress.org/extend/plugins/dh-events-calendar/
(@lostkettle)
I tried to add some simple code to show which days have events, but it won’t accept the code, do you know why?
——– $cadena = ‘var $highlights = [’04/30/2010′, ’05/01/2010′];’; ——– ,beforeShowDay: highlightDays
——– public function highlightDays($highlights) { $cadena = ‘for (var i = 0; i < dates.length; i++) {‘; $cadena = ‘if (new Date(dates[i]).toString() == date.toString()) {‘; $cadena = ‘return [true, ‘highlight’]’; } return $cadena; }