Changeset 1548
- Timestamp:
- Oct 3, 2010, 4:37:37 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php
r1546 r1548 26 26 return $this->getPartial('parlementaire/photoParlementaire', array('parlementaire'=>$obj, 'height'=>70)); 27 27 case 'Commentaire': 28 return '<img width="53" src="'.url_for('@photo_citoyen?slug='.$obj->getCitoyen()->getSlug()).'"/>';28 return '<img width="53" class="jstitle" title="'.$obj->getCitoyen()->getLogin().'" alt="'.$obj->getCitoyen()->getLogin().'" src="'.url_for('@photo_citoyen?slug='.$obj->getCitoyen()->getSlug()).'"/>'; 29 29 case 'Citoyen': 30 return '<img width="53" src="'.url_for('@photo_citoyen?slug='.$obj->getSlug()).'"/>';30 return '<img width="53" class="jstitle" title="'.$obj->getLogin().'" alt="'.$obj->getLogin().'" src="'.url_for('@photo_citoyen?slug='.$obj->getSlug()).'"/>'; 31 31 case 'NonObjectPage': 32 $num = strtolower(Parlementaire::getNumeroDepartement(str_replace(' ', '_', preg_replace('/^.*\/([^\/]+)$/', '\\1', $obj->getLink())))); 32 $dep = preg_replace('/^.*\/([^\/]+)$/', '\\1', $obj->getLink()); 33 $num = strtolower(Parlementaire::getNumeroDepartement(str_replace(' ', '_', $dep))); 33 34 if (preg_match('/^\d$/', $num)) 34 35 $num = sprintf("%02d",$num); … … 36 37 $fixednum = '0'.$num; 37 38 else $fixednum = sprintf('%03d',$num); 38 return '<img width="53" src="'.url_for("@circo_image_png?circo=".$fixednum."&w=53&h=0").'"/>';39 return '<img width="53" class="jstitle" title="'.$dep.' ('.$num.')" alt="'.$dep.' ('.$num.')" src="'.url_for("@circo_image_png?circo=".$fixednum."&w=53&h=0").'"/>'; 39 40 } 40 41 }
Note: See TracChangeset
for help on using the changeset viewer.