Update from Git Manager GUI

This commit is contained in:
2026-03-18 21:56:40 +01:00
parent 0c7a68bf51
commit ada7fc7ecc
16 changed files with 1289 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
<div class="wrap wmw-admin-wrap">
<div class="wmw-admin-header wmw-admin-header--small">
<div class="wmw-admin-header__logo">
<span class="wmw-admin-header__icon">⚙️</span>
<div><h1>WP Multi Wiki Einstellungen</h1></div>
</div>
</div>
<form method="post" action="">
<?php wp_nonce_field('wmw_save_settings','wmw_settings_nonce'); ?>
<div class="wmw-form-layout">
<div class="wmw-form-main">
<div class="wmw-card">
<h3 class="wmw-card__title">🖥️ Darstellung</h3>
<table class="form-table">
<tr>
<th>Inhaltsverzeichnis (TOC)</th>
<td><label><input type="checkbox" name="show_toc" value="1" <?php checked($settings['show_toc']??1,1); ?>> Automatisches TOC aus Überschriften generieren</label></td>
</tr>
<tr>
<th>Breadcrumbs</th>
<td><label><input type="checkbox" name="show_breadcrumbs" value="1" <?php checked($settings['show_breadcrumbs']??1,1); ?>> Breadcrumb-Navigation anzeigen</label></td>
</tr>
<tr>
<th>Verwandte Artikel</th>
<td><label><input type="checkbox" name="show_related" value="1" <?php checked($settings['show_related']??1,1); ?>> Ähnliche Artikel am Ende anzeigen</label></td>
</tr>
<tr>
<th>Suchfeld</th>
<td><label><input type="checkbox" name="show_search" value="1" <?php checked($settings['show_search']??1,1); ?>> Suchfeld im Wiki anzeigen</label></td>
</tr>
<tr>
<th>Sidebar-Position</th>
<td>
<select name="sidebar_position">
<option value="left" <?php selected($settings['sidebar_position']??'left','left'); ?>>Links</option>
<option value="right" <?php selected($settings['sidebar_position']??'left','right'); ?>>Rechts</option>
<option value="none" <?php selected($settings['sidebar_position']??'left','none'); ?>>Keine Sidebar</option>
</select>
</td>
</tr>
<tr>
<th>Artikel pro Seite</th>
<td><input type="number" name="articles_per_page" value="<?php echo esc_attr($settings['articles_per_page']??20); ?>" class="small-text" min="5" max="100"></td>
</tr>
</table>
</div>
<div class="wmw-card">
<h3 class="wmw-card__title">🎨 Custom CSS</h3>
<p class="description">Eigenes CSS für das Wiki-Frontend. Hier kannst du das Design anpassen.</p>
<textarea name="custom_css" rows="10" class="large-text code"><?php echo esc_textarea($settings['custom_css']??''); ?></textarea>
</div>
</div>
<div class="wmw-form-sidebar">
<div class="wmw-card">
<h3 class="wmw-card__title">💾 Speichern</h3>
<?php submit_button('Einstellungen speichern','primary','submit',false); ?>
</div>
<div class="wmw-card">
<h3 class="wmw-card__title"> Plugin-Info</h3>
<p><strong>WP Multi Wiki</strong><br>Version <?php echo WMW_VERSION; ?></p>
<p>Autor: <strong>M_Viper</strong></p>
</div>
</div>
</div>
</form>
</div>