From ae80bb0d4e8085f87b849ae546d2d16479b003ed Mon Sep 17 00:00:00 2001 From: Tristan Conant Date: Thu, 18 May 2017 12:18:31 -0700 Subject: [PATCH] Adding the option to hide video playback controls for YouTube. --- php/class-settings.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/php/class-settings.php b/php/class-settings.php index 68c9351..b9a5fd0 100644 --- a/php/class-settings.php +++ b/php/class-settings.php @@ -470,6 +470,10 @@ public function arguments() { 'value' => '0', 'label' => esc_html__( 'Disallow fullscreen', 'featured-video-plus' ) ), + 'controls' => array( + 'value' => '0', + 'label' => esc_html__( 'Hide Video Playback controls', 'featured-video-plus' ) + ), 'showinfo' => array( 'value' => '0', 'label' => esc_html__( 'Hide video info', 'featured-video-plus' ) @@ -614,6 +618,7 @@ private function validate( $src, $tovalidate = null ) { 'iv_load_policy' => $patterns['digit'], 'fs' => $patterns['digit'], 'rel' => $patterns['digit'], + 'controls' => $patterns['digit'], 'showinfo' => $patterns['digit'], 'enablejsapi' => $patterns['digit'], ),