Skip to content

Commit

Permalink
Add module theme files for email capture
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Jul 12, 2013
1 parent 241a298 commit ab47f24
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 0 deletions.
17 changes: 17 additions & 0 deletions theme/meta/pages/social_capture_email.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<data>
<object>
<class>Cms_Page</class>
<file_name>social_capture_email</file_name>
<name>Social Capture Email</name>
<url>/social/capture-email</url>
<title>null</title>
<description>null</description>
<keywords>null</keywords>
<sort_order>null</sort_order>
<published>1</published>
<action_code>Custom</action_code>
<security_id>everyone</security_id>
<unique_id>51dcd8013cfe94.53302981</unique_id>
</object>
</data>
5 changes: 5 additions & 0 deletions theme/pages/social_capture_email/code_ajax.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?



?>
5 changes: 5 additions & 0 deletions theme/pages/social_capture_email/code_post.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?



?>
5 changes: 5 additions & 0 deletions theme/pages/social_capture_email/code_pre.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?



?>
Empty file.
28 changes: 28 additions & 0 deletions theme/pages/social_capture_email/page_social_capture_email.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<div id="email_confirmation">
<?= form_open() ?>

<input type="hidden" name='flynsarmysocialmedia_email_confirmation' value="1" />

<?= flash_message() ?>

<div class="page-header">
<h2><?=__('Confirm email')?></h2>
<p><?=__("You're almost done. Please confirm your email address.")?></p>
</div>

<fieldset class="form-horizontal">
<div class="control-group">
<label for="signup_email" class="control-label">Email</label>
<div class="controls">
<input id="signup_email" type="text" name="email" value="<? post('email', '') ?>" class="text" />
</div>
</div>

<div class="form-actions">
<a href="javascript:;" class="btn btn-large btn-success"
onclick="return $(this).getForm().sendRequest('flynsarmysociallogin:on_email_confirmation', {update: {email_confirmation: 'email_confirmation'}})">Submit</a>
</div>
</fieldset>

<?= form_close() ?>
</div>

0 comments on commit ab47f24

Please sign in to comment.