Hello,
I’m not going to fork your plugin, as I don’t see any need to do that. Especially that (as you mentioned) you don’t look for any contributions, and it’s strictly related to your earnings.
I modified locally “calendar-list.php”, to skip past events. When used with count=”1″ and showendtimes=”true”, works really nice as the “Show incoming event” widget.
After L62 I have added:
$current_time = time();
And then after L174:
$end_time = strtotime($day . '-' . $month . '-' . $year . ' ' . $event['end']);
if ($current_time > $end_time) { continue; }
Of course, would be much nicer to allow enable this feature as a flag (arg).
-
This reply was modified 4 years, 1 month ago by marverix.