moved includes and cleaned up paths
This commit is contained in:
parent
1490a96f14
commit
e7525fda56
45 changed files with 15 additions and 10 deletions
32
include/icalparser/example/index.php
Normal file
32
include/icalparser/example/index.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!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="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Czech holidays</h1>
|
||||
|
||||
<ul>
|
||||
<?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->getSortedEvents() as $r) {
|
||||
echo sprintf(' <li>%s - %s</li>' . PHP_EOL, $r['DTSTART']->format('j.n.Y'), $r['SUMMARY']);
|
||||
}
|
||||
|
||||
?></ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue