diff options
author | RaindropsSys <contact@minteck.org> | 2023-03-21 16:21:21 +0100 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-03-21 16:21:21 +0100 |
commit | 475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd (patch) | |
tree | 2cff46debf9c1e13892e7babff9deb6874ecb4b2 /includes/composer/vendor/om/icalparser/example/index.php | |
parent | 7ccc2de87f9e25c715dc09b9aba4eb5c66f80424 (diff) | |
download | pluralconnect-475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd.tar.gz pluralconnect-475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd.tar.bz2 pluralconnect-475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd.zip |
Updated 26 files and added 1074 files (automated)
Diffstat (limited to 'includes/composer/vendor/om/icalparser/example/index.php')
-rw-r--r-- | includes/composer/vendor/om/icalparser/example/index.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/includes/composer/vendor/om/icalparser/example/index.php b/includes/composer/vendor/om/icalparser/example/index.php new file mode 100644 index 0000000..70c5598 --- /dev/null +++ b/includes/composer/vendor/om/icalparser/example/index.php @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html lang="cs-CZ"> +<head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Ical Parser example</title> + <link href="https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css"> +</head> +<body> +<div class="container"> + <h1>Czech holidays</h1> + <table class="table table-bordered"> + <thead> + <tr> + <th class="text-end">Date</th> + <th>Summary</th> + </tr> + </thead> + <tbody> + <?php + require_once __DIR__ . '/../vendor/autoload.php'; + $cal = new \om\IcalParser(); + $results = $cal->parseFile('https://www.google.com/calendar/ical/cs.czech%23holiday%40group.v.calendar.google.com/public/basic.ics'); + foreach ($cal->getEvents()->sorted() as $event) { + printf('<tr><th class="text-end">%s</th><td>%s</td></tr>', $event['DTSTART']->format('j.n.Y'), $event['SUMMARY']); + } + ?> + </tbody> + </table> +</div> +</body> +</html> |