]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Minor updates to Files.
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 16 Mar 2010 12:20:52 +0000 (12:20 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 16 Mar 2010 12:20:52 +0000 (12:20 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5416 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/file/views/default/widgets/filerepo/view.php
views/default/navigation/viewtype.php

index 8113ea45a2dcf99df3a7afb5e0b60e4d85dbb841..01fdefa4881e0acb48c2d535594bf9786324532e 100644 (file)
@@ -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>";
                
        }
 
index 6366ebc0401cbb77e78a32bf5e763fe4655791b2..486e40c9a59b1e55425d654cf6b8ac0076e8583a 100644 (file)
@@ -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