Skip to content

Commit 6acbebc

Browse files
committed
Re-adding the subscribe and register pages that some jerk overzealously deleted.
1 parent ab9f64b commit 6acbebc

File tree

2 files changed

+274
-0
lines changed

2 files changed

+274
-0
lines changed

resources/register.html

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
$title = 'Register - ';
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">Home</a></li>
13+
<li>Register</li>
14+
<li><a href="about">About Us</a></li>
15+
<li><a href="sponsorships">Sponsor Us</a></li>
16+
<li><a href="subscribe">Keep in Touch</a></li>
17+
</ul>
18+
</div>
19+
<div id="social">
20+
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.phpcon.org%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:21px;" allowTransparency="true" id="fbLike"></iframe>
21+
<p class="twitter">Follow Us: <a href="http://twitter.com/phpcomcon">PHPCOMCON</a></p>
22+
</div>
23+
</div>
24+
<div class="aside">
25+
<p>We can't wait to see you in Nashville!</p>
26+
</div>
27+
<div class="section">
28+
<div id="registrationbody">
29+
<h2>Registration for the PHP Community Conference Includes</h2>
30+
<ul>
31+
<li>access to the tutorial day on April 21st</li>
32+
<li>access to the conference day on April 22nd</li>
33+
<li>lunch on both days</li>
34+
<li>access to the after-party on the 22nd</li>
35+
<li>a great sense of community at the conference itself</li>
36+
</ul>
37+
38+
<p>
39+
We'll post the schedule as soon as we can, but you can expect two informative tracks on tutorial day and two inspiring tracks on conference day. The current price of <span style="font-size: 16px;">$349.95</span> is only available until the schedule goes up or the first 100 tickets are sold, so <a href="http://phpcon.eventbrite.com/">buy now</a> and save!
40+
</p>
41+
<p>
42+
Planning on attending, but want to do more to help your community conference succeed? Community Sponsorships are reasonably priced at $500, and include admission to the conference. Purchase the sponsorship through <a href="http://phpconsponsors.eventbrite.com/">Eventbrite</a> or email us at <a href="mailto:[email protected]">[email protected]</a> for more information.
43+
</p>
44+
</div>
45+
</div>
46+
</div>
47+
<?php
48+
$body = ob_get_clean();
49+

resources/subscribe.html

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

0 commit comments

Comments
 (0)