]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added tags to single video page
authorPete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 10 Jun 2010 12:37:51 +0000 (12:37 +0000)
committerPete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 10 Jun 2010 12:37:51 +0000 (12:37 +0000)
git-svn-id: http://code.elgg.org@6433 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/object/watch.php
views/default/videolist/css.php

index ab1f28727114b1e28815c4cc5342e6bc14ed29f4..5a35bd0ac72e5558a764400eff0551b58a7a826e 100644 (file)
@@ -18,12 +18,20 @@ if(isset($vars['entity'])) {
        $title = $videos->title;
        $url = $videos->url;
        $videoid = $videos->video_id;
+       $tags = $videos->tags;
        
        $videodiv .= "<div class='video_view'>";
        
        // view for plugins to extend   
        $videodiv .= elgg_view('videolist/options', array('entity' => $videos)) .
                                 elgg_view_likes($videos); // include likes
+                                
+       // display any tags for the Video
+       if (!empty($tags)) {
+               $videodiv .= "<p class='tags margin_none'>";
+               $videodiv .= elgg_view('output/tags',array('value' => $tags));
+               $videodiv .= "</p>";
+       }
        
        if ($videos->videotype == "youtube") {
                $videodiv .= "<br /><object width=\"$width\" height=\"$height\"><param name=\"movie\" value=\"http://{$url}&hl=en&fs=1&showinfo=0&auoplay=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://{$url}&hl=en&fs=1&showinfo=0&autoplay=1\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" width=\"$width\" height=\"$height\" wmode=\"transparent\"></embed></object>";
index ca3ab5f1d2602cddf4c0a846a13f5c62dfe1d464..93069181a7b9efdb69181f193e65bde611e40edc 100644 (file)
@@ -44,6 +44,9 @@
 .video_view embed {
        margin-top:20px;
 }
+.video_view .tags {
+       text-align:left;
+}
 
 /* search for videos */
 #loading_search_results .ajax_loader {