]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Update to search results view, and small entity list style updates.
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 15 Apr 2010 17:21:44 +0000 (17:21 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 15 Apr 2010 17:21:44 +0000 (17:21 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5748 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/search/views/default/search/entity.php
views/default/css.php

index b65bad8881cddabbfe6b72dc37e30b4fc4ca0740..538cc8a6488391a007e5615e47d16ff2ac005c32 100644 (file)
@@ -24,16 +24,16 @@ if (!$icon) {
        // @todo allow an option to switch to displaying the entity's icon instead.
        $type = $entity->getType();
        if ($type == 'user' || $type == 'group') {
-               $icon = elgg_view('profile/icon', array('entity' => $entity, 'size' => 'small'));
+               $icon = elgg_view('profile/icon', array('entity' => $entity, 'size' => 'tiny'));
        } elseif ($owner = $entity->getOwnerEntity()) {
-               $icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'small'));
+               $icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'tiny'));
        } else {
                // display a generic icon if no owner, though there will probably be
                // other problems if the owner can't be found.
                $icon = elgg_view(
                        'graphics/icon', array(
                                'entity' => $entity,
-                               'size' => 'small',
+                               'size' => 'tiny',
                                ));
        }
 }
@@ -56,15 +56,15 @@ if (!$time) {
        <div class="search_listing clearfloat">
        <div class="search_listing_icon"><?php echo $icon; ?></div>
                <div class="search_listing_info">
-                       <p class="item_title"><?php echo $title; ?></p>
-                       <p class="item_description"><?php echo $description; ?></p>
+                       <p class="entity_title"><?php echo $title; ?></p>
+                       <?php echo $description; ?>
 <?php 
 if ($extra_info) {
 ?>
-                       <p class="item_extra"><?php echo $extra_info; ?></p>
+                       <p class="entity_subtext"><?php echo $extra_info; ?></p>
 <?php
 }
 ?>
-                       <p class="item_timestamp"><?php echo $time; ?></p>
+                       <p class="entity_subtext"><?php echo $time; ?></p>
                </div>
        </div>
index 89a1d127f8167e0706a147382a4957cfaf10b7bc..07b328dd5d46d323151862a075946d4c2afc8b50 100644 (file)
@@ -964,7 +964,7 @@ li.navigation_more ul li {
 }
 .entity_listing_info p {
        margin:0;
-       line-height:1.2em;
+       /* line-height:1.2em; */
 }
 .entity_title {
        font-weight: bold;
@@ -979,6 +979,7 @@ li.navigation_more ul li {
        color:#666666;
        font-size: 85%;
        font-style: italic;
+       line-height:1.2em;
 }
 /* entity metadata block */
 .entity_metadata {