summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-12-15 07:53:21 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-12-15 07:53:21 +0000
commit4e2fa823f0118631d1dbfe35fc7fc09abb7fa7cd (patch)
treee52f7aa74fe5054b500cf06f1c860f9dba4474ee /views/mods
parented6898ed74b8fb954ff12cabbbec7611d3a33ae6 (diff)
- mod_pap -> intern
- mod_videodownload -> intern git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5988 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_pap/settings_edit.phtml14
-rw-r--r--views/mods/mod_videodownload/cronmail.phtml18
-rw-r--r--views/mods/mod_videodownload/cronmail_html.phtml21
-rw-r--r--views/mods/mod_videodownload/filelist.phtml20
-rw-r--r--views/mods/mod_videodownload/fonts/Default.ttfbin69492 -> 0 bytes
-rw-r--r--views/mods/mod_videodownload/order_view_sidebar.phtml110
-rw-r--r--views/mods/mod_videodownload/order_view_sidebar_renderlist.phtml59
-rw-r--r--views/mods/mod_videodownload/produkt_edit_sidebar.phtml100
-rw-r--r--views/mods/mod_videodownload/settings_edit.phtml185
-rw-r--r--views/mods/mod_videodownload/videodownloadmail.phtml18
-rw-r--r--views/mods/mod_videodownload/videodownloadmail_html.phtml20
11 files changed, 0 insertions, 565 deletions
diff --git a/views/mods/mod_pap/settings_edit.phtml b/views/mods/mod_pap/settings_edit.phtml
deleted file mode 100644
index 64fdb30..0000000
--- a/views/mods/mod_pap/settings_edit.phtml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-
- /**
- * Template für die Einstellungen des PAP Moduls
- */
-
-?>
-<?php echo wpsg_drawForm_Input('wpsg_paplogin_pap_url', __('URL zur Initial Page (index.html) der PAP Installation', 'wpsg'), $this->get_option('wpsg_paplogin_pap_url'), array('help' => 'wpsg_paplogin_pap_url')); ?>
-<?php echo wpsg_drawForm_Input('wpsg_paplogin_admin', __('PAP Admin Username', 'wpsg'), $this->get_option('wpsg_paplogin_admin'), array('help' => 'wpsg_paplogin_admin')); ?>
-<?php echo wpsg_drawForm_Input('wpsg_paplogin_passwort', __('PAP Admin Passwd', 'wpsg'), $this->get_option('wpsg_paplogin_passwort'), array('help' => 'wpsg_paplogin_passwort')); ?>
-<?php echo wpsg_drawForm_Checkbox('wpsg_paplogin_register', __('PAP Account für jeden Neukunden (Bestellung) anlegen', 'wpsg'), $this->get_option('wpsg_paplogin_register'), array('help' => 'wpsg_paplogin_register')); ?>
-<?php echo wpsg_drawForm_Checkbox('wpsg_pap_registrierung', __('PAP Account für jeden Neukunden (Registrierung) anlegen', 'wpsg'), $this->get_option('wpsg_pap_registrierung'), array('help' => 'wpsg_pap_registrierung')); ?>
-<?php echo wpsg_drawForm_Select('wpsg_pap_include_profil', __('PAP im Profil integrieren', 'wpsg'), array('-1' => __('Nicht integrieren', 'wpsg'), '1' => __('IFrame Lösung', 'wpsg'), '2' => __('Verlinkung', 'wpsg')), $this->get_option('wpsg_pap_include_profil'), array('help' => 'wpsg_pap_include_profil')); ?>
-<?php echo wpsg_drawForm_Checkbox('wpsg_pap_order_tracking', __('Tracking Code nach Bestellung einbinden', 'wpsg'), $this->get_option('wpsg_pap_order_tracking')); ?>
diff --git a/views/mods/mod_videodownload/cronmail.phtml b/views/mods/mod_videodownload/cronmail.phtml
deleted file mode 100644
index a251438..0000000
--- a/views/mods/mod_videodownload/cronmail.phtml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
- /**
- * Template für die Mail, die bei erfolgreicher Individualisierung an den Admin gesendet wird
- */
-
-?>
-<?php echo __('Hallo Administrator,', 'wpsg'); ?>
-
-<?php echo __('Es wurden Videos von folgenden Bestellungen individualisiert:', 'wpsg'); ?>
-
-<?php foreach ($this->view['arOrder'] as $k => $o) { ?>
-<?php echo wpsg_translate(__('Bestellung ##1#: #2# Dateien', 'wpsg'), $o[1]['onr'], $o[0]); ?>
-<?php if ($this->get_option('wpsg_mod_videodownload_autosend') != '1') { ?>
-<?php echo __('Links versenden: ', 'wpsg'); ?><?php echo get_site_url(); ?>?wpsg_action=wpsg_mod_videodownload_send&hash=<?php echo $o[2]; ?>&order=<?php echo $k; ?>
-<?php } ?>
-
-<?php } ?> \ No newline at end of file
diff --git a/views/mods/mod_videodownload/cronmail_html.phtml b/views/mods/mod_videodownload/cronmail_html.phtml
deleted file mode 100644
index 8375341..0000000
--- a/views/mods/mod_videodownload/cronmail_html.phtml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
- /**
- * Template für die Mail, die bei erfolgreicher Individualisierung an den Admin gesendet wird (HTML)
- */
-
-?>
-<p><?php echo __('Hallo Administrator,', 'wpsg'); ?></p>
-
-<p><?php echo __('Es wurden Videos von folgenden Bestellungen individualisiert:', 'wpsg'); ?></p>
-
-<ul>
-<?php foreach ($this->view['arOrder'] as $k => $o) { ?>
- <li>
- <?php echo wpsg_translate(__('Bestellung ##1#: #2# Dateien', 'wpsg'), $o[1]['onr'], $o[0]); ?>&nbsp;
- <?php if ($this->get_option('wpsg_mod_videodownload_autosend') != '1') { ?>
- <a href="<?php echo get_site_url(); ?>?wpsg_action=wpsg_mod_videodownload_send&hash=<?php echo $o[2]; ?>&order=<?php echo $k; ?>"><?php echo __('Links versenden', 'wpsg'); ?></a>
- <?php } ?>
- </li>
-<?php } ?>
-</ul> \ No newline at end of file
diff --git a/views/mods/mod_videodownload/filelist.phtml b/views/mods/mod_videodownload/filelist.phtml
deleted file mode 100644
index 9655918..0000000
--- a/views/mods/mod_videodownload/filelist.phtml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-
- /**
- * Template für die Liste der Dateien im Backend
- */
-
-?>
-<?php if (!wpsg_isSizedArray($this->view['files'])) { ?>
-<p><?php echo __('Bisher keine Videos hochgeladen.', 'wpsg'); ?></p>
-<?php } else { ?>
- <?php foreach ($this->view['files'] as $v) { ?>
- <div class="wpsg_mod_videodownload_file">
- <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_videodownload&noheader=1&cmd=download_file&file=<?php echo rawurlencode($v); ?>&edit_id=<?php echo $_REQUEST['edit_id']; ?>" title="<?php echo wpsg_hspc($v); ?>"><?php echo wpsg_hspc(substr($v, 0, 25)); ?></a>
- (<?php echo wpsg_formatSize($this->callMod('wpsg_mod_videodownload', 'getVideoPath', array($_REQUEST['edit_id'])).'/'.$v); ?>)
- <div class="wpsg_mod_videodownload_admin_delete" title="<?php echo __('Video löschen', 'wpsg'); ?>" onclick="return wpsg_videodownload_removeVideo('<?php echo rawurlencode($v); ?>');"></div>
- </div>
- <div class="wpsg_clear"></div>
- <?php } ?>
- <br />
-<?php } ?> \ No newline at end of file
diff --git a/views/mods/mod_videodownload/fonts/Default.ttf b/views/mods/mod_videodownload/fonts/Default.ttf
deleted file mode 100644
index 067b898..0000000
--- a/views/mods/mod_videodownload/fonts/Default.ttf
+++ /dev/null
Binary files differ
diff --git a/views/mods/mod_videodownload/order_view_sidebar.phtml b/views/mods/mod_videodownload/order_view_sidebar.phtml
deleted file mode 100644
index 21df96a..0000000
--- a/views/mods/mod_videodownload/order_view_sidebar.phtml
+++ /dev/null
@@ -1,110 +0,0 @@
-<?php
-
- /**
- * Template für die Integration des Videodownload Moduls in die Bestellverwaltung
- * Sollte nicht verändert werden
- */
-
-?>
-<script type="text/javascript">
-/* <![CDATA[ */
-
- function wpsg_mod_videodownload_schedule(file)
- {
-
- jQuery('#wpsg_mod_videodownload_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
- jQuery.ajax( {
- url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_videodownload&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=schedule_file&file=' + file,
- success: function(data) {
- jQuery('#wpsg_mod_videodownload_target').html(data);
- }
- } );
-
- return false;
-
- } // function wpsg_mod_videodownload_schedule(file)
-
- function wpsg_mod_videodownload_reindiv()
- {
-
- jQuery('#wpsg_mod_videodownload_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
- jQuery.ajax( {
- url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_videodownload&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=reindiv',
- success: function(data) {
-
- jQuery('#wpsg_mod_videodownload_target').html(data);
-
- }
- } );
-
- return false;
-
- } // function wpsg_mod_videodownload_reindiv()
-
- function wpsg_mod_videodownload_reset()
- {
-
- jQuery('#wpsg_mod_videodownload_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
- jQuery.ajax( {
- url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_videodownload&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=reset',
- success: function(data) {
-
- jQuery('#wpsg_mod_videodownload_target').html(data);
-
- }
- } );
-
- return false;
-
- } // function wpsg_mod_videodownload_reset()
-
- function wpsg_mod_videodownload_send()
- {
-
- jQuery('#wpsg_mod_videodownload_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
- jQuery.ajax( {
- url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_videodownload&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=send_files',
- success: function(data) {
-
- jQuery('#wpsg_mod_videodownload_target').html(data);
- wpsg_reloadOrderLog();
-
- }
- } );
-
- return false;
-
- } // function wpsg_mod_videodownload_send()
-
- function wpsg_mod_videodownload_cangelschedule(file)
- {
-
- jQuery('#wpsg_mod_videodownload_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
- jQuery.ajax( {
- url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_videodownload&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=cancelschedule_file&file=' + file,
- success: function(data) {
- jQuery('#wpsg_mod_videodownload_target').html(data);
- }
- } );
-
- return false;
-
- } // function wpsg_mod_videodownload_cangelschedule(file)
-
-/* ]]> */
-</script>
-
-<div class="postbox" id="wpsg_videodownloadbox">
- <h3 class="wpsg_handlediv">
- <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
- <span><?php echo __('Videoprodukte', 'wpsg'); ?></span>
- </h3>
- <div class="inside" id="wpsg_mod_videodownload_target">
- <?php echo $this->callMod('wpsg_mod_videodownload', 'order_view_sidebar_renderList', array($this->view['order_id'])); ?>
- </div>
-</div> \ No newline at end of file
diff --git a/views/mods/mod_videodownload/order_view_sidebar_renderlist.phtml b/views/mods/mod_videodownload/order_view_sidebar_renderlist.phtml
deleted file mode 100644
index 4d87285..0000000
--- a/views/mods/mod_videodownload/order_view_sidebar_renderlist.phtml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
- /**
- * Template für die Liste der Produkte innerhalb der Bestellansicht, wird per Ajax neu geladen
- */
-
-?>
-<?php if (wpsg_isSizedArray($this->view['messages'])) { ?>
-<?php foreach ($this->view['messages'] as $m) { ?>
-<div class="updated"><p><?php echo wpsg_hspc($m); ?></p></div>
-<?php } ?>
-<?php } ?>
-<?php if (wpsg_isSizedArray($this->view['errors'])) { ?>
-<?php foreach ($this->view['errors'] as $e) { ?>
-<div class="error"><p><?php echo wpsg_hspc($e); ?></p></div>
-<?php } ?>
-<?php } ?>
-<table class="wpsg_mod_videodownload_order_view_filelist">
- <tr>
- <th class="col_file"><?php echo __('Datei', 'wpsg'); ?></th>
- <th class="col_status"><?php echo __('Status', 'wpsg'); ?></th>
- <th class="col_counter">#</th>
- <th class="col_action"></th>
- </tr>
- <?php foreach ($this->view['arFiles'] as $f) { ?>
- <tr class="<?php echo (($f[1] !== false && $f[1]['raid'] === true)?'row_raid':''); ?>">
- <td class="col_file">
- <?php if ($f[1] !== false && strtotime($f[1]['done']) > 0) { ?>
- <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_videodownload&cmd=download_indivfile&edit_id=<?php echo $f[1]['o_id']; ?>&file=<?php echo rawurlencode($f[1]['out_file']); ?>&noheader=1">
- <?php } ?>
- <?php echo wpsg_hspc(substr($this->callMod('wpsg_mod_videodownload', 'getNewName', array($f[0], $_REQUEST['edit_id'])), 0, 25)); ?>
- <?php if ($f[1] !== false && strtotime($f[1]['done']) > 0) { ?>
- </a>
- <?php } ?>
- </td>
- <td class="col_status">
- <?php if ($f[1] === false) { ?>
- <?php echo __('Noch nicht geplant.', 'wpsg'); ?>
- <?php } else if (strtotime($f[1]['scheduled']) > 0 && strtotime($f[1]['done']) <= 0) { ?>
- <?php echo wpsg_translate(__('Geplant am #1#', 'wpsg'), wpsg_fromDate($f[1]['scheduled'])); ?>
- <?php } else if (strtotime($f[1]['done']) > 0) { ?>
- <?php echo wpsg_translate(__('Durchgeführt am #1#', 'wpsg'), wpsg_fromDate($f[1]['done'])); ?>
- <?php } ?>
- </td>
- <td class="col_counter"><?php echo (($f[1] !== false)?$f[1]['counter']:'0'); ?></td>
- <td class="col_action">
- <?php if ($f[1] === false) { ?>
- <a href="#" onclick="return wpsg_mod_videodownload_schedule('<?php echo rawurldecode($f[0]); ?>');"><?php echo __('Planen', 'wpsg'); ?></a>
- <?php } else if (strtotime($f[1]['scheduled']) > 0 && strtotime($f[1]['done']) <= 0) { ?>
- <a href="#" onclick="return wpsg_mod_videodownload_cangelschedule('<?php echo rawurldecode($f[0]); ?>');"><?php echo __('Abbrechen', 'wpsg'); ?></a>
- <?php } ?>
- </td>
- </tr>
- <?php } ?>
-</table>
-<br />
-<input type="button" onclick="return wpsg_mod_videodownload_send();" value="<?php echo __('Fertige Downloads an Kunden senden', 'wpsg'); ?>" /><br />
-<input type="button" onclick="return wpsg_mod_videodownload_reindiv();" value="<?php echo __('Alle Dokumente neu planen', 'wpsg'); ?>" />
-<input type="button" onclick="return wpsg_mod_videodownload_reset();" value="<?php echo __('Zähler zurücksetzen', 'wpsg'); ?>" /> \ No newline at end of file
diff --git a/views/mods/mod_videodownload/produkt_edit_sidebar.phtml b/views/mods/mod_videodownload/produkt_edit_sidebar.phtml
deleted file mode 100644
index adc7314..0000000
--- a/views/mods/mod_videodownload/produkt_edit_sidebar.phtml
+++ /dev/null
@@ -1,100 +0,0 @@
-<?php
-
- /**
- * Template für die Integration des Uploadformulars im rechten Bereich
- * Sollte nicht verändert werden
- */
-
-?>
-<script type="text/javascript">
-/* <![CDATA[ */
-
- function wpsg_videodownload_removeVideo(file)
- {
-
- if (!confirm('<?php echo __('Sind sie sich sicher, dass sie die Datei löschen möchten?', 'wpsg'); ?>')) return false;
-
- jQuery('#wpsg_mod_videodownload_files').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
- jQuery.ajax( {
- url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_videodownload&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1&cmd=delete_file&file=' + file,
- success: function(response) {
-
- if (response == '1')
- {
- jQuery("#wpsg_mod_videodownload_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_videodownload&cmd=videofiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
- }
- else
- {
-
- alert(response);
- jQuery("#wpsg_mod_videodownload_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_videodownload&cmd=videofiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
-
- }
-
- }
- } );
-
- return false;
-
- } // function wpsg_videodownload_removeVideo($video)
-
- jQuery(document).ready(function() {
-
- new AjaxUpload(
- "wpsg_mod_videodownload_upload", {
- name: "videofiles",
- action: "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_videodownload&edit_id=<?php echo $this->view['data']['id'] ?>&noheader=1&cmd=upload_file",
- onSubmit: function(file, extension) {
-
- jQuery('#wpsg_mod_videodownload_files').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
- },
- onComplete: function(file, response) {
-
- if (response == '1')
- {
- jQuery("#wpsg_mod_videodownload_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_videodownload&cmd=videofiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
- }
- else
- {
-
- alert(response);
- jQuery("#wpsg_mod_videodownload_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_videodownload&cmd=videofiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
-
- }
- }
- }
- );
- });
-
-/* ]]> */
-</script>
-
-<div id="wpsg_videodownload" class="panel panel-default">
- <div class="panel-heading clearfix">
- <h3 class="panel-title">
- <?php echo __('Videoprodukt', 'wpsg'); ?>
- </h3>
- </div>
- <div class="panel-body">
- <div id="wpsg_mod_videodownload_files"><?php echo $this->view['filesList']; ?></div>
- <input value="<?php echo __("Upload", "wpsg"); ?>" type="text" style="text-align:center;" size="10" id="wpsg_mod_videodownload_upload" />
- <div class="wpsg_clear"></div><br />
- <div class="wpsg_form_field">
- <div class="wpsg_form_left" style="width:75px;">
- <label for="feinheit"><?php echo __('FTP Pfad', 'wpsg'); ?>:</label>
- </div>
- <div class="wpsg_form_right">
- <p>
- <a href="#" onclick="alert('<?php echo addslashes($this->callMod('wpsg_mod_videodownload', 'getVideoPath', array($this->view['data']['id'], true))); ?>'); return false;"><?php echo __('Anzeigen', 'wpsg'); ?></a>
- </p>
- </div>
- <div class="wpsg_clear"></div>
- </div>
-
- <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_videodownload"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration des Videodownloads', 'wpsg'); ?></a>
-
- </div>
- <div class="clear"></div>
-</div> \ No newline at end of file
diff --git a/views/mods/mod_videodownload/settings_edit.phtml b/views/mods/mod_videodownload/settings_edit.phtml
deleted file mode 100644
index 2dcd9c8..0000000
--- a/views/mods/mod_videodownload/settings_edit.phtml
+++ /dev/null
@@ -1,185 +0,0 @@
-<?php
-
- /**
- * Template für die Einstellungsseite des Videodownloadproduktmoduls
- */
-
-?>
-<br />
-<div class="wpsg_admin_box" id="wpsg_tab">
- <ul class="nav nav-tabs" role="tablist">
- <li role="presentation" class="active"><a href="#tab1" aria-controls="home" role="tab" data-toggle="tab"><?php echo __('Einstellungen', 'wpsg'); ?></a></li>
- <li role="presentation"><a href="#tab2" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Textfelder', 'wpsg'); ?></a></li>
- <li role="presentation"><a href="#tab3" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Info', 'wpsg'); ?></a></li>
- </ul>
-
-
- <div class="tab-content">
-
- <div role="tabpanel" class="tab-pane active" id="tab1" >
- <?php echo wpsg_drawForm_Input('wpsg_mod_videodownload_command', __('Programmaufruf', 'wpsg'), $this->get_option('wpsg_mod_videodownload_command'), array('help' => 'mod_videodownload_einstellungen_programmaufruf')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_mod_videodownload_infocommand', __('Programmaufruf (ffmpeg -i)', 'wpsg'), $this->get_option('wpsg_mod_videodownload_infocommand'), array('help' => 'mod_videodownload_einstellungen_programminfoaufruf')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_mod_videodownload_filename', __('Personalisierter Dateiname', 'wpsg'), $this->get_option('wpsg_mod_videodownload_filename'), array('help' => 'mod_videodownload_einstellungen_filename')); ?>
- <?php echo wpsg_drawForm_Select('wpsg_mod_videodownload_indiv_mode', __('Individualisierung planen', 'wpsg'), array(0 => __('Manuell', 'wpsg'), 1 => __('Nach Zahlung', 'wpsg'), 2 => __('Nach Bestellung', 'wpsg')), $this->get_option('wpsg_mod_videodownload_indiv_mode'), array('help' => 'mod_videodownload_einstellungen_individualisierungsmodus')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_videodownload_autosend', __('Videos nach Individualisierung sofort senden', 'wpsg'), $this->get_option('wpsg_mod_videodownload_autosend'), array('help' => 'mod_videodownload_einstellungen_autosend')); ?>
- <?php echo wpsg_drawForm_Select('wpsg_mod_videodownload_accepted', __('Gültigkeit von Links', 'wpsg'), array(0 => __('Unbegrenzt', 'wpsg'), 1 => __('Nach Downloads', 'wpsg'), 2 => __('Nach Tagen', 'wpsg')), $this->get_option('wpsg_mod_videodownload_accepted'), array('help' => 'mod_videodownload_einstellungen_accepted')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_mod_videodownload_days', __('Gültigkeit in Tagen', 'wpsg'), $this->get_option('wpsg_mod_videodownload_days')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_mod_videodownload_downloads', __('Anzahl an möglichen Downloads', 'wpsg'), $this->get_option('wpsg_mod_videodownload_downloads')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_videodownload_cleanraiddownloads', __('Abgelaufene Downloads bereinigen', 'wpsg'), $this->get_option('wpsg_mod_videodownload_cleanraiddownloads')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_mod_videodownload_cleanolddownloads', __('Downloads nach X Tagen löschen', 'wpsg'), $this->get_option('wpsg_mod_videodownload_cleanolddownloads')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_mod_videodownload_videopath', __('Pfad für die Videos der Produkte', 'wpsg'), $this->get_option('wpsg_mod_videodownload_videopath'), array('hint' => __('Standard: uploads/wpsg_videoprodukte/', 'wpsg'))); ?>
- <?php echo wpsg_drawForm_Input('wpsg_mod_videodownload_videoindivpath', __('Pfad für die Individualisierten Videos', 'wpsg'), $this->get_option('wpsg_mod_videodownload_videoindivpath'), array('hint' => __('Standard: uploads/wpsg_videoprodukte_order/', 'wpsg'))); ?>
- <?php echo wpsg_drawForm_Select('wpsg_mod_videodownload_format', __('Auslieferungsformat', 'wpsg'), array(0 => __('Direkt', 'wpsg'), 1 => __('Gezippt (intern)', 'wpsg'), 2 => __('Gezippt (extern)', 'wpsg')), $this->get_option('wpsg_mod_videodownload_format')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_mod_videodownload_fontpath', __('Pfad für die weitere Schriftarten', 'wpsg'), $this->get_option('wpsg_mod_videodownload_fontpath'), array('hint' => __('Standard: user_views/mods/mod_videodownload/fonts/', 'wpsg'))); ?>
- <div class="wpsg_form_field">
- <div class="wpsg_form_left">
- <label><?php echo __('Mail für Individualisierungsbericht', 'wpsg'); ?>:</label>
- </div>
- <div class="wpsg_form_right">
- <p><?php echo wpsg_translate(__('Kann <a href="#1#">hier</a> konfiguriert werden.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#videodownloadcronmail'); ?></p>
- </div>
- <div class="wpsg_clear"></div>
- </div>
- <div class="wpsg_form_field">
- <div class="wpsg_form_left">
- <label><?php echo __('Mail für Downloads an Kunden', 'wpsg'); ?>:</label>
- </div>
- <div class="wpsg_form_right">
- <p><?php echo wpsg_translate(__('Kann <a href="#1#">hier</a> konfiguriert werden.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#videodownloadfiles'); ?></p>
- </div>
- <div class="wpsg_clear"></div>
- </div>
- <div class="wpsg_form_field">
- <div class="wpsg_form_left">
- <label><?php echo __('Letzte Ausführung des Crons', 'wpsg'); ?>:</label>
- </div>
- <div class="wpsg_form_right">
- <p><?php echo (($this->get_option('wpsg_lastCron') > 0)?wpsg_formatTimestamp($this->get_option('wpsg_lastCron')):__('Noch nicht ausgeführt', 'wpsg')); ?></p>
- <a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_videodownload_einstellungen_cron" class="glyphicon glyphicon-question-sign" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_videodownload_einstellungen_cron"></a>
- </div>
- <div class="wpsg_clear"></div>
- </div>
- </div>
-
- <div role="tabpanel" class="tab-pane" id="tab2" >
-
- <table class="wpsg_mod_videodownload_fieldtable">
- <tr>
- <th class="col_bezeichnung"></th>
- <th class="col_font"><?php echo __('Schriftart', 'wpsg'); ?></th>
- <th class="col_x"><?php echo __(' X', 'wpsg'); ?></th>
- <th class="col_y"><?php echo __(' Y', 'wpsg'); ?></th>
- <th class="col_align"><?php echo __('Zentriert', 'wpsg'); ?></th>
- <th class="col_color"><?php echo __(' Farbe', 'wpsg'); ?></th>
- <th class="col_alpha"><?php echo __('Opaque', 'wpsg'); ?></th>
- <th class="col_angle"><?php echo __('Winkel', 'wpsg'); ?></th>
- <th class="col_groesse"><?php echo __('Größe', 'wpsg'); ?></th>
- <th class="col_action"></th>
- </tr>
- <?php for ($i = 0; $i < 5; $i ++) { ?>
- <tr>
- <td><?php echo '#'.($i + 1); ?></td>
- <td class="col_font">
- <?php if (!wpsg_isSizedArray($this->view['arFonts'])) { ?>
- <span class="wpsg_error"><?php echo __('Keine Fonts!', 'wpsg'); ?></span>
- <?php } else { ?>
- <select name="text[<?php echo $i; ?>][font]">
- <?php foreach ($this->view['arFonts'] as $font) { ?>
- <option value="<?php echo rawurlencode($font); ?>" <?php echo ((rawurlencode($font) === $this->view['arTexte'][$i]['font'])?'selected="selected"':''); ?>><?php echo wpsg_hspc($font); ?></option>
- <?php } ?>
- </select>
- <?php } ?>
- </td>
- <td>
- <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][x]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['x']); ?>" />
- </td>
- <td>
- <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][y]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['y']); ?>" />
- </td>
- <td class="col_align">
- <input type="hidden" name="text[<?php echo $i; ?>][align]" value="0" />
- <input type="checkbox" name="text[<?php echo $i; ?>][align]" value="1" <?php echo (($this->view['arTexte'][$i]['align'] == '1')?'checked="checked"':''); ?> />
- </td>
- <td>
- <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][color]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['color']); ?>" />
- </td>
- <td>
- <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][alpha]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['alpha']); ?>" />
- </td>
- <td>
- <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][angle]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['angle']); ?>" />
- </td>
- <td>
- <select name="text[<?php echo $i; ?>][fontsize]" style="width:100%;">
- <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "8")?'selected="selected"':''); ?> value="8">8</option>
- <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "9")?'selected="selected"':''); ?> value="9">9</option>
- <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "10")?'selected="selected"':''); ?> value="10">10</option>
- <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "11")?'selected="selected"':''); ?> value="11">11</option>
- <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "12")?'selected="selected"':''); ?> value="12">12</option>
- <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "13")?'selected="selected"':''); ?> value="13">13</option>
- <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "14")?'selected="selected"':''); ?> value="14">14</option>
- <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "16")?'selected="selected"':''); ?> value="16">16</option>
- <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "18")?'selected="selected"':''); ?> value="18">18</option>
- <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "20")?'selected="selected"':''); ?> value="20">20</option>
- <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "22")?'selected="selected"':''); ?> value="22">22</option>
- <option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "24")?'selected="selected"':''); ?> value="24">24</option>
- </select>
- </td>
- <td>
- <label><input type="checkbox" value="1" name="text[<?php echo $i; ?>][aktiv]" <?php echo (($this->view['arTexte'][$i]['aktiv'] == 1)?'checked="checked"':''); ?> />&nbsp;<?php echo __("Aktiv", "wpsg"); ?></label>
- <a style="float:right; position:relative;" class="glyphicon glyphicon-question-sign" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_videodownload_fieldconfig" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_videodownload_fieldconfig"></a>
- </td>
- </tr>
- <tr>
- <td></td>
- <td class="col_freitext_label"><?php echo __('Freitext', 'wpsg'); ?>:</td>
- <td colspan="8" class="col_freitext">
- <input type="text" style="width:100%;" name="text[<?php echo $i; ?>][text]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['text']); ?>" />
- </td>
- </tr>
- <?php } ?>
- </table>
-
- </div>
-
- <div role="tabpanel" class="tab-pane" id="tab3" >
-
- <p><?php echo __('Mit dem Videodownload Modul ist es möglich Videos zu verkaufen die pro Bestellung individuell angepasst werden.', 'wpsg'); ?>
-
- </div>
-
- </div>
-</div>
-
-<script type="text/javascript">
-
- function wpsg_mod_videodownload_switchAccepted()
- {
-
- if (jQuery('#wpsg_mod_videodownload_accepted').val() == '1')
- jQuery('#wpsg_mod_videodownload_downloads').parent().parent().show();
- else
- jQuery('#wpsg_mod_videodownload_downloads').parent().parent().hide();
-
- if (jQuery('#wpsg_mod_videodownload_accepted').val() == '2')
- jQuery('#wpsg_mod_videodownload_days').parent().parent().show();
- else
- jQuery('#wpsg_mod_videodownload_days').parent().parent().hide();
-
- } // function wpsg_mod_videodownload_switchAccepted()
-
- jQuery(document).ready(function() {
-
- jQuery('#wpsg_mod_videodownload_accepted').bind('change', function() { wpsg_mod_videodownload_switchAccepted(); } );
-
- wpsg_mod_videodownload_switchAccepted();
-
- jQuery('#wpsg_tab').wpsg_tab( {
- 'cookiename': 'wpsg_videodownload_tab',
- 'tab2': function() {
- jQuery('.tablink').show();
- }
- } );
- } );
-
-</script> \ No newline at end of file
diff --git a/views/mods/mod_videodownload/videodownloadmail.phtml b/views/mods/mod_videodownload/videodownloadmail.phtml
deleted file mode 100644
index e0d6d88..0000000
--- a/views/mods/mod_videodownload/videodownloadmail.phtml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
- /**
- * Mail, die die Videodownloads an den Kunden sendet
- */
-
-?>
-<?php echo wpsg_translate(__('Hallo #1# #2#,', 'wpsg'), $this->view['kunde']['vname'], $this->view['kunde']['name']); ?>
-
-<?php echo __('hiermit erhalt Sie die Downloadlinks für Ihre gekauften Videos:', 'wpsg'); ?>
-
-<?php foreach ($this->view['arVideos'] as $v) { ?>
-<?php echo $v['out_file']; ?>: <?php echo site_url(); ?>?wpsg_action=wpsg_mod_videodownload_download&hash=<?php echo $v['hash']; ?>&indi=<?php echo $v['id']; ?>
-<?php } ?>
-
-<?php echo __("Mit freundlichen Grüßen", "wpsg"); ?>
-
-<?php echo __($this->get_option('wpsg_shopdata_name'), 'wpsg'); ?> - <?php echo __('Team', 'wpsg'); ?> \ No newline at end of file
diff --git a/views/mods/mod_videodownload/videodownloadmail_html.phtml b/views/mods/mod_videodownload/videodownloadmail_html.phtml
deleted file mode 100644
index 7f5ddb2..0000000
--- a/views/mods/mod_videodownload/videodownloadmail_html.phtml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-
- /**
- * Mail, die die Videodownloads an den Kunden sendet (HTML)
- */
-
-?>
-<p><?php echo wpsg_translate(__('Hallo #1# #2#,', 'wpsg'), $this->view['kunde']['vname'], $this->view['kunde']['name']); ?></p>
-
-<p><?php echo __('hiermit erhalt Sie die Downloadlinks für Ihre gekauften Videos:', 'wpsg'); ?></p>
-
-<ul>
- <?php foreach ($this->view['arVideos'] as $v) { ?>
- <li><?php echo $v['out_file']; ?>:&nbsp;<a href="<?php echo site_url(); ?>?wpsg_action=wpsg_mod_videodownload_download&hash=<?php echo $v['hash']; ?>&indi=<?php echo $v['id']; ?>"><?php echo __('Download', 'wpsg'); ?></a></li>
- <?php } ?>
-</ul>
-
-<p><?php echo __("Mit freundlichen Grüßen", "wpsg"); ?></p>
-
-<p><?php echo __($this->get_option('wpsg_shopdata_name'), 'wpsg'); ?> - <?php echo __('Team', 'wpsg'); ?></p> \ No newline at end of file