diff --git a/core/components/getyoutube/model/getyoutube/search.class.php b/core/components/getyoutube/model/getyoutube/search.class.php index eca5ee3..f672d73 100644 --- a/core/components/getyoutube/model/getyoutube/search.class.php +++ b/core/components/getyoutube/model/getyoutube/search.class.php @@ -108,7 +108,7 @@ public function playlist($playlistUrl,$tpl,$tplAlt,$toPlaceholder,$pageToken,$to $modx->setPlaceholder('thumbnail_large',$video['snippet']['thumbnails']['high']['url']); //480px wide and 360px tall $modx->setPlaceholder('thumbnail_standard',$video['snippet']['thumbnails']['standard']['url']); //640px wide and 480px tall $modx->setPlaceholder('thumbnail_maxres',$video['snippet']['thumbnails']['maxres']['url']); //1280px wide and 720px tall - + /* SET TEMPLATES */ if (!empty($tplAlt)) { if($idx % 2 == 0) { // Checks if index can be divided by 2 (alt) @@ -157,6 +157,8 @@ public function video($videoUrl,$tpl,$tplAlt,$toPlaceholder,$totalVar){ $modx->setPlaceholder('channel_title',$video['snippet']['channelTitle']); $modx->setPlaceholder('description',$video['snippet']['description']); $modx->setPlaceholder('publish_date',$video['snippet']['publishedAt']); + $modx->setPlaceholder('tags',implode(", ", $video['snippet']['tags'])); + /* SET IMAGE PLACEHOLDERS */ $modx->setPlaceholder('thumbnail_small',$video['snippet']['thumbnails']['default']['url']); //120px wide and 90px tall $modx->setPlaceholder('thumbnail_medium',$video['snippet']['thumbnails']['medium']['url']); //320px wide and 180px tall $modx->setPlaceholder('thumbnail_large',$video['snippet']['thumbnails']['high']['url']); //480px wide and 360px tall