Upload folder via GUI - integrations

This commit is contained in:
Git Manager GUI
2026-04-13 18:52:48 +02:00
parent 09ac38e9fa
commit 9514db9454
19 changed files with 1042 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?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>