diff options
author | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-23 17:30:14 +0000 |
---|---|---|
committer | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-23 17:30:14 +0000 |
commit | a161b38e65fa698133402f4fb23548242f494018 (patch) | |
tree | e75300111195f40f14c2389abddac65db9068da8 /views/default/staticvideo/index.php | |
download | elgg-a161b38e65fa698133402f4fb23548242f494018.tar.gz elgg-a161b38e65fa698133402f4fb23548242f494018.tar.bz2 |
This videolist plugin shows real promise so we shall work on it for v1.8 then release it back to the community.
Diffstat (limited to 'views/default/staticvideo/index.php')
-rw-r--r-- | views/default/staticvideo/index.php | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/views/default/staticvideo/index.php b/views/default/staticvideo/index.php new file mode 100644 index 000000000..a95625f3c --- /dev/null +++ b/views/default/staticvideo/index.php @@ -0,0 +1,62 @@ +<?php +/**
+ * Elgg Candidate Profile Plugin - file search.php
+ * This plugin allows users to create custom candidate profile
+ *
+ * @package ElggProfile
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Prateek Choudhary <synapticfield@gmail.com>
+ * @copyright Prateek Choudhary
+ */ + + +$owner = $_SESSION['guid']; +$number = 10; +$owner_videos = get_entities("object", "videolist", $_SESSION['guid'], $number); +$videodiv = ''; +$width = "390"; +$height = "275"; +?> +<div id="video-list-main"> +<?php +if(!empty($owner_videos)) +{ + foreach($owner_videos as $node) + { + $url = $node->url; + $title = $node->title; + $video_guid = $node->guid; + $video_id = $node->video_id; + $videodiv .= "<div id='videobox'>"; + $videodiv .= "<a href='".$vars['url']."pg/videolist/watch/".$video_guid."'>"; + $videodiv .= "<img src='http://img.youtube.com/vi/".$video_id."/default.jpg' width='150' alt='no video'/>"; + $videodiv .= "</a>"; + + $videodiv .= "</div>"; + $videodiv .= "<div id='videoDescbox'>"; + $videodiv .= "<span class='title'>Title : </span>".$title."<br />"; + $videodiv .= "</div>"; + + $videodiv .= "<div id='videoActionbox'>"; + $videodiv .= elgg_view("output/confirmlink", array( + 'href' => $vars['url'] . "action/videolist/remove?video_id=" . $video_guid, + 'text' => elgg_echo('delete'), + 'confirm' => elgg_echo('deleteconfirm'), + )); + /* + $videodiv .= "<a href='".$vars['url']."pg/videolist/remove/".$video_id."'>"; + $videodiv .= "delete"; + $videodiv .= "</a>"; + */ + $videodiv .= "</div>"; + $videodiv .= "<div class=\"clearfloat\"></div>"; + } + print $videodiv; +} +else +{ + echo "No videos were found."; +} +?> +</div> + |