mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
youtube disabled
This commit is contained in:
parent
64b998fa18
commit
2e5be1ebd3
2 changed files with 43 additions and 25 deletions
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue