Subversion Repositories wpShopGermany4

Rev

Rev 6475 | Rev 6484 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6475 Rev 6476
Line 108... Line 108...
108
			<div class="panel-heading clearfix">
108
			<div class="panel-heading clearfix">
109
				<h3 class="panel-title"><?php echo __('Modulverwaltung', 'wpsg'); ?></h3>
109
				<h3 class="panel-title"><?php echo __('Modulverwaltung', 'wpsg'); ?></h3>
110
		 	</div>
110
		 	</div>
111
		 	<div class="panel-body">
111
		 	<div class="panel-body">
112
	 	
112
	 	
-
 
113
				<form method="POST" action="<?php echo WPSG_URL_WP ?>wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=activatemodul">
-
 
114
						
-
 
115
					<fieldset>
-
 
116
						<legend style="padding-top:0px;"><?php echo __('Modulcode aktivieren', 'wpsg'); ?></legend>
-
 
117
										
-
 
118
						<div class="row">
-
 
119
							<div class="col-xs-10">
-
 
120
								
-
 
121
								<input required="required" type="text" class="form-control" name="modulcode" id="modulcode" />
-
 
122
								
-
 
123
							</div>
-
 
124
							<div class="col-xs-2">
-
 
125
								
-
 
126
								<input class="btn btn-primary btn-block" type="submit" class="form-control" value="<?php echo __('Prüfen', 'wpsg'); ?>" />
-
 
127
								
-
 
128
							</div>
-
 
129
						</div>
-
 
130
					</fieldset>
-
 
131
					
-
 
132
				</form>
-
 
133
				
-
 
134
				<hr />
-
 
135
				
113
				<?php $wpsg_update_data = wpsg_get_update_data(); ?>
136
				<?php $wpsg_update_data = wpsg_get_update_data(); ?>
114
				<?php if (wpsg_isSizedArray($wpsg_update_data)) { ?>
137
				<?php if (wpsg_isSizedArray($wpsg_update_data)) { ?>
115
				
138
				
116
					<table class="table">
139
					<table class="table modultable">
117
  						<thead>
140
  						<thead>
118
							<tr>
141
							<tr>
119
								<th><?php echo __('Modulname', 'wpsg'); ?></th>
142
								<th><?php echo __('Modulname', 'wpsg'); ?></th>
120
								<th><?php echo __('installierte Version', 'wpsg'); ?></th>
143
								<th><?php echo __('installierte Version', 'wpsg'); ?></th>
121
								<th><?php echo __('Lizenz', 'wpsg');  ?></th>
144
								<th><?php echo __('Lizenz', 'wpsg');  ?></th>
122
								<th><?php echo __('verfügbare Version', 'wpsg'); ?></th>
145
								<th><?php echo __('verfügbare Version', 'wpsg'); ?></th>
123
							</tr>
146
							</tr>
124
						</thead>
147
						</thead>
125
						<tbody>
148
						<tbody>
126
							<?php foreach ($wpsg_update_data['modulinfo'] as $modul_key => $modul_info) { ?>
149
							<?php foreach ($wpsg_update_data['modulinfo'] as $modul_key => $modul_info) { ?>
-
 
150
							<tr style="font-style:normal;" class="
-
 
151
							
-
 
152
								<?php if ($modul_info['free'] === true) { ?>
-
 
153
									<?php echo 'active'; ?>
-
 
154
								<?php } else if ($modul_info['active'] === true) { ?>
-
 
155
									<?php echo 'success'; ?>
-
 
156
								<?php } else { ?>
-
 
157
									<?php echo 'info'; ?>
-
 
158
								<?php } ?>
-
 
159
							
127
							<tr>
160
							">
128
								<td><?php echo $modul_info['label']; ?></td>
161
								<td><?php echo $modul_info['label']; ?></td>
129
								<td>
162
								<td>
130
									
163
									
131
									<?php if ($this->hasModInstalled($modul_key)) { ?>
164
									<?php if ($this->hasModInstalled($modul_key)) { ?>
132
										<?php echo $this->arAllModule[$modul_key]->version; ?>										
165
										<?php echo $this->arAllModule[$modul_key]->version; ?>										
Line 138... Line 171...
138
									<?php if ($modul_info['free'] === true) { ?>
171
									<?php if ($modul_info['free'] === true) { ?>
139
										<?php echo __('kostenlos', 'wpsg'); ?>
172
										<?php echo __('kostenlos', 'wpsg'); ?>
140
									<?php } else if ($modul_info['active'] === true) { ?>
173
									<?php } else if ($modul_info['active'] === true) { ?>
141
										<?php echo __('enthalten', 'wpsg'); ?>
174
										<?php echo __('enthalten', 'wpsg'); ?>
142
									<?php } else { ?>
175
									<?php } else { ?>
-
 
176
										
-
 
177
										<?php if (wpsg_isSizedString($modul_info['url_shop'])) { ?>
143
										<a href="<?php echo $modul_info['url_shop']; ?>" target="_blank"><?php echo __('Modulcode hier erwerben', 'wpsg'); ?></a>
178
										<a href="<?php echo $modul_info['url_shop']; ?>" target="_blank"><?php echo __('Modulcode hier erwerben', 'wpsg'); ?></a>
-
 
179
										<?php } else { ?>
-
 
180
										<a href="https://shop.maennchen1.de" target="_blank"><?php echo __('Modulcode hier erwerben', 'wpsg'); ?></a>
-
 
181
										<?php } ?>
-
 
182
										
144
									<?php } ?>
183
									<?php } ?>
145
									
184
									
146
								</td>
185
								</td>
147
								<td><?php 
186
								<td><?php 
148
																	
187
																	
149
									echo $modul_info['version'];
188
									echo $modul_info['version'];
150
									 
189
									 
151
									if ($this->hasModInstalled($modul_key) && $modul_info['version'] === $this->arAllModule[$modul_key]->version)
190
									if ($this->hasModInstalled($modul_key) && $modul_info['version'] === $this->arAllModule[$modul_key]->version)
152
									{
191
									{
153
										
192
										
154
										echo ' ('.__('aktuell', 'wpsg').')';
193
										echo ' - <strong class="wpsg_message_ok">'.__('aktuell', 'wpsg').'</strong>';
155
										
194
										
156
									}
195
									}
157
									else if (version_compare($modul_info['version'], WPSG_VERSION) > 0) 
196
									else if (version_compare($modul_info['version'], WPSG_VERSION) > 0) 
158
									{
197
									{
159
										
198
										
160
										echo ' '.wpsg_translate(__('neue Version verfügbar (<a href="#1#">wpShopGermany Update</a> notwendig)', 'wpsg'), WPSG_URL_WP.'wp-admin/plugins.php');
199
										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');
161
										
200
										
162
									}
201
									}
-
 
202
									else if (version_compare($modul_info['version'], $this->arAllModule[$modul_key]->versio) > 0) 
-
 
203
									{
-
 
204
										
-
 
205
										echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong><br />';
-
 
206
										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); 
-
 
207
									
-
 
208
									}
163
									
209
									
164
								?></td>
210
								?></td>
165
							</tr>
211
							</tr>
166
							<?php } ?>
212
							<?php } ?>
167
						</tbody>
213
						</tbody>
168
					</table>
214
					</table>
169
					
215
										
170
				<?php } else { ?>
216
				<?php } else { ?>
171
				
217
				
172
				<p>
218
				<p>
173
					Lizenz aktivieren
219
					Lizenz aktivieren
174
				</p>
220
				</p>