From 2e5be1ebd33fc5a30035cb87b5720198a4a89cad Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Mon, 27 Jul 2020 12:27:27 -0400 Subject: [PATCH] youtube disabled --- .../action/AcquisitionActions.class.php | 5 ++ view/template/acquisition/youtube.php | 63 +++++++++++-------- 2 files changed, 43 insertions(+), 25 deletions(-) diff --git a/controller/action/AcquisitionActions.class.php b/controller/action/AcquisitionActions.class.php index 9e0ddef3..389e7fbe 100644 --- a/controller/action/AcquisitionActions.class.php +++ b/controller/action/AcquisitionActions.class.php @@ -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); diff --git a/view/template/acquisition/youtube.php b/view/template/acquisition/youtube.php index c54e6eb1..f4fe24df 100644 --- a/view/template/acquisition/youtube.php +++ b/view/template/acquisition/youtube.php @@ -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(); ?>
@@ -61,34 +62,46 @@

Connect with your fans while earning rewards

-
- + + + - - - - - + + + + + -
- - - - - - - -
+
+ + + + + + + + +
+ The YouTube Program is paused for maintenance. Enter your email address and we will notify you as soon as it returns. +
+ 'youtube_sync_paused', + 'submitLabel' => 'Get Started', + 'hideDisclaimer' => true, + 'largeInput' => true, + 'btnClass' => 'btn-alt btn-large', + ]) ?> + 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. Learn more