From 4df9b7054b8356d962e15a3e803ccaeba4a42c36 Mon Sep 17 00:00:00 2001 From: jlbeer Date: Tue, 8 Sep 2026 10:54:25 +0200 Subject: - Kampagnenmodul hinzugefügt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/mods/mod_campaigns/campaign_addedit.phtml | 210 +++++++++++++++++++++++ views/mods/mod_campaigns/campaign_index.phtml | 102 +++++++++++ views/mods/mod_campaigns/conditions_fields.phtml | 83 +++++++++ views/mods/mod_campaigns/template_addedit.phtml | 151 ++++++++++++++++ views/mods/mod_campaigns/template_index.phtml | 99 +++++++++++ 5 files changed, 645 insertions(+) create mode 100644 views/mods/mod_campaigns/campaign_addedit.phtml create mode 100644 views/mods/mod_campaigns/campaign_index.phtml create mode 100644 views/mods/mod_campaigns/conditions_fields.phtml create mode 100644 views/mods/mod_campaigns/template_addedit.phtml create mode 100644 views/mods/mod_campaigns/template_index.phtml (limited to 'views/mods') diff --git a/views/mods/mod_campaigns/campaign_addedit.phtml b/views/mods/mod_campaigns/campaign_addedit.phtml new file mode 100644 index 0000000..daf1761 --- /dev/null +++ b/views/mods/mod_campaigns/campaign_addedit.phtml @@ -0,0 +1,210 @@ +view['campaign_data']; + $templates = isset($this->view['campaign_templates']) && is_array($this->view['campaign_templates']) ? $this->view['campaign_templates'] : array(); + $assignedTemplateId = isset($data['assigned_template_id']) ? intval($data['assigned_template_id']) : 0; + $isEdit = intval($data['id']) > 0; + $sendDateValue = ''; + if (strtotime($data['send_date']) > 0) { + $sendDateValue = date('Y-m-d\TH:i', strtotime($data['send_date'])); + } +?> +
+

+

+ - +

+ +
+ + + +
+
+
+
+

+
+

+
+ + +

+

+
+ +

+

+
+ = 1) ? intval($data['priority']) : 3; ?> + +

+

+ + +

+
+
+ +
+

+
+

+
+ + +

+
+
+ +
+

+
+

+
+ +

+

+
+ +

+

+
+ +

+

+
+ +

+
+
+ +
+

+
+

+
    +
  • %kunde_anrede% –
  • +
  • %kunde_vname% –
  • +
  • %kunde_name% –
  • +
  • %kunde_email% –
  • +
  • %order_id% –
  • +
  • %order_cdate_format_de% –
  • +
  • %product_name% –
  • +
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+

+
+ + + +
+ + get_option('wpng_rte') == '1') { ?> + + view['data']->status == '1') + { + + add_filter('tiny_mce_before_init', 'wpng_tiny_mce_before_init'); + + } + + add_filter('mce_buttons', 'wpng_tinymce_button'); + add_filter('mce_external_plugins', 'wpng_tinymce_plugin'); + add_filter('admin_head','wpng_ShowTinyMCE'); + + wp_editor(@$data['content_html'], 'content_html'); + + ?> + + get_option('wpng_rte') == '0') { ?> + + + + get_option('wpng_rte') == '2') { $this->callMods('newsletter_addedit_rte', array($data)); } ?> + + + + +
+
+ +
+

+
+ +
+
+ +
+

+
+ +
+
+
+
+
+ +
diff --git a/views/mods/mod_campaigns/campaign_index.phtml b/views/mods/mod_campaigns/campaign_index.phtml new file mode 100644 index 0000000..9864eb3 --- /dev/null +++ b/views/mods/mod_campaigns/campaign_index.phtml @@ -0,0 +1,102 @@ +view['mod_campaigns']; +?> +
+

+ + +

+ +
+ + + + + + 0) { ?> +
+
+ + + « + ‹ + + + + + + › + » + +
+
+ + + 0) { ?> + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + | + | + +
+
0) ? esc_html(date('d.m.Y H:i', strtotime($row['create_date']))) : '-'; ?>callMod('wpsg_mod_campaigns', 'getDelayUnitLabel', array($row['delay_unit']))); ?> + + [] + + - + +
+ +

+ +
+
+ + diff --git a/views/mods/mod_campaigns/conditions_fields.phtml b/views/mods/mod_campaigns/conditions_fields.phtml new file mode 100644 index 0000000..25c8379 --- /dev/null +++ b/views/mods/mod_campaigns/conditions_fields.phtml @@ -0,0 +1,83 @@ +view['condition_options'] (id => label je Feld) und + * $this->view['condition_values'] (Feld => array('operator','value')). + * Wird von campaign_addedit.phtml und template_addedit.phtml eingebunden. + */ + + $opts = (isset($this->view['condition_options']) && is_array($this->view['condition_options'])) ? $this->view['condition_options'] : array(); + $vals = (isset($this->view['condition_values']) && is_array($this->view['condition_values'])) ? $this->view['condition_values'] : array(); + + $cond_val = function($field) use ($vals) { return isset($vals[$field]['value']) ? (string)$vals[$field]['value'] : ''; }; + $cond_op = function($field) use ($vals) { return isset($vals[$field]['operator']) ? (string)$vals[$field]['operator'] : '=='; }; + + $opt_status = (isset($opts['order_status']) && is_array($opts['order_status'])) ? $opts['order_status'] : array(); + $opt_payment = (isset($opts['order_payment_type']) && is_array($opts['order_payment_type'])) ? $opts['order_payment_type'] : array(); + $opt_subgroup = (isset($opts['subscriber_group']) && is_array($opts['subscriber_group'])) ? $opts['subscriber_group'] : array(); + $opt_pgroup = (isset($opts['product_group']) && is_array($opts['product_group'])) ? $opts['product_group'] : array(); + $opt_country = (isset($opts['customer_country']) && is_array($opts['customer_country'])) ? $opts['customer_country'] : array(); + +?> +

+ +

+
+ +

+ +

+
+ + +

+ +

+
+ +

+ +

+
+ +

+ +

+
+ +

+ +

+
+ +

diff --git a/views/mods/mod_campaigns/template_addedit.phtml b/views/mods/mod_campaigns/template_addedit.phtml new file mode 100644 index 0000000..06ea4ef --- /dev/null +++ b/views/mods/mod_campaigns/template_addedit.phtml @@ -0,0 +1,151 @@ +view['template_data']; + $campaigns = isset($this->view['template_campaigns']) && is_array($this->view['template_campaigns']) ? $this->view['template_campaigns'] : array(); + $triggerEventOptions = isset($this->view['template_trigger_event_options']) && is_array($this->view['template_trigger_event_options']) ? $this->view['template_trigger_event_options'] : array(); + $triggerValueOptions = isset($this->view['template_trigger_value_options']) && is_array($this->view['template_trigger_value_options']) ? $this->view['template_trigger_value_options'] : array(); + $assignedCampaignIds = isset($data['assigned_campaign_ids']) && is_array($data['assigned_campaign_ids']) ? array_map('intval', $data['assigned_campaign_ids']) : array(); + $isEdit = intval($data['id']) > 0; + $selectedTriggerEvent = (string)$data['trigger_event']; + $selectedTriggerValue = (string)$data['trigger_value']; +?> +
+

+

+ - +

+ +
+ + + +
+
+
+
+

+
+ + + +

+ + +

+ +
+
+
+

+
+

+
+ + +

+
+
+
+
+ +
+
+
+ +
+
+ +
+ +
+ +
+ + + + + +
+ +
+

+
+

+
+ +

+

+
+ + +

+
+
+ +

+
+ + +

+ +
+

+
+ +
+
+ + +

+
+ +
+
+ */ ?> + + + +
+ +

+ + +

+ +
+
+ +
diff --git a/views/mods/mod_campaigns/template_index.phtml b/views/mods/mod_campaigns/template_index.phtml new file mode 100644 index 0000000..515a11c --- /dev/null +++ b/views/mods/mod_campaigns/template_index.phtml @@ -0,0 +1,99 @@ +view['mod_campaign_templates']; +?> +
+

+ + +

+ +
+ + + + + + 0) { ?> +
+
+ + + « + ‹ + + + + + + › + » + +
+
+ + + 0) { ?> + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + | + | + +
+
0) ? esc_html(date('d.m.Y H:i', strtotime($row['create_date']))) : '-'; ?>callMod('wpsg_mod_campaigns', 'getDelayUnitLabel', array($row['delay_unit']))); ?> + +
+
+ +

+ +
+
+ + -- cgit v1.2.3