diff options
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_campaigns/campaign_addedit.phtml | 3 | ||||
| -rw-r--r-- | views/mods/mod_campaigns/campaign_index.phtml | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/views/mods/mod_campaigns/campaign_addedit.phtml b/views/mods/mod_campaigns/campaign_addedit.phtml index daf1761..829f81c 100644 --- a/views/mods/mod_campaigns/campaign_addedit.phtml +++ b/views/mods/mod_campaigns/campaign_addedit.phtml @@ -26,12 +26,13 @@ <div class="inside"> <p> <label for="delay_value"><strong><?php echo __('Verzögerung', 'wpsg'); ?></strong></label><br /> - <input type="number" min="0" id="delay_value" name="delay_value" value="<?php echo intval($data['delay_value']); ?>" style="width:120px;" /> + <input type="number" min="0" id="delay_value" name="delay_value" value="<?php echo (($data['delay_value'] === null || $data['delay_value'] === '')?'':intval($data['delay_value'])); ?>" style="width:120px;" /> <select id="delay_unit" name="delay_unit"> <?php $units = $this->callMod('wpsg_mod_campaigns', 'getDelayUnitOptions'); if (!is_array($units)) $units = array(); foreach ($units as $unit => $unitLabel) { ?> <option value="<?php echo esc_attr($unit); ?>" <?php selected($data['delay_unit'], $unit); ?>><?php echo esc_html($unitLabel); ?></option> <?php } ?> </select> + <br /><small><?php echo __('Leer lassen, um die Verzögerung aus dem Versandprofil zu übernehmen.', 'wpsg'); ?></small> </p> <p> <label for="format"><strong><?php echo __('Format', 'wpsg'); ?></strong></label><br /> diff --git a/views/mods/mod_campaigns/campaign_index.phtml b/views/mods/mod_campaigns/campaign_index.phtml index 9864eb3..089ad3d 100644 --- a/views/mods/mod_campaigns/campaign_index.phtml +++ b/views/mods/mod_campaigns/campaign_index.phtml @@ -67,7 +67,10 @@ $list = $this->view['mod_campaigns']; </td> <td><?php echo esc_html($row['subject']); ?></td> <td><?php echo (strtotime($row['create_date']) > 0) ? esc_html(date('d.m.Y H:i', strtotime($row['create_date']))) : '-'; ?></td> - <td><?php echo intval($row['delay_value']).' '.esc_html($this->callMod('wpsg_mod_campaigns', 'getDelayUnitLabel', array($row['delay_unit']))); ?></td> + <td><?php + if ($row['delay_value'] === null || $row['delay_value'] === '') { echo esc_html(__('aus Versandprofil', 'wpsg')); } + else { echo intval($row['delay_value']).' '.esc_html($this->callMod('wpsg_mod_campaigns', 'getDelayUnitLabel', array($row['delay_unit']))); } + ?></td> <td> <?php if (!empty($row['template_id'])) { ?> [<a href="<?php echo esc_url(admin_url('admin.php?page=wpng-mod_template&wpng_action=edit&id='.intval($row['template_id']))); ?>"><?php echo intval($row['template_id']); ?></a>] <?php echo esc_html($row['template_name']); ?> |
