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 |
|
5382 |
daniel |
11 |
<div class="wpsg_modul_search_wrap">
|
|
|
12 |
<input id="wpsg_modul_search" type="text" class="wpsg_modul_search" value="<?php echo wpsg_getStr($_COOKIE['wpsg-modulfilter-search']); ?>" />
|
|
|
13 |
<label title="<?php echo __('Wenn aktiviert, werden nur aktive Module angezeigt'); ?>">
|
|
|
14 |
<input type="checkbox" <?php echo ((wpsg_isSizedString($_COOKIE['wpsg-modulfilter-check'], 'true'))?'checked="checked"':''); ?> id="wpsg_modul_onlyactive" class="wpsg_modul_onlyactive" />
|
|
|
15 |
<span class="glyphicon glyphicon-ok wpsg_modul_onlyactive_glyphicon" aria-hidden="true"></span>
|
|
|
16 |
</label>
|
|
|
17 |
</div>
|
|
|
18 |
|
1067 |
daniel |
19 |
<?php foreach ($this->view['groups'] as $group_name => $g) { ?>
|
5382 |
daniel |
20 |
<div class="list-group list-modul-group">
|
|
|
21 |
<span class="list-group-item list-group-head"><?php echo $group_name; ?></span>
|
5370 |
daniel |
22 |
<?php foreach ($g as $mod_key => $m) { ?>
|
5382 |
daniel |
23 |
<a class="<?php echo (($this->get_option($mod_key, $this->view['global']) > 0)?'modul_akt':''); ?> list-group-modul 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; ?>">
|
|
|
24 |
<span class="wpsg_modul_name"><?php echo $m->name; ?></span>
|
5370 |
daniel |
25 |
<?php if (($this->get_option($mod_key, $this->view['global']) > 0)?'modul_akt':'') { ?>
|
|
|
26 |
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
|
|
|
27 |
<?php } ?>
|
|
|
28 |
</a>
|
|
|
29 |
<?php } ?>
|
|
|
30 |
</div>
|
|
|
31 |
<?php } ?>
|
5371 |
daniel |
32 |
|
1067 |
daniel |
33 |
</div>
|
|
|
34 |
|
|
|
35 |
<?php if (isset($_REQUEST['modul'])) { ?>
|
5382 |
daniel |
36 |
<div class="wpsg_admin_content form-horizontal">
|
1067 |
daniel |
37 |
<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">
|
|
|
38 |
|
|
|
39 |
<h3>
|
1401 |
daniel |
40 |
<?php echo $this->arAllModule[$_REQUEST['modul']]->name; ?>
|
1559 |
daniel |
41 |
<?php if (isset($this->arAllModule[$_REQUEST['modul']]->hilfeURL) && $this->arAllModule[$_REQUEST['modul']]->hilfeURL != '') { ?>
|
1727 |
daniel |
42 |
<a target="_blank" href="<?php echo $this->arAllModule[$_REQUEST['modul']]->hilfeURL; ?>" class="wpsg_form_help_notip"></a>
|
1067 |
daniel |
43 |
<?php } ?>
|
|
|
44 |
</h3>
|
|
|
45 |
|
1401 |
daniel |
46 |
<p><?php echo $this->arAllModule[$_REQUEST['modul']]->desc; ?></p>
|
1067 |
daniel |
47 |
|
5382 |
daniel |
48 |
<?php $modul_install = $this->get_option($_REQUEST['modul'], $this->view['global']); ?>
|
|
|
49 |
<?php echo wpsg_drawForm_Select('aktiv', __('Modul aktiviert', 'wpsg'), array('0' => __('Nein', 'wpsg'), '1' => __('Ja', 'wpsg')), ((wpsg_isSizedInt($modul_install))?'1':'0')); ?>
|
|
|
50 |
|
1469 |
daniel |
51 |
<?php if (isset($this->arAllModule[$_REQUEST['modul']]->version)) { ?>
|
1598 |
daniel |
52 |
<?php echo wpsg_drawForm_Input('', __('Version', 'wpsg'), $this->arAllModule[$_REQUEST['modul']]->version, array('text' => true)); ?>
|
1469 |
daniel |
53 |
<div class="wpsg_form_field">
|
1470 |
daniel |
54 |
<div class="wpsg_form_left">
|
|
|
55 |
<?php echo __("Lizenz", "wpsg"); ?>:
|
|
|
56 |
</div>
|
|
|
57 |
<div class="wpsg_form_right">
|
|
|
58 |
<p>
|
|
|
59 |
<?php if (isset($this->arAllModule[$_REQUEST['modul']]->free) && $this->arAllModule[$_REQUEST['modul']]->free === true) { ?>
|
|
|
60 |
<?php echo __('Kostenfrei', 'wpsg'); ?>
|
|
|
61 |
<?php } else { ?>
|
1927 |
daniel |
62 |
<?php if (is_array($this->arLizenz) && in_array($_REQUEST['modul'], (array)$this->arLizenz['mods'])) { ?>
|
1470 |
daniel |
63 |
<?php echo __('Aktiviert', 'wpsg'); ?>
|
|
|
64 |
<?php } else { ?>
|
|
|
65 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0) { ?>
|
|
|
66 |
<?php echo wpsg_translate(__('Demo Modus noch #1# Tage verbleibend.', 'wpsg'), $this->arAllModule[$_REQUEST['modul']]->getDemoDays()); ?>
|
|
|
67 |
<?php } else { ?>
|
|
|
68 |
<?php echo __('Demo Modus abgelaufen.', 'wpsg'); ?>
|
|
|
69 |
<?php } ?>
|
|
|
70 |
<?php } ?>
|
|
|
71 |
<?php } ?>
|
|
|
72 |
</p>
|
|
|
73 |
</div>
|
|
|
74 |
<div class="wpsg_clear"></div>
|
|
|
75 |
</div>
|
1469 |
daniel |
76 |
<?php } ?>
|
|
|
77 |
|
1927 |
daniel |
78 |
<?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 |
79 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline === true) { ?>
|
1469 |
daniel |
80 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
|
|
|
81 |
<?php } ?>
|
|
|
82 |
|
|
|
83 |
<input type="hidden" name="subaction" value="module" />
|
|
|
84 |
|
1559 |
daniel |
85 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline == true) { ?>
|
1469 |
daniel |
86 |
</form>
|
1465 |
daniel |
87 |
<?php } ?>
|
1469 |
daniel |
88 |
|
2506 |
daniel |
89 |
<?php if ($this->get_option($_REQUEST['modul'], $this->view['global']) > 0) { ?>
|
1469 |
daniel |
90 |
<?php echo $this->arModule[$_REQUEST['modul']]->settings_edit(); ?>
|
1468 |
daniel |
91 |
<?php } ?>
|
1465 |
daniel |
92 |
|
1559 |
daniel |
93 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline !== true) { ?>
|
4808 |
daniel |
94 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
|
1068 |
daniel |
95 |
<?php } ?>
|
4808 |
daniel |
96 |
<?php } else { ?>
|
|
|
97 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
|
1197 |
daniel |
98 |
<?php } ?>
|
|
|
99 |
|
1559 |
daniel |
100 |
<?php if ($this->arAllModule[$_REQUEST['modul']]->inline !== true) { ?>
|
1067 |
daniel |
101 |
</form>
|
1197 |
daniel |
102 |
<?php } ?>
|
1067 |
daniel |
103 |
</div>
|
2645 |
daniel |
104 |
<?php } else { ?>
|
|
|
105 |
|
4944 |
daniel |
106 |
<?php if ($this->hasMod('wpsg_mod_core')) { ?>
|
|
|
107 |
<?php echo $this->callMod('wpsg_mod_core', 'module_index'); ?>
|
4950 |
daniel |
108 |
<?php } else { ?>
|
|
|
109 |
|
|
|
110 |
<div class="wpsg_admin_content">
|
|
|
111 |
|
|
|
112 |
<h3><?php echo __('Modulverwaltung', 'wpsg'); ?></h3>
|
|
|
113 |
<p><?php echo __('wpShopGermany ist Modular aufgebaut, wählen Sie links das Modul aus, welches Sie konfigurieren möchten. ', 'wpsg'); ?></p>
|
|
|
114 |
|
|
|
115 |
<p><?php echo wpsg_translate(
|
|
|
116 |
__('<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'),
|
|
|
117 |
'http://shop.maennchen1.de/produkte/wpshopgermany-lizenzkey/',
|
|
|
118 |
'http://wpshopgermany.de/'
|
|
|
119 |
); ?></p>
|
|
|
120 |
|
|
|
121 |
</div>
|
|
|
122 |
|
4944 |
daniel |
123 |
<?php } ?>
|
|
|
124 |
|
1700 |
daniel |
125 |
<?php } ?>
|
|
|
126 |
|
3244 |
daniel |
127 |
<script type="text/javascript">/* <![CDATA[ */
|
1700 |
daniel |
128 |
|
5382 |
daniel |
129 |
function wpsg_ssh_module()
|
|
|
130 |
{
|
|
|
131 |
|
|
|
132 |
jQuery('.list-modul-group').show();
|
|
|
133 |
jQuery('.wpsg_admin_submenu .list-group-item').show();
|
|
|
134 |
|
|
|
135 |
var check = jQuery('#wpsg_modul_onlyactive').prop('checked');
|
|
|
136 |
var search = jQuery('#wpsg_modul_search').val();
|
|
|
137 |
|
|
|
138 |
jQuery.cookie('wpsg-modulfilter-check', check);
|
|
|
139 |
jQuery.cookie('wpsg-modulfilter-search', search);
|
|
|
140 |
|
|
|
141 |
jQuery('.wpsg_modul_name').each(function() {
|
|
|
142 |
|
|
|
143 |
if (!jQuery(this).parent().hasClass('active'))
|
|
|
144 |
{
|
|
|
145 |
|
|
|
146 |
if (check && !jQuery(this).parent().hasClass('modul_akt')) jQuery(this).parent().hide();
|
|
|
147 |
else if (search != '')
|
|
|
148 |
{
|
|
|
149 |
|
|
|
150 |
var re = new RegExp(search, 'i');
|
|
|
151 |
|
|
|
152 |
if (!jQuery(this).html().match(re)) jQuery(this).parent().hide();
|
|
|
153 |
else jQuery(this).parent().show();
|
|
|
154 |
|
|
|
155 |
}
|
|
|
156 |
|
|
|
157 |
}
|
|
|
158 |
|
|
|
159 |
} );
|
|
|
160 |
|
|
|
161 |
jQuery('.list-modul-group').each(function() {
|
|
|
162 |
|
|
|
163 |
if (jQuery(this).find('.list-group-modul:visible').length <= 0) jQuery(this).hide();
|
|
|
164 |
else jQuery(this).show();
|
|
|
165 |
|
|
|
166 |
} );
|
|
|
167 |
|
|
|
168 |
}
|
|
|
169 |
|
1700 |
daniel |
170 |
jQuery(document).ready(function() {
|
|
|
171 |
|
5382 |
daniel |
172 |
jQuery('#wpsg_modul_onlyactive').bind('change', function(event) {
|
|
|
173 |
|
|
|
174 |
wpsg_ssh_module();
|
|
|
175 |
jQuery(this).blur();
|
|
|
176 |
|
|
|
177 |
} );
|
|
|
178 |
|
|
|
179 |
jQuery('#wpsg_modul_search').focus().bind('blur', wpsg_ssh_module);
|
|
|
180 |
jQuery('#wpsg_modul_search').focus().bind('keyup', wpsg_ssh_module);
|
|
|
181 |
|
1700 |
daniel |
182 |
jQuery('.wpsg_form_help').tipTip();
|
|
|
183 |
|
5382 |
daniel |
184 |
wpsg_ssh_module();
|
|
|
185 |
|
1700 |
daniel |
186 |
} );
|
|
|
187 |
|
3244 |
daniel |
188 |
/* ]]> */</script>
|