21 lines
1.3 KiB
PHP
21 lines
1.3 KiB
PHP
<?php if(!defined('ABSPATH')) exit;
|
|
$int=wmf_get_integrations(); $action=$int->action_update;
|
|
$grp=$int->get_service_group('antispam');
|
|
$active=''; foreach($grp as $s){ if($s->is_connected()){$active=$s->id;break;} }
|
|
?>
|
|
<form class="wmf-service hf-ajax-submit">
|
|
<div class="widget-content has-service-selection <?php echo $active?'authenticated':''; ?>" data-active-service="<?php echo esc_attr($active); ?>">
|
|
<div class="wmf-settings-notices"><?php do_action('wmf_integrations_print_notices'); ?></div>
|
|
<?php wp_nonce_field($action); ?>
|
|
<input type="hidden" name="action" value="<?php echo esc_attr($action); ?>">
|
|
<input type="hidden" name="group" value="antispam">
|
|
<div class="mode-group"><label>Dienst</label><div class="wmf-buttongroup">
|
|
<?php foreach($grp as $sub): ?>
|
|
<label><input type="radio" id="service_<?php echo esc_attr($sub->id);?>" name="services[]" value="<?php echo esc_attr($sub->id);?>" <?php checked($sub->id,$active);?>><span><?php echo esc_html($sub->label);?></span></label>
|
|
<?php endforeach; ?>
|
|
</div></div>
|
|
<?php foreach($grp as $sub) $sub->admin_widget(); ?>
|
|
<div class="widget-control-actions"><span class="spinner"></span>
|
|
<input type="submit" class="button button-primary" value="Speichern"></div>
|
|
</div></form>
|