diff options
Diffstat (limited to 'views/default/staticvideo')
-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> - |