1 Only in /usr/share/dokuwiki/lib/plugins/iCalEvents/: .syntax.php.swo
2 Only in /usr/share/dokuwiki/lib/plugins/iCalEvents/: .syntax.php.swp
3 Only in /usr/share/dokuwiki/lib/plugins/iCalEvents/conf: default.php~
6 diff -ur -x .svn -x .git -x .bzr -x CVS ./syntax.php /usr/share/dokuwiki/lib/plugins/iCalEvents/syntax.php
7 --- ./syntax.php 2011-05-24 07:10:51.275958659 +0300
8 +++ /usr/share/dokuwiki/lib/plugins/iCalEvents/syntax.php 2011-05-23 12:38:52.386695372 +0300
12 $showEndDates = !empty($params['showEndDates']);
13 + $showCurrentWeek = !empty($params['showCurrentWeek']);
15 - #echo "url=$icsURL flags=$flagStr; from = $from; previewSec = $previewSec; dateFormat=$dateFormat;<br/>";
16 + #echo "url=$icsURL flags=$flagStr; from = $from; previewSec = $previewSec; dateFormat=$dateFormat; showCurrentWeek=$showCurrentWeek<br/>";
18 - return array($icsURL, $from, $previewSec, $dateFormat, $showEndDates);
19 + return array($icsURL, $from, $previewSec, $dateFormat, $showEndDates, $showCurrentWeek);
23 * loads the ics file via HTTP, parses it and renders an HTML table.
25 function render($mode, &$renderer, $data) {
26 - list($url, $from, $previewSec, $dateFormat, $showEndDates) = $data;
27 + list($url, $from, $previewSec, $dateFormat, $showEndDates, $showCurrentWeek) = $data;
32 '<th>'.$this->getLang('what').'</th>'.
33 '<th>'.$this->getLang('description').'</th>'.
34 '<th>'.$this->getLang('where').'</th>'.
36 + $weekStart = strtotime("0 week ago 12:00");
37 + $weekEnd = strtotime("1 weeks 12:00");
38 foreach ($entries as $entry) {
42 + if ($showCurrentWeek && ($entry['startunixdate'] >= $weekStart && $entry['endunixdate'] <= $weekEnd)) {
43 + $ret .= ' style="background-color: red !important"';
46 if ($showEndDates || $this->getConf('showEndDates')) {
47 $ret .= '<td>'.$entry['startdate'].' - '.$entry['enddate'].'</td>';