Subversion Repositories wpShopGermany4

Rev

Rev 6524 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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><?php echo $modul_info['label']; ?></td>
48
                <td>
49
 
50
                    <?php if ($this->shop->hasModInstalled($modul_key)) { ?>
51
                        <?php echo $this->shop->arAllModule[$modul_key]->version; ?>
52
                    <?php } ?>
53
 
54
                </td>
55
                <td>
56
 
57
                    <?php if ($modul_info['free'] === true) { ?>
58
                        <?php echo __('kostenlos', 'wpsg'); ?>
59
                    <?php } else if ($modul_info['active'] === true) { ?>
60
                        <?php echo __('enthalten', 'wpsg'); ?>
61
                    <?php } else { ?>
62
 
63
                        <?php if (wpsg_isSizedString($modul_info['shop_url'])) { ?>
64
                        <a href="<?php echo $modul_info['shop_url']; ?>" target="_blank"><?php echo __('Modulcode erwerben', 'wpsg'); ?></a>
65
                        <?php } else { ?>
66
                        <a href="https://shop.maennchen1.de" target="_blank"><?php echo __('Modulcode erwerben', 'wpsg'); ?></a>
67
                        <?php } ?>
68
 
69
                    <?php } ?>
70
 
71
                    <?php if (!$this->shop->hasModInstalled($modul_key)) { ?>
72
 
73
                        <br />
74
                        <?php if ($modul_info['active'] === true || $modul_info['free'] === true) { ?>
75
                            <?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); ?>
76
                        <?php } else { ?>
77
                            <?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); ?>
78
                        <?php } ?>
79
 
80
                    <?php } ?>
81
 
82
                </td>
83
                <td><?php
84
 
85
                    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)
86
                    {
87
 
88
                        echo $modul_info['version_latest'];
89
 
90
                        echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong>';
91
                        echo '<br />';
92
                        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);
93
 
94
                        echo '<br /><br />';
95
 
96
                    }
97
 
98
                    echo $modul_info['version'];
99
 
100
                    if ($this->shop->hasModInstalled($modul_key) && $modul_info['version'] === $this->shop->arAllModule[$modul_key]->version)
101
                    {
102
 
103
                        echo ' - <strong class="wpsg_message_ok">'.__('aktuell', 'wpsg').'</strong>';
104
 
105
                    }
106
                    else if (version_compare($modul_info['version'], WPSG_VERSION) > 0)
107
                    {
108
 
109
                        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');
110
 
111
                    }
112
                    else if (version_compare($modul_info['version'], $this->shop->arAllModule[$modul_key]->version) > 0)
113
                    {
114
 
115
                        echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong>';
116
 
117
                        if ($modul_info['active'] === true)
118
                        {
119
 
120
                            echo '<br />';
121
                            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);
122
 
123
                        }
124
 
125
                    }
126
 
127
                ?></td>
128
            </tr>
129
            <?php } ?>
130
        </tbody>
131
    </table>
132
 
133
<?php } else { ?>
134
 
135
    <?php echo __('Mit einer Lizenz (Pro, Enterprise) machst du aus deinem wpShopGermany mehr.', 'wpsg'); ?><br /><br />
136
    <?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'); ?>
137
 
138
    <a href="https://shop.maennchen1.de/produkte/wpshopgermany-lizenzkey/" target="_blank"><?php echo __('wpShopGermany im Shop ansehen', 'wpsg'); ?></a>
139
 
140
 
141
<?php } ?>