aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/file/views/default/widgets/filerepo/view.php22
-rw-r--r--views/default/navigation/viewtype.php4
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