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/videolist | |
parent | a8aa4bceed8e7ad0c5af2646a83d6a2da2e0b23a (diff) | |
download | elgg-52255de580654f351205b19565be601bd4caaacb.tar.gz elgg-52255de580654f351205b19565be601bd4caaacb.tar.bz2 |
First pass at cleaning up videolist.
Diffstat (limited to 'views/default/videolist')
-rw-r--r-- | views/default/videolist/css.php | 270 | ||||
-rw-r--r-- | views/default/videolist/groupprofile_videolist.php | 96 | ||||
-rw-r--r-- | views/default/videolist/icon.php | 41 | ||||
-rw-r--r-- | views/default/videolist/notfound.php | 30 |
4 files changed, 214 insertions, 223 deletions
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 @@ <?php /** - * 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 <synapticfield@gmail.com> - * @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 <synapticfield@gmail.com> + * @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 @@ <?php +/** + * 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 <synapticfield@gmail.com> + * @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 <synapticfield@gmail.com> - * @copyright Prateek Choudhary - */ - ?> -<div id="filerepo_widget_layout"> +<div id="filerepo_widget_layout"> <h2><?php echo elgg_echo("videolist:group"); ?></h2> <?php - //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 "<div class=\"filerepo_widget_singleitem\" style=\"width:310px;padding:5px;\">"; - foreach($videos as $f){ - - $mime = $f->mimetype; - $owner = get_entity($f->getOwner()); - $numcomments = elgg_count_comments($f); - echo "<div class=\"filerepo_listview_icon\" style=\"float:left;width:90px;padding:8px 0 0 0;\"><a href=\"{$vars['url']}pg/videolist/watch/{$f->guid}\"><img src=\"".$f->thumbnail."\" border=\"0\" width=\"85\" /></a></div>"; - echo "<div class=\"filerepo_widget_content\" style=\"width:210px;margin-left:100px;\">"; - echo "<div class=\"filerepo_listview_title\"><p class=\"filerepo_title\" style=\"font-weight:normal;font-size:12px;\"><a href=\"{$vars['url']}pg/videolist/watch/{$f->guid}\">" . $f->title ."</a></p><br />by <a href=\"{$vars['url']}pg/profile/{$owner->username}\">{$owner->name}</a>"; - if ($numcomments) - echo "<br /><a href=\"{$vars['url']}pg/videolist/watch/{$f->guid}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")</a>"; - echo "</div>"; - echo "<div class=\"filerepo_listview_date\"><p class=\"filerepo_timestamp\"><small>" . friendly_time($f->time_created) . "</small></p></div>"; - echo "</div><div class=\"clearfloat\" style=\"height:8px;\"></div>"; - - } - echo "</div>"; - - //get a link to the users files - $users_file_url = $vars['url'] . "pg/videolist/owned/" . page_owner_entity()->username; - - echo "<div class=\"forum_latest\"><a href=\"{$users_file_url}\">" . elgg_echo("videolist:groupall") . "</a></div>"; - - } else { - - echo "<div class=\"forum_latest\">" . elgg_echo("videolist:none") . "</div>"; +//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 "<div class=\"filerepo_widget_singleitem\" style=\"width:310px;padding:5px;\">"; + + foreach($videos as $f){ + $mime = $f->mimetype; + $owner = get_entity($f->getOwner()); + $numcomments = elgg_count_comments($f); + echo "<div class=\"filerepo_listview_icon\" style=\"float:left;width:90px;padding:8px 0 0 0;\"><a href=\"{$vars['url']}pg/videolist/watch/{$f->guid}\"><img src=\"".$f->thumbnail."\" border=\"0\" width=\"85\" /></a></div>"; + echo "<div class=\"filerepo_widget_content\" style=\"width:210px;margin-left:100px;\">"; + echo "<div class=\"filerepo_listview_title\"><p class=\"filerepo_title\" style=\"font-weight:normal;font-size:12px;\"><a href=\"{$vars['url']}pg/videolist/watch/{$f->guid}\">" . $f->title ."</a></p><br />by <a href=\"{$vars['url']}pg/profile/{$owner->username}\">{$owner->name}</a>"; + if ($numcomments) { + echo "<br /><a href=\"{$vars['url']}pg/videolist/watch/{$f->guid}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")</a>"; + echo "</div>"; + } + echo "<div class=\"filerepo_listview_date\"><p class=\"filerepo_timestamp\"><small>" . friendly_time($f->time_created) . "</small></p></div>"; + echo "</div><div class=\"clearfloat\" style=\"height:8px;\"></div>"; } + echo "</div>"; + + //get a link to the users files + $users_file_url = $vars['url'] . "pg/videolist/owned/" . page_owner_entity()->username; + + echo "<div class=\"forum_latest\"><a href=\"{$users_file_url}\">" . elgg_echo("videolist:groupall") . "</a></div>"; + +} else { + echo "<div class=\"forum_latest\">" . elgg_echo("videolist:none") . "</div>"; +} ?> <div class="clearfloat" /></div> 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 @@ <?php - /** - * Elgg tidypic icon - * Optionally you can specify a size. - * - * @package ElggFile - * @author Curverider Ltd - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ +/** + * Elgg tidypic icon + * Optionally you can specify a size. + * + * @package ElggFile + * @author Curverider Ltd + * @copyright Curverider Ltd 2008 + * @link http://elgg.com/ + */ + +global $CONFIG; - global $CONFIG; - if($vars['videolist']){ echo "<img src=\"{$CONFIG->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 "<img src=\"{$thumbnail}\" border=\"0\" />"; - else - { - if ($size == 'large') + } else { + if ($size == 'large') { echo "<img src=\"{$thumbnail}\" border=\"0\" />"; - else + } else { echo "<img src=\"{$CONFIG->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 @@ <?php - /** - * 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 <info@elgg.com> - * @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 <info@elgg.com> + * @copyright Curverider Ltd 2008 + * @link http://elgg.com/ + */ ?> - <p> - <?php - - echo elgg_echo("video:none"); - - ?> - </p> +<p> + <?php + echo elgg_echo("video:none"); + ?> +</p> |