Project

General

Profile

Actions

Feature #85114

closed

modestbranding in YouTube

Added by Reindl Bernd about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Content Rendering
Target version:
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

YouTubeRenderer.php (5.67 KB) YouTubeRenderer.php Reindl Bernd, 2018-06-04 07:32
Actions

Also available in: Atom PDF