diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-21 18:57:44 -0800 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-21 18:57:44 -0800 |
| commit | f8a4c6edaa405494139aaf8eb6579a9488e73034 (patch) | |
| tree | 098263faec67d468c70cf74f70a3f7136e55a2a2 /modules/search/views | |
| parent | 23a60fb1f217475419c55adc7ce7427fcdadb2c3 (diff) | |
| parent | 38233c67a2946d6fe7b6457217541c796247285d (diff) | |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/search/views')
| -rw-r--r-- | modules/search/views/search.html.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/modules/search/views/search.html.php b/modules/search/views/search.html.php index fdf22a9e..2e139ecf 100644 --- a/modules/search/views/search.html.php +++ b/modules/search/views/search.html.php @@ -23,18 +23,15 @@ <? if (count($items)): ?> <ul id="g-album-grid" class="ui-helper-clearfix"> <? foreach ($items as $item): ?> - <? $item_class = "g-photo"; ?> - <? if ($item->is_album()): ?> - <? $item_class = "g-album"; ?> - <? endif ?> - <li class="g-item <?= $item_class ?>"> + <? $item_class = $item->is_album() ? "g-album" : "g-photo" ?> + <li class="g-item <?= $item_class ?>"> <a href="<?= $item->url() ?>"> <?= $item->thumb_img() ?> <p> - <?= html::purify($item->title) ?> - </p> - <div> - <?= nl2br(html::purify($item->description)) ?> + <?= html::purify(text::limit_chars($item->title, 32, "…")) ?> + </p> + <div> + <?= nl2br(html::purify(text::limit_chars($item->description, 64, "…"))) ?> </div> </a> </li> |
