kompass/modules/calendar/Views/settings-form.php

21 lines
544 B
PHP
Raw Normal View History

2024-03-16 16:58:00 +01:00
<?php
2024-08-17 13:55:15 +02:00
if (!defined('SECURE_AUTH_COOKIE') && !defined('AUTH_COOKIE')) {
return;
}
2024-03-16 16:58:00 +01:00
add_settings_section(
'custom_settings_section',
__('Calendar settings', BDP_LV_PLUGIN_SLUG),
'kompass_prepare_form',
2024-03-16 16:58:00 +01:00
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_print_textbox',
2024-03-16 16:58:00 +01:00
$seo_settings_page,
'custom_settings_section',
['setting' => 'bdp_calendar_source_url', 'style' => 'width: 1024px']);