aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-13 16:07:52 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-13 16:07:52 +0000
commit2ac6d8f4d1738d299dab4fc5ac0cd28f7c3c00b5 (patch)
tree2ea79e8d97e06ecae4d7b15c5f4211e03d29d9f0 /mod/file/views
parentb7320d43074b2a5777ae6d6bc0ca8f29d3be482d (diff)
downloadelgg-2ac6d8f4d1738d299dab4fc5ac0cd28f7c3c00b5.tar.gz
elgg-2ac6d8f4d1738d299dab4fc5ac0cd28f7c3c00b5.tar.bz2
Groups profile page tool widget boxes updated.
git-svn-id: http://code.elgg.org/elgg/trunk@5716 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/views')
-rw-r--r--mod/file/views/default/file/groupprofile_files.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/mod/file/views/default/file/groupprofile_files.php b/mod/file/views/default/file/groupprofile_files.php
index 295c99a1e..7902ae91f 100644
--- a/mod/file/views/default/file/groupprofile_files.php
+++ b/mod/file/views/default/file/groupprofile_files.php
@@ -16,7 +16,7 @@ $(document).ready(function () {
}); /* end document ready function */
</script>
-<div class="group_tool_widget">
+<div class="group_tool_widget files">
<h3><?php echo elgg_echo("file:group"); ?></h3>
<?php
@@ -24,13 +24,13 @@ $(document).ready(function () {
//the number of files to display
$number = (int) $vars['entity']->num_display;
if (!$number)
- $number = 10;
+ $number = 6;
//get the group's files
$files = elgg_get_entities(array('type' => 'object',
'subtype' => 'file',
'container_guid' => $vars['entity']->guid,
- 'limit' => $number,
+ 'limit' => $number
));
//if there are some files, go get them
@@ -40,14 +40,14 @@ $(document).ready(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='entity_listing clearfloat'>";
+ echo "<div class='entity_listing_icon'><a href=\"{$f->getURL()}\">" . elgg_view("file/icon", array("mimetype" => $mime, 'thumbnail' => $f->thumbnail, 'file_guid' => $f->guid)) . "</a></div>";
+ echo "<div class='entity_listing_info'>";
+ echo "<p class='entity_title'>" . $f->title . "</p>";
+ echo "<p class='entity_subtext'>" . friendly_time($f->time_created) . "</p>";
$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>";
+ echo "</div></div>";
}
@@ -55,11 +55,11 @@ $(document).ready(function () {
//get a link to the users files
$users_file_url = $vars['url'] . "pg/file/" . page_owner_entity()->username;
- echo "<div class=\"forum_latest\"><a href=\"{$users_file_url}\">" . elgg_echo('file:more') . "</a></div>";
+ echo "<p><a href=\"{$users_file_url}\">" . elgg_echo('file:more') . "</a></p>";
} else {
- echo "<div class=\"forum_latest\">" . elgg_echo("file:none") . "</div>";
+ echo "<p class='margin_top'>" . elgg_echo("file:none") . "</p>";
}