diff options
author | Brett Profitt <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-26 22:44:48 +0000 |
---|---|---|
committer | Brett Profitt <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-26 22:44:48 +0000 |
commit | 52255de580654f351205b19565be601bd4caaacb (patch) | |
tree | 1e9d5f496a8b7111c619eafe910a2f93927231a1 /views/default/staticvideo/index.php | |
parent | a8aa4bceed8e7ad0c5af2646a83d6a2da2e0b23a (diff) | |
download | elgg-52255de580654f351205b19565be601bd4caaacb.tar.gz elgg-52255de580654f351205b19565be601bd4caaacb.tar.bz2 |
First pass at cleaning up videolist.
Diffstat (limited to 'views/default/staticvideo/index.php')
-rw-r--r-- | views/default/staticvideo/index.php | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/views/default/staticvideo/index.php b/views/default/staticvideo/index.php index 1b32f316b..256eb5b92 100644 --- a/views/default/staticvideo/index.php +++ b/views/default/staticvideo/index.php @@ -1,14 +1,14 @@ <?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 - */ - + * 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; @@ -19,10 +19,8 @@ $height = "275"; ?> <div id="video-list-main"> <?php -if(!empty($owner_videos)) -{ - foreach($owner_videos as $node) - { +if(!empty($owner_videos)) { + foreach($owner_videos as $node) { $url = $node->url; $title = $node->title; $video_guid = $node->guid; @@ -31,12 +29,12 @@ if(!empty($owner_videos)) $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, @@ -51,12 +49,10 @@ if(!empty($owner_videos)) $videodiv .= "</div>"; $videodiv .= "<div class=\"clearfloat\"></div>"; } + print $videodiv; -} -else -{ +} else { echo "No videos were found."; } ?> </div> - |