mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
31 lines
1,022 B
PHP
31 lines
1,022 B
PHP
<?php $error = $error ?? null ?>
|
|
<?php $tag = $tag ?? null ?>
|
|
<?php $largeInput = $largeInput ?? false ?>
|
|
<?php $forceUrl = $forceUrl ?? '' //for cross-domain landing pages ?>
|
|
|
|
<form id="mail_form" action="<?php echo $forceUrl ?>/list/subscribe" method="POST" novalidate>
|
|
<?php if ($error): ?>
|
|
<div class="notice notice-error spacer1"><?php echo $error ?></div>
|
|
<?php endif ?>
|
|
|
|
<input-submit>
|
|
<input type="email" name="email" placeholder="{{email.placeholder}}" required>
|
|
<input type="hidden" name="returnUrl" value="<?php echo $returnUrl ?>"/>
|
|
|
|
<?php if ($tag): ?>
|
|
<input type="hidden" name="tag" value="<?php echo $tag ?>"/>
|
|
<?php endif ?>
|
|
|
|
<input type="submit" value="<?php echo $submitLabel ?? __('email.subs') ?>" name="subscribe">
|
|
</input-submit>
|
|
|
|
<?php if (!($hideDisclaimer ?? false)): ?>
|
|
<small class="meta">{{email.disclaimer}}</small>
|
|
<?php endif ?>
|
|
|
|
<?php js_start() ?>
|
|
$("#mail_form").submit(function() {
|
|
fbq('track', 'Lead');
|
|
});
|
|
<?php js_end() ?>
|
|
</form>
|