Projet

Général

Profil

Paste
Télécharger (1,27 ko) Statistiques
| Branche: | Révision:

root / drupal7 / modules / aggregator / aggregator-item.tpl.php @ db2d93dd

1
<?php
2

    
3
/**
4
 * @file
5
 * Default theme implementation to format an individual feed item for display
6
 * on the aggregator page.
7
 *
8
 * Available variables:
9
 * - $feed_url: URL to the originating feed item.
10
 * - $feed_title: Title of the feed item.
11
 * - $source_url: Link to the local source section.
12
 * - $source_title: Title of the remote source.
13
 * - $source_date: Date the feed was posted on the remote source.
14
 * - $content: Feed item content.
15
 * - $categories: Linked categories assigned to the feed.
16
 *
17
 * @see template_preprocess()
18
 * @see template_preprocess_aggregator_item()
19
 *
20
 * @ingroup themeable
21
 */
22
?>
23
<div class="feed-item">
24
  <h3 class="feed-item-title">
25
    <a href="<?php print $feed_url; ?>"><?php print $feed_title; ?></a>
26
  </h3>
27

    
28
  <div class="feed-item-meta">
29
  <?php if ($source_url): ?>
30
    <a href="<?php print $source_url; ?>" class="feed-item-source"><?php print $source_title; ?></a> -
31
  <?php endif; ?>
32
    <span class="feed-item-date"><?php print $source_date; ?></span>
33
  </div>
34

    
35
<?php if ($content): ?>
36
  <div class="feed-item-body">
37
    <?php print $content; ?>
38
  </div>
39
<?php endif; ?>
40

    
41
<?php if ($categories): ?>
42
  <div class="feed-item-categories">
43
    <?php print t('Categories'); ?>: <?php print implode(', ', $categories); ?>
44
  </div>
45
<?php endif ;?>
46

    
47
</div>