From 6025e7638c2e7cb385a6feae0893c64a014a2d06 Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 10 Aug 2018 07:40:47 +0000 Subject: git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7094 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/admin/emailconf.phtml | 165 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 127 insertions(+), 38 deletions(-) (limited to 'views/admin/emailconf.phtml') diff --git a/views/admin/emailconf.phtml b/views/admin/emailconf.phtml index 4e2d9e7..fb2c857 100644 --- a/views/admin/emailconf.phtml +++ b/views/admin/emailconf.phtml @@ -8,51 +8,124 @@
- - view['arSubAction'] as $k => $v) { ?> - + + view['arSubAction'] as $k => $v) { ?> + -
- -
+ +
- + - get_option('wpsg_htmlmail')); ?> + + + get_option('wpsg_htmlmail') + ); ?> + + + - + - + - + - + - + callMods('admin_emailconf'); ?>
- +

- +
@@ -65,25 +138,25 @@ { var wpsg_mail_open = Array(); - + jQuery('.wpsg_email_box .panel-body:visible').each(function() { wpsg_mail_open.push(jQuery(this).prev().attr("id")); - + } ); jQuery.cookie('wpsg_mail', wpsg_mail_open.join(',')); - + } // function wpsg_mail_save_cookie() jQuery(document).ready(function() { jQuery('.wpsg_email_box .panel-heading').bind('click', function() { - - jQuery(this).next().toggle(); - + + jQuery(this).next().toggle(); + wpsg_mail_save_cookie(); - + } ).css( { 'cursor': 'pointer' } ).disableSelection().next().hide(); if (jQuery.cookie('wpsg_mail') != null) @@ -93,14 +166,30 @@ for (var i = 0; i < arOpen.length; i ++) { - + jQuery('#' + arOpen[i]).next().show(); - jQuery('#' + arOpen[i]).css('border-bottom', '0px'); - + jQuery('#' + arOpen[i]).css('border-bottom', '0px'); + } - - } - + + } + + jQuery("#wpsg_htmlmail").click(function() { + + if(jQuery("#wpsg_htmlmail")[0].checked == false) jQuery(".col-emaillogo").css("display", "none"); + else $(".col-emaillogo").css("display", "block"); + + }); + if(jQuery("#wpsg_htmlmail")[0].checked == false) jQuery(".col-emaillogo").css("display", "none"); + + jQuery("#wpsg_email_logo_watermark").click(function() { + + if(jQuery("#wpsg_email_logo_watermark")[0].checked == true) jQuery(".col-logo-alignment").hide(); + else jQuery(".col-logo-alignment").show() + + }); + if(jQuery("#wpsg_email_logo_watermark")[0].checked == true) jQuery(".col-logo-alignment").hide(); + } ); -/* ]]> */ \ No newline at end of file + /* ]]> */ \ No newline at end of file -- cgit v1.2.3