Previous Post
Next Post

Written by

Nicole
I'm Nicole. Ceo, Pastry Chef, and Photographer for Confectionalism.com. I'm a lover of sweets, art, and an avid puppy cuddler. I hope my recipes, kitchen tips, tricks, and culinary adventures inspire you to put your "Creativity to Plate!" You can read more about me and Confectionalism on the About Confectionalism link in the Menu bar to the far left of the site. Happy Cooking! Sincerely, Nicole

One thought on “Vegan Coconut Frosting Recipe”

Leave a Reply

'); } else { // double opt-in $ymce('#yks-status-0-18ef29054f').html('

'+doubleOptinMessage+'

'); } /** Header Call Out Submission **/ if ( $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').hasClass( 'header-callout-form' ) ) { var container_height = $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( '#wrapper' ).css( 'height' ); var container_width = $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( '#wrapper' ).css( 'width' ); var top_margin_confirmation = ( container_height.replace( 'px' , '' , container_height ) - 25 ) / 2; $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( '#wrapper' ).css( 'height' , container_height ).css( 'width' , container_width ); $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( '#wrapper' ).children().each(function() { $ymce(this).fadeOut('fast'); }).promise().done( function() { var confirmation_message = $ymce('#yks-status-0-18ef29054f'); $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( '#wrapper' ).html( confirmation_message ); $ymce( confirmation_message ).removeClass('yks-status').fadeIn('fast').attr( 'style' , 'text-align:center;vertical-align:middle;margin-top:19%;'); }); } else { // remove the preloader jQuery( '.yks-mc-submit-preloader' ).remove(); // re-enable all input fields while the data send... $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find('input').each(function() { $ymce(this).not('#wrapper').removeAttr( 'disabled' ).css( 'opacity' , '1' ); }); // re-enable all select fields while the data send... $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( 'select' ).each(function() { $ymce(this).removeAttr('disabled').css('opacity','1'); }); /* reset the form, append the confirmation before the form */ $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( 'input[type="text"]', 'textarea' ).val( '' ); $ymce('#yks-status-0-18ef29054f').fadeIn('fast'); } } else { // bundle the MailChimp returned error // with our yks mc error messages $ymce('#yks_form_error_message').fadeOut('fast', function() { jQuery(this).remove(); }); $ymce('#ykfmc-submit_0-18ef29054f').removeAttr('disabled'); if( MAILCHIMP.errorResponse.toLowerCase().indexOf( "is already subscribed to the list." ) >= 0 ) { $ymce('#yks-mailchimp-form_0-18ef29054f').prepend(''+MAILCHIMP.errorResponse+' Click Here to send an email to update your profile.').delay(1000).queue(function(next){ // remove the preloader jQuery( '.yks-mc-submit-preloader' ).remove(); // remove disable from all input fields while the data send... $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( 'input' ).each(function() { $ymce(this).removeAttr( 'disabled' ).css('opacity','1'); }); // re-enable all select fields while the data send... $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( 'select' ).each(function() { $ymce(this).removeAttr('disabled').css('opacity','1'); }); jQuery('#yks_form_error_message').fadeIn(); var offset_top = jQuery('#yks-mailchimpFormContainerInner_0-18ef29054f').offset().top; jQuery("html, body").animate({ scrollTop: offset_top - 50 }, 500 ); next(); }); } else { $ymce('#yks-mailchimp-form_0-18ef29054f').prepend(''+MAILCHIMP.errorResponse+'').delay(1000).queue(function(next){ // remove the preloader jQuery( '.yks-mc-submit-preloader' ).remove(); // remove disable from all input fields while the data send... $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( 'input' ).each(function() { $ymce(this).removeAttr( 'disabled' ).css('opacity','1'); }); // re-enable all select fields while the data send... $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( 'select' ).each(function() { $ymce(this).removeAttr('disabled').css('opacity','1'); }); jQuery('#yks_form_error_message').fadeIn(); var offset_top = jQuery('#yks-mailchimpFormContainerInner_0-18ef29054f').offset().top; jQuery("html, body").animate({ scrollTop: offset_top - 50 }, 500 ); next(); }); } } }, // append our error up above, much like the others! error: function(error) { jQuery( '#yks_form_error_message' ).remove(); jQuery( '.yks-mc-submit-preloader' ).remove(); jQuery( '.ykfmc-submit' ).removeAttr( 'disabled' ); jQuery('#yks_form_error_message').fadeIn(); jQuery('#yks-mailchimp-form_0-18ef29054f').prepend(''+error.responseText+'').delay(1000).queue(function(next){ // remove the preloader jQuery( '.yks-mc-submit-preloader' ).remove(); // remove disable from all input fields while the data send... $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( 'input' ).each(function() { $ymce(this).removeAttr( 'disabled' ).css('opacity','1'); }); // re-enable all select fields while the data send... $ymce('#yks-mailchimpFormContainerInner_0-18ef29054f').find( 'select' ).each(function() { $ymce(this).removeAttr('disabled').css('opacity','1'); }); jQuery('#yks_form_error_message').fadeIn(); var offset_top = jQuery('#yks-mailchimpFormContainerInner_0-18ef29054f').offset().top; jQuery("html, body").animate({ scrollTop: offset_top - 50 }, 500 ); next(); }); console.log( error ); } }); } return false; }); jQuery( 'body' ).on( 'click' , '.update-email-profile-link' , function() { jQuery( '.preloader-confirmation-box' ).remove(); var user_email = jQuery(this).attr('alt'); var list_id = jQuery(this).parents('form').attr('rel'); var list_id_split = list_id.split( '-' ); var list_id_final = list_id_split[1]; jQuery( '#yks_form_error_message' ).after( '' ); $ymce.ajax({ type: 'POST', url: 'https://confectionalism.com/wp-admin/admin-ajax.php', data: { action: 'yks_mailchimp_form_submit', form_action: 'send_update_email', user_email: user_email, list_id : list_id_final }, dataType: 'html', success: function(response) { jQuery( '.preloader-confirmation-box' ).html( response ); console.log('success' + response); }, error: function(errorResponse) { jQuery( '.preloader-confirmation-box' ).html( errorResponse ); console.log(errorResponse); } }); return false; }); }); function extractEmails(text) { return text.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi); }