1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php
/**
* Einstellungen des Moduls Produktbewertungen
* @version 4.6.1
*/
defined('ABSPATH') || exit;
$arStatus = [];
foreach ([wpsg_ShopController::STATUS_ZAHLUNGAKZEPTIERT, wpsg_ShopController::STATUS_RECHNUNGGESCHRIEBEN, wpsg_ShopController::STATUS_WAREVERSENDET, wpsg_ShopController::STATUS_ZUGESTELLT] as $status) {
if (isset($this->view['wpsg_mod_reviews']['status'][$status])) $arStatus[$status] = $this->view['wpsg_mod_reviews']['status'][$status];
}
?>
<?php echo $this->view['wpsg_mod_reviews']['notice']; /* schon escaped, wpsg_mod_reviews::privacyNotice() */ ?>
<?php echo wpsg_drawForm_Select('wpsg_page_review', __('Seite „Bewertung abgeben“', 'wpsg'), $this->view['wpsg_mod_reviews']['pages'], $this->get_option('wpsg_page_review')); ?>
<?php echo wpsg_drawForm_Select('wpsg_mod_reviews_from_status', __('Bewerten möglich ab Status', 'wpsg'), $arStatus, $this->get_option('wpsg_mod_reviews_from_status')); ?>
<?php echo wpsg_drawForm_Select('wpsg_mod_reviews_approval', __('Neue Bewertungen', 'wpsg'), [
wpsg_mod_reviews::APPROVAL_MANUAL => __('Vor der Veröffentlichung prüfen', 'wpsg'),
wpsg_mod_reviews::APPROVAL_AUTO => __('Sofort veröffentlichen', 'wpsg')
], $this->get_option('wpsg_mod_reviews_approval')); ?>
<?php echo wpsg_drawForm_Textarea('wpsg_mod_reviews_hint', __('Hinweis zur Echtheit der Bewertungen', 'wpsg'), (string)$this->get_option('wpsg_mod_reviews_hint')); ?>
<div class="form-group form-group-sm">
<div class="col-sm-6 col-sm-offset-6">
<p class="description"><?php echo esc_html__('Steht über den Bewertungen. Leer lassen für diesen Text, der zu Ihren Einstellungen passt:', 'wpsg'); ?></p>
<p class="description"><em><?php echo esc_html($this->view['wpsg_mod_reviews']['default_hint']); ?></em></p>
</div>
<div class="clearfix wpsg_clear"></div>
</div>
<?php echo wpsg_drawForm_Checkbox(wpsg_mod_reviews::OPTION_REMIND, __('Erinnerung per E-Mail anbieten', 'wpsg'), strval($this->get_option(wpsg_mod_reviews::OPTION_REMIND)) === '1', [
'hint' => __('In der Kasse erscheint ein Ankreuzfeld, nicht vorbelegt. Nur wer es ankreuzt, bekommt eine Mail mit den Links zu seinen offenen Bewertungen, mehrere Bestellungen zusammen in einer Mail. Ergänzen Sie dafür Ihre Datenschutzerklärung. Betreff und Absender: wpShopGermany → Konfiguration → E-Mail Konfiguration.', 'wpsg')
]); ?>
<?php echo wpsg_drawForm_Input(wpsg_mod_reviews::OPTION_REMIND_DAYS, __('Erinnerung nach Tagen', 'wpsg'), strval($this->get_option(wpsg_mod_reviews::OPTION_REMIND_DAYS)), [
'type' => 'number', 'min' => 1, 'max' => 90,
'hint' => __('Gezählt ab dem Status unter „Bewerten möglich ab Status“.', 'wpsg')
]); ?>
|