aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/file/views/default/widgets/filerepo/view.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/mod/file/views/default/widgets/filerepo/view.php b/mod/file/views/default/widgets/filerepo/view.php
index 8113ea45a..01fdefa48 100644
--- a/mod/file/views/default/widgets/filerepo/view.php
+++ b/mod/file/views/default/widgets/filerepo/view.php
@@ -34,11 +34,11 @@ $('a.show_file_desc').click(function () {
//if there are some files, go get them
if ($files) {
- echo "<div id=\"filerepo_widget_layout\">";
+ echo "<div id='filerepo_widget_layout'>";
if($view == "gallery"){
- echo "<div class=\"filerepo_widget_galleryview\">";
+ echo "<div class='filerepo_widget_galleryview'>";
//display in gallery mode
foreach($files as $f){
@@ -56,14 +56,14 @@ $('a.show_file_desc').click(function () {
foreach($files as $f){
$mime = $f->mimetype;
- echo "<div class=\"filerepo_widget_singleitem\">";
- echo "<div class=\"filerepo_listview_icon\"><a href=\"{$f->getURL()}\">" . elgg_view("file/icon", array("mimetype" => $mime, 'thumbnail' => $f->thumbnail, 'file_guid' => $f->guid)) . "</a></div>";
- echo "<div class=\"filerepo_widget_content\">";
- echo "<div class=\"filerepo_listview_title\"><p class=\"filerepo_title\">" . $f->title . "</p></div>";
- echo "<div class=\"filerepo_listview_date\"><p class=\"filerepo_timestamp\"><small>" . friendly_time($f->time_created) . "</small></p></div>";
+ echo "<div class='filerepo_widget_singleitem clearfloat'>";
+ echo "<div class='filerepo_listview_icon'><a href=\"{$f->getURL()}\">" . elgg_view("file/icon", array("mimetype" => $mime, 'thumbnail' => $f->thumbnail, 'file_guid' => $f->guid)) . "</a></div>";
+ echo "<div class='filerepo_widget_content'>";
+ echo "<div class='filerepo_listview_title'><p class='filerepo_title'>" . $f->title . "</p></div>";
+ echo "<div class='filerepo_listview_date'><p class='filerepo_timestamp'><small>" . friendly_time($f->time_created) . "</small></p></div>";
$description = $f->description;
- if (!empty($description)) echo "<a href=\"javascript:void(0);\" class=\"show_file_desc\">". elgg_echo('more') ."</a><br /><div class=\"filerepo_listview_desc\">" . $description . "</div>";
- echo "</div><div class=\"clearfloat\"></div></div>";
+ if (!empty($description)) echo "<a href=\"javascript:void(0);\" class='show_file_desc'>". elgg_echo('more') ."</a><br /><div class='filerepo_listview_desc'>" . $description . "</div>";
+ echo "</div></div>";
}
@@ -73,13 +73,13 @@ $('a.show_file_desc').click(function () {
//get a link to the users files
$users_file_url = $vars['url'] . "pg/file/" . get_user($f->owner_guid)->username;
- echo "<div class=\"filerepo_widget_singleitem_more\"><a href=\"{$users_file_url}\">" . elgg_echo('file:more') . "</a></div>";
+ echo "<div class='filerepo_widget_singleitem_more'><a href=\"{$users_file_url}\">" . elgg_echo('file:more') . "</a></div>";
echo "</div>";
} else {
- echo "<div class=\"contentWrapper\">" . elgg_echo("file:none") . "</div>";
+ echo "<p class='margin_top'>" . elgg_echo("file:none") . "</p>";
}