diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-16 12:20:52 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-16 12:20:52 +0000 |
commit | d3e5645c4c74796469f198ec54a8fbe52f6908ff (patch) | |
tree | f7162fa96637b4630fedd9dc64ca3cd3c5dcd1fb | |
parent | d146923c93e58d604c44869238f406c714669826 (diff) | |
download | elgg-d3e5645c4c74796469f198ec54a8fbe52f6908ff.tar.gz elgg-d3e5645c4c74796469f198ec54a8fbe52f6908ff.tar.bz2 |
Minor updates to Files.
git-svn-id: http://code.elgg.org/elgg/trunk@5416 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/file/views/default/widgets/filerepo/view.php | 22 | ||||
-rw-r--r-- | views/default/navigation/viewtype.php | 4 |
2 files changed, 13 insertions, 13 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>"; } diff --git a/views/default/navigation/viewtype.php b/views/default/navigation/viewtype.php index 6366ebc04..486e40c9a 100644 --- a/views/default/navigation/viewtype.php +++ b/views/default/navigation/viewtype.php @@ -24,7 +24,7 @@ if (substr_count($baseurl,'?')) { ?> -<div class="contentWrapper"> +<p class="margin_top"> <?php echo elgg_echo("viewtype:change") ?>: <a href="<?php echo $baseurl; ?>"><?php echo elgg_echo("viewtype:{$viewtype}"); ?></a> -</div>
\ No newline at end of file +</p>
\ No newline at end of file |