Actions
Feature #85114
closedmodestbranding in YouTube
Start date:
2018-05-30
Due date:
% Done:
100%
Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:
On Location Sprint
Description
Hello.
Our customer needs to set the modestbranding attribute for YouTube videos. This attribute is not supported by YouTubeRenderer.php. So i add this code:
if (isset($options['relatedVideos'])) {
$urlParams[] = 'rel=' . (int)(bool)$options['relatedVideos'];
}
/*ADD*/
if (isset($options['modestbranding'])) {
$urlParams[] = 'modestbranding=' . (int)(bool)$options['modestbranding'];
}
/*ADD [END]*/
if (!isset($options['enablejsapi']) || !empty($options['enablejsapi'])) {
$urlParams[] = 'enablejsapi=1&origin=' . rawurlencode(GeneralUtility::getIndpEnv('TYPO3_REQUEST_HOST'));
}
Is ist possible to integrate this in the core?
Files
Actions