diff options
Diffstat (limited to 'views/admin/presentation.phtml')
| -rw-r--r-- | views/admin/presentation.phtml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/views/admin/presentation.phtml b/views/admin/presentation.phtml index 9860b1d..fb50f72 100644 --- a/views/admin/presentation.phtml +++ b/views/admin/presentation.phtml @@ -27,6 +27,30 @@ </div>
<div class="panel-body">
+ <?php $customFrontendCss = \wpsg\ThemeStyle::getCustomFile(\wpsg\ThemeStyle::CSS_CLASSIC); ?>
+
+ <?php echo wpsg_drawForm_Select(\wpsg\ThemeStyle::OPTION, __('Darstellung der Shopseiten', 'wpsg'), [
+ \wpsg\ThemeStyle::MODE_CLASSIC => __('Klassisch', 'wpsg'),
+ \wpsg\ThemeStyle::MODE_THEME => __('An das Theme angepasst', 'wpsg')
+ ], \wpsg\ThemeStyle::getMode(), ['help' => \wpsg\ThemeStyle::OPTION]); ?>
+
+ <?php if ($customFrontendCss !== null && !\wpsg\ThemeStyle::isThemeMode()) { ?>
+ <div class="form-group form-group-sm">
+ <div class="col-sm-6 col-sm-offset-6">
+ <div class="alert alert-warning wpsg_style_mode_hint">
+ <p><?php echo sprintf(
+ /* translators: %s: Pfad der eigenen frontend.css */
+ esc_html__('Der Shop lädt eine eigene frontend.css: %s. In der Darstellung „An das Theme angepasst“ wird sie nicht mehr geladen. Zurückschalten auf „Klassisch“ geht jederzeit.', 'wpsg'),
+ '<code>'.esc_html(\wpsg\ThemeStyle::shortPath($customFrontendCss)).'</code>'
+ ); ?></p>
+ <label><input type="checkbox" name="wpsg_style_mode_confirm" value="1" /> <?php echo esc_html__('Verstanden, eigene frontend.css nicht mehr laden', 'wpsg'); ?></label>
+ </div>
+ </div>
+ </div>
+ <?php } ?>
+
+ <br />
+
<?php echo wpsg_drawForm_Select('wpsg_form_validation', __('Formular Validierung', 'wpsg'), array(
'0' => __('Serverseitig', 'wpsg'),
'1' => __('Serverseitig + Javascript V1', 'wpsg'),
|
