|
@@ 128-133 (lines=6) @@
|
| 125 |
|
$buffer .= "\t\t".'<video:restriction relationship="'.$relationship.'">'.$this->escape(implode(' ', $restrictions['countries'])).'</video:restriction>'."\n"; |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
if ($video->getGalleryLoc() !== null) { |
| 129 |
|
$galleryLoc = $video->getGalleryLoc(); |
| 130 |
|
$title = $galleryLoc['title'] !== null ? sprintf(' title="%s"', $this->escape($galleryLoc['title'])) : ''; |
| 131 |
|
|
| 132 |
|
$buffer .= "\t\t".sprintf('<video:gallery_loc%s>', $title).$this->escape($galleryLoc['loc']).'</video:gallery_loc>'."\n"; |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
if ($video->getUploader() !== null) { |
| 136 |
|
$uploader = $video->getUploader(); |
|
@@ 135-140 (lines=6) @@
|
| 132 |
|
$buffer .= "\t\t".sprintf('<video:gallery_loc%s>', $title).$this->escape($galleryLoc['loc']).'</video:gallery_loc>'."\n"; |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
if ($video->getUploader() !== null) { |
| 136 |
|
$uploader = $video->getUploader(); |
| 137 |
|
$info = $uploader['info'] !== null ? sprintf(' info="%s"', $this->escape($uploader['info'])) : ''; |
| 138 |
|
|
| 139 |
|
$buffer .= "\t\t".sprintf('<video:uploader%s>', $info).$this->escape($uploader['name']).'</video:uploader>'."\n"; |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
if ($video->getPlatforms() !== null) { |
| 143 |
|
foreach ($video->getPlatforms() as $platform => $relationship) { |