Skip to content

Commit

Permalink
Merge pull request #8509 from readthedocs/juanlu/change-newsletter-form
Browse files Browse the repository at this point in the history
Change newsletter form
  • Loading branch information
ericholscher authored Sep 20, 2021
2 parents e1d1980 + ce975be commit b9a3fda
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 31 deletions.
9 changes: 3 additions & 6 deletions docs/privacy-policy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,18 +205,15 @@ your contact information.
Email newsletter
++++++++++++++++

If you sign up for the `Read the Docs email newsletter`_,
your email address and name will be stored by Mailchimp.
If you sign up for the Read the Docs email newsletter,
your email address and name will be stored by MailerLite.
This newsletter is separate from creating a Read the Docs account and
signing up for Read the Docs does not opt you in for the newsletter.

You can manage your email subscription
including unsubscribing and deleting your records with Mailchimp.
including unsubscribing and deleting your records with MailerLite.
There is a link to do so in the footer of any newsletter you receive from us.

.. _Read the Docs email newsletter: http://readthedocs.us3.list-manage.com/subscribe?u=a6a22369cc2b356379cf789ca&id=a85a83a5a5


Public Information on Read the Docs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion media/css/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ a.notification-action {
/* Change language form */
#footer .footer-bottom { margin-top: 30px; }
#footer select { float: left; width: 175px; padding: 2px; height: 24px; font-size: 12px; margin-right: 10px; }
#footer input[type="submit"] { margin-top: 0; padding: 4px; height: 24px; font-size: 12px; line-height: 16px; }
#footer input[type="submit"], #footer button[type="submit"] { margin-top: 0; padding: 4px; height: 24px; font-size: 12px; line-height: 16px; }

/* Other footer forms */
#footer #email-signup { margin-bottom: 20px; }
Expand Down
66 changes: 42 additions & 24 deletions readthedocs/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,34 +134,52 @@

{% block footer-content %}

<div class="column-logo">
<div id="email-signup">
<form action="https://readthedocs.us3.list-manage.com/subscribe/post?u=a6a22369cc2b356379cf789ca&amp;id=a85a83a5a5" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div>
<h4>{% trans 'Stay Updated' %}</h4>

<ul>
<li>
<a href="https://blog.readthedocs.com/">{% trans 'Blog' %}</a>
</li>
</ul>

<p>{% trans 'Sign up for our newsletter to get our latest blog updates delivered to your inbox weekly.' %}</p>
<div>
<label for="mce-EMAIL">{% trans 'Email' %}</label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" placeholder="[email protected]">
<div id="mlb2-4726913" class="column-logo ml-form-embedContainer ml-subscribe-form ml-subscribe-form-4726913">
<div id="email-signup" class="ml-form-align-center">
<div class="ml-form-embedWrapper embedForm">
<div class="ml-form-embedBody ml-form-embedBodyDefault row-form">
<div class="ml-form-embedContent">
<h4>{% trans 'Stay Updated' %}</h4>

<ul>
<li>
<a href="https://blog.readthedocs.com/">{% trans 'Blog' %}</a>
</li>
</ul>

<p>{% trans 'Sign up for our newsletter to get our latest blog updates delivered to your inbox weekly.' %}</p>
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a6a22369cc2b356379cf789ca_a85a83a5a5" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="{% trans 'Subscribe' %}" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
<form class="validate ml-block-form" action="https://static.mailerlite.com/webforms/submit/t0a9l4" data-code="t0a9l4" method="post" target="_blank">
<div class="ml-form-formContent">
<div class="ml-form-fieldRow ml-last-item">
<div class="ml-field-group ml-field-email ml-validate-email ml-validate-required">
<label for="ml-EMAIL">{% trans 'Email' %}</label>
<input aria-label="email" aria-required="true" type="email" id="ml-EMAIL" class="required email form-control" data-inputmask="" name="fields[email]" placeholder="[email protected]" autocomplete="email">
</div>
</div>
</div>
<input type="hidden" name="ml-submit" value="1">
<div class="ml-form-embedSubmit">
<button type="submit" class="primary">{% trans 'Subscribe' %}</button>
<button disabled="disabled" style="display:none" type="button" class="loading"> <div class="ml-form-embedSubmitLoad"></div> <span class="sr-only">Loading...</span> </button>
</div>
<input type="hidden" name="anticsrf" value="true">
</form>
</div>
</form>
<div class="ml-form-successBody row-success" style="display:none">
<div class="ml-form-successContent">
<h4>{% trans 'Thank you!' %}</h4>
<p>{% trans 'You have successfully joined our subscriber list.' %}</p>
</div>
</div>
</div>
</div>

</div>
<script>
function ml_webform_success_4726913(){var r=ml_jQuery||jQuery;r(".ml-subscribe-form-4726913 .row-success").show(),r(".ml-subscribe-form-4726913 .row-form").hide()}
</script>
<img src="https://track.mailerlite.com/webforms/o/4726913/t0a9l4?v1632124791" width="1" height="1" style="max-width:1px;max-height:1px;visibility:hidden;padding:0;margin:0;display:block" alt="." border="0">
<script src="https://static.mailerlite.com/js/w/webforms.min.js?v0c75f831c56857441820dcec3163967c" type="text/javascript"></script>

<div class="column-about">
<h4>{% trans 'Resources' %}</h4>
Expand Down

0 comments on commit b9a3fda

Please sign in to comment.