Changeset 1389


Ignore:
Timestamp:
Sep 19, 2010, 1:35:09 PM (10 years ago)
Author:
goya
Message:

taille photos solr

Location:
cpc/trunk/project/apps/frontend/modules/solr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php

    r1330 r1389  
    9494      $this->results['docs'][$i]['titre'] = $obj->getTitre();
    9595      $this->results['docs'][$i]['personne'] = $obj->getPersonne();
    96       $this->results['docs'][$i]['highlighting'] = preg_replace('/^'.$this->results['docs'][$i]['personne'].'/', '', implode('...', $results['highlighting'][$res['id']]['text']));
     96      $this->results['docs'][$i]['highlighting'] = preg_replace('/^'."$this->results['docs'][$i]['personne']".'/', '', implode('...', $results['highlighting'][$res['id']]['text']));
    9797     
    9898    }
  • cpc/trunk/project/apps/frontend/modules/solr/templates/searchSuccess.php

    r1385 r1389  
    7878<div class="item">
    7979      <h4><a href="<?php echo $record['link']; ?>"><?php echo $record['titre']; ?></a></h4>
    80       <p class="photo"><a href="<?php echo $record['link']; ?>" rel="nofollow"><img height=67 width=53 src="<?php echo $record['photo']; ?>"/></a></p>
     80      <?php if ($record['photo']) { ?><p class="photo"><a href="<?php echo $record['link']; ?>" rel="nofollow"><img width="53" src="<?php echo $record['photo']; ?>"/></a></p><?php } ?>
    8181      <p class="intervenant"><a href="<?php echo $record['link']; ?>" rel="nofollow"><?php echo $record['personne']; ?></a></p>
    8282      <p class="content"><?php echo $record['highlighting']; ?></p>
Note: See TracChangeset for help on using the changeset viewer.