wp-multi-ticket.php aktualisiert
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* Plugin Name: WP Multi Ticket Pro
|
||||
* Plugin URI: https://git.viper.ipv64.net/M_Viper/wp-multi-ticket
|
||||
* Description: Leistungsstarkes Ticket- und Support-System für WordPress mit Gast-Tickets, Admin-Antworten, CSV-Export, Dashboard-Widgets und integriertem Update-Management über Gitea.
|
||||
* Version: 1.1
|
||||
* Version: 1.2
|
||||
* Author: M_Viper
|
||||
* Author URI: https://m-viper.de
|
||||
* Requires at least: 6.7.2
|
||||
@@ -163,9 +163,18 @@ class WP_Multi_Ticket_Pro {
|
||||
}
|
||||
|
||||
public function enqueue_styles() {
|
||||
// Hier wird die eingestellte Schriftfarbe geholt (Standard: #6b7280 = rgb(107, 114, 128))
|
||||
$custom_font_color = get_option( 'wmt_font_color', '#6b7280' );
|
||||
|
||||
?>
|
||||
<style>
|
||||
.wmt-box { max-width: 800px; margin: 20px auto; background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; }
|
||||
.wmt-box { max-width: 800px; margin: 20px auto; background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; color: <?php echo esc_attr($custom_font_color); ?>; }
|
||||
|
||||
/* Überschriften explizit einfärben */
|
||||
.wmt-box h1, .wmt-box h2, .wmt-box h3 {
|
||||
color: <?php echo esc_attr($custom_font_color); ?>;
|
||||
}
|
||||
|
||||
.wmt-btn { background: #0073aa; color: #fff; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block; line-height: 1.4; }
|
||||
.wmt-btn:hover { background: #005177; }
|
||||
.wmt-btn.danger { background: #dc3545; }
|
||||
@@ -303,6 +312,7 @@ class WP_Multi_Ticket_Pro {
|
||||
register_setting( 'wmt_settings_group', 'wmt_admin_email' );
|
||||
register_setting( 'wmt_settings_group', 'wmt_templates' );
|
||||
register_setting( 'wmt_settings_group', 'wmt_allowed_filetypes' );
|
||||
register_setting( 'wmt_settings_group', 'wmt_font_color' ); // NEU: Schriftfarbe registrieren
|
||||
|
||||
register_setting( 'wmt_notifications_group', 'wmt_discord_webhook' );
|
||||
register_setting( 'wmt_notifications_group', 'wmt_telegram_token' );
|
||||
@@ -589,6 +599,14 @@ class WP_Multi_Ticket_Pro {
|
||||
<tr><th>Status</th><td><input type="text" name="wmt_statuses" value="<?php echo esc_attr( get_option('wmt_statuses', 'Offen, In Bearbeitung, Wartet auf Antwort, Geschlossen') ); ?>" class="regular-text"></td></tr>
|
||||
<tr><th>Admin E-Mail</th><td><input type="email" name="wmt_admin_email" value="<?php echo esc_attr( get_option('wmt_admin_email', get_option('admin_email') ) ); ?>" class="regular-text"></td></tr>
|
||||
<tr><th>Erlaubte Dateiendungen</th><td><input type="text" name="wmt_allowed_filetypes" value="<?php echo esc_attr( get_option('wmt_allowed_filetypes', 'pdf, doc, docx, jpg, jpeg, png, txt') ); ?>" class="regular-text"><p class="description">Kommagetrennt (z.B. pdf, doc, png).</p></td></tr>
|
||||
<!-- NEU: Schriftfarbe Einstellung -->
|
||||
<tr>
|
||||
<th>Schriftfarbe</th>
|
||||
<td>
|
||||
<input type="color" name="wmt_font_color" value="<?php echo esc_attr( get_option('wmt_font_color', '#6b7280') ); ?>" class="regular-text">
|
||||
<p class="description">Wählen Sie die Standard-Schriftfarbe für das Ticket-System (inkl. Überschriften).</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Textbausteine</th>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user