Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Created June 27, 2012 16:38
Show Gist options
  • Select an option

  • Save objectivehtml/3005284 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/3005284 to your computer and use it in GitHub Desktop.
Newsletter Subscription Delegate Example
{exp:postmaster:delegate:newsletter:subscribe_form
service="mailchimp"
api_key="YOUR_API_KEY"
list="YOUR_LIST_ID"
class="newsletter"
novalidate="novalidate"
return="/thanks-for-subscribing"
}
<div class="row">
<div class="nine columns">
{if total_global_errors}
<ul>
{global_errors}
<li>{error}</li>
{/global_errors}
</ul>
{/if}
<label for="email">E-mail Address</label>
<input type="email" name="email" value="" id="email" placeholder="you@example.org" />
</div>
<div class="three columns">
<button type="submit" class="nice round pink button">Sign-up</button>
</div>
</div>
{/exp:postmaster:delegate:newsletter:subscribe_form}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment