| @@ 1838-1848 (lines=11) @@ | ||
| 1835 | if ($event->allday & 4) { |
|
| 1836 | $event->end += 86400; |
|
| 1837 | } |
|
| 1838 | if ($event->gmlat > 0 || $event->gmlong > 0) { |
|
| 1839 | $this->gmPoints[] = array( |
|
| 1840 | 'summary' => $event->summary, |
|
| 1841 | 'gmlat' => $event->gmlat, |
|
| 1842 | 'gmlong' => $event->gmlong, |
|
| 1843 | 'location' => $event->location, |
|
| 1844 | 'contact' => $event->contact, |
|
| 1845 | 'startDate' => date('j', $event->start + $tzoffset), |
|
| 1846 | 'event_id' => $event->id |
|
| 1847 | ); |
|
| 1848 | } |
|
| 1849 | ||
| 1850 | if ($event->allday) { |
|
| 1851 | if ($event->start + $tzoffset >= $now_unixtime + 86400 |
|
| @@ 2110-2120 (lines=11) @@ | ||
| 2107 | $picture = $pic && $this->showPicDaily ? "<img src='" . XOOPS_UPLOAD_URL . "/apcal/{$pic->picture}' alt='{$summary}' height='50' style='vertical-align: middle;' />" : ''; |
|
| 2108 | ||
| 2109 | // Google map |
|
| 2110 | if ($event->gmlat > 0 || $event->gmlong > 0) { |
|
| 2111 | $this->gmPoints[] = array( |
|
| 2112 | 'summary' => $event->summary, |
|
| 2113 | 'gmlat' => $event->gmlat, |
|
| 2114 | 'gmlong' => $event->gmlong, |
|
| 2115 | 'location' => $event->location, |
|
| 2116 | 'contact' => $event->contact, |
|
| 2117 | 'startDate' => date('j', $event->start), |
|
| 2118 | 'event_id' => $event->id |
|
| 2119 | ); |
|
| 2120 | } |
|
| 2121 | ||
| 2122 | if ($event->allday) { |
|
| 2123 | $time_part = " <img border='0' src='$this->images_url/dot_allday.gif' />"; |
|
| @@ 903-913 (lines=11) @@ | ||
| 900 | $count = 0; |
|
| 901 | $events = array(); |
|
| 902 | while ($event = $GLOBALS['xoopsDB']->fetchObject($yrs)) { |
|
| 903 | if ($event->gmlat > 0 || $event->gmlong > 0) { |
|
| 904 | $this->gmPoints[] = array( |
|
| 905 | 'summary' => $event->summary, |
|
| 906 | 'gmlat' => $event->gmlat, |
|
| 907 | 'gmlong' => $event->gmlong, |
|
| 908 | 'location' => $event->location, |
|
| 909 | 'contact' => $event->contact, |
|
| 910 | 'startDate' => date('j', $event->start), |
|
| 911 | 'event_id' => $event->id |
|
| 912 | ); |
|
| 913 | } |
|
| 914 | if (++$count > $num) { |
|
| 915 | break; |
|
| 916 | } |
|