<?php
$categories =  get_option('bdp_calendar_categories', null);
if (null !== $categories) {
	$categories = json_decode($categories, true);
} else {
	$categories = [
		'yellow' => 'Meute',
		'blue'  => 'Sippe',
		'red' => 'Runde',
		'green' => 'Stammesführung',
		'fuchsia' => '',
		'orange' => ''
	];
}
?>


<table class="form-table">
    <tr>
        <th style="width: 200px" scope="row"></th>
        <th></th>
        <td style="width: 50px;"></td>
        <td></td>
    </tr>
	<tr>
		<th style="width: 210px;" scope="row">Gelb:</th>
		<th><input type="text" name="category[yellow]" value="<?php echo $categories['yellow']; ?>" /></th>
		<td style="width: 50px;" class="bdp_cal_event_yellow"></td>

	</tr>

	<tr>
        <th style="width: 210px;" scope="row">Blau:</th>
		<th><input type="text" name="category[blue]" value="<?php echo $categories['blue']; ?>" /></th>
		<td class="bdp_cal_event_blue"></td>
	</tr>

	<tr>
        <th style="width: 210px;" scope="row">Rot:</th>
		<th><input type="text" name="category[red]" value="<?php echo $categories['red']; ?>" /></th>
		<td class="bdp_cal_event_red"></td>
	</tr>

	<tr>
        <th style="width: 210px;" scope="row">Grün:</th>
		<th><input type="text" name="category[green]" value="<?php echo $categories['green']; ?>" /></th>
		<td class="bdp_cal_event_green"></td>
	</tr>

	<tr>
        <th style="width: 210px;" scope="row">Fuchsia:</th>
		<th><input type="text" name="category[fuchsia]" value="<?php echo $categories['fuchsia']; ?>" /></th>
		<td class="bdp_cal_event_fuchsia"></td>
	</tr>

	<tr>
        <th style="width: 210px;" scope="row">Orange:</th>
		<th><input type="text" name="category[orange]" value="<?php echo $categories['orange']; ?>" /></th>
		<td class="bdp_cal_event_orange"></td>
	</tr>
	<tr>
        <th style="width: 210px;" scope="row">Grau:</th>
		<th>Standard</th>
		<td class="bdp_cal_event_grey"></td>
	</tr>
</table>