1067 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Templatedatei für die Modulseite des Backend
|
|
|
5 |
* Sollte nicht angepasst werden
|
|
|
6 |
*/
|
|
|
7 |
|
|
|
8 |
?>
|
|
|
9 |
<div class="wpsg_admin_submenu">
|
|
|
10 |
|
|
|
11 |
<?php foreach ($this->view['groups'] as $group_name => $g) { ?>
|
5370 |
daniel |
12 |
<div class="list-group">
|
|
|
13 |
<span class="list-group-head list-group-item"><?php echo $group_name; ?></span>
|
|
|
14 |
<?php foreach ($g as $mod_key => $m) { ?>
|
|
|
15 |
<a class="<?php echo (($this->get_option($mod_key, $this->view['global']) > 0)?'modul_akt':''); ?> list-group-item <?php echo (($mod_key == $_REQUEST['modul'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=<?php echo $mod_key; ?>">
|
|
|
16 |
<?php echo $m->name; ?>
|
|
|
17 |
<?php if (($this->get_option($mod_key, $this->view['global']) > 0)?'modul_akt':'') { ?>
|
|
|
18 |
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
|
|
|
19 |
<?php } ?>
|
|
|
20 |
</a>
|
|
|
21 |
<?php } ?>
|
|
|
22 |
</div>
|
|
|
23 |
<?php } ?>
|
5371 |
daniel |
24 |
|
1067 |
daniel |
25 |
</div>
|
|
|
26 |
|
|
|
27 |
<?php if (isset($_REQUEST['modul'])) { ?>
|
|
|
28 |
<div class="wpsg_admin_content">
|
|
|
29 |
<form name="form1" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=<?php echo $_REQUEST['modul']; ?>&noheader=1" method="post" enctype="multipart/form-data">
|
|
|
30 |
|
|
|
31 |
<h3>
|
1401 |
daniel |
32 |
<?php echo $this->arAllModule[$_REQUEST['modul']]->name; ?>
|
1559 |
daniel |
33 |
<?php if (isset($this->arAllModule[$_REQUEST['modul']]->hilfeURL) && $this->arAllModule[$_REQUEST['modul']]->hilfeURL != '') { ?>
|
1727 |
daniel |
34 |
<a target="_blank" href="<?php echo $this->arAllModule[$_REQUEST['modul']]->hilfeURL; ?>" class="wpsg_form_help_notip"></a>
|
1067 |
daniel |
35 |
<?php } ?>
|
|
|
36 |
</h3>
|
|
|
37 |
|
1401 |
daniel |
38 |
<p><?php echo $this->arAllModule[$_REQUEST['modul']]->desc; ?></p>
|
1067 |
daniel |
39 |
|
|
|
40 |
<div class="wpsg_form_field">
|
|
|
41 |
<div class="wpsg_form_left">
|
|
|
42 |
<?php echo __("Modul aktiviert", "wpsg"); ?>:
|
|
|
43 |
</div>
|
|
|
44 |
<div class="wpsg_form_right">
|
|
|
45 |
<select name="aktiv">
|
|
|
46 |
<option value="0"><?php echo __('Nein', 'wpsg'); ?></option>
|
2506 |
daniel |
47 |
<option value="1" <?php echo (($this->get_option($_REQUEST['modul'], $this->view['global']) > 0)?'selected="selected"':''); ?>><?php echo __('Ja', 'wpsg'); ?></option>
|
1067 |
daniel |
48 |
</select>
|
|
|
49 |
</div>
|
|
|
50 |
<div class="wpsg_clear"></div>
|
1469 |
daniel |
51 |
</div>
|
1477 |
david |
52 |
|
1469 |
daniel |
53 |
<?php if (isset($this->arAllModule[$_REQUEST['modul']]->version)) { ?>
|
1598 |
daniel |
54 |
<?php echo wpsg_drawForm_Input('', __('Version', 'wpsg'), $this->arAllModule[$_REQUEST['modul']]->version, array('text' => true)); ?>
|
1469 |
daniel |
55 |
<div class="wpsg_form_field">
|
1470 |
daniel |
56 |
<div class="wpsg_form_left">
|
|
|
57 |
<?php echo __("Lizenz", "wpsg"); ?>:
|
|
|
58 |
</div>
|
|
|
59 |
<div class="wpsg_form_right">
|
|
|
60 |
<p>
|
|
|
61 |
<?php if (isset($this->arAllModule[$_REQUEST['modul']]->free) && $this->arAllModule[$_REQUEST['modul']]->free === true) { ?>
|
|
|
62 |
<?php echo __('Kostenfrei', 'wpsg'); ?>
|
|
|
63 |
<?php } else { ?>
|
1927 |
daniel |
64 |
<?php if (is_array($this->arLizenz) && in_array($_REQUEST['modul'], (array)$this->arLizenz['mods'])) { ?>
|
1470 |
daniel |
65 |
<?php echo __('Aktiviert', 'wpsg'); ?>
|
|
|
66 |
<?php } else { ?>
|
|
|
67 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0) { ?>
|
|
|
68 |
<?php echo wpsg_translate(__('Demo Modus noch #1# Tage verbleibend.', 'wpsg'), $this->arAllModule[$_REQUEST['modul']]->getDemoDays()); ?>
|
|
|
69 |
<?php } else { ?>
|
|
|
70 |
<?php echo __('Demo Modus abgelaufen.', 'wpsg'); ?>
|
|
|
71 |
<?php } ?>
|
|
|
72 |
<?php } ?>
|
|
|
73 |
<?php } ?>
|
|
|
74 |
</p>
|
|
|
75 |
</div>
|
|
|
76 |
<div class="wpsg_clear"></div>
|
|
|
77 |
</div>
|
1469 |
daniel |
78 |
<?php } ?>
|
|
|
79 |
|
1927 |
daniel |
80 |
<?php if (!isset($this->arAllModule[$_REQUEST['modul']]->version) || (($this->arAllModule[$_REQUEST['modul']]->free === true || (is_array($this->arLizenz) && in_array($_REQUEST['modul'], (array)$this->arLizenz['mods'])) || $this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0))) { ?>
|
1559 |
daniel |
81 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline === true) { ?>
|
1469 |
daniel |
82 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
|
|
|
83 |
<?php } ?>
|
|
|
84 |
|
|
|
85 |
<input type="hidden" name="subaction" value="module" />
|
|
|
86 |
|
1559 |
daniel |
87 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline == true) { ?>
|
1469 |
daniel |
88 |
</form>
|
1465 |
daniel |
89 |
<?php } ?>
|
1469 |
daniel |
90 |
|
2506 |
daniel |
91 |
<?php if ($this->get_option($_REQUEST['modul'], $this->view['global']) > 0) { ?>
|
1469 |
daniel |
92 |
<?php echo $this->arModule[$_REQUEST['modul']]->settings_edit(); ?>
|
1468 |
daniel |
93 |
<?php } ?>
|
1465 |
daniel |
94 |
|
1559 |
daniel |
95 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline !== true) { ?>
|
4808 |
daniel |
96 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
|
1068 |
daniel |
97 |
<?php } ?>
|
4808 |
daniel |
98 |
<?php } else { ?>
|
|
|
99 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
|
1197 |
daniel |
100 |
<?php } ?>
|
|
|
101 |
|
1559 |
daniel |
102 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline !== true) { ?>
|
1067 |
daniel |
103 |
</form>
|
1197 |
daniel |
104 |
<?php } ?>
|
1067 |
daniel |
105 |
</div>
|
2645 |
daniel |
106 |
<?php } else { ?>
|
|
|
107 |
|
4944 |
daniel |
108 |
<?php if ($this->hasMod('wpsg_mod_core')) { ?>
|
|
|
109 |
<?php echo $this->callMod('wpsg_mod_core', 'module_index'); ?>
|
4950 |
daniel |
110 |
<?php } else { ?>
|
|
|
111 |
|
|
|
112 |
<div class="wpsg_admin_content">
|
|
|
113 |
|
|
|
114 |
<h3><?php echo __('Modulverwaltung', 'wpsg'); ?></h3>
|
|
|
115 |
<p><?php echo __('wpShopGermany ist Modular aufgebaut, wählen Sie links das Modul aus, welches Sie konfigurieren möchten. ', 'wpsg'); ?></p>
|
|
|
116 |
|
|
|
117 |
<p><?php echo wpsg_translate(
|
|
|
118 |
__('<span style="color:red; font-weight:bold;">wpShopGermany Vollversion erwerben und weitere Funktionen freischalten.</span> [ <a target="_blank" href="#1#">Vollversion kaufen</a> ] [ <a target="_blank" href="#2#">Weitere Infos</a> ]', 'wpsg'),
|
|
|
119 |
'http://shop.maennchen1.de/produkte/wpshopgermany-lizenzkey/',
|
|
|
120 |
'http://wpshopgermany.de/'
|
|
|
121 |
); ?></p>
|
|
|
122 |
|
|
|
123 |
</div>
|
|
|
124 |
|
4944 |
daniel |
125 |
<?php } ?>
|
|
|
126 |
|
1700 |
daniel |
127 |
<?php } ?>
|
|
|
128 |
|
3244 |
daniel |
129 |
<script type="text/javascript">/* <![CDATA[ */
|
1700 |
daniel |
130 |
|
|
|
131 |
jQuery(document).ready(function() {
|
|
|
132 |
|
|
|
133 |
jQuery('.wpsg_form_help').tipTip();
|
|
|
134 |
|
|
|
135 |
} );
|
|
|
136 |
|
3244 |
daniel |
137 |
/* ]]> */</script>
|