mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 22:54:03 +09:00
- new Email Templates logic with save template to Theme(Child Theme);
- small fixes;
This commit is contained in:
@@ -139,6 +139,21 @@ textarea.um-forms-field.um-small-field {
|
||||
.um-form-table.um-third-column .um-forms-line th,
|
||||
.um-form-table.um-half-column .um-forms-line th,
|
||||
.um-form-table.um-two-thirds-column .um-forms-line th {
|
||||
float:left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.um-form-table.um-third-column .um-forms-line td,
|
||||
.um-form-table.um-half-column .um-forms-line td,
|
||||
.um-form-table.um-two-thirds-column .um-forms-line td {
|
||||
float:left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.um-form-table.um-third-column .um-forms-line th label,
|
||||
.um-form-table.um-half-column .um-forms-line th label,
|
||||
.um-form-table.um-two-thirds-column .um-forms-line th label {
|
||||
float:left;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,4 +213,37 @@ th.column-email.column-primary {
|
||||
.um-small-field {
|
||||
width:50%;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
.email_template_wrapper .copy_button_overlay {
|
||||
position:absolute;
|
||||
top:0;
|
||||
bottom:0;
|
||||
width:calc( 100% - 30px );
|
||||
z-index: 2;
|
||||
background: rgba( 241, 241, 241, 0.95 );
|
||||
text-align: center;
|
||||
padding-top: 30%;
|
||||
padding-right: 20px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.email_template_wrapper .copy_button_overlay > span {
|
||||
color: #444;
|
||||
margin: 0 0 15px 0;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.email_template_wrapper.in_theme .copy_button_overlay {
|
||||
display: none !important;
|
||||
}
|
||||
*/
|
||||
|
||||
.email_template_wrapper .reset_email_template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.email_template_wrapper.in_theme .reset_email_template {
|
||||
display: block;
|
||||
}
|
||||
@@ -1,4 +1,42 @@
|
||||
jQuery( document ).ready( function() {
|
||||
/**
|
||||
* Email templates
|
||||
*/
|
||||
/*jQuery( 'body' ).on( 'click', '.copy_email_template', function() {
|
||||
var obj = jQuery(this);
|
||||
|
||||
jQuery.ajax({
|
||||
url: php_data.copy_email_template,
|
||||
type: 'POST',
|
||||
data: { email_key : obj.parents('.email_template_wrapper').data('key') },
|
||||
success: function(data){
|
||||
obj.parents('.email_template_wrapper').addClass('in_theme');
|
||||
},
|
||||
error: function(data){
|
||||
alert('Something went wrong');
|
||||
}
|
||||
});
|
||||
});*/
|
||||
|
||||
jQuery( 'body' ).on( 'click', '.reset_email_template', function() {
|
||||
var obj = jQuery(this);
|
||||
|
||||
jQuery.ajax({
|
||||
url: php_data.delete_email_template,
|
||||
type: 'POST',
|
||||
data: { email_key : obj.parents('.email_template_wrapper').data('key') },
|
||||
success: function(data){
|
||||
obj.parents('.email_template_wrapper').removeClass('in_theme');
|
||||
},
|
||||
error: function(data){
|
||||
alert('Something went wrong');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Licenses
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user