updated menu structure
This commit is contained in:
		
							
								
								
									
										66
									
								
								modules/calendar/Views/categories-partial.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										66
									
								
								modules/calendar/Views/categories-partial.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,66 @@
 | 
			
		||||
<?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>
 | 
			
		||||
							
								
								
									
										18
									
								
								modules/calendar/Views/settings-form.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								modules/calendar/Views/settings-form.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
add_settings_section(
 | 
			
		||||
	'custom_settings_section',
 | 
			
		||||
	__('Calendar settings', BDP_LV_PLUGIN_SLUG),
 | 
			
		||||
	'custom_settings_section_callback',
 | 
			
		||||
	BDP_LV_PLUGIN_SLUG . '-calendar-settings'
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
$seo_settings_page = BDP_LV_PLUGIN_SLUG . '-calendar-settings';
 | 
			
		||||
 | 
			
		||||
add_settings_field(
 | 
			
		||||
	'kompass_cal_1',
 | 
			
		||||
	__('Calendar URL', BDP_LV_PLUGIN_SLUG),
 | 
			
		||||
	'_kompass_limit_logins_settings_callback',
 | 
			
		||||
	$seo_settings_page,
 | 
			
		||||
	'custom_settings_section',
 | 
			
		||||
	['setting' => 'bdp_calendar_source_url', 'style' => 'width: 1024px']);
 | 
			
		||||
		Reference in New Issue
	
	Block a user