From 52255de580654f351205b19565be601bd4caaacb Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Fri, 26 Mar 2010 22:44:48 +0000 Subject: First pass at cleaning up videolist. --- views/default/videolist/css.php | 270 ++++++++++----------- views/default/videolist/groupprofile_videolist.php | 96 ++++---- views/default/videolist/icon.php | 41 ++-- views/default/videolist/notfound.php | 30 ++- 4 files changed, 214 insertions(+), 223 deletions(-) (limited to 'views/default/videolist') diff --git a/views/default/videolist/css.php b/views/default/videolist/css.php index 8c52b0e6c..647def873 100644 --- a/views/default/videolist/css.php +++ b/views/default/videolist/css.php @@ -1,199 +1,197 @@ - * @copyright Prateek Choudhary - */ - - + * Elgg Candidate Profile Video Plugin + * This plugin allows users to create a library of youtube videos + * + * @package ElggProfile + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Prateek Choudhary + * @copyright Prateek Choudhary + */ ?> .error{ -color:red; -font-weight:bold; -font-size:11px; + color:red; + font-weight:bold; + font-size:11px; } #video-list-main{ -padding:10px; + padding:10px; } #videocontainer{ -width:100%; -margin-bottom:10px; + width:100%; + margin-bottom:10px; } .search_gallery_item{ -border:0px solid #CCCCCC; + border:0px solid #CCCCCC; } #videobox{ -width:98%; -text-align:center; -margin-top:10px; + width:98%; + text-align:center; + margin-top:10px; } #videoDescbox{ -width:95%; -margin:0px 5px 0px 8px; + width:95%; + margin:0px 5px 0px 8px; } #videoActionbox{ -width:90%; -margin:0px 5px 0px 8px; -float:left; + width:90%; + margin:0px 5px 0px 8px; + float:left; } #videothumbnail-box{ -float:left; -width:35%; -background: #333333; -text-align:center; -padding:3px 1px 3px 0px; + float:left; + width:35%; + background: #333333; + text-align:center; + padding:3px 1px 3px 0px; } #videotitle-box{ -width:60%; -float:left; -font-size:12px; -font-weight:bold; -text-align:left; -padding-left:5px; -color:#474B9F; + width:60%; + float:left; + font-size:12px; + font-weight:bold; + text-align:left; + padding-left:5px; + color:#474B9F; } .title{ -font-weight:bold; + font-weight:bold; } #profile_video_widget_container{ -margin:0px 10px 10px 10px; -padding:8px; --moz-border-radius-topleft:8px; --moz-border-radius-topright:8px; --moz-border-radius-bottomleft:8px; --moz-border-radius-bottomright:8px; -border:0px solid #C3C3C3; -background: #FFFFFF; -max-height:250px; -overflow-y:auto; + margin:0px 10px 10px 10px; + padding:8px; + -moz-border-radius-topleft:8px; + -moz-border-radius-topright:8px; + -moz-border-radius-bottomleft:8px; + -moz-border-radius-bottomright:8px; + border:0px solid #C3C3C3; + background: #FFFFFF; + max-height:250px; + overflow-y:auto; } #profile_video_image_container{ -float:left; -width:95%; -margin:6px 2px 0px 6px; -border-bottom:1px solid #CCC; -padding-bottom:3px; + float:left; + width:95%; + margin:6px 2px 0px 6px; + border-bottom:1px solid #CCC; + padding-bottom:3px; } #widget_container_header{ -color:#474B9F; -margin:0px 0px 5px 0px; -font-weight:bold; -font-size:13px; + color:#474B9F; + margin:0px 0px 5px 0px; + font-weight:bold; + font-size:13px; } #loadingSearch{ -width:100%; + width:100%; } #SearchContainer{ -width:100%; + width:100%; } #responseSearch{ -padding:15px; + padding:15px; } #paginateSearch{ --moz-border-radius-topleft:5px; --moz-border-radius-topright:5px; -padding:2px 5px 2px 0px; -text-align:right; -background:#FFF; -border:0px solid #CCC; -color:#666; + -moz-border-radius-topleft:5px; + -moz-border-radius-topright:5px; + padding:2px 5px 2px 0px; + text-align:right; + background:#FFF; + border:0px solid #CCC; + color:#666; } th{ -text-align:center; -font-weight:bold; -font-size:13px; + text-align:center; + font-weight:bold; + font-size:13px; } #parentTab{ --moz-border-radius-bottomleft:8px; --moz-border-radius-bottomright:8px; --moz-border-radius-topleft:8px; --moz-border-radius-topright:8px; -border-top:1px solid #CCC; -border-bottom:6px solid #CCC; -border-left:1px solid #CCC; -border-right:5px solid #CCC; -background:#FFFFFF; -margin-top:7px; + -moz-border-radius-bottomleft:8px; + -moz-border-radius-bottomright:8px; + -moz-border-radius-topleft:8px; + -moz-border-radius-topright:8px; + border-top:1px solid #CCC; + border-bottom:6px solid #CCC; + border-left:1px solid #CCC; + border-right:5px solid #CCC; + background:#FFFFFF; + margin-top:7px; } .tabcellDesc{ -padding:5px 5px 5px 10px; -text-align: left; + padding:5px 5px 5px 10px; + text-align: left; } .tabcellText{ -padding:5px; -text-align: center; + padding:5px; + text-align: center; } .videoDisp{ -position:absolute; --moz-border-radius-topleft:5px; --moz-border-radius-topright:5px; --moz-border-radius-bottomleft:5px; --moz-border-radius-bottomright:5px; -border:1px solid #000000; -display:none; -padding:10px; -margin-left:120px; -margin-top:-100px; -background:#FFFFFF; -z-index:300000; + position:absolute; + -moz-border-radius-topleft:5px; + -moz-border-radius-topright:5px; + -moz-border-radius-bottomleft:5px; + -moz-border-radius-bottomright:5px; + border:1px solid #000000; + display:none; + padding:10px; + margin-left:120px; + margin-top:-100px; + background:#FFFFFF; + z-index:300000; } .videolist-content{ --moz-border-radius-topleft:5px; --moz-border-radius-topright:5px; --moz-border-radius-bottomleft:5px; --moz-border-radius-bottomright:5px; -border:1px solid #C3C3C3; -width:675px; -margin:10px 0px 10px 10px; -padding:10px; -background:#FFFFFF; + -moz-border-radius-topleft:5px; + -moz-border-radius-topright:5px; + -moz-border-radius-bottomleft:5px; + -moz-border-radius-bottomright:5px; + border:1px solid #C3C3C3; + width:675px; + margin:10px 0px 10px 10px; + padding:10px; + background:#FFFFFF; } .tubesearch{ --moz-border-radius-topleft:5px; --moz-border-radius-topright:5px; --moz-border-radius-bottomleft:5px; --moz-border-radius-bottomright:5px; -border:1px solid #666666; + -moz-border-radius-topleft:5px; + -moz-border-radius-topright:5px; + -moz-border-radius-bottomleft:5px; + -moz-border-radius-bottomright:5px; + border:1px solid #666666; } #comment_area_video_title{ -padding:10px; --moz-border-radius-topleft:5px; --moz-border-radius-topright:5px; --moz-border-radius-bottomleft:5px; --moz-border-radius-bottomright:5px; -border:1px solid #CCCCCC; -border:1px solid #CCCCCC; -background:#FFFFFF; + padding:10px; + -moz-border-radius-topleft:5px; + -moz-border-radius-topright:5px; + -moz-border-radius-bottomleft:5px; + -moz-border-radius-bottomright:5px; + border:1px solid #CCCCCC; + border:1px solid #CCCCCC; + background:#FFFFFF; } .vid-comment-widget{ -font-size:11px; -font-weight:normal; + font-size:11px; + font-weight:normal; } .searchvideorow{ -padding:10px; --moz-border-radius-topleft:5px; --moz-border-radius-topright:5px; --moz-border-radius-bottomleft:5px; --moz-border-radius-bottomright:5px; -border:1px solid #CCCCCC; + padding:10px; + -moz-border-radius-topleft:5px; + -moz-border-radius-topright:5px; + -moz-border-radius-bottomleft:5px; + -moz-border-radius-bottomright:5px; + border:1px solid #CCCCCC; } #videosearch-tablecontainer{ --moz-border-radius-bottomleft:5px; --moz-border-radius-bottomright:5px; -border:1px solid #CCCCCC; -background:#FFF; -padding:10px; + -moz-border-radius-bottomleft:5px; + -moz-border-radius-bottomright:5px; + border:1px solid #CCCCCC; + background:#FFF; + padding:10px; } #videosearch-interface{ -border-color:#CCCCCC; -border-style:solid; -border-width:0 1px 1px; -margin-top:-15px; -padding:15px 0 15px 20px; + border-color:#CCCCCC; + border-style:solid; + border-width:0 1px 1px; + margin-top:-15px; + padding:15px 0 15px 20px; } diff --git a/views/default/videolist/groupprofile_videolist.php b/views/default/videolist/groupprofile_videolist.php index 1df34a7b2..d89b8e566 100644 --- a/views/default/videolist/groupprofile_videolist.php +++ b/views/default/videolist/groupprofile_videolist.php @@ -1,61 +1,59 @@ + * @copyright Prateek Choudhary + */ - /** - * Elgg Video Plugin - * This plugin allows users to create a library of videos for groups - * - * @package ElggProfile - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Prateek Choudhary - * @copyright Prateek Choudhary - */ - ?> -
+

num_display; - if (!$number) - $number = 5; - - //get the user's files - $videos = get_user_objects($vars['entity']->guid, "videolist", $number, 0); - - //if there are some files, go get them - if ($videos) { - - //display in list mode - echo "
"; - foreach($videos as $f){ - - $mime = $f->mimetype; - $owner = get_entity($f->getOwner()); - $numcomments = elgg_count_comments($f); - echo ""; - echo "
"; - echo ""; - echo "

" . friendly_time($f->time_created) . "

"; - echo "
"; - - } - echo "
"; - - //get a link to the users files - $users_file_url = $vars['url'] . "pg/videolist/owned/" . page_owner_entity()->username; - - echo ""; - - } else { - - echo "
" . elgg_echo("videolist:none") . "
"; +//the number of files to display +$number = (int) $vars['entity']->num_display; +if (!$number) + $number = 5; + +//get the user's files +$videos = get_user_objects($vars['entity']->guid, "videolist", $number, 0); + +//if there are some files, go get them +if ($videos) { + + //display in list mode + echo "
"; + + foreach($videos as $f){ + $mime = $f->mimetype; + $owner = get_entity($f->getOwner()); + $numcomments = elgg_count_comments($f); + echo ""; + echo "
"; + echo ""; + } + echo "

" . friendly_time($f->time_created) . "

"; + echo "
"; } + echo "
"; + + //get a link to the users files + $users_file_url = $vars['url'] . "pg/videolist/owned/" . page_owner_entity()->username; + + echo ""; + +} else { + echo "
" . elgg_echo("videolist:none") . "
"; +} ?>
diff --git a/views/default/videolist/icon.php b/views/default/videolist/icon.php index 1d25329ea..46c186db1 100644 --- a/views/default/videolist/icon.php +++ b/views/default/videolist/icon.php @@ -1,41 +1,38 @@ wwwroot}mod/videolist/graphics/icons/Video_Icon.jpg\" border=\"0\" />"; -} -else{ - +} else { $mime = $vars['mimetype']; if (isset($vars['thumbnail'])) { $thumbnail = $vars['thumbnail']; } else { $thumbnail = false; } - + $size = $vars['size']; if ($size != 'large') { $size = 'small'; } - if ($thumbnail && strpos($mime, "image/")!==false) + if ($thumbnail && strpos($mime, "image/")!==false) { echo ""; - else - { - if ($size == 'large') + } else { + if ($size == 'large') { echo ""; - else + } else { echo "wwwroot}mod/videolist/graphics/icons/Video_Icon.jpg\" border=\"0\" />"; + } } -} -?> +} \ No newline at end of file diff --git a/views/default/videolist/notfound.php b/views/default/videolist/notfound.php index ec69b700c..b797c54f7 100644 --- a/views/default/videolist/notfound.php +++ b/views/default/videolist/notfound.php @@ -1,21 +1,19 @@ - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ +/** + * Elgg blog not found page + * + * @package ElggBlog + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Curverider Ltd + * @copyright Curverider Ltd 2008 + * @link http://elgg.com/ + */ ?> -

- -

+

+ +

-- cgit v1.2.3