Subversion Repositories wpShopGermany4

Compare Revisions

Ignore whitespace Rev 6475 → Rev 6476

/admin/module.phtml
110,10 → 110,33
</div>
<div class="panel-body">
<form method="POST" action="<?php echo WPSG_URL_WP ?>wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=activatemodul">
<fieldset>
<legend style="padding-top:0px;"><?php echo __('Modulcode aktivieren', 'wpsg'); ?></legend>
<div class="row">
<div class="col-xs-10">
<input required="required" type="text" class="form-control" name="modulcode" id="modulcode" />
</div>
<div class="col-xs-2">
<input class="btn btn-primary btn-block" type="submit" class="form-control" value="<?php echo __('Prüfen', 'wpsg'); ?>" />
</div>
</div>
</fieldset>
</form>
<hr />
<?php $wpsg_update_data = wpsg_get_update_data(); ?>
<?php if (wpsg_isSizedArray($wpsg_update_data)) { ?>
<table class="table">
<table class="table modultable">
<thead>
<tr>
<th><?php echo __('Modulname', 'wpsg'); ?></th>
124,7 → 147,17
</thead>
<tbody>
<?php foreach ($wpsg_update_data['modulinfo'] as $modul_key => $modul_info) { ?>
<tr>
<tr style="font-style:normal;" class="
<?php if ($modul_info['free'] === true) { ?>
<?php echo 'active'; ?>
<?php } else if ($modul_info['active'] === true) { ?>
<?php echo 'success'; ?>
<?php } else { ?>
<?php echo 'info'; ?>
<?php } ?>
">
<td><?php echo $modul_info['label']; ?></td>
<td>
140,7 → 173,13
<?php } else if ($modul_info['active'] === true) { ?>
<?php echo __('enthalten', 'wpsg'); ?>
<?php } else { ?>
<?php if (wpsg_isSizedString($modul_info['url_shop'])) { ?>
<a href="<?php echo $modul_info['url_shop']; ?>" target="_blank"><?php echo __('Modulcode hier erwerben', 'wpsg'); ?></a>
<?php } else { ?>
<a href="https://shop.maennchen1.de" target="_blank"><?php echo __('Modulcode hier erwerben', 'wpsg'); ?></a>
<?php } ?>
<?php } ?>
</td>
151,22 → 190,29
if ($this->hasModInstalled($modul_key) && $modul_info['version'] === $this->arAllModule[$modul_key]->version)
{
echo ' ('.__('aktuell', 'wpsg').')';
echo ' - <strong class="wpsg_message_ok">'.__('aktuell', 'wpsg').'</strong>';
}
else if (version_compare($modul_info['version'], WPSG_VERSION) > 0)
{
echo ' '.wpsg_translate(__('neue Version verfügbar (<a href="#1#">wpShopGermany Update</a> notwendig)', 'wpsg'), WPSG_URL_WP.'wp-admin/plugins.php');
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->arAllModule[$modul_key]->versio) > 0)
{
echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong><br />';
echo wpsg_translate(__('Version <a href="#1#">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 } else { ?>
<p>