]> _ Git - cubeextranet.git/commitdiff
wait #4157 @1
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 4 Jan 2021 19:18:23 +0000 (19:18 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 4 Jan 2021 19:18:23 +0000 (19:18 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index c2d56dca7bc0b747ab6576646802149d1012919d..14e0326397f3c78ddbb892ddb6b90a2b183cb421 100644 (file)
@@ -21,6 +21,7 @@ class wsHTML5Link
     public $video_height;
     public $video_width;
     public $video_service;
+    public $hidelinksonplay;
     public $rollover;
     public $inline;
     public $in_popup = false;
@@ -1120,6 +1121,7 @@ class videoLink extends wsHTML5Link
         $attr['controls'] = ($data->video_controls ? '1' : '0');
         $attr['loop'] = ($data->video_loop ? '1' : '0');
         $attr['sound'] = ($data->video_sound_on ? '1' : '0');
+        $attr['hidelinksonplay'] = $data->hidelinksonplay;
         $attr['link-id'] = $data->uid;
 
         if (!is_null($w) && !is_null($h)) {
@@ -1248,7 +1250,7 @@ class webVideoLink extends videoLink
                             'src' => 'https://www.youtube.com/watch?v=' . $data->to
                         ]
                     ],
-                    "youtube" => ["loop" => $data->video_loop],
+                    "youtube" => ["loop" => $data->video_loop, 'showinfo' => '0'],
                 ];
                 break;
             case 1: // Dailymotion