6522 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Liste der Module
|
|
|
5 |
* wird in der Modulverwaltungsübersicht und in der Lizenzverwaltung verwendet
|
|
|
6 |
*/
|
|
|
7 |
|
|
|
8 |
$wpsg_update_data = wpsg_get_update_data();
|
|
|
9 |
|
|
|
10 |
if (get_class($this) === "wpsg_ShopController")
|
|
|
11 |
{
|
|
|
12 |
|
|
|
13 |
$source = 'module';
|
|
|
14 |
@$this->shop = &$this;
|
|
|
15 |
|
|
|
16 |
}
|
|
|
17 |
else
|
|
|
18 |
{
|
|
|
19 |
|
|
|
20 |
$source = 'licence';
|
|
|
21 |
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
?>
|
|
|
25 |
|
|
|
26 |
<?php if (wpsg_isSizedArray($wpsg_update_data['modulinfo'])) { ?>
|
|
|
27 |
|
|
|
28 |
<?php /* foreach ($wpsg_update_data['modulinfo'] as $modul_key => $modul_info) { if ($modul_info['active'] !== true) unset($wpsg_update_data['modulinfo'][$modul_key]); } */ ?>
|
|
|
29 |
|
|
|
30 |
<table class="table modultable">
|
|
|
31 |
<thead>
|
|
|
32 |
<tr>
|
|
|
33 |
<th><?php echo __('Modulname', 'wpsg'); ?></th>
|
|
|
34 |
<th><?php echo __('Version', 'wpsg'); ?></th>
|
|
|
35 |
<th><?php echo __('Lizenz', 'wpsg'); ?></th>
|
|
|
36 |
<th><?php echo __('verfügbare Version', 'wpsg'); ?></th>
|
|
|
37 |
</tr>
|
|
|
38 |
</thead>
|
|
|
39 |
<tbody>
|
|
|
40 |
<?php foreach ($wpsg_update_data['modulinfo'] as $modul_key => $modul_info) { ?>
|
|
|
41 |
<tr style="font-style:normal;" class="<?php
|
|
|
42 |
|
|
|
43 |
if ($modul_info['free'] === true) echo 'active';
|
|
|
44 |
else if ($modul_info['active'] === true) echo 'success';
|
|
|
45 |
else echo 'info';
|
|
|
46 |
?>">
|
|
|
47 |
<td>
|
6524 |
daniel |
48 |
|
|
|
49 |
<?php if ($this->shop->hasModInstalled($modul_key)) { ?>
|
|
|
50 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=<?php echo $modul_key; ?>">
|
|
|
51 |
<?php } ?>
|
6522 |
daniel |
52 |
|
6524 |
daniel |
53 |
<?php echo $modul_info['label']; ?>
|
|
|
54 |
|
6522 |
daniel |
55 |
<?php if ($this->shop->hasModInstalled($modul_key)) { ?>
|
6524 |
daniel |
56 |
</a>
|
|
|
57 |
<?php } ?>
|
|
|
58 |
|
|
|
59 |
</td>
|
|
|
60 |
<td>
|
|
|
61 |
|
|
|
62 |
<?php if ($this->shop->hasModInstalled($modul_key)) { ?>
|
6522 |
daniel |
63 |
<?php echo $this->shop->arAllModule[$modul_key]->version; ?>
|
|
|
64 |
<?php } ?>
|
|
|
65 |
|
|
|
66 |
</td>
|
|
|
67 |
<td>
|
|
|
68 |
|
|
|
69 |
<?php if ($modul_info['free'] === true) { ?>
|
|
|
70 |
<?php echo __('kostenlos', 'wpsg'); ?>
|
|
|
71 |
<?php } else if ($modul_info['active'] === true) { ?>
|
|
|
72 |
<?php echo __('enthalten', 'wpsg'); ?>
|
|
|
73 |
<?php } else { ?>
|
|
|
74 |
|
|
|
75 |
<?php if (wpsg_isSizedString($modul_info['shop_url'])) { ?>
|
|
|
76 |
<a href="<?php echo $modul_info['shop_url']; ?>" target="_blank"><?php echo __('Modulcode erwerben', 'wpsg'); ?></a>
|
|
|
77 |
<?php } else { ?>
|
|
|
78 |
<a href="https://shop.maennchen1.de" target="_blank"><?php echo __('Modulcode erwerben', 'wpsg'); ?></a>
|
|
|
79 |
<?php } ?>
|
|
|
80 |
|
|
|
81 |
<?php } ?>
|
|
|
82 |
|
|
|
83 |
<?php if (!$this->shop->hasModInstalled($modul_key)) { ?>
|
|
|
84 |
|
|
|
85 |
<br />
|
|
|
86 |
<?php if ($modul_info['active'] === true || $modul_info['free'] === true) { ?>
|
|
|
87 |
<?php echo wpsg_translate(__('<a href="#1#">Version installieren</a>', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key.'&source='.$source); ?>
|
|
|
88 |
<?php } else { ?>
|
|
|
89 |
<?php echo wpsg_translate(__('<a href="#1#">Demo installieren</a>', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key.'&source='.$source); ?>
|
|
|
90 |
<?php } ?>
|
|
|
91 |
|
|
|
92 |
<?php } ?>
|
|
|
93 |
|
|
|
94 |
</td>
|
|
|
95 |
<td><?php
|
|
|
96 |
|
|
|
97 |
if ($modul_info['active'] === true && $modul_info['version'] != $modul_info['version_latest'] && version_compare($modul_info['version_latest'], $this->shop->arAllModule[$modul_key]->version) < 0)
|
|
|
98 |
{
|
|
|
99 |
|
|
|
100 |
echo $modul_info['version_latest'];
|
|
|
101 |
|
|
|
102 |
echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong>';
|
|
|
103 |
echo '<br />';
|
|
|
104 |
echo wpsg_translate(__('<a href="#1#">Version installieren</a>.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key.'&source='.$source);
|
|
|
105 |
|
|
|
106 |
echo '<br /><br />';
|
|
|
107 |
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
echo $modul_info['version'];
|
|
|
111 |
|
|
|
112 |
if ($this->shop->hasModInstalled($modul_key) && $modul_info['version'] === $this->shop->arAllModule[$modul_key]->version)
|
|
|
113 |
{
|
|
|
114 |
|
|
|
115 |
echo ' - <strong class="wpsg_message_ok">'.__('aktuell', 'wpsg').'</strong>';
|
|
|
116 |
|
|
|
117 |
}
|
6534 |
daniel |
118 |
else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], WPSG_VERSION) > 0)
|
6522 |
daniel |
119 |
{
|
|
|
120 |
|
|
|
121 |
echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong><br />'.wpsg_translate(__('<a href="#1#">wpShopGermany Update</a> notwendig', 'wpsg'), WPSG_URL_WP.'wp-admin/plugins.php');
|
|
|
122 |
|
|
|
123 |
}
|
6534 |
daniel |
124 |
else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], $this->shop->arAllModule[$modul_key]->version) > 0)
|
6522 |
daniel |
125 |
{
|
|
|
126 |
|
|
|
127 |
echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong>';
|
|
|
128 |
|
|
|
129 |
if ($modul_info['active'] === true)
|
|
|
130 |
{
|
|
|
131 |
|
|
|
132 |
echo '<br />';
|
|
|
133 |
echo wpsg_translate(__('<a href="#1#">Version installieren</a>.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key.'&source='.$source);
|
|
|
134 |
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
}
|
|
|
138 |
|
|
|
139 |
?></td>
|
|
|
140 |
</tr>
|
|
|
141 |
<?php } ?>
|
|
|
142 |
</tbody>
|
|
|
143 |
</table>
|
|
|
144 |
|
|
|
145 |
<?php } else { ?>
|
|
|
146 |
|
|
|
147 |
<?php echo __('Mit einer Lizenz (Pro, Enterprise) machst du aus deinem wpShopGermany mehr.', 'wpsg'); ?><br /><br />
|
|
|
148 |
<?php echo __('Du erhältst neben kostenlosem Support (per Mail oder Forum, 1 Jahr Updates frei) auch die Möglichkeit, die Vielzahl der zusätzlich erhältlichen wpShopGermany Module zu nutzen.', 'wpsg'); ?>
|
|
|
149 |
|
6711 |
roger |
150 |
<a href="https://shop.maennchen1.de/produkt/wpshopgermany4-lizenzkey/" target="_blank"><?php echo __('wpShopGermany im Shop ansehen', 'wpsg'); ?></a>
|
6522 |
daniel |
151 |
|
|
|
152 |
|
|
|
153 |
<?php } ?>
|