initial commit
This commit is contained in:
commit
7aac2718b5
7 files changed
+727
No files matched your search
@@ -0,0 +1,147 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$h = static function (string $value): string {
|
||||
return htmlspecialchars(
|
||||
$value,
|
||||
ENT_QUOTES | ENT_SUBSTITUTE,
|
||||
'UTF-8'
|
||||
);
|
||||
};
|
||||
?>
|
||||
|
||||
<div id="app-content">
|
||||
<div class="jitsi-calendar-container">
|
||||
|
||||
<div class="jitsi-calendar-card">
|
||||
|
||||
<h1>
|
||||
Add Jitsi Meeting to Calendar
|
||||
</h1>
|
||||
|
||||
<p class="jitsi-calendar-intro">
|
||||
The following meeting will be added to your
|
||||
Nextcloud Calendar.
|
||||
</p>
|
||||
|
||||
<div class="jitsi-calendar-details">
|
||||
|
||||
<div class="jitsi-calendar-row">
|
||||
<strong>Title</strong>
|
||||
<span><?= $h($_['summary']) ?></span>
|
||||
</div>
|
||||
|
||||
<?php if ($_['description'] !== ''): ?>
|
||||
<div class="jitsi-calendar-row">
|
||||
<strong>Description</strong>
|
||||
<span class="description">
|
||||
<?= nl2br($h($_['description'])) ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="jitsi-calendar-row">
|
||||
<strong>Start</strong>
|
||||
<span><?= $h($_['start']) ?></span>
|
||||
</div>
|
||||
|
||||
<div class="jitsi-calendar-row">
|
||||
<strong>End</strong>
|
||||
<span><?= $h($_['end']) ?></span>
|
||||
</div>
|
||||
|
||||
<?php if ($_['organizer'] !== ''): ?>
|
||||
<div class="jitsi-calendar-row">
|
||||
<strong>Organizer</strong>
|
||||
<span><?= $h($_['organizer']) ?></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($_['location'] !== ''): ?>
|
||||
<div class="jitsi-calendar-row">
|
||||
<strong>Location</strong>
|
||||
<span>
|
||||
<a
|
||||
href="<?= $h($_['location']) ?>"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<?= $h($_['location']) ?>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<form
|
||||
method="post"
|
||||
action="<?= $h($_['createUrl']) ?>"
|
||||
>
|
||||
<input
|
||||
type="hidden"
|
||||
name="summary"
|
||||
value="<?= $h($_['summary']) ?>"
|
||||
>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
name="description"
|
||||
value="<?= $h($_['description']) ?>"
|
||||
>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
name="start"
|
||||
value="<?= $h($_['start']) ?>"
|
||||
>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
name="end"
|
||||
value="<?= $h($_['end']) ?>"
|
||||
>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
name="organizer"
|
||||
value="<?= $h($_['organizer']) ?>"
|
||||
>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
name="location"
|
||||
value="<?= $h($_['location']) ?>"
|
||||
>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
name="url"
|
||||
value="<?= $h($_['url']) ?>"
|
||||
>
|
||||
|
||||
<div class="jitsi-calendar-actions">
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
class="primary"
|
||||
>
|
||||
Add to Nextcloud Calendar
|
||||
</button>
|
||||
|
||||
<a
|
||||
href="https://cloud.bnvb-ingenieure.de/"
|
||||
class="secondary"
|
||||
>
|
||||
Cancel
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user