summaryrefslogtreecommitdiff
path: root/includes/composer/vendor/om/icalparser/example
diff options
context:
space:
mode:
Diffstat (limited to 'includes/composer/vendor/om/icalparser/example')
-rw-r--r--includes/composer/vendor/om/icalparser/example/index.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/includes/composer/vendor/om/icalparser/example/index.php b/includes/composer/vendor/om/icalparser/example/index.php
deleted file mode 100644
index 70c5598..0000000
--- a/includes/composer/vendor/om/icalparser/example/index.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<!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>