mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
email subs from the homepage is probably a good idea :)
This commit is contained in:
parent
d615105f74
commit
b82cfab503
5 changed files with 27 additions and 10 deletions
|
@ -9,9 +9,11 @@ class MailActions extends Actions
|
|||
{
|
||||
public static function executeListSubscribe()
|
||||
{
|
||||
$nextUrl = isset($_POST['returnUrl']) && $_POST['returnUrl'] ? $_POST['returnUrl'] : '/join-list';
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] !== 'POST')
|
||||
{
|
||||
Controller::redirect('/get');
|
||||
Controller::redirect($nextUrl);
|
||||
}
|
||||
|
||||
$email = $_POST['email'];
|
||||
|
@ -41,7 +43,7 @@ class MailActions extends Actions
|
|||
}
|
||||
}
|
||||
|
||||
Controller::redirect(isset($_POST['return_url']) && $_POST['return_url'] ? $_POST['return_url'] : '/get');
|
||||
Controller::redirect($nextUrl);
|
||||
}
|
||||
|
||||
public static function prepareJoinList(array $vars)
|
||||
|
|
|
@ -18,5 +18,11 @@
|
|||
<?php if (isset($mergeFields)): ?>
|
||||
<input type="hidden" name="mergeFields" value="<?php echo htmlentities(serialize($mergeFields)) ?>" />
|
||||
<?php endif ?>
|
||||
<?php if (isset($meta) && $meta): ?>
|
||||
<div class="meta">
|
||||
<?php echo __('You will receive 1-2 messages a month, only from LBRY, Inc. and only about LBRY.') ?>
|
||||
<?php echo __('You can easily unsubscribe at any time.') ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</form>
|
|
@ -12,6 +12,7 @@
|
|||
<p class="pflow">LBRY is coming out on your favorite platform soon. Join our list to know when.</p>
|
||||
<?php echo View::render('mail/joinList', [
|
||||
'submitLabel' => 'Go',
|
||||
'returnUrl' => '/get',
|
||||
'listId' => Mailchimp::LIST_GENERAL_ID,
|
||||
'mergeFields' => ['CLI' => 'No'],
|
||||
'btnClass' => 'btn-alt'
|
||||
|
|
|
@ -40,14 +40,25 @@
|
|||
<iframe width="560" height="315" src="https://www.youtube.com/embed/qMUbq3sbG-o?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
|
||||
</div>
|
||||
<div class="row-fluid content-constrained">
|
||||
<div class="span6 text-center">
|
||||
<div class="fb-page" data-href="https://www.facebook.com/lbryio" data-height="300" data-small-header="false" data-width="400"
|
||||
<div class="span4">
|
||||
<h3><strong><?php echo __('Get Updates') ?></strong></h3>
|
||||
<?php echo View::render('mail/joinList', [
|
||||
'submitLabel' => 'Go',
|
||||
'listId' => Mailchimp::LIST_GENERAL_ID,
|
||||
'mergeFields' => ['CLI' => 'No'],
|
||||
'meta' => true,
|
||||
'returnUrl' => '/',
|
||||
'btnClass' => 'btn-alt'
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="span4 text-center">
|
||||
<div class="fb-page" data-href="https://www.facebook.com/lbryio" data-height="300" data-small-header="false" data-width="300"
|
||||
data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true" data-show-posts="true">
|
||||
<div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/lbryio"><a href="https://www.facebook.com/lbryio">LBRY</a></blockquote></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span6 text-center">
|
||||
<a width="400" class="twitter-timeline" href="https://twitter.com/LBRYio" data-widget-id="671104143034073088">Tweets by @LBRYio</a>
|
||||
<div class="span4 text-center">
|
||||
<a width="300" class="twitter-timeline" href="https://twitter.com/LBRYio" data-widget-id="671104143034073088">Tweets by @LBRYio</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -12,12 +12,9 @@
|
|||
<?php echo View::render('mail/joinList', [
|
||||
'submitLabel' => 'Subscribe',
|
||||
'returnUrl' => '/join-list',
|
||||
'meta' => true,
|
||||
'listId' => Mailchimp::LIST_GENERAL_ID
|
||||
]) ?>
|
||||
<div class="meta">
|
||||
<?php echo __('You will receive 1-2 messages a month, only from LBRY, Inc. and only about LBRY.') ?>
|
||||
<?php echo __('You can easily unsubscribe at any time.') ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span3">
|
||||
<h3><?php echo __('Also On') ?></h3>
|
||||
|
|
Loading…
Add table
Reference in a new issue