Subversion Repositories wpShopGermany4

Rev

Rev 5261 | Rev 5371 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1067 daniel 1
<?php
2
 
3
	/**
4
	 * Templatedatei für die Modulseite des Backend
5
	 * Sollte nicht angepasst werden
6
	 */
7
 
8
?>
9
<div class="wpsg_admin_submenu">
10
 
11
	<?php foreach ($this->view['groups'] as $group_name => $g) { ?>
5370 daniel 12
	<div class="list-group">
13
		<span class="list-group-head list-group-item"><?php echo $group_name; ?></span>
14
		<?php foreach ($g as $mod_key => $m) { ?>
15
		<a class="<?php echo (($this->get_option($mod_key, $this->view['global']) > 0)?'modul_akt':''); ?> list-group-item <?php echo (($mod_key == $_REQUEST['modul'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=module&amp;modul=<?php echo $mod_key; ?>">
16
			<?php echo $m->name; ?>
17
			<?php if (($this->get_option($mod_key, $this->view['global']) > 0)?'modul_akt':'') { ?>
18
			<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
19
			<?php } ?>
20
		</a>
21
		<?php } ?>
22
	</div>
23
	<?php } ?>
24
 
25
	<?php /* ?>
26
	<?php foreach ($this->view['groups'] as $group_name => $g) { ?>
1067 daniel 27
	<div class="head">
28
		<div class="title"><?php echo $group_name; ?></div>
29
		<div style="clear:both;"></div>
30
	</div>
31
 
32
	<ul>
33
		<?php foreach ($g as $mod_key => $m) { ?>
2506 daniel 34
		<li class="<?php echo (($this->get_option($mod_key, $this->view['global']) > 0)?'modul_akt':''); ?> <?php echo (($mod_key == $_REQUEST['modul'])?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=module&amp;modul=<?php echo $mod_key; ?>"><?php echo $m->name; ?></a></li>
1067 daniel 35
		<?php } ?>
36
	</ul>
4110 daniel 37
	<div style="clear:both; height:10px; margin-left:0px; margin-right:8px;"></div>
5370 daniel 38
	<?php } ?> */ ?>
1067 daniel 39
 
40
</div>
41
 
42
<?php if (isset($_REQUEST['modul'])) { ?>
43
<div class="wpsg_admin_content">
44
	<form name="form1" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=module&amp;modul=<?php echo $_REQUEST['modul']; ?>&amp;noheader=1" method="post" enctype="multipart/form-data">
45
 
46
		<h3>
1401 daniel 47
			<?php echo $this->arAllModule[$_REQUEST['modul']]->name; ?>
1559 daniel 48
			<?php if (isset($this->arAllModule[$_REQUEST['modul']]->hilfeURL) && $this->arAllModule[$_REQUEST['modul']]->hilfeURL != '') { ?>
1727 daniel 49
			<a target="_blank" href="<?php echo $this->arAllModule[$_REQUEST['modul']]->hilfeURL; ?>" class="wpsg_form_help_notip"></a>
1067 daniel 50
			<?php } ?>
51
		</h3>
52
 
1401 daniel 53
		<p><?php echo $this->arAllModule[$_REQUEST['modul']]->desc; ?></p>
1067 daniel 54
 
55
		<div class="wpsg_form_field">
56
			<div class="wpsg_form_left">
57
				<?php echo __("Modul aktiviert", "wpsg"); ?>:
58
			</div>
59
			<div class="wpsg_form_right">
60
				<select name="aktiv">
61
					<option value="0"><?php echo __('Nein', 'wpsg'); ?></option>
2506 daniel 62
					<option value="1" <?php echo (($this->get_option($_REQUEST['modul'], $this->view['global']) > 0)?'selected="selected"':''); ?>><?php echo __('Ja', 'wpsg'); ?></option>
1067 daniel 63
				</select>
64
			</div>
65
			<div class="wpsg_clear"></div>
1469 daniel 66
		</div>
1477 david 67
 
1469 daniel 68
		<?php if (isset($this->arAllModule[$_REQUEST['modul']]->version)) { ?>
1598 daniel 69
		<?php echo wpsg_drawForm_Input('', __('Version', 'wpsg'), $this->arAllModule[$_REQUEST['modul']]->version, array('text' => true)); ?>
1469 daniel 70
		<div class="wpsg_form_field">
1470 daniel 71
			<div class="wpsg_form_left">
72
				<?php echo __("Lizenz", "wpsg"); ?>:
73
			</div>
74
			<div class="wpsg_form_right">
75
				<p>
76
					<?php if (isset($this->arAllModule[$_REQUEST['modul']]->free) && $this->arAllModule[$_REQUEST['modul']]->free === true) { ?>
77
					<?php echo __('Kostenfrei', 'wpsg'); ?>
78
					<?php } else { ?>
1927 daniel 79
					<?php if (is_array($this->arLizenz) && in_array($_REQUEST['modul'], (array)$this->arLizenz['mods'])) { ?>
1470 daniel 80
					<?php echo __('Aktiviert', 'wpsg'); ?>
81
					<?php } else { ?>
82
					<?php if ($this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0) { ?>
83
					<?php echo wpsg_translate(__('Demo Modus noch #1# Tage verbleibend.', 'wpsg'), $this->arAllModule[$_REQUEST['modul']]->getDemoDays()); ?>
84
					<?php } else { ?>
85
					<?php echo __('Demo Modus abgelaufen.', 'wpsg'); ?>
86
					<?php } ?>
87
					<?php } ?>
88
					<?php } ?>
89
				</p>
90
			</div>
91
			<div class="wpsg_clear"></div>
92
		</div>
1469 daniel 93
		<?php } ?>
94
 
1927 daniel 95
		<?php if (!isset($this->arAllModule[$_REQUEST['modul']]->version) || (($this->arAllModule[$_REQUEST['modul']]->free === true || (is_array($this->arLizenz) && in_array($_REQUEST['modul'], (array)$this->arLizenz['mods'])) || $this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0))) { ?>
1559 daniel 96
			<?php if ($this->arAllModule[$_REQUEST['modul']]->inline === true) { ?>
1469 daniel 97
			<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
98
			<?php } ?>
99
 
100
			<input type="hidden" name="subaction" value="module" />
101
 
1559 daniel 102
			<?php if ($this->arAllModule[$_REQUEST['modul']]->inline == true) { ?>
1469 daniel 103
			</form>
1465 daniel 104
			<?php } ?>
1469 daniel 105
 
2506 daniel 106
			<?php if ($this->get_option($_REQUEST['modul'], $this->view['global']) > 0) { ?>
1469 daniel 107
			<?php echo $this->arModule[$_REQUEST['modul']]->settings_edit(); ?>
1468 daniel 108
			<?php } ?>
1465 daniel 109
 
1559 daniel 110
			<?php if ($this->arAllModule[$_REQUEST['modul']]->inline !== true) { ?>
4808 daniel 111
			<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
1068 daniel 112
			<?php } ?>
4808 daniel 113
		<?php } else { ?>
114
		<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit"></p>
1197 daniel 115
		<?php } ?>
116
 
1559 daniel 117
	<?php if ($this->arAllModule[$_REQUEST['modul']]->inline !== true) { ?>
1067 daniel 118
	</form>
1197 daniel 119
	<?php } ?>
1067 daniel 120
</div>
2645 daniel 121
<?php } else { ?>
122
 
4944 daniel 123
	<?php if ($this->hasMod('wpsg_mod_core')) { ?>
124
	<?php echo $this->callMod('wpsg_mod_core', 'module_index'); ?>
4950 daniel 125
	<?php } else { ?>
126
 
127
		<div class="wpsg_admin_content">
128
 
129
			<h3><?php echo __('Modulverwaltung', 'wpsg'); ?></h3>
130
			<p><?php echo __('wpShopGermany ist Modular aufgebaut, wählen Sie links das Modul aus, welches Sie konfigurieren möchten. ', 'wpsg'); ?></p>
131
 
132
			<p><?php echo wpsg_translate(
133
				__('<span style="color:red; font-weight:bold;">wpShopGermany Vollversion erwerben und weitere Funktionen freischalten.</span> [ <a target="_blank" href="#1#">Vollversion kaufen</a> ] [ <a target="_blank" href="#2#">Weitere Infos</a> ]', 'wpsg'),
134
				'http://shop.maennchen1.de/produkte/wpshopgermany-lizenzkey/',
135
				'http://wpshopgermany.de/'
136
			); ?></p>
137
 
138
		</div>
139
 
4944 daniel 140
	<?php } ?>
141
 
1700 daniel 142
<?php } ?>
143
 
3244 daniel 144
<script type="text/javascript">/* <![CDATA[ */
1700 daniel 145
 
146
	jQuery(document).ready(function() {
147
 
148
		jQuery('.wpsg_form_help').tipTip();
149
 
150
	} );
151
 
3244 daniel 152
/* ]]> */</script>