youtube disabled

This commit is contained in:
Jeremy Kauffman 2020-07-27 12:27:27 -04:00
parent 64b998fa18
commit 2e5be1ebd3
2 changed files with 43 additions and 25 deletions

View file

@ -4,6 +4,11 @@ class AcquisitionActions extends Actions
{
protected static $isYouTubeDisabled = true;
public static function isYouTubeSyncEnabled()
{
return !static::$isYouTubeDisabled;
}
public static function executeFollowCampaign(string $claimName)
{
$claim = ChainQuery::findChannelClaim($claimName);

View file

@ -13,6 +13,7 @@
Response::setMetaDescription("Put your content on the blockchain, experience true content freedom, and earn rewards.");
Response::addMetaImage(Request::getHostAndProto() . '/img/lbry-partner.png');
}
$isEnabled = AcquisitionActions::isYouTubeSyncEnabled();
?>
<main class="ancillary youtube youtube--landing">
@ -61,6 +62,7 @@
<p hidden id="lbry_error" class="error-block">LBRY channel name is either not valid (only letters, numbers and - allowed, no spaces) or your input is blank</p>
<h2>Connect with your fans while earning rewards</h2>
<?php if ($isEnabled): ?>
<form id="youtube_claim" method="post" action="/youtube/token">
<p hidden id="sync-status" class="sync-status"></p>
@ -88,7 +90,18 @@
<checkbox-toggle/>
</checkbox-element>
</form>
<?php else: ?>
<div class="notice notice-info spacer1">
The YouTube Program is paused for maintenance. Enter your email address and we will notify you as soon as it returns.
</div>
<?php echo View::render('mail/_subscribeForm', [
'tag' => 'youtube_sync_paused',
'submitLabel' => 'Get Started',
'hideDisclaimer' => true,
'largeInput' => true,
'btnClass' => 'btn-alt btn-large',
]) ?>
<?php endif ?>
<small class="meta">
This will verify you are an active YouTuber. Channel names cannot be changed once chosen, please be extra careful. Instructions about how to claim credits, and technical details about your channel, will be emailed to you after you are verified.
<a href="/faq/youtube">Learn more</a>