Frontend: Aus main übernommen assets/ und includes/frontend-* synchronisiert in develop (CSS/Ergebnis/Formular).
All checks were successful
Deploy Workshop-Wahlen (DEV / PROD) / deploy (push) Successful in 13s
All checks were successful
Deploy Workshop-Wahlen (DEV / PROD) / deploy (push) Successful in 13s
This commit is contained in:
@@ -16,7 +16,7 @@ add_shortcode('konficastle_workshopwahl', function($atts) {
|
||||
|
||||
$wahl = $wpdb->get_row($wpdb->prepare("SELECT * FROM {$wpdb->prefix}kc_wahlen WHERE id=%d", $wahl_id));
|
||||
if(!$wahl || !$wahl->freigegeben) {
|
||||
return $debug_output . '<div"></div>';
|
||||
return $debug_output . '<div class="kc-error-msg">Die Workshopwahl ist aktuell nicht freigeschaltet.</div>';
|
||||
}
|
||||
|
||||
// Ermittle erlaubte Workshops pro Phase für diese Wahl.
|
||||
@@ -152,7 +152,26 @@ add_shortcode('konficastle_workshopwahl', function($atts) {
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<style>
|
||||
.kc-form-container {background:#f8fbe7; border-left:8px solid #b6d333; max-width:600px; margin:40px auto; padding:32px 28px; border-radius:14px; box-shadow:0 2px 8px #b6d33322;}
|
||||
.kc-form-container h2 {margin-top:0; font-size:2em; font-weight:700;}
|
||||
.kc-form-container label {font-weight:600;}
|
||||
.kc-form-row {margin-bottom:20px;}
|
||||
.kc-form-row input[type="text"], .kc-form-row select {
|
||||
width:100%; padding:10px 12px; border-radius:7px; border:1.2px solid #aac484; background:#fafcf6; font-size:1.09em;
|
||||
transition:border 0.17s;
|
||||
}
|
||||
.kc-form-row input[type="text"]:focus, .kc-form-row select:focus {border:1.8px solid #b6d333;}
|
||||
.kc-form-row input[type="submit"] {
|
||||
background:#326dd2; color:#fff; font-weight:600; font-size:1.15em;
|
||||
padding:11px 30px; border:0; border-radius:8px; cursor:pointer; margin-top:5px; box-shadow:0 2px 6px #aac48422;
|
||||
}
|
||||
.kc-form-row input[type="submit"]:hover {background:#2559a2;}
|
||||
.kc-required {color:#d82626; font-weight:bold;}
|
||||
.kc-success-msg {color:#21952c; background:#e3f7e4; padding:16px 20px; border-radius:8px; font-weight:600; margin-bottom:15px; text-align:center;}
|
||||
.kc-error-msg {color:#a80000; background:#ffeaea; padding:16px 20px; border-radius:8px; font-weight:600; margin-bottom:15px; text-align:center;}
|
||||
@media (max-width: 700px) {.kc-form-container {padding:17px 7px;}}
|
||||
</style>
|
||||
|
||||
<?php echo $debug_output; ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user