]> _ Git - cubeextranet.git/commitdiff
#2500
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 10 Jan 2019 13:33:30 +0000 (13:33 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 10 Jan 2019 13:33:30 +0000 (13:33 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 09a4c7364c3a4edf190b1fe89813b8f5e5f0ba85..519e63cf48dd282bf1d1293f8fb95b19db70c6ef 100644 (file)
@@ -36,6 +36,7 @@ class wsHTML5Link
        public $scorm;
        public $hidden = false;
        public $zindex = 4;
+       public $iframeType = "none";
 
        protected $_init;
 
@@ -1572,6 +1573,8 @@ class customLink extends wescoLink
                $e = explode(':', $init['to']);
                if ($e[0] == '10doigts') {
                        $init['to'] = self::_getURL($init['to']);
+                       $init['iframeType'] = '10doigts';
+                       $init['infobulle'] = 'Voir le produit';
                        return new iframePopupLink($id, $init, $compiler);
                }
                return new customLink($id, $init, $compiler);
@@ -1875,7 +1878,7 @@ class iframePopupLink extends normalLink
        public function getAdditionnalContent()
        {
                $res = parent::getAdditionnalContent();
-               $markup = '<div class="iframeContainer">';
+               $markup = '<div class="iframeContainer" data-type="' . $this->iframeType . '">';
                $markup .= '<iframe src="' . $this->to . '" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
                $markup .= '</div>';
                return $res . ' data-iframe="' . rawurlencode($markup) . '" ';