Subversion Repositories Sites.gentiana.org

Rev

Rev 53 | Rev 74 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 53 Rev 65
Line 74... Line 74...
74
								$item['image'] = $image;
74
								$item['image'] = $image;
75
							}
75
							}
76
							// Nettoyage du html
76
							// Nettoyage du html
77
							$h2t = new html2text($item['description']);
77
							$h2t = new html2text($item['description']);
78
							$item['description'] = $h2t->get_text();
78
							$item['description'] = $h2t->get_text();
79
							
-
 
80
						?>
79
						?>
81
						<li class="rss_actu">
80
						<li class="rss_actu">
82
							<h2 class="rss_titre"><a href="<?=$item['link']; ?>"><?=$item['title']; ?></a></h2>
81
							<h2 class="rss_titre"><a href="<?=$item['link']; ?>"><?=$item['title']; ?></a></h2>
83
							<?php if ($image) : ?>
82
							<?php if ($image) : ?>
84
							<img class="rss_image" src="<?=$item['image']['src'];?>" alt="<?=$item['image']['alt'];?>" width="50" height="50"/>
83
							<img class="rss_image" src="<?=$item['image']['src'];?>" alt="<?=$item['image']['alt'];?>" width="50" height="50"/>
85
							<?php endif; ?>
84
							<?php endif; ?>
86
							<p class="rss_date">PubliƩ le <?=strftime('%d.%m.%Y',strtotime($item['date'])); ?></p>
85
							<p class="rss_date">PubliƩ le <?=strftime('%d.%m.%Y',strtotime($item['pubdate'])); ?></p>
87
							<p class="rss_description"><? echo substr($item['description'],0, RSS_DESCRIPTION_LONGUEUR).'...'; ?></p>
86
							<p class="rss_description"><? echo substr($item['description'],0, RSS_DESCRIPTION_LONGUEUR).'...'; ?></p>
88
						</li>
87
						</li>
89
					<?php endforeach; ?>
88
					<?php endforeach; ?>
90
					</ul>
89
					</ul>
91
				</div>
90
				</div>