Happy weekend! Whether your week has been a breeze or filled with the “hard stuff”, may you know how much you are loved by God and may you feel His presence in your life.
Rest up this weekend, and grab some encouragement and inspiration here at the Sat. Soiree & Social Media Share!
Most Viewed
Domain of the Mad Mommy: 3 Easy Ways to Boost Your Facebook Engagement
Full of Inspiration
The Organized Dream: Easter Egg Scavenger Hunt
Must Read
Kathryn Shirey: Prayer Doodles
This week we’re sharing Stumble Upon Accounts. I am BRAND NEW to Stumble Upon and can’t wait to meet seasoned stumblers and get advice on this platform. Seriously, I have no idea what I’m doing, ha!
Sign up for the e-mail that lets you know when the party is live!
\n
What a joy to connect with you through the Saturday Soiree Blog Party! Thanks for subscribing to the weekly alert so you know when the link-up is live and ready for you to share your heart. I always look forward to reading the posts and can’t wait to see what you share next!
\n
Many blessings,
\n
Sarah Ann
\n
http://faithalongtheway.com
\n
\n
\n';
var doubleOptinMessage = '
Thank You for subscribing! Check your email for the confirmation message.
\n';
var optinValue = 'false';
e.preventDefault();
// Make sure the api key exists
if( blankFieldCheck( "0-52461d0968" ) ) {
// append pre-loader to submit button for some feedback
$ymce('#yks-mailchimpFormContainerInner_0-52461d0968').find( 'input[type="submit"]' ).after( '
' );
var form_data = $ymce(this).serialize();
// disable all input fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-52461d0968').find( 'input' ).each(function() {
$ymce(this).attr('disabled','disabled').css('opacity','.8');
});
// disable all select fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-52461d0968').find( 'select' ).each(function() {
$ymce(this).attr('disabled','disabled').css('opacity','.8');
});
$ymce('#ykfmc-submit_0-52461d0968').attr('disabled', 'disabled');
$ymce('#yks-status-0-52461d0968').fadeOut('fast');
$ymce('#yks_form_error_message').fadeOut();
$ymce('.preloader-confirmation-box').remove();
$ymce.ajax({
type: 'POST',
url: 'http://faithalongtheway.com/wp-admin/admin-ajax.php',
data: {
action: 'yks_mailchimp_form_submit',
form_action: 'frontend_submit_form',
form_data: form_data
},
dataType: 'json',
success: function(MAILCHIMP)
{
if( MAILCHIMP == 1 )
{
// remove the preloader
jQuery( '.yks-mc-submit-preloader' ).remove();
// re-enable all input fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-52461d0968').children().each(function() {
$ymce(this).not('#wrapper').removeAttr( 'disabled' ).css( 'opacity' , '1' );
});
// re-enable all select fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-52461d0968').find( 'select' ).each(function() {
$ymce(this).removeAttr('disabled').css('opacity','1');
});
// custom message based on opt-in settings value
// single opt-in
if ( optinValue == 'false' ) {
$ymce('#yks-status-0-52461d0968').html('
');
} else { // double opt-in
$ymce('#yks-status-0-52461d0968').html('
');
}
/** Header Call Out Submission **/
if ( $ymce('#yks-mailchimpFormContainerInner_0-52461d0968').hasClass( 'header-callout-form' ) ) {
var container_height = $ymce('#yks-mailchimpFormContainerInner_0-52461d0968').find( '#wrapper' ).css( 'height' );
var container_width = $ymce('#yks-mailchimpFormContainerInner_0-52461d0968').find( '#wrapper' ).css( 'width' );
var top_margin_confirmation = ( container_height.replace( 'px' , '' , container_height ) - 25 ) / 2;
$ymce('#yks-mailchimpFormContainerInner_0-52461d0968').find( '#wrapper' ).css( 'height' , container_height ).css( 'width' , container_width );
$ymce('#yks-mailchimpFormContainerInner_0-52461d0968').find( '#wrapper' ).children().each(function() {
$ymce(this).fadeOut('fast');
}).promise().done( function() {
var confirmation_message = $ymce('#yks-status-0-52461d0968');
$ymce('#yks-mailchimpFormContainerInner_0-52461d0968').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-52461d0968').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-52461d0968').find( 'select' ).each(function() {
$ymce(this).removeAttr('disabled').css('opacity','1');
});
/* reset the form, append the confirmation before the form */
$ymce('#yks-mailchimpFormContainerInner_0-52461d0968').find( 'input[type="text"]', 'textarea' ).val( '' );
$ymce('#yks-status-0-52461d0968').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-52461d0968').removeAttr('disabled');
if( MAILCHIMP.errorResponse.toLowerCase().indexOf( "is already subscribed to the list." ) >= 0 ) {
$ymce('#yks-mailchimp-form_0-52461d0968').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-52461d0968').find( 'input' ).each(function() {
$ymce(this).removeAttr( 'disabled' ).css('opacity','1');
});
// re-enable all select fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-52461d0968').find( 'select' ).each(function() {
$ymce(this).removeAttr('disabled').css('opacity','1');
});
jQuery('#yks_form_error_message').fadeIn();
var offset_top = jQuery('#yks-mailchimpFormContainerInner_0-52461d0968').offset().top;
jQuery("html, body").animate({ scrollTop: offset_top - 50 }, 500 );
next();
});
} else {
$ymce('#yks-mailchimp-form_0-52461d0968').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-52461d0968').find( 'input' ).each(function() {
$ymce(this).removeAttr( 'disabled' ).css('opacity','1');
});
// re-enable all select fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-52461d0968').find( 'select' ).each(function() {
$ymce(this).removeAttr('disabled').css('opacity','1');
});
jQuery('#yks_form_error_message').fadeIn();
var offset_top = jQuery('#yks-mailchimpFormContainerInner_0-52461d0968').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-52461d0968').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-52461d0968').find( 'input' ).each(function() {
$ymce(this).removeAttr( 'disabled' ).css('opacity','1');
});
// re-enable all select fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-52461d0968').find( 'select' ).each(function() {
$ymce(this).removeAttr('disabled').css('opacity','1');
});
jQuery('#yks_form_error_message').fadeIn();
var offset_top = jQuery('#yks-mailchimpFormContainerInner_0-52461d0968').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: 'http://faithalongtheway.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);
}
Loading InLinkz ...