summaryrefslogtreecommitdiff
path: root/views/mods/mod_topseller
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-01-14 14:55:36 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-01-14 14:55:36 +0000
commitad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch)
treeb41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/mods/mod_topseller
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_topseller')
-rw-r--r--views/mods/mod_topseller/produkt_edit_allgemein.phtml18
-rw-r--r--views/mods/mod_topseller/settings_edit.phtml12
-rw-r--r--views/mods/mod_topseller/topseller.phtml15
-rw-r--r--views/mods/mod_topseller/widget_form.phtml23
4 files changed, 68 insertions, 0 deletions
diff --git a/views/mods/mod_topseller/produkt_edit_allgemein.phtml b/views/mods/mod_topseller/produkt_edit_allgemein.phtml
new file mode 100644
index 0000000..58112cb
--- /dev/null
+++ b/views/mods/mod_topseller/produkt_edit_allgemein.phtml
@@ -0,0 +1,18 @@
+<?php
+
+ /**
+ * Template für die Konfiguration der Topseller innerhalb der Produktverwaltung
+ */
+
+?>
+<?php if ($this->get_option('wpsg_mod_topseller_auto') == '1') { ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_topseller[status]', __('TopSeller Status', 'wpsg'), array(
+ '0' => __('Einbeziehen', 'wpsg'),
+ '1' => __('Ausschließen', 'wpsg')
+), $this->view['wpsg_mod_topseller']['status']); ?>
+<?php } else { ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_topseller[status]', __('TopSeller Status', 'wpsg'), array(
+ '0' => __('Nicht anzeigen', 'wpsg'),
+ '1' => __('Anzeigen', 'wpsg')
+), $this->view['wpsg_mod_topseller']['status']); ?>
+<?php } ?> \ No newline at end of file
diff --git a/views/mods/mod_topseller/settings_edit.phtml b/views/mods/mod_topseller/settings_edit.phtml
new file mode 100644
index 0000000..0722195
--- /dev/null
+++ b/views/mods/mod_topseller/settings_edit.phtml
@@ -0,0 +1,12 @@
+<?php
+
+ /**
+ * Template für die Einstellungen des "TopSeller" Moduls
+ */
+
+?>
+<?php if ($this->hasMod('wpsg_mod_statistics')) { ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_topseller_auto', __('Alle Produkte einbeziehen', 'wpsg'), $this->get_option('wpsg_mod_topseller_auto'), array('help' => 'wpsg_mod_topseller_auto')); ?>
+<?php } ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_topseller_limit', __('Maximale Anzahl (Standard)', 'wpsg'), $this->get_option('wpsg_mod_topseller_limit'), array('help' => 'wpsg_mod_topseller_limit')); ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_topseller_template', __('Template', 'wpsg'), $this->view['arTemplates'], $this->get_option('wpsg_mod_topseller_template'), array('noIndex' => true, 'help' => 'wpsg_mod_topseller_template')); ?> \ No newline at end of file
diff --git a/views/mods/mod_topseller/topseller.phtml b/views/mods/mod_topseller/topseller.phtml
new file mode 100644
index 0000000..47da016
--- /dev/null
+++ b/views/mods/mod_topseller/topseller.phtml
@@ -0,0 +1,15 @@
+<?php
+
+ /**
+ * Template für die Anzeige der TopSeller im Frontend
+ */
+
+?>
+<?php if (wpsg_isSizedArray($this->view['topseller'])) { ?>
+<div class="wpsg_mod_topseller">
+ <?php foreach ($this->view['topseller'] as $p) { ?>
+ <?php echo $this->renderProdukt($p['id'], $this->view['template']); ?>
+ <?php } ?>
+</div>
+<div class="wpsg_clear"></div>
+<?php } ?> \ No newline at end of file
diff --git a/views/mods/mod_topseller/widget_form.phtml b/views/mods/mod_topseller/widget_form.phtml
new file mode 100644
index 0000000..dbffc81
--- /dev/null
+++ b/views/mods/mod_topseller/widget_form.phtml
@@ -0,0 +1,23 @@
+<?php
+
+ /**
+ * Template für die Einstellungen des TopSeller Widgets
+ */
+
+?>
+<?php echo wpsg_drawForm_Select(
+ $this->view['wpsg_mod_topseller_template']['name'],
+ __('Template', 'wpsg'),
+ $this->view['arTemplates'],
+ $this->view['wpsg_mod_topseller_template']['value'], array(
+ 'id' => $this->view['wpsg_mod_topseller_template']['id'],
+ 'noIndex' => true
+ )
+); ?>
+<?php echo wpsg_drawForm_Input(
+ $this->view['wpsg_mod_topseller_limit']['name'],
+ __('Limit', 'wpsg'),
+ $this->view['wpsg_mod_topseller_limit']['value'], array(
+ 'id' => $this->view['wpsg_mod_topseller_limit']['id']
+ )
+); ?> \ No newline at end of file