Skip to content

Commit

Permalink
"Do not track" embed of Vimeo videos
Browse files Browse the repository at this point in the history
Added the dnt parameter for cookieless embed.
  • Loading branch information
BenjaminEden authored and brusch committed Aug 24, 2020
1 parent f97b7f7 commit 4182af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Document/Tag/Video.php
Expand Up @@ -691,7 +691,7 @@ public function getVimeoCode()
}

$code .= '<div id="pimcore_video_' . $this->getName() . '" class="pimcore_tag_video '.$options['class'].'">
<iframe src="https://player.vimeo.com/video/' . $vimeoId . '?title=0&amp;byline=0&amp;portrait=0'. $additional_params .'" width="' . $width . '" height="' . $height . '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<iframe src="https://player.vimeo.com/video/' . $vimeoId . '?dnt=1&title=0&amp;byline=0&amp;portrait=0'. $additional_params .'" width="' . $width . '" height="' . $height . '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>';

return $code;
Expand Down

0 comments on commit 4182af0

Please sign in to comment.