blocks/event_calendar/form_setup_html.php
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
?>
<?php if (empty($calendars)): ?>
<div class="alert alert-info">
<?php echo t('No calendar exist. Add from one from dashboard.') ?>
</div>
<?php else: ?>
<div>
<h3>
Block settings:
</h3>
<fieldset>
<label for="calendarID"><?php echo t('Select calendar') ?></label>
<div style="margin-top: 10px;">
<select name="calendarID" id="calendarID">
<?php foreach ($calendars as $cal): ?>
<option
value="<?php echo $cal['calendarID'] ?>" <?php if ($calendarID == $cal['calendarID']) echo "selected" ?>><?php echo $cal['title'] ?></option>
<?php endforeach; ?>
</select>
</div>
</fieldset>
<fieldset style="margin-top: 10px;">
<label for="lang"><?php echo t('Select language') ?></label>
<div style="margin-top: 10px;">
<select name="lang" id="lang">
<?php foreach ($langs as $l): ?>
<option
value="<?php echo $l ?>" <?php if ($lang == $l) echo "selected" ?>><?php echo $l ?></option>
<?php endforeach; ?>
</select>
</div>
</fieldset>
<fieldset>
<label for="typeID"><?php echo t('Select type') ?></label>
<div style="margin-top: 10px;">
<select name="typeID" id="typeID">
<?php foreach ($types as $type): ?>
<option
value="<?php echo $type['typeID'] ?>" <?php if ($typeID == $type['typeID']) echo "selected" ?>><?php echo $type['type'] ?></option>
<?php endforeach; ?>
</select>
</div>
</fieldset>
<h3 style="margin-top: 10px;">
Calendar settings:
</h3>
<fieldset>
<label for="contentHeight"><?php echo t("Will make the calendar's content area a pixel height - default auto (empty)") ?></label>
<div style="margin-top: 10px;">
<input
type="number"
name="contentHeight"
class="form-control"
id="contentHeight"
placeholder="auto"
value="<?php echo $contentHeight ?>">
</div>
</fieldset>
</div>
<?php endif; ?>