|
| 1 | +<?php |
| 2 | +$title = 'Subscribe to Our Mailing List - '; |
| 3 | +ob_start(); |
| 4 | +?> |
| 5 | + |
| 6 | + <div id="container" class="sub"> |
| 7 | + <div class="header"> |
| 8 | + <h1>PHP Community |
| 9 | + <span>Conference</span></h1> |
| 10 | + <div id="nav"> |
| 11 | + <ul> |
| 12 | + <li><a href="/">Home</a></li> |
| 13 | + <li><a href="/sponsorships">Sponsor Us</a></li> |
| 14 | + <li><a href="/cfp">CFP</a></li> |
| 15 | + <li>Keep in Touch</li> |
| 16 | + </ul> |
| 17 | + </div> |
| 18 | + <div id="social"> |
| 19 | + <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.phpcon.org%2F&layout=button_count&show_faces=false&width=80&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:21px;" allowTransparency="true" id="fbLike"></iframe> |
| 20 | + <p class="twitter">Follow Us: <a href="http://twitter.com/phpcomcon">PHPCOMCON</a></p> |
| 21 | + </div> |
| 22 | + </div> |
| 23 | + <div id="intro"> |
| 24 | + <h2>Let's Keep In Touch</h2> |
| 25 | + <p>The PHP Community Conference is all about building community. We'd like to keep in touch with you. Please fill out this form if you'd like to receive regular updates and information from your hosts at the PHP Community Conference.</p> |
| 26 | + </div> |
| 27 | + <div id="body"> |
| 28 | + |
| 29 | +<!-- Begin MailChimp Signup Form --> |
| 30 | +<!--[if IE]> |
| 31 | +<style type="text/css" media="screen"> |
| 32 | + #mc_embed_signup fieldset {position: relative;} |
| 33 | + #mc_embed_signup legend {position: absolute; top: -1em; left: .2em;} |
| 34 | +</style> |
| 35 | +<![endif]--> |
| 36 | +<!--[if IE 7]> |
| 37 | +<style type="text/css" media="screen"> |
| 38 | + .mc-field-group {overflow:visible;} |
| 39 | +</style> |
| 40 | +<![endif]--> |
| 41 | + |
| 42 | +<div id="mc_embed_signup"> |
| 43 | +<form action="http://phpcon.us2.list-manage.com/subscribe/post?u=feb72a1bb27ba3e3eb07f3b45&id=15d9e93bea" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank"> |
| 44 | + <fieldset style="border: none;color: #363636;text-align: left;"> |
| 45 | + |
| 46 | +<div class="indicate-required" style="text-align: right;font-style: italic;overflow: hidden;color: #363636;margin: 0 9% 0 0;">* indicates required</div> |
| 47 | +<div class="mc-field-group" style="margin: 1.3em 5%;clear: both;overflow: hidden;"> |
| 48 | +<label for="mce-EMAIL" style="display: block;margin: .3em 0;line-height: 1em;font-weight: bold;">Email Address <strong class="note-required">*</strong> |
| 49 | +</label> |
| 50 | +<input type="text" value="" name="EMAIL" class="required email" id="mce-EMAIL" style="margin-right: 1.5em;padding: .2em .3em;width: 90%;float: left;z-index: 999;"> |
| 51 | +</div> |
| 52 | +<div class="mc-field-group" style="margin: 1.3em 5%;clear: both;overflow: hidden;"> |
| 53 | +<label for="mce-NAME" style="display: block;margin: .3em 0;line-height: 1em;font-weight: bold;">Name </label> |
| 54 | +<input type="text" value="" name="NAME" class="" id="mce-NAME" style="margin-right: 1.5em;padding: .2em .3em;width: 90%;float: left;z-index: 999;"> |
| 55 | +</div> |
| 56 | +<div class="mc-field-group" style="margin: 1.3em 5%;clear: both;overflow: hidden;"> |
| 57 | +<label for="mce-WEBSITE" style="display: block;margin: .3em 0;line-height: 1em;font-weight: bold;">Website </label> |
| 58 | +<input type="text" value="" name="WEBSITE" class=" url" id="mce-WEBSITE" style="margin-right: 1.5em;padding: .2em .3em;width: 90%;float: left;z-index: 999;"> |
| 59 | +</div> |
| 60 | +<div class="mc-field-group" style="margin: 1.3em 5%;clear: both;overflow: hidden;"> |
| 61 | +<label for="mce-COMPANY" style="display: block;margin: .3em 0;line-height: 1em;font-weight: bold;">Company </label> |
| 62 | +<input type="text" value="" name="COMPANY" class="" id="mce-COMPANY" style="margin-right: 1.5em;padding: .2em .3em;width: 90%;float: left;z-index: 999;"> |
| 63 | +</div> |
| 64 | +<div class="mc-field-group" style="margin: 1.3em 5%;clear: both;overflow: hidden;"> |
| 65 | +<label for="mce-TWITTER" style="display: block;margin: .3em 0;line-height: 1em;font-weight: bold;">Twitter Name </label> |
| 66 | +<input type="text" value="" name="TWITTER" class="" id="mce-TWITTER" style="margin-right: 1.5em;padding: .2em .3em;width: 90%;float: left;z-index: 999;"> |
| 67 | +</div> |
| 68 | +<div class="mc-field-group" style="margin: 1.3em 5%;clear: both;overflow: hidden;"> |
| 69 | + <label class="input-group-label" style="display: block;margin: .3em 0;line-height: 1em;font-weight: bold;">Email Format </label> |
| 70 | + <div class="input-group" style="padding: .7em .7em .7em 0;font-size: .9em;margin: 0 0 1em 0;"> |
| 71 | + <ul style="margin: 0;padding: 0;"><li style="list-style: none;overflow: hidden;padding: .2em 0;clear: left;display: block;margin: 0;"><input type="radio" value="html" name="EMAILTYPE" id="mce-EMAILTYPE-0" style="margin-right: 2%;padding: .2em .3em;width: auto;float: left;z-index: 999;"><label for="mce-EMAILTYPE-0" style="display: block;margin: .4em 0 0 0;line-height: 1em;font-weight: bold;width: auto;float: left;text-align: left !important;">html</label></li> |
| 72 | +<li style="list-style: none;overflow: hidden;padding: .2em 0;clear: left;display: block;margin: 0;"><input type="radio" value="text" name="EMAILTYPE" id="mce-EMAILTYPE-1" style="margin-right: 2%;padding: .2em .3em;width: auto;float: left;z-index: 999;"><label for="mce-EMAILTYPE-1" style="display: block;margin: .4em 0 0 0;line-height: 1em;font-weight: bold;width: auto;float: left;text-align: left !important;">text</label></li> |
| 73 | +<li style="list-style: none;overflow: hidden;padding: .2em 0;clear: left;display: block;margin: 0;"><input type="radio" value="mobile" name="EMAILTYPE" id="mce-EMAILTYPE-2" style="margin-right: 2%;padding: .2em .3em;width: auto;float: left;z-index: 999;"><label for="mce-EMAILTYPE-2" style="display: block;margin: .4em 0 0 0;line-height: 1em;font-weight: bold;width: auto;float: left;text-align: left !important;">mobile</label></li> |
| 74 | +</ul> |
| 75 | + </div> |
| 76 | +</div> |
| 77 | + <div id="mce-responses" style="float: left;top: -1.4em;padding: 0em .5em 0em .5em;overflow: hidden;width: 90%;margin: 0 5%;clear: both;"> |
| 78 | + <div class="response" id="mce-error-response" style="display: none;margin: 1em 0;padding: 1em .5em .5em 0;font-weight: bold;float: left;top: -1.5em;z-index: 1;width: 80%;background: FBE3E4;color: #D12F19;"></div> |
| 79 | + <div class="response" id="mce-success-response" style="display: none;margin: 1em 0;padding: 1em .5em .5em 0;font-weight: bold;float: left;top: -1.5em;z-index: 1;width: 80%;background: #E3FBE4;color: #529214;"></div> |
| 80 | + </div> |
| 81 | + <div><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="btn" style="clear: both;width: auto;display: block;margin: 1em 0 1em 5%;"></div> |
| 82 | + </fieldset> |
| 83 | + <a href="#" id="mc_embed_close" class="mc_embed_close" style="display: none;">Close</a> |
| 84 | +</form> |
| 85 | +</div> |
| 86 | +<script type="text/javascript"> |
| 87 | +try { |
| 88 | + var jqueryLoaded=jQuery; |
| 89 | + jqueryLoaded=true; |
| 90 | +} catch(err) { |
| 91 | + var jqueryLoaded=false; |
| 92 | +} |
| 93 | +if (!jqueryLoaded) { |
| 94 | + var head= document.getElementsByTagName('head')[0]; |
| 95 | + var script= document.createElement('script'); |
| 96 | + script.type= 'text/javascript'; |
| 97 | + script.src= 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js'; |
| 98 | + head.appendChild(script); |
| 99 | +} |
| 100 | +</script> |
| 101 | +<script type="text/javascript" src="http://downloads.mailchimp.com/js/jquery.form-n-validate.js"></script> |
| 102 | + |
| 103 | +<script type="text/javascript"> |
| 104 | +var fnames = new Array();var ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='NAME';ftypes[1]='text';fnames[3]='WEBSITE';ftypes[3]='url';fnames[4]='COMPANY';ftypes[4]='text';fnames[5]='TWITTER';ftypes[5]='text';var err_style = ''; |
| 105 | +try{ |
| 106 | + err_style = mc_custom_error_style; |
| 107 | +} catch(e){ |
| 108 | + err_style = 'margin: 1em 0 0 0; padding: 1em 0.5em 0.5em 0.5em; background: FFEEEE none repeat scroll 0% 0%; font-weight: bold; float: left; z-index: 1; width: 80%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: FF0000;'; |
| 109 | +} |
| 110 | +var head= document.getElementsByTagName('head')[0]; |
| 111 | +var style= document.createElement('style'); |
| 112 | +style.type= 'text/css'; |
| 113 | +if (style.styleSheet) { |
| 114 | + style.styleSheet.cssText = '.mce_inline_error {' + err_style + '}'; |
| 115 | +} else { |
| 116 | + style.appendChild(document.createTextNode('.mce_inline_error {' + err_style + '}')); |
| 117 | +} |
| 118 | +head.appendChild(style); |
| 119 | +$(document).ready( function($) { |
| 120 | + var options = { errorClass: 'mce_inline_error', errorElement: 'div', onkeyup: function(){}, onfocusout:function(){}, onblur:function(){} }; |
| 121 | + var mce_validator = $("#mc-embedded-subscribe-form").validate(options); |
| 122 | + options = { url: 'http://phpcon.us2.list-manage.com/subscribe/post-json?u=feb72a1bb27ba3e3eb07f3b45&id=15d9e93bea&c=?', type: 'GET', dataType: 'json', contentType: "application/json; charset=utf-8", |
| 123 | + beforeSubmit: function(){ |
| 124 | + $('#mce_tmp_error_msg').remove(); |
| 125 | + $('.datefield','#mc_embed_signup').each( |
| 126 | + function(){ |
| 127 | + var txt = 'filled'; |
| 128 | + var fields = new Array(); |
| 129 | + var i = 0; |
| 130 | + $(':text', this).each( |
| 131 | + function(){ |
| 132 | + fields[i] = this; |
| 133 | + i++; |
| 134 | + }); |
| 135 | + $(':hidden', this).each( |
| 136 | + function(){ |
| 137 | + if ( fields[0].value=='MM' && fields[1].value=='DD' && fields[2].value=='YYYY' ){ |
| 138 | + this.value = ''; |
| 139 | + } else if ( fields[0].value=='' && fields[1].value=='' && fields[2].value=='' ){ |
| 140 | + this.value = ''; |
| 141 | + } else { |
| 142 | + this.value = fields[0].value+'/'+fields[1].value+'/'+fields[2].value; |
| 143 | + } |
| 144 | + }); |
| 145 | + }); |
| 146 | + return mce_validator.form(); |
| 147 | + }, |
| 148 | + success: mce_success_cb |
| 149 | + }; |
| 150 | + $('#mc-embedded-subscribe-form').ajaxForm(options); |
| 151 | + |
| 152 | +}); |
| 153 | +function mce_success_cb(resp){ |
| 154 | + $('#mce-success-response').hide(); |
| 155 | + $('#mce-error-response').hide(); |
| 156 | + if (resp.result=="success"){ |
| 157 | + $('#mce-'+resp.result+'-response').show(); |
| 158 | + $('#mce-'+resp.result+'-response').html(resp.msg); |
| 159 | + $('#mc-embedded-subscribe-form').each(function(){ |
| 160 | + this.reset(); |
| 161 | + }); |
| 162 | + } else { |
| 163 | + var index = -1; |
| 164 | + var msg; |
| 165 | + try { |
| 166 | + var parts = resp.msg.split(' - ',2); |
| 167 | + if (parts[1]==undefined){ |
| 168 | + msg = resp.msg; |
| 169 | + } else { |
| 170 | + i = parseInt(parts[0]); |
| 171 | + if (i.toString() == parts[0]){ |
| 172 | + index = parts[0]; |
| 173 | + msg = parts[1]; |
| 174 | + } else { |
| 175 | + index = -1; |
| 176 | + msg = resp.msg; |
| 177 | + } |
| 178 | + } |
| 179 | + } catch(e){ |
| 180 | + index = -1; |
| 181 | + msg = resp.msg; |
| 182 | + } |
| 183 | + try{ |
| 184 | + if (index== -1){ |
| 185 | + $('#mce-'+resp.result+'-response').show(); |
| 186 | + $('#mce-'+resp.result+'-response').html(msg); |
| 187 | + } else { |
| 188 | + err_id = 'mce_tmp_error_msg'; |
| 189 | + html = '<div id="'+err_id+'" style="'+err_style+'"> '+msg+'</div>'; |
| 190 | + |
| 191 | + var input_id = '#mc_embed_signup'; |
| 192 | + var f = $(input_id); |
| 193 | + if (ftypes[index]=='address'){ |
| 194 | + input_id = '#mce-'+fnames[index]+'-addr1'; |
| 195 | + f = $(input_id).parent().parent().get(0); |
| 196 | + } else if (ftypes[index]=='date'){ |
| 197 | + input_id = '#mce-'+fnames[index]+'-month'; |
| 198 | + f = $(input_id).parent().parent().get(0); |
| 199 | + } else { |
| 200 | + input_id = '#mce-'+fnames[index]; |
| 201 | + f = $().parent(input_id).get(0); |
| 202 | + } |
| 203 | + if (f){ |
| 204 | + $(f).append(html); |
| 205 | + $(input_id).focus(); |
| 206 | + } else { |
| 207 | + $('#mce-'+resp.result+'-response').show(); |
| 208 | + $('#mce-'+resp.result+'-response').html(msg); |
| 209 | + } |
| 210 | + } |
| 211 | + } catch(e){ |
| 212 | + $('#mce-'+resp.result+'-response').show(); |
| 213 | + $('#mce-'+resp.result+'-response').html(msg); |
| 214 | + } |
| 215 | + } |
| 216 | +} |
| 217 | +</script> |
| 218 | +<!--End mc_embed_signup--> |
| 219 | + |
| 220 | + </div> |
| 221 | + </div> |
| 222 | +<?php |
| 223 | +$body = ob_get_clean(); |
| 224 | + |
0 commit comments