Subversion Repositories wpShopGermany4

Compare Revisions

Ignore whitespace Rev 6521 → Rev 6522

/admin/licence.phtml
182,86 → 182,7
<br />
<?php if (wpsg_isSizedArray($wpsg_update_data)) { ?>
<?php // Ich zeige hier nur die Aktiven Module an ?>
<?php foreach ($wpsg_update_data['modulinfo'] as $modul_key => $modul_info) { if ($modul_info['active'] !== true) unset($wpsg_update_data['modulinfo'][$modul_key]); } ?>
<table class="table modultable">
<thead>
<tr>
<th><?php echo __('Modulname', 'wpsg'); ?></th>
<th><?php echo __('Version', 'wpsg'); ?></th>
<th><?php echo __('Lizenz', 'wpsg'); ?></th>
<th><?php echo __('verfügbare Version', 'wpsg'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($wpsg_update_data['modulinfo'] as $modul_key => $modul_info) { ?>
<tr style="font-style:normal;" class="success">
<td><?php echo $modul_info['label']; ?></td>
<td>
<?php if ($this->shop->hasModInstalled($modul_key)) { ?>
<?php echo $this->shop->arAllModule[$modul_key]->version; ?>
<?php } ?>
</td>
<td>
<?php if ($modul_info['free'] === true) { ?>
<?php echo __('kostenlos', 'wpsg'); ?>
<?php } else if ($modul_info['active'] === true) { ?>
<?php echo __('enthalten', 'wpsg'); ?>
<?php } else { ?>
<?php if (wpsg_isSizedString($modul_info['shop_url'])) { ?>
<a href="<?php echo $modul_info['shop_url']; ?>" target="_blank"><?php echo __('Modulcode erwerben', 'wpsg'); ?></a>
<?php } else { ?>
<a href="https://shop.maennchen1.de" target="_blank"><?php echo __('Modulcode erwerben', 'wpsg'); ?></a>
<?php } ?>
<?php } ?>
</td>
<td><?php
echo $modul_info['version'];
if ($this->shop->hasModInstalled($modul_key) && $modul_info['version'] === $this->shop->arAllModule[$modul_key]->version)
{
echo ' - <strong class="wpsg_message_ok">'.__('aktuell', 'wpsg').'</strong>';
}
else if (version_compare($modul_info['version'], WPSG_VERSION) > 0)
{
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');
}
else if (version_compare($modul_info['version'], $this->shop->arAllModule[$modul_key]->versio) > 0)
{
echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong>';
if ($modul_info['active'] === true)
{
echo '<br />';
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);
}
}
?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php } ?>
<?php include dirname(__FILE__).'/modulelist.phtml'; ?>
<?php } ?>