Subversion Repositories wpShopGermany4

Rev

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

Rev 5562 Rev 7094
Line 6... Line 6...
6
 
6
 
7
?>
7
?>
8
<div class="wpsg_admin_submenu">
8
<div class="wpsg_admin_submenu">
9
	
9
	
10
	<div class="list-group">
10
	<div class="list-group">
11
		<span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>		
11
		<span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
12
		<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>		 
12
		<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
13
		<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>		
13
			<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
14
		<?php } ?>
14
		<?php } ?>
15
	</div> 
15
	</div>
16
			
-
 
17
</div>
-
 
18
 
16
 
-
 
17
</div>
19
 
18
 
20
<div class="wpsg_admin_content form-horizontal">
19
<div class="wpsg_admin_content form-horizontal">
21
	<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo wpsg_hspc(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf&noheader=1'); ?>">
20
	<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo wpsg_hspc(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf&noheader=1'); ?>">
22
	
21
 
23
		<?php echo wpsg_drawForm_AdminboxStart('Allgemeine Einstellungen', 'wpsg'); ?>
22
		<?php echo wpsg_drawForm_AdminboxStart('Allgemeine Einstellungen', 'wpsg'); ?>
-
 
23
		<?php $logoPath = WPSG_PATH_CONTENT . 'uploads/wpsg/wpsg_mailconf/wpsg_email_logo.jpg'; ?>
-
 
24
 
-
 
25
		<?php echo wpsg_drawForm_Checkbox(
-
 
26
			'wpsg_htmlmail',
-
 
27
			__('HTML Mails versenden', 'wpsg'),
-
 
28
			$this->get_option('wpsg_htmlmail')
-
 
29
		); ?>
-
 
30
 
-
 
31
 
-
 
32
		<div class="col-emaillogo">
-
 
33
 
-
 
34
			<?php if(file_exists($logoPath)) { ?>
-
 
35
				<?php echo wpsg_drawForm_Checkbox(
-
 
36
					'wpsg_email_logo_activated',
-
 
37
					__("E-Maillogo anzeigen"),
-
 
38
					$this->get_option('wpsg_email_logo_activated')
-
 
39
				); ?>
-
 
40
 
-
 
41
				<br>
-
 
42
 
-
 
43
				<?php echo wpsg_drawForm_Checkbox(
-
 
44
					'wpsg_email_logo_watermark',
-
 
45
					__("E-Maillogo als Wasserzeichen anzeigen"),
-
 
46
					$this->get_option('wpsg_email_logo_watermark')
-
 
47
				); ?>
-
 
48
			<?php } ?>
-
 
49
 
-
 
50
			<div class="form-group">
-
 
51
				<div class="col-sm-6 control-label control-label-email-conf">
-
 
52
					<label><?php echo __("E-Maillogo (JPG)"); ?></label>
-
 
53
				</div>
-
 
54
				<div class="col-sm-6">
-
 
55
					<?php if(file_exists($logoPath)) { ?>
24
		<?php echo wpsg_drawForm_Checkbox('wpsg_htmlmail', __('HTML Mails versenden', 'wpsg'), $this->get_option('wpsg_htmlmail')); ?>
56
						<a href="<?php echo $this->get_option('wpsg_email_logo_url'); ?>" target="_blank"><?php echo __('Derzeitiges Logo', 'wpsg'); ?></a><br>
-
 
57
					<?php } ?>
-
 
58
					<input type="file" name="wpsg_email_logo">
-
 
59
				</div>
-
 
60
 
-
 
61
				<?php if(file_exists($logoPath)) { ?>
-
 
62
					<?php echo wpsg_drawForm_Checkbox(
-
 
63
						'wpsg_email_logo_del',
-
 
64
						__("Logo Löschen"),
-
 
65
						0
-
 
66
					); ?>
-
 
67
				<?php } ?>
-
 
68
 
-
 
69
			</div> <!-- .form-group -->
-
 
70
 
-
 
71
			<?php if(file_exists($logoPath)) { ?>
-
 
72
 
-
 
73
				<div class="form-group col-logo-alignment">
-
 
74
					<div class="col-sm-6 control-label control-label-email-conf">
-
 
75
						<label><?php echo __("Ausrichtung des Maillogos"); ?></label>
-
 
76
					</div>
-
 
77
					<div class="col-sm-6 email-logo-alignment">
-
 
78
						<?php $logoAlignment = $this->get_option('wpsg_email_logo_alignment'); ?>
-
 
79
						<?php $standardAlignment = false; ?>
-
 
80
						<?php if(!wpsg_isSizedString($logoAlignment)) $standardAlignment = true; ?>
-
 
81
						<input type="radio" name="wpsg_email_logo_alignment" value="left" <?php if($logoAlignment === "left"):?>checked<?php endif;?>> <span>&#xf036 <?php echo __("Linksbündig"); ?></span> <br>
-
 
82
						<input type="radio" name="wpsg_email_logo_alignment" value="center" <?php if($logoAlignment === "center"):?>checked<?php endif;?>> <span>&#xf037 <?php echo __("Zentriert"); ?></span> <br>
-
 
83
						<input type="radio" name="wpsg_email_logo_alignment" value="right" <?php if($logoAlignment === "right" || $standardAlignment):?>checked<?php endif;?>> <span>&#xf038 <?php echo __("Rechtsbündig"); ?></span>
-
 
84
					</div>
-
 
85
				</div>
-
 
86
 
-
 
87
				<?php $logoTransparency = $this->get_option('wpsg_email_logo_transparency'); ?>
-
 
88
				<?php if(!wpsg_isSized($logoTransparency)) $logoTransparency = "100%"; ?>
-
 
89
				<?php echo wpsg_drawForm_Input(
-
 
90
					'wpsg_email_logo_transparency',
-
 
91
					__("Deckkraft des Logos"),
-
 
92
					strpos($logoTransparency, "%") !== false ? $logoTransparency : $logoTransparency."%"
-
 
93
				); ?>
-
 
94
 
-
 
95
			<?php } ?>
-
 
96
 
-
 
97
		</div>
25
		<?php echo wpsg_drawForm_AdminboxEnd(); ?>
98
		<?php echo wpsg_drawForm_AdminboxEnd(); ?>
26
		
99
 
27
		<?php echo wpsg_drawEMailConfig(
100
		<?php echo wpsg_drawEMailConfig(
28
			'global', 
101
			'global',
29
			__('Globale Vorgaben', 'wpsg'), 
102
			__('Globale Vorgaben', 'wpsg'),
30
			__('Werden keine Angaben für die folgenden E-Mails gemacht, so gelten die globalen Angaben.', 'wpsg')); ?>
103
			__('Werden keine Angaben für die folgenden E-Mails gemacht, so gelten die globalen Angaben.', 'wpsg')); ?>
31
		 
104
 
32
		<?php echo wpsg_drawEMailConfig(
105
		<?php echo wpsg_drawEMailConfig(
33
			'adminmail', 
106
			'adminmail',
34
			__('Bestellbestätigung (Admin)', 'wpsg'), 
107
			__('Bestellbestätigung (Admin)', 'wpsg'),
35
			__('Diese Mail bekommt der Admin beim Eingang einer neuen Bestellung.', 'wpsg'), 
108
			__('Diese Mail bekommt der Admin beim Eingang einer neuen Bestellung.', 'wpsg'),
36
			true); ?>
109
			true); ?>
37
			  		
110
 
38
		<?php echo wpsg_drawEMailConfig(
111
		<?php echo wpsg_drawEMailConfig(
39
			'kundenmail', 
112
			'kundenmail',
40
			__('Bestellbestätigung (Kunde)', 'wpsg'), 
113
			__('Bestellbestätigung (Kunde)', 'wpsg'),
41
			__('Diese Mail bekommt der Kunde nach Durchführung der Bestellung.', 'wpsg'),
114
			__('Diese Mail bekommt der Kunde nach Durchführung der Bestellung.', 'wpsg'),
42
			false,
115
			false,
43
			true); ?>
116
			true); ?>
44
		
117
 
45
		<?php echo wpsg_drawEMailConfig(
118
		<?php echo wpsg_drawEMailConfig(
46
			'status', 
119
			'status',
47
			__('Statusänderung (Kunde)', 'wpsg'), 
120
			__('Statusänderung (Kunde)', 'wpsg'),
48
			__('Diese Mail bekommt der Kunde bei der Änderung des Bestellstatus.', 'wpsg')); ?>
121
			__('Diese Mail bekommt der Kunde bei der Änderung des Bestellstatus.', 'wpsg')); ?>
49
						
122
 
50
		<?php $this->callMods('admin_emailconf'); ?>
123
		<?php $this->callMods('admin_emailconf'); ?>
51
 
124
 
52
		<div class="wpsg_hinweis"><?php echo __('Klicken Sie auf die jeweilige Mail um die Einstellungen angezeigt zu bekommen bzw. zu ändern.', 'wpsg'); ?></div>
125
		<div class="wpsg_hinweis"><?php echo __('Klicken Sie auf die jeweilige Mail um die Einstellungen angezeigt zu bekommen bzw. zu ändern.', 'wpsg'); ?></div>
53
				
126
 
54
		<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
127
		<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
55
		
128
 
56
	</form>
129
	</form>
57
</div>
130
</div>
58
 
131
 
59
<script type="text/javascript">/* <![CDATA[ */
132
<script type="text/javascript">/* <![CDATA[ */
60
 
133
 
Line 63... Line 136...
63
	 */
136
	 */
64
	function wpsg_mail_save_cookie()
137
	function wpsg_mail_save_cookie()
65
	{
138
	{
66
 
139
 
67
		var wpsg_mail_open = Array();
140
		var wpsg_mail_open = Array();
68
		
141
 
69
		jQuery('.wpsg_email_box .panel-body:visible').each(function() {
142
		jQuery('.wpsg_email_box .panel-body:visible').each(function() {
70
 
143
 
71
			wpsg_mail_open.push(jQuery(this).prev().attr("id"));
144
			wpsg_mail_open.push(jQuery(this).prev().attr("id"));
72
			
145
 
73
		} );
146
		} );
74
 
147
 
75
		jQuery.cookie('wpsg_mail', wpsg_mail_open.join(','));
148
		jQuery.cookie('wpsg_mail', wpsg_mail_open.join(','));
76
		 
149
 
77
	} // function wpsg_mail_save_cookie()
150
	} // function wpsg_mail_save_cookie()
78
 
151
 
79
	jQuery(document).ready(function() {
152
	jQuery(document).ready(function() {
80
 
153
 
81
		jQuery('.wpsg_email_box .panel-heading').bind('click', function() {
154
		jQuery('.wpsg_email_box .panel-heading').bind('click', function() {
82
 
155
 
83
			jQuery(this).next().toggle(); 
156
			jQuery(this).next().toggle();
84
			
157
 
85
			wpsg_mail_save_cookie();
158
			wpsg_mail_save_cookie();
86
			
159
 
87
		} ).css( { 'cursor': 'pointer' } ).disableSelection().next().hide();
160
		} ).css( { 'cursor': 'pointer' } ).disableSelection().next().hide();
88
 
161
 
89
		if (jQuery.cookie('wpsg_mail') != null)
162
		if (jQuery.cookie('wpsg_mail') != null)
90
		{
163
		{
91
 
164
 
92
			var arOpen = jQuery.cookie('wpsg_mail').split(',');
165
			var arOpen = jQuery.cookie('wpsg_mail').split(',');
93
 
166
 
94
			for (var i = 0; i < arOpen.length; i ++)
167
			for (var i = 0; i < arOpen.length; i ++)
95
			{
168
			{
96
 
169
 
97
				jQuery('#' + arOpen[i]).next().show();
170
				jQuery('#' + arOpen[i]).next().show();
98
				jQuery('#' + arOpen[i]).css('border-bottom', '0px');	
171
				jQuery('#' + arOpen[i]).css('border-bottom', '0px');
99
				
172
 
100
			}
173
			}
101
			
174
 
102
		}				
175
		}
-
 
176
 
-
 
177
		jQuery("#wpsg_htmlmail").click(function() {
-
 
178
 
-
 
179
			if(jQuery("#wpsg_htmlmail")[0].checked == false) jQuery(".col-emaillogo").css("display", "none");
-
 
180
			else $(".col-emaillogo").css("display", "block");
-
 
181
 
-
 
182
		});
-
 
183
		if(jQuery("#wpsg_htmlmail")[0].checked == false) jQuery(".col-emaillogo").css("display", "none");
-
 
184
 
-
 
185
		jQuery("#wpsg_email_logo_watermark").click(function() {
-
 
186
 
-
 
187
			if(jQuery("#wpsg_email_logo_watermark")[0].checked == true) jQuery(".col-logo-alignment").hide();
-
 
188
			else jQuery(".col-logo-alignment").show()
-
 
189
 
-
 
190
		});
-
 
191
		if(jQuery("#wpsg_email_logo_watermark")[0].checked == true) jQuery(".col-logo-alignment").hide();
103
		
192
 
104
	} );
193
	} );
105
 
194
 
106
/* ]]> */</script>
-
 
107
195
	/* ]]> */</script>
-
 
196
108
197