Mercurial > defr > drupal > core
comparison modules/aggregator/aggregator-item.tpl.php @ 1:c1f4ac30525a 6.0
Drupal 6.0
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Tue, 23 Dec 2008 14:28:28 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:5a113a1c4740 | 1:c1f4ac30525a |
|---|---|
| 1 <?php | |
| 2 // $Id: aggregator-item.tpl.php,v 1.1 2007/09/13 08:02:38 goba Exp $ | |
| 3 | |
| 4 /** | |
| 5 * @file aggregator-item.tpl.php | |
| 6 * Default theme implementation to format an individual feed item for display | |
| 7 * on the aggregator page. | |
| 8 * | |
| 9 * Available variables: | |
| 10 * - $feed_url: URL to the originating feed item. | |
| 11 * - $feed_title: Title of the feed item. | |
| 12 * - $source_url: Link to the local source section. | |
| 13 * - $source_title: Title of the remote source. | |
| 14 * - $source_date: Date the feed was posted on the remote source. | |
| 15 * - $content: Feed item content. | |
| 16 * - $categories: Linked categories assigned to the feed. | |
| 17 * | |
| 18 * @see template_preprocess() | |
| 19 * @see template_preprocess_aggregator_item() | |
| 20 */ | |
| 21 ?> | |
| 22 <div class="feed-item"> | |
| 23 <h3 class="feed-item-title"> | |
| 24 <a href="<?php print $feed_url; ?>"><?php print $feed_title; ?></a> | |
| 25 </h3> | |
| 26 | |
| 27 <div class="feed-item-meta"> | |
| 28 <?php if ($source_url) : ?> | |
| 29 <a href="<?php print $source_url; ?>" class="feed-item-source"><?php print $source_title; ?></a> - | |
| 30 <?php endif; ?> | |
| 31 <span class="feed-item-date"><?php print $source_date; ?></span> | |
| 32 </div> | |
| 33 | |
| 34 <?php if ($content) : ?> | |
| 35 <div class="feed-item-body"> | |
| 36 <?php print $content; ?> | |
| 37 </div> | |
| 38 <?php endif; ?> | |
| 39 | |
| 40 <?php if ($categories) : ?> | |
| 41 <div class="feed-item-categories"> | |
| 42 <?php print t('Categories'); ?>: <?php print implode(', ', $categories); ?> | |
| 43 </div> | |
| 44 <?php endif ;?> | |
| 45 | |
| 46 </div> |
