display changes when recent only
This commit is contained in:
		
							parent
							
								
									e5f5f1a202
								
							
						
					
					
						commit
						57bcc5a5a2
					
				
							
								
								
									
										22
									
								
								ics.php
								
								
								
								
							
							
						
						
									
										22
									
								
								ics.php
								
								
								
								
							| 
						 | 
					@ -94,8 +94,18 @@ $recentonly = isset($params['recentonly']);
 | 
				
			||||||
$weblink = isset($params['weblink']) ? $params['weblink'] : '';
 | 
					$weblink = isset($params['weblink']) ? $params['weblink'] : '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$html = "<h1>Evénements à venir</h1>";
 | 
					$html = "<h1>Evénements à venir</h1>";
 | 
				
			||||||
$html .= "<h2>" . strftime('%A, %e %B %Y %H:%M') . "</h2>";
 | 
					
 | 
				
			||||||
$html .= "<div>En gras: modifié les $recent derniers jours</div>";
 | 
					$html .= "<div>";
 | 
				
			||||||
 | 
					if ($recentonly)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $html .= "M";
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $html .= "En gras: m";
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					$html .= "odifié les $recent derniers jours</div>";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if ($weblink) {
 | 
					if ($weblink) {
 | 
				
			||||||
    $html .= "<div><a target=\"_blank\" href=\"$weblink\">Lien vers calendrier web</a></div>";
 | 
					    $html .= "<div><a target=\"_blank\" href=\"$weblink\">Lien vers calendrier web</a></div>";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -129,15 +139,9 @@ foreach ($o['VEVENTS'] as $e) {
 | 
				
			||||||
            $group[$year][$month][$week] = true;
 | 
					            $group[$year][$month][$week] = true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        $line = "<li title=\"modifié le " . strftime('%A, %e %B %Y %H:%M', $e['DTSTAMP']->getTimestamp()) . "\">";
 | 
					        $line = "<li title=\"modifié le " . strftime('%A, %e %B %Y %H:%M', $e['DTSTAMP']->getTimestamp()) . "\">";
 | 
				
			||||||
		if ($e['DTSTAMP'] >= $lastmodified) {
 | 
					 | 
				
			||||||
            $line .= "<b>";
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        $line .= "$formatteddate: " . $e['SUMMARY'];
 | 
					        $line .= "$formatteddate: " . $e['SUMMARY'];
 | 
				
			||||||
        if ($e['DTSTAMP'] >= $lastmodified) {
 | 
					 | 
				
			||||||
            $line .= "</b>";
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        $line .= '</li>';
 | 
					        $line .= '</li>';
 | 
				
			||||||
        if ($e['DTSTAMP'] >= $lastmodified) {
 | 
					        if ($e['DTSTAMP'] >= $lastmodified && !$recentonly) {
 | 
				
			||||||
            $line = "<b>$line</b>";
 | 
					            $line = "<b>$line</b>";
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        $html .= $line;
 | 
					        $html .= $line;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue