| 1 |
<div style="clear: both;"></div> |
| 2 |
|
| 3 |
|
| 4 |
<p></p> |
| 5 |
|
| 6 |
<div style="width: 100%"> |
| 7 |
|
| 8 |
<div class="xyz_feedback"> |
| 9 |
|
| 10 |
|
| 11 |
<a target="_blank" href="http://xyzscripts.com/support/" class="xyz_suggest">Suggestions</a> - |
| 12 |
<a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_fbook">Like us on Facebook</a> - |
| 13 |
<a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_twitt">Follow us on Twitter</a> - |
| 14 |
<a target="_blank" href="https://plus.google.com/+Xyzscripts/" class="xyz_gplus">+1 us on Google+</a> - |
| 15 |
<a target="_blank" href="http://www.linkedin.com/company/xyzscripts" class="xyz_linkedin">Follow us on LinkedIn</a> |
| 16 |
|
| 17 |
|
| 18 |
</div> |
| 19 |
|
| 20 |
<p></p> |
| 21 |
|
| 22 |
<div class="xyz_subscribe"> |
| 23 |
|
| 24 |
<script language="javascript"> |
| 25 |
function check_email(emailString) |
| 26 |
{ |
| 27 |
var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/; |
| 28 |
var matchArray = emailString.match(mailPattern); |
| 29 |
if (emailString.length == 0) |
| 30 |
return false; |
| 31 |
|
| 32 |
if (matchArray == null) { |
| 33 |
return false; |
| 34 |
}else{ |
| 35 |
return true; |
| 36 |
} |
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
function verify_lists(form) |
| 41 |
{ |
| 42 |
|
| 43 |
var total=0; |
| 44 |
var checkBox=form['chk[]']; |
| 45 |
|
| 46 |
if(checkBox.length){ |
| 47 |
|
| 48 |
for(var i=0;i<checkBox.length;i++){ |
| 49 |
checkBox[i].checked?total++:null; |
| 50 |
} |
| 51 |
}else{ |
| 52 |
|
| 53 |
checkBox.checked?total++:null; |
| 54 |
|
| 55 |
} |
| 56 |
if(total>0){ |
| 57 |
return true; |
| 58 |
}else{ |
| 59 |
return false; |
| 60 |
} |
| 61 |
|
| 62 |
} |
| 63 |
|
| 64 |
function verify_fields() |
| 65 |
{ |
| 66 |
|
| 67 |
if(check_email(document.email_subscription.email.value) == false){ |
| 68 |
alert("Please check whether the email is correct."); |
| 69 |
document.email_subscription.email.select(); |
| 70 |
return false; |
| 71 |
}else if(verify_lists(document.email_subscription)==false){ |
| 72 |
alert("Select atleast one list."); |
| 73 |
} |
| 74 |
else{ |
| 75 |
document.email_subscription.submit(); |
| 76 |
} |
| 77 |
|
| 78 |
} |
| 79 |
</script> |
| 80 |
<?php global $current_user; get_currentuserinfo(); ?> |
| 81 |
<form action="http://xyzscripts.com/newsletter/index.php?page=list/subscribe" method="post" name="email_subscription" id="email_subscription" > |
| 82 |
<input type="hidden" name="fieldNameIds" value="1,"> |
| 83 |
<input type="hidden" name="redirActive" value="http://xyzscripts.com/subscription/pending/XYZWPIHSFRE"> |
| 84 |
<input type="hidden" name="redirPending" value="http://xyzscripts.com/subscription/active/XYZWPIHSFRE"> |
| 85 |
<input type="hidden" name="mode" value="1"> |
| 86 |
|
| 87 |
<b>Stay tuned to our updates :</b> |
| 88 |
|
| 89 |
|
| 90 |
Name : |
| 91 |
<input style="border: 1px solid #3fafe3; margin-right:10px;" type="text" name="field1" value="<?php |
| 92 |
if ($current_user->user_firstname != "" || $current_user->user_lastname != "") |
| 93 |
{ |
| 94 |
echo $current_user->user_firstname . " " . $current_user->user_lastname; |
| 95 |
} |
| 96 |
else if (strcasecmp($current_user->display_name, 'admin')!=0 && strcasecmp($current_user->display_name , "administrator")!=0 ) |
| 97 |
{ |
| 98 |
echo $current_user->display_name; |
| 99 |
} |
| 100 |
else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($current_user->user_login , "administrator")!=0 ) |
| 101 |
{ |
| 102 |
echo $current_user->user_login; |
| 103 |
} |
| 104 |
?>" > |
| 105 |
|
| 106 |
Email Address : |
| 107 |
<input style="border: 1px solid #3fafe3;" name="email" |
| 108 |
type="text" value="<?php echo $current_user->user_email; ?>" /><span style="color:#FF0000">*</span> |
| 109 |
|
| 110 |
|
| 111 |
<input id="submit_ihs" style="color:#FFFFFF;border-radius:4px;border:1px solid #1A87B9;" type="submit" value="Subscribe" name="Submit" onclick="javascript: if(!verify_fields()) return false; " /> |
| 112 |
|
| 113 |
<input type="hidden" name="listName" value="6,1,"/> |
| 114 |
</form> |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
</div> |
| 119 |
|
| 120 |
|
| 121 |
<div style="clear: both;"></div> |
| 122 |
<div style="width: 100%"> |
| 123 |
|
| 124 |
<div class="xyz_our_plugins"> |
| 125 |
Our Plugins : |
| 126 |
|
| 127 |
|
| 128 |
<a target="_blank" href="http://wordpress.org/extend/plugins/insert-html-snippet/">Insert HTML Snippet</a> � |
| 129 |
|
| 130 |
<a target="_blank" href="http://wordpress.org/extend/plugins/lightbox-pop/">Lightbox Pop</a> � |
| 131 |
|
| 132 |
<a target="_blank" href="http://wordpress.org/extend/plugins/full-screen-popup/">Full Screen Popup</a> � |
| 133 |
|
| 134 |
<a target="_blank" href="http://wordpress.org/extend/plugins/popup-dialog-box/">Popup Dialog Box</a> � |
| 135 |
|
| 136 |
<a target="_blank" href="http://wordpress.org/extend/plugins/quick-bar/">Quick Bar</a> � |
| 137 |
|
| 138 |
<a target="_blank" href="http://wordpress.org/extend/plugins/quick-box-popup/">Quick Box Popup</a> � |
| 139 |
|
| 140 |
<a target="_blank" href="http://wordpress.org/extend/plugins/contact-form-manager/">Contact Form Manager</a> � |
| 141 |
|
| 142 |
<a target="_blank" href="http://wordpress.org/extend/plugins/newsletter-manager/">Newsletter Manager</a> � |
| 143 |
|
| 144 |
<a target="_blank" href="http://wordpress.org/extend/plugins/social-media-auto-publish/">Social Media Auto Publish</a>� |
| 145 |
|
| 146 |
<a target="_blank" href="http://wordpress.org/extend/plugins/facebook-auto-publish/">Facebook Auto Publish</a> � |
| 147 |
|
| 148 |
<a target="_blank" href="http://wordpress.org/extend/plugins/linkedin-auto-publish/">LinkedIn Auto Publish</a> � |
| 149 |
|
| 150 |
<a target="_blank" href="http://wordpress.org/extend/plugins/twitter-auto-publish/">Twitter Auto Publish</a> � |
| 151 |
|
| 152 |
<a target="_blank" href="http://wordpress.org/extend/plugins/insert-php-code-snippet/">Insert PHP Code Snippet</a> |
| 153 |
</div> |
| 154 |
</div> |
| 155 |
<div class="poweredBy"> |
| 156 |
Powered by <a href="http://xyzscripts.com" target="_blank">XYZScripts</a> |
| 157 |
</div> |
| 158 |
<div style="clear: both;"></div> |
| 159 |
|
| 160 |
</div> |
| 161 |
<p style="clear: both;"></p> |
| 162 |
|