]> _ Git - cubeextranet.git/commitdiff
wip #3909 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 29 Sep 2020 14:44:36 +0000 (14:44 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 29 Sep 2020 14:44:36 +0000 (14:44 +0000)
inc/ws/Controlleur/class.ws.ajax.php

index 3a5620074fd5e6a04e4d01c8c3b75769877570d7..82689448501f841582deb59058be9b947e0ad40e 100644 (file)
@@ -956,6 +956,7 @@ class wsAjax extends cubeAjax
                 continue;
             }
 
+            $target = '_blank';
             $inline = false;
             $video_service = '';
 
@@ -973,6 +974,7 @@ class wsAjax extends cubeAjax
             if ($item['asset_type'] === '3') {
                 // link
                 $type = 2;
+                $target = '_popupiframe';
                 $to = $item['asset_content'];
                 $webvideo = new CubeIT_Filter_WebVideo();
                 $f = $webvideo->filter($to);
@@ -997,7 +999,7 @@ class wsAjax extends cubeAjax
             $link = array(
                 'page' => $page, 'image' => $images[$type],
                 'left' => $item['x'] * $ratio, 'top' => $item['y'] * $ratio, 'width' => $item['width'] * $ratio, 'height' => $item['height'] * $ratio, 'rot' => '',
-                'type' => $type, 'to' => $to, 'target' => '_blank',
+                'type' => $type, 'to' => $to, 'target' => $target, 'video_width' => 1920, 'video_height' => 1080,
                 'infobulle' => '', 'numerotation' => 'virtual', 'display_area' => '1', 'inline' => $inline,
                 'video_service' => $video_service);
             $links[] = $link;