Ignore:
Timestamp:
Mar 18, 2010, 12:14:01 PM (11 years ago)
Author:
goya
Message:

meilleure présentation rss comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/commentaire/templates/rssSuccess.php

    r1027 r1149  
    77foreach($comments as $c)
    88{
     9  $auteur = $c->getCitoyen()->login;
    910  $item = new sfFeedItem();
    1011  if (isset($presentation))
    11     $item->setTitle($c->getPresentation($presentation));
     12    $item->setTitle($c->getPresentation($presentation).', '.$auteur.' a dit');
    1213  else $item->setTitle($c->getPresentation());
    13   $item->setLink('http://'.$_SERVER['HTTP_HOST'].url_for($c->getLien()));
    14   $item->setAuthorName($c->getCitoyen()->login);
     14  $item->setLink('http://'.$_SERVER['HTTP_HOST'].url_for($c->getLien()).'#commentaire_'.$c->id);
     15  $item->setAuthorName($auteur);
    1516  $item->setPubdate(strtotime($c->created_at));
    1617  $item->setUniqueId('Commentaire'.$c->id);
Note: See TracChangeset for help on using the changeset viewer.